/* HH Shirts - "Collar & Cuff" (BT-036) Swiss-grid theme.
   Rules from the lookbook: 0px radius, 1px borders, no drop shadows, flat colour fields on a grid,
   one dominant primary field per view, instant 120ms state changes, light + dark. */

/* ---------- Fonts (self-hosted, OFL; no third-party requests) ---------- */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #fbfcfd;
  --surface: #ffffff;
  --ink: #0c0d0f;
  --muted: #4f5560;        /* 7.4:1 on --bg */
  --primary: #0b3d91;
  --on-primary: #ffffff;
  --accent: #ffcc00;
  --on-accent: #0c0d0f;
  --p-soft: #deeaff;
  --a-soft: #f9e9bc;
  --line: #cfd5de;
  --line-strong: #0c0d0f;
  --grid: rgba(12, 13, 15, 0.13);
  --focus: #0b3d91;
  --danger: #b00020;       /* 6.9:1 on --surface */

  --font-display: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 0;
  --t: 120ms;
  --header-h: 72px;
  --gutter: 24px;
  --max: 1280px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0d0f; --surface: #151618; --ink: #f4f5f6; --muted: #a9aeb8;
  --primary: #679dfa; --on-primary: #0c0d0f; --accent: #ffcc00; --on-accent: #0c0d0f;
  --p-soft: #1c2d4c; --a-soft: #3a2c00; --line: #2b2e35; --line-strong: #f4f5f6;
  --grid: rgba(244, 245, 246, 0.14); --focus: #ffcc00; --danger: #ff8a98;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c0d0f; --surface: #151618; --ink: #f4f5f6; --muted: #a9aeb8;
    --primary: #679dfa; --on-primary: #0c0d0f; --accent: #ffcc00; --on-accent: #0c0d0f;
    --p-soft: #1c2d4c; --a-soft: #3a2c00; --line: #2b2e35; --line-strong: #f4f5f6;
    --grid: rgba(244, 245, 246, 0.14); --focus: #ffcc00; --danger: #ff8a98;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -64px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 16px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 8px; }

/* 12-column grid */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; }

.eyebrow { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 1rem; font-weight: 500; }
.eyebrow .idx { color: var(--primary); margin-right: 0.5em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.35rem); color: var(--muted); max-width: 40em; }
.note { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); margin-top: 24px; }

/* ---------- Buttons (square, 1px, instant) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid var(--primary); background: transparent; color: var(--primary); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: var(--radius); transition: background-color var(--t) linear, color var(--t) linear, border-color var(--t) linear; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 1.0625rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; border-radius: var(--radius); transition: background-color var(--t) linear, color var(--t) linear; }
.icon-btn:hover { background: var(--ink); color: var(--bg); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.link:hover { color: var(--ink); }

/* theme toggle icons */
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* segmented language control */
.seg { display: inline-flex; border: 1px solid var(--line-strong); }
.seg-btn { min-width: 48px; min-height: 46px; background: transparent; border: 0; color: var(--ink); font: 600 0.875rem var(--font-mono); letter-spacing: 0.08em; cursor: pointer; transition: background-color var(--t) linear, color var(--t) linear; }
.seg-btn + .seg-btn { border-left: 1px solid var(--line-strong); }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg-btn:not([aria-pressed="true"]):hover { background: var(--p-soft); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--primary); color: var(--on-primary); font-weight: 800; letter-spacing: -0.04em; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav-list { display: flex; gap: 4px; }
.nav-list a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; transition: border-color var(--t) linear; }
.nav-list a:hover { border-bottom-color: var(--ink); }
.nav-list a[aria-current="true"] { border-bottom-color: var(--primary); color: var(--primary); }
.nav-tools { display: flex; gap: 8px; }
.menu-btn { display: none; }

