/* ============================================================
   Tokens: InvertedChaos-Design-System (Figma), Theme / Dark by default.
   Light is the same collection's Light mode for an explicit light choice.
   Sizes: Desktop / Mobile modes as clamp(). Text styles 01-* Inter, 03-* Plex Mono,
   01-Numeral 200 / 90% / -3% and 01-Numeral-S 120 for the year counter.
   ============================================================ */
:root {
  --background: #16171e; --background-2: #0d0d14; --text: #aaabb5; --text-heading: #dbdce6;
  --border: #7c7d87; --border-subtle: #292a33; --icon: #dbdce6;
  --link: #8697ff; --link-hover: #afc3ff;
  --btn-bg: #5f6cde; --btn-bg-hover: #7281f1; --btn-border: #180b6b; --btn-text: #05060b;
  --btn2-border: #7c7d87; --btn2-text: #dbdce6;
  --focus: #c1ff1f; --ground-deep: #05060b;
  /* text inputs: a LIGHTER tint than the page they sit on (owner-directed 2026-09-23; was one step darker).
     Dark: one neutral-ramp step up from the page. Light: the ramp has no step above neutral-100, so the
     field takes #eeeff5, the lighter tint of the same hue the deck slides already sit on. */
  --field: #292a33; --field-line: #51525b;
  --margin: clamp(24px, 8vw, 160px);  /* 2026-09-17: gargantuan page margin (owner-directed); the walls sit outside .wrap and stay full-bleed */
  --sp-1: 8px; --sp-2: 12px; --sp-3: 16px; --sp-4: 24px; --sp-5: 32px; --sp-6: 40px; --sp-7: 48px; --sp-8: 64px;
  --section-small: clamp(48px, 5.6vw, 80px);
  --section-main: clamp(64px, 7.8vw, 112px);
  --section-large: clamp(88px, 11vw, 160px);
  --page-top: clamp(80px, 9vw, 128px);
  --radius-small: 3px; --radius-main: 6px; --border-w: 1px;
  --f-01: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-03: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-icon: "Material Symbols Rounded";
  --display: clamp(64px, 7.8vw, 112px); --h1: clamp(48px, 5.6vw, 80px); --h2: clamp(40px, 4.4vw, 64px);
  --h3: clamp(36px, 3.3vw, 48px); --h4: clamp(28px, 2.2vw, 32px); --h5: clamp(22px, 1.7vw, 24px);
  --numeral: clamp(88px, 9vw, 120px);
  --text-l: clamp(18px, 1.4vw, 20px); --text-body: clamp(16px, 1.25vw, 18px); --text-s: clamp(14px, 1.1vw, 16px);
  --text-xs: clamp(10px, .85vw, 12px); --text-xxs: clamp(8px, .7vw, 10px);
}
:root[data-theme="light"] {
  --background: #dbdce6; --background-2: #aaabb5; --text: #292a33; --text-heading: #16171e;
  --border: #51525b; --border-subtle: #aaabb5; --icon: #16171e; --link: #383da3; --link-hover: #180b6b;
  --btn2-border: #51525b; --btn2-text: #16171e; --focus: #272686;
  --field: #eeeff5;  /* lighter than this theme's page (neutral-100), same hue */
}
@media (max-width: 560px) { :root { --border-w: 1.5px; } }
/* AA on the second ground (2026-09-29): in light theme the link on --background-2 steps darker (primary-800, 5.39:1; the page link #383da3 is 3.89:1 here).
   Every container painted with --background-2 is listed; _iccontrast.mjs fails if one is missed. */
