/* Hallmark · shape: a deck that scrolls, cover to signature, joined by the running head · genre: editorial · theme: custom · job: hire · idea: "Two points joined: the proposal is drawn as one line from the plum point on the cover to the green point at the yes" · vibe: "Ben's own brand, shown not told"
 * paper: oklch(0.977 0.005 318) light and oklch(0.17 0.035 318) night, alternating · accent: oklch(0.79 0.17 162) leaf, plum oklch(0.42 0.18 318) for marks · display: Red Hat Display (inherited from the Nexus site) · body: Red Hat Text (inherited) · hero: Stage, head left, the real homepage scrolling in a laptop on the right with the phone at its right corner, over the site's own drifting grid · nav: running head, mark left, section links, the join filling as you read · footer: one line, who it is for and the date · imagery: screenshots 13 (Playwright capture of the running site), 16 Canva posts, 5 banners, all the client's own · signature: the whole new homepage, scrollable inside the cover
 * axes: light-and-dark/grotesk-heavy/chromatic-green · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a proposal argues by showing, so the case is the real site and posts at full size with prices said once and plainly */
/* Hallmark · waive 47b · a laptop and phone frames, all holding real captures of the running Nexus site · Tom asked for a laptop Ben can scroll and phone mockups beside it */
/* Hallmark · waive 47c · .cover-field is the drifting lab-notebook grid from the Nexus site hero, behind real content · it carries Ben's site material into his proposal */
/* Hallmark · waive 83 · the pictures are 13 captures of the running Nexus site, 16 of its Canva posts and 5 of its banners · this proposal is a portfolio of the client's own work, which is the whole case */
/* Hallmark · waive 39b · three .detail buttons, each a 313px screenshot card · they are image cards that open the Nexus viewer, sized by the site captures, not text controls */
/* Hallmark · dismissed 23 · .join-fill is a 1.5px line inside a 120px join in the running head, never viewport scale */
/* Hallmark · answered F15 · three gaps on purpose: 64px between head and body columns, 24px inside image rows, 40px between short text columns */
@import url("./tokens.css");
@import url("./base.css");

/* Night slides swap the tokens, so every rule below reads the same names on light and dark. */
.dark {
  --color-paper: var(--color-night);
  --color-paper-2: var(--color-night-2);
  --color-ink: var(--color-fog);
  --color-muted: var(--color-mist);
  --color-rule: var(--color-night-line);
  --color-focus: var(--color-accent);
  background: var(--color-paper);
  color: var(--color-ink);
}
.dark--deep { --color-paper: var(--color-night-2); }

section { background: var(--color-paper); color: var(--color-ink); }
h1, h2, h3 { font-weight: 800; letter-spacing: var(--tracking-display); line-height: 1.02; }
h2 { font-size: var(--text-section); max-width: 18ch; }
h3 { font-size: var(--text-title); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.lede { font-size: var(--text-lead); color: var(--color-muted); max-width: 34ch; line-height: 1.45; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Buttons: one primary style, one quiet. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 48px; padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--color-accent); border-radius: var(--radius-card);
  background: var(--color-accent); color: var(--color-accent-ink);
  font: 700 var(--text-md)/1 var(--font-display); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-rule); }
