/* ==========================================================================
   Horizon Top — site styles
   Palette: navy #060B2E · royal #2A2BBF · gold #B8975A · ivory #F7F4EC
            ink #1B1F3B · mist #6B7080
   ========================================================================== */

:root {
  --navy: #060B2E;
  --navy-2: #0D1442;
  --royal: #2A2BBF;
  --gold: #B8975A;
  --gold-lt: #D4B97F;
  --gold-dk: #7A5F2E;            /* AA-safe gold-toned text on ivory/white */
  --ivory: #F7F4EC;
  --ivory-2: #EFE9DB;
  --ink: #1B1F3B;
  --mist: #6B7080;               /* 4.6:1 on white; used for secondary text */
  --mist-on-ivory: #5D6272;      /* AA on ivory */
  --white: #fff;
  --line-dark: rgba(184, 151, 90, .35);
  --line-light: rgba(27, 31, 59, .14);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 11vw, 150px);
  --header-h: 84px;

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

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  animation: page-in 250ms ease-out both;
}
body.is-leaving { opacity: 0; transition: opacity 250ms ease-in; }
body.menu-open { overflow: hidden; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
strong, b { font-weight: 500; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
  color: inherit;
}
h1 { font-size: clamp(2.75rem, 6.4vw, 5.6rem); font-weight: 300; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); font-weight: 300; }
h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); }
h4 { font-size: 1.25rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 1px; }
.on-light :focus-visible, .section--ivory :focus-visible, .section--white :focus-visible { outline-color: var(--royal); }

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

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--gold); color: var(--navy); padding: 12px 20px;
  font-weight: 500; text-decoration: none; letter-spacing: .04em;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }

/* [CONFIRM] markers — make them obvious to editors */
.confirm {
  display: inline; background: rgba(184, 151, 90, .16);
  border-bottom: 1px dashed var(--gold-dk);
  color: inherit; font-style: normal; padding: 0 .2em;
}
.section--navy .confirm, .hero .confirm { background: rgba(184, 151, 90, .2); border-color: var(--gold); }

/* ---------- Labels / eyebrow with drawn gold rule ---------- */
.label {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--sans); font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold-dk); margin: 0 0 22px;
}
.label::before {
  content: ""; width: 40px; height: 1px; background: currentColor;
  transform-origin: left center; transform: scaleX(1);
}
.section--navy .label, .hero .label, .band .label, .site-footer .label { color: var(--gold-lt); }
.label--center { justify-content: center; }
.label--center::after { content: ""; width: 40px; height: 1px; background: currentColor; transform-origin: right center; }

/* drawn-in rule animation (only when JS + motion enabled) */
.js .reveal .label::before, .js .reveal.label::before { transform: scaleX(0); transition: transform 900ms var(--ease) 200ms; }
.js .reveal .label::after, .js .reveal.label::after { transform: scaleX(0); transition: transform 900ms var(--ease) 200ms; }
.js .reveal.is-in .label::before, .js .reveal.is-in.label::before,
.js .reveal.is-in .label::after, .js .reveal.is-in.label::after { transform: scaleX(1); }

.lead {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem); line-height: 1.38; color: var(--ink);
}
.muted { color: var(--mist); }
.section--ivory .muted { color: var(--mist-on-ivory); }

/* ---------- Buttons: gold fill sweeps in ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 30px;
  font-family: var(--sans); font-size: .8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; text-decoration: none;
  border: 1px solid var(--gold); background: transparent; color: var(--ink);
  cursor: pointer; transition: color 450ms var(--ease), border-color 450ms var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold); transform: scaleX(0); transform-origin: left center;
  transition: transform 450ms var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* solid gold (primary) — sweeps to ivory */
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold::before { background: var(--ivory); }
/* on dark */
.btn--light { color: var(--ivory); border-color: var(--gold); }
.btn--light:hover, .btn--light:focus-visible { color: var(--navy); }
/* on light — navy outline */
.btn--ink { border-color: var(--ink); color: var(--ink); }
.btn--ink::before { background: var(--navy); }
.btn--ink:hover, .btn--ink:focus-visible { color: var(--ivory); border-color: var(--navy); }

