/* ==== 00-base.css ==== */
/* SURFER INU — base: tokens, grounds, type, THE SHAPING BAY kit (pin2, plate, ticket, stamp, tblock, swatch, str stringer,
   pills, rnd, pencil), header + menu drawer, toast. Archetype W. Fonts come from /css/fonts.css (linked in the head).
   Kit markup (parts copy it):
     <hr class="pin2">                                        double pinline (full width; set a width with a part class)
     <figure class="plate"><img ...><figcaption class="cap">..</figcaption></figure>      .plate.dark on bay
     <div class="ticket"><p class="ticket-hd"><span>WORK ORDER</span><span>No. 001</span></p>
       <p class="ticket-row"><b>CUSTOMER</b><span>value</span></p> ... <p class="ticket-ft">ONE BOARD</p></div>   (+ .sm, .suit)
     <p class="stamp">NO REPAIR NEEDED</p>                    rotate via a part wrapper, colour = var(--stamp-c)
     <div class="tblock"><p><b>MODEL</b><span>The Day Off</span></p> ... <p><b>CAPE</b><span class="rl">One</span></p></div>
     <span class="swatch resin"></span> / rail / clear
     the stringer: copy the #top markup in src/index.tpl.html (add .sm for the small one, drop ids). */
:root {
  --foam: #F3EAD9; --foam-hi: #FAF5EC; --foam-lo: #E9DCC4; --ink: #24221F; --graphite: #5C574F;
  --balsa: #E8CFA6; --balsa-lo: #CDAE7E; --sand: #E4BB89; --sand-lt: #EFD9B8;
  --resin: #F1BE31; --rail: #A41E1D; --suit: #043E7E; --sea: #267079;
  --bay: #1C1B19; --bay-2: #262421; --mist: #B8AE9E; --sun: #F6B650; --deep: #073C4C; --spray: #8FCBC8; --dawn: #FBD8BF;
  --ring: var(--ink); --em: var(--rail); --stamp-c: var(--rail);
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wide: 'Syncopate', 'Arial Black', system-ui, sans-serif;
  --pencil: 'Nanum Pen Script', 'Comic Sans MS', cursive;
  --m: clamp(16px, 3.5vw, 50px); --nav: 76px; --h1: clamp(38px, 5vw, 80px);
  --cutW: min(55vw, calc((100svh - 140px) * 1.0428), 980px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 1000px) and (max-height: 760px) { :root { --h1: min(5vw, 9vh); } }
@media (max-width: 1199px) { :root { --nav: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 12px); }
html:not(.rm) { scroll-behavior: smooth; }
body { margin: 0; background-color: var(--foam); color: var(--ink); font: 400 18px/1.6 var(--sans); overflow-x: clip; }
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background-color: var(--ink); color: var(--foam-hi); font-weight: 600; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 var(--m); box-sizing: content-box; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.sec { position: relative; padding: 112px 0; overflow-x: clip; }

/* ---------- grounds (each sets text colour, --em, --ring, --stamp-c). ::before = the ground texture (z -1). ---------- */
.gd-foam, .gd-foam-hi, .gd-sand, .gd-bay, .gd-bay2, .gd-deep, .gd-photo { position: relative; isolation: isolate; }
.gd-foam::before, .gd-foam-hi::before, .gd-sand::before, .gd-bay::before, .gd-bay2::before, .gd-deep::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: url(/img/grain.webp); background-size: 128px 128px; opacity: .5; }
.gd-foam { --em: var(--rail); --ring: var(--ink); --stamp-c: var(--rail); color: var(--ink); background-color: var(--foam);
  background-image: linear-gradient(100deg, #FAF5EC 0%, rgba(250, 245, 236, 0) 46%), linear-gradient(270deg, rgba(36, 34, 31, .05), rgba(36, 34, 31, 0) 32%); }
.gd-foam-hi { --em: var(--rail); --ring: var(--ink); --stamp-c: var(--rail); color: var(--ink); background-color: var(--foam-hi); }
.gd-foam-hi::before { opacity: .35; }
.gd-sand { --em: var(--rail); --ring: var(--ink); --stamp-c: var(--rail); color: var(--ink); background-color: var(--sand-lt); }
.gd-sand::before { background-image: radial-gradient(120% 80% at 0% 100%, rgba(250, 245, 236, .55), rgba(250, 245, 236, 0) 60%), url(/img/sand-192.webp); background-size: 100% 100%, 192px 192px; opacity: .75; }
.gd-bay, .gd-bay2 { --em: var(--sun); --ring: var(--sun); --stamp-c: var(--sun); color: var(--foam);
  background-image: linear-gradient(90deg, rgba(246, 182, 80, .12) 0%, rgba(246, 182, 80, 0) 42%), radial-gradient(60% 40% at 12% 100%, rgba(246, 182, 80, .10), rgba(246, 182, 80, 0) 70%); }
.gd-bay { background-color: var(--bay); }
.gd-bay2 { background-color: var(--bay-2); }
.gd-bay::before, .gd-bay2::before { opacity: .25; }
.gd-deep { --em: var(--sun); --ring: var(--sun); --stamp-c: var(--sun); color: var(--foam); background-color: var(--deep);
  background-image: linear-gradient(180deg, rgba(251, 216, 191, 0) 34%, var(--dawn) 34%, var(--dawn) calc(34% + 1px), rgba(251, 216, 191, 0) calc(34% + 1px)); }
.gd-deep::before { background-image: url(/img/water.webp); background-size: cover; background-position: 50% 100%; opacity: .35;
  -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 62%); mask-image: linear-gradient(180deg, transparent 40%, #000 62%); }
.gd-photo { --em: var(--rail); --ring: var(--ink); --stamp-c: var(--rail); color: var(--ink); background-color: var(--foam); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.01em; text-wrap: balance; color: inherit; }
h1 { font-weight: 300; font-size: var(--h1); line-height: 1.02; }
h1 em { display: block; font-style: italic; font-weight: 300; color: var(--rail); }
h2 { font-weight: 400; font-size: min(clamp(30px, 3.5vw, 58px), calc(var(--h1) * .74)); line-height: 1.08; }
h2 em { font-style: italic; font-weight: 400; color: var(--em); }
h3 { font-weight: 500; font-size: min(26px, calc(var(--h1) * .6)); line-height: 1.2; }   /* .6: 23px on phones (was .4 = 15px, under the 17px body) */
h3 em { font-style: italic; color: var(--em); }
.lbl { font: 700 13px/1.4 var(--wide); letter-spacing: .14em; }
.lead { font-size: 20px; line-height: 1.5; text-wrap: pretty; }
.cap { font-size: 15px; line-height: 1.45; font-style: italic; color: var(--graphite); }
.fine { font-size: 14px; line-height: 1.45; color: var(--graphite); }
.gd-sand .cap, .gd-sand .fine { color: var(--ink); }
.gd-bay .cap, .gd-bay2 .cap, .gd-bay .fine, .gd-bay2 .fine { color: var(--mist); }
.gd-deep .cap, .gd-deep .fine { color: var(--spray); }
.pencil { font-family: var(--pencil); font-weight: 400; font-size: 28px; line-height: 1.15; letter-spacing: 0; }

/* ---------- kit: double pinline ---------- */
.pin2 { display: block; width: 100%; height: 5px; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--rail); border-bottom: 1px solid rgba(36, 34, 31, .7); background: none; }
.gd-bay .pin2, .gd-bay2 .pin2 { border-top-color: var(--sun); border-bottom-color: var(--mist); }
.gd-deep .pin2 { border-top-color: var(--sun); border-bottom-color: var(--spray); }

/* ---------- kit: photo plate ---------- */
.plate { position: relative; display: block; padding: 10px; background-color: var(--foam-hi); border: 1px solid rgba(36, 34, 31, .12); border-radius: 4px; box-shadow: 0 14px 34px rgba(36, 34, 31, .10); }
.plate img { width: 100%; height: auto; border-radius: 2px; }
.plate .cap { margin-top: 10px; padding: 0 2px; }
.plate.dark { padding: 0; background-color: transparent; border-color: rgba(243, 234, 217, .14); box-shadow: none; overflow: hidden; }
.plate.dark img { border-radius: 3px; }
.plate.dark .cap { margin: 0; padding: 10px 12px 12px; color: var(--mist); }

/* ---------- kit: work order ticket (grid paper, hole punch, inset double pinline) ---------- */
.ticket { position: relative; display: block; padding: 34px 32px 26px; color: var(--ink); border: 1px solid var(--ink); background-color: var(--foam-hi);
  background-image: radial-gradient(circle at 26px 26px, #E2D4BA 0 3px, var(--foam) 5px 6px, var(--foam-lo) 6px 7px, rgba(233, 220, 196, 0) 7.5px),
    linear-gradient(var(--foam-lo) 1px, transparent 1px), linear-gradient(90deg, var(--foam-lo) 1px, transparent 1px);
  background-size: 100% 100%, 8px 8px, 8px 8px; background-repeat: no-repeat, repeat, repeat; box-shadow: 0 18px 40px rgba(36, 34, 31, .10); }
.ticket::before, .ticket::after { content: ''; position: absolute; pointer-events: none; }
.ticket::before { inset: 8px; border: 1px solid var(--rail); }
.ticket::after { inset: 12px; border: 1px solid rgba(36, 34, 31, .7); }
.ticket-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 0 0 14px 18px; border-bottom: 1px solid var(--ink);
  font: 700 13px/1.4 var(--wide); letter-spacing: .14em; }
.ticket-row { position: relative; display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(36, 34, 31, .14); font: 600 17px/1.35 var(--sans); }
.ticket-row b { font: 700 13px/1.4 var(--wide); letter-spacing: .14em; color: var(--graphite); }
.ticket-ft { position: relative; padding-top: 14px; font: 700 13px/1.5 var(--wide); letter-spacing: .14em; color: var(--graphite); }
.ticket.sm { padding: 30px 26px 20px; }
.ticket.sm .ticket-row { grid-template-columns: 104px minmax(0, 1fr); padding: 9px 0; font-size: 16px; }
.ticket.suit { border-color: var(--suit); }
.ticket.suit::before { border-color: var(--suit); }
.ticket.suit::after { border-color: rgba(4, 62, 126, .55); }
.ticket.suit .ticket-hd { color: var(--suit); border-bottom-color: var(--suit); }
.ticket.suit .ticket-row b, .ticket.suit .ticket-ft { color: var(--suit); }
@media (max-width: 519px) {
  .ticket { padding: 30px 22px 22px; }
  .ticket-row, .ticket.sm .ticket-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- kit: rubber stamp ---------- */
.stamp { display: inline-block; padding: 8px 16px 7px; border: 6px double var(--stamp-c); border-radius: 4px; color: var(--stamp-c);
  font: 700 18px/1.25 var(--wide); letter-spacing: .1em; text-align: center; transform: rotate(-6deg);
  -webkit-mask-image: url(/img/grain.webp), linear-gradient(#000, #000); -webkit-mask-composite: xor;
  mask-image: url(/img/grain.webp), linear-gradient(#000, #000); mask-composite: exclude; mask-size: 64px 64px, 100% 100%; -webkit-mask-size: 64px 64px, 100% 100%; }

/* ---------- kit: drafting title block ---------- */
.tblock { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--ink); background-color: var(--foam-hi); color: var(--ink); }
.tblock > * { display: grid; gap: 4px; align-content: start; padding: 12px 16px; border-left: 1px solid var(--ink); font: 600 17px/1.3 var(--sans); }
.tblock > *:first-child { border-left: 0; }
.tblock b { font: 700 13px/1.4 var(--wide); letter-spacing: .14em; color: var(--graphite); }
.tblock .rl { color: var(--rail); }
@media (max-width: 699px) {
  .tblock { grid-auto-flow: row; grid-auto-columns: auto; }
  .tblock > * { grid-template-columns: 104px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 10px 14px; border-left: 0; border-top: 1px solid var(--ink); }
  .tblock > *:first-child { border-top: 0; }
}

/* ---------- kit: resin swatch ---------- */
.swatch { position: relative; display: inline-block; flex: none; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--ink); overflow: hidden; background-color: var(--foam-hi); vertical-align: middle; }
.swatch::after { content: ''; position: absolute; top: 7px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border-top: 2px solid rgba(255, 255, 255, .85); border-right: 2px solid rgba(255, 255, 255, .35); transform: rotate(8deg); }
.swatch.resin { background-color: var(--resin); }
.swatch.rail { background-color: var(--rail); }
.swatch.clear { background-color: var(--foam-hi); background-image: linear-gradient(135deg, rgba(233, 220, 196, .9) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .95) 47%, rgba(255, 255, 255, 0) 56%, rgba(205, 174, 126, .25) 100%); }

/* ---------- kit: THE STRINGER (the CA on the wooden strip) ---------- */
.str { position: relative; display: block; max-width: 600px; color: var(--ink); }
.str-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 18px; margin-bottom: 8px; }
.str-head .lbl { line-height: 18px; }
.str-no { font: 700 13px/18px var(--wide); letter-spacing: .14em; color: var(--graphite); white-space: nowrap; }
.str-board { position: relative; padding: 10px 0; border: 1px solid var(--ink); border-radius: 40px 12px 12px 40px; overflow: hidden; background-color: var(--foam-lo);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 8px 20px rgba(36, 34, 31, .10); }
.str-wood { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 14px 6px 30px; background-color: var(--balsa);
  background-image: radial-gradient(70px 5px at 24% 38%, rgba(205, 174, 126, .55), rgba(205, 174, 126, 0) 70%), radial-gradient(110px 4px at 71% 66%, rgba(205, 174, 126, .5), rgba(205, 174, 126, 0) 70%),
    repeating-linear-gradient(0deg, rgba(205, 174, 126, .35) 0 1px, transparent 1px 7px);
  box-shadow: inset 0 1px 0 rgba(205, 174, 126, .9), inset 0 -1px 0 rgba(205, 174, 126, .9); }
.str .ca { position: relative; isolation: isolate; flex: 0 1 auto; min-width: 0; font: 600 16px/1.3 var(--sans); font-variant-numeric: tabular-nums lining-nums; letter-spacing: .02em; color: var(--ink); overflow-wrap: anywhere; }
.str .ca::before { content: ''; position: absolute; z-index: -1; inset: -3px -6px; border-radius: 3px; background-color: rgba(205, 174, 126, .6); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
.str .ca::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 1px; background-color: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.str.ok .ca::after { transform: scaleX(1); }
html.js:not(.rm) .str.ok .ca::after { animation: str-line .5s var(--ease) both; }
html.js:not(.rm) .str.ok .ca::before { animation: str-swipe 1.6s ease-out both; }
@keyframes str-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes str-swipe { 0% { transform: scaleX(0); opacity: 1; } 25% { transform: scaleX(1); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.str-copy { margin-left: auto; flex: none; }
.str-copy.pill.sm { width: 100px; padding: 0; gap: 6px; }   /* fixed width: Copy -> Copied never moves the address */
.str.ok .str-no { visibility: hidden; }
.str[data-soon] .str-wood { flex-wrap: wrap; row-gap: 2px; }
.str-nm { text-transform: none; }
.str-pre { flex: 1 1 auto; min-width: 0; font: italic 400 20px/1.25 var(--serif); }
.str-lock { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: auto; font: 700 13px/1.2 var(--wide); letter-spacing: .14em; color: var(--graphite); white-space: nowrap; }
.str-lock .ic { width: 18px; height: 18px; }
.str[data-soon] { cursor: pointer; }
.str.sm .ca { font-size: 15px; }
.str.sm .str-wood { min-height: 48px; }
@media (max-width: 699px) {
  .str .ca { font-size: 15px; }
  .str-copy.pill.sm { width: 88px; font-size: 15px; }
  .str-wood { gap: 10px; padding-left: 26px; }
  .str-pre { font-size: 18px; }
  .str-lock { font-size: 13px; }
}

/* ---------- kit: pills, round buttons, marks, icons ---------- */
.pill { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px;
  font: 600 17px/1 var(--sans); white-space: nowrap; text-decoration: none; color: var(--ink); flex: none; }
.pill.sm { height: 44px; padding: 0 18px; font-size: 15px; gap: 8px; }
.pill.buy { background-color: var(--resin); color: var(--ink); box-shadow: inset 0 0 0 3px var(--rail); }
.pill.buy:hover { box-shadow: inset 0 0 0 3px var(--rail), 0 10px 22px rgba(164, 30, 29, .18); }
.pill.ink { background-color: var(--ink); color: var(--foam-hi); }
.pill.ink:hover { background-color: #3a3631; }
.pill.line { background-color: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill.line:hover { background-color: rgba(36, 34, 31, .06); }
.pill.line-l { background-color: transparent; color: var(--foam); box-shadow: inset 0 0 0 1.5px var(--foam); }
.pill.line-l:hover { background-color: rgba(243, 234, 217, .1); }
.pill.foam { background-color: var(--foam-hi); color: var(--ink); }
.pill.foam:hover { background-color: #fffdf8; }
.pill.go { height: 72px; padding: 0 40px; font-size: 20px; background-color: var(--dawn); color: var(--deep); }
.pill.go:hover { background-color: #fde4d2; }
.pill .mk { flex: none; width: 20px; height: 20px; }
.pill .ic { width: 20px; height: 20px; }
.mk.inv { filter: invert(1); }
html.js:not(.rm) .pill { transition: transform .18s var(--ease), box-shadow .18s, background-color .18s; }
html.js:not(.rm) .pill:hover { transform: translateY(-2px); }
html.js:not(.rm) .pill:active { transform: scale(.97); }
.rnd { position: relative; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: inherit; text-decoration: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.rnd.lg { width: 56px; height: 56px; }
.rnd.ink { background-color: var(--ink); color: var(--foam-hi); box-shadow: none; }
.rnd:hover { background-color: rgba(36, 34, 31, .06); }
.rnd.ink:hover { background-color: #3a3631; }
.gd-bay .rnd:hover, .gd-bay2 .rnd:hover, .gd-deep .rnd:hover { background-color: rgba(243, 234, 217, .1); }
.rnd .mk { width: 18px; height: 18px; }
.rnd.lg .mk { width: 20px; height: 20px; }
.rnd .ic { width: 20px; height: 20px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- header (hd-) ---------- */
.hd { position: sticky; top: 0; z-index: 50; height: var(--nav); color: var(--ink); background-color: rgba(250, 245, 236, 0); }
.hd::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-top: 1px solid var(--rail); border-bottom: 1px solid rgba(36, 34, 31, .7); opacity: 0; pointer-events: none; }
.hd.solid { background-color: rgba(250, 245, 236, .96); }
.hd.solid::after { opacity: 1; }
html.js:not(.rm) .hd { transition: background-color .25s; }
.hd-in { display: flex; align-items: center; gap: 24px; height: 100%; max-width: 1340px; margin: 0 auto; padding: 0 var(--m); box-sizing: content-box; }
.hd-brand { display: flex; align-items: center; gap: 12px; min-height: 44px; flex: none; text-decoration: none; }
.hd-brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px var(--foam-lo); background-color: var(--foam-hi); }
.hd-brand b { font: 700 15px/1 var(--wide); letter-spacing: .18em; white-space: nowrap; }
.hd-nav { display: flex; gap: 28px; margin: 0 auto; }
.hd-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.hd-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background-color: var(--rail); transform: scaleX(0); transform-origin: 0 50%; }
html.js:not(.rm) .hd-nav a::after { transition: transform .25s var(--ease); }
.hd-nav a:hover::after, .hd-nav a:focus-visible::after, .hd-nav a.here::after { transform: scaleX(1); }
.hd-r { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.hd-nav + .hd-r { margin-left: 0; }
.hd-motion { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; font: 600 15px/1 var(--sans); white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(36, 34, 31, .35); }
.hd-motion:hover { background-color: rgba(36, 34, 31, .06); }
.hd-dot { width: 9px; height: 9px; border-radius: 50%; background-color: var(--rail); flex: none; }
html.rm .hd-dot { background-color: transparent; box-shadow: inset 0 0 0 1.5px var(--graphite); }
.hd-buy { display: none; }
.hd.past .hd-buy:not([hidden]) { display: inline-flex; }
.menu-btn { display: none; }
@media (max-width: 1199px) {
  .hd-nav, .hd-r > .rnd:not(.menu-btn), .hd .hd-buy, .hd.past .hd-buy:not([hidden]) { display: none; }
  .hd-r > .menu-btn { display: inline-grid; }
  .hd-nav + .hd-r { margin-left: auto; }
  .hd-in { gap: 12px; }
}
@media (max-width: 519px) {
  .hd-in { gap: 8px; }
  .hd-brand { gap: 10px; }
  .hd-r { gap: 6px; }
  .hd-motion { padding: 0 11px; gap: 7px; font-size: 14px; }
  .hd-st { display: none; }
}
@media (max-width: 359px) { .hd-brand b { display: none; } }

/* ---------- menu drawer ---------- */
.hd-scrim { position: fixed; inset: 0; z-index: 59; background-color: rgba(36, 34, 31, .45); }
.hd-drawer { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(420px, calc(100% - 32px)); overflow: hidden auto; overscroll-behavior: contain;
  padding: 0 24px 28px; background-color: var(--foam-hi); color: var(--ink); box-shadow: -18px 0 40px rgba(36, 34, 31, .16); }
.hd-drawer > .pin2 { position: sticky; top: 0; margin: 0 -24px; width: auto; background-color: var(--foam-hi); }
.hd-dhd { display: flex; align-items: center; gap: 12px; padding: 12px 0 10px; }
.hd-dhd .lbl { color: var(--rail); }
.hd-x { margin-left: auto; }
.hd-drawer nav { display: grid; }
.hd-drawer nav a { display: flex; align-items: baseline; gap: 14px; min-height: 50px; padding: 8px 0 6px; border-bottom: 1px solid rgba(36, 34, 31, .12); text-decoration: none; font: 400 30px/1.15 var(--serif); letter-spacing: -.01em; }
.hd-drawer nav a b { flex: none; width: 34px; font: 700 13px/1 var(--wide); letter-spacing: .14em; color: var(--rail); }
.hd-drawer nav a:hover { color: var(--rail); }
.hd-dft { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
html.js:not(.rm) .hd-drawer:not([hidden]) { animation: hd-in .3s var(--ease) 1; }
@keyframes hd-in { from { transform: translateX(48px); opacity: 0; } }

/* ---------- toast + footer shell ---------- */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 10px; background-color: var(--ink); color: var(--foam-hi);
  font: 600 15px/1.4 var(--sans); box-shadow: 0 12px 30px rgba(36, 34, 31, .25); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
html.js:not(.rm) .toast { transition: transform .3s var(--ease), opacity .3s; }
.foot { position: relative; padding: 72px 0 44px; }

/* ---------- phones ---------- */
@media (max-width: 699px) {
  body { font-size: 17px; }
  .g12 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .g12 > * { grid-column: 1 / -1 !important; }
  .sec { padding: 72px 0; }
  .lead { font-size: 19px; }
  .pill { padding: 0 22px; }
  .pill.sm { padding: 0 16px; }
  .pill.go { width: 100%; }
}

/* ---------- no JS: plain nav, no dead toggles ---------- */
html:not(.js) .menu-btn, html:not(.js) [data-motion] { display: none !important; }
@media (max-width: 1199px) { html:not(.js) .hd-nav { display: flex; flex: 1 1 auto; min-width: 0; overflow-x: auto; gap: 18px; } html:not(.js) .hd-brand b { display: none; } }

/* ---------- 404 page (site/404.html: body.gd-foam > main.wrap.e404) ---------- */
.e404 { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 20px; max-width: 760px; margin: 0 auto; }
.e404 img { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 0 1px var(--foam-lo); }
.e404 h1 { font: 300 min(clamp(36px, 5vw, 64px), calc(var(--h1) * .88))/1.04 var(--serif); }
.e404 .pin2 { width: min(380px, 100%); }

/* ==== 10-hero.css ==== */
/* #top — a studio portrait on a side-lit foam backdrop. z0 ground + grain · z1 raking-light sweep (::after) · z2 pinline band ·
   z3 .tp-fig (cut-out + pencil SVG) · z4 the copy column. Desktop >= 1000px: cut-out flush right + bottom; phones: a portrait window. */
.tp-hero { container-type: inline-size; min-height: 100svh; margin-top: calc(var(--nav) * -1); padding: var(--nav) 0 76px; overflow: clip; }
.tp-hero::after { content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; left: 30%; width: 40%; pointer-events: none;
  background-image: linear-gradient(100deg, rgba(250, 245, 236, 0), rgba(250, 245, 236, .30), rgba(250, 245, 236, 0)); }

/* the portrait */
.tp-fig { position: absolute; z-index: 3; right: 0; bottom: 0; width: var(--cutW); pointer-events: none; }
.tp-body { position: relative; transform-origin: 50% 100%; }
.tp-cut { width: 100%; height: auto; }
.tp-pen { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tp-ln { fill: none; stroke: var(--ink); stroke-width: 1.6px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.tp-notes { fill: var(--ink); }
.tp-dim { fill: var(--ink); font-family: var(--sans); font-weight: 600; }

/* the copy column */
.tp-wrap { position: relative; z-index: 4; padding-top: 52px; }
.tp-col { max-width: min(600px, calc(100vw - var(--cutW) - var(--m) - 24px)); }
@supports (width: 1cqw) { .tp-col, .tp-bandp { max-width: min(600px, calc(100cqw - var(--cutW) - var(--m) - 24px)); } }
.tp-eb { display: flex; flex-wrap: wrap; color: var(--rail); letter-spacing: .12em; }
.tp-eb-x { display: none; white-space: pre; }
.tp-h1 { margin-top: 18px; }
.tp-sub { margin-top: 20px; max-width: 32em; font-size: 19px; line-height: 1.5; text-wrap: pretty; }
.tp-col > .str { margin-top: 24px; }
.tp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.tp-fine { display: none; margin-top: 8px; }
.tp-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font: 600 16px/1.3 var(--sans); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--rail); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tp-link:hover { color: var(--rail); }

/* the pinline band: BOARD sizes + the disclaimer (>= 1000px) */
.tp-band { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; min-height: 48px; }
.tp-bandp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; padding: 11px 0 12px; font: 600 15px/1.35 var(--sans); color: var(--ink); }
.tp-bandp .lbl { line-height: 1.35; }
.tp-sep { color: var(--graphite); }
.tp-disc { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--graphite); }

@media (min-width: 1000px) {
  .tp-hero { background-image: radial-gradient(40% 50% at 86% 66%, rgba(36, 34, 31, .09), rgba(36, 34, 31, 0) 70%),
    linear-gradient(100deg, #FAF5EC 0%, rgba(250, 245, 236, 0) 46%), linear-gradient(270deg, rgba(36, 34, 31, .05), rgba(36, 34, 31, 0) 32%); }
}
@media (min-width: 1360px) { .tp-eb-x { display: inline; } }

/* ---------- stacked: the portrait window on top (< 1000px) ---------- */
@media (max-width: 999px) {
  .tp-hero { min-height: 0; padding-bottom: 44px; }
  .tp-fig { position: relative; width: 100%; height: 360px; overflow: hidden;
    background-image: linear-gradient(180deg, var(--foam) 0, var(--foam) 52%, var(--spray) 52%, var(--spray) calc(52% + 1px), rgba(143, 203, 200, .45) calc(52% + 1px), rgba(38, 112, 121, .55) calc(100% - 2px), var(--sea) calc(100% - 2px)); }
  .tp-body { position: absolute; width: 720px; left: calc(50% - 360px); top: -1.5vw; }
  .tp-pen, .tp-band { display: none; }
  .tp-wrap { padding-top: 16px; }
  .tp-col { max-width: 640px; }
  .tp-h1 { margin-top: 8px; }
  .tp-sub { margin-top: 12px; }
  .tp-col > .str { margin-top: 14px; }
  .tp-row { margin-top: 14px; }
  .tp-fine { display: block; }
  .tp-link { margin-top: 2px; }
}
@media (max-width: 699px) {
  .tp-fig { height: clamp(220px, 34svh, 300px); }
  .tp-body { width: 120vw; left: -5.6vw; }
  .tp-sub { font-size: 17px; line-height: 1.45; }
  .tp-row { gap: 8px; }
  .tp-row .pill { padding: 0 15px; gap: 7px; font-size: 16px; }
  .tp-row .pill.buy { flex: 1 0 auto; }
}
@media (max-width: 380px) { .tp-row { gap: 6px; } .tp-row .pill { padding: 0 12px; gap: 6px; font-size: 15px; } }
@media (max-width: 420px) and (max-height: 700px) {
  .tp-hero { --h1: 34px; }
  .tp-fig { height: 150px; }
  .tp-body { top: -15vw; }
  .tp-wrap { padding-top: 10px; }
  .tp-h1 { margin-top: 6px; }
  .tp-sub { font-size: 16px; }
  .tp-sub, .tp-col > .str, .tp-row { margin-top: 10px; }
}

/* ---------- motion (only html.js:not(.rm); loops pause off screen / hidden tab via .still) ---------- */
html.js:not(.rm) .tp-hero::after { animation: tp-sweep 18s ease-in-out infinite alternate; }
html.js:not(.rm) .tp-body { animation: tp-breathe 5.5s ease-in-out infinite alternate; }
.tp-hero.still::after, .tp-hero.still .tp-body { animation-play-state: paused; }
@keyframes tp-sweep { from { transform: translateX(-20%); } to { transform: translateX(20%); } }
@keyframes tp-breathe { from { transform: scale(1); } to { transform: scale(1.008); } }
/* pencil draw-on, once after the fonts load (10-hero.js adds .tp-draw); never replays after a Motion toggle (.settled) */
html.js:not(.rm):not(.settled) .tp-ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js:not(.rm):not(.settled) .tp-draw .tp-ln { animation: tp-dash 1.4s var(--ease) forwards; }
html.js:not(.rm):not(.settled) .tp-draw .tp-ln2 { animation-duration: .45s; animation-delay: 1s; }
html.js:not(.rm):not(.settled) .tp-n1, html.js:not(.rm):not(.settled) .tp-n2, html.js:not(.rm):not(.settled) .tp-dim { clip-path: inset(0 100% 0 0); }
html.js:not(.rm):not(.settled) .tp-draw .tp-n1 { animation: tp-wipe .5s ease-out .15s forwards; }
html.js:not(.rm):not(.settled) .tp-draw .tp-n2 { animation: tp-wipe .5s ease-out .27s forwards; }
html.js:not(.rm):not(.settled) .tp-draw .tp-dim { animation: tp-wipe .5s ease-out 1.05s forwards; }
@keyframes tp-dash { to { stroke-dashoffset: 0; } }
@keyframes tp-wipe { to { clip-path: inset(0 0 0 0); } }

/* ==== s01-02.css ==== */
/* Part A — #order (the work order No. 001, pencil answers write on) and #board (the spec sheet: title-block header,
   the line drawing with dimension badges + numbered callouts, materials, close-up, title-block strip).
   Prefixes or- bd-. Kit classes are used as they are. Motion only under html.js:not(.rm); entrances never replay (.settled). */

/* ================= #order ================= */
.or-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.or-hd { grid-column: 1 / 8; grid-row: 1; align-self: end; }
.or-cp { grid-column: 8 / 13; grid-row: 1; align-self: end; }
.or-ph { grid-column: 1 / 8; grid-row: 2; align-self: start; }
.or-wo { grid-column: 8 / 13; grid-row: 2; align-self: start; margin-top: 40px; }
.or-eb { margin-bottom: 14px; color: var(--rail); }
.or-pin { width: 120px; margin-top: 22px; }
.or-p { margin-top: 16px; max-width: 34em; }
.or-fine { margin-top: 18px; text-wrap: balance; }
.or-tk .ticket-row { align-items: baseline; }
.or-a { display: block; color: var(--ink); }
.or-note { display: block; }

/* pencil answers write on, left to right, 140ms apart */
html.js:not(.rm) .or-a { clip-path: inset(-12px -14px -12px -8px); transition: clip-path .45s cubic-bezier(.4, .1, .4, 1); }
html.js:not(.rm):not(.settled) .or-tk:not(.or-on) .or-a { clip-path: inset(-12px 100% -12px -8px); }
html.js:not(.rm) .or-a2 { transition-delay: .14s; }
html.js:not(.rm) .or-a3 { transition-delay: .28s; }
html.js:not(.rm) .or-a4 { transition-delay: .42s; }
html.js:not(.rm) .or-a5 { transition-delay: .56s; }
html.js:not(.rm) .or-a6 { transition-delay: .7s; }

/* ================= #board ================= */
.bd-top { position: absolute; top: 0; left: 0; right: 0; }
.bd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 64px; }
.bd-intro { grid-column: 1 / 7; grid-row: 1; align-self: center; }
.bd-ph { grid-column: 8 / 13; grid-row: 1; align-self: start; }
.bd-dwgf { grid-column: 1 / 13; grid-row: 2; }
.bd-mat { grid-column: 1 / 8; grid-row: 3; }
.bd-cl { grid-column: 8 / 13; grid-row: 3; }
.bd-tb { grid-column: 1 / 13; grid-row: 4; }

/* title-block header: a thin ink frame with the SHEET cell in its top-right corner */
.bd-hd { position: relative; padding: 50px 28px 28px; border: 1px solid var(--ink); }
.bd-sheet { position: absolute; top: 0; right: 0; padding: 7px 12px 6px; border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  font: 700 13px/1.4 var(--wide); letter-spacing: .14em; white-space: nowrap; }
.bd-eb { margin-bottom: 14px; color: var(--rail); }
.bd-lead { margin-top: 28px; max-width: 30em; }

/* THE DRAWING: a drafting sheet; the svg + badges + points share one 1200:420 box, so the % classes match the viewBox */
.bd-dwgf { padding: clamp(14px, 3.2vw, 44px); background-color: var(--foam-hi); border: 1px solid rgba(36, 34, 31, .2); border-radius: 2px;
  box-shadow: 0 14px 34px rgba(36, 34, 31, .07); }
.bd-dwg { position: relative; }
.bd-art { position: relative; aspect-ratio: 1200 / 420; }
.bd-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bd-ln { fill: none; stroke: var(--graphite); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.bd-str { stroke-dasharray: 6 6; stroke-linecap: butt; }
.bd-dm { stroke: var(--ink); stroke-width: 1px; }
.bd-dim { position: absolute; transform: translate(-50%, -50%); padding: 1px 8px; border-radius: 3px; background-color: var(--foam);
  font: 600 17px/1.3 var(--sans); color: var(--ink); white-space: nowrap; }
.bd-d1 { left: 50%; top: 5%; }
.bd-d2 { left: 49%; top: 36%; }
.bd-d3 { left: 88%; top: 76%; }
.bd-pt, .bd-no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background-color: var(--ink); color: var(--foam-hi);
  font: 600 15px/1 var(--sans); }
.bd-pt { position: absolute; margin: -14px 0 0 -14px; }
.bd-p1 { left: 96%; top: 36%; }
.bd-p2 { left: 47%; top: 12%; }
.bd-p3 { left: 11%; top: 26%; }
.bd-p4 { left: 83%; top: 80%; }

/* callouts: an ordered list under the drawing (phones, tablets); text beside the points on desktop */
.bd-calls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(36, 34, 31, .16); }
.bd-c { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font: 400 16px/1.45 var(--sans); color: var(--graphite); }
.bd-c b { display: block; margin-bottom: 2px; font: 700 13px/1.4 var(--wide); letter-spacing: .14em; color: var(--ink); }
.bd-no { margin-top: 2px; }

/* materials */
.bd-eb2 { margin-bottom: 20px; }
.bd-sw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bd-sw li { display: grid; justify-items: start; align-content: start; gap: 14px; padding-top: 20px; border-top: 1px solid rgba(36, 34, 31, .22); }
.bd-swt b { display: block; font: 700 13px/1.4 var(--wide); letter-spacing: .14em; }
.bd-swt span { display: block; margin-top: 2px; font-size: 17px; line-height: 1.4; color: var(--graphite); }
.bd-cu { max-width: 322px; }
.bd-fine { margin-top: 18px; }

/* desktop: callout text sits beside its numbered point inside the drawing box */
@media (min-width: 1000px) {
  .bd-calls { position: absolute; inset: 0; display: block; margin: 0; padding: 0; border: 0; }
  .bd-c { position: absolute; display: block; max-width: 260px; font-size: 15px; line-height: 1.4; }
  .bd-c .bd-no { display: none; }
  .bd-c1 { right: 1%; top: 51%; text-align: right; }
  .bd-c2 { left: 49.6%; top: 15%; }
  .bd-c3 { left: 16%; top: 19%; }
  .bd-c4 { right: 20.5%; top: 88%; max-width: none; white-space: nowrap; }
  .bd-c4 b { display: inline; margin-right: 8px; }
}
@media (max-width: 1299px) { .bd-d1 { left: 56%; } }

/* tablets */
@media (max-width: 999px) {
  .or-hd { grid-column: 1 / -1; grid-row: 1; }
  .or-ph { grid-column: 1 / 7; grid-row: 2; }
  .or-cp { grid-column: 7 / 13; grid-row: 2; align-self: center; }
  .or-wo { grid-column: 1 / -1; grid-row: 3; max-width: 640px; margin-top: 0; }
  .bd-intro { grid-column: 1 / 8; }
  .bd-ph { grid-column: 8 / 13; }
  .bd-mat, .bd-cl { grid-column: 1 / -1; }
  .bd-cl { grid-row: 4; }
  .bd-tb { grid-row: 5; }
  .bd-grid { row-gap: 52px; }
  .bd-p4 { left: 66%; top: 86%; }
}

/* phones: one column, in reading order */
@media (max-width: 699px) {
  .or-grid, .bd-grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .or-grid > *, .bd-grid > * { grid-column: 1 / -1; grid-row: auto; }
  .or-wo { margin-top: 8px; }
  .bd-grid { row-gap: 36px; }
  .bd-hd { padding: 48px 18px 22px; }
  .bd-lead { margin-top: 22px; }
  .bd-calls { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px; padding-top: 18px; }
  .bd-dim { padding: 0 5px; font-size: 15px; }
  .bd-d1 { left: 74%; }
  .bd-sw { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bd-sw li { grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 16px; padding: 14px 0; }
  .bd-sw li:last-child { border-bottom: 1px solid rgba(36, 34, 31, .22); }
}

/* the drawing draws (outline + rocker 1.8s; --L = each path's on-screen length, set by s01-02.js), then the dimension lines (.5s), then badges + callouts fade in, 60ms apart */
html.js:not(.rm) .bd-dr { stroke-dasharray: calc(var(--L, 0) * 1px); transition: stroke-dashoffset 1.8s cubic-bezier(.45, .05, .3, 1); }
html.js:not(.rm) .bd-dwg.bd-done .bd-dr { stroke-dasharray: none; }
html.js:not(.rm) .bd-dm.bd-dr { transition-duration: .5s; transition-delay: 1.5s; }
html.js:not(.rm):not(.settled) .bd-dwg:not(.bd-on) .bd-dr { stroke-dashoffset: calc(var(--L, 0) * 1px); }
html.js:not(.rm) .bd-str, html.js:not(.rm) .bd-fx { transition: opacity .45s ease; }
html.js:not(.rm) .bd-str { transition-delay: .9s; }
html.js:not(.rm):not(.settled) .bd-dwg:not(.bd-on) .bd-str, html.js:not(.rm):not(.settled) .bd-dwg:not(.bd-on) .bd-fx { opacity: 0; }
html.js:not(.rm) .bd-d1 { transition-delay: 1.95s; }
html.js:not(.rm) .bd-d2 { transition-delay: 2.01s; }
html.js:not(.rm) .bd-d3 { transition-delay: 2.07s; }
html.js:not(.rm) .bd-p1 { transition-delay: 2.13s; }
html.js:not(.rm) .bd-p2 { transition-delay: 2.19s; }
html.js:not(.rm) .bd-p3 { transition-delay: 2.25s; }
html.js:not(.rm) .bd-p4 { transition-delay: 2.31s; }
html.js:not(.rm) .bd-c1 { transition-delay: 2.37s; }
html.js:not(.rm) .bd-c2 { transition-delay: 2.43s; }
html.js:not(.rm) .bd-c3 { transition-delay: 2.49s; }
html.js:not(.rm) .bd-c4 { transition-delay: 2.55s; }

/* ==== s03-04.css ==== */
/* Part B — #test THE TEST RIDE (toy, gd-deep) + #sessions TEST RIDE NOTES (gd-bay). Prefixes tr- ss-.
   Motion only under html.js:not(.rm); loops pause off screen (.tr-on / .ss-on set by s03-04.js). The toy keeps its timing under rm. */

/* ---------- #test: centred header, the dawn horizon line runs behind the label ----------
   The deep ground draws its horizon at 34% of the section height, which landed on the lead text here. In this section
   the same 1px dawn line sits at the label's middle instead (section padding 112 / 72 + half the 18px label), full bleed. */
.tr-sec { background-image: linear-gradient(180deg, rgba(251, 216, 191, 0) 121px, var(--dawn) 121px, var(--dawn) 122px, rgba(251, 216, 191, 0) 122px); }
.tr-hd { display: grid; justify-items: center; gap: 18px; margin-bottom: 56px; text-align: center; }
.tr-eb { display: flex; justify-content: center; width: 100%; height: 18px; }
.tr-eb .lbl { flex: none; padding: 0 22px; line-height: 18px; background-color: var(--deep); color: var(--dawn); }
.tr-hd h2 { max-width: 16em; }
.tr-lead { max-width: 33em; color: var(--foam); }

/* ---------- the game layout: phones = scoreboard, stage, Go, feedback, result; desktop = stage 1-8 | side 9-12 ---------- */
.tr-game { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1000px) {
  .tr-game { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 22px; grid-template-rows: auto auto auto 1fr; }
  .tr-play { grid-column: 1 / 9; grid-row: 1 / span 4; }
  .tr-sb, .tr-say, .tr-res, .tr-fine { grid-column: 9 / 13; }
  .tr-sb { grid-row: 1; }
  .tr-say { grid-row: 2; }
  .tr-res { grid-row: 3; }
  .tr-fine { grid-row: 4; align-self: end; }
}

/* scoreboard: Syncopate labels in spray, Spectral 300 numerals in sun */
.tr-sb { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0 30px; margin: 0; padding: 14px 0 16px; border-top: 1px solid rgba(143, 203, 200, .4); border-bottom: 1px solid rgba(143, 203, 200, .4); }
.tr-sbc { display: grid; gap: 4px; align-content: start; min-width: 0; }
.tr-sb dt { color: var(--spray); }
.tr-sb dd { margin: 0; font: 300 44px/1.05 var(--serif); color: var(--sun); font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0; white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1239px) { .tr-sb { gap: 0 20px; } .tr-sb dd { font-size: 34px; } }

/* the stage: the ocean strip (10/3 desktop, 5/3 phones) */
.tr-play { min-width: 0; }
.tr-stage { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 10 / 3; border-radius: 4px; background-color: var(--deep);
  background-image: radial-gradient(70% 60% at 50% 32%, rgba(251, 216, 191, .16), rgba(251, 216, 191, 0) 70%);
  box-shadow: inset 0 0 0 1px rgba(143, 203, 200, .28), 0 18px 40px rgba(0, 0, 0, .22); }
/* the sea: water.webp below the horizon only (y 96 of 300 = 32%), calmed so the wave lips read */
.tr-stage::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 32%; bottom: 0; pointer-events: none;
  background-image: linear-gradient(180deg, rgba(7, 60, 76, .55), rgba(7, 60, 76, .15)), url(/img/water.webp); background-size: 100% 100%, cover; background-position: 0 0, 50% 0; background-repeat: no-repeat; }
.tr-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tr-svg line, .tr-svg path { vector-effect: non-scaling-stroke; }
.tr-hz { stroke: var(--dawn); stroke-width: 1px; }
.tr-wl { stroke: var(--spray); stroke-width: 1px; stroke-opacity: .55; }
.tr-fill { fill: rgba(250, 245, 236, .22); stroke: none; }
.tr-lip { fill: none; stroke: var(--spray); stroke-width: 2.5px; stroke-linejoin: round; stroke-linecap: round; }
.tr-post, .tr-tk { stroke: var(--spray); stroke-width: 1.5px; }
.tr-tk6 { stroke: var(--sun); stroke-width: 2.5px; }
/* wave slots (x %): 8 (passed, fades), 22 takeoff, 36, 50, 64, 78, 92 — user units, so the row slides with transform */
.tr-wv { transform: translate(360px, 230px); }
.tr-wv.tr-p0 { transform: translate(80px, 230px); opacity: 0; }
.tr-wv.tr-p1 { transform: translate(220px, 230px); }
.tr-wv.tr-p2 { transform: translate(360px, 230px); }
.tr-wv.tr-p3 { transform: translate(500px, 230px); }
.tr-wv.tr-p4 { transform: translate(640px, 230px); }
.tr-wv.tr-p5 { transform: translate(780px, 230px); }
.tr-wv.tr-p6 { transform: translate(920px, 230px); }
.tr-wv.tr-x, .tr-wv.tr-out, .tr-wv.tr-new { opacity: 0; }
html.js:not(.rm) .tr-wv { transition: transform .3s ease-out, opacity .3s ease-out; }
html.js:not(.rm) .tr-wv.tr-rw { transition-duration: .7s, .7s; }
html.js:not(.rm) .tr-wv.tr-out { transition-duration: .3s, .45s; }
html.js:not(.rm) .tr-svg.tr-snap .tr-wv { transition: none; }

.tr-big { position: absolute; left: 32%; top: calc(40.7% - 9px); line-height: 18px; color: var(--sun); pointer-events: none; }
.tr-rmv { position: absolute; inset: 0; pointer-events: none; transform-origin: 22% 77%; }
.tr-rider { position: absolute; right: 71%; bottom: calc(23.3% - 4px); width: clamp(84px, 12vw, 128px); height: auto; }
.tr-splash { position: absolute; left: 22%; bottom: calc(23.3% - 9px); width: 72px; height: 18px; margin-left: -36px; border: 2px solid var(--spray); border-radius: 50%; opacity: 0; pointer-events: none; }
.tr-hzl { position: absolute; left: 3%; right: 3%; bottom: calc(68% + 8px); font: 600 16px/1.3 var(--sans); color: var(--dawn); }

/* motion: rider bob (idle/run, in view), hit ride, small lift, flat splash */
html.js:not(.rm) .tr-sec.tr-on .tr-game[data-phase="idle"] .tr-rider,
html.js:not(.rm) .tr-sec.tr-on .tr-game[data-phase="run"] .tr-rider { animation: tr-bob 2.4s ease-in-out infinite alternate; }
@keyframes tr-bob { from { transform: translateY(3px); } to { transform: translateY(-3px); } }
html.js:not(.rm) .tr-rmv.tr-ride { animation: tr-ride .7s var(--ease) both; }
@keyframes tr-ride { 0% { transform: none; } 50% { transform: translate(-6%, -14px) rotate(-5deg); } 100% { transform: none; } }
html.js:not(.rm) .tr-rmv.tr-lift { animation: tr-lift .5s ease-out both; }
@keyframes tr-lift { 0%, 100% { transform: none; } 45% { transform: translateY(-5px); } }
html.js:not(.rm) .tr-splash.tr-pop { animation: tr-pop .6s ease-out both; }
@keyframes tr-pop { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* controls: one 72px slot under the stage (Start -> Go! -> Ride again), so nothing jumps */
.tr-ctl { display: flex; align-items: center; min-height: 72px; margin-top: 20px; }
.tr-go { width: 240px; }
html:not(.js) .tr-ctl { display: none; }

/* feedback + result */
.tr-say { min-height: 2.6em; font: italic 400 24px/1.3 var(--serif); color: var(--foam); text-wrap: pretty; }
.tr-res { display: grid; justify-items: start; gap: 18px; }
.tr-stw { transform: rotate(2deg); transform-origin: 0 50%; margin: 4px 0 2px 6px; }
.tr-st1 { display: block; font-size: 13px; letter-spacing: .16em; }
.tr-gr { display: block; text-transform: uppercase; font-size: 21px; }
html.js:not(.rm) .tr-stw.tr-stin { animation: tr-stamp .45s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes tr-stamp { from { transform: rotate(2deg) scale(1.25); opacity: 0; } to { transform: rotate(2deg) scale(1); opacity: 1; } }
.tr-line { font: 400 17px/1.5 var(--sans); color: var(--foam); }
.tr-pf { color: var(--sun); }
.tr-share { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 699px) {
  .tr-sec { background-image: linear-gradient(180deg, rgba(251, 216, 191, 0) 81px, var(--dawn) 81px, var(--dawn) 82px, rgba(251, 216, 191, 0) 82px); }
  .tr-hd { margin-bottom: 36px; gap: 14px; }
  .tr-eb .lbl { padding: 0 14px; }
  .tr-sb { gap: 0 18px; padding: 12px 0 13px; }
  .tr-sb dd { font-size: 34px; }
  .tr-stage { aspect-ratio: 5 / 3; }
  .tr-ctl { margin-top: 16px; }
  .tr-start, .tr-again { width: 100%; }
  .tr-say { min-height: 0; font-size: 22px; }
  .tr-share, .tr-share .pill { width: 100%; }
}
@media (max-width: 359px) { .tr-sb { gap: 0 12px; } .tr-sb dd { font-size: 28px; } }

/* ---------- #sessions: split header + editorial stagger of four photos ---------- */
.ss-sec::after { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: -8%; width: 62%; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(246, 182, 80, 0) 0%, rgba(246, 182, 80, .07) 50%, rgba(246, 182, 80, 0) 100%); }
html.js:not(.rm) .ss-sec::after { animation: ss-sweep 16s ease-in-out infinite alternate; animation-play-state: paused; }
html.js:not(.rm) .ss-sec.ss-on::after { animation-play-state: running; }
@keyframes ss-sweep { from { transform: translateX(-10%); } to { transform: translateX(10%); } }

.ss-hd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 64px; }
.ss-eb { margin-bottom: 18px; color: var(--sun); }
.ss-lead { max-width: 30em; color: var(--foam); }

.ss-grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 64px; align-items: start; }
.ss-s { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; min-width: 0; }
.ss-ph { min-width: 0; }
.ss-nt { display: grid; gap: 10px; align-content: start; max-width: 32em; }
.ss-no { color: var(--sun); }
.ss-nt h3 { font-size: min(26px, calc(var(--h1) * .64)); color: var(--foam); }   /* the kit h3 is 15px on phones, under a 22px note */
.ss-q { font: italic 400 22px/1.4 var(--serif); color: var(--foam); text-wrap: pretty; }
.ss-b { color: var(--mist); text-wrap: pretty; }

@media (min-width: 1000px) {
  .ss-hd { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; align-items: last baseline; margin-bottom: 80px; }
  .ss-hl { grid-column: 1 / 8; }
  .ss-lead { grid-column: 8 / 13; }
  .ss-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 104px; }
  .ss-s1, .ss-s2 { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .ss-s2 { grid-row: 1; }
  .ss-s1 { grid-row: 2; }
  .ss-s2 .ss-ph { grid-column: 1 / 9; grid-row: 1; }
  .ss-s2 .ss-nt { grid-column: 9 / 13; grid-row: 1; align-self: end; padding-bottom: 6px; }
  .ss-s1 .ss-ph { grid-column: 5 / 13; grid-row: 1; }
  .ss-s1 .ss-nt { grid-column: 1 / 5; grid-row: 1; align-self: start; padding-top: 6px; }
  .ss-s3 { grid-column: 1 / 6; grid-row: 3; }
  .ss-s4 { grid-column: 6 / 13; grid-row: 3; margin-top: 64px; }
}
@media (max-width: 699px) {
  .ss-hd { margin-bottom: 44px; }
  .ss-grid { row-gap: 56px; }
  .ss-s { gap: 18px; }
  .ss-q { font-size: 22px; }
}

/* photos rise in once when seen (rm: still) */
html.js:not(.rm):not(.settled) .ss-ph:not(.ss-in) { opacity: 0; transform: translateY(28px); }
html.js:not(.rm) .ss-ph { transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ==== s05-06.css ==== */
/* Part C — #ding (stamp header, wipeout plate with pencil notes ON the photo, the ding tag), #care (numeral header on real
   sand, three rules) and #small (ticket-strip header, order No. 002 for a puppy). Prefixes dg- cr- pp-. Kit classes are used
   as they are (only placed / sized from a part class). Motion only under html.js:not(.rm); entrances never replay (.settled). */

/* ================= #ding ================= */
/* desktop: the photo spans every row; the 1fr rows above and below centre the right column against it */
.dg-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: 24px; }
.dg-pl { grid-column: 1 / 7; grid-row: 1 / -1; align-self: start; }
.dg-hd, .dg-lead, .dg-tk, .dg-p { grid-column: 7 / 13; margin-left: clamp(0px, 2.4vw, 44px); }
.dg-hd { grid-row: 2; }
.dg-lead { grid-row: 3; margin-top: 48px; max-width: 32em; }
.dg-tk { grid-row: 4; margin-top: 34px; max-width: 520px; }
.dg-p { grid-row: 5; margin-top: 26px; max-width: 30em; }
.dg-eb { margin-bottom: 14px; color: var(--rail); }
.dg-h2 em { display: block; }
.dg-nw { white-space: nowrap; }

/* the stamp overlaps the end of the h2's last line ("fine.") */
.dg-hw { position: relative; width: fit-content; max-width: 100%; }
.dg-st { position: absolute; z-index: 1; left: calc(100% - 22px); bottom: -34px; width: max-content; transform-origin: 50% 50%; }
.dg-st .stamp { display: block; }

/* the photo with the shaper's pencil on it: the svg covers the image box exactly (square, viewBox 1024) */
.dg-pl { container-type: inline-size; }
.dg-box { position: relative; }
.dg-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dg-ln { fill: none; stroke: var(--ink); stroke-width: 1.6px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.dg-hl { stroke: var(--foam-hi); stroke-width: 4px; stroke-opacity: .42; }   /* a soft paper halo under each pencil line, so it reads on the blue suit */
.dg-pad { fill: var(--foam-hi); fill-opacity: .7; }
.dg-notes text { fill: var(--ink); }
/* the caption line is for screen readers on wide plates, and shows when the notes would fall under 22px (image < 490px) */
.dg-cap { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (max-width: 489.98px) {
  .dg-nt, .dg-nl { display: none; }
  .dg-cap { position: static; width: auto; height: auto; margin-top: 10px; padding: 0 2px; overflow: visible; clip-path: none; white-space: normal; }
}

/* motion: the pencil draws once (dashoffset; --L = on-screen length, set by s05-06.js), the notes write on, the stamp thumps down */
html.js:not(.rm) .dg-ln { stroke-dasharray: calc(var(--L, 0) * 1px); transition: stroke-dashoffset 1.2s cubic-bezier(.45, .05, .3, 1); }
html.js:not(.rm) .dg-box.dg-done .dg-ln { stroke-dasharray: none; }
html.js:not(.rm):not(.settled) .dg-box:not(.dg-on) .dg-ln { stroke-dashoffset: calc(var(--L, 0) * 1px); }
html.js:not(.rm) .dg-l2 { transition-duration: .45s; transition-delay: 1.05s; }
html.js:not(.rm) .dg-l3 { transition-duration: .8s; transition-delay: .35s; }
html.js:not(.rm) .dg-l4 { transition-duration: .25s; transition-delay: 1.15s; }
html.js:not(.rm) .dg-nt { clip-path: inset(-12px -12px -12px -12px); transition: clip-path .45s cubic-bezier(.4, .1, .4, 1); }
html.js:not(.rm):not(.settled) .dg-box:not(.dg-on) .dg-nt { clip-path: inset(-12px 100% -12px -12px); }
html.js:not(.rm) .dg-n1 { transition-delay: 1.3s; }
html.js:not(.rm) .dg-n2 { transition-delay: 1.5s; }
html.js:not(.rm) .dg-st { transition: transform .35s cubic-bezier(.55, 0, .9, .45), opacity .18s ease-in; }
html.js:not(.rm):not(.settled) .dg-st:not(.dg-on) { transform: scale(1.3); opacity: 0; }

/* ================= #care ================= */
.cr-hd { position: relative; isolation: isolate; max-width: 820px; padding-top: clamp(30px, 4.6vw, 66px); }
.cr-big { position: absolute; z-index: -1; top: clamp(8px, 2.8vw, 42px); left: -.05em; font: 300 min(clamp(140px, 16vw, 240px), calc(var(--h1) * 2.8))/.8 var(--serif); color: var(--foam-lo);
  text-shadow: 0 -1px 0 rgba(255, 255, 255, .6), 0 2px 1px rgba(150, 112, 62, .38); pointer-events: none; user-select: none; }   /* pressed into the sand */
.cr-eb { margin-bottom: 14px; }
.cr-lead { margin-top: 22px; max-width: 34em; }
.cr-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; margin-top: 64px; }
.cr-tx { margin-top: 26px; }
.cr-n { display: block; font: 300 min(64px, calc(var(--h1) * .88))/.95 var(--serif); color: var(--rail); }
.cr-tx h3 { margin-top: 10px; }
.cr-tx p { margin-top: 10px; max-width: 30em; }
/* rule 2: text only, centred between the two photos, framed by two thin pencil rules */
.cr-r2 { align-self: center; padding: 0 clamp(8px, 2vw, 34px); text-align: center; }
.cr-r2 .cr-tx { margin-top: 0; padding: 30px 0; border-top: 1px solid rgba(36, 34, 31, .35); border-bottom: 1px solid rgba(36, 34, 31, .35); }
.cr-r2 .cr-tx p { margin-left: auto; margin-right: auto; max-width: 22em; }
html.js:not(.rm) .cr-ph { transition: opacity .8s ease; }
html.js:not(.rm):not(.settled) .cr-ph:not(.cr-on) { opacity: 0; }

/* ================= #small ================= */
.pp-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto auto 1fr; column-gap: 24px; }
.pp-hd { grid-column: 1 / 6; grid-row: 2; }
.pp-cp { grid-column: 1 / 6; grid-row: 3; margin-top: 26px; padding-right: clamp(0px, 1.6vw, 28px); }
.pp-ph { grid-column: 6 / 13; grid-row: 1 / -1; align-self: center; margin-left: clamp(0px, 1.4vw, 24px); }
.pp-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 18px; max-width: 440px; margin-bottom: 26px; padding: 10px 16px;
  border: 1px solid var(--suit); background-color: var(--foam); box-shadow: inset 0 0 0 3px var(--foam), inset 0 0 0 4px rgba(4, 62, 126, .32);
  color: var(--suit); font: 700 13px/1.4 var(--wide); letter-spacing: .14em; }
.pp-h2 em { display: block; }
.pp-p { margin-top: 16px; max-width: 30em; }
.pp-tk { margin-top: 32px; max-width: 440px; }

/* ================= wide desktop: the photo in #ding gets 6 columns (it keeps the notes >= 22px) ================= */
@media (max-width: 1299px) {
  .dg-pl { grid-column: 1 / 8; }
  .dg-hd, .dg-lead, .dg-tk, .dg-p { grid-column: 8 / 13; margin-left: clamp(0px, 1.6vw, 24px); }
  /* the column is too narrow for the stamp beside the h2: it hangs under the end of the last line instead */
  .dg-st { position: relative; left: auto; bottom: auto; margin: -12px -10px 0 auto; }
  .dg-lead { margin-top: 26px; }
}

/* ================= tablets + phones: one column, in reading order ================= */
@media (max-width: 999px) {
  .dg-grid, .pp-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 30px; }
  .dg-grid > *, .pp-grid > * { grid-column: 1 / -1; grid-row: auto; margin-left: 0; margin-top: 0; }
  .dg-pl { max-width: 640px; }
  .dg-st { margin: 18px 0 0 6px; }
  .pp-ph { align-self: start; }
  .pp-cp { padding-right: 0; }
  .cr-rules { grid-template-columns: minmax(0, 1fr); gap: 56px; margin-top: 52px; }
  .cr-r { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
  .cr-r .cr-tx { margin-top: 0; }
  .cr-r2 { padding: 0; text-align: left; }
  .cr-r2 .cr-tx { grid-column: 2; padding: 26px 0; }
  .cr-r2 .cr-tx p { margin-left: 0; }
}
@media (max-width: 699px) {
  .dg-grid, .pp-grid { row-gap: 26px; }
  .cr-hd { padding-top: 34px; }
  .cr-rules { gap: 48px; margin-top: 40px; }
  .cr-r { display: block; }
  .cr-r .cr-tx { margin-top: 22px; }
  .cr-r2 .cr-tx { margin-top: 0; padding: 24px 0; }
}

/* ==== s07-end.css ==== */
/* Part D — #pickup (pk-), #last (ls-), #kit (kt-), footer (ft-). Kit classes are used as they are, never restyled here.
   Motion: the door sign swings (4s) and the last-wave photo zooms (22s) only under html.js:not(.rm), and only while
   s07-end.js marks them as on screen (.pk-run / .ls-run); otherwise they sit still. */

/* ---------- #pickup: PICK-UP DAY ---------- */
.pk-top { position: absolute; top: 0; left: 0; right: 0; }
.pk-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.pk-side { grid-column: 8 / 13; grid-row: 1; min-width: 0; }
.pk-van { grid-column: 1 / 8; grid-row: 1; }
.pk-eb { margin-bottom: 14px; color: var(--rail); }
.pk-steps { margin-top: 30px; border-top: 1px solid rgba(36, 34, 31, .7); }
.pk-steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(36, 34, 31, .14); }
.pk-n { font: 300 min(56px, calc(var(--h1) * .78))/1 var(--serif); font-variant-numeric: lining-nums; color: var(--rail); }
.pk-steps p { text-wrap: pretty; }
.pk-side .str { margin-top: 30px; }
.pk-acts { margin-top: 24px; }
.pk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pk-row + .pk-row { margin-top: 12px; }
.pk-fine { margin-top: 20px; }

/* THE DOOR SIGN: a printed card on a string from a nail, hung on the van photo's top-right corner (decor, aria-hidden) */
.pk-sign { --sw: 188px; --sl: 80px; --sa: 25.3deg; position: absolute; z-index: 2; top: -30px; right: 28px; width: var(--sw); transform: rotate(3deg); transform-origin: 50% 4px; pointer-events: none; }
.pk-sign::before, .pk-sign::after { content: ''; position: absolute; z-index: 0; top: 4px; left: 50%; width: var(--sl); height: 1px; background-color: var(--ink); transform-origin: 0 50%; }
.pk-sign::before { transform: rotate(var(--sa)); }
.pk-sign::after { transform: rotate(calc(180deg - var(--sa))); }
.pk-nail { position: absolute; z-index: 2; top: 0; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background-color: var(--graphite); background-image: radial-gradient(circle at 35% 35%, rgba(250, 245, 236, .55) 0 1.5px, rgba(250, 245, 236, 0) 2.5px);
  box-shadow: 0 1px 2px rgba(36, 34, 31, .35); }
.pk-card { position: relative; z-index: 1; display: block; margin-top: 32px; padding: 14px 6px 10px; border: 1px solid var(--ink); border-radius: 4px; text-align: center; color: var(--ink);
  background-color: var(--foam-hi);
  background-image: radial-gradient(circle at 21px 5px, var(--ink) 0 1.6px, rgba(36, 34, 31, 0) 2.2px), radial-gradient(circle at calc(100% - 21px) 5px, var(--ink) 0 1.6px, rgba(36, 34, 31, 0) 2.2px);
  box-shadow: 0 10px 18px rgba(36, 34, 31, .18); }
.pk-top-l { display: block; padding-left: .14em; font: 700 13px/1.4 var(--wide); letter-spacing: .14em; }
.pk-nw { white-space: nowrap; }
.pk-gone { display: block; margin-top: 4px; font: 600 17px/1.3 var(--sans); }
html.js:not(.rm) .pk-sign { animation: pk-swing 2s ease-in-out -1s infinite alternate paused; }
html.js:not(.rm) .pk-van.pk-run .pk-sign { animation-play-state: running; }
@keyframes pk-swing { from { transform: rotate(2deg); } to { transform: rotate(4deg); } }

/* ---------- #last: THE LAST WAVE (full bleed) ---------- */
.ls { position: relative; overflow: hidden; }
.ls-fig { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.ls-img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; transform-origin: 72% 50%; }
.ls-fig::before, .ls-fig::after { content: ''; position: absolute; z-index: 1; left: 0; right: 0; pointer-events: none; }
/* top: the foam of #pickup runs on into the photo (same raking light), so there is no seam */
.ls-fig::before { top: 0; height: 26%; background-color: var(--foam);
  background-image: linear-gradient(100deg, #FAF5EC 0%, rgba(250, 245, 236, 0) 46%), linear-gradient(270deg, rgba(36, 34, 31, .05), rgba(36, 34, 31, 0) 32%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 100%); }
/* phones: the photo also fades into the foam under it, where the text sits */
.ls-fig::after { bottom: 0; height: 30%; background-image: linear-gradient(180deg, rgba(243, 234, 217, 0) 0%, rgba(243, 234, 217, .7) 70%, var(--foam) 100%); }
.ls-wrap { position: relative; z-index: 2; padding-top: 4px; padding-bottom: 72px; }
.ls-txt { max-width: 520px; }
.ls-eb { margin-bottom: 14px; color: var(--rail); }
.ls-p { margin-top: 18px; max-width: 26em; text-wrap: pretty; }
.ls-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
html.js:not(.rm) .ls-img { animation: ls-zoom 22s ease-in-out infinite alternate paused; }
html.js:not(.rm) .ls.ls-run .ls-img { animation-play-state: running; }
@keyframes ls-zoom { from { transform: scale(1); } to { transform: scale(1.04); } }
@media (min-width: 1000px) {
  .ls { display: flex; align-items: center; height: min(92vh, 66.7vw); min-height: 520px; }
  .ls-fig { position: absolute; inset: 0; z-index: 0; aspect-ratio: auto; }
  .ls-img { object-position: 62% 50%; transform-origin: 62% 50%; }
  .ls-fig::before { height: 150px; }
  /* the foam haze from the left: the type sits on light */
  .ls-fig::after { top: 0; height: auto; background-image: linear-gradient(90deg, rgba(243, 234, 217, .94) 0%, rgba(243, 234, 217, .78) 26%, rgba(243, 234, 217, 0) 52%); }
  .ls-wrap { width: calc(100% - 2 * var(--m)); padding-top: 0; padding-bottom: 0; }
  .ls-txt { max-width: min(520px, 40vw); }
}

/* ---------- #kit: THE KIT ---------- */
.kt-hd { max-width: 760px; margin-bottom: 48px; }
.kt-eb { margin-bottom: 14px; color: var(--sun); }
.kt-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.kt-card { grid-column: 1 / 8; }
.kt-side { grid-column: 8 / 13; min-width: 0; }
.kt-p { max-width: 28em; }
.kt-acts { margin-top: 28px; }
.kt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.kt-row + .kt-row { margin-top: 12px; }

/* ---------- footer: the lam, links, sign-off, disclaimer ---------- */
.ft-line { position: absolute; top: 0; left: 0; right: 0; }
.ft-a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.ft-brand { display: flex; align-items: center; gap: 20px; }
.ft-logo { flex: none; width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(243, 234, 217, .3); }
/* THE LAM: the oval laminate logo, as on the deck of a hand-shaped board */
.ft-lam { position: relative; display: grid; place-content: center; justify-items: center; gap: 7px; flex: none; width: 320px; height: 132px; border: 2px solid var(--foam); border-radius: 50%; text-align: center; }
.ft-lam::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(243, 234, 217, .35); border-radius: 50%; pointer-events: none; }
.ft-lam-1 { padding-left: .14em; font: 700 20px/1 var(--wide); letter-spacing: .14em; color: var(--foam); }
.ft-lam-2 { padding-left: .1em; font: 700 13px/1 var(--wide); letter-spacing: .1em; color: var(--mist); }
.ft-bye { max-width: 23em; font: italic 400 22px/1.4 var(--serif); color: var(--foam); }
.ft-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 44px; }
.ft-b { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(243, 234, 217, .14); }
.ft-dis { max-width: 48em; }
.ft-c { white-space: nowrap; }

/* ---------- widths ---------- */
@media (min-width: 1000px) and (max-width: 1199px) {
  .pk-side { grid-column: 7 / 13; }
  .pk-van { grid-column: 1 / 7; }
}
@media (max-width: 999px) {
  .pk-grid, .kt-grid { grid-template-columns: minmax(0, 1fr); }
  .pk-side, .pk-van, .kt-card, .kt-side { grid-column: 1 / -1; grid-row: auto; }
  .pk-van { width: 100%; max-width: 640px; margin-top: 100px; }
  .pk-sign { --sw: 150px; --sl: 63px; --sa: 32.7deg; top: -86px; right: 16px; }
  .kt-grid { row-gap: 32px; }
  .kt-card { max-width: 720px; }
}
@media (max-width: 699px) {
  .pk-steps { margin-top: 24px; }
  .pk-steps li { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
  .pk-side .str { margin-top: 26px; }
  .pk-row { gap: 10px; }
  .kt-hd { margin-bottom: 32px; }
  .kt-row { gap: 10px; }
  .ft-links { margin-top: 36px; }
  .ft-bye { font-size: 20px; }
}
@media (max-width: 559px) {
  .ft-brand { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
  .ft-logo { width: 56px; height: 56px; }
  .ft-lam { width: min(320px, 100%); }
}

