/* ============================================================================
   PROJECT RENAISSANCE — TEJI INTERNATIONAL P.L.C.
   Design system & page styles
   ============================================================================
   CONTENTS
   01  Tokens
   02  Reset & base
   03  Typography scale
   04  Utilities & shared components
   05  Preloader
   06  Navigation
   07  WebGL canvas layer
   08  Scroll indicator & cursor
   09  Section: Hero
   10  Section: Why Renaissance
   11  Section: Timeline
   12  Section: Pillars
   13  Section: Initiatives
   14  Section: Leadership
   15  Section: Team
   16  Section: Apprenticeship
   17  Section: Chapters
   18  Section: Future
   19  Section: Manifesto
   20  Section: Closing & CTA
   21  Footer
   22  Responsive
   23  Reduced motion
   ========================================================================= */

/* == 01  TOKENS ========================================================== */
:root {
  /* Brand */
  --estate-navy:  #102A4A;
  --navy-deep:    #0A1A2F;
  --navy-black:   #060F1C;
  --forest-green: #1F4338;
  --brass:        #A67C2E;
  --teji-red:     #C61F2B;
  --charcoal:     #363636;
  --warm-ivory:   #F4F0E6;
  --white:        #FFFFFF;

  /* Derived surfaces */
  --ivory-dim:    #E8E2D2;
  --ivory-line:   rgba(16, 42, 74, .13);
  --navy-line:    rgba(244, 240, 230, .13);
  --navy-line-2:  rgba(244, 240, 230, .07);
  --glass-navy:   rgba(16, 42, 74, .42);
  --glass-light:  rgba(244, 240, 230, .05);

  /* Text on dark */
  --on-dark:      #F4F0E6;
  --on-dark-mid:  rgba(244, 240, 230, .70);
  --on-dark-dim:  rgba(244, 240, 230, .45);
  /* Text on light */
  --on-light:     #102A4A;
  --on-light-mid: rgba(54, 54, 54, .78);
  --on-light-dim: rgba(54, 54, 54, .52);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --pad-x:   clamp(20px, 5vw, 80px);
  --pad-y:   clamp(72px, 11vh, 160px);
  --maxw:    1440px;
  --measure: 62ch;

  /* Motion */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-io:   cubic-bezier(.76, 0, .24, 1);
  --dur-fast:  .28s;
  --dur:       .6s;
  --dur-slow:  1.1s;
}

/* == 02  RESET & BASE ==================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--navy-black);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

::selection { background: var(--teji-red); color: var(--warm-ivory); }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--teji-red);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--pad-x);
  z-index: 999;
  padding: 12px 20px;
  background: var(--teji-red);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 16px; }

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

/* == 03  TYPOGRAPHY ====================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(.62rem, .8vw, .72rem);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--teji-red);
  flex: none;
}
.section--light .eyebrow { color: var(--on-light-dim); }

.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: .92;
  letter-spacing: -.02em;
}

.h-xl { font-size: clamp(3.2rem, 11vw, 10.5rem); }
.h-lg { font-size: clamp(2.6rem, 7.5vw, 6.2rem); }
.h-md { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.h-sm { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }

.lede {
  max-width: var(--measure);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
  color: var(--on-dark-mid);
}
.section--light .lede { color: var(--on-light-mid); }

.statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -.01em;
  max-width: 20ch;
}

.label {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* Brass is reserved for dates and milestone markers only. */
.date-mark {
  font-family: var(--serif);
  color: var(--brass);
  font-variant-numeric: lining-nums tabular-nums;
}

/* == 04  UTILITIES & SHARED ============================================= */
.section {
  position: relative;
  padding: var(--pad-y) var(--pad-x);
  z-index: 2;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; }

.section--light { background: var(--warm-ivory); color: var(--on-light); }
.section--navy  { background: var(--estate-navy); }
.section--deep  { background: var(--navy-deep); }
.section--black { background: var(--navy-black); }
.section--clear { background: transparent; }

.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .display { margin-top: 20px; }
/* Supporting copy needs air after a display heading set at .92 line-height,
   otherwise descenders sit almost on top of it. */
