/* MZK Diesel — layout concept: a Ford shop-manual spec sheet. Condensed industrial display type,
   mono part-callouts, line-art diagrams with leader lines; one accent color per scheme. */
:root, :root[data-scheme="forge"] {
  --bg: #0E0F11; --bg-2: #131518; --surface: #191B1F; --line: #2B2E34;
  --fg: #EEECE8; --muted: #A2A6AD; --accent: #F4A51C; --accent-ink: #16120A;
  --accent-soft: rgba(244,165,28,.14);
  --hot: #FF6B4A; --cool: #5CB8FF; --fuel: #F7C948; --metal: #9AA3AD;
  --d-line: #C9CCD1; --d-fill: #1E2125; --d-fill-2: #262A30;
  color-scheme: dark;
  --f-display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1200px; --radius: 4px;
}
:root[data-scheme="rust"] {
  --bg: #14100D; --bg-2: #1A1511; --surface: #221B16; --line: #3B3029;
  --fg: #F3EADF; --muted: #B0A293; --accent: #E2692F; --accent-ink: #1A0C04;
  --accent-soft: rgba(226,105,47,.15);
  --hot: #FF7A59; --cool: #7CC4E8; --fuel: #F2C14E; --metal: #A99C8E;
  --d-line: #D9CCBD; --d-fill: #2A211B; --d-fill-2: #33281F; color-scheme: dark;
}
:root[data-scheme="steel"] {
  --bg: #0A121C; --bg-2: #0E1824; --surface: #132030; --line: #23364C;
  --fg: #E9EFF6; --muted: #93A4BA; --accent: #4C95FF; --accent-ink: #06101C;
  --accent-soft: rgba(76,149,255,.15);
  --hot: #FF6F59; --cool: #6FD3FF; --fuel: #F5C451; --metal: #8FA0B4;
  --d-line: #C3D0DE; --d-fill: #172638; --d-fill-2: #1C2E43; color-scheme: dark;
}
:root[data-scheme="shop"] {
  --bg: #F2F1EE; --bg-2: #E8E6E1; --surface: #FFFFFF; --line: #D3D0C9;
  --fg: #151617; --muted: #575B62; --accent: #CF2629; --accent-ink: #FFFFFF;
  --accent-soft: rgba(207,38,41,.09);
  --hot: #E0452A; --cool: #1F74D6; --fuel: #B88000; --metal: #6E747C;
  --d-line: #2A2C30; --d-fill: #FFFFFF; --d-fill-2: #EEEDEA; color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(64px, 9vw, 120px); }
.band--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* type */
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: .95; letter-spacing: .005em; text-transform: uppercase; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(52px, 7.4vw, 104px); }
h2 { font-size: clamp(40px, 5.6vw, 72px); }
h3 { font-size: 27px; font-weight: 700; line-height: 1.05; }
p { margin: 0; }
.eyebrow { font: 500 12.5px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 60ch; }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.sec-head { display: grid; gap: 18px; align-content: start; margin-bottom: clamp(36px, 5vw, 56px); max-width: 780px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius);
  font: 700 15px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--fg); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small { font: 500 13px var(--f-mono); letter-spacing: 0; text-transform: none; opacity: .85; }

