/* ==========================================================================
   Guardian Consulting Inc. — landing page
   Brand: navy #0F2B46 / gold #C8A14D (carried over from the existing site)
   ========================================================================== */

/* --------------------------------- tokens --------------------------------- */
:root {
  --navy-900: #071726;
  --navy-800: #0a1e33;
  --navy-700: #0f2b46;
  --navy-600: #16395a;
  --navy-500: #24506f;

  --gold-500: #c8a14d;
  --gold-400: #d9b869;
  --gold-300: #e8d19a;

  --ink: #16202b;
  --body: #55636f;
  --muted: #8593a0;

  --surface: #ffffff;
  --surface-tint: #f6f8fa;
  --surface-alt: #eef2f6;
  --line: #e2e8ee;

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --shell: 1200px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(7, 23, 38, .06), 0 4px 12px rgba(7, 23, 38, .05);
  --shadow: 0 10px 30px rgba(7, 23, 38, .08);
  --shadow-lg: 0 24px 60px rgba(7, 23, 38, .14);

  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  max-width: 100%;
  background: var(--surface);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--navy-700);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

a { color: var(--navy-700); text-decoration: none; transition: color .2s var(--ease); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 600;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; }

/* --------------------------------- layout --------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--tint { background: var(--surface-tint); }

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(44px, 5vw, 68px);
  text-align: center;
}

.section__title { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
.section__sub { font-size: 1.09rem; color: var(--body); }

.eyebrow {
  margin: 0 0 .9rem;
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow--light { color: var(--gold-400); }

.lede { font-size: 1.13rem; color: var(--ink); }

/* top-margin utilities, for spacing between otherwise unrelated blocks */
.mt-1 { margin-top: 1.2rem; }
.mt-2 { margin-top: 1.9rem; }
.mt-3 { margin-top: 2.6rem; }

/* --------------------------------- buttons -------------------------------- */
.btn {
  --btn-bg: var(--gold-500);
  --btn-fg: #fff;
  --btn-line: transparent;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 14px 26px;
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .22s var(--ease), background-color .22s var(--ease),
              color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 1.01rem; }

.btn__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s var(--ease);
}
.btn:hover .btn__icon { transform: translateX(4px); }

.btn--gold {
  box-shadow: 0 10px 28px rgba(200, 161, 77, .32);
}
.btn--gold:hover { --btn-bg: var(--gold-400); box-shadow: 0 16px 36px rgba(200, 161, 77, .4); }

.btn--navy { --btn-bg: var(--navy-700); }
.btn--navy:hover { --btn-bg: var(--navy-600); box-shadow: var(--shadow); }

.btn--outline {
  --btn-bg: transparent;
  --btn-line: rgba(255, 255, 255, .38);
  backdrop-filter: blur(6px);
}
.btn--outline:hover { --btn-bg: rgba(255, 255, 255, .12); --btn-line: rgba(255, 255, 255, .7); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  padding: 12px 20px;
  font-weight: 600;
}
.btn--ghost:hover { --btn-bg: rgba(15, 43, 70, .07); transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: var(--navy-700);
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom: 1px solid rgba(200, 161, 77, .5);
  padding-bottom: 3px;
}
.link-arrow svg {
  width: 17px; height: 17px;
  fill: none; stroke: var(--gold-500);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .22s var(--ease);
}
.link-arrow:hover { color: var(--gold-500); border-bottom-color: var(--gold-500); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------- header --------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #fff;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              backdrop-filter .35s var(--ease), color .35s var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  min-height: var(--header-h);
  transition: min-height .35s var(--ease);
}

/* solid state once scrolled past the hero fold */
.site-header.is-stuck {
  background: rgba(7, 23, 38, .9);
  backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(7, 23, 38, .28);
}
.site-header.is-stuck .header__inner { min-height: 70px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  flex-shrink: 0;
}
.brand__mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .3));
  transition: transform .3s var(--ease);
}
.brand:hover .brand__mark { transform: scale(1.05); }

.brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 1.1;
}
.brand__text strong {
  color: inherit;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.brand__text em {
  color: var(--gold-400);
  font-size: .68rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}

/* navigation */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
}

.nav__link {
  position: relative;
  color: rgba(255, 255, 255, .84);
  font-family: var(--font-display);
  font-size: .93rem;
  font-weight: 600;
  padding: 6px 0;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); }

/* Current page is derived from body[data-page], which lets the header markup
   stay byte-identical on every page. */
