/* ============================================================
   SAJ Business Consulting
   Design tokens. A brand-wide color or spacing change is a
   single edit here.
   ============================================================ */

/* ============================================================
   Fonts. Self hosted, latin woff2, swap so text paints immediately.
   ============================================================ */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/archivo-700.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-800.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-900.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/libre-franklin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/libre-franklin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/libre-franklin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/libre-franklin-700.woff2") format("woff2");
}

:root {
  /* Color */
  --ink: #14181F;        /* Obsidian Ink, primary */
  --ink-2: #10141B;      /* deeper ink, footer and gradients */
  --slate: #2A303B;      /* raised surfaces on dark */
  --panel: #1B212B;      /* cards on dark */
  --gold: #C7A24B;       /* Brass Gold, accent on dark */
  --gold-deep: #80631F;  /* Deep Brass, gold as text on light, AA on bone */
  --bone: #F5F1E8;       /* warm paper, reversed text on ink */
  --bone-2: #FBF9F4;     /* lighter paper */
  --stone: #9C968A;      /* muted text and captions */

  --line-dark: rgba(199, 162, 75, 0.18);
  --line-light: rgba(20, 24, 31, 0.10);

  /* Type */
  --display: "Archivo", system-ui, sans-serif;
  --body: "Libre Franklin", system-ui, -apple-system, sans-serif;

  /* Spacing and rhythm */
  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 48px);
  --sec-y: clamp(72px, 11vw, 140px);
  --radius: 14px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;

  /* The Ascent spine */
  --ascent-progress: 0;
  --rail-x: clamp(18px, 2.4vw, 40px);
  --rail-top: calc(var(--header-h) + 8vh);
  --rail-bottom: 8vh;
}

/* ============================================================
   Reset and base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--bone);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 800;
}

/* Tabular figures so stats and step numbers stay aligned */
.stat-num, .pstat-num, .step-n, .eyebrow .num {
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--gold); color: var(--ink); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 16px; }

/* ============================================================
   Brand lockup (inline, so Archivo applies)
   ============================================================ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark { width: 34px; height: auto; flex: none; }
.brand-word {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.brand-word strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--bone);
}
.brand-word em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 3px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(16, 20, 27, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--bone);
  opacity: 0.82;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.nav > a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  opacity: 1 !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--bone);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: rgba(16, 20, 27, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  padding: 12px var(--gut) 26px;
  gap: 2px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s linear 0.28s;
  z-index: 99;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s linear 0s;
}
.mobile-nav a {
  padding: 15px 4px;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .m-cta {
  margin-top: 14px;
  text-align: center;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
  padding: 14px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(16, 20, 27, 0.5);
}
.btn-gold:hover { box-shadow: 0 16px 30px -16px rgba(16, 20, 27, 0.6); }
.btn-ghost {
  border-color: rgba(245, 241, 232, 0.28);
  color: var(--bone);
}
.btn-ghost:hover { border-color: var(--bone); background: rgba(245, 241, 232, 0.06); }
.btn-ink {
  background: var(--ink);
  color: var(--bone);
}
.btn-ink:hover { background: var(--ink-2); }

/* ============================================================
   Eyebrows, section heads, shared
   ============================================================ */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow .num {
  font-family: var(--display);
  font-weight: 700;
  color: var(--gold);
  padding-right: 10px;
  border-right: 1px solid var(--line-dark);
}
.section { padding-block: var(--sec-y); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 {
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 900;
  margin-bottom: 18px;
}
.lede { font-size: clamp(17px, 2vw, 20px); color: rgba(245, 241, 232, 0.78); }
.lede.muted { color: var(--stone); }

/* shard tick markers */
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 15.5px;
  color: rgba(245, 241, 232, 0.82);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 11px;
  height: 11px;
  background: var(--gold);
  clip-path: polygon(0 100%, 42% 30%, 100% 0, 58% 70%);
}

/* ============================================================
   Light sections
   ============================================================ */