.section-head .display + .lede,
.section-head .display + .statement { margin-top: clamp(20px, 2.6vw, 32px); }
.section-head .display + .future__disclaimer { margin-top: clamp(20px, 2.6vw, 30px); }

/* Hairline rule used to separate structural blocks */
.rule {
  height: 1px;
  background: var(--navy-line);
  border: 0;
  margin: 0;
}
.section--light .rule { background: var(--ivory-line); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 14px 28px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn--solid {
  background: var(--teji-red);
  border-color: var(--teji-red);
  color: var(--white);
}
.btn--solid:hover { background: #a91824; border-color: #a91824; }
.btn--ghost { color: var(--on-dark); border-color: rgba(244,240,230,.32); }
.btn--ghost:hover { background: var(--on-dark); color: var(--estate-navy); border-color: var(--on-dark); }
.section--light .btn--ghost { color: var(--on-light); border-color: rgba(16,42,74,.3); }
.section--light .btn--ghost:hover { background: var(--estate-navy); color: var(--warm-ivory); border-color: var(--estate-navy); }

.btn__arrow { width: 14px; height: 14px; flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Image frames with graceful placeholder ---------------------------------
   Any <figure class="frame"> renders a blueprint placeholder when the image
   is missing or fails to load. No layout shift, no broken-image icon.       */
.frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16,42,74,.9), rgba(6,15,28,.95)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(244,240,230,.03) 14px 15px);
  aspect-ratio: 4 / 3;
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transition: opacity var(--dur) var(--ease-out), transform 1.4s var(--ease-out);
}
.frame img.is-missing { opacity: 0; }
.frame__ph {
  position: absolute; inset: 0;
  display: grid; place-content: center;
  gap: 8px; text-align: center;
  padding: 24px;
  color: var(--on-dark-dim);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.frame__ph.is-shown { opacity: 1; }
.frame__ph-mark {
  width: 34px; height: 34px;
  margin: 0 auto 4px;
  border: 1px solid rgba(244,240,230,.22);
  position: relative;
}
.frame__ph-mark::before,
.frame__ph-mark::after {
  content: ""; position: absolute; background: rgba(244,240,230,.22);
}
.frame__ph-mark::before { inset: 50% 0 auto; height: 1px; }
.frame__ph-mark::after  { inset: 0 50% auto; width: 1px; height: 100%; }
.frame__ph-txt { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; }

/* Reveal-on-scroll base state (GSAP animates these in) */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal-line { display: block; overflow: hidden; }

/* == 05  PRELOADER ====================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-content: center; gap: 28px;
  background: var(--navy-black);
  text-align: center;
}
#preloader.is-done { pointer-events: none; }
.pre__orbits { width: 132px; height: 132px; margin: 0 auto; }
.pre__orbits circle { fill: none; }
.pre__word {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--warm-ivory);
  opacity: 0;
}
.pre__sub {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  opacity: 0;
}

/* == 06  NAVIGATION ===================================================== */
#nav {
  position: fixed; inset: 0 0 auto; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad-x);
  transition: padding var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              backdrop-filter var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
#nav.is-stuck {
  padding-block: 12px;
  background: rgba(10, 26, 47, .78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--navy-line-2);
}

.nav__brand {
  display: flex; align-items: center; gap: 12px; flex: none;
  min-height: 44px;   /* touch target minimum */
}
/* Logo floats free — never in a box or frame. */
.nav__logo { height: 80px; width: auto; object-fit: contain; }
.nav__logo-fallback {
  font-family: var(--serif);
  font-size: 1.35rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--warm-ivory);
}

.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__link {
  position: relative;
  padding: 6px 0;
  font-size: .78rem;
  font-weight: 450;
  letter-spacing: .04em;
  color: var(--on-dark-mid);
  transition: color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.nav__link:hover { color: var(--on-dark); }
.nav__link[aria-current="page"] { color: var(--on-dark); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--teji-red);
}
.nav__link[aria-current="page"]::before {
  content: "";
  position: absolute; left: -12px; top: 50%;
  width: 4px; height: 4px; margin-top: -2px;
  border-radius: 50%; background: var(--teji-red);
}

