/* ==========================================================================
   Mike Bruce — design system v2
   Alternating near-black / off-white grounds · light grotesque · burnt orange
   Motion vocabulary: scroll text-fill, arrow rows, ambient video, reveals.
   ========================================================================== */

:root {
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* burnt orange holds across both grounds */
  --burnt: #C2551F;
  --burnt-lift: #E0672A;

  --t-xs: 0.72rem;
  --t-sm: 0.875rem;
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --t-lead: clamp(1.1rem, 1rem + 0.55vw, 1.5rem);
  --t-h4: clamp(1.1rem, 1rem + 0.45vw, 1.4rem);
  --t-h3: clamp(1.45rem, 1.2rem + 1.1vw, 2.2rem);
  --t-h2: clamp(2rem, 1.4rem + 2.6vw, 3.9rem);
  --t-h1: clamp(2.3rem, 1.7rem + 2.6vw, 4.4rem);

  --gap: clamp(1.1rem, 2.6vw, 1.9rem);
  --pad-x: clamp(1.15rem, 5vw, 5rem);
  --sec-y: clamp(4rem, 10vw, 9.5rem);
  --wrap: 1420px;
  --r: 14px;

  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
  --nav-h: 62px;
}

/* ---- ground schemes ------------------------------------------------------ */

.s-dark {
  --bg: #0B0B0A;
  --fg: #F2F0EB;
  --fg-soft: #A5A29A;
  --fg-mute: #5F5D57;
  --rule: rgba(242, 240, 235, 0.14);
  --rule-strong: rgba(242, 240, 235, 0.32);
  --card: #141312;
  --accent: #E0672A;
}

.s-light {
  --bg: #EFEDE8;
  --fg: #131211;
  --fg-soft: #57544E;
  --fg-mute: #A39F96;
  --rule: rgba(19, 18, 17, 0.15);
  --rule-strong: rgba(19, 18, 17, 0.34);
  --card: #E3E0D9;
  --accent: #B04D1B;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #0B0B0A;
  color: #F2F0EB;
  font-family: var(--sans);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--burnt); color: #fff; }

:focus-visible {
  outline: 2px solid var(--burnt-lift);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.s {
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--sec-y);
  position: relative;
}
.s-flush { padding-block: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
@media (max-width: 880px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.c-1-4 { grid-column: 1 / 5; }
.c-1-5 { grid-column: 1 / 6; }
.c-1-6 { grid-column: 1 / 7; }
.c-1-7 { grid-column: 1 / 8; }
.c-1-8 { grid-column: 1 / 9; }
.c-1-12 { grid-column: 1 / -1; }
.c-3-8 { grid-column: 3 / 9; }
.c-4-12 { grid-column: 4 / -1; }
.c-5-12 { grid-column: 5 / -1; }
.c-6-12 { grid-column: 6 / -1; }
.c-7-12 { grid-column: 7 / -1; }
.c-9-12 { grid-column: 9 / -1; }
@media (max-width: 880px) {
  .c-1-4, .c-1-5, .c-1-6, .c-1-7, .c-1-8, .c-3-8,
  .c-4-12, .c-5-12, .c-6-12, .c-7-12, .c-9-12 { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.12; }
h4 { font-size: var(--t-h4); line-height: 1.2; font-weight: 400; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: var(--t-lead); line-height: 1.35; font-weight: 300; max-width: 30ch; }
.prose { max-width: 60ch; color: var(--fg-soft); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--accent); }

.label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0;
  font-weight: 400;
}
.label.accent { color: var(--accent); }

/* dash-prefixed label, as in the reference */
.label.dash { display: flex; align-items: center; gap: 0.7rem; }
.label.dash::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  flex: none;
  opacity: 0.6;
}

.tm { font-size: 0.4em; vertical-align: 0.95em; letter-spacing: 0; }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* --------------------------------------------------------------------------
   Scroll text-fill — the signature move
   -------------------------------------------------------------------------- */

