﻿/* =================================================================
   Ascend Title — Landing Page
   ================================================================= */

@font-face {
  font-family: 'Larken';
  src: url('../Logo/Fonts/headline.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Novia';
  src: url('../Logo/Fonts/logotype.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: #06192b;
  --navy-800: #0e293e;
  --navy-700: #153452;
  --navy-600: #1c4063;
  --navy-500: #234e78;
  --navy-400: #2b5b8a;
  --navy-300: #4477a9;

  --blue-mid: #234e78;
  --blue-deep: #0e293e;
  --silver: #c9d6e5;
  --silver-light: #e6ecf2;
  --silver-dark: #8fa3bb;
  --silver-grad: linear-gradient(120deg, var(--silver-dark) 0%, var(--silver-light) 45%, #fff 55%, var(--silver) 100%);
  --silver-hairline: linear-gradient(90deg, transparent, var(--silver) 20%, var(--silver-dark) 50%, var(--silver) 80%, transparent);

  --ink: #0e293e;
  --ink-80: #2a3f5f;
  --ink-60: #5d6f89;
  --ink-40: #94a3b8;

  --paper: #ffffff;
  --paper-warm: #f5f4f0;
  --paper-gray: #efefec;
  --line: rgba(14, 41, 62, 0.12);
  --line-light: rgba(14, 41, 62, 0.06);
  --line-white: rgba(255, 255, 255, 0.14);

  --serif: 'Larken', 'Fraunces', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --logotype: 'Novia', 'Larken', serif;

  --max-w: 1280px;
  --pad-x: clamp(24px, 5vw, 80px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

/* -----------------------------------------------------------------
   Reset / base
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Scroll-snap intentionally disabled on services — the JS-driven service
   highlighting still aligns visuals to scroll position, but free scrolling
   feels smoother than browser snap (which can grab momentum mid-flight). */
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.005em;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Eyebrow (section label) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-80);
  margin-bottom: 28px;
}
.eyebrow-dash {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--silver-hairline);
  opacity: 0.9;
}
.eyebrow-light { color: rgba(255,255,255,0.82); }


/* -----------------------------------------------------------------
   Reusable arrow
   ----------------------------------------------------------------- */
.arrow-ic {
  width: 22px;
  height: 10px;
  flex-shrink: 0;
  display: inline-block;
}

/* -----------------------------------------------------------------
   Chevron watermarks
   ----------------------------------------------------------------- */
.chevron-watermark {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  z-index: 0;
}
.chevron-hero {
  right: -10%;
  bottom: -30%;
  width: 95vh;
  height: 95vh;
  max-width: 1000px;
  max-height: 1000px;
}
.chevron-uw {
  left: -10%;
  top: 5%;
  width: 60vh;
  height: 60vh;
  opacity: 0.05;
}
.chevron-cta {
  right: -8%;
  top: -20%;
  width: 80vh;
  height: 80vh;
  opacity: 0.05;
}

/* -----------------------------------------------------------------
   Custom cursor
   ----------------------------------------------------------------- */
.cursor, .cursor-dot {
  display: none !important;
}
.cursor {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.3s ease;
}
.cursor-dot {
  width: 4px; height: 4px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
body.cursor-ready .cursor,
body.cursor-ready .cursor-dot { opacity: 1; }
body.cursor-hover .cursor {
  width: 64px;
  height: 64px;
  border-color: rgba(255,255,255,0.9);
}
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

/* -----------------------------------------------------------------
   Scroll cursor — big white disk with "SCROLL" text
   Shows only when hovering the hero.
   ----------------------------------------------------------------- */
.scroll-cursor-wrap {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
}
.scroll-cursor {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  color: #10293D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s var(--ease-expo);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.scroll-cursor-wrap.is-visible .scroll-cursor {
  transform: translate(-50%, -50%) scale(1);
}
/* Hide the default small cursor when the scroll cursor is out */
body.has-scroll-cursor .cursor,
body.has-scroll-cursor .cursor-dot { opacity: 0 !important; }

@media (hover: none), (pointer: coarse) {
  .scroll-cursor-wrap { display: none; }
}

/* -----------------------------------------------------------------
   BUTTON — fixed width, smooth label shift + arrow crossfade
   ----------------------------------------------------------------- */
.btn {
  --btn-fg: #fff;
  --btn-bd: rgba(255,255,255,0.5);
  --btn-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --btn-dur: 0.6s;
  --btn-pad-y: 16px;
  --btn-pad-short: 26px;
  --btn-pad-long: 58px;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-pad-y) var(--btn-pad-long) var(--btn-pad-y) var(--btn-pad-short);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: transparent;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: padding var(--btn-dur) var(--btn-ease),
              border-color var(--btn-dur) var(--btn-ease);
}
.btn:hover {
  padding-left: var(--btn-pad-long);
  padding-right: var(--btn-pad-short);
  border-color: var(--btn-fg);
}

.btn-label {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
  z-index: 1;
}

/* Arrows are absolute so they never influence button width */
.btn-arrow {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 10px;
  overflow: hidden;
  transform: translateY(-50%);
  pointer-events: none;
}
.btn-arrow-right { right: 22px; }
.btn-arrow-left  { left: 22px; }
.btn-arrow .arrow-ic {
  width: 22px;
  height: 10px;
  display: block;
  transition: transform var(--btn-dur) var(--btn-ease);
}
/* Resting: right arrow visible; left arrow parked off-screen left */
.btn-arrow-right .arrow-ic { transform: translateX(0); }
.btn-arrow-left  .arrow-ic { transform: translateX(-140%); }
/* Hover: right exits right, left comes in from left — SIMULTANEOUSLY for smooth flow */
.btn:hover .btn-arrow-right .arrow-ic { transform: translateX(140%); }
.btn:hover .btn-arrow-left  .arrow-ic { transform: translateX(0); }

/* Variants — border + text color, no fill swap */
.btn-ghost   { --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.45); }
.btn-outline { --btn-fg: var(--navy-800); --btn-bd: rgba(14,41,62,0.22); }
.btn-outline.btn-dark { --btn-bd: rgba(14,41,62,0.22); }
.btn-sm {
  --btn-pad-y: 12px;
  --btn-pad-short: 22px;
  --btn-pad-long: 50px;
  font-size: 11px;
}
.btn-sm .btn-arrow-right { right: 18px; }
.btn-sm .btn-arrow-left  { left: 18px; }

/* -----------------------------------------------------------------
   Nav — absolutely positioned over the hero, fully transparent
   ----------------------------------------------------------------- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 26px var(--pad-x);
  background: transparent !important;
  pointer-events: auto;
}
.nav-inner { background: transparent; }
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  gap: 40px;
}
.nav-links { justify-self: center; }
.menu-btn { justify-self: end; }
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}
.logo:hover { opacity: 0.85; }
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav-link {
  position: relative;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  padding: 6px 0;
  transition: color 0.4s var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: #fff;
  transition: width 0.55s var(--ease-expo);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Hamburger — icon only, transparent container */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.menu-btn:hover {
  opacity: 0.75;
}
.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;   /* right-align the lines */
  gap: 6px;
  width: 24px;
  height: 20px;
}
.menu-icon span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: width 0.4s var(--ease-out);
}
.menu-icon span:nth-child(1) { width: 100%; }
.menu-icon span:nth-child(2) { width: 70%; }
.menu-icon span:nth-child(3) { width: 45%; }
.menu-btn:hover .menu-icon span { width: 100%; }

/* -----------------------------------------------------------------
   Side Drawer
   ----------------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.7s;
}
.drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 25, 43, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border: none;
  cursor: pointer;
  transition: background 0.6s var(--ease-out), backdrop-filter 0.6s var(--ease-out);
  padding: 0;
}
.drawer.is-open .drawer-backdrop {
  background: rgba(6, 25, 43, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  /* Content area + slant + small safety buffer */
  width: calc(300px + 22vh);
  max-width: 94vw;
  height: 100%;
  background: #2B4E75;
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.75s var(--ease-expo);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Slanted left edge */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22vh 100%);
}
.drawer.is-open .drawer-panel { transform: translateX(0); }

/* Slanted watermark echoing the hero shape and the drawer's slanted left edge */
.drawer-watermark {
  position: absolute;
  inset: 0;
  background: #10293D;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  /* Same slant as the drawer's clip-path, flush with the panel's left edge */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22vh 100%);
}

.drawer-top {
  position: relative;
  z-index: 2;
  width: 460px;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 40px 40px 0 0;
}
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.4s var(--ease-out), color 0.3s, border-color 0.3s;
}
.drawer-close:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.close-x {
  position: relative;
  width: 20px; height: 20px;
  display: inline-block;
  flex-shrink: 0;
}
.close-x span {
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 1.2px;
  background: currentColor;
}
.close-x span:first-child  { transform: translate(-50%, -50%) rotate(45deg); }
.close-x span:last-child   { transform: translate(-50%, -50%) rotate(-45deg); }

.drawer-body {
  position: relative;
  z-index: 2;
  width: 460px;
  margin-left: auto;
  padding: 40px 40px 40px 0;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 44px;
  text-align: right;
}
.drawer-body .drawer-title,
.drawer-body .drawer-contacts,
.drawer-body .drawer-value,
.drawer-body .drawer-value-static {
  text-align: right;
}
.drawer-contacts li {
  position: relative;
  align-self: stretch;
  text-align: right;
}
.drawer-value { justify-content: flex-end; }
.drawer-title {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.drawer-title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--silver) 10%, #fff 60%, var(--silver) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.drawer-contacts {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.drawer-contacts li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.drawer-value {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: #fff;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: block;
  transition: color 0.3s;
}
.drawer-link-text {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.drawer-link-text::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: right;
  transform: scaleX(1);
}
a.drawer-value:hover .drawer-link-text::after {
  animation: underline-sweep 0.75s var(--ease-expo);
}
/* Arrow absolutely positioned on the LEFT of each link row, out of the text flow */
a.drawer-value .arrow-ic {
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 10px;
  transform: translateY(-50%);
  opacity: 0;
  color: var(--silver);
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-expo);
  pointer-events: none;
}
a.drawer-value:hover { color: var(--silver); }
.drawer-contacts li:hover a.drawer-value .arrow-ic {
  opacity: 1;
  transform: translate(6px, -50%);
}
.drawer-value-static {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0;
}

.drawer-foot {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.drawer-mini {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.drawer-socials {
  display: flex;
  gap: 18px;
}
.drawer-socials a {
  position: relative;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s;
}
.drawer-socials a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  height: 1px; width: 0;
  background: var(--silver);
  transition: width 0.4s var(--ease-expo);
}
.drawer-socials a:hover { color: #fff; }
.drawer-socials a:hover::after { width: 100%; }

/* Stagger reveal when drawer opens */
.drawer.is-open .drawer-title,
.drawer.is-open .drawer-contacts li,
.drawer.is-open .drawer-foot {
  opacity: 1;
  transform: translateY(0);
}
.drawer.is-open .drawer-title     { transition-delay: 0.35s; }
.drawer.is-open .drawer-contacts li:nth-child(1) { transition-delay: 0.45s; }
.drawer.is-open .drawer-contacts li:nth-child(2) { transition-delay: 0.5s; }
.drawer.is-open .drawer-contacts li:nth-child(3) { transition-delay: 0.55s; }
.drawer.is-open .drawer-contacts li:nth-child(4) { transition-delay: 0.6s; }
.drawer.is-open .drawer-foot      { transition-delay: 0.7s; }

/* Mobile-only nav inside the drawer (top nav-links are hidden <=960px) */
.drawer-nav { display: none; }
.drawer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: stretch;
  text-align: right;
}
.drawer-nav a {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
  display: inline-block;
  padding: 2px 0;
  position: relative;
  transition: color 0.3s;
}
.drawer-nav a::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--silver);
  transition: width 0.4s var(--ease-expo);
}
.drawer-nav a:hover { color: var(--silver); }
.drawer-nav a:hover::after { width: 100%; }
.drawer.is-open .drawer-nav li {
  opacity: 1;
  transform: translateY(0);
}
.drawer-nav li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.drawer.is-open .drawer-nav li:nth-child(1) { transition-delay: 0.40s; }
.drawer.is-open .drawer-nav li:nth-child(2) { transition-delay: 0.43s; }
.drawer.is-open .drawer-nav li:nth-child(3) { transition-delay: 0.46s; }
.drawer.is-open .drawer-nav li:nth-child(4) { transition-delay: 0.49s; }
.drawer.is-open .drawer-nav li:nth-child(5) { transition-delay: 0.52s; }
.drawer.is-open .drawer-nav li:nth-child(6) { transition-delay: 0.55s; }
.drawer.is-open .drawer-nav li:nth-child(7) { transition-delay: 0.58s; }

/* Lock page scroll when drawer open */
body.drawer-open { overflow: hidden; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { padding: 16px 0 16px clamp(16px, 4vw, 22px); }
  .nav-inner { grid-template-columns: auto auto; gap: 0; }
  .menu-label { display: none; }
  .menu-btn { margin-left: auto; margin-right: 0; padding-right: 12px; }
  .drawer-panel { width: 100%; clip-path: none; }
  .drawer-top { width: 100%; margin-left: 0; padding: 16px 22px 0; }
  .drawer-body {
    width: 100%;
    margin-left: 0;
    padding: 8px 22px 24px;
    gap: 22px;
    justify-content: flex-start;
  }
  /* Drawer title — collapse 3 lines to 2 by hiding the "deal." break */
  .drawer-title { font-size: clamp(34px, 9vw, 44px); line-height: 1.05; }
  .drawer-br-deal { display: none; }
  /* Hide physical addresses on mobile to keep drawer compact */
  .drawer-contacts li:nth-child(3),
  .drawer-contacts li:nth-child(4) { display: none; }
}

/* -----------------------------------------------------------------
   HERO — Scroll-Morph Parallelogram
   ----------------------------------------------------------------- */
.hero {
  position: relative;
  height: 280vh;
  background: #2B4E75;
  isolation: isolate;
}
.hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #2B4E75;
  isolation: isolate;
}

/* Solid navy base layer */
.hero-navy {
  position: absolute;
  inset: 0;
  background: #2B4E75;
  z-index: 0;
}

/* Image layer, fixed in place, clipped to a growing parallelogram.
   As --s grows, more of the image is revealed. */
.hero-image {
  --s: 1;
  position: absolute;
  inset: 0;
  background: url('../background.jpg') center / cover no-repeat;
  background-color: #10293D;
  z-index: 1;
  /* Parallelogram, forward-slash slant, centered, grows with --s */
  clip-path: polygon(
    calc(50% - 2.5vw * var(--s) - 11.7vh * var(--s)) calc(50% - 29vh * var(--s)),
    calc(50% + 2.5vw * var(--s) - 11.7vh * var(--s)) calc(50% - 29vh * var(--s)),
    calc(50% + 2.5vw * var(--s) + 11.7vh * var(--s)) calc(50% + 29vh * var(--s)),
    calc(50% - 2.5vw * var(--s) + 11.7vh * var(--s)) calc(50% + 29vh * var(--s))
  );
  will-change: clip-path;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 40px var(--pad-x) 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 60px;
  align-items: center;
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 9.2vw, 150px);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0;
  color: #fff;
  mix-blend-mode: difference;
}
.hero-word { display: inline-block; }
.hero-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(6px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i) * 28ms + 150ms);
  will-change: opacity, transform, filter;
}
.hero-title.show .hero-char {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  align-self: center;
  padding-top: 8vh; /* nudges paragraph + button to middle-vertical of title */
}
.hero-sub {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  max-width: 300px;
  margin: 0;
  animation: hero-soft-in 1.1s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-content .btn {
  animation: hero-soft-in 1.1s 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: padding var(--btn-dur) var(--btn-ease),
              border-color var(--btn-dur) var(--btn-ease);
}
@keyframes hero-soft-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 100px var(--pad-x) 60px;
  }
  .hero-side { padding-top: 0; }
}

