/* ==========================================================================
   BOSS FABRICATION — design system
   Direction: "shop drawing". White ground, deep navy ink and a single gold
   accent, taken straight from the logo artwork, over a visible engineering
   grid (hairlines, tick marks, part numbers) that holds the page together.
   ========================================================================== */

/* ---------------------------------------------------------------- 1. tokens */
/*
 * LIGHT THEME. White ground, navy ink (#122B43), one gold accent (#D4AF37).
 *
 * The palette below is expressed twice. The semantic names (--paper-*, --ink-*,
 * --night-*) are the real palette. The --ink-900 / --steel-* names underneath
 * are legacy aliases kept pointing at the right new values, because several
 * hundred rules across this file already reference them — re-pointing the
 * aliases flips the whole site without touching those rules.
 *
 * Read it as: --paper-N goes lighter to darker, --ink-N goes darker to lighter.
 */
:root {
  /* surfaces, lightest first */
  --paper:   #ffffff;
  --paper-2: #f5f7f9;
  --paper-3: #eaeef2;
  --paper-4: #dce2e8;
  --paper-5: #c8d0d8;

  /* ink — navy-tinted, darkest first. Taken from the logo's #122B43. */
  --ink-1: #122b43;
  --ink-2: #22364f;
  --ink-3: #44566b;
  --ink-4: #556880;
  --ink-5: #63748a;      /* faint label text — 4.7:1 on white */

  /* the navy islands — stat band, lab, footer, photo heroes */
  --night:   #122b43;
  --night-2: #17324f;
  --night-3: #1e3d5e;

  /* gold. #D4AF37 is only 2.1:1 on white, so it is a FILL and a
     large/dark-ground colour only; --gold-ink is the small-text variant. */
  --gold-700: #6b5316;
  --gold-600: #8c6d1b;
  --gold-500: #d4af37;   /* the brand gold — fills, rules, large type */
  --gold-400: #8c6d1b;   /* small gold TEXT on white — 4.9:1 */
  --gold-300: #e0c25f;
  --gold-100: #f2e3b0;
  --gold-glow: rgba(212, 175, 55, 0.32);
  --on-gold: #122b43;    /* text that sits on a gold fill — 6.7:1 */

  /* legacy accent aliases so existing rules keep working */
  --heat-700: var(--gold-700);
  --heat-600: var(--gold-600);
  --heat-500: var(--gold-500);
  --heat-400: var(--gold-400);
  --heat-300: var(--gold-300);
  --heat-100: var(--gold-100);
  --heat-glow: var(--gold-glow);

  --arc: #2f6f95;
  --ok: #15803d;

  /* ---- legacy aliases: surfaces ---- */
  --ink-900: var(--paper);      /* page ground */
  --ink-850: var(--paper-2);    /* alternate section */
  --ink-800: var(--paper);      /* card face */
  --ink-750: var(--paper-2);
  --ink-700: var(--paper-3);
  --ink-600: var(--paper-4);
  --ink-500: var(--paper-5);

  /* ---- legacy aliases: ink ---- */
  --steel-050: var(--ink-1);    /* headings */
  --steel-100: var(--ink-2);    /* body */
  --steel-200: var(--ink-2);    /* lede */
  --steel-300: var(--ink-3);    /* muted */
  --steel-400: var(--ink-4);
  --steel-500: var(--ink-5);    /* faint labels, ghost edge */
  --white: #ffffff;

  --surface: var(--paper);
  --surface-raised: var(--paper-2);
  --hairline: rgba(18, 43, 67, 0.14);
  --hairline-strong: rgba(18, 43, 67, 0.24);

  /* interior fill for chamfered ghost buttons; dark scopes override it */
  --btn-inner: var(--paper);

  --plate: linear-gradient(160deg, #f7f9fb 0%, #eef2f6 46%, #f5f8fa 100%);
  /* The wordmark is now flat navy to match the logo artwork, so this gradient
     is only kept for the rare decorative numeral. */
  --brushed: linear-gradient(180deg, #2f4a68 0%, #122b43 100%);

  /* type */
  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-hero: clamp(2.7rem, 7.6vw, 7.8rem);
  --t-h1: clamp(2.8rem, 7.5vw, 6.6rem);
  --t-h2: clamp(2.2rem, 5.2vw, 4.4rem);
  --t-h3: clamp(1.5rem, 2.6vw, 2.2rem);
  --t-h4: clamp(1.15rem, 1.5vw, 1.4rem);
  --t-body: clamp(0.98rem, 0.52vw + 0.86rem, 1.12rem);
  --t-small: 0.86rem;
  --t-label: 0.76rem;

  /* rhythm */
  --gutter: max(clamp(1.15rem, 4vw, 4.5rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section-y: clamp(4.5rem, 10vw, 9.5rem);
  --maxw: 1560px;
  --maxw-text: 68ch;

  --r-sm: 3px;
  --r-md: 5px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-steel: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.55s;

  --header-h: 76px;
}

/*
 * Dark islands. Instead of rewriting every rule inside these sections, the
 * tokens are simply re-declared here — inheritance flips all the descendants
 * back to light-on-dark automatically.
 */
.hero,
.phero,
.split,
.stats,
.lab,
.footer,
.callbar,
.section--night {
  --paper: var(--night);
  --paper-2: var(--night-2);
  --paper-3: var(--night-3);
  --ink-900: var(--night);
  --ink-850: var(--night-2);
  --ink-800: var(--night-2);
  --ink-750: var(--night-3);
  --steel-050: #ffffff;
  --steel-100: #e2e7ec;
  --steel-200: #bfc8d0;
  --steel-300: #9aa4ae;
  --steel-400: #7b858f;
  --steel-500: #8fa3b8;
  --hairline: rgba(255, 255, 255, 0.14);
  --hairline-strong: rgba(255, 255, 255, 0.26);
  --btn-inner: rgba(18, 43, 67, 0.86);
  --gold-400: var(--gold-500);   /* gold on navy is 6.7:1 — use the brand gold */
  --heat-400: var(--gold-500);
  /* the wordmark's dark chrome would vanish here, so restore the light ramp */
  --brushed: linear-gradient(180deg,
      #eef2f5 0%, #c0c9d1 17%, #78838d 37%, #e6ecf1 49%,
      #5c666e 52%, #9aa4ac 72%, #dbe2e8 89%, #6a747c 100%);
  color: var(--steel-100);
}

/* ------------------------------------------------------------- 2. reset/base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--steel-100);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 0.92; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--f-display); text-transform: uppercase; }
h3, h4 { font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.005em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold-500); color: var(--on-gold); }

:focus-visible {
  outline: 2px solid var(--heat-400);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold-500); color: var(--on-gold); padding: 0.7rem 1.2rem;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.12em;
}
.skip-link:focus { left: 0; }

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

/* --------------------------------------------------------------- 3. layout */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--plate { background: var(--plate); }
.section--dark { background: var(--ink-850); }

/* the hairline grid that runs behind most sections */
.gridlines {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  opacity: 0.5;
}
.gridlines::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px),
    linear-gradient(180deg, var(--hairline) 1px, transparent 1px);
  background-size: clamp(60px, 7vw, 110px) clamp(60px, 7vw, 110px);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
}

/* ------------------------------------------------------ 4. type primitives */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-label); font-size: var(--t-label); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.28em;
  color: var(--heat-400); margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: clamp(20px, 3vw, 46px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--heat-500));
}
.eyebrow--plain::before { display: none; }
.eyebrow--steel { color: var(--steel-300); }
.eyebrow--steel::before { background: linear-gradient(90deg, transparent, var(--steel-400)); }