.fill {
  font-size: clamp(1.4rem, 1rem + 2.1vw, 3.1rem);
  line-height: 1.22;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 22ch;
}
.fill .w { color: var(--fg-mute); transition: color 320ms var(--ease); }
.fill .w.on { color: var(--fg); }
.fill .w.hl.on { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .fill .w { color: var(--fg); }
  .fill .w.hl { color: var(--accent); }
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 400ms var(--ease), border-color 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav[data-stuck="true"] {
  background: rgba(11, 11, 10, 0.86);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(242, 240, 235, 0.12);
}
.nav-in {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: #F2F0EB;
}
.nav-mark {
  min-width: 0;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.nav-mark small {
  display: block;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.5);
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.9rem);
  align-items: center;
  font-size: var(--t-sm);
}
.nav-links a { color: rgba(242, 240, 235, 0.68); transition: color 200ms var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #F2F0EB; }
.nav-cta {
  border: 1px solid rgba(242, 240, 235, 0.3);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  color: #F2F0EB !important;
  font-size: var(--t-sm);
  transition: background 220ms var(--ease), border-color 220ms var(--ease);
}
.nav-cta:hover { background: var(--burnt); border-color: var(--burnt); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 0;
  color: #F2F0EB;
  font-family: var(--sans);
  font-size: var(--t-sm);
  cursor: pointer;
  padding: 0.4rem 0;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 9px;
}
.nav-toggle i {
  position: absolute;
  left: 0;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 400ms var(--ease);
}
.nav-toggle i:nth-child(1) { top: 0; }
.nav-toggle i:nth-child(2) { bottom: 0; }
/* the two bars fold into a cross */
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 620px) {
  /* the full descriptor is wider than a phone; the hero eyebrow carries it */
  .nav-mark small { display: none; }
}

@media (max-width: 940px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: #0B0B0A;
    border-bottom: 1px solid rgba(242, 240, 235, 0.14);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad-x) 1.4rem;

    /* closed: lifted, faded, and out of the tab order */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 260ms var(--ease),
      transform 420ms var(--ease),
      visibility 0s linear 420ms;
  }
  .nav-links[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition:
      opacity 240ms var(--ease),
      transform 460ms var(--ease),
      visibility 0s;
  }

  .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(242, 240, 235, 0.09);
    font-size: 1.05rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 320ms var(--ease), transform 320ms var(--ease);
  }
  .nav-links[data-open="true"] a { opacity: 1; transform: none; }
  /* stagger the entries so the panel unfolds rather than appearing */
  .nav-links[data-open="true"] a:nth-child(1) { transition-delay: 60ms; }
  .nav-links[data-open="true"] a:nth-child(2) { transition-delay: 105ms; }
  .nav-links[data-open="true"] a:nth-child(3) { transition-delay: 150ms; }
  .nav-links[data-open="true"] a:nth-child(4) { transition-delay: 195ms; }
  .nav-links[data-open="true"] a:nth-child(5) { transition-delay: 240ms; }
  .nav-links[data-open="true"] a:nth-child(6) { transition-delay: 285ms; }
  .nav-links[data-open="true"] a:nth-child(7) { transition-delay: 330ms; }

  .nav-cta { margin-top: 1rem; text-align: center; border-color: var(--burnt); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links,
  .nav-links a,
  .nav-toggle i { transition: none !important; }
  .nav-links[data-open="true"] a { transition-delay: 0s !important; }
}

/* --------------------------------------------------------------------------
   Hero — copy left, standing figure right, both real grid items
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #F2F0EB;
  /* a lifted charcoal that settles back to the site black at the bottom edge,
     so the next section joins without a visible step */
  background:
    radial-gradient(115% 78% at 74% 16%, #232128 0%, #1A191E 42%, #101013 74%, #0B0B0A 100%);
}

/* blueprint grid — the architect's surface, faded out at the edges */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(242, 240, 235, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 240, 235, 0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(85% 72% at 64% 26%, #000 0%, rgba(0,0,0,0.5) 52%, transparent 82%);
  mask-image: radial-gradient(85% 72% at 64% 26%, #000 0%, rgba(0,0,0,0.5) 52%, transparent 82%);
}

.hero-in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: end;
  min-height: min(96vh, 960px);
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3rem));
}

