/* ==========================================================================
   SPD BUILDER SERVICES — DESIGN SYSTEM & STYLES
   Static site. No build step. Deploys as-is to Cloudflare Pages.

   CONTENTS
   01  Tokens
   02  Reset & base
   03  Typography primitives
   04  Buttons & links
   05  Layout primitives
   06  Site chrome (brand, menu, rail, mobile dock)
   07  Hero + window reveal
   08  Sections
   09  Motion / reveal
   10  Responsive
   11  Print
   ========================================================================== */

/* -- 01  TOKENS ---------------------------------------------------------- */
:root {
  /* Brand — derived from the SPD logo, normalized for screen legibility */
  --navy-900: #05101F;
  --navy-800: #0A1D3A;
  --navy-700: #102C57;
  --navy-600: #173C74;
  --blue-700: #1157C4;
  --blue-600: #1668E3;
  --blue-500: #2E86FF;
  --blue-400: #6BAEFF;
  --gold:     #C0A05A;   /* micro-accent only — never a surface colour */

  --ink:      #0A1A33;
  --ink-70:   #3C4A61;
  --ink-55:   #5C687C;
  --paper:    #FBFAF8;
  --paper-2:  #F2F0EB;
  --white:    #FFFFFF;

  --line:        rgba(10, 26, 51, .13);
  --line-strong: rgba(10, 26, 51, .24);
  --line-dark:   rgba(255, 255, 255, .16);

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-eyebrow: .72rem;
  --fs-body: clamp(1rem, .96rem + .22vw, 1.09rem);
  --fs-lede: clamp(1.1rem, 1.02rem + .5vw, 1.35rem);
  --fs-h3: clamp(1.35rem, 1.2rem + .7vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.1vw, 3.3rem);
  --fs-display: clamp(2.3rem, 1.5rem + 3.5vw, 4.5rem);
  --fs-numeral: clamp(3rem, 2rem + 5vw, 6.5rem);

  /* Space */
  --gutter: clamp(20px, 5vw, 68px);
  --shell: 1260px;
  --section-y: clamp(76px, 9vw, 146px);
  --stack: clamp(18px, 2vw, 28px);

  /* Shape & depth — restrained */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --shadow-soft: 0 18px 50px -28px rgba(5, 16, 31, .45);
  --shadow-lift: 0 26px 70px -34px rgba(5, 16, 31, .6);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-window: cubic-bezier(.72, 0, .18, 1);
  --t-fast: 180ms;
  --t-mid: 420ms;
  --t-slow: 900ms;
}

/* -- 02  RESET & BASE ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.028em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--blue-500); color: #fff; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .menu :focus-visible, .chrome :focus-visible {
  outline-color: var(--blue-400);
}

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

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

/* -- 03  TYPOGRAPHY PRIMITIVES ------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin: 0 0 var(--stack);
}
.eyebrow::before {
  content: "";
  width: 30px; height: 2px;
  flex: none;
  background: var(--gold);
}
.on-dark .eyebrow { color: var(--blue-400); }

.display { font-size: var(--fs-display); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -.02em; }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 54ch;
}
.on-dark .lede { color: rgba(255, 255, 255, .78); }

.prose { color: var(--ink-70); max-width: 62ch; }
.on-dark .prose { color: rgba(255, 255, 255, .74); }

.numeral {
  font-family: var(--font-display);
  font-size: var(--fs-numeral);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  user-select: none;
}
.on-dark .numeral { -webkit-text-stroke-color: rgba(255, 255, 255, .3); }

.pull {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.4rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.24;
  letter-spacing: -.02em;
}

/* -- 04  BUTTONS & LINKS ------------------------------------------------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  --btn-bd: var(--blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary:hover { background: var(--blue-700); border-color: var(--blue-700); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover { --btn-bd: var(--ink); }

.on-dark .btn--ghost {
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .34);
}
.on-dark .btn--ghost:hover {
  --btn-bd: #fff;
  --btn-bg: rgba(255, 255, 255, .08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 38px);
}

.link-underline {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.link-underline:hover { background-size: 0% 1px; color: var(--blue-600); }
.on-dark .link-underline:hover { color: var(--blue-400); }

/* -- 05  LAYOUT PRIMITIVES ----------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: 1480px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(58px, 6vw, 96px); }

.on-dark {
  background: var(--navy-800);
  color: #fff;
}
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }

.tone-paper-2 { background: var(--paper-2); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.on-dark .rule { background: var(--line-dark); }

.split {
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split--top { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, 1fr); }
  .split__media { grid-column: span 6; }
  .split__body  { grid-column: span 6; }
  .split--flip .split__media { grid-column: 7 / span 6; grid-row: 1; }
  .split--flip .split__body  { grid-column: 1 / span 6; grid-row: 1; }
  .split--narrow-body .split__body { grid-column: span 5; }
  .split--flip.split--narrow-body .split__body { grid-column: 1 / span 5; }
}

.figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background-color: var(--navy-700);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lift);
}
.figure::after {
  /* architectural mullion overlay — the window motif, used sparingly */
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, .22);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.figure--plain::after { display: none; }
.figure--4x3 { aspect-ratio: 4 / 3; }
.figure--3x4 { aspect-ratio: 3 / 4; }
.figure--16x10 { aspect-ratio: 16 / 10; }