/* part number, top-right of a section — the shop-drawing tell */
.partno {
  font-family: var(--f-label); font-size: var(--t-label);
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--steel-500);
}

.lede {
  font-size: clamp(1.05rem, 1.1vw + 0.8rem, 1.35rem);
  line-height: 1.55; color: var(--steel-200); max-width: var(--maxw-text);
}

.muted { color: var(--steel-300); }
.tiny { font-size: var(--t-small); line-height: 1.5; }

/* brushed-metal text, used only on the wordmark and a couple of numerals */
.metal-text {
  background: var(--brushed);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* headline with a heat-lit word */
.hot { color: var(--heat-500); }

/* section heading block */
.head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.2rem, 4vw, 3.6rem); }
.head__row { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.head h2 { font-size: var(--t-h2); color: var(--steel-050); }
.head p { max-width: var(--maxw-text); }

/* -------------------------------------------------------------- 5. buttons */
.btn {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--on-gold);
  position: relative; display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--f-label); font-size: 0.95rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--gold-glow); background: var(--gold-300); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--steel-050);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}
/* superseded by the chamfer-safe ghost button further down */

.btn--steel { --btn-bg: var(--ink-1); --btn-fg: #ffffff; }
.btn--steel:hover { background: var(--ink-2); }

.btn--lg { padding: 1.15rem 2.1rem; font-size: 1.02rem; }
.btn--block { width: 100%; justify-content: center; }

.btn__arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* text link with an underline that draws in */
.tlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.88rem; font-weight: 600; color: var(--heat-400);
  padding-bottom: 3px; background-image: linear-gradient(var(--heat-500), var(--heat-500));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.4s var(--ease-out), color 0.3s;
}
.tlink:hover { background-size: 100% 1px; color: var(--heat-300); }

/* --------------------------------------------------------------- 6. header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.header.is-stuck {
  background: var(--paper);
  box-shadow: 0 1px 18px -8px rgba(11, 14, 17, 0.28);
}
.header__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand__mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand__type { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--f-display); font-weight: 800; font-size: 1.42rem;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.brand__sub {
  font-family: var(--f-label); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--steel-400);
  margin-top: 2px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(0.5rem, 1.6vw, 1.9rem); }
.nav__link {
  position: relative;
  font-family: var(--f-label); font-size: 0.93rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--steel-200);
  padding: 0.4rem 0; transition: color 0.25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--heat-500); transition: width 0.35s var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--steel-050); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }

.header__cta { display: flex; align-items: center; gap: 0.8rem; }
.header__phone {
  display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap;
  font-family: var(--f-label); font-weight: 600; letter-spacing: 0.08em;
  font-size: 1rem; color: var(--steel-050);
}
.header__phone svg { color: var(--heat-500); }

/* dropdown for services */
.nav__group { position: relative; }
.nav__panel {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0;
  min-width: 480px; padding: 1rem;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px -22px rgba(11, 14, 17, 0.4);
  border: 1px solid var(--hairline-strong);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem;
  opacity: 0; visibility: hidden; translate: -50% 8px;
  transition: opacity 0.28s, visibility 0.28s, translate 0.28s var(--ease-out);
}
.nav__group:hover .nav__panel,
.nav__group:focus-within .nav__panel { opacity: 1; visibility: visible; translate: -50% 0; }
.nav__panel a {
  padding: 0.6rem 0.8rem; font-size: 0.9rem; color: var(--steel-200);
  border-left: 2px solid transparent; transition: 0.2s;
}
.nav__panel a:hover { background: var(--paper-2); color: var(--ink-1); border-left-color: var(--heat-500); }

.burger {
  display: none; width: 44px; height: 44px; background: none; border: 0;
  cursor: pointer; padding: 10px; margin-right: -10px;
}
.burger span { display: block; height: 2px; background: var(--steel-050); margin: 5px 0; transition: 0.3s var(--ease-out); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------ 7. hero/forge */
/* Two bands: the structure gets the upper one to itself so nothing is ever
   drawn behind the headline, and the copy sits in the lower band. */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--night);
}

/* A real project behind the headline. Two scrims, not one: a vertical ramp so
   the type has a dark floor to stand on, and a soft left wash so the first few
   words stay legible whichever way the photograph is exposed. */
.hero__media { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.18) brightness(0.66) contrast(1.06);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 43, 67, 0.82) 0%, rgba(18, 43, 67, 0.34) 52%, rgba(18, 43, 67, 0.18) 100%),
    linear-gradient(180deg, rgba(18, 43, 67, 0.5) 0%, rgba(18, 43, 67, 0.12) 34%, rgba(18, 43, 67, 0.72) 82%, rgba(18, 43, 67, 0.9) 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow {
  font-family: var(--f-label); font-size: 0.78rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gold-500); margin: 0 0 1.1rem;
}

/* Stacked by default: drawing, headline, then the meta bar.
   The SVG is sized to its cell rather than the other way round, so
   preserveAspectRatio scales the drawing down on short viewports instead of
   pushing the copy off the screen. */
.hero__inner {
  height: 100%;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(2.2rem, 4.5vw, 3.4rem);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  row-gap: clamp(0.5rem, 1.4vh, 1.2rem);
}

.forge {
  grid-area: 1 / 1;
  position: relative;
  display: flex; min-height: 0;
  padding-top: clamp(0.6rem, 2.5vh, 1.8rem);
  pointer-events: none;
}
.forge__svg {
  width: 100%; height: 100%;
  margin-inline: auto;
  overflow: visible;
}

/* blueprint backdrop behind the assembling structure */
.forge__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(11, 14, 17, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 14, 17, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 0%, transparent 72%);
  opacity: 0;
}

.hero__content { grid-area: 2 / 1; position: relative; z-index: 3; }

.hero__title {
  font-family: var(--f-display); font-size: var(--t-hero);
  line-height: 0.82; letter-spacing: -0.015em; text-transform: uppercase;
  color: var(--steel-050);
  margin: 0 0 1.4rem;
}
.hero__title span { display: block; }
.hero__line { overflow: hidden; }

.hero__meta {
  grid-area: 3 / 1; position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: clamp(1.2rem, 4vw, 3.5rem);
  padding-top: 1.2rem; margin-top: clamp(0.6rem, 2vh, 1.4rem);
  border-top: 1px solid var(--hairline);
}
.hero__blurb { max-width: 44ch; color: var(--steel-200); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-left: auto; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 0.7rem; translate: -50% 0; z-index: 4; opacity: .8;
  display: grid; justify-items: center; gap: 0.5rem;
  font-family: var(--f-label); font-size: 0.68rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--steel-500);
}
.hero__scroll i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--heat-500), transparent); }

/* the caption that names whatever the hero is currently building */
.forge__caption {
  position: absolute; z-index: 3; left: var(--gutter); top: calc(var(--header-h) + clamp(1rem, 4vh, 3rem));
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.78rem; color: var(--steel-400);
  display: grid; gap: 0.35rem;
}
.forge__caption b { color: var(--heat-400); font-weight: 600; letter-spacing: 0.22em; }

/* ---------------------------------------------------------- 8. audience split */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: clamp(420px, 72vh, 760px);
  border-block: 1px solid var(--hairline);
}
.split__half {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: clamp(1.6rem, 3.5vw, 3.4rem);
  isolation: isolate;
  transition: flex-grow 0.6s var(--ease-out);
}
.split__half + .split__half { border-left: 1px solid var(--hairline); }

