/* ==================================================================== */
/* Visage Management design system                                       */
/* Ivory / noir editorial palette, Didot-led serif, restrained green &   */
/* gold accents.                                                         */
/* ==================================================================== */

:root {
  --paper: #f5f2ea;
  --paper-2: #edeade;
  --ink: #16150f;
  --muted: #5f5c50;
  --noir: #0b0b09;
  --noir-2: #14130f;
  --line: rgba(22, 21, 15, 0.14);
  --line-dark: rgba(245, 242, 234, 0.14);
  --green: #1d5640;
  --green-deep: #143e2e;
  --green-soft: #7fa892;
  --gold: #b3986a;
  --gold-soft: #cdb78e;
  --platinum: #c9c5b8;

  --serif: "Didot", "Bodoni 72", "Playfair Display", "Georgia", serif;
  --sans: "Avenir Next", "Avenir", "Helvetica Neue", "Inter", -apple-system, system-ui, "Segoe UI", sans-serif;

  --max: 1240px;
  --radius: 4px;
  --space-section: clamp(84px, 10vw, 156px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --hero-progress: 0;
  --hero-scale: 1.045;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

input[type="file"] {
  cursor: pointer;
}

::selection {
  background: var(--green);
  color: var(--paper);
}

/* -------------------------------------------------------------------- */
/* Typography                                                            */
/* -------------------------------------------------------------------- */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.002em;
  line-height: 1.02;
}

h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.9rem, 6.4vw, 5.9rem);
}

h2 {
  max-width: 30ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.1rem, 4.3vw, 3.9rem);
}

h1 em,
h2 em {
  font-style: italic;
  color: inherit;
}

h3 {
  margin-bottom: 0.8rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.9vw, 1.66rem);
  line-height: 1.12;
}

.eyebrow {
  display: block;
  margin: 0 0 1.15rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.on-dark .eyebrow,
.eyebrow--light {
  color: var(--gold-soft);
}

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.on-dark .lede {
  color: rgba(245, 242, 234, 0.72);
}

/* -------------------------------------------------------------------- */
/* Layout primitives                                                     */
/* -------------------------------------------------------------------- */

.section-shell {
  width: min(100% - 44px, var(--max));
  margin-inline: auto;
}

.section-pad {
  padding: var(--space-section) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.85fr);
  gap: clamp(2.25rem, 7vw, 7rem);
  align-items: start;
}

.text-stack p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.7;
}

.text-stack p:last-child {
  margin-bottom: 0;
}

.on-dark {
  background: var(--noir);
  color: var(--paper);
}

.on-dark .text-stack p {
  color: rgba(245, 242, 234, 0.7);
}

.rule-top {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.6rem, 3vw, 2.6rem);
}

/* Reveal-on-scroll. Hidden state only applies once script.js has run
   (it stamps data-visage-version on <html>), so content is never lost
   if JavaScript fails to load. */

html[data-visage-version] [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
}

