/* Open Shuttlecock. One board of flat tiles: bone ground, chocolate ink, one green. */

:root {
  --bg: #e5e1d8;
  --surface: #dad5ca;
  --paper: #efeeea;
  --tan: #c9c1b1;
  --mid: #6b5b51;
  --deep: #2a1d17;
  --deep-2: #3b2b23;
  --ink: #2a1d17;
  --muted: #5a4b42;
  --accent: #456f3a;
  --on-dark: #efeeea;
  --on-dark-soft: #c9c1b1;
  --deep-3: #33241d;
  --accent-ink: #fff;
  --accent-hover: #3a5f31;
  --paper-hover: #fff;
  --card: #fff;
  --card-ink: #2a1d17;
  --card-soft: #efeeea;
  --card-muted: #5a4b42;
  --card-accent: #456f3a;
  --mark-ink: #2a1d17;
  --mark-accent-ink: #2a1d17;
  --tint-1: #a9c79f;
  --tint-2: #efeeea;
  --tint-3: #d6b89a;
  --tint-4: #c9c1b1;
  --w-display: 300;

  --gap: 8px;
  --pad: 24px;
  --r: 8px;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.05rem + 1.3vw, 2.125rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-title: clamp(2.75rem, 1rem + 7.4vw, 8rem);

  --font-display: "Stack Sans Headline", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-text: "Stack Sans Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--font-text);
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
p, li, dd, h1, h2, h3 { overflow-wrap: anywhere; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  letter-spacing: -0.022em;
  line-height: 1.05;
}
h2 { font-size: var(--step-head); }
h3 { font: 500 var(--step-lead)/1.15 var(--font-display); letter-spacing: -0.015em; }
.statement { font: var(--w-display) var(--step-lead)/1.2 var(--font-display); letter-spacing: -0.015em; }
.soft { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.t-accent :focus-visible, .cta-main :focus-visible, .hero-name :focus-visible { outline-color: var(--paper); }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: fixed; left: var(--gap); top: var(--gap); z-index: 10;
  background: var(--deep); color: var(--on-dark); padding: 12px 16px; border-radius: var(--r);
}
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- tiles ---------- */

.tile {
  background: var(--surface);
  border-radius: var(--r);
  padding: var(--pad);
  min-width: 0;
}
.t-paper { background: var(--paper); }
.t-tan { background: var(--tan); }
.t-deep { background: var(--deep); color: var(--on-dark); }
.t-accent { background: var(--accent); color: var(--accent-ink); }
.t-photo { padding: 0; overflow: hidden; background: var(--deep); }
.t-photo img { width: 100%; height: 100%; object-fit: cover; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--r);
  font: 500 var(--step-body)/1 var(--font-text);
  text-decoration: none; cursor: pointer;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease);
}
.button:hover { background: var(--accent-hover); transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.98); }
.button-paper { background: var(--paper); color: var(--ink); }
.button-paper:hover { background: var(--paper-hover); }
.button-small { min-height: 40px; padding: 0 16px; font-size: var(--step-small); }