.split__media { position: absolute; inset: 0; z-index: -2; }
.split__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.85) contrast(1.12) brightness(0.66);
  transform: scale(1.06);
  transition: filter 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}
.split__half::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 9, 11, 0.2) 0%, rgba(7, 9, 11, 0.72) 62%, rgba(7, 9, 11, 0.93) 100%);
  transition: background 0.6s;
}
.split__half:hover .split__media img,
.split__half:focus-within .split__media img { filter: grayscale(0) contrast(1.04) brightness(0.86); transform: scale(1); }

.split__body { position: relative; max-width: 44ch; }
.split__index {
  font-family: var(--f-label); font-size: 0.74rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--heat-500); margin-bottom: 0.9rem; display: block;
}
.split__title {
  font-family: var(--f-display); font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  text-transform: uppercase; line-height: 0.88; color: var(--steel-050); margin: 0 0 0.7rem;
}
.split__desc { color: var(--steel-200); margin-bottom: 1.3rem; }
.split__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.split__tags span {
  font-family: var(--f-label); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.28rem 0.6rem; border: 1px solid var(--hairline-strong); color: var(--steel-300);
}
.split__link::after { content: ""; position: absolute; inset: 0; z-index: 5; }

/* ------------------------------------------------------------- 9. stat band */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--hairline);
  background: var(--ink-850);
}
.stat {
  padding: clamp(1.5rem, 2.6vw, 2.4rem);
  border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  position: relative;
}
.stat__num {
  font-family: var(--f-label); font-weight: 700;
  font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1;
  color: var(--steel-050); letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 0.1em;
}
.stat__suffix { color: var(--heat-500); font-size: 0.55em; }
.stat__label {
  font-family: var(--f-label); font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--steel-400); margin-top: 0.6rem;
}
.stat__note { font-size: 0.78rem; color: var(--steel-500); margin-top: 0.35rem; }

/* ------------------------------------------------------------ 10. capability */
.caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.cap {
  position: relative; padding: clamp(1.6rem, 2.4vw, 2.3rem);
  background: var(--ink-850); overflow: hidden;
  display: grid; align-content: start; gap: 0.8rem;
  transition: background 0.4s;
}
.cap::before {
  content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 0;
  background: var(--heat-500); transition: height 0.5s var(--ease-out);
}
.cap:hover { background: var(--ink-750); }
.cap:hover::before { height: 100%; }
.cap__no { font-family: var(--f-label); font-size: 0.74rem; letter-spacing: 0.26em; color: var(--steel-500); }
.cap__icon { width: 34px; height: 34px; color: var(--heat-500); }
.cap h3 { font-size: var(--t-h4); color: var(--steel-050); }
.cap p { font-size: 0.94rem; color: var(--steel-300); margin: 0; }
.cap__link { margin-top: 0.35rem; justify-self: start; }
.cap__link::after { content: ""; position: absolute; inset: 0; }

/* --------------------------------------------------------------- 11. project */
.grid-projects {
  display: grid; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(clamp(250px, 26vw, 380px), 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.6rem);
}

.card {
  position: relative; display: block; overflow: hidden;
  background: var(--ink-800); border: 1px solid var(--hairline);
  isolation: isolate;
}
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-700); }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.6s;
  filter: none;
}
.card:hover .card__media img { transform: scale(1.06); filter: brightness(1.04); }
.card--tall .card__media { aspect-ratio: 3 / 4; }
.card--wide .card__media { aspect-ratio: 16 / 10; }

.card__body { padding: 1.15rem 1.25rem 1.35rem; display: grid; gap: 0.4rem; }
.card__service {
  font-family: var(--f-label); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--heat-400);
}
.card__title { font-family: var(--f-display); font-size: 1.32rem; text-transform: uppercase; color: var(--steel-050); line-height: 1; }
.card__blurb { font-size: 0.9rem; color: var(--steel-400); margin: 0; }
.card__client {
  font-family: var(--f-label); font-size: 0.76rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--steel-300);
  display: flex; align-items: center; gap: 0.45rem; margin-top: 0.2rem;
}
.card__client::before { content: ""; width: 5px; height: 5px; background: var(--heat-500); }

/* corner tick, echoing the logo's cut corner */
.card::after {
  content: ""; position: absolute; right: 0; top: 0; z-index: 2;
  border: 14px solid transparent; border-top-color: var(--heat-500); border-right-color: var(--heat-500);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover::after { opacity: 1; }

/* filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.filter {
  font-family: var(--f-label); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 0.5rem 1rem; background: transparent; color: var(--steel-300);
  border: 1px solid var(--hairline-strong); cursor: pointer; transition: 0.25s;
}
.filter:hover { color: var(--steel-050); border-color: var(--steel-400); }
.filter[aria-pressed="true"] { background: var(--gold-500); border-color: var(--gold-500); color: var(--on-gold); }

.card.is-hidden { display: none; }

/* --------------------------------------------------------------- 12. process */
.process { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
@media (min-width: 860px) { .process { grid-template-columns: repeat(5, 1fr); } }
.step {
  background: var(--ink-850); padding: clamp(1.5rem, 2.4vw, 2.2rem);
  display: grid; align-content: start; gap: 0.7rem; position: relative;
}
.step__no {
  font-family: var(--f-display); font-size: 3.2rem; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px var(--steel-500);
  transition: color 0.4s, -webkit-text-stroke-color 0.4s;
}
.step:hover .step__no { color: var(--heat-500); -webkit-text-stroke-color: var(--heat-500); }
.step h3 { font-size: 1.2rem; color: var(--steel-050); }
.step p { font-size: 0.9rem; color: var(--steel-400); margin: 0; }

/* ------------------------------------------------------------- 13. marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--hairline); padding-block: 1.4rem; background: var(--ink-850); }
.marquee__track { display: flex; gap: clamp(2rem, 5vw, 5rem); width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--f-display); font-size: clamp(1.1rem, 1.7vw, 1.7rem);
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--steel-400);
  display: flex; align-items: center; gap: clamp(2rem, 5vw, 5rem); white-space: nowrap;
}
.marquee__item::after { content: ""; width: 6px; height: 6px; background: var(--heat-500); flex-shrink: 0; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ 14. showcase */
.showcase { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 900px) { .showcase__row { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; } }
@media (min-width: 900px) { .showcase__row:nth-child(even) .showcase__media { order: 2; } }
.showcase__media { position: relative; overflow: hidden; border: 1px solid var(--hairline); }
.showcase__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.showcase__body { display: grid; gap: 1rem; align-content: center; }
.showcase__body h3 { font-size: var(--t-h3); color: var(--steel-050); }
.showcase__facts { display: grid; gap: 0.5rem; margin-top: 0.4rem; }
.showcase__facts div {
  display: flex; gap: 0.9rem; padding-block: 0.55rem;
  border-top: 1px solid var(--hairline); font-size: 0.9rem;
}
.showcase__facts dt, .showcase__facts b {
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.76rem; color: var(--steel-500); min-width: 8rem; font-weight: 600;
}
.showcase__facts span { color: var(--steel-200); }

/* ------------------------------------------------------------- 15. page hero */
.phero {
  position: relative; padding-top: calc(var(--header-h) + clamp(3rem, 9vw, 7rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden; border-bottom: 1px solid var(--hairline);
}
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4) brightness(0.62) contrast(1.08); }
.phero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--ink-900) 2%, rgba(7, 9, 11, 0.86) 42%, rgba(7, 9, 11, 0.52) 100%);
}
.phero h1 { font-size: var(--t-h1); color: var(--steel-050); max-width: 18ch; }
.phero .lede { margin-top: 1.4rem; }