.hero-copy {
  grid-column: 1 / 7;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero-copy h1 {
  /* a tight block, not a sprawl — this is what was crowding the figure */
  max-width: 13ch;
}
.hero-copy h1 .accent { color: var(--burnt-lift); }
.hero-sub { max-width: 42ch; margin-top: clamp(1.6rem, 4vw, 2.6rem); }

.hero-figure {
  grid-column: 7 / -1;
  justify-self: center;
  align-self: end;
  position: relative;
  display: flex;
  align-items: flex-end;
  /* The container owns the height; the image fills it and takes whatever
     width its aspect gives. Sizing the image itself doesn't work — with `w`
     descriptors the browser lays it out at the density-corrected intrinsic
     size of the candidate it picked, so max-height never binds. */
  width: 100%;
  height: clamp(420px, 88vh, 900px);
  justify-content: center;
  transform: translate3d(calc(var(--mx, 0) * -16px), var(--sy, 0px), 0);
  transition: transform 700ms cubic-bezier(0.16, 0.8, 0.28, 1);
  will-change: transform;
}
.hf-in { display: block; height: 100%; }
.hero-figure img {
  position: relative;
  z-index: 2;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
  /* a real shadow that follows the silhouette, not a box */
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.55));
}

/* torso crops dissolve into the section instead of ending in a hard cut */
.hero-figure.fade-b img,
.cut.fade-b img {
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
}

.hero-figure::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 4%;
  width: 190%;
  height: 84%;
  transform: translateX(calc(-50% + var(--mx, 0) * 26px));
  background: radial-gradient(
    ellipse 42% 48% at 50% 50%,
    rgba(194, 85, 31, 0.32),
    rgba(194, 85, 31, 0.08) 52%,
    transparent 74%
  );
  pointer-events: none;
}
.hero-figure.fade-b::after { display: none; }
.hero-figure::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
  width: 62%;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.62), transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-thesis {
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2.1rem);
  line-height: 1.16;
  color: var(--fg, #F2F0EB);
  max-width: 26ch;
  margin: 0;
}

.scroll-cue {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.45);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 30px;
  background: linear-gradient(rgba(242, 240, 235, 0.5), transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue i { animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
  @keyframes cue {
    0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
  }
  .hf-in { animation: standUp 1300ms var(--ease) 240ms both; }
  @keyframes standUp {
    from { opacity: 0; transform: translateY(30px) scale(0.99); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-figure { transform: none; transition: none; }
}

/* --- stacked below the split point ------------------------------------- */

@media (max-width: 940px) {
  .hero-in {
    grid-template-columns: 1fr;
    min-height: 0;
    align-items: start;
    row-gap: 0;
  }
  .hero-copy {
    grid-column: 1 / -1;
    padding-bottom: clamp(1.5rem, 5vw, 2.5rem);
  }
  .hero-copy h1 { max-width: 15ch; }
  .hero-figure {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(80%, 430px);
    height: clamp(320px, 52vh, 500px);
    margin-top: clamp(0.5rem, 3vw, 1.5rem);
  }
  .hero-figure::before { width: 165%; }
  .scroll-cue { display: none; }
}

@media (max-width: 520px) {
  .hero-figure { width: min(88%, 340px); height: clamp(280px, 44vh, 400px); }
}

/* --------------------------------------------------------------------------
   Cutouts — the subject on transparent ground
   -------------------------------------------------------------------------- */

.cut {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
}
.cut img {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 100%;
  height: auto;
}

/* warm bloom behind him, so he isn't floating on flat colour */
.cut::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 4%;
  width: 118%;
  height: 88%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 46% 52% at 50% 50%,
    color-mix(in srgb, var(--burnt) 26%, transparent),
    transparent 72%
  );
  pointer-events: none;
}
/* the ground shadow that stops him hovering */
.cut::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
  width: 56%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 72%);
  filter: blur(7px);
  pointer-events: none;
}
.s-light .cut::before {
  background: radial-gradient(
    ellipse 46% 52% at 50% 50%,
    color-mix(in srgb, var(--burnt) 15%, transparent),
    transparent 72%
  );
}
.s-light .cut::after {
  background: radial-gradient(ellipse at center, rgba(19, 18, 17, 0.3), transparent 72%);
}
.cut.no-bloom::before { display: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--t-sm);
  font-weight: 500;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--burnt);
  background: var(--burnt);
  color: #FFF6F0;
  cursor: pointer;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), transform 200ms var(--ease);
}
.btn:hover { background: var(--burnt-lift); border-color: var(--burnt-lift); }
.btn:active { transform: translateY(1px); }
.btn .arw { transition: transform 280ms var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn.ghost {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--fg);
}
.btn.ghost:hover { border-color: var(--fg); background: transparent; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
}
.tlink .arw { transition: transform 280ms var(--ease); }
.tlink:hover .arw { transform: translate(3px, -3px); }