.btn .arrow { width: 18px; height: 10px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em;
  text-decoration: none; color: var(--ink); padding: 6px 0;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
  transition: background-size 450ms var(--ease);
}
.link-arrow:hover, .link-arrow:focus-visible { background-size: 100% 1px; }
.link-arrow svg { width: 18px; height: 10px; transition: transform 450ms var(--ease); }
.link-arrow:hover svg, .link-arrow:focus-visible svg { transform: translateX(4px); }
.section--navy .link-arrow, .band .link-arrow { color: var(--ivory); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--ivory);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 350ms var(--ease), border-color 350ms var(--ease), box-shadow 350ms var(--ease);
}
.site-header::before { /* soft scrim keeps nav legible over bright photography */
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 11, 46, .55), rgba(6, 11, 46, 0));
  transition: opacity 350ms var(--ease);
}
.site-header.is-solid { background: var(--navy); border-bottom-color: var(--gold); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.site-header.is-solid::before { opacity: 0; }
.site-header .wrap { position: relative; height: 100%; display: flex; align-items: center; gap: 32px; max-width: 1440px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ivory); flex: none; }
.brand img { width: 62px; height: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; letter-spacing: .16em; }
.brand-sub { font-size: .625rem; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-lt); margin-top: 6px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; font-size: .8125rem; font-weight: 400; letter-spacing: .06em;
  text-decoration: none; color: var(--ivory); white-space: nowrap;
  background: none; border: 0; cursor: pointer;
}
.nav-link::after { /* underline grows from the left */
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left center;
  transition: transform 400ms var(--ease);
}
.nav-link:hover::after, .nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after, .nav-item.is-open > .nav-row .nav-link::after { transform: scaleX(1); }
.nav-row { display: flex; align-items: center; }
.sub-toggle {
  display: inline-grid; place-items: center; width: 28px; height: 36px; margin-left: -8px;
  background: none; border: 0; color: var(--gold-lt); cursor: pointer; padding: 0;
}
.sub-toggle svg { width: 10px; height: 10px; transition: transform 300ms var(--ease); }
.nav-item.is-open .sub-toggle svg { transform: rotate(180deg); }

.nav-cta { min-height: 44px; padding: 10px 22px; font-size: .75rem; white-space: nowrap; flex: none; }

/* Desktop header: keep logo, menu and consultation button on one line */
@media (min-width: 1280px) {
  .site-header .wrap { gap: 24px; }
  .nav { gap: 20px; }
  .nav-list { gap: 0; }
  .nav-link { padding: 10px 9px; letter-spacing: .04em; }
  .nav-link::after { left: 9px; right: 9px; }
  .sub-toggle { width: 24px; margin-left: -6px; }
}
@media (min-width: 1280px) and (max-width: 1499px) {
  .brand img { width: 50px; }
  .brand-name { font-size: 1.2rem; letter-spacing: .12em; }
  .nav-link { padding: 10px 7px; font-size: .78rem; letter-spacing: .02em; }
  .nav-link::after { left: 7px; right: 7px; }
  .nav-cta { padding: 10px 16px; font-size: .6875rem; }
  .nav-cta-pre { display: none; }
  .site-header .wrap { padding: 0 32px; gap: 20px; }
}
@media (min-width: 1280px) and (max-width: 1379px) {
  .nav-link { padding: 10px 6px; font-size: .75rem; letter-spacing: 0; }
  .nav-link::after { left: 6px; right: 6px; }
  .sub-toggle { width: 20px; margin-left: -4px; }
  .brand { gap: 10px; }
  .nav { gap: 14px; }
  .site-header .wrap { gap: 14px; }
  .brand img { width: 44px; }
  .brand-name { font-size: 1.1rem; letter-spacing: .1em; }
}