:root[data-theme="light"] :is(.band, .strip, .player, .cta, .agenda, .stair li, .ipodfig, .deckstory .mini, .formula, .slide .sl, .thumb.words, .thumb.scales, .arch, .brief .photo) { --link: #272686; }
/* Inverted Chaos (2026-09-29): the wordmark takes the theme’s logo-text colour; lime marks the current page in dark */
:root { --logo-text: #dbdce6; --accent: #c1ff1f; }
:root[data-theme="light"] { --logo-text: #292a33; --accent: var(--link); }
.brand, .sitefooter .identity { color: var(--logo-text); }
:root .primarynav a[aria-current="page"], :root .primarynav a[aria-current="page"] .icon.ic, :root .navmenu a.item[aria-current="page"] { color: var(--accent); }   /* :root so it outranks the base rule that follows */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--f-01); font-size: var(--text-body); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; }
/* 2026-09-19: no widows or orphans anywhere (owner-directed). pretty rebalances the last lines of every text block; balance evens headings. */
p, li, figcaption, dd, span.t, .lead, .note, .pick, label { text-wrap: pretty; }
h1, h2, h3, .display, .h2, .h4, .h5, legend { text-wrap: balance; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--btn-bg); color: var(--btn-text); }
.icon { font-family: var(--f-icon); font-weight: normal; line-height: 1; display: inline-block; vertical-align: middle; }
.wrap { max-width: none; margin-inline: 0; padding-inline: var(--margin); }  /* 2026-09-17: full-bleed (owner-directed, gabrielvaldivia.com); the page runs edge to edge, only the type measures are capped */

.display { font-weight: 500; font-size: var(--display); line-height: .92; color: var(--text-heading); margin: 0; text-wrap: balance; }
.h2 { font-weight: 500; font-size: var(--h2); line-height: 1.04; color: var(--text-heading); margin: 0; text-wrap: balance; }
.h4 { font-weight: 500; font-size: var(--h4); line-height: 1.16; color: var(--text-heading); margin: 0; }
.h5 { font-weight: 500; font-size: var(--h5); line-height: 1.24; color: var(--text-heading); margin: 0; }
.text-l { font-size: var(--text-l); }
.text-s { font-size: var(--text-s); line-height: 1.6; letter-spacing: .03em; }
.eyebrow { font-family: var(--f-03); font-size: 16px; line-height: 1.05; letter-spacing: .15em; text-transform: uppercase; color: var(--link); margin: 0; }
.mono-xs { font-family: var(--f-03); font-size: var(--text-xs); line-height: 1.5; letter-spacing: .10em; text-transform: uppercase; }
.mono-xxs { font-family: var(--f-03); font-size: var(--text-xxs); line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.link { font-family: var(--f-03); font-size: 16px; letter-spacing: .15em; text-transform: uppercase; color: var(--link); text-decoration: none; display: inline-flex; align-items: center; gap: var(--sp-2); padding-block: 10px; }
.link:hover { color: var(--link-hover); }
.link .icon { font-size: 16px; }
.btn { font-family: var(--f-03); font-weight: 500; font-size: 16px; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: var(--sp-2); padding: 12px 24px; border-radius: var(--radius-small); transition: background .18s ease, color .18s ease, border-color .18s ease; }
.btn .icon { font-size: 16px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); border: var(--border-w) solid transparent; }  /* 2026-09-21: no stroke on primary (owner-directed); the transparent border keeps the size */
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-secondary { background: transparent; color: var(--btn2-text); border: var(--border-w) solid var(--btn2-border); }
.btn-secondary:hover { background: var(--btn-bg); color: var(--btn-text); border-color: transparent; }
.tag { font-family: var(--f-03); font-size: var(--text-xxs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-heading); border: var(--border-w) solid var(--border-subtle); border-radius: var(--radius-small); padding: 6px 10px; display: inline-block; }

/* ---- SiteNav ---- */
.sitenav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--background) 90%, transparent); backdrop-filter: blur(10px); border-bottom: var(--border-w) solid var(--border-subtle); }
.sitenav .wrap { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.brand svg { width: 100px; height: 40px; display: block; }
.primarynav { display: flex; gap: var(--sp-7); align-items: center; }
.primarynav a { text-decoration: none; color: var(--text-heading); }
/* the page you are on (owner-directed 2026-09-22). The builder has always emitted aria-current="page";
   what was missing was a look for it. The icon fills too, which is the same signal hover already uses. */
.primarynav a[aria-current="page"] { color: var(--link); }
.primarynav a[aria-current="page"] .icon.ic { color: var(--link); font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
.primarynav a:hover { color: var(--link); }
.primarynav .more { display: inline-flex; align-items: center; gap: var(--sp-2); }
.primarynav .more .icon { font-size: 16px; }
.search { display: inline-flex; gap: var(--sp-2); align-items: center; padding: 8px 16px; border: var(--border-w) solid var(--border); border-radius: var(--radius-small); color: var(--text-heading); }


/* ---- MARA: 12-col grid, asymmetric spreads ---- */
.g12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--sp-5); }
.numeral { font-weight: 500; letter-spacing: -.03em; line-height: .9; color: var(--text-heading); font-variant-numeric: tabular-nums; }
.numeral.l { font-size: clamp(72px, 8.3vw, 120px); }
.numeral.gold { color: var(--link); }
.h1 { font-weight: 500; font-size: var(--h1); line-height: .98; color: var(--text-heading); margin: 0; text-wrap: balance; }
.h3 { font-weight: 500; font-size: var(--h3); line-height: 1.1; color: var(--text-heading); margin: 0; text-wrap: balance; }
.caps-h3 { font-weight: 500; font-size: var(--h3); line-height: 1.1; text-transform: uppercase; color: var(--text); margin: 0; }
.mark { display: block; height: 100%; width: auto; color: var(--text-heading); }

