/* Rustbelt Web Development — site styles. Tokens match brand-guide/assets/colors/tokens.css. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Variable.woff2?v=950373b8ef") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: optional;   /* preloaded; if it isn't ready by first paint, keep the fallback (no layout shift) */
}
@font-face {
  font-family: "Big Shoulders Stencil";
  src: url("../fonts/BigShouldersStencil-Variable.woff2?v=429e702a04") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2?v=cca4f95a91") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --charcoal: #20282B;
  --rust: #B64C32;
  --ivory: #F3F0E8;
  --steel: #73858B;
  /* proposed additions */
  --deep-rust: #7A3322;
  --rust-light: #DE8064;   /* 4.81:1 on night cards, 5.27:1 on charcoal */
  --steel-dark: #4B5A60;   /* 6.29:1 on ivory, 5.39:1 on paper */
  --paper: #E4DFD3;

  --font: "Archivo", Arial, Helvetica, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --gutter: 24px;
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* Day shift (default) */
[data-theme="day"] {
  --bg: var(--ivory);
  --bg-alt: var(--paper);
  --surface: #FFFFFF;
  --ink: var(--charcoal);
  --ink-soft: var(--steel-dark);
  --accent: var(--rust);           /* 4.53:1 on ivory */
  --accent-strong: var(--deep-rust);
  --line: rgba(32, 40, 43, .14);
  --grid-line: 115, 133, 139;
  --bridge-shade: var(--charcoal);
  --bridge-rust: var(--rust);
  color-scheme: light;
}
/* Night shift */
[data-theme="night"] {
  --bg: #1A2124;
  --bg-alt: var(--charcoal);
  --surface: #262F32;
  --ink: var(--ivory);
  --ink-soft: #AEB8BB;
  --accent: var(--rust-light);     /* 4.81:1 on cards, 5.27:1 on charcoal */
  --accent-strong: #E89377;
  --line: rgba(243, 240, 232, .14);
  --grid-line: 174, 184, 187;
  --bridge-shade: var(--deep-rust);
  --bridge-rust: var(--rust);
  color-scheme: dark;
}

/* Paper sections (day shift): Burnt Rust text fails on Paper (3.88:1), so text set directly on Paper uses
   Deep Rust (6.8:1). Cards inside these sections are white and keep Burnt Rust (5.16:1). */
[data-theme="day"] :is(.services, .meaning, .promise) > .wrap > .section-head .eyebrow { color: var(--deep-rust); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); font-weight: 600; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
main:focus { outline: none; }   /* focus target for the skip link */
.skip:focus { left: 16px; top: 16px; background: var(--charcoal); color: var(--ivory); padding: 8px 12px; z-index: 100; }

h1, h2, h3 { margin: 0 0 16px; line-height: 1.02; }
h2 { font-stretch: 75%; font-weight: 800; font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.005em; }
h3 { font-weight: 650; font-size: 21px; line-height: 1.25; }
.eyebrow {
  margin: 0 0 14px;
  font-stretch: 125%; font-weight: 600; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.plate { display: block; width: 36px; height: 4px; background: var(--rust); margin-bottom: 18px; }
.fineprint { font: 400 13px/1.5 var(--mono); color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 22px; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--rust); color: var(--ivory);
  font: 600 15px/1 var(--font); text-decoration: none;
  transition: background-color .2s, color .2s, transform .25s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--deep-rust); color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { min-height: 40px; padding: 10px 16px; font-size: 14px; }
.call-short { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand { flex-shrink: 0; } .brand-text { white-space: nowrap; }
.brand-text b { font-stretch: 75%; font-weight: 850; font-size: 30px; letter-spacing: .01em; text-transform: uppercase; }
.brand-text small { font-stretch: 125%; font-weight: 600; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; margin-top: 4px; }
.brand:hover { color: var(--ink); }
.logo-night { display: none !important; }
[data-theme="night"] .logo-day { display: none !important; }
[data-theme="night"] .logo-night { display: block !important; }
nav { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a, .call { white-space: nowrap; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--rust);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 2px;
  background: none; color: var(--ink); font: 600 14px/1 var(--font); cursor: pointer; }
.mt-bars, .mt-bars::before, .mt-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform .25s var(--ease), opacity .2s; }
.mt-bars { position: relative; }
.mt-bars::before, .mt-bars::after { content: ""; position: absolute; left: 0; }
.mt-bars::before { top: -6px; } .mt-bars::after { top: 6px; }
.menu-open .mt-bars { background: transparent; }
.menu-open .mt-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .mt-bars::after { transform: translateY(-6px) rotate(-45deg); }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; border: 0; background: none; cursor: pointer;
  color: var(--ink); font: 500 13px/1 var(--mono);
}
.tt-label { display: inline-block; width: 11ch; text-align: left; white-space: nowrap; } /* fits "Night shift": no shift when toggling */
.tt-track { width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; box-shadow: inset 0 0 0 1px var(--line); }
.tt-knob {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--rust);
  transition: transform .35s var(--ease);
}
[data-theme="night"] .tt-knob { transform: translateX(16px); background: var(--rust-light); }

