/* ============================================================
   TERRABUILD GLOBAL — site.css
   ------------------------------------------------------------
   THESIS: The site is a specification library: TerraBuild's offer
   rendered as a curated tray of labeled material specimens and spec
   cards. It refuses the category default (dark crane photo, slogan,
   three icon cards).
   OWN-WORLD: brand navy boards with a faint drafting dot grid; cool
   matboard ground; white spec cards with hairline rules and mono
   specimen IDs; procedural material textures in beveled frames;
   orange reserved for action, tabs and hold points. Big Shoulders
   display, Saira body, Spline Sans Mono codes. 2px radii, physical
   shallow shadows.
   STORY: a 35-60 procurement professional sees breadth plus
   documentation discipline, believes the process, requests a quote.
   FIRST VIEWPORT: navy board; positioning left, six-specimen tray
   right; primary CTA orange.
   FORM: Sample Board, candidate 4 of 7, seed a1b41713.
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Big Shoulders";
  src: url("../assets/fonts/bigshoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("../assets/fonts/saira.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("../assets/fonts/saira-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("../assets/fonts/splinemono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --navy: #152e60;
  --navy-deep: #0e2145;
  --orange: #e26f30;
  --orange-hot: #ce5f24;
  --orange-deep: #b04a12;
  --board: #f1f2ef;
  --card: #ffffff;
  --ink: #17223b;
  --ink-soft: #47536e;
  --chalk: #f4f6f9;
  --chalk-soft: #abb8d3;
  --rule: #d6dad3;
  --rule-navy: rgba(244, 246, 249, 0.16);
  --shadow-card: 0 1px 2px rgba(23, 34, 59, 0.06), 0 12px 32px rgba(23, 34, 59, 0.06);
  --shadow-lift: 0 2px 4px rgba(23, 34, 59, 0.08), 0 18px 44px rgba(23, 34, 59, 0.12);
  --font-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --font-body: "Saira", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Spline Sans Mono", "Courier New", monospace;
  --ease-settle: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-signature: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
}

/* ---------- reset-lite ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--board);
  background-image: radial-gradient(rgba(21, 46, 96, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #f5f6f3 0%, #eef0eb 100%);
  background-size: 26px 26px, 100% 100%;
  background-attachment: fixed;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--orange-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--navy);
}
.board-navy a:hover,
.on-navy a:hover {
  color: #ffffff;
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
::selection {
  background: var(--navy);
  color: var(--chalk);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--navy);
  text-wrap: balance;
}
h1 {
  font-size: clamp(3.2rem, 7.6vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.018em;
}
h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
}
p {
  max-width: 68ch;
}
.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--orange);
  color: var(--navy-deep);
  padding: 10px 18px;
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 900px) {
  .container {
    padding-inline: 48px;
  }
}

.section {
  padding-block: clamp(72px, 11vw, 168px);
}

/* mono meta text */
.meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.on-navy .meta {
  color: var(--chalk-soft);
}

/* ---------- index tab (section divider) ---------- */
.tabline {
  position: relative;
  margin-bottom: 40px;
}
.tabline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left;
  transition: transform 0.9s var(--ease-signature) 0.1s;
}
.js .tabline.rv {
  opacity: 1;
  transform: none;
}
.js .tabline.rv::after {
  transform: scaleX(0);
}
.js .tabline.rv.in::after {
  transform: scaleX(1);
}
.tabline .tab {
  display: inline-block;
  background: var(--orange);
  color: var(--navy-deep);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 6px 14px 5px;
  border-radius: 3px 3px 0 0;
}
.on-navy .tabline::after {
  background: var(--rule-navy);
}

/* ---------- navy board (lit, layered) ---------- */
.board-navy {
  position: relative;
  background-color: var(--navy);
  background-image: radial-gradient(rgba(244, 246, 249, 0.07) 1px, transparent 1px),
    radial-gradient(120% 90% at 18% 0%, rgba(126, 152, 210, 0.22) 0%, transparent 55%),
    radial-gradient(110% 100% at 88% 105%, rgba(6, 16, 38, 0.85) 0%, transparent 60%),
    linear-gradient(180deg, #18346c 0%, #122a5a 55%, #0f2450 100%);
  background-size: 26px 26px, 100% 100%, 100% 100%, 100% 100%;
  color: var(--chalk);
}
.board-navy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(226, 111, 48, 0.55) 22%, rgba(244, 246, 249, 0.25) 50%, transparent 90%);
  pointer-events: none;
}
.board-navy h1,
.board-navy h2,
.board-navy h3 {
  color: var(--chalk);
}
.board-navy p {
  color: var(--chalk-soft);
}
.board-navy a {
  color: var(--chalk);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.35s var(--ease-settle);
}
.site-header.scrolled {
  box-shadow: 0 10px 34px -16px rgba(23, 34, 59, 0.3);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  height: 32px;
  width: auto;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  white-space: nowrap;
}
.brand-name .g {
  color: var(--orange-deep);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}
