/* ============================================================
   HAYMAKER — the editorial layer

   A visible twelve column grid, hairline rules, marginal notes
   set in mono, figures numbered, and type that only comes in two
   sizes: large enough to be a statement, or small enough to be
   an annotation. Nothing in between.
   ============================================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 1.6vw, 28px);
}

/* Column spans. These set the END only: pairing `grid-column: span N`
   with a start silently drops the span, so span and start are kept as
   two independent properties and compose cleanly. */
.c1  { grid-column-end: span 1 }   .c2  { grid-column-end: span 2 }
.c3  { grid-column-end: span 3 }   .c4  { grid-column-end: span 4 }
.c5  { grid-column-end: span 5 }   .c6  { grid-column-end: span 6 }
.c7  { grid-column-end: span 7 }   .c8  { grid-column-end: span 8 }
.c9  { grid-column-end: span 9 }   .c10 { grid-column-end: span 10 }
.c12 { grid-column: 1 / -1 }
.s2  { grid-column-start: 2 }  .s3 { grid-column-start: 3 }
.s4  { grid-column-start: 4 }  .s5 { grid-column-start: 5 }
.s6  { grid-column-start: 6 }  .s7 { grid-column-start: 7 }
.s8  { grid-column-start: 8 }  .s9 { grid-column-start: 9 }
.s10 { grid-column-start: 10 }
.end { grid-column-end: -1 }

/* ── the marginal note ─────────────────────────────────────
   A mono annotation that hangs beside the thing it describes,
   with a rule running up to it.                              */

.note {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.dark .note, .story .note, .hero .note, .trailcta .note { color: rgba(243,242,236,.45) }
.note--rule { padding-top: 12px; border-top: 1px solid var(--hair) }
.dark .note--rule, .story .note--rule, .trailcta .note--rule { border-top-color: var(--hair-night) }

/* ── the section mark ──────────────────────────────────────
   ( 02 ) — parenthetical, the way a running head is set.      */

.mark {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
}
.mark b { font-weight: 500; color: var(--ink) }
/* every dark surface, not just the .dark utility */
.dark .mark, .story .mark, .hero .mark, .trailcta .mark { color: rgba(243,242,236,.45) }
.dark .mark b, .story .mark b, .hero .mark b, .trailcta .mark b { color: var(--on-night) }
.mark::before { content: "("; opacity: .5 }
.mark::after  { content: ")"; opacity: .5 }

/* ── the running rule ────────────────────────────────────── */

.hair { grid-column: 1 / -1; height: 1px; background: var(--hair); border: 0; margin: 0 }
.dark .hair { background: var(--hair-night) }

/* ── figures ───────────────────────────────────────────────
   An image with its number and caption hanging underneath in
   two columns, the way a plate is credited.                  */

.fig { margin: 0; display: grid; gap: 14px }
.fig__frame { position: relative; overflow: clip; border-radius: 3px; background: #0d0f12 }
.fig__frame img { width: 100%; height: 100%; object-fit: cover; display: block }
.fig__cap { display: flex; gap: 16px; justify-content: space-between; align-items: baseline }
.fig__cap p { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 44ch }
.dark .fig__cap p { color: var(--on-night-2) }

/* ── the statement ─────────────────────────────────────────
   One idea, set big, hanging on the grid rather than centred. */

.say {
  font-size: clamp(28px, 4.3vw, 62px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.say em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.012em }
.say--lg { font-size: clamp(34px, 6vw, 92px) }

/* ── the split rule row ────────────────────────────────────
   label on the left, the thing itself on the right, a hairline
   above. The workhorse of an editorial page.                  */

.entry {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) minmax(0, 7fr) minmax(0, 2.4fr);
  gap: clamp(14px, 2.4vw, 44px);
  padding-block: clamp(22px, 2.6vw, 40px);
  border-top: 1px solid var(--hair);
  align-items: start;
}
.dark .entry { border-top-color: var(--hair-night) }
.entry:last-of-type { border-bottom: 1px solid var(--hair) }
.dark .entry:last-of-type { border-bottom-color: var(--hair-night) }
.entry > span { display: block }
.entry__t { display: block; font-size: clamp(19px, 2.05vw, 31px); font-weight: 500; letter-spacing: -.032em; line-height: 1.16 }
.entry__b { display: block; margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 52ch }
.dark .entry__b { color: var(--on-night-2) }
.entry__r { display: inline-flex; align-items: baseline; gap: 9px; margin-top: 14px; font-size: 14px; font-weight: 500 }
.entry__r::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); translate: 0 -2px }
a.entry { transition: background .4s var(--ease) }
a.entry:hover { background: color-mix(in srgb, var(--ink) 3%, transparent) }
.dark a.entry:hover { background: rgba(243,242,236,.035) }

