/*
  home.css: the home page, the product pages (/moor/, /command-hue/) and the 404.

  Direction: "a field catalogue from the bayou". A night-green ground with cream type and one amber sun,
  borrowed from the Bayou Apps mark; each product is a numbered plate with a mono spec tag, and a ruled
  horizon (thin water lines under a sun disc) runs through the hero. Fraunces sets the display type,
  Instrument Sans the copy, JetBrains Mono the labels. Paper-and-ink in light mode, night in dark mode,
  chosen by the OS until a visitor picks one (html[data-theme], set by the boot script).

  Contrast (WCAG 2.2 AA): every text pair is 5.8:1 or better in both themes (lowest: --muted on --bg, light).
*/

:root {
  --bg: #f4eee1;
  --bg-2: #ebe3d2;
  --card: #fbf7ee;
  --ink: #17201a;
  --ink-2: #3a453c;
  --muted: #535e55;
  --line: rgba(23, 32, 26, .14);
  --line-2: rgba(23, 32, 26, .32);
  --accent: #8c4310;          /* amber, deepened for text on paper */
  --sun: #e39a4f;             /* the sun disc and solid buttons */
  --sun-ink: #17201a;         /* text on --sun */
  --water: rgba(23, 32, 26, .22);
  --glow: rgba(227, 154, 79, .30);
  --shadow: 0 1px 2px rgba(23, 32, 26, .06), 0 18px 40px -22px rgba(23, 32, 26, .35);
  --serif: var(--ff-display, 'Fraunces', 'Fraunces Fallback', Georgia, serif);
  --sans: var(--ff-body, 'Instrument Sans', 'Instrument Sans Fallback', 'Avenir Next', 'Segoe UI', sans-serif);
  --mono: var(--ff-mono, 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, Menlo, monospace);
  --wrap: 76rem;
  --gut: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1411; --bg-2: #121b16; --card: #16211b; --ink: #f3ead8; --ink-2: #d9d0bd; --muted: #a9b0a0;
    --line: rgba(243, 234, 216, .12); --line-2: rgba(243, 234, 216, .28);
    --accent: #f0b878; --sun: #e7a35c; --sun-ink: #0d1411;
    --water: rgba(243, 234, 216, .16); --glow: rgba(231, 163, 92, .22);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 24px 48px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1411; --bg-2: #121b16; --card: #16211b; --ink: #f3ead8; --ink-2: #d9d0bd; --muted: #a9b0a0;
  --line: rgba(243, 234, 216, .12); --line-2: rgba(243, 234, 216, .28);
  --accent: #f0b878; --sun: #e7a35c; --sun-ink: #0d1411;
  --water: rgba(243, 234, 216, .16); --glow: rgba(231, 163, 92, .22);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 24px 48px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---- base ------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html:not(.js) .needs-js { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 30; background: var(--ink); color: var(--bg); padding: .75rem 1rem; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.label {
  font: 500 .75rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* ---- buttons ---------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7rem 1.2rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s;
}
.btn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.btn-solid { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn .arr { font-family: var(--sans); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; align-self: start; gap: .75rem; margin: 1.5rem 0 0; }

/* ---- site header ------------------------------------------------------------------------------ */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: .5rem 1.25rem; flex-wrap: wrap; min-height: 64px; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; text-decoration: none; margin-right: auto; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sun); color: var(--sun-ink); font: 600 .8rem/1 var(--mono); letter-spacing: .02em;
}
.brand-name { font: 400 1.15rem/1 var(--serif); letter-spacing: -.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 0 .25rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem;
  font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink-2);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .5em; }
