/* ==========================================================================
   Castle Bridge — castlebridgeco.com
   Self-contained by design: no webfonts, no CDNs, no third-party anything.
   Every byte is served from this origin so the CSP can forbid all others.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  /* Navy carries the brand; the light pages are warm paper, not white. */
  --navy-900: #0a1424;
  --navy-800: #0e1b33;
  --navy-700: #142744;
  --navy-600: #1b3556;

  --paper:    #fbfaf7;
  --paper-2:  #f4f1ea;
  --paper-3:  #ece7dc;

  --ink:      #111c31;
  --ink-2:    #454e60;
  --ink-3:    #737b8a;

  --line:     #e2ddd3;
  --line-2:   #cfc8ba;
  --line-dk:  rgba(201, 162, 75, 0.22);

  /* Gold is an accent for rules, labels and hover — not a text colour on
     paper, where it fails contrast at body sizes. */
  --gold:     #c9a24b;
  --gold-dp:  #8a6c26;
  --gold-lt:  #e8d19a;
  --gold-pl:  #f3e6c4;

  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;

  --shell: 1280px;
  --gut: clamp(20px, 4vw, 46px);
  --band-y: clamp(64px, 8vw, 116px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --mast-h: 74px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mast-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; border: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.014em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: rgba(201, 162, 75, 0.26); color: var(--ink); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--navy-800); color: var(--gold-lt);
  padding: 12px 20px; font-size: 14px; letter-spacing: 0.06em;
}
.skip:focus { left: 12px; top: 12px; }

/* Set by assets/js/head.js when another origin has framed the page. */
.is-framed body { display: none !important; }

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

.band { padding-block: var(--band-y); position: relative; }
.band--paper { background: var(--paper); }
.band--tint  { background: var(--paper-2); border-block: 1px solid var(--line); }
.band--dark  { background: var(--navy-800); color: rgba(247, 244, 237, 0.82); }
.band--tall  { min-height: 78vh; display: grid; align-content: center; }

/* The editorial split that most of the site is built from: a heading column
   that stops short, and a wider column of argument beside it. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
.split-a { position: sticky; top: calc(var(--mast-h) + 34px); }
.split-b > p { color: var(--ink-2); max-width: 62ch; }
.band--dark .split-b > p { color: rgba(247, 244, 237, 0.74); }

.band-head {
  display: grid;
  gap: 14px;
  padding-bottom: clamp(28px, 4vw, 52px);
  margin-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  max-width: 72ch;
}
.band--dark .band-head, .band-head--dark { border-color: var(--line-dk); }

/* -------------------------------------------------------------- typography */
.kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dp);
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: ""; width: 26px; height: 1px; flex: none; background: var(--gold);
}
.kicker--light, .band--dark .kicker { color: var(--gold); }

.h-hero    { font-size: clamp(37px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -0.024em; max-width: 17ch; }
.h-display { font-size: clamp(33px, 4.4vw, 58px); letter-spacing: -0.02em; max-width: 18ch; }
.h-section { font-size: clamp(25px, 3vw, 40px); letter-spacing: -0.016em; }

.lede { font-size: clamp(16.5px, 1.45vw, 19.5px); color: var(--ink-2); max-width: 56ch; }
.lede--light { color: rgba(247, 244, 237, 0.78); }

.statement {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 1.1em;
  max-width: 46ch;
}
.band--dark .statement { color: var(--gold-pl); }

.link-go {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--gold-dp);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-go:hover { color: var(--ink); border-color: var(--gold); gap: 14px; }
.band--dark .link-go { color: var(--gold); border-color: var(--line-dk); }
.band--dark .link-go:hover { color: var(--gold-pl); border-color: var(--gold); }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-lt); }
.btn-line { border-color: rgba(232, 209, 154, 0.42); color: var(--gold-pl); }
.btn-line:hover { border-color: var(--gold); background: rgba(201, 162, 75, 0.12); }
.band--paper .btn-line, .band--tint .btn-line { border-color: var(--line-2); color: var(--ink); }
.band--paper .btn-line:hover, .band--tint .btn-line:hover { border-color: var(--ink); background: transparent; }
.btn-sm { padding: 11px 20px; font-size: 11.5px; }
.btn-lg { padding: 18px 40px; }

/* ------------------------------------------------------- utility + masthead */
.util {
  background: var(--navy-900);
  color: rgba(247, 244, 237, 0.55);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.util-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 9px; }