html[data-visage-version] [data-reveal].in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* -------------------------------------------------------------------- */
/* Skip link                                                             */
/* -------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--paper);
  padding: 0.75rem 1.15rem;
  transition: transform 200ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  transition: background 360ms ease, backdrop-filter 360ms ease;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  width: min(100% - 44px, 1360px);
  margin-inline: auto;
  padding: clamp(18px, 2.2vw, 26px) 0;
  transition: padding 320ms ease;
}

.site-header.is-scrolled {
  background:
    linear-gradient(180deg, rgba(34, 73, 57, 0.94), rgba(23, 55, 43, 0.9)),
    linear-gradient(90deg, rgba(205, 183, 142, 0.1), rgba(245, 242, 234, 0.04));
  border-bottom: 1px solid rgba(205, 183, 142, 0.16);
  box-shadow: 0 18px 46px rgba(11, 11, 9, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.is-scrolled .site-header__inner {
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(11, 11, 9, 0.45);
}

.brand__mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 1px 10px rgba(11, 11, 9, 0.45));
}

.brand__text {
  white-space: nowrap;
}

.site-nav {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.9rem);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 12px rgba(11, 11, 9, 0.5);
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.2rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold-soft);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 200ms ease, transform 260ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #fff;
  outline: none;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  opacity: 0.85;
  transform: scaleX(1);
}

.site-nav .nav-cta {
  padding: 0.58rem 1.15rem;
  border: 1px solid rgba(205, 183, 142, 0.45);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(205, 183, 142, 0.14), rgba(29, 86, 64, 0.18));
  box-shadow: 0 0 22px rgba(205, 183, 142, 0.18);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.site-nav .nav-cta::after {
  display: none;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  border-color: rgba(205, 183, 142, 0.85);
  background: linear-gradient(135deg, rgba(205, 183, 142, 0.24), rgba(29, 86, 64, 0.28));
  box-shadow: 0 0 30px rgba(205, 183, 142, 0.3);
}

.menu-toggle {
  justify-self: end;
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle__line {
  grid-area: 1 / 1;
  width: 20px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-4px);
  transition: transform 220ms var(--ease-out);
}

.menu-toggle__line + .menu-toggle__line {
  transform: translateY(4px);
}

.menu-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.menu-open .menu-toggle__line {
  transform: rotate(42deg);
}

.menu-open .menu-toggle__line + .menu-toggle__line {
  transform: rotate(-42deg);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.86rem 1.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms var(--ease-out), background 200ms ease, border-color 200ms ease,
    color 200ms ease, box-shadow 220ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button--primary {
  background: var(--green-deep);
  color: var(--paper);
  box-shadow: 0 10px 30px rgba(20, 62, 46, 0.28);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--green);
  box-shadow: 0 14px 36px rgba(20, 62, 46, 0.36);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.button--ink {
  border-color: var(--ink);
  color: var(--ink);
}

.button--ink:hover,
.button--ink:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.text-link {
  display: inline-block;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.15rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--green);
  border-color: var(--green);
  outline: none;
}

.on-dark .text-link {
  color: var(--paper);
}

/* -------------------------------------------------------------------- */
/* Scroll-scrub hero (home)                                              */
/* -------------------------------------------------------------------- */

.scroll-hero {
  position: relative;
  height: 460vh;
  min-height: 2900px;
  isolation: isolate;
  background: var(--noir);
}

.scroll-hero__sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--noir);
}

.scroll-hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #26343a;
}

.scroll-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(var(--hero-scale));
  transform-origin: center;
  filter: saturate(1.02) contrast(1.03);
  will-change: transform;
}

.scroll-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 11, 9, 0.52) 0%, rgba(11, 11, 9, 0.22) 36%, rgba(11, 11, 9, 0) 62%),
    linear-gradient(0deg, rgba(11, 11, 9, 0.55) 0%, rgba(11, 11, 9, 0.08) 34%, rgba(11, 11, 9, 0.16) 100%);
  pointer-events: none;
}

.scroll-hero__content {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(116px, 12vw, 150px) 0 clamp(92px, 10vw, 124px);
}

.hero-stage {
  grid-area: 1 / 1;
  width: min(100%, 780px);
  max-width: 780px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 28px, 0);
  transition: opacity 560ms var(--ease-out), transform 680ms var(--ease-out);
}

.hero-stage.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.hero-stage h1,
.hero-stage h2 {
  max-width: 900px;
  margin-bottom: 1.3rem;
  color: #fff;
  text-shadow: 0 2px 30px rgba(11, 11, 9, 0.55);
}

.hero-stage p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  text-shadow: 0 1px 16px rgba(11, 11, 9, 0.55);
}

.hero-stage .eyebrow {
  color: var(--gold-soft);
  text-shadow: 0 1px 14px rgba(11, 11, 9, 0.6);
}

.hero-stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.1rem;
}