@keyframes slow-drift {
  0%   { transform: translate(0, 0) scale(1.04); }
  100% { transform: translate(-1%, -2%) scale(1.08); }
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

@media (max-width: 960px) {
  .hero { height: 240vh; }
  .hero-shape { width: 12vw; height: 55vh; }
  .hero-title { font-size: clamp(48px, 13vw, 90px); }
}

/* -----------------------------------------------------------------
   ABOUT
   ----------------------------------------------------------------- */
.about {
  padding: clamp(120px, 18vh, 220px) 0 20px;
  background: var(--paper);
  position: relative;
}
.about-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.1vw, 46px);
  line-height: 1.28;
  font-weight: 400;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: -0.015em;
  color: rgba(14, 41, 62, 0.08);
}
[data-split-fill] .word {
  display: inline-block;
  white-space: nowrap;
}
[data-split-fill] .char {
  display: inline-block;
  color: rgba(14, 41, 62, 0.15);
  transition: color 0.2s ease;
}
[data-split-fill] .char.filled {
  color: var(--ink);
}

/* -----------------------------------------------------------------
   SERVICES
   ----------------------------------------------------------------- */
.services {
  padding: 40px 0 clamp(100px, 14vh, 140px);
  background: var(--paper);
}
.service-list {
  border-top: 1px solid var(--line);
}
.service-row {
  position: relative;
  display: block;
  padding: 36px 80px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: center;
  overflow: hidden;
}
.service-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy-800);
  clip-path: polygon(45% 0, 45% 0, 55% 100%, 55% 100%);
  transition: clip-path 0.8s var(--ease-expo);
  z-index: 0;
}
.service-row > * { position: relative; z-index: 1; transition: color 0.5s var(--ease-out); }
.service-row:hover::before {
  clip-path: polygon(-20% 0, 110% 0, 120% 100%, -10% 100%);
}
.service-row:hover > * { color: #fff; }
.service-row:hover .service-title { color: #fff; }
.service-row:hover .service-desc { color: rgba(255,255,255,0.82); }
.service-row:hover .service-arrow { transform: translate(8px, -50%); opacity: 1; color: #fff; }

.service-num { display: none; }
.service-body { max-width: none; }
.service-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  margin-bottom: 0;
  letter-spacing: -0.018em;
  line-height: 1.15;
  color: var(--navy-300);
  transition: color 0.5s var(--ease-out);
}
.service-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-60);
  margin: 14px auto 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.7s var(--ease-out), opacity 0.4s ease, margin-top 0.5s var(--ease-out);
  max-width: 640px;
}
.service-row:hover .service-desc {
  max-height: 260px;
  opacity: 1;
}
.service-arrow {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translate(0, -50%);
  display: inline-flex;
  color: var(--ink-40);
  opacity: 0.5;
  transition: transform 0.6s var(--ease-out), opacity 0.4s ease, color 0.5s var(--ease-out);
  z-index: 1;
}

.services-cta {
  margin-top: 80px;
  text-align: center;
}

/* -----------------------------------------------------------------
   Angular section transitions
   ----------------------------------------------------------------- */
.angle-top {
  position: relative;
  margin-top: 0;
  padding-top: calc(clamp(120px, 18vh, 200px) + 60px) !important;
}

/* -----------------------------------------------------------------
   UNDERWRITERS — marquee of names with a center circle overlay
   ----------------------------------------------------------------- */
.underwriters {
  position: relative;
  background: var(--paper);
  overflow: hidden;
  padding: clamp(40px, 6vh, 80px) 0 clamp(60px, 8vh, 100px);
  isolation: isolate;
  min-height: 0;
  display: flex;
  align-items: center;
}
.underwriters > .uw-marquee { width: 100%; }
.uw-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.uw-marquee .marquee-track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  align-items: center;
  animation: marquee 12s linear infinite;
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.025em;
  padding: 40px 0;
}
.uw-dot {
  color: var(--ink-40);
  font-size: 0.4em;
}
.uw-slash {
  display: inline-block;
  width: 10px;
  height: 0.95em;
  background: var(--navy-300);
  transform: skewX(-22deg);
  flex-shrink: 0;
}
.uw-logo {
  height: clamp(40px, 5vw, 72px);
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

/* Centered circle overlaying the marquee */
.uw-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  --mx: 0px;
  --my: 0px;
  transform: translate(calc(-50% + var(--mx)), calc(-50% + var(--my)));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  width: clamp(240px, 28vw, 360px);
  height: clamp(240px, 28vw, 360px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10%;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: none;
  box-shadow: 0 20px 60px -20px rgba(14, 41, 62, 0.2);
  z-index: 2;
}
.uw-text {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.uw-pill {
  display: inline;
  padding: 0;
  background: transparent;
  color: inherit;
  border-radius: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
  vertical-align: baseline;
  margin: 0 2px;
}

/* -----------------------------------------------------------------
   SERVICES — ALT (sticky stacked cards)
   ----------------------------------------------------------------- */
.services-stack {
  padding: clamp(20px, 3vh, 40px) 0 clamp(120px, 18vh, 200px);
  background: var(--paper);
  position: relative;
}
.services-stack .container { max-width: 1180px; }
.stack-list {
  position: relative;
  display: flex;
  flex-direction: column;
}
.stack-card {
  position: sticky;
  top: calc(14vh + var(--i, 0) * 22px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-radius: 0;
  padding: clamp(36px, 4.5vw, 64px);
  margin-bottom: 28px;
  min-height: clamp(260px, 36vh, 360px);
  box-shadow:
    0 1px 2px rgba(6, 25, 43, 0.04),
    0 8px 16px -8px rgba(6, 25, 43, 0.08),
    0 40px 80px -30px rgba(6, 25, 43, 0.22);
  border: 1px solid rgba(6, 25, 43, 0.04);
  transform: skewX(0deg);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.4s var(--ease-out),
    background 0.05s linear,
    color 0.05s linear,
    border-color 0.05s linear,
    box-shadow 0.3s var(--ease-out);
  will-change: transform;
}
/* Hover — subtle lift + arrow nudge. `translate` longhand composes with
   the JS-driven `transform: scale(...)` on .stack-card without conflict. */
.stack-card:hover {
  translate: 0 -4px;
  box-shadow:
    0 1px 2px rgba(6, 25, 43, 0.06),
    0 14px 28px -10px rgba(6, 25, 43, 0.14),
    0 50px 100px -28px rgba(6, 25, 43, 0.32);
}
.stack-card:hover .stack-arrow { translate: 6px 0; }
.stack-card > * {
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Scale shrink as each card gets stacked-over by the next (driven by JS --shrink: 0..1) */
.stack-card { transform: scale(calc(1 - 0.14 * var(--shrink, 0))); transform-origin: center top; }
.stack-card.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--paper);
  box-shadow:
    0 1px 2px rgba(6, 25, 43, 0.06),
    0 16px 32px -12px rgba(6, 25, 43, 0.22),
    0 60px 120px -40px rgba(6, 25, 43, 0.5);
}
.stack-card.is-active .stack-card-title { color: var(--paper); }
.stack-card.is-active .stack-card-desc { color: rgba(255, 255, 255, 0.74); }
.stack-card.is-active .stack-arrow {
  background: var(--navy-300);
  color: var(--paper);
  border-color: var(--navy-300);
}
.stack-body {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stack-card-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: #2B4E75;
  margin: 0 0 18px;
  transition: color 0.05s linear;
}
.stack-card-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-60);
  margin: 0;
  transition: color 0.05s linear;
}
.stack-arrow {
  position: absolute;
  right: clamp(36px, 4.5vw, 64px);
  top: calc(50% - 28px);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(6, 25, 43, 0.18);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition:
    background 0.05s linear,
    color 0.05s linear,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.4s var(--ease-out),
    border-color 0.05s linear;
}
.stack-arrow .arrow-ic { width: 18px; height: 18px; }

@media (max-width: 720px) {
  .stack-card {
    padding: 32px;
  }
  .stack-card { transform: none; }
}

/* -----------------------------------------------------------------
   EXCELLENCE
   ----------------------------------------------------------------- */
.excellence {
  padding: clamp(100px, 14vh, 160px) 0 clamp(80px, 12vh, 140px);
  --ex-bg-fade: 0;
  background-color: var(--navy-900);
  background-color: color-mix(in srgb, var(--paper) calc(var(--ex-bg-fade) * 100%), var(--navy-900));
  position: relative;
}
.excellence .excellence-title {
  color: color-mix(in srgb, var(--ink) calc(var(--ex-bg-fade) * 100%), #fff);
}
.excellence .eyebrow {
  color: color-mix(in srgb, var(--ink-80) calc(var(--ex-bg-fade) * 100%), rgba(255, 255, 255, 0.7));
}
.excellence .eyebrow-dash {
  background: color-mix(in srgb, rgba(14, 41, 62, 0.55) calc(var(--ex-bg-fade) * 100%), rgba(255, 255, 255, 0.5));
}
.excellence [data-split-fill] .char {
  color: color-mix(in srgb, rgba(14, 41, 62, 0.18) calc(var(--ex-bg-fade) * 100%), rgba(255, 255, 255, 0.2));
}
.excellence [data-split-fill] .char.filled {
  color: color-mix(in srgb, var(--ink) calc(var(--ex-bg-fade) * 100%), #fff);
}
.excellence-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.excellence-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 1.15;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.022em;
}
.ex-pin {
  position: relative;
  height: 300vh;
}
/* About-page values has 4 panels — give each panel the same per-panel scroll length */
.excellence--values .ex-pin { height: 500vh; }
/* About-page values uses a permanent white background (no scroll-driven fade) */
.excellence--values {
  --ex-bg-fade: 1;
  padding-top: clamp(80px, 12vh, 140px);
  padding-bottom: clamp(80px, 12vh, 140px);
}
/* Pull-quote and panels share the same sticky frame so they pin together, centered in the viewport */
.excellence--values .ex-sticky {
  align-items: center;
  padding-top: 0;
  height: 100vh;
  top: 0;
}
.excellence--values .ex-sticky > .container {
  gap: clamp(28px, 4vh, 56px);
}
.excellence--values .story-pull-title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.7vw, 40px);
  line-height: 1.3;
  font-weight: 400;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  letter-spacing: -0.015em;
}
.ex-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 40px;
}
.ex-sticky > .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ex-accordion {
  display: flex;
  gap: 10px;
  height: clamp(440px, 60vh, 560px);
  --ex-slant: 80px;
}
.ex-panel {
  flex: var(--ex-flex, 1);
  min-width: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  /* Parallelogram, forward-slash slant */
  clip-path: polygon(var(--ex-slant) 0, 100% 0, calc(100% - var(--ex-slant)) 100%, 0 100%);
}
.ex-panel--light { background: var(--blue-mid); color: #fff; }
.ex-panel--blue-soft { background: #3d6587; color: #fff; }
.ex-panel--blue-soft .ex-desc { color: rgba(255, 255, 255, 0.82); }
.ex-panel--mid { background: var(--paper-gray); color: var(--ink); }
/* When section bg fades to white, this white panel inverts to navy so it stays visible */
.ex-panel--dark {
  background: color-mix(in srgb, var(--navy-900) calc(var(--ex-bg-fade) * 100%), var(--paper));
  color: color-mix(in srgb, #fff calc(var(--ex-bg-fade) * 100%), var(--ink));
}

.ex-panel-inner {
  position: absolute;
  inset: 0;
  padding: 44px 64px 44px 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  /* Lock the content's natural layout so it never reflows/compresses
     as the panel shrinks — the panel's overflow:hidden just clips it. */
  min-width: max-content;
}
.ex-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 500;
  opacity: 0.6;
  margin-bottom: auto;
}
.ex-slashes {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  margin: 0 0 18px 18px;
  height: 32px;
  opacity: 0;
  transform: translateY(10px);
  /* Fast default = quick fade-out when is-active is removed, so the
     leaving panel's content disappears before any visible squash. */
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}
.ex-slashes span {
  display: block;
  width: 3px;
  height: 100%;
  background: currentColor;
  transform: skewX(-14deg);
  border-radius: 1px;
  opacity: 0.85;
}
.ex-panel.is-active .ex-slashes {
  opacity: 1;
  transform: translateY(0);
  /* Snappy layered reveal */
  transition: opacity 0.22s var(--ease-out) 0.04s, transform 0.22s var(--ease-out) 0.04s;
}
.ex-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}
.ex-desc {
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  max-width: 360px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}
.ex-panel--light .ex-desc { color: rgba(255,255,255,0.82); }
.ex-panel--mid  .ex-desc { color: var(--ink-60); }
.ex-panel--dark .ex-desc { color: color-mix(in srgb, rgba(255,255,255,0.78) calc(var(--ex-bg-fade) * 100%), var(--ink-60)); }

.ex-panel.is-active .ex-title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s var(--ease-out) 0.1s, transform 0.25s var(--ease-out) 0.1s;
}
.ex-panel.is-active .ex-desc {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s var(--ease-out) 0.18s, transform 0.28s var(--ease-out) 0.18s;
}

@media (max-width: 960px) {
  .ex-pin,
  .excellence--values .ex-pin { height: auto; }
  .ex-sticky,
  .excellence--values .ex-sticky {
    position: static;
    height: auto;
    display: block;
    padding-top: 0;
    align-items: stretch;
  }
  .excellence--values .ex-sticky > .container { gap: 32px; }
  .excellence--values .story-pull-title { font-size: clamp(22px, 5.5vw, 32px); }
  .ex-accordion { flex-direction: column; height: auto; --ex-slant: 0px; }
  .ex-panel { clip-path: none; min-height: 220px; flex: 1; }
  .ex-panel.is-active { flex: 1; }
  .ex-panel .ex-title, .ex-panel .ex-desc, .ex-panel .ex-slashes { opacity: 1; transform: none; }
  .ex-panel-inner { padding: 32px 24px; min-width: 0; }
  .ex-title { white-space: normal; }
}

/* -----------------------------------------------------------------
   TEAM
   ----------------------------------------------------------------- */