.btn--quiet:hover { background: transparent; border-color: var(--color-ink); }
.btn--small { min-height: 44px; padding: var(--space-xs) var(--space-md); font-size: var(--text-sm); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* Running head */
.runner { position: sticky; top: 0; z-index: var(--z-sticky-nav); border-bottom: 1px solid var(--color-rule); }
.runner-inner { display: flex; align-items: center; gap: var(--space-xl); min-height: 64px; }
.runner-brand { display: inline-flex; align-items: center; gap: var(--space-sm); font: 700 var(--text-md)/1 var(--font-display); text-decoration: none; white-space: nowrap; }
.runner-brand:focus-visible, .runner a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.runner-sub { color: var(--color-muted); font-weight: 400; }
.runner nav { margin-left: auto; }
.runner ul { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.runner nav a { color: var(--color-muted); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.runner nav a:hover { color: var(--color-ink); }
.join { display: flex; align-items: center; gap: var(--space-2xs); width: 120px; flex: none; }
.join-node { width: 10px; height: 10px; border-radius: var(--radius-pill); flex: none; }
.join-node--a { background: var(--color-orchid); }
.join-node--b { background: transparent; box-shadow: inset 0 0 0 1.5px var(--color-accent); transition: background-color var(--dur-long) var(--ease-out); }
.join.is-joined .join-node--b { background: var(--color-accent); }
.join-line { position: relative; flex: 1; height: 1.5px; background: var(--color-rule); overflow: hidden; }
.join-fill { position: absolute; inset: 0; background: var(--color-accent); transform-origin: left center; transform: scaleX(0); }
@media (max-width: 60rem) { .runner nav { display: none; } .join { margin-left: auto; } }

/* Cover */
.cover { position: relative; isolation: isolate; padding-block: var(--space-2xl) var(--space-3xl); overflow: clip; }
/* The Nexus site's lab-notebook grid, drifting slowly behind the cover. */
.cover-field {
  position: absolute; inset: calc(-1 * var(--space-2xl)); z-index: -1;
  background-image:
    linear-gradient(color-mix(in oklab, var(--color-fog) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--color-fog) 6%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 65% 45%, var(--color-ink) 30%, transparent 85%);
  animation: drift 40s linear infinite;
}
@keyframes drift { to { transform: translate3d(48px, 48px, 0); } }
.cover-copy > * { animation: rise 0.6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms); }
.cover-copy > :nth-child(2) { --i: 1; }
.cover-copy > :nth-child(3) { --i: 2; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.laptop { animation: float 9s var(--ease-in-out) infinite alternate; }
.phone--cover { animation: float 9s var(--ease-in-out) -4.5s infinite alternate; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.cover.is-still .cover-field, .cover.is-still .laptop, .cover.is-still .phone--cover { animation-play-state: paused; }
html:not(.js) .cover-field, html:not(.js) .laptop, html:not(.js) .phone--cover { animation: none; }
html:not(.js) [data-still-toggle] { display: none; }
.cover-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; min-height: calc(100svh - 64px - var(--space-2xl) - var(--space-3xl)); }
.cover h1 { font-size: clamp(2.75rem, 4.6vw + 0.5rem, 5.5rem); line-height: 1.0; max-width: 11ch; }
.cover .lede { margin-top: var(--space-lg); }
.cover .actions { margin-top: var(--space-xl); }
.cover-visual { position: relative; margin: 0; padding-right: var(--space-3xl); padding-bottom: var(--space-xl); }
.cover-cap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-xl); color: var(--color-muted); font-size: var(--text-sm); padding-right: 18%; }

/* The laptop: a lid with a bezel around the scrollable screen, and a base with a thumb notch. */
.laptop { position: relative; }
.laptop-lid {
  width: 88%; margin-inline: auto;
  padding: var(--space-sm) var(--space-sm) var(--space-md);
  border-radius: var(--radius-screen) var(--radius-screen) var(--space-2xs) var(--space-2xs);
  background: var(--color-device);
  box-shadow: 0 0 0 1px var(--color-night-line);
}
.laptop-lid .screen { border: 0; border-radius: var(--space-2xs); }
.laptop-base {
  position: relative; height: var(--space-md);
  border-radius: 0 0 var(--radius-screen) var(--radius-screen);
  background: linear-gradient(to bottom, var(--color-night-line), var(--color-night-2));
  box-shadow: 0 24px 40px -18px var(--color-device);
}
.laptop-base::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: var(--space-2xs);
  translate: -50% 0; border-radius: 0 0 var(--space-xs) var(--space-xs); background: var(--color-device);
}

