/* Novaforge — "Tempered". The page is one heat treatment: hot hero, tempered services, quenched contact. */

@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --quench-navy: #061A3A;
  --navy: #002E6C;
  --gold: #E9B620;
  --gold-soft: #EBC15A;
  --quench-white: #EEF1F5;
  --ash: #9AA6B8;
  --steel-light: #E8EDF2;
  --steel-ink: #0B1730;
  --rule-steel: #55627A;
  --signal-red: #B42318;
  --signal-red-dark: #FF8A7A;
  --panel: #F7F9FB;
  --hot: #FF7A1A;
  --white-hot: #FFF3D1;

  --ground: var(--quench-navy);
  --ink: var(--quench-white);
  --ink-2: var(--ash);
  --heading: var(--quench-white);
  --focus: var(--gold-soft);
  --hair: rgba(238, 241, 245, 0.16);
  --read-0: var(--ash);
  --read-1: var(--quench-white);
  --read-glow: var(--gold-soft);
  --scrim: rgba(6, 26, 58, 0.8);
  --glass: rgba(6, 26, 58, 0.74);

  --f-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --f-text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 3.2vw, 40px);
  --max: 1440px;
  --col-gap: clamp(16px, 2vw, 28px);
  --nav-h: 84px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme='light'] {
  --ground: var(--steel-light);
  --ink: var(--steel-ink);
  --ink-2: var(--rule-steel);
  --heading: var(--navy);
  --focus: var(--navy);
  --hair: rgba(11, 23, 48, 0.16);
  --read-0: var(--rule-steel);
  --read-1: var(--steel-ink);
  --read-glow: #8A5A00;
  --scrim: rgba(232, 237, 242, 0.84);
  --glass: rgba(232, 237, 242, 0.8);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); color: var(--ink); overflow-x: clip; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  font-family: var(--f-text); font-size: 1.0625rem; line-height: 1.65; font-weight: 400;
  background: var(--ground); color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
::selection { background: var(--gold); color: var(--navy); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[tabindex='-1']:focus { outline: none; }
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 10px;
  background: var(--gold); color: var(--navy); font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.theme-fade, .theme-fade * { transition: background-color 0.4s, color 0.4s, border-color 0.4s !important; }

/* ── Layers: ground → canvas → content → labels ── */
.ground { position: fixed; inset: 0; z-index: 0; background: var(--ground); pointer-events: none; }
.ground__glow {
  position: absolute; inset: 0; opacity: var(--glow, 0);
  background:
    radial-gradient(40vmax 32vmax at 72% 48%, rgba(255, 110, 20, 0.15), transparent 70%),
    radial-gradient(20vmax 16vmax at 72% 50%, rgba(255, 190, 80, 0.1), transparent 70%);
}
[data-theme='light'] .ground__glow { opacity: calc(var(--glow, 0) * 0.45); }
.forge { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; display: block; }
main, .foot { position: relative; z-index: 2; }
html[data-zone='contact'] .forge { z-index: 3; }
.tags { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }

/* ── Type ── */
.h2 {
  font-family: var(--f-display); font-weight: 760; font-stretch: 108%;
  font-size: clamp(2.5rem, 5.6vw, 5.75rem); line-height: 0.95; letter-spacing: -0.025em;
  color: var(--heading); margin-bottom: 0.5em; text-wrap: balance;
}
.statement {
  font-family: var(--f-display); font-stretch: 92%; font-weight: 460;
  font-size: clamp(1.5rem, 2.9vw, 2.75rem); line-height: 1.12; letter-spacing: -0.012em;
  color: var(--heading); max-width: 24em;
}
.has-read [data-read] .w {
  color: color-mix(in oklab, color-mix(in oklab, var(--read-0), var(--read-1) calc(var(--r, 0) * 100%)), var(--read-glow) calc(var(--g, 0) * 80%));
  text-shadow: 0 0 calc(var(--g, 0) * 0.5em) rgba(233, 140, 32, calc(var(--g, 0) * 0.5));
}
[data-theme='light'] .has-read [data-read] .w { text-shadow: none; }

/* Heat-pass: a white-hot band sweeps once across the text and leaves it in its final colour. */
.heat-run {
  color: transparent !important;
  background-image: linear-gradient(90deg,
    var(--hp-c, var(--heading)) calc((var(--hp, 0) - 16) * 1%),
    var(--white-hot) calc((var(--hp, 0) - 4) * 1%),
    #FFB347 calc(var(--hp, 0) * 1%),
    rgba(255, 122, 26, 0) calc((var(--hp, 0) + 6) * 1%));
  -webkit-background-clip: text; background-clip: text;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ── Buttons ── */
.btn {
  --h: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); padding: 0 1.6em; border-radius: 999px; border: 0;
  font-family: var(--f-text); font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.4s var(--ease-out), translate 0.4s var(--ease-out), scale 0.15s;
}
.btn:active { scale: 0.97; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-130%);
}
.btn--gold:hover { background: var(--gold-soft); translate: 0 -2px; box-shadow: 0 14px 30px -12px rgba(233, 182, 32, 0.55); }
.btn--gold:hover::after { transform: translateX(130%); transition: transform 0.75s var(--ease-out); }
.btn--line { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--hair); }
.btn--line::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--a), transparent 0 62%, #B8360F 72%, var(--hot) 80%, var(--white-hot) 86%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0;
}
.btn--line:hover::before { opacity: 1; animation: orbit 1.1s var(--ease-out) forwards; }
@keyframes orbit { from { --a: 0deg; } to { --a: 360deg; opacity: 0; } }
.btn--sm { --h: 42px; padding: 0 1.25em; font-size: 0.9375rem; }
.btn--xl { --h: 64px; padding: 0 2.25em; font-size: 1.125rem; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  color: var(--ink);
  transition: height 0.35s var(--ease-out), background-color 0.35s, transform 0.45s var(--ease-out), color 0.3s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav--glass { height: 64px; background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--hair); }