body[data-page="home"]       .nav__link[data-nav="home"],
body[data-page="about"]      .nav__link[data-nav="about"],
body[data-page="tech"]       .nav__link[data-nav="tech"],
body[data-page="services"]   .nav__link[data-nav="services"],
body[data-page="guide"]      .nav__link[data-nav="guide"],
body[data-page="philosophy"] .nav__link[data-nav="philosophy"] { color: #fff; }

body[data-page="home"]       .nav__link[data-nav="home"]::after,
body[data-page="about"]      .nav__link[data-nav="about"]::after,
body[data-page="tech"]       .nav__link[data-nav="tech"]::after,
body[data-page="services"]   .nav__link[data-nav="services"]::after,
body[data-page="guide"]      .nav__link[data-nav="guide"]::after,
body[data-page="philosophy"] .nav__link[data-nav="philosophy"]::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__cta .btn--ghost { color: rgba(255, 255, 255, .9); }
.nav__cta .btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .12); color: #fff; }

/* burger */
.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
  transition: transform .28s var(--ease), opacity .18s var(--ease);
}
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before { content: ""; top: -6px; }
.nav-toggle__bars::after { content: ""; top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: translateX(-50%) rotate(-90deg);
}

/* ---------------------------------- hero ---------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 64px) 0 96px;
  background: var(--navy-600);
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Poster is a real background so Safari still has a frame if the video
     layer fails to composite, or autoplay is refused (Low Power Mode). */
  background: var(--navy-600) url("../img/hero-poster.jpg") center / cover no-repeat;
}

.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

/* Stay invisible until a decoded frame is on screen. iOS otherwise paints
   a black hardware video layer over the poster (Low Power Mode, stalled
   autoplay, or a codec it will not composite). */
.hero__video { opacity: 0; }
.hero__video.is-playing { opacity: 1; }

/* lighter, thinner scrim so more of the video reads through */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(36, 80, 111, .48) 0%, rgba(52, 108, 148, .22) 48%, rgba(70, 130, 170, .06) 100%),
    linear-gradient(to top, rgba(36, 80, 111, .22) 0%, rgba(36, 80, 111, 0) 38%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 4px 4px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: min(940px, 100%);
  min-width: 0;
}