/* ---------- home: first screen ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 64px minmax(0, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  height: 100svh;
  min-height: 700px;
  max-height: 1100px;
}
.hero-name {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r);
}
.hero-name h1 {
  font-size: calc((100vw - 56px) / 7.9);
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  padding: 0.04em 0 0.1em;
}
.hero-nav, .top-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
}
.hero-nav { grid-column: 1 / -1; }
.nav-tile {
  display: flex; align-items: flex-start;
  padding: 16px 20px;
  font-size: var(--step-body); line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
a.nav-tile:hover { background: var(--deep); color: var(--on-dark); }
a.nav-tile[aria-current="page"] { background: var(--deep); color: var(--on-dark); }
.nav-lang { position: relative; display: block; padding: 0; background: var(--paper); }
.nav-lang summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  height: 100%; min-height: 56px; padding: 16px 20px;
  cursor: pointer; list-style: none;
}
.nav-lang summary::-webkit-details-marker { display: none; }
.nav-lang summary::after {
  content: ""; flex: none; width: 0.5em; height: 0.5em; margin-top: 0.25em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 150ms var(--ease);
}
.nav-lang[open] summary::after { transform: rotate(225deg) translate(-0.2em, -0.2em); }
.nav-lang ul {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 30;
  min-width: 100%; padding: 8px;
  background: var(--deep); color: var(--on-dark); border-radius: var(--r);
}
.nav-lang li a { display: block; padding: 10px 12px; border-radius: 4px; text-decoration: none; white-space: nowrap; }
.nav-lang li a:hover { background: var(--deep-2); }

/* Scripts other than Latin: their own system faces, more leading, no negative tracking. */
:lang(ja) { --font-display: "Stack Sans Headline", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif; --font-text: "Stack Sans Text", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif; }
:lang(ko) { --font-display: "Stack Sans Headline", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; --font-text: "Stack Sans Text", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
:lang(th) { --font-display: "Stack Sans Headline", "Thonburi", "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif; --font-text: "Stack Sans Text", "Thonburi", "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif; }
:lang(hi) { --font-display: "Stack Sans Headline", "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", system-ui, sans-serif; --font-text: "Stack Sans Text", "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", system-ui, sans-serif; }
:lang(th) :is(h1, h2, h3, .statement, .how-clause, .row summary, .marquee-track),
:lang(hi) :is(h1, h2, h3, .statement, .how-clause, .row summary, .marquee-track) { line-height: 1.35; letter-spacing: 0; }
:lang(ja) :is(h1, h2, h3, .statement, .how-clause, .row summary),
:lang(ko) :is(h1, h2, h3, .statement, .how-clause, .row summary),
:lang(zh) :is(h1, h2, h3, .statement, .how-clause, .row summary) { line-height: 1.2; }
:lang(ko) :is(h1, h2, h3, p, li, summary) { word-break: keep-all; }
.hero-name h1:lang(en) { line-height: 1; letter-spacing: -0.04em; }

.hero-left {
  grid-column: 1 / 3;
  display: grid; grid-template-rows: 3fr 2fr; gap: var(--gap);
  min-height: 0;
}
.hero-portrait { min-height: 0; }
.hero-facts { padding: 20px; overflow: hidden; }
.plain li + li { margin-top: 0.5em; }
.hero-facts .plain { font-size: var(--step-small); line-height: 1.35; }
.hero-facts .plain li + li { margin-top: 0.6em; }

.hero-centre {
  grid-column: 3 / 11;
  position: relative; overflow: hidden;
  border-radius: var(--r);
  background: var(--deep);
  min-height: 0;
}
.hero-centre img { width: 100%; height: 100%; object-fit: cover; }
.hero-statement {
  position: absolute; left: var(--gap); right: var(--gap); bottom: var(--gap);
  background: var(--bg);
  max-width: 34em;
}

.hero-rail {
  grid-column: 11 / 13;
  display: grid; grid-auto-rows: minmax(0, 1fr); gap: var(--gap);
  min-height: 0;
}
.rail-tile { padding: 16px 20px; font-size: var(--step-body); line-height: 1.25; }
.rail-1 { background: var(--paper); }
.rail-2 { background: var(--surface); }
.rail-3 { background: var(--tan); }
.rail-4 { background: var(--deep); color: var(--on-dark); }
.rail-action {
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; text-decoration: none;
  display: flex; align-items: flex-end;
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}
.rail-action:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ---------- home: how a reading works ---------- */

.how {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 var(--gap);
  border-radius: var(--r); overflow: hidden;
  min-height: 84svh;
}
.how-field {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 32px;
  padding: 28px;
  min-height: 620px;
}
.how-field-1 { background: var(--paper); }
.how-field-2 { background: var(--tan); }
.how-field-3 { background: var(--mid); color: var(--on-dark); }
.how-field-4 { background: var(--deep); color: var(--on-dark); }
.how-heading {
  position: absolute; top: 28px; left: 28px; right: 28px;
  font: 500 var(--step-lead)/1.1 var(--font-display);
}
.how-clause { font: var(--w-display) var(--step-lead)/1.15 var(--font-display); letter-spacing: -0.015em; min-height: 2.3em; }

.shot-card {
  width: min(260px, 100%);
  margin: 0 auto;
  padding: 16px;
  background: var(--card); color: var(--card-ink);
  border-radius: var(--r);
  font-size: var(--step-small); line-height: 1.3;
  transition: transform 150ms var(--ease);
}
.how-field:hover .shot-card { transform: translateY(-6px); }
.shot-card-title { font-weight: 500; margin-bottom: 12px; }
.shot-slots { display: grid; gap: 6px; }
.shot-slot { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 12px; }
.shot-thumb, .shot-empty { width: 72px; height: 54px; border-radius: 4px; overflow: hidden; }
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shot-thumb img.zoom { transform: scale(2.1); transform-origin: 66% 42%; }
.shot-thumb img.zoom-top { object-position: 50% 70%; }
.shot-empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--card-soft); color: var(--card-muted);
}
.shot-slot:not(.is-filled) .shot-label { color: var(--card-muted); }
.shot-progress, .shot-result { margin-top: 12px; padding-top: 12px; background: none; color: var(--card-muted); }
.shot-result { display: grid; gap: 2px; color: var(--card-ink); }
.shot-result strong { font: 500 var(--step-body)/1.2 var(--font-text); color: var(--card-accent); }