.nav--hide { transform: translateY(-105%); }
.nav--day {
  --ink: var(--steel-ink); --ink-2: var(--rule-steel); --heading: var(--navy); --focus: var(--navy);
  --hair: rgba(11, 23, 48, 0.16); --glass: rgba(232, 237, 242, 0.82);
}
.nav__brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 8px; }
.nav__icon { width: 34px; height: 34px; border-radius: 8px; }
.wm {
  display: inline-flex; align-items: baseline;
  font-family: var(--f-text); font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: -0.04em;
  color: var(--ink);
}
[data-theme='light'] .wm, .nav--day .wm { color: var(--navy); }
.wm__forge { color: var(--gold); }
.wm__o { width: 0.6em; height: 0.78em; margin: 0 0.01em 0 0.015em; overflow: visible; }
.po-ring { stroke: currentColor; }
.po-stem { stroke: var(--gold); }
.po-drop { fill: var(--gold); }
.nav__links { position: relative; display: flex; gap: clamp(20px, 2.6vw, 40px); justify-self: center; }
.nav__links a { position: relative; padding: 8px 2px; font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: color 0.25s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--white-hot) 50%, var(--gold)); transform: scaleX(0); transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }
.nav--glass .nav__links a { color: var(--ink); }
.nav__bead { position: absolute; left: 0; bottom: -8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(233, 182, 32, 0.8); opacity: 0; }
.nav__end { justify-self: end; display: flex; align-items: center; gap: 12px; }
.theme { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.theme svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: rotate 0.6s var(--ease-out); }
.theme:hover { background: var(--hair); }
.theme[aria-pressed='true'] svg { rotate: 90deg; }
.theme[aria-pressed='true'] circle { fill: currentColor; }
.nav__menu { display: none; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--hair); cursor: pointer; font-weight: 600; font-size: 0.9375rem; }
.nav__burger { display: grid; gap: 5px; }
.nav__burger i { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease-out); }
[aria-expanded='true'] .nav__burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
[aria-expanded='true'] .nav__burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.sheet {
  position: fixed; inset: 0; z-index: 19; display: flex; flex-direction: column; justify-content: safe center; gap: clamp(16px, 5svh, 40px);
  padding: calc(var(--nav-h) + 16px) var(--gutter) clamp(16px, 6svh, 48px); background: var(--ground); opacity: 0; transition: opacity 0.3s;
  overflow-y: auto; overscroll-behavior: contain;
}
html.sheet-open { overflow: hidden; }
.sheet[hidden] { display: none; }
.sheet.is-open { opacity: 1; }
.sheet nav { display: grid; gap: 4px; }
.sheet nav a { font-family: var(--f-display); font-weight: 760; font-stretch: 108%; font-size: clamp(2rem, min(13vw, 11svh), 4.5rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--heading); text-decoration: none; }
.sheet .btn { align-self: flex-start; flex: none; }

/* ── Intro start states (only when JS + motion are on) ── */
.intro .nav { opacity: 0; }
.intro .nav:focus-within, .intro .hero__ctas:focus-within { opacity: 1 !important; transform: none !important; }
.intro .hero__title span:not(.lit) { color: transparent; }
.intro .tagline__word:not(.lit) { opacity: 0; }
.intro .hero__lede, .intro .hero__ctas, .intro .hero__place { opacity: 0; transform: translateY(14px); }