.nav-links a:not(.btn) {
  display: block;
  white-space: nowrap;
  padding: 22px clamp(8px, 0.72vw, 12px) 19px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav-links a:not(.btn):hover {
  color: var(--navy);
  border-bottom-color: var(--rule);
}
.nav-links a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--orange);
}
.nav-cta {
  margin-left: 10px;
}
.nav-cta .btn {
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  cursor: pointer;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  content: "";
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform 0.25s var(--ease-settle);
}
.nav-toggle .bars::before {
  position: absolute;
  top: -6px;
}
.nav-toggle .bars::after {
  position: absolute;
  top: 6px;
}

@media (max-width: 1239px) {
  .nav-toggle {
    display: grid;
  }
  .nav-cta {
    display: none;
  }
  .nav-links {
    position: fixed;
    inset: 66px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    background-image: radial-gradient(rgba(244, 246, 249, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    padding: 24px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s var(--ease-settle), visibility 0.3s var(--ease-settle);
    overflow-y: auto;
  }
  .nav-open .nav-links {
    visibility: visible;
    transform: none;
  }
  .nav-links a:not(.btn) {
    color: var(--chalk);
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    padding: 16px 8px;
    border-bottom: 1px solid var(--rule-navy);
  }
  .nav-links a[aria-current="page"] {
    color: var(--orange);
    border-bottom-color: var(--orange);
  }
  .nav-open .nav-toggle .bars {
    transform: rotate(45deg);
  }
  .nav-open .nav-toggle .bars::before {
    transform: rotate(-90deg) translateX(-6px);
  }
  .nav-open .nav-toggle .bars::after {
    opacity: 0;
  }
  body.nav-open {
    overflow: hidden;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 2px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease-settle), box-shadow 0.18s var(--ease-settle),
    background-color 0.18s;
}
.btn-primary {
  background: linear-gradient(180deg, #ea7a3a 0%, #d96422 100%);
  color: var(--navy-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 8px rgba(14, 33, 69, 0.22);
}
.btn-primary:hover {
  color: var(--navy-deep);
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px rgba(226, 111, 48, 0.4);
}
.btn-primary:active {
  transform: translateY(0) scale(0.99);
}
.btn-quiet {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-quiet:hover {
  background: var(--navy);
  color: var(--chalk);
}
.on-navy .btn-quiet,
.board-navy .btn-quiet {
  border-color: var(--chalk);
  color: var(--chalk);
}
.on-navy .btn-quiet:hover,
.board-navy .btn-quiet:hover {
  background: var(--chalk);
  color: var(--navy);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* ---------- spec card ---------- */
.spec-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfa 100%);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 1px rgba(23, 34, 59, 0.05),
    0 8px 24px -8px rgba(23, 34, 59, 0.14), 0 28px 56px -24px rgba(23, 34, 59, 0.18);
  padding: 32px;
  color: var(--ink);
}
.spec-card h2,
.spec-card h3 {
  color: var(--navy);
}
.spec-card p {
  color: var(--ink);
}
@media (min-width: 900px) {
  .spec-card {
    padding: 44px;
  }
}
.spec-card .card-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- house journey hero (ported from codex v1-stable) ---------- */
.journey {
  position: relative;
  min-height: 450svh;
  background: #05101f;
  color: #f7f9fc;
  isolation: isolate;
  --journey-progress: 0;
  --camera-scale: 1;
  --camera-x: 0%;
  --camera-y: 0%;
  --scene-dim: 0;
  --scan-opacity: 0;
  --scan-x: 18%;
  --portal-warmth: 0;
  --b0-op: 1;
  --b1-op: 0;
  --b2-op: 0;
  --b3-op: 0;
  --b4-op: 0;
  --b5-op: 0;
}
.journey-sticky {
  position: sticky;
  z-index: 0;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #031126;
}
.house-camera {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 240ms ease-out;
}
.journey-ready .house-camera {
  opacity: 1;
}
.house-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Cover, not contain: min() letterboxed the plate against the sticky viewport and
     left an 8px navy sliver under the photograph. The 1.02 is overscan against
     sub-pixel rounding; the camera push is kept inside the plane by capping its final
     translate in journey.js rather than by overscanning harder, which would crop every
     beat to solve a problem that only exists in the last instant. */
  width: calc(max(100vw, 190.319svh) * 1.02);
  aspect-ratio: 1730 / 909;
  translate: -50% -50%;
  transform: translate3d(var(--camera-x), var(--camera-y), 0) scale(var(--camera-scale));
  transform-origin: 69.83% 75.24%;
  will-change: transform;
}
.beat-plate,
.house-portal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.beat-plate {
  object-fit: cover;
  object-position: center;
  max-width: none;
  transform-origin: 62% 55%;
  will-change: opacity, transform, mask-position;
  /* The reveal is a soft directional wipe, not a crossfade. An opacity dissolve
     necessarily shows both photographs at once at its midpoint (measured: the
     incoming plate sat at 0.34 over an opaque outgoing one), which reads as a
     double-exposure bug rather than a transition. The mask sweeps a 24%-wide soft
     edge across instead, so exactly one photograph is ever whole. --m runs 0 to 1
     and is set per plate by journey.js. */
  --m: 1;
  -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--m) * 124% - 24%), transparent calc(var(--m) * 124%));
  mask-image: linear-gradient(100deg, #000 calc(var(--m) * 124% - 24%), transparent calc(var(--m) * 124%));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
/* the base plate is never revealed, it is simply always there */
.beat-plate:first-of-type {
  -webkit-mask-image: none;
  mask-image: none;
}
/* stacking order is the transition: each plate covers the one below as it fades in,
   so two photographs are never simultaneously semi-transparent */
.beat-plate:nth-of-type(1) { z-index: 1; }
.beat-plate:nth-of-type(2) { z-index: 2; }
.beat-plate:nth-of-type(3) { z-index: 3; }
.beat-plate:nth-of-type(4) { z-index: 4; }
.beat-plate:nth-of-type(5) { z-index: 5; }
.beat-plate:nth-of-type(6) { z-index: 6; }

/* per-beat colour grade: hue wash plus saturation and contrast, lerped across fades */
.beat-grade {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: var(--grade, rgb(26 42 66));
  mix-blend-mode: soft-light;
  opacity: 0.34;
}
.beat-grade-deep {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: radial-gradient(120% 90% at 68% 42%, transparent 38%, rgba(4, 10, 22, 0.55) 100%);
}
.house-plane {
  filter: saturate(var(--grade-sat, 1)) contrast(var(--grade-con, 1));
}
.house-portal {
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}
.house-portal span {
  position: absolute;
  inset: 0;
  opacity: calc(var(--portal-warmth) * 0.4);
  background: radial-gradient(60% 70% at 70% 62%, rgba(236, 132, 54, 0.55), transparent 70%);
}
.house-copy-mask {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 12, 28, 0.94) 0%, rgba(3, 12, 28, 0.86) 32%, rgba(3, 12, 28, 0.45) 58%, transparent 78%),
    linear-gradient(180deg, rgba(3, 12, 28, 0.55) 0%, transparent 26%, transparent 68%, rgba(3, 12, 28, 0.7) 100%);
}
.house-scan {
  position: absolute;
  z-index: 11;
  top: 8%;
  bottom: 2%;
  left: var(--scan-x);
  width: 1px;
  opacity: var(--scan-opacity);
  background: linear-gradient(180deg, transparent 8%, rgba(116, 183, 255, 0.18) 24%, #dceeff 51%, rgba(226, 111, 48, 0.74) 76%, transparent 94%);
  box-shadow: -20px 0 50px rgba(87, 155, 226, 0.22), 16px 0 58px rgba(226, 111, 48, 0.2);
  pointer-events: none;
}
.house-scan::after {
  position: absolute;
  top: 69%;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(226, 111, 48, 0.92);
  content: "";
}
.journey-vignette {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: var(--scene-dim);
  background:
    linear-gradient(90deg, rgba(2, 10, 24, 0.88), rgba(2, 10, 24, 0.14) 46%, rgba(2, 10, 24, 0.42)),
    linear-gradient(180deg, transparent 56%, rgba(2, 10, 24, 0.88));
}
.scene-status {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.journey-ready .scene-status {
  display: none;
}
.journey-progress {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 4.5vw, 76px);
  bottom: 30px;
  left: clamp(24px, 4.5vw, 76px);
  color: rgba(255, 255, 255, 0.72);
}
.journey-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.journey-progress-line {
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}
.journey-progress-line span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--journey-progress));
  transform-origin: left;
  background: var(--orange);
}
/* copy lives inside the sticky viewport and is driven by the same beat state as
   the plates, so it never drifts out of sync with the image behind it */
