/* ============================================================
   Home — editorial display register, studied from
   thefutureinblack.com: massive condensed type with the hero
   object punching through it, live-clock meta bar, full-bleed
   interstitial with triangular wipes, deep-green bands with
   cream cards and mustard pills, checkerboard splits with a
   giant watermark. Recast entirely in the house triad.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Fragment+Mono&display=swap');

:root {
  --ink: #131309;
  --paperWhite: #FFFEF9;
  --deepGreen: #24331A;          /* the band green — house olive, deepened */
  --cream: #F2E9D4;
  --gold: #E1B83B;
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-mono: 'Fragment Mono', ui-monospace, monospace;
  --ease-epoch: cubic-bezier(0.5, 0.01, 0.5, 1);
  --gutter: clamp(20px, 5vw, 80px);
}

html { scroll-behavior: smooth; }
body.home { background: var(--paperWhite); color: var(--ink); overflow-x: hidden; }

/* ---------- reveals (visible without JS; html.js gates hiding) ---------- */
html.js .rise { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-epoch), transform 0.8s var(--ease-epoch); }
html.js .rise.in { opacity: 1; transform: none; }

/* ---------- meta bar ---------- */
.fib-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  mix-blend-mode: normal;
}
.fib-wordmark {
  font-family: var(--font-display);
  font-size: 17px; letter-spacing: 0.5px;
  color: var(--ink); text-decoration: none;
  transition: opacity 0.4s var(--ease-epoch);
}
.fib-top.scrolled .fib-wordmark { opacity: 0; pointer-events: none; }
.fib-meta { display: flex; align-items: center; gap: 12px; }
.fib-clock {
  font-size: 13px; color: var(--ink);
  background: var(--paperWhite);
  border-radius: 999px;
  padding: 9px 16px;
}
.fib-clock .slash { color: var(--gold); margin-right: 6px; }
.fib-menu {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--paperWhite);
  border-radius: 999px; padding: 10px 18px;
  font-size: 13px; letter-spacing: 0.3px; text-decoration: none;
  transition: background 0.25s var(--ease-epoch), transform 0.25s var(--ease-epoch);
}
.fib-menu:hover { background: var(--deepGreen); text-decoration: none; transform: translateY(-1px); }
.fib-menu .burger { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.fib-menu.big { padding: 14px 26px; font-size: 15px; }

/* ---------- hero: heading left, head right ---------- */
.fib-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.85fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(110px, 16vh, 160px) var(--gutter) clamp(56px, 9vh, 100px);
  min-height: 92vh;
}
.fib-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 8.6vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0.2px;
  color: var(--ink);
  text-align: left;
  display: flex; flex-direction: column;
}
.fib-display.headline {
  /* sized so the longest line fills its column at every width */
  font-size: clamp(2.1rem, 6vw, 5.7rem);
  line-height: 0.9;
}
/* the subject of the sentence, struck through with a marker */
.fib-display.headline .line:nth-child(-n+2) {
  font-size: 1.34em;
  align-self: flex-start;                    /* the band hugs the words, not the column */
  background: linear-gradient(transparent 50%, var(--gold) 50%);
  padding-inline: 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* the same CTA, sized for the hero — one line, words spaced */
.fib-display.hero-cta {
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  flex-direction: row; gap: 0.32em;
  margin-top: 30px;
  align-self: flex-start;
}
.fib-heroCard {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 3 / 4;
  justify-self: end;
  background: transparent;      /* the head floats on the paper */
  overflow: visible;
}
.fib-heroCard img, .fib-heroCard model-viewer {
  position: absolute; inset: -10%;
  width: 120%; height: 120%;
  object-fit: cover;
}
.fib-heroCard model-viewer { background: transparent; pointer-events: none; }
/* the still is a failure stand-in only — never a dark plate on the paper */
.fib-heroCard img { display: none; border-radius: 18px; }
.fib-heroCard.model-fail img { display: block; }
.fib-tag {
  margin-top: 30px;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.5;
}
.fib-herostats {
  display: flex; gap: clamp(14px, 2.4vw, 34px); flex-wrap: wrap;
  margin-top: 26px;
  font-size: 13px; color: #55523F;
}
.fib-herostats b { color: var(--ink); font-weight: 700; margin-right: 5px; }
@media (max-width: 820px) {
  .fib-hero { grid-template-columns: 1fr; }
  .fib-heroCard { justify-self: start; max-width: min(84vw, 380px); }
}

/* ---------- full-bleed interstitial ---------- */
.fib-inter { position: relative; height: min(115vh, 900px); overflow: hidden; background: #101408; }
.fib-inter img {
  width: 100%; height: 120%;
  object-fit: cover;
  transform: translateY(var(--py, 0));
  will-change: transform;
}
.fib-wipes { position: absolute; inset: 0; pointer-events: none; }
.fib-wipes::before, .fib-wipes::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  background: rgba(255, 254, 249, 0.16);
}
.fib-wipes::before { left: 12%; width: 10%; clip-path: polygon(20% 0, 80% 0, 50% 100%); }
.fib-wipes::after { right: 18%; width: 8%; clip-path: polygon(15% 0, 85% 0, 50% 88%); }
@media (max-width: 700px) { .fib-inter-caption { font-size: 12px; } }
.fib-inter-caption {
  position: absolute; left: var(--gutter); bottom: 26px;
  color: var(--paperWhite);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
}

/* ---------- bands ---------- */
.fib-band { background: var(--deepGreen); color: var(--paperWhite); padding: clamp(48px, 8vh, 96px) var(--gutter) clamp(64px, 10vh, 120px); }
.fib-band.cream { background: var(--cream); color: var(--ink); }
.fib-secrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid currentColor;
  opacity: 0.85;
}
.fib-secrow .sq { width: 8px; height: 8px; background: var(--gold); }
.fib-secrow .idx { margin-left: auto; }
.fib-band-head {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
  gap: 24px; align-items: end;
  margin: clamp(28px, 5vh, 56px) 0 clamp(28px, 5vh, 52px);
}
.fib-band-head h2 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); font-weight: 300; letter-spacing: -1px; line-height: 1.05; }
.fib-band-head p { font-size: 14.5px; line-height: 1.7; opacity: 0.85; max-width: 46ch; }
@media (max-width: 800px) { .fib-band-head { grid-template-columns: 1fr; align-items: start; } }

