/* ==========================================================================
   Teculix — core stylesheet
   Ivory + deep sapphire + brass editorial system.
   Tokens taken from the redesign handoff; copy and structure are our own.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Ink */
  --ink:        #0b1b3a;
  --ink-muted:  #4a4740;
  --ink-subtle: #6b6357;
  --ink-faint:  #8a8377;

  /* Sapphire */
  --sapphire:        #12356e;
  --sapphire-light:  #1b4a93;
  --sapphire-bright: #3b79d8;
  --sapphire-glow:   #4c8be8;
  --sapphire-deep:   #0a1e42;
  --sapphire-deep-2: #0d2450;
  --sapphire-deep-3: #081832;

  /* Brass */
  --brass:       #c39a55;
  --brass-text:  #a87f3c;
  --brass-light: #debe86;
  --brass-pale:  #f2e6ce;
  --brass-ink:   #3a2c12;
  --brass-ink-2: #5c4620;

  /* Ivory */
  --ivory:      #fbf9f5;
  --ivory-alt:  #f4f0e8;
  --ivory-warm: #efeae0;
  --ivory-card: #f6f2ea;
  --cream:      #f2eee5;

  --rule:      rgba(11, 27, 58, .1);
  --rule-soft: rgba(11, 27, 58, .07);
  --rule-dark: rgba(255, 255, 255, .12);

  --grad-sapphire: linear-gradient(180deg, #1b4a93, #12356e);
  --grad-tile:     linear-gradient(150deg, #3b79d8, #12356e);
  --grad-brass:    linear-gradient(180deg, #f2e6ce, #debe86);
  --grad-band:     linear-gradient(165deg, #12356e 0%, #0d2450 60%, #081832 100%);
  --grad-cta:      linear-gradient(165deg, #12356e, #0a1e42);

  --sh-card:       0 26px 50px -30px rgba(11,27,58,.4), inset 0 1px 0 #ffffff;
  --sh-card-hover: 0 40px 70px -34px rgba(11,27,58,.5), inset 0 1px 0 #ffffff;
  --sh-btn:        0 18px 34px -14px rgba(18,53,110,.8), inset 0 1px 0 rgba(255,255,255,.28);
  --sh-btn-nav:    0 10px 22px -10px rgba(18,53,110,.85), inset 0 1px 0 rgba(255,255,255,.28);
  --sh-brass:      0 18px 34px -16px rgba(222,190,134,.7), inset 0 1px 0 rgba(255,255,255,.7);
  --sh-pill:       0 8px 18px -14px rgba(11,27,58,.5);

  --display: 'Instrument Serif', ui-serif, Georgia, serif;
  --body:    'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --wrap: 1332px;
  --gut: clamp(1.5rem, 3.9vw, 3.5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --t: 180ms ease;
}

/* --------------------------------------------------------------- reset -- */

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

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

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

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.022em;
  margin: 0 0 .45em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 6.1vw, 5.5rem); line-height: .98; letter-spacing: -.025em; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 2.15vw, 1.94rem); line-height: 1.15; }
h4 { font-size: clamp(1.32rem, 1.7vw, 1.56rem); line-height: 1.2; }

p { margin: 0 0 1.1em; max-width: 68ch; }

::selection { background: var(--sapphire); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--sapphire);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------ eyebrows -- */

.eyebrow {
  display: block;
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 1.05rem;
}
.eyebrow.on-dark { color: var(--brass-light); }

.eyebrow-pill {
  display: inline-block;
  padding: .5rem .94rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rule);
  color: var(--sapphire);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px -8px rgba(11,27,58,.3);
  margin-bottom: 1.6rem;
}

/* ------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  position: relative;
}

section { padding-block: clamp(4rem, 7.6vw, 7rem); position: relative; }

.band-alt  { background: var(--ivory-alt); }
.band-dark { background: var(--grad-band); color: var(--cream); overflow: hidden; }
.band-dark h2, .band-dark h3, .band-dark h4 { color: var(--cream); }
.band-dark p, .band-dark .head p { color: rgba(242,238,229,.7); }

/* Section header: title left, supporting paragraph right. */
.head {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}
.head h2 { margin: 0; max-width: 18ch; }
.head p { margin: 0; color: var(--ink-subtle); max-width: 42ch; font-size: 1rem; line-height: 1.75; }

.head.solo { display: block; }
.head.solo p { margin-top: 1rem; }

.lede {
  font-size: clamp(1.02rem, 1.3vw, 1.19rem);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 58ch;
}

/* Decorative spheres. Never interactive, never under text. */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.orb-sapphire {
  background: radial-gradient(circle at 32% 28%, #4c8be8 0%, #1e4e9c 40%, #0d2450 76%, #081832 100%);
  box-shadow:
    0 70px 120px -40px rgba(13,36,80,.55),
    inset -30px -40px 90px rgba(0,0,0,.42),
    inset 30px 40px 70px rgba(255,255,255,.14);
}
.orb-brass {
  background: radial-gradient(circle at 34% 26%, #ebce93 0%, #c39a55 45%, #8a6631 100%);
  box-shadow:
    0 30px 50px -18px rgba(138,102,49,.55),
    inset -10px -14px 30px rgba(0,0,0,.28),
    inset 10px 12px 22px rgba(255,255,255,.4);
}
.orb-glow {
  background: radial-gradient(circle at 36% 30%, rgba(235,206,147,.26) 0%, rgba(168,127,60,.12) 45%, rgba(8,24,50,0) 75%);
  box-shadow: none;
}

/* ------------------------------------------------------ scroll reveal -- */

/* Content is hidden ONLY when the script has confirmed it can reveal it again
   (`html.reveal-ready`) and only on fine pointers. On a phone, or if the script
   fails for any reason, every word is visible from the first paint. Text that
   depends on JavaScript to become readable is a bug, not an effect. */
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  html.reveal-ready .rise {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1),
                transform .8s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--d, 0ms);
  }
  html.reveal-ready .rise.in { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------- links -- */

.tlink {
  color: var(--sapphire);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(18,53,110,.3);
  transition: color var(--t), border-color var(--t);
}
.tlink:hover { color: var(--brass-text); border-bottom-color: var(--brass-text); }

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--body);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1;
  padding: 1.02rem 1.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: filter var(--t), border-color var(--t), transform var(--t),
              box-shadow var(--t), color var(--t), background-color var(--t);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--grad-sapphire); color: #fff; box-shadow: var(--sh-btn); font-weight: 600; }