.crumbs {
  display: flex; gap: 0.6rem; align-items: center; margin-bottom: 1.4rem;
  font-family: var(--f-label); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-500);
}
.crumbs a:hover { color: var(--heat-400); }
.crumbs span { color: var(--steel-600, var(--steel-500)); }

/* ----------------------------------------------------------------- 16. FAQ */
.faq { display: grid; border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--f-display); font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  text-transform: uppercase; color: var(--steel-100); transition: color 0.25s;
}
.faq__q:hover { color: var(--heat-400); }
.faq__sign { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 2px; background: var(--heat-500);
  transition: transform 0.35s var(--ease-out);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 1.4rem; max-width: var(--maxw-text); color: var(--steel-300); }

/* ---------------------------------------------------------------- 17. form */
.rfq {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--hairline); background: var(--plate);
  padding: clamp(1.6rem, 3.5vw, 3.2rem);
}
@media (min-width: 940px) { .rfq { grid-template-columns: 0.85fr 1fr; } }

.field { display: grid; gap: 0.45rem; margin-bottom: 1rem; }
.field label {
  font-family: var(--f-label); font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--steel-400);
}
.field label .req { color: var(--heat-400); }
.field input, .field select, .field textarea {
  background: var(--paper); border: 1px solid var(--hairline-strong);
  color: var(--steel-050); padding: 0.85rem 1rem; width: 100%;
  transition: border-color 0.25s, background 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--steel-500); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--heat-500); background: var(--paper);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}
.field textarea { resize: vertical; min-height: 110px; }
.field--row { display: grid; gap: 1rem; }
@media (min-width: 620px) { .field--row { grid-template-columns: 1fr 1fr; } }

.form__note { font-size: 0.8rem; color: var(--steel-500); margin-top: 0.9rem; }
.form__status { font-size: 0.9rem; margin-top: 0.9rem; min-height: 1.4em; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--heat-400); }

.trust { display: grid; gap: 1.1rem; align-content: start; }
.trust__item { display: flex; gap: 0.85rem; align-items: flex-start; }
.trust__item svg { width: 20px; height: 20px; color: var(--heat-500); flex-shrink: 0; margin-top: 3px; }
.trust__item b { display: block; color: var(--steel-050); font-weight: 600; font-size: 0.98rem; }
.trust__item span { font-size: 0.88rem; color: var(--steel-400); }

/* --------------------------------------------------------------- 18. footer */
.footer { border-top: 1px solid var(--hairline); background: var(--ink-850); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer h4 {
  font-family: var(--f-label); font-size: 0.8rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--steel-500); margin-bottom: 1.1rem; font-weight: 600;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { color: var(--steel-300); font-size: 0.94rem; transition: color 0.2s; }
.footer a:hover { color: var(--heat-400); }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.82rem; color: var(--steel-500);
}
.footer__addr { font-style: normal; color: var(--steel-300); font-size: 0.94rem; line-height: 1.75; }

/* sticky mobile call bar — see section 30 */

/* ------------------------------------------------------------ 19. animation */
/* Nothing is hidden until JS confirms it can animate — a CDN failure or a
   no-JS crawler must still see a complete page. */
.js-anim .reveal { opacity: 0; transform: translateY(26px); }
.js-anim .reveal-mask > * { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-anim .reveal, .js-anim .reveal-mask > * { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- 20. breakpoints */
@media (max-width: 1180px) {
  .header__phone span { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .burger { display: block; margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; margin: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 1.5rem var(--gutter) 6rem;
    background: var(--paper);
    overflow-y: auto;
    clip-path: inset(0 0 100% 0); transition: clip-path 0.5s var(--ease-out);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); }
  .nav__link { font-size: 1.6rem; padding: 0.85rem 0; border-bottom: 1px solid var(--hairline); }
  .nav__link::after { display: none; }
  .nav__group { display: contents; }
  .nav__panel {
    position: static; translate: none; opacity: 1; visibility: visible;
    min-width: 0; background: none; border: 0; backdrop-filter: none;
    grid-template-columns: 1fr; padding: 0 0 1rem 1rem;
  }
  .nav__panel a { padding: 0.5rem 0.7rem; }
  .header__cta { display: none; }
  .split { grid-template-columns: 1fr; }
  .split__half + .split__half { border-left: 0; border-top: 1px solid var(--hairline); }
  .callbar { display: grid; }
  body { padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px)); }
  .footer { padding-bottom: 4rem; }
}

@media (max-width: 620px) {
  .stat { border-right: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-right: 1px solid var(--hairline); }
  .hero__actions { margin-left: 0; width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  /* caption now sits inside the drawing sheet — see section 26 */
}

/* ------------------------------------------------------------- 21. the lab */
/* Sticky rather than GSAP-pinned: the layout holds even if GSAP never loads. */
.lab { position: relative; height: 340vh; background: var(--ink-850); border-block: 1px solid var(--hairline); }
.lab__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto; align-items: center;
}
.lab__scroll { display: none; }
.lab__stage {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: clamp(3rem, 9vh, 7rem) var(--gutter);
}
.lab__stage .forge__svg { width: min(1100px, 92vw); }

.lab__ui {
  z-index: 2; grid-row: 2;
  padding-bottom: clamp(2rem, 6vh, 4rem);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.lab__head { max-width: 40ch; }
.lab__title {
  font-family: var(--f-display); font-size: clamp(2.4rem, 6vw, 5rem);
  text-transform: uppercase; line-height: 0.9; color: var(--steel-050); margin: 0;
}
.lab__spec {
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.82rem; color: var(--steel-400); margin: 0.6rem 0 0;
}
.lab__rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.lab__rail li {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.9rem; color: var(--steel-500);
  padding-left: 0.9rem; border-left: 2px solid var(--hairline);
  transition: color 0.35s, border-color 0.35s;
}
.lab__rail li span { font-size: 0.72rem; color: var(--steel-600, var(--steel-500)); }
.lab__rail li.is-on { color: var(--steel-050); border-left-color: var(--heat-500); }
.lab__rail li.is-on span { color: var(--heat-500); }
.lab__note {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 1.4rem);
  font-family: var(--f-label); font-size: 0.74rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--steel-500); margin: 0;
}

