/* ── Tokens (ratios computed in DESIGN-PLAN.md D4) ────────────────────── */
:root {
  --paper:    #FBFAF7;
  --shelf:    #EDE7DA;
  --ink:      #14110E;
  --muted:    #5C554C;
  --border:   #82786C;
  --hairline: #D8D2C6;   /* decorative rules ONLY — 1.44:1, never a boundary */
  --accent:   #B23A17;
  --error:    #8F1D16;

  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --t-fast: 140ms;
  --t-mid:  320ms;
  --t-slow: 680ms;

  --track: 7fr;
  --gutter: 2fr;
  --pad: clamp(1.25rem, 3vw, 3.5rem);
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── The board: two tracks + a live gutter ────────────────────────────── */
.segment { display: grid; grid-template-columns: var(--track) var(--gutter) var(--track); align-items: stretch; }
.half { padding: clamp(2.5rem, 5vw, 5rem) var(--pad); }
.half--talent { background: var(--paper); }
.half--brand  { background: var(--shelf); font-family: 'Newsreader', ui-serif, Georgia, serif; }
.half--brand h2, .half--brand h3 { font-family: 'Newsreader', ui-serif, Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
.half > * { max-width: var(--measure); }

/* The gutter is the concept made visible: paper on the left, shelf on the
   right, a hairline down the middle. */
.gutter { background: linear-gradient(90deg, var(--paper) 0 50%, var(--shelf) 50% 100%); position: relative; }
.gutter::after { content: ''; position: absolute; inset-block: 0; left: 50%; width: 1px; background: var(--hairline); }
/* Convergence mark: the one place the accent is allowed to sit on the rule. */
.gutter::before { content: ''; position: absolute; top: clamp(2rem, 4vw, 3.5rem); left: 50%; width: 9px; height: 9px;
  margin-left: -4px; border-radius: 50%; background: var(--accent); z-index: 1; }

/* ── Threshold: the board is legible in the first viewport ───────────── */
.threshold { border-bottom: 1px solid var(--hairline); }
.threshold__mark { padding: clamp(1.25rem, 2.5vw, 2rem) var(--pad); border-bottom: 1px solid var(--hairline); }
.wordmark { font-weight: 800; font-size: clamp(1rem, 1.4vw, 1.25rem); letter-spacing: .18em; text-transform: uppercase; }

.threshold__board { display: grid; grid-template-columns: var(--track) var(--gutter) var(--track); align-items: stretch; }
.threshold__half { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(.75rem, 1.5vw, 1.25rem);
  padding: clamp(2rem, 4vw, 3.5rem) var(--pad) clamp(2.5rem, 5vw, 4rem); }
.claim-a, .claim-b { font-size: clamp(1.75rem, 3.1vw, 3.1rem); line-height: 1.05; max-width: 15ch; }
.claim-a { font-weight: 800; letter-spacing: -0.035em; }
/* The brand side speaks in its own register — in the headline itself. */
.claim-b { font-family: 'Newsreader', ui-serif, Georgia, serif; font-weight: 300; font-style: italic; letter-spacing: -0.02em; }
.threshold__line { color: var(--muted); max-width: 40ch; font-size: 1.02rem; }

.door { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.35rem; text-decoration: none;
  border: 1px solid var(--border); border-radius: 2px; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.door:hover { background: color-mix(in srgb, var(--accent) 8%, var(--paper)); border-color: var(--accent); }
.door--brand { font-family: 'Newsreader', ui-serif, Georgia, serif; }
.door--brand:hover { background: color-mix(in srgb, var(--accent) 8%, var(--shelf)); }
.door__label { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 800; }
.door--brand .door__label { font-weight: 600; }
.door__sub { color: var(--muted); font-size: .9rem; }
.door__label::after { content: ' \2192'; color: var(--accent); }

.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.half h2 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); margin-bottom: .5rem; }
.lede { color: var(--muted); }

/* ── Rows: the board's grammar ────────────────────────────────────────── */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 3.5rem 1fr; gap: .25rem 1rem; padding: 1.35rem 0; border-top: 1px solid var(--hairline); }
.row:last-child { border-bottom: 1px solid var(--hairline); }
.row__index { color: var(--muted); font-size: .85rem; padding-top: .35rem; }
.row__name { font-weight: 800; font-size: 1.2rem; }
.row__body { grid-column: 2; color: var(--muted); }
.row--open .row__name { color: var(--accent); }
.row--open { background: color-mix(in srgb, var(--accent) 4%, transparent); }

