/* Carbon Cube — styles. Plain CSS, no build step. */

/* Self-hosted IBM Plex (SIL OFL), latin subset. Fallback faces are metric-matched so the
   page doesn't shift when the web fonts arrive. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 102%; ascent-override: 100.5%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: "Plex Mono Fallback"; src: local("Courier New"), local("Liberation Mono"), local("Courier");
  size-adjust: 104.2%; ascent-override: 98.4%; descent-override: 26.4%; line-gap-override: 0%; }

:root {
  --paper: #f2f1ec;
  --paper-2: #e7e5dd;
  --ink: #121212;
  --ink-2: #33332f;
  --mute: #5f5e58;
  --rule: #c8c5ba;
  --graphite: #161616;
  --graphite-2: #222220;
  --on-dark: #ecebe5;
  --on-dark-mute: #a3a199;
  --accent: #fa9f17;      /* Carbon Cube amber (from the original site): fills, lines, buttons with ink text, text on graphite (8.7:1) */
  --accent-ink: #9e5c00;  /* deeper amber for small text on paper (4.7:1) */
  --accent-hi: #fa9f17;   /* amber text on graphite */
  --error: #b3261e;
  --ok: #1f6b3a;

  --sans: "IBM Plex Sans", "Plex Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", "Plex Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 11vw, 144px);
  --header-h: 64px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.approach :focus-visible, .enquire-band :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
p, li, dd { text-wrap: pretty; }
h2, h3 { text-wrap: balance; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 241, 236, .92);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-nav .nav-cta {
  color: var(--ink); background: var(--accent); padding: 9px 16px; border-radius: var(--radius); font-weight: 500;
}
.site-nav .nav-cta:hover { color: var(--paper); background: var(--ink); text-decoration: none; }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  font: 500 15px var(--sans); color: var(--ink);
  background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 8px 12px; min-height: 44px; cursor: pointer;
}
.menu-icon, .menu-icon::before { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease; }
.menu-icon::before { content: ""; position: absolute; top: 6px; }
.menu-icon { transform: translateY(-3px); }
.menu-toggle[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 820px) {
  .site-nav { flex-wrap: wrap; gap: 4px 20px; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain;
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--paper-2); font-size: 17px; }
  .js .site-nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }
  .header-inner { height: auto; min-height: var(--header-h); }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  font: 500 16px/1.2 var(--sans); text-decoration: none;
  border-radius: var(--radius); border: 1px solid var(--ink);
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.btn-solid { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-solid:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: progress; }

.text-link { font-family: var(--mono); font-size: 14px; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-decoration-line: underline; }
.text-link:hover { color: var(--accent-ink); }

/* ---------- Shared typographic pieces ---------- */
.eyebrow, .fig-label, .section-no, .case-tag, .cap-title, .opt, .t-role, .qr-k {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 400;
}
.fig-label { color: var(--mute); margin: 12px 0 0; text-transform: none; letter-spacing: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
/* isometric drafting grid, faint */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    repeating-linear-gradient(30deg, transparent 0 39px, rgba(18,18,18,.05) 39px 40px),
    repeating-linear-gradient(150deg, transparent 0 39px, rgba(18,18,18,.05) 39px 40px);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
          mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--mute); margin-bottom: 28px; }