/* ── Stages: empty slots the 3D mark flies between ── */
.stage { position: relative; pointer-events: none; }
.no-gl .stage::before, html:not(.js) .stage::before {
  content: ''; position: absolute; inset: 0; margin: auto; width: min(60%, 260px); max-height: 100%; aspect-ratio: 1;
  background: url('../assets/mark.svg') center / contain no-repeat;
}
html:not(.js) .nav { background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--hair); }

/* ── Hero: Spark ── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 72px; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.hero__copy { grid-column: 1 / span 6; position: relative; z-index: 1; }
.stage--hero { grid-column: 7 / -1; height: min(66vh, 620px); }
.hero__title { font-family: var(--f-text); font-weight: 600; font-size: clamp(1.25rem, 1.6vw, 1.625rem); line-height: 1.25; color: var(--heading); margin-bottom: 0.7em; }
.hero__title span { --hp-c: var(--heading); }
.tagline {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(3.4rem, min(10.2vw, 14.5vh), 10rem);
  line-height: 0.86; letter-spacing: -0.035em; color: var(--heading); margin-bottom: 0.32em;
}
.tagline__word { --wdth: 112; display: flex; align-items: center; gap: 0.16em; width: max-content; font-stretch: calc(var(--wdth) * 1%); }
.ingot {
  position: relative; display: block; width: 0.85em; height: 0.075em; margin-top: 0.12em; border-radius: 0.04em;
  background: linear-gradient(90deg, #B8360F, var(--hot) 35%, var(--white-hot) 62%, var(--gold));
  box-shadow: 0 0 0.18em rgba(255, 122, 26, calc(0.7 - var(--cool, 0) * 0.7));
}
.ingot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: var(--cool, 0);
  background: linear-gradient(90deg, #E6D3A0, #9A5A2C 30%, #5B3F86 62%, #2D5BB8);
}
.hero__lede { max-width: 36ch; font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.55; color: var(--ink); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__place { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; font-size: 0.9375rem; color: var(--ink-2); }
.cue { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 64px; background: var(--hair); transition: opacity 0.5s; }
.cue i { position: absolute; left: -3px; top: 0; width: 7px; height: 9px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: var(--gold); animation: drip 2.4s cubic-bezier(0.55, 0, 0.75, 0.4) infinite; }
@keyframes drip { 0% { transform: translateY(-4px) scaleY(0.6); opacity: 0; } 18% { opacity: 1; transform: translateY(0) scaleY(1); } 70% { transform: translateY(56px) scaleY(1.3); opacity: 1; } 100% { transform: translateY(60px) scaleY(0.4); opacity: 0; } }
.cue.is-gone { opacity: 0; }

/* ── About ── */
.about { padding: clamp(96px, 16vh, 200px) 0 clamp(48px, 8vh, 96px); }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.about__copy { grid-column: 1 / span 7; }
.about__aside { grid-column: 9 / -1; position: relative; }
.stage--about { position: sticky; top: 26vh; height: 46vh; }

/* ── Bridge ── (stacked by default; pinned only when html[data-pin='on']) */
.bridge { position: relative; }
.bridge__pin {
  position: relative; overflow: hidden; display: grid; justify-items: center; gap: clamp(16px, 4vh, 40px);
  padding: clamp(64px, 12vh, 140px) var(--gutter);
}
.stage--bridge { width: min(100%, 520px); height: min(34vh, 340px); }
html[data-pin='on'] .bridge { height: 180vh; }
html[data-pin='on'] .bridge__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; gap: 0;
  grid-template-rows: 1fr auto; align-items: end; padding: var(--nav-h) var(--gutter) 13vh;
}
html[data-pin='on'] .stage--bridge { width: min(44vw, 520px); height: min(38vh, 380px); align-self: center; }
.bridge__text {
  display: grid; gap: 0.18em; max-width: 1240px; text-align: center;
  font-family: var(--f-display); font-stretch: 92%; font-weight: 460; font-size: clamp(1.5rem, 2.9vw, 2.75rem); line-height: 1.15; letter-spacing: -0.012em;
  color: var(--heading);
}
.bridge__join { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3em; }
@media (min-width: 768px) { .bridge__join { flex-direction: row; gap: 0.45em; white-space: nowrap; } }
.bridge__half { display: inline-block; }
.bridge__bar {
  --gap: 0; --weld: 0;
  position: relative; display: block; flex: none; width: 1.3em; height: 0.15em; border-radius: 0.1em;
  background: linear-gradient(90deg, #B8360F, var(--hot) 30%, var(--white-hot) 50%, var(--hot) 70%, #B8360F);
  box-shadow: 0 0 0.45em rgba(255, 122, 26, 0.55);
  transform: scaleX(calc(1 + var(--gap) * 2.4));
}
.bridge__bar b { position: absolute; inset: -0.2em -0.1em; border-radius: inherit; background: radial-gradient(closest-side, rgba(255, 243, 209, 0.95), rgba(255, 180, 80, 0)); }
.bridge__bar::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, #FFE7A3, var(--gold) 55%, #B8860B); opacity: var(--weld); }
.bridge__flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(46% 36% at 50% 72%, rgba(255, 243, 209, 0.9), transparent 70%); }