/* ---------- home: the sample reading ---------- */

.sample {
  margin: var(--gap);
  padding: var(--pad) 12px 12px;
  background: var(--deep); color: var(--on-dark);
  border-radius: var(--r);
}
.sample-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px;
  padding: 8px 12px 28px;
}
.sample-note { color: var(--on-dark-soft); max-width: 28em; }
.sample-board { display: grid; gap: 4px; }
.sample-warning {
  padding: 16px 20px;
  background: var(--paper); color: var(--ink);
  border-radius: var(--r);
  font-weight: 500;
}
.row { background: var(--deep-2); border-radius: var(--r); transition: background-color 200ms var(--ease); }
.row summary {
  display: grid; grid-template-columns: 5fr 5fr 2fr; align-items: center; gap: 16px;
  min-height: 72px; padding: 12px 12px 12px 20px;
  font: var(--w-display) var(--step-lead)/1.15 var(--font-display); letter-spacing: -0.015em;
  cursor: pointer; list-style: none;
}
.row summary::-webkit-details-marker { display: none; }
.row summary:hover .row-name { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.row-value { color: var(--on-dark-soft); }
.row-conf {
  justify-self: end;
  min-width: 5.5em; padding: 10px 14px;
  border-radius: 4px; text-align: center;
  font: 500 var(--step-body)/1 var(--font-text); letter-spacing: 0;
}
.conf-high { background: var(--paper); color: var(--ink); }
.conf-medium { background: var(--tan); color: var(--ink); }
.conf-low { background: var(--mid); color: var(--on-dark); }
.row[open] { background: var(--accent); }
.row[open], .row[open] .row-value { color: var(--accent-ink); }
.row-detail { padding: 4px 20px 28px; max-width: 46em; min-height: 96px; }

/* ---------- home: marquee ---------- */

.marquee {
  margin: 0 var(--gap);
  overflow: hidden;
  background: var(--tan);
  border-radius: var(--r);
}
.marquee-track {
  display: flex; width: max-content;
  padding: 28px 0;
  font: var(--w-display) var(--step-head)/1 var(--font-display); letter-spacing: -0.022em;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { padding-right: 0.35em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- home: what a photo cannot tell you ---------- */

.limits { margin: var(--gap); padding: 56px var(--pad) var(--pad); background: var(--paper); border-radius: var(--r); }
.limits-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.limits-head h2 { max-width: 12em; }
.limits-head h2 .soft { display: block; }
.limits-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; margin-top: 56px; }
.tabs { display: grid; gap: 6px; align-content: start; }
.tab {
  display: grid; gap: 4px; align-content: center;
  min-height: 64px; padding: 10px 16px;
  background: var(--surface); color: var(--ink);
  border: 0; border-radius: var(--r);
  font: inherit; text-align: left; cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
}
.tab:hover { transform: translateX(4px); }
.tab-name { font-weight: 500; line-height: 1.2; }
.tab-note { font-size: var(--step-small); color: var(--muted); line-height: 1.2; }
.tab[aria-selected="true"] { background: var(--deep); color: var(--on-dark); }
.tab[aria-selected="true"] .tab-note { color: var(--on-dark-soft); }
.panel + .panel { margin-top: 40px; }
.js .panel-heading { display: none; }
.panel-heading { margin-bottom: 12px; }

.bands { display: grid; gap: 4px; }
.band {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 8px 24px;
  min-height: 76px; padding: 14px 20px;
  border-radius: var(--r);
  background: var(--surface);
}
.band:nth-child(even) { background: var(--bg); }
.band-title { font-weight: 500; line-height: 1.25; }
.band-note { line-height: 1.4; }
.t-deep .band { background: var(--deep-2); }
.t-deep .band:nth-child(even) { background: var(--deep-3); }
.tile:not(.t-deep):not(.t-paper) .band { background: var(--paper); }
.tile:not(.t-deep):not(.t-paper) .band:nth-child(even) { background: var(--bg); }

/* ---------- home: open by default ---------- */

.open { margin: var(--gap); padding: 56px var(--pad) 40px; background: var(--surface); border-radius: var(--r); }
.open h2 { margin-bottom: 40px; }
.open-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tint { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); }
.tint img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; transition: transform 600ms var(--ease); }
.open-tile:hover .tint img { transform: scale(1.04); }
.tint-1 { background: var(--tint-1); }
.tint-2 { background: var(--tint-2); }
.tint-3 { background: var(--tint-3); }
.tint-4 { background: var(--tint-4); }
.open-tile figcaption { display: grid; gap: 2px; margin-top: 10px; }
.open-name { font-weight: 500; }
.open-role { color: var(--muted); font-size: var(--step-small); }