.journey-chapters {
  position: absolute;
  z-index: 9;
  inset: 0;
  pointer-events: none;
}
.journey-chapter {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  padding: 0 clamp(24px, 6vw, 102px);
}
.chapter-copy {
  width: min(620px, 46vw);
}
.js .journey-chapter {
  opacity: 0;
  transition: opacity 320ms ease-out;
}
.js .journey-chapter.is-active {
  opacity: 1;
  pointer-events: auto;
}
.js .chapter-copy {
  transform: translateY(18px);
  transition: transform 620ms var(--ease-signature);
}
.js .journey-chapter.is-active .chapter-copy {
  transform: none;
}
.chapter-index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  max-width: none;
}
.chapter-index span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--orange);
}
.chapter-copy h1,
.chapter-copy h2 {
  max-width: 720px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(50px, 6.7vw, 110px);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 0.93;
  text-wrap: balance;
}
.journey-chapter:first-child .chapter-copy {
  width: min(760px, 54vw);
}
.journey-chapter:first-child h1 {
  font-size: clamp(52px, 6.5vw, 98px);
}
@media (min-width: 761px) {
  .stage-0 .chapter-copy {
    width: min(670px, 44vw);
  }
  .stage-0 .chapter-body {
    max-width: 610px;
  }
}
.chapter-body {
  max-width: 500px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
}
.journey-intro-actions {
  margin-top: 34px;
}
.journey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  pointer-events: auto;
}
.journey-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 2px;
  background: rgba(3, 17, 38, 0.34);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background-color 180ms ease-out, border-color 180ms ease-out, transform 160ms ease-out;
}
.journey-actions a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
}
.journey-actions a:first-child {
  border-color: var(--orange);
  background: linear-gradient(180deg, #ea7a3a 0%, #d96422 100%);
  color: var(--navy-deep);
}
.journey-actions a:first-child:hover {
  filter: brightness(1.06);
  color: var(--navy-deep);
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.scroll-cue i {
  position: relative;
  width: 72px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}
.scroll-cue i::after {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: var(--orange);
  content: "";
  animation: scroll-signal 1.8s ease-in-out infinite;
}
@keyframes scroll-signal {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}
@media (max-width: 760px) {
  .chapter-copy,
  .journey-chapter:first-child .chapter-copy {
    width: min(560px, 90vw);
  }
  .journey-chapter {
    padding: 96px 24px 80px;
  }
  .chapter-copy h1,
  .chapter-copy h2 {
    font-size: clamp(40px, 11vw, 64px);
  }
  .journey-chapter:first-child h1 {
    font-size: clamp(40px, 10.5vw, 60px);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero-promise {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-navy);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
}
.hero-promise span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-promise span::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orange);
}

/* ---------- specimen tray (recessed wells, bento rhythm) ---------- */
.tray {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
}
/* every category gets an equal frame: product photos need room, not banner crops */
.specimen {
  background: linear-gradient(180deg, rgba(7, 16, 37, 0.72) 0%, rgba(11, 24, 52, 0.6) 100%);
  border: 1px solid rgba(244, 246, 249, 0.1);
  border-radius: 2px;
  padding: 10px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(244, 246, 249, 0.07),
    0 18px 44px -14px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s var(--ease-signature), box-shadow 0.45s var(--ease-signature),
    border-color 0.45s var(--ease-signature);
}
.specimen a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.specimen:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 111, 48, 0.55);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(244, 246, 249, 0.07),
    0 30px 60px -16px rgba(0, 0, 0, 0.65);
}
.specimen .swatch {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 3px 10px rgba(0, 0, 0, 0.42),
    inset 0 -1px 4px rgba(0, 0, 0, 0.25);
}
.specimen .swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.24) 48%, transparent 64%);
  transform: translateX(-135%);
  transition: transform 0.85s var(--ease-signature);
  pointer-events: none;
}
.specimen a:hover .swatch::after,
.cat-specimen:hover .swatch::after {
  transform: translateX(135%);
}
.specimen figcaption {
  padding: 10px 4px 4px;
}
.specimen .sid {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  color: var(--chalk);
  display: block;
}
.specimen .sname {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--chalk);
  line-height: 1.3;
  display: block;
  margin-top: 3px;
}