.theme {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.theme:hover { border-color: var(--ink); }
.theme-icon { width: 1rem; height: 1rem; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px currentColor; }
@media (max-width: 760px) {
  .top { position: static; }
  .top-in { padding-block: .75rem; }
  .nav { order: 3; width: 100%; margin-inline: -.6rem; }
}

/* ---- hero: the sun and the water -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 9vw, 7rem) 0 0; isolation: isolate; }
.hero::before { /* the sun */
  content: ""; position: absolute; z-index: -1;
  width: clamp(16rem, 38vw, 34rem); aspect-ratio: 1; right: max(-6rem, -8vw); top: clamp(1rem, 6vw, 4rem);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--sun) 0 54%, color-mix(in srgb, var(--sun) 40%, transparent) 55%, transparent 71%);
  opacity: .3;  /* dimmed wherever it can sit behind text; full only on wide screens, below */
}
.hero::after { /* the water: ruled lines that thin toward the horizon */
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: clamp(15rem, 36vw, 30rem); height: 14rem;
  background:
    linear-gradient(var(--bg), transparent 30%, transparent 70%, var(--bg)),
    repeating-linear-gradient(180deg, var(--water) 0 1px, transparent 1px 14px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 40%, #000 100%); mask: linear-gradient(90deg, transparent, #000 40%, #000 100%);
}
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1.5rem; }
.kicker .label { color: var(--ink-2); }
.kicker .rule { flex: 0 0 3rem; height: 1px; background: var(--line-2); }
.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.5rem, 1.2rem + 5.6vw, 6.4rem); line-height: .98; letter-spacing: -.035em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero h1 .who { display: block; margin-bottom: .45em; font: italic 300 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.2 var(--serif); letter-spacing: 0; color: var(--accent); }
.hero h1 em { font-style: italic; font-weight: 300; }
.hero-lead { max-width: 38rem; margin: 1.75rem 0 0; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); }

/* the product ledger under the hero */
.ledger { list-style: none; margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; border-top: 1px solid var(--line-2); counter-reset: ledger; }
.ledger li { border-bottom: 1px solid var(--line); }
.ledger a {
  display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; align-items: baseline; gap: .25rem 1rem;
  min-height: 64px; padding: 1rem 0; text-decoration: none; position: relative;
  background: linear-gradient(90deg, var(--glow), transparent 60%) no-repeat 0 0 / 0 100%;
  transition: background-size .35s ease, padding .35s ease;
}
.ledger a:hover { background-size: 100% 100%; padding-left: .75rem; color: var(--ink); }
.ledger .n { font: 500 .8rem/1 var(--mono); color: var(--muted); letter-spacing: .08em; }
.ledger .name { font: 400 clamp(1.35rem, 1rem + 1.4vw, 2rem)/1.15 var(--serif); letter-spacing: -.015em; }
.ledger .name i { font-weight: 300; }
.ledger .what { grid-column: 2; color: var(--ink-2); font-size: .98rem; }
.ledger .tag { grid-row: 1; grid-column: 3; font: 500 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (min-width: 900px) {
  .ledger a { grid-template-columns: 3.25rem minmax(0, 22rem) minmax(0, 1fr) auto; }
  .ledger .what { grid-column: 3; }
  .ledger .tag { grid-column: 4; }
}
@media (max-width: 520px) {
  .ledger a { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .ledger .tag { grid-row: auto; grid-column: 2; text-align: left; }
}

/* ---- sections --------------------------------------------------------------------------------- */
.sec { padding: clamp(4rem, 10vw, 7.5rem) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: .75rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 48rem; }
.sec-head h2 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); letter-spacing: -.03em; }
.sec-head h2 em { font-weight: 300; }
.sec-deck { color: var(--ink-2); font-size: 1.1rem; margin: 0; max-width: 40rem; }
.fine { font-size: .85rem; color: var(--muted); max-width: 52rem; margin: 1.5rem 0 0; }