@media (min-width: 900px) {
  .figure--sticky { position: sticky; top: 110px; }
}

/* Spec list — used for service scopes. Hairlines, not cards. */
.spec { border-top: 1px solid var(--line); }
.on-dark .spec { border-top-color: var(--line-dark); }
.spec li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.on-dark .spec li { border-bottom-color: var(--line-dark); }
.spec li::before {
  content: "";
  flex: none;
  width: 14px; height: 1.5px;
  background: var(--gold);
  transform: translateY(-4px);
}

/* -- 06  SITE CHROME ----------------------------------------------------- */
.chrome {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 96;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  color: #fff;
  transition: background-color var(--t-mid) var(--ease),
              color var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              backdrop-filter var(--t-mid) var(--ease);
}
.chrome.is-stuck {
  background: rgba(251, 250, 248, .9);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.menu-open .chrome, .menu-open .chrome.is-stuck {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
}
.brand img {
  width: auto; height: 64px;
  border-radius: 8px;
  box-shadow: 0 2px 14px -6px rgba(0, 0, 0, .55);
  transition: height var(--t-mid) var(--ease);
}
.chrome.is-stuck .brand img { height: 46px; }
.brand__name { font-size: .95rem; line-height: 1.1; }
.brand__name span { display: block; font-size: .64rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .7; font-family: var(--font-body); }

.chrome__actions { display: flex; align-items: center; gap: 10px; }

.chrome__tel {
  display: none;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color var(--t-fast) var(--ease);
}
.chrome__tel:hover { background: rgba(127, 127, 127, .14); }
@media (min-width: 720px) { .chrome__tel { display: inline-flex; } }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 18px 10px 20px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .92;
  transition: opacity var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.menu-btn:hover { opacity: 1; background: rgba(127, 127, 127, .12); }
.menu-btn__bars { display: grid; gap: 4px; width: 16px; }
.menu-btn__bars i { display: block; height: 1.5px; background: currentColor; transition: transform var(--t-fast) var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* Full-screen menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--navy-900);
  color: #fff;
  padding: 92px var(--gutter) clamp(28px, 5vw, 56px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid) var(--ease), visibility var(--t-mid);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__inner { width: 100%; max-width: var(--shell); margin-inline: auto; align-self: center; }

.menu__list { display: grid; gap: 2px; }
.js .menu__list a { opacity: 0; transform: translateY(14px); }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: clamp(8px, 1vw, 13px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, .95rem + 1.9vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -.03em;
  transition: color var(--t-fast) var(--ease), opacity 420ms var(--ease), transform 420ms var(--ease);
}
.menu.is-open .menu__list a { opacity: 1; transform: none; transition-delay: calc(60ms + var(--i) * 45ms); }
.menu__list a:hover { color: var(--blue-400); }
.menu__list a i {
  font-style: normal;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold);
  flex: none;
  width: 2.2em;
}

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .92rem;
  color: rgba(255, 255, 255, .72);
}
.menu__foot a { color: #fff; }

/* Vertical section rail (desktop only) */
.rail {
  position: fixed;
  z-index: 80;
  right: clamp(16px, 1.8vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  color: var(--ink);
  transition: color var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease);
}
.rail.on-tone-dark { color: #fff; }
.rail a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  height: 22px;
  padding: 0;
  color: inherit;
  text-decoration: none;
}
.rail a span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.rail a::after {
  content: "";
  width: 18px; height: 1.5px;
  background: currentColor;
  opacity: .34;
  transition: width var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease);
}
.rail a:hover span, .rail a:focus-visible span { opacity: .82; transform: none; }
.rail a:hover::after { opacity: .7; width: 26px; }
.rail a[aria-current="true"]::after { width: 34px; opacity: 1; background: var(--gold); }

