/* Revbase dealer pages: shared design system (site-v2).
   Direction: colour chapters. One typeface, six flat fields, one grid, square corners.
   Page content lives in each page's HTML; this file carries the tokens and the chapter blueprints. */

/* 1. Tokens */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/SchibstedGrotesk-Variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/SchibstedGrotesk-Variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* colour: the six fields and their inks */
  --paper: #e7e8e3;
  --slate: #a6b3bc;
  --sage: #b7c8be;
  --blush: #d6c4b8;
  --olive: #2c3620;
  --ink: #1c1c1c;
  --pale: #e3e2da;
  --deep-slate: #3d4953;      /* the submerged ink on the slate field */
  --muted: #38424a;           /* secondary text on light fields only */
  --muted-pale: #bdbcb3;      /* secondary text on dark fields only */
  --accent: var(--olive);
  --accent-ink: var(--pale);
  --bg: var(--paper);
  --fg: var(--ink);

  /* type: one family, six steps */
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --step-small: 0.9375rem;                                  /* 15px */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);  /* 17 to 19px */
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);    /* 20 to 26px */
  --step-head: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);     /* 28 to 44px */
  --step-poster: clamp(2.5rem, 1rem + 4.5vw, 5rem);         /* 40 to 80px */
  --step-display: clamp(5rem, 9.5vw, 9.375rem);             /* 80 to 150px */
  --track-display: -0.05em;
  --lead-display: 0.88;

  /* space: one 8px scale */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;
  --s8: 8rem;
  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --tile-gap: 0.5rem;

  /* shape and motion */
  --radius: 0;
  --control-h: 3.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.5s;
  --dur-fast: 0.2s;
}

/* 2. Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fg);
  background: var(--bg);
  font-feature-settings: "kern";
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: var(--track-display); line-height: var(--lead-display); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }
strong { font-weight: 600; }
::selection { background: var(--olive); color: var(--pale); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
html { scrollbar-color: var(--olive) var(--paper); }
.num { font-variant-numeric: lining-nums proportional-nums; }
@media (max-width: 767px) {
  :root {
    --step-body: 1.0625rem;
    --step-lead: 1.25rem;
    --step-head: 1.75rem;
    --step-poster: 2.5rem;
    --step-display: 3.5rem;
  }
}

.skip {
  position: absolute; left: var(--margin); top: -4rem;
  padding: var(--s2) var(--s3); background: var(--ink); color: var(--pale); font-weight: 600; z-index: 20;
}
.skip:focus { top: var(--margin); }

/* 3. Grid and fields */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

.field { background: var(--field, var(--bg)); color: var(--field-ink, var(--fg)); }
.on-paper { --field: var(--paper); --field-ink: var(--ink); --muted-here: var(--muted); }
.on-slate { --field: var(--slate); --field-ink: var(--ink); --muted-here: var(--ink); }
.on-sage  { --field: var(--sage);  --field-ink: var(--ink); --muted-here: var(--ink); }
.on-blush { --field: var(--blush); --field-ink: var(--ink); --muted-here: var(--ink); }
.on-olive { --field: var(--olive); --field-ink: var(--pale); --muted-here: var(--muted-pale); }
.on-ink   { --field: var(--ink);   --field-ink: var(--pale); --muted-here: var(--muted-pale); }
.muted { color: var(--muted-here, var(--muted)); }
.small { font-size: var(--step-small); line-height: 1.4; }
.lead { font-size: var(--step-lead); line-height: 1.3; }
.measure { max-width: 60ch; }

/* 4. Controls: one button shape, square, flat */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: var(--control-h); padding: 0 var(--s4);
  background: var(--btn-bg, var(--accent)); color: var(--btn-ink, var(--accent-ink));
  font-weight: 600; font-size: var(--step-body); line-height: 1; text-decoration: none; letter-spacing: -0.01em;
  border: 0; border-radius: var(--radius); cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-color: currentColor; }