/* ── word reveal ───────────────────────────────────────────
   Words hold at zero until the line is told to speak. The last
   word travels further and takes longer, so it lands alone.    */

[data-words].is-split .word {
  display: inline-block;
  opacity: 0;
  translate: 0 .42em;
  filter: blur(13px);
  will-change: opacity, translate, filter;
}
[data-words].is-split .word--held { translate: 0 .62em; filter: blur(20px) }
[data-words].is-said .word {
  opacity: 1; translate: 0 0; filter: blur(0);
  transition:
    opacity   calc(var(--dur) * .6) var(--ease) var(--t),
    translate var(--dur) var(--ease-out) var(--t),
    filter    calc(var(--dur) * .75) var(--ease) var(--t);
}
@media (prefers-reduced-motion: reduce) {
  [data-words].is-split .word { opacity: 1; translate: none; filter: none }
}

/* ── the projector plate ───────────────────────────────────
   The <img> holds the frame until WebGL takes it over, then
   steps aside. If the context never comes up it simply stays.  */

.plate { position: relative; overflow: clip; background: #05070a }
.plate img,
.plate canvas { position: absolute; inset: 0; width: 100%; height: 100% }
.plate img { object-fit: cover; transition: opacity .6s var(--ease) }
.plate canvas { opacity: 0; transition: opacity .8s var(--ease) }
.plate.is-lit canvas { opacity: 1 }
.plate.is-lit img { opacity: 0 }

@media (max-width: 700px) { .note { letter-spacing: .12em } }
@media (max-width: 860px) {
  .grid > [class*="c"] { grid-column: 1 / -1 }
  .grid > [class*="s"] { grid-column-start: 1 }
  .entry { grid-template-columns: 1fr; gap: 10px }
  .entry > .note:last-child { order: -1 }
}

/* ── the logo wall ─────────────────────────────────────────
   Names sitting in a drawn grid, the way a client list is set
   on a contact sheet: dashed rules, one name per cell, a small
   status note under the ones that have one.                   */

.wall { padding-block: clamp(48px, 6vw, 92px) }
.wall__lede { text-align: center; margin-bottom: clamp(24px, 3vw, 44px) }

.wall__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px dashed var(--hair);
  border-left: 1px dashed var(--hair);
}
.dark .wall__grid { border-color: var(--hair-night) }

.wall__cell {
  position: relative;
  display: grid; place-items: center; align-content: center; gap: 12px;
  min-height: clamp(130px, 15vw, 196px);
  padding: clamp(18px, 2vw, 30px);
  border-right: 1px dashed var(--hair);
  border-bottom: 1px dashed var(--hair);
  transition: background .35s var(--ease);
}
.dark .wall__cell { border-color: var(--hair-night) }
a.wall__cell:hover { background: color-mix(in srgb, var(--ink) 3.5%, transparent) }
.dark a.wall__cell:hover { background: rgba(243,242,236,.04) }

