/* HUDS-ON Industries — website working draft R07
   Tokens follow the HUDS-ON Industries design system (tokens.json v1). Charcoal is the primary theme. */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Variable-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root, [data-theme="dark"] {
  color-scheme: dark;
  --brand-copper: #bd7e4b;
  --surface: #31302f;
  --surface-raised: #3b3937;
  --surface-alt: #272625;
  --ink: #f4eee6;
  --ink-muted: #c2b8ac;
  --accent-text: #d69a66;
  --accent-mark: #bd7e4b;
  --border-hairline: #4a4744;
  --border-strong: #9a9085;
  --action-bg: #d69a66;
  --action-bg-hover: #e2ae7f;
  --action-bg-active: #c98b57;
  --on-action: #31302f;
  --focus-ring: #d69a66;
  --status-live: #8cc4a0;
  --status-dev: #d69a66;
  --placeholder-bg: #2a2928;
  --disabled-bg: #45423f;
  --disabled-ink: #9a9086;
}
[data-theme="light"] {
  --surface: #faf7f2; --surface-raised: #ffffff; --surface-alt: #f2ece3;
  --ink: #31302f; --ink-muted: #5f5850; --accent-text: #875a3c; --accent-mark: #bd7e4b;
  --border-hairline: #e3dace; --border-strong: #8a7f73;
  --action-bg: #875a3c; --action-bg-hover: #6e4930; --action-bg-active: #5a3b27; --on-action: #ffffff;
  --focus-ring: #875a3c; --status-live: #2f6b47; --status-dev: #875a3c; --placeholder-bg: #efe8de;
}

:root {
  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-pill: 999px;
  --container-max: 1200px; --measure: 68ch;
  --gutter: 16px;
  --header-h: 64px;
  --section-y: var(--space-8);
  /* Logo width = the PNG canvas, which includes built-in margin. 163px canvas ≈ 150px mark; 130px ≈ 120px mark (minimum). */
  --logo-w: 130px;
  --focus-width: 3px; --focus-offset: 2px;
  --dur-fast: 120ms; --dur-base: 200ms; --ease: cubic-bezier(0.2, 0, 0, 1);
}
@media (min-width: 768px)  { :root { --gutter: 24px; --header-h: 80px; --logo-w: 163px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --section-y: var(--space-9); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 17px/28px var(--font-sans);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--accent-text); }

.container { width: 100%; max-width: calc(var(--container-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Focus */
:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); border-radius: var(--radius-sm); }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--action-bg); color: var(--on-action); font-weight: 600; text-decoration: none;
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-md);
}
.skip-link:focus { top: var(--space-2); }

/* Type */
h1 { font-weight: 700; font-size: 34px; line-height: 42px; letter-spacing: -0.01em; }
h2 { font-weight: 700; font-size: 27px; line-height: 34px; letter-spacing: -0.005em; }
h3 { font-weight: 600; font-size: 21px; line-height: 28px; }
.lede { font-size: 18px; line-height: 29px; max-width: var(--measure); }
p { max-width: var(--measure); }
.t-mono { font: 500 13px/18px var(--font-mono); letter-spacing: 0.02em; }
.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2);
  font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text); max-width: none;
}
.eyebrow .index { letter-spacing: 0.02em; }
.eyebrow .rule { display: inline-block; width: 32px; height: 2px; background: var(--accent-mark); }
@media (min-width: 768px) {
  h1 { font-size: 44px; line-height: 52px; letter-spacing: -0.015em; }
  h2 { font-size: 34px; line-height: 42px; letter-spacing: -0.01em; }
  .lede { font-size: 20px; line-height: 32px; }
}
@media (min-width: 1024px) { h1 { font-size: 52px; line-height: 60px; } }

/* Draft bar */
.draft-bar { background: var(--surface-alt); border-bottom: 1px dashed var(--border-strong); color: var(--ink-muted); padding: var(--space-2) var(--gutter); text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border-hairline); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-h); }
.logo-link { display: block; flex: none; border-radius: var(--radius-sm); }
.logo { width: var(--logo-w); height: auto; aspect-ratio: 5 / 2; }
.site-nav { display: none; margin-left: auto; }
.site-nav ul { display: flex; gap: var(--space-6); }
.site-nav a { font: 500 15px/20px var(--font-sans); color: var(--ink); text-decoration: none; padding: var(--space-2) 0; background: linear-gradient(var(--accent-mark), var(--accent-mark)) left bottom / 0 2px no-repeat; transition: background-size var(--dur-base) var(--ease); }
.site-nav a:hover { background-size: 100% 2px; }
@media (min-width: 1024px) { .site-nav { display: block; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-md); border: 2px solid transparent;
  font: 600 16px/20px var(--font-sans); text-decoration: none; text-align: center;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--action-bg); color: var(--on-action); border-color: var(--action-bg); }