.screen {
  display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0;
  border: 1px solid var(--color-rule); border-radius: var(--radius-screen);
  background: var(--color-device); overflow: hidden;
}
.cover .screen { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--color-night-line) transparent; }
.cover .screen img { width: 100%; height: auto; }
.screen:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.screen--static { cursor: zoom-in; transition: border-color var(--dur-short) var(--ease-out); }
.screen--static:hover { border-color: var(--color-mist); }
.screen--static img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.phone {
  width: 100%; aspect-ratio: 390 / 844; padding: var(--space-2xs);
  border-radius: var(--radius-phone); background: var(--color-device);
  box-shadow: 0 0 0 1px var(--color-night-line), 0 30px 60px -20px color-mix(in oklab, var(--color-device) 90%, transparent);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: calc(var(--radius-phone) - var(--space-2xs)); }
.phone--cover { position: absolute; right: 0; bottom: var(--space-3xl); width: 21%; }

/* Contents */
.contents { padding-block: var(--section-gap-s); }
.contents-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); align-items: start; }
.contents-note { margin-top: var(--space-lg); color: var(--color-muted); max-width: 30ch; }
.index { margin: 0; padding: 0; list-style: none; counter-reset: part; border-top: 1px solid var(--color-ink); }
.index li { counter-increment: part; border-bottom: 1px solid var(--color-rule); }
.index a {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.1fr); align-items: baseline; gap: var(--space-lg);
  padding-block: var(--space-lg); text-decoration: none;
}
.index a::before { content: counter(part, decimal-leading-zero); font: 800 var(--text-2xl)/1 var(--font-display); color: var(--color-plum); font-variant-numeric: tabular-nums; }
.index-name { font: 800 clamp(1.75rem, 2.4vw + 0.5rem, 3rem)/1 var(--font-display); letter-spacing: var(--tracking-display); }
.index-line { color: var(--color-muted); }
.index a:hover .index-name { color: var(--color-plum); }
.index a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.index-name { transition: color var(--dur-short) var(--ease-out); }

/* Rebrand */
.rebrand { padding-block: var(--section-gap) var(--section-gap-s); }
.rebrand-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-lg); }
.reel { margin: var(--space-2xl) 0 0; }
.reel-window { overflow-x: auto; scrollbar-width: none; padding-block: var(--space-xs); }
.reel-window::-webkit-scrollbar { display: none; }
.reel-track { display: flex; width: max-content; animation: reel 90s linear infinite; }
.reel-list { display: flex; gap: var(--space-md); margin: 0; padding: 0 var(--space-md) 0 0; list-style: none; }
@keyframes reel { to { transform: translateX(-50%); } }
.reel:not(.is-running) .reel-track { animation-play-state: paused; }
html:not(.js) .reel-track { animation: none; }
html:not(.js) [data-loop-toggle] { display: none; }
.tile {
  display: block; width: clamp(180px, 18vw, 260px); aspect-ratio: 1080 / 1350; padding: 0;
  border: 1px solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden;
  background: var(--color-device); cursor: zoom-in;
  transition: transform var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.tile--square { aspect-ratio: 1; align-self: center; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover { transform: translateY(-4px); border-color: var(--color-mist); }
.tile:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.reel-list li { display: flex; align-items: center; }
.reel-cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-md); margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }

.included {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl);
  margin: var(--space-3xl) 0 0; padding: var(--space-xl) 0 0; list-style: none; border-top: 1px solid var(--color-rule);
}
.included p { margin-top: var(--space-xs); color: var(--color-muted); }

/* Brand kit: a spec sheet of tiles on hairlines. The mark is one symbol, coloured by --mark-a/b/c. */
.kit { padding-block: var(--section-gap); }
.kit-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.kit-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-lg); }
.kit-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-2xl); }
.kit-tile {
  --mark-a: var(--color-plum); --mark-b: var(--color-accent); --mark-c: var(--color-paper);
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: var(--space-md);
  min-height: 260px; margin: 0; padding: var(--space-xl);
  border: 1px solid var(--color-rule); border-radius: var(--radius-card);
  background: var(--color-paper); color: var(--color-ink);
}
.kit-tile.dark { --mark-a: var(--color-fog); --mark-b: var(--color-accent); --mark-c: var(--color-paper); }
.kit-tile figcaption { position: absolute; left: var(--space-xl); bottom: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }
.mk { display: block; flex: none; }