/* ---------- 1. hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 110px 0 72px; }
.grid-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.hero-title {
  font-weight: 850; font-size: clamp(48px, 7.4vw, 108px); line-height: .92; letter-spacing: -.01em;
  font-stretch: 80%;
  margin-bottom: 26px;
}
.hero-title span { display: inline-block; }
.hero-title .accent { color: var(--accent); }
.lede { font-size: clamp(17px, 1.5vw, 20px); max-width: 32em; color: var(--ink); }
.hero-art img { width: 100%; height: auto; }
.art-night { display: none !important; }
[data-theme="night"] .art-day { display: none !important; }
[data-theme="night"] .art-night { display: block !important; }

/* ---------- 2. kinetic band ---------- */
.kinetic { background: var(--charcoal); color: var(--ivory); padding: 34px 0; overflow: hidden; position: relative; }
.k-pause { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 6px 10px; border: 0; border-radius: 2px; background: rgba(32, 40, 43, .85); color: var(--ivory);
  font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(243, 240, 232, .3); }
.k-pause:hover { box-shadow: inset 0 0 0 1px var(--ivory); }
.kinetic::before, .kinetic::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: url("../img/truss-band-steel.svg?v=e11417d307") repeat-x left center / auto 12px; opacity: .55;
}
.kinetic::before { top: 6px; } .kinetic::after { bottom: 6px; }
.k-row {
  display: flex; align-items: center; gap: 36px; width: max-content; white-space: nowrap;
  font-stretch: 75%; font-weight: 850; font-size: clamp(56px, 9vw, 132px); line-height: 1.04; text-transform: uppercase;
  will-change: transform;
}
.k-row i { width: .28em; height: .28em; border-radius: 50%; background: var(--rust); flex: none; }
.k-outline { color: transparent; -webkit-text-stroke: 1.5px var(--steel); }
.k-outline i { background: transparent; box-shadow: inset 0 0 0 2px var(--steel); }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 18px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 3. what we do ---------- */
.services { background: var(--bg-alt); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 900px; }
.svc {
  display: flex; flex-direction: column; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 30px 26px 26px;
  transform-style: preserve-3d; transition: transform .25s var(--ease), box-shadow .3s;
  --rx: 0deg; --ry: 0deg; transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.svc::before { /* rust plate along the top edge, grows on hover */
  content: ""; position: absolute; left: 26px; top: -1px; height: 4px; width: 36px; background: var(--rust);
  transition: width .45s var(--ease);
}
.svc:hover { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); }
.svc:hover::before { width: calc(100% - 52px); }
.svc-icon { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-icon * { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease) .15s; }
.svc.reveal:not(.in) .svc-icon * { stroke-dashoffset: 1; }  /* icons draw themselves as cards reveal */
.svc code { display: block; font: 400 12px/1 var(--mono); color: var(--ink-soft); margin: 22px 0 10px; letter-spacing: .08em; }
.svc h3 { font-stretch: 75%; font-weight: 800; font-size: 30px; line-height: 1.05; margin-bottom: 10px; }
.svc p { margin: 0 0 18px; color: var(--ink-soft); }
.svc-tags { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc-tags li { font: 400 12px/1 var(--mono); padding: 7px 9px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.svc-ask { margin-top: auto; font-size: 15px; text-decoration: none; display: inline-flex; gap: 6px; align-self: flex-start; }
.svc-ask span { transition: transform .25s var(--ease); }
.svc-ask:hover span { transform: translateX(4px); }
@keyframes flash { 0%, 100% { box-shadow: inset 0 0 0 1.5px var(--line); } 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--rust) 45%, transparent); } }
.builder input + span.flash { animation: flash 1.2s var(--ease) 2; }