.nav__toggle { display: none; width: 44px; height: 44px; place-content: center; }
.nav__toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--on-dark); margin: 5px 0;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
#nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#nav.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
#nav.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* == 07  WEBGL CANVAS =================================================== */
#gl-canvas {
  position: fixed; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
#gl-canvas.is-ready { opacity: 1; }

/* CSS fallback shown when WebGL is unavailable or low-power mode is on */
#gl-fallback {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 35%, rgba(31,67,56,.30), transparent 70%),
    radial-gradient(ellipse 70% 60% at 25% 65%, rgba(16,42,74,.55), transparent 70%);
  transition: opacity 1.2s var(--ease-out);
}
#gl-fallback.is-ready { opacity: 1; }

/* == 08  SCROLL INDICATOR & CURSOR ====================================== */
#progress {
  position: fixed; z-index: 400;
  right: clamp(16px, 2.4vw, 34px); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
  mix-blend-mode: difference;
}
.prog__num {
  font-size: .6rem; font-weight: 600;
  letter-spacing: .1em; color: rgba(244,240,230,.55);
  font-variant-numeric: tabular-nums;
}
.prog__track {
  position: relative;
  width: 1px; height: clamp(120px, 22vh, 220px);
  background: rgba(244,240,230,.2);
}
.prog__fill {
  position: absolute; inset: 0 0 auto;
  width: 100%; height: 0%;
  background: var(--teji-red);
  transition: height .18s linear;
}
.prog__label {
  position: absolute; right: 14px; top: 0;
  transform: translateY(-50%);
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244,240,230,.7); white-space: nowrap;
  opacity: 0; transition: opacity var(--dur-fast);
}

/* Mobile: thin bottom progress line instead of the vertical rail */
#progress-bar {
  display: none;
  position: fixed; z-index: 400;
  left: 0; right: 0; bottom: 0; height: 2px;
  background: rgba(244,240,230,.14);
}
#progress-bar span {
  display: block; height: 100%; width: 0%;
  background: var(--teji-red);
  transition: width .12s linear;
}

/* Custom cursor — desktop pointer devices only (see media query below) */
#cursor, #cursor-ring { display: none; }

/* == 09  HERO =========================================================== */
#hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--pad-x) 90px;
  overflow: hidden;
}
/* Blueprint grid + vignette + grain sit behind hero copy, above canvas */
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--navy-line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line-2) 1px, transparent 1px);
  background-size: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px);
  mask-image: radial-gradient(ellipse 90% 75% at 30% 50%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 30% 50%, #000 20%, transparent 78%);
}
.hero__vignette {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 85% 70% at 50% 50%, transparent 30%, rgba(6,15,28,.72) 100%),
    linear-gradient(180deg, rgba(6,15,28,.85) 0%, transparent 22%, transparent 68%, rgba(6,15,28,.92) 100%);
}
.hero__inner { position: relative; width: 100%; max-width: var(--maxw); margin-inline: auto; }

.hero__title { margin: 26px 0 0; }
.hero__title-top {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  font-weight: 300;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--on-dark-mid);
  margin-bottom: clamp(2px, .6vw, 8px);
}
.hero__title-main {
  display: block;
  font-family: var(--serif);
  /* Capped against viewport height as well as width: the hero must hold
     eyebrow, title, rule, subtitle, lede and actions inside one screen. */
  font-size: clamp(3rem, min(11vw, 15.5vh), 9.5rem);
  font-weight: 300;
  line-height: .86;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: var(--warm-ivory);
}
/* Thin red energy line under the wordmark — the only red in the hero */
.hero__underline {
  width: 0; height: 2px;
  margin-top: clamp(18px, 2.5vw, 34px);
  background: linear-gradient(90deg, var(--teji-red), rgba(198,31,43,0));
  max-width: 460px;
}
.hero__sub {
  margin-top: clamp(16px, 2.2vh, 28px);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 300;
  color: var(--warm-ivory);
}
/* Constrained so the lede never runs under the globe on wide screens */
.hero__lede {
  margin-top: 16px;
  max-width: 48ch;
  font-size: clamp(.94rem, 1.1vw, 1.06rem);
}