@media (min-width: 1280px) { .rail { display: flex; } }

/* Mobile action dock */
.dock {
  position: fixed;
  z-index: 85;
  left: 10px; right: 10px; bottom: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 6px;
  padding: 6px;
  background: rgba(10, 29, 58, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 14px 40px -16px rgba(5, 16, 31, .7);
  transition: transform var(--t-mid) var(--ease);
}
.js .dock { transform: translateY(140%); }
.js .dock.is-on { transform: none; }
.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.dock a:not(.dock__cta) { background: rgba(255, 255, 255, .09); }
.dock__cta { background: var(--blue-600); }
@media (min-width: 860px) { .dock { display: none; } }

/* -- 07  HERO + WINDOW REVEAL -------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(120px, 16vh, 190px) clamp(72px, 10vh, 120px);
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(23, 60, 116, .85) 0%, rgba(5, 16, 31, 0) 62%),
    linear-gradient(168deg, var(--navy-800) 0%, var(--navy-900) 74%);
  overflow: hidden;
}
.hero::before {
  /* faint blueprint grid — the only place the grid motif appears full-bleed */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(85% 70% at 60% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(85% 70% at 60% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
  width: 100%;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(48px, 5vw, 86px); }
}

.hero h1 { margin-bottom: clamp(18px, 2vw, 26px); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transition: transform 900ms var(--ease-window);
}
.js .hero h1 .line > span { transform: translateY(102%); }
.is-ready .hero h1 .line > span { transform: none; }
.hero h1 .line:nth-child(2) > span { transition-delay: 90ms; }
.hero h1 .line:nth-child(3) > span { transition-delay: 180ms; }
.hero h1 em { font-style: normal; color: var(--blue-400); }

.js .hero__fade { opacity: 0; transform: translateY(16px); transition: opacity 760ms var(--ease), transform 760ms var(--ease); }
.is-ready .hero__fade { opacity: 1; transform: none; }
.is-ready .hero__fade--1 { transition-delay: 260ms; }
.is-ready .hero__fade--2 { transition-delay: 360ms; }
.is-ready .hero__fade--3 { transition-delay: 460ms; }

.trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: clamp(26px, 3vw, 40px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .86rem;
  color: rgba(255, 255, 255, .72);
}
.trustline li { display: flex; align-items: center; gap: 9px; }
.trustline li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* The window */
.window {
  position: relative;
  aspect-ratio: 4 / 4.05;
  border-radius: var(--r-lg);
  overflow: hidden;
  background-color: var(--navy-700);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .85);
}
@media (min-width: 1000px) {
  .window { aspect-ratio: 4 / 4.35; max-height: calc(100svh - 230px); margin-right: calc(var(--gutter) * -1); border-top-right-radius: 0; border-bottom-right-radius: 0; }
}
.window__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 58% 50%;
  transform: scale(1.09);
  transition: transform 1800ms var(--ease);
}
.is-ready .window__img { transform: scale(1); }