/* ---------- 4. process ---------- */
.process-track { position: relative; }
.process-line { position: absolute; left: 0; right: 0; top: 7px; width: 100%; height: 10px; overflow: visible; }
.process-line path { fill: none; stroke: var(--rust); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - 1000 * var(--draw, 0)); }
.process-track::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; border-top: 1px dashed var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps li { padding-top: 46px; position: relative; }   /* text stays full strength; the line and nodes show progress */
.steps .node {
  position: absolute; top: 2px; left: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 3px var(--steel); transition: box-shadow .4s, background-color .4s;
}
.steps li.on .node { background: var(--rust); box-shadow: 0 0 0 6px color-mix(in srgb, var(--rust) 22%, transparent); }
.steps .num { font: 400 13px/1 var(--mono); color: var(--accent); display: block; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- spec plates (About: client promises) ---------- */
.plates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 900px; }
.spec {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 28px 24px 30px;
  position: relative; transform-style: preserve-3d; transition: transform .25s var(--ease), box-shadow .3s;
  --rx: 0deg; --ry: 0deg; transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.spec::before { /* rivets */
  content: ""; position: absolute; top: 12px; left: 12px; right: 12px; height: 6px;
  background: radial-gradient(circle, var(--steel) 2.5px, transparent 3px) left / 6px 6px no-repeat,
              radial-gradient(circle, var(--steel) 2.5px, transparent 3px) right / 6px 6px no-repeat;
}
.spec:hover { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); }
.spec code { display: block; font: 400 12px/1 var(--mono); color: var(--accent); margin: 14px 0 26px; letter-spacing: .08em; }
.spec h3 { font-stretch: 75%; font-weight: 800; font-size: 34px; margin-bottom: 10px; }
.spec p { margin: 0; color: var(--ink-soft); }
.spec::after {
  content: ""; position: absolute; left: 24px; bottom: 0; height: 4px; width: 36px; background: var(--rust);
  transition: width .4s var(--ease);
}
.spec:hover::after { width: calc(100% - 48px); }

/* ---------- About page ---------- */
.page-hero { min-height: 82vh; min-height: 82svh; }
.story-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.story .section-head p:not(.eyebrow) { color: var(--ink); }
.story .section-head { margin-bottom: 0; }
.facts { margin: 8px 0 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 400 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.facts dd { margin: 0; font-weight: 600; }
.meaning { background: var(--bg-alt); }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.reasons li { position: relative; padding-top: 34px; border-top: 1px solid var(--steel); }
.reasons .node { position: absolute; top: -7px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--rust); }
.reasons p { margin: 0; color: var(--ink-soft); }
.owner-grid { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.owner-grid h2 { max-width: 18em; }
.owner-grid p:not(.eyebrow):not(.todo) { max-width: 38em; }
.owner-photo { aspect-ratio: 4 / 5; border-radius: 4px; background: var(--steel-dark); display: grid; place-items: start end; padding: 16px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%, 0 86%); }
.owner-photo span { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ivory); }
.promise { background: var(--bg-alt); overflow: hidden; }
.plates-3 { grid-template-columns: repeat(3, 1fr); }
.cta-band { background: var(--rust); color: var(--ivory); padding: clamp(56px, 8vw, 96px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; color: var(--ivory); }
.cta-band .actions { margin-top: 0; }
.cta-band .btn { background: var(--charcoal); }
.cta-band .btn:hover { background: var(--ivory); color: var(--charcoal); }
.cta-band .btn-ghost { background: transparent; color: var(--ivory); }
.cta-band .btn-ghost:hover { background: var(--ivory); color: var(--charcoal); }

/* ---------- shared helper ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- How we work page: vertical steps on a self-drawing line ---------- */
.stages-track { position: relative; max-width: 860px; }
.stages-track::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; border-left: 1px dashed var(--line); }
.stages-line { position: absolute; left: 5px; top: 0; width: 10px; height: 100%; overflow: visible; }
.stages-line path { fill: none; stroke: var(--rust); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - 1000 * var(--draw, 0)); }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 7vw, 80px); }
.stage { position: relative; padding-left: 56px; }
.stage .node { position: absolute; top: 4px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg);
  box-shadow: inset 0 0 0 3px var(--steel); transition: box-shadow .4s, background-color .4s; }