/* ---------- Mega menu panel ---------- */
.mega {
  position: absolute; top: calc(100% + 22px); left: 50%;
  width: min(760px, 92vw);
  transform: translate(-50%, 8px);
  background: var(--ivory); color: var(--ink);
  border-top: 1px solid var(--gold);
  box-shadow: 0 30px 60px -20px rgba(6, 11, 46, .45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 280ms var(--ease), transform 280ms var(--ease), visibility 0s linear 280ms;
}
.mega::before { /* hover bridge so the panel doesn't close crossing the gap */
  content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px;
}
.nav-item.is-open .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease), visibility 0s;
}
.mega-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 18px; }
.mega-grid a {
  display: block; padding: 18px 20px; text-decoration: none; color: var(--ink);
  border-left: 1px solid transparent; transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.mega-grid a:hover, .mega-grid a:focus-visible { background: var(--white); border-left-color: var(--gold); }
.mega-title { display: block; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; margin-bottom: 4px; }
.mega-desc { display: block; font-size: .875rem; line-height: 1.5; color: var(--mist-on-ivory); }
.mega-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 38px; background: var(--ivory-2); border-top: 1px solid var(--line-light);
  font-size: .8125rem; color: var(--mist-on-ivory);
}
.mega-strip .link-arrow { color: var(--ink); }
/* panels for right-hand items align to the item's right edge so they stay on screen */
.mega--end { left: auto; right: 0; transform: translate(0, 8px); }
.nav-item.is-open .mega--end { transform: translate(0, 0); }

/* ---------- Burger ---------- */
.burger {
  display: none; margin-left: auto; width: 48px; height: 48px; padding: 0;
  background: none; border: 1px solid var(--line-dark); cursor: pointer; position: relative; z-index: 3;
}
.burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--ivory); transition: transform 300ms var(--ease), opacity 200ms; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Mobile / tablet: full-screen menu + accordion ---------- */
@media (max-width: 1279px) {
  :root { --header-h: 74px; }
  .brand img { width: 52px; }
  .brand-name { font-size: 1.25rem; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 2;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--navy);
    background-image: linear-gradient(160deg, var(--navy) 55%, #10177a 130%);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden;
    transition: opacity 300ms var(--ease), visibility 0s linear 300ms;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease), visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid rgba(184, 151, 90, .22); }
  .nav-row { justify-content: space-between; }
  .nav-link { font-family: var(--serif); font-size: 1.75rem; letter-spacing: 0; padding: 16px 0; flex: 1; }
  .nav-link::after { left: 0; right: auto; width: 48px; bottom: 10px; }
  .sub-toggle { width: 48px; height: 48px; margin: 0; border-left: 1px solid rgba(184, 151, 90, .22); }
  .sub-toggle svg { width: 14px; height: 14px; }
  .mega {
    position: static; width: auto; transform: none; box-shadow: none; border: 0;
    background: transparent; color: var(--ivory);
    opacity: 1; visibility: visible; pointer-events: auto;
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows 350ms var(--ease);
  }
  .mega::before { display: none; }
  .mega > .mega-inner { overflow: hidden; }
  .nav-item.is-open .mega { transform: none; grid-template-rows: 1fr; }
  .mega-grid { grid-template-columns: 1fr; padding: 0 0 16px; }
  .mega-grid a { color: var(--ivory); padding: 12px 0 12px 18px; border-left: 1px solid rgba(184, 151, 90, .4); }
  .mega-grid a:hover, .mega-grid a:focus-visible { background: rgba(255, 255, 255, .04); }
  .mega-title { font-size: 1.2rem; }
  .mega-desc { color: #C3C6D4; }
  .mega-strip { background: transparent; border: 0; padding: 0 0 20px 18px; color: #C3C6D4; flex-wrap: wrap; }
  .mega-strip .link-arrow { color: var(--ivory); }
  .nav-cta { margin-top: 32px; align-self: flex-start; min-height: 52px; padding: 14px 28px; }
  /* hidden mobile panels must not be tabbable */
  .nav-item:not(.is-open) .mega a { visibility: hidden; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--ivory);
  background: var(--navy);
  padding: calc(var(--header-h) + 60px) 0 clamp(70px, 10vw, 130px);
}
.hero--inner { min-height: 62vh; min-height: 62svh; padding-bottom: clamp(56px, 7vw, 96px); }
/* Animated house photo: slow continuous zoom + pan, a soft breathing glow, and scroll parallax (JS sets --hero-shift) */
.hero-media {
  position: absolute; inset: -8% 0; z-index: -2; overflow: hidden;
  transform: translate3d(0, var(--hero-shift, 0px), 0); will-change: transform;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: 50% 60%; will-change: transform;
  animation: hero-in 1.8s cubic-bezier(.2, .7, .2, 1) both, hero-drift 28s ease-in-out 1.8s infinite alternate;
}
@keyframes hero-in { from { opacity: 0; transform: scale(1.14); } to { opacity: 1; transform: scale(1.06); } }
@keyframes hero-drift {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  50%  { transform: scale(1.12) translate3d(-1.6%, -1%, 0); }
  100% { transform: scale(1.09) translate3d(1.4%, -1.8%, 0); }
}
.hero-media::after { /* warm dusk light that slowly breathes over the house */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 45% 35% at 68% 58%, rgba(255, 196, 120, .32), transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(120, 130, 255, .18), transparent 70%);
  animation: hero-glow 9s ease-in-out infinite alternate;
}
@keyframes hero-glow { from { opacity: .35; } to { opacity: 1; } }
.hero::after { /* royal-to-navy gradient wash: the only place (with footer) the gradient is used */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(6, 11, 46, .92) 0%, rgba(6, 11, 46, .45) 45%, rgba(6, 11, 46, .35) 100%),
    linear-gradient(115deg, rgba(6, 11, 46, .85) 0%, rgba(42, 43, 191, .35) 100%);
}
.hero-content { max-width: 920px; }
.hero h1 { margin-bottom: .35em; }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 600px; color: #DADCE6; margin-bottom: 40px; }
.hero .btn-row { margin-top: 8px; }
.hero-frame { /* thin gold frame line inset into the hero */
  position: absolute; inset: calc(var(--header-h) + 18px) var(--gutter) 28px; z-index: -1;
  border: 1px solid rgba(184, 151, 90, .28); pointer-events: none;
}
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 48px;
  display: flex; align-items: center; gap: 14px; writing-mode: vertical-rl;
  font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-lt);
  text-decoration: none;
}
.hero-scroll::after { content: ""; width: 1px; height: 56px; background: var(--gold); }
.ph-tag {
  position: absolute; z-index: 2; right: 12px; top: 12px;
  font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(6, 11, 46, .78); color: var(--ivory); padding: 5px 10px;
  border: 1px dashed var(--gold);
}
.hero .ph-tag { top: auto; bottom: 12px; right: 12px; }