.util p { margin: 0; }
.util-motto { text-transform: uppercase; letter-spacing: 0.19em; }
.util-mail a { color: var(--gold-lt); border-bottom: 1px solid transparent; }
.util-mail a:hover { border-color: var(--gold); }

.masthead {
  position: sticky; top: 0; z-index: 200;
  background: var(--navy-800);
  border-bottom: 1px solid var(--line-dk);
  transition: box-shadow 0.3s var(--ease);
}
.masthead.is-stuck { box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.85); }
.mast-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: var(--mast-h);
}

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 21px; line-height: 1;
  letter-spacing: 0.19em; text-transform: uppercase;
  color: #f7f4ed;
}
.brand-tag {
  font-size: 8.5px; line-height: 1;
  letter-spacing: 0.17em; text-transform: uppercase;
  color: rgba(232, 209, 154, 0.6);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 26px 16px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(247, 244, 237, 0.8);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 18px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-caret { width: 9px; height: 6px; opacity: 0.7; transition: transform 0.3s var(--ease); }
.nav-cta { margin-left: 14px; }

/* Mega-menu. Hover opens it with no script; .is-open is added by site.js for
   keyboard and touch, so the panel works either way. */
.mega {
  position: absolute; top: 100%; left: 50%;
  width: 100vw; transform: translateX(-50%);
  background: var(--navy-700);
  border-top: 1px solid var(--line-dk);
  border-bottom: 1px solid var(--line-dk);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease);
  z-index: 210;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .mega.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.has-mega:hover .nav-caret { transform: rotate(180deg); }

.mega-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 0.85fr);
  gap: clamp(20px, 3vw, 52px);
  padding-block: clamp(28px, 3.5vw, 46px);
}
.mega-col { display: grid; gap: 4px; align-content: start; }
.mega-item {
  display: grid; gap: 3px;
  padding: 13px 16px;
  border-left: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.mega-item:hover { background: rgba(255, 255, 255, 0.045); border-left-color: var(--gold); }
.mega-name { font-family: var(--font-display); font-size: 19px; color: #f7f4ed; }
.mega-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--gold);
}
.mega-sum { font-size: 13.5px; line-height: 1.5; color: rgba(247, 244, 237, 0.6); }
.mega-col--end {
  border-left: 1px solid var(--line-dk);
  padding-left: clamp(20px, 3vw, 44px);
  align-content: start; gap: 14px;
}
.mega-head {
  margin: 0; font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.mega-blurb { margin: 0; font-size: 14px; color: rgba(247, 244, 237, 0.62); }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--line-dk);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle-bar { display: block; width: 20px; height: 1.5px; background: var(--gold-lt); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(540px, 76vh, 800px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--navy-800);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  /* Dense enough on the left for the headline to sit on it, and close to
     clear on the right so the engraving is actually seen. */
  background:
    linear-gradient(94deg, rgba(10,20,36,0.96) 0%, rgba(10,20,36,0.88) 26%,
                           rgba(10,20,36,0.46) 52%, rgba(10,20,36,0.04) 100%),
    linear-gradient(180deg, rgba(10,20,36,0.5) 0%, rgba(10,20,36,0) 22%);
}
.hero-inner {
  position: relative;
  padding-block: clamp(64px, 9vw, 118px) clamp(44px, 6vw, 76px);
  color: #f7f4ed;
}
.hero-inner .kicker { margin-bottom: 22px; }
.h-hero { color: #fbf9f4; margin-bottom: 24px; }
.hero-inner .lede { max-width: 50ch; }
.hero-act { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-rail {
  position: relative;
  border-top: 1px solid var(--line-dk);
  background: rgba(10, 20, 36, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-rail-inner { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rail-item {
  display: grid; gap: 3px;
  padding: 20px clamp(10px, 1.4vw, 20px);
  border-left: 1px solid var(--line-dk);
  transition: background-color 0.25s var(--ease);
}
.rail-item:first-child { border-left: 0; }
.rail-item:hover { background: rgba(201, 162, 75, 0.1); }
.rail-name { font-family: var(--font-display); font-size: 16px; color: #f7f4ed; }
.rail-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(201, 162, 75, 0.85); }

/* -------------------------------------------------------------- page header */
.pagehead {
  position: relative; isolation: isolate;
  background: var(--navy-800);
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 96px);
  color: #f7f4ed;
}
.pagehead-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.pagehead-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(92deg, rgba(10,20,36,0.94) 0%, rgba(10,20,36,0.78) 44%, rgba(10,20,36,0.34) 100%);
}
.pagehead-inner { position: relative; }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(247, 244, 237, 0.5);
  margin-bottom: 24px;
}
.crumbs a { border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--gold-lt); border-color: var(--gold); }
.crumbs span[aria-hidden] { color: rgba(201, 162, 75, 0.6); }
.pagehead .h-display { color: #fbf9f4; margin-bottom: 20px; }

/* ------------------------------------------------------------- service list */
.svc-list { border-top: 1px solid var(--line); }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 3.2fr) minmax(0, 5fr) 40px;
  align-items: baseline;
  gap: clamp(12px, 2.4vw, 40px);
  padding: clamp(22px, 2.6vw, 34px) 0;
  transition: background-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.svc-link:hover { background: rgba(201, 162, 75, 0.07); padding-inline: 20px; }
.svc-num {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--gold-dp);
}
.svc-body { display: grid; gap: 5px; }
.svc-name { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.012em; }
.svc-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.19em; text-transform: uppercase; color: var(--gold-dp); }
.svc-desc { color: var(--ink-2); font-size: 15.5px; }
.svc-go { justify-self: end; color: var(--gold-dp); font-size: 19px; transition: transform 0.3s var(--ease); }
.svc-link:hover .svc-go { transform: translateX(6px); }