/* top bar + header */
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--line); font: 500 12.5px/1 var(--f-mono); color: var(--muted); }
.topbar .wrap { display: flex; gap: 22px; align-items: center; justify-content: space-between; min-height: 38px; flex-wrap: wrap; padding-block: 8px; }
.topbar span { display: inline-flex; gap: 8px; align-items: center; }
.topbar svg { width: 14px; height: 14px; flex: none; }
svg.ico { width: 22px; height: 22px; }
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.topbar .dot.is-open { background: #3DCB6C; box-shadow: 0 0 0 3px rgba(61,203,108,.18); }
.topbar a { text-decoration: none; color: var(--fg); }
@media (max-width: 760px) { .topbar span:nth-child(2) { display: none; } }
@media (max-width: 520px) { .engine-frame .tl { display: none; } }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); flex: none; }
.brand svg { width: 50px; height: 50px; color: var(--fg); }
.brand b { font: 800 26px/1 var(--f-display); letter-spacing: .03em; text-transform: uppercase; }
.brand b span { color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; font: 600 14px/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 12px 12px; border-radius: var(--radius); }
.nav a:hover { color: var(--fg); background: var(--surface); }
.header-cta { display: flex; gap: 10px; }
.header-cta .btn { min-height: 44px; padding: 0 18px; font-size: 13.5px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: var(--radius); width: 46px; height: 46px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 1440px) { .header-cta .btn--ghost { display: none; } }
@media (max-width: 1180px) {
  .nav, .header-cta .btn--ghost { display: none; }
  .menu-btn { display: inline-grid; place-items: center; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .nav.is-open { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px max(20px, env(safe-area-inset-left, 0px)) 20px; gap: 2px; }
  .nav.is-open a { font-size: 16px; padding: 14px 8px; }
}
@media (max-width: 520px) { .brand b { display: none; } .header-cta .btn { padding: 0 14px; } }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 20%, transparent 75%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 { overflow-wrap: anywhere; }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--accent); }
.hero .sub { font: 600 clamp(20px, 2vw, 25px)/1.3 var(--f-body); color: var(--fg); }
.hero .sub em { font-style: normal; color: var(--accent); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 6px; }
.hero-facts div { padding-right: 26px; margin-right: 26px; border-right: 1px solid var(--line); }
.hero-facts div:last-child { border: 0; margin: 0; padding: 0; }
.hero-facts b { display: block; font: 800 40px/1 var(--f-display); color: var(--fg); }
.hero-facts span { font: 500 12px/1.3 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hero-facts { grid-template-columns: 1fr 1fr 1fr; } .hero-facts div { padding-right: 12px; margin-right: 12px; } .hero-facts b { font-size: 32px; } }

