/* =========================================================
   Greybrook Advisors
   Palette: white, slate grey, and Sixth Street slate blue
   ========================================================= */

/* Self-hosted fonts (latin subset). Newsreader is pinned to its display optical size. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("../assets/fonts/newsreader-display-latin-300-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("../assets/fonts/newsreader-display-italic-latin-300-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-400-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --navy: #172F4D;          /* Sixth Street slate blue (primary) */
  --navy-deep: #0F2440;
  --steel: #286496;         /* Sixth Street secondary blue, used sparingly */
  /* Warm neutrals (sunlit plaster, linen, oak) replace the original cool slate greys */
  --slate: #736558;         /* warm taupe for labels and secondary text */
  --slate-400: #988B7E;
  --slate-300: #B8ADA1;
  --slate-200: #DDD3C7;
  --slate-100: #ECE5DB;
  --mist: #F7F1E9;          /* warm ivory section background */
  --sand: #EFE4D6;          /* deeper warm band */
  --white: #FFFFFF;
  --cognac: #9C5B31;        /* warm accent, used sparingly */

  /* Text */
  --ink: #1E2228;
  --body: #4D4741;

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(88px, 11vw, 160px);
  --header-h: 84px;

  --ease: cubic-bezier(.2, .7, .2, 1);

  interpolate-size: allow-keywords;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  font-size: .875rem;
}
.skip-link:focus { top: 16px; }

/* ---------- Shared type ---------- */

.eyebrow,
.kicker {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.75rem;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 20px;
}
.kicker::after {
  color: var(--cognac);
  content: "";
  width: 72px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.kicker-light { color: var(--slate); }

.section { padding-block: var(--section-y); }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -.012em;
  max-width: 18em;
}

.section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
.section-sub {
  color: var(--body);
  font-size: 1.0625rem;
  max-width: 34em;
}

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

/* ---------- Audience: owners / acquirers ---------- */

/* Only the active audience's copy is shown; <html data-audience> is set before first paint */
html[data-audience="owners"] [data-for="acquirers"],
html[data-audience="acquirers"] [data-for="owners"] { display: none !important; }

@keyframes audience-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.audience-switching [data-for] { animation: audience-in .55s var(--ease); }

.audience-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-bottom: 2.25rem;
  border: 1px solid rgba(23, 47, 77, .22);
  border-radius: 3px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.audience-switch::before {
  content: "";
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 2px;
  background: var(--navy);
  transition: transform .45s var(--ease);
}
html[data-audience="acquirers"] .audience-switch::before { transform: translateX(100%); }
.audience-switch button {
  position: relative;
  z-index: 1;
  padding: 11px 22px;
  border: 0;
  background: none;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--navy);
  transition: color .35s var(--ease);
}
.audience-switch button:hover { color: var(--steel); }
html[data-audience="owners"] .audience-switch [data-set-audience="owners"],
html[data-audience="acquirers"] .audience-switch [data-set-audience="acquirers"] { color: var(--white); }

.mobile-audience { padding: 20px var(--gutter) 4px; }
.mobile-audience .audience-switch { display: grid; width: 100%; margin: 0; }
.mobile-audience .audience-switch button { padding: 12px 6px; font-size: .6875rem; letter-spacing: .06em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }

.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-ghost {
  padding-inline: 4px;
  color: var(--navy);
}
.btn-ghost span { transition: transform .3s var(--ease); }
.btn-ghost:hover span { transform: translateX(5px); }

.btn-header {
  min-height: 42px;
  padding: 0 20px;
  font-size: .75rem;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-header:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--navy);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 72px;
  background: rgba(252, 249, 244, .96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--slate-100);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  margin-right: auto;
}
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: .02em;
}
.brand-sub {
  margin-top: 5px;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--slate);
}

.primary-nav ul { display: flex; gap: 36px; }
.primary-nav a {
  position: relative;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding-block: 8px;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--navy);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  background: #FCF9F4;
  border-top: 1px solid var(--slate-100);
  box-shadow: 0 24px 40px -24px rgba(15, 36, 64, .25);
}
.mobile-menu ul { padding: 12px var(--gutter) 28px; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-100);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--navy);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #F2E7DC; /* warm wall tone of the header photo */
}

.hero-media,
.hero-veil { position: absolute; inset: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.06);
  transition: transform 2.8s var(--ease);
}
.is-loaded .hero-media img { transform: scale(1); }
.hero-media picture { display: block; width: 100%; height: 100%; }