.evidence {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- documentary photography blocks ---------- */
.photo {
  position: relative;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--card);
  padding: 10px;
  box-shadow: var(--shadow-card);
}
.on-navy .photo,
.board-navy .photo {
  background: rgba(7, 16, 37, 0.6);
  border-color: rgba(244, 246, 249, 0.12);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45), 0 20px 44px -16px rgba(0, 0, 0, 0.6);
}
.photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 4px 2px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.on-navy .photo figcaption,
.board-navy .photo figcaption {
  color: var(--chalk-soft);
}
.photo-wide img {
  aspect-ratio: 21 / 9;
}
/* sector row thumbnails */
.spec-row .sector-thumb {
  width: 132px;
  height: 88px;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(23, 34, 59, 0.18), 0 6px 16px -8px rgba(23, 34, 59, 0.4);
}
.spec-row .sector-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 700px) {
  .spec-row .sector-thumb {
    width: 100%;
    height: 150px;
    order: -1;
  }
}

/* ---------- spec rows (capabilities / services) ---------- */
.spec-rows {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.spec-row {
  border-bottom: 1px solid var(--rule);
}
.spec-row > a,
.spec-row > .row-inner {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 8px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
}
.spec-row > a:hover {
  background: rgba(255, 255, 255, 0.75);
}
.spec-row .rid {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.spec-row > a:hover .rid {
  color: var(--orange-deep);
}
.spec-row h2,
.spec-row h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  margin-bottom: 6px;
}
.spec-row p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.spec-row .chip {
  width: 84px;
  height: 62px;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(23, 34, 59, 0.2), 0 4px 12px rgba(23, 34, 59, 0.15);
}
.spec-row .chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 700px) {
  .spec-row > a,
  .spec-row > .row-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .spec-row .chip {
    order: -1;
  }
}