/* ------------------------------------------------------------------- steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(22px, 3vw, 44px);
  margin-top: clamp(36px, 5vw, 64px);
}
.steps--wide { margin-top: clamp(44px, 6vw, 76px); }
.step { padding-top: 22px; border-top: 1px solid var(--line-dk); }
.band--paper .step, .band--tint .step { border-top-color: var(--line); }
.step-num { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 12px; }
.band--paper .step-num, .band--tint .step-num { color: var(--gold-dp); }
.step-title { font-size: 21px; margin-bottom: 10px; color: var(--gold-pl); }
.band--paper .step-title, .band--tint .step-title { color: var(--ink); }
.step p { font-size: 15px; color: rgba(247, 244, 237, 0.7); }
.band--paper .step p, .band--tint .step p { color: var(--ink-2); }

/* ------------------------------------------------------------------ covers */
.covers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(22px, 3vw, 44px);
}
.cover { padding-top: 22px; border-top: 1px solid var(--line); }
.cover-num { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; color: var(--gold-dp); margin-bottom: 12px; }
.cover-title { font-size: 20px; margin-bottom: 9px; }
.cover p { font-size: 15px; color: var(--ink-2); }

/* --------------------------------------------------------------- standards */
.stds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(22px, 3vw, 44px); }
.std { padding-top: 22px; border-top: 1px solid var(--line); }
.std-title { font-size: 20px; margin-bottom: 9px; }
.std p { font-size: 15px; color: var(--ink-2); }

/* --------------------------------------------------------------- positions */
.pos-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 2.4vw, 34px); }
.pos-card { background: var(--paper); border: 1px solid var(--line); transition: border-color 0.3s var(--ease); }
.pos-card:hover { border-color: var(--line-2); }
.pos-card > a { display: grid; gap: 12px; padding: clamp(24px, 2.6vw, 34px); height: 100%; align-content: start; }
.pos-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: 0.19em; text-transform: uppercase; color: var(--gold-dp); margin: 0; }
.pos-title { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.012em; }
.pos-stand { font-size: 15px; color: var(--ink-2); }
.pos-card .link-go { justify-self: start; margin-top: 6px; }

.position {
  display: grid;
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 88px);
  padding-block: clamp(40px, 5vw, 68px);
  border-top: 1px solid var(--line);
  align-items: start;
}
.position:first-child { border-top: 0; padding-top: 0; }
.position-head { display: grid; gap: 14px; position: sticky; top: calc(var(--mast-h) + 34px); }
.position-body > p { color: var(--ink-2); max-width: 64ch; }

/* ----------------------------------------------------------------- related */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.related-item {
  display: grid; gap: 4px; padding: 22px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto; align-items: center;
  transition: padding 0.3s var(--ease);
}
.related li { border-right: 1px solid var(--line); }
.related li:last-child { border-right: 0; }
.related-item { padding-inline: clamp(14px, 2vw, 26px); }
.related-item:hover { background: rgba(201, 162, 75, 0.07); }
.related-name { font-family: var(--font-display); font-size: 20px; }
.related-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dp); grid-column: 1; }
.related-item .svc-go { grid-row: 1 / span 2; }