.scroll-hero__progress {
  position: absolute;
  left: max(22px, calc((100vw - var(--max)) / 2));
  right: max(22px, calc((100vw - var(--max)) / 2));
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.scroll-hero__track {
  position: relative;
  width: min(120px, 28vw);
  height: 1.5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.scroll-hero__bar {
  position: absolute;
  inset: 0;
  width: 100%;
  background: var(--gold-soft);
  transform-origin: left;
  transform: scaleX(var(--hero-progress));
}

.scroll-hero__progress-label {
  min-width: 3ch;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.scroll-hero__hint {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

.scroll-hero__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.scroll-hero__dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition: width 240ms var(--ease-out), background 240ms ease;
}

.scroll-hero__dots span.is-active {
  width: 26px;
  background: var(--gold-soft);
}

.scroll-hero__fallback {
  display: none;
}

/* -------------------------------------------------------------------- */
/* Page header (interior pages)                                          */
/* -------------------------------------------------------------------- */

.page-header {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(420px, 62svh, 640px);
  padding: clamp(140px, 16vw, 190px) 0 clamp(52px, 6vw, 84px);
  color: #fff;
  background: var(--noir);
  overflow: hidden;
}

.page-header__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-header__media img,
.page-header__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--noir);
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(11, 11, 9, 0.72) 0%, rgba(11, 11, 9, 0.18) 52%, rgba(11, 11, 9, 0.3) 100%),
    linear-gradient(90deg, rgba(11, 11, 9, 0.35), rgba(11, 11, 9, 0) 58%);
}

.page-header--plain {
  min-height: clamp(360px, 52svh, 540px);
  background:
    radial-gradient(110% 100% at 80% 0%, rgba(29, 86, 64, 0.3), rgba(11, 11, 9, 0) 58%),
    radial-gradient(80% 70% at 8% 100%, rgba(179, 152, 106, 0.14), rgba(11, 11, 9, 0) 52%),
    var(--noir);
}

.page-header--plain::after {
  display: none;
}

.page-header h1 {
  max-width: 15ch;
  margin-bottom: 0.9rem;
  text-shadow: 0 2px 30px rgba(11, 11, 9, 0.6);
}

.page-header .lede {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 16px rgba(11, 11, 9, 0.5);
}

.page-header .eyebrow {
  color: var(--gold-soft);
}

/* -------------------------------------------------------------------- */
/* Logo marquee + logo grid                                              */
/* -------------------------------------------------------------------- */

.brand-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(34px, 4.5vw, 58px) 0;
}

.brand-marquee h2 {
  max-width: none;
  margin: 0 0 clamp(24px, 3vw, 36px);
  color: var(--muted);
  font-family: var(--sans);
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.5;
  text-align: center;
}

.brand-marquee__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.brand-marquee__track {
  display: flex;
  width: max-content;
  animation: logo-marquee 46s linear infinite;
}

.brand-marquee__viewport:hover .brand-marquee__track {
  animation-play-state: paused;
}

.brand-marquee__set {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 92px);
  padding-right: clamp(48px, 6vw, 92px);
}

.brand-marquee__set img {
  width: clamp(92px, 11vw, 140px);
  height: 52px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.92);
  opacity: 0.58;
  mix-blend-mode: multiply;
}

@keyframes logo-marquee {
  to {
    transform: translateX(-50%);
  }
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.logo-grid img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  padding: clamp(26px, 4vw, 44px);
  background: var(--paper);
  filter: grayscale(1);
  opacity: 0.66;
  mix-blend-mode: multiply;
  transition: filter 220ms ease, opacity 220ms ease;
}

.logo-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* -------------------------------------------------------------------- */
/* Metrics                                                               */
/* -------------------------------------------------------------------- */

.metrics {
  background: var(--noir);
  color: var(--paper);
  padding: clamp(40px, 5vw, 72px) 0;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.metric {
  padding: clamp(30px, 4vw, 52px) clamp(24px, 3vw, 44px);
  border-right: 1px solid var(--line-dark);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6.6vw, 5.6rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--gold-soft);
}

