/* BlackGrid — "The well-kept board". Jost, sheet-and-biro palette, tiles on an 8px grid. */

:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #e6e6e6;
  --surface-3: #c9c9c9;
  --ink: #111111;
  --muted: #5f5f5f;
  --accent: #1a4be0;
  --accent-press: #1238b0;
  --accent-ink: #ffffff;
  --field-1: #111111;
  --field-1-ink: #ffffff;

  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.1rem + 0.9vw, 2rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  --step-display: clamp(4.5rem, 18.2vw, 19rem);

  --m: 16px;      /* outer margin */
  --g: 8px;       /* gap between tiles */
  --pad: 24px;    /* padding inside a tile */
  --section: clamp(120px, 12vw, 200px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--m); top: var(--m); z-index: 10; background: var(--ink); color: var(--bg); padding: 10px 14px; }

.h-head { font-size: var(--step-head); font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; }
.h-lead { font-size: var(--step-lead); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }

.tile { background: var(--surface); padding: var(--pad); position: relative; overflow: hidden; }
.photo { padding: 0; background: var(--surface-2); }
.photo img, .hero-stage video, .why-photo img, .cta-flank img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
.field-ink { background: var(--field-1); color: var(--field-1-ink); }

.button {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 16px 26px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; text-decoration: none;
  transition: background-color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.button:hover { background: var(--accent-press); }
.button:active { transform: scale(0.97); }
.button-small { padding: 10px 16px; font-size: var(--step-small); }

/* ============ HERO ============ */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); padding: 0 var(--m); }

.hero {
  padding-top: var(--m);
  height: max(100svh, 760px);
  grid-template-rows: auto 64px minmax(0, 1fr);
}
.name-band {
  grid-column: 1 / -1;
  background: var(--field-1);
  color: var(--field-1-ink);
  padding: 0;
  height: calc(var(--step-display) * 0.74);
  display: flex; align-items: center; justify-content: center;
}
.name {
  font-size: var(--step-display);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateY(0.035em);
}
.name span { display: inline-block; }

.hero-nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g); }
.nav-tile {
  padding: 18px 22px; text-decoration: none; font-weight: 500;
  transition: background-color var(--t-hover) var(--ease-out);
}
.nav-tile:hover { background: var(--surface-2); }
.nav-tile:active { background: var(--surface-3); }

.hero-left { grid-column: 1 / 3; display: grid; grid-template-rows: 1fr auto; gap: var(--g); min-height: 0; }
.hero-portrait img { object-position: 40% 50%; }
.hero-facts { padding: 20px; font-size: var(--step-small); line-height: 1.35; display: grid; gap: 10px; }

.hero-stage { grid-column: 3 / 11; padding: 0; background: var(--field-1); min-height: 0; }
.hero-stage video { position: absolute; inset: 0; }
.hero-statement {
  position: absolute; left: 0; bottom: 0;
  width: min(78%, 860px);
  background: var(--bg);
  padding: 24px 28px 28px;
  font-size: clamp(1.5rem, 1rem + 1.3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.hero-rail { grid-column: 11 / 13; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr); gap: var(--g); min-height: 0; }
.rail-tile { padding: 14px 18px; font-size: var(--step-body); line-height: 1.2; min-height: 0; font-weight: 500; letter-spacing: -0.01em; }
.rail-1 { background: var(--surface); }
.rail-2 { background: var(--surface-2); }
.rail-3 { background: var(--surface-3); }
.rail-4 { background: var(--field-1); color: var(--field-1-ink); }
.rail-action {
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--step-lead); line-height: 1.05; text-decoration: none;
  display: flex; align-items: flex-end;
  transition: background-color var(--t-hover) var(--ease-out);
}
.rail-action:hover { background: var(--accent-press); }
.rail-action span { display: inline-block; margin-left: 0.2em; transition: transform var(--t-hover) var(--ease-out); }
.rail-action:hover span { transform: translateX(6px); }