.eyebrow span:first-child { color: var(--accent-ink); }
.eyebrow span + span::before { content: "/"; margin-right: 18px; color: var(--rule); }
.hero h1 { font-size: clamp(46px, 7.4vw, 104px); max-width: 11ch; text-wrap: balance; letter-spacing: -0.035em; line-height: 1; }
.hl { background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 90%, transparent 90%); padding: 0 .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 36em; margin: 28px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-figure { margin: 0; }
.iso { width: 100%; max-width: 440px; margin-left: auto; overflow: visible; }
.hatch-line { stroke: var(--ink); stroke-width: 1; }
.face-hatch { fill: url(#hatch); }
.face-plain { fill: var(--accent); }
.edges path { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.dims path { fill: none; stroke: var(--mute); stroke-width: 1; }
.dims text { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; fill: var(--mute); }
.hero-figure .fig-label { text-align: right; }

/* draw-in animation (disabled for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .edges path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.6s cubic-bezier(.6,.05,.25,1) .15s forwards; }
  .js .edges path + path { animation-delay: .7s; }
  .js .face { opacity: 0; animation: fade .9s ease 1.3s forwards; }
  .js .dims { opacity: 0; animation: fade .6s ease 1.9s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* Hero cube: the Carbon Cube mark. It draws in, then main.js morphs it into a plain cube and back. */
.cube-stage { display: grid; max-width: 460px; }
.cube-stage > * { grid-area: 1 / 1; width: 100%; display: block; overflow: visible; }
.logo-cube .hatch-bg { fill: #ecebe6; }
.logo-cube .hatch-line { stroke: var(--ink); stroke-width: .8; }
.lg-bg { fill: #fbfaf7; }
.lg-amber { fill: var(--accent); opacity: 0; }
.lg-xfade { opacity: 0; }
.lg-stroke { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linejoin: round; stroke-linecap: round; }

@media (prefers-reduced-motion: no-preference) {
  /* intro: outline draws, the left piece slides into place, hatching wipes in */
  .js .lg-s1, .js .lg-s3, .js .lg-s4 { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s cubic-bezier(.65,0,.25,1) .1s forwards; }
  .js .lg-s3 { animation-delay: .75s; animation-duration: .6s; }
  .js .lg-s4 { animation-delay: 1s; animation-duration: .6s; }
  .js .lg-left { opacity: 0; transform: translateX(-56px); animation: lg-dock 1s cubic-bezier(.25,1.35,.4,1) 1.15s forwards; }
  .js .lg-hatch { clip-path: inset(0 0 100% 0); animation: lg-wipe .7s cubic-bezier(.6,0,.2,1) 1.45s forwards; }
  .js .lg-h3 { clip-path: inset(100% 0 0 0); animation-delay: 1.6s; }
  .js .lg-h2 { animation-delay: 1.5s; }
  .js .lg-bg { opacity: 0; animation: fade .8s ease 1.8s forwards; }
  .js .dims { opacity: 0; animation: fade .6s ease 2.2s forwards; }
}
@keyframes lg-dock { 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes lg-wipe { to { clip-path: inset(0 0 0 0); } }

.quick-routes {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 6vw, 72px); border-top: 3px solid var(--accent);
}
.quick-routes a {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 4px 0;
  text-decoration: none; min-height: 44px;
}
.quick-routes li + li a { padding-left: 16px; border-left: 1px solid var(--rule); }
.qr-k { color: var(--mute); }
.qr-v { font-weight: 500; overflow-wrap: anywhere; }
.qr-v::after { content: "\00a0→"; color: var(--accent-ink); }
.quick-routes a:hover .qr-v { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-no { grid-row: span 2; color: var(--accent-ink); margin: 10px 0 0; font-size: 15px; font-weight: 500; }
.section-no::before { content: ""; display: block; width: 36px; height: 4px; background: var(--accent); margin-bottom: 12px; }
.approach .section-no { color: var(--accent-hi); }
.section-head h2 { font-size: clamp(32px, 4.2vw, 56px); }
.section-intro { color: var(--ink-2); max-width: 40em; margin: 20px 0 0; font-size: 18px; }

/* ---------- Work ---------- */
.case {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px);
  align-items: start; padding-bottom: clamp(56px, 8vw, 104px);
}
.case + .case { padding-top: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); }
.case-flip .case-media { order: 2; }
.case-media img { width: 100%; border: 1px solid var(--ink); background: var(--paper-2); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: box-shadow .25s ease, transform .25s ease; }
.case:hover .case-media img { box-shadow: 10px 10px 0 var(--accent); transform: translate(-3px, -3px); }
.case-wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.case-wide.case-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.case-body { padding-top: 8px; }
.case-tag { color: var(--mute); margin-bottom: 14px; }
.case h3 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 20px; }
.case-summary { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.case-facts { margin: 32px 0; border-top: 3px solid var(--accent); }
.case-facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.case-facts dt { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); padding-top: 3px; }
.case-facts dd { margin: 0; }

.more-work { margin-top: clamp(16px, 3vw, 32px); padding-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--rule); }
.sub-title { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: clamp(28px, 4vw, 48px); }
.site-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 48px); }
.site-card { position: relative; }
.shot { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--ink); background: var(--paper-2); margin-bottom: 20px; transition: box-shadow .25s ease, transform .25s ease; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.site-card:hover .shot { box-shadow: 10px 10px 0 var(--accent); transform: translate(-3px, -3px); }
.site-card h4 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 10px; }
.site-card p:not(.case-tag) { color: var(--ink-2); margin-bottom: 14px; max-width: 34em; }
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--ink); outline-offset: 6px; }
.site-card:hover .text-link { color: var(--accent-ink); }