/* --------------------------------------------------------------------------
   Section heading — small label left, statement right
   -------------------------------------------------------------------------- */

.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 3.6rem);
}
.sec-head .label { grid-column: 1 / 4; padding-top: 0.55rem; }
.sec-head .sec-body { grid-column: 4 / -1; }
.sec-head .sec-body p { margin-top: 1.1rem; }
@media (max-width: 880px) {
  .sec-head .label, .sec-head .sec-body { grid-column: 1 / -1; }
  .sec-head .label { padding-top: 0; }
}

/* --------------------------------------------------------------------------
   Arrow rows — the reference's list pattern
   -------------------------------------------------------------------------- */

.rows { border-top: 1px solid var(--rule); }

.row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 0 var(--gap);
  align-items: center;
  padding: clamp(1.1rem, 2.4vw, 1.9rem) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  width: 100%;
  background: none;
  border-left: 0; border-right: 0; border-top: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.row::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: var(--card);
  opacity: 0;
  transition: opacity 320ms var(--ease);
  z-index: 0;
  border-radius: 6px;
}
.row:hover::before { opacity: 0.55; }
.row > * { position: relative; z-index: 1; }

.row-n {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: var(--accent);
}
.row-main { display: grid; gap: 0.35rem; }
.row-title {
  font-size: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: transform 400ms var(--ease);
}
.row:hover .row-title { transform: translateX(6px); }
.row-sub { font-size: var(--t-sm); color: var(--fg-soft); max-width: 56ch; }

.row-arw {
  width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--fg);
  transition: background 300ms var(--ease), border-color 300ms var(--ease), transform 400ms var(--ease), color 300ms var(--ease);
  flex: none;
}
.row:hover .row-arw {
  background: var(--burnt);
  border-color: var(--burnt);
  color: #FFF6F0;
  transform: rotate(45deg);
}

/* wrapped rows own the divider so the panel sits below it */
.row-wrap { border-bottom: 1px solid var(--rule); }
.row-wrap .row { border-bottom: 0; }