.hero__actions {
  margin-top: clamp(24px, 3.4vh, 44px);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.hero__scroll-hint {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-dark-dim);
}
.hero__scroll-hint svg { width: 12px; height: 18px; }
.hero__scroll-hint .dot { animation: hintDrop 2.4s var(--ease-io) infinite; }
@keyframes hintDrop {
  0%, 100% { transform: translateY(0); opacity: .3; }
  45%      { transform: translateY(6px); opacity: 1; }
}

/* == 10  WHY RENAISSANCE ================================================ */
#why { position: relative; }
/* Heading left, statement right — the two halves of the argument sit
   side by side on wide screens and stack on narrow ones. */
.why__head {
  display: grid;
  gap: clamp(24px, 4vw, 64px);
  grid-template-columns: 1fr;
  align-items: end;
}
.why__statement { color: var(--estate-navy); }
.why__body {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 44px);
  grid-template-columns: 1fr;
  max-width: var(--measure);
}

@media (min-width: 900px) {
  .why__head { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .why__statement { padding-bottom: .4em; }
  /* Two measured columns read better than one long column at this width */
  .why__body { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: clamp(28px, 4vw, 56px); }
}

.why__concepts {
  margin-top: clamp(56px, 8vw, 104px);
  display: grid; gap: 1px;
  background: var(--ivory-line);
  border-block: 1px solid var(--ivory-line);
  grid-template-columns: repeat(3, 1fr);
}
.concept {
  position: relative;
  background: var(--warm-ivory);
  padding: clamp(28px, 3.4vw, 46px) clamp(20px, 2.6vw, 38px);
  display: flex; flex-direction: column; gap: 16px;
  transition: background var(--dur) var(--ease-out);
  min-height: 100%;
  text-align: left;
  width: 100%;
}
.concept:hover, .concept.is-active { background: var(--ivory-dim); }
/* Roman numerals: these three states are a real progression, so the
   sequence marker carries meaning rather than decoration. */
.concept__idx {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .1em;
  color: var(--brass);
}
.concept__title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--estate-navy);
}
.concept__lines { display: grid; gap: 3px; }
.concept__lines li {
  font-size: .92rem;
  color: var(--on-light-mid);
}
.concept__body {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--ivory-line);
  font-size: .88rem;
  line-height: 1.65;
  color: var(--on-light-dim);
}

/* == 11  TIMELINE ======================================================= */
#timeline { overflow: hidden; }
.tl__track {
  margin-top: clamp(40px, 6vw, 76px);
  display: grid;
  gap: 1px;
  background: var(--navy-line-2);
}
.tl__item {
  position: relative;
  background: var(--navy-deep);
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 2.4fr) minmax(0, 1.6fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding: clamp(28px, 3.4vw, 48px) 0;
  transition: background var(--dur) var(--ease-out);
}
.tl__item:hover { background: rgba(16,42,74,.55); }
.tl__year {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 300;
  line-height: 1;
  color: var(--brass);
  letter-spacing: .01em;
}
.tl__item--now .tl__year { color: var(--teji-red); }
.tl__meta { display: flex; flex-direction: column; gap: 12px; }
.tl__title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--warm-ivory);
}
.tl__body { font-size: .93rem; line-height: 1.68; color: var(--on-dark-mid); max-width: 52ch; }
.tl__node {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teji-red);
}
.tl__node::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teji-red);
  box-shadow: 0 0 0 4px rgba(198,31,43,.18);
}
.tl__figure { aspect-ratio: 16 / 10; }

/* == 12  PILLARS ======================================================== */
#pillars { position: relative; }
.pillars__head .statement { color: var(--warm-ivory); max-width: 26ch; }
.pillars__lede { margin-top: 24px; }