.window__frame {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  opacity: 1;
  transition: opacity 700ms var(--ease) 760ms;
  pointer-events: none;
}
.window__frame::before, .window__frame::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, .24);
}
.window__frame::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.window__frame::after { top: 46%; left: 0; right: 0; height: 1px; }

.window__pane {
  display: none;
  position: absolute;
  top: 0; bottom: 0;
  width: 50.5%;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-900));
  transition: transform 1150ms var(--ease-window) 220ms;
  z-index: 2;
}
.js .window__pane { display: block; }
.window__pane--l { left: 0; border-right: 1px solid rgba(192, 160, 90, .5); }
.window__pane--r { right: 0; border-left: 1px solid rgba(192, 160, 90, .5); }
.is-ready .window__pane--l { transform: translateX(-101%); }
.is-ready .window__pane--r { transform: translateX(101%); }

.window__tag {
  position: absolute;
  z-index: 3;
  left: 22px; bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(5, 16, 31, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: opacity 600ms var(--ease) 1000ms;
}
.js .window__tag { opacity: 0; }
.is-ready .window__tag { opacity: 1; }
.window__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-400); flex: none; }

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(20px, 3vh, 34px);
  display: none;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .55);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 600ms var(--ease) 1200ms, color var(--t-fast) var(--ease);
}
.js .scroll-cue { opacity: 0; }
.is-ready .scroll-cue { opacity: 1; }
.scroll-cue:hover { color: #fff; }
.scroll-cue::after {
  content: "";
  width: 46px; height: 1px;
  background: currentColor;
  animation: cue 2.6s var(--ease) infinite;
  transform-origin: left center;
}
@keyframes cue { 0%, 100% { transform: scaleX(.5); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }
@media (min-width: 1000px) and (min-height: 640px) { .scroll-cue { display: flex; } }

/* -- 08  SECTIONS -------------------------------------------------------- */

/* Vertical rhythm inside text columns */
.split__body > h1 + p, .split__body > h2 + p, .split__body > p + p,
.sec-head > h1 + p, .sec-head > h2 + p, .sec-head > p + p,
.request-grid > div > h2 + p, .request-grid > div > p + p,
.hero h1 + p {
  margin-top: clamp(15px, 1.6vw, 24px);
}
.split__body > .spec, .split__body > .area-list { margin-top: clamp(24px, 2.6vw, 36px); }

.sec-head { max-width: 60ch; margin-bottom: clamp(38px, 4.5vw, 66px); }
.sec-head--wide { max-width: 100%; }

/* Value list (Why SPD) */
.values { display: grid; gap: 0; margin-top: clamp(30px, 4vw, 50px); }
@media (min-width: 820px) { .values { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 5vw, 80px); } }
.values li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: clamp(22px, 2.4vw, 32px) 0;
  border-top: 1px solid var(--line-dark);
}
.values li b {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold);
  padding-top: .22em;
}
.values h3 { font-size: 1.14rem; letter-spacing: -.015em; margin-bottom: 8px; }
.values p { font-size: .97rem; color: rgba(255, 255, 255, .72); }

/* Service block */
.service__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(16px, 2vw, 24px);
}


/* Stage list for construction */
.stages { display: grid; gap: 0; margin-top: clamp(28px, 3vw, 40px); }
.stages li {
  display: grid;
  gap: 6px 22px;
  padding: clamp(20px, 2.2vw, 28px) 0;
  border-top: 1px solid var(--line-dark);
}
@media (min-width: 680px) { .stages li { grid-template-columns: minmax(180px, 26%) 1fr; align-items: baseline; } }
.stages h3 { font-size: 1.1rem; display: flex; align-items: baseline; gap: 12px; }
.stages h3 i { font-style: normal; font-family: var(--font-body); font-size: .7rem; letter-spacing: .18em; color: var(--gold); }
.stages p { color: rgba(255, 255, 255, .72); font-size: .97rem; }

/* On-request list */
.request-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .request-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.request-list { border-top: 1px solid var(--line); }
.request-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.tag {
  flex: none;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-55);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 11px;
}
.growth {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin-top: clamp(26px, 3vw, 38px);
}