/* ---------- home: the action row ---------- */

.cta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin: var(--gap) 0; }
.cta-flank { height: 360px; overflow: hidden; background: var(--deep); }
.cta-photo { grid-column: 1 / 3; border-radius: 0 var(--r) var(--r) 0; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-colour { grid-column: 11 / 13; border-radius: var(--r) 0 0 var(--r); background: var(--tan); }
.cta-main {
  grid-column: 3 / 11;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px;
  min-height: 360px; padding: 40px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r);
}
.cta-main p { max-width: 34em; }

/* ---------- inner pages ---------- */

.top {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  padding: var(--gap);
}
.top-name {
  grid-column: 1 / 4;
  display: flex; align-items: center;
  min-height: 64px; padding: 12px 20px;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-lead)/1 var(--font-display); letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap;
}
.top-nav { grid-column: 4 / 13; }

.board {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  padding: 0 var(--gap) var(--gap);
}
.c-12 { grid-column: span 12; }
.c-8 { grid-column: span 8; }
.c-7 { grid-column: span 7; }
.c-6 { grid-column: span 6; }
.c-5 { grid-column: span 5; }
.c-4 { grid-column: span 4; }

.board .tile > h2 { margin-bottom: 28px; }
.board .tile > p { max-width: 38em; }
.board .tile > p.wide { max-width: 44em; }
.board .c-8 > p:not(.statement), .board .c-12 > p:not(.statement) { max-width: 56em; }
.board .tile > p + p { margin-top: 0.8em; }
.board .tile > p + .button, .board .tile > .statement + .button { margin-top: 28px; }
.board .plain { font-size: var(--step-body); max-width: 34em; }
.board .plain li { padding-left: 1.2em; position: relative; }
.board .plain li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5em; height: 0.5em; background: currentColor; border-radius: 2px; }
.board .plain li + li { margin-top: 0.8em; }
.board-heading { padding: 40px var(--pad) 16px; }

.title-tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; min-height: 480px; padding: 32px var(--pad) 32px; background: var(--paper); }
.title-tile h1 { font-size: var(--step-title); letter-spacing: -0.035em; line-height: 0.98; }
.title-tile .statement { max-width: 22em; }
.title-photo, .side-photo { position: relative; }
.title-photo img, .side-photo img { position: absolute; inset: 0; }
.title-photo { min-height: 320px; }
.side-photo { min-height: 240px; }
.c-3 { grid-column: span 3; }

.article-tile {
  display: flex; flex-direction: column; gap: 14px;
  min-height: 300px;
  text-decoration: none;
  transition: transform 200ms var(--ease);
}
.article-tile:hover { transform: translateY(-4px); }
.article-read { margin-top: auto; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
.t-deep.article-tile p { color: var(--on-dark-soft); }

.article { padding: 40px clamp(24px, 5vw, 72px) 56px; }
.article h1 { font-size: var(--step-head); margin-bottom: 20px; }
.article .statement { margin-bottom: 40px; color: var(--muted); }
.prose { max-width: 40em; }
.prose h2 { font: 500 var(--step-lead)/1.15 var(--font-display); letter-spacing: -0.015em; margin: 1.8em 0 0.6em; }
.prose p + p { margin-top: 0.9em; }
.prose ul { margin: 0.8em 0; display: grid; gap: 0.6em; }
.prose li { padding-left: 1.2em; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5em; height: 0.5em; background: var(--accent); border-radius: 2px; }
.article-side { display: grid; gap: var(--gap); align-content: start; }
.article-side .tile > * + * { margin-top: 16px; }
.article-side h2 { font-size: var(--step-lead); font-weight: 500; }
.article-side p { color: inherit; }

.listing { padding: 20px; background: var(--card); color: var(--card-ink); border-radius: var(--r); }
.listing-name { font: 500 var(--step-lead)/1.15 var(--font-display); margin-bottom: 16px; }
.listing dl { display: grid; gap: 4px; }
.listing dl > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; padding: 10px 12px; background: var(--card-soft); border-radius: 4px; }
.listing dt { color: var(--card-muted); }
.note { margin-top: 16px; }