.metric span {
  color: rgba(245, 242, 234, 0.72);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------- */
/* Section intro rows                                                    */
/* -------------------------------------------------------------------- */

.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.section-intro h2 {
  margin-bottom: 0;
}

.section-intro > a {
  flex: 0 0 auto;
  margin-bottom: 0.4rem;
}

/* -------------------------------------------------------------------- */
/* Service cards (home preview)                                          */
/* -------------------------------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-card {
  --service-card-title-size: clamp(1.28rem, 1vw + 0.98rem, 1.56rem);
  --service-card-kicker-size: clamp(0.68rem, 0.18vw + 0.63rem, 0.74rem);
  --service-card-copy-size: clamp(1rem, 0.28vw + 0.94rem, 1.08rem);

  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: clamp(252px, 22vw, 294px);
  padding: clamp(24px, 2.5vw, 34px);
  background: var(--paper);
  text-align: center;
  transition: background 260ms ease;
}

.service-card:hover {
  background: var(--paper-2);
}

.service-card__kicker {
  order: 2;
  max-width: 26ch;
  margin: 0.72rem auto 0;
  color: var(--green);
  font-size: var(--service-card-kicker-size);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.service-card h3 {
  order: 1;
  max-width: 14ch;
  margin: 0;
  font-size: var(--service-card-title-size);
  line-height: 1.14;
}

.service-card p {
  order: 3;
  max-width: 25ch;
  margin: clamp(1.05rem, 1.6vw, 1.35rem) auto 0;
  color: var(--muted);
  font-size: var(--service-card-copy-size);
  line-height: 1.62;
}

/* -------------------------------------------------------------------- */
/* Services page grouped categories                                      */
/* -------------------------------------------------------------------- */

.services-index {
  padding-bottom: 0;
}

.services-index .lede {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.service-group {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 84px) 0;
}

.service-group__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 52px);
}

.service-group__index {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.18em;
}

.service-group__head h2 {
  margin-bottom: 0;
}

.service-group__head .lede {
  margin-bottom: 0.3rem;
}

.service-group__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.service-group__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.service-group__media img,
.service-group__media video {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 460px;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.service-group__media:hover img,
.service-group__media:hover video {
  transform: scale(1.025);
}

.service-group__media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(0deg, rgba(11, 11, 9, 0.66), rgba(11, 11, 9, 0));
}

.service-list {
  display: grid;
  align-content: start;
  gap: 0;
}

.service-list article {
  border-top: 1px solid var(--line);
  padding: clamp(1.4rem, 2.4vw, 2rem) 0;
}

.service-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-list h3 {
  margin-bottom: 0.55rem;
}

.service-list p {
  max-width: 52ch;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.service-group--flip .service-group__body {
  direction: rtl;
}

.service-group--flip .service-group__body > * {
  direction: ltr;
}

/* -------------------------------------------------------------------- */
/* Philosophy / pillars                                                  */
/* -------------------------------------------------------------------- */

.philosophy {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(29, 86, 64, 0.24), rgba(11, 11, 9, 0) 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(179, 152, 106, 0.12), rgba(11, 11, 9, 0) 55%),
    var(--noir);
  color: var(--paper);
}

.philosophy .split {
  align-items: center;
}

.pillar-list {
  display: grid;
  gap: 0;
  counter-reset: pillar;
}

.pillar-list article {
  position: relative;
  border-top: 1px solid var(--line-dark);
  padding: clamp(1.55rem, 2.5vw, 2.1rem) 0 clamp(1.55rem, 2.5vw, 2.1rem) 4.2rem;
  counter-increment: pillar;
}

.pillar-list article:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.pillar-list article::before {
  content: "0" counter(pillar);
  position: absolute;
  left: 0;
  top: clamp(1.72rem, 2.7vw, 2.34rem);
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.45vw, 1.38rem);
  letter-spacing: 0.14em;
}

.pillar-list h3 {
  margin-bottom: 0.5rem;
  color: var(--paper);
  font-size: clamp(1.34rem, 2vw, 1.72rem);
}

.pillar-list p {
  max-width: 52ch;
  margin-bottom: 0;
  color: rgba(245, 242, 234, 0.66);
  font-size: clamp(1.02rem, 1.25vw, 1.14rem);
  line-height: 1.66;
}

/* -------------------------------------------------------------------- */
/* Talent roster page                                                    */
/* -------------------------------------------------------------------- */