@media (max-width: 700px) {
  .lab { height: 300vh; }
  .lab__ui { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .lab__rail { grid-auto-flow: column; gap: 1rem; }
  .lab__rail li { padding-left: 0.6rem; font-size: 0.78rem; letter-spacing: 0.12em; }
  .lab__note { display: none; }
}

/* forge ghost/steel layering */
.forge__ghost line { vector-effect: non-scaling-stroke; }

/* A landscape phone has no room for both bands — stack and let the page scroll. */
@media (max-height: 560px), (max-width: 620px) and (max-height: 720px) {
  .hero { height: auto; min-height: 0; padding-bottom: 1rem; }
  .forge { min-height: 0; }
  .hero__scroll { display: none; }
}

/* ------------------------------------------------------- 22. mobile repairs */
/* Inline icons carry width/height attributes, but anywhere they sit next to
   text they also need to stop flexing. */
.btn svg, .callbar a svg, .header__phone svg, .tlink svg { width: 18px; height: 18px; flex-shrink: 0; }

.cap__icon { width: 34px; height: 34px; }
.trust__item svg { width: 20px; height: 20px; }

@media (max-width: 700px) {
  /* 0.82 line-height is set for one-line desktop headlines; once the words wrap
     on a phone the lines collide, so give them room. */
  .hero__title { line-height: 0.95; }
  .hero__title span { display: block; }
  .phero h1, .head h2, .split__title { line-height: 0.98; }

  /* the sticky call bar owns the bottom 52px — the hero must not sit under it */
  .hero { height: calc(100svh - 52px); }
  .hero__meta { flex-direction: column; align-items: stretch; gap: 1.1rem; }
  .hero__blurb { max-width: none; }

  .lab__title { line-height: 0.96; }
  .showcase__facts dt, .showcase__facts b { min-width: 6.5rem; }
  .rfq { padding: 1.25rem; }
}

@media (max-width: 420px) {
  :root { --t-hero: 2.35rem; }
  .filters { gap: 0.4rem; }
  .filter { font-size: 0.78rem; padding: 0.42rem 0.75rem; letter-spacing: 0.1em; }
}

@media (max-width: 700px) { .hero__scroll { display: none; } }

/* --------------------------------------------- 23. wide-screen hero layout */
/*
 * Past ~1100px the stacked hero falls apart: the drawing is 2:1, the band left
 * over above the copy is short and wide, and preserveAspectRatio letterboxes
 * the frame into the middle of it — leaving dead space either side of the
 * drawing AND to the right of the headline. Two columns fixes all of it: the
 * copy takes the left, the frame gets a tall cell it can actually fill, and the
 * meta bar rules off underneath both.
 */
@media (min-width: 980px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.98fr);
    /* Rows sized to their content, then the whole block centred. A 1fr row
       would hand all the leftover height to the drawing's cell, and since the
       frame is 2:1 it cannot grow to fill a tall cell — it just floats with a
       dead band underneath it. */
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: clamp(1.5rem, 3vw, 3.5rem);
    row-gap: clamp(1.4rem, 4vh, 3rem);
  }
  .hero__content { grid-area: 1 / 1; align-self: center; }
  .forge { grid-area: 1 / 2; align-self: center; padding-top: 0; }
  .hero__meta { grid-area: 2 / 1 / 3 / 3; margin-top: 0; }

  /* height:auto lets the frame take its intrinsic 2:1 shape, so its cell is
     exactly as tall as the drawing and no taller. */
  .forge__svg { height: auto; max-height: 56svh; }

  /* Sized so the longest line nearly fills the left column. */
  :root { --t-hero: clamp(3rem, 6.2vw, 5.6rem); }
}

/* Below the two-column breakpoint the headline has the full width to itself so
   it can run larger — but not so large that it starves the drawing above it of
   height, which is what happened at ~1024px. */
@media (max-width: 979px) {
  :root { --t-hero: clamp(2.3rem, 7.8vw, 5.2rem); }
}

/* ------------------------------------------------- 24. hero fit corrections */
@media (min-width: 980px) {
  /* The "now building" caption is absolutely placed top-left. Reserve height for
     it so the vertically-centred headline never rides up into it on a short
     laptop screen. */
  .hero__inner { padding-top: clamp(2.5rem, 7vh, 5rem); }
}

@media (max-width: 979px) {
  /* Stacked layout has no room to spare — the cue would sit on the buttons. */
  .hero__scroll { display: none; }
}

@media (max-width: 960px) {
  /* The sticky call bar owns the bottom 52px from this width down, not just on
     phones, so the hero has to stop above it. */
  .hero { height: calc(100svh - 52px); }
}

/* ==========================================================================
   25. MOBILE (v2)
   A dedicated pass over the phone experience: touch targets, legibility,
   vertical length, and the handful of things that only misbehave on a phone.
   ========================================================================== */

/* --- iOS input zoom -------------------------------------------------------
   Safari on iOS zooms the whole viewport whenever a focused form control is
   under 16px, and the user has to pinch back out afterwards. The controls
   inherited the fluid body size, which lands at ~15.8px on a phone. Nothing
   else fixes this — the control itself has to be 16px. */
@media (max-width: 960px) {
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
}

/* --- the ghost button's chamfered edge ------------------------------------
   box-shadow draws a rectangular inset border and clip-path then cuts the
   corners off it, so the two chamfers were left with no edge at all. Painting
   the border as the button's own background and covering the middle with a
   pseudo-element inset by 1.5px gives an edge that follows the cut. */
.btn--ghost {
  --btn-bg: var(--steel-500);
  --btn-fg: var(--steel-050);
  box-shadow: none;
  isolation: isolate;
}
.btn--ghost::before {
  content: "";
  position: absolute; inset: 1.5px; z-index: -1;
  background: var(--btn-inner);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.3s;
}
.btn--ghost:hover { --btn-bg: var(--steel-300); background: var(--steel-300); }
.btn--ghost:hover::before { background: color-mix(in srgb, var(--btn-inner) 88%, var(--heat-500)); }

/* --- the in-menu actions --------------------------------------------------
   The header's phone number and quote button are hidden at this width, so the
   menu carries its own — otherwise the only way to call from an open menu is
   to close it again. */
.nav__cta { display: none; }

@media (max-width: 960px) {
  .nav__cta {
    display: grid; gap: 0.7rem;
    margin-top: 1.7rem;
  }
  .nav__cta .btn { justify-content: center; }

  /* Ten service links pushed About and Contact off the bottom of the menu, so
     the list collapses behind a toggle. */
  .nav__group { position: relative; display: block; }
  .nav__group > .nav__link { display: block; padding-right: 3.5rem; }
  .nav__more {
    position: absolute; top: 0; right: 0;
    width: 56px; height: 4.2rem;
    background: none; border: 0; cursor: pointer;
  }
  .nav__more::before,
  .nav__more::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 15px; height: 2px; background: var(--heat-500);
    transition: transform 0.3s var(--ease-out);
  }
  .nav__more::before { transform: translate(-50%, -50%); }
  .nav__more::after  { transform: translate(-50%, -50%) rotate(90deg); }
  .nav__group.is-open .nav__more::after { transform: translate(-50%, -50%); }

  .nav__panel {
    position: static; translate: none; opacity: 1; visibility: visible;
    display: grid; grid-template-rows: 0fr;
    min-width: 0; padding: 0; border: 0; background: none; backdrop-filter: none;
    transition: grid-template-rows 0.35s var(--ease-out);
  }
  .nav__group.is-open .nav__panel { grid-template-rows: 1fr; }
  .nav__panel-in { overflow: hidden; display: grid; padding-left: 1rem; }
  .nav__panel a { padding: 0.72rem 0.8rem; min-height: 44px; display: flex; align-items: center; }
}

@media (min-width: 961px) {
  .nav__more { display: none; }
  /* The panel itself was still the two-column grid, so the new inner wrapper
     landed in column one and the links were squeezed into half the width.
     The columns belong to the wrapper now. */
  .nav__panel { display: block; }
  .nav__panel-in { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem; }
}