.btn-primary:hover { filter: brightness(1.12); }

.btn-ghost {
  background: #fff;
  border-color: rgba(11,27,58,.14);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--sapphire); }

.btn-brass {
  background: var(--grad-brass);
  color: var(--brass-ink);
  font-weight: 700;
  box-shadow: var(--sh-brass);
}
.btn-brass:hover { filter: brightness(1.06); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(242,238,229,.3);
  color: var(--cream);
}
.btn-outline-light:hover { border-color: var(--cream); }

.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }

/* ------------------------------------------------------------- header -- */

body.menu-open { overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11,27,58,.09);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.15rem;
}
.nav-cta { margin-left: .35rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .69rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand .glyph {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 19px;
  box-shadow: 0 9px 18px -7px rgba(18,53,110,.65);
  transition: transform .3s var(--ease);
}
.brand:hover .glyph { transform: translateY(-2px); }
.brand .i { color: var(--sapphire-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .4rem;
  list-style: none;
  /* auto on the left pushes the links across to sit against the CTA */
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links > li { position: relative; }

/* `.nav-mobile-cta` is excluded throughout: it holds a real button, and this
   selector would otherwise outrank `.btn-primary` on specificity. */
.nav-links > li:not(.nav-mobile-cta) > a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  font-family: var(--body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: .55rem .8rem;
  border-radius: 999px;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--t), background-color var(--t);
}
.nav-links > li:not(.nav-mobile-cta) > a:hover, .nav-trigger:hover,
.nav-links > li > a[aria-current="page"] { color: var(--sapphire); background: rgba(18,53,110,.06); }

.nav-trigger .caret { transition: transform .25s var(--ease); }
.nav-trigger[aria-expanded="true"] .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 286px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: .45rem;
  list-style: none;
  margin: 0;
  box-shadow: 0 26px 50px -30px rgba(11,27,58,.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav-trigger[aria-expanded="true"] + .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: block;
  padding: .72rem .85rem;
  border-radius: 12px;
  font-family: var(--body);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  width: 100%;
  text-decoration: none;
  transition: background-color var(--t), color var(--t);
}
.dropdown a:hover { background: rgba(18,53,110,.06); color: var(--sapphire); }
.dropdown .d-sub {
  display: block;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--ink-subtle);
  margin-top: .15rem;
  font-weight: 400;
}

.nav-cta { flex-shrink: 0; }
.nav-cta .btn { padding: .78rem 1.4rem; font-size: .875rem; box-shadow: var(--sh-btn-nav); }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
}