.join-intro {
  padding-bottom: clamp(48px, 6vw, 84px);
}

.opportunity-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.opportunity-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.opportunity-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1.15rem, 2.1vw, 1.65rem);
  background: #fbfaf6;
}

.opportunity-list span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.opportunity-list h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.15rem, 1.6vw, 1.42rem);
}

.opportunity-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

.airtable-section {
  padding-top: 0;
}

.airtable-shell {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.4rem);
}

.airtable-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 4vw, 3rem);
}

.airtable-head h2 {
  margin-bottom: 0;
}

.airtable-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(179, 152, 106, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0.96), rgba(245, 242, 234, 0.96)),
    var(--paper);
  box-shadow: 0 32px 90px rgba(22, 21, 15, 0.1);
}

.airtable-frame::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--green-deep), var(--gold-soft), var(--green));
}

.airtable-embed {
  display: block;
  width: 100%;
  height: clamp(760px, 88svh, 980px);
  border: 0;
  background: #fff;
}

.embed-fallback {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.embed-fallback a {
  color: var(--green-deep);
  border-bottom: 1px solid var(--gold);
}

/* -------------------------------------------------------------------- */
/* Editorial figure (about page)                                         */
/* -------------------------------------------------------------------- */

.figure-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.figure-split figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.figure-split img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: cover;
}