/* cream cards with mustard pills */
.fib-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.fib-card {
  display: block;
  background: var(--cream);
  color: var(--ink);
  border-radius: 18px;
  padding: 22px 22px 0;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.17, 0.67, 0, 1.02);
}
.fib-card:hover { transform: translateY(-6px); text-decoration: none; }
.fib-card.green { background: var(--cream); }
.fib-card.green h3 { color: var(--ink); }
.fib-card .pill {
  display: inline-block;
  background: var(--gold); color: var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px; font-weight: 600;
}
.fib-card h3 {
  margin: 14px 0 18px;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 500; line-height: 1.35;
  min-height: 2.7em;            /* two lines — every card's image starts on the same line */
}
.fib-card img {
  width: 100%;
  border-radius: 12px 12px 0 0;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;                          /* fills the card; screenshots read from the top */
  object-position: center top;
  background: var(--cream);
}
.fib-card.green img { aspect-ratio: 1; border-radius: 12px; margin-bottom: 22px; object-position: center; }

/* ---------- checkerboard + watermark ---------- */
.fib-checker {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--deepGreen);
  overflow: hidden;
}
.fib-watermark {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 20rem);
  color: rgba(120, 110, 70, 0.16);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 3;
  letter-spacing: 2px;
}
.fib-checker .cell { position: relative; min-height: clamp(320px, 46vh, 460px); z-index: 2; }
.fib-checker .cell.text { padding: clamp(32px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.fib-checker .cream-cell { background: var(--cream); color: var(--ink); }
.fib-checker .cell.text h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 300; color: #2E4A1F; }
.fib-checker .cell.text p { font-size: 14.5px; line-height: 1.75; max-width: 52ch; }
.fib-checker .cell.image { overflow: hidden; background: #101408; }
.fib-checker .cell.image img {
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: lighten;
  transition: transform 1.2s var(--ease-epoch);
}
.fib-checker .cell.image:hover img { transform: scale(1.04); }
.fib-btn {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  color: inherit; text-decoration: none;
  transition: background 0.3s var(--ease-epoch), color 0.3s var(--ease-epoch);
}
.cream-cell .fib-btn:hover { background: var(--ink); color: var(--cream); text-decoration: none; }
.fib-btn span { transition: transform 0.3s var(--ease-epoch); }
.fib-btn:hover span { transform: translateX(4px); }
@media (max-width: 760px) {
  .fib-checker { grid-template-columns: 1fr; }
  .fib-checker .cell.image:nth-child(3) { order: 5; } /* keep text/image alternation when stacked */
}

/* ---------- closing CTA ---------- */
.fib-cta {
  padding: clamp(70px, 13vh, 150px) var(--gutter) 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 30px;
}
.fib-display.small { font-size: clamp(2.6rem, 8.6vw, 5.4rem); }
.fib-foot {
  margin-top: clamp(36px, 7vh, 70px);
  width: 100%;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid #D8D2BC;
  padding-top: 18px;
  font-size: 12px; color: #6B6852;
}
.fib-foot a { color: inherit; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .rise { opacity: 1; transform: none; transition: none; }
  .fib-inter img { transform: none; }
  .fib-card, .fib-btn span, .fib-checker .cell.image img { transition: none; }
}


/* closing CTA as clickable display text */
.fib-enterlink {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.3s var(--ease-epoch), letter-spacing 0.3s var(--ease-epoch);
}
.fib-enterlink:hover { color: var(--deepGreen); text-decoration: none; letter-spacing: 2px; }
.fib-enterlink .line { border-bottom: 4px solid transparent; transition: border-color 0.3s var(--ease-epoch); }
.fib-enterlink:hover .line:last-child { border-color: var(--gold); }

model-viewer { max-width: 100%; }