.pillars__grid {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--navy-line-2);
  border: 1px solid var(--navy-line-2);
}
.pillar {
  position: relative;
  background: var(--estate-navy);
  padding: clamp(26px, 2.8vw, 42px);
  display: flex; flex-direction: column; gap: 14px;
  text-align: left; width: 100%;
  min-height: clamp(240px, 26vw, 320px);
  transition: background var(--dur) var(--ease-out);
  overflow: hidden;
}
.pillar::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--teji-red);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.pillar:hover, .pillar.is-active { background: #143459; }
.pillar:hover::after, .pillar.is-active::after { transform: scaleX(1); }
/* 01–06 numbering: the six pillars are a defined set, and the numbers are
   how they are referenced internally, so the marker is informative. */
.pillar__num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--on-dark-dim);
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-fast);
}
.pillar:hover .pillar__num, .pillar.is-active .pillar__num { color: var(--teji-red); }
.pillar__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--warm-ivory);
}
.pillar__summary { font-size: .9rem; line-height: 1.6; color: var(--on-dark-mid); }
.pillar__points {
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--navy-line-2);
  display: flex; flex-wrap: wrap; gap: 6px 10px;
}
.pillar__points li {
  font-size: .72rem; letter-spacing: .03em;
  color: var(--on-dark-dim);
}
.pillar__points li + li::before { content: "· "; color: rgba(244,240,230,.28); }
.pillar__note {
  margin-top: 12px;
  font-size: .72rem; line-height: 1.5;
  color: var(--brass);
}

/* == 13  INITIATIVES ==================================================== */
#initiatives { position: relative; }
.init__list {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--navy-line-2);
}
.init {
  border-bottom: 1px solid var(--navy-line-2);
}
.init__btn {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.6fr) 130px 28px;
  gap: clamp(14px, 2.4vw, 36px);
  align-items: center;
  padding: clamp(20px, 2.4vw, 30px) 0;
  text-align: left;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.init__btn:hover { opacity: .78; }
.init__title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--warm-ivory);
}
.init__cat { font-size: .74rem; letter-spacing: .04em; color: var(--on-dark-dim); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .6rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap;
}
.status::before {
  content: ""; width: 6px; height: 6px; flex: none;
  border-radius: 50%; background: currentColor;
}
.status[data-s="COMPLETED"]      { color: #6FBF9B; }
.status[data-s="ACTIVE"]         { color: var(--teji-red); }
.status[data-s="IN PROGRESS"]    { color: var(--brass); }
.status[data-s="IN DEVELOPMENT"] { color: rgba(244,240,230,.55); }
.status[data-s="ONGOING"]        { color: #7FA6C9; }
.status[data-s="ACTIVE"]::before { box-shadow: 0 0 0 4px rgba(198,31,43,.18); }

.init__chev {
  width: 14px; height: 14px; justify-self: end;
  color: var(--on-dark-dim);
  transition: transform var(--dur) var(--ease-out), color var(--dur-fast);
}
.init__btn[aria-expanded="true"] .init__chev { transform: rotate(180deg); color: var(--teji-red); }

.init__panel {
  overflow: hidden;
  height: 0;
}
.init__panel-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px);
  padding: 0 0 clamp(26px, 3vw, 38px);
  max-width: 1000px;
}
.init__field-label {
  font-size: .6rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--teji-red);
  margin-bottom: 8px;
}
.init__field-body { font-size: .9rem; line-height: 1.68; color: var(--on-dark-mid); }

/* == 14  LEADERSHIP ===================================================== */
/* == 14  LEADERSHIP ===================================================== */
#leadership { position: relative; overflow: hidden; }
.lead__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 80px);
  /* stretch, not center: the portrait column matches the height of the
     text column, so the image ends level with the button row. */
  align-items: stretch;
  margin-top: clamp(36px, 5vw, 64px);
}

/* The decorative grid backdrop is inset negatively; clipping here keeps it
   from widening the page on narrow viewports. */
.lead__portrait-wrap {
  position: relative;
  overflow: hidden;
  padding: 10px;
  display: flex;          /* lets the portrait fill the stretched cell */
}
.lead__portrait {
  position: relative;
  flex: 1;
  min-height: 0;          /* required, or flex refuses to shrink the image */
  display: flex;
  border: 1px solid var(--navy-line);
}
/* The <figure class="frame"> inside carries a 4/3 ratio from the shared
   component. Override it here so the image fills the full column height. */