.team {
  padding: clamp(40px, 6vh, 80px) 0 clamp(100px, 14vh, 160px);
  background: var(--paper);
  position: relative;
}
.team-header {
  margin-bottom: clamp(40px, 6vh, 80px);
}
.team-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}
.team-header-row .eyebrow { margin-bottom: 0; }
.team .eyebrow-dash { background: rgba(14, 41, 62, 0.55); }
.team-cta { background: #fff; }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: stretch;
}
.team-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.12;
  font-weight: 400;
  color: var(--ink);
  max-width: 1100px;
  letter-spacing: -0.02em;
  margin: 24px 0 0;
}
.team-stats {
  display: grid;
  gap: 0;
  position: relative;
}
.team-stats li .stat-label { white-space: nowrap; }
.team-stats::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--silver-hairline);
  opacity: 0.7;
}
.team-stats li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 26px 0;
  position: relative;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #234E78;
  font-weight: 500;
}
.team-stats li::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--silver-hairline);
  opacity: 0.7;
}
.stat-num {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 0;
  font-weight: 400;
  background: linear-gradient(135deg, var(--silver-dark) 0%, #fff 50%, var(--silver) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.stat-plus {
  font-weight: 400;
}
.team-right {
  position: relative;
}
.team-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  isolation: isolate;
}
.team-image-bg,
.team-image-cutout {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  /* Both layers share the same parallax pan (var --bgy is set on the
     parent .team-image by JS) so the cutout stays exactly registered
     with the photo as it scrolls. */
  background-position: center var(--bgy, 0%);
  will-change: background-position;
}
.team-image-bg {
  background-image: url('../Images/team.jpg');
  z-index: 0;
}
/* Slant sandwich: between bg photo (z:0) and cutout (z:2), so it appears
   to sweep through the picture *behind* the people. */
.team-image-slant {
  display: none;
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: 18%;
  left: -25%;
  background: rgba(255, 255, 255, 0.42);
  transform: skewX(-12deg);
  pointer-events: none;
  z-index: 1;
  animation: team-slant-sweep 4s linear infinite;
}
.team-image-cutout {
  display: none;
}
.team-image-shine {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 7s ease-in-out infinite;
  animation-delay: 3s;
  z-index: 3;
}
@keyframes team-slant-sweep {
  0%   { left: -25%; }
  100% { left: 110%; }
}
@media (prefers-reduced-motion: reduce) {
  .team-image-slant { animation: none; opacity: 0; }
}
.team-chevron {
  position: absolute;
  width: 140px; height: 140px;
  right: 24px; bottom: 24px;
  opacity: 0.35;
  z-index: 3;
}
.team-stats li[data-team-idx] { cursor: default; transition: opacity 0.3s ease; }
.team-stats:hover li[data-team-idx]:not(:hover) { opacity: 0.45; }

/* -----------------------------------------------------------------
   SERVE
   ----------------------------------------------------------------- */
.serve {
  padding: clamp(100px, 14vh, 140px) 0 clamp(80px, 12vh, 140px);
  background: #2B4E75;
  color: #fff;
  position: relative;
  z-index: 2;
}
.serve .eyebrow { color: rgba(255, 255, 255, 0.75); }
.serve .eyebrow-dash { background: rgba(255, 255, 255, 0.55); }
.serve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.serve-cta {
  margin-top: 36px;
  align-self: flex-start;
}
.serve-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.15;
  font-weight: 400;
  color: #fff;
  max-width: 440px;
  letter-spacing: -0.022em;
  margin-top: 20px;
}
.serve-list {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.serve-list li {
  display: block;
  padding: 28px 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  font-weight: 400;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease-out);
}
.serve-list li.serve-from-right {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    padding-left 0.5s var(--ease-out),
    color 0.5s var(--ease-out);
}
.serve-list li.serve-from-right.in-view {
  opacity: 1;
  transform: translateX(0);
}
.serve-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 100%;
  background: var(--navy-900);
  z-index: -1;
  transition: width 0.6s var(--ease-expo);
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
}
.serve-list li:hover { color: #fff; }
.serve-list li:hover::before { width: calc(100% + 20px); }
.serve-list li:hover .serve-marker { color: rgba(255,255,255,0.55); }
.serve-list li:hover .serve-icon { opacity: 1; transform: translate(0, -50%); }
.serve-list li:hover .serve-text { transform: translateX(70px); }
.serve-marker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  background: linear-gradient(135deg, var(--silver-dark), var(--silver) 50%, var(--silver-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: color 0.5s var(--ease-out);
}
.serve-text {
  display: inline-block;
  transition: transform 0.5s var(--ease-out);
}
.serve-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  width: 30px;
  height: 30px;
  color: #fff;
  opacity: 0;
  /* translateY(-50%) keeps it vertically centered;
     translateX(-18px) is the hidden start position. */
  transform: translate(-18px, -50%);
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out), color 0.5s;
}

/* -----------------------------------------------------------------
   CTA
   ----------------------------------------------------------------- */
.cta {
  position: relative;
  z-index: 1;
  margin-top: -100vh;
  color: #fff;
  text-align: center;
  isolation: isolate;
  background: var(--paper);
  padding: 0;
}
.cta-pin { background: var(--paper); }
.cta-pin {
  position: relative;
  height: 600vh;
}
.cta-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  --s: 0;
}
.cta-base {
  position: absolute; inset: 0; z-index: 0;
  background: var(--paper);
}
.cta-reveal {
  position: absolute; inset: 0; z-index: 3;
  clip-path: polygon(
    calc(50% - 2.5vw * var(--s) - 11.7vh * var(--s)) calc(50% - 29vh * var(--s)),
    calc(50% + 2.5vw * var(--s) - 11.7vh * var(--s)) calc(50% - 29vh * var(--s)),
    calc(50% + 2.5vw * var(--s) + 11.7vh * var(--s)) calc(50% + 29vh * var(--s)),
    calc(50% - 2.5vw * var(--s) + 11.7vh * var(--s)) calc(50% + 29vh * var(--s))
  );
  will-change: clip-path;
}
.cta-reveal .cta-bg { position: absolute; inset: 0; }
.cta-bg .bg-image {
  position: absolute; inset: -5%;
  background: url('../background.jpg') center / cover no-repeat;
  background-color: var(--navy-800);
  animation: slow-drift 28s ease-in-out infinite alternate;
}
.cta-bg .bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(68, 119, 169, 0.25), transparent 70%),
    linear-gradient(180deg, rgba(6,25,43,0.3), rgba(6,25,43,0.55));
}
.cta-bg .bg-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(-115deg, transparent 30%, rgba(255,255,255,0.05) 48%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 52%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 10s ease-in-out infinite;
  animation-delay: 1s;
}
.cta-intro {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: var(--intro-a, 1);
}
.cta-intro--under { z-index: 2; }
.cta-intro--over {
  z-index: 4;
  clip-path: polygon(
    calc(50% - 2.5vw * var(--s, 0) - 11.7vh * var(--s, 0)) calc(50% - 29vh * var(--s, 0)),
    calc(50% + 2.5vw * var(--s, 0) - 11.7vh * var(--s, 0)) calc(50% - 29vh * var(--s, 0)),
    calc(50% + 2.5vw * var(--s, 0) + 11.7vh * var(--s, 0)) calc(50% + 29vh * var(--s, 0)),
    calc(50% - 2.5vw * var(--s, 0) + 11.7vh * var(--s, 0)) calc(50% + 29vh * var(--s, 0))
  );
}
.cta-intro--under span { color: var(--ink); }
.cta-intro--over span { color: #fff; }
.cta-intro span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 140px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
  transform: translate(var(--intro-x, 0), 0) scale(var(--intro-s, 1));
  will-change: transform;
}
.cta-final {
  position: absolute; inset: 0; z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}
.cta-final > .container { width: 100%; }
.cta-final { pointer-events: auto; z-index: 5; }
.cta-final .cta-sub,
.cta-final .btn {
  opacity: 0;
  transform: translateY(70vh);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
/* CTA title — letter-by-letter entrance */
.cta-final .cta-title { opacity: 1; transform: none; }
.cta-word { display: inline-block; }
.cta-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i) * 22ms);
  will-change: opacity, transform;
}
.cta-title.show .cta-char {
  opacity: 1;
  transform: translateY(0);
}
.cta-final .btn {
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              padding var(--btn-dur) var(--btn-ease),
              border-color var(--btn-dur) var(--btn-ease);
}
.cta-final .cta-title.show,
.cta-final .cta-sub.show,
.cta-final .btn.show {
  opacity: 1;
  transform: translateY(0);
}
.cta .eyebrow { justify-content: center; margin-bottom: 28px; }
@media (max-width: 960px) {
  .cta-pin { height: auto; }
  .cta-sticky { position: static; height: auto; overflow: visible; padding: clamp(80px, 14vh, 120px) 0; background: var(--navy-900); }
  .cta-intro { display: none; }
  .cta-reveal { display: none; }
  .cta-base { display: none; }
  .cta-final { position: static; pointer-events: auto; }
  .cta-final .cta-title,
  .cta-final .cta-sub,
  .cta-final .btn { opacity: 1; transform: none; }
  .cta-char { opacity: 1; transform: none; transition: none; }
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 74px);
  line-height: 1.1;
  font-weight: 400;
  max-width: 950px;
  margin: 0 auto 28px;
  letter-spacing: -0.028em;
}
.cta-sub {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin: 0 auto 48px;
}
.cta .btn { display: inline-flex; }

/* -----------------------------------------------------------------
   FOOTER — fixed at viewport bottom. CTA (above) slides up to reveal it.
   ----------------------------------------------------------------- */
body { padding-bottom: 0; }  /* JS sets this to footer.offsetHeight for pixel-perfect reveal */
body > header.hero,
body > section { position: relative; z-index: 2; }

.footer {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100%;
  z-index: 0;
  background: #2B4E75;
  padding-top: 120px;
  overflow: hidden;
}

/* Footer content — pushed down, sits just above the giant word */
.footer-content {
  padding: 40px var(--pad-x) 60px;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  flex-shrink: 0;
}

/* Main grid */
.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}
.footer-col--intro { display: flex; flex-direction: column; gap: 24px; }
.footer-heading {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.02;
  font-weight: 400;
  color: #fff;
  margin: 0;
  letter-spacing: -0.025em;
}
.footer-brief {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  padding-bottom: 4px;
  position: relative;
  margin-top: 8px;
}
.footer-brief::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,0.55);
  transform-origin: right;
  transform: scaleX(1);
}
.footer-brief:hover::after {
  animation: underline-sweep 0.75s var(--ease-expo);
}
.footer-brief .arrow-ic {
  width: 18px; height: 8px;
  transition: transform 0.45s var(--ease-out);
}
.footer-brief:hover .arrow-ic { transform: translateX(4px); }
/* Beat .footer-col a's display: block so the brief sizes to content in any column */
.footer-col a.footer-brief {
  display: inline-flex;
  width: fit-content;
}
.footer-brief--socials { margin-top: 28px; }
.footer-brief--contact { margin-top: 18px; }
.footer-email {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  color: var(--silver);
  letter-spacing: -0.01em;
  transition: color 0.3s;
  margin-top: 4px;
  position: relative;
  align-self: flex-start;
  padding-bottom: 4px;
}
.footer-email::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--silver);
  transform-origin: right;
  transform: scaleX(1);
}
.footer-email:hover { color: #fff; }
.footer-email:hover::after {
  animation: underline-sweep 0.75s var(--ease-expo);
}

@keyframes underline-sweep {
  0%      { transform: scaleX(1); transform-origin: right; }
  50%     { transform: scaleX(0); transform-origin: right; }
  50.01%  { transform: scaleX(0); transform-origin: left; }
  100%    { transform: scaleX(1); transform-origin: left; }
}

.footer-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 22px);
  color: #fff;
  letter-spacing: -0.005em;
  transition: color 0.3s, transform 0.4s var(--ease-out);
}
.footer-col a:hover {
  color: var(--silver);
  transform: translateX(4px);
}
.footer-col--intro a { padding: 0; }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.footer-bottom a { color: inherit; transition: color 0.3s; }
.footer-bottom a:hover { color: #fff; }
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.footer-logo-link:hover { opacity: 1; }
.footer-logo { height: 22px; width: auto; display: block; }

/* Giant brand word — static at the bottom of the footer, aligned to footer content edges */
.footer-brand {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  container-type: inline-size;
  text-align: left;
}
.footer-brand-word {
  display: block;
  font-family: var(--serif);
  font-size: 28cqw;
  font-weight: 400;
  line-height: 0.72;
  letter-spacing: -0.045em;
  color: #fff;
  opacity: 0.32;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .footer {
    position: relative;
    height: auto;
    padding-top: clamp(70px, 10vh, 110px);
    padding-bottom: clamp(30px, 4vh, 50px);
  }
  .footer-content { padding: 40px var(--pad-x) 40px; }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 44px 36px;
    padding-bottom: 44px;
  }
  .footer-bottom {
    flex-direction: row;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    font-size: 14px;
  }
  .footer-brand-word { font-size: 26cqw; line-height: 0.78; }
}
@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 38px 30px; padding-bottom: 38px; }
  .footer-content { padding: 36px var(--pad-x) 32px; }
  .footer-col--intro { grid-column: 1 / -1; gap: 20px; }
  .footer-heading { font-size: clamp(44px, 11vw, 60px); line-height: 1; letter-spacing: -0.028em; }
  .footer-col a { padding: 6px 0; font-size: 16px; }
  .footer-label { margin-bottom: 16px; font-size: 11px; }
  .footer-bottom { padding-top: 28px; font-size: 13px; }
  .footer-brand-word { font-size: 28cqw; }
}

/* -----------------------------------------------------------------
   Reveal
   ----------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.btn.reveal {
  transition: opacity 0.9s var(--ease-out),
              transform 0.9s var(--ease-out),
              padding var(--btn-dur) var(--btn-ease),
              border-color var(--btn-dur) var(--btn-ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
/* Opacity-only reveal — no transform, so descendants can use
   background-attachment: fixed (a transformed ancestor would otherwise
   anchor the fixed bg to that ancestor instead of the viewport). */
.reveal.reveal-no-shift,
.reveal.reveal-no-shift.in-view {
  transform: none;
  transition: opacity 0.9s var(--ease-out);
}
.reveal.reveal-no-shift { opacity: 0; }
.reveal.reveal-no-shift.in-view { opacity: 1; }