/* ============ CAPABILITIES MOSAIC ============ */
.mosaic {
  margin-top: var(--g);
  grid-auto-flow: dense;
  grid-auto-rows: minmax(96px, auto);
  scroll-margin-top: var(--m);
}
.m-head { grid-column: 7 / 13; grid-row: span 3; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.m-intro { font-size: var(--step-lead); line-height: 1.2; max-width: 34ch; }
.m-count { grid-column: 4 / 7; grid-row: span 3; display: flex; flex-direction: column; justify-content: space-between; }
.m-figure { font-size: var(--step-head); font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.m-figure #part-count { display: inline-block; font-size: 1.9em; }
.m-of { color: #a3a3a3; }
.m-caption { font-size: var(--step-body); max-width: 24ch; line-height: 1.35; }
.m-photo-plan { grid-column: 1 / 4; grid-row: span 3; }

.cap { grid-column: 1 / 7; grid-row: span 4; display: flex; flex-direction: column; gap: 14px; }
.cap > p { max-width: 40ch; }
.cap-dark { grid-column: 7 / 13; background: var(--field-1); color: var(--field-1-ink); }
.cap-grey { grid-column: 1 / 7; background: var(--surface-2); }
.m-photo-steel { grid-column: 7 / 13; grid-row: span 4; }
.m-photo-card { grid-column: 4 / 7; grid-row: span 4; }
.m-photo-city { grid-column: 7 / 13; grid-row: span 4; }
.m-photo-city img { object-position: 50% 80%; }
.m-photo-card img { object-position: 30% 50%; }
.m-say { grid-column: 1 / 4; grid-row: span 4; font-size: var(--step-lead); line-height: 1.15; font-weight: 500; background: var(--surface); }

.parts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.part {
  border: 0; cursor: pointer;
  padding: 10px 14px;
  background: var(--bg); color: var(--ink);
  font-size: var(--step-small); font-weight: 500;
  transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.part:hover { background: var(--surface-3); }
.part:active { transform: scale(0.96); }
.part[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.part[aria-pressed="true"]::before { content: "■ "; color: var(--accent); }
.cap-dark .part { background: #2a2a2a; color: var(--field-1-ink); }
.cap-dark .part:hover { background: #3b3b3b; }
.cap-dark .part[aria-pressed="true"] { background: var(--bg); color: var(--ink); }
.cap-grey .part { background: var(--bg); }

/* ============ WORK STRIPS ============ */
.work {
  margin-top: var(--section);
  padding-left: var(--m);
  display: grid;
  grid-template-columns: 13% 1fr;
  gap: 24px;
  scroll-margin-top: var(--m);
}
.work-rail { position: sticky; top: 24px; align-self: start; display: grid; gap: 20px; padding-right: 8px; }
.filters { display: grid; gap: 6px; justify-items: start; }
.filter {
  border: 0; background: none; padding: 2px 0; cursor: pointer;
  font-size: var(--step-small); color: var(--muted);
  transition: color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.filter[aria-pressed="true"]::before { content: "■ "; color: var(--accent); }

.strips { display: grid; gap: 45px; min-width: 0; }
.strip { min-width: 0; }
.strip[hidden] { display: none; }
.strip-row { display: flex; gap: var(--g); overflow: hidden; }
.strip-row > * { transition: transform 600ms var(--ease-out); }
.strip:hover .strip-row > * { transform: translateX(-48px); }
.strip-caption {
  display: grid; grid-template-columns: 1fr 2.4fr 1fr; gap: 16px;
  margin-top: 12px; padding-right: var(--m);
  font-size: var(--step-small); line-height: 1.35;
}
.strip-caption span { max-width: 60ch; }
.strip-caption b { font-weight: 500; }
.strip-caption span:last-child { text-align: right; color: var(--muted); }

/* --- interface fragments (data-ui: the products' own conventions) --- */
.ui {
  flex: none; height: 190px;
  background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; /* taste-skill-ignore: product UI fragment */
  padding: 12px 14px;
  font-size: 12px; line-height: 1.35; color: #1b1b1b;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
}
.ui b { font-weight: 500; }
.ui-bar { display: flex; gap: 10px; align-items: center; font-size: 12px; color: #666; }
.ui-bar b { color: #111; font-size: 13px; }
.ui-pill { margin-left: auto; background: #eef2fd; color: #1a4be0; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.ui-title { font-size: 14px; font-weight: 500; color: #111; }
.ui-sub { font-size: 11px; color: #707070; }
.ui-note { font-size: 11px; color: #707070; }
.ui-btn { align-self: flex-start; margin-top: auto; background: #1a4be0; color: #fff; border-radius: 4px; padding: 6px 12px; font-size: 12px; font-weight: 500; }

.ui-cal { width: 460px; }
.ui-dispatch { width: 500px; }
.cal { display: grid; gap: 4px; }
.cal-hours { display: grid; grid-template-columns: 56px repeat(7, 1fr); font-size: 10px; color: #666; }
.ui-dispatch .cal-hours { grid-template-columns: 84px repeat(5, 1fr); }
.cal-row { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 0; }
.ui-dispatch .cal-row { grid-template-columns: 84px 1fr; }
.cal-day { font-size: 11px; color: #555; }
.cal-track { position: relative; height: 22px; background: #f6f6f6; border-radius: 3px; }
.ui-dispatch .cal-track { height: 26px; }
.cal-track i {
  position: absolute; top: 2px; bottom: 2px;
  background: #dfe6fb; color: #13308c; border-radius: 3px;
  font-style: normal; font-size: 10px; line-height: 18px; padding: 0 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ui-dispatch .cal-track i { line-height: 22px; }
.cal-track i.is-sel { background: #1a4be0; color: #fff; }
.cal-track i.is-open { background: transparent; border: 1px dashed #b5b5b5; color: #777; }
.cal-track i.is-late { background: #fde7c7; color: #7a4300; }
.cal-track i.is-done { background: #dcefe0; color: #1d5a2c; }

.ui-slots { width: 270px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 2px; }
.slots span { /* taste-skill-ignore: product UI control */ border: 1px solid #d6d6d6; border-radius: 4px; text-align: center; padding: 4px 0; font-variant-numeric: tabular-nums; }
.slots span.is-sel { background: #1a4be0; border-color: #1a4be0; color: #fff; }

.ui-sms { width: 250px; background: #f4f5f7; }
.bubble { background: #fff; border: 1px solid #e3e3e3; border-radius: 12px 12px 12px 3px; padding: 8px 10px; }
.bubble-me { align-self: flex-end; background: #1a4be0; border-color: #1a4be0; color: #fff; border-radius: 12px 12px 3px 12px; padding: 4px 12px; }

.ui-stats { width: 210px; justify-content: space-between; }
.ui-stats p { font-size: 12px; color: #555; }
.ui-stats b { display: block; font-size: 24px; line-height: 1.05; color: #111; font-variant-numeric: tabular-nums; }

.ui table { width: 100%; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.ui th { text-align: left; font-weight: 500; color: #666; padding: 3px 6px 3px 0; border-bottom: 1px solid #e6e6e6; }
.ui td { padding: 3px 6px 3px 0; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.ui .num { text-align: right; }
.ui tr.is-sel td { background: #eef2fd; }
.ui-table { width: 470px; }
.ui-invoices { width: 330px; justify-content: center; }
.ui-invoices table { font-size: 12px; }
.ui-invoices td, .ui-invoices th { padding-top: 7px; padding-bottom: 7px; }
.st { display: inline-block; padding: 0 6px; border-radius: 8px; background: #efefef; color: #555; font-size: 10px; line-height: 16px; }
.st-ok { background: #dcefe0; color: #1d5a2c; }
.st-sent { background: #dfe6fb; color: #13308c; }
.st-warn { background: #fde7c7; color: #7a4300; }

.ui-breakdown { width: 260px; }
.ui-breakdown dl { display: grid; gap: 4px; }
.ui-breakdown dl div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.ui-breakdown .total { /* taste-skill-ignore: product UI total row */ border-top: 1px solid #e0e0e0; padding-top: 5px; font-weight: 500; color: #111; }
.ui-mail { width: 280px; }
.ui-job { width: 250px; }

.ui-landing { width: 470px; background: #0f1a33; color: #fff; border-color: #0f1a33; gap: 8px; }
.ll-nav { display: flex; gap: 14px; font-size: 11px; color: #b9c3dd; }
.ll-nav b { color: #fff; margin-right: auto; }
.ll-head { font-size: 26px; line-height: 1.02; font-weight: 700; letter-spacing: -0.02em; max-width: 13ch; margin-top: 6px; }
.ll-sub { font-size: 11.5px; color: #c9d1e6; max-width: 40ch; }
.ui-landing .ui-btn { background: #fff; color: #0f1a33; }
.ui-price { width: 210px; }
.price { font-size: 13px; color: #555; }
.price b { font-size: 34px; line-height: 1; color: #111; font-weight: 700; letter-spacing: -0.02em; }

.ui-queue { width: 250px; }
.q-card { /* taste-skill-ignore: product UI card */ border: 1px solid #e3e3e3; border-radius: 5px; padding: 7px 9px; display: grid; gap: 1px; }
.q-card span { color: #707070; font-size: 11px; }
.q-card.is-sel { border-color: #e7a64a; background: #fff7eb; }

/* ============ PROCESS ============ */
.process { margin-top: var(--section); padding: 0 var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); scroll-margin-top: var(--m); }
.process-head { grid-column: 1 / 7; display: grid; gap: 24px; }
.process-head p { font-size: var(--step-lead); line-height: 1.2; max-width: 42ch; }
.diagram-wrap { grid-column: 1 / -1; margin-top: 56px; background: var(--surface); padding: 32px 24px; }
.diagram { width: 100%; height: auto; }
.diagram-tall { display: none; }
.d-a { fill: #c9c9c9; }
.d-b { fill: #9d9d9d; }
.d-c { fill: var(--ink); }
.d-d { fill: var(--accent); }
.stages { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); margin-top: 32px; }
.stages li { padding-right: 24px; }
.stages h3 { font-size: var(--step-lead); font-weight: 700; margin-bottom: 10px; line-height: 1.1; }
.stages p { max-width: 44ch; }

/* ============ MARQUEE ============ */
.marquee { margin-top: var(--section); overflow: hidden; background: var(--field-1); color: var(--field-1-ink); padding: 28px 0 22px; }
.marquee-track { display: flex; width: max-content; align-items: center; animation: marquee 48s linear infinite; }
.marquee-track span:not(.sq) {
  font-size: clamp(3.5rem, 8vw, 8rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em;
  text-transform: uppercase; white-space: nowrap; padding: 0 0.35em;
}
.marquee .sq { width: 0.55em; height: 0.55em; font-size: clamp(3.5rem, 8vw, 8rem); background: var(--accent); flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ WHY ============ */
.why { margin-top: var(--section); padding: 0 var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); scroll-margin-top: var(--m); }
.why > .h-head { grid-column: 1 / 7; }
.why-lead { grid-column: 7 / 13; font-size: var(--step-lead); line-height: 1.2; max-width: 32ch; }
.why-tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 72px; }
.why-photo { grid-column: 1 / 9; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.why-note {
  position: absolute; top: 0; right: 0; width: 340px;
  background: var(--bg); padding: 20px 22px; font-size: var(--step-body); line-height: 1.45;
}
.why-side { grid-column: 9 / 13; display: grid; grid-template-rows: auto 1fr; gap: 24px; }
.why-mark { background: var(--field-1); aspect-ratio: 4 / 3.2; display: grid; place-items: center; padding: 15%; }
.why-mark svg { width: 100%; height: 100%; }
.why-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; align-content: start; }
.why-facts dt { font-size: var(--step-small); color: var(--muted); margin-bottom: 4px; }
.why-facts dd { font-size: var(--step-body); line-height: 1.3; font-weight: 500; }

/* ============ CTA ROW ============ */
.cta-row {
  margin-top: var(--section);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g);
  padding: 0 var(--m);
  scroll-margin-top: var(--m);
}
.cta-flank { grid-column: span 2; min-height: 400px; overflow: hidden; background: var(--surface-2); }
.cta-flank-photo { margin-left: calc(-1 * var(--m)); }
.cta-flank-ink { background: var(--field-1); margin-right: calc(-1 * var(--m)); }
.cta-tile {
  grid-column: 3 / 11;
  background: var(--accent); color: var(--accent-ink);
  padding: 48px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px;
}
.cta-tile p { max-width: 46ch; }
.cta-brief { background: rgba(255, 255, 255, 0.12); padding: 12px 14px; font-size: var(--step-small); }
.cta-tile .button { background: var(--bg); color: var(--ink); margin-top: 6px; }
.cta-tile .button:hover { background: var(--surface-2); }

/* ============ FOOTER ============ */
.footer {
  margin-top: var(--section);
  background: var(--field-1); color: var(--field-1-ink);
  padding: 56px var(--m) 20px;
}
.block-mark { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 200px; }
.block-mark span {
  flex: 1; height: var(--h);
  background: var(--surface);
  color: var(--field-1);
  display: flex; align-items: flex-end; justify-content: center;
  font-size: clamp(3rem, 10vw, 11rem); font-weight: 700; line-height: 0.76;
  overflow: hidden;
  transform-origin: bottom;
}
.block-mark span:nth-child(3n+2) { background: var(--surface-3); }
.block-mark span:nth-child(3n) { background: var(--bg); }
.block-mark span.is-accent { background: var(--accent); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); margin-bottom: 72px; }
.foot-links { grid-column: 1 / 5; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: var(--step-small); }
.foot-links a, .foot-contact a { text-decoration: none; transition: color var(--t-hover) var(--ease-out); }
.foot-links a:hover, .foot-contact a:hover { color: #8fa9ff; }
.foot-contact { grid-column: 5 / 9; font-size: var(--step-small); display: grid; gap: 6px; align-content: start; }
.foot-contact a { font-size: var(--step-lead); font-weight: 500; }
.credits { grid-column: 9 / 13; font-size: var(--step-small); color: #b5b5b5; line-height: 1.45; max-width: 70ch; }
.credits a { color: #e0e0e0; }
.foot-last { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: var(--step-small); }
.foot-last .button { background: var(--bg); color: var(--ink); }
.foot-last .button:hover { background: var(--surface-2); }

/* ============ MOTION ============ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo); transition-delay: calc(var(--stagger, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .name span { transform: translateY(105%); animation: rise 1100ms var(--ease-expo) forwards; }
  .js .name span + span { animation-delay: 120ms; }
  @keyframes rise { to { transform: none; } }

  .js .hero-nav .tile, .js .hero-left > *, .js .hero-stage, .js .hero-rail > * { opacity: 0; transform: translateY(20px); animation: tile-in 700ms var(--ease-expo) forwards; animation-delay: calc(240ms + var(--d, 0) * 70ms); }
  @keyframes tile-in { to { opacity: 1; transform: none; } }

  .js .diagram rect { opacity: 0; transform: translateY(12px); transform-box: fill-box; transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-expo); transition-delay: calc(var(--i) * 3ms); }
  .js .diagram-wrap.is-in .diagram rect { opacity: 1; transform: none; }

  .block-mark span { transition: transform 600ms var(--ease-out); }
  .block-mark span:hover { transform: scaleY(1.06); }

  .photo img, .why-photo img { transition: transform 1200ms var(--ease-out); }
  .photo:hover img, .why-photo:hover img { transform: scale(1.04); }
  #part-count.bump { animation: bump 360ms var(--ease-out); }
  @keyframes bump { 40% { transform: translateY(-8px); } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ TABLET & PHONE ============ */
@media (max-width: 960px) {
  :root { --pad: 20px; }
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; height: auto; }
  .name-band { height: auto; padding: 14px 0 10px; }
  .name { display: grid; font-size: 31vw; line-height: 0.78; text-align: center; transform: none; }
  .hero-nav { grid-template-columns: 1fr 1fr; }
  .hero-stage { grid-column: 1 / -1; grid-row: 3; aspect-ratio: 4 / 3; min-height: 0; }
  .hero-statement { position: static; width: auto; order: -1; }
  .hero-stage { aspect-ratio: auto; display: grid; grid-template-rows: auto auto; }
  .hero-stage video { position: static; aspect-ratio: 4 / 3; height: auto; }
  .hero-statement { font-size: clamp(1.375rem, 5.6vw, 2rem); background: var(--surface); }
  .hero-rail { grid-column: 1 / -1; grid-row: 4; grid-template-rows: none; grid-template-columns: repeat(4, 1fr) 2fr; }
  .rail-tile { min-height: 96px; padding: 12px; }
  .rail-tile, .rail-action { font-size: var(--step-body); }
  .hero-left { grid-column: 1 / -1; grid-row: 5; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .hero-portrait { aspect-ratio: auto; min-height: 220px; }

  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .mosaic > * { grid-row: auto !important; }
  .m-head, .cap, .cap-dark, .cap-grey, .m-photo-plan, .m-photo-steel { grid-column: 1 / -1; }
  .m-head { gap: 20px; }
  .m-photo-city { grid-column: 1 / -1; aspect-ratio: 3 / 2; order: 10; }
  .m-photo-plan, .m-photo-steel { aspect-ratio: 3 / 2; }
  .m-count { grid-column: 1 / 2; min-height: 220px; gap: 16px; }
  .m-say { grid-column: 2 / 3; min-height: 220px; }
  .m-photo-card { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .m-count { order: 2; } .m-say { order: 3; }
  .m-photo-plan { order: 0; } .m-head { order: 1; }
  .cap { order: 5; } .m-photo-steel { order: 6; } .cap-dark { order: 7; } .m-photo-card { order: 8; } .cap-grey { order: 9; }
  .m-figure { font-size: 2.25rem; }

  .work { grid-template-columns: 1fr; padding-right: 0; gap: 20px; }
  .work-rail { position: static; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; padding-right: var(--m); }
  .filters { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .strip-row { overflow-x: auto; scroll-snap-type: x mandatory; padding-right: var(--m); scrollbar-width: none; }
  .strip-row::-webkit-scrollbar { display: none; }
  .strip-row > * { scroll-snap-align: start; }
  .strip:hover .strip-row > * { transform: none; }
  .strip-caption { grid-template-columns: 1fr auto; }
  .strip-caption span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }

  .process-head, .why > .h-head, .why-lead { grid-column: 1 / -1; }
  .why-lead { margin-top: 16px; }
  .diagram-wrap { padding: 20px; }
  .stages { grid-template-columns: 1fr; gap: 28px; }

  .why-photo { grid-column: 1 / -1; aspect-ratio: auto; overflow: visible; background: none; }
  .why-photo img { aspect-ratio: 4 / 3; height: auto; }
  .why-note { position: static; width: auto; background: var(--surface); max-width: 60ch; }
  .why-side { grid-column: 1 / -1; }
  .why-tiles { margin-top: 40px; }

  .cta-row { grid-template-columns: 1fr 1fr; }
  .cta-tile { grid-column: 1 / -1; grid-row: 1; padding: 32px 24px; min-height: 320px; }
  .cta-flank { grid-column: span 1; min-height: 120px; margin: 0 !important; }

  .foot-links { grid-column: 1 / -1; }
  .foot-contact { grid-column: 1 / -1; margin-top: 24px; }
  .credits { grid-column: 1 / -1; margin-top: 24px; }
  .block-mark { height: 22svh; min-height: 140px; gap: 3px; }
  .block-mark span { font-size: 12vw; }
}
@media (max-width: 600px) {
  .hero-rail { grid-template-columns: 1fr 1fr; }
  .rail-tile { min-height: 72px; }
  .rail-action { grid-column: 1 / -1; min-height: 84px; font-size: var(--step-lead); }
  .hero-left { grid-template-columns: 1fr; }
  .hero-portrait { min-height: 0; aspect-ratio: 3 / 2; }
  .diagram-wide { display: none; }
  .diagram-tall { display: block; max-width: 340px; margin: 0 auto; }
  .why-facts { grid-template-columns: 1fr; }
}