/* expandable body */
.row-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 0;
  transition: height 460ms var(--ease);
}
.row-panel-in {
  padding: 0.4rem 0 1.5rem;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: var(--gap);
}
.row-panel-in .panel-body { color: var(--fg-soft); max-width: 62ch; font-size: var(--t-sm); }
.row-panel-in .panel-out {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.row-panel-in .panel-out .k {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.row-panel-in .panel-out .v { font-size: 1.05rem; color: var(--accent); }

@media (max-width: 700px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row-n { display: none; }
  .row-panel-in { grid-template-columns: 1fr; }
  .row-arw { width: 2.1rem; height: 2.1rem; }
}

/* --------------------------------------------------------------------------
   Figures — rounded media, notched corner
   -------------------------------------------------------------------------- */

.figure {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card);
  position: relative;
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure.notch {
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  border-radius: var(--r);
}
.figure.tall { aspect-ratio: 4 / 5; }
.figure.wide { aspect-ratio: 16 / 10; }
.figure.portrait { aspect-ratio: 3 / 4; }

.figure-cap {
  position: absolute;
  left: 1rem; bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.85);
  background: rgba(11, 11, 10, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Carousel
   -------------------------------------------------------------------------- */

.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
  flex: 0 0 clamp(230px, 27vw, 340px);
  scroll-snap-align: start;
  display: grid;
  gap: 0.9rem;
}
.carousel-item .figure { aspect-ratio: 3 / 4; }
.carousel-meta { display: grid; gap: 0.3rem; }
.carousel-meta .ct { font-size: 1.05rem; font-weight: 400; }
.carousel-meta .cd { font-size: var(--t-sm); color: var(--fg-soft); }

.carousel-nav { display: flex; gap: 0.5rem; margin-top: 1.6rem; }
.carousel-nav button {
  width: 2.7rem; height: 2.7rem;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 240ms var(--ease), border-color 240ms var(--ease), color 240ms var(--ease);
}
.carousel-nav button:hover { background: var(--burnt); border-color: var(--burnt); color: #FFF6F0; }

/* --------------------------------------------------------------------------
   Stat / tabular rows
   -------------------------------------------------------------------------- */

.trows { border-top: 1px solid var(--rule); }
.trow {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: 0.4rem var(--gap);
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  font-size: var(--t-sm);
}
.trow .tk { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.1em; color: var(--fg-mute); }
.trow .tv { color: var(--fg); }
.trow .te { color: var(--fg-soft); }
@media (max-width: 700px) {
  .trow { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Positioning Matrix
   -------------------------------------------------------------------------- */

.matrix-shell { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.matrix-col { grid-column: 1 / 7; }
.matrix-side { grid-column: 8 / -1; }
@media (max-width: 1000px) { .matrix-col, .matrix-side { grid-column: 1 / -1; } }

.matrix-frame { position: relative; padding-left: 2rem; }
.matrix {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 580px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  overflow: hidden;
}
.matrix::before, .matrix::after {
  content: "";
  position: absolute;
  background: var(--rule);
  pointer-events: none;
  z-index: 2;
}
.matrix::before { left: 0; right: 0; top: 50%; height: 1px; }
.matrix::after { top: 0; bottom: 0; left: 50%; width: 1px; }

.quad {
  padding: clamp(0.85rem, 2vw, 1.4rem);
  display: grid;
  align-content: start;
  gap: 0.4rem;
  transition: background 380ms var(--ease);
  min-width: 0;
}
.quad[data-live="true"] { background: color-mix(in srgb, var(--burnt) 16%, transparent); }
.quad .q-name { font-size: clamp(1rem, 1.9vw, 1.45rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.quad[data-live="true"] .q-name { color: var(--accent); }
.quad .q-cond { font-size: 0.76rem; line-height: 1.4; color: var(--fg-mute); max-width: 26ch; }
.quad.fragile { grid-area: 1 / 1; }
.quad.owned { grid-area: 1 / 2; }
.quad.commodity { grid-area: 2 / 1; }
.quad.undercharger { grid-area: 2 / 2; }

.plot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--burnt-lift);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--burnt) 28%, transparent), 0 0 28px 6px color-mix(in srgb, var(--burnt) 45%, transparent);
  transform: translate(-50%, 50%);
  left: 50%; bottom: 50%;
  opacity: 0;
  transition: left 900ms var(--ease), bottom 900ms var(--ease), opacity 400ms var(--ease);
  pointer-events: none;
  z-index: 3;
}
.plot[data-on="true"] { opacity: 1; }

.axis-y { position: absolute; left: 0; top: 0; bottom: 3rem; width: 1.4rem; display: flex; align-items: center; justify-content: center; }
.axis-y span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  white-space: nowrap;
}
.matrix-axes {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.85rem;
  max-width: 580px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.matrix-axes .mid { color: var(--fg-soft); }

/* diagnostic */
.diag { border-top: 1px solid var(--rule); }
.diag-q {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr) auto;
  gap: 0.6rem 1rem;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}
.diag-q .qn { font-family: var(--mono); font-size: var(--t-xs); color: var(--accent); }
.diag-q .qt { font-size: var(--t-sm); line-height: 1.45; color: var(--fg-soft); }
.diag-toggle { display: flex; gap: 0.35rem; }
.diag-toggle button {
  font-size: 0.72rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--fg-soft);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 200ms var(--ease);
}
.diag-toggle button:hover { border-color: var(--fg); color: var(--fg); }
.diag-toggle button[aria-pressed="true"] { background: var(--burnt); border-color: var(--burnt); color: #FFF6F0; }
@media (max-width: 620px) {
  .diag-q { grid-template-columns: 1.8rem minmax(0, 1fr); }
  .diag-toggle { grid-column: 2; }
}

.diag-result {
  border: 1px solid var(--rule-strong);
  border-radius: var(--r);
  padding: clamp(1.2rem, 3vw, 1.9rem);
  display: grid;
  gap: 0.8rem;
  background: var(--card);
  margin-top: 1.6rem;
}
.diag-result[hidden] { display: none; }
.diag-result .r-label { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); }
.diag-result .r-name { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1; }
.diag-result .r-cond { font-size: var(--t-sm); color: var(--fg); }
.diag-result .r-detail { font-size: var(--t-sm); color: var(--fg-soft); }
.diag-result .r-move { border-top: 1px solid var(--rule); padding-top: 0.8rem; font-size: 1.1rem; color: var(--accent); font-weight: 300; }

/* --------------------------------------------------------------------------
   Empty proof state
   -------------------------------------------------------------------------- */

.proof-empty {
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  display: grid;
  gap: 0.7rem;
  max-width: 58ch;
}
.proof-empty p { color: var(--fg-soft); font-size: var(--t-sm); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 1.4rem; max-width: 46rem; }
.field { display: grid; gap: 0.45rem; }
.field-row { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } }

label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
label .req { color: var(--accent); }

input, select, textarea {
  font-family: var(--sans);
  font-size: var(--t-base);
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 0.65rem 0;
  width: 100%;
  border-radius: 0;
  transition: border-color 200ms var(--ease);
}
textarea { resize: vertical; min-height: 6rem; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--accent); }
select option { background: #141312; color: #F2F0EB; }
.s-light select option { background: #EFEDE8; color: #131211; }
::placeholder { color: var(--fg-mute); opacity: 1; }

.form-note { font-size: var(--t-sm); color: var(--fg-mute); max-width: 52ch; }

/* honeypot — off-screen, never focusable, never announced */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: var(--t-sm);
  margin: 0;
  color: var(--fg-soft);
}
.form-status:empty { display: none; }
.form-status[data-tone="error"] { color: var(--accent); }

button[type="submit"][disabled] { opacity: 0.6; cursor: progress; }

/* once sent, the fields step aside for the confirmation */
.form[data-sent="true"] .field,
.form[data-sent="true"] .field-row,
.form[data-sent="true"] .btn-row,
.form[data-sent="true"] .form-note,
.form[data-sent="true"] .form-status,
.capture[data-sent="true"] .capture-row,
.capture[data-sent="true"] .form-note,
.capture[data-sent="true"] .form-status { display: none; }

.form-sent {
  border: 1px solid var(--rule-strong);
  border-left: 2px solid var(--accent);
  border-radius: var(--r);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  display: grid;
  gap: 0.55rem;
  max-width: 46rem;
}
.form-sent-head {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.form-sent-body { margin: 0; font-size: var(--t-sm); color: var(--fg-soft); max-width: 54ch; }

.capture { display: grid; gap: 0.9rem; max-width: 34rem; }
.capture-row { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.capture-row input { flex: 1 1 15rem; }

/* --------------------------------------------------------------------------
   Decision block
   -------------------------------------------------------------------------- */

.decide { padding-block: clamp(3.5rem, 8vw, 7rem); }
.decide-in {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: end;
}
.decide h2 { grid-column: 1 / 8; max-width: 15ch; }
.decide .decide-act { grid-column: 9 / -1; display: grid; gap: 0.9rem; justify-items: start; }
@media (max-width: 880px) { .decide h2, .decide .decide-act { grid-column: 1 / -1; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.foot { background: #0B0B0A; color: #F2F0EB; padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.8rem; border-top: 1px solid rgba(242,240,235,0.12); }
.foot .wrap { --fg-mute: #6E6C66; --fg-soft: #A5A29A; --rule: rgba(242,240,235,0.12); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.foot-brand { grid-column: 1 / 5; display: grid; gap: 0.8rem; align-content: start; }
.foot-brand .fb-mark { font-size: 1.6rem; font-weight: 300; letter-spacing: -0.02em; }
.foot-brand p { font-size: var(--t-sm); color: #A5A29A; max-width: 30ch; }
.foot-col { grid-column: span 2; display: grid; gap: 0.55rem; align-content: start; }
.foot-col .fc-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: #6E6C66; margin-bottom: 0.3rem; }
.foot-col a { font-size: var(--t-sm); color: #A5A29A; transition: color 180ms var(--ease); }
.foot-col a:hover { color: var(--burnt-lift); }
.foot-base {
  margin-top: clamp(2rem, 5vw, 3.2rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(242,240,235,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6E6C66;
}
@media (max-width: 880px) {
  .foot-brand { grid-column: 1 / -1; }
  .foot-col { grid-column: span 3; }
}
@media (max-width: 560px) { .foot-col { grid-column: 1 / -1; } }

/* --------------------------------------------------------------------------
   Writing index
   -------------------------------------------------------------------------- */

.tagpill {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--fg-mute);
  border: 1px solid var(--rule); border-radius: 999px; padding: 0.2rem 0.6rem;
  display: inline-block;
}
.tagpill.draft { color: var(--accent); border-color: color-mix(in srgb, var(--burnt) 50%, transparent); }

/* --------------------------------------------------------------------------
   Bio blocks
   -------------------------------------------------------------------------- */

.bio-block {
  border-top: 1px solid var(--rule);
  padding: 1.3rem 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.6rem var(--gap);
}
.bio-block .bl-label { grid-column: 1 / 3; }
.bio-block .bl-text { grid-column: 3 / 10; color: var(--fg-soft); }
.bio-block .bl-act { grid-column: 11 / -1; }
@media (max-width: 880px) {
  .bio-block .bl-label, .bio-block .bl-text, .bio-block .bl-act { grid-column: 1 / -1; }
}
.copy-btn {
  font-size: 0.72rem; font-weight: 500; background: transparent; cursor: pointer;
  border: 1px solid var(--rule-strong); color: var(--fg-soft);
  padding: 0.35rem 0.8rem; border-radius: 999px;
  transition: all 200ms var(--ease);
}
.copy-btn:hover { border-color: var(--burnt); color: var(--fg); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 760ms var(--ease), transform 760ms var(--ease);
  }
  [data-reveal].in { opacity: 1; transform: none; }
  [data-reveal][data-d="1"] { transition-delay: 90ms; }
  [data-reveal][data-d="2"] { transition-delay: 180ms; }
  [data-reveal][data-d="3"] { transition-delay: 270ms; }

  .hero [data-load] { opacity: 0; transform: translateY(20px); animation: rise 1000ms var(--ease) forwards; }
  .hero [data-load="1"] { animation-delay: 80ms; }
  .hero [data-load="2"] { animation-delay: 220ms; }
  .hero [data-load="3"] { animation-delay: 360ms; }
  .hero [data-load="4"] { animation-delay: 500ms; }
}

@keyframes rise { to { opacity: 1; transform: none; } }

.skip { position: absolute; left: -9999px; background: var(--burnt); color: #fff; padding: 0.7rem 1.1rem; z-index: 100; }
.skip:focus { left: var(--pad-x); top: 0.6rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Premium layer — grain, wipe reveals, marquee
   ========================================================================== */

/* --- film grain: keeps large flat grounds from looking like flat colour --- */

.s-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
.s-light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
/* content must sit above the grain */
.s > .wrap,
.decide > .wrap { position: relative; z-index: 1; }

/* --- cutouts wipe up into place rather than just fading ------------------ */

@media (prefers-reduced-motion: no-preference) {
  .cut[data-reveal] {
    opacity: 1;
    transform: none;
  }
  .cut[data-reveal] img {
    clip-path: inset(100% 0 0 0);
    transform: scale(1.05);
    transition: clip-path 1200ms var(--ease), transform 1500ms var(--ease);
  }
  .cut[data-reveal].in img {
    clip-path: inset(0 0 0 0);
    transform: none;
  }
  /* the bloom fades in behind, a beat later */
  .cut[data-reveal]::before { opacity: 0; transition: opacity 900ms var(--ease) 320ms; }
  .cut[data-reveal].in::before { opacity: 1; }
  .cut[data-reveal]::after { opacity: 0; transition: opacity 700ms var(--ease) 620ms; }
  .cut[data-reveal].in::after { opacity: 1; }
}

/* a framed emphasis crop — used where the figure is zoomed in */
.cut-frame {
  position: relative;
  /* without a cap this fills the column on narrow screens and the crop turns
     into a forehead */
  max-width: 440px;
  border-radius: var(--r);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 50% 30%, color-mix(in srgb, var(--burnt) 16%, transparent), transparent 70%),
    var(--card);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 4 / 5;
}
.cut-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}
.cut-frame .frame-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.9);
  background: rgba(11, 11, 10, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
@media (prefers-reduced-motion: no-preference) {
  .cut-frame[data-reveal] img {
    clip-path: inset(100% 0 0 0);
    transform: scale(1.08);
    transition: clip-path 1200ms var(--ease), transform 1600ms var(--ease);
  }
  .cut-frame[data-reveal].in img { clip-path: inset(0 0 0 0); transform: none; }
}

/* --- topics marquee ------------------------------------------------------ */

.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--rule);
  padding-block: clamp(1rem, 2.4vw, 1.6rem);
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  padding-right: clamp(1.6rem, 4vw, 3.2rem);
  font-size: clamp(1.05rem, 0.9rem + 1vw, 1.9rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--fg-soft);
  transition: color 300ms var(--ease);
}
.marquee-item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.marquee:hover .marquee-item { color: var(--fg); }

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 46s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
}