/* -----------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 50px; }
  .footer-hero { grid-template-columns: 1fr; gap: 40px; }
  .excellence-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 60px; }
}
/* Tablet (721-1024) — equalize vertical rhythm on every main home section */
@media (min-width: 721px) and (max-width: 1024px) {
  .about,
  .services-stack,
  .excellence,
  .team,
  .underwriters,
  .serve,
  .notable {
    padding-top: clamp(56px, 8vh, 80px);
    padding-bottom: clamp(56px, 8vh, 80px);
  }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .drawer-nav { display: block; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    padding: 8px;
  }
  .nav-toggle span { display: block; width: 22px; height: 1px; background: #fff; }
  .nav-phone { display: none; }
  .hero-sub { margin-left: 0; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-right .btn { position: static; margin-bottom: 30px; }
  .team-image { margin-top: 0; height: 320px; }
  .serve-grid { grid-template-columns: 1fr; gap: 40px; }
  .uw-grid { grid-template-columns: 1fr; }
  .uw-cell { border-right: none; }
  .service-row { grid-template-columns: 60px 1fr 40px; padding: 26px 10px; }
  .service-row:hover { padding-left: 20px; padding-right: 20px; }
  .hero-title { font-size: clamp(48px, 13vw, 88px); }
  .title-rule { display: none; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; }
  .uw-head { align-items: flex-start; }
  .hero-scroll { display: none; }
}
@media (max-width: 600px) {
  .footer-hero { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-title .word, .hero-char, .cta-char { opacity: 1; transform: none; filter: none; }
}

/* -----------------------------------------------------------------
   404 PAGE
   ----------------------------------------------------------------- */
.page-404 .hero { height: 100vh; }
.page-404 .footer { position: relative; }
.page-404 .hero-image { --s: 0.85; }

.hero-404-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #2B4E75;
  isolation: isolate;
}
.hero-404-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x);
  gap: 22px;
}
.hero-404-num {
  font-family: var(--serif);
  font-size: clamp(140px, 22vw, 300px);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
  mix-blend-mode: difference;
  animation: hero-title-in 1.2s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-404-msg {
  font-family: var(--sans);
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(255,255,255,0.92);
  margin: 0 0 6px;
  animation: hero-soft-in 1.1s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-404-content .btn {
  animation: hero-soft-in 1.1s 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (max-width: 960px) {
  .hero-404-num { font-size: clamp(120px, 30vw, 200px); }
}

/* =================================================================
   RESPONSIVE OVERHAUL  (mobile + tablet polish)
   ================================================================= */

/* ---- Tablet & below (≤960px): structural fixes ---- */
@media (max-width: 960px) {
  /* Eliminate horizontal scroll on mobile only — desktop needs visible
     overflow so the scroll-pinned CTA curtain reveal still works. */
  html, body { overflow-x: hidden; }

  /* HERO — single screen, static parallelogram, content always visible */
  .hero { height: 100vh; }
  .hero-sticky { height: 100vh; }
  .hero-image {
    --s: 1.1;
    /* Lock the parallelogram in place; JS scroll-morph won't re-trigger
       on a viewport this small thanks to the height: 100vh override above. */
  }
  .hero-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 28px;
    padding: 110px var(--pad-x) 80px;
    align-content: center;
    align-items: stretch;
  }
  .hero-side {
    padding-top: 0;
    align-items: flex-start;
    gap: 22px;
  }
  .hero-sub { max-width: 420px; }

  /* ABOUT intro — tighten gap from hero */
  .about { padding: clamp(48px, 8vh, 80px) 0 clamp(24px, 4vh, 40px); }

  /* SERVICES STACK — flatten the scroll-driven card pin into a plain list */
  .stack-card {
    position: static;
    transform: none !important;
    margin-bottom: 14px;
    padding: 36px 28px;
    min-height: 220px;
    flex-direction: column;
    background: var(--paper);
    color: inherit;
    box-shadow: 0 1px 2px rgba(6, 25, 43, 0.04), 0 8px 16px -8px rgba(6, 25, 43, 0.08);
  }
  .stack-card.is-active {
    background: var(--paper);
    color: inherit;
    border-color: rgba(6, 25, 43, 0.04);
    box-shadow: 0 1px 2px rgba(6, 25, 43, 0.04), 0 8px 16px -8px rgba(6, 25, 43, 0.08);
  }
  .stack-card.is-active .stack-card-title { color: #2B4E75; }
  .stack-card.is-active .stack-card-desc { color: var(--ink-60); }
  .stack-card.is-active .stack-arrow {
    background: transparent;
    color: var(--ink);
    border-color: rgba(6, 25, 43, 0.18);
  }
  .stack-card-title { font-size: clamp(26px, 4.6vw, 36px); margin-bottom: 14px; }
  .stack-card-desc { font-size: 16px; }
  .stack-arrow {
    position: relative;
    right: auto;
    top: auto;
    margin: 22px auto 0;
    width: 48px;
    height: 48px;
  }
  .stack-arrow .arrow-ic { width: 16px; height: 16px; }
  .stack-body { display: block; }

  /* EXCELLENCE — equal padding on all sides, tighter gap to headline */
  .excellence-head { margin-bottom: clamp(28px, 5vh, 44px); }
  .ex-accordion { gap: 12px; }
  .ex-panel {
    min-height: 0;
    height: auto;
  }
  .ex-panel-inner {
    position: relative !important;
    inset: auto !important;
    padding: 30px !important;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
  }
  .ex-slashes {
    margin: 0 0 16px 0;
    height: 26px;
    flex-shrink: 0;
  }
  .ex-slashes span { width: 3px; }
  .ex-title { white-space: normal; font-size: clamp(26px, 4.4vw, 36px); margin-bottom: 14px; }
  .ex-desc { max-width: 100%; font-size: 16px; }

  /* UNDERWRITERS — equal padding above and below the marquee on mobile */
  .team { padding-bottom: 0; }
  .underwriters { padding: clamp(40px, 6vh, 64px) 0; }
  .uw-marquee .marquee-track { padding: 0; }
  .uw-logo { height: 44px; }
  .uw-slash { width: 5px; height: 36px; }
  .marquee-track { gap: 36px; }

  /* CTA — rebuild as a simple stacked section on mobile.
     Desktop uses scroll-pin curtain reveal; mobile flattens everything. */
  .cta,
  .cta.angle-top {
    margin-top: 0;
    z-index: 2;
    background: var(--paper);
    padding: 0 !important;
  }
  .serve { z-index: 2; }
  .cta-pin { height: auto; background: var(--paper); }
  .cta-sticky {
    position: static;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    padding: 0;
  }
  .cta-base,
  .cta-reveal { display: none !important; }
  /* CTA — single white block on mobile.
     Let's Build + parallelogram, then title + sub + button, all on white. */
  .cta-intro--under {
    display: flex !important;
    position: static !important;
    clip-path: none !important;
    inset: auto !important;
    width: 100%;
    background: var(--paper);
    color: var(--ink);
    padding: clamp(72px, 12vh, 110px) var(--pad-x) 8px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 1;
    text-align: center;
  }
  .cta-intro--over { display: none !important; }
  .cta-intro--under span {
    font-size: clamp(46px, 12vw, 76px);
    line-height: 1;
    color: var(--ink);
    transform: none;
    position: relative;
    display: inline-block;
    padding-right: clamp(50px, 15vw, 92px);
  }
  .cta-intro--under span::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: clamp(28px, 7vw, 46px);
    height: clamp(80px, 20vw, 124px);
    background: var(--navy-900);
    transform: translateY(-50%) skewX(-22deg);
    pointer-events: none;
  }
  .cta-final {
    position: static;
    padding: 8px var(--pad-x) clamp(72px, 12vh, 110px);
    background: var(--paper);
    color: var(--ink);
    width: 100%;
    box-sizing: border-box;
    pointer-events: auto;
  }
  .cta-final > .container { padding: 0; }
  .cta-final .cta-title { font-size: clamp(30px, 5.6vw, 48px); color: var(--ink); }
  .cta-final .cta-char { color: var(--ink); }
  .cta-final .cta-sub { font-size: 16px; max-width: 100%; color: var(--ink-60); }
  /* Invert ghost button for the light CTA background */
  .cta-final .btn-ghost {
    --btn-fg: var(--ink);
    --btn-bd: rgba(14, 41, 62, 0.4);
    color: var(--ink);
    border-color: rgba(14, 41, 62, 0.4);
  }
  .cta-final .btn-ghost .arrow-ic { color: var(--ink); }

  /* TEAM — ensure image is visible and stats list comfortable */
  .team-image { min-height: 280px; }
  .team-stats { width: 100%; }
  .team-stats li {
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
    letter-spacing: 0.14em;
  }
  .team-stats li .stat-label { white-space: normal; }
  .team-header-row { flex-wrap: wrap; gap: 16px; }

}

/* ---- Mobile (≤600px): tighter typography, tap targets ---- */
@media (max-width: 600px) {
  :root { --pad-x: 22px; }

  .hero-title { font-size: clamp(46px, 13vw, 76px); line-height: 1; }
  .hero-content { padding: 100px var(--pad-x) 56px; gap: 22px; }

  .about-title,
  .excellence-title { font-size: clamp(28px, 7.5vw, 44px); line-height: 1.12; }

  .team-title { font-size: clamp(26px, 6.4vw, 38px); line-height: 1.15; }
  .team-image { min-height: 240px; }

  .serve-title { font-size: clamp(28px, 7.2vw, 40px); }
  .serve-list li { padding: 18px 0; }
  .serve-text { font-size: 17px; transform: translateX(46px); }
  .serve-list li { padding: 22px 0; }
  .serve-icon {
    opacity: 0.85;
    left: 0;
    transform: translate(0, -50%);
    width: 26px;
    height: 26px;
  }

  .stack-card { padding: 30px 22px; }
  .stack-card-title { font-size: clamp(24px, 5.8vw, 30px); }

  .ex-panel-inner { padding: 30px !important; }
  .ex-title { font-size: clamp(22px, 5.6vw, 28px); }
  .ex-desc { font-size: 15px; line-height: 1.55; }

  .uw-logo { height: 38px; }
  .uw-slash { width: 4px; height: 30px; }
  .marquee-track { gap: 24px; }

  .cta-title { font-size: clamp(26px, 7.2vw, 38px); }
  .cta-final { padding: 8px var(--pad-x) clamp(72px, 12vh, 110px); }

  .footer-content { padding: 30px var(--pad-x) 50px; }
  .footer-heading { font-size: clamp(28px, 7vw, 38px); }

  /* Drawer — the slant becomes too aggressive on tiny viewports */
  .drawer-panel {
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12vh 100%);
  }
  .drawer-watermark {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12vh 100%);
  }
  .drawer-body {
    width: auto;
    padding: 36px 28px 36px 0;
    gap: 32px;
  }
  .drawer-title { font-size: clamp(34px, 9vw, 50px); }

  /* 404 — keep the slant tight on small phones */
  .page-404 .hero-image { --s: 0.85; }
}

/* =================================================================
   ABOUT PAGE
   ================================================================= */

/* ---- Hero — masked window onto a fixed bg image, slant grows from thin to wide ---- */
.page-about .hero-about,
.page-about .hero-about-stage {
  height: 94vh;
  background: #2B4E75;
  isolation: isolate;
}

@property --hero-mask-w {
  syntax: '<number>';
  initial-value: 1;
  inherits: false;
}
.page-about .hero-image {
  --hero-mask-w: 1;
  --s: 0.95;
  background: url('../Images/shake.jpg') 72% calc(50% + 4vh) / auto 58vh no-repeat;
  background-color: #10293D;
  /* Backslash slant ( \ ), centered around 72% horizontal, nudged down */
  clip-path: polygon(
    calc(72% - 2.5vw * var(--hero-mask-w) - 11vh) calc(50% - 23vh),
    calc(72% + 2.5vw * var(--hero-mask-w) - 11vh) calc(50% - 23vh),
    calc(72% + 2.5vw * var(--hero-mask-w) + 11vh) calc(50% + 31vh),
    calc(72% - 2.5vw * var(--hero-mask-w) + 11vh) calc(50% + 31vh)
  );
  animation: hero-mask-grow 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
  transform: none;
}
.page-about .hero-image::after { display: none; }
@keyframes hero-mask-grow {
  0%   { --hero-mask-w: 0; opacity: 0; }
  20%  { opacity: 1; }
  100% { --hero-mask-w: 5; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .page-about .hero-image { animation: none; --hero-mask-w: 5; }
}

/* Layout: text on left; story is wide and may overlap the slant slightly */
.page-about .hero-about-content {
  align-items: flex-start;
  text-align: left;
  padding-right: clamp(8vw, 12vw, 18vw);
}
.page-about .hero-about-title { text-align: left; max-width: 14ch; }
.page-about .hero-about-story {
  grid-template-columns: 1fr;
  margin: clamp(16px, 2.5vh, 32px) auto 0 0;
  max-width: 56ch;
}
.page-about .hero-about-story .story-body::before {
  content: "";
  float: right;
  width: 6vh;
  height: 22vh;
  shape-outside: polygon(0 0, 100% 0, 100% 100%);
  -webkit-shape-outside: polygon(0 0, 100% 0, 100% 100%);
}
@media (max-width: 960px) {
  .page-about .hero-about,
  .page-about .hero-about-stage { height: auto; min-height: 0; overflow: visible; }
  .page-about .hero-about-content { padding-right: var(--pad-x); }
  .page-about .hero-image {
    clip-path: polygon(
      calc(50% - 2.5vw * var(--hero-mask-w) - 11.7vh) calc(50% - 29vh),
      calc(50% + 2.5vw * var(--hero-mask-w) - 11.7vh) calc(50% - 29vh),
      calc(50% + 2.5vw * var(--hero-mask-w) + 11.7vh) calc(50% + 29vh),
      calc(50% - 2.5vw * var(--hero-mask-w) + 11.7vh) calc(50% + 29vh)
    );
  }
}

@media (max-width: 720px) {
  /* About hero — image banner on top, text content below */
  .page-about .hero-about-stage {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .page-about .hero-image {
    position: relative;
    order: 1;
    width: calc(100% - 2 * var(--pad-x));
    height: clamp(260px, 38vh, 360px);
    margin: 88px var(--pad-x) 0;
    background: url('../Images/shake.jpg') center / cover no-repeat;
    background-color: transparent;
    /* Same backslash slant as desktop, scaled for a horizontal banner */
    clip-path: polygon(
      18vw 0,
      100% 0,
      calc(100% - 18vw) 100%,
      0 100%
    );
    animation: none;
  }
  .page-about .hero-about-content {
    position: relative;
    order: 2;
    inset: auto;
    padding: clamp(32px, 5vh, 48px) var(--pad-x) clamp(48px, 7vh, 72px);
    align-items: flex-start;
    text-align: left;
  }
  .page-about .hero-about-title {
    max-width: 100%;
    text-align: left;
  }
  .page-about .hero-about-story {
    margin: clamp(12px, 2vh, 24px) 0 0;
    max-width: 100%;
  }
  .page-about .hero-about-story .story-body::before { display: none; }
  .hero-navy { display: none; }
}

/* CTA on about page: mirror the homepage exactly — `.ateam` plays the role
   of `.serve` (the section that visually covers the CTA during the growth
   phase). Same -100vh pull, same pre-roll value, so "Let's Build" grows
   behind the team grid and emerges as it scrolls past. */
.page-about { --cta-pre-roll: 1.3; }
.hero-about-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #2B4E75;
  isolation: isolate;
}
.hero-about-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: clamp(170px, 24vh, 240px) var(--pad-x) clamp(80px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 22px;
  pointer-events: none;
}
.hero-about-content > * { pointer-events: auto; }
.hero-about-content .eyebrow {
  color: rgba(255,255,255,0.78);
  margin-bottom: 0;
  animation: hero-soft-in 1.1s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-about-content .eyebrow-dash { background: rgba(255,255,255,0.5); }
.hero-about-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: -0.022em;
  margin: 0;
  color: #fff;
  mix-blend-mode: difference;
  max-width: 1100px;
}
.hero-about-story {
  margin-top: clamp(40px, 7vh, 90px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  width: 100%;
  animation: hero-soft-in 1.1s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-about-story .story-lead {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.42;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.012em;
  margin: 0;
}
.hero-about-story .story-lead em {
  font-style: italic;
  color: rgba(255,255,255,0.92);
}
.hero-about-story .story-body {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  margin: 0;
}

/* ---- Story ---- */
.story {
  padding: 0;
  background: var(--paper);
  position: relative;
}
.story-pull {
  margin-top: 0;
  padding: clamp(80px, 14vh, 160px) 0 0;
  position: relative;
}
.story-pull::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: var(--silver-hairline);
  opacity: 0.7;
}
.story-pull-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.1vw, 46px);
  line-height: 1.32;
  font-weight: 400;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  letter-spacing: -0.015em;
}