/* --------------------------------------------------------------- hero -- */

.hero {
  padding-block: clamp(3.2rem, 7.2vw, 6.5rem) clamp(3rem, 5.8vw, 5.25rem);
  background: radial-gradient(120% 90% at 88% 0%, #efeae0 0%, #fbf9f5 55%);
  overflow: hidden;
  position: relative;
}
.hero .wrap { z-index: 1; }
.hero-copy { max-width: 780px; position: relative; z-index: 1; }
.hero h1 { margin-bottom: .42em; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--sapphire); }
.hero .lede { margin-bottom: 1.9rem; }

.hero .orb-sapphire { width: 520px; height: 520px; top: -140px; right: -90px; }
.hero .orb-brass    { width: 130px; height: 130px; top: 252px;  right: 334px; }

.hero-note {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-subtle);
  font-size: .92rem;
  max-width: 48ch;
}
.hero-note strong { color: var(--sapphire); font-weight: 600; }

/* --------------------------------------------------- capability strip -- */

.cap-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(11,27,58,.09);
  border-block: 1px solid rgba(11,27,58,.09);
}
.cap-cell {
  background: var(--ivory);
  padding: 1.9rem 2.5rem;
}
.cap-cell h3 {
  font-size: 1.56rem;
  margin: 0 0 .2rem;
  letter-spacing: -.015em;
}
.cap-cell p { margin: 0; font-size: .81rem; color: var(--ink-subtle); line-height: 1.6; }

/* ------------------------------------------------------- service grid -- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.375rem;
}
.svc {
  display: block;
  padding: clamp(1.75rem, 2.9vw, 2.5rem);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f6f2ea);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--sh-card);
  text-decoration: none;
}

.svc-top { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.tile {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--grad-tile);
  flex-shrink: 0;
  box-shadow: 0 8px 16px -9px rgba(18,53,110,.8);
}
.kicker {
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-text);
}
.svc h3 { max-width: 22ch; margin-bottom: .55rem; }
.svc > p { font-size: .96rem; line-height: 1.75; color: var(--ink-muted); margin-bottom: 1.15rem; }

.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag {
  padding: .42rem .8rem;
  border-radius: 999px;
  background: rgba(18,53,110,.07);
  font-size: .78rem;
  font-weight: 500;
  color: var(--sapphire);
  line-height: 1.4;
}

/* --------------------------------------------------------- glass grid -- */

.glass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
  position: relative;
  z-index: 1;
}
.glass {
  padding: 1.875rem;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
  min-height: 168px;
}
.glass h4 { margin-bottom: .45rem; }
.glass p { font-size: .9rem; line-height: 1.7; margin: 0; color: rgba(242,238,229,.68); }