/* Service area */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3vw, 34px); }
.area-list li {
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
}
.area-list li:first-child { background: rgba(255, 255, 255, .1); border-color: transparent; }

/* Placeholder blocks (About / Reviews) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.on-dark .chip { border-color: rgba(255,255,255,.26); color: rgba(255,255,255,.72); }

/* Review quotes — markup is commented out in index.html until real reviews
   exist. Styled now so they drop straight in. */
.quotes {
  display: grid;
  gap: 14px;
  margin-top: clamp(30px, 4vw, 48px);
}
@media (min-width: 780px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quotes li {
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
}
.quotes blockquote {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}
.quotes blockquote::before {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--gold);
  margin-bottom: 16px;
}
.quotes cite {
  font-style: normal;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-55);
}

/* Contact */
.contact-actions { display: grid; gap: 12px; margin-top: clamp(30px, 4vw, 46px); }
@media (min-width: 760px) { .contact-actions { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  display: grid;
  gap: 6px;
  align-content: space-between;
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-md);
  color: #fff;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.contact-card:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .4); transform: translateY(-3px); }
.contact-card small {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-400);
}
.contact-card b {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, .9rem + .7vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -.02em;
  word-break: break-word;
}
.contact-card span { font-size: .88rem; color: rgba(255, 255, 255, .64); }

/* Reserved mount point for the future quote form. See README. */
#quote-form-slot:empty { display: none; }

