/* Hallmark · v2.0.0 · theme: custom (by request: README §三 "Architectural Steel & Warm Gypsum", tokens fixed by the brief, Noto Sans TC 900 heads) · genre: editorial · job: book a free on-site measure or a material quote · shape: one-page trade sheet, the contractor's own catalogue read top to bottom · hero: split, heavy two-line head + worker drawing left, real ceiling site photo right, on a 60 cm ceiling grid · nav: sticky white bar, wordmark + seven anchors + two call buttons · footer: iron mast under a copper runner, links over the Xinzhuang address · signature: the structure cut-away and material list in the estimator */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: R, a long single page; held by alternating gypsum, steel and iron grounds and by the company's own photos and drawings instead of more copy */
/* Hallmark · waive 80 · original worker and steel-frame SVG drawings are a written requirement of README §三.3 for this contractor site */
/* Hallmark · waive 7b · --surface-elevated #ffffff is the client's own form-panel token in README §三.1, kept exactly */
/* Hallmark · waive 47c · the 60 cm grid is the ceiling the company installs, drawn once per light section as its material */

:root {
  /* README §三.1 tokens (exact) */
  --bg: #f4f5f6;
  --surface: #e8ecef;
  --surface-elevated: #ffffff;
  --ink: #18222c;
  --ink-muted: #4a5868;
  --accent: #1e4d7b;
  --accent-hover: #15385b;
  --accent-soft: #b86b28;
  --line: #cfd7df;

  /* tints and shades of the above (illustration fills, dark grounds, states) */
  --steel-pale: #c9d6e3;
  --copper-pale: #f3e3d3;
  --ink-panel: #212d39;
  --line-dark: #3a4b5c;
  --on-dark: #f4f5f6;
  --on-dark-muted: #b6c2ce;
  --accent-on-dark: #9cc0e4;
  --field-edge: #6b7a8a;
  --error: #a3282b;
  --error-soft: #f6e5e5;
  --accent-wash: #e3ebf3;
  --scrim: color-mix(in srgb, var(--ink) 82%, transparent);

  /* type */
  --font-sans: "Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
  --fs-display: clamp(2.5rem, 1.2rem + 4.2vw, 4.5rem);
  --fs-title: clamp(2rem, 1.1rem + 2.8vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 1.1rem + 2vw, 2.75rem);
  --fs-h3: 1.375rem;
  --fs-h4: 1.125rem;
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* space and shape */
  --gutter: clamp(20px, 4vw, 48px);
  --container: 1280px;
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 76px;
  --r-control: 12px;
  --r-panel: 16px;
  --r-tag: 8px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html {
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  caret-color: var(--accent);
}
::selection { background: var(--steel-pale); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
svg.illo { display: block; width: 100%; height: auto; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}
h1, h2 { font-weight: 900; }
h3, h4 { font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
dl, dd, figure, fieldset { margin: 0; }
address { font-style: normal; }
a { color: var(--accent); text-decoration-thickness: from-font; text-underline-offset: 0.22em; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }
.price-num, .phone-num, .rating-num, .num, .calc-total-value, .chip-count { font-variant-numeric: tabular-nums; }

.wrap { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.visually-hidden, .hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: -80px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--r-control);
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { inset-block-start: 12px; color: var(--on-dark); }

/* ceiling-grid motif (decorative SVG pattern behind light sections) */
.has-grid { position: relative; isolation: isolate; }
.grid-motif { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; color: var(--line); pointer-events: none; }
.grid-motif path { fill: none; stroke: currentColor; }
.grid-motif .gm-cross { stroke-width: 1.25; }
.grid-motif .gm-main { stroke-width: 3; }
.calc .grid-motif { color: var(--steel-pale); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), transform 0.12s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.125rem; }
.btn-primary { background: var(--accent); color: var(--surface-elevated); }
.btn-primary:hover { background: var(--accent-hover); color: var(--surface-elevated); }
.btn-primary:active { background: var(--ink); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent-wash); color: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--field-edge); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-quiet { background: var(--surface); color: var(--ink); }
.btn-quiet:hover { background: var(--line); color: var(--ink); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--surface-elevated); color: var(--accent); }
.btn-ghost-dark { background: transparent; color: var(--on-dark); border-color: var(--on-dark-muted); }
.btn-ghost-dark:hover { background: var(--ink-panel); color: var(--on-dark); border-color: var(--on-dark); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-elevated);
  border-bottom: 3px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); position: relative; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--r-control);
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; width: 40px; height: 40px; }
.brand-mark path { fill: none; stroke-linecap: square; }
.mk-bg { fill: var(--ink); }
.mk-grid { stroke: var(--on-dark-muted); stroke-width: 1.75; }
.mk-main { stroke: var(--steel-pale); stroke-width: 3.5; }
.mk-rod { stroke: var(--accent-soft); stroke-width: 2.5; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 900; font-size: 1.375rem; letter-spacing: 0.04em; }
.brand-en { font-size: var(--fs-small); font-weight: 500; color: var(--ink-muted); }
.site-menu { display: flex; align-items: center; gap: 16px; margin-inline-start: auto; }
.nav-list { display: flex; list-style: none; gap: 2px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 11px;
  border-radius: var(--r-control);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease-out);
}
.nav-link:hover { background: var(--surface); color: var(--ink); }
.header-actions { display: flex; gap: 8px; }
.menu-toggle { display: none; }
.menu-icon { position: relative; width: 18px; height: 12px; border-block: 2px solid currentColor; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; inset-inline: 0; top: 3px; height: 2px; background: currentColor; }
.menu-icon::after { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon { border-color: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { opacity: 1; transform: rotate(-45deg); }

@media (max-width: 1279px) {
  .js .menu-toggle { display: inline-flex; margin-inline-start: auto; padding: 0 16px; }
  .js .site-menu {
    display: none;
    position: absolute;
    inset-inline: calc(-1 * var(--gutter));
    top: calc(100% + 3px);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--surface-elevated);
    border-bottom: 3px solid var(--line);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-menu.is-open { display: flex; }
  .js .nav-list { flex-direction: column; gap: 2px; }
  .js .nav-link { min-height: 48px; font-size: var(--fs-body); }
  .js .header-actions { flex-wrap: wrap; }
  .js .header-actions .btn { flex: 1 1 200px; }
  .no-js .header-bar { flex-wrap: wrap; padding-block: 8px; }
  .no-js .site-menu { flex-wrap: wrap; margin-inline-start: 0; width: 100%; }
  .no-js .nav-list { flex-wrap: wrap; }
}

/* ---------- section heads ---------- */
.section-head { max-width: 760px; margin-block-end: clamp(32px, 4vw, 56px); }
.section-head-wide { max-width: 980px; }
.section-head h2 { font-size: var(--fs-h2); line-height: 1.25; }
.section-lead { margin-block-start: 14px; font-size: var(--fs-lead); line-height: 1.8; color: var(--ink-muted); max-width: 40em; }
.section-head-split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.section-head-split > div:first-child { max-width: 640px; }
.aside-title { font-size: var(--fs-h4); }
.title-part { display: block; }

/* ---------- shared lists ---------- */
.check-list { list-style: none; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 12px; align-items: baseline; line-height: 1.6; }
.check-list li::before { content: ""; flex: none; width: 10px; height: 10px; border: 3px solid var(--accent-soft); border-radius: 2px; transform: translateY(-1px); }
.fact-list { display: grid; gap: 10px; }
.fact-list > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 12px; }
.fact-list dt { font-size: var(--fs-small); color: var(--ink-muted); padding-block-start: 2px; }
.tag-list, .board-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li, .board-chips li { padding: 4px 12px; border-radius: var(--r-tag); background: var(--surface); font-size: var(--fs-small); line-height: 1.6; }
.legend { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.legend li { display: flex; align-items: center; gap: 10px; line-height: 1.45; font-size: var(--fs-small); }
.legend-chip { flex: none; width: 18px; height: 18px; border-radius: 4px; background: var(--chip); border: 2px solid var(--ink); }
.ratings { display: grid; gap: 8px; }
.rating { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 12px; align-items: center; }
.rating dt { font-size: var(--fs-small); color: var(--ink-muted); }
.rating dd { display: flex; align-items: center; gap: 10px; }
.bar { display: flex; gap: 3px; flex: 1 1 auto; max-width: 150px; }
.seg { flex: 1; height: 10px; border-radius: 2px; background: var(--line); }
.seg.on { background: var(--accent); }
.rating-num { font-size: var(--fs-small); color: var(--ink-muted); white-space: nowrap; }
.price-unit { font-size: var(--fs-small); color: var(--ink-muted); }

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface-elevated);
  color: var(--ink);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.3;
  text-align: start;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.chip:hover { border-color: var(--ink-muted); }
.chip:active { background: var(--surface); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.chip-count { font-size: var(--fs-small); color: inherit; opacity: 0.75; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(24px, 3.5vw, 40px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 64px); align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; min-width: 0; }
.hero-title { font-size: var(--fs-display); line-height: 1.1; letter-spacing: 0.02em; padding-block-start: clamp(4px, 1.5vw, 20px); }
.hero-lead { margin-block-start: 20px; font-size: var(--fs-lead); line-height: 1.8; color: var(--ink-muted); max-width: 28em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
.hero-illo { margin-block-start: auto; padding-block-start: 24px; max-width: 360px; }
.hero-photo { display: flex; flex-direction: column; min-width: 0; }
.hero-img { flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-panel); background: var(--surface); }
.hero-photo figcaption, .svc-hero-media figcaption { margin-block-start: 12px; font-size: var(--fs-small); color: var(--ink-muted); }

@media (max-width: 959px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-illo { margin-block-start: 0; }
  .hero-img { height: auto; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 32px; align-items: start; }
  .hero-copy > :not(.hero-illo) { grid-column: 1; }
  .hero-illo { grid-column: 2; grid-row: 1 / span 3; align-self: center; padding-block-start: 0; }
}
@media (max-width: 599px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-illo { max-width: 260px; padding-block-start: 28px; }
}

/* ---------- about ---------- */
.about { padding-block-start: clamp(40px, 5vw, 72px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-copy h2 { font-size: var(--fs-h2); line-height: 1.25; }
.about-text { margin-block-start: 24px; font-size: var(--fs-body); line-height: 1.95; max-width: 40em; }
.about-sub { margin-block: 32px 14px; font-size: var(--fs-h4); }
.about-aside { background: var(--surface-elevated); border-radius: var(--r-panel); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.about-illo { max-width: 340px; }
.about-aside .btn { justify-self: start; }
.space-strip { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-block-start: clamp(48px, 6vw, 80px); }
.space { display: grid; gap: 8px; justify-items: center; text-align: center; }
.space-illo { width: 100%; max-width: 170px; background: var(--surface); border-radius: var(--r-panel); padding: 8px; }
.space-name { font-weight: 700; }
@media (max-width: 899px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .space-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 479px) { .space-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ---------- calculator ---------- */
.calc { background: var(--surface); }
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "type type" "structure panel";
  gap: 20px;
}
.calc-grid.is-fixed { grid-template-areas: "structure panel"; }
.calc-block { background: var(--surface-elevated); border-radius: var(--r-panel); padding: clamp(20px, 2.6vw, 32px); min-width: 0; }
.calc-type { grid-area: type; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 32px; align-items: center; }
.calc-structure { grid-area: structure; display: flex; flex-direction: column; }
.calc-structure .section-panel:not([hidden]) { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.calc-panel { grid-area: panel; display: grid; gap: 24px; align-content: start; }
.calc-step { font-size: var(--fs-h4); }
.calc-structure .calc-step, .calc-panel .calc-step { margin-block-end: 16px; }
.calc-panel .calc-step { margin-block-end: 0; }
.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.chip-type { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 72px; padding: 10px 16px; }
.chip-type-name { font-weight: 700; font-size: 1.125rem; }
.chip-type-price { font-size: var(--fs-small); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.chip-type[aria-pressed="true"] .chip-type-price { color: var(--on-dark-muted); }
.no-js-note { display: none; grid-column: 1 / -1; color: var(--ink-muted); font-size: var(--fs-small); }
.variant-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 16px; }
.variant-bar[hidden], .calc-ceiling[hidden], .calc-wall[hidden], .section-panel[hidden] { display: none; }
.section-illo { background: var(--bg); border-radius: var(--r-control); padding: clamp(8px, 2vw, 20px); }
.section-illo .illo { max-width: 560px; margin-inline: auto; }
.section-cap { display: grid; gap: 10px; margin-block-start: 16px; }
.section-cap-title { font-weight: 700; }
.calc-inputs { display: grid; gap: 16px; }
.calc-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.calc-wall .check { grid-column: 1 / -1; }
.field-inline { display: grid; gap: 6px; }
.field-inline > label { font-size: var(--fs-small); color: var(--ink-muted); font-weight: 500; }
.input-unit { display: flex; gap: 8px; }
.input-unit input { flex: 1 1 auto; min-width: 0; }
.unit-toggle { display: flex; gap: 6px; }
.chip-unit { min-width: 56px; justify-content: center; padding: 0 12px; }
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  line-height: 1.4;
}
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.check:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.check:hover { background: var(--surface); }
.calc-result { display: grid; gap: 16px; }
.calc-total { border-top: 4px solid var(--accent-soft); padding-block-start: 14px; }
.calc-total-for { margin-block-start: 4px; line-height: 1.6; }
.calc-total-name { font-weight: 700; color: var(--ink); }
.calc-total-value { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 900; line-height: 1.25; color: var(--accent); overflow-wrap: anywhere; }
.calc-total-area { color: var(--ink-muted); white-space: nowrap; }
.mat-table, .board-table, .job-table { width: 100%; border-collapse: collapse; }
.mat-table caption { text-align: start; font-weight: 700; padding-block-end: 6px; }
.mat-table th, .mat-table td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: start; font-weight: 400; line-height: 1.5; }
.mat-table thead th { font-size: var(--fs-small); color: var(--ink-muted); font-weight: 500; padding-block: 6px; }
.mat-table td:last-child, .mat-table th:last-child { padding-inline-start: 10px; width: 3em; }
.mat-table .num { text-align: end; font-weight: 700; padding-inline-start: 12px; white-space: nowrap; }
.calc-basis, .calc-disclaimer { font-size: var(--fs-small); color: var(--ink-muted); line-height: 1.7; }
.calc-apply { justify-self: stretch; }

@media (max-width: 1023px) {
  .calc-grid, .calc-grid.is-fixed { grid-template-columns: minmax(0, 1fr); grid-template-areas: "type" "structure" "panel"; }
  .calc-grid.is-fixed { grid-template-areas: "structure" "panel"; }
  .calc-type { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend { grid-template-columns: minmax(0, 1fr); }
  .calc-wall { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
}

/* ---------- forms ---------- */
input[type="text"], input[type="tel"], input[type="number"], input:not([type]), select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 2px solid var(--field-edge);
  border-radius: 12px;
  background: var(--surface-elevated);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}
textarea { min-height: 132px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.6; cursor: not-allowed; background: var(--surface); }
input::placeholder, textarea::placeholder { color: var(--ink-muted); opacity: 1; }
[aria-invalid="true"] { border-color: var(--error); background: var(--error-soft); }

/* ---------- services ---------- */
.svc-list { display: grid; gap: 20px; }
.svc {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 24px clamp(28px, 3.5vw, 48px);
  align-items: start;
  background: var(--surface-elevated);
  border-radius: var(--r-panel);
  padding: clamp(20px, 3vw, 36px);
}
.svc-media { background: var(--surface); border-radius: var(--r-control); padding: 8px; }
.svc-name { font-size: var(--fs-h3); line-height: 1.35; }
.svc-sub { margin-block-start: 6px; color: var(--accent); font-weight: 500; }
.svc-summary { margin-block: 12px 18px; line-height: 1.8; }
.svc-spec { display: grid; gap: 18px; }
.svc-price { display: flex; flex-direction: column; }
.svc-price .price-num { font-size: 1.875rem; font-weight: 900; line-height: 1.25; color: var(--ink); }
.spec-dl { display: grid; gap: 12px; }
.spec-dl dt { font-size: var(--fs-small); color: var(--ink-muted); margin-block-end: 6px; }
.svc-spec .btn { justify-self: start; }
@media (max-width: 1099px) {
  .svc { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .svc-spec { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; align-items: start; }
  .svc-spec .spec-dl { grid-row: span 2; }
}
@media (max-width: 679px) {
  .svc, .svc-spec { grid-template-columns: minmax(0, 1fr); }
  .svc-media { max-width: 260px; }
  .svc-spec .spec-dl { grid-row: auto; }
}

/* ---------- metal catalogue (dark) ---------- */
.metal, .recruit, .cta-band { background: var(--ink); color: var(--on-dark); }
.metal h2, .metal h3, .recruit h2, .recruit h3, .cta-band h2 { color: var(--on-dark); }
.metal .section-lead, .recruit .section-lead { color: var(--on-dark-muted); }
.metal :focus-visible, .recruit :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--accent-on-dark); }
.metal a:not(.btn), .recruit a:not(.btn) { color: var(--accent-on-dark); }
.plate-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 360px)); justify-content: space-between; gap: 48px 32px; }
.plate-figure { display: grid; gap: 16px; }
.plate-media { display: block; border-radius: var(--r-control); overflow: hidden; background: var(--ink-panel); }
.plate-media:hover .plate-img { opacity: 0.88; }
.plate-img { width: 100%; aspect-ratio: 240 / 188; object-fit: cover; transition: opacity 0.2s var(--ease-out); }
.plate-body { display: grid; gap: 4px; justify-items: start; }
.plate-name { font-size: var(--fs-h4); line-height: 1.4; display: flex; align-items: baseline; gap: 10px; }
.plate-code { flex: none; display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--steel-pale); color: var(--ink); font-size: var(--fs-small); font-weight: 700; line-height: 1.6; }
.plate-spec { color: var(--on-dark-muted); font-size: var(--fs-small); }
.plate-fit { line-height: 1.7; }
.plate-book { margin-block-start: 10px; }
@media (max-width: 1023px) { .plate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; } .plate-media { max-width: 360px; } }
@media (max-width: 559px) { .plate-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* ---------- projects ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.shot-grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 1279px) { .shot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shot-grid.is-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); max-width: 1100px; }
.shot[hidden] { display: none; }
.shot-link { display: block; border-radius: var(--r-control); overflow: hidden; background: var(--surface); outline: 3px solid transparent; outline-offset: 3px; transition: outline-color 0.18s var(--ease-out); }
.shot-link:hover { outline-color: var(--accent-soft); }
.shot-link:focus-visible { outline-color: var(--accent); }
.shot-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot figcaption { padding-block-start: 10px; display: grid; gap: 0; }
.shot-title { font-weight: 500; line-height: 1.5; }
.shot-cat { font-size: var(--fs-small); color: var(--ink-muted); }
@media (max-width: 1099px) { .shot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) { .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } .shot-title { font-size: var(--fs-small); } }