.band-dark .orb-glow { width: 460px; height: 460px; bottom: -180px; left: -120px; }

/* ------------------------------------------------------- reason cells -- */

.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 2.6vw, 2.125rem);
}
.reason .rule-bar {
  width: 46px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #12356e, #c39a55);
  margin-bottom: 1.1rem;
}
.reason h4 { margin-bottom: .45rem; }
.reason p { font-size: .9rem; line-height: 1.75; color: var(--ink-subtle); margin: 0; }

/* -------------------------------------------------------- step cards -- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.375rem;
}
.step-card {
  padding: 2.125rem 1.875rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--rule-soft);
  box-shadow: 0 24px 44px -30px rgba(11,27,58,.4), inset 0 1px 0 #ffffff;
}
.badge {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(150deg, #f2e6ce, #debe86);
  color: var(--brass-ink-2);
  font-family: var(--body);
  font-weight: 700;
  font-size: .875rem;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.75), 0 8px 16px -10px rgba(168,127,60,.7);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.step-card h4 { margin-bottom: .4rem; }
.step-card p { font-size: .9rem; line-height: 1.75; color: var(--ink-subtle); margin: 0; }

/* ------------------------------------------------------------- pills -- */

.pill-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.pill {
  padding: .8rem 1.375rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rule);
  font-size: .94rem;
  color: #2c2a25;
  box-shadow: var(--sh-pill);
  transition: border-color var(--t), color var(--t), transform var(--t);
}
.pill:hover { border-color: var(--sapphire); color: var(--sapphire); transform: translateY(-2px); }

/* --------------------------------------------------------- contact cta -- */

.cta-band {
  background: var(--grad-cta);
  color: var(--cream);
  padding-block: clamp(4.5rem, 8.4vw, 7.5rem);
  text-align: center;
  overflow: hidden;
  position: relative;
}
.cta-band .orb-glow { width: 420px; height: 420px; top: -160px; right: -100px; }
.cta-band .wrap { z-index: 1; }
.cta-band h2 {
  color: var(--cream);
  font-size: clamp(2.4rem, 4.7vw, 4.25rem);
  max-width: 16ch;
  margin: 0 auto .55em;
}
.cta-band .lede {
  color: rgba(242,238,229,.75);
  max-width: 56ch;
  margin: 0 auto 2rem;
  font-size: 1.09rem;
}
.cta-band .btn-row { justify-content: center; }
.cta-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.125rem;
  margin-top: 2.4rem;
  font-size: .86rem;
  color: rgba(242,238,229,.6);
}
.cta-lines a { text-decoration: none; transition: color var(--t); }
.cta-lines a:hover { color: var(--brass-light); }

/* ----------------------------------------------------------- editorial -- */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 2rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.15rem; margin: 0 0 1.25rem; color: var(--ink-muted); }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--brass); }
.prose p { color: var(--ink-muted); }
.prose strong { color: var(--ink); font-weight: 600; }