/* engine diagram */
.engine-fig { margin: 0; min-width: 0; }
.engine-frame { position: relative; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: var(--radius); }
.engine-frame .corner { position: absolute; font: 500 11px/1 var(--f-mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.engine-frame .tl { top: 12px; left: 14px; } .engine-frame .tr { top: 12px; right: 14px; color: var(--accent); }
.engine-svg { display: block; width: 100%; height: auto; }
.engine-svg .part { fill: var(--d-fill); stroke: var(--d-line); stroke-width: 2; stroke-linejoin: round; }
.engine-svg .part-2 { fill: var(--d-fill-2); stroke: var(--d-line); stroke-width: 2; stroke-linejoin: round; }
.engine-svg .thin { fill: none; stroke: var(--d-line); stroke-width: 1.2; opacity: .55; }
.engine-svg .hatch { fill: url(#hatch); stroke: none; }
.engine-svg .rod { stroke: var(--d-line); stroke-width: 9; stroke-linecap: round; }
.engine-svg .rod-in { stroke: var(--d-fill-2); stroke-width: 5; stroke-linecap: round; }
.engine-svg .spray { fill: var(--fuel); opacity: 0; }
.engine-svg .burn { fill: var(--hot); opacity: 0; }
.engine-svg .tag circle { fill: var(--accent); }
.engine-svg .tag text { fill: var(--accent-ink); font: 700 13px var(--f-mono); text-anchor: middle; dominant-baseline: central; }
.engine-svg .lbl { fill: var(--fg); font: 600 12.5px var(--f-mono); letter-spacing: .04em; transition: opacity .4s; }
.engine-svg .lead { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; fill: none; transition: opacity .4s; }
.engine-svg .exh { fill: none; stroke: var(--hot); stroke-width: 3; stroke-dasharray: 4 10; opacity: 0; }
.engine-bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-top: 1px solid var(--line); font: 500 12.5px/1.3 var(--f-mono); color: var(--muted); }
.engine-bar .state { color: var(--fg); flex: 1; min-width: 0; }
.engine-bar .state b { color: var(--accent); font-weight: 600; }
.engine-bar button { background: none; border: 1px solid var(--line); color: var(--fg); font: 600 12px var(--f-mono); padding: 8px 12px; border-radius: var(--radius); cursor: pointer; text-transform: uppercase; letter-spacing: .08em; }
.engine-bar button:hover { border-color: var(--fg); }
.engine-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.engine-steps li { list-style: none; background: var(--surface); padding: 8px 10px; font: 500 11.5px/1.25 var(--f-mono); color: var(--muted); display: flex; gap: 8px; align-items: center; transition: color .3s, background .3s; }
.engine-steps li i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; font-size: 11px; }
.engine-steps li.on { color: var(--fg); }
.engine-steps li.on i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.engine-steps { margin: 0; padding: 0; }
.engine-steps li { min-width: 0; }
@media (max-width: 560px) { .engine-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* trust strip */
.trust { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { display: flex; gap: 14px; align-items: center; padding: 24px 22px; border-left: 1px solid var(--line); font-weight: 600; line-height: 1.3; }
.trust li:first-child { border-left: 0; padding-left: 0; }
.trust li svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.trust li small { display: block; font: 500 12px var(--f-mono); color: var(--muted); margin-top: 3px; font-weight: 400; }
@media (max-width: 900px) { .trust ul { grid-template-columns: 1fr 1fr; } .trust li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .trust li:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 520px) { .trust ul { grid-template-columns: 1fr; } .trust li:nth-child(2) { border-top: 1px solid var(--line); } }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; padding: 28px 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; transition: background .2s; }
.svc:hover { background: var(--surface); }
.svc .code { font: 500 11.5px/1 var(--f-mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; }
.svc svg.ico { width: 34px; height: 34px; color: var(--accent); }
.svc h3 { margin-top: 4px; }
.svc p { color: var(--muted); font-size: 16px; }
.svc .covers { font: 500 12px/1.5 var(--f-mono); color: var(--fg); opacity: .8; border-top: 1px dashed var(--line); padding-top: 12px; }
.svc-note { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 28px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.svc-note p { max-width: 70ch; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }

/* under the hood */
.hood-tabs { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 22px; }
.hood-tabs button { background: none; border: 0; border-right: 1px solid var(--line); color: var(--muted); font: 600 13px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 14px 20px; cursor: pointer; white-space: nowrap; }
.hood-tabs button:last-child { border-right: 0; }
.hood-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.hood-panel { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hood-panel[hidden] { display: none !important; }
.hood-fig { border-right: 1px solid var(--line); min-width: 0; display: grid; grid-template-rows: 1fr auto; }
.hood-fig .scroll { overflow-x: auto; align-self: center; padding: 10px 0; }
.hood-fig svg { display: block; width: 100%; min-width: 560px; height: auto; }
.hood-ctrl { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); font: 500 12.5px var(--f-mono); color: var(--muted); }
.hood-ctrl button { background: var(--bg); border: 1px solid var(--line); color: var(--fg); font: 600 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 9px 13px; border-radius: var(--radius); cursor: pointer; }
.hood-ctrl button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.hood-copy { padding: 30px 28px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.hood-copy h3 { font-size: 34px; }
.hood-copy .detail { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--bg); min-height: 132px; }
.hood-copy .detail b { display: block; font: 700 14px var(--f-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.hood-copy .detail p { font-size: 15.5px; color: var(--muted); }
.symptoms { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.symptoms li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.4; }
.symptoms li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; flex: none; background: var(--accent); transform: rotate(45deg); }
.symptoms-title { font: 600 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.diag text { font-family: var(--f-mono); }
.diag .box { fill: var(--d-fill); stroke: var(--d-line); stroke-width: 1.8; }
.diag .box-2 { fill: var(--d-fill-2); stroke: var(--d-line); stroke-width: 1.8; }
.diag .hit { cursor: pointer; }
.diag .hit:hover .box, .diag .hit:hover .box-2, .diag .hit.sel .box, .diag .hit.sel .box-2 { stroke: var(--accent); stroke-width: 2.5; }
.diag .lbl { fill: var(--fg); font-size: 12.5px; font-weight: 600; letter-spacing: .03em; }
.diag .sub { fill: var(--muted); font-size: 11px; }
.diag .pipe { fill: none; stroke: color-mix(in srgb, var(--d-line) 18%, transparent); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.diag .flow { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 12; animation: flow 1.1s linear infinite; }
.diag .flow.fast { animation-duration: .45s; }
.diag .flow.slow { animation-duration: 1.8s; }
.diag .fuel-lo { stroke: var(--fuel); opacity: .7; }
.diag .fuel-hi { stroke: var(--fuel); stroke-width: 4.5; }
.diag .metal { stroke: var(--metal) !important; }
.diag .air { stroke: var(--cool); }
.diag .gas { stroke: var(--hot); }
.diag .clean { stroke: var(--muted); }
@keyframes flow { to { stroke-dashoffset: -28; } }
.diag .fail .box, .diag .fail .box-2 { stroke: var(--hot); stroke-width: 2.5; }
.engine-svg .exh { animation: flow .5s linear infinite; }
.engine-svg .mv, .engine-svg .tag { transition: none; }
.diag .spin { transform-box: fill-box; transform-origin: center; animation: spin .9s linear infinite; }
.diag .spin.fast { animation-duration: .28s; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 960px) { .hood-panel { grid-template-columns: minmax(0, 1fr); } .hood-fig { border-right: 0; border-bottom: 1px solid var(--line); } }

/* mobile vs shop */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mode { padding: clamp(28px, 4vw, 44px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.mode + .mode { border-left: 1px solid var(--line); }
.mode--feature { background: var(--accent); color: var(--accent-ink); }
.mode--feature .muted, .mode--feature .eyebrow { color: var(--accent-ink); opacity: .8; }
.mode h3 { font-size: clamp(34px, 3.4vw, 46px); }
.mode ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mode li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.mode li::before { content: "→"; font-family: var(--f-mono); }
.mode .tag { font: 600 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.mode svg.big { width: 64px; height: 64px; }
@media (max-width: 820px) { .modes { grid-template-columns: 1fr; } .mode + .mode { border-left: 0; border-top: 1px solid var(--line); } }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 2px solid var(--fg); }
.steps li { padding: 22px 22px 0 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before { counter-increment: s; content: "0" counter(s); font: 800 54px/1 var(--f-display); color: var(--accent); }
.steps h3 { font-size: 24px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 26px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.badge { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; position: sticky; top: 110px; }
.badge-photo { aspect-ratio: 4 / 3; max-width: 100%; position: relative; background:
  repeating-linear-gradient(135deg, var(--d-fill) 0 14px, var(--d-fill-2) 14px 28px); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.badge-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge-photo svg { width: 46%; color: var(--fg); opacity: .9; }
.badge-photo .ph { position: absolute; left: 12px; bottom: 10px; font: 500 11px var(--f-mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.badge-body { padding: 22px 24px 24px; display: grid; gap: 14px; }
.badge-body .name { font: 800 44px/0.95 var(--f-display); text-transform: uppercase; }
.badge-body .role { font: 500 13px var(--f-mono); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.spec { margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); }
.spec dt, .spec dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec dt { font: 500 12px/1.9 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-right: 18px; }
.spec dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bio { display: grid; gap: 20px; min-width: 0; }
.bio .pull { font: 800 clamp(30px, 3.4vw, 44px)/1 var(--f-display); text-transform: uppercase; color: var(--fg); }
.bio .pull span { color: var(--accent); }
.bio p:not(.eyebrow):not(.pull) { color: var(--fg); opacity: .88; max-width: 64ch; }
.bio p.sign { font: 600 15px var(--f-mono); color: var(--accent); opacity: 1; }
.coach { margin-top: 18px; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); align-items: center; }
.coach svg { width: 100%; height: auto; }
.coach h3 { font-size: 30px; margin: 6px 0 10px; }
.coach p:not(.eyebrow) { font-size: 15.5px; color: var(--muted); opacity: 1; }
.coach a { color: var(--accent); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .badge { position: static; max-width: 520px; } }
@media (max-width: 560px) { .coach { grid-template-columns: 1fr; } .coach svg { max-width: 200px; } }

/* area */
.area { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.area-map { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 10px; }
.area-map svg { display: block; width: 100%; height: auto; }
.area-map .fwy { fill: none; stroke: color-mix(in srgb, var(--d-line) 30%, transparent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.area-map .fwy-l { fill: var(--muted); font: 600 10.5px var(--f-mono); }
.area-map .zone { fill: color-mix(in srgb, var(--accent) 7%, transparent); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 6; }
.area-map .city circle { fill: var(--bg); stroke: var(--fg); stroke-width: 2; }
.area-map .city text { fill: var(--fg); font: 600 12px var(--f-body); }
.area-map .city.hub circle { fill: var(--accent); stroke: var(--accent); }
.area-map .pulse { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.cities { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.cities li { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15.5px; }
@media (max-width: 900px) { .area { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .cities { grid-template-columns: 1fr 1fr; } }

/* booking */
.book { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.book-aside { display: grid; gap: 22px; position: sticky; top: 110px; }
.hours { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hours h4 { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 600 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.hours table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 9px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-family: var(--f-mono); font-size: 13.5px; }
.hours tr.closed td { color: var(--muted); }
.hours tr.today td { color: var(--accent); font-weight: 700; }
.contact-lines { display: grid; gap: 10px; }
.contact-line { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--bg); }
.contact-line:hover { border-color: var(--accent); }
.contact-line svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.contact-line span { font: 500 11.5px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; display: block; }
.contact-line b { font-size: 18px; word-break: break-word; }

@media (max-width: 900px) { .book { grid-template-columns: minmax(0, 1fr); } .book-aside { position: static; } .booker { order: -1; } }
.booker { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.bk-progress { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.bk-progress li { padding: 14px 12px; font: 600 11.5px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); display: flex; gap: 8px; align-items: center; min-width: 0; }
.bk-progress li:last-child { border-right: 0; }
.bk-progress li i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.bk-progress li.done i { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.bk-progress li.cur { color: var(--fg); box-shadow: inset 0 -3px 0 var(--accent); }
.bk-progress li.cur i { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 560px) { .bk-progress li span { display: none; } .bk-progress li { justify-content: center; } }
.bk-step { padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; }
.bk-step[hidden] { display: none !important; }
.bk-step h3 { font-size: 30px; }
.bk-q { font: 600 12.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: grid; gap: 4px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--bg); height: 100%; transition: border-color .15s; }
.choice label b { font-weight: 700; font-size: 16px; }
.choice label small { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.choice input:checked + label { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) { .choice-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font: 600 12.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select { height: 50px; }
.field input, .field select, .field textarea { width: 100%; font: 500 16px var(--f-body); color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 13px 14px; min-height: 50px; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.err input, .field.err select { border-color: var(--hot); }
.field .msg { font-size: 13px; color: var(--hot); min-height: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }
.cal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 20px; }
@media (max-width: 680px) { .cal { grid-template-columns: 1fr; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font: 700 18px var(--f-body); }
.cal-head button { width: 38px; height: 38px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; font-size: 18px; }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid .dow { font: 600 11px var(--f-mono); color: var(--muted); text-align: center; padding: 4px 0; text-transform: uppercase; }
.cal-grid button { aspect-ratio: 1; max-width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: var(--radius); font: 600 14px var(--f-body); cursor: pointer; font-variant-numeric: tabular-nums; position: relative; }
.cal-grid button:disabled { background: transparent; border-color: transparent; color: var(--muted); opacity: .45; cursor: default; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.cal-grid button.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.cal-grid button.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cal-grid button:not(:disabled):hover { border-color: var(--accent); }
.slots-title { font: 600 12.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slots button { min-height: 46px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--fg); font: 600 14.5px var(--f-mono); cursor: pointer; }
.slots button:disabled { opacity: .45; cursor: default; text-decoration: line-through; }
.slots button.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.slots-empty { font-size: 15px; color: var(--muted); padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); }
.bk-nav { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); padding-top: 20px; flex-wrap: wrap; }
.bk-summary { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.bk-summary div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.bk-summary div:last-child { border-bottom: 0; }
.bk-summary dt { color: var(--muted); font: 500 12px/1.9 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.bk-summary dd { margin: 0; font-weight: 600; text-align: right; }
.bk-done { text-align: left; display: grid; gap: 16px; }
.bk-done .check { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.bk-done .check svg { width: 28px; height: 28px; }
.demo-note { font: 500 12.5px/1.5 var(--f-mono); color: var(--muted); border-left: 3px solid var(--accent); padding: 8px 12px; background: var(--bg); }
.bk-error { color: var(--hot); font-size: 14.5px; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; font: 700 18px/1.35 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 24px/1 var(--f-mono); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* final cta + footer */
.final { background: var(--accent); color: var(--accent-ink); }
.final .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: clamp(48px, 7vw, 84px); }
.final h2 { font-size: clamp(44px, 6.4vw, 84px); max-width: 14ch; }
.final .btn--primary { background: var(--accent-ink); color: var(--accent); }
.final .btn--ghost { border-color: var(--accent-ink); color: var(--accent-ink); }
.final .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer { background: var(--bg); border-top: 1px solid var(--line); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 36px; }
.foot-grid h4 { margin: 0 0 14px; font: 600 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--fg); opacity: .85; }
.foot-grid a:hover { color: var(--accent); opacity: 1; }
.foot-brand svg { width: 84px; height: 84px; color: var(--fg); }
.foot-brand p { color: var(--muted); margin-top: 14px; max-width: 34ch; }
.foot-base { border-top: 1px solid var(--line); padding-block: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 12.5px var(--f-mono); color: var(--muted); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* mobile sticky action bar */
.actionbar { display: none; }
@media (max-width: 720px) {
  .actionbar { display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--bg); border-top: 1px solid var(--line); padding: 8px max(10px, env(safe-area-inset-left, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .actionbar a { min-height: 48px; font-size: 13px; padding: 0 8px; }
  body { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .diag .flow, .diag .spin, .area-map .pulse { animation: none; }
  .btn, .svc { transition: none; }
}