/* Hero copy fades up on load with CSS alone, so the headline paints without waiting for scripts */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero-in { animation: hero-in .9s var(--ease) both; }
.hero-copy > .hero-in:nth-child(2) { animation-delay: .06s; }
.hero-copy > .hero-in:nth-child(3) { animation-delay: .12s; }
.hero-copy > .hero-in:nth-child(4) { animation-delay: .18s; }
.hero-copy > .hero-in:nth-child(5) { animation-delay: .24s; }

/* Soft warm veil keeps navy type crisp over the sunlit wall on the left */
.hero-veil {
  background:
    linear-gradient(90deg, rgba(248,241,233,.7) 0%, rgba(248,241,233,.42) 30%, rgba(248,241,233,0) 52%),
    linear-gradient(180deg, rgba(248,241,233,.45) 0%, rgba(248,241,233,0) 20%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 20px);
  padding-bottom: 14vh;
}

.hero-copy { max-width: min(700px, 52vw); }
.hero .eyebrow { color: var(--navy); opacity: .75; }

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 4.4vw, 4.375rem);
  line-height: 1.06;
  letter-spacing: -.018em;
  color: var(--navy);
  margin-bottom: 1.75rem;
  text-wrap: balance;
}

.hero-lede {
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.6;
  color: #2B3B4C;
  max-width: 30em;
  margin-bottom: 0;
}
.hero-lede-wrap { margin-bottom: 2.5rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.scroll-cue i {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--navy), rgba(23,47,77,0));
  transform-origin: top;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Intro / Mandate ---------- */

.intro .kicker { justify-content: center; }
.intro .kicker::before {
  content: "";
  width: 72px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  text-align: center;
  max-width: 20em;
  margin: 0 auto clamp(56px, 7vw, 96px);
}
.statement em {
  display: block;
  font-style: italic;
  color: var(--slate);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: 1080px;
  margin-inline: auto;
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--slate-100);
}

.intro-figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mist);
}
.intro-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-col .lead { margin-bottom: 1.25em; }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--navy);
}

.pillars {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(56px, 7vw, 96px);
}
.pillars li {
  padding: 4px clamp(20px, 3vw, 44px);
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-style: italic;
  color: var(--navy);
}
.pillars li + li { border-left: 1px solid var(--slate-300); }

/* ---------- Stats ---------- */

.stats {
  background: var(--sand);
  color: var(--navy);
  padding-block: clamp(64px, 8vw, 104px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 14px;
  padding: 8px clamp(16px, 2.6vw, 40px);
}
.stat + .stat { border-left: 1px solid rgba(156, 91, 49, .22); }
.stat:first-child { padding-left: 0; }
.stat dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 5.4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat dt {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--body);
  max-width: 17em;
}

/* ---------- Differentiators ---------- */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(32px, 4vw, 64px);
  row-gap: clamp(48px, 5vw, 72px);
}
.diff {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--slate-200);
}
.diff::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.diff:hover::before { transform: scaleX(1); }
.diff-num {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--slate);
  margin-bottom: 20px;
}
.diff h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.9vw, 1.75rem);
  line-height: 1.2;
  margin-bottom: 14px;
}
.diff p { font-size: .975rem; }

/* ---------- Process ---------- */

.process {
  background: var(--mist);
  padding-bottom: var(--section-y);
}

/* Full-bleed team photo band; the heading sits on the open wall, top left */
.process-hero {
  position: relative;
  /* Photo's natural proportions (2600x1103 = 42.43vw tall), never shorter than 440px or taller than 82vh */
  height: clamp(440px, 42.43vw, 82vh);
  overflow: hidden;
}
.process-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% - 3px); /* end the photo under the opaque fade so no seam shows */
  object-fit: cover;
  object-position: 50% 45%;
}
.process-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 75% at 0% 0%, rgba(250,245,238,.6), rgba(250,245,238,0) 72%),
    linear-gradient(180deg, rgba(247,241,233,0) 68%, var(--mist) 95%);
  pointer-events: none;
}
.process-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(56px, 6vw, 96px);
}
.process-hero .section-title { max-width: 15em; }

.process-body { padding-top: clamp(40px, 5vw, 72px); }
.process-intro {
  font-size: 1.0625rem;
  max-width: 34em;
  margin-bottom: 0;
}
.process-intro-wrap { margin-bottom: clamp(48px, 6vw, 88px); }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 2.4vw, 40px);
}
.steps::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 46px;
  height: 1px;
  background: var(--slate-200);
}
.steps::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 46px;
  height: 1px;
  background: var(--cognac);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}