.lead__portrait .frame {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}
.lead__portrait .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.lead__name {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--navy-deep);
}
.lead__role {
  margin-top: 12px;
  font-size: .92rem;
  letter-spacing: .04em;
  color: var(--on-dark-mid);
}
.lead__body { margin-top: 26px; display: grid; gap: 16px; max-width: 56ch; }
.lead__quote {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding-left: clamp(20px, 3vw, 34px);
  border-left: 2px solid var(--teji-red);
}
.lead__quote p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--navy-deep);
}
.lead__quote footer {
  margin-top: 16px;
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--navy-deep);
}
.lead__actions { margin-top: clamp(28px, 4vw, 40px); display: flex; gap: 12px; flex-wrap: wrap; }

/* == 16  APPRENTICESHIP ================================================= */
#apprenticeship { background: var(--deep); }
.appr__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.appr__cohort {
  display: inline-block;
  padding: 7px 16px;
  font-size: .62rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--warm-ivory);
  border: 1px solid rgba(244,240,230,.28);
  margin-bottom: 26px;
}
.appr__body { margin-top: 26px; max-width: 54ch; color: rgba(244,240,230,.78); }
.appr__acts { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.appr__acts li {
  padding: 7px 14px;
  font-size: .72rem;
  color: rgba(244,240,230,.72);
  border: 1px solid rgba(244,240,230,.18);
}
.appr__figure { aspect-ratio: 3 / 4; }

/* == 17  CHAPTERS ======================================================= */
#chapters { position: relative; }
.chapter {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
  padding: clamp(48px, 8vh, 110px) 0;
  border-top: 1px solid var(--navy-line-2);
}
.chapter:first-child { border-top: 0; }
/* Chapters 01–05 describe what is being built, in build order. */
.chapter__num {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: var(--brass);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.chapter__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--warm-ivory);
}
.chapter__body { margin-top: 20px; font-size: .96rem; line-height: 1.7; color: var(--on-dark-mid); }



/* == 18  FUTURE JOURNEY ================================================= */
#future { background: var(--navy-black); }
.future__disclaimer {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px;
  padding: 8px 16px;
  font-size: .62rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(166,124,46,.36);
}
.future__stages {
  margin-top: clamp(44px, 6vw, 76px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--navy-line-2);
  border: 1px solid var(--navy-line-2);
}
.stage {
  position: relative;
  background: var(--navy-black);
  padding: clamp(26px, 2.6vw, 40px) clamp(20px, 2.2vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
  min-height: clamp(280px, 30vw, 360px);
  transition: background var(--dur) var(--ease-out);
}
/* Later stages are progressively brighter — the corridor becomes illuminated. */
.stage:nth-child(1) { background: #060F1C; }
.stage:nth-child(2) { background: #091727; }
.stage:nth-child(3) { background: #0D2036; }
.stage:nth-child(4) { background: #122B48; }
.stage:hover { background: #16375C; }
.stage__num {
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--on-dark-dim); font-variant-numeric: tabular-nums;
}
.stage__kind {
  font-size: .58rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--teji-red);
}
.stage__title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.9vw, 1.75rem);
  font-weight: 400; line-height: 1.12;
  color: var(--warm-ivory);
}
.stage__points {
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--navy-line-2);
  display: grid; gap: 7px;
}
.stage__points li { font-size: .78rem; color: var(--on-dark-dim); }

/* == 19  MANIFESTO ====================================================== */
#manifesto {
  background: var(--navy-black);
  padding-block: clamp(96px, 16vh, 200px);
  text-align: center;
}
.mani__line {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--warm-ivory);
}
.mani__neg {
  font-size: clamp(1.9rem, 6vw, 4.6rem);
  margin-bottom: clamp(28px, 5vh, 64px);
  color: var(--on-dark-dim);
}
.mani__neg b { font-weight: 300; color: var(--warm-ivory); display: block; }
.mani__reveal {
  font-size: clamp(2.3rem, 8.4vw, 7rem);
  margin-block: clamp(44px, 8vh, 96px);
}
.mani__reveal span { display: block; }
.mani__reveal .accent { color: var(--teji-red); }
.mani__closing {
  display: grid; gap: 18px;
  max-width: 48ch; margin-inline: auto;
  margin-top: clamp(40px, 7vh, 88px);
}
.mani__closing p {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  line-height: 1.65;
  color: var(--on-dark-mid);
}
.mani__final {
  margin-top: clamp(56px, 10vh, 120px);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: .01em;
  color: var(--warm-ivory);
}