.btn--primary:hover { background: var(--action-bg-hover); border-color: var(--action-bg-hover); }
.btn--primary:active { background: var(--action-bg-active); border-color: var(--action-bg-active); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn--header { min-height: 40px; padding: var(--space-2) var(--space-4); flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); margin-top: var(--space-6); }

/* Sections */
.section { padding-block: var(--section-y); scroll-margin-top: var(--header-h); }
.section--alt { background: var(--surface-alt); }
.section-intro > * + * { margin-top: var(--space-5); }
.section-intro { margin-bottom: var(--space-7); }
section[id] { scroll-margin-top: calc(var(--header-h) + 1px); }

/* Hero */
.hero { padding-top: var(--space-8); }
@media (min-width: 1024px) { .hero { padding-top: var(--space-10); } }
.hero-grid { display: grid; gap: var(--space-7); }
.hero-copy > * + * { margin-top: var(--space-5); }
.hero-copy .btn-row { margin-top: var(--space-6); }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; }
  .hero-copy { grid-column: 1 / 8; }
  .glance { grid-column: 9 / 13; }
}

.panel { background: var(--surface-raised); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); padding: var(--space-5); }
@media (min-width: 768px) { .panel { padding: var(--space-6); } }
.panel-title { font-weight: 500; color: var(--ink-muted); text-transform: none; padding-bottom: var(--space-3); border-bottom: 1px solid var(--border-hairline); margin-bottom: var(--space-4); }
.glance dl > div + div { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border-hairline); }
.glance dt { color: var(--ink-muted); margin-bottom: var(--space-1); }
.glance dd { font-size: 15px; line-height: 24px; }
.glance dd .tag { margin: 0 var(--space-2) var(--space-1) 0; }

/* Tags */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px var(--space-2);
  font: 500 13px/18px var(--font-mono); letter-spacing: 0.02em; border-radius: var(--radius-sm);
  border: 1px solid currentColor; white-space: nowrap; vertical-align: middle;
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); background: currentColor; }
.tag--live { color: var(--status-live); border-style: solid; }
.tag--dev  { color: var(--status-dev); border-style: dashed; }
.tag--dev::before { background: transparent; border: 1.5px solid currentColor; }
.tag--inline { margin-left: var(--space-1); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); max-width: none; }

/* Cards */
.cards { display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; gap: var(--gutter); } }
.card { background: var(--surface-raised); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
@media (min-width: 768px) { .card-body { padding: var(--space-6); } }
.card h3 { margin-top: var(--space-1); }


.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-thickness var(--dur-base) var(--ease); }
.text-link:hover { text-decoration-thickness: 3px; }

.scope-note { margin-top: var(--space-6); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); font-size: 15px; line-height: 24px; }
.scope-note p { max-width: none; }
.scope-label { color: var(--ink-muted); text-transform: uppercase; margin-bottom: var(--space-1); }

/* Experience */
.experience-grid { display: grid; gap: var(--space-7); }
.experience-grid .section-intro { margin-bottom: 0; }
.principles { display: grid; gap: var(--space-5); }
.principles li { border-top: 2px solid var(--accent-mark); padding-top: var(--space-4); }
.principles li p { margin-top: var(--space-2); color: var(--ink-muted); }
@media (min-width: 1024px) {
  .experience-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; }
  .experience-grid .section-intro { grid-column: 1 / 6; }
  .principles { grid-column: 7 / 13; }
}

/* Direction */
.columns { display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .columns { grid-template-columns: 1fr 1fr; gap: var(--gutter); } }
.column { background: var(--surface-raised); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); padding: var(--space-5); }
@media (min-width: 768px) { .column { padding: var(--space-6); } }
.dot-list { margin-top: var(--space-4); display: grid; gap: var(--space-3); }
.dot-list li { position: relative; padding-left: var(--space-5); }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--accent-mark); }

/* Contact */
.section--contact { background: var(--surface-raised); border-top: 1px solid var(--border-hairline); }
.section--contact .section-intro { margin-bottom: var(--space-6); }
.section--contact h2 { max-width: 24ch; }
.email { font-size: 24px; line-height: 32px; font-weight: 600; margin-bottom: var(--space-5); overflow-wrap: anywhere; }
address { font-style: normal; color: var(--ink-muted); }
address strong { color: var(--ink); font-weight: 600; }