html:not(.js) .steps::after { display: none; }
.step { position: relative; }
.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--slate);
  margin-bottom: 12px;
}
.step-dot {
  position: relative;
  display: block;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--mist);
  border: 1.5px solid var(--navy);
  margin-bottom: 32px;
  z-index: 1; /* sits above the drawn line */
  transition: background-color .4s var(--ease), box-shadow .6s var(--ease), transform .4s var(--ease);
}
.step:hover .step-dot,
.step:last-child .step-dot { background: var(--navy); }

/* Steps light up in turn as the line reaches them (main.js adds .is-lit) */
.js .step:last-child:not(.is-lit) .step-dot { background: var(--mist); }
.js .step h3,
.js .step p,
.js .step .step-num { transition: opacity .6s var(--ease), color .6s var(--ease); }
.js .step:not(.is-lit) h3,
.js .step:not(.is-lit) p { opacity: .5; }
.step.is-lit .step-dot {
  background: var(--navy);
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(156, 91, 49, .16);
}
.step.is-lit .step-num { color: var(--cognac); }
.step h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.8vw, 1.75rem);
  line-height: 1.15;
  margin-bottom: 12px;
}
.step p { font-size: .975rem; max-width: 17em; }

/* ---------- Sectors ---------- */

.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--slate-100);
  border: 1px solid var(--slate-100);
}
.sector {
  background: var(--white);
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.sector-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist);
}
.sector-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.sector:hover .sector-media img { transform: scale(1.045); }
.sector-body {
  padding: clamp(24px, 2.4vw, 36px) clamp(24px, 2.4vw, 36px) clamp(36px, 3vw, 48px);
}
.sector header {
  min-height: 8.25rem;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--slate-100);
  transition: border-color .45s var(--ease);
}
.sector-idx {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--slate);
  margin-bottom: 14px;
  transition: color .45s var(--ease);
}
.sector h3 {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.7vw, 1.625rem);
  line-height: 1.2;
  padding-bottom: 24px;
  transition: color .45s var(--ease);
}
.sector li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: .9375rem;
  line-height: 1.5;
}
.sector li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 10px; height: 1px;
  background: var(--slate-300);
}
.sector:hover { background: var(--mist); }
.sector:hover .sector-idx { color: var(--cognac); }
.sector:hover header { border-color: var(--slate-200); }

/* ---------- Image band ---------- */

.image-band {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--navy);
}
.image-band-media {
  position: absolute;
  inset: -12% 0;
  background: #E9DCCB 70% 50% / cover no-repeat;
  will-change: transform;
}
/* Loaded only once the band is near the viewport (main.js adds .is-near) */
html:not(.js) .image-band-media,
.image-band.is-near .image-band-media {
  background-image: url("../assets/img/quote-country-lane-1400.webp");
  background-image: image-set(
    url("../assets/img/quote-country-lane-1400.webp") 1x,
    url("../assets/img/quote-country-lane-2600.webp") 2x
  );
}
/* Navy on the left (quote side) easing off over the brook and bridge */
.image-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(250, 245, 238, .9) 0%, rgba(250, 245, 238, .7) 38%, rgba(250, 245, 238, 0) 62%);
}
.image-band-inner { position: relative; z-index: 2; }
.band-quote { margin: 0; }
.band-quote p {
  max-width: 13em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin-bottom: 1.5rem;
  color: var(--navy);
}
.band-quote footer {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cognac);
}

/* ---------- Testimonials ---------- */

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.carousel-count {
  margin-right: 16px;
  font-size: .8125rem;
  letter-spacing: .12em;
  color: var(--slate);
}
.carousel-count b { color: var(--navy); font-weight: 600; }
.arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background: none;
  color: var(--navy);
  font-size: 1.125rem;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.arrow:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

.carousel {
  display: grid;
  border-top: 1px solid var(--slate-100);
  padding-top: clamp(40px, 5vw, 72px);
}
.voice {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease-out, transform .3s ease-out, visibility 0s linear .3s;
}
.voice.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .6s var(--ease) .3s, transform .6s var(--ease) .3s, visibility 0s;
}
.voice blockquote {
  margin: 0 0 36px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.375rem);
  line-height: 1.32;
  letter-spacing: -.008em;
  color: var(--navy);
  max-width: 30em;
}
.voice figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: .875rem;
}
.voice-name { font-weight: 600; color: var(--navy); }
.voice-co { color: var(--slate); }
.voice-co::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  margin-right: 16px;
  vertical-align: middle;
  background: var(--slate-300);
}

.voices-note {
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--slate-100);
  font-size: .8125rem;
  font-style: italic;
  color: var(--slate);
}

/* ---------- FAQs ---------- */

.faqs { background: var(--mist); }
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.faq-aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.faq-aside .section-title { margin-bottom: 24px; }
.faq-aside .section-sub { margin-bottom: 36px; }