/* hero: copy left, poster stack bleeding right */
.mhero { padding-block: clamp(64px, 7vw, 96px) var(--section-main); }
.mhero .copy { grid-column: 1 / 8; align-self: end; }
.mhero .copy .eyebrow { margin-bottom: var(--sp-5); }
.mhero .copy .intro { margin: var(--sp-5) 0 0; max-width: 52ch; }
.mhero .copy .intro b { color: var(--text-heading); font-weight: 500; }
.mhero .actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-6); }
.mhero .stack { grid-column: 8 / 13; position: relative; margin-right: calc(-1 * var(--margin)); min-height: 520px; }
.stack .player.p1 { position: absolute; right: 0; top: 0; width: 100%; border-radius: var(--radius-main) 0 0 var(--radius-main); }
.stack .player.p2 { position: absolute; left: -12%; bottom: 0; width: 52%; box-shadow: 0 24px 60px rgba(0,0,0,.45); }

/* the agency index: a label and a wrapped mono list of everything the team shipped */
.index { border-top: var(--border-w) solid var(--border-subtle); border-bottom: var(--border-w) solid var(--border-subtle); padding-block: var(--sp-7); }
.index .label { grid-column: 1 / 4; }
.index .label p { margin: var(--sp-3) 0 0; color: var(--text); font-size: var(--text-s); max-width: 26ch; }
.index .list { grid-column: 4 / 13; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 0; font-family: var(--f-03); font-size: clamp(16px, 1.5vw, 22px); letter-spacing: .06em; text-transform: uppercase; color: var(--text-heading); line-height: 1.3; }
.index .list li::after { content: "/"; color: var(--link); margin: 0 14px; }
.index .list li:last-child::after { content: none; }
.index .list li.you { color: var(--link); text-transform: none; letter-spacing: 0; font-family: var(--f-01); font-style: italic; }

/* chapters as spreads */
.spread { padding-block: var(--section-main); border-bottom: var(--border-w) solid var(--border-subtle); }
.spread .folio { grid-column: 1 / 4; }
.spread .folio .eyebrow { margin-top: var(--sp-3); }
.spread .folio ul { list-style: none; margin: var(--sp-6) 0 0; padding: var(--sp-4) 0 0; border-top: var(--border-w) solid var(--border-subtle); display: grid; gap: var(--sp-2); }
.spread .folio li { font-family: var(--f-03); font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.spread .folio li b { color: var(--text-heading); font-weight: 500; }
.spread .lede { grid-column: 4 / 12; }
.spread .lede p { margin: var(--sp-4) 0 0; max-width: 58ch; font-size: var(--text-l); }
.spread .lede p b { color: var(--text-heading); font-weight: 500; }

/* chapter 01 mosaic */
.mosaic { grid-column: 1 / 13; margin-top: var(--sp-7); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--sp-5); row-gap: var(--sp-5); align-items: start; }
.mosaic .big { grid-column: 4 / 11; grid-row: 1 / 3; }
.mosaic .s1 { grid-column: 11 / 13; grid-row: 1; }
.mosaic .s2 { grid-column: 11 / 13; grid-row: 2; margin-top: var(--sp-6); }
.mosaic .s3 { grid-column: 1 / 4; grid-row: 2; align-self: end; }
.mosaic .strip-a { grid-column: 1 / 8; grid-row: 3; }
.mosaic .strip-b { grid-column: 8 / 13; grid-row: 3; transform: translateY(40px); }
.strip { border-radius: var(--radius-main); overflow: hidden; border: var(--border-w) solid var(--border-subtle); background: var(--background-2); }
.strip img { width: 100%; aspect-ratio: 864 / 160; object-fit: cover; display: block; }