/* ------------------------------------------------------------------ bridge */
.bridge-figure { margin-bottom: clamp(20px, 3vw, 36px); }
.bridge-svg { display: block; width: 100%; height: auto; }
.js .bridge-figure.in .span-arches path {
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: draw 2s var(--ease) forwards;
}
.js .bridge-figure.in .span-arches path:nth-child(2) { animation-delay: 0.14s; }
.js .bridge-figure.in .span-arches path:nth-child(3) { animation-delay: 0.28s; }
.js .bridge-figure.in .span-arches path:nth-child(4) { animation-delay: 0.42s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.js .bridge-figure.in .deck { transform-origin: center; animation: deckIn 1.1s var(--ease) forwards; }
@keyframes deckIn { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

.pier-num { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.2em; fill: var(--gold); fill-opacity: 0.78; }
.pier-name { font-family: var(--font-display); font-size: 25px; fill: var(--gold-pl); }
.bank-label { font-family: var(--font-sans); font-size: 15px; letter-spacing: 0.32em; fill: var(--gold); font-weight: 600; }

/* --------------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line); max-width: 92ch; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 2px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px);
  transition: color 0.25s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--gold-dp); }
.qa-mark { position: relative; width: 16px; height: 16px; flex: none; }
.qa-mark::before, .qa-mark::after {
  content: ""; position: absolute; background: var(--gold-dp);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.qa-mark::before { inset: 7px 0 auto 0; height: 1.5px; }
.qa-mark::after  { inset: 0 7px 0 auto; width: 1.5px; }
.qa[open] .qa-mark::after { transform: rotate(90deg); opacity: 0; }
.qa-body { padding: 0 2px 26px; max-width: 68ch; }
.qa-body p { color: var(--ink-2); }

/* ------------------------------------------------------------------- CTA */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--paper-2); border-top: 1px solid var(--line); }
.cta-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(92deg, var(--paper) 0%, rgba(251,250,247,0.92) 46%, rgba(251,250,247,0.55) 100%);
}
.cta-inner {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 80px); align-items: center;
}
.cta-copy .kicker { margin-bottom: 16px; }
.cta-copy .h-section { margin-bottom: 16px; }
.cta-act { display: grid; gap: 16px; justify-items: start; }
.cta-mail { margin: 0; font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 23px); }
.cta-mail a { border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color 0.25s var(--ease); }
.cta-mail a:hover { border-color: var(--gold); }
.cta-note { margin: 0; font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); }
.band--dark .cta-mail a { color: var(--gold-lt); }

.contact-address { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 40px); letter-spacing: -0.014em; margin-bottom: 26px; }
.contact-address a { border-bottom: 1px solid var(--line-2); padding-bottom: 5px; transition: border-color 0.25s var(--ease); }
.contact-address a:hover { border-color: var(--gold); }
.contact-note { font-size: 14.5px; color: var(--ink-3); max-width: 56ch; margin-top: 26px; }
/* The one published price. Set at display scale so it reads as a fact rather
   than as small print — marketing/POSITIONING.md §5 is explicit that a visible
   entry price is the point. */
.price {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 18px 0 8px;
}
.band--dark .price { color: var(--gold-pl); }
.price-terms {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin: 0;
}
.band-foot { margin-top: clamp(30px, 4vw, 48px); }

.svc-index { font-size: 11.5px; font-weight: 700; letter-spacing: 0.19em; text-transform: uppercase; color: var(--ink-3); margin-top: 14px; }