.brandnote { padding: 1.35rem 0; border-top: 1px solid var(--hairline); }
.brandnote:last-child { border-bottom: 1px solid var(--hairline); }
.brandnote h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.brandnote p { color: var(--muted); }
.brandnote--open h3 { color: var(--accent); }

/* ── Bands: full-bleed, where the two tracks converge ─────────────────── */
.band { padding: clamp(3.5rem, 7vw, 6.5rem) var(--pad); border-block: 1px solid var(--hairline); background: var(--paper); }
.band__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: clamp(2rem, 4vw, 3rem); text-align: center; }
.link-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem, 3vw, 3rem); max-width: 1100px; margin: 0 auto; }
.link-row__end { display: flex; flex-direction: column; gap: .3rem; }
.link-row__end--talent { text-align: right; }
.link-row__end--brand { font-family: 'Newsreader', ui-serif, Georgia, serif; }
.link-row__kind { font-size: clamp(1.05rem, 1.8vw, 1.5rem); font-weight: 800; }
.link-row__end--brand .link-row__kind { font-weight: 600; }
.link-row__detail { color: var(--muted); font-size: .95rem; }
.link-row__join { width: clamp(3rem, 12vw, 9rem); height: 1px; background: var(--hairline); position: relative; }
.link-row__mark { position: absolute; inset-block: -4px; left: 50%; width: 9px; margin-left: -4.5px; background: var(--accent); border-radius: 50%; height: 9px; top: -4px; }

.steps { list-style: none; margin: 0; padding: 0; }
/* The steps sit on the board's own tracks: talent left, number on the gutter,
   brand right. The band IS the convergence, not a numbered list about it. */