.empty { padding: 56px var(--pad); }
.empty .statement { max-width: 26em; }

.form { display: grid; gap: 8px; max-width: 36em; }
.form label { font-weight: 500; margin-top: 12px; }
.form textarea, .form input[type="email"] {
  width: 100%; padding: 14px 16px;
  background: var(--card); color: var(--card-ink);
  border: 2px solid var(--tan); border-radius: var(--r);
  font: inherit;
}
.form textarea:focus, .form input[type="email"]:focus { border-color: var(--accent); outline: none; }
.hint { font-size: var(--step-small); color: var(--muted); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-weight: 400 !important; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--accent); }
.form .button { justify-self: start; margin-top: 16px; }

/* ---------- footer ---------- */

.footer { margin: var(--gap); padding: var(--pad); background: var(--deep); color: var(--on-dark); border-radius: var(--r); }
.mark { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 180px; max-height: 320px; }
.mark-word { display: flex; align-items: flex-end; gap: 4px; height: 100%; flex: 4; }
.mark-word-long { flex: 11; }
.mark-block {
  flex: 1; height: var(--h);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 0.12em;
  background: var(--paper); color: var(--mark-ink);
  border-radius: 4px;
  font: 500 clamp(1.5rem, 5.4vw, 5.5rem)/1 var(--font-display);
  transition: height 500ms var(--ease);
}
.mark-block::before { content: attr(data-ch); }
.mark-block:nth-child(3n+1) { background: var(--accent); color: var(--mark-accent-ink); }
.mark-block:nth-child(3n+2) { background: var(--tan); }
.mark:hover .mark-block { height: 100%; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gap); margin-top: 56px; }
.footer-links { grid-column: span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.footer-links a { text-underline-offset: 4px; }
.footer-notes { grid-column: span 5; display: grid; gap: 10px; align-content: start; color: var(--on-dark-soft); }
.footer-credits { grid-column: span 3; color: var(--on-dark-soft); font-size: var(--step-small); }
.footer-credits summary { cursor: pointer; font-size: var(--step-body); color: var(--on-dark); }
.footer-credits p { margin-top: 12px; }
.footer-credits ul { display: grid; gap: 8px; margin-top: 12px; }
.footer-last { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; color: var(--on-dark-soft); font-size: var(--step-small); }

/* ---------- motion ---------- */

.drift { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07) translate(-1%, 1%); } }

.js [data-rise] { opacity: 0; transform: translateY(24px); }
.js [data-rise].is-in {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { opacity: 1; transform: none; }
  .drift, .marquee-track { animation: none; }
  .marquee-track { padding-left: var(--pad); }
  * { transition-duration: 1ms !important; }
}

/* ---------- tablet ---------- */