/* Footer */
.foot { background: var(--navy-900); color: rgba(255, 255, 255, .7); }
.foot a { color: #fff; }
.foot__top {
  display: grid;
  gap: clamp(30px, 4vw, 52px);
  padding-block: clamp(50px, 6vw, 80px) clamp(30px, 3vw, 44px);
}
@media (min-width: 880px) { .foot__top { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot__logo { width: 190px; margin-bottom: 20px; }
.foot h3 {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 16px;
}
.foot__links li { padding: 5px 0; }
.foot__links a { text-decoration: none; color: rgba(255, 255, 255, .8); }
.foot__links a:hover { color: var(--blue-400); }

.legal {
  padding-block: clamp(34px, 4vw, 52px);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: grid;
  gap: clamp(26px, 3vw, 44px);
}
@media (min-width: 880px) { .legal { grid-template-columns: 1fr 1fr; } }
.legal h3 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.legal p { font-size: .82rem; line-height: 1.66; color: rgba(255, 255, 255, .58); }
.legal b { color: rgba(255, 255, 255, .82); }
.legal a { color: rgba(255, 255, 255, .82); }

.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-block: 24px clamp(24px, 3vw, 34px);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
}
@media (max-width: 859px) { .colophon { padding-bottom: 84px; } }

/* -- 08b  CONTENT ADDITIONS (2026-10) ------------------------------------ */
.split__body > .spec-label { margin-top: clamp(30px, 3.2vw, 44px); margin-bottom: 14px; }
.split__body > .spec-label + .spec { margin-top: 0; }

.request-list li.is-pending { color: var(--ink-55); font-weight: 400; }
.tag--pending { border-style: dashed; }

.about .split__media { align-self: stretch; }
.story { margin-top: clamp(18px, 2vw, 26px); color: var(--ink-70); max-width: 62ch; }
.story p + p { margin-top: 1em; }
.story .story__sign {
  margin-top: clamp(24px, 2.6vw, 34px);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}
.story__sign::before {
  content: "";
  display: block;
  width: 36px; height: 2px;
  margin-bottom: 14px;
  background: var(--gold);
}

/* -- 08c  ENTRY: the site opens like a pair of casement windows ---------- */
.entry { display: none; }
.js:not(.entered) .entry {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
  perspective: 1800px;
  pointer-events: none;
  /* Failsafe: if the script never runs, the windows still get out of the way. */
  animation: entry-failsafe 0s linear 5.5s forwards;
}
.entry__pane {
  position: absolute;
  top: 0; bottom: 0;
  width: 50.5%;
  background:
    radial-gradient(120% 80% at 50% 30%, rgba(23, 60, 116, .55), rgba(5, 16, 31, 0) 70%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 1900ms var(--ease-window) 380ms;
}
.entry__pane::before {
  /* the sash: inset frame with a mullion cross */
  content: "";
  position: absolute;
  inset: clamp(16px, 3vw, 40px);
  border: 1px solid rgba(192, 160, 90, .45);
  background:
    linear-gradient(rgba(192, 160, 90, .3), rgba(192, 160, 90, .3)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(192, 160, 90, .3), rgba(192, 160, 90, .3)) 0 46% / 100% 1px no-repeat;
}
.entry__pane--l { left: 0; transform-origin: left center; box-shadow: inset -1px 0 0 rgba(192, 160, 90, .7); }
.entry__pane--r { right: 0; transform-origin: right center; box-shadow: inset 1px 0 0 rgba(192, 160, 90, .7); }
.entry__logo {
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(150px, 18vw, 230px);
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75);
  transform: translate(-50%, -50%);
  transition: opacity 600ms var(--ease), transform 900ms var(--ease);
}
/* Swing inward, away from the viewer, like walking through. */
.is-ready .entry__logo { opacity: 0; transform: translate(-50%, -50%) scale(.94); }
.is-ready .entry__pane--l { transform: rotateY(96deg); }
.is-ready .entry__pane--r { transform: rotateY(-96deg); }
.is-ready .entry { visibility: hidden; transition: visibility 0s linear 2.35s; }
@keyframes entry-failsafe { to { visibility: hidden; } }

/* -- 09  MOTION / REVEAL ------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* The clip lives on the CHILD: clip-path on an observed element zeroes its
   IntersectionObserver rect, so the reveal would never fire. */
.js [data-reveal="mask"] { transform: none; opacity: 1; }
.js [data-reveal="mask"] > * {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1100ms var(--ease-window);
}
.js [data-reveal="mask"].is-in > * { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal], [data-reveal] > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .window__pane, .js .window__pane { display: none; }
  .entry, .js:not(.entered) .entry { display: none; }
  .window__img { transform: none; }
  .hero h1 .line > span { transform: none; }
  .hero__fade, .window__frame, .window__tag, .scroll-cue { opacity: 1; }
  .menu__list a { opacity: 1; transform: none; }
}

/* -- 10  RESPONSIVE TWEAKS ----------------------------------------------- */
@media (max-width: 999px) {
  .hero { min-height: 0; padding-block: 120px clamp(56px, 8vh, 84px); }
  .window { max-width: 620px; }
}
@media (max-width: 899px) {
  /* Stacked layout: portrait crops would otherwise eat a whole screen. */
  .figure--3x4 { aspect-ratio: 4 / 3.2; }
  .figure--4x3 { aspect-ratio: 4 / 2.9; }
}
@media (max-width: 520px) {
  .brand__name span { display: none; }
  .brand img { height: 50px; }
  .chrome.is-stuck .brand img { height: 42px; }
  .menu-btn { padding: 10px 14px; letter-spacing: .08em; }
}

/* -- 11  PRINT ----------------------------------------------------------- */
@media print {
  .chrome, .menu, .rail, .dock, .scroll-cue, .figure, .window { display: none !important; }
  body { background: #fff; color: #000; }
  .on-dark { background: #fff !important; color: #000 !important; }
  .on-dark h2, .on-dark h3, .on-dark p, .on-dark li { color: #000 !important; }
}

/* ======================= INSTANT ESTIMATE (quote.js) ======================= */
#quote-form-slot { margin-top: clamp(30px, 4vw, 46px); scroll-margin-top: 90px; }
.qf-card {
  background: var(--paper); color: var(--ink); border-radius: var(--r-lg);
  padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow-lift); max-width: 760px;
}
.qf-head { margin-bottom: 18px; }
.qf-kicker { margin: 0 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-600); }
.qf-title { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 8px; color: var(--ink); }
.qf-title--sm { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); margin-top: 6px; }
.qf-sub { margin: 0; color: var(--ink-70); max-width: 60ch; }
.qf-sub a, .qf-check a, .qf-msg a { color: var(--blue-700); }
.qf-field { display: block; border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.qf-field > span, .qf-field > legend { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.qf-field em { font-style: normal; font-weight: 400; color: var(--ink-55); }
.qf-field input, .qf-field select, .qf-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: #fff; color: var(--ink); font: inherit; font-size: 16px;
}
.qf-field textarea { min-height: 84px; resize: vertical; }
.qf-field input:focus, .qf-field select:focus, .qf-field textarea:focus { outline: 2px solid var(--blue-600); outline-offset: 1px; border-color: transparent; }
.qf-or { max-width: 260px; }
.qf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qf-radio { position: absolute; opacity: 0; pointer-events: none; }
.qf-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; font-weight: 500; font-size: .95rem; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.qf-chip:hover { border-color: var(--ink); }
.qf-radio:checked + .qf-chip { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.qf-radio:focus-visible + .qf-chip { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.qf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.qf-actions .btn--ghost { --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.qf-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--r-md); background: #FDE7EA; color: #8A1C2B; font-size: .92rem; }
.qf-result { background: var(--navy-800); color: #fff; border-radius: var(--r-md); padding: clamp(18px, 3vw, 28px); margin-bottom: 22px; }
.qf-result .qf-kicker { color: var(--blue-400); }
.qf-result .qf-sub { color: rgba(255, 255, 255, .78); }
.qf-price { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 10px; }
.qf-price small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--blue-400); }
.qf-fine { margin: 12px 0 0; font-size: .85rem; color: rgba(255, 255, 255, .64); }
.qf-grid { display: grid; gap: 0 14px; }
@media (min-width: 620px) { .qf-grid { grid-template-columns: 1fr 1fr; } }
.qf-check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--ink-70); margin: 4px 0 16px; }
.qf-check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--blue-600); }
.qf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qf-done .qf-title { margin-bottom: 10px; }