/* ── Photo + pillars ── */
.pillars { padding: clamp(64px, 12vh, 160px) 0 clamp(48px, 8vh, 96px); }
.pillars__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.pillars__photo { grid-column: 1 / span 6; }
.photo { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #0b1f45; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.photo__heat { position: absolute; inset: 0; background: linear-gradient(160deg, #FFB347, var(--hot) 35%, #B8360F 75%, #3A0D02); mix-blend-mode: color; opacity: 0; }
[data-motion='full'] .photo__heat { opacity: 1; }
.pillars__side { grid-column: 8 / -1; display: grid; gap: clamp(32px, 6vh, 64px); padding-top: 2vh; }
.stage--pillars { height: clamp(220px, 34vh, 340px); }
.pillar__title { font-family: var(--f-display); font-weight: 700; font-stretch: 110%; font-size: 2rem; line-height: 1.05; letter-spacing: -0.015em; color: var(--heading); margin-bottom: 0.45em; }
.pillar p { max-width: 34ch; font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); }

/* ── Services ── */
.services__intro { padding-top: clamp(96px, 14vh, 180px); padding-bottom: clamp(32px, 6vh, 72px); }
.svc { position: relative; }
.svc__pin { position: relative; }
.svc__grid { display: flex; flex-direction: column-reverse; align-items: stretch; }
.svc__copy { display: grid; gap: 72px; padding: 24px 0 64px; }
@media (min-width: 768px) {
  .svc__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .svc__copy { grid-column: 1 / span 6; gap: 96px; padding: 24px 0 96px; }
}
html[data-pin='on'] .svc { height: 500vh; }
html[data-pin='on'] .svc__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 72px; }
html[data-pin='on'] .svc__grid { align-items: center; min-height: 0; }
html[data-pin='on'] .svc__copy { grid-column: 1 / span 5; gap: 0; padding: 0; }
html[data-pin='on'] .svc__item { grid-area: 1 / 1; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
html[data-pin='on'] .svc__item.is-on { opacity: 1; pointer-events: auto; transition: opacity 0.45s 0.1s; }
html[data-pin='on'] .svc__copy:not(:has(.is-on)) .svc__item:first-child { opacity: 1; pointer-events: auto; }
.svc__title {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 3.7vw, 4rem); line-height: 1; letter-spacing: -0.015em;
  color: var(--heading); margin-bottom: 0.75em; text-wrap: balance;
}
.svc__list { list-style: none; padding: 0; display: grid; gap: 22px; }
.svc__list li { position: relative; padding-left: 24px; max-width: 40ch; font-size: 1.125rem; line-height: 1.5; font-weight: 500; color: var(--ink-2); transition: color 0.35s; }
.svc__list li.is-on { color: var(--ink); }
.svc__fill { position: absolute; left: 0; top: 0.25em; bottom: 0.25em; width: 3px; border-radius: 3px; background: var(--hair); overflow: hidden; }
.svc__fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--white-hot), var(--gold)); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.svc__list li:not(.is-on) .svc__fill::after { transform: scaleY(0); }
.svc__track { display: block; height: 2px; margin-top: 12px; background: var(--hair); border-radius: 2px; overflow: hidden; }
.svc__track i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--white-hot)); transform-origin: left; transform: scaleX(0); }
.stage--svc { position: sticky; top: var(--nav-h); z-index: 1; height: 42svh; margin: 0 calc(var(--gutter) * -1); background: var(--ground); }
.stage--svc::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 40px; background: linear-gradient(var(--ground), transparent); }
@media (min-width: 768px) {
  .stage--svc { grid-column: 7 / -1; top: 15vh; z-index: auto; height: 70vh; margin: 0; background: none; }
  .stage--svc::after { display: none; }
}
html[data-pin='on'] .stage--svc { grid-column: 6 / -1; position: relative; top: auto; height: min(68vh, 640px); align-self: center; }
.svc__rail { display: none; flex-wrap: wrap; gap: 8px; padding-bottom: 26px; }
html[data-pin='on'] .svc__rail { display: flex; }
.svc__rail button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 10px;
  border-radius: 12px; border: 1px solid var(--hair); background: transparent; color: var(--ink-2);
  font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.svc__rail button:hover { color: var(--ink); background: var(--hair); }