.step { display: grid; grid-template-columns: var(--track) var(--gutter) var(--track);
  align-items: center; border-top: 1px solid var(--hairline); }
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step > p { padding: clamp(1.35rem, 2.5vw, 2rem) var(--pad); max-width: var(--measure); font-size: clamp(1rem, 1.25vw, 1.15rem); }
.step__talent { text-align: right; margin-left: auto; }
.step__brand { font-family: 'Newsreader', ui-serif, Georgia, serif; }
.step__n { grid-column: 2; justify-self: center; color: var(--accent); font-weight: 800; font-size: .95rem; letter-spacing: .1em; }
.step--both { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.step--both .step__n { grid-column: 1; margin-top: clamp(1.35rem, 2.5vw, 2rem); }
.step--both p { padding-top: .35rem; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .35rem; }
.form__sub { color: var(--muted); margin-bottom: 2rem; }
.field { margin: 0 0 1.35rem; display: flex; flex-direction: column; gap: .4rem; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
label { font-weight: 500; font-size: .95rem; }
.half--brand label, .half--brand legend { font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif; }
.req { color: var(--muted); font-weight: 400; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
input[type=text], input[type=email] {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--border); border-radius: 2px;
  padding: .75rem .85rem; min-height: 48px; width: 100%;
  transition: border-color var(--t-fast) var(--ease);
}
input[type=text]:focus, input[type=email]:focus { border-color: var(--ink); }
.field--choice { border: 1px solid var(--border); border-radius: 2px; padding: 1rem 1rem .85rem; }
.field--choice legend { font-weight: 500; font-size: .95rem; padding: 0 .4rem; }
.field--choice label, .field--check label { display: flex; align-items: center; gap: .6rem; font-weight: 400; min-height: 44px; cursor: pointer; }
input[type=radio], input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.field.is-bad input[type=text], .field.is-bad input[type=email], .field--choice.is-bad, .field--check.is-bad { border-color: var(--error); }
.field__err { color: var(--error); font-size: .9rem; }
.submit {
  font: inherit; font-weight: 800; cursor: pointer;
  background: var(--accent); color: #FFFFFF;
  border: 1px solid var(--accent); border-radius: 2px;
  padding: .9rem 1.6rem; min-height: 48px;
  transition: background var(--t-fast) var(--ease);
}
.submit:hover { background: var(--ink); border-color: var(--ink); }
.submit[disabled] { opacity: .6; cursor: progress; }
.form__msg:not(:empty) { margin-top: 1rem; padding: .85rem 1rem; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.form__msg.is-bad { border-left-color: var(--error); background: color-mix(in srgb, var(--error) 6%, transparent); color: var(--error); }

/* Motion idea 3 — the signature: a submitted form becomes a row on the board */
.committed { display: grid; grid-template-columns: 3.5rem 1fr; gap: .25rem 1rem; padding: 1.35rem 0; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.committed .row__name { color: var(--accent); }

.footer { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: baseline; padding: clamp(2.5rem, 5vw, 4rem) var(--pad); border-top: 1px solid var(--hairline); background: var(--shelf); }
.footer__mark { font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .95rem; }
.footer__line, .footer__contact { color: var(--muted); font-family: 'Newsreader', ui-serif, Georgia, serif; }

/* ── Motion idea 2 — row arrival (opt-in via .js so no-JS is never blank) ─ */
.js [data-reveal] { opacity: 0; transform: translateY(12px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }

/* ── Motion idea 1 — convergence, scrubbed to scroll, no JS ───────────── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Horizontal convergence only where the tracks actually sit side by side.
       Below 1024 the row is stacked, so a translateX would just push the
       brand end off-screen (it did: 3px overflow at 375). */
    @media (min-width: 1024px) {
      .link-row__end--talent { animation: converge-l linear both; animation-timeline: view(); animation-range: entry 15% cover 55%; }
      .link-row__end--brand  { animation: converge-r linear both; animation-timeline: view(); animation-range: entry 15% cover 55%; }
    }
    /* Same idea, correct axis: on mobile the join grows down between the two. */
    .link-row__join { animation: close-gap linear both; animation-timeline: view(); animation-range: entry 15% cover 55%; }
  }
}
@keyframes converge-l { from { transform: translateX(-7%); } to { transform: none; } }
@keyframes converge-r { from { transform: translateX(7%); } to { transform: none; } }
@keyframes close-gap  { from { opacity: .2; } to { opacity: 1; } }

/* ── Breakpoints: the tracks are the LAST thing to collapse ───────────── */
@media (max-width: 1439px) { :root { --gutter: 1fr; } }

@media (max-width: 1023px) {
  /* Interleave rather than stack: talent, brand, talent, brand. The argument
     survives the breakpoint instead of becoming two unrelated lists. */
  .segment, .threshold__board { grid-template-columns: 1fr; }
  .gutter { display: none; }
  .half { border-left: 2px solid var(--hairline); }
  .half--brand { border-left: none; border-right: 2px solid var(--accent); }
  .link-row { grid-template-columns: 1fr; gap: 1rem; text-align: left; }
  .link-row__end--talent { text-align: left; }
  .link-row__join { width: 1px; height: clamp(2rem, 8vw, 3rem); justify-self: start; margin-left: 1rem; }
  .link-row__mark { inset-block: auto; top: 50%; margin-top: -4.5px; }
  .step { grid-template-columns: 1fr; }
  .step__talent { text-align: left; margin-left: 0; }
  .step__n { grid-column: 1; justify-self: start; padding: 1rem var(--pad) 0; }
}

@media (max-width: 374px) { :root { --pad: 1rem; } }

@media (prefers-reduced-motion: reduce) {
  /* A different good design: the static board, already converged. */
  .js [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