/* ======================= FAQ ======================= */
.faq { display: grid; gap: 0; max-width: 860px; margin-top: clamp(26px, 3vw, 40px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 2px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); letter-spacing: -.01em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 400; transition: transform var(--t-fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.faq .faq__a { padding: 0 2px 22px; color: var(--ink-70); max-width: 68ch; }
.faq .faq__a p { margin: 0; }
.on-dark .qf-card, .on-dark .qf-card .qf-title, .on-dark .qf-card .qf-field > span, .on-dark .qf-card .qf-field > legend { color: var(--ink); }
.on-dark .qf-card .qf-result .qf-price { color: #fff; }

/* ======================= SERVICE PAGES (2026-10-27) ======================= */
.page-hero {
  position: relative;
  padding-block: clamp(132px, 18vh, 200px) clamp(64px, 9vh, 110px);
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(23, 60, 116, .85) 0%, rgba(5, 16, 31, 0) 62%),
    linear-gradient(168deg, var(--navy-800) 0%, var(--navy-900) 74%);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(85% 70% at 60% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(85% 70% at 60% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
.page-hero .shell { position: relative; }
.page-title { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 4rem); line-height: 1.04; letter-spacing: -.035em; max-width: 18ch; margin-bottom: clamp(16px, 2vw, 24px); }
.page-hero .lede { max-width: 58ch; }
.page-hero .btn-row { margin-top: clamp(22px, 3vw, 32px); }
.page-hero .trustline { margin-top: clamp(22px, 3vw, 32px); }
.crumbs { font-size: .86rem; color: rgba(255, 255, 255, .62); margin: 0 0 18px; }
.crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; }
.spec-cols { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .spec-cols { grid-template-columns: 1fr 1fr; } }
.steps { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: clamp(18px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--line); }
.steps li b { font-family: var(--font-display); font-weight: 600; color: var(--blue-600); font-size: .95rem; padding-top: 3px; }
.steps h3 { font-size: 1.14rem; letter-spacing: -.015em; margin-bottom: 6px; }
.steps p { color: var(--ink-70); font-size: .97rem; max-width: 64ch; margin: 0; }
.svc-link { margin-top: clamp(18px, 2.4vw, 28px); }