/* == 20  CLOSING & CTA ================================================== */
#closing {
  position: relative;
  min-height: 100svh;
  display: grid; place-content: center;
  text-align: center;
  padding: var(--pad-y) var(--pad-x);
}
/* The final globe sits directly behind this text. A soft radial scrim keeps
   the tagline at full contrast without hiding the geometry behind it. */
#closing::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 52% 26% at 50% 50%, rgba(6,15,28,.78), transparent 72%);
  pointer-events: none;
}
#closing .wrap { position: relative; }
.closing__tagline {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5.6vw, 4.4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--warm-ivory);
}
.closing__tagline span { display: block; }
.closing__company {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--on-dark-dim);
}
/* Easter-egg labels around the final globe.
   Rendered only where the hover interaction exists, and translated back by
   their own width on the right-hand side so they never widen the page. */
.globe-hint {
  position: absolute;
  padding: 5px 11px;
  font-size: .56rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(166,124,46,.3);
  background: rgba(6,15,28,.72);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease-out);
  white-space: nowrap;
  transform: translateX(-50%);
}
#closing.hints-on .globe-hint { opacity: 1; }
/* No hover means no easter egg — and no stray absolutely-positioned boxes. */
@media (hover: none), (max-width: 1023px) {
  .globe-hint { display: none; }
}

#cta { background: var(--estate-navy); text-align: center; }
.cta__title { color: var(--warm-ivory); margin-inline: auto; max-width: 16ch; }
.cta__actions {
  margin-top: clamp(32px, 4.5vw, 48px);
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}

/* == 21  FOOTER ========================================================= */
#footer {
  background: var(--navy-black);
  padding: clamp(56px, 8vw, 88px) var(--pad-x) 32px;
  border-top: 1px solid var(--navy-line-2);
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.foot__logo { height: 38px; width: auto; margin-bottom: 18px; }
.foot__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--warm-ivory);
}
.foot__tagline { margin-top: 10px; font-size: .8rem; color: var(--on-dark-dim); max-width: 34ch; }
.foot__col-title {
  font-size: .6rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-dim);
  margin-bottom: 16px;
}
.foot__col li + li { margin-top: 9px; }
.foot__col a, .foot__col span {
  font-size: .84rem; color: var(--on-dark-mid);
  transition: color var(--dur-fast) var(--ease-out);
  /* Email addresses and URLs are single unbreakable tokens — without this
     they push the footer wider than the viewport in narrow columns. */
  overflow-wrap: anywhere;
  display: inline-block;
  max-width: 100%;
}
.foot__col a:hover { color: var(--warm-ivory); }
.foot__bottom {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--navy-line-2);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: .72rem; color: var(--on-dark-dim);
}

/* == 22  RESPONSIVE ===================================================== */

/* Custom cursor: fine pointers only, never on touch */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  #cursor, #cursor-ring {
    display: block; position: fixed; z-index: 800;
    top: 0; left: 0; pointer-events: none;
    border-radius: 50%;
    will-change: transform;
  }
  #cursor {
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--warm-ivory);
    mix-blend-mode: difference;
  }
  #cursor-ring {
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid rgba(244,240,230,.34);
    transition: width .3s var(--ease-out), height .3s var(--ease-out),
                margin .3s var(--ease-out), border-color .3s var(--ease-out);
  }
  #cursor-ring.is-hover {
    width: 56px; height: 56px; margin: -28px 0 0 -28px;
    border-color: var(--teji-red);
  }
  #cursor-ring.is-explore { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  #cursor-ring .lbl {
    position: absolute; inset: 0;
    display: grid; place-content: center;
    font-size: .5rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--warm-ivory); opacity: 0;
    transition: opacity .3s var(--ease-out);
  }
  #cursor-ring.is-explore .lbl { opacity: 1; }
}