/* --- phone-sized refinements --------------------------------------------- */
@media (max-width: 700px) {
  /* Micro-copy was rendering at 11.5–11.9px. Below about 12px these labels
     stop being readable at arm's length, and the wide tracking made it worse. */
  .card__service { font-size: 0.8rem; letter-spacing: 0.16em; }
  .card__client  { font-size: 0.8rem; letter-spacing: 0.12em; }
  .cap__no, .partno, .lab__note,
  .split__index  { font-size: 0.79rem; letter-spacing: 0.18em; }
  .eyebrow       { font-size: 0.8rem; letter-spacing: 0.18em; }
  .stat__label   { font-size: 0.83rem; letter-spacing: 0.13em; }
  .footer h4     { font-size: 0.83rem; letter-spacing: 0.16em; }
  .filter        { font-size: 0.83rem; letter-spacing: 0.11em; }

  /* 44px minimum touch target — footer and breadcrumb links sat at 39px. */
  .footer ul a { display: flex; align-items: center; min-height: 44px; }
  .footer ul { gap: 0; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 40px; }
  .tlink { min-height: 44px; }
  .faq__q { padding-block: 1.15rem; min-height: 56px; }

  /* Vertical length: the home page ran to 21 screens on a phone. Trimming the
     section rhythm and the card padding, not the content. */
  :root { --section-y: 3.4rem; }
  .cap  { padding: 1.3rem 1.15rem; gap: 0.55rem; }
  .step { padding: 1.3rem 1.15rem; }
  .showcase { gap: 2.2rem; }
  .showcase__facts div { padding-block: 0.5rem; }
  .split__half { min-height: 0; padding-block: 2.6rem; }
  .lab { height: 190vh; }
  .head { margin-bottom: 1.8rem; }

  /* Filters became five stacked rows; a swipeable strip is both shorter and a
     more natural phone gesture. Bleeds to the screen edge so it reads as
     scrollable. */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 0.4rem;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; scroll-snap-align: start; min-height: 44px; }
}

/* --- batched project grids ------------------------------------------------
   39 cards in a single column is 26 screens of scrolling. JS reveals them in
   blocks; with JS off nothing is hidden and the button stays absent. */
.card.is-over { display: none; }
.grid-more { display: flex; justify-content: center; padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.grid-more .btn { min-width: 16rem; justify-content: center; }

/* Stop the tap flash from fighting the dark palette. */
@media (hover: none) {
  a, button { -webkit-tap-highlight-color: rgba(212, 175, 55, 0.22); }
  .card:hover .card__media img { transform: none; }
  .btn:hover { transform: none; box-shadow: none; }
}

/* --- card tap target ------------------------------------------------------
   The project title was the only link in a card, giving a 25px target for the
   card's whole purpose. Stretching it over the card makes the entire tile
   tappable — the same trick the split panels and capability cards already use.
   Cards contain no other links, so nothing is swallowed. */
.card__title a::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
}

@media (max-width: 700px) {
  .brand { min-height: 44px; }
}

/* ==========================================================================
   26. STACKED HERO — drawing and headline as separate blocks
   The stacked layout used a minmax(0,1fr) track for the drawing while a
   media query forced .forge to 46svh. A 1fr track can shrink below its item,
   so on a 667px-tall phone the track resolved to 44px while .forge rendered
   307px — it overflowed 263px straight over the headline.

   Rows are now content-sized and the SVG takes its intrinsic aspect with a
   viewport cap, so the drawing can never grow into the copy. It also sits on
   its own tinted sheet, which makes the separation read as deliberate.
   ========================================================================== */
@media (max-width: 979px) {
  .hero__inner {
    grid-template-rows: auto auto auto;
    align-content: center;
    row-gap: clamp(1rem, 2.8vh, 1.9rem);
  }

  .forge {
    grid-area: 1 / 1;
    min-height: 0;
    padding: clamp(0.7rem, 2.6vw, 1.2rem);
    background: var(--paper-2);
    border: 1px solid var(--hairline);
    overflow: hidden;
  }
  .forge__svg {
    width: 100%;
    height: auto;            /* intrinsic 2:1, so the box matches the drawing */
    max-height: 34svh;
  }

  /* Four bands, each its own row: label, drawing, headline, actions. Nothing
     shares a cell, so nothing can print over anything else. */
  .hero__inner { grid-template-rows: auto auto auto auto; }
  .forge__caption { grid-area: 1 / 1; }
  .forge         { grid-area: 2 / 1; }
  .hero__content { grid-area: 3 / 1; }
  .hero__meta    { grid-area: 4 / 1; margin-top: 0; }

  /* Sits above the sheet as its label, on one compact line. */
  .forge__caption {
    position: static;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem;
    margin: 0 0 0.55rem;
    pointer-events: none;
  }
  #forge-spec { display: none; }
}

/* Very short phones: let the page scroll rather than crushing either block. */
@media (max-width: 979px) and (max-height: 700px) {
  .hero { height: auto; min-height: 0; padding-bottom: 1.6rem; }
  .forge__svg { max-height: 30svh; }
}

/* ==========================================================================
   27. LIGHT-THEME SURFACE SEPARATION
   Several panels used the same token as the section behind them. That was
   invisible on a dark ground by design (the hairline gap did the work), but on
   paper a card has to be lighter than its section to read as a card.
   ========================================================================== */
.cap  { background: var(--paper); }
.cap:hover { background: var(--paper-2); }
.step { background: var(--paper); }
.card { background: var(--paper); box-shadow: 0 1px 2px rgba(11, 14, 17, 0.04); }
.card:hover { box-shadow: 0 14px 32px -18px rgba(11, 14, 17, 0.35); }
.rfq  { background: var(--paper); border-color: var(--hairline-strong); }

/* Dark islands keep the original behaviour. */
.stats .stat,
.lab .cap,
.footer .cap { background: transparent; }

/* The marquee is the one full-bleed tint between two white sections. */
.marquee { background: var(--paper-2); }

/* Page heroes sit on photography, so the crumbs and rules need the light ramp
   even though the band is inside the normal flow. */
.phero__media img { filter: grayscale(0.35) brightness(0.55) contrast(1.06); }

/* Focus ring needs more weight on white than it did on black. */
:focus-visible { outline: 2px solid var(--heat-600); outline-offset: 2px; }
::selection { background: var(--gold-500); color: var(--on-gold); }

/* Short phones scroll rather than fit, so the hero's buttons must clear the
   sticky call bar instead of sitting behind it. */
@media (max-width: 979px) and (max-height: 700px) {
  .hero { padding-bottom: 4.5rem; }
}

/* The caption is a label on the drawing, so it should not shout. */
@media (max-width: 979px) {
  .forge__caption { font-size: 0.72rem; letter-spacing: 0.16em; gap: 0.15rem; }
}

/* On a 667px-tall phone the drawing, headline, blurb and both buttons cannot
   all clear the sticky call bar. Trimming the drawing is the least costly way
   to buy the ~30px that keeps the primary CTA fully visible. */
@media (max-width: 979px) and (max-height: 700px) {
  .forge__svg { max-height: 20svh; }
  .hero__inner { row-gap: clamp(0.7rem, 2vh, 1.2rem); }
}

/* The label costs a row, and on a 667px phone that row is the difference
   between the primary CTA clearing the call bar or not. The drawing is
   self-explanatory, so the label goes first. */
@media (max-width: 979px) and (max-height: 700px) {
  .forge__caption { display: none; }
}

/* Two regressions from this pass, caught by the mobile audit:
   the drawing's label had dropped to 11.5px, and the pair of phone links added
   to the contact card were 19px tall inline anchors. */
@media (max-width: 700px) {
  .forge__caption { font-size: 0.8rem; }
  .cap p a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
}

/* The capability and process grids drew their dividing lines by showing a
   1px background through the gap. On a dark ground an empty trailing cell was
   invisible; on paper it reads as a stray grey block (the About timeline has
   eight items in a five-column grid). Collapsed borders give the same hairline
   without the container ever showing through. */
.caps, .process { background: transparent; gap: 0; border: 0; }
.cap, .step {
  border: 1px solid var(--hairline);
  margin-right: -1px;
  margin-bottom: -1px;
}

/* ==========================================================================
   28. NEW BRAND — navy monogram, navy/gold wordmark, tagline
   ========================================================================== */