@media (max-width: 1000px) {
  .hero { height: auto; max-height: none; grid-template-rows: auto auto auto auto auto; }
  .hero-nav, .top-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-centre { grid-column: 1 / -1; grid-row: 3; aspect-ratio: 16 / 10; }
  .hero-left { grid-column: 1 / -1; grid-row: 4; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .hero-portrait { aspect-ratio: 4 / 3; }
  .hero-facts .plain { font-size: var(--step-body); }
  .hero-rail { grid-column: 1 / -1; grid-row: 5; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; }
  .rail-tile { min-height: 88px; }
  .rail-action { grid-column: 1 / -1; min-height: 72px; align-items: center; }

  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-field { min-height: 560px; }
  .how-field-2 { background: var(--tan); }

  .limits-body { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tab:hover { transform: none; }

  .open-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-photo { grid-column: 1 / 3; }
  .cta-main { grid-column: 3 / 13; border-radius: var(--r) 0 0 var(--r); }
  .cta-colour { display: none; }

  .top-name { grid-column: 1 / -1; }
  .top-nav { grid-column: 1 / -1; }
  .c-8, .c-7, .c-6, .c-5, .c-4, .c-3 { grid-column: span 12; }
  .board .tile:not(.t-photo) { padding-top: 36px; padding-bottom: 36px; }
  .title-tile { min-height: 300px; }
  .title-photo, .side-photo { aspect-ratio: 16 / 10; min-height: 0; }
  .footer-links, .footer-notes, .footer-credits { grid-column: span 12; }
}

/* ---------- phone ---------- */

@media (max-width: 600px) {
  :root { --gap: 6px; --pad: 20px; }
  .hero-name h1 { font-size: calc((100vw - 44px) / 7.9); padding: 0.16em 0 0.22em; }
  .hero-nav, .top-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-tile { min-height: 56px; padding: 14px 16px; }
  .hero-centre { aspect-ratio: auto; overflow: visible; background: none; display: grid; gap: var(--gap); }
  .hero-centre img { aspect-ratio: 4 / 3; height: auto; border-radius: var(--r); }
  .hero-statement { position: static; }
  .hero-statement .statement { font-size: 6vw; }
  .hero-left { grid-template-columns: 1fr 1fr; }
  .hero-portrait { aspect-ratio: auto; }
  .hero-facts { padding: 16px; }
  .hero-facts .plain { font-size: var(--step-small); }
  .hero-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-tile { min-height: 80px; padding: 14px 16px; }
  .drift { animation: none; }

  .how { grid-template-columns: 1fr; }
  .how-field { min-height: 64svh; justify-content: flex-start; gap: 28px; padding: 24px 20px 32px; }
  .how-heading { position: static; }
  .how-clause { order: -1; min-height: 0; }
  .how-field-1 .how-heading { order: -2; }
  .shot-card { margin: 0; }

  .sample { padding: 20px 6px 6px; }
  .sample-head { padding: 4px 14px 20px; }
  .row summary { grid-template-columns: minmax(0, 1fr) auto; min-height: 64px; padding: 10px 10px 10px 16px; font-size: 1.25rem; }
  .row-value { display: none; }
  .row[open] .row-value { display: block; grid-column: 1 / -1; grid-row: 2; font-size: 1.0625rem; font-family: var(--font-text); font-weight: 400; letter-spacing: 0; }
  .row-conf { min-width: 4.5em; padding: 9px 10px; }
  .row-detail { padding: 0 16px 24px; min-height: 0; }

  .marquee-track { padding: 20px 0; }
  .limits { padding: 40px 20px 20px; }
  .limits-head .button { width: 100%; }
  .tabs { position: sticky; top: 0; z-index: 2; gap: 4px; padding: 6px 0; background: var(--paper); }
  .tab { min-height: 56px; padding: 8px 10px; }
  .tab-note { display: none; }
  .band { grid-template-columns: 1fr; gap: 4px; padding: 16px; }

  .open { padding: 40px 20px 28px; }
  .open h2 { margin-bottom: 24px; }
  .open-grid { gap: 8px; row-gap: 24px; }

  .cta { margin: var(--gap); }
  .cta-main { grid-column: 1 / -1; grid-row: 2; min-height: 300px; padding: 28px 20px; border-radius: var(--r); }
  .cta-main .button { width: 100%; }
  .cta-flank { border-radius: var(--r); }
  .cta-photo { grid-column: 1 / -1; grid-row: 1; height: 160px; }
  .cta-colour { display: block; grid-column: 1 / -1; grid-row: 3; height: 56px; }

  .board-heading { padding: 28px 20px 12px; }
  .statement.wide { font: 400 var(--step-body)/1.5 var(--font-text); letter-spacing: 0; }
  .title-tile { gap: 20px; min-height: 240px; }
  .article { padding: 28px 20px 40px; }
  .article h1 { font-size: 1.875rem; }
  .listing dl > div { grid-template-columns: 1fr; gap: 2px; }
  .form .button { width: 100%; }

  .mark { flex-direction: column; align-items: stretch; height: auto; max-height: none; min-height: 0; gap: 4px; }
  .mark-word { height: 11svh; min-height: 72px; flex: none; }
  .mark-block { font-size: clamp(1.25rem, 7.4vw, 2.5rem); }
  .mark-word:first-child .mark-block { font-size: clamp(2rem, 13vw, 4rem); }
  .footer-grid { margin-top: 40px; }
  .footer-last { margin-top: 32px; }
}