.on-olive .btn, .on-ink .btn { --btn-bg: var(--paper); --btn-ink: var(--ink); }

/* 5. Header: fixed, takes the ink of the chapter beneath it */
.site-head { background: var(--paper); color: var(--ink); }
.site-head .nav {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding-block: var(--s2);
}
.wordmark { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.nav-links { display: flex; gap: var(--s3); margin-inline: auto 0; }
.nav-links a { font-weight: 600; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { text-decoration: underline; }
.site-head .btn { min-height: 2.75rem; padding-inline: var(--s3); }
@media (max-width: 1023px) {
  .nav-links { display: none; }
}

/* 6. Chapters: full-bleed fields butted together */
.chapter { position: relative; }

/* 6.1 Hero: headline across two fields. Paper above, one colour below, the seam at 50svh. */
.hero-seam {
  --seam: 40svh;
  --head-h: 4.75rem;
  position: relative; min-height: calc(100svh - var(--head-h));
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-rows: calc(var(--seam) - var(--head-h)) 1fr;
}
.hero-seam .upper { background: var(--paper); }
.hero-seam .lower {
  background: var(--slate); position: relative; min-height: calc(100svh - var(--seam));
  padding: calc(var(--step-display) * 1.1) var(--margin) var(--s5);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: space-between; row-gap: var(--s5);
}
.hero-seam .title {
  position: absolute; left: var(--margin); right: var(--margin); top: calc(var(--seam) - var(--head-h) - 1.04em);
  font-size: var(--step-display); line-height: 1; letter-spacing: var(--track-display);
  text-align: left; margin: 0; z-index: 1; font-weight: 900; color: var(--ink);
}
.hero-seam .title span { display: block; }
.hero-seam .support { grid-column: 1 / 8; font-size: var(--step-lead); line-height: 1.3; max-width: 40ch; }
.hero-seam .lower > .btn { grid-column: 10 / 13; justify-self: end; align-self: start; }
.hero-seam .figures { grid-column: 1 / 13; display: grid; grid-template-columns: 5fr 4fr 3fr; column-gap: var(--gutter); align-items: start; }
.hero-seam .figures li { display: grid; grid-template-rows: auto 1fr; gap: var(--s2); }
.hero-seam .figures .figure { font-size: var(--step-poster); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; white-space: nowrap; }
.hero-seam .figures .caption { max-width: 26ch; }
@media (max-width: 1023px) {
  .hero-seam { min-height: 0; grid-template-rows: auto auto; }
  .hero-seam .upper { min-height: calc(var(--seam) - var(--head-h)); }
  .hero-seam .lower { min-height: 0; align-content: start; row-gap: var(--s5); }
  .terms { min-height: 0; }
}
@media (max-width: 767px) {
  .hero-seam { --hero-size: clamp(2.25rem, 10vw, 3.5rem); --seam: calc(var(--head-h) + 3rem + 1.04 * var(--hero-size)); }
  .hero-seam .title { font-size: var(--hero-size); }
  .hero-seam .lower { padding-top: calc(var(--step-display) * 1.1); row-gap: var(--s4); }
  .hero-seam .support { grid-column: 1 / 13; }
  .hero-seam .lower > .btn { grid-column: 1 / 13; justify-self: stretch; }
  .hero-seam .figures { grid-template-columns: 1fr; row-gap: var(--s4); margin-top: var(--s6); }
}

/* 6.2 Statement beside one large picture (the dealt staircase, set flush left after review) */
.stair { min-height: 100svh; padding-block: var(--s8) var(--s7); display: grid; align-content: center; }
.stair .grid { align-items: center; row-gap: var(--s5); }
.stair h2 { grid-column: 1 / 7; grid-row: 1; font-size: var(--step-poster); max-width: 12ch; align-self: end; }
.stair .statement { grid-column: 1 / 7; grid-row: 2; font-size: 2.25rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; max-width: 28ch; color: var(--sage); }
.stair .note { grid-column: 1 / 6; grid-row: 3; max-width: 40ch; align-self: start; }
.stair .pic { grid-column: 7 / 13; grid-row: 1 / 4; overflow: hidden; align-self: center; }
.stair .pic img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--slate); }
.stair .pic figcaption { padding-top: var(--s1); font-size: var(--step-small); }
@media (max-width: 1023px) {
  .stair { min-height: 0; padding-block: var(--s7) var(--s6); }
  .stair .grid { row-gap: var(--s4); }
  .stair h2, .stair .statement, .stair .note { grid-column: 1 / 13; }
  .stair .statement { font-size: 1.75rem; grid-row: 2; max-width: 40ch; }
  .stair .pic { grid-column: 1 / 13; grid-row: 3; }
  .stair .note { grid-row: 4; }
}
@media (max-width: 767px) {
  .stair .statement { font-size: 1.5rem; }
}