.kit-def { grid-column: span 7; align-items: flex-start; padding-bottom: var(--space-3xl); }
.kit-word { font: 800 clamp(3.5rem, 7vw, 6.5rem)/0.9 var(--font-display); letter-spacing: -0.045em; }
.kit-say { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); font-size: var(--text-lg); }
.kit-bar { width: 2px; height: 1.3em; background: var(--color-ink); }
.kit-pos { margin-left: var(--space-xs); font-family: var(--font-display); font-weight: 700; }
.kit-meaning { font: 700 var(--text-xl)/1.35 var(--font-display); max-width: 30ch; }
.kit-hl { padding: 0 0.2em; background: var(--color-plum); color: var(--color-fog); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.kit-stack { grid-column: span 5; align-items: center; padding-bottom: var(--space-3xl); }
.lockup { display: flex; align-items: center; }
.lockup--stack { flex-direction: column; gap: var(--space-xs); text-align: center; }
.mk--stack { width: 120px; height: 120px; }
.lk-short { font: 800 clamp(2.5rem, 4vw, 3.5rem)/1 var(--font-display); letter-spacing: -0.03em; }
.lk-word { font: 700 var(--text-lg)/1.2 var(--font-display); }

.kit-refine { grid-column: 1 / -1; }
.kit-refine-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-md); margin-block: var(--space-xl) var(--space-md); }
.kit-switch { display: flex; gap: var(--space-2xs); padding: var(--space-2xs); border: 1px solid var(--color-rule); border-radius: var(--radius-card); }
.kit-switch button {
  min-height: 44px; padding: var(--space-xs) var(--space-md); border: 0; border-radius: calc(var(--radius-card) - 2px);
  background: transparent; color: var(--color-muted); font: 700 var(--text-sm)/1 var(--font-body); white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.kit-switch button:hover { color: var(--color-ink); }
.kit-switch button[aria-pressed="true"] { color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-ink); }
.kit-switch button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.kit-switch button:active { transform: translateY(1px); }
.kit-refine-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.refine { align-items: center; min-height: 340px; padding-bottom: var(--space-3xl); transition: background-color var(--dur-long) var(--ease-out); }
.kit-refine-row[data-ground="dark"] .refine {
  --mark-a: var(--color-fog); --mark-c: var(--color-night);
  background: var(--color-night); border-color: var(--color-night-line); color: var(--color-fog);
}
.kit-refine-row[data-ground="dark"] .refine figcaption { color: var(--color-mist); }
.mk--big { width: 168px; height: 168px; }
.refine-small { position: absolute; top: var(--space-lg); right: var(--space-lg); display: flex; align-items: center; gap: var(--space-sm); }
.mk--32 { width: 32px; height: 32px; }
.mk--20 { width: 20px; height: 20px; }

.kit-full { grid-column: span 6; padding-bottom: var(--space-3xl); }
.lockup--row { gap: var(--space-md); }
.mk--row { width: 88px; height: 88px; }
.lk-stack { display: grid; gap: var(--space-2xs); }
.lk-name { font: 800 clamp(2.5rem, 4vw, 3.5rem)/0.95 var(--font-display); letter-spacing: -0.03em; }
.kit-tag { grid-column: span 3; align-items: center; padding-bottom: var(--space-3xl); }
.lockup--tag { gap: var(--space-sm); padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); }
.mk--tag { width: 44px; height: 44px; }
.lockup--tag .lk-short { font-size: var(--text-2xl); }
.kit-motif { grid-column: span 3; padding-bottom: var(--space-3xl); }
.motif { display: flex; align-items: center; }
.motif-a, .motif-b { width: 14px; height: 14px; border-radius: var(--radius-pill); flex: none; }
.motif-a { background: var(--color-plum); }
.motif-b { background: var(--color-accent); }
.motif-line { flex: 1; height: 2px; background: var(--color-accent); }

