/* ==========================================================================
   24x7Coach — Premium dark editorial single-page site
   AI × Leadership × Careers
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink: #0a0d13;
  --ink-2: #0d111a;
  --ink-3: #111622;
  --line: rgba(226, 231, 240, 0.09);
  --line-2: rgba(226, 231, 240, 0.16);
  --gold: #c9a24b;
  --gold-bright: #e8ce8f;
  --gold-dim: rgba(201, 162, 75, 0.12);
  --paper: #edeae2;
  --muted: #9ba1ae;
  --dim: #6b7180;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ---------- Utilities ---------- */
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.container { width: min(var(--maxw), 92%); margin-inline: auto; }

section { scroll-margin-top: 84px; }
section[id] { position: relative; }

em { font-style: italic; color: var(--gold-bright); }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.6rem 1rem;
  transition: top 0.25s;
}
.skip-link:focus { top: 12px; }

.blink { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---------- Boot loader ---------- */
html.js #loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
html.js #loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { color: var(--muted); font-size: 0.82rem; line-height: 2; }
.loader-inner .boot-ready { color: var(--gold); }
.loader-inner p { opacity: 0; transform: translateY(4px); }
html.js #loader .boot-line.visible { animation: bootIn 0.35s var(--ease) forwards; }
@keyframes bootIn { to { opacity: 1; transform: translateY(0); } }
.loader-terminal {
  width: min(700px, calc(100% - 40px));
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.42);
}
.loader-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: linear-gradient(rgba(226, 231, 240, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(226, 231, 240, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
}
.loader-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 66px;
  padding: 0 1.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.72rem;
}
.loader-bar span:nth-last-child(2) { margin-left: auto; color: var(--muted); letter-spacing: 0.16em; }
.loader-bar span:last-child { margin-left: 4.5rem; color: var(--dim); }
.loader-bar .t-dot { width: 11px; height: 11px; border-radius: 50%; background: #2b3342; }
.loader-bar .t-dot:first-child { background: #3a4253; }
.loader-bar .t-dot:nth-child(2) { margin-left: 6.5rem; }
.loader-inner { position: relative; z-index: 1; padding: 2.15rem 2.1rem 2.7rem; font-size: clamp(0.72rem, 1.7vw, 0.95rem); line-height: 2.45; min-height: 355px; }
.loader-inner p { min-height: 1.9em; margin: 0; white-space: pre-wrap; color: var(--muted); }
.loader-inner p:nth-child(odd) { color: var(--paper); }
.loader-inner p:first-child, .loader-inner p:nth-child(3) { color: var(--gold); }
.loader-inner .boot-ready { font-weight: 600; color: var(--gold-bright); }
.loader-inner .boot-line::after { content: "▊"; color: var(--gold); animation: blink 1.1s steps(2, start) infinite; }
.loader-skip { position: absolute; z-index: 2; right: 1.7rem; bottom: 0.85rem; color: var(--dim); font-size: 0.62rem; letter-spacing: 0.12em; background: transparent; border: 0; }
.loader-skip:hover { color: var(--gold-bright); }
html.js #loader.fast { transition-duration: 0.35s; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 13, 19, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.12em;
}
.brand img {
  display: block;
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.2rem);
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { width: 100%; }

.nav-links .nav-cta {
  color: var(--gold);
  border: 1px solid rgba(201, 162, 75, 0.45);
  padding: 0.55rem 1.1rem;
  letter-spacing: 0.12em;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px rgba(201, 162, 75, 0.55);
}
.btn-ghost { border: 1px solid var(--line-2); color: var(--paper); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-lg { padding: 1.15rem 2.2rem; font-size: 0.84rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 45% at 78% 12%, rgba(201, 162, 75, 0.08), transparent 70%),
    radial-gradient(45% 40% at 8% 88%, rgba(70, 90, 140, 0.1), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(226, 231, 240, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 231, 240, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(75% 75% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
}
.kicker .dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  flex: 0 0 auto;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 1.8rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-bright);
  display: block;
  font-weight: 300;
}

.hero-lede {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 34rem;
}
.hero-lede.dim { color: var(--dim); font-size: 0.98rem; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-transform: uppercase;
}
.hero-proof li { display: flex; align-items: center; gap: 0.9rem; }
.hero-proof li:not(:last-child)::after { content: "✦"; color: var(--gold); font-size: 0.6rem; }

/* ---------- Terminal card ---------- */
.terminal {
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
}
.terminal-bar::after { content: "zsh"; opacity: 0.6; }
.t-dot { width: 9px; height: 9px; border-radius: 50%; background: #2b3342; }
.t-dot:first-child { background: #3a4253; }
.t-dot:nth-child(2) { background: #4a5365; }

.terminal-body {
  padding: 1.3rem 1.4rem 1.5rem;
  font-size: 0.78rem;
  line-height: 2;
}
.terminal-body p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-prompt { color: var(--gold); }
.t-out { color: var(--muted); }
.t-status { color: var(--gold-bright); font-weight: 600; }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero-scroll a { display: flex; align-items: center; gap: 0.5rem; }
.hero-scroll .arrow { color: var(--gold); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee-track i { font-style: normal; color: var(--gold); font-size: 0.66rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */
.sec-tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.sec-tag::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 220px;
}
.sec-tag.center { justify-content: center; }
.sec-tag.center::after { display: none; }

.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.sec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.sec-sub {
  margin-top: 1.2rem;
  color: var(--muted);
  max-width: 38rem;
  font-size: 1rem;
}

/* ---------- Who I Serve ---------- */
.serve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.serve-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  border-radius: var(--radius);
  position: relative;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.serve-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.serve-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.serve-card:hover::before { opacity: 1; }

.serve-label {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.4rem;
}
.serve-question {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.4rem;
}
.serve-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}
.serve-text + .serve-text { margin-top: 0.9rem; }

/* ---------- Programs ---------- */
.program {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 22, 34, 0.75), rgba(13, 17, 26, 0.95));
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3.4rem);
  margin-bottom: 1.6rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.program:hover { border-color: var(--line-2); }
.program-feature {
  border-color: rgba(201, 162, 75, 0.28);
  background:
    radial-gradient(50% 60% at 90% 0%, rgba(201, 162, 75, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(17, 22, 34, 0.85), rgba(13, 17, 26, 0.95));
}

.program-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
  margin-bottom: 2rem;
}
.program-num {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  border: 1px solid rgba(201, 162, 75, 0.4);
  padding: 0.4rem 0.7rem;
  white-space: nowrap;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}
.badge-gold { color: var(--gold); border-color: rgba(201, 162, 75, 0.5); }

.program-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.1;
}
.program-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.program-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--gold-bright);
  border-left: 2px solid var(--gold);
  padding-left: 1.1rem;
  margin-bottom: 1.2rem;
}

.program-who {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 58ch;
  margin-bottom: 1.6rem;
}
.program-who .mono {
  display: block;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.program-desc {
  color: var(--muted);
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.8;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  margin: 1.6rem 0 2rem;
}
.program-meta li {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--paper);
  text-transform: uppercase;
  padding-left: 0.7rem;
  border-left: 2px solid var(--gold);
}

.program-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

/* ---------- Module grid ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.module {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.2rem 1.3rem;
  background: rgba(13, 17, 26, 0.6);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.module:hover { border-color: rgba(201, 162, 75, 0.5); transform: translateY(-3px); }
.m-num { color: var(--gold); font-size: 0.66rem; letter-spacing: 0.14em; }
.module h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.02rem;
  margin: 0.45rem 0 0.4rem;
}
.module p { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }

/* ---------- A.D.A.P.T. arc ---------- */
.adapt-arc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.adapt-arc li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.2rem;
  background: rgba(13, 17, 26, 0.6);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.adapt-arc li:hover { border-color: rgba(201, 162, 75, 0.5); transform: translateY(-3px); }
.a-letter {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.adapt-arc h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
}
.adapt-arc p { font-size: 0.78rem; color: var(--muted); line-height: 1.7; }

.artifact-callout {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  border: 1px solid rgba(201, 162, 75, 0.35);
  background: var(--gold-dim);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
}
.artifact-label {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.artifact-text {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--paper);
}
.artifact-text em { font-style: normal; color: var(--gold); }

/* ---------- R.I.S.E. / S.H.I.F.T. pillars & steps ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pillar {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.2rem;
  background: rgba(13, 17, 26, 0.6);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.pillar:hover { border-color: rgba(201, 162, 75, 0.5); transform: translateY(-3px); }
.pillar-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 162, 75, 0.5);
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.pillar h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.pillar p { font-size: 0.8rem; color: var(--muted); line-height: 1.7; }

.shift-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.shift-steps li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.2rem;
  background: rgba(13, 17, 26, 0.6);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.shift-steps li:hover { border-color: rgba(201, 162, 75, 0.5); transform: translateY(-3px); }
.shift-steps h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.08rem;
  margin: 0.8rem 0 0.35rem;
}
.shift-steps p { font-size: 0.78rem; color: var(--muted); line-height: 1.7; }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.whoami { color: var(--dim); font-size: 0.78rem; margin-top: 1.2rem; }

.about-portrait {
  position: relative;
  margin-top: 2.4rem;
  max-width: 340px;
}
.about-portrait::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: var(--radius);
  pointer-events: none;
}
.about-portrait img {
  position: relative;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.about-portrait-caption {
  position: absolute;
  right: -10px;
  bottom: 14px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  font-weight: 600;
}
.about-body p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}
.about-body p + p { margin-top: 1.1rem; }
.about-body strong { color: var(--paper); font-weight: 600; }

.about-pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--paper);
  border-left: 2px solid var(--gold);
  padding-left: 1.4rem;
  margin: 2rem 0;
}
.about-pull em { font-style: normal; color: var(--gold); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  margin-bottom: 1.8rem;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold-bright);
}
.stat-plus { font-family: var(--serif); color: var(--gold); }
.stat-label {
  margin-top: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.6;
}

.about-cta { margin-top: 1rem; }
.link-gold {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(201, 162, 75, 0.4);
  padding-bottom: 0.25rem;
  transition: color 0.25s, border-color 0.25s;
}
.link-gold:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.why-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.why-item:hover { border-color: rgba(201, 162, 75, 0.45); transform: translateY(-3px); }
.why-index {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 1.1rem;
}
.why-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.why-item p { font-size: 0.88rem; color: var(--muted); line-height: 1.75; }

/* ---------- Stories ---------- */
.stories { border-top: 1px solid var(--line); }
.stories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.story {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.story:hover { border-color: rgba(201, 162, 75, 0.45); transform: translateY(-3px); }
.story blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--paper);
  margin-bottom: 1.4rem;
}
.story figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
}
.story-name { color: var(--gold); }