/* ---------- hold points (process) ---------- */
.holds {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 36px 28px;
  grid-template-columns: repeat(2, 1fr);
  counter-reset: hold;
}
@media (min-width: 900px) {
  .holds {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 40px;
  }
  .hold:nth-child(3n)::after {
    display: none;
  }
}
.hold {
  counter-increment: hold;
  position: relative;
  padding-top: 52px;
}
.hold::before {
  content: "0" counter(hold);
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-deep);
  background: linear-gradient(180deg, #ea7a3a 0%, #d96422 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 16px -6px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}
.hold::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 52px;
  right: -18px;
  height: 1px;
  background: var(--rule-navy);
  transform-origin: left;
  transition: transform 0.9s var(--ease-signature) 0.25s;
}
.js .hold::after {
  transform: scaleX(0);
}
.js .hold.in::after {
  transform: scaleX(1);
}
.holds .hold:last-child::after {
  display: none;
}
@media (max-width: 899px) {
  .hold:nth-child(even)::after {
    display: none;
  }
}
.hold {
  padding-top: 60px;
}
.hold h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.hold p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--chalk-soft);
}
.holds-title .dot {
  color: var(--orange);
}

/* ---------- checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px 40px;
}
@media (min-width: 820px) {
  .checklist {
    grid-template-columns: 1fr 1fr;
  }
}
.checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 10px;
  height: 10px;
  background: var(--orange);
}
.board-navy .checklist li {
  color: var(--chalk);
}

/* ---------- category blocks (materials page) ---------- */
.category {
  display: grid;
  gap: 32px;
  margin-bottom: 64px;
}
@media (min-width: 940px) {
  .category {
    grid-template-columns: 320px 1fr;
    gap: 48px;
  }
}
.category .cat-specimen {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: var(--shadow-card);
  padding: 12px;
  align-self: start;
  position: sticky;
  top: 90px;
}
.category .cat-specimen .swatch {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(23, 34, 59, 0.25), inset 0 2px 8px rgba(23, 34, 59, 0.2);
}
.category .cat-specimen .swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category .cat-specimen figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 6px 6px;
}
.category .cat-specimen .texture-note {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* catalogue slots */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.slot {
  border-radius: 2px;
  padding: 18px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.slot .slot-id {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.slot-reserved {
  border: 1.5px dashed var(--rule);
  background: transparent;
}
.slot-reserved .slot-title {
  font-weight: 500;
  color: var(--ink-soft);
}
.slot-reserved .slot-status {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.slot-ready {
  border: 1px solid var(--rule);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease-settle), box-shadow 0.2s var(--ease-settle);
}
.slot-ready:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.slot-ready .slot-title {
  font-weight: 600;
  color: var(--navy);
}
.slot-ready a {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- tables (spec sheet style) ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.spec-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 14px;
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--navy);
  padding: 10px 16px 10px 0;
}
.spec-table td {
  border-bottom: 1px solid var(--rule);
  padding: 14px 16px 14px 0;
  vertical-align: top;
}
.spec-table td:first-child {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .spec-table td:first-child {
    white-space: normal;
  }
}

/* ---------- definition rows (values etc.) ---------- */
.def-list {
  border-top: 1px solid var(--rule);
}
.def-list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 40px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 820px) {
  .def-list > div {
    grid-template-columns: 260px 1fr;
  }
}
.def-list dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
}
.def-list dd {
  color: var(--ink-soft);
}
.board-navy .def-list {
  border-color: var(--rule-navy);
}
.board-navy .def-list > div {
  border-color: var(--rule-navy);
}
.board-navy .def-list dt {
  color: var(--chalk);
}
.board-navy .def-list dd {
  color: var(--chalk-soft);
}
.def-stack > div {
  grid-template-columns: 1fr;
  gap: 8px;
}
.def-stack dd {
  color: var(--ink-soft);
}