.accordion { border-top: 1px solid var(--slate-200); }
.faq { border-bottom: 1px solid var(--slate-200); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  line-height: 1.35;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
  border: 1px solid var(--slate-300);
  border-radius: 50%;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease);
}
.faq summary i::before,
.faq summary i::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 1.5px;
  margin: -.75px 0 0 -5.5px;
  background: var(--navy);
  transition: transform .4s var(--ease), background-color .3s var(--ease);
}
.faq summary i::after { transform: rotate(90deg); }
.faq summary:hover i { border-color: var(--navy); }
.faq[open] summary i { background: var(--navy); border-color: var(--navy); }
.faq[open] summary i::before,
.faq[open] summary i::after { background: var(--white); }
.faq[open] summary i::after { transform: rotate(0deg); }

.faq::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
}
.faq[open]::details-content { block-size: auto; }

.faq-body {
  padding: 0 56px 30px 0;
  font-size: .975rem;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--sand);
  color: var(--body);
}

/* Photo panel bleeds to the left edge; heading, details and form sit on navy */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.contact-media {
  position: relative;
  margin: 0;
  background: #E2D3C1;
}
/* Pinned under the header while the form scrolls past, so both chairs stay in frame */
.contact-media img {
  position: sticky;
  top: 72px;
  display: block;
  width: 100%;
  height: calc(100vh - 72px);
  max-height: 100%;
  object-fit: cover;
  object-position: 30% 74%;
}
.contact-content {
  width: 100%;
  max-width: 760px;
  padding: var(--section-y) var(--gutter) var(--section-y) clamp(40px, 5.5vw, 96px);
}
.contact-intro { margin-bottom: clamp(40px, 4.5vw, 56px); }
.contact .section-title { color: var(--navy); margin-bottom: 24px; }
.contact-intro > p:not(.kicker) { font-size: 1.0625rem; max-width: 30em; }

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin-top: 36px;
  border-top: 1px solid rgba(115, 101, 88, .25);
}
.contact-list li {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(115, 101, 88, .25);
  color: var(--navy);
}
.contact-list span {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 4px;
}
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.contact-form {
  background: var(--white);
  color: var(--body);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 2px;
  box-shadow: 0 24px 48px -32px rgba(60, 40, 20, .25);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.field {
  display: block;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}
.field > span,
.field legend {
  display: block;
  padding: 0;
  margin-bottom: 6px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}
.field input,
.field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--slate-200);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--navy); }
.field input[aria-invalid="true"] { border-bottom-color: #A33A3A; }

.field-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.field-choice legend { width: 100%; margin-bottom: 12px; }
.field-choice label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  color: var(--ink);
  cursor: pointer;
}
.field-choice input {
  appearance: none;
  width: 16px; height: 16px;
  margin: 0;
  border: 1px solid var(--slate-300);
  border-radius: 50%;
  display: grid;
  place-content: center;
}
.field-choice input::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--navy);
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.field-choice input:checked { border-color: var(--navy); }
.field-choice input:checked::before { transform: scale(1); }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}
.form-note { margin: 0; font-size: .8125rem; color: var(--slate); }
.form-status {
  margin: 20px 0 0;
  font-size: .9375rem;
  color: var(--navy);
}
.form-status:empty { display: none; }

