/* Kieffer Machine LLC — site styles. Colors, fonts and spacing live in theme.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite-900);
  font: 400 17px/1.65 var(--font-body);
  overflow-x: hidden;
}
img, canvas, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 12px 18px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.05rem; letter-spacing: 0.02em; line-height: 1.2; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--steel-600); max-width: 62ch; }
.on-dark .lede { color: var(--steel-300); }

/* Drawing-callout label that sits above section headings */
.callout {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.74rem/1 var(--font-mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 18px;
}
.callout::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.on-dark .callout { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  font: 700 0.86rem/1.2 var(--font-display); font-stretch: 112%;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; text-align: center;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur), border-color var(--dur), color var(--dur);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--graphite-950); }
.btn-primary:hover { background: #5ad6ea; }
.btn-ghost { border-color: var(--steel-500); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--graphite-900); color: var(--white); }
.btn-dark:hover { background: var(--graphite-700); }
.btn-outline { border-color: var(--graphite-900); color: var(--graphite-900); }
.btn-outline:hover { background: var(--graphite-900); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Preview bar + editor notes (amber = never public design) ---------- */
.preview-bar {
  background: var(--editor); color: #2a1a02;
  font: 500 0.76rem/1.4 var(--font-mono); letter-spacing: 0.04em;
  padding: 8px var(--gutter); text-align: center;
}
.pending {
  display: inline-block; background: var(--editor-bg); color: var(--editor-ink);
  border: 1px dashed var(--editor); border-radius: 4px;
  font: 500 0.78rem/1.4 var(--font-mono); padding: 3px 8px;
}
.slot-empty {
  aspect-ratio: var(--ratio, 4 / 3); width: 100%;
  display: grid; place-content: center; gap: 6px; text-align: center; padding: 16px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(240,162,59,.13) 14px 15px),
    var(--editor-bg);
  border: 1.5px dashed var(--editor); border-radius: var(--radius);
  color: var(--editor-ink); font: 500 0.74rem/1.45 var(--font-mono);
}
.slot-empty b { font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.7rem; }
.slot-empty span { max-width: 34ch; }

/* ---------- Media slots ---------- */
.slot { margin: 0; }
.slot img {
  width: 100%; aspect-ratio: var(--ratio, 4 / 3);
  object-fit: cover; object-position: var(--focal, 50% 50%);
  border-radius: var(--radius); background: var(--steel-200);
}
.slot figcaption { font: 400 0.8rem/1.4 var(--font-mono); color: var(--steel-600); margin-top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,16,19,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--graphite-700); color: var(--white);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand svg { width: 48px; height: 48px; flex: none; overflow: visible; }
.brand-name { display: grid; line-height: 1; }
.brand-name b {
  font: 900 1.32rem/1 var(--font-display); font-stretch: 125%; letter-spacing: 0.01em; text-transform: uppercase;
}
.brand-name span {
  font: 600 0.6rem/1 var(--font-display); font-stretch: 112%;
  letter-spacing: 0.38em; text-transform: uppercase; color: var(--steel-300); margin-top: 5px;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: var(--steel-200); text-decoration: none; padding: 10px 12px; border-radius: 4px;
  font: 600 0.78rem/1 var(--font-display); font-stretch: 108%; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav .btn { min-height: 42px; padding: 8px 16px; margin-left: 10px; font-size: 0.76rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--graphite-700); border-radius: 6px;
  color: var(--white); width: 46px; height: 46px; cursor: pointer; padding: 0;
}
.nav-toggle svg { margin: auto; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--graphite-950); border-bottom: 1px solid var(--graphite-700);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 16px 4px; font-size: 0.9rem; border-bottom: 1px solid var(--graphite-800); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav .btn { margin: 16px 0 0; min-height: 50px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.on-dark { background: var(--graphite-950); color: var(--white); }
.on-steel { background: var(--steel-100); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 780px; }

/* Blueprint grid used on dark hero surfaces */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(148,159,169,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,159,169,.07) 1px, transparent 1px),
    linear-gradient(rgba(148,159,169,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,159,169,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 100%);
}

/* ---------- Hero (mascot-led) ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(20px, 3vw, 40px) 0; }
/* warm shop light top-right + cool machine glow behind the mascot, echoing the mascot art */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 60% at 76% 48%, rgba(34,193,220,.20), transparent 70%),
    radial-gradient(ellipse 34% 40% at 96% 4%, rgba(240,162,59,.20), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(34,193,220,.07), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(16px, 3vw, 48px); align-items: center; }