.hero__title {
  margin-bottom: 1.5rem;
  max-width: 100%;
  color: #fff;
  font-size: clamp(2.3rem, 6.4vw, 4.35rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.hero__title-tail {
  display: block;
  margin-top: .28em;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -.015em;
}

/* rotating headline — every item shares one grid cell so the block sizes to
   the longest phrase and never reflows mid-animation */
.rotator {
  display: grid;
  align-items: end;
  min-width: 0;
  max-width: 100%;
}
.rotator__item {
  grid-area: 1 / 1;
  position: relative;
  padding-bottom: .16em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.rotator__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 12%;
  bottom: 0;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-500), rgba(200, 161, 77, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease) .18s;
}
.rotator__item.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.rotator__item.is-active::after { transform: scaleX(1); }
.rotator__item.is-leaving {
  opacity: 0;
  visibility: visible;
  transform: translateY(-16px);
}

.hero__lede {
  max-width: 62ch;
  margin-bottom: 2.4rem;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(40px, 6vw, 72px);
  color: rgba(255, 255, 255, .6);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero__scroll svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--gold-400);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  animation: nudge 2.2s var(--ease) infinite;
}
.hero__scroll:hover { color: #fff; }

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* --------------------------------- stats ---------------------------------- */
.stats {
  background: var(--navy-700);
  background-image: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  color: #fff;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-block: clamp(40px, 5vw, 60px);
}

.stat {
  position: relative;
  padding: 8px clamp(14px, 2.4vw, 32px);
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(255, 255, 255, .14);
}

.stat__value {
  display: block;
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.stat__unit { font-size: .6em; vertical-align: super; }

.stat__label {
  display: block;
  margin-top: .7rem;
  color: rgba(255, 255, 255, .7);
  font-size: .93rem;
  line-height: 1.55;
}

/* --------------------------------- intro ---------------------------------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 6vw, 76px);
  align-items: start;
}

.ticks { margin: 1.6rem 0 2rem; display: grid; gap: .8rem; }
.ticks li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-size: 1rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(200, 161, 77, .16);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: .78em;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  transform: rotate(-45deg);
}

/* core divisions card */
.divisions {
  position: relative;
  padding: clamp(28px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.divisions::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
}

.divisions__title {
  margin-bottom: 1.5rem;
  font-size: 1.45rem;
}

.division {
  display: flex;
  gap: 16px;
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.division__icon {
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy-700);
}
.division__icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--gold-400);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.division h4 { margin-bottom: .45rem; font-size: 1.09rem; }
.division p { font-size: .97rem; line-height: 1.7; }

.mission {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
  text-align: center;
}
.mission__label {
  margin-bottom: .6rem;
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.mission__quote {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ------------------------------ capabilities ------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.card {
  position: relative;
  padding: clamp(26px, 2.8vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.card:hover::after { transform: scaleX(1); }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.3rem;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(200, 161, 77, .18), rgba(200, 161, 77, .06));
  transition: background .28s var(--ease);
}
.card__icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--gold-500);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card:hover .card__icon { background: var(--navy-700); }
.card:hover .card__icon svg { stroke: var(--gold-400); }

.card h3 { font-size: 1.14rem; margin-bottom: .55rem; }
.card p { font-size: .97rem; line-height: 1.72; margin: 0; }

/* --------------------------------- why ------------------------------------ */
.why__grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.why__intro { position: sticky; top: calc(var(--header-h) + 40px); }

.pillars { display: grid; gap: clamp(18px, 2vw, 24px); }

.pillar {
  position: relative;
  padding: clamp(24px, 2.6vw, 32px) clamp(24px, 2.6vw, 34px) clamp(24px, 2.6vw, 32px) clamp(72px, 7vw, 88px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow .28s var(--ease), transform .28s var(--ease);
}
.pillar:hover { transform: translateX(4px); box-shadow: var(--shadow); }

.pillar__num {
  position: absolute;
  left: clamp(24px, 2.6vw, 32px);
  top: clamp(24px, 2.6vw, 32px);
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.pillar__num::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--gold-500), rgba(200, 161, 77, .2));
}

.pillar h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.pillar p { font-size: .99rem; margin: 0; }

/* ---------------------------------- cta ----------------------------------- */
.cta {
  position: relative;
  padding: clamp(76px, 9vw, 124px) 0;
  background:
    radial-gradient(1000px 460px at 78% 12%, rgba(200, 161, 77, .18), transparent 60%),
    linear-gradient(140deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: #fff;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 5px 5px;
}

.cta__inner { position: relative; max-width: 780px; text-align: center; margin-inline: auto; }
.cta__title {
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.95rem);
}
.cta__sub {
  max-width: 60ch;
  margin: 0 auto 2.4rem;
  color: rgba(255, 255, 255, .78);
  font-size: 1.07rem;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* -------------------------------- footer ---------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .68);
  font-size: .96rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: clamp(40px, 6vw, 72px);
  padding-block: clamp(56px, 7vw, 84px);
}

.brand--footer { margin-bottom: 1.3rem; color: #fff; }

.footer__blurb {
  max-width: 42ch;
  margin-bottom: 1.6rem;
  line-height: 1.75;
}

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  transition: background .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.socials svg { width: 17px; height: 17px; fill: rgba(255, 255, 255, .78); transition: fill .22s var(--ease); }
.socials a:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  transform: translateY(-3px);
}
.socials a:hover svg { fill: var(--navy-900); }

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.footer__heading {
  margin-bottom: 1.1rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer__col ul { display: grid; gap: .75rem; }
.footer__col a { color: rgba(255, 255, 255, .68); }
.footer__col a:hover { color: var(--gold-400); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .89rem;
  color: rgba(255, 255, 255, .5);
}
.footer__bottom p { margin: 0; }

.footer__totop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .6);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer__totop svg {
  width: 15px; height: 15px;
  fill: none; stroke: var(--gold-400);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .22s var(--ease);
}
.footer__totop:hover { color: #fff; }
.footer__totop:hover svg { transform: translateY(-3px); }

/* ==========================================================================
   INTERIOR PAGES
   ========================================================================== */

/* --------------------------- compact page hero ---------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 7vw, 88px)) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(900px 420px at 82% 6%, rgba(200, 161, 77, .2), transparent 62%),
    linear-gradient(145deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 5px 5px;
}

.page-hero__inner { position: relative; max-width: 860px; }

.page-hero h1 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

.page-hero__lede {
  max-width: 64ch;
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.8;
}
.page-hero__lede + .page-hero__lede { margin-top: 1.1rem; }

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.2rem;
}

/* breadcrumb */
.breadcrumb { margin-bottom: 1.4rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.breadcrumb a { color: rgba(255, 255, 255, .62); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: .5rem;
  color: rgba(255, 255, 255, .3);
}
.breadcrumb [aria-current] { color: var(--gold-400); }

/* ---------------------------- framed artwork ------------------------------ */
.plate { margin: 0; }

.plate__frame {
  padding: clamp(8px, 1vw, 14px);
  border: 1px solid rgba(200, 161, 77, .3);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-lg);
}
.plate__frame img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 10px);
}