/* Footer */
.site-footer { background: var(--surface-alt); padding-block: var(--space-7); font-size: 15px; line-height: 24px; }
.site-footer p { max-width: none; }
.draft-note { margin-top: var(--space-3); color: var(--ink-muted); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* R02 additions */
.subhead { font-weight: 600; font-size: 21px; line-height: 28px; color: var(--accent-text); max-width: var(--measure); }
@media (min-width: 768px) { .subhead { font-size: 24px; line-height: 32px; } }
.hero-copy .subhead { margin-top: var(--space-4); }
.hero-copy .subhead + .lede { margin-top: var(--space-4); }
.section-intro > p + p:not(.lede) { margin-top: var(--space-4); }

.cards--three { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 1024px) { .cards--three { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }
@media (min-width: 768px) and (max-width: 1023px) {
  .cards--three .card { flex-direction: row; }
}
.cards--three .card-body { padding: var(--space-5); }
.cards--three .ph-title { font-size: 16px; }

.product { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); background: var(--surface-raised); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); padding: var(--space-5); }
@media (min-width: 768px) { .product { padding: var(--space-6); } }
.glance dd a { color: var(--accent-text); overflow-wrap: anywhere; }



/* Enquiry form (preview only) */
.enquiry { margin-top: var(--space-7); max-width: 720px; }
.enquiry fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field label { font-size: 15px; line-height: 24px; font-weight: 500; color: var(--ink); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4);
  background: var(--surface); color: var(--ink); font: 400 17px/28px var(--font-sans);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
}
.field textarea { resize: vertical; min-height: 144px; }
.field input:focus-visible, .field textarea:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.enquiry fieldset:disabled .field input, .enquiry fieldset:disabled .field textarea { opacity: 1; }
@media (min-width: 768px) {
  .enquiry fieldset { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); row-gap: var(--space-5); }
  .field--wide { grid-column: 1 / -1; }
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.form-note { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.btn:disabled, .btn[disabled] { background: var(--disabled-bg); border-color: var(--disabled-bg); color: var(--disabled-ink); cursor: not-allowed; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Real project imagery; captions distinguish design views from photographs. */
figure { margin: 0; min-width: 0; }
figcaption { color: var(--ink-muted); font-size: 13px; line-height: 20px; padding: 12px 16px; }
.hero-visual { border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); overflow: hidden; background: #242b30; }
.hero-visual img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.hero-visual figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero-visual figcaption span { color: var(--accent-text); }
.glance--strip { margin-top: var(--space-6); }
.glance--strip .panel-title { font-size: 13px; }
.card-figure { border-bottom: 1px solid var(--border-hairline); }
.card-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }



.product-copy { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }


.workshop-visual, .design-visual { border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); overflow: hidden; }
.design-visual img { object-fit: cover; aspect-ratio: 4 / 3; }
.design-visual figcaption span { color: var(--accent-text); margin-left: 8px; }
.bench-row { display: grid; gap: var(--space-5); }
.bench-row figure { display: flex; flex-direction: column; }
.bench-row figcaption { flex: 1; }
.workshop-visual img, .design-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
@media (min-width: 768px) {
 .glance--strip dl { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: var(--space-5); }
 .glance--strip dl > div + div { margin: 0; padding: 0 0 0 var(--space-5); border-top: 0; border-left: 1px solid var(--border-hairline); }
 
 .bench-row { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: stretch; }
}
@media (min-width: 1024px) {
 .hero-visual { grid-column: 8 / 13; }
 .hero-grid { align-items: center; }
 .hero-copy { grid-column: 1 / 8; }
}

@media (min-width: 768px) and (max-width: 1023px) {
 .card-photo { aspect-ratio: 21 / 9; }
 .hero-visual { max-width: 420px; }
}