.svc__rail button[aria-current='true'] { color: var(--ink); border-color: var(--gold); }
.glyph { width: 40px; height: 25px; }
.glyph line { stroke: currentColor; stroke-width: 1.5; opacity: 0.6; }
.glyph circle { fill: currentColor; }
.svc__rail button[aria-current='true'] .glyph circle { fill: var(--gold); }

/* ── Let's Work Together ── */
.together { display: grid; justify-items: center; align-content: center; gap: 28px; min-height: 76vh; padding: 10vh var(--gutter); }
.stage--together { width: min(42vw, 460px); height: min(34vh, 320px); }

/* ── Mission: the temper field ── */
.mission { position: relative; }
.mission__pin { position: relative; }
.mission__frame { position: relative; padding-top: clamp(64px, 12vh, 140px); padding-bottom: clamp(64px, 10vh, 120px); }
.stage--mission { width: 100%; height: 40svh; margin: 16px 0; }
@media (min-width: 768px) { .stage--mission { height: 52vh; } }
html[data-pin='on'] .mission { height: 300vh; }
html[data-pin='on'] .mission__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html[data-pin='on'] .mission__frame { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 6vh; }
html[data-pin='on'] .stage--mission { position: absolute; left: 50%; top: 45%; width: min(54vw, 660px); height: 44vh; margin: 0; translate: -50% -50%; }
html[data-pin='on'] .mission__text { max-width: min(60ch, 70%); }
.mission__title { margin: 0; }
.mission__text {
  position: relative; max-width: 60ch; padding: 20px 26px; border-radius: 14px; background: var(--scrim);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--f-display); font-stretch: 92%; font-weight: 460; font-size: clamp(1.25rem, 2.1vw, 2rem); line-height: 1.2; letter-spacing: -0.01em;
}
.clause { --hp-c: var(--heading); color: var(--ink-2); transition: color 0.6s; }
.clause.is-lit { color: var(--heading); }
.clause.is-past { color: var(--ink-2); }
[data-motion='reduced'] .clause, html:not(.js) .clause { color: var(--heading); }

/* ── Vision: aperture ── */
.vision { position: relative; height: 240vh; }
.vision__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: end; }
.vision__photo { position: absolute; inset: 0; background: #0b1f45; }
.vision__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.vision__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 26, 58, 0.92) 0%, rgba(6, 26, 58, 0.62) 42%, rgba(6, 26, 58, 0.12) 78%); }
.vision__copy { position: relative; padding-bottom: 14vh; }
.vision__copy .h2, .vision__copy .statement { color: var(--quench-white); }
.vision__copy .statement { max-width: 22em; }

/* ── Contact: quenched ── */
.contact {
  --ink: var(--steel-ink); --ink-2: var(--rule-steel); --heading: var(--navy); --focus: var(--navy); --hair: rgba(11, 23, 48, 0.16);
  position: relative; background: var(--steel-light); color: var(--steel-ink);
  padding: clamp(112px, 16vh, 196px) 0 clamp(96px, 14vh, 160px);
}
.contact__steam { position: absolute; left: 0; right: 0; bottom: 100%; height: 22vh; pointer-events: none; background: linear-gradient(to bottom, rgba(232, 237, 242, 0), rgba(232, 237, 242, 0.55) 60%, var(--steel-light)); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px; align-items: start; }
.contact__info { grid-column: 1 / span 5; }
.contact__intro { max-width: 34ch; font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); }
.stage--contact { height: clamp(180px, 24vh, 260px); margin: 12px 0 8px; }
.lines { display: grid; gap: 26px; }
.line dt { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); margin-bottom: 4px; }
.line dd { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.375rem, 2vw, 2rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--navy); }
.line dd a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size 0.35s var(--ease-out); }
.line dd a:hover { background-size: 100% 2px; }
.copy { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hair); background: transparent; font-family: var(--f-text); font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.copy:hover { color: var(--steel-ink); border-color: var(--rule-steel); }