/* ---------- flagged card (boundaries / compliance) ---------- */
.flagged {
  border-left: none;
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: var(--shadow-card);
  padding: 32px 32px 32px 40px;
  overflow: hidden;
}
.flagged::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: var(--orange);
}
.flagged .flag-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--orange-deep);
  display: block;
  margin-bottom: 10px;
}

/* ---------- forms ---------- */
.form-grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .span-2 {
    grid-column: span 2;
  }
}
.field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.field .optional {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 12px 14px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--navy);
}
.field .hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 6px;
}
.field .error-msg {
  display: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: #b3261e;
  margin-top: 6px;
}
.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: #b3261e;
}
.field.invalid .error-msg {
  display: block;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--navy);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background-color: var(--navy);
  background-image: radial-gradient(rgba(244, 246, 249, 0.06) 1px, transparent 1px),
    radial-gradient(110% 80% at 14% 0%, rgba(126, 152, 210, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, #16326a 0%, #0f2450 100%);
  background-size: 26px 26px, 100% 100%, 100% 100%;
  color: var(--chalk-soft);
  margin-top: 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(226, 111, 48, 0.5) 24%, rgba(244, 246, 249, 0.22) 52%, transparent 90%);
}
/* closing statement (pre-footer peak) */
.closing-line {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 0.96;
  max-width: 14ch;
}
.closing-sub {
  margin-top: 28px;
  font-size: 1.15rem;
  max-width: 52ch;
}
.footer-main {
  display: grid;
  gap: 44px;
  padding-block: 64px;
}
@media (min-width: 940px) {
  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 56px;
  }
}
.footer-main img {
  height: 54px;
  width: auto;
  margin-bottom: 18px;
}
.footer-main p {
  font-size: 0.95rem;
}
.footer-col .footer-h {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--chalk);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: var(--chalk-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--chalk);
}
.footer-legal {
  background: var(--navy-deep);
  padding-block: 20px;
}
.footer-legal .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
}
.footer-legal p {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--chalk-soft);
  max-width: none;
}