/* Design studies: CAD and analysis views, distinct from photographs */
.study { border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-raised); }
.study img { width: 100%; display: block; height: auto; }
.study--layout { background: #2d3440; }
.study-pair { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
.study--layout + .study-pair { margin-top: var(--space-5); }
.study-tag { display: inline-block; margin-right: 8px; color: var(--accent-text); font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.study-scroll { overflow-x: auto; }
.study-scroll--plate img { min-width: 760px; background: #fff; }
.study-scroll--layout img { min-width: 720px; }
.study-hint { margin: 0; padding: 8px 16px 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
@media (min-width: 768px) { .study-hint { display: none; } }
.study-scroll:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
@media (min-width: 768px) {
  .study-scroll--plate img, .study-scroll--layout img { min-width: 0; }
}


/* Controls card: design rendering */
.card-figure--software { background: #141a1e; }
.software-composite { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.sc-screen { width: 100%; display: block; }
.sc-node { position: absolute; right: 12px; bottom: 12px; width: 62%; border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: 0 6px 18px rgba(0,0,0,.45); }

.card-figure--render { background: #2d3444; }
.card-photo--render { aspect-ratio: 4 / 5; object-fit: contain; background: #2d3444; }

/* MotionFX section */
.mfx-grid { display: grid; gap: var(--space-5); }
.mfx-fig { border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-raised); }
.mfx-fig img { width: 100%; display: block; height: auto; }
.mfx-fig--software { background: #141a1e; }
.mfx-fig--node img, .mfx-fig--box img { background: #2d3444; aspect-ratio: 3 / 2; object-fit: contain; }
@media (min-width: 768px) {
  .mfx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (min-width: 1024px) {
  .mfx-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .mfx-fig--node, .mfx-fig--box { grid-column: span 4; }
  .mfx-fig--software { grid-column: 3 / 11; }
}

/* Installation, programming & show operation (R09) */
.section--ops { padding-block: var(--space-8); border-top: 1px solid var(--border-hairline); }
.section--ops .section-intro { margin-bottom: var(--space-6); }
.section--ops .lede { max-width: 46rem; }
.ops-list { display: grid; gap: var(--space-5); margin: 0; }
.ops-list > div { border-top: 1px solid var(--accent-mark); padding-top: var(--space-4); }
.ops-list dt { font-weight: 600; color: var(--ink); margin: 0 0 var(--space-2); }
.ops-list dd { margin: 0; color: var(--ink-muted); }
@media (min-width: 768px) { .ops-list { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }

/* R09: portrait photos keep their framing in the tablet row layout */
@media (min-width: 768px) and (max-width: 1023px) {
  .cards--three .card-figure { flex: 0 0 46%; }
  .cards--three .card-photo { aspect-ratio: 4 / 5; }
}

/* R09: installation photo pair, shown at natural proportions */
.ops-photos { display: grid; gap: var(--space-5); margin-top: var(--space-7); }
.ops-photo { margin: 0; background: var(--surface-raised); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); overflow: hidden; }
.ops-photo img { display: block; width: 100%; height: auto; }
.ops-photo figcaption { padding: var(--space-3) var(--space-4); font-size: 14px; color: var(--ink-muted); border-top: 1px solid var(--border-hairline); }
@media (min-width: 768px) { .ops-photos { grid-template-columns: 10fr 13fr; gap: var(--gutter); align-items: start; } }

.card-figure figcaption span { color: var(--accent-text); margin-left: 8px; }

/* R09: section menu below 1024px (desktop nav is unchanged). Without JS the links show as a plain row. */
.menu-btn { display: none; }
.mobile-nav { display: none; }
@media (max-width: 1023.98px) {
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    min-height: 44px; min-width: 44px; padding: var(--space-2) var(--space-4);
    background: transparent; color: var(--ink); border: 2px solid var(--border-strong); border-radius: var(--radius-md);
    font: 600 15px/20px var(--font-sans); cursor: pointer;
  }
  .menu-btn[hidden] { display: none; }
  .menu-btn:hover { border-color: var(--accent-text); color: var(--accent-text); }
  .menu-btn[aria-expanded="true"] { border-color: var(--accent-text); color: var(--accent-text); }
  .btn--header { min-height: 44px; }
  .mobile-nav { display: block; flex: 1 0 100%; order: 10; border-top: 1px solid var(--border-hairline); }
  .mobile-nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); margin: 0; padding: 0; list-style: none; }
  .mobile-nav a {
    display: flex; align-items: center; min-height: 44px; padding: var(--space-2) 0;
    color: var(--ink); font: 500 16px/20px var(--font-sans); text-decoration: none;
  }
  .mobile-nav a:hover { color: var(--accent-text); }
  .mobile-nav[hidden] { display: none; }
  /* JS present: the list becomes a disclosure panel under the sticky header */
  .js .mobile-nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
    background: var(--surface); border-top: 0; border-bottom: 1px solid var(--border-hairline);
    box-shadow: 0 12px 24px rgba(0,0,0,.35);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .mobile-nav ul { display: block; padding: var(--space-2) var(--gutter) var(--space-4); max-width: 1200px; margin-inline: auto; }
  .js .mobile-nav li + li { border-top: 1px solid var(--border-hairline); }
  .js .mobile-nav a { min-height: 48px; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) section[id] { scroll-margin-top: var(--space-4); }
}
@media (max-width: 400px) {
  .header-inner { gap: var(--space-2); }
  .menu-btn { padding: var(--space-2) var(--space-3); font-size: 14px; }
  .btn--header { padding: var(--space-2) var(--space-3); font-size: 14px; }
}
@media (min-width: 1024px) { .menu-btn, .mobile-nav { display: none !important; } }

@media (max-width: 340px) {
  .header-inner { gap: 6px; }
  .menu-btn { padding: var(--space-2) 8px; font-size: 13px; }
  .btn--header { padding: var(--space-2) 8px; font-size: 13px; }
}
