/* windwakerrecomp.wiki — Taste Skill direction "The well-kept board" (dense-tiles, seed 1591326742).
   Idea: the Great Sea chart is a grid of squares, so every page is a board of flat tiles on 8px gaps.
   Palette: the dealt proportions (one ground holding most, one step lighter, a black field, a white field, one accent),
   coloured from the subject: deep-sea navy ground, wave-white field, beacon-gold accent. No gradients, no shadows, no rules.
   One face (Schibsted Grotesk); monospace only inside <code>/<pre>/<kbd>. One radius: 0. */
:root {
  --bg: #062440;        /* deep sea: the ground */
  --surface: #0b3256;   /* one tone step up */
  --surface-2: #11406b; /* two steps up */
  --ink: #ffffff;
  --muted: #b9d0e2;     /* secondary notes only */
  --accent: #f2b632;    /* beacon gold: the action */
  --accent-ink: #062440;
  --field-1: #021526;   --field-1-ink: #ffffff;   /* night sea */
  --field-2: #f4f8fb;   --field-2-ink: #062440;   /* wave white */
  --field-3: #e3edf5;   /* wave white, one step down */
  --sky: #9fd3f0; --sea: #236a9c; --foam: #d5ebf8;
  --ok: #17784a; --bad: #b03a2e;
  --link-dark: #ffd774; --link-light: #0b5c91;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* code blocks only. taste-skill-ignore */
  --step-small: 0.875rem;                                   /* 14px */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);  /* 17–19px */
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);    /* 20–26px */
  --step-head: clamp(1.75rem, 1.15rem + 2.1vw, 3rem);       /* 28–48px */
  --step-display: clamp(2.6rem, 6.2vw, 4.8rem);             /* 41.6–76.8px */
  --step-poster: clamp(2.6rem, 8.6vw, 8.25rem);             /* the one poster line: intro slogan */
  --gap: 8px;
  --m: clamp(18px, 1.6vw, 24px);  /* the one pair of outer margins */
  --pad: clamp(20px, 2vw, 28px);  /* inside every tile */
  --ease: cubic-bezier(.2, .7, .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); letter-spacing: -0.01em; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link-dark); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--font); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1.1em; }
li { margin: .3em 0; }
code, kbd, pre { font-family: var(--code); font-size: max(.88em, 14px); }
code, kbd { background: rgba(255, 255, 255, .1); padding: .06em .32em; overflow-wrap: anywhere; }
strong, b { font-weight: 600; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the plain bar ---------- */
.nav { background: var(--field-1); }
.nav__in { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 0 var(--m); }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.06rem; letter-spacing: -0.03em; }
.mark svg { flex: none; }
.nav__links { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav__links a, .nav__lang a, .menu summary { color: var(--muted); text-decoration: none; font-weight: 600; font-size: var(--step-small); padding: 8px 10px; transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--accent-ink); background: var(--accent); }
.nav__lang { display: flex; gap: 2px; }
.nav__lang a[aria-current] { color: var(--field-2-ink); background: var(--field-2); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; background: var(--surface); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--field-2); display: grid; min-width: 230px; padding: 8px; }
.menu nav a { color: var(--field-2-ink); text-decoration: none; font-weight: 600; padding: 10px 12px; }
.menu nav a:hover { background: var(--field-3); }