/* ---------- Insights ---------- */
.insights { border-top: 1px solid var(--line); }
.insight-list { border-top: 1px solid var(--line); }
.insight-list li { border-bottom: 1px solid var(--line); }
.insight-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--paper);
  transition: color 0.25s, padding-left 0.3s var(--ease);
}
.insight-list a:hover { color: var(--gold-bright); padding-left: 0.75rem; }
.insight-list .arrow { color: var(--gold); font-size: 0.9rem; }
.insights-more { margin-top: 1.6rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); max-width: 52rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  padding: 1.35rem 0.25rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.4;
  color: var(--paper);
  list-style: none;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
  flex: 0 0 auto;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold-bright); }
.faq-answer {
  padding: 0 0.25rem 1.5rem;
  color: var(--muted);
  max-width: 60ch;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---------- Contact ---------- */
.contact {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 70% at 0% 100%, rgba(201, 162, 75, 0.08), transparent 70%),
    radial-gradient(45% 60% at 100% 20%, rgba(70, 90, 140, 0.08), transparent 70%),
    var(--ink);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.contact-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.contact-sub {
  color: var(--muted);
  max-width: 34rem;
  margin-top: 1.4rem;
  font-size: 1.02rem;
}
.contact-ctas { margin-top: 2.6rem; }
.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.4rem 2.6rem;
  margin-top: 3rem;
}
.cd {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(201, 162, 75, 0.4);
  padding-bottom: 0.35rem;
  transition: color 0.25s, border-color 0.25s;
}
.cd:hover { color: var(--gold); border-color: var(--gold); }

