/* DNA Tuning — shared styles
   Layout: a dyno sheet. Content sits on a ruled grid, figures are set in mono,
   and one heat-gradient curve (stock → tuned) carries the colour. */

:root {
  --ink: #090b0f;
  --panel: #10131a;
  --panel-2: #161a23;
  --line: #222734;
  --line-2: #343b4c;
  --text: #eceef2;
  --muted: #9097a8;
  --dim: #5f6778;
  --heat: #ff3a2d;
  --amber: #ffae1a;
  --steel: #7f9cc4;
  --ok: #3ecf8e;
  --grad: linear-gradient(100deg, var(--heat), var(--amber));

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --accent-text: #ffae1a;
  --shadow: #000;
  --glow: 26%;
  --map-filter: invert(.9) hue-rotate(180deg) saturate(1.25) brightness(.95);

  --gutter: clamp(16px, 4vw, 44px);
  --r: 4px;
  color-scheme: dark;
}

/* Light mode: same system on cool paper. The toggle in the header sets data-theme. */
:root[data-theme="light"] {
  --ink: #f2f3f6;
  --panel: #ffffff;
  --panel-2: #e8eaef;
  --line: #dde0e7;
  --line-2: #c2c7d2;
  --text: #0d1016;
  --muted: #545c6c;
  --dim: #858c9b;
  --heat: #e62d20;
  --amber: #f59000;
  --steel: #4f6f9c;
  --ok: #17895a;
  --accent-text: #b84a00;
  --shadow: rgba(24, 32, 52, .28);
  --glow: 15%;
  --map-filter: none;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--heat); color: #fff; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

/* ── Type ─────────────────────────────────────────── */
.display {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.h1 { font-size: clamp(3.4rem, 9.2vw, 8.4rem); }
.h2 { font-size: clamp(2.5rem, 5.6vw, 4.8rem); }
.h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1; letter-spacing: .01em; }
.heat { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.prose { color: var(--muted); max-width: 64ch; display: grid; gap: 1em; }
.prose strong { color: var(--text); font-weight: 600; }

.eyebrow {
  font: 500 .74rem/1 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: .8em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: .95em 1.5em;
  font: 600 .86rem/1 var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--bg); color: var(--text);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { border-color: var(--text); transform: translateY(-1px); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn--heat { background: var(--grad); border-color: transparent; color: #140500; box-shadow: 0 10px 34px -14px var(--heat); }
.btn--heat:hover { border-color: transparent; box-shadow: 0 14px 40px -12px var(--heat); }
.btn--sm { padding: .72em 1.05em; font-size: .76rem; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.link { font: 600 .8rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; display: inline-flex; gap: .6em; align-items: center; color: var(--text); }
.link .arr { color: var(--heat); transition: transform .18s ease; }
.link:hover .arr { transform: translateX(4px); }

/* ── Header ───────────────────────────────────────── */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); margin-right: .55em; vertical-align: 1px; }
.dot.is-open { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }

.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ink) 82%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand svg { width: 34px; height: 34px; color: var(--text); }
.brand__name { font: 900 1.75rem/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.brand__name small { display: block; font: 500 .56rem/1 var(--f-mono); letter-spacing: .42em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a:not(.btn) { font: 500 .8rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-block: .6rem; position: relative; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); }
.head__right { display: flex; align-items: center; gap: clamp(.7rem, 1.6vw, 1.4rem); }
.theme-toggle { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: none; color: var(--text); cursor: pointer; transition: border-color .18s ease; }
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-moon, :root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.section--panel .sw { background: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: none; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); box-shadow: 0 6px 0 var(--text), 0 -6px 0 var(--text); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.2rem; display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding-block: 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent-text); }
  .nav .btn { margin-top: 1rem; }
}

/* ── Sections ─────────────────────────────────────── */
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--line { border-top: 1px solid var(--line); }
.section--panel { background: var(--panel); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 1.2rem; margin-bottom: clamp(2.2rem, 5vw, 4rem); }
.sec-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }

/* ruled backdrop used behind heroes */
.ruled { position: relative; isolation: isolate; overflow: hidden; }
.ruled::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .55;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 0%, transparent 72%);
}
.ruled::after {
  content: ""; position: absolute; z-index: -1; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  right: -12vw; top: -22vw; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--heat) var(--glow), transparent), transparent 70%);
  filter: blur(20px);
}