/* ---------- process ---------- */
.process { background: var(--surface); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.step { position: relative; padding-block-start: 32px; }
.step::before { content: ""; position: absolute; top: 6px; inset-inline: 0 -24px; height: 4px; background: var(--line); }
.step:last-child::before { inset-inline-end: 0; }
.step::after { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 4px; background: var(--accent-soft); }
.step-illo { background: var(--surface-elevated); border-radius: var(--r-panel); padding: 8px; }
.step-title { margin-block-start: 16px; font-size: var(--fs-h4); line-height: 1.4; }
.step-detail { margin-block-start: 8px; font-size: var(--fs-body); line-height: 1.75; }
@media (max-width: 1099px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; } .step::before { inset-inline-end: 0; } }
@media (max-width: 699px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .step { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 16px; padding-block-start: 0; padding-inline-start: 32px; }
  .step::before { top: 0; bottom: -28px; inset-inline-start: 6px; width: 4px; height: auto; }
  .step:last-child::before { bottom: 0; }
  .step-illo { grid-row: span 2; align-self: start; }
  .step-title { margin-block-start: 0; }
}

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-head h2 { font-size: var(--fs-h2); line-height: 1.25; }
.faq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 24px; }
.faq-list { display: grid; gap: 10px; }
.qa { background: var(--surface-elevated); border-radius: var(--r-panel); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 22px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-panel);
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.55;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa-q { color: var(--accent); }
.qa-mark { position: relative; flex: none; width: 16px; height: 16px; }
.qa-mark::before, .qa-mark::after { content: ""; position: absolute; inset-inline: 0; top: 7px; height: 3px; border-radius: 1px; background: var(--accent); transition: transform 0.2s var(--ease-out); }
.qa-mark::after { transform: rotate(90deg); }
.qa[open] .qa-mark::after { transform: rotate(0deg); }
.qa-a { padding: 0 22px 22px; display: grid; gap: 12px; max-width: 46em; line-height: 1.85; }
@media (max-width: 899px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .faq-head { position: static; } }