/* hero text fades up 14px on load */
.js .hero-anim > * { opacity: 0; transform: translateY(14px); animation: fade-up-14 900ms var(--ease) forwards; }
.js .hero-anim > *:nth-child(2) { animation-delay: 120ms; }
.js .hero-anim > *:nth-child(3) { animation-delay: 240ms; }
.js .hero-anim > *:nth-child(4) { animation-delay: 360ms; }
@keyframes fade-up-14 { to { opacity: 1; transform: none; } }

.crumbs { list-style: none; display: flex; gap: 10px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #C3C6D4; margin-bottom: 22px; }
.crumbs a { color: var(--ivory); text-decoration: none; }
.crumbs a:hover { color: var(--gold-lt); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--gold); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section) 0; position: relative; }
.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--navy .lead { color: var(--ivory); }
.section--navy p { color: #D3D6E2; }
.section--tight { padding: clamp(60px, 8vw, 100px) 0; }
.hairline { height: 1px; background: var(--line-light); border: 0; margin: 0; }

.intro { text-align: center; }
.intro .lead { max-width: 900px; margin: 0 auto 36px; }

.section-head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 80px; }
  .section-head--split p { margin-bottom: .4em; }
}
.section-head h2 { margin: 0; }

/* ---------- Service cards ---------- */
.cards { list-style: none; display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; background: var(--white); padding: var(--cp);
  display: flex; flex-direction: column; min-height: 100%;
  transition: transform 450ms var(--ease), box-shadow 450ms var(--ease);
}
.section--ivory .card { background: var(--ivory); }
.section--ivory .cards { background: rgba(27, 31, 59, .12); }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(6, 11, 46, .35); z-index: 1; }
.card { --cp: clamp(32px, 3.4vw, 48px); }
.card-media { margin: calc(-1 * var(--cp)) calc(-1 * var(--cp)) 32px; overflow: hidden; position: relative; }
.card-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 900ms var(--ease); }
.card:hover .card-media img, .card:focus-within .card-media img { transform: scale(1.03); }
.card-media ~ .card-icon { display: none; }
.service-detail h3 { margin-bottom: 18px !important; }
.service-media img { aspect-ratio: 3 / 2; }
.service-media { outline: 1px solid rgba(184, 151, 90, .5); outline-offset: 10px; margin: 10px; }
@media (prefers-reduced-motion: reduce) { .card:hover .card-media img { transform: none; } }
.card-num { font-family: var(--serif); font-size: 1rem; color: var(--gold-dk); letter-spacing: .1em; margin-bottom: 36px; display: block; }
.card-icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 30px; }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--mist); font-size: 1rem; }
.section--ivory .card p { color: var(--mist-on-ivory); }
.card .link-arrow { margin-top: auto; align-self: flex-start; }
.card--feature { background: var(--navy) !important; color: var(--ivory); }
.card--feature p { color: #C9CCDA !important; }
.card--feature .link-arrow { color: var(--ivory); }
.card--feature .card-num { color: var(--gold-lt); }

/* ---------- Why choose us (on navy) ---------- */
.why-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.why-item { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line-dark); }
.why-item svg { width: 40px; height: 40px; color: var(--gold); }
.why-item h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); margin-bottom: 6px; color: var(--ivory); }
.why-item p { margin: 0; color: #C9CCDA; font-size: 1rem; }
@media (min-width: 900px) {
  .why-item { grid-template-columns: 80px 1fr 1.2fr; align-items: center; }
  .why-item h3 { margin: 0; }
}

/* ---------- Editorial split / offset image ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: 1.15fr 1fr; }
  .split--reverse > .split-media { order: 2; }
}
.figure { position: relative; margin: 0; }
.figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--navy-2); }
.figure--landscape img { aspect-ratio: 3 / 2; }
.figure--offset { padding: 0 28px 28px 0; }
.figure--offset::before { /* subtle gold frame line, offset */
  content: ""; position: absolute; inset: 28px 0 0 28px; border: 1px solid var(--gold); z-index: 0;
}
.figure--offset img, .figure--offset .ph-tag { position: relative; z-index: 1; }
.figure--offset .ph-tag { position: absolute; }
.figure figcaption { font-size: .8125rem; color: var(--mist); margin-top: 14px; }