/* ---------- reveal motion ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(18px);
}
.js .rv.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-signature), transform 0.8s var(--ease-signature);
  transition-delay: var(--d, 0ms);
}
.js .tabline.rv {
  opacity: 1;
  transform: none;
}
.js .tabline.rv::after {
  transform: scaleX(0);
}
.js .tabline.rv.in::after {
  transform: scaleX(1);
  transition-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rv,
  .js .rv {
    opacity: 1;
    transform: none;
  }
  .scroll-cue i::after {
    animation: none;
  }
  .js .hold::after,
  .js .tabline.rv::after {
    transform: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding-block: 72px 64px;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 5.8vw, 4.9rem);
}
@media (min-width: 900px) {
  .page-hero {
    padding-block: clamp(96px, 11vh, 132px) 88px;
  }
}
.page-hero .lede {
  margin-top: 18px;
}
.page-hero .meta {
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.page-hero .meta::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--orange);
}

/* ---------- misc ---------- */
.grid-2 {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.stack > * + * {
  margin-top: 18px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-40 {
  margin-top: 40px;
}
.mt-56 {
  margin-top: 56px;
}
.center {
  text-align: center;
}
.center p {
  margin-inline: auto;
}

/* ---------- addenda ---------- */
.hero .meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.hero .meta::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--orange);
}
.footer-col li {
  font-size: 0.95rem;
  color: var(--chalk-soft);
}
.footer-legal a {
  color: var(--chalk-soft);
}
.footer-legal a:hover {
  color: var(--chalk);
}
.form-status {
  margin-top: 16px;
  font-weight: 500;
}
.form-status.err {
  color: #b3261e;
}
.form-status.ok {
  color: var(--navy);
}
.consent-field.invalid .consent {
  color: #b3261e;
}
.flow-diagram {
  width: 100%;
  height: auto;
}
.quote {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--navy);
  max-width: 52ch;
}
.cta-card {
  text-align: center;
}
.cta-card p {
  margin-inline: auto;
}
.cta-card .hero-actions {
  justify-content: center;
  margin-top: 28px;
}
.cta-card .meta a {
  white-space: nowrap;
}
.contact-direct {
  padding: 0;
  margin: 0;
}
.contact-direct li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  list-style: none;
}
.spec-card .stack h2 {
  font-size: 1.25rem;
  font-weight: 600;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}


/* ---------- mobile hero: full-bleed photography, copy anchored low ---------- */
@media (max-width: 900px) {
  .journey {
    min-height: 380svh;
  }
  .house-plane {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    translate: none;
    transform-origin: 64% 52%;
  }
  .beat-plate {
    object-position: 66% center;
  }
  .house-copy-mask {
    background:
      linear-gradient(180deg, rgba(3, 12, 28, 0.82) 0%, rgba(3, 12, 28, 0.34) 26%, rgba(3, 12, 28, 0.62) 56%, rgba(3, 12, 28, 0.95) 82%);
  }
  .journey-chapter {
    top: auto;
    bottom: 108px;
    transform: none;
    padding-inline: 24px;
  }
  .chapter-copy,
  .journey-chapter:first-child .chapter-copy {
    width: 100%;
  }
  .chapter-index {
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: 0.1em;
    gap: 10px;
  }
  .chapter-index span {
    width: 30px;
    height: 30px;
  }
  .chapter-body {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.5;
    max-width: 42ch;
  }
  .journey-intro-actions {
    margin-top: 22px;
  }
  .journey-actions a {
    flex: 1 1 auto;
    min-height: 50px;
    justify-content: center;
  }
  .scroll-cue {
    margin-top: 18px;
  }
  .journey-progress {
    right: 24px;
    bottom: 22px;
    left: 24px;
  }
}

/* ---------- mobile polish elsewhere ---------- */
@media (max-width: 940px) {
  .category .cat-specimen {
    position: static;
  }
}
@media (max-width: 700px) {
  .photo {
    padding: 8px;
  }
  .photo img,
  .photo-wide img {
    aspect-ratio: 4 / 3;
  }
  .photo figcaption {
    font-size: 0.6rem;
    gap: 8px;
  }
  .spec-table td:first-child {
    padding-bottom: 4px;
  }
  .footer-legal .container {
    gap: 10px;
  }
}

/* ============================================================
   MATERIAL SCHEDULE / RFQ
   The site publishes no prices, so the cart is a schedule. It borrows the register's
   own grammar: mono line IDs, hairline-ruled spec cards, orange reserved for action.
   Nothing here introduces a new visual world; it extends the existing one.
   ============================================================ */

.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-72 { margin-top: 72px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header chip ----------
   Injected by js/schedule.js only while the schedule has lines. */
.nav-row .brand { order: 1; }
.nav-row .nav-links { order: 2; }
.nav-row .schedule-chip { order: 3; }
.nav-row .nav-toggle { order: 4; }

.schedule-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-settle), color 0.2s var(--ease-settle);
}
.schedule-chip:hover {
  background: var(--navy);
  color: var(--chalk);
}
.schedule-chip .chip-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 2px;
  background: var(--orange);
  color: var(--navy-deep);
  font-size: 0.72rem;
  letter-spacing: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .schedule-chip.is-bumped .chip-count {
    animation: chip-bump 420ms var(--ease-signature);
  }
}
@keyframes chip-bump {
  0% { transform: scale(1); }
  38% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.schedule-chip .chip-glyph {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
/* The word costs 76px and the nav has none to spare until it is wide; the drafting
   glyph plus the count carries it below that, with the full label on aria-label. */
.schedule-chip .chip-label { display: none; }
@media (min-width: 1320px) {
  .schedule-chip .chip-label { display: inline; }
}

/* ---------- add control on register slots ---------- */
.slot-add {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  background: transparent;
  border: 1px solid var(--navy);
  border-radius: 2px;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-settle), color 0.2s var(--ease-settle),
    border-color 0.2s var(--ease-settle);
}
.slot-add:hover {
  background: var(--navy);
  color: var(--chalk);
}
.slot-add.is-added {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy-deep);
}
.slot-add.is-added:hover {
  background: var(--orange-hot);
  border-color: var(--orange-hot);
}