/* 6.3 Stepped figure tiles */
.tiles { padding-block: var(--s7) var(--s6); }
.tiles .grid { row-gap: var(--tile-gap); grid-auto-rows: min-content; }
.tiles .tile { position: relative; padding: var(--s4) var(--s3); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s4); }
.tiles .figure { font-size: var(--step-poster); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; }
.tiles .caption { max-width: 36ch; }
.tiles .tall { grid-column: 1 / 7; grid-row: 1 / 4; min-height: 52svh; }
.tiles .tall .caption { font-size: var(--step-lead); line-height: 1.3; }
.tiles h2 { grid-column: 7 / 13; grid-row: 1; font-size: var(--step-head); min-height: 14svh; align-self: start; padding-right: var(--s3); }
.tiles .mid { grid-column: 7 / 10; grid-row: 2 / 4; min-height: 44svh; }
.tiles .low { grid-column: 10 / 13; grid-row: 3; min-height: 34svh; align-self: end; }
.tiles .spacer { grid-column: 10 / 13; grid-row: 2; min-height: 12svh; }
.tiles .foot { grid-column: 7 / 13; padding-top: var(--s3); max-width: 48ch; }
.tiles .foot + .foot { padding-top: var(--s2); }
@media (max-width: 1023px) {
  .tiles { padding-block: var(--s6) var(--s5); }
  .tiles h2 { grid-column: 1 / 13; grid-row: 1; min-height: 0; padding-bottom: var(--s3); }
  .tiles .tall { grid-column: 1 / 13; grid-row: 2; min-height: 40vw; }
  .tiles .mid { grid-column: 1 / 7; grid-row: 3; min-height: 40vw; }
  .tiles .low { grid-column: 7 / 13; grid-row: 3; min-height: 40vw; align-self: stretch; }
  .tiles .spacer { display: none; }
  .tiles .foot { grid-column: 1 / 13; }
  .tiles .tall .figure { font-size: var(--step-display); }
  .tiles .tall { flex-direction: column-reverse; }
}
@media (max-width: 767px) {
  .tiles .mid .figure, .tiles .low .figure { font-size: var(--step-head); }
  .tiles .tile { gap: var(--s5); }
}