.full-bleed { position: relative; height: clamp(320px, 52vw, 640px); overflow: hidden; margin: 0; }
.full-bleed img { width: 100%; height: 100%; object-fit: cover; }
.full-bleed::after { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(184, 151, 90, .45); pointer-events: none; }

.prose h2 { margin-top: 1.4em; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--royal); text-underline-offset: 3px; }

/* ---------- Numbered steps ---------- */
.steps { list-style: none; counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 48px; } }
.step { counter-increment: s; padding: 32px 0; border-bottom: 1px solid var(--line-light); }
@media (min-width: 900px) { .step { border-bottom: 0; border-top: 1px solid var(--gold); } }
.step::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 300; color: var(--gold-dk); line-height: 1; margin-bottom: 20px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--mist); margin: 0; }
.section--ivory .step p { color: var(--mist-on-ivory); }

/* ---------- Values / feature list ---------- */
.feature-grid { list-style: none; display: grid; gap: 40px 56px; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .feature-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.feature { border-top: 1px solid var(--gold); padding-top: 26px; }
.feature h3 { font-size: 1.6rem; margin-bottom: 10px; }
.feature p { color: var(--mist); margin: 0; font-size: 1rem; }
.section--ivory .feature p { color: var(--mist-on-ivory); }

.service-detail { display: grid; gap: 24px; padding: clamp(44px, 5vw, 72px) 0; border-top: 1px solid var(--line-light); scroll-margin-top: calc(var(--header-h) + 16px); }
.service-detail:last-child { border-bottom: 1px solid var(--line-light); }
@media (min-width: 900px) { .service-detail { grid-template-columns: 90px 1fr 1fr; gap: 56px; align-items: start; } }
.service-detail .card-num { margin: 6px 0 0; }
.service-detail h3 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin: 0; }
.service-detail p { color: var(--mist); }
.service-detail .link-arrow { margin-top: 8px; }