.hero-copy { padding-block: clamp(20px, 3vw, 40px); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); margin-bottom: 0.45em; }
.hero h1 span {
  display: block;
  background: linear-gradient(100deg, #8d99a3 0%, #f2f5f7 28%, #7c8892 52%, #dfe4e8 76%, #98a3ad 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-tags li {
  font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel-300); border: 1px solid var(--graphite-700); border-radius: 100px; padding: 8px 12px;
  background: rgba(29,35,41,.6);
}
.hero-mascot { position: relative; justify-self: center; width: min(100%, 560px); margin-block: -10px -30px; }
.hero-mascot .mascot { box-shadow: none; background: none; border-radius: 0; overflow: visible; }
/* the scene fades into the page instead of sitting in a box */
.hero-mascot .mascot-stage {
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero-mascot .mascot-toggle { right: 14%; bottom: 4%; }
.hero-mascot .hello {
  position: absolute; left: 0; top: 9%; z-index: 2;
  font: 500 0.68rem/1.5 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  padding-left: 46px;
}
.hero-mascot .hello::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 36px; height: 1px; background: currentColor; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-mascot { order: -1; width: min(100%, 400px); margin-block: 0 8px; }
  .hero-mascot .mascot-toggle { right: 6%; bottom: 9%; }
  .hero-mascot .mascot { aspect-ratio: 1 / 1; }
  .hero-mascot .mascot img, .hero-mascot .mascot canvas { object-position: 50% 8%; }
  .hero-mascot .hello { display: none; }
  .hero-copy { padding-top: 0; }
}

/* ---------- Ticker band ---------- */
.ticker { background: var(--accent); color: var(--graphite-950); overflow: hidden; border-block: 1px solid rgba(0,0,0,.25); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker ul { list-style: none; display: flex; flex: none; }
.ticker li { font: 800 0.82rem/1 var(--font-display); font-stretch: 118%; letter-spacing: 0.1em; text-transform: uppercase; padding: 15px 0; white-space: nowrap; }
.ticker li::after { content: "◆"; font-size: 0.55em; margin-inline: 26px; vertical-align: 0.2em; opacity: .55; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Capability tiles (home) ---------- */
.tiles { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); list-style: none; }
.tile {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--steel-200); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 14px 34px -22px rgba(13,16,19,.45);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 26px 48px -24px rgba(13,16,19,.55); border-color: var(--steel-400); }
.tile .slot img, .tile .art { border-radius: 0; aspect-ratio: 4 / 3; }
.tile .slot img { transition: transform 600ms var(--ease); }
.tile:hover .slot img { transform: scale(1.04); }
.tile-media { position: relative; overflow: hidden; }
.tile-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile-body h3 { margin: 0; font-size: 1.12rem; }
.tile-body p { color: var(--steel-600); font-size: 0.95rem; }
.tile .more { margin-top: auto; padding-top: 8px; font: 600 0.74rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.tile .more::after { content: ""; position: absolute; inset: 0; } /* whole tile is clickable */
.tile-num { position: absolute; left: 14px; top: 12px; z-index: 1; font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.16em; color: var(--white); background: rgba(13,16,19,.72); padding: 6px 9px; border-radius: 3px; }
/* designed stand-in when a photo slot is empty: blueprint line art on dark brushed metal */
.art {
  width: 100%; display: grid; place-items: center; color: var(--accent);
  background:
    linear-gradient(rgba(148,159,169,.09) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(148,159,169,.09) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--brushed-dark);
}
.art svg { width: 46%; height: auto; overflow: visible; }
.slot-tag { position: absolute; right: 10px; bottom: 10px; z-index: 1; background: var(--editor); color: #2a1a02; font: 500 0.62rem/1.3 var(--font-mono); padding: 4px 7px; border-radius: 3px; max-width: 80%; }

/* ---------- Steps (home process) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.steps li { position: relative; padding: 0 28px 0 0; }
.steps li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--graphite-700) 70%);
}
.steps .n {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--graphite-950); border: 1px solid var(--accent); color: var(--accent);
  font: 600 0.78rem/1 var(--font-mono); margin-bottom: 22px; box-shadow: 0 0 22px -4px var(--accent-glow);
}
.steps h3 { color: var(--white); }
.steps p { color: var(--steel-300); font-size: 0.95rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 64px; }
  .steps li::before { left: 21px; right: auto; top: 0; bottom: -28px; width: 1px; height: auto; background: var(--graphite-700); }
  .steps li:last-child::before { display: none; }
  .steps .n { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Reasons (why us) ---------- */
.reasons { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--steel-300); }
.reasons li { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; padding: 30px 28px 32px 0; border-bottom: 1px solid var(--steel-300); }
.reasons li:nth-child(odd) { border-right: 1px solid var(--steel-300); }
.reasons li:nth-child(even) { padding-left: 28px; }
.reasons .n { grid-row: span 2; font: 900 2.6rem/0.9 var(--font-display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 1.5px var(--steel-400); }
.reasons h3 { margin: 0; align-self: end; }
.reasons p { color: var(--steel-600); font-size: 0.97rem; }
@media (max-width: 760px) {
  .reasons { grid-template-columns: 1fr; }
  .reasons li, .reasons li:nth-child(even) { padding: 26px 0; border-right: 0 !important; }
}

/* spec sheet on dark */
.on-dark .spec-table { box-shadow: 0 30px 70px -30px rgba(0,0,0,.8), 0 0 0 1px var(--graphite-700); }
.on-dark .fine { color: var(--steel-400); }
.glance { border-left: 2px solid var(--accent); padding-left: 18px; color: var(--steel-200); margin-top: 22px; max-width: 58ch; }

/* Title block: the spec strip under the hero, styled like a drawing's title block */
.title-block {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--graphite-700); border-bottom: 0;
  background: var(--brushed-dark);
}
.title-block div { padding: 16px 18px; border-right: 1px solid var(--graphite-700); min-width: 0; }
.title-block div:last-child { border-right: 0; }
.title-block dt { font: 400 0.64rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-400); margin-bottom: 8px; }
.title-block dd { margin: 0; font: 700 0.98rem/1.25 var(--font-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.02em; }
@media (max-width: 860px) {
  .title-block { grid-template-columns: 1fr 1fr; }
  .title-block div { border-bottom: 1px solid var(--graphite-700); }
  .title-block div:nth-child(2n) { border-right: 0; }
  .title-block div:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* Inner page hero */
.page-hero { padding-block: clamp(48px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); }

/* ---------- Plate cards (brushed metal + countersunk screws) ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); list-style: none; }
.plate {
  position: relative; background: var(--white); border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 1px 0 var(--white) inset, 0 10px 30px -18px rgba(13,16,19,.35);
}
.plate::before, .plate::after {
  content: ""; position: absolute; top: 10px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--graphite-800) 0 28%, var(--steel-300) 32% 60%, var(--steel-100) 64%);
  box-shadow: 0 0 0 1px var(--steel-300);
}
.plate::before { left: 10px; } .plate::after { right: 10px; }
.plate h3 { margin: 0; }
.plate p { color: var(--steel-600); font-size: 0.96rem; }
.plate .slot, .plate .slot-empty { margin-bottom: 4px; }
.plate .more { margin-top: auto; font: 600 0.76rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.plate .more:hover { text-decoration: underline; }
.plate-num { font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.16em; color: var(--steel-500); }

/* ---------- Spec table (fit facts) ---------- */
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--brushed); border: 1px solid var(--steel-300); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid rgba(85,96,106,.28); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 38%; font: 500 0.7rem/1.5 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-600); white-space: nowrap; }
.spec-table td { font-weight: 600; font-size: 0.98rem; line-height: 1.45; color: var(--graphite-900); }
.fine { font-size: 0.86rem; color: var(--steel-600); margin-top: 14px; }
@media (max-width: 860px) { .spec { grid-template-columns: 1fr; } .spec-table th { white-space: normal; } }