.brand__mark { width: 44px; height: 44px; object-fit: contain; }

/* Flat colour, matching the logo artwork: BOSS in navy, FABRICATION in gold.
   The old brushed-metal fill is gone — the new mark is not chrome. */
.brand__name { color: var(--ink-1); letter-spacing: 0.01em; }
.brand__sub  { color: var(--gold-600); }

.footer .brand__name { color: #ffffff; }
.footer .brand__sub  { color: var(--gold-500); }

/* Tagline sits beside the wordmark on wide screens only — it is the third
   line of the logo lockup and there is no room for it on a phone. */
.brand__tagline {
  display: none;
  font-family: var(--f-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-left: 1.1rem;
  margin-left: 0.2rem;
  border-left: 1px solid var(--hairline-strong);
  white-space: nowrap;
}
@media (min-width: 1340px) { .brand__tagline { display: inline-block; } }

/* -------------------------------------------------- 29. other-services list */
.oslist {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 26vw, 340px), 1fr));
}
.oslist li {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: clamp(1rem, 1.8vw, 1.35rem) clamp(1rem, 1.6vw, 1.3rem);
  border: 1px solid var(--hairline);
  margin-right: -1px; margin-bottom: -1px;
  background: var(--paper);
  font-size: 0.97rem;
  transition: background 0.3s;
}
.oslist li:hover { background: var(--paper-2); }
.oslist__tick { color: var(--gold-600); flex-shrink: 0; margin-top: 2px; display: flex; }
.section--dark .oslist li { background: var(--paper-2); }
.section--dark .oslist li:hover { background: var(--paper); }

.cap__list {
  font-size: 0.86rem; color: var(--ink-4); margin: 0.2rem 0 0;
  line-height: 1.55;
}

/* The nav gained an Other Services entry; give the tagline more room before it
   competes, and stop the longer label wrapping to two lines. */
.nav__link { white-space: nowrap; }
@media (min-width: 1340px) and (max-width: 1619px) { .brand__tagline { display: none; } }

/* "Now building" and the structure name sat flush on one line; separate them. */
@media (max-width: 979px) {
  .forge__caption > span:first-child::after { content: " \2014"; }
}

/* Site photography on the other-services page. Captions sit under the frame
   rather than over it: half these shots are bright mid-day sky and an overlay
   would be unreadable on exactly the ones people look at longest. */
.osgrid {
  display: grid; gap: clamp(0.8rem, 1.5vw, 1.4rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
@media (min-width: 860px) { .osgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.osshot { margin: 0; display: grid; gap: 0.6rem; align-content: start; }
.osshot picture { display: block; overflow: hidden; background: var(--paper-2); border: 1px solid var(--hairline); }
.osshot img {
  display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.osshot:hover img { transform: scale(1.05); }
.osshot figcaption { display: grid; gap: 0.2rem; }
.osshot figcaption b {
  font-family: var(--f-label); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-1);
}
.osshot figcaption span { font-size: 0.84rem; line-height: 1.5; color: var(--ink-4); }
.section--dark .osshot picture { border-color: var(--hairline-strong); }
@media (max-width: 640px) {
  .osshot figcaption span { display: none; }
}

/* The rail runs along the bottom edge on a phone, where the sticky call bar
   lives — give it room rather than letting the two overlap. */
@media (max-width: 700px) {
  .lab__ui { padding-bottom: calc(clamp(2rem, 6vh, 4rem) + 3.4rem); }
}

/* The quotation block lost its three claims, so the left column is now just a
   heading and two buttons against a full-height form. Narrow it and push the
   contact buttons to the foot of the column so the panel reads as one piece
   rather than a heading floating over white space. */
@media (min-width: 940px) {
  .rfq { grid-template-columns: 0.62fr 1fr; }
  .rfq .trust { grid-template-rows: auto auto 1fr; gap: 1rem; }
  .rfq .trust > div:last-child { align-self: end; }
}

/* ======================================================================
   30. Google Ads landing — enquiry form in the hero, compact phone menu,
       sticky Call / WhatsApp bar
   ====================================================================== */
:root { --callbar-h: 60px; }

/* ---- form fields everywhere ------------------------------------------- */
/* 16px is the size below which iOS Safari zooms the page on focus. */
.field input, .field select, .field textarea { font-size: 1rem; min-height: 46px; }
.field textarea { min-height: 0; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea {
  border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14);
}
.form__status.is-err { color: #b42318; }
.btn[disabled] { opacity: 0.72; cursor: progress; }

/* ---- the hero, now carrying the form ---------------------------------- */
.hero--lead { height: auto; min-height: 0; }
.hero--lead .hero__inner {
  height: auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: none;
  row-gap: clamp(1.5rem, 4vw, 2.2rem);
  padding-top: clamp(1.4rem, 5vw, 2.4rem);
  padding-bottom: clamp(1.6rem, 5vw, 2.6rem);
}
.hero--lead .hero__content, .hero--lead .hero__meta { grid-area: auto; }
.hero--lead .hero__title { margin-bottom: 1.1rem; }
.hero--lead .hero__meta { margin-top: 0; }
.hero--lead .hero__actions { margin-left: 0; }
.hero--lead .hero__meta { row-gap: 1.6rem; }

/* The card resets the light palette: the hero is a navy island, and without
   this its labels and inputs would inherit white-on-white. */
.qcard {
  --paper: #ffffff; --paper-2: #f5f7f9; --paper-3: #eaeef2;
  --ink-900: #ffffff; --ink-850: #f5f7f9; --ink-800: #ffffff;
  --steel-050: var(--ink-1); --steel-100: var(--ink-2); --steel-200: var(--ink-2);
  --steel-300: var(--ink-3); --steel-400: var(--ink-4); --steel-500: var(--ink-5);
  --hairline: rgba(18, 43, 67, 0.14); --hairline-strong: rgba(18, 43, 67, 0.26);
  --gold-400: #8c6d1b; --heat-400: #8c6d1b;
  --btn-inner: #ffffff;
  position: relative;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.97);
  border-top: 3px solid var(--gold-500);
  padding: clamp(1.15rem, 2vw, 1.65rem) clamp(1.05rem, 2vw, 1.7rem) clamp(0.9rem, 1.4vw, 1.2rem);
  box-shadow: 0 26px 60px -24px rgba(3, 10, 18, 0.7), 0 2px 8px rgba(3, 10, 18, 0.14);
}
.qcard__title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.45rem, 1.9vw, 1.9rem); line-height: 1; letter-spacing: 0.01em;
  color: var(--ink-1); margin: 0;
}
/* spacing lives on the block: a site-wide rule zeroes a last paragraph's bottom margin */
.qcard__head { margin-bottom: 1rem; }
.qcard__sub { margin: 0.45rem 0 0; font-size: 0.92rem; line-height: 1.45; color: var(--ink-3); }
.qcard .field { margin-bottom: 0.7rem; gap: 0.3rem; }
.qcard .field label { font-size: 0.74rem; letter-spacing: 0.12em; color: var(--ink-4); }
.qcard .field--row { gap: 0.75rem; }
.qcard .field input, .qcard .field select, .qcard .field textarea { padding: 0.6rem 0.8rem; }
.qcard .field textarea { height: 76px; }
.qcard .btn--block { margin-top: 0.2rem; }
.qcard .form__status { margin-top: 0.5rem; min-height: 0; font-size: 0.86rem; }
.qcard .form__status:empty { display: none; }
.qcard .form__note { margin-top: 0.5rem; font-size: 0.76rem; line-height: 1.45; }
.qcard.is-flash { animation: qcard-flash 1.3s var(--ease-out); }
@keyframes qcard-flash {
  0%   { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.85), 0 26px 60px -24px rgba(3, 10, 18, 0.7); }
  100% { box-shadow: 0 0 0 16px rgba(212, 175, 55, 0), 0 26px 60px -24px rgba(3, 10, 18, 0.7); }
}