/* ---------- Contact band (navy) ---------- */
.band { background: var(--navy); color: var(--ivory); padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 24px var(--gutter); border: 1px solid rgba(184, 151, 90, .25); pointer-events: none; }
.band-inner { display: grid; gap: 40px; align-items: end; position: relative; }
@media (min-width: 900px) { .band-inner { grid-template-columns: 1.4fr 1fr; } }
.band h2 { margin: 0; color: var(--ivory); }
.band p { color: #D3D6E2; }
.band-actions { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.band-contact { list-style: none; display: grid; gap: 6px; font-size: .9375rem; }
.band-contact a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(184, 151, 90, .5); }
.band-contact a:hover, .band-contact a:focus-visible { border-bottom-color: var(--gold); color: var(--gold-lt); }

/* ==========================================================================
   Careers
   ========================================================================== */
.jobs { display: grid; gap: 16px; }
.job { background: var(--white); border: 1px solid var(--line-light); transition: box-shadow 450ms var(--ease), transform 450ms var(--ease); }
.job:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(6, 11, 46, .35); }
.job-head { display: grid; gap: 12px; padding: 30px clamp(24px, 3vw, 40px); }
@media (min-width: 800px) { .job-head { grid-template-columns: 1fr auto; align-items: center; } }
.job-title { font-size: clamp(1.6rem, 2.4vw, 2rem); margin: 0; }
.job-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: var(--mist); margin-top: 6px; }
.job-meta li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); margin: 0 14px 2px 0; vertical-align: middle; }
.job-toggle {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line-light);
  padding: 10px 18px; cursor: pointer; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}