/* ---------- Approach ---------- */
.approach { background: var(--graphite); color: var(--on-dark); }
.approach .section-intro { color: var(--on-dark-mute); }
.approach .section-head h2 { color: var(--on-dark); }
.section.approach + .section { border-top: 0; }
.areas { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); }
.areas li { border-top: 1px solid #3a3a36; padding: 24px 0 36px; }
.areas h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 10px; color: var(--on-dark); }
.areas p { color: var(--on-dark-mute); margin: 0; font-size: 16px; }
.approach-terms { margin: 16px 0 0; color: var(--on-dark-mute); max-width: 44em; }
.cap-title { color: var(--on-dark-mute); margin-bottom: 18px; font-size: 13px; }

/* ---------- People ---------- */
.team { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 248px)); gap: 28px 32px; }
.team li { display: flex; flex-direction: column; }
.team img { width: 100%; margin-bottom: 14px; }
/* muted to sit in the paper: blend into the background, lifted slightly */
.team img, .roster img { mix-blend-mode: multiply; filter: brightness(1.04) drop-shadow(0 0 0 transparent); transition: filter .25s ease, transform .25s ease; }
/* same amber offset shadow as the venture cards; drop-shadow follows the hexagon */
.team li:hover img { filter: brightness(1.04) drop-shadow(16px 10px 0 var(--accent)); transform: translate(-3px, -3px); }
.roster li:hover img { filter: brightness(1.04) drop-shadow(8px 5px 0 var(--accent)); transform: translate(-2px, -2px); }
.t-name { font-weight: 500; font-size: 18px; }
.t-role { color: var(--mute); font-size: 12px; margin-top: 2px; }

.roster {
  list-style: none; margin-top: 48px; border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px;
}
.roster li { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-content: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.roster img { grid-row: span 2; width: 72px; align-self: center; }
.r-name { font-weight: 500; align-self: end; }
.r-role { color: var(--mute); font-size: 14px; align-self: start; }

.standards { margin-top: clamp(56px, 8vw, 96px); }
.standards .cap-title { color: var(--mute); }
.standards ol { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.standards li { counter-increment: s; border-top: 3px solid var(--accent); padding-top: 18px; color: var(--ink-2); }
.standards li::before { content: "0" counter(s); display: block; font-family: var(--mono); font-size: 13px; color: var(--accent-ink); margin-bottom: 12px; }
.standards strong { display: block; color: var(--ink); font-weight: 500; font-size: 20px; line-height: 1.3; margin-bottom: 8px; }

/* ---------- Routes ---------- */
.routes { padding-bottom: 0; }
.route-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.route { display: flex; flex-direction: column; padding: 28px 24px 32px 0; }
.route + .route { padding-left: 24px; border-left: 1px solid var(--rule); }
.route h3 { font-size: 24px; margin-bottom: 14px; }
.route p { color: var(--ink-2); flex: 1; margin-bottom: 24px; font-size: 16px; }
.route .btn { align-self: stretch; text-align: center; min-height: 64px; }

/* ---------- Enquiry ---------- */
.enquire-band { margin-top: var(--section); padding: var(--section) 0; background: var(--graphite); color: var(--on-dark); }
.enquire-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); }
.enquire-intro h2 { font-size: clamp(32px, 4.2vw, 56px); margin-bottom: 20px; }
.enquire-intro h2::before { content: ""; display: block; width: 36px; height: 4px; background: var(--accent); margin-bottom: 20px; }
.enquire-intro p { color: var(--on-dark-mute); max-width: 26em; }
.contact-alt a { color: var(--on-dark); text-underline-offset: 4px; }