.figure-split figcaption {
  padding-top: 0.8rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.standards-list {
  display: grid;
  gap: 0;
  counter-reset: standard;
}

.standards-list article {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(1.4rem, 2.4vw, 2rem) 0 clamp(1.4rem, 2.4vw, 2rem) 3.6rem;
  counter-increment: standard;
}

.standards-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.standards-list article::before {
  content: "0" counter(standard);
  position: absolute;
  left: 0;
  top: clamp(1.55rem, 2.5vw, 2.15rem);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

.standards-list h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}

.standards-list p {
  max-width: 56ch;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* -------------------------------------------------------------------- */
/* CTA band                                                              */
/* -------------------------------------------------------------------- */

.cta-band {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(110% 120% at 50% 120%, rgba(29, 86, 64, 0.32), rgba(11, 11, 9, 0) 62%),
    var(--noir-2);
  color: var(--paper);
  text-align: center;
  padding: clamp(88px, 11vw, 160px) 0;
}

.cta-band h2 {
  max-width: 22ch;
  margin-inline: auto;
}

.cta-band .lede {
  margin-inline: auto;
  margin-bottom: 2.4rem;
  color: rgba(245, 242, 234, 0.84);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-aside h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.contact-aside .text-stack {
  margin-bottom: 2rem;
}

.contact-meta {
  display: grid;
  gap: 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}

.contact-meta h3 {
  margin-bottom: 0.3rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}

.contact-meta p,
.contact-meta address {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.contact-meta a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color 180ms ease, color 180ms ease;
}

.contact-meta a:hover,
.contact-meta a:focus-visible {
  color: var(--green);
  border-color: var(--green);
  outline: none;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.2rem;
  padding: clamp(24px, 3.2vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
  box-shadow: 0 30px 80px rgba(22, 21, 15, 0.07);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-form label.span-2 {
  grid-column: 1 / -1;
}

.contact-form .optional {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0.85rem 0.95rem;
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 86, 64, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-transform: none;
}

.file-field input {
  border-style: dashed;
  background: var(--paper);
}

.file-field input::file-selector-button {
  margin-right: 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease;
}

.file-field input::file-selector-button:hover {
  background: var(--green-deep);
}

.contact-form button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: start;
  cursor: pointer;
  border: 0;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(29, 86, 64, 0.3);
  border-radius: var(--radius);
  background: rgba(29, 86, 64, 0.07);
  color: var(--green-deep);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.55;
}

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

.site-footer {
  background: var(--noir);
  color: var(--paper);
  padding: clamp(56px, 7vw, 96px) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(44px, 5vw, 72px);
}

.footer-brand__mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 1px 10px rgba(11, 11, 9, 0.38));
  margin-bottom: 1.1rem;
}

.footer-brand p {
  max-width: 34ch;
  color: rgba(245, 242, 234, 0.62);
  line-height: 1.65;
}

.site-footer h2 {
  max-width: none;
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.site-footer address {
  font-style: normal;
  color: rgba(245, 242, 234, 0.62);
  line-height: 1.7;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.site-footer nav a {
  color: rgba(245, 242, 234, 0.62);
  font-size: 0.92rem;
  transition: color 180ms ease;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--paper);
  outline: none;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1.4rem 0 1.6rem;
}

.footer-bottom .section-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(245, 242, 234, 0.4);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

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

@media (max-width: 1120px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    /* Compact panel anchored under the menu button. */
    position: fixed;
    left: auto;
    right: 14px;
    top: 78px;
    min-width: 250px;
    max-width: calc(100vw - 28px);
    display: grid;
    gap: 0;
    padding: 0.6rem 0;
    border: 1px solid rgba(245, 242, 234, 0.1);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(11, 11, 9, 0.97), rgba(11, 11, 9, 0.92));
    box-shadow: 0 30px 80px rgba(11, 11, 9, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 240ms ease, transform 300ms var(--ease-out);
  }

  .menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a,
  .site-nav .nav-cta {
    margin: 0;
    padding: 0.95rem 1.2rem;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-cta {
    border: 0;
    border-radius: 0;
    border-top: 1px solid rgba(245, 242, 234, 0.12);
    background: transparent;
    box-shadow: none;
    color: var(--gold-soft);
  }

  .scroll-hero {
    height: 430vh;
    min-height: 2600px;
  }

  .split,
  .figure-split,
  .contact-layout,
  .opportunity-grid,
  .service-group__body,
  .service-group__head {
    grid-template-columns: 1fr;
  }

  .service-group--flip .service-group__body {
    direction: ltr;
  }

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

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .service-card {
    min-height: 0;
    align-items: center;
  }

  .section-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .airtable-head {
    display: grid;
  }

  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-form label.span-2 {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .section-shell {
    width: min(100% - 32px, var(--max));
  }

  .brand__text {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  h1 {
    font-size: clamp(1.95rem, 8.8vw, 2.85rem);
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .scroll-hero {
    min-height: 2400px;
  }

  .scroll-hero__content {
    align-items: start;
    padding-top: clamp(150px, 24svh, 190px);
  }

  .hero-stage,
  .hero-stage p:not(.eyebrow) {
    width: 100%;
    max-width: 100%;
  }

  .hero-stage p:not(.eyebrow) {
    max-width: calc(100vw - 32px);
  }

  .hero-stage__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .hero-stage__actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 1rem;
    white-space: normal;
  }

  .scroll-hero__progress {
    bottom: 20px;
  }

  .scroll-hero__hint {
    display: none;
  }

  .footer-grid,
  .pillar-list {
    grid-template-columns: 1fr;
  }

  .pillar-list article {
    padding-left: 3.6rem;
  }

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

  .brand-marquee__set {
    gap: 36px;
    padding-right: 36px;
  }

  .brand-marquee__set img {
    width: 86px;
    height: 44px;
  }

  .logo-grid img {
    height: 104px;
    padding: 22px;
  }

  .page-header {
    min-height: 380px;
  }
}

/* -------------------------------------------------------------------- */
/* Reduced motion                                                        */
/* -------------------------------------------------------------------- */

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-hero {
    height: auto;
    min-height: 100svh;
  }

  .scroll-hero__sticky {
    position: relative;
    min-height: 100svh;
  }

  .scroll-hero__video {
    display: none;
  }

  .scroll-hero__fallback {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .scroll-hero__progress {
    display: none;
  }

  .hero-stage {
    display: none;
    opacity: 1;
    transform: none;
  }

  .hero-stage.is-active,
  .hero-stage:first-child {
    display: block;
  }

  .brand-marquee__track {
    width: auto;
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-marquee__set {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
  }

  .brand-marquee__set[aria-hidden="true"] {
    display: none;
  }

  .brand-marquee__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}