/* the name is the logo: set once, in the house face, at one size */
.wall__name {
  font-size: clamp(17px, 1.65vw, 25px);
  font-weight: 600;
  letter-spacing: -.038em;
  line-height: 1;
  white-space: nowrap;
  transition: opacity .35s var(--ease);
}
.wall__grid:hover .wall__cell:not(:hover) .wall__name { opacity: .38 }
.wall__tag {
  position: absolute; left: 50%; translate: -50% 0; bottom: clamp(14px, 1.6vw, 22px);
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap;
}
.dark .wall__tag { color: rgba(243,242,236,.4) }
.wall__mark { width: 20px; height: 20px; flex: none; opacity: .9 }

@media (max-width: 900px) { .wall__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 460px) { .wall__grid { grid-template-columns: 1fr } }

/* ── the offer panel ───────────────────────────────────────
   One package, stated plainly, with the number doing the work. */

.offer {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  overflow: clip;
}
.dark .offer { border-color: var(--hair-night) }
.offer__say { padding: clamp(26px, 3.4vw, 56px); display: grid; align-content: center; gap: 18px }
.offer__fig {
  padding: clamp(26px, 3.4vw, 56px);
  display: grid; align-content: center; gap: 14px;
  border-left: 1px solid var(--hair);
  background: color-mix(in srgb, var(--lime) 11%, transparent);
}
.dark .offer__fig { border-left-color: var(--hair-night); background: rgba(201,242,74,.07) }
.offer__n {
  font-size: clamp(46px, 7.4vw, 108px); font-weight: 500;
  letter-spacing: -.05em; line-height: .9;
}
.offer__n sub { font-size: .3em; font-weight: 500; letter-spacing: -.02em; vertical-align: baseline; margin-left: .1em }
.offer ul { display: grid; gap: 10px; margin-top: 4px }
.offer li { display: grid; grid-template-columns: 13px 1fr; gap: 11px; font-size: 15px; line-height: 1.5; color: var(--ink-2) }
.dark .offer li { color: var(--on-night-2) }
.offer li::before { content: ""; width: 7px; height: 7px; background: var(--lime); margin-top: .55em }

@media (max-width: 820px) {
  .offer { grid-template-columns: 1fr }
  .offer__fig { border-left: 0; border-top: 1px solid var(--hair) }
  .dark .offer__fig { border-top-color: var(--hair-night) }
}

/* ── proof ─────────────────────────────────────────────────
   One number, one sentence of what it was, one of how. Nothing
   else lives in this section.                                 */

.proof { margin: 0; display: grid; gap: clamp(14px, 1.8vw, 22px) }
.proof__n {
  font-size: clamp(40px, 5.6vw, 82px);
  font-weight: 500; letter-spacing: -.05em; line-height: .92;
}
.proof__n span { color: var(--lime); font-size: .42em; letter-spacing: -.02em }
.proof figcaption { display: grid; gap: 12px; justify-items: start; padding-top: clamp(14px,1.8vw,20px); border-top: 1px solid var(--hair) }
.dark .proof figcaption { border-top-color: var(--hair-night) }
.proof__t { font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; letter-spacing: -.024em; max-width: 26ch }
.proof__b { font-size: 15px; line-height: 1.62; color: var(--ink-2); max-width: 46ch }
.dark .proof__b { color: var(--on-night-2) }

/* ── the article ───────────────────────────────────────────
   One column, wide margins, and a rule under every heading.
   Nothing else; a note is a note.                            */