.kit-colours { grid-column: span 7; padding-bottom: var(--space-3xl); }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--color-muted); }
.swatches b { display: block; margin-top: var(--space-sm); color: var(--color-ink); font-size: var(--text-md); }
.sw { display: block; aspect-ratio: 1; border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px var(--color-rule); }
.sw--plum { background: var(--color-plum); }
.sw--leaf { background: var(--color-accent); }
.sw--ink { background: var(--color-ink); }
.sw--paper { background: var(--color-paper); }
.kit-type { grid-column: span 5; padding-bottom: var(--space-3xl); }
.type-aa { font: 800 clamp(5rem, 9vw, 8rem)/0.85 var(--font-display); letter-spacing: -0.05em; }
.type-name { font: 700 var(--text-xl)/1.2 var(--font-display); }
.type-use { color: var(--color-muted); }

@media (max-width: 60rem) {
  .kit-def, .kit-stack, .kit-full, .kit-colours, .kit-type { grid-column: 1 / -1; }
  .kit-tag, .kit-motif { grid-column: span 6; }
  .kit-refine-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .kit-tile { padding: var(--space-lg); padding-bottom: var(--space-3xl); }
  .kit-tile figcaption { left: var(--space-lg); }
  .kit-tag, .kit-motif { grid-column: 1 / -1; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk--big { width: 132px; height: 132px; }
  .mk--row { width: 64px; height: 64px; }
}

/* Banners */
.banners { padding-block: var(--section-gap); background: var(--color-paper-2); }
.banners-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); align-items: start; }
.banners-head { position: sticky; top: calc(64px + var(--space-xl)); }
.banners-head p { margin-top: var(--space-lg); color: var(--color-muted); max-width: 32ch; }
.banner-stack { display: grid; gap: var(--space-md); }
.banner {
  display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-card); overflow: hidden;
  background: var(--color-device); cursor: zoom-in; aspect-ratio: 1584 / 396;
  box-shadow: 0 0 0 1px var(--color-rule);
  transition: box-shadow var(--dur-short) var(--ease-out);
}
.banner--company { aspect-ratio: 1512 / 256; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner:hover { box-shadow: 0 0 0 1px var(--color-ink); }
.banner:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* Website */
.website { padding-block: var(--section-gap); }
.website-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-xl); }
.website-demo { margin-top: var(--space-lg); }
.cover-cap a { color: var(--color-ink); }
.cover-cap a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2xs); padding: var(--space-2xs); border: 1px solid var(--color-rule); border-radius: var(--radius-card); }
.tabs [role="tab"] {
  min-height: 44px; padding: var(--space-xs) var(--space-md); border: 0; border-radius: calc(var(--radius-card) - 2px);
  background: transparent; color: var(--color-muted); font: 700 var(--text-sm)/1 var(--font-body); white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.tabs [role="tab"]:hover { color: var(--color-ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--color-accent); color: var(--color-accent-ink); }
.tabs [role="tab"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.tabs [role="tab"]:active { transform: translateY(1px); }

.panel { margin-top: var(--space-2xl); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.27fr); gap: var(--space-xl); align-items: end; margin: 0; }
.pair figcaption { grid-column: 1 / -1; color: var(--color-muted); max-width: 60ch; }

.details { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); margin-top: var(--space-3xl); padding-top: var(--space-xl); border-top: 1px solid var(--color-rule); }
.detail { display: grid; gap: var(--space-sm); padding: 0; border: 0; background: none; color: var(--color-ink); text-align: left; font: 700 var(--text-md)/1.3 var(--font-body); cursor: zoom-in; }
.detail img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--color-rule); transition: box-shadow var(--dur-short) var(--ease-out); }
.detail--fit img { object-fit: contain; object-position: center; background: var(--color-device); }
.detail:hover img { box-shadow: 0 0 0 1px var(--color-mist); }
.detail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

/* Investment */
.investment { padding-block: var(--section-gap); }
.prices { display: grid; margin-top: var(--space-2xl); border-top: 1px solid var(--color-ink); }
.price { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); padding-block: var(--space-3xl); }
.price + .price { border-top: 1px solid var(--color-rule); }
.price-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-rule); }
.price-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-lg); padding-block: var(--space-lg); border-bottom: 1px solid var(--color-rule); color: var(--color-muted); }
.price-list b { color: var(--color-ink); font-weight: 700; }
.price-figure { font: 800 clamp(4.5rem, 9vw, 9rem)/0.9 var(--font-display); letter-spacing: -0.05em; color: var(--color-plum); font-variant-numeric: tabular-nums; }
.price h3 { margin-top: var(--space-lg); }
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); margin: var(--space-xl) 0 0; padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.terms dt { font-weight: 700; }
.terms dd { margin: var(--space-2xs) 0 0; color: var(--color-muted); }