/* ---- Guiding Principles ---- */
.principles {
  padding: clamp(40px, 6vh, 80px) 0 clamp(120px, 16vh, 180px);
  background: var(--paper);
  position: relative;
}
.principles-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: end;
  margin-bottom: clamp(60px, 9vh, 90px);
}
.principles-head .eyebrow { margin-bottom: 0; }
.principles .eyebrow-dash { background: rgba(14, 41, 62, 0.55); }
.principles-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.08;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.022em;
  margin: 0;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.principle-card {
  position: relative;
  padding: clamp(28px, 4vh, 44px) clamp(24px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid rgba(14, 41, 62, 0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
  gap: 16px;
  transition:
    transform 0.6s var(--ease-out),
    box-shadow 0.6s var(--ease-out),
    border-color 0.4s var(--ease-out);
  overflow: hidden;
}
.principle-card::after {
  content: "";
  position: absolute;
  top: 0; right: -20%;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(43,78,117,0.06) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
}
.principle-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 2px rgba(6,25,43,0.04),
    0 16px 32px -14px rgba(6,25,43,0.16),
    0 40px 80px -34px rgba(6,25,43,0.24);
  border-color: rgba(14,41,62,0.16);
}
.principle-card:hover::after { opacity: 1; }
.principle-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  height: 28px;
  color: var(--navy-400);
  margin-bottom: 6px;
}
.principle-mark span {
  display: block;
  width: 3px;
  height: 100%;
  background: currentColor;
  transform: skewX(-14deg);
  border-radius: 1px;
  opacity: 0.9;
}
.principle-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
}
.principle-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-60);
  margin: 0;
}

/* ---- The A Team + bio grid ---- */
.ateam {
  padding: clamp(100px, 14vh, 160px) 0 clamp(140px, 20vh, 220px);
  background: var(--navy-900);
  color: #fff;
  position: relative;
  z-index: 2;
}
.ateam .eyebrow { color: rgba(255, 255, 255, 0.78); }
.ateam .eyebrow-dash { background: rgba(255, 255, 255, 0.45); }
.ateam .ateam-title { color: #fff; }
.ateam .ateam-lead { color: rgba(255, 255, 255, 0.72); }
.ateam .bio-name { color: #fff; }
.ateam .bio-role { color: rgba(255, 255, 255, 0.6); }
.ateam .bio-img { background-color: rgba(255, 255, 255, 0.04); }
.ateam-head { margin-bottom: clamp(60px, 9vh, 90px); max-width: 1180px; }
.ateam-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 8px 0 28px;
  max-width: 1000px;
}
.ateam-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-60);
  max-width: 720px;
  margin: 0;
}
.bio-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 64px 40px;
}
.bio-card { display: block; grid-column: span 2; }
.bio-card:nth-child(5) { grid-column: 2 / span 2; }
.bio-trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  transition: transform 0.55s var(--ease-out);
}
.bio-trigger:hover { transform: translateY(-5px); }

.bio-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--paper-gray);
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
  transition: filter 0.6s var(--ease-out);
}
/* Slanted shimmer sweep — wipes diagonally across on hover */
.bio-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.10) 47%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.10) 53%,
    transparent 62%
  );
  transform: translateX(-110%);
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}
.bio-trigger:hover .bio-img::before { transform: translateX(110%); }
/* Mono-placeholder bios skip the sweep ::before since their pseudo is reserved */
.bio-img--mono::before { content: none; }

.bio-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,25,43,0.55));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  z-index: 1;
}
.bio-trigger:hover .bio-img::after { opacity: 1; }
.bio-trigger:hover .bio-img { filter: contrast(1.05) brightness(1.02); }

/* Silhouette fallback — uses the brand "Her" / "Him" silhouette files.
   Default is Her; add the .bio-img--mono-him modifier for the male variant. */
.bio-img.bio-img--mono {
  background-color: #525252;
  background-image: url('../Bios/Her-figure.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.bio-img.bio-img--mono-him {
  background-image: url('../Bios/Him-figure.svg');
}
.ateam .bio-img.bio-img--mono { background-color: #525252; }
.bio-img--mono::before,
.bio-img--mono::after { content: none; }

/* Brand-mark placeholder — the Ascend "A" (favicon) on the gray tile */
.bio-img.bio-img--logo {
  background-color: #525252;
  background-image: url('../Logo/Favicon.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72%;
}
.ateam .bio-img.bio-img--logo { background-color: #525252; }
.bio-img--logo::before,
.bio-img--logo::after { content: none; }
.bio-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  padding-left: 0;
  transition: padding-left 0.55s var(--ease-expo);
}
/* Slant forward-slash that appears before the name on bio hover.
   The bio-meta padding-left grows to make room for it. */
.bio-meta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 3px;
  height: clamp(40px, 3.8vw, 50px);
  background: currentColor;
  transform: skewX(-14deg) translateX(-12px);
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.55s var(--ease-out),
              transform 0.55s var(--ease-expo);
  pointer-events: none;
}
.bio-trigger:hover .bio-meta { padding-left: 24px; }
.bio-trigger:hover .bio-meta::before {
  opacity: 1;
  transform: skewX(-14deg) translateX(0);
}
.bio-name {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.bio-role {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-60);
}
.bio-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-400);
  padding-bottom: 5px;
  position: relative;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.45s var(--ease-out);
}
.bio-trigger:hover .bio-read,
.bio-trigger:focus-visible .bio-read {
  opacity: 1;
  transform: translateY(0);
}
.bio-read::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 38px;
  background: var(--navy-400);
  transition: width 0.55s var(--ease-expo);
}
.bio-read .arrow-ic {
  width: 18px; height: 8px;
  transition: transform 0.45s var(--ease-out);
}
.bio-trigger:hover .bio-read::after { width: 100%; }
.bio-trigger:hover .bio-read .arrow-ic { transform: translateX(4px); }

/* ---- Bio modal ---- */
.bio-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.5s;
}
.bio-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}
.bio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 25, 43, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out);
}
.bio-modal.is-open .bio-modal-backdrop {
  background: rgba(6, 25, 43, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bio-modal-card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 24px));
  width: min(960px, calc(100vw - 48px));
  max-height: calc(100vh - 60px);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  box-shadow: 0 60px 140px -40px rgba(6,25,43,0.6);
  transition: opacity 0.5s var(--ease-out), transform 0.55s var(--ease-expo);
}
.bio-modal.is-open .bio-modal-card {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.bio-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 5;
  width: 44px; height: 44px;
  border: 1px solid rgba(14,41,62,0.2);
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.4s, color 0.3s, border-color 0.3s;
}
.bio-modal-close:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.bio-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: stretch;
  min-height: 0;
}
.bio-modal-img {
  position: relative;
  background-color: var(--paper-gray);
  background-size: cover;
  background-position: center top;
  min-height: 320px;
  /* Slanted right edge — echoes the brand's parallelogram */
  clip-path: polygon(0 0, 100% 0, calc(100% - 36px) 100%, 0 100%);
}
.bio-modal-img.is-mono {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  display: flex; align-items: center; justify-content: center;
}
.bio-modal-img.is-logo {
  background-color: #525252;
  background-image: url('../Logo/Favicon.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 52%;
}
.bio-modal-img .mono-letters {
  font-family: var(--serif);
  font-size: clamp(96px, 12vw, 180px);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--silver-dark) 0%, var(--silver-light) 50%, var(--silver) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bio-modal-body {
  padding: 56px clamp(28px, 4vw, 56px) 40px clamp(24px, 3vw, 40px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.bio-modal-body .eyebrow { margin-bottom: 14px; color: var(--ink-60); }
.bio-modal-body .eyebrow-dash { background: rgba(14,41,62,0.4); }
.bio-modal-name {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 22px;
}
.bio-modal-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-80);
  margin: 0 0 16px;
}
.bio-modal-text p:last-child { margin-bottom: 0; }

body.bio-modal-open { overflow: hidden; }

/* ---- Testimonials (about page) ---- */
.testimonials {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(580px, 78vh, 760px);
  background: #2B4E75;
  color: #fff;
  padding: clamp(80px, 10vh, 140px) 0;
  overflow: hidden;
  z-index: 2;
  --testi-dur: 7s;
}
.testimonials .container { width: 100%; }
/* Soft vignette to lift the type off the field */
.testimonials::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 35%, rgba(255,255,255,0.05), transparent 60%);
  pointer-events: none;
}
.testimonials .container { position: relative; z-index: 1; }
.testimonials .eyebrow { color: rgba(255, 255, 255, 0.82); }
.testimonials .eyebrow-dash { background: rgba(255, 255, 255, 0.45); }

.testi-stage {
  position: relative;
  padding: clamp(40px, 6vh, 72px) 0 clamp(36px, 5vh, 56px);
}
.testi-mark {
  position: absolute;
  top: clamp(-30px, -3vh, -16px);
  left: clamp(-12px, -1vw, -4px);
  font-family: var(--serif);
  font-size: clamp(180px, 22vw, 320px);
  line-height: 0.82;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
}
.testi-nums {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: stretch;
  gap: 12px;
  height: 44px;
  z-index: 2;
}
.testi-review-link {
  position: absolute;
  right: 0;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.3s;
  z-index: 2;
}
.testi-review-link .arrow-ic {
  width: 16px; height: 8px;
  fill: currentColor;
  transition: transform 0.45s var(--ease-out);
}
.testi-review-link:hover .arrow-ic { transform: translateX(4px); }
.testi-review-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: right;
  transform: scaleX(1);
}
.testi-review-link:hover { color: #fff; }
.testi-review-link:hover::after { animation: underline-sweep 0.75s var(--ease-expo); }
.testi-num {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
}
.testi-num:focus-visible { outline: none; }
.testi-line {
  display: block;
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.28);
  transform: skewX(-18deg);
  transform-origin: center;
  transition: background-color 0.35s var(--ease-out);
}
.testi-num:hover .testi-line { background: rgba(255, 255, 255, 0.6); }
.testi-num:focus-visible .testi-line { background: #fff; }
.testi-num.is-active .testi-line { background: #fff; }

.testi-track {
  position: relative;
  min-height: clamp(240px, 30vh, 340px);
  max-width: 1080px;
}
.testi-card {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testi-card[hidden] { display: block; }
.testi-card.is-active { pointer-events: auto; }

/* Word-stagger reveal for the quote — focus-in (no vertical motion) */
.testi-word {
  display: inline-block;
  opacity: 0;
  filter: blur(4px);
  transition: opacity 0.6s ease-out, filter 0.65s ease-out;
  will-change: opacity, filter;
}
.testi-card.is-active .testi-word {
  opacity: 1;
  filter: blur(0);
  transition-delay: calc(var(--i) * 22ms);
}

/* Byline fades in (no vertical movement) shortly after the quote starts */
.testi-name,
.testi-role {
  opacity: 0;
  transition: opacity 0.55s ease-out;
}
.testi-card.is-active .testi-name {
  opacity: 1;
  transition-delay: 0.32s;
}
.testi-card.is-active .testi-role {
  opacity: 1;
  transition-delay: 0.44s;
}
.testi-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: rgba(255, 255, 255, 0.96);
  margin: 0 0 clamp(28px, 4vh, 44px);
  max-width: 980px;
}
.testi-byline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: clamp(64px, 6vw, 88px);
}
.testi-name {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}
.testi-role {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .testi-word,
  .testi-name,
  .testi-role { transition: none !important; transition-delay: 0s !important; }
}

@media (max-width: 720px) {
  .testi-mark { font-size: clamp(140px, 42vw, 220px); top: -8px; }
  /* Stack testimonials naturally — absolute overlap clips long quotes */
  .testi-track { min-height: 0; display: flex; flex-direction: column; }
  .testi-card { position: relative; inset: auto; }
  .testi-card[hidden] { display: none; }
  .testi-quote { font-size: clamp(20px, 5.4vw, 26px); margin-bottom: 28px; }
  .testi-byline { padding-left: 0; }
  .testi-nums {
    position: static;
    margin: 28px 0 0;
    height: 32px;
    order: 2;
  }
  .testi-review-link {
    position: relative;
    margin: 36px 0 0;
    align-self: flex-start;
    order: 3;
    width: fit-content;
    padding-bottom: 8px;
    right: auto;
    bottom: auto;
  }
  .testi-review-link::after {
    left: 0;
    right: 0;
    width: 100%;
    bottom: 0;
  }
}

/* ---- Responsive (about page) ---- */
@media (max-width: 1024px) {
  .principles-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .bio-grid { grid-template-columns: repeat(4, 1fr); gap: 36px 22px; }
  .bio-card { grid-column: span 2; }
  .bio-card:nth-child(5) { grid-column: 1 / span 2; }
  .bio-card:nth-child(7) { grid-column: 2 / span 2; }
  .hero-about-story { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .hero-about-content { padding: 100px var(--pad-x) 60px; gap: 18px; }
  .hero-about-title { font-size: clamp(36px, 9vw, 60px); mix-blend-mode: normal; }
  .hero-about-story { margin-top: 24px; }
  .hero-about-story .story-lead { font-size: clamp(18px, 4.6vw, 22px); }
  .principles-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 0; padding: 28px 24px; }
  .bio-grid { grid-template-columns: 1fr; gap: 36px; }
  .bio-card,
  .bio-card:nth-child(5),
  .bio-card:nth-child(7) { grid-column: 1; }
  .bio-img { aspect-ratio: 4 / 4; }
  /* Bio modal — whole card scrolls together (image + body) on mobile */
  .bio-modal-card {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .bio-modal-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .bio-modal-img {
    clip-path: none;
    aspect-ratio: 5 / 4;
    min-height: 0;
    flex-shrink: 0;
  }
  .bio-modal-body {
    padding: 30px 24px 36px;
    overflow: visible;
    min-height: 0;
  }
}

/* ---- Touch / no-hover devices: convert hovers to always-on visuals ---- */
@media (hover: none) {
  /* Buttons: provide a tap-feedback state */
  .btn-ghost:active,
  .btn-outline:active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.9);
  }
  .btn.btn-dark:active {
    background: rgba(6, 25, 43, 0.06);
  }

  /* Footer link sweep: keep underlines visible (already are), suppress hover-only motion */
  .footer-brief .arrow-ic { transform: translateX(2px); }

  /* Excellence panel hover-tied content fades — already covered by scroll-driven .is-active */
}


/* =================================================================
   SERVICES PAGE
   ================================================================= */

/* ---- Services hero — dark slant + 3 lighter echoes, wave-slide animation ---- */
.page-services .hero-about,
.page-services .hero-about-stage {
  height: 84vh;
}