/* ---------- the board ---------- */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding: var(--gap) var(--m); }
.t { background: var(--surface); padding: var(--pad); min-width: 0; margin: 0; position: relative; }
.t--pic { padding: 0; overflow: hidden; background: var(--field-1); }
.t--pic img, .t--pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t--pic figcaption { position: absolute; left: 0; bottom: 0; background: var(--field-1); color: var(--ink); font-size: var(--step-small); padding: 8px 12px; max-width: 100%; }
.t--dark { background: var(--field-1); }
.t--white { background: var(--field-2); color: var(--field-2-ink); }
.t--white a, .t--foam a, .t--sky a { color: var(--link-light); }
.t--foam { background: var(--foam); color: var(--field-2-ink); }
.t--sky { background: var(--sky); color: var(--field-2-ink); }
.t--sea { background: var(--sea); color: #fff; }
.t--gold { background: var(--accent); color: var(--accent-ink); }
.t--gold a { color: var(--accent-ink); }

/* buttons: flat, square, one fill */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 0; padding: 14px 20px; font: 600 var(--step-body)/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.btn:hover { background: #ffc94f; color: var(--accent-ink); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--ghost { background: var(--surface-2); color: var(--ink); }
.btn--ghost:hover { background: #1a5285; color: var(--ink); }
.t--white .btn--ghost, .field .btn--ghost { background: var(--field-3); color: var(--field-2-ink); }
.t--white .btn--ghost:hover, .field .btn--ghost:hover { background: #cfdfeb; color: var(--field-2-ink); }
.btn--sm { padding: 10px 14px; font-size: var(--step-small); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- home hero: name band and rails ---------- */
.hero { height: calc(100svh - 60px); min-height: 640px; max-height: 1000px; grid-template-rows: auto auto minmax(200px, 1fr) auto; }
.hero .t--name { grid-column: 1 / -1; background: var(--field-1); padding-top: clamp(20px, 2.4vw, 34px); padding-bottom: clamp(18px, 2vw, 28px); overflow: hidden; }
.hero h1, .phead h1 { font-size: var(--step-display); line-height: .92; letter-spacing: -0.05em; }
.hero .links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.hero .links a { background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; padding: 18px var(--pad); min-height: 60px; transition: background-color .2s; }
.hero .links a:hover { background: var(--surface-2); }
.hero .rose { grid-column: 1 / 3; grid-row: 3; }
.hero .facts { grid-column: 1 / 3; grid-row: 4; }
.hero .main { grid-column: 3 / 11; grid-row: 3; }
.hero .say { grid-column: 3 / 11; grid-row: 4; background: var(--bg); padding: 18px 0 4px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px 32px; align-items: start; align-content: start; }
.say .statement { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; margin: 0; max-width: 40ch; }
.say .sub { margin: 0; color: var(--ink); font-size: var(--step-small); line-height: 1.45; }
.say .actions { grid-column: 1 / -1; }
.hero .say .actions { grid-column: auto; grid-row: 1; grid-column-start: 2; justify-self: end; }
.hero .say > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
.hero .rail { grid-column: 11 / 13; grid-row: 3 / 5; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); gap: var(--gap); min-height: 0; }
.rail > * { padding: 16px 18px; font-size: var(--step-small); font-weight: 600; line-height: 1.3; }
.rail b { display: block; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 4px; }
.rail a.t--gold { display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; font-size: var(--step-body); transition: background-color .2s; }
.rail a.t--gold:hover { background: #ffc94f; }
.rail a.t--gold svg { align-self: flex-end; transition: transform .25s var(--ease); }
.rail a.t--gold:hover svg { transform: translate(4px, -4px); }
.facts { list-style: none; margin: 0; font-size: var(--step-small); }
.facts li { margin: 0 0 10px; line-height: 1.3; color: var(--muted); }
.facts li b { display: block; color: var(--ink); font-size: var(--step-body); font-weight: 600; }
.facts li:last-child { margin: 0; }

/* ---------- inner page header board ---------- */
.phead .t--name { grid-column: 1 / 9; background: var(--field-1); display: flex; align-items: flex-end; min-height: clamp(150px, 22vw, 290px); }
.phead .pic { grid-column: 9 / 13; grid-row: 1 / 3; min-height: 260px; }
.phead .say { grid-column: 1 / 6; }
.phead .say .lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 18px; max-width: 34ch; }
.phead .facts { grid-column: 6 / 9; background: var(--foam); color: var(--field-2-ink); }
.phead .facts li { color: #2c4a63; }
.phead .facts li b { color: var(--field-2-ink); }
.crumb { font-size: var(--step-small); color: var(--muted); margin: 18px 0 0; }
.crumb a { color: var(--muted); }
.phead--plain .say { grid-column: 1 / 9; }

/* ---------- fields: long reading on wave white ---------- */
.field { background: var(--field-2); color: var(--field-2-ink); }
.field a { color: var(--link-light); }
.field code, .field kbd { background: var(--field-3); }
.field h2, .field h3 { color: var(--field-2-ink); }
.sec { padding: clamp(56px, 7vw, 120px) var(--m); }
.sec > h2, .sec .h { margin-bottom: clamp(24px, 3vw, 40px); max-width: 22ch; }
.sec p, .sec li { max-width: 65ch; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); }
.two > * { min-width: 0; }
.two h2 { margin-bottom: 24px; }

/* article: body + side on wave white */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 64px); padding: clamp(40px, 5vw, 80px) var(--m) clamp(40px, 5vw, 72px); }
.article--one { grid-template-columns: minmax(0, 1fr); }
.body { min-width: 0; }
.body > p, .body > ul, .body > ol { max-width: 65ch; }
.body > h2 { margin: clamp(84px, 7vw, 112px) 0 20px; max-width: 24ch; }
.body > h2:first-child, .body > .ad + h2 { margin-top: 0; }
.body h3 { margin: 32px 0 10px; }
.side { position: relative; }
.side .sticky { position: sticky; top: 16px; display: grid; gap: var(--gap); }
.side__box { background: var(--field-3); padding: 20px 22px; }
.side__box h2 { font-size: var(--step-body); letter-spacing: -0.01em; font-weight: 800; margin: 0 0 10px; line-height: 1.2; }
.side__box ul { list-style: none; padding: 0; margin: 0; }
.side__box li { margin: 0; }
.side__box li a { display: block; padding: 6px 0; text-decoration: none; color: var(--field-2-ink); font-size: 16px; line-height: 1.35; transition: transform .2s var(--ease), color .2s; }
.side__box li a:hover { color: var(--link-light); transform: translateX(4px); }
.side__box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: var(--step-small); }
.side__box dt { color: #3d5a72; }
.side__box dd { margin: 0; overflow-wrap: anywhere; text-align: right; font-variant-numeric: tabular-nums; }
.side__pic { overflow: hidden; aspect-ratio: 4 / 5; background: var(--field-3); }
.side__pic img { width: 100%; height: 100%; object-fit: cover; }
.fig { margin: 0 0 1.6em; overflow: hidden; background: var(--field-3); }
.fig img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.fig figcaption { font-size: var(--step-small); padding: 10px 14px; color: #2c4a63; }

/* real tables keep their lines */
.tw { overflow-x: auto; margin: 0 0 1.6em; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: var(--step-small); }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid #d5e2ec; vertical-align: top; font-size: 16px; }
th { font-weight: 600; font-size: var(--step-small); color: #2c4a63; background: var(--field-3); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
td.hash { font-size: 16px; word-break: break-all; min-width: 230px; font-variant-numeric: tabular-nums; }
td code { font-size: inherit; overflow-wrap: break-word; }
td { min-width: 88px; }

.note { background: #fcefc9; padding: 18px 20px; margin: 0 0 1.4em; max-width: 65ch; }
.note p:last-child, .note ul:last-child { margin: 0; }
.note--sea { background: var(--foam); }
.fine { font-size: var(--step-small); color: inherit; opacity: .85; margin: 12px 0 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin: 0 0 1.6em; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--field-3); padding: var(--pad); display: flex; flex-direction: column; }
.card:nth-child(2n) { background: var(--foam); }
.card h3 { margin: 0 0 6px; }
.card .who { font-size: var(--step-small); color: #2c4a63; margin: 0 0 10px; overflow-wrap: anywhere; }
.card .actions { margin-top: auto; }
.pill { display: inline-block; font-weight: 600; font-size: var(--step-small); padding: 2px 8px; background: var(--field-3); color: var(--field-2-ink); margin: 0 4px 4px 0; }
.pill--g { background: #d6f0e2; color: #14583a; } .pill--a { background: #fcebc0; color: #5c3b00; } .pill--r { background: #f7dad5; color: #7d281e; }
.yes { color: var(--ok); font-weight: 600; } .no { color: var(--bad); font-weight: 600; } .part { color: #7a4e00; font-weight: 600; }
.rel { background: var(--field-3); padding: 2px 18px; margin: 0 0 var(--gap); }
.rel:nth-child(2n) { background: #eaf1f7; }
.rel > summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.rel > summary::-webkit-details-marker { display: none; }
.rel > summary::before { content: "+"; font-weight: 800; color: var(--link-light); width: 1em; }
.rel[open] > summary::before { content: "–"; }
.rel > summary small { font-weight: 400; color: #2c4a63; }
.rel .notes { padding-bottom: 14px; overflow-wrap: anywhere; min-width: 0; }
.rel:not([open]) .notes { display: none; }
.rel .notes h4 { font-size: var(--step-body); margin: 14px 0 4px; }
.steps { padding-left: 1.4em; }
.steps > li { margin: 0 0 12px; padding-left: 6px; }
.steps > li::marker { font-weight: 800; color: var(--link-light); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--gap); margin: 0 0 1.6em; }
.kv div { background: var(--field-3); padding: 16px 18px; }
.kv b { display: block; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; }
.kv span { font-size: var(--step-small); }

/* ---------- the live things: picker and checker (data-ui fragments) ---------- */
.tools .h { grid-column: 1 / -1; background: var(--bg); padding: clamp(40px, 5vw, 88px) 0 clamp(16px, 2vw, 32px); }
.tools .h h2 { font-size: var(--step-head); }
.tools .h p { max-width: 60ch; margin: 14px 0 0; color: var(--ink); }
.tools .tool { grid-column: 1 / 8; }
.tools .cbox { grid-column: 8 / 13; background: var(--surface-2); }
.tool h3, .checker h3 { margin: 0 0 8px; }
.tool .sub { margin: 0 0 18px; max-width: 52ch; }
.step { margin: 0 0 16px; }
.step > span { display: block; font-weight: 600; font-size: var(--step-small); color: var(--muted); margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.seg--2 { grid-template-columns: 1fr 1fr; }
.seg button { border: 0; background: var(--surface-2); color: var(--ink); padding: 10px 10px; font: 600 var(--step-small)/1.25 var(--font); cursor: pointer; text-align: left; transition: background-color .15s, transform .15s var(--ease); }
.seg button:hover { background: #1a5285; }
.seg button:active { transform: scale(.97); }
.seg button small { display: block; font-weight: 400; font-size: var(--step-small); color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg button[aria-pressed="true"] small { color: #3b2a00; }
.picks { display: grid; gap: 6px; margin-top: 8px; }
.pick { background: var(--surface-2); padding: 16px 18px; animation: pickin .35s var(--ease) both; }
.pick--top { background: var(--field-2); color: var(--field-2-ink); }
.pick h3 { margin: 0 0 4px; font-size: var(--step-body); letter-spacing: -0.015em; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pick h3 em { font-style: normal; font-weight: 600; font-size: var(--step-small); background: var(--sea); color: #fff; padding: 1px 8px; letter-spacing: 0; }
.pick h3 em.dev { background: var(--accent); color: var(--accent-ink); }
.pick p { margin: 4px 0 8px; font-size: var(--step-small); }
.pick .meta { font-size: var(--step-small); opacity: .85; overflow-wrap: anywhere; margin-bottom: 8px; }
.pick .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pick--top .copy { background: var(--field-3); color: var(--field-2-ink); }
.copy { border: 0; background: var(--bg); color: var(--ink); padding: 10px 14px; font: 600 var(--step-small) var(--font); cursor: pointer; transition: transform .15s var(--ease); }
.copy:active { transform: scale(.97); }
@keyframes pickin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.checker { display: grid; gap: 14px; }
.checker > div:first-child p { margin-bottom: .8em; }
.drop { display: block; border: 2px dashed rgba(255, 215, 116, .7); padding: 26px 18px; text-align: left; background: var(--bg); cursor: pointer; position: relative; transition: background-color .15s, transform .2s var(--ease); }
.drop:hover { transform: translateY(-2px); }
.drop.is-over { background: #173f63; }
.drop b { display: block; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.drop span { font-size: var(--step-small); color: var(--muted); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.paste { display: flex; gap: 6px; }
.paste input { flex: 1; min-width: 0; border: 0; background: var(--bg); color: #fff; padding: 12px 12px; font: 500 var(--step-small) var(--font); }
.paste input::placeholder { color: var(--muted); }
.result { padding: 14px 16px; font-size: var(--step-small); background: var(--bg); min-height: 58px; overflow-wrap: anywhere; }
.result code { background: transparent; color: var(--link-dark); padding: 0; word-break: break-all; }
.result.ok { background: #0f4b39; }
.result.bad { background: #5a1f1a; }
.result .big { font-weight: 800; font-size: var(--step-body); display: block; margin-bottom: 4px; }
.bar { height: 6px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.cbox code { background: rgba(255, 255, 255, .1); }
/* the checker inside an article (download page) */
.band { background: var(--bg); color: var(--ink); padding: var(--pad); margin: 0 0 1.6em; }
.band a { color: var(--link-dark); }
.field .band h2, .field .band h3 { color: var(--ink); }
.band code { background: rgba(255, 255, 255, .1); }
.band .checker { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px 32px; align-items: start; }
.band .checker > div:last-child { display: grid; gap: 10px; }

/* ---------- home sections ---------- */
/* intro: statement tiles */
.intro .slogan { grid-column: 1 / 9; grid-row: 1 / 3; background: var(--field-1); display: flex; align-items: flex-end; min-height: 60svh; max-height: 600px; }
.intro .slogan h2 { font-size: var(--step-poster); line-height: .86; letter-spacing: -0.05em; text-transform: uppercase; }
.intro .fig-word { grid-column: 9 / 13; grid-row: 1; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.intro .fig-word b { font-size: var(--step-poster); font-weight: 800; letter-spacing: -0.05em; line-height: .9; white-space: nowrap; }
.intro .fig-word span { font-weight: 600; margin-top: 8px; }
.intro .lh { grid-column: 9 / 13; grid-row: 2; }
.intro .clip { grid-column: 1 / 7; min-height: 420px; }
.intro .long { grid-column: 7 / 13; background: var(--bg); padding: clamp(24px, 3vw, 40px); }
.intro .long p { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.02em; max-width: 34ch; }
.intro .long p.sm { font-size: var(--step-body); line-height: 1.5; max-width: 52ch; }

/* projects */
.projects .h { grid-column: 1 / -1; background: var(--bg); padding: clamp(56px, 6vw, 104px) 0 clamp(16px, 2vw, 28px); }
.projects .hd { grid-column: 1 / 6; }
.projects .gc { grid-column: 6 / 10; }
.projects .chart { grid-column: 10 / 13; min-height: 420px; }
.projects .card { background: inherit; padding: 0; }
.projects .t h3 { font-size: var(--step-head); margin-bottom: 10px; }
.projects .who { font-size: var(--step-small); color: var(--muted); margin: 0 0 14px; }
.projects .t .actions { margin: 4px 0 18px; }
.projects .gc .who { color: #2c4a63; }
.projects .also { grid-column: 1 / -1; background: var(--bg); padding: 16px 0 0; margin: 0; max-width: 80ch; }

/* latest changes: cards that fold into spines */
.deck { display: flex; gap: var(--gap); height: 380px; }
.deck .entry { flex: 0 0 120px; overflow: hidden; padding: 30px 32px; background: var(--field-3); color: var(--field-2-ink); cursor: pointer; transition: flex-basis .6s var(--ease), flex-grow .6s var(--ease), background-color .3s; position: relative; }
.deck .entry:nth-child(3n+2) { background: var(--foam); }
.deck .entry:nth-child(3n) { background: #c9e0ef; }
.deck .entry.is-open { flex: 1 1 auto; cursor: default; }
.deck .entry.is-open { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 40px; align-content: start; }
.deck .entry.is-open > p:last-child { grid-column: 2; grid-row: 1 / 3; max-width: 62ch; }
.deck .entry h3 { font-size: var(--step-lead); margin: 0 0 8px; white-space: nowrap; }
.deck .entry .when { font-weight: 600; margin: 0 0 14px; }
.deck .entry p { font-size: var(--step-body); line-height: 1.5; max-width: none; }
.deck .entry:not(.is-open):hover { background: #bcd8eb; }
.js .deck .entry:not(.is-open) > * { visibility: hidden; }
.js .deck .entry::after { content: attr(data-t); position: absolute; left: 30px; top: 30px; font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.025em; white-space: nowrap; transition: opacity .3s; }
.js .deck .entry.is-open::after { opacity: 0; }
.deck-foot { margin-top: 28px; font-size: var(--step-body); }
html:not(.js) .deck, .deck.flat { flex-direction: column; height: auto; }
html:not(.js) .deck .entry, .deck.flat .entry { flex: none; }
html:not(.js) .deck .entry > *, .deck.flat .entry > * { width: auto; }
.guides .g8 { grid-column: 1 / -1; margin: 0; }

/* proof: large marks on tiles */
.proof .t { aspect-ratio: 3 / 2; display: flex; flex-direction: column; justify-content: space-between; }
.proof .lead-tile { grid-column: span 6; background: var(--accent); color: var(--accent-ink); aspect-ratio: auto; }
.proof .lead-tile h2 { font-size: var(--step-head); max-width: 14ch; }
.proof .lead-tile p { margin: 0; max-width: 46ch; font-size: var(--step-body); }
.proof .num { grid-column: span 3; }
.proof .num b { font-size: var(--step-display); font-weight: 800; letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.proof .num span { font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
.proof .num:nth-child(3n) { background: var(--surface-2); }
.proof .num:nth-child(4n) { background: var(--field-1); }

/* the signature move: one marquee */
.marquee { overflow: hidden; background: var(--field-2); color: var(--field-2-ink); padding: clamp(18px, 2vw, 30px) 0; margin: var(--gap) 0; }
.marquee__track { display: flex; width: max-content; animation: drift 38s linear infinite; }
.marquee__track span { font-size: var(--step-display); font-weight: 800; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; padding-right: .6em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }

/* guides board */
.guides .h { grid-column: 1 / -1; background: var(--bg); padding: clamp(56px, 6vw, 104px) 0 clamp(16px, 2vw, 28px); }
.guides a.t { display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: inherit; min-height: 200px; transition: background-color .2s; }
.guides a.t b { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.guides a.t span { font-size: var(--step-small); margin-top: 16px; }
.guides a.t:hover { background: var(--surface-2); }
.guides a.t--white, .guides a.t--sky { color: var(--field-2-ink); }
.guides a.t--white:hover { background: var(--field-3); }
.guides a.t--sky:hover { background: #b6dff5; }
.guides .g1 { grid-column: 1 / 5; grid-row: span 2; background: var(--sea); color: #fff; }
.guides .g1:hover { background: #3a8cc4; }
.guides .deckpic { grid-column: 5 / 9; grid-row: span 2; min-height: 420px; }
.guides .g2 { grid-column: 9 / 13; }
.guides .g3 { grid-column: 9 / 11; }
.guides .g4 { grid-column: 11 / 13; }
.guides .g5 { grid-column: 1 / 5; }
.guides .g6 { grid-column: 5 / 9; }
.guides .g7 { grid-column: 9 / 13; }

/* faq: a band per question */
.faq { margin-top: var(--gap); }
.faq__head { background: var(--accent); color: var(--accent-ink); min-height: 40svh; display: flex; align-items: flex-end; padding: var(--pad) var(--m); }
.faq__head h2 { font-size: var(--step-display); line-height: .92; letter-spacing: -0.05em; max-width: 14ch; }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); padding: clamp(32px, 4vw, 56px) var(--m); background: var(--bg); }
.qa:nth-child(2n+1) { background: var(--surface); }
.qa .q { grid-column: 1 / 6; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 14px; padding-right: 24px; }
.qa .a { grid-column: 7 / 13; font-size: var(--step-body); line-height: 1.5; max-width: 62ch; }
.qa .a p:last-child { margin: 0; }

/* ads: placed where they were, labelled in sentence case */
.ad { margin: 34px 0; text-align: center; }
.ad > span { display: none; font-size: var(--step-small); color: inherit; margin-bottom: 6px; }
.ad:has(iframe) > span, .ad:has(img) > span { display: block; }
.ad-l { display: flex; flex-direction: column; align-items: center; margin: 0; overflow: hidden; }
.ad-rail { margin-top: 8px; text-align: center; }
.ad-wrap { padding: 0 var(--m); }
.ad-top { padding: 10px var(--m) 14px; }
.ad-top .ad-l { margin: 0; }
.field .ad, .article .ad { color: #2c4a63; }

/* ---------- footer of tiles ---------- */
.foot { padding-bottom: var(--m); margin-top: var(--gap); }
.foot .about { grid-column: 1 / 4; }
.foot .about p { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
.foot .nav1 { grid-column: 4 / 7; }
.foot .nav2 { grid-column: 7 / 9; }
.foot .fpic { grid-column: 9 / 11; min-height: 300px; }
.foot .mail { grid-column: 11 / 13; display: flex; flex-direction: column; justify-content: space-between; }
.foot .mail a { font-size: var(--step-body); font-weight: 600; color: var(--field-2-ink); overflow-wrap: anywhere; }
.foot h2 { font-size: var(--step-body); letter-spacing: -0.01em; margin: 0 0 10px; color: inherit; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot ul + h2 { margin-top: 22px; }
.foot li { margin: 0 0 4px; }
.foot li a { color: var(--ink); text-decoration: none; display: inline-block; padding: 2px 0; transition: transform .2s var(--ease), color .2s; }
.foot li a:hover { color: var(--link-dark); transform: translateX(4px); }
.foot .word { grid-column: 1 / 10; background: var(--field-2); color: var(--field-2-ink); display: flex; align-items: flex-end; min-height: 300px; overflow: hidden; }
.foot .word span { font-size: var(--step-display); font-weight: 800; letter-spacing: -0.055em; line-height: .9; white-space: nowrap; }
.foot .go { grid-column: 10 / 13; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; min-height: 300px; transition: background-color .2s; }
.foot .go:hover { background: #ffc94f; }
.foot .go b { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.foot .go svg { align-self: flex-end; transition: transform .25s var(--ease); }
.foot .go:hover svg { transform: translate(6px, -6px); }
.foot .legal { grid-column: 1 / -1; background: var(--field-1); font-size: 16px; color: var(--muted); columns: 2; column-gap: 48px; }
.foot .legal p { margin: 0 0 .8em; break-inside: avoid; }
.foot .legal a { color: var(--ink); }
.foot code { background: rgba(255, 255, 255, .1); }

/* ---------- 404 ---------- */
.nf .say { grid-column: 1 / -1; }

/* ---------- motion: entrances, one moving picture, feedback ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--r, 0) * 75ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero [data-reveal] { transition-duration: .8s, 1s; }
  [data-drift] img, [data-drift] video { transform: scale(1.12) translate3d(0, var(--py, 0px), 0); will-change: transform; }
  .t--pic img { transition: transform 1.2s var(--ease); }
  a.t--pic:hover img { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee__track { transform: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .menu { display: block; margin-left: auto; }
  .hero .rose { grid-column: 1 / 4; grid-row: 3; }
  .hero .main { grid-column: 4 / 13; grid-row: 3; }
  .hero .facts { grid-column: 1 / 5; grid-row: 4; }
  .hero .say { grid-column: 5 / 13; grid-row: 4; grid-template-columns: 1fr; }
  .hero { height: auto; max-height: none; grid-template-rows: auto auto 420px auto auto; }
  .hero .say { grid-template-columns: 1fr; }
  .hero .say .actions, .hero .say > div:nth-child(2) { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  .hero .rail { grid-column: 1 / -1; grid-row: 5; grid-template-rows: none; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr); }
  .tools .tool, .tools .cbox { grid-column: 1 / -1; }
  .article { grid-template-columns: 1fr; }
  .side .sticky { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side .ad-rail { display: none; }
  .side__pic { aspect-ratio: 4 / 3; }
  .two { grid-template-columns: 1fr; }
  .band .checker { grid-template-columns: 1fr; }
  .phead .t--name { grid-column: 1 / -1; }
  .phead .pic { grid-column: 1 / 7; grid-row: auto; min-height: 240px; }
  .phead .say { grid-column: 7 / 13; }
  .phead .facts { grid-column: 1 / -1; }
  .phead .facts ul, .phead ul.facts { columns: 2; }
  .phead--plain .say { grid-column: 7 / 13; }
  .projects .hd { grid-column: 1 / 7; } .projects .gc { grid-column: 7 / 13; } .projects .chart { grid-column: 1 / -1; min-height: 300px; }
  .intro .slogan { grid-column: 1 / -1; grid-row: auto; min-height: 44svh; }
  .intro .fig-word { grid-column: 1 / 7; grid-row: auto; min-height: 240px; }
  .intro .lh { grid-column: 7 / 13; grid-row: auto; min-height: 240px; }
  .intro .clip { grid-column: 1 / -1; min-height: 360px; }
  .intro .long { grid-column: 1 / -1; padding-left: 0; padding-right: 0; }
  .proof .lead-tile { grid-column: 1 / -1; }
  .proof .num { grid-column: span 6; }
  .guides .g1, .guides .deckpic { grid-column: span 6; }
  .guides .g2, .guides .g3, .guides .g4, .guides .g5, .guides .g6, .guides .g7 { grid-column: span 6; }
  .foot .about { grid-column: 1 / -1; }
  .foot .nav1 { grid-column: 1 / 5; } .foot .nav2 { grid-column: 5 / 9; } .foot .mail { grid-column: 9 / 13; }
  .foot .word { grid-column: 1 / -1; min-height: 200px; }
  .foot .fpic { grid-column: 1 / 7; min-height: 220px; } .foot .go { grid-column: 7 / 13; min-height: 220px; }
  .deck .entry.is-open { grid-template-columns: 1fr; }
  .deck .entry.is-open > p:last-child { grid-column: 1; grid-row: auto; }
}

/* ---------- phone: its own board, two columns ---------- */
@media (max-width: 700px) {
  :root { --gap: 6px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .nav__lang { display: none; }
  .hero { min-height: 0; grid-template-rows: none; }
  .hero .t--name { order: 1; padding-top: 18px; padding-bottom: 16px; }
  .hero .say { order: 2; padding: 4px 0 6px; }
  .say .statement { font-size: 1.375rem; }
  .hero .say { grid-template-columns: 1fr; }
  .hero .say .actions, .hero .say > div:nth-child(2) { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  .say .sub { font-size: var(--step-body); }
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero .main { order: 3; aspect-ratio: 4 / 3; }
  .hero .rail { order: 4; grid-template-columns: 1fr 1fr; }
  .hero .rail a.t--gold { grid-column: 1 / -1; }
  .hero .links { order: 5; grid-template-columns: 1fr 1fr; }
  .hero .rose { order: 6; grid-column: 1 / 2 !important; aspect-ratio: 4 / 5; }
  .hero .facts { order: 7; grid-column: 2 / 3 !important; }
  .phead .pic { min-height: 0; aspect-ratio: 4 / 3; order: 3; }
  .phead .t--name { order: 1; min-height: 0; padding-top: 28px; }
  .phead .say { order: 2; }
  .phead .facts { order: 4; }
  .phead .facts ul, .phead ul.facts { columns: 1; }
  .side .sticky { grid-template-columns: 1fr; }
  .intro .fig-word { grid-column: 1 / 2 !important; min-height: 0; aspect-ratio: 1; }
  .intro .lh { grid-column: 2 / 3 !important; min-height: 0; aspect-ratio: 1; }
  .intro .fig-word b { font-size: var(--step-display); }
  .intro .slogan { min-height: 40svh; }
  .intro .clip { min-height: 0; aspect-ratio: 16 / 10; }
  .projects .chart { min-height: 0; aspect-ratio: 4 / 3; }
  .proof .num { grid-column: span 1 !important; aspect-ratio: auto; min-height: 150px; }
  .proof .num { grid-column: 1 / -1 !important; min-height: 0; display: block; }
  .proof .num b, .proof .num span { display: inline; font-size: var(--step-head); letter-spacing: -0.04em; line-height: 1.1; }
  .guides .g3, .guides .g4 { grid-column: span 1 !important; }
  .guides a.t { min-height: 140px; }
  .guides .deckpic { min-height: 0; aspect-ratio: 4 / 3; }
  .deck { flex-direction: column; height: auto; }
  .deck .entry, .deck .entry.is-open { flex: none; padding: 24px 20px; cursor: default; }
  .deck .entry > * { width: auto; visibility: visible !important; }
  .deck .entry::after { display: none; }
  .deck .entry h3 { white-space: normal; }
  .qa { grid-template-columns: 1fr; padding: 32px var(--m); }
  .qa .q, .qa .a { grid-column: 1 / -1; padding-right: 0; }
  .faq__head { min-height: 30svh; }
  .foot .nav1, .foot .nav2 { grid-column: span 1 !important; }
  .foot .word { min-height: 160px; }
  .foot .word span { font-size: var(--step-head); }
  .foot .go { min-height: 160px; }
  .foot .fpic { min-height: 0; aspect-ratio: 16 / 9; }
  .foot .legal { columns: 1; }
  .two { gap: 48px; }
  th, td { padding: 9px 10px; }
  .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .cards--3 { grid-template-columns: 1fr; }
  .band .checker { grid-template-columns: 1fr; }
  .sec { padding-left: var(--m); padding-right: var(--m); }
}