.contact-photo {
  position: relative;
  justify-self: end;
  max-width: 440px;
  width: 100%;
}
.contact-photo::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid rgba(201, 162, 75, 0.4);
  border-radius: var(--radius);
  pointer-events: none;
}
.contact-photo img {
  position: relative;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85);
}
.contact-photo-caption {
  position: absolute;
  left: 14px;
  bottom: -1.6rem;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.2rem 0 2rem;
  background: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 2rem;
  align-items: start;
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--dim);
  margin-top: 0.9rem;
  font-size: 1rem;
}

.footer-brand .brand img {
  height: 44px;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-self: center;
  gap: 0.75rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.8rem;
}
.footer-links a {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--gold); }
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

/* ---------- Scroll reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
html.js [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-terminal { max-width: 520px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .adapt-arc, .shift-steps { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-photo { max-width: 460px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    background: rgba(10, 13, 19, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 2rem 8%;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { font-size: 0.95rem; }

  .hero { min-height: auto; padding: 130px 0 80px; }
  .hero-scroll { display: none; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }

  .serve-grid, .stories-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-portrait { max-width: 300px; }
  .contact-copy { align-items: flex-start; }
  .contact-photo { justify-self: center; margin-top: 2.5rem; }
  .contact-photo-caption { left: 14px; bottom: -1.4rem; }
  .program-head { grid-template-columns: 1fr; gap: 1rem; }
  .artifact-callout { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-base { flex-direction: column; }
  .terminal-body p { white-space: normal; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track,
  .kicker .dot,
  .blink,
  .hero-scroll .arrow,
  .loader-inner .boot-line { animation: none !important; }
}