/* ---------- recruit (dark) ---------- */
.recruit-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.recruit-copy h2 { font-size: var(--fs-h2); line-height: 1.25; }
.recruit-copy { display: grid; gap: 24px; justify-items: start; }
.recruit-copy .section-lead { margin-block-start: -10px; }
.job-table { max-width: 420px; }
.job-table th, .job-table td { padding: 12px 0; border-bottom: 1px solid var(--line-dark); text-align: start; }
.job-table thead th { font-size: var(--fs-small); font-weight: 500; color: var(--on-dark-muted); }
.job-table tbody th { font-size: var(--fs-h4); font-weight: 700; }
.job-table tbody td { font-size: var(--fs-h4); font-variant-numeric: tabular-nums; }
.recruit .fact-list dt { color: var(--on-dark-muted); }
.recruit-duties { display: grid; gap: 16px; }
.recruit-illo { background: var(--bg); border-radius: var(--r-panel); padding: 12px; max-width: 420px; }
.duty-list { padding-inline-start: 1.4em; display: grid; gap: 8px; line-height: 1.75; }
.duty-list li::marker { color: var(--accent-on-dark); font-weight: 700; }
@media (max-width: 899px) { .recruit-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- booking ---------- */
.booking { background: var(--surface); }
.booking-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.booking-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.booking-intro h2 { font-size: var(--fs-h2); line-height: 1.25; }
.booking-illo { margin-block-start: 32px; max-width: 320px; }
.booking-direct { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
.booking-panel { background: var(--surface-elevated); border-radius: var(--r-panel); padding: clamp(20px, 3.5vw, 40px); }
.type-field { border: 0; padding: 0; margin-block-end: 20px; }
.type-field legend { font-weight: 500; padding: 0; margin-block-end: 8px; }
.radio-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.radio-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.4;
  transition: border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}
.radio-tile:hover { border-color: var(--ink-muted); }
.radio-tile input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.radio-tile:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.radio-tile:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > label { font-weight: 500; }
.req { margin-inline-start: 8px; font-size: var(--fs-small); font-weight: 500; color: var(--error); }
.field-hint { font-size: var(--fs-small); color: var(--ink-muted); line-height: 1.5; }
.field-error { min-height: 1lh; font-size: var(--fs-small); line-height: 1.5; color: var(--error); font-weight: 500; }
.form-alert { margin-block-end: 20px; padding: 12px 16px; border-radius: 12px; background: var(--error-soft); color: var(--error); font-weight: 500; }
.form-alert[hidden], .booking-done[hidden], .booking-form[hidden] { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-block-start: 16px; }
.form-note { font-size: var(--fs-small); color: var(--ink-muted); }
.booking-done { display: grid; gap: 16px; justify-items: start; }
.booking-done:focus { outline: none; }
.booking-done-title { font-size: var(--fs-h3); }
@media (max-width: 959px) { .booking-grid { grid-template-columns: minmax(0, 1fr); } .booking-intro { position: static; } .booking-illo { max-width: 260px; } }
@media (max-width: 599px) {
  .form-grid, .radio-tiles { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.contact-main { display: grid; gap: 24px; justify-items: start; }
.contact-main h2 { font-size: var(--fs-h2); line-height: 1.25; }
.contact-address { font-size: clamp(1.375rem, 1rem + 1.2vw, 1.875rem); font-weight: 700; line-height: 1.5; }
.contact-address a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration-color: var(--accent-soft); text-decoration-thickness: 3px; text-underline-offset: 0.3em; border-radius: 6px; }
.contact-address a:hover { color: var(--accent); }
.phone-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 560px; }
.btn-phone { width: 100%; min-height: 64px; justify-content: space-between; gap: 16px; background: var(--surface-elevated); color: var(--ink); padding-inline: 18px; }
.btn-phone:hover { background: var(--surface); color: var(--ink); border-color: var(--line); }
.phone-label { font-size: var(--fs-small); font-weight: 500; color: var(--ink-muted); }
.phone-num { font-size: 1.125rem; font-weight: 700; }
.contact-side { display: grid; gap: 24px; }
.contact-illo { max-width: 420px; }
.fact-list-lg dd { font-weight: 500; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 519px) { .phone-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(48px, 6vw, 80px) 32px; border-top: 4px solid var(--accent-soft); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3.5fr); gap: 32px 48px; }
.site-footer .brand, .site-footer .brand:hover { color: var(--on-dark); }
.site-footer .brand-en { color: var(--on-dark-muted); }
.site-footer .mk-bg { fill: var(--ink-panel); }
.footer-tagline { margin-block-start: 12px; font-weight: 700; }
.footer-domain { color: var(--on-dark-muted); }
.footer-nav { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 32px; }
.footer-links { list-style: none; align-content: start; }
.footer-nav .footer-links:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.footer-addr { display: block; }
.footer-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-muted); text-decoration: none; border-radius: 8px; line-height: 1.45; }
.footer-link:hover { color: var(--on-dark); text-decoration: underline; }
.footer-contact { display: grid; align-content: start; }
.copyright { grid-column: 1 / -1; padding-block-start: 24px; font-size: var(--fs-small); color: var(--on-dark-muted); }
@media (max-width: 959px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 599px) { .footer-grid, .footer-nav { grid-template-columns: minmax(0, 1fr); } }