@property --hero-about-s {
  syntax: '<number>';
  initial-value: 0;
  inherits: false;
}
.page-services .hero-image {
  --s: 0.95;
  --hero-about-s: 0.95;
  --echo-x: 0;
  background: url('../background.jpg') center / cover no-repeat;
  background-color: #10293D;
  /* Backslash slant ( \ ) anchored on the right at 70%, shorter overall */
  clip-path: polygon(
    calc(55% - 2.5vw * var(--s) - 8vh * var(--s)) calc(50% - 20vh * var(--s)),
    calc(55% + 2.5vw * var(--s) - 8vh * var(--s)) calc(50% - 20vh * var(--s)),
    calc(55% + 2.5vw * var(--s) + 8vh * var(--s)) calc(50% + 20vh * var(--s)),
    calc(55% - 2.5vw * var(--s) + 8vh * var(--s)) calc(50% + 20vh * var(--s))
  );
  animation: hero-echo-slide 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.15s both;
  transform: none;
}
.page-services .hero-image::after { display: none; }

/* Three lighter echoes — same parallelogram, offset to the right, translucent */
.page-services .hero-shape-echo {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  --s: 0.95;
  background: rgba(255, 255, 255, var(--echo-alpha, 0.08));
  clip-path: polygon(
    calc(55% - 2.5vw * var(--s) - 8vh * var(--s)) calc(50% - 20vh * var(--s)),
    calc(55% + 2.5vw * var(--s) - 8vh * var(--s)) calc(50% - 20vh * var(--s)),
    calc(55% + 2.5vw * var(--s) + 8vh * var(--s)) calc(50% + 20vh * var(--s)),
    calc(55% - 2.5vw * var(--s) + 8vh * var(--s)) calc(50% + 20vh * var(--s))
  );
  transform: translateX(var(--echo-x, 0));
  opacity: 0;
  animation: hero-echo-slide 1.5s cubic-bezier(0.19, 1, 0.22, 1) var(--echo-delay, 0.3s) both;
}
@keyframes hero-echo-slide {
  0%   { opacity: 0; transform: translateX(calc(var(--echo-x, 0) - 14vw)); }
  35%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(var(--echo-x, 0)); }
}

/* Hover — each stripe lifts and brightens independently. Uses `translate`
   (separate from `transform`) so the entrance translateX animation isn't
   disturbed. Pointer events follow clip-path, so only the parallelogram
   itself is hoverable. */
.page-services .hero-image,
.page-services .hero-shape-echo {
  pointer-events: auto;
  transition:
    translate 0.55s cubic-bezier(0.19, 1, 0.22, 1),
    filter 0.45s ease,
    background-color 0.45s ease;
}
.page-services .hero-image:hover {
  translate: 0 -14px;
  filter: brightness(1.22) saturate(1.08);
  z-index: 5;
}
.page-services .hero-shape-echo:hover {
  translate: 0 -14px;
  background: rgba(255, 255, 255, calc(var(--echo-alpha, 0.08) + 0.14));
  z-index: 5;
}

@media (prefers-reduced-motion: reduce) {
  .page-services .hero-image { animation: none; }
  .page-services .hero-shape-echo { animation: none; opacity: 1; }
  .page-services .hero-image,
  .page-services .hero-shape-echo { transition: none; }
  .page-services .hero-image:hover,
  .page-services .hero-shape-echo:hover { translate: 0 0; }
}

/* Layout — text on left (default flex-start) */
.page-services .hero-about-content {
  align-items: flex-start;
  text-align: left;
}
.page-services .hero-about-content .eyebrow { flex-direction: row; }
.page-services .hero-services-title {
  text-align: left;
  max-width: 14ch;
}
.page-services .hero-about-story {
  grid-template-columns: 1fr;
  margin: clamp(16px, 2.5vh, 32px) auto 0 0;
  max-width: 50ch;
}
/* Tablet + mobile — replace the clip-path parallelograms with simple
   skewed bars. Just 4 thin lines in a row, equally spaced. */
@media (max-width: 960px) {
  .page-services .hero-image,
  .page-services .hero-shape-echo {
    /* Reset everything from the desktop slant + the page-about mobile rule
       that adds top margin to .hero-image */
    clip-path: none !important;
    background-image: none !important;
    background-color: transparent;
    inset: auto;
    margin: 0 !important;
    transform: none;
    animation: none;
    transition: none;
    pointer-events: none;
    position: absolute;
    width: 20px;
    border-radius: 1px;
    /* The slant is a single skewX so all 4 bars sit on the same baseline */
    --bar-skew: -14deg;
  }
  /* Disable the desktop entrance animation entirely so all four bars
     render at their final position from frame one */
  .page-services .hero-image,
  .page-services .hero-shape-echo {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Mobile (<=720): 4 bars in a row in the upper area above the title.
   Move the hero-about-content down to leave room for them. */
@media (max-width: 720px) {
  .page-services .hero-about,
  .page-services .hero-about-stage { height: auto; min-height: 0; }
  .page-services .hero-about-stage { padding-top: clamp(180px, 28vh, 240px); padding-bottom: clamp(60px, 9vh, 100px); }
  .page-services .hero-about-content {
    position: relative;
    inset: auto;
    padding: 0 var(--pad-x);
  }
  .page-services .hero-image,
  .page-services .hero-shape-echo {
    top: clamp(140px, 18vh, 180px);
    height: clamp(100px, 14vh, 130px);
    width: 26px;
    transform: skewX(-14deg) !important;
    background: rgba(255, 255, 255, 0.22);
    z-index: 1;
  }
  .page-services .hero-image { left: 10%; background: var(--navy-900); }
  .page-services .hero-shape-echo:nth-of-type(3) { left: 22%; background: rgba(255, 255, 255, 0.15) !important; }
  .page-services .hero-shape-echo:nth-of-type(4) { left: 34%; background: rgba(255, 255, 255, 0.22) !important; }
  .page-services .hero-shape-echo:nth-of-type(5) { left: 46%; background: rgba(255, 255, 255, 0.30) !important; }
  /* Push the title content below the bars */
  .page-services .hero-about-stage { padding-top: clamp(300px, 42vh, 360px); }
}

/* Tablet (721-960): bars on the right, text left-aligned and flush left.
   Shorter hero so it doesn't dominate the page. */
@media (min-width: 721px) and (max-width: 960px) {
  .page-services .hero-about,
  .page-services .hero-about-stage {
    height: auto;
    min-height: 0;
  }
  .page-services .hero-about-stage {
    padding-top: clamp(150px, 19vh, 200px);
    padding-bottom: clamp(20px, 3vh, 36px);
  }
  .page-services .hero-image,
  .page-services .hero-shape-echo {
    top: clamp(180px, 22vh, 220px);
    height: clamp(170px, 22vh, 220px);
    transform: skewX(-14deg) !important;
    transform-origin: top center;
    width: 28px;
    background: rgba(255, 255, 255, 0.22);
  }
  .page-services .hero-image { left: 60%; background: var(--navy-900); }
  .page-services .hero-shape-echo:nth-of-type(3) { left: 68%; background: rgba(255, 255, 255, 0.18) !important; }
  .page-services .hero-shape-echo:nth-of-type(4) { left: 76%; background: rgba(255, 255, 255, 0.26) !important; }
  .page-services .hero-shape-echo:nth-of-type(5) { left: 84%; background: rgba(255, 255, 255, 0.34) !important; }
  .page-services .hero-about-content {
    position: relative;
    inset: auto;
    padding: 0 var(--pad-x);
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
  }
  .page-services .hero-services-title,
  .page-services .hero-about-story { max-width: 55%; }
}


/* Current-page nav state */
.nav-link--current {
  position: relative;
  color: #fff;
}
.nav-link--current::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

/* ---- Chapter index — 2x3 tile grid ---- */
.svc-index {
  padding: clamp(80px, 12vh, 140px) 0 clamp(100px, 14vh, 160px);
  background: var(--paper);
  position: relative;
}
.svc-index-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: clamp(50px, 7vh, 80px);
}
.svc-index-head .eyebrow { margin-bottom: 0; }
.svc-index-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.08;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.022em;
  margin: 0;
}
.svc-index-title em {
  font-style: italic;
  color: var(--blue-mid);
}
.svc-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.svc-tile {
  position: relative;
  isolation: isolate;
}
.svc-tile a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(28px, 4vh, 44px) clamp(24px, 3vw, 36px);
  min-height: clamp(220px, 32vh, 300px);
  text-decoration: none;
  color: inherit;
  background: var(--tile-bg, var(--paper));
  color: var(--tile-fg, var(--ink));
  /* Forward-slash slant on top-right + bottom-right corners */
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 100%, 0 100%);
  transition: transform 0.55s var(--ease-out), filter 0.55s var(--ease-out);
  overflow: hidden;
}
.svc-tile--navy a       { --tile-bg: var(--navy-900); --tile-fg: #fff; }
.svc-tile--blue a       { --tile-bg: var(--blue-mid); --tile-fg: #fff; }
.svc-tile--blue-soft a  { --tile-bg: #3d6587;          --tile-fg: #fff; }
.svc-tile--paper a      { --tile-bg: var(--paper-gray); --tile-fg: var(--ink); }
.svc-tile--paper-warm a { --tile-bg: var(--paper-warm); --tile-fg: var(--ink); }
.svc-tile a::before {
  content: "";
  position: absolute;
  top: 0; right: -1px;
  width: 32px; height: 100%;
  background: var(--tile-fg);
  opacity: 0.06;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  transition: opacity 0.55s var(--ease-out);
}
.svc-tile a:hover {
  transform: translateY(-4px);
}
.svc-tile a:hover::before { opacity: 0.14; }

.svc-tile-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
}
.svc-tile-mark span {
  display: block;
  width: 2px;
  height: 100%;
  background: currentColor;
  transform: skewX(-14deg);
  border-radius: 1px;
  opacity: 0.85;
}
.svc-tile-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 500;
  opacity: 0.6;
  margin-top: auto;
}
.svc-tile-title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.018em;
}
.svc-tile-tag {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.78;
  max-width: 30ch;
}
.svc-tile-arrow {
  position: absolute;
  bottom: clamp(28px, 4vh, 44px);
  right: clamp(38px, 4vw, 52px);
  width: 22px; height: 8px;
  opacity: 0.55;
  transition: transform 0.45s var(--ease-out), opacity 0.45s var(--ease-out);
}
.svc-tile-arrow .arrow-ic { width: 100%; height: 100%; }
.svc-tile a:hover .svc-tile-arrow {
  opacity: 1;
  transform: translateX(6px);
}

/* ---- Stacked sticky stage — each service slides up over previous ---- */
.svc-stack {
  position: relative;
}
.svc-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}
.svc-track {
  height: 100vh;
}

/* Background layers — slide up to cover the previous color */
.svc-bg-stack {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.svc-bg {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: var(--bg-z, 1);
  will-change: transform;
}
.svc-bg[data-bg="0"] { transform: translateY(0); --bg-z: 1; }
.svc-bg[data-bg="1"] { --bg-z: 2; }
.svc-bg[data-bg="2"] { --bg-z: 3; }
.svc-bg[data-bg="3"] { --bg-z: 4; }
.svc-bg[data-bg="4"] { --bg-z: 5; }
.svc-bg[data-bg="5"] { --bg-z: 6; }
.svc-bg.is-revealed { transform: translateY(0); }
.svc-bg--paper      { background: var(--paper); }
.svc-bg--paper-warm { background: var(--paper-warm); }
.svc-bg--blue-mid   { background: var(--blue-mid); }
.svc-bg--paper-gray { background: var(--paper-gray); }
.svc-bg--blue-soft  { background: #3d6587; }
.svc-bg--navy       { background: var(--navy-900); }

/* Text layer — fixed in place, only the active panel reveals its content */
.svc-text-stack {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}
.svc-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.svc-text.is-active { pointer-events: auto; }
.svc-text[data-tone="ink"]   { color: var(--ink); }
.svc-text[data-tone="light"] { color: #fff; }
.svc-text-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  /* Reserve left-side real estate for the image; generous gap to the text */
  padding-left: clamp(500px, 40vw, 580px);
}

/* ----- Editorial portrait image on the left; text sits clear on the right ----- */
.svc-media {
  position: absolute;
  /* Tall portrait panel, vertically centred on the left, with a slight skew */
  top: 50%;
  transform: translateY(-50%) skewX(-4deg);
  /* Left-anchored, clearing the pagination dots column on the far left */
  left: clamp(170px, 13vw, 240px);
  width: clamp(240px, 22vw, 360px);
  height: clamp(320px, 54vh, 520px);
  z-index: 20;            /* above the sliding bg layers, below the text */
  pointer-events: none;
  overflow: hidden;
  box-shadow: 0 30px 60px -22px rgba(6, 25, 43, 0.38);
}
/* Stacked frames — one per service, cross-faded on scroll */
.svc-media-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Active frame, driven by the JS-set data-active-idx on .svc-stage */
.svc-stage[data-active-idx="0"] .svc-media-frame[data-frame="0"],
.svc-stage[data-active-idx="1"] .svc-media-frame[data-frame="1"],
.svc-stage[data-active-idx="2"] .svc-media-frame[data-frame="2"],
.svc-stage[data-active-idx="3"] .svc-media-frame[data-frame="3"],
.svc-stage[data-active-idx="4"] .svc-media-frame[data-frame="4"],
.svc-stage[data-active-idx="5"] .svc-media-frame[data-frame="5"] {
  opacity: 1;
}
/* Before JS sets the attribute, show the first frame */
.svc-stage:not([data-active-idx]) .svc-media-frame[data-frame="0"] {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .svc-media-frame { transition: none; }
}

/* ----- "Scroll" cursor that follows the mouse inside the services stack ----- */
.svc-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 88px;
  height: 88px;
  /* Translate (-50%, -50%) is applied via inline transform from JS along
     with the mouse coords — see JS handler. */
  border-radius: 50%;
  /* Default: dark cursor (good against the light service bgs) */
  background: rgba(14, 41, 62, 0.88);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), background 0.5s, color 0.5s;
  z-index: 200;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  will-change: transform, opacity;
}
.svc-cursor.is-visible {
  opacity: 1;
}
.svc-cursor-arrow {
  width: 14px;
  height: 7px;
  display: block;
  opacity: 0.75;
}
.svc-cursor-label {
  font-size: 10px;
  letter-spacing: 0.24em;
}
/* On dark service bgs (tone="light"), flip to a light cursor */
body[data-svc-tone="light"] .svc-cursor {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}
/* Hide the native cursor while the scroll cursor is showing.
   `cursor` is inherited, so setting it on body cascades down. */
body.svc-cursor-active,
body.svc-cursor-active * { cursor: none; }
/* Also hide the site's global custom cursor (.cursor / .cursor-dot)
   so only the SCROLL cursor shows inside the stack. */
body.svc-cursor-active .cursor,
body.svc-cursor-active .cursor-dot { opacity: 0 !important; }
/* Exception: dots are interactive — show the native pointer there
   and hide the scroll cursor (handled via .svc-cursor.is-hidden in JS). */
body.svc-cursor-active .svc-dots,
body.svc-cursor-active .svc-dots *,
body.svc-cursor-active .svc-dot { cursor: pointer; }
.svc-cursor.is-hidden { opacity: 0; }