/* ── Home hero ────────────────────────────────────── */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1020px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero__copy { display: grid; gap: 1.7rem; min-width: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__makes { font: 400 .78rem/1.7 var(--f-mono); color: var(--dim); letter-spacing: .06em; text-transform: uppercase; max-width: 52ch; }
.hero__makes b { color: var(--muted); font-weight: 500; }

/* dyno card */
.dyno { background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; min-width: 0; box-shadow: 0 40px 90px -50px var(--shadow); }
.dyno__top { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); }
.dyno__title { font: 500 .74rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dyno__title b { color: var(--text); font-weight: 600; display: block; font-size: .86rem; letter-spacing: .06em; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg button { background: none; border: 0; padding: .55em .85em; font: 600 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.dyno__plot { position: relative; aspect-ratio: 16 / 10; }
.dyno__plot canvas { width: 100%; height: 100%; }
.dyno__read { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.dyno__read > div { padding: 1rem 1.1rem; display: grid; gap: .35rem; }
.dyno__read > div + div { border-left: 1px solid var(--line); }
.dyno__read dt { font: 500 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.dyno__read dd { margin: 0; font: 900 clamp(1.9rem, 4vw, 2.7rem)/1 var(--f-display); display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .4em; }
.dyno__read dd small { font: 500 .78rem/1 var(--f-mono); color: var(--muted); }
.dyno__read dd .was { font: 500 .8rem/1 var(--f-mono); color: var(--steel); }
.dyno__foot { padding: .7rem 1.1rem; border-top: 1px solid var(--line); font: 400 .68rem/1.5 var(--f-mono); color: var(--dim); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between; }
.key { display: inline-flex; align-items: center; gap: .5em; }
.key i { width: 16px; height: 2px; background: var(--steel); display: inline-block; }
.key--tuned i { background: var(--grad); height: 3px; }

/* ── Stats ────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-block: 1px solid var(--line); }
.stat { padding: clamp(1.4rem, 3vw, 2.4rem) var(--gutter); display: grid; gap: .5rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { font: 900 clamp(2.8rem, 6vw, 4.6rem)/.9 var(--f-display); font-variant-numeric: tabular-nums; }
.stat span { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 620px) { .stat { border-left: 0; border-top: 1px solid var(--line); } .stat:first-child { border-top: 0; } }

/* ── Service cards ────────────────────────────────── */
.svc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.svc { background: var(--ink); padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; gap: 1.1rem; align-content: start; position: relative; transition: background .25s ease; min-width: 0; }
.svc:hover { background: var(--panel); }
.svc__tag { font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; display: flex; justify-content: space-between; }
.svc__icon { width: 56px; height: 56px; color: var(--accent-text); }
.svc p { color: var(--muted); }
.svc .link { margin-top: .4rem; }
.svc::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--grad); transition: width .35s ease; }
.svc:hover::after { width: 100%; }

/* ── Benefits (gauge rows) ────────────────────────── */
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: 1.15fr .85fr; } }
.split > * { min-width: 0; }
.gains { display: grid; }
.gain { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1.2rem; padding-block: 1.15rem; border-top: 1px solid var(--line); align-items: center; }
.gain:last-child { border-bottom: 1px solid var(--line); }
.gain svg { width: 26px; height: 26px; color: var(--heat); grid-row: span 2; }
.gain b { font: 800 1.35rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.gain span { color: var(--muted); font-size: .95rem; }

/* ── Software cards ───────────────────────────────── */
.sw-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.sw { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: border-color .2s ease, transform .2s ease; min-width: 0; }
.sw:hover { border-color: var(--line-2); transform: translateY(-3px); }
.sw__img { aspect-ratio: 16 / 10; background: var(--panel-2); position: relative; overflow: hidden; display: grid; place-items: center; }
.sw__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sw:hover .sw__img img { transform: scale(1.04); }
.sw__img .ph { font: 900 3.4rem/1 var(--f-display); color: var(--line-2); text-transform: uppercase; letter-spacing: .04em; }
.sw__make { position: absolute; left: .8rem; top: .8rem; font: 600 .66rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; background: color-mix(in srgb, var(--ink) 80%, transparent); backdrop-filter: blur(6px); padding: .5em .7em; border-radius: 3px; border: 1px solid var(--line-2); }
.sw__body { padding: 1.15rem 1.2rem 1.25rem; display: grid; gap: .9rem; align-content: start; }
.sw__name { font: 800 1.5rem/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.sw__spec { display: grid; gap: .45rem; font: 400 .78rem/1.3 var(--f-mono); color: var(--muted); }
.sw__spec div { display: flex; justify-content: space-between; gap: 1rem; }
.sw__spec dd { margin: 0; color: var(--text); text-align: right; }
.sw__spec .up { color: var(--accent-text); }
.bar { height: 4px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--steel); }
.bar i + i { background: var(--grad); }
.sw__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { border: 1px solid var(--line-2); background: none; border-radius: 100px; padding: .55em 1em; font: 500 .76rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: all .15s ease; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }

/* ── Quote ────────────────────────────────────────── */
.quote { display: grid; gap: 1.6rem; max-width: 980px; }
.quote blockquote { font: 800 clamp(2rem, 4.6vw, 3.9rem)/1 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.quote blockquote::before { content: "“"; color: var(--heat); }
.quote blockquote::after { content: "”"; color: var(--heat); }
.quote figcaption { font: 500 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ── Marquee of makes ─────────────────────────────── */
.makes { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.3rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.makes__track { display: flex; gap: 3.2rem; width: max-content; animation: slide 38s linear infinite; }
.makes__track span { font: 800 clamp(1.5rem, 3vw, 2.3rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .05em; color: var(--dim); white-space: nowrap; }
.makes__track span:nth-child(3n) { color: var(--text); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── News ─────────────────────────────────────────── */
.news { display: grid; }
.news a { display: grid; grid-template-columns: 1fr; gap: .5rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); align-items: baseline; transition: padding .2s ease; }
.news a:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .news a { grid-template-columns: 130px 1fr auto; } .news a:hover { padding-left: .8rem; } }
.news time { font: 500 .74rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.news b { font: 800 clamp(1.3rem, 2.4vw, 1.8rem)/1.1 var(--f-display); text-transform: uppercase; }
.news .arr { color: var(--heat); font-family: var(--f-mono); }

/* ── CTA band ─────────────────────────────────────── */
.cta { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr auto; } }
.cta__btns { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ── Inner page hero ──────────────────────────────── */
.page-hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 1.5rem; }
.crumbs { font: 400 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--muted); }

/* ── Services page ────────────────────────────────── */
.jump { position: sticky; top: 73px; z-index: 30; background: color-mix(in srgb, var(--ink) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none; }
.jump a { font: 500 .76rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-block: 1.05rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.jump a:hover { color: var(--text); border-color: var(--heat); }
.detail { scroll-margin-top: 140px; }
.detail__body { display: grid; gap: 1.6rem; }

.stages { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.stage { background: var(--panel); padding: 1.15rem 1.3rem; display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.2rem; align-items: center; }
.stage__n { grid-row: span 2; font: 900 2.6rem/1 var(--f-display); width: 1.5em; color: var(--dim); }
.stage b { font: 800 1.25rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.stage span { color: var(--muted); font-size: .93rem; }
.stage__meter { grid-column: 1 / -1; height: 3px; background: var(--line); margin-top: .6rem; position: relative; }
.stage__meter i { position: absolute; inset: 0 auto 0 0; background: var(--grad); }
.stage:nth-child(1) .stage__n { color: var(--text); }

.ticks { display: grid; gap: .1rem; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding-block: .95rem; border-top: 1px solid var(--line); align-items: baseline; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: "＋"; font: 600 .8rem/1 var(--f-mono); color: var(--heat); }
.ticks b { font-weight: 600; }

.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.opt { background: var(--ink); padding: 1.15rem 1.2rem; display: grid; gap: .45rem; align-content: start; min-height: 112px; transition: background .2s ease; }
.opt:hover { background: var(--panel-2); }
.opt code { font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; color: var(--accent-text); text-transform: uppercase; }
.opt b { font: 800 1.2rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.opt span { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.note { font: 400 .76rem/1.6 var(--f-mono); color: var(--dim); border-left: 2px solid var(--line-2); padding-left: 1rem; max-width: 70ch; }

/* hex map panel */
.map { background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.map__top { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.map canvas { width: 100%; aspect-ratio: 4 / 3; }
.map__foot { padding: .7rem 1rem; border-top: 1px solid var(--line); font: 400 .68rem/1.5 var(--f-mono); color: var(--dim); }

/* ── Team ─────────────────────────────────────────── */
.team { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.member { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.member__ph { aspect-ratio: 4 / 4.4; background: linear-gradient(160deg, var(--panel-2), var(--ink)); display: grid; place-items: center; position: relative; overflow: hidden; }
.member__ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s ease; }
.member:hover .member__ph img { filter: none; }
.member__ph b { font: 900 6rem/1 var(--f-display); color: var(--line-2); }
.member__body { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: .35rem; }
.member__body b { font: 800 1.55rem/1 var(--f-display); text-transform: uppercase; }
.member__body span { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.member__body p { color: var(--muted); font-size: .93rem; margin-top: .4rem; }

.values { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value { background: var(--ink); padding: 1.6rem; display: grid; gap: .7rem; align-content: start; }
.value p { color: var(--muted); font-size: .95rem; }

/* ── Forms ────────────────────────────────────────── */
.field { display: grid; gap: .5rem; min-width: 0; }
.field label, .legend { font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field label i { color: var(--heat); font-style: normal; }
.input, .field input, .field select, .field textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: .9em 1em; font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 18%, transparent); }
.field .err { font: 400 .76rem/1.3 var(--f-mono); color: var(--heat); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--heat); }
.grid-2 { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form { display: grid; gap: 1.2rem; }

.info { display: grid; }
.info > div { padding-block: 1.3rem; border-top: 1px solid var(--line); display: grid; gap: .45rem; }
.info > div:last-child { border-bottom: 1px solid var(--line); }
.info dt { font: 500 .7rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.info dd { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.info dd a:hover { color: var(--accent-text); }
.info dd small { display: block; color: var(--muted); font-size: .9rem; }

.toast { border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 9%, var(--panel)); border-radius: var(--r); padding: 1rem 1.2rem; display: grid; gap: .8rem; }
.toast b { color: var(--ok); font: 600 .8rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }

/* ── Booking ──────────────────────────────────────── */
.book { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (min-width: 1020px) { .book { grid-template-columns: 1fr 360px; } }
.book > * { min-width: 0; }
.steps { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 1.5rem; background: var(--panel); }
.steps li { flex: 1; min-width: 0; }
.steps button { width: 100%; background: none; border: 0; border-left: 1px solid var(--line); padding: .95rem .7rem; display: flex; align-items: center; justify-content: center; gap: .6rem; font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); cursor: pointer; position: relative; }
.steps li:first-child button { border-left: 0; }
.steps button:disabled { cursor: default; }
.steps .n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: .68rem; flex: none; }
.steps .is-done button { color: var(--muted); }
.steps .is-done .n { background: var(--text); color: var(--ink); border-color: var(--text); }
.steps .is-active button { color: var(--text); }
.steps .is-active .n { background: var(--grad); color: #140500; border-color: transparent; }
.steps .is-active button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); }
@media (max-width: 700px) { .steps .lbl { display: none; } }

.pane { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.2rem, 3vw, 2.2rem); display: grid; gap: 1.6rem; }
.pane__head { display: grid; gap: .5rem; }
.pane__head p { color: var(--muted); }
.pane__nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; border-top: 1px solid var(--line); }

.picks { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick__box { border: 1px solid var(--line-2); border-radius: 6px; padding: 1.1rem 1.15rem; display: grid; gap: .5rem; height: 100%; background: var(--ink); transition: border-color .15s ease, background .15s ease; }
.pick:hover .pick__box { border-color: var(--muted); }
.pick input:checked + .pick__box { border-color: var(--accent-text); background: color-mix(in srgb, var(--amber) 7%, var(--ink)); box-shadow: inset 0 0 0 1px var(--amber); }
.pick input:focus-visible + .pick__box { outline: 2px solid var(--amber); outline-offset: 3px; }
.pick__box code { font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.pick__box b { font: 800 1.35rem/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.pick__box span { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.toggles { display: flex; flex-wrap: wrap; gap: .5rem; }
.tog { position: relative; }
.tog input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tog span { display: inline-block; border: 1px solid var(--line-2); border-radius: 100px; padding: .55em .95em; font: 500 .76rem/1.1 var(--f-mono); color: var(--muted); transition: all .15s ease; }
.tog:hover span { color: var(--text); border-color: var(--muted); }
.tog input:checked + span { background: var(--text); color: var(--ink); border-color: var(--text); }
.tog input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

.when { display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .when { grid-template-columns: 1.15fr 1fr; } }
.cal { border: 1px solid var(--line-2); border-radius: 6px; background: var(--ink); padding: 1rem; min-width: 0; }
.cal__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.cal__top b { font: 800 1.4rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.cal__top button { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: var(--r); background: none; cursor: pointer; font-family: var(--f-mono); }
.cal__top button:hover:not(:disabled) { border-color: var(--text); }
.cal__top button:disabled { opacity: .3; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { font: 500 .64rem/1 var(--f-mono); letter-spacing: .1em; color: var(--dim); text-align: center; padding-block: .5rem; text-transform: uppercase; }
.cal__day { aspect-ratio: 1; border: 1px solid transparent; border-radius: var(--r); background: var(--panel); font: 500 .88rem/1 var(--f-mono); cursor: pointer; display: grid; place-items: center; position: relative; padding: 0; }
.cal__day:hover:not(:disabled) { border-color: var(--muted); }
.cal__day:disabled { background: none; color: var(--line-2); cursor: not-allowed; }
.cal__day.is-today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--heat); }
.cal__day[aria-pressed="true"] { background: var(--grad); color: #140500; font-weight: 600; }
.cal__day[aria-pressed="true"]::after { background: #140500; }
.slots { display: grid; gap: .9rem; align-content: start; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.slot { border: 1px solid var(--line-2); background: var(--ink); border-radius: var(--r); padding: .8em .4em; font: 500 .84rem/1 var(--f-mono); cursor: pointer; transition: all .15s ease; }
.slot:hover:not(:disabled) { border-color: var(--text); }
.slot:disabled { color: var(--line-2); text-decoration: line-through; cursor: not-allowed; border-color: var(--line); }
.slot[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.hint { font: 400 .76rem/1.6 var(--f-mono); color: var(--dim); }

.sum { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
@media (min-width: 1020px) { .sum { position: sticky; top: 96px; } }
.sum__top { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.sum dl { margin: 0; display: grid; }
.sum dl > div { padding: .95rem 1.2rem; border-bottom: 1px solid var(--line); display: grid; gap: .35rem; }
.sum dt { font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.sum dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.sum dd.is-empty { color: var(--dim); font-weight: 400; }
.sum__foot { padding: 1rem 1.2rem; font: 400 .74rem/1.6 var(--f-mono); color: var(--dim); }

.review { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.review > div { background: var(--ink); padding: 1rem 1.15rem; display: grid; grid-template-columns: 110px 1fr auto; gap: 1rem; align-items: baseline; }
.review dt { font: 500 .68rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.review dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.review button { background: none; border: 0; color: var(--accent-text); font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; padding: .3em 0; }
@media (max-width: 560px) { .review > div { grid-template-columns: 1fr auto; } .review dt { grid-column: 1 / -1; } }
.check { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; color: var(--muted); font-size: .93rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .2em; accent-color: var(--accent-text); }

.done { display: grid; gap: 1.6rem; }
.done__ref { font: 900 clamp(2.6rem, 7vw, 4.6rem)/1 var(--f-display); letter-spacing: .04em; }
.done__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.my-bookings { display: grid; gap: .6rem; }
.my-bookings li { border: 1px solid var(--line); border-radius: 6px; padding: .9rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; align-items: center; background: var(--panel); }
.my-bookings code { font: 600 .78rem/1 var(--f-mono); color: var(--accent-text); letter-spacing: .08em; }
.my-bookings button { background: none; border: 0; color: var(--muted); font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.my-bookings button:hover { color: var(--heat); }

/* ── Footer ───────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); background: var(--panel); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.foot__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot__grid h4 { font: 500 .7rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.1rem; }
.foot__grid li + li { margin-top: .65rem; }
.foot__grid a { color: var(--muted); }
.foot__grid a:hover { color: var(--text); }
.foot__about { display: grid; gap: 1.1rem; align-content: start; color: var(--muted); font-size: .95rem; max-width: 36ch; }
.foot__base { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.4rem; font: 400 .72rem/1.5 var(--f-mono); color: var(--dim); letter-spacing: .04em; }
.foot__base a:hover { color: var(--text); }

/* floating book button on phones */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: none; }
@media (max-width: 900px) { .fab { display: inline-flex; } body.no-fab .fab { display: none; } }

/* ── Motion ───────────────────────────────────────── */
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
.rise > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.rise > *:nth-child(2) { animation-delay: .07s; }
.rise > *:nth-child(3) { animation-delay: .14s; }
.rise > *:nth-child(4) { animation-delay: .21s; }
.rise > *:nth-child(5) { animation-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Additions: utilities and inner-page pieces ───── */
[hidden] { display: none !important; }
.err-line { font: 400 .8rem/1.4 var(--f-mono); color: var(--heat); }
.tags { font: 400 .76rem/1.7 var(--f-mono); color: var(--dim); letter-spacing: .04em; }

.quotes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.q { background: var(--ink); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.2rem; align-content: space-between; }
.q blockquote { color: var(--text); font-size: 1.08rem; line-height: 1.6; }
.q figcaption { font: 500 .74rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.q figcaption::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--grad); margin-right: .8em; vertical-align: middle; }

.toolbar { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; justify-content: space-between; margin-bottom: 1.4rem; }
.toolbar .field { flex: 1 1 240px; }
.count { color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.empty { border: 1px dashed var(--line-2); border-radius: 8px; padding: clamp(1.6rem, 4vw, 3rem); display: grid; gap: 1rem; justify-items: start; }
.empty p { color: var(--muted); max-width: 56ch; }

.tune-head { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: end; justify-content: space-between; }
.tune-photo { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.tune-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 1rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl thead th { font: 500 .68rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); background: var(--panel); }
.tbl tbody th { font-weight: 500; }
.tbl td { font: 500 1rem/1 var(--f-mono); }
.tbl tr.up td { color: var(--accent-text); }

.lead { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .lead { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.lead__photo { aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--panel-2), var(--ink)); display: grid; place-items: center; max-width: 520px; width: 100%; }
.lead__photo img { width: 100%; height: 100%; object-fit: cover; }
.lead__photo b { font: 900 8rem/1 var(--f-display); color: var(--line-2); }
.lead__body { display: grid; gap: 1.3rem; min-width: 0; }
.lead__role { font: 500 .8rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .8rem 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font: 400 .9rem/1 var(--f-mono); color: var(--muted); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--line); }
.hours .is-closed th, .hours .is-closed td { color: var(--dim); }
.hours .is-today th { font-weight: 600; }
.hours .is-today th::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-right: .7em; vertical-align: 2px; }
.hours .is-today td { color: var(--text); }

.mapband { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); padding-bottom: clamp(3rem, 7vw, 6rem); }
.mapband iframe { display: block; width: 100%; height: clamp(420px, 62vw, 680px); border: 1px solid var(--line-2); border-radius: 8px; filter: var(--map-filter); }

.posts { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.post { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; scroll-margin-top: 110px; }
@media (min-width: 900px) { .post { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .post:nth-child(even) .post__img { order: 2; } }
.post__img { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.post__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post__body { display: grid; gap: 1.3rem; min-width: 0; justify-items: start; }

.legal { max-width: 74ch; }
.legal h2 { color: var(--text); margin-top: 1.6rem; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--heat); }
.legal ul { display: grid; gap: .5rem; padding-left: 1.2rem; list-style: square; }
.legal li::marker { color: var(--heat); }

/* switch between the classic and Redline versions */
.btn--switch { border-style: dashed; color: var(--muted); }
.btn--switch:hover { color: var(--text); border-style: solid; }
@media (min-width: 901px) and (max-width: 1180px) { .nav { gap: .9rem; } .nav a:not(.btn) { font-size: .72rem; letter-spacing: .06em; } }