.form {
  grid-column: 7 / -1; background: var(--panel); border-top: 2px solid var(--gold); border-radius: 4px 4px 18px 18px;
  padding: clamp(24px, 3vw, 44px); box-shadow: 0 40px 70px -40px rgba(0, 46, 108, 0.35);
}
.form__note { font-size: 0.875rem; color: var(--rule-steel); margin-bottom: 20px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); column-gap: 20px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; align-content: start; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--steel-ink); }
.req { color: var(--signal-red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #7D8799; background: #fff no-repeat;
  font: inherit; font-size: 1rem; color: var(--steel-ink); appearance: none; -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 136px; resize: vertical; line-height: 1.5; }
.field ::placeholder { color: #6B778C; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold), 0 0 0 3px rgba(0, 46, 108, 0.12); }
.field.is-valid input, .field.is-valid textarea { background-image: radial-gradient(circle at calc(100% - 18px) 25px, var(--gold) 0 4.5px, transparent 5px); padding-right: 36px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--signal-red); }
.field__err { font-size: 0.875rem; font-weight: 500; color: var(--signal-red); }
.field__err:empty { display: none; }
.select { position: relative; }
.select::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--rule-steel); border-bottom: 2px solid var(--rule-steel); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 40px; cursor: pointer; }
.field.is-valid .select::before { content: ''; position: absolute; right: 30px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 28px 0 10px; margin-top: 4px;
  border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: 1.0625rem; cursor: pointer;
  transition: background-color 0.25s, translate 0.35s var(--ease-out), box-shadow 0.35s;
}
.submit:hover { background: #003D8F; translate: 0 -2px; box-shadow: 0 16px 30px -16px rgba(0, 46, 108, 0.6); }
.submit:active { scale: 0.98; }
.submit__o { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.submit__o svg { width: 34px; height: 34px; overflow: visible; }
.submit__arc { fill: none; stroke: rgba(255, 255, 255, 0.26); stroke-width: 3.2; stroke-linecap: round; transition: stroke 0.35s; }
.submit__arc.is-on { stroke: var(--gold); }
.submit__stem { stroke: var(--gold); stroke-width: 3.4; stroke-linecap: round; }
.submit__drop { fill: var(--gold); transform-origin: 22px 23px; }
.submit[aria-busy='true'] .submit__drop { animation: molten 0.8s ease-in-out infinite alternate; }
.submit[aria-busy='true'] .submit__arc { stroke: var(--hot); }
@keyframes molten { to { transform: scale(1.35); fill: var(--white-hot); } }
.form__status { margin-top: 16px; font-weight: 500; color: var(--navy); min-height: 1.5em; }
.form__status[data-kind='error'] { color: var(--signal-red); }
.form__status[data-kind='warn'] { color: var(--rule-steel); }
.form__status a, .form__privacy a { color: var(--navy); text-underline-offset: 3px; }
.form__privacy { margin-top: 12px; font-size: 0.875rem; color: var(--rule-steel); }

/* ── Footer ── */
.foot {
  --ink: var(--quench-white); --ink-2: var(--ash); --focus: var(--gold-soft); --hair: rgba(238, 241, 245, 0.16);
  background: var(--quench-navy); color: var(--quench-white); padding: clamp(56px, 10vh, 120px) 0 32px; overflow: hidden;
}
.foot__mark { overflow: hidden; padding: 0.08em var(--gutter) 0; }
.foot__wm {
  display: flex; align-items: baseline; justify-content: center; overflow: hidden; padding: 0.12em 0 0.2em;
  font-family: var(--f-text); font-weight: 800; font-size: clamp(4rem, 18vw, 21rem); line-height: 0.82; letter-spacing: -0.045em;
  color: var(--quench-white);
}
.ch { display: inline-block; }
.ch--gold { color: var(--gold); }
.foot__o { width: 0.6em; height: 0.78em; margin: 0 0.012em 0 0.02em; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 0.1em; color: inherit; }
.foot__o svg { width: 100%; height: 100%; overflow: visible; }
.foot__o .po-drop { transition: fill 0.3s, filter 0.3s; }
.foot__o:hover .po-drop, .foot__o:focus-visible .po-drop { fill: #FFB347; filter: drop-shadow(0 0 0.06em var(--hot)); }
.foot__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; margin-top: clamp(16px, 3vh, 40px); padding-top: 24px; border-top: 1px solid var(--hair); font-size: 0.9375rem; color: var(--ash); }
.foot__name { font-weight: 700; color: var(--quench-white); }
.foot__legal { display: flex; gap: 12px; }
.foot__legal a { text-decoration: none; }
.foot__legal a:hover { color: var(--quench-white); text-decoration: underline; text-underline-offset: 4px; }
.foot__end { justify-self: end; text-align: right; display: grid; justify-items: end; gap: 8px; }
.motion { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hair); background: transparent; color: var(--quench-white); font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.motion:hover { border-color: var(--ash); }

/* ── 3D labels ── */
.tag { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.35s; will-change: transform; }
.tag.is-on { opacity: 1; }
.tag i { position: absolute; left: 0; bottom: 0; width: 1px; height: calc(30px + var(--lift, 0px)); background: linear-gradient(to top, rgba(154, 166, 184, 0.1), var(--ash)); }
.tag b {
  position: absolute; left: -2px; bottom: calc(30px + var(--lift, 0px)); white-space: nowrap;
  padding: 4px 9px; border-radius: 7px; border: 1px solid rgba(154, 166, 184, 0.35);
  background: rgba(6, 26, 58, 0.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--f-text); font-size: 0.875rem; font-weight: 500; color: var(--quench-white);
}
.tag--flip b { left: auto; right: -2px; }
.tag--below i { bottom: auto; top: 0; height: calc(12px + var(--lift, 0px)); background: linear-gradient(to bottom, rgba(154, 166, 184, 0.1), var(--ash)); }
.tag--below b { bottom: auto; top: calc(12px + var(--lift, 0px)); }
[data-theme='light'] .tag b { background: rgba(232, 237, 242, 0.86); color: var(--steel-ink); border-color: rgba(85, 98, 122, 0.35); }

/* ── Legal pages (privacy.html, terms.html) ── */
:root { --mark: var(--gold); }
:root[data-theme='light'] { --mark: var(--navy); }
@media (prefers-reduced-motion: no-preference) { html.legal-page { scroll-behavior: smooth; } }
.nav--legal { grid-template-columns: 1fr auto; }
.legal { position: relative; z-index: 2; padding: calc(var(--nav-h) + clamp(40px, 9vh, 112px)) 0 clamp(72px, 12vh, 140px); }
.legal:focus { outline: none; }
.legal__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; margin-bottom: clamp(40px, 7vh, 80px); }
.legal__intro { grid-column: 1 / span 8; }
.legal__title {
  font-family: var(--f-display); font-weight: 760; font-stretch: 108%; font-size: clamp(2.75rem, 6.4vw, 6rem);
  line-height: 0.92; letter-spacing: -0.03em; color: var(--heading); margin-bottom: 0.35em;
}
.legal__updated { font-size: 0.9375rem; color: var(--ink-2); margin-bottom: 1.4em; }
.legal__lede a { color: inherit; text-decoration-color: var(--mark); text-underline-offset: 4px; }
.legal__lede { max-width: 30em; font-family: var(--f-display); font-stretch: 92%; font-weight: 460; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.25; color: var(--heading); }
.legal__mark { grid-column: 10 / -1; justify-self: end; width: clamp(96px, 11vw, 160px); height: auto; border-radius: 18%; box-shadow: 0 24px 60px -24px rgba(233, 182, 32, 0.45); }
.legal__short { margin-top: 32px; max-width: 46em; padding: 20px 24px; border-left: 3px solid var(--mark); border-radius: 0 14px 14px 0; background: color-mix(in oklab, var(--ground), var(--ink) 6%); }
.legal__short h2 { font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--heading); margin-bottom: 8px; }
.legal__short ul { padding-left: 1.1em; display: grid; gap: 6px; }
.legal__short li { line-height: 1.55; }
.legal__short li::marker { color: var(--mark); }
.legal__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.legal__toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--nav-h) + 24px); }
.legal__toc summary { cursor: pointer; font-weight: 600; font-size: 0.9375rem; color: var(--heading); padding: 12px 0; list-style-position: inside; }
.legal__toc ol { list-style: none; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  display: flex; gap: 10px; padding: 7px 0 7px 12px; border-left: 2px solid var(--hair);
  font-size: 0.9375rem; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: color 0.2s, border-color 0.2s;
}
.legal__toc a::before { content: counter(toc); min-width: 1.4em; font-variant-numeric: tabular-nums; }
.legal__toc a:hover { color: var(--ink); }
.legal__toc a[aria-current] { color: var(--ink); border-left-color: var(--mark); }
.legal__body { grid-column: 5 / span 7; counter-reset: sec; }
.legal__body section { margin-bottom: clamp(40px, 6vh, 60px); scroll-margin-top: calc(var(--nav-h) + 24px); counter-increment: sec; }
.legal__body h2 {
  display: flex; align-items: baseline; gap: 0.55em; margin-bottom: 0.7em;
  font-family: var(--f-display); font-weight: 700; font-stretch: 104%; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--heading);
}
.legal__body h2::before { content: counter(sec); font-size: 0.6em; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.legal__body p, .legal__body li { max-width: 68ch; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p, .legal__body table + p, .legal__body p + .legal__card { margin-top: 1em; }
.legal__body ul { padding-left: 1.2em; display: grid; gap: 0.45em; }
.legal__body li::marker { color: var(--mark); }
.legal__body a { color: var(--heading); text-decoration-color: var(--mark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.legal__body strong { font-weight: 600; color: var(--heading); }
.legal-table { width: 100%; margin: 1.1em 0 0.4em; border-collapse: collapse; font-size: 1rem; }
.legal-table th, .legal-table td { padding: 14px 18px 14px 0; border-top: 1px solid var(--hair); text-align: left; vertical-align: top; line-height: 1.55; }
.legal-table thead th { border-top: 0; padding-bottom: 10px; font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.legal-table tbody th { width: 46%; font-weight: 600; color: var(--heading); }
.legal-table td { color: var(--ink); }
.legal__card { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--hair); border-radius: 14px; max-width: 34em; }
.legal__card dt { font-size: 0.875rem; color: var(--ink-2); margin-bottom: 2px; }
.legal__card dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--heading); }
.legal__card dd a { text-decoration: none; }
.legal__card dd a:hover { text-decoration: underline; }
.foot__legal a[aria-current='page'] { color: var(--quench-white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
@media (min-width: 1024px) { .legal__toc summary { display: none; } }
@media (max-width: 1023px) {
  .legal__intro { grid-column: 1 / -1; }
  .legal__mark { display: none; }
  .legal__toc { grid-column: 1 / -1; position: relative; top: auto; margin-bottom: 40px; padding: 0 16px 8px; border: 1px solid var(--hair); border-radius: 14px; }
  .legal__body { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .legal-table thead { display: none; }
  .legal-table tr { display: grid; padding: 12px 0; border-top: 1px solid var(--hair); }
  .legal-table th, .legal-table td { padding: 2px 0; border: 0; }
  .legal-table tbody th { width: auto; }
}

/* ── Tablet: shorter pins ── */
@media (max-width: 1199px) {
  html[data-pin='on'] .bridge { height: 156vh; }
  html[data-pin='on'] .svc { height: 380vh; }
  html[data-pin='on'] .mission { height: 240vh; }
  html[data-pin='on'] .svc__copy { grid-column: 1 / span 6; }
  html[data-pin='on'] .stage--svc { grid-column: 7 / -1; }
  html[data-pin='on'] .mission__text { max-width: 86%; }
  .nav__links { gap: 20px; }
}
@media (max-width: 1023px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .hero__copy { grid-column: 1 / span 7; }
  .stage--hero { grid-column: 8 / -1; }
}

/* ── Phone ── */
@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  .nav { gap: 12px; }
  .nav__end .btn--sm { display: none; }
  .wm { font-size: 1.3rem; }
  .hero { align-items: flex-start; padding-bottom: 88px; }
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; }
  .hero__copy { display: contents; }
  .hero__title { order: 1; margin-bottom: 0.5em; }
  .tagline { order: 2; font-size: clamp(2.75rem, min(18vw, 15svh), 6rem); margin-bottom: 0; }
  .hero__grid { min-height: calc(100svh - var(--nav-h) - 24px - 88px); }
  .stage--hero { order: 3; flex: 1 1 0px; min-height: 96px; max-height: 30svh; height: auto; margin: 4px 0 12px; }
  .hero__lede { order: 4; }
  .hero__ctas { order: 5; margin-top: 24px; }
  .hero__place { order: 6; margin-top: 24px; }
  .ground__glow { background: radial-gradient(60vmax 40vmax at 50% 52%, rgba(255, 110, 20, 0.16), transparent 70%); }
  .about__grid, .pillars__grid, .contact__grid { display: block; }
  .about__aside { display: block; }
  .stage--about { position: relative; top: auto; height: 30svh; margin-top: 24px; }
  .stage--bridge { height: 28svh; }
  .bridge__bar { transform: scaleX(calc(1 + var(--gap) * 1.6)); }
  .pillars__side { margin-top: 32px; }
  .stage--pillars { height: 26svh; }
  html[data-zone='services'] .forge { z-index: 3; }
  .no-gl .stage--svc, html:not(.js) .stage--svc { position: relative; top: auto; }
  .together { min-height: 60vh; }
  .stage--together { width: 100%; }
  .mission__text { max-width: none; }
  .vision { height: 200vh; }
  .vision__copy { padding-bottom: 10vh; }
  .contact__info { margin-bottom: 48px; }
  .foot__row { grid-template-columns: 1fr; align-items: start; }
  .foot__end { justify-self: start; text-align: left; justify-items: start; }
}

/* Phones: keep the nav over the sticky services stage on tall screens; on short landscape screens unstick the stage. */
@media (max-width: 767px) and (min-height: 30.01em) {
  html[data-zone='services'] .nav--hide { transform: none; }
}
@media (max-width: 767px) and (max-height: 30em) {
  .stage--svc { position: relative; top: auto; }
}

/* ── Reduced motion (OS setting or "Pause motion") ── */
[data-motion='reduced'] .vision { height: auto; }
[data-motion='reduced'] .vision__pin { position: relative; height: auto; min-height: 100svh; }
@media (max-height: 30em) {
  .vision { height: auto; }
  .vision__pin { position: relative; height: auto; min-height: 100svh; }
}
[data-motion='reduced'] .bridge__bar::after { opacity: 1; }
[data-motion='reduced'] .cue i { animation: none; top: 24px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