.stage.on .node { background: var(--rust); box-shadow: 0 0 0 6px color-mix(in srgb, var(--rust) 22%, transparent); }
.stage .num { display: block; font: 400 13px/1 var(--mono); color: var(--accent); margin-bottom: 10px; }
.stage h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 12px; }
.stage p { margin: 0 0 12px; max-width: 40em; }
.stage-get { color: var(--ink-soft); }
.stage-get b { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .stage .node { transition: none; } }

/* ---------- page header: drafting sheet (shared by every inner page and the portfolio) ----------
   Title row (eyebrow + title left, intro or controls right), then the page's feature preview below,
   all on a theme-aware drafting grid with a soft glow in --brand (rust by default, client color on the portfolio). */
.show, .page-head {
  --brand: #B64C32;
  --rule: color-mix(in srgb, var(--ink) 40%, transparent);
  --rule-soft: color-mix(in srgb, var(--ink) 16%, transparent);
  position: relative; overflow: hidden; padding: 116px 0 56px;
  background-color: var(--bg);
  color: var(--ink);
}
/* Pattern layer: one drafting family (same line color and 24 / 120 px unit), a different ruling per page,
   fading out toward the bottom so the header flows into the page. */
:is(.show, .page-head)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--pat); background-size: var(--pat-size);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
:is(.show, .page-head) > :not(.visually-hidden) { position: relative; z-index: 1; }
.pat-grid {      /* Our work: square drafting grid */
  --pat: linear-gradient(rgba(var(--grid-line), .14) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--grid-line), .14) 1px, transparent 1px),
         linear-gradient(rgba(var(--grid-line), .07) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--grid-line), .07) 1px, transparent 1px);
  --pat-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.pat-dots {      /* What we do: dot grid with major lines */
  --pat: radial-gradient(circle at 1px 1px, rgba(var(--grid-line), .5) 1.2px, transparent 1.7px),
         linear-gradient(rgba(var(--grid-line), .14) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--grid-line), .14) 1px, transparent 1px);
  --pat-size: 24px 24px, 120px 120px, 120px 120px;
}
.pat-columns {   /* How we work: column ruling, like a schedule */
  --pat: linear-gradient(90deg, rgba(var(--grid-line), .16) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--grid-line), .07) 1px, transparent 1px),
         linear-gradient(rgba(var(--grid-line), .1) 1px, transparent 1px);
  --pat-size: 120px 100%, 24px 100%, 120px 120px;
}
.pat-lift {      /* About us: hatching at the logo's 75 degree lift angle */
  --pat: repeating-linear-gradient(-75deg, rgba(var(--grid-line), .13) 0 1px, transparent 1px 24px),
         linear-gradient(rgba(var(--grid-line), .1) 1px, transparent 1px);
  --pat-size: auto, 120px 120px;
}
.show { padding-bottom: 44px; }
.show::before, .page-head::before {
  content: ""; position: absolute; inset: -25% -12% auto auto; width: 72vw; height: 72vw; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) var(--glow, 16%), transparent), transparent 62%);
  transition: background .8s var(--ease); pointer-events: none;
}
[data-theme="night"] :is(.show, .page-head) { --glow: 30%; }
.page-head-row { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 20px 56px; flex-wrap: wrap; margin-bottom: 34px; }
.show-head h1, .page-title { font-stretch: 75%; font-weight: 850; font-size: clamp(40px, 5.6vw, 76px); line-height: .95; margin: 0; max-width: 11em; text-wrap: balance; }
:is(.show-head h1, .page-title) .accent { color: var(--accent); }
.page-head-row > div { flex: 1 1 520px; }
.page-head .lede { margin: 0; flex: 0 1 22em; max-width: 22em; text-wrap: pretty; }
.page-preview { position: relative; }