.enquiry { display: grid; gap: 22px; }
.route-pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.route-pick legend { font-size: 15px; color: var(--on-dark-mute); margin-bottom: 10px; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #7a7973; border-radius: var(--radius); }
.seg label { position: relative; }
.seg label + label { border-left: 1px solid #7a7973; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 12px 6px; font-size: 15px; color: var(--on-dark-mute); transition: background-color .15s, color .15s; }
.seg input:checked + span { background: var(--accent); color: var(--ink); font-weight: 500; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.seg label:hover span { color: var(--on-dark); }
.seg label:hover input:checked + span { color: var(--graphite); }

.field label { display: block; font-size: 15px; margin-bottom: 8px; color: var(--on-dark); }
.opt { color: var(--on-dark-mute); font-size: 11px; margin-left: 6px; }
.field input, .field textarea {
  width: 100%; font: 17px/1.5 var(--sans); color: var(--on-dark);
  background: var(--graphite-2); border: 1px solid #7a7973; border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--on-dark); box-shadow: 0 0 0 1px var(--on-dark); }
.field input::placeholder { color: #8f8e86; }
.field [aria-invalid="true"] { border-color: #ff8a73; }
.err { color: #ff9c87; font-size: 14px; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.enquiry .btn-solid { background: var(--accent); color: var(--ink); border-color: var(--accent); min-width: 140px; }
.enquiry .btn-solid:hover { background: var(--on-dark); color: var(--graphite); border-color: var(--on-dark); }
.form-note { margin: 0; color: var(--on-dark-mute); font-size: 14px; }

.form-status:empty { display: none; }
.form-status { padding: 18px 20px; border-radius: var(--radius); font-size: 16px; }
.form-status:focus { outline: none; }
.form-status.is-ok { background: #e7f2ea; color: #12321d; border-left: 3px solid var(--ok); }
.form-status.is-error { background: #fbe9e6; color: #3f0d08; border-left: 3px solid var(--error); }
.form-status p { margin: 0 0 6px; }
.form-status p:last-child { margin: 0; }
.form-status a { color: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: var(--on-dark-mute); border-top: 1px solid #33332f; padding: 56px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { filter: invert(1); width: 40px; height: 40px; }
.footer-brand strong { color: var(--on-dark); font-weight: 500; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--on-dark); text-underline-offset: 4px; }
.footer-base { margin-top: 40px; font-family: var(--mono); font-size: 12px; }
.footer-base p { margin: 0; padding-top: 20px; border-top: 1px solid #33332f; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route:nth-child(3) { padding-left: 0; border-left: 0; }
  .route:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 220px; }
  .hero-figure .fig-label, .dims { display: none; }
  .eyebrow { flex-direction: column; gap: 2px; }
  .eyebrow span + span::before { content: none; }
  .iso { margin: 0; }
  .logo-cube { margin-bottom: -30px; }
  .hero::before { -webkit-mask-image: linear-gradient(180deg, #000, transparent 40%); mask-image: linear-gradient(180deg, #000, transparent 40%); }
  .quick-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-routes li:nth-child(3) a { padding-left: 0; border-left: 0; }
  .quick-routes li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .quick-routes a { padding-bottom: 14px; }
  .section-head { grid-template-columns: 1fr; }
  .section-no { grid-row: auto; margin: 0 0 12px; }
  .case, .case-wide, .case-wide.case-flip { grid-template-columns: 1fr; }
  .case-flip .case-media { order: 0; }
  .site-grid { grid-template-columns: 1fr; }
  .case-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .areas { grid-template-columns: 1fr; }
  .areas li { padding-bottom: 28px; }
  .standards ol { grid-template-columns: 1fr; gap: 24px; }
  .enquire-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; justify-items: center; }
  .footer-brand { flex-direction: column; align-items: center; gap: 10px; }
  .footer-brand p { margin: 0; }
  .footer-grid p:last-child { margin-bottom: 0; }
  .footer-base { text-align: center; }
}
@media (max-width: 560px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .t-name { font-size: 16px; }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .roster li { grid-template-columns: 1fr; text-align: left; }
  .roster img { grid-row: auto; width: 64px; margin-bottom: 8px; }
  .r-role { font-size: 13px; }
  .route-grid { grid-template-columns: 1fr; }
  .route, .route + .route { padding: 24px 0 28px; border-left: 0; }
  .route .btn { min-height: 48px; }
  .route + .route { border-top: 1px solid var(--rule); }
  .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg label:nth-child(3) { border-left: 0; }
  .seg label:nth-child(n+3) { border-top: 1px solid #7a7973; }
  .form-foot .btn { width: 100%; }
}

/* ---------- 404 ---------- */
.nf-title { font-size: clamp(36px, 5vw, 64px); }