/* ---------- lightbox ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: var(--scrim); }
.lightbox { width: min(1040px, 100% - 24px); max-height: calc(100dvh - 24px); border-radius: var(--r-panel); background: var(--ink); color: var(--on-dark); }
.lightbox-frame { padding: 16px; display: grid; gap: 12px; }
.lightbox-media { display: grid; place-items: center; min-height: 200px; }
.lightbox-media img { width: auto; max-height: calc(100dvh - 200px); object-fit: contain; border-radius: var(--r-control); }
.lightbox-caption { margin-block-start: 10px; text-align: center; color: var(--on-dark-muted); font-size: var(--fs-small); max-width: 60em; margin-inline: auto; }
.lightbox-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.lightbox-count { min-width: 8em; text-align: center; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }

/* ---------- inner pages: shared ---------- */
.page-title { font-size: var(--fs-title); line-height: 1.2; margin-block-start: 4px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; font-size: var(--fs-small); color: var(--ink-muted); }
.breadcrumb a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; min-width: 44px; color: var(--ink-muted); border-radius: 8px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; min-height: 46px; }
.crumb-sep { margin-inline: 10px; color: var(--accent-soft); font-weight: 700; }
.cta-band { padding-block: clamp(56px, 7vw, 96px); }
.cta-band-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px 48px; align-items: center; }
.cta-band h2 { font-size: var(--fs-h2); line-height: 1.25; }
.cta-band p { margin-block-start: 12px; color: var(--on-dark-muted); font-size: var(--fs-lead); max-width: 38em; }
.cta-band-actions { justify-self: end; }
@media (max-width: 767px) { .cta-band-grid { grid-template-columns: minmax(0, 1fr); } .cta-band-actions { justify-self: start; } }