.article { max-width: 68ch }
.article h2 {
  margin: clamp(38px, 4.6vw, 68px) 0 clamp(14px, 1.6vw, 20px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
  font-size: clamp(19px, 1.9vw, 26px); font-weight: 500; letter-spacing: -.03em;
}
.article p { font-size: clamp(16px, 1.25vw, 17.5px); line-height: 1.72; color: var(--ink-2) }
.article p + p { margin-top: 1.05em }
.article p strong { font-weight: 500; color: var(--ink) }
.article ul { display: grid; gap: 11px; margin-top: 1.05em }
.article li { display: grid; grid-template-columns: 15px 1fr; gap: 12px; font-size: 16px; line-height: 1.62; color: var(--ink-2) }
.article li::before { content: ""; width: 7px; height: 7px; background: var(--ink-3); margin-top: .58em }
.article blockquote {
  margin: clamp(28px,3.4vw,48px) 0;
  font-family: var(--serif); font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.34; letter-spacing: -.012em; color: var(--ink);
}
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px }
.article__end { margin-top: clamp(44px,5vw,76px); padding-top: clamp(20px,2.4vw,30px); border-top: 1px solid var(--hair) }

/* ── marginalia ────────────────────────────────────────────
   Not a highlighter pen. The vocabulary here is a proof editor's:
   a fine rule struck through a word, a hairline drawn under
   another, and a leader running out to a note in the margin. One
   accent, used thin, and never more than a hairline wide.
   ============================================================ */

.mk { position: relative; display: inline-block; white-space: nowrap }

/* struck: a single fine rule, and the word steps back behind it */
.mk--strike {
  color: rgba(243,242,236,.34);
  transition: color .8s var(--ease) var(--d, 0ms);
}
.mk--strike::after {
  content: ""; position: absolute; left: -.06em; right: -.06em; top: 54%;
  height: 1px; background: currentColor;
  transform-origin: left; scale: 0 1;
  transition: scale .72s var(--ease-out) var(--d, 0ms);
}
.is-marked .mk--strike::after { scale: 1 1 }

/* underscored: a hairline in the accent, set below the baseline */
.mk--rule::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.14em;
  height: 1px; background: var(--lime);
  transform-origin: left; scale: 0 1;
  transition: scale .72s var(--ease-out) var(--d, 0ms);
}
.is-marked .mk--rule::after { scale: 1 1 }

/* the phrase the whole page turns on: set in the serif italic, in the
   accent, with a rule under it. No block of colour behind the type. */
.mk--turn {
  color: var(--lime);
  font-style: italic;
}
.mk--turn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.16em;
  height: 1.5px; background: var(--lime);
  transform-origin: left; scale: 0 1;
  transition: scale .8s var(--ease-out) var(--d, 0ms);
}
.is-marked .mk--turn::after { scale: 1 1 }

/* ── the margin note ───────────────────────────────────────
   Marginalia sits beside the line, in the gutter, the way a note
   in a printed book does. It is not tethered to the word by a
   line drawn through the text — that is a diagram, not a note.
   The word carries a fine dotted rule; the note carries the
   comment; the eye does the joining.

   Vertical placement is measured in JS, because the note has to
   line up with whichever line the word ended up on.             */

.manifesto { position: relative }

.gloss { position: relative; white-space: nowrap }
.gloss::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.1em;
  height: 1px;
  background-image: linear-gradient(to right, rgba(243,242,236,.5) 0 2px, transparent 2px 5px);
  background-size: 5px 1px;
  transform-origin: left; scale: 0 1;
  transition: scale .62s var(--ease-out) var(--d2, 0ms);
}
.is-marked .gloss::after { scale: 1 1 }

.gloss__n {
  position: absolute; top: 0;
  width: clamp(120px, 12vw, 170px);
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; line-height: 1.75;
  color: rgba(243,242,236,.36);
  white-space: normal;
  opacity: 0;
  transition: opacity .7s var(--ease) var(--d2, 0ms), translate .8s var(--ease-out) var(--d2, 0ms);
  pointer-events: none;
}
.gloss--l .gloss__n { text-align: right; translate: 8px 0; margin-right: clamp(26px, 3vw, 52px) }
.gloss--r .gloss__n { text-align: left; translate: -8px 0; margin-left: clamp(26px, 3vw, 52px) }
.is-marked .gloss__n { opacity: 1; translate: 0 0 }