.page-head {
  padding-block: clamp(2.8rem, 5.4vw, 4.4rem) clamp(2.4rem, 4vw, 3.4rem);
  /* No bottom rule. The wash behind the header is close enough to the page
     colour that a hairline reads as a stray line rather than a division. */
  background: radial-gradient(120% 90% at 88% 0%, #efeae0 0%, #fbf9f5 58%);
}
.page-head h1 { max-width: 17ch; }
.crumb { font-size: .84rem; color: var(--ink-subtle); margin-bottom: 1.3rem; }
.crumb a { text-decoration: none; color: var(--ink-muted); }
.crumb a:hover { color: var(--sapphire); }
.crumb span { margin-inline: .5rem; opacity: .45; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.4vw, 4rem);
  align-items: start;
}
.aside {
  position: sticky;
  top: 104px;
  background: linear-gradient(180deg, #ffffff, #f6f2ea);
  border: 1px solid var(--rule-soft);
  border-radius: 20px;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  box-shadow: var(--sh-card);
}
.aside h4 { margin-bottom: .5rem; }
.aside p { font-size: .92rem; color: var(--ink-subtle); }
.aside ul { list-style: none; padding: 0; margin: 0 0 1.3rem; }
.aside li {
  padding: .58rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: .91rem;
  color: var(--ink-muted);
}
.aside li:last-child { border-bottom: 0; }
.aside .btn { width: 100%; }

/* --------------------------------------------------------------- form -- */

.form-card {
  background: linear-gradient(180deg, #ffffff, #f6f2ea);
  border: 1px solid var(--rule-soft);
  border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  box-shadow: var(--sh-card);
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: .45rem;
  color: var(--ink);
}
.field .hint { font-weight: 400; color: var(--ink-subtle); margin-left: .3rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: .97rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: .85rem 1rem;
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.65; }
.field input::placeholder, .field textarea::placeholder { color: #a49d90; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sapphire);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18,53,110,.12);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6357' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.form-foot {
  margin-top: 1.5rem;
  font-size: .83rem;
  color: var(--ink-subtle);
  max-width: 52ch;
}

/* --------------------------------------------------------------- misc -- */

.contact-lines { list-style: none; padding: 0; margin: 0; }
.contact-lines li { padding: .9rem 0; border-bottom: 1px solid var(--rule-soft); }
.contact-lines li:last-child { border-bottom: 0; }
.contact-lines .k {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: .2rem;
}
.contact-lines .v { font-size: 1rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.contact-lines a.v:hover { color: var(--sapphire); }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.3rem 2.5rem 1.3rem 0;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.3;
  position: relative;
  transition: color var(--t);
}
.faq summary:hover { color: var(--sapphire); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute; right: .5rem; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .a { padding: 0 2.5rem 1.4rem 0; color: var(--ink-subtle); font-size: .95rem; }
.faq .a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--ivory-alt);
  padding-block: 4rem 1.6rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(1.8rem, 3.6vw, 3rem);
  padding-bottom: 2.6rem;
}
.foot-about p {
  color: var(--ink-subtle);
  font-size: .875rem;
  line-height: 1.75;
  max-width: 34ch;
  margin: 1rem 0 1.3rem;
}
.foot-grid h5 {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1rem;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .6rem; }
.foot-grid a {
  color: var(--ink-subtle);
  text-decoration: none;
  font-size: .875rem;
  transition: color var(--t);
}
.foot-grid a:hover { color: var(--sapphire); }

.socials { display: flex; gap: .6rem; }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-subtle);
  transition: color var(--t), border-color var(--t), transform var(--t);
}
.socials a:hover { color: var(--sapphire); border-color: var(--sapphire); transform: translateY(-2px); }

.foot-base {
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--ink-faint);
}
.foot-base a { color: var(--ink-faint); text-decoration: none; }
.foot-base a:hover { color: var(--sapphire); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 1.4rem; }