/* title block (drawing label): portfolio sheets and page previews */
.tblock { margin: 0; display: grid; grid-template-columns: auto 1fr; border: 1.5px solid var(--rule); background: color-mix(in srgb, var(--bg) 85%, transparent);
  font: 400 12px/1.35 var(--mono); }
.tblock dt, .tblock dd { margin: 0; padding: 7px 10px; border-bottom: 1px solid var(--rule-soft); }
.tblock dt { color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; border-right: 1px solid var(--rule-soft); }
.tblock > :nth-last-child(-n+2) { border-bottom: 0; }
.tblock a { color: var(--ink); font-weight: 400; }
.tblock a:hover { color: var(--accent); }

/* How we work preview: the four steps as a mini timeline */
.mini-steps { list-style: none; margin: 0; padding: 26px 24px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .45); }
.mini-steps::before { content: ""; position: absolute; left: calc(24px + 12.5% - 24px * .25); right: calc(24px + 12.5% - 24px * .25); top: 41px; border-top: 3px solid var(--rust); }
.mini-steps li { position: relative; text-align: center; }
.mini-steps a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 0 4px; }
.mini-steps .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--rust); color: var(--ivory); display: grid; place-items: center;
  font: 500 12px/1 var(--mono); box-shadow: 0 0 0 5px var(--surface); transition: transform .2s var(--ease); }
.mini-steps a:hover .dot, .mini-steps a:focus-visible .dot { transform: scale(1.12); }
.mini-steps small { display: block; font: 400 12px/1.4 var(--mono); color: var(--ink-soft); font-weight: 400; }
.mini-steps-cap { margin: 12px 0 0; font: 400 12px/1.4 var(--mono); color: var(--ink-soft); }

/* About preview: a detail crop of the bridge beside a drawing title block */
.detail-crop { margin: 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
.detail-crop .frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .45); }
.detail-crop .frame img { position: absolute; width: 100%; max-width: none; height: auto; left: 0; top: -64%; }   /* lower bridge: counterweight, frame, link */