.plate__caption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .89rem;
  line-height: 1.6;
}
.plate__caption a { color: var(--body); border-bottom: 1px solid var(--line); }
.plate__caption a:hover { color: var(--gold-500); border-bottom-color: var(--gold-500); }

/* on tinted/dark sections the caption needs lifting */
.section--navy .plate__caption { color: rgba(255, 255, 255, .58); }

/* ------------------------------ split layout ------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split--media-narrow { grid-template-columns: .82fr 1.18fr; align-items: start; }
.split--media-last .split__media { order: 2; }

/* ---------------------- grouped capability lists -------------------------- */
.groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.groups--two { grid-template-columns: repeat(2, 1fr); }

.group {
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.group:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.group__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.1rem;
}
.group__icon {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(200, 161, 77, .2), rgba(200, 161, 77, .07));
  transition: background .28s var(--ease);
}
.group__icon svg {
  width: 21px; height: 21px;
  fill: none; stroke: var(--gold-500);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.group:hover .group__icon { background: var(--navy-700); }
.group:hover .group__icon svg { stroke: var(--gold-400); }

.group h3 { margin: 0; font-size: 1.09rem; }
.group > p { font-size: .96rem; margin-bottom: 1rem; }

.group ul { display: grid; gap: .6rem; }
.group li {
  position: relative;
  padding-left: 20px;
  font-size: .95rem;
  line-height: 1.6;
}
.group li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* --------------------------- metrics (About Us) --------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.metric {
  padding: clamp(26px, 2.8vw, 34px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .28s var(--ease), border-color .28s var(--ease);
}
.metric:hover { transform: translateY(-5px); border-color: rgba(200, 161, 77, .5); }

.metric__value {
  display: block;
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.metric__value span { font-size: .55em; vertical-align: super; }

.metric h3 {
  margin: 1rem 0 .5rem;
  color: #fff;
  font-size: 1.03rem;
}
.metric p {
  margin: 0;
  color: rgba(255, 255, 255, .66);
  font-size: .93rem;
  line-height: 1.65;
}

/* --------------------------- profile (About Us) --------------------------- */
.profile {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.profile__media { position: sticky; top: calc(var(--header-h) + 36px); }

.profile__name {
  margin-bottom: .3rem;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}
.profile__role {
  margin-bottom: 1.8rem;
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* career timeline */
.timeline { display: grid; gap: 1.6rem; margin-top: 2rem; }
.timeline li {
  position: relative;
  padding-left: 30px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  background: var(--surface);
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(.5em + 15px);
  bottom: -1.6rem;
  width: 1px;
  background: var(--line);
}
.timeline h3 { font-size: 1.06rem; margin-bottom: .35rem; }
.timeline p { font-size: .97rem; margin: 0; }

/* ------------------------------- chips ------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy-700);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}
.chip:hover { border-color: var(--gold-500); transform: translateY(-2px); }

/* ---------------------------- dark section -------------------------------- */
.section--navy {
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(200, 161, 77, .13), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: rgba(255, 255, 255, .74);
}
.section--navy h2,
.section--navy h3,
.section--navy .section__title { color: #fff; }
.section--navy .section__sub { color: rgba(255, 255, 255, .74); }
.section--navy .lede { color: #fff; }
.section--navy strong { color: #fff; }

/* ------------------------------ contact form ------------------------------ */
.contact__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
}

.form-card {
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: 1.6rem; }

.form { display: grid; gap: 18px; min-width: 0; }
.form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.field { display: grid; gap: .45rem; margin: 0; min-width: 0; }
.field > label {
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}
.field__opt { color: var(--muted); font-weight: 500; }

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }

.field select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355636f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(200, 161, 77, .16);
}

.form .btn { justify-content: center; }

.form__note {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}

/* aside contact detail cards */
.info-list { display: grid; gap: 14px; margin-top: 1.8rem; }
.info {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-tint);
}
.info__icon {
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--navy-700);
}
.info__icon svg {
  width: 19px; height: 19px;
  fill: none; stroke: var(--gold-400);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.info h3 { margin-bottom: .2rem; font-size: 1rem; }
.info p { margin: 0; font-size: .95rem; }
.info a { color: var(--navy-700); border-bottom: 1px solid rgba(200, 161, 77, .45); }
.info a:hover { color: var(--gold-500); }

/* --------------------------- legal / long prose --------------------------- */
.prose { max-width: 74ch; }
.prose h2 {
  margin: 2.6rem 0 .8rem;
  font-size: 1.24rem;
}
.prose h2:first-of-type { margin-top: 0; }
.prose p { font-size: 1.02rem; }
.prose ul { display: grid; gap: .6rem; margin: 0 0 1.15rem; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}
.prose a { color: var(--navy-700); border-bottom: 1px solid rgba(200, 161, 77, .5); }
.prose a:hover { color: var(--gold-500); border-bottom-color: var(--gold-500); }

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 2.4rem;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--body);
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 600;
}
.legal-meta::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}

.legal-toc {
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-tint);
  position: sticky;
  top: calc(var(--header-h) + 36px);
}
.legal-toc h2 {
  margin: 0 0 1rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-toc ol { display: grid; gap: .6rem; counter-reset: toc; }
.legal-toc a {
  color: var(--body);
  font-size: .94rem;
}
.legal-toc a:hover { color: var(--gold-500); }

.legal__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

/* ------------------- responsive rules for interior pages ------------------ */
@media (max-width: 1080px) {
  .groups { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .split,
  .split--media-narrow,
  .profile,
  .contact__grid { grid-template-columns: 1fr; }
  .split--media-last .split__media { order: 0; }
  .profile__media { position: static; max-width: 420px; }
  .legal__grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

@media (max-width: 700px) {
  .groups,
  .groups--two,
  .metrics { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .page-hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .profile__media { max-width: none; }
}

/* ------------------------------ scroll reveal ----------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ------------------------------- responsive ------------------------------- */
@media (max-width: 1360px) {
  .nav { gap: 16px; }
  .nav__list { gap: 14px; }
  .nav__link { font-size: .86rem; }
  .nav__cta .btn { padding: 12px 18px; }
}

@media (max-width: 980px) {
  .intro__grid,
  .why__grid { grid-template-columns: 1fr; }
  .why__intro { position: static; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .stat:nth-child(3)::before { display: none; }
  .footer__top { grid-template-columns: 1fr; }
}

/* Drawer before the six labels + Contact button overflow the bar.
   iPad landscape is 1024–1194px — the old 900px cutoff left those
   viewports on the desktop nav, which is why Contact Us was clipped. */
@media (max-width: 1200px) {
  .nav-toggle { display: block; }

  /* keep the logo and burger above the drawer panel */
  .brand,
  .nav-toggle { position: relative; z-index: 2; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: calc(var(--header-h) + 28px) clamp(20px, 6vw, 40px) max(34px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
  .nav__link {
    display: block;
    padding: 16px 2px;
    font-size: 1.05rem;
    white-space: normal;
  }
  .nav__link::after { display: none; }

  .nav__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: auto;
    padding-top: 32px;
  }
  .nav__cta .btn { justify-content: center; }
  .nav__cta .btn--ghost {
    display: inline-flex;
    border-color: rgba(255, 255, 255, .3);
    --btn-line: rgba(255, 255, 255, .3);
  }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 700px) {
  body { font-size: 1.01rem; }
  :root { --header-h: 72px; }

  .hero { min-height: auto; padding: calc(var(--header-h) + 72px) 0 84px; }
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }

  .cards { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; row-gap: 28px; }
  .stat { padding-inline: 0; }
  .stat + .stat::before { display: none; }
  .stat + .stat { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 26px; }

  .footer__nav { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { justify-content: center; text-align: center; }

  .brand__mark { width: 40px; height: 40px; }
  .brand__text strong { font-size: 1rem; }
  .brand__text em { font-size: .62rem; }
}

/* ------------------------- accessibility preferences ---------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .hero__video { display: none; }
  .rotator__item { opacity: 1; transform: none; }
  .rotator__item:not(.is-active) { visibility: hidden; }
  .rotator__item.is-active::after { transform: scaleX(1); }
}

@media print {
  .site-header, .hero__media, .hero__scroll, .nav-toggle { display: none !important; }
  body { color: #000; }
}