.section.light {
  background: var(--bone);
  color: var(--ink);
}
.section.light .section-head h2,
.section.light h2,
.section.light h3 { color: var(--ink); }
.section.light .eyebrow { color: var(--gold-deep); }
.section.light .eyebrow .num { color: var(--gold-deep); border-right-color: var(--line-light); }
.section.light .lede { color: rgba(20, 24, 31, 0.7); }
.section.light .lede.muted { color: #6b665d; }
.section.light .ticks li { color: rgba(20, 24, 31, 0.78); }
.section.light .ticks li::before { background: var(--gold-deep); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  padding-bottom: clamp(104px, 13vh, 168px);
  background:
    radial-gradient(1100px 700px at 78% 30%, rgba(199, 162, 75, 0.10), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  overflow: hidden;
}
.hero-shards {
  position: absolute;
  right: clamp(-40px, 2vw, 80px);
  bottom: 0;
  width: clamp(360px, 46vw, 720px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}
.hero-shards .shard {
  transform-box: fill-box;
  transform-origin: bottom center;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; padding-block: 60px; }
.hero-eyebrow { margin-bottom: 22px; }
.hero-title {
  font-size: clamp(54px, 12vw, 132px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
  margin-bottom: 26px;
}
.hero-title br { display: block; }
.hero-lede {
  font-size: clamp(17px, 2.1vw, 21px);
  color: rgba(245, 241, 232, 0.82);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(245, 241, 232, 0.3);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  z-index: 2;
}
.scroll-hint span {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 999px;
  margin-top: 8px;
}
.motion-on .scroll-hint span {
  animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============================================================
   Focus / who we help
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.aud-card {
  background: linear-gradient(180deg, var(--panel), var(--slate));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 42px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.aud-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.aud-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.aud-card h3 { font-size: clamp(21px, 2.6vw, 27px); margin-bottom: 14px; }
.aud-card p { color: rgba(245, 241, 232, 0.76); margin-bottom: 22px; font-size: 16px; }
.aud-cta { margin-top: 26px; }

/* ============================================================
   Services pillars
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 30px);
}
.svc {
  background: var(--bone-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.svc:hover {
  transform: translateY(-6px);
  border-color: rgba(128, 99, 31, 0.5);
  box-shadow: 0 28px 50px -32px rgba(20, 24, 31, 0.4);
}
.svc-mark { width: 40px; height: 40px; margin-bottom: 22px; }
.svc-mark svg { width: 100%; height: 100%; }
.svc h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 10px; }
.svc > p { color: #565249; font-size: 16px; margin-bottom: 22px; font-weight: 500; }

/* ============================================================
   Approach steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 26px);
  counter-reset: step;
}
.step {
  background: linear-gradient(180deg, var(--panel), rgba(27, 33, 43, 0.4));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(24px, 2.8vw, 34px);
  position: relative;
}
.step-n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  background: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step h4 { font-size: 22px; margin-bottom: 10px; }
.step p { color: rgba(245, 241, 232, 0.72); font-size: 15.5px; }

/* Approach block folded into the light "What we do" section */
.approach-block {
  margin-top: clamp(56px, 8vw, 84px);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line-light);
}
.approach-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 44px); }
.approach-head h3 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  margin-bottom: 16px;
}
.section.light .step {
  background: var(--bone-2);
  border-color: var(--line-light);
}
.section.light .step p { color: rgba(20, 24, 31, 0.7); }

/* ============================================================
   Proof / track record
   ============================================================ */
.proof {
  background:
    radial-gradient(800px 500px at 15% 10%, rgba(199, 162, 75, 0.08), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}
.proof-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.pull {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.3;
  color: var(--bone);
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin-top: 30px;
}
.proof-stats { display: flex; flex-direction: column; gap: 18px; }
.pstat {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.pstat-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 48px);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.pstat-label { color: var(--stone); font-size: 15px; }

/* ============================================================
   About
   ============================================================ */
/* About / team spotlight.
   Base layout is also the JS-off fallback: every member renders in
   full as a readable two-column block. JS adds .is-enhanced to
   [data-team], which collapses the non-featured members into a
   clickable thumbnail rail and enlarges the featured member. */
.team-people {
  display: grid;
  gap: clamp(48px, 7vw, 82px);
}
.member {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.member-toggle {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
  -webkit-appearance: none;
  appearance: none;
}
.member-photo {
  position: relative;
  display: block;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink), var(--ink-2));
  border: 1px solid var(--line-dark);
  box-shadow: 0 40px 80px -40px rgba(20, 24, 31, 0.55);
}
.member-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: inherit;
}
/* Gold accent line ties each portrait to the Ascent spine. */
.member-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(199, 162, 75, 0));
}
.member-detail h3 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 6px; }
.role-line {
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.member-detail p:not(.role-line) {
  color: rgba(20, 24, 31, 0.78);
  margin-bottom: 18px;
  font-size: 16.5px;
}
.member-detail .btn { margin-top: 10px; }
.member-tag { display: none; }
.member-tag-name {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.2;
  color: var(--ink);
}
.member-tag-role {
  display: block;
  margin-top: 4px;
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.03em;
}
/* Interaction hint. Only meaningful in the enhanced spotlight (where
   the two non-featured members are collapsed into clickable thumbs),
   so it is hidden in the JS-off / motion-off full layout. */
.team-hint { display: none; }
.motion-on .team-people.is-enhanced .team-hint {
  display: block;
  order: -2;
  flex: 0 0 100%;
  margin: 0;
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.03em;
}

/* Enhanced spotlight (JS on). Featured member spans the row and
   sits first; the others become a side-by-side thumbnail rail. */
.motion-on .team-people.is-enhanced {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(22px, 3.4vw, 40px);
}
.motion-on .team-people.is-enhanced .member { display: block; }
.motion-on .team-people.is-enhanced .member.is-featured {
  order: -1;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
/* Selected member gets the large portrait. */
.motion-on .team-people.is-enhanced .member.is-featured {
  grid-template-columns: 1fr 1fr;
}
.motion-on .team-people.is-enhanced .member.is-featured .member-photo {
  max-width: 460px;
}
/* Unselected members collapse to small clickable thumbnails. They get a
   fixed width so both render identically regardless of caption length. */
.motion-on .team-people.is-enhanced .member:not(.is-featured) { flex: 0 0 auto; width: 300px; }
.motion-on .team-people.is-enhanced .member:not(.is-featured) .member-toggle {
  flex-direction: column;
  align-items: stretch;
  cursor: pointer;
}
.motion-on .team-people.is-enhanced .member:not(.is-featured) .member-photo {
  max-width: 360px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.motion-on .team-people.is-enhanced .member:not(.is-featured) .member-detail {
  display: none;
}
.motion-on .team-people.is-enhanced .member:not(.is-featured) .member-tag {
  display: block;
  margin-top: 16px;
}
.js
  .team-people.is-enhanced
  .member:not(.is-featured)
  .member-toggle:hover
  .member-photo,
.js
  .team-people.is-enhanced
  .member:not(.is-featured)
  .member-toggle:focus-visible
  .member-photo {
  box-shadow: 0 46px 84px -40px rgba(20, 24, 31, 0.62);
}
.motion-on
  .team-people.is-enhanced
  .member:not(.is-featured)
  .member-toggle:hover
  .member-photo {
  transform: translateY(-5px);
}

/* Detail fades in when a click promotes a member (motion only). */
@keyframes memberDetailIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.motion-on .team-people.is-anim .member.is-featured .member-detail {
  animation: memberDetailIn 0.5s var(--ease) both;
}

@media (max-width: 760px) {
  .member,
  .motion-on .team-people.is-enhanced .member.is-featured {
    grid-template-columns: 1fr;
    gap: 30px;
    justify-items: center;
  }
  .member-detail { max-width: 460px; }
  .motion-on .team-people.is-enhanced .member:not(.is-featured) { flex: 0 0 auto; width: 150px; }
  .motion-on .team-people.is-enhanced .member:not(.is-featured) .member-photo { max-width: 210px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 860px;
  border-top: 1px solid var(--line-dark);
}
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--bone);
  position: relative;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background:
    linear-gradient(var(--gold), var(--gold)) center/100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center/2px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-a {
  overflow: hidden;
  padding: 0 48px 26px 0;
}
.faq-a p { color: rgba(245, 241, 232, 0.74); font-size: 16.5px; }
.motion-on .faq-a { animation: faqOpen 0.35s var(--ease); }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Contact
   ============================================================ */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}
.contact-list { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-light);
}
.cl-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.contact-list a, .contact-list span:not(.cl-label) {
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
}
.contact-list a:hover { color: var(--gold-deep); }

.contact-form {
  background: var(--bone-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #4a463e;
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(20, 24, 31, 0.16);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(128, 99, 31, 0.16);
}
.field input.invalid, .field textarea.invalid {
  border-color: #b4452f;
  box-shadow: 0 0 0 3px rgba(180, 69, 47, 0.12);
}
.contact-form .btn { width: 100%; margin-top: 4px; }
.contact-form .btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }
.form-note {
  margin-top: 14px;
  font-size: 14.5px;
  min-height: 20px;
}
.form-note.ok { color: #1f7a4d; font-weight: 600; }
.form-note.err { color: #b4452f; font-weight: 600; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
}
.foot-logo { margin-bottom: 18px; }
.foot-brand p { color: var(--stone); font-size: 15px; max-width: 320px; }
.foot-nav h4, .foot-contact h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.foot-nav a, .foot-contact a, .foot-contact span {
  display: block;
  color: rgba(245, 241, 232, 0.72);
  font-size: 15px;
  margin-bottom: 12px;
  transition: color 0.2s var(--ease);
}
.foot-nav a:hover, .foot-contact a:hover { color: var(--gold); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line-dark);
  padding-block: 22px 30px;
}
.foot-bottom span { color: var(--stone); font-size: 13.5px; }
.foot-tag {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold) !important;
}