/* ---------- Process: numbered like a shop traveler (OP 10, OP 20…) ---------- */
.ops { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--graphite-700); border-left: 1px solid var(--graphite-700); }
.ops li { padding: 26px 24px 30px; border-right: 1px solid var(--graphite-700); border-bottom: 1px solid var(--graphite-700); }
.ops .op { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.16em; color: var(--accent); margin-bottom: 14px; display: block; }
.ops h3 { color: var(--white); }
.ops p { color: var(--steel-300); font-size: 0.95rem; }
.ops.light { border-color: var(--steel-200); }
.ops.light li { border-color: var(--steel-200); background: var(--white); }
.ops.light .op { color: var(--accent-ink); }
.ops.light h3 { color: var(--graphite-900); }
.ops.light p { color: var(--steel-600); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; }
.project { background: var(--white); border: 1px solid var(--steel-200); border-radius: var(--radius-lg); overflow: hidden; }
.project .slot img, .project .slot-empty { border-radius: 0; border-width: 0 0 1.5px; }
.project-body { padding: 18px 20px 22px; }
.project dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 0.88rem; }
.project dt { font: 500 0.66rem/1.9 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-500); }
.project dd { margin: 0; color: var(--graphite-800); }

/* ---------- Mascot feature ---------- */
.mascot-grid { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.mascot { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #0c1219; box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 0 1px var(--graphite-700), 0 0 80px -20px var(--accent-glow); }
.mascot img, .mascot canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mascot canvas { opacity: 0; transition: opacity 400ms; }
.mascot.ready canvas { opacity: 1; }
.mascot-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(11,23,38,.88); color: var(--white); border: 1px solid rgba(255,255,255,.35);
  border-radius: 22px; padding: 9px 15px; font: 600 0.74rem/1 var(--font-body); cursor: pointer;
}
.mascot-toggle:hover { border-color: var(--white); }
@media (max-width: 860px) { .mascot-grid { grid-template-columns: 1fr; } .mascot { max-width: 380px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--steel-300); }
.faq details:first-of-type { border-top: 1px solid var(--steel-300); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font: 700 1.02rem/1.35 var(--font-display); font-stretch: 108%;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%;
  font: 400 1.6rem/1 var(--font-mono); color: var(--accent-ink); transition: rotate var(--dur) var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 44px 22px 0; color: var(--steel-600); max-width: 70ch; }

/* ---------- Contact ---------- */
.contact-band { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.contact-list { list-style: none; display: grid; gap: 0; border: 1px solid var(--graphite-700); border-radius: var(--radius); background: var(--brushed-dark); }
.contact-list li { padding: 18px 20px; border-bottom: 1px solid var(--graphite-700); display: grid; gap: 6px; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { font: 400 0.66rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-400); }
.contact-list .v { font-weight: 600; font-size: 1.05rem; color: var(--white); overflow-wrap: anywhere; }
.contact-list .v a { color: var(--white); }
.contact-list.light { background: var(--brushed); border-color: var(--steel-300); }
.contact-list.light li { border-color: rgba(85,96,106,.28); }
.contact-list.light .k { color: var(--steel-600); }
.contact-list.light .v, .contact-list.light .v a { color: var(--graphite-900); }
@media (max-width: 860px) { .contact-band { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.checklist { list-style: none; display: grid; gap: 0; }
.checklist li { padding: 13px 0 13px 34px; border-bottom: 1px solid var(--steel-200); position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 16px; height: 16px;
  border: 2px solid var(--accent-ink); border-radius: 3px;
  background: linear-gradient(135deg, transparent 45%, var(--accent-ink) 45% 55%, transparent 55%) no-repeat center / 0 0;
}
.prose h2 { margin-top: 1.6em; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 68ch; color: var(--graphite-800); }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite-950); color: var(--steel-300); border-top: 1px solid var(--graphite-700); padding-block: 48px 32px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.16em; color: var(--steel-400); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--steel-200); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--graphite-800); font: 400 0.74rem/1.5 var(--font-mono); color: var(--steel-500); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.lost .mascot { width: min(300px, 70vw); margin: 0 auto 32px; }

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

/* Mascot always plays: pause control is invisible until reached with the keyboard */
.mascot-toggle:not(:focus-visible) { opacity: 0; pointer-events: none; }

/* ---------- Quote form ---------- */
.contact-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-cols { grid-template-columns: 1fr; } }
.aside-h { font-size: 1.05rem; letter-spacing: 0.02em; margin-bottom: 16px; }
.quote-form { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--steel-200); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 34px); box-shadow: 0 20px 50px -30px rgba(13,16,19,.4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row.three { grid-template-columns: 1.3fr 0.8fr 1fr; }
@media (max-width: 620px) { .field-row, .field-row.three { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-600); }
.field > span i { font-style: normal; color: var(--accent-ink); margin-left: 6px; letter-spacing: 0.08em; }
.field input:not([type="file"]), .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--graphite-900);
  background: var(--paper); border: 1.5px solid var(--steel-300); border-radius: var(--radius); padding: 13px 14px;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); background: var(--white); box-shadow: 0 0 0 3px var(--accent-glow); }