.job-toggle:hover { border-color: var(--gold); }
.job-toggle svg { width: 10px; height: 10px; transition: transform 300ms var(--ease); }
.job-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.job-body { padding: 0 clamp(24px, 3vw, 40px) 36px; border-top: 1px solid var(--line-light); }
.job-body[hidden] { display: none; }
.job-body h4 { font-family: var(--sans); font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 500; color: var(--gold-dk); margin: 28px 0 12px; }
.job-body ul { padding-left: 1.2em; color: var(--ink); }
.job-body li { margin-bottom: .35em; }
.job-body .btn { margin-top: 28px; }
.empty-state { background: var(--white); border: 1px solid var(--line-light); border-top: 1px solid var(--gold); padding: clamp(32px, 4vw, 56px); }
.empty-state h3 { margin-bottom: 10px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-shell { background: var(--white); border-top: 1px solid var(--gold); padding: clamp(28px, 4vw, 56px); box-shadow: 0 30px 60px -40px rgba(6, 11, 46, .35); }
.form { display: grid; gap: 22px; }
@media (min-width: 720px) { .form { grid-template-columns: 1fr 1fr; gap: 26px 28px; } .f--full { grid-column: 1 / -1; } }
.f { display: flex; flex-direction: column; gap: 8px; }
.f label, .f .f-label { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.f .opt { text-transform: none; letter-spacing: 0; color: var(--mist); font-weight: 400; }
.f input[type="text"], .f input[type="email"], .f input[type="tel"], .f select, .f textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid rgba(27, 31, 59, .35); background: var(--white); border-radius: 0;
  font-weight: 400; font-size: 1rem; color: var(--ink);
  transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}
.f select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231B1F3B' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px; }
.f textarea { min-height: 150px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(42, 43, 191, .18); }
.f input[type="file"] { padding: 12px; border: 1px dashed rgba(27, 31, 59, .45); background: var(--ivory); font-size: .9375rem; }
.f input[type="file"]:focus-visible { outline: 2px solid var(--royal); outline-offset: 2px; }
.f input[type="file"]::file-selector-button { font: inherit; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; background: var(--navy); color: var(--ivory); border: 0; padding: 10px 16px; margin-right: 14px; cursor: pointer; }
.f .hint { font-size: .8125rem; color: var(--mist); }
.f [aria-invalid="true"] { border-color: #B3261E !important; }
.f .err-msg { font-size: .8125rem; color: #B3261E; font-weight: 400; min-height: 0; }
.f .err-msg:empty { display: none; }
.chk { flex-direction: row; align-items: flex-start; gap: 14px; }
.chk input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--navy); flex: none; }
.chk label { text-transform: none; letter-spacing: 0; font-size: .9375rem; font-weight: 300; line-height: 1.55; }
.chk label a { color: var(--royal); }
.chk-wrap { display: flex; flex-direction: column; gap: 6px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.status { margin: 0; font-size: .9375rem; }
.status:empty { display: none; }
.status.ok, .status.err { padding: 16px 20px; width: 100%; }
.status.ok { background: #EAF4EC; color: #1E5631; border-left: 2px solid #2E7D46; }
.status.err { background: #FBECEA; color: #8C1D18; border-left: 2px solid #B3261E; }

.contact-aside { display: grid; gap: 30px; align-content: start; }
.contact-aside dl { margin: 0; display: grid; gap: 26px; }
.contact-aside dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dk); font-weight: 500; margin-bottom: 6px; }
.contact-aside dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; }
.contact-aside dd a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat; }
.contact-aside dd a:hover { color: var(--royal); }
@media (min-width: 1000px) { .contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; } }
.contact-grid > * + * { margin-top: 48px; }
@media (min-width: 1000px) { .contact-grid > * + * { margin-top: 0; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative; color: #C9CCDA;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy) 50%, #121873 85%, var(--royal) 140%);
  padding: clamp(72px, 9vw, 120px) 0 36px;
  border-top: 1px solid var(--gold);
}
.footer-top { display: grid; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px; } }
.footer-brand .brand img { width: 76px; }
.footer-brand p { margin-top: 26px; max-width: 320px; font-size: .9375rem; }
.footer-col h2 { font-family: var(--sans); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 22px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--ivory); text-decoration: none; font-size: .9375rem; background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat; transition: background-size 400ms var(--ease), color 300ms; padding-bottom: 2px; }
.footer-col a:hover, .footer-col a:focus-visible { background-size: 100% 1px; color: var(--gold-lt); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 30px; font-size: .8125rem; }
.footer-bottom a { color: var(--ivory); }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Scroll reveal: fade up 16px, 700ms ease-out, 80ms stagger
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur) ease-out, transform var(--dur) ease-out; transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* cards keep their hover lift after reveal */
.js .card.reveal.is-in:hover, .js .card.reveal.is-in:focus-within, .js .job.reveal.is-in:hover { transform: translateY(-4px); transition-delay: 0ms; transition-duration: 450ms; }

/* ==========================================================================
   Reduced motion — disable everything above
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body.is-leaving { opacity: 1; }
  .hero-media, .hero-media img { transform: none !important; }
  .hero-media img { opacity: 1 !important; }
  .js .hero-anim > *, .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .reveal .label::before, .js .reveal .label::after, .js .reveal.label::before, .js .reveal.label::after { transform: none !important; }
  .card:hover, .card:focus-within, .job:hover, .js .card.reveal.is-in:hover, .js .job.reveal.is-in:hover { transform: none !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-scroll { display: none; }
  .hero-frame { inset: calc(var(--header-h) + 10px) 12px 12px; }
  .btn-row .btn { width: 100%; }
  .mega-strip { flex-direction: column; align-items: flex-start; }
}
@media print {
  .site-header, .hero-media, .band, .site-footer { display: none; }
  .hero { min-height: 0; color: var(--ink); background: none; padding: 20px 0; }
  .hero::after { display: none; }
}