/* Hero load animation. Gated under .motion-on, so when motion is off
   (no-JS, reduced-motion, or the toggle) the hero is simply visible. */
.motion-on .hero-shards .shard {
  opacity: 0;
  transform: translateY(60px) scaleY(0.6);
}
.motion-on .hero.loaded .shard {
  animation: shardRise 0.9s var(--ease) forwards;
}
.motion-on .hero.loaded .s1 { animation-delay: 0.15s; }
.motion-on .hero.loaded .s2 { animation-delay: 0.32s; }
.motion-on .hero.loaded .s3 { animation-delay: 0.49s; }
@keyframes shardRise {
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}
.motion-on .hero-inner > * {
  opacity: 0;
  transform: translateY(22px);
}
.motion-on .hero.loaded .hero-inner > * {
  animation: heroFade 0.7s var(--ease) forwards;
}
.motion-on .hero.loaded .hero-eyebrow { animation-delay: 0.2s; }
.motion-on .hero.loaded .hero-title { animation-delay: 0.34s; }
.motion-on .hero.loaded .hero-lede { animation-delay: 0.5s; }
.motion-on .hero.loaded .hero-cta { animation-delay: 0.62s; }
@keyframes heroFade {
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .proof-inner { grid-template-columns: 1fr; gap: 40px; }
  .member,
  .motion-on .team-people.is-enhanced .member.is-featured {
    grid-template-columns: 1fr;
  }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .hero-shards { opacity: 0.32; width: clamp(280px, 70vw, 440px); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .brand-word em { display: none; }
}

/* ============================================================
   Brand loader. Only shown while .js.loading; never blocks content,
   never appears for no-JS visitors.
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: var(--ink-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s var(--ease), visibility 0s linear 0.55s;
}
.js.loading .loader {
  opacity: 1;
  visibility: visible;
  transition: none;
}
html:not(.js) .loader { display: none; }
.loader-mark { width: 80px; height: auto; }
.loader-mark .shard { transform-box: fill-box; transform-origin: bottom center; }
.motion-on .loader-mark .shard { opacity: 0.28; animation: loaderPulse 1.15s var(--ease) infinite; }
.motion-on .loader-mark .s2 { animation-delay: 0.16s; }
.motion-on .loader-mark .s3 { animation-delay: 0.32s; }
@keyframes loaderPulse { 50% { opacity: 1; } }

/* ============================================================
   The Ascent. Below 1280px the device is a thin top progress bar;
   at 1280px and up it becomes a full left rail with section nodes.
   Driven entirely by --ascent-progress (set from one rAF loop).
   ============================================================ */
.ascent-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 101;
  pointer-events: none;
}
.ascent-bar-fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(var(--ascent-progress, 0));
  background: linear-gradient(90deg, var(--gold), #e6c878);
}
.ascent-track,
.ascent-nodes { display: none; }