/* below 1180px there is no gutter to hang a note in */
@media (max-width: 1180px) {
  .gloss__n { display: none }
}

@media (prefers-reduced-motion: reduce) {
  .mk::after, .gloss::after { scale: 1 1 }
  .gloss__n { opacity: 1; translate: 0 0 }
}

/* ── the ledger ────────────────────────────────────────────
   Three claims as facing columns with the number set enormous
   behind the label, the way a contents page numbers a chapter.
   The rule between them fills as the eye moves down.           */

.ledger { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 }
.ledger__i {
  position: relative;
  display: grid; align-content: start; gap: 16px;
  padding: clamp(30px, 3.6vw, 56px) clamp(20px, 2.4vw, 42px);
  border-left: 1px solid var(--hair);
  transition: background .5s var(--ease);
}
.dark .ledger__i { border-left-color: var(--hair-night) }
.ledger__i:first-child { border-left: 0; padding-left: 0 }
.ledger__i:last-child { padding-right: 0 }
.ledger__i:hover { background: color-mix(in srgb, var(--ink) 3%, transparent) }
.dark .ledger__i:hover { background: rgba(243,242,236,.035) }

/* the chapter number, huge and nearly gone */
.ledger__n {
  position: absolute; right: clamp(14px,2vw,30px); top: clamp(6px,1vw,14px);
  font-size: clamp(66px, 8vw, 132px); font-weight: 500;
  letter-spacing: -.06em; line-height: .8;
  color: var(--ink); opacity: .05;
  pointer-events: none; user-select: none;
  transition: opacity .5s var(--ease), translate .6s var(--ease-out);
}
.dark .ledger__n { color: #fff; opacity: .06 }
.ledger__i:hover .ledger__n { opacity: .12; translate: 0 -4px }

.ledger__t { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase }
.ledger__s { font-size: clamp(19px, 1.9vw, 27px); font-weight: 500; letter-spacing: -.03em; line-height: 1.16; max-width: 17ch }
.ledger__b { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 34ch }
.dark .ledger__b { color: var(--on-night-2) }

@media (max-width: 860px) {
  .ledger { grid-template-columns: 1fr }
  .ledger__i { border-left: 0; border-top: 1px solid var(--hair); padding-inline: 0 }
  .dark .ledger__i { border-top-color: var(--hair-night) }
  .ledger__i:first-child { border-top: 0; padding-top: 0 }
}

/* ── proof, as a facing spread ─────────────────────────────
   The claim on the left in one long sentence, the two numbers
   stacked on the right against a rule, so it reads as evidence
   attached to an argument rather than as a stat bar.           */

.spread { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(26px, 5vw, 90px); align-items: start }
.spread__claim .say { max-width: 15ch }

.ev { display: grid; gap: 0 }
.ev__i {
  display: grid; grid-template-columns: minmax(0, auto) 1fr; gap: clamp(18px, 3vw, 46px);
  align-items: baseline;
  padding-block: clamp(22px, 2.8vw, 38px);
  border-top: 1px solid var(--hair-night);
}
.ev__i:last-child { border-bottom: 1px solid var(--hair-night) }
.ev__n {
  font-size: clamp(38px, 5.2vw, 76px); font-weight: 500;
  letter-spacing: -.052em; line-height: .88; white-space: nowrap;
}
.ev__n span { color: var(--lime); font-size: .4em; letter-spacing: -.02em }
.ev__c { display: grid; gap: 9px; justify-items: start }
.ev__t { font-size: clamp(15px, 1.35vw, 18px); font-weight: 500; letter-spacing: -.024em; max-width: 24ch }
.ev__b { font-size: 14.5px; line-height: 1.58; color: var(--on-night-2); max-width: 42ch }

@media (max-width: 900px) {
  .spread { grid-template-columns: 1fr }
  .ev__i { grid-template-columns: 1fr; gap: 12px }
}