@media (max-width: 960px), (hover: none) {
  .svc-cursor { display: none !important; }
}
@media (max-width: 1100px) {
  .svc-media {
    width: clamp(220px, 30vw, 320px);
    height: clamp(300px, 48vh, 420px);
    left: clamp(140px, 14vw, 180px);
  }
  .svc-text-inner {
    max-width: 100%;
    padding-left: clamp(480px, 48vw, 540px);
  }
}
@media (max-width: 960px) {
  /* Hide the desktop sticky media — each service gets its own image */
  .svc-media { display: none; }
  .svc-text-inner {
    max-width: 100%;
    padding-left: 0;
    text-align: left;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  /* Slanted portrait image per service, matching the desktop treatment */
  .svc-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(28px, 4vh, 44px);
  }
  .svc-text::before {
    content: "";
    display: block;
    width: clamp(220px, 60vw, 340px);
    aspect-ratio: 3 / 4;
    background-image: var(--svc-bg);
    background-size: cover;
    background-position: center;
    transform: skewX(-4deg);
    flex-shrink: 0;
  }
  .svc-text[data-text="0"] { --svc-bg: url('../Images/359.jpg'); }
  .svc-text[data-text="1"] { --svc-bg: url('../Images/386.jpg'); }
  .svc-text[data-text="2"] { --svc-bg: url('../Images/5093.jpg'); }
  .svc-text[data-text="3"] { --svc-bg: url('../Images/1126.jpg'); }
  .svc-text[data-text="4"] { --svc-bg: url('../Images/5209.jpg'); }
  .svc-text[data-text="5"] { --svc-bg: url('../Images/619.jpg'); }
}
/* Tablet (721-960): image left, text right — side by side like desktop */
@media (min-width: 721px) and (max-width: 960px) {
  .svc-text {
    flex-direction: row;
    align-items: center;
    gap: clamp(32px, 5vw, 56px);
    padding: 120px var(--pad-x) !important;
    min-height: 0 !important;
  }
  .svc-text::before {
    width: clamp(220px, 32vw, 320px);
  }
  .svc-text-inner {
    flex: 1;
    min-width: 0;
  }
}
.svc-text-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.08em 0;
  margin: -0.08em 0;
}
.svc-text-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-text.is-active .svc-text-line > span {
  transition-delay: 0.20s;
  transform: translateY(0);
}

/* Title — sits inside the line-mask above */
.svc-text-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0 0 36px;
  max-width: 14ch;
}
/* Lead and body — fade up reveal */
.svc-text-lead {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: -0.012em;
  margin: 0 0 22px;
  max-width: 60ch;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.svc-text.is-active .svc-text-lead {
  transition-delay: 0.40s;
  opacity: 1;
  transform: translateY(0);
}
.svc-text-body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  max-width: 56ch;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.svc-text.is-active .svc-text-body {
  transition-delay: 0.55s;
  opacity: 0.78;
  transform: translateY(0);
}

/* Dots — vertical pagination on the left side of the stage */
.svc-dots {
  position: absolute;
  top: 50%;
  left: clamp(20px, 3vw, 48px);
  transform: translateY(-50%);
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc-dots li { line-height: 0; }
/* Anchor is the click target — 24×24 hit area. Visual circle is in ::before. */
.svc-dot {
  display: block;
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
  background: transparent;
  border: 0;
  text-decoration: none;
}
.svc-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  border: 1.5px solid var(--dot-color, var(--ink));
  background: transparent;
  box-sizing: border-box;
  opacity: 0.45;
  transition: opacity 0.5s var(--ease-out),
              border-color 0.6s var(--ease-out),
              background 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}
.svc-stage[data-tone="ink"]   { --dot-color: var(--ink); }
.svc-stage[data-tone="light"] { --dot-color: #fff; }
.svc-dot:hover::before { opacity: 0.9; }
.svc-dot.is-active::before {
  opacity: 1;
  background: var(--dot-color, var(--ink));
  transform: scale(1.35);
}

/* Mobile / tablet: drop the sticky stage, stack panels as plain blocks */
@media (max-width: 960px) {
  .svc-stack { scroll-snap-align: none; }
  .svc-track { display: none; }
  .svc-stage {
    position: static;
    height: auto;
    overflow: visible;
  }
  .svc-bg-stack { display: none; }
  .svc-text-stack { position: static; display: flex; flex-direction: column; }
  .svc-text {
    position: static;
    pointer-events: auto;
    min-height: 80vh;
    padding: clamp(70px, 10vh, 110px) var(--pad-x);
  }
  .svc-text[data-text="0"] { background: var(--paper); }
  .svc-text[data-text="1"] { background: var(--paper-warm); }
  .svc-text[data-text="2"] { background: var(--blue-mid); }
  .svc-text[data-text="3"] { background: var(--paper-gray); }
  .svc-text[data-text="4"] { background: #3d6587; }
  .svc-text[data-text="5"] { background: var(--navy-900); }
  .svc-text-line { overflow: visible; }
  .svc-text-line > span {
    transform: none !important;
    transition: none !important;
  }
  .svc-text-lead,
  .svc-text-body {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .svc-text-body { opacity: 0.78 !important; }
  .svc-dots { display: none; }
}

/* =================================================================
   Resources page
   ================================================================= */
.page-resources .hero-image,
.page-resources .hero-shape-echo { display: none; }
.page-resources .hero-about,
.page-resources .hero-about-stage { height: auto; min-height: 80vh; }

.page-resources .hero-about-content.resources-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr auto 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 80px);
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(120px, 16vh, 180px) var(--pad-x) clamp(80px, 12vh, 140px);
  text-align: left;
}
.resources-hero-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  justify-self: end;
  align-self: start;
  margin-top: clamp(40px, 8vh, 110px);
  margin-right: clamp(-160px, -10vw, -60px);
  padding-left: clamp(24px, 6vw, 100px);
  position: relative;
  z-index: 2;
}
.resources-hero-titles .eyebrow { margin-bottom: 0; }
.resources-hero-titles .hero-about-title {
  text-align: left;
  /* Wide enough that "Tools & Answers" and "for Every Closing"
     each fit on one line, so the <br> in the markup yields exactly
     2 lines at every desktop width */
  max-width: none;
  width: max-content;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.05;
}
.resources-hero-slant {
  position: relative;
  width: clamp(280px, 32vw, 520px);
  height: clamp(320px, 56vh, 540px);
  background: #10293D;
  transform: skewX(-22deg);
  justify-self: center;
  transform-origin: center;
  overflow: hidden;
  animation: resources-slant-reveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.resources-hero-slant::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: var(--slant-bg) center / cover no-repeat;
  transform: rotate(-10deg) scaleX(-1);
  transform-origin: center;
  image-rendering: -webkit-optimize-contrast;
}
.resources-hero-slant::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}
@keyframes resources-slant-reveal {
  0%   { clip-path: inset(0 50% 0 50%); opacity: 0; }
  18%  { opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .resources-hero-slant { animation: none; }
}
.resources-hero-para {
  display: flex;
  align-items: flex-end;
  align-self: end;
  margin-bottom: clamp(40px, 8vh, 110px);
}
.resources-hero-para .story-body {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 38ch;
}

.resources-section {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--paper);
  color: var(--ink);
  position: relative;
}
.resources-section + .resources-section { padding-top: 0; }
.resources-section.resources-faq {
  background: var(--paper-warm);
  padding-top: clamp(80px, 12vh, 140px);
  padding-bottom: clamp(80px, 12vh, 140px);
}
.resources-head {
  margin: 0 auto clamp(40px, 6vh, 72px);
  text-align: center;
  max-width: 880px;
}
.resources-head .eyebrow { justify-content: center; color: var(--ink-80); }
.resources-head .eyebrow-dash { background: rgba(14, 41, 62, 0.55); }
.resources-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.08;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.022em;
  margin: 8px 0 0;
}

.resources-head .resources-title em { font-style: italic; font-weight: 400; }
.resources-head .resources-lead {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-60);
  max-width: 540px;
  margin: 18px auto 0;
}

/* Tabs */
.calc-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(14, 41, 62, 0.14);
  border-bottom: 1px solid rgba(14, 41, 62, 0.14);
  margin: 0 auto clamp(40px, 6vh, 64px);
  max-width: 720px;
}
.calc-tab {
  background: transparent;
  border: none;
  padding: 22px 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.calc-tab:hover { color: var(--ink); }
.calc-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Grid */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.calc-form { display: flex; flex-direction: column; }

/* Fields */
.calc-field { margin-bottom: 28px; }
.calc-field label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 500;
}
.calc-field select,
.calc-field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(14, 41, 62, 0.18);
  background: transparent;
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s var(--ease-out);
}
.calc-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%230e293e' stroke-width='1' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}
.calc-field select:focus,
.calc-field input:focus {
  border-bottom-color: var(--ink);
}
.calc-input-wrap { position: relative; }
.calc-dollar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-60);
  pointer-events: none;
}
.calc-input-wrap input { padding-left: 18px; }

.calc-submit {
  margin-top: 16px;
  align-self: flex-start;
}

/* Result card */
.calc-result-col { display: flex; flex-direction: column; }
.calc-result-card {
  background: var(--navy-900);
  color: #fff;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 40px);
  flex: 1;
}
.calc-result-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 14px;
  font-weight: 500;
}
.calc-result-figure {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  color: #fff;
  margin: 0 0 28px;
  line-height: 1;
  letter-spacing: -0.022em;
}
.calc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 20px;
}
.calc-hint {
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--sans);
  font-size: 14px;
  font-style: italic;
  margin: 0;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--sans);
  font-size: 13px;
}
.calc-row:last-of-type { border-bottom: none; }
.calc-row .lbl { color: rgba(255, 255, 255, 0.78); }
.calc-row .val {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.calc-total-row {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: none;
}
.calc-total-row .lbl {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}
.calc-total-row .val {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
}
.calc-disclaimer {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-60);
  margin: 14px 0 0;
  line-height: 1.7;
  font-style: italic;
}

@media (max-width: 720px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-tab { font-size: 10px; letter-spacing: 0.14em; padding: 18px 4px; }
  .calc-result-figure { font-size: 40px; }
  .calc-result-card { padding: 32px 24px; }
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--silver-hairline);
}
.faq-item { border-bottom: 1px solid var(--silver-hairline); }
.faq-item details { width: 100%; }
.faq-item summary {
  display: flex;
  align-items: center;
  padding: clamp(20px, 3vh, 32px) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.3;
  color: #2B4E75;
  letter-spacing: -0.012em;
  transition: color 0.3s var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary::before {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 28px;
  background: #2B4E75;
  transform: skewX(-14deg);
  border-radius: 0;
  opacity: 0;
  margin-right: 0;
  transition: width 0.4s var(--ease-out), margin-right 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}
.faq-item summary:hover::before,
.faq-item details[open] summary::before {
  width: 6px;
  margin-right: 22px;
  opacity: 1;
}
.faq-item summary:hover,
.faq-item details[open] summary { color: var(--blue-mid); }
.faq-q { flex: 1 1 auto; }
.faq-icon { margin-left: 24px; }
.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.faq-icon::before { width: 16px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1.5px; height: 16px; transform: translate(-50%, -50%); }
.faq-item details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a {
  overflow: hidden;
  height: 0;
  transition: height 0.45s var(--ease-out);
  max-width: 70ch;
}
.faq-item details[open] .faq-a { height: auto; }
.faq-a p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-60);
  margin: 0;
  padding: 0 0 clamp(20px, 3vh, 32px);
}

@media (max-width: 960px) {
  .page-resources .hero-about-content.resources-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: clamp(120px, 18vh, 180px);
  }
  .resources-hero-slant {
    order: -1;
    justify-self: start;
    /* Skew pushes the element outside its layout box by ~tan(angle) * height.
       Constrain the layout width so the visual edges stay inside --pad-x. */
    width: calc(100% - 80px);
    max-width: 100%;
    margin: 0 auto;
    height: clamp(200px, 28vh, 280px);
    transform: skewX(-12deg);
  }
  .resources-hero-titles {
    order: 1;
    justify-self: start;
    margin-right: 0;
    padding-left: 0;
    margin-top: 0;
    max-width: 100%;
  }
  .resources-hero-titles .hero-about-title { max-width: 100%; }
  .resources-hero-para {
    order: 2;
    max-width: 100%;
  }
}
@media (max-width: 720px) {
  .page-resources .hero-about-content.resources-hero-grid { padding-top: clamp(100px, 16vh, 160px); }
  .page-resources .hero-about-title { font-size: clamp(36px, 9vw, 60px); }
  .resources-section { padding: clamp(60px, 9vh, 100px) 0; }
  .faq-item summary { font-size: clamp(17px, 4.4vw, 22px); padding: 18px 0; }
  .resources-calc-card { padding: 40px 24px; }
}

/* Portfolio page */
.portfolio-section {
  padding: clamp(80px, 12vh, 140px) 0 clamp(120px, 18vh, 200px);
  background: var(--navy-900);
  color: #fff;
  position: relative;
}
.portfolio-section--first {
  padding-top: clamp(140px, 18vh, 220px);
}
.portfolio-head {
  margin: 0 auto clamp(40px, 6vh, 72px);
  text-align: center;
  max-width: 880px;
}
.portfolio-head .eyebrow { justify-content: center; color: rgba(255,255,255,0.78); }
.portfolio-head .eyebrow-dash { background: rgba(255,255,255,0.55); }
.portfolio-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.08;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.022em;
  margin: 8px 0 0;
}
.portfolio-title em { font-style: normal; font-weight: 400; color: #fff; }
.portfolio-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px) clamp(24px, 2.4vw, 40px);
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.portfolio-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #10293D center / cover no-repeat;
  overflow: hidden;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* Slanted entrance curtain — sits over the photo, slides off on reveal */
.portfolio-card-img::before {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -25%;
  right: -25%;
  background: var(--navy-900);
  transform: skewX(-18deg) translateX(0);
  transform-origin: top left;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
  will-change: transform;
}
.portfolio-card.reveal .portfolio-card-img::before { transform: skewX(-18deg) translateX(0); }
.portfolio-card.reveal.in-view .portfolio-card-img::before { transform: skewX(-18deg) translateX(140%); }
/* Stagger the curtain slide so cards animate in sequence */
.portfolio-card:nth-child(1) .portfolio-card-img::before { transition-delay: 0ms; }
.portfolio-card:nth-child(2) .portfolio-card-img::before { transition-delay: 90ms; }
.portfolio-card:nth-child(3) .portfolio-card-img::before { transition-delay: 180ms; }
.portfolio-card:nth-child(4) .portfolio-card-img::before { transition-delay: 270ms; }
.portfolio-card:nth-child(5) .portfolio-card-img::before { transition-delay: 360ms; }
.portfolio-card:nth-child(6) .portfolio-card-img::before { transition-delay: 450ms; }

.portfolio-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 25, 43, 0.0) 40%, rgba(6, 25, 43, 0.55) 100%);
  transition: opacity 400ms ease;
  pointer-events: none;
  z-index: 1;
}
.portfolio-card:hover .portfolio-card-img { transform: translateY(-4px); }
.portfolio-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.portfolio-card-meta {
  padding: 20px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.portfolio-card-loc {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.portfolio-card-title {
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.15;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.012em;
  margin: 2px 0 0;
}
.portfolio-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255,255,255,0.62);
}
.portfolio-card-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.32);
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-card .portfolio-card-img::before { display: none; }
}
@media (max-width: 980px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card:nth-child(odd) .portfolio-card-img::before { transition-delay: 0ms; }
  .portfolio-card:nth-child(even) .portfolio-card-img::before { transition-delay: 120ms; }
}
@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 36px; }
  .portfolio-section { padding: clamp(60px, 9vh, 100px) 0; }
  .portfolio-section--first { padding-top: clamp(130px, 20vh, 180px); }
  .portfolio-card-img { aspect-ratio: 1 / 1; }
  .portfolio-card .portfolio-card-img::before { transition-delay: 0ms; }
}