/* ---------- schedule head ---------- */
.sched-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.sched-ref {
  font-family: var(--font-mono);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-top: 4px;
}
.sched-note {
  font-size: 0.86rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- schedule lines ---------- */
.sched-lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.sched-line {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-card);
}
@media (prefers-reduced-motion: no-preference) {
  .sched-line {
    animation: line-settle 380ms var(--ease-settle) both;
  }
  .sched-line.is-leaving {
    transition: opacity 170ms ease-out, transform 170ms ease-out;
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes line-settle {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.line-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.line-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.line-head h3 {
  font-size: 1.28rem;
  margin: 0;
}
.line-cat {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.line-remove {
  margin-left: auto;
  background: none;
  border: 0;
  padding: 10px 2px;
  min-height: 44px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.line-remove:hover { color: #b3261e; }

.line-title-edit { flex: 1 1 260px; }
.line-title-edit input {
  width: 100%;
  font: inherit;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 620;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 2px 0 4px;
}
.line-title-edit input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.line-title-edit.invalid input { border-bottom-color: #b3261e; }

.line-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.line-field label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.line-field input,
.line-field select,
.line-field textarea {
  min-height: 44px;
}
.line-notes { grid-column: 1 / -1; }
.line-notes textarea { min-height: 62px; resize: vertical; }

@media (min-width: 760px) {
  .line-fields { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .line-fields .line-field:nth-of-type(1) { grid-column: span 2; }
  .line-fields .line-field:nth-of-type(2) { grid-column: span 2; }
  .line-fields .line-field:nth-of-type(3) { grid-column: span 4; }
  .line-fields .line-field:nth-of-type(4) { grid-column: span 4; }
}

/* ---------- schedule actions ---------- */
.sched-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.btn-text {
  background: none;
  border: 0;
  padding: 10px 2px;
  min-height: 44px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-text:hover { color: var(--navy); }
.btn-text.is-armed {
  color: #b3261e;
  font-weight: 600;
  text-decoration: none;
}

.sched-empty .spec-card { max-width: 720px; }

/* ---------- narrow header: brand vs schedule chip ----------
   .brand-name is nowrap, so when .brand shrank as a flex item the wordmark kept its
   width and spilled out of its own box, landing under the chip. Measured at 375px:
   the lockup (199) + chip (70) + toggle (41) + gaps + gutters came to 394 against 375.
   The row is tightened and the wordmark scales down to buy that back; min-width plus
   ellipsis guarantee it can only ever truncate, never overlap again. */
@media (max-width: 1239px) {
  .nav-row {
    gap: 12px;
  }
}
@media (max-width: 560px) {
  .brand {
    gap: 9px;
    min-width: 0;
  }
  .brand-name {
    font-size: clamp(0.95rem, 3.9vw, 1.18rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .schedule-chip {
    flex: none;
  }
}
/* below this the mark carries the brand on its own rather than truncating the wordmark */
@media (max-width: 360px) {
  .brand-name {
    display: none;
  }
}

/* ---------- scan-to-message QR pair ----------
   Supplied QR codes are dropped in as plain modules on white with their quiet zones
   intact: scanners need the clear margin, and any decorative frame, tint or rounded
   crop risks the read. Both were decoded and re-verified after resizing. The labels
   are set in the site's own type rather than the exported cards' styling. */
.qr-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
}
.qr-item {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
}
.qr-item img {
  width: 100%;
  max-width: 190px;
  height: auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 9px;
  image-rendering: pixelated;
}
.qr-item figcaption {
  display: grid;
  gap: 3px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.qr-name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 620;
  color: var(--navy);
}
.qr-id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  white-space: nowrap;
}