/* ---------- service page ---------- */
.svc-hero { padding-block: clamp(8px, 1.5vw, 20px) clamp(56px, 7vw, 96px); }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.svc-hero-copy { min-width: 0; }
.svc-hero-sub { margin-block-start: 14px; font-size: var(--fs-lead); color: var(--accent); font-weight: 700; }
.svc-hero-summary { margin-block-start: 10px; font-size: var(--fs-lead); line-height: 1.85; max-width: 32em; }
.svc-hero-price { margin-block-start: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.svc-hero-price .price-num { font-size: 1.875rem; font-weight: 900; line-height: 1.2; }
.price-note { margin-block-start: 4px; font-size: var(--fs-small); color: var(--ink-muted); }
.svc-hero-media { min-width: 0; }
.svc-hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-panel); background: var(--surface); }
.mosaic { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 600px; }
.mosaic-img { width: 100%; aspect-ratio: 240 / 188; object-fit: cover; border-radius: var(--r-tag); background: var(--surface); }
.svc-intro { background: var(--surface); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.intro-copy h2 { font-size: var(--fs-h2); line-height: 1.25; margin-block-end: 20px; }
.intro-text { font-size: var(--fs-lead); line-height: 1.95; max-width: 36em; }
.intro-text + .intro-text { margin-block-start: 16px; }
.feature-card { background: var(--surface-elevated); border-radius: var(--r-panel); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.board-table th, .board-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; line-height: 1.65; }
.board-table thead th { font-size: var(--fs-small); font-weight: 500; color: var(--ink-muted); padding-block: 10px; }
.board-table th:first-child, .board-table td:first-child { padding-inline-start: 0; }
.board-table .bt-name { font-size: var(--fs-h4); font-weight: 700; min-width: 8em; }
.bt-code { font-weight: 700; color: var(--accent); white-space: nowrap; }
.bt-media { display: block; width: 132px; border-radius: var(--r-tag); overflow: hidden; }
.bt-photo { width: 100%; aspect-ratio: 240 / 188; object-fit: cover; }
.bt-act { text-align: end; white-space: nowrap; }
.board-table td.bt-act { padding-inline-end: 0; }
.svc-structure .structure-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.structure-grid.is-multi { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.structure-grid.is-multi .structure-ratings { grid-column: 1 / -1; max-width: 480px; }
.structure-fig .section-illo { background: var(--surface); }
.structure-ratings { display: grid; gap: 10px; }
.ratings-note { font-size: var(--fs-small); color: var(--ink-muted); }
.svc-gallery { background: var(--surface); }
.svc-related .related-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.related-card { display: grid; gap: 6px; height: 100%; padding: 14px 14px 20px; border-radius: var(--r-panel); background: var(--surface-elevated); color: var(--ink); text-decoration: none; border: 2px solid transparent; transition: border-color 0.18s var(--ease-out); }
.related-card:hover { border-color: var(--accent); color: var(--ink); }
.related-illo { display: block; background: var(--surface); border-radius: var(--r-control); padding: 8px; margin-block-end: 8px; }
.related-name { font-weight: 700; font-size: var(--fs-h4); line-height: 1.4; }
.related-sub { font-size: var(--fs-small); color: var(--ink-muted); line-height: 1.6; }
.related-price { font-size: var(--fs-small); color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 959px) {
  .svc-hero-grid, .intro-grid, .svc-structure .structure-grid { grid-template-columns: minmax(0, 1fr); }
  .structure-grid.is-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .board-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .board-table, .board-table tbody, .board-table tr, .board-table th, .board-table td { display: block; }
  .board-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-bottom: 2px solid var(--line); }
  .board-table th, .board-table td { border: 0; padding: 0; }
  .board-table .bt-img { grid-row: span 4; }
  .board-table:not(.has-img) .bt-code { grid-row: span 4; }
  .board-table td[data-label]::before { content: attr(data-label) "："; color: var(--ink-muted); font-size: var(--fs-small); }
  .bt-act { text-align: start; padding-block-start: 8px; }
  .bt-media { width: 104px; }
  .svc-related .related-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .structure-grid.is-multi { grid-template-columns: minmax(0, 1fr); }
  .mosaic { gap: 6px; }
}

/* ---------- 404 ---------- */
.notfound-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.nf-sub { margin-block: 48px 16px; font-size: var(--fs-h3); }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.notfound-illo { max-width: 480px; background: var(--surface-elevated); border-radius: var(--r-panel); padding: 12px; }
.grid-band { padding-block: 0 48px; }
.grid-band .illo { max-width: 480px; }
@media (max-width: 899px) { .notfound-grid { grid-template-columns: minmax(0, 1fr); } .notfound-illo { max-width: 360px; } .nf-links .btn { white-space: normal; } }

/* ---------- phones: compaction ---------- */
.ph { display: inline-block; }
@media (max-width: 599px) {
  .chip-type { min-height: 64px; padding: 8px 12px; }
  .chip-type-name { font-size: 1rem; }
  .chip-type-per { display: none; }
  .chip-type-price { white-space: nowrap; font-size: var(--fs-small); }
  .booking-illo { display: none; }
  .svc-media { max-width: 200px; }
  .space-illo { max-width: 120px; }
}
@media (max-width: 559px) {
  .plate-grid { gap: 28px; }
  .plate-figure { grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: start; }
  .plate-media { max-width: none; }
  .plate-name { display: block; font-size: var(--fs-body); }
  .plate-name .plate-code { margin-inline-end: 8px; }
  .plate-book { margin-block-start: 6px; }
}
@media (max-width: 479px) { .space-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; } .space-name { font-size: var(--fs-small); } }