@media (max-width: 1000px) {
  .detail-crop { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :is(.show, .page-head) { padding-top: 96px; }
  .page-head-row { margin-bottom: 26px; }
  .mini-steps { grid-template-columns: 1fr 1fr; row-gap: 20px; padding: 20px 14px; }
  .mini-steps::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mini-steps .dot { transition: none; } }

/* ---------- What we do page ---------- */
.svc-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.svc-index a { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; min-height: 104px; border-radius: 4px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.svc-index a:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .35); }
.svc-index .svc-icon { width: 28px; height: 28px; }
.svc-row { display: grid; grid-template-columns: 90px 1.3fr 1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.svc-row:first-child { border-top: 0; padding-top: 0; }
.svc-row-head { display: flex; flex-direction: column; gap: 14px; }
.svc-row-head code { font: 400 12px/1 var(--mono); color: var(--ink-soft); letter-spacing: .08em; }
.svc-row h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 10px; }
.svc-lead { font-size: 19px; font-weight: 500; margin: 0 0 12px; }
.svc-row p { max-width: 38em; }
.svc-inc { font: 400 12px/1 var(--mono) !important; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 6px 0 14px; }
.svc-row .built { list-style: none; margin: 0 0 18px; padding: 0; }
.svc-row .built li { position: relative; padding: 0 0 10px 20px; }
.svc-row .built li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--rust); }
@media (max-width: 1000px) { .svc-row { grid-template-columns: 1fr; gap: 14px; } .svc-row-head { flex-direction: row; align-items: center; } .svc-index { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .svc-index { grid-template-columns: 1fr 1fr; } .svc-index a { min-height: 0; } }

/* ---------- 6. brief builder ---------- */
.brief-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.builder fieldset { border: 0; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.builder legend { font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 12px; padding: 0; }
.builder label:not(.notes) { position: relative; }
.builder input[type="radio"], .builder input[type="checkbox"] { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.builder label:not(.notes) span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 550; font-size: 15px; cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}
.builder label:not(.notes):hover span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.builder input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.builder input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.builder input:active + span { transform: scale(.96); }
.notes { display: block; margin-top: 28px; }
.notes span { display: block; font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 12px; }
textarea {
  width: 100%; padding: 14px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 400 16px/1.5 var(--font); resize: vertical;
}
textarea:focus { border-color: var(--accent); }
textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.brief-out {
  position: sticky; top: 100px; background: var(--charcoal); color: var(--ivory); border-radius: 4px; padding: 32px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.brief-out .eyebrow { color: var(--rust-light); }
.brief-text { font-stretch: 87%; font-size: 22px; line-height: 1.45; min-height: 7em; margin: 0; }
.brief-text mark { background: none; color: var(--rust-light); font-weight: 650; }
.brief-out .btn-ghost { color: var(--ivory); }
.brief-out .btn-ghost:hover { background: var(--ivory); color: var(--charcoal); }
.brief-out .fineprint { color: #AEB8BB; min-height: 1.5em; }

/* ---------- footer: spray-paint stencil on a concrete wall ---------- */
.site-footer {
  color: var(--ivory); padding: 80px 0 36px; overflow: hidden; position: relative;
  /* concrete wall: charcoal with a faint mottled noise */
  background-color: var(--charcoal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.035), transparent 60%);
}
.stencil { display: block; width: 100%; height: auto; overflow: visible; }
.stencil-text { font-family: "Big Shoulders Stencil", var(--font); font-weight: 900; font-size: 100px; letter-spacing: .01em; fill: var(--ivory); }
.stencil-lead { font-size: 88px; }
.stencil-accent { fill: var(--rust-light); }
.footer-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.footer-row p { margin: 0; font-size: 14px; color: #AEB8BB; }
.site-footer a { color: var(--rust-light); }
.footer-phone { font-stretch: 75%; font-weight: 800; font-size: clamp(32px, 4vw, 48px); text-decoration: none; color: var(--ivory) !important; }
.footer-phone:hover { color: var(--rust-light) !important; }

/* ---------- responsive ---------- */
/* header: full nav needs about 1260 px; below that the links move into the menu panel */
@media (max-width: 1260px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .menu-open .nav-links {   /* drop-down panel under the header */
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 16px;
    background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 18px 30px -18px rgba(0, 0, 0, .35);
  }
  .menu-open .nav-links a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .menu-open .nav-links a::after { display: none; }
  .menu-open .nav-links a[aria-current="page"] { color: var(--accent); }
  .site-header.menu-open { background: var(--bg); }
}
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 520px; justify-self: end; width: 80%; }
  .hero-title { font-size: clamp(44px, 10vw, 84px); }
  .steps, .plates, .svc-grid, .reasons { grid-template-columns: repeat(2, 1fr); }
  .story-grid, .owner-grid { grid-template-columns: 1fr; }
  .owner-photo { max-width: 300px; }
  .process-line, .process-track::before { display: none; }
  .brief-grid { grid-template-columns: 1fr; }
  .brief-out { position: static; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .brand { gap: 8px; }
  .brand-mark { height: 42px; }
  .brand-text b { font-size: 24px; }
  .brand-text small { font-size: 8px; letter-spacing: .16em; }
  .tt-label { display: none; }
  nav { gap: 6px; }
  .menu-toggle { padding: 8px; }
  .mt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }  /* icon only; still announced */
  .site-header .btn-sm { padding: 10px 12px; font-size: 13px; }
  .hero { min-height: 0; padding: 104px 0 56px; }
  .hero .lede { font-size: 16px; }
  .hero .actions { margin-top: 20px; }
  .steps, .plates, .svc-grid, .reasons { grid-template-columns: 1fr; }
  .page-hero { min-height: 0; }
  .brief-text { font-size: 19px; }
}
@media (max-width: 360px) {
  .brand { gap: 6px; }
  .brand-mark { height: 34px; }
  .brand-text b { font-size: 20px; }
  .brand-text small { font-size: 6.5px; letter-spacing: .14em; }
}
@media (max-width: 420px) {
  .call-long { display: none; }
  .call-short { display: inline; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .show::before, .page-head::before { transition: none; }
  .k-pause { display: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .spec, .svc, .btn, .tt-knob { transition: none; }
  .svc-icon * { transition: none; }
}