/* Spam trap: kept out of view and out of the tab order */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--slate-300);
  padding: 72px 0 40px;
  font-size: .875rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(159, 171, 180, .2);
}
.brand-footer { color: var(--white); margin-right: 0; }
.brand-footer .brand-sub { color: var(--slate-300); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer-nav a { color: var(--slate-200); transition: color .3s; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 64px;
  padding-top: 32px;
}
.disclaimer {
  max-width: 62em;
  justify-self: end;
  text-align: right;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--slate-400);
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { transform: none; }
  .hero-media img { transform: none; }
  .hero-in { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .primary-nav ul { gap: 26px; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .sector header { min-height: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 56px; }
  .steps::before,
  .steps::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 960px) {
  .primary-nav, .btn-header { display: none; }
  .menu-toggle { display: block; }
  .site-header.menu-open { background: var(--white); box-shadow: 0 1px 0 var(--slate-100); }

  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head-split { grid-template-columns: 1fr; gap: 24px; }
  .carousel-controls { justify-content: flex-start; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }

  /* Contact: photo becomes a banner above the content */
  .contact-split { grid-template-columns: 1fr; }
  .contact-media { aspect-ratio: 4 / 3; max-height: 520px; width: 100%; }
  .contact-media img { position: absolute; inset: 0; height: 100%; max-height: none; object-position: 40% 72%; }
  .contact-content { max-width: none; padding: clamp(56px, 9vw, 88px) var(--gutter) var(--section-y); }
  .footer-bottom { grid-template-columns: 1fr; }
  .disclaimer { justify-self: start; text-align: left; }
}

/* Desktop: split header, headline on the warm panel at left, boardroom photo filling the right half */
@media (min-width: 961px) {
  .hero-media { left: 50%; }
  .hero-media img { object-position: 71% 50%; } /* keeps all four people in frame */
  .hero-veil {
    left: 50%;
    background: linear-gradient(180deg, rgba(248, 241, 233, .6) 0%, rgba(248, 241, 233, 0) 20%);
  }
  .hero-copy { max-width: min(620px, calc(50vw - var(--gutter) - 48px)); }
  .hero-title { font-size: clamp(2.25rem, 3.4vw, 3.75rem); }
  .scroll-cue { left: 25%; }
}

/* Tablets: copy first on the warm wall tone, then the photo of the meeting below */
@media (min-width: 721px) and (max-width: 960px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-inner { order: 1; padding-top: calc(var(--header-h) + 56px); padding-bottom: 48px; }
  .hero-media { order: 2; position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .hero-media img { object-position: 50% 50%; }
  .hero-veil, .scroll-cue { display: none; }
  .hero-copy { max-width: 640px; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .site-header.is-scrolled { --header-h: 64px; }

  /* Phones: copy first on the warm wall tone, then a square crop of the executives */
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-inner { order: 1; padding-top: calc(var(--header-h) + 32px); padding-bottom: 36px; }
  .hero-media { order: 2; position: relative; inset: auto; aspect-ratio: 1 / 1; }
  .hero-media img { object-position: 50% 50%; }
  .hero-veil, .scroll-cue { display: none; }
  .hero-copy { max-width: none; }
  .hero-title { font-size: clamp(2.25rem, 9vw, 2.75rem); }
  .hero-actions .btn-primary { width: 100%; }
  .hero-actions .btn-ghost { display: none; }
  .hero .audience-switch { display: grid; width: 100%; margin-bottom: 1.75rem; }
  .hero .audience-switch button { padding: 11px 6px; font-size: .6875rem; letter-spacing: .06em; }

  .intro-grid { grid-template-columns: 1fr; }
  .pillars { flex-direction: column; align-items: center; gap: 10px; }
  .pillars li + li { border-left: 0; }

  .stats-grid { grid-template-columns: 1fr; row-gap: 0; }
  .stat,
  .stat:first-child,
  .stat:nth-child(3) {
    padding: 28px 0;
    border-left: 0;
  }
  .stat + .stat { border-top: 1px solid rgba(156, 91, 49, .22); }

  .diff-grid { grid-template-columns: 1fr; }

  /* Phones: photo on top, heading below it on the mist background */
  .process-hero { height: auto; overflow: visible; }
  .process-hero-img { position: relative; height: 260px; object-position: 74% 40%; }
  .process-hero::after { bottom: auto; height: 263px; background: linear-gradient(180deg, rgba(247,241,233,0) 58%, var(--mist) 96%); }
  .process-hero-inner { padding-top: 32px; }
  .process-body { padding-top: 20px; }

  .steps { grid-template-columns: 1fr; row-gap: 0; padding-left: 28px; }
  .steps::before,
  .steps::after { display: block; left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .steps::after { transform: scaleY(var(--progress, 0)); transform-origin: center top; }
  .step { padding-bottom: 40px; }
  .step:last-child { padding-bottom: 0; }
  .step-dot { position: absolute; left: -28px; top: 6px; margin: 0; }
  .step-num { margin-bottom: 4px; }

  .sector-grid { grid-template-columns: 1fr; }

  /* Phones: frame the bridge, and tint evenly since the quote spans the full width */
  .image-band { align-items: flex-start; }
  .image-band-inner { padding-top: 56px; }
  .image-band-media { background-position: 90% 50%; }
  .image-band::before { background: linear-gradient(180deg, rgba(250, 245, 238, .92) 0%, rgba(250, 245, 238, .75) 45%, rgba(250, 245, 238, 0) 75%); }

  .contact-list { grid-template-columns: 1fr; }

  /* Comfortable 44px tap targets on phones */
  .field-choice { gap: 0 24px; }
  .field-choice label { min-height: 44px; }
  .contact-list a { display: inline-block; padding: 9px 0; margin: -9px 0; }
  .footer-nav { gap: 0 28px; }
  .footer-nav a { display: inline-block; padding: 12px 0; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-foot .btn { width: 100%; }
}
