/* ==========================================================================
   Bay Tool & Die Makers — "The Showroom"
   ========================================================================== */

:root {
  --bg: #07080b;
  --bg-raised: #0d0f13;
  --bg-card: #111318;
  --bg-input: #15181e;
  --line: #1e2128;
  --line-strong: #2a2e37;
  --grid: rgba(255, 255, 255, 0.025);
  --text: #eceef1;
  --text-soft: #c3c7ce;
  --muted: #8b9099;
  --red: #d7262c;
  --red-hover: #e8353b;
  --blueprint: #9fb1c6;
  --ok: #34d17a;
  --note: #e7c46a;

  --font-display: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

[hidden] { display: none !important; }
.stats dd { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

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

/* Faint engineering grid behind sections */
.grid-bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.h-hero  { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.h-xl    { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; }
.h-lg    { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; }
.h-md    { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.25; }
.accent  { color: var(--red); }
.lede    { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-soft); max-width: 36em; }
.muted   { color: var(--muted); }
.mono, .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.eyebrow { display: block; margin-bottom: 18px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  font-weight: 700; font-size: 0.98rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-ghost { background: var(--bg-card); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: #4a505c; background: #161920; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-line {
  display: inline-block; font-weight: 600; color: var(--text);
  padding-bottom: 3px;
  background: linear-gradient(var(--red), var(--red)) left bottom / 100% 1.5px no-repeat;
  transition: background-size .3s var(--ease), color .2s;
}
.link-line:hover { color: #fff; background-size: 40% 1.5px; }

/* ---------- Corner brackets (signature detail) ---------- */
.bracket { position: relative; }
.bracket::before, .bracket::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 2;
}
.bracket::before { top: -1px; left: -1px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.bracket::after  { bottom: -1px; right: -1px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }

.panel { background: var(--bg-card); border: 1px solid var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would make it the containing block for the fixed mobile menu, squashing
   the menu to the header's height. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(7, 8, 11, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 60px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav ul a {
  position: relative; display: block; padding: 8px 0;
  font-size: 0.96rem; color: var(--text-soft);
  transition: color .2s;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav ul a:hover, .site-nav ul a.is-active { color: #fff; }
.site-nav ul a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .site-nav ul { gap: 18px; }
  .site-nav { gap: 20px; }
}
@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .brand img { height: 48px; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: transform .25s, background .25s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px var(--gutter) 40px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    overflow-y: auto;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .site-nav ul a.is-active { color: var(--red); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head .lede { justify-self: end; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .lede { justify-self: start; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hero-copy .lede { margin: 26px 0 34px; }
.hero h1 .accent { display: block; }

.drawing { position: relative; aspect-ratio: 6 / 5; }
.drawing svg { width: 100%; height: 100%; overflow: visible; }
.drawing .d-part { fill: rgba(215, 38, 44, 0.03); stroke: var(--red); stroke-width: 2; }
.drawing .d-feature { fill: none; stroke: var(--red); stroke-width: 1.6; }
.drawing .d-center { fill: none; stroke: var(--blueprint); stroke-width: .8; stroke-dasharray: 10 3 2 3; opacity: .7; }
.drawing .d-dim { fill: none; stroke: var(--blueprint); stroke-width: .9; opacity: .8; }
.drawing .d-ext { fill: none; stroke: var(--blueprint); stroke-width: .6; opacity: .5; }
.drawing .d-bend { fill: none; stroke: var(--blueprint); stroke-width: .9; stroke-dasharray: 5 4; opacity: .6; }
.drawing text { font-family: var(--font-mono); font-size: 11px; fill: var(--blueprint); }
.drawing .d-arrow { fill: var(--blueprint); opacity: .85; }
.drawing .d-gridline { stroke: rgba(255,255,255,.035); stroke-width: 1; }

.callout {
  position: absolute; z-index: 3;
  background: rgba(17, 19, 24, 0.92); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 10px 14px;
  opacity: 0; transform: translateY(8px);
  animation: callout-in .6s var(--ease) forwards;
}
.callout small { display: block; font-size: 0.78rem; color: var(--muted); }
.callout strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(0.95rem, 1.5vw, 1.2rem); letter-spacing: -0.02em; white-space: nowrap; }
.callout-a { right: -2%; top: 14%; animation-delay: 1.6s; }
.callout-b { left: -6%; top: 56%; animation-delay: 1.9s; }
.drawing-meta { position: absolute; left: 0; right: 0; bottom: -6px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; color: #5b616c; }
@keyframes callout-in { to { opacity: 1; transform: none; } }

/* SVG draw-on */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
.draw-2 { animation-delay: .5s; }
.draw-3 { animation-delay: .9s; }
.fade-late { opacity: 0; animation: fade 0.8s ease forwards 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .drawing { max-width: 560px; width: 100%; margin: 12px auto 0; }
  .callout-b { left: 0; }
  .callout-a { right: 0; top: 4%; }
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 80px); }
.stat { padding: 28px 24px 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .mono { display: block; margin-bottom: 8px; }
.stat strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -0.03em; line-height: 1.1; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}

/* ---------- Capabilities accordion ---------- */
.cap-box { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); background: var(--bg-raised); }
.cap-media { position: relative; overflow: hidden; min-height: 420px; background: #000; }
.cap-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform 1.2s var(--ease);
}
.cap-media img.is-active { opacity: 1; transform: none; }
.cap-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,8,11,.55)); }
.cap-list { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.cap-item { border-top: 1px solid var(--line); position: relative; }
.cap-item:first-child { border-top: 0; }
.cap-item.is-open { background: var(--bg-card); }
.cap-item.is-open::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--red); }
.cap-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px 36px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.7vw, 1.4rem); letter-spacing: -0.02em; color: var(--text-soft);
  transition: color .2s;
}
.cap-trigger:hover { color: #fff; }
.cap-item.is-open .cap-trigger { color: #fff; padding-bottom: 12px; }
.cap-trigger .plus { position: relative; width: 14px; height: 14px; flex: none; }
.cap-trigger .plus::before, .cap-trigger .plus::after { content: ""; position: absolute; background: var(--muted); left: 0; right: 0; top: 50%; height: 1.5px; transition: transform .3s var(--ease); }
.cap-trigger .plus::after { transform: rotate(90deg); }
.cap-item.is-open .plus::after { transform: rotate(0); }
.cap-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.cap-item.is-open .cap-panel { grid-template-rows: 1fr; }
.cap-panel > div { overflow: hidden; }
.cap-panel-inner { padding: 0 36px 32px; }
.cap-panel-inner > p { color: var(--text-soft); margin-bottom: 18px; }
.cap-panel-inner .link-line { margin-top: 26px; }
.cap-media-mobile { display: none; }

@media (max-width: 880px) {
  .cap-box { grid-template-columns: 1fr; }
  .cap-media { display: none; }
  .cap-list { border-left: 0; }
  .cap-item.is-open::before { display: none; }
  .cap-media-mobile { display: block; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 20px; }
  .cap-trigger { padding: 22px 20px; }
  .cap-panel-inner { padding: 0 20px 26px; }
}

/* Spec tables */
.specs { width: 100%; border-collapse: collapse; }
.specs tr { border-bottom: 1px solid var(--line-strong); }
.specs th, .specs td { padding: 11px 0; font-size: 0.95rem; }
.specs th { text-align: left; font-weight: 400; color: var(--muted); }
.specs td { text-align: right; font-family: var(--font-mono); font-size: 0.86rem; color: var(--text); white-space: nowrap; padding-left: 12px; }

/* ---------- Improvement ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.kpi { padding: 28px 26px 30px; display: flex; flex-direction: column; }
.kpi .mono { margin-bottom: 18px; }
.kpi-value { font-family: var(--font-display); font-size: clamp(2.8rem, 4.6vw, 3.9rem); letter-spacing: -0.04em; line-height: 1; }
.kpi-unit { color: var(--muted); margin: 6px 0 18px; }
.kpi p.kpi-text { color: var(--text-soft); font-size: 0.98rem; margin-bottom: 28px; }
.kpi-foot { margin-top: auto; }
.bar-row { margin-top: 14px; }
.bar-row .bar-label { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 7px; }
.bar { height: 8px; background: #20232b; border-radius: 1px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: #6b717d; transition: width 1.2s var(--ease); }
.bar.bar-now span { background: var(--red); }
.in-view .bar span { width: var(--w); }
.dial { width: 112px; height: 112px; margin-top: 4px; }
.dial circle { fill: none; stroke-width: 8; }
.dial .dial-track { stroke: #20232b; }
.dial .dial-fill { stroke: var(--red); stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s var(--ease); }
.in-view .dial .dial-fill { stroke-dasharray: 15 100; }
.dial text { font-family: var(--font-mono); font-size: 13px; fill: var(--text); }
@media (max-width: 1000px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .kpi-grid { grid-template-columns: 1fr; } }

/* ---------- Energy ---------- */
.energy { position: relative; overflow: hidden; isolation: isolate; }
.energy-bg { position: absolute; inset: 0; z-index: -1; }
.energy-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) blur(1px); opacity: .8; transform: scale(1.04); }
.energy-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,11,.9) 0%, rgba(7,8,11,.55) 50%, rgba(7,8,11,.35) 100%), linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.energy-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.energy-grid .lede { margin: 22px 0 28px; }
.energy-stats { display: grid; gap: 18px; }
.energy-stat { padding: 22px 26px; background: rgba(13, 15, 19, .88); border: 1px solid var(--line); backdrop-filter: blur(4px); }
.energy-stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.15; }
.energy-stat span { color: var(--text-soft); font-size: 0.98rem; }
@media (max-width: 880px) { .energy-grid { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.industry { padding: 32px 28px 8px; border-left: 1px solid var(--line); }
.industry:first-child { border-left: 0; padding-left: 0; }
.industry h3 { margin-bottom: 12px; }
.industry p { color: var(--text-soft); font-size: 0.98rem; }
@media (max-width: 900px) {
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .industry { border-left: 0; padding-left: 0; padding-bottom: 24px; }
  .industry:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .industry-grid { grid-template-columns: 1fr; }
  .industry:nth-child(even) { padding-left: 0; border-left: 0; }
  .industry + .industry { border-top: 1px solid var(--line); }
}

.banner { margin-top: clamp(48px, 7vw, 72px); padding: 36px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.banner h3 { margin-bottom: 6px; }
.banner p { color: var(--text-soft); }
@media (max-width: 720px) { .banner { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }

/* ---------- Quote ---------- */
.quote-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.quote-grid .lede { margin: 18px 0 32px; }
.contact-block { border-top: 1px solid var(--line); padding-top: 26px; color: var(--text-soft); line-height: 1.55; }
.contact-block strong { color: var(--text); font-weight: 700; }
.contact-block p + p { margin-top: 18px; }
.contact-block a:hover { color: #fff; }
.form-card { padding: clamp(24px, 3vw, 32px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--text-soft); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg-input); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #3a3f4a; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #181b22; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field .error { font-size: 0.82rem; color: #ff7a7e; }
.field .error:empty { display: none; }

.dropzone {
  grid-column: 1 / -1; position: relative;
  border: 1px dashed #3a3f4a; border-radius: var(--radius); background: rgba(21,24,30,.5);
  padding: 22px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--red); background: rgba(215,38,44,.05); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone strong { display: block; font-weight: 700; }
.dropzone span { font-size: 0.88rem; color: var(--muted); }
.dropzone .file-name { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-status { font-size: 0.9rem; color: var(--muted); }
.form-status.is-error { color: #ff7a7e; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 880px) { .quote-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Detail pages ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero h1 { margin-bottom: 22px; }
.page-hero .lede { margin-bottom: 32px; }
.page-hero-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: #fff; }
.detail-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: start; padding-bottom: clamp(72px, 9vw, 112px); }
.glance { padding: 28px; }
.glance h2 { margin-bottom: 12px; }
.glance .muted { margin: 26px 0 12px; font-size: 0.95rem; }
.glance .btn-row { gap: 10px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery figure { margin: 0; position: relative; aspect-ratio: 7 / 5; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font-size: 0.9rem; font-weight: 500; background: linear-gradient(transparent, rgba(7,8,11,.9)); }
.detail-more { border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .page-hero-grid, .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Simple content pages ---------- */
.prose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.prose-card { padding: 30px; }
.prose-card h2 { margin-bottom: 12px; }
.prose-card p { color: var(--text-soft); }
.prose-card p + p { margin-top: 12px; }
.prose-card .link-line { margin-top: 20px; }
.prose-card.wide { grid-column: 1 / -1; }
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.split-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); }
.role-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.role-list li:first-child { border-top: 1px solid var(--line); }
.role-list small { display: block; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 820px) { .prose-grid, .split-media { grid-template-columns: 1fr; } }

/* "Content to come" marker for copy BTD still needs to supply. grep for "todo" */
.todo {
  display: inline-block; font-size: 0.82rem; color: var(--note);
  border: 1px dashed rgba(231, 196, 106, .55); background: rgba(231, 196, 106, .06);
  padding: 3px 9px; border-radius: 2px;
}

/* ---------- Status page ---------- */
.status { padding: clamp(64px, 10vw, 120px) 0; min-height: 56vh; }
.status-card { max-width: 720px; padding: clamp(32px, 5vw, 52px); }
.status-card h1 { margin: 24px 0 14px; }
.status-card p { color: var(--text-soft); margin-bottom: 30px; max-width: 34em; }
.tick { width: 48px; height: 48px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; }
.tick svg { width: 20px; height: 20px; stroke: #07210f; stroke-width: 3; fill: none; }
.status-card .todo { margin: -12px 0 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 64px; padding-bottom: 56px; }
.footer-brand img { width: 190px; height: auto; margin-bottom: 18px; }
.motto { font-family: var(--font-display); font-size: 0.84rem; line-height: 1.9; letter-spacing: 0.06em; color: var(--text-soft); }
.footer-title { font-family: var(--font-body); font-size: 0.96rem; font-weight: 700; margin-bottom: 14px; }
.footer-links { color: var(--muted); font-size: 0.95rem; line-height: 2.05; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .draw { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