.notfound { display: grid; gap: 20px; justify-items: start; }
.notfound .h-display { color: var(--gold-pl); }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--navy-900); color: rgba(247, 244, 237, 0.6); padding-block: clamp(48px, 6vw, 76px) 32px; }
.foot-top {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(32px, 4vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-brand p { margin: 0; }
.foot-name { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.18em; text-transform: uppercase; color: #f7f4ed; margin-top: 14px !important; }
.foot-motto { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(232, 209, 154, 0.62); margin-top: 6px !important; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.foot-head { margin: 0 0 14px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.foot-col li { margin-bottom: 9px; }
.foot-col a { font-size: 14px; border-bottom: 1px solid transparent; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.foot-col a:hover { color: #f7f4ed; border-color: var(--gold); }
.foot-legal { display: grid; gap: 8px; padding-top: 26px; font-size: 12px; color: rgba(247, 244, 237, 0.4); }
.foot-legal p { margin: 0; max-width: 92ch; }

/* ----------------------------------------------------------- reveal motion */
/* Gated on .js (set by assets/js/head.js before first paint). Without
   JavaScript there is nothing to add .in, so the hidden state must never
   apply — otherwise the page renders blank for anyone who blocks scripts. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .svc-row:nth-child(2), .js .step:nth-child(2), .js .cover:nth-child(2), .js .std:nth-child(2), .js .pos-card:nth-child(2), .js .qa:nth-child(2) { transition-delay: 0.06s; }
.js .svc-row:nth-child(3), .js .step:nth-child(3), .js .cover:nth-child(3), .js .std:nth-child(3), .js .pos-card:nth-child(3), .js .qa:nth-child(3) { transition-delay: 0.12s; }
.js .svc-row:nth-child(4), .js .step:nth-child(4), .js .cover:nth-child(4), .js .std:nth-child(4), .js .qa:nth-child(4) { transition-delay: 0.18s; }
.js .svc-row:nth-child(5) { transition-delay: 0.24s; }
.js .svc-row:nth-child(6) { transition-delay: 0.30s; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .svc-link { grid-template-columns: 46px minmax(0, 1fr) 30px; }
  .svc-desc { grid-column: 2; }
  .mega-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-col--end { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dk); padding-top: 22px; }
  .hero-rail-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail-item:nth-child(4) { border-left: 0; }
  .rail-item:nth-child(n+4) { border-top: 1px solid var(--line-dk); }
}

@media (max-width: 920px) {
  .split, .position { grid-template-columns: 1fr; }
  .split-a, .position-head { position: static; }
  .cta-inner { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .related li { border-right: 0; }
  .related-item { padding-inline: 0; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .util-motto { display: none; }
  .brand-tag { display: none; }

  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(380px, 88vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 90px 0 40px;
    background: var(--navy-900);
    border-left: 1px solid var(--line-dk);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto; z-index: 190;
  }
  .nav.is-open { transform: none; }
  .nav-link { padding: 18px var(--gut); font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-link::after { display: none; }
  .nav-cta { margin: 22px var(--gut) 0; }
  .nav-toggle { position: relative; z-index: 195; }

  /* The mega-menu becomes an inline list inside the drawer. */
  .mega {
    position: static; width: auto; transform: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    background: rgba(0,0,0,0.24); box-shadow: none; border: 0;
    display: none;
  }
  .mega.is-open { display: block; }
  .mega-inner { grid-template-columns: 1fr; gap: 0; padding-block: 8px; padding-inline: 0; }
  .mega-item { padding: 12px var(--gut); }
  .mega-sum { display: none; }
  /* Keep the route to the services index reachable in the drawer, where the
     Services label itself is a disclosure rather than a link. */
  .mega-col--end { border-left: 0; border-top: 0; padding: 8px var(--gut) 14px; }
  .mega-head, .mega-blurb { display: none; }
  .has-mega:hover .mega, .has-mega:focus-within .mega { display: none; }
  .has-mega:hover .mega.is-open, .has-mega:focus-within .mega.is-open { display: block; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero-rail-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-item:nth-child(odd) { border-left: 0; }
  .rail-item:nth-child(n+3) { border-top: 1px solid var(--line-dk); }
  .hero-act .btn { flex: 1 1 100%; }
  .brand-name { font-size: 17px; letter-spacing: 0.15em; }
  .brand-mark { width: 38px; height: 38px; }
  .util-inner { justify-content: center; }
  .svc-link { grid-template-columns: 38px minmax(0, 1fr) 24px; gap: 10px; }
  .pier-name { font-size: 32px; }
  .bank-label { font-size: 20px; }
}

/* ------------------------------------------------------- motion preferences */
@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; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .bridge-figure.in .span-arches path { stroke-dashoffset: 0; }
}

/* ------------------------------------------------------------------- print */
@media print {
  .util, .masthead, .nav-toggle, .hero-media, .hero-scrim, .hero-rail,
  .pagehead-media, .pagehead-scrim, .cta-media { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band--dark, .hero, .pagehead, .foot { background: #fff !important; color: #000 !important; }
  .h-hero, .h-display, .h-section, .step-title, .lede--light { color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