.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 28px -10px rgba(37,211,102,.65);
  transition: transform var(--t);
}
.wa-float:hover { transform: translateY(-3px); }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1100px) {
  .cap-strip { grid-template-columns: repeat(2, 1fr); }
  .glass-grid { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .aside { position: static; }
  .hero .orb-sapphire { width: 380px; height: 380px; top: -120px; right: -110px; }
  .hero .orb-brass { display: none; }
}

@media (max-width: 900px) {
  .head { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  /* The links are absolutely positioned on mobile, so they leave the flex flow
     and no longer push anything right. The burger takes over that job. */
  .burger { display: inline-flex; margin-left: auto; }
  .nav-cta { display: none; }

  /* Make the header itself the containing block so the panel can be anchored
     to the bar's real height rather than a guessed pixel offset. */
  .site-header .wrap { position: static; }

  /* A full-height sheet rather than a short dropdown, so page content never
     shows beneath it. Two identical CTAs stacked a few pixels apart read as a
     duplicate even when only one is in the menu. */
  /* Absolute, not fixed: the header carries `backdrop-filter`, which makes it
     a containing block for fixed descendants — a fixed sheet would size itself
     against the 82px bar instead of the viewport. Absolute against the header
     with an explicit dvh height sidesteps that entirely. */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--bar, 82px));
    margin: 0;                 /* cancels the desktop margin-left:auto */
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ivory);
    padding: 1.25rem var(--gut) calc(1.5rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    display: none;
  }
  .nav-links.open { display: flex; }

  /* Pinned to the base of the sheet. */
  /* Sits directly under the links. With only five items, pinning it to the
     very bottom of a tall screen would strand it below a large void. */
  .nav-mobile-cta { padding-top: 1.6rem; }
  /* The CTA is excluded: it is a button, not a nav row, and the plain
     `.nav-links a` selector would otherwise outrank `.btn-primary`. */
  .nav-links > li:not(.nav-mobile-cta) > a,
  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: .95rem .2rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--rule-soft);
    border-radius: 0;
  }
  .nav-links > li:not(.nav-mobile-cta) > a:hover,
  .nav-trigger:hover { background: none; color: var(--sapphire); }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: none; border: 0;
    padding: 0 0 .5rem .9rem;
    display: none;
  }
  .nav-trigger[aria-expanded="true"] + .dropdown { display: block; }
  .dropdown a { border-bottom: 0; padding: .68rem .2rem; }
  .dropdown a:hover { background: none; }
  .nav-mobile-cta { display: block; }
  .nav-mobile-cta .btn { width: 100%; }
}

@media (min-width: 861px) { .nav-mobile-cta { display: none; } }