/* chapter 02: media left, copy right */
.ch2 .media { grid-column: 1 / 7; display: grid; grid-template-columns: repeat(6, 1fr); column-gap: var(--sp-5); row-gap: var(--sp-5); align-content: start; }
.ch2 .media .m1 { grid-column: 1 / 7; }
.ch2 .media .m2 { grid-column: 3 / 7; }
.ch2 .media .m3 { grid-column: 1 / 3; align-self: end; }
.ch2 .copy { grid-column: 8 / 13; }
.ch2 .copy p { margin: var(--sp-4) 0 0; max-width: 40ch; font-size: var(--text-l); }
.ch2 .copy p b { color: var(--text-heading); font-weight: 500; }
.pulls { margin-top: var(--sp-7); display: grid; gap: var(--sp-5); }
.pulls div { border-top: var(--border-w) solid var(--border-subtle); padding-top: var(--sp-4); }
.pulls span { display: block; margin-top: var(--sp-2); color: var(--text); }

/* chapter 03: band, the rebrand as two logos, product grid with logos */
.band { background: var(--background-2); border-bottom: var(--border-w) solid var(--border-subtle); }
.rebrand { grid-column: 1 / 13; margin-top: var(--sp-7); padding-block: var(--sp-7); border-top: var(--border-w) solid var(--border-subtle); border-bottom: var(--border-w) solid var(--border-subtle); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--sp-5); align-items: center; }
.rebrand .from { grid-column: 1 / 6; display: grid; gap: var(--sp-3); }
.rebrand .from img { width: 100%; max-width: 420px; display: block; border-radius: var(--radius-small); border: var(--border-w) solid var(--border-subtle); }
.rebrand .from .mark.old { height: clamp(28px, 3.4vw, 48px); width: auto; color: var(--text); }
.rebrand .arrow { grid-column: 6 / 7; text-align: center; }
.rebrand .arrow .icon { font-size: 44px; color: var(--link); }
.rebrand .to { grid-column: 7 / 11; display: grid; gap: var(--sp-3); }
.rebrand .to .mark { height: clamp(48px, 6vw, 88px); }
.rebrand .when { grid-column: 11 / 13; text-align: right; color: var(--text); }
.history { grid-column: 1 / 13; margin-top: var(--sp-7); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--sp-5); row-gap: var(--sp-5); }
.history .rail { grid-column: 1 / 4; position: sticky; top: 104px; align-self: start; }
.history .rail .lead { margin: var(--sp-3) 0 var(--sp-5); color: var(--text); font-size: var(--text-s); max-width: 30ch; }
.history .gens { list-style: none; margin: 0; padding: 0; border-top: var(--border-w) solid var(--border-subtle); }
.history .gens li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: var(--border-w) solid var(--border-subtle); color: var(--text); transition: color .2s ease; }
.history .gens li .n { color: var(--link); }
.history .gens li .y { color: var(--text); opacity: .6; }
.history .gens li.cur { color: var(--text-heading); }
.history .gens li.cur .y { opacity: 1; color: var(--link); }
.history .frames { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(9, 1fr); column-gap: var(--sp-5); row-gap: var(--sp-6); }
.history .frame { margin: 0; grid-column: 1 / 10; }
.history .frame.f1 { grid-column: 1 / 8; }
.history .frame.f2 { grid-column: 3 / 10; }
.history .frame img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-main); border: var(--border-w) solid var(--border-subtle); background: var(--background-2); }
.history .frame > .mono-xxs { display: flex; justify-content: space-between; color: var(--link); margin-bottom: 8px; }
.history .frame figcaption { margin-top: 10px; font-size: var(--text-s); color: var(--text); max-width: 60ch; }
.history .frame figcaption.mono-xxs { font-size: var(--text-xxs); color: var(--link); margin-top: 8px; max-width: none; }
.products { grid-column: 1 / 13; margin-top: var(--sp-7); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--sp-5); row-gap: var(--sp-5); }
.products .sticky { grid-column: 1 / 4; position: sticky; top: 104px; align-self: start; }
.products .sticky p { margin: var(--sp-3) 0 0; color: var(--text); font-size: var(--text-s); max-width: 30ch; }
.products .grid { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
/* 2026-09-17: minmax(0,1fr) + min-width:0, or a card refuses to shrink below its content and the whole page gains a
   sideways scroll between 860 and 1000px (measured: scrollWidth 1031 at 1000). Inside the claude.ai pane that scroll
   is what pushed the brand-history rail off the left edge. */
.card { min-width: 0; }
@media (max-width: 1000px) { .products .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { border: var(--border-w) solid var(--border-subtle); border-radius: var(--radius-main); padding: var(--sp-4); display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: var(--sp-2); align-items: start; background: var(--background); transition: border-color .2s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
.card > .mono-xxs { grid-row: 1; }
.card > .logo { grid-row: 2; align-self: center; }
.card > p { grid-row: 3; }
.card > .tag { grid-row: 4; }
.card > .player { grid-row: 5; align-self: start; }
.card:hover { border-color: var(--link); transform: translateY(-4px); }
.card.wide { grid-column: span 2; }
.card .mono-xxs { color: var(--link); }
.card .logo { height: 28px; display: flex; align-items: center; margin-bottom: var(--sp-1); }
.card .logo .mark { height: 100%; }
.card .logo.type { font-family: var(--f-01); font-weight: 500; font-size: var(--h5); color: var(--text-heading); letter-spacing: -.01em; }
.card .logo.type small { font-family: var(--f-03); font-size: var(--text-xxs); letter-spacing: .12em; color: var(--text); margin-left: 10px; text-transform: uppercase; }
.card p { margin: 0; color: var(--text); font-size: var(--text-s); }
.card .tag { margin-top: var(--sp-1); justify-self: start; }
.card .player { margin-top: var(--sp-1); }

/* chapter 04: what I learned, three numbered learnings pushed right */
.learned { padding-block: var(--section-large); }
.learned .eyebrow { grid-column: 1 / 4; padding-top: 12px; }
.learned ol { grid-column: 5 / 12; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6); }
.learned li { display: grid; grid-template-columns: 72px 1fr; gap: var(--sp-4); padding-top: var(--sp-4); border-top: var(--border-w) solid var(--border-subtle); }
.learned li .n { font-family: var(--f-03); font-size: var(--text-xs); letter-spacing: .12em; color: var(--link); padding-top: 12px; }
.learned li p { margin: var(--sp-3) 0 0; font-size: var(--text-l); max-width: 52ch; }
.learned .link { grid-column: 5 / 12; margin-top: var(--sp-5); }

/* ---- branded video player ---- */
.player { position: relative; display: block; border-radius: var(--radius-main); overflow: hidden; border: var(--border-w) solid var(--border-subtle); background: var(--background-2); margin: 0; text-decoration: none; color: var(--text-heading); }
.player video, .player > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.player .bigplay { position: absolute; left: 50%; top: calc(50% - 22px); transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--btn-bg); color: var(--btn-text); display: grid; place-items: center; cursor: pointer; transition: transform .2s ease, opacity .2s ease; }
.player .bigplay .icon { font-size: 32px; color: var(--btn-text); }
.player:hover .bigplay { transform: translate(-50%, -50%) scale(1.06); }
.player.playing .bigplay { opacity: 0; pointer-events: none; }
.player .chrome { position: absolute; left: 0; right: 0; bottom: 44px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(180deg, transparent, rgba(5,5,20,.85)); opacity: 0; transition: opacity .2s ease; }
.player:hover .chrome, .player.playing .chrome, .player:focus-within .chrome { opacity: 1; }
.chrome button { border: 0; background: transparent; color: var(--text-heading); cursor: pointer; padding: 4px; display: grid; place-items: center; border-radius: var(--radius-small); }
.chrome button:hover { color: var(--link); }
.chrome button .icon { font-size: 22px; }
.chrome .time { color: var(--text-heading); white-space: nowrap; flex: 0 0 auto; }
.chrome button { flex: 0 0 auto; }
.chrome input[type=range] { min-width: 0; }
.player { container-type: inline-size; }
@container (max-width: 520px) { .chrome { gap: 6px; padding: 8px 10px; } .chrome .vol { display: none; } }
@container (max-width: 380px) { .chrome .time { display: none; } }
.chrome input[type=range] { -webkit-appearance: none; appearance: none; height: 3px; background: rgba(218,219,246,.25); border-radius: 2px; outline: none; }
.chrome input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--link); border: 2px solid var(--btn-border); cursor: pointer; }
.chrome input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--link); border: 2px solid var(--btn-border); cursor: pointer; }
.chrome .seek { flex: 1 1 40px; min-width: 40px; background: linear-gradient(90deg, var(--link) var(--p, 0%), rgba(218,219,246,.25) var(--p, 0%)); }
.chrome .vol { flex: 0 0 56px; width: 56px; }
.player .cap { display: block; padding: 10px 12px; background: var(--background); color: var(--text); margin: 0; line-height: 1.5; }
.player .cap b { color: var(--text-heading); font-weight: 500; display: block; }
.player .cap span { display: block; opacity: .8; }
.player.linkout .bigplay { width: 48px; height: 48px; }
.player:fullscreen video { aspect-ratio: auto; height: 100%; object-fit: contain; }
.player:fullscreen .chrome { bottom: 0; }
.player:fullscreen .cap { display: none; }