/* ---------- Colour fields (flat colour + grid; the lookbook's imagery rule) ---------- */
.field { position: relative; overflow: hidden; background-color: var(--p-soft); border: 1px solid var(--line);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 12.5% 16.6667%; }
.field-accent { background-color: var(--a-soft); }
.field-primary { background-color: var(--p-soft); }
.field-alt { background-color: var(--a-soft); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.hero-copy { grid-column: 1 / span 7; align-self: center; }
.hero-visual { grid-column: 8 / span 5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 6px 12px; border: 1px solid var(--line-strong); }
.hero-visual .field { aspect-ratio: 5 / 6; }
.hero-shirt { position: absolute; inset: 8% 10% 6%; }
.hero-shirt svg, .anatomy-shirt svg, .card-shirt svg, .pd-field svg { width: 100%; height: 100%; }
.fig { position: absolute; left: 16px; bottom: 16px; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; background: var(--ink); color: var(--bg); padding: 5px 10px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--surface); }
.section-head { max-width: 52rem; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 0.4em; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 500 0.875rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; transition: background-color var(--t) linear, color var(--t) linear; }
.filter:hover { background: var(--p-soft); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filter .count { opacity: 0.7; margin-left: 6px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.card[hidden] { display: none; }
.card-shirt { aspect-ratio: 1 / 1; position: relative; }
.card-shirt .field { position: absolute; inset: 0; border: 0; border-bottom: 1px solid var(--line); }
.card-media { position: relative; }
.card-shirt-inner { position: absolute; inset: 9%; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 20px; flex: 1; }
.card-cat { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin: 0; }
.card-title { margin: 4px 0 6px; font-size: 1.3rem; }
.card-sum { color: var(--muted); font-size: 0.975rem; margin: 0 0 12px; }
.card-open { margin-top: auto; align-self: flex-start; }
.card-open::after { content: ""; position: absolute; inset: 0; } /* whole card is the hit target */
.card { position: relative; }
.card:hover { border-color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--font-mono); font-size: 0.75rem; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Capabilities / anatomy ---------- */
.anatomy { margin-bottom: 56px; align-items: center; }
.anatomy-stage { grid-column: 1 / span 6; }
.anatomy-panel { grid-column: 8 / span 5; }
.anatomy-panel h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.anatomy .field { aspect-ratio: 1 / 1; max-width: 560px; }
.anatomy-shirt { position: absolute; inset: 6% 12%; }
.hotspot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); border: 1px solid var(--ink); font: 700 0.9rem var(--font-mono); cursor: pointer; left: var(--x); top: var(--y); transition: background-color var(--t) linear, color var(--t) linear; }
.hotspot:hover, .hotspot[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.hotspot::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--bg); font: 500 0.75rem var(--font-mono); padding: 3px 8px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; pointer-events: none; }
.hotspot:hover::after, .hotspot:focus-visible::after { opacity: 1; }
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.cap { padding: 28px 24px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cap .num { display: block; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--primary); margin-bottom: 20px; }
.cap p { color: var(--muted); margin: 0; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); counter-reset: s; position: relative; }
.step { position: relative; padding-top: 72px; }
.step-n { position: absolute; top: 0; left: 0; width: 48px; height: 48px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font: 700 1.1rem var(--font-mono); z-index: 1; }
.step:not(:last-child)::before { content: ""; position: absolute; top: 24px; left: 48px; right: calc(var(--gutter) * -1); height: 1px; background: var(--line-strong); }
.step p { color: var(--muted); margin: 0; }
.step:last-child .step-n { background: var(--accent); color: var(--on-accent); }

/* ---------- FAQ ---------- */
.faq-head { grid-column: 1 / span 4; margin-bottom: 0; }
.faq-list { grid-column: 6 / span 7; border-top: 1px solid var(--line-strong); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 56px 22px 0; font-weight: 600; font-size: 1.15rem; position: relative; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 500 1.6rem var(--font-mono); color: var(--primary); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); padding: 0 56px 22px 0; margin: 0; }
summary:hover { color: var(--primary); }