/* ---------- progressive enhancement: no JavaScript ---------- */
.no-js .menu-toggle, .no-js .type-grid, .no-js .variant-bar, .no-js .calc-inputs, .no-js button.calc-apply, .no-js .filter-bar { display: none; }
.no-js .no-js-note { display: block; }

/* ---------- motion: reveal and illustration hooks ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); }
  .js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-out) var(--reveal-delay, 0s), transform 0.6s var(--ease-out) var(--reveal-delay, 0s); }
  .hero-img, .svc-hero-img { animation: ls-settle 1.2s var(--ease-out) both; }
  .illo .tap { animation: ls-tap 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 80% 80%; }
  .illo .drill { animation: ls-drill 1.6s linear infinite; transform-box: fill-box; transform-origin: 50% 50%; }
  .illo .fl { animation: ls-float 4.2s ease-in-out infinite alternate; transform-box: fill-box; }
  .illo .swing { animation: ls-swing 3.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
  .illo .tw { animation: ls-tw 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
  .illo .tw2 { animation-delay: -1.5s; }
}
@keyframes ls-settle { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes ls-tap { 0%, 60%, 100% { transform: translateY(0); } 75% { transform: translateY(-3px); } }
@keyframes ls-drill { to { transform: rotate(360deg); } }
@keyframes ls-float { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes ls-swing { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@keyframes ls-tw { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