@media (min-width: 1280px) {
  .ascent-bar { display: none; }

  .ascent-track {
    display: block;
    position: fixed;
    left: var(--rail-x);
    top: var(--rail-top);
    bottom: var(--rail-bottom);
    width: 2px;
    border-radius: 2px;
    background: var(--line-dark);
    z-index: 90;
  }
  .ascent-fill {
    position: absolute;
    inset: 0 0 auto 0;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--gold), #e6c878);
    transform-origin: top center;
    transform: scaleY(var(--ascent-progress, 0));
  }

  .ascent-nodes {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    position: fixed;
    left: var(--rail-x);
    top: var(--rail-top);
    height: calc(100vh - var(--rail-top) - var(--rail-bottom));
    width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 91;
    pointer-events: none;
  }
  .ascent-node {
    position: relative;
    left: 1px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 8px;
    pointer-events: auto;
  }
  .ascent-dot {
    width: 10px;
    height: 10px;
    margin-left: -5px;
    flex: none;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--stone);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
      transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }
  .ascent-node.passed .ascent-dot { border-color: var(--gold); }
  .ascent-node.active .ascent-dot {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.35);
    box-shadow: 0 0 0 5px rgba(199, 162, 75, 0.16);
  }
  .ascent-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(16, 20, 27, 0.92);
    border: 1px solid var(--line-dark);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .ascent-num {
    font-family: var(--display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--gold);
  }
  .ascent-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--bone);
  }
  .ascent-node:hover .ascent-meta,
  .ascent-node:focus-visible .ascent-meta { opacity: 1; transform: none; }

  /* Hero launch line: the spine's origin, aligned to the rail. */
  .hero-spine {
    display: block;
    position: absolute;
    left: var(--rail-x);
    top: 32%;
    bottom: 0;
    width: 2px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, var(--gold) 28%, rgba(199, 162, 75, 0));
  }
  .motion-on .hero-spine { transform: scaleY(0); transform-origin: top; transition: transform 1.1s var(--ease) 0.55s; }
  .motion-on .hero.loaded .hero-spine { transform: scaleY(1); }
}
.hero-spine { display: none; }