/* ============================================================
   NOTABLE TRANSACTIONS — horizontal slider on home page
   ============================================================ */
.notable {
  background: var(--navy-900);
  color: #fff;
  padding: clamp(100px, 14vh, 160px) 0 clamp(110px, 15vh, 160px);
  position: relative;
}
.notable-head-row {
  margin: 0 0 clamp(40px, 6vh, 72px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.notable-head {
  max-width: 880px;
}
.notable-head .eyebrow { color: rgba(255,255,255,0.78); }
.notable-head .eyebrow-dash { background: rgba(255,255,255,0.55); }
.notable-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.08;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.022em;
  margin: 8px 0 0;
}
.notable-title em { font-style: italic; font-weight: 400; color: #fff; }
.notable-controls {
  display: inline-flex;
  gap: 12px;
  flex-shrink: 0;
}
.notable-ctrl {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.notable-ctrl:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}
.notable-ctrl:active { transform: scale(0.96); }
.notable-ctrl:disabled {
  opacity: 0.32;
  cursor: default;
}
.notable-ctrl .arrow-ic {
  width: 18px;
  height: 9px;
  fill: currentColor;
}
.notable-ctrl--prev .arrow-ic { transform: rotate(180deg); }
.notable-slider {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  /* keep snap aligned with the visual edge where cards begin */
  scroll-padding-left: max(var(--pad-x), calc((100vw - var(--max-w)) / 2 + var(--pad-x)));
}
.notable-slider.is-dragging { cursor: grabbing; }
.notable-slider.is-dragging * { cursor: grabbing; pointer-events: none; }
.notable-slider::-webkit-scrollbar { display: none; }
.notable-track {
  list-style: none;
  margin: 0;
  display: flex;
  gap: clamp(20px, 2vw, 36px);
  padding: 4px 0 8px;
  /* Left padding aligns the first card with the container's content edge;
     right padding lets the last card breathe at the end of the scroll. */
  padding-left: max(var(--pad-x), calc((100vw - var(--max-w)) / 2 + var(--pad-x)));
  padding-right: var(--pad-x);
}
.notable-card {
  flex: 0 0 clamp(260px, 26vw, 360px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.notable-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #10293D center / cover no-repeat;
  overflow: hidden;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.notable-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 25, 43, 0) 45%, rgba(6, 25, 43, 0.55) 100%);
  pointer-events: none;
}
.notable-card:hover .notable-card-img { transform: translateY(-4px); }
.notable-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.notable-card-meta {
  padding: 20px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.notable-card-loc {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.notable-card-title {
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.15;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.012em;
  margin: 2px 0 0;
}
.notable-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255,255,255,0.62);
}
.notable-card-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.32);
}
/* Tablet — show two cards at once, snapping one card at a time. */
@media (min-width: 721px) and (max-width: 1024px) {
  .notable-card { flex-basis: calc((100vw - 2 * 6vw - 24px) / 2); }
  .notable-track {
    padding-left: 6vw;
    padding-right: 6vw;
    gap: 24px;
  }
  .notable-slider { scroll-padding-left: 6vw; }
  .notable-card { scroll-snap-align: start; }
}
/* Mobile — center a single card with adjacent cards peeking in. */
@media (max-width: 720px) {
  .notable-card { flex-basis: 80vw; scroll-snap-align: center; }
  .notable-track { padding-left: 10vw; padding-right: 10vw; gap: 16px; }
  .notable-slider { scroll-padding-left: 10vw; }
  .notable { padding: clamp(70px, 10vh, 110px) 0 clamp(80px, 12vh, 130px); }
  .notable-head-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .notable-ctrl { width: 48px; height: 48px; }
}

/* ===== Contact page ===== */

/* Override the page-about 94vh forced height so the hero hugs its content */
.page-contact.page-about .hero-about,
.page-contact.page-about .hero-about-stage {
  height: auto;
}
.page-contact .hero-about-content {
  position: relative;
  inset: auto;
}

/* Hero — 3-col grid: title | slant shape | quick info, mirrors resources hero */
.page-contact .hero-about-content.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
  padding-right: var(--pad-x);
  padding-top: clamp(170px, 24vh, 260px);
  padding-bottom: clamp(80px, 10vh, 140px);
}
.page-contact .contact-hero-titles {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 36px);
}
.page-contact .hero-about-title {
  text-align: left;
  max-width: 14ch;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.05;
}
.contact-hero-slant {
  position: relative;
  width: clamp(220px, 24vw, 380px);
  height: clamp(320px, 46vh, 460px);
  background: var(--navy-800);
  transform: skewX(-22deg);
  justify-self: center;
  transform-origin: center;
  overflow: hidden;
  animation: contact-slant-reveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.contact-hero-slant::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: var(--slant-bg) center / cover no-repeat;
  transform: rotate(10deg) scaleX(-1);
  transform-origin: center;
  image-rendering: -webkit-optimize-contrast;
}
.contact-hero-slant::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 25, 43, 0.0) 30%, rgba(6, 25, 43, 0.45) 100%);
}
@keyframes contact-slant-reveal {
  0%   { clip-path: inset(0 50% 0 50%); opacity: 0; }
  18%  { opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-hero-slant { animation: none; }
}
.contact-hero-info {
  align-self: end;
  display: flex;
  flex-direction: column;
}
.contact-quick {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.4vh, 38px);
  text-align: right;
}
.contact-quick li { display: block; }
.contact-quick-value {
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 200ms ease;
  display: inline-block;
}
.contact-quick-value--static { display: block; }
a.contact-quick-value {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
a.contact-quick-value::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: right;
  transform: scaleX(1);
}
a.contact-quick-value:hover { color: var(--silver); }
a.contact-quick-value:hover::after {
  animation: underline-sweep 0.75s var(--ease-expo);
}

/* Form section */
.contact-section {
  position: relative;
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--paper-warm);
  color: var(--ink);
  overflow: hidden;
}
.contact-section > .container { position: relative; z-index: 1; }
.contact-head {
  margin: 0 auto clamp(40px, 6vh, 72px);
  text-align: center;
  max-width: 880px;
}
.contact-head .eyebrow { justify-content: center; color: var(--ink-80); }
.contact-head .eyebrow-dash { background: rgba(14, 41, 62, 0.55); }
.contact-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.08;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.022em;
  margin: 8px 0 0;
}
.contact-title em { font-style: italic; font-weight: 400; }

/* Form layout */
.contact-form {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  background: #fff;
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 44px);
  border: 1px solid rgba(14,41,62,0.08);
  box-shadow: 0 30px 80px -40px rgba(6,25,43,0.25);
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
.contact-form-row--meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.contact-form-row--toggles { grid-template-columns: 1fr 1.4fr; align-items: start; }
.contact-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 22px);
  border-top: 1px solid rgba(14,41,62,0.10);
  padding-top: clamp(20px, 3vh, 32px);
}
.contact-fieldset:first-of-type { border-top: 0; padding-top: 0; }
.contact-legend {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-800);
  padding: 0;
  margin-bottom: 4px;
}
.contact-field { display: flex; flex-direction: column; gap: 8px; }
.contact-field--full { grid-column: 1 / -1; }
.contact-field label,
.contact-field-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field input[type="tel"],
.contact-field input[type="date"],
.contact-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(14,41,62,0.18);
  padding: 14px 22px;
  border-radius: 999px;
  transition: border-color 200ms ease;
  appearance: none;
  -webkit-appearance: none;
}
.contact-field textarea {
  resize: vertical;
  min-height: 96px;
  border-radius: 22px;
  padding: 14px 20px;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--navy-800);
}
.contact-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(14,41,62,0.18);
  border-radius: 999px;
  background: #fff;
  padding: 0 22px;
  transition: border-color 200ms ease;
}
.contact-input-wrap:focus-within { border-color: var(--navy-800); }
.contact-input-wrap .contact-dollar {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-60);
  margin-right: 6px;
}
.contact-input-wrap input {
  flex: 1;
  border: 0 !important;
  padding: 14px 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* Radio toggles (Purchase/Refinance, Yes/No) */
.contact-radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-radio {
  position: relative;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
}
.contact-radio input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.contact-radio span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1.5px solid rgba(14,41,62,0.18);
  border-radius: 999px;
  color: var(--ink-80);
  background: transparent;
  letter-spacing: 0.04em;
  transition: all 200ms ease;
  position: relative;
}
.contact-radio:hover span { border-color: var(--navy-800); color: var(--navy-800); }
.contact-radio input:focus-visible + span {
  outline: 2px solid var(--navy-300);
  outline-offset: 2px;
}
.contact-radio input:checked + span {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}

.contact-helper {
  margin: -4px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-60);
  font-style: italic;
}
.contact-form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: clamp(8px, 1vh, 16px);
}
.contact-submit {
  --btn-fg: #fff;
  --btn-bd: var(--navy-800);
  background: var(--navy-800);
}
.contact-submit:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
}
.contact-disclaimer {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-60);
  margin: 0;
  text-align: center;
}

/* Tablet */
@media (max-width: 980px) {
  .page-contact .hero-about-content.contact-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: clamp(120px, 18vh, 180px);
  }
  /* Slanted image on top — visible, within page margins */
  .contact-hero-slant {
    order: -1;
    justify-self: start;
    width: calc(100% - 80px);
    max-width: 100%;
    margin: 0 auto;
    height: clamp(200px, 28vh, 280px);
    transform: skewX(-12deg);
    animation: none;
  }
  .contact-hero-slant::before { display: block; transform: rotate(0deg) scaleX(1); }
  .contact-hero-slant::after { display: block; }
  /* Titles + info left-aligned and full width */
  .page-contact .contact-hero-titles { order: 1; align-items: flex-start; text-align: left; }
  .contact-hero-info {
    order: 2;
    align-self: start;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }
  .contact-quick {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
  }
  .contact-quick li { text-align: left; align-self: flex-start; }
  .contact-quick-value,
  .contact-quick-value--static { text-align: left; }
  .contact-form-row,
  .contact-form-row--meta,
  .contact-form-row--toggles { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 600px) {
  .page-contact .hero-about-title { font-size: clamp(34px, 9vw, 56px); text-align: left; max-width: 100%; }
  .contact-section { padding: clamp(60px, 9vh, 100px) 0; }
  .contact-form { padding: 28px 20px; }
  .contact-quick { gap: 16px; }
}

/* ── Gravity Forms — matches .contact-form design ─────────── */

#gform_1 {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  background: #fff;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(14,41,62,0.08);
  box-shadow: 0 30px 80px -40px rgba(6,25,43,0.25);
}

#gform_1 .gform-body { display: contents; }

/* Field grid */
#gform_1 .gform_fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
#gform_1 .gfield--width-half { grid-column: span 1; }
#gform_1 .gfield--width-full { grid-column: 1 / -1; }

/* Section headings (HTML fields) */
#gform_1 .gfield--type-html {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-800);
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid rgba(14,41,62,0.10);
  margin-bottom: -4px;
}

/* Labels */
#gform_1 .gfield_label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-60);
  display: block;
  margin-bottom: 8px;
}

/* Standard text / email / tel / date inputs */
#gform_1 .ginput_container input[type="text"],
#gform_1 .ginput_container input[type="email"],
#gform_1 .ginput_container input[type="tel"],
#gform_1 .ginput_container_date input {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(14,41,62,0.18);
  padding: 14px 22px;
  border-radius: 999px;
  transition: border-color 200ms ease;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
#gform_1 .ginput_container input[type="text"]:focus,
#gform_1 .ginput_container input[type="email"]:focus,
#gform_1 .ginput_container input[type="tel"]:focus,
#gform_1 .ginput_container_date input:focus {
  outline: none;
  border-color: var(--navy-800);
}

/* Textareas */
#gform_1 .ginput_container textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(14,41,62,0.18);
  padding: 14px 20px;
  border-radius: 22px;
  transition: border-color 200ms ease;
  resize: vertical;
  min-height: 96px;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
#gform_1 .ginput_container textarea:focus {
  outline: none;
  border-color: var(--navy-800);
}

/* Number inputs with $ prefix */
#gform_1 .ginput_container_number {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(14,41,62,0.18);
  border-radius: 999px;
  background: #fff;
  padding: 0 22px;
  transition: border-color 200ms ease;
}
#gform_1 .ginput_container_number:focus-within { border-color: var(--navy-800); }
#gform_1 .ginput_container_number::before {
  content: "$";
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-60);
  margin-right: 6px;
  flex-shrink: 0;
}
#gform_1 .ginput_container_number input[type="number"] {
  flex: 1;
  border: 0 !important;
  outline: none !important;
  padding: 14px 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  -moz-appearance: textfield;
}
#gform_1 .ginput_container_number input[type="number"]::-webkit-inner-spin-button,
#gform_1 .ginput_container_number input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Radio groups — pill toggle buttons */
#gform_1 .ginput_container_radio .gfield_radio {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  flex-wrap: wrap;
}
#gform_1 .gchoice {
  position: relative;
  display: inline-flex !important;
  font-family: var(--sans);
  font-size: 14px;
}
#gform_1 .gfield-choice-input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
  margin: 0;
}
#gform_1 .gchoice label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1.5px solid rgba(14,41,62,0.18);
  border-radius: 999px;
  color: var(--ink-80);
  background: transparent;
  letter-spacing: 0.04em;
  transition: all 200ms ease;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
}
#gform_1 .gchoice label:hover { border-color: var(--navy-800); color: var(--navy-800); }
#gform_1 .gfield-choice-input:checked + label {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}
#gform_1 .gfield-choice-input:focus-visible + label {
  outline: 2px solid var(--navy-300);
  outline-offset: 2px;
}

/* Submit button */
#gform_1 .gform_footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: clamp(8px, 1vh, 16px);
  margin-top: clamp(8px, 1vh, 16px);
}
#gform_1 .gform_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: 999px;
  background: var(--navy-800);
  color: #fff;
  border: 1.5px solid var(--navy-800);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
  appearance: none;
  -webkit-appearance: none;
}
#gform_1 .gform_button:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

/* Helper text (prior owner's policy note) */
#field_1_18,
#field_1_18 span {
  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  font-style: italic !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--ink-60) !important;
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Validation error border */
#gform_1 .gfield_error .ginput_container input,
#gform_1 .gfield_error .ginput_container textarea {
  border-color: #c53030;
}

/* Hide GF chrome we don't need */
#gform_1 .gfield_required,
#gform_1 .gfield_description,
#gform_1 .validation_message { display: none; }

/* Mobile */
@media (max-width: 640px) {
  #gform_1 { padding: 28px 20px; }
  #gform_1 .gform_fields { grid-template-columns: 1fr; }
  #gform_1 .gfield--width-half { grid-column: 1 / -1; }
}