/* 6.4 Drag through the stages: a 50/50 split driven by one range input */
.stages { display: grid; grid-template-columns: 5fr 7fr; min-height: 88svh; position: relative; }
.stages .clause-field, .stages .fragment-field { padding: var(--s7) var(--margin) calc(var(--s8) + var(--s5)); }
.stages .fragment-field { padding-top: var(--s8); }
.stages .clause-field { display: grid; align-content: start; row-gap: var(--s4); }
.stages .stage h2 { font-size: var(--step-poster); max-width: 14ch; }
.stages .stage p { max-width: 40ch; margin-top: var(--s3); }
.stages .fragment-field { display: grid; align-content: center; justify-items: center; }
.stages .fragment { background: var(--paper); }
.stages .fragment img { width: 100%; }
.stages .fragment figcaption { padding-top: var(--s1); font-size: var(--step-small); }
.stages .fragments { display: grid; width: min(100%, 600px); }
.stages .fragment { width: 100%; }
.js .stages .fragment { grid-area: 1 / 1; transition: opacity 0.2s var(--ease); }
.js .stages .stage:not(.active) { display: none; }
.js .stages .fragment:not(.active) { opacity: 0; visibility: hidden; pointer-events: none; }
.no-js .stages .fragments { row-gap: var(--s4); }
.stages .slider {
  position: absolute; left: var(--margin); right: var(--margin); bottom: var(--s5);
  display: grid; gap: var(--s2);
}
.stages .track { position: relative; height: 0.5rem; background: var(--paper); }
.stages .track .fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.2s var(--ease); }
.stages input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 2.5rem; margin: 0; background: transparent;
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); cursor: pointer;
}
.stages input[type="range"]::-webkit-slider-runnable-track { height: 0.5rem; background: transparent; }
.stages input[type="range"]::-moz-range-track { height: 0.5rem; background: transparent; }
.stages input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 2rem; height: 2rem; margin-top: -0.75rem; background: var(--olive); border: 0; border-radius: 0; transition: transform var(--dur-fast) var(--ease); }
.stages input[type="range"]::-moz-range-thumb { width: 2rem; height: 2rem; background: var(--olive); border: 0; border-radius: 0; }
.stages input[type="range"]:hover::-webkit-slider-thumb, .stages input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.stages input[type="range"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.stages .names { display: flex; justify-content: space-between; gap: var(--s2); font-size: var(--step-body); font-weight: 600; }
.stages .names li { color: var(--muted-here); }
.stages .names li.active { color: var(--field-ink); }
.stages .names button { all: unset; cursor: pointer; color: inherit; font: inherit; padding: var(--s1) 0; }
.stages .names button:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.no-js .stages .slider { display: none; }
@media (max-width: 1023px) {
  .stages { grid-template-columns: 1fr; min-height: 0; }
  .stages .stage h2 { font-size: var(--step-head); }
  .stages .clause-field { order: 1; padding: var(--s7) var(--margin) var(--s4); }
  .stages .fragment-field { order: 2; min-height: 0; padding: var(--s5) var(--margin) var(--s5); }
  .stages .slider { position: static; order: 3; padding: var(--s4) var(--margin) var(--s6); background: var(--blush); }
  .stages .names { display: grid; grid-template-columns: 1fr; row-gap: var(--s1); font-size: var(--step-body); }
  .stages input[type="range"]::-webkit-slider-thumb { width: 2.5rem; height: 2.5rem; margin-top: -1rem; }
}

/* 6.5 Input half, output half */
.io { display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; position: relative; }
.io .in, .io .out { padding: 30svh var(--margin) calc(var(--step-poster) + var(--s6)); }
.io .in { display: grid; align-content: start; }
.io .raw {
  margin-left: calc(100% / 12 + var(--gutter));
  max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; white-space: pre-line;
}
.io .in .small { margin-left: calc(100% / 12 + var(--gutter)); margin-top: var(--s3); }
.io .out { display: grid; align-content: start; justify-items: start; }
.io .fragment { width: min(100%, 520px); }
.io .fragment img { width: 100%; }
.io .fragment figcaption { padding-top: var(--s1); font-size: var(--step-small); }
.io .split-head {
  position: absolute; left: var(--margin); right: var(--margin); bottom: var(--s4);
  display: flex; justify-content: space-between; font-size: var(--step-poster);
}
.io .split-head .a { color: var(--pale); }
.io .split-head .b { color: var(--ink); }
@media (max-width: 767px) {
  .io { grid-template-columns: 1fr; }
  .io .in, .io .out { min-height: 62svh; padding: var(--s7) var(--margin) var(--s6); }
  .io .raw, .io .in .small { margin-left: 0; font-size: var(--step-body); }
  .io .split-head { position: static; display: contents; }
  .io .split-head .a { order: 1; }
  .io .in { order: 0; }
  .io .split-head .b { order: 2; }
  .io .out { order: 3; }
  .io .split-head span { display: block; padding: var(--s3) var(--margin); font-size: var(--step-poster); font-weight: 800; }
  .io .split-head .a { background: var(--ink); }
  .io .split-head .b { background: var(--paper); }
}

/* 6.6 Two plans, two fields */
.plans { display: grid; grid-template-columns: 5fr 7fr; min-height: 90svh; }
.plans .plan { position: relative; padding: var(--s5) var(--s5) var(--s5); display: grid; align-content: start; row-gap: var(--s3); }
.plans .plan h2 { font-size: var(--step-poster); }
.plans .plan .who { max-width: 30ch; font-size: var(--step-lead); line-height: 1.3; }
.plans .plan .what { max-width: 40ch; }
.plans .plan .price {
  margin-top: auto; padding-top: var(--s6);
  display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap;
}
.plans .plan .price .big { font-size: var(--step-display); font-weight: 900; letter-spacing: var(--track-display); line-height: 0.85; }
.plans .plan .price .big.words { font-size: var(--step-poster); }
.plans .plan .price .period { font-size: var(--step-body); max-width: 22ch; }
.plans .plan .btn { position: absolute; right: var(--s5); bottom: var(--s5); }
.plans .plan.has-btn .price { padding-right: 16rem; }
@media (max-width: 1023px) {
  .plans { grid-template-columns: 1fr; }
  .plans .plan { min-height: 0; padding: var(--s7) var(--margin) var(--s7); }
  .plans .plan.has-btn .price { padding-right: 0; }
  .plans .plan .btn { position: static; justify-self: start; margin-top: var(--s4); }
}

/* 6.6b Three statements on one baseline */
.terms { padding-block: var(--s8) var(--s7); display: grid; align-content: start; }
.terms .grid { row-gap: var(--s6); }
.terms h2 { grid-column: 1 / 13; font-size: var(--step-poster); }
.terms .statements { display: contents; }
.terms .statements li:nth-child(1) { grid-column: 1 / 5; }
.terms .statements li:nth-child(2) { grid-column: 5 / 9; }
.terms .statements li:nth-child(3) { grid-column: 9 / 13; }
.terms .statements li { font-size: var(--step-head); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; padding-right: var(--s3); }
.terms .side { max-width: 40ch; }
.terms .side:nth-of-type(1) { grid-column: 1 / 5; }
.terms .side:nth-of-type(2) { grid-column: 5 / 9; }
@media (max-width: 1023px) {
  .terms .statements li:nth-child(n) { grid-column: 1 / 13; }
  .terms .side:nth-of-type(1), .terms .side:nth-of-type(2) { grid-column: 1 / 13; }
  .stair { min-height: 0; }
}
@media (max-width: 767px) {
  .terms { min-height: 0; padding-block: var(--s7); }
  .terms h2 { font-size: 2.25rem; }
  .terms .grid { row-gap: var(--s5); }
}

/* 6.7 A band per question */
.bands .band-head { min-height: 40svh; display: grid; align-content: end; padding-block: var(--s6) var(--s4); overflow: hidden; }
.bands .band-head h2 { font-size: var(--step-display); line-height: 1; }
.bands .band { padding-block: var(--s5); }
.bands .band h3 { grid-column: 1 / 6; font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.03em; }
.bands .band p { grid-column: 7 / 13; line-height: 1.5; max-width: 60ch; }
@media (max-width: 767px) {
  .bands .band-head { min-height: 0; }
  .bands .band { padding-block: var(--s4); }
  .bands .band h3, .bands .band p { grid-column: 1 / 13; }
  .bands .band h3 { font-size: var(--step-lead); padding-bottom: var(--s2); }
}

/* 6.8 The idea again, inverted */
.close { min-height: 90svh; position: relative; padding: var(--s8) var(--margin) 10rem; display: grid; align-content: start; }
.close h2 { font-size: var(--step-display); line-height: 0.9; }
.close .foot {
  position: absolute; left: var(--margin); right: var(--margin); bottom: 10rem;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end;
}
.close .foot p { grid-column: 1 / 6; font-size: var(--step-lead); line-height: 1.3; }
.close .foot .gets { grid-column: 1 / 6; font-size: var(--step-lead); line-height: 1.3; display: grid; gap: var(--s1); }
.close .foot .gets + p { grid-column: 6 / 10; font-size: var(--step-body); }
.close .foot .btn { grid-column: 10 / 13; justify-self: end; }
@media (max-width: 1023px) {
  .close { min-height: 0; padding: var(--s7) var(--margin) var(--s7); row-gap: var(--s6); }
  .close .foot { position: static; }
}
@media (max-width: 767px) {
  .close .foot p, .close .foot .gets, .close .foot .gets + p { grid-column: 1 / 13; padding-bottom: var(--s4); }
  .close h2 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .close .foot .btn { grid-column: 1 / 13; justify-self: stretch; }
}

/* 6.9 A footer of tiles */
.board { padding: 0 var(--margin) var(--margin); }
.board .grid { row-gap: var(--tile-gap); column-gap: var(--tile-gap); }
.board .tile { padding: var(--s3); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3); min-height: 220px; }
.board .tile p, .board .tile li { max-width: 46ch; }
.board .statement { grid-column: 1 / 5; }
.board .statement .lead { font-size: var(--step-lead); line-height: 1.3; }
.board .links { grid-column: 5 / 8; }
.board .links li + li { margin-top: var(--s1); }
.board .sources { grid-column: 8 / 13; }
.board .sources ol { display: grid; gap: var(--s1); font-size: var(--step-small); line-height: 1.4; max-width: none; }
.board .sources h2 { font-size: var(--step-body); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.board .mark { grid-column: 1 / 9; min-height: 320px; display: grid; place-items: center; }
.board .mark .big { font-size: var(--step-display); font-weight: 900; letter-spacing: var(--track-display); line-height: 1; }
.board .act {
  grid-column: 9 / 13; min-height: 320px; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform var(--dur-fast) var(--ease);
}
.board .act:hover { transform: translateY(-3px); }
.board .act:active { transform: translateY(1px); }
.board .act .invite { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.board .act svg { width: 3rem; height: 3rem; align-self: flex-end; }
@media (max-width: 767px) {
  .board .grid { grid-template-columns: 1fr; row-gap: 6px; }
  .board .tile { grid-column: 1 / -1; padding: var(--s3); min-height: 0; }
  .board .statement { order: 0; }
  .board .links { order: 1; }
  .board .sources { order: 2; }
  .board .mark { order: 3; min-height: 160px; }
  .board .act { order: 4; min-height: 160px; }
}

/* 7. Motion: entrances (JS adds .js and .in), reduced motion keeps content and drops travel */
.js [data-reveal] [data-part] {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].in [data-part] { opacity: 1; transform: none; }
.drift { overflow: hidden; }
.drift img { transform-origin: center; }
.js .stages .stage.active, .js .stages .fragment.active { animation: cross 0.2s var(--ease); }
@keyframes cross { from { opacity: 0; } to { opacity: 1; } }
@supports (animation-timeline: view()) {
  .drift img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes drift { from { transform: scale(1.08) translateY(2%); } to { transform: scale(1) translateY(-2%); } }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] [data-part] { transform: none; transition: opacity var(--dur) var(--ease); }
  .drift img { animation: none; }
  .btn, .board .act, .stages input[type="range"]::-webkit-slider-thumb { transition: none; }
  .btn:hover, .board .act:hover { transform: none; }
  .js .stages .stage.active, .js .stages .fragment.active { animation: none; }
}