@media (max-width: 680px) {
  .cap-strip { grid-template-columns: repeat(2, 1fr); }
  .cap-cell { padding: 1.15rem 1.4rem; }
  .cap-cell h3 { font-size: 1.25rem; }
  .glass-grid { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; align-items: flex-start; }
  .btn-row .btn { width: 100%; border-radius: 14px; }
  .cta-lines { flex-direction: column; gap: .7rem; }
  .hero .orb-sapphire { width: 172px; height: 172px; top: -70px; right: -60px; }
  .wa-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================================
   Feather touch
   Everything responds to the lightest input: cursor proximity, hover, press.
   All of it is pointer-and-motion gated, so touch devices and anyone who has
   asked for reduced motion get the plain, instant version.
   ========================================================================== */

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {

  /* -- Buttons: a slow swell, and a sheen that follows the cursor inside the
     shape. Nothing moves horizontally, so a button can never drift into its
     neighbour the way a magnetic pull does. --------------------------------- */
  .btn {
    position: relative;
    overflow: hidden;
    transition: transform .55s cubic-bezier(.16, 1, .3, 1),
                box-shadow .55s cubic-bezier(.16, 1, .3, 1),
                filter var(--t), border-color var(--t), color var(--t);
  }
  .btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s var(--ease);
    background: radial-gradient(180px circle at var(--bx, 50%) var(--by, 50%),
                rgba(255, 255, 255, .22), transparent 60%);
  }
  .btn-ghost::before, .btn-outline-light::before {
    background: radial-gradient(180px circle at var(--bx, 50%) var(--by, 50%),
                rgba(18, 53, 110, .09), transparent 60%);
  }
  .btn:hover::before { opacity: 1; }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { box-shadow: 0 24px 42px -18px rgba(18,53,110,.85), inset 0 1px 0 rgba(255,255,255,.28); }
  .btn-brass:hover { box-shadow: 0 24px 42px -18px rgba(222,190,134,.8), inset 0 1px 0 rgba(255,255,255,.7); }

  /* -- Cards tilt a few degrees toward the cursor and catch a sheen. ------- */
  .svc, .step-card, .glass {
    transform-style: preserve-3d;
    transition: box-shadow .55s cubic-bezier(.16, 1, .3, 1);
    will-change: transform;
  }
  .svc.tilting, .step-card.tilting, .glass.tilting { transition: box-shadow .4s var(--ease); }
  .svc {
    transform: perspective(900px)
               rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
               translateY(var(--lift, 0px));
  }
  .svc:hover { box-shadow: var(--sh-card-hover); }
  .step-card, .glass {
    transform: perspective(900px)
               rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
               translateY(var(--lift, 0px));
  }

  /* The sheen follows the pointer across the surface. */
  .svc, .step-card, .glass { position: relative; overflow: hidden; }
  .svc::after, .step-card::after, .glass::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .45s var(--ease);
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
                rgba(18, 53, 110, .07), transparent 62%);
  }
  .glass::after {
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%),
                rgba(255, 255, 255, .09), transparent 62%);
  }
  .svc:hover::after, .step-card:hover::after, .glass:hover::after { opacity: 1; }

  /* Card contents sit slightly above the surface as it tilts. */
  .svc > *, .step-card > *, .glass > * { transform: translateZ(6px); }

  /* -- Links: an underline that draws from the side you approach from. ---- */
  .tlink, .foot-grid a, .cta-lines a, .crumb a {
    position: relative;
    border-bottom-color: transparent !important;
  }
  .tlink::after, .foot-grid a::after, .cta-lines a::after, .crumb a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .38s cubic-bezier(.16,1,.3,1);
  }
  .tlink:hover::after, .foot-grid a:hover::after,
  .cta-lines a:hover::after, .crumb a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  /* -- Pills and social icons answer immediately. ------------------------- */
  .pill, .socials a {
    transition: transform .42s cubic-bezier(.16,1,.3,1),
                border-color var(--t), color var(--t), box-shadow var(--t);
  }
  .pill:hover { transform: translateY(-3px) scale(1.015); }
  .socials a:hover { transform: translateY(-3px) scale(1.06); }

  /* -- Hero orbs drift a little with the cursor. -------------------------- */
  .hero .orb {
    transition: transform .9s cubic-bezier(.16, 1, .3, 1);
    transform: translate3d(var(--ox, 0px), var(--oy, 0px), 0);
  }

  /* -- Form fields rise on focus. ----------------------------------------- */
  .field input, .field select, .field textarea {
    transition: border-color var(--t), box-shadow .32s var(--ease),
                background-color var(--t), transform .32s cubic-bezier(.16,1,.3,1);
  }
  .field input:focus, .field select:focus, .field textarea:focus {
    transform: translateY(-1px);
  }

  /* -- FAQ rows shift a touch as the pointer crosses them. ---------------- */
  .faq summary { transition: color var(--t), padding-left .38s cubic-bezier(.16,1,.3,1); }
  .faq summary:hover { padding-left: .55rem; }
}

/* Press feedback is useful on touch too, so it lives outside the query. */
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: scale(.975); transition: transform .09s ease; }
  .svc:active { transform: scale(.995); transition: transform .09s ease; }
}

/* Nav glide — desktop bar only. Scoped away from the mobile panel so its
   `position: relative` cannot override the dropdown's absolute placement. */
@media (min-width: 861px) and (hover: hover) and (pointer: fine)
   and (prefers-reduced-motion: no-preference) {
  .nav-links { position: relative; }
  .nav-glide {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    border-radius: 999px;
    background: rgba(18, 53, 110, .07);
    opacity: 0;
    pointer-events: none;
    transform: translateX(var(--gx, 0px));
    width: var(--gw, 0px);
    transition: transform .42s cubic-bezier(.16,1,.3,1),
                width .42s cubic-bezier(.16,1,.3,1),
                opacity .28s var(--ease);
    z-index: -1;
  }
  .nav-links.glowing .nav-glide { opacity: 1; }
  .nav-links a:hover, .nav-trigger:hover { background: none; }
}

/* The glide element is injected by script; hide it if it ever renders on a
   narrow viewport. */
@media (max-width: 860px) { .nav-glide { display: none; } }