/* Phones and portrait tablets: headline first, the form directly under it.
   The scrim settles into solid navy so the white card sits on calm ground. */
@media (max-width: 1023px) {
  .hero--lead::after {
    background: linear-gradient(180deg,
      rgba(18, 43, 67, 0.55) 0%, rgba(18, 43, 67, 0.42) 16%,
      rgba(18, 43, 67, 0.86) 34%, var(--night) 46%);
  }
  .hero--lead .hero__media img { object-position: 50% 0%; }
  .hero--lead .hero__form { width: 100%; max-width: 680px; }
}
@media (max-width: 700px) {
  /* The form is one scroll away, so the two hero buttons only added height. */
  .hero--lead .hero__actions { display: none; }
  .hero--lead .hero__meta { border-top: 0; padding-top: 0; }
  .hero--lead .hero__eyebrow { margin-bottom: 0.8rem; }
  .hero--lead .hero__inner { padding-inline: max(1rem, env(safe-area-inset-left, 0px)); }
}

/* Laptops and up: copy on the left, the form beside it, both in first view. */
@media (min-width: 1024px) {
  .hero--lead { min-height: 100svh; display: flex; flex-direction: column; }
  .hero--lead .hero__inner {
    flex: 1;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
    align-items: center;
    column-gap: clamp(2.5rem, 4.5vw, 6rem);
  }
  /* capped so "Building the future." stays on one line beside the form */
  .hero--lead .hero__title { font-size: clamp(3.4rem, 5.4vw, 5.8rem); }
  .hero--lead .hero__form { width: 100%; max-width: 560px; justify-self: end; }
}

/* ---- phone menu: smaller, calmer, still easy to tap ------------------- */
@media (max-width: 960px) {
  .nav { padding: 0.4rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px)); }
  .nav__link {
    font-family: var(--f-body); font-size: 1.03rem; font-weight: 600;
    text-transform: none; letter-spacing: 0; color: var(--ink-1);
    min-height: 52px; padding: 0; display: flex; align-items: center;
    border-bottom: 1px solid var(--hairline);
  }
  .nav__link[aria-current="page"]::before {
    content: ""; width: 3px; height: 18px; margin-right: 0.75rem;
    background: var(--gold-500); flex-shrink: 0;
  }
  .nav__group > .nav__link { display: flex; padding-right: 3.5rem; }
  .nav__more { height: 52px; }
  .nav__panel-in { padding-left: 0.9rem; }
  .nav__panel a {
    font-family: var(--f-body); font-size: 0.95rem; font-weight: 500;
    text-transform: none; letter-spacing: 0; color: var(--ink-3);
    min-height: 44px; padding: 0.5rem 0.7rem;
  }
  .nav__cta { margin-top: 1.3rem; gap: 0.6rem; }

  /* The desktop dropdown centres itself on hover/focus (translate -50%) and
     floats on a shadowed card. Tapping + gives the group focus, so on phones
     the list slid half off the left edge. In the menu it is an inline list. */
  .nav__group:hover .nav__panel,
  .nav__group:focus-within .nav__panel { translate: none; }
  .nav__panel { box-shadow: none; background: none; backdrop-filter: none; }
}

/* ---- sticky Call / WhatsApp bar (phones) ------------------------------ */
.callbar {
  position: fixed; inset: auto 0 0; z-index: 90; display: none;
  grid-template-columns: 1fr 1fr;
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: var(--night);
  box-shadow: 0 -10px 28px rgba(3, 10, 18, 0.24);
  transition: transform 0.35s var(--ease-out);
}
.callbar__btn {
  min-height: var(--callbar-h);
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--f-label); font-weight: 700; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: 0.09em;
}
.callbar__ico {
  position: relative; display: grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%; background: var(--night);
}
.callbar__ico svg { width: 18px; height: 18px; }
/* navy on gold 6.9:1 */
.callbar__btn--call { background: var(--gold-500); color: var(--on-gold); }
.callbar__btn--call .callbar__ico { color: var(--gold-500); }
/* WhatsApp green with navy text: white on this green is only 2:1, navy is 7.3:1 */
.callbar__btn--wa { background: #25d366; color: #122b43; }
.callbar__btn--wa .callbar__ico { color: #25d366; }

@media (max-width: 960px) {
  /* fill-mode backwards, not both: a held final frame would pin transform
     and stop the bar stepping aside while someone types */
  .callbar { display: grid; animation: callbar-in 0.6s var(--ease-out) 0.7s backwards; }
  .is-typing .callbar { transform: translateY(110%); }
  .callbar__btn--call .callbar__ico::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    animation: callbar-ring 5s ease-out 1.8s 6;
  }
  .callbar__btn--call .callbar__ico svg { animation: callbar-wiggle 5s ease-in-out 1.8s 6; }
}
@keyframes callbar-in { from { transform: translateY(100%); } to { transform: none; } }
/* one gentle ring every five seconds, six times, then still */
@keyframes callbar-ring {
  0%   { box-shadow: 0 0 0 0 rgba(18, 43, 67, 0.55); }
  22%  { box-shadow: 0 0 0 13px rgba(18, 43, 67, 0); }
  100% { box-shadow: 0 0 0 13px rgba(18, 43, 67, 0); }
}
@keyframes callbar-wiggle {
  0%, 14%, 100% { transform: none; }
  2%  { transform: rotate(-14deg); }
  4%  { transform: rotate(12deg); }
  6%  { transform: rotate(-10deg); }
  8%  { transform: rotate(7deg); }
  10% { transform: rotate(-3deg); }
}

/* ---- desktop WhatsApp shortcut ---------------------------------------- */
.wafloat { display: none; }
@media (min-width: 961px) {
  .wafloat {
    position: fixed; right: 22px; bottom: 22px; z-index: 80;
    display: flex; align-items: center; gap: 0;
    height: 54px; min-width: 54px; padding: 0 15px; border-radius: 27px;
    background: #25d366; color: #122b43;
    box-shadow: 0 12px 28px -10px rgba(3, 10, 18, 0.5);
    opacity: 0; transform: translateY(14px); pointer-events: none;
    transition: opacity 0.35s, transform 0.35s var(--ease-out), gap 0.3s;
  }
  .wafloat svg { width: 24px; height: 24px; flex-shrink: 0; }
  .wafloat__label {
    max-width: 0; overflow: hidden; white-space: nowrap;
    font-family: var(--f-label); font-weight: 700; font-size: 0.92rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    transition: max-width 0.35s var(--ease-out);
  }
  .wafloat:hover, .wafloat:focus-visible { gap: 0.55rem; }
  .wafloat:hover .wafloat__label, .wafloat:focus-visible .wafloat__label { max-width: 150px; }
  .wafloat.is-on { opacity: 1; transform: none; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .callbar, .callbar__ico::after, .callbar__ico svg, .qcard.is-flash { animation: none !important; }
  .wafloat, .callbar { transition: none; }
}


/* At iPad-landscape widths the header shows only the phone icon (18px); give
   it a full 44px tap area without changing how it looks. */
.header__phone { min-height: 44px; min-width: 44px; justify-content: center; }