.field-group { margin-bottom: 20px; min-width: 0; }
label, legend { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; padding: 0; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius); transition: border-color var(--t) linear, background-color var(--t) linear; }
textarea { resize: vertical; min-height: 140px; }
input:hover, select:hover, textarea:hover { background: var(--p-soft); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; background: var(--surface); }
[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.hint { font-size: 0.875rem; color: var(--muted); margin: 6px 0 0; }
.err { font-size: 0.9rem; color: var(--danger); font-weight: 600; margin: 6px 0 0; }
.err::before { content: "! "; font-family: var(--font-mono); } /* not colour alone */
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; margin: 0; font-weight: 500; }
.radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 0.875rem; transition: background-color var(--t) linear, color var(--t) linear; }
.radio input:checked + span { background: var(--ink); color: var(--bg); }
.radio input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.radio:hover span { background: var(--p-soft); }
.radio input:checked:hover + span { background: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.status.is-error { color: var(--danger); }
.form-summary { border: 2px solid var(--danger); padding: 14px 18px; margin-bottom: 20px; }
.form-summary ul { margin: 8px 0 0; padding-left: 1.1em; list-style: disc; }
.form-summary a { color: var(--danger); font-weight: 600; }
.success { border: 1px solid var(--line-strong); background: var(--a-soft); padding: 32px; }
.success h3 { font-size: 1.6rem; }
.success:focus { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Floating "Contact us" button + fold-out quote form ---------- */
:root { --fab-h: 56px; --sheet-w: 400px; --sp: 24px; --sp-b: 24px; }
.fab { position: fixed; z-index: 60; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; height: var(--fab-h); padding: 0 24px;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--ink); font: 700 1.0625rem var(--font-display); cursor: pointer; border-radius: var(--radius);
  transition: background-color var(--t) linear, color var(--t) linear; }
.fab:hover { background: var(--ink); color: var(--bg); }
.fab[aria-expanded="true"] { visibility: hidden; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(12, 13, 15, 0.6); }
.sheet { position: fixed; z-index: 80; right: 24px; bottom: 24px; width: var(--sheet-w); max-height: calc(100dvh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); padding: var(--sp) var(--sp) var(--sp-b);
  transform-origin: bottom right; transition: transform 180ms ease, opacity 140ms linear, visibility 0s linear 180ms; }
.sheet:not(.is-open) { visibility: hidden; opacity: 0; transform: translateY(16px) scale(0.96); pointer-events: none; }
.sheet.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sheet-head h2 { font-size: 1.6rem; margin: 0 0 4px; }
#quote-head:focus { outline: none; }
.sheet-sub { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.btn-block { width: 100%; }
.privacy-line { font-size: 0.875rem; color: var(--muted); margin: 0 0 10px; line-height: 1.4; }
.privacy-line .link { font-size: inherit; min-height: 0; margin-left: 4px; }
.about { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--p-soft); border: 1px solid var(--line); padding: 6px 6px 6px 12px; margin-bottom: 16px; font-size: 0.9rem; font-weight: 600; }
.about[hidden] { display: none; }
.about-x { width: 36px; height: 36px; border: 0; background: transparent; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.about-x:hover { background: var(--ink); color: var(--bg); }
.demo-note { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.sheet .field-group { margin-bottom: 12px; }
.sheet label, .sheet legend { margin-bottom: 4px; }
.sheet input[type="text"], .sheet input[type="email"], .sheet input[type="tel"], .sheet select { min-height: 46px; }
.sheet .radio span { min-height: 42px; padding: 0 14px; }
.sheet .radios { gap: 6px; }
.submit-row { position: sticky; bottom: 0; margin: 4px calc(var(--sp) * -1) calc(var(--sp-b) * -1); padding: 12px var(--sp) var(--sp-b); background: var(--surface); border-top: 1px solid var(--line); }
.submit-row .status { margin: 8px 0 0; min-height: 0; }
.sheet-head { margin-bottom: 16px; }
.sheet .success { padding: 20px; }
.sheet .success h3 { font-size: 1.4rem; }
.pref[hidden] { display: none; }

/* Mobile: the button becomes a full-width bar and the form a bottom sheet (thumb-friendly) */
@media (max-width: 860px) {
  .fab { left: 0; right: 0; bottom: 0; justify-content: center; height: calc(var(--fab-h) + env(safe-area-inset-bottom, 0px)); padding: 0 16px env(safe-area-inset-bottom, 0px); border-width: 1px 0 0; }
  :root { --sp: 16px; --sp-b: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .sheet { left: 0; right: 0; bottom: 0; width: auto; max-height: 92dvh; border-width: 1px 0 0; padding-top: 20px; transform-origin: bottom center; }
  .sheet:not(.is-open) { transform: translateY(100%); }
  .site-footer { padding-bottom: calc(var(--fab-h) + 48px); }
}

/* ---------- Cookie banner (see assets/js/CONSENT.md) ---------- */
.consent { position: fixed; z-index: 65; left: 24px; bottom: 24px; width: min(440px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); overflow-y: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); padding: 20px; }
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.15rem; margin: 0 0 6px; }
.consent h2:focus { outline: none; }
.consent p { font-size: 0.925rem; color: var(--muted); margin: 0 0 14px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-actions .btn { min-height: 46px; padding: 0 12px; width: 100%; }
.consent .link { margin-top: 8px; font-size: 0.925rem; }
.consent .btn-block { margin-top: 8px; }
.consent-prefs { margin: 0 0 14px; border-top: 1px solid var(--line); }
.consent-prefs[hidden] { display: none; }
.consent-cat { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.consent-cat input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.consent-cat label { margin: 0 0 2px; }
.consent-cat p { margin: 0; font-size: 0.875rem; }
@media (max-width: 860px) {
  .consent { left: 0; right: 0; width: auto; bottom: calc(var(--fab-h) + env(safe-area-inset-bottom, 0px)); max-height: 70dvh; border-width: 1px 0; padding: 16px; }
}

/* ---------- Dialogs ---------- */
dialog { padding: 0; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border-radius: var(--radius); }
dialog::backdrop { background: rgba(12, 13, 15, 0.72); }
.dialog-inner { padding: clamp(20px, 3vw, 40px); position: relative; }
.dialog-inner.narrow { max-width: 40rem; }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--surface); }
.pd-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; }
.pd-field { aspect-ratio: 1 / 1; }
.pd-field .card-shirt-inner { inset: 9%; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 20px 0; border-top: 1px solid var(--line); padding-top: 16px; }
.spec dt { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-top: 3px; }
.spec dd { margin: 0; }
body.no-scroll { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-strong); padding: 32px 0 40px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: baseline; justify-content: space-between; }
.brand-line { margin: 0 0 4px; }
.footer-row p { margin-bottom: 0; }
.footer-row .link { min-height: 0; }
.noscript { padding: 16px var(--gutter); background: var(--accent); color: var(--on-accent); margin: 0; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-copy { grid-column: 1 / -1; }
  .hero-visual { grid-column: 1 / -1; max-width: 480px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anatomy-stage, .anatomy-panel { grid-column: 1 / -1; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 0 0 0 72px; min-height: 48px; }
  .step:not(:last-child)::before { top: 48px; left: 24px; right: auto; width: 1px; height: calc(100% + 28px - 48px); bottom: auto; }
  .faq-head, .faq-list { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; background: var(--bg); border-bottom: 1px solid var(--line-strong); padding: 8px var(--gutter) 20px; display: none; }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-tools { justify-content: space-between; padding-top: 8px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .cards, .caps, .pd-grid { grid-template-columns: 1fr; }
  .brand-name { display: none; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