/* Next step */
.next { padding-block: var(--section-gap) var(--section-gap-s); }
.next-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: end; }
.next h2 { font-size: clamp(2.75rem, 4.6vw + 0.5rem, 5.5rem); line-height: 1.0; max-width: 10ch; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--color-rule); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); padding-block: var(--space-md); border-bottom: 1px solid var(--color-rule); font-size: var(--text-lg); }
.steps li::before { content: counter(step); font: 800 var(--text-lg)/1.3 var(--font-display); color: var(--color-orchid); }
.next-actions { grid-column: 1 / -1; align-items: center; gap: var(--space-lg); margin-top: var(--space-xl); }
.join-end { width: 14px; height: 14px; border-radius: var(--radius-pill); background: var(--color-accent); }

/* Footer */
.foot { border-top: 1px solid var(--color-rule); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-xl); color: var(--color-muted); font-size: var(--text-sm); }

/* Viewer */
.viewer {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: var(--space-xl) var(--space-3xl);
  border: 0; background: color-mix(in oklab, var(--color-night) 96%, transparent); color: var(--color-ink);
}
.viewer::backdrop { background: color-mix(in oklab, var(--color-device) 70%, transparent); }
.viewer[open] { display: grid; place-items: center; }
.viewer-figure { display: grid; justify-items: center; gap: var(--space-md); margin: 0; max-height: 100%; }
.viewer-figure img { max-width: 100%; max-height: calc(100svh - 160px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-card); }
.viewer-figure figcaption { color: var(--color-muted); font-size: var(--text-sm); text-align: center; }
.viewer-count { color: var(--color-ink); font-weight: 700; }
.viewer-btn {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); cursor: pointer;
  transition: border-color var(--dur-short) var(--ease-out);
}
.viewer-btn:hover { border-color: var(--color-ink); }
.viewer-btn:active { transform: translateY(1px); }
.viewer-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.viewer-prev { left: var(--space-lg); top: 50%; translate: 0 -50%; }
.viewer-next { right: var(--space-lg); top: 50%; translate: 0 -50%; }
.viewer-close { right: var(--space-lg); top: var(--space-lg); }
@media (prefers-reduced-motion: no-preference) {
  .viewer[open] .viewer-figure img { animation: settle var(--dur-long) var(--ease-out); }
  @keyframes settle { from { opacity: 0; transform: scale(0.98); } }
}

/* Smaller screens */
@media (max-width: 60rem) {
  .cover-grid, .contents-grid, .banners-grid, .next-grid { grid-template-columns: minmax(0, 1fr); }
  .cover-grid { min-height: 0; gap: var(--space-xl); }
  .cover-visual { padding-right: var(--space-2xl); }
  .banners-head { position: static; }
  .included { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details { grid-template-columns: minmax(0, 1fr); }
  .terms { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .index a { grid-template-columns: 3rem minmax(0, 1fr); }
  .index-line { grid-column: 2; }
}
@media (max-width: 40rem) {
  .runner-sub { display: none; }
  .cover-visual { padding-right: var(--space-xl); }
  .phone--cover { width: 27%; bottom: var(--space-2xl); }
  .cover-cap { padding-right: 0; }
  .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr); gap: var(--space-md); }
  .included { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .price { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .price-list li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .viewer { padding: var(--space-3xl) var(--space-md); }
  .viewer-prev, .viewer-next { top: auto; bottom: var(--space-lg); translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-track, .cover-field, .laptop, .phone--cover, .cover-copy > * { animation: none; }
  [data-still-toggle] { display: none; }
  [data-loop-toggle] { display: none; }
  .tile:hover { transform: none; }
}