/* ============================================================
   Scroll reveals. Start states live ONLY under .motion-on, so with
   motion off (no-JS, reduced-motion, or the toggle) everything is
   simply visible and these classes are inert.
   ============================================================ */
.motion-on [data-reveal=""] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.motion-on [data-reveal=""].in { opacity: 1; transform: none; }

.motion-on [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.motion-on [data-reveal="stagger"].in > * { opacity: 1; transform: none; }
.motion-on [data-reveal="stagger"].in > *:nth-child(1) { transition-delay: 0.04s; }
.motion-on [data-reveal="stagger"].in > *:nth-child(2) { transition-delay: 0.12s; }
.motion-on [data-reveal="stagger"].in > *:nth-child(3) { transition-delay: 0.20s; }
.motion-on [data-reveal="stagger"].in > *:nth-child(4) { transition-delay: 0.28s; }
.motion-on [data-reveal="stagger"].in > *:nth-child(5) { transition-delay: 0.36s; }

/* ============================================================
   Contact mark. The shards scatter, then reassemble as the section
   enters, bookending the hero shard rise.
   ============================================================ */
.contact-mark { width: 58px; margin-bottom: 24px; }
.contact-mark svg { width: 100%; height: auto; }
.contact-mark .shard { transform-box: fill-box; transform-origin: center; }
.motion-on .contact-mark .shard {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
}
.motion-on .contact-mark .shard.s1 { transform: translate(-20px, 22px) rotate(-10deg); }
.motion-on .contact-mark .shard.s2 { transform: translate(0, 30px); }
.motion-on .contact-mark .shard.s3 { transform: translate(20px, 22px) rotate(10deg); }
.motion-on .contact-mark.in .shard { opacity: 1; transform: none; }
.motion-on .contact-mark.in .shard.s2 { transition-delay: 0.1s; }
.motion-on .contact-mark.in .shard.s3 { transition-delay: 0.2s; }

/* ============================================================
   Responsive (Ascent)
   ============================================================ */
@media (max-width: 760px) {
  .ascent-bar { height: 2px; }
}

/* ============================================================
   Reduced motion. The OS preference is the hard floor: even if the
   motion toggle is on, neutralize every motion start state so no
   content can be left hidden, and stop all animation.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .motion-on .hero-shards .shard,
  .motion-on .hero-inner > *,
  .motion-on .hero-spine,
  .motion-on [data-reveal=""],
  .motion-on [data-reveal="stagger"] > *,
  .motion-on .contact-mark .shard {
    opacity: 1 !important;
    transform: none !important;
  }
  .motion-on .hero-spine { transform: scaleY(1) !important; }
  .scroll-hint span { animation: none; }
  .loader { display: none !important; }

  /* The interactive team spotlight would otherwise collapse the two
     non-featured bios behind a click. Restore the full base layout so
     every member reads in full, matching the JS-off fallback. Clicks are
     made inert in setupTeamSpotlight() under reduced motion. */
  .motion-on .team-people.is-enhanced {
    display: grid;
    gap: clamp(48px, 7vw, 82px);
  }
  .motion-on .team-people.is-enhanced .member,
  .motion-on .team-people.is-enhanced .member.is-featured {
    display: grid;
    order: 0;
    flex: none;
  }
  .motion-on .team-people.is-enhanced .member:not(.is-featured) .member-detail {
    display: block;
  }
  .motion-on .team-people.is-enhanced .member:not(.is-featured) .member-tag {
    display: none;
  }
  .motion-on .team-people.is-enhanced .member:not(.is-featured) .member-toggle {
    cursor: default;
  }
  .motion-on .team-people.is-enhanced .team-hint { display: none; }
}