.reveal { transform: translateY(12px); opacity: .5; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
.reveal.in { transform: none; opacity: 1; }

@media (max-width: 860px) {
  .mhero .copy, .mhero .stack, .index .label, .index .list, .spread .folio, .spread .lede, .ch2 .media, .ch2 .copy, .learned .eyebrow, .learned ol, .learned .link, .rebrand .from, .rebrand .arrow, .rebrand .to, .rebrand .when, .products .sticky, .products .grid { grid-column: 1 / 13; }
  .mhero .stack { min-height: 0; margin-right: 0; margin-top: var(--sp-6); }
  .stack .player.p1, .stack .player.p2 { position: static; width: 100%; border-radius: var(--radius-main); }
  .stack .player.p2 { width: 70%; margin: calc(-1 * var(--sp-6)) 0 0 auto; }
  .index .list { font-size: 15px; }
  .mosaic .big, .mosaic .s1, .mosaic .s2, .mosaic .s3, .mosaic .strip-a, .mosaic .strip-b { grid-column: 1 / 13; grid-row: auto; margin-top: 0; transform: none; }
  .ch2 .media .m2, .ch2 .media .m3 { grid-column: 1 / 7; }
  .products .sticky { position: static; }
  .products .grid { grid-template-columns: 1fr; }
  .history .rail, .history .frames { grid-column: 1 / 13; }
  .history .rail { position: static; }
  .history .frame, .history .frame.f1, .history .frame.f2 { grid-column: 1 / 10; }
      .card.wide { grid-column: auto; }
  .rebrand .arrow { text-align: left; }
  .rebrand .when { text-align: left; }
  .learned li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .reveal { transform: none; opacity: 1; transition: none; } .card, .player .bigplay { transition: none; } }
/* ---- contact: the same form at the foot of every page ---- */
.contact { padding-block: var(--section-main); border-top: var(--border-w) solid var(--border-subtle); }
.contact .g12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--sp-5); row-gap: var(--sp-6); }
.contact .lede { grid-column: 1 / 8; } .contact .lede .h2 { margin-top: var(--sp-3); }
.form { grid-column: 1 / 8; display: grid; gap: var(--sp-4); margin-top: var(--sp-3); }
.form label { display: grid; gap: 8px; color: var(--text-heading); font-size: var(--text-s); }
.form input, .form select, .form textarea { font: inherit; font-size: var(--text-body); color: var(--text-heading); background: var(--background-2); border: var(--border-w) solid var(--border); border-radius: var(--radius-small); padding: 12px 14px; width: 100%; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.form textarea { min-height: 140px; resize: vertical; }
.form label small { color: var(--text); font-size: var(--text-xs); margin-left: 6px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form .foot { display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; }
.form .foot p { margin: 0; color: var(--text); font-size: var(--text-s); }
.form .btn { border: 0; cursor: pointer; }
.direct { grid-column: 9 / 13; align-self: start; display: grid; gap: var(--sp-3); margin-top: var(--sp-3); }
.direct a { color: var(--text-heading); text-decoration: none; }
.direct a:hover { color: var(--link); }
.direct p { margin: 0; color: var(--text); font-size: var(--text-s); }
@media (max-width: 860px) { .contact .lede, .form, .direct { grid-column: 1 / 13; } .form .two { grid-template-columns: 1fr; } }

/* ---- SiteFooter ---- */
.sitefooter { padding-block: var(--section-main) var(--sp-7); border-top: var(--border-w) solid var(--border-subtle); }
.sitefooter .top { display: flex; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; }
.sitefooter .identity { display: grid; gap: var(--sp-3); }
.sitefooter .identity svg { width: 140px; height: 56px; }
.sitefooter .contact { display: grid; gap: var(--sp-2); align-self: end; }
.sitefooter .contact a { text-decoration: none; color: var(--text-heading); }
.sitefooter .contact a:hover { color: var(--link); }
.rule { height: var(--border-w); background: var(--border-subtle); margin-block: var(--sp-7); }
.sitefooter .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.sitefooter .col { display: grid; gap: var(--sp-3); align-content: start; }
.sitefooter .col a, .sitefooter .col span { text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: var(--sp-2); }
.sitefooter .col a:hover { color: var(--link); }
.sitefooter .col .icon { font-size: 16px; color: var(--link); }
.sitefooter .legal { display: flex; justify-content: space-between; gap: var(--sp-4); }

@media (max-width: 860px) {
  .primarynav { display: none; }
  .hero .row, .record-grid, .marks .head, .now .grid { grid-template-columns: 1fr; }
  .counter { position: static; margin-bottom: var(--sp-6); }
  .now .cards { grid-template-columns: 1fr; }
  .row-head { grid-template-columns: 56px 1fr 24px; }
  .row-head .tags { grid-column: 2; justify-content: flex-start; }
  .row-body .inner { padding-left: 0; }
  .now .link { grid-column: 1; }
  .sitefooter .cols { grid-template-columns: 1fr; }
  .hero .display { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lane { transform: none !important; }
  .event { transform: none; opacity: 1; transition: none; }
  .card, .btn { transition: none; }
}

.navcta { padding: 10px 18px; font-size: 14px; }
.search { display: none; }
.sec { padding-block: var(--section-main); border-top: var(--border-w) solid var(--border-subtle); }
.sec.tight { padding-block: var(--section-small); }
.g12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--sp-5); row-gap: var(--sp-6); }
.lede { grid-column: 1 / 8; }
.lede .h2 { margin-top: var(--sp-3); }
.lede p { margin: var(--sp-4) 0 0; max-width: 58ch; }
.aside { grid-column: 9 / 13; align-self: end; }
.aside p { margin: 0; color: var(--text); font-size: var(--text-s); }
.fig { margin: 0; }
.fig img { width: 100%; border-radius: var(--radius-main); border: var(--border-w) solid var(--border-subtle); background: var(--background-2); }
.fig figcaption { margin-top: 10px; font-size: var(--text-s); color: var(--text); max-width: 60ch; }
.fig figcaption b { color: var(--text-heading); font-weight: 500; }
.pull { border-left: 2px solid var(--link); padding-left: var(--sp-4); }
.pull .h4 { max-width: 24ch; }
.pull .mono-xs { display: block; margin-top: var(--sp-2); color: var(--link); }
.cta { padding-block: var(--section-large); border-top: var(--border-w) solid var(--border-subtle); background: var(--background-2); }
.cta .h2 { max-width: 18ch; }
.cta .row { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }
.reveal { transform: translateY(12px); opacity: .6; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s ease; }
.reveal.in { transform: none; opacity: 1; }
@media (max-width: 860px) {
  .lede, .aside { grid-column: 1 / 13; }
  .navcta { display: none; }
}
@media (prefers-reduced-motion: reduce) { .reveal { transform: none; opacity: 1; transition: none; } }