.field input::placeholder, .field textarea::placeholder { color: var(--steel-400); }
.field.file input { font: 400 0.92rem var(--font-body); padding: 18px 14px; border: 1.5px dashed var(--steel-400); border-radius: var(--radius); background: var(--paper); width: 100%; cursor: pointer; }
.field.file input::file-selector-button { font: 700 0.74rem var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; background: var(--graphite-900); color: var(--white); border: 0; border-radius: 4px; padding: 10px 14px; margin-right: 14px; cursor: pointer; }
.field small { font-size: 0.82rem; color: var(--steel-600); line-height: 1.45; }
.field .file-list { color: var(--graphite-900); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-foot .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; font-size: 0.95rem; flex: 1 1 260px; }
.form-status.success { color: #0b6b3a; font-weight: 600; }
.form-status.error { color: #a12a1e; font-weight: 600; }

/* ---------- Shop-floor video ---------- */
.floor-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.shop-video { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px var(--graphite-700); background: var(--graphite-900); }
.shop-video video { width: 100%; aspect-ratio: var(--ratio, 16 / 9); object-fit: cover; display: block; }
.shop-video figcaption { font: 400 0.8rem/1.4 var(--font-mono); color: var(--steel-400); padding: 10px 14px; }
@media (max-width: 860px) { .floor-grid { grid-template-columns: 1fr; } }