/* ---- product plates --------------------------------------------------------------------------- */
.plates { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.plate {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 6px);
  background: var(--card); box-shadow: var(--shadow);
}
.plate-in { display: grid; gap: 2rem; padding: clamp(1.25rem, 4vw, 3rem); }
@media (min-width: 980px) {
  .plate-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem 4rem; }
  .plate-fig-wide { grid-column: 1 / -1; }
}
.plate-head { margin-bottom: 1.25rem; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .5rem 1.1rem; }
.plate-no { grid-column: 1 / -1; display: flex; align-items: center; gap: .75rem; margin: 0 0 .5rem; }
.plate-no b { font: 300 italic 1rem/1 var(--serif); color: var(--accent); }
.plate-no::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.plate-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.plate-icon-svg { width: 72px; height: 72px; }
.plate-name { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.4rem); letter-spacing: -.035em; font-variation-settings: "opsz" 144; }
.plate-name small { display: block; margin-top: .4rem; font: 500 .72rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plate-line { grid-column: 1 / -1; margin: 1rem 0 0; font: italic 300 clamp(1.3rem, 1.1rem + .9vw, 1.75rem)/1.3 var(--serif); color: var(--ink); }
.plate-what { color: var(--ink-2); }
.plate-what p { max-width: 36rem; }

.feats { list-style: none; counter-reset: f; display: grid; gap: .1rem; margin: 1.25rem 0 0; }
.feats li { counter-increment: f; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.feats li::before { content: counter(f, decimal-leading-zero); font: 500 .75rem/1.9 var(--mono); color: var(--accent); }
.feats strong { font-weight: 600; color: var(--ink); }

.spec {
  display: grid; grid-template-columns: minmax(6.5rem, auto) minmax(0, 1fr); gap: 0;
  margin: 0; border: 1px dashed var(--line-2); border-radius: 10px; overflow: hidden;
  background: color-mix(in srgb, var(--bg) 60%, var(--card));
}
.spec dt, .spec dd { margin: 0; padding: .7rem .9rem; border-top: 1px dashed var(--line); }
.spec dt:first-of-type, .spec dt:first-of-type + dd { border-top: 0; }
.spec dt { font: 500 .7rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec dd { font-size: .95rem; }
.spec-gap { margin-top: 2rem; }
.gap-top { margin-top: 2.5rem; }

.plate-fig { margin: 0; align-self: center; }
.plate-fig figcaption { margin-top: .75rem; font: 400 .78rem/1.5 var(--mono); color: var(--muted); }

/* Moor: the real dock, set on a dusk horizon */
.dusk {
  position: relative; border-radius: 12px; overflow: hidden; padding: clamp(3rem, 10vw, 6.5rem) clamp(.5rem, 2vw, 1.5rem) clamp(.5rem, 2vw, 1.25rem);
  background:
    radial-gradient(60% 90% at 78% 8%, rgba(231, 163, 92, .55), transparent 60%),
    linear-gradient(180deg, #1a2440 0%, #3a3b62 55%, #6a5677 100%);
}
.dusk img { width: 100%; border-radius: clamp(10px, 2vw, 22px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); }

/* Command: three phones, lit from behind */
.phones { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.5rem, 2vw, 1rem); align-items: end; padding: 1rem 0 0; isolation: isolate; }
.phones::before { content: ""; position: absolute; inset: 10% 5% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(10px); }
.phones picture { border-radius: clamp(12px, 3vw, 26px); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #0b0b0c; }
.phones picture:nth-child(2) { transform: translateY(-1.5rem); }

/* Bayou Apps: the studio card */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; align-self: start; }
.principles div { background: var(--card); padding: 1.1rem 1.2rem; }
.principles h4 { font-size: 1.35rem; margin-bottom: .35rem; }
.principles p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---- also made -------------------------------------------------------------------------------- */
.made { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.made-group { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .made-group { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 3rem; } }
.made-group > header h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); letter-spacing: -.02em; margin-bottom: .6rem; }
.made-group > header p { color: var(--ink-2); font-size: .98rem; }
.games { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.games li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.games img { width: 56px; height: 56px; border-radius: 13px; }
.games h4 { font-size: 1.2rem; margin-bottom: .25rem; }
.games h4 a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -.6rem; }
.games p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.games .soon .tile { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 13px; border: 1px dashed var(--line-2); font: 500 .85rem/1 var(--mono); color: var(--muted); }
.status { display: inline-block; margin-top: .4rem; font: 500 .68rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mini { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.mini li { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.mini h4 { font-size: 1.3rem; margin-bottom: .35rem; }
.mini h4 a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -.6rem; }
.mini p { margin: 0 0 .5rem; color: var(--ink-2); font-size: .95rem; }
.mini p:last-child { margin: 0; }

/* ---- about ------------------------------------------------------------------------------------ */
.about { display: grid; gap: 2rem 4rem; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.about .big { font: 300 clamp(1.5rem, 1.15rem + 1.5vw, 2.2rem)/1.25 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.about .prose p { color: var(--ink-2); max-width: 38rem; }
.about .prose .big { color: var(--ink); }
.stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; align-self: start; }
.stats li { background: var(--card); padding: 1.1rem 1.2rem; display: grid; gap: .3rem; }
.stats b { font: 300 clamp(2rem, 1.5rem + 2vw, 2.9rem)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.stats span { font-size: .88rem; color: var(--ink-2); }

/* ---- client work ------------------------------------------------------------------------------ */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.case { padding: 1.4rem 1.4rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.case-meta { margin: 0 0 .6rem; }
.case h3 { font-size: 1.45rem; letter-spacing: -.015em; margin-bottom: 1rem; }
.case dl { margin: 0; display: grid; gap: .2rem; }
.case dt { font: 500 .68rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-top: .6rem; }
.case dd { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---- experience ------------------------------------------------------------------------------- */
.split { display: grid; gap: 2rem 4rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); } }
.timeline { list-style: none; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }
.timeline .when { margin: 0 0 .2rem; }
.timeline h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.timeline .role { margin: 0 0 .4rem; color: var(--ink); font-weight: 500; }
.timeline p { color: var(--ink-2); margin-bottom: .3rem; }
.stack { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; }
.stack span { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; font: 400 .78rem/1.4 var(--mono); color: var(--ink-2); }
.doors { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; margin-top: 2.5rem; }
.doors a {
  display: grid; gap: .35rem; min-height: 100%; padding: 1.1rem 1.2rem; text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); transition: border-color .2s, transform .2s;
}
.doors a:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.doors b { font: 400 1.4rem/1.1 var(--serif); }
.doors span { color: var(--ink-2); font-size: .92rem; }

/* ---- contact ---------------------------------------------------------------------------------- */
.sec-contact { position: relative; overflow: hidden; isolation: isolate; }
.sec-contact::before {
  content: ""; position: absolute; z-index: -1; width: 30rem; aspect-ratio: 1; left: 50%; bottom: -24rem; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%);
}
.sec-contact .wrap { text-align: center; display: grid; justify-items: center; }
.sec-contact h2 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.6rem); letter-spacing: -.035em; margin: .75rem 0 1rem; }
.contact-lead { max-width: 36rem; color: var(--ink-2); }
.contact-mail { font: 300 clamp(1.4rem, 1rem + 2.2vw, 2.6rem)/1.2 var(--serif); margin: .5rem 0 0; }
.contact-mail a { display: inline-block; padding: .5rem 0; min-height: 44px; text-decoration-color: var(--sun); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.sec-contact .cta-row { justify-content: center; }

/* ---- footer ----------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: .9rem; color: var(--ink-2); }
.foot-in { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; align-items: center; }
.foot p { margin: 0; }
.foot a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 .2rem; }

/* ---- product pages ---------------------------------------------------------------------------- */
.p-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.p-hero::before {
  content: ""; position: absolute; z-index: -1; width: clamp(14rem, 30vw, 26rem); aspect-ratio: 1; right: -4rem; top: 1rem;
  border-radius: 50%; background: radial-gradient(circle, var(--sun) 0 54%, color-mix(in srgb, var(--sun) 40%, transparent) 55%, transparent 71%); opacity: .3;
}
.crumbs { margin: 0 0 2rem; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.p-id { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.p-id .plate-icon { width: 96px; height: 96px; border-radius: 22px; }
.p-hero h1 { font-size: clamp(3rem, 1.6rem + 6vw, 7rem); letter-spacing: -.04em; line-height: .95; font-variation-settings: "opsz" 144; }
.p-hero .plate-line { max-width: 34ch; margin-top: 1.5rem; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); }
.p-hero .hero-lead { max-width: 40rem; }
.p-grid { display: grid; gap: 2rem 4rem; }
@media (min-width: 900px) { .p-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.p-sec { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
.p-sec h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); letter-spacing: -.03em; margin-bottom: 1.25rem; }
.p-sec .lede { max-width: 40rem; color: var(--ink-2); font-size: 1.08rem; }
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.cards li { padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.cards h3 { font-size: 1.35rem; margin-bottom: .4rem; letter-spacing: -.01em; }
.cards p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.cards .label { display: block; margin-bottom: .5rem; }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.shot figcaption { margin-top: .75rem; font: 400 .8rem/1.5 var(--mono); color: var(--muted); }
.shots-2 { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .shots-2 { grid-template-columns: 1.25fr 1fr; align-items: start; } }

/* ---- 404 -------------------------------------------------------------------------------------- */
.lost { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; text-align: center; padding: var(--gut); position: relative; overflow: hidden; isolation: isolate; }
.lost::before { content: ""; position: absolute; z-index: -1; width: 22rem; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -78%); border-radius: 50%; background: radial-gradient(circle, var(--sun) 0 54%, transparent 56%); opacity: .35; }
.lost h1 { font-size: clamp(2.4rem, 8vw, 5rem); letter-spacing: -.035em; max-width: 14ch; }
.lost p { color: var(--ink-2); margin-top: 1rem; }
.lost .cta-row { justify-content: center; }

/* ---- motion ----------------------------------------------------------------------------------- */
/* Transform only: text is never invisible, even if the animation timeline stalls. */
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes sunrise { from { transform: translateY(40px) scale(.96); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero::before, .p-hero::before { animation: sunrise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .kicker, .hero h1, .hero-lead, .ledger li, .p-hero .crumbs, .p-id, .p-hero .plate-line, .p-hero .hero-lead, .p-hero .cta-row { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1, .p-id { animation-delay: .08s; }
  .hero-lead, .p-hero .plate-line { animation-delay: .18s; }
  .p-hero .hero-lead { animation-delay: .24s; }
  .p-hero .cta-row { animation-delay: .3s; }
  .ledger li:nth-child(1) { animation-delay: .3s; }
  .ledger li:nth-child(2) { animation-delay: .38s; }
  .ledger li:nth-child(3) { animation-delay: .46s; }
  .ledger li:nth-child(4) { animation-delay: .54s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- print ------------------------------------------------------------------------------------ */
@media print {
  :root { --bg: #fff; --card: #fff; --ink: #000; --ink-2: #222; --muted: #444; --accent: #000; --line: #bbb; --line-2: #888; }
  body { font-size: 10.5pt; }
  .top nav, .theme, .needs-js, .skip, .hero::before, .hero::after, .p-hero::before, .sec-contact::before, .lost::before, .cta-row .btn-solid { display: none !important; }
  .top { position: static; }
  .sec, .p-sec { padding: 1.2rem 0; }
  .plate, .case, .games li, .mini li, .cards li { box-shadow: none; break-inside: avoid; }
  .phones, .dusk, .shot { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
.game-shot { margin-top: 1.5rem; }
@media (max-width: 480px) {
  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec dd { border-top: 0; padding-top: 0; }
  .plate-in { padding: 1.1rem; }
}
.lost p > a[href^="mailto"] { display: inline-block; padding: .75rem 0; }

/* The sun at full strength only where it clears the text column (measured at 1280 and 1440 px). */
@media (min-width: 1280px) {
  .hero::before { opacity: .9; right: -11rem; }
  .p-hero::before { opacity: .85; }
}