@media (min-width: 1440px) {
  .init__panel-inner { grid-template-columns: repeat(2, minmax(0, 460px)); }
}

@media (max-width: 1023px) {
  #progress { display: none; }
  #progress-bar { display: block; }

  .lead__layout,
  .team__layout,
  .appr__layout { grid-template-columns: 1fr; }

  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .future__stages { grid-template-columns: repeat(2, 1fr); }

  .chapter { grid-template-columns: 72px minmax(0, 1fr); }
  /* Four footer columns are too narrow below ~1024px to hold an email
     address on one line. */
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter__points {
    grid-column: 2;
    border-left: 0; padding-left: 0;
    padding-top: 20px; margin-top: 20px;
    border-top: 1px solid var(--navy-line-2);
    grid-template-columns: repeat(2, 1fr);
  }
  .chapter__points li::before { display: none; }

  .tl__item { grid-template-columns: 130px minmax(0, 1fr); }
  .tl__figure { grid-column: 2; max-width: 420px; }

  .lead__portrait-wrap { max-width: 460px; }
}

@media (max-width: 767px) {
  :root { --pad-y: clamp(56px, 9vh, 96px); }

  #nav { padding-block: 14px; }
  .nav__links {
    position: fixed; inset: 0 0 auto;
    flex-direction: column; align-items: flex-start;
    gap: 4px;
    padding: 84px var(--pad-x) 32px;
    background: rgba(6,15,28,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-101%);
    transition: transform var(--dur) var(--ease-io);
    border-bottom: 1px solid var(--navy-line-2);
  }
  #nav.menu-open .nav__links { transform: translateY(0); }
  .nav__link { font-size: 1rem; padding: 12px 0; width: 100%; min-height: 44px; display: flex; align-items: center; }
  .nav__link[aria-current="page"]::before { left: -14px; }
  .nav__toggle { display: grid; }

  /* Concepts, pillars and stages stack into single columns on phones */
  .why__concepts,
  .pillars__grid,
  .future__stages { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .stage { min-height: 0; }

  /* Initiative rows recompose: title, then status beneath */
  .init__btn {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 8px 14px;
    padding-block: 20px;
    min-height: 44px;
  }
  .init__cat { grid-column: 1; grid-row: 2; }
  .init__btn .status { grid-column: 1; grid-row: 3; margin-top: 4px; }
  .init__chev { grid-column: 2; grid-row: 1; }
  .init__panel-inner { grid-template-columns: 1fr; }

  .tl__item { grid-template-columns: 1fr; gap: 16px; }
  .tl__figure { grid-column: 1; max-width: none; }

  .chapter { grid-template-columns: 1fr; gap: 14px; padding-block: 52px; }
  .chapter__points { grid-column: 1; grid-template-columns: 1fr; }

  /* Orbital team layout is not usable at this width — show the list */
  .orbit { display: none; }
  .team__list { display: block; }
  .team__detail { display: none; }

  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Footer links need real touch targets on phones, not 22px text rows. */
  .foot__col li + li { margin-top: 0; }
  .foot__col a {
    min-height: 44px;
    display: flex; align-items: center;
  }

  .lead__orbit { display: none; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .hero__scroll-hint { justify-content: center; width: 100%; }
}

@media (max-width: 480px) {
  .h-xl { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  /* "RENAISSANCE" is eleven characters — at this width the wordmark has to
     be sized to the string, not to a generic display scale, or it clips. */
  .hero__title-main { font-size: clamp(2rem, 11.4vw, 3.2rem); letter-spacing: -.03em; }
  .hero__title-top { letter-spacing: .24em; font-size: clamp(1.05rem, 4.6vw, 1.5rem); }
  .foot__grid { grid-template-columns: 1fr; }
  .mani__reveal { font-size: clamp(2rem, 11vw, 3.2rem); }
  .mani__neg { font-size: clamp(1.6rem, 8vw, 2.4rem); }
}

/* == 23  REDUCED MOTION ================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  /* Any element GSAP would have animated in must be visible by default. */
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__underline { width: 300px !important; }
  #gl-canvas { display: none; }
  #gl-fallback { opacity: 1; }
  .hero__scroll-hint .dot { animation: none; }
}
