/* ============================================================
   PAUL JEEVANESAN — pauljeevanesan.me   (v3 — Living Growth Ribbon)
   Warm paper canvas · ink navy · one ribbon through 14 chapters
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
------------------------------------------------------------ */
:root {
  --bg:        #fdfcf8;
  --ivory:     #f6f2ea;
  --paper:     #fffdf7;
  --surface:   #ffffff;
  --border:    #e8e2d6;
  --border-2:  #d7d0c0;

  --ink:       #14213c;
  --ink-2:     #35415e;
  --slate:     #5d6579;

  --green:      #0e8a5f;   /* StudAI  */
  --green-soft: #e3f2ea;
  --amber:      #b26a00;   /* NexArc  */
  --amber-soft: #f9efdd;
  --sky:        #0c7bb3;   /* theTN   */
  --sky-deep:   #1e3a8a;
  --sky-soft:   #e4f2fa;
  --royal:      #1d4ed8;   /* Leo     */
  --royal-soft: #e8eefc;
  --gold:       #b08a3e;
  --gold-soft:  #f7efdc;
  --coral:      #d95436;   /* editorial tick */
  --coral-soft: #fbebe5;

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", -apple-system, "Segoe UI", sans-serif;

  --fs-hero:    clamp(2.4rem, 6vw, 4.7rem);
  --fs-chapter: clamp(1.95rem, 4.2vw, 3.3rem);
  --fs-body:    1.0625rem;
  --fs-tiny:    .75rem;

  --shell: 1180px;
  --ease:   cubic-bezier(.22, .8, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .44, 1);
  --focus:  0 0 0 3px rgba(29, 78, 216, .45);
}

/* ------------------------------------------------------------
   2. BASE
------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--ink); color: #fff; padding: .6rem 1.1rem;
  border-radius: 8px; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.shell--narrow { max-width: 860px; }
.chapter { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.chapter--ivory { background: var(--ivory); }
.chapter--royal { background: linear-gradient(180deg, var(--ivory), #fff 130%); }
.plain { color: inherit; text-decoration-color: var(--border-2); text-underline-offset: 3px; }

/* ------------------------------------------------------------
   3. TYPE PRIMITIVES
------------------------------------------------------------ */
.kicker {
  font: 600 var(--fs-tiny)/1.5 var(--sans); letter-spacing: .16em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 1.1rem;
}
.kicker--green { color: var(--green); }
.kicker--amber { color: var(--amber); }
.kicker--sky   { color: var(--sky); }
.kicker--royal { color: var(--royal); }
.kicker--center { text-align: center; }
.kicker a { text-decoration-thickness: 1px; }

.chapter-title { font: 500 var(--fs-chapter)/1.08 var(--serif); letter-spacing: -.01em; max-width: 22ch; }
.chapter-title em { font-style: italic; }
.chapter-head { margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.chapter-head--center { text-align: center; }
.chapter-head--center .chapter-title, .chapter-head--center .chapter-intro { margin-inline: auto; }
.chapter-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.chapter-intro { margin-top: 1.2rem; max-width: 58ch; color: var(--ink-2); }

.tick { color: var(--coral); }
.tick--green { color: var(--green); }
.tick--amber { color: var(--amber); }
.tick--sky   { color: var(--sky); }

/* ------------------------------------------------------------
   4. BUTTONS
------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.5rem; border-radius: 999px;
  font: 600 .9375rem/1 var(--sans); text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .25s var(--spring), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: .95rem 1.9rem; }
.btn--ink   { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #21335c; }
.btn--line  { border-color: var(--border-2); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--green { background: var(--green); color: #fff; }
.btn--sky   { background: var(--sky-deep); color: #fff; }

/* ------------------------------------------------------------
   5. MOTION PRIMITIVES
------------------------------------------------------------ */
.js .reveal, .js .rise {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in, .js .rise.is-in { opacity: 1; transform: none; }

/* Ribbon strokes: drawn by scroll/JS; visible by default without JS */
.js [pathLength] { stroke-dasharray: 100; }

/* ------------------------------------------------------------
   6. OPENING SEQUENCE
------------------------------------------------------------ */
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; text-align: center;
  background: var(--bg);
  transition: opacity .5s var(--ease), visibility .5s;
}
.no-js .intro, .intro.is-done { opacity: 0; visibility: hidden; }
.intro__word { font: 500 clamp(2rem, 5vw, 3.4rem)/1.15 var(--serif); color: var(--slate); min-height: 1.3em; }
.intro.show-name .intro__word { color: var(--ink); }
.intro__stroke { width: min(320px, 60vw); margin: .6rem auto 0; display: block; }
.intro__stroke path { stroke: var(--coral); stroke-width: 2.5; stroke-linecap: round; }
.js .intro__stroke path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .9s var(--ease) .1s; }
.js .intro.show-name .intro__stroke path { stroke-dashoffset: 0; }

/* ------------------------------------------------------------
   7. SPINE — the fixed ribbon (desktop only)
------------------------------------------------------------ */
.spine {
  position: fixed; left: 1.4rem; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.spine__track {
  width: 3px; height: 34vh; border-radius: 3px;
  background: var(--border); overflow: hidden; display: block;
}
.spine__fill {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--green), var(--sky), var(--royal), var(--gold));
  transform: scaleY(0); transform-origin: top;
}
.spine__word {
  writing-mode: vertical-rl; font: 600 .6875rem/1 var(--sans);
  letter-spacing: .22em; text-transform: uppercase; color: var(--slate);
  transition: color .3s;
}
.no-js .spine { display: none; }
@media (max-width: 1160px) { .spine { display: none; } }

/* ------------------------------------------------------------
   8. NAVIGATION
------------------------------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform .35s var(--ease), background .25s, box-shadow .25s;
}
.nav.is-solid { background: rgba(253, 252, 248, .9); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--shell); margin-inline: auto;
  padding: .85rem clamp(1.25rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.nav__sig { width: 2.1rem; color: var(--coral); }
.nav__name { font: 600 .95rem/1 var(--sans); }
.nav__links { display: flex; align-items: center; gap: 1.25rem; }
.nav__links a {
  font: 500 .855rem/1 var(--sans); text-decoration: none; color: var(--ink-2);
  padding: .4rem 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); border-color: var(--coral); }
.nav__cta { border: 1.5px solid var(--ink); border-radius: 999px; padding: .5rem 1.05rem !important; color: var(--ink) !important; }
.nav__cta:hover { background: var(--ink); color: #fff !important; }
.nav__toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; padding: .6rem; }
.nav__toggle-line { width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__toggle-line:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-line:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ------------------------------------------------------------
   9. CHAPTER 2 — HERO
------------------------------------------------------------ */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(6rem, 12vh, 8rem); padding-bottom: 0;
  background:
    radial-gradient(50rem 30rem at 90% -10%, var(--sky-soft) 0%, transparent 58%),
    radial-gradient(42rem 26rem at -10% 110%, var(--green-soft) 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero__inner {
  max-width: var(--shell); margin-inline: auto; width: 100%;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__eyebrow { font: 600 var(--fs-tiny)/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-bottom: 1.4rem; }
.hero__title { font: 500 var(--fs-hero)/1.06 var(--serif); letter-spacing: -.015em; }
.hero__title span { display: block; }
.hero__title em { font-style: italic; color: var(--ink-2); }
.hero__grow { position: relative; display: inline-block !important; color: var(--green); }
.hero__grow-ribbon { position: absolute; left: -2%; right: -2%; bottom: -.22em; width: 104%; }
.hero__grow-ribbon path { stroke: var(--green); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.js .hero__grow-ribbon path { stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s var(--ease) 1s; }
.js .hero__grow-ribbon path.is-in { stroke-dashoffset: 0; }

.hero__sub { margin-top: 1.5rem; max-width: 52ch; color: var(--ink-2); }
.hero__sub em { font-family: var(--serif); }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__keywords { list-style: none; display: flex; gap: .6rem; flex-wrap: wrap; margin: 2.2rem 0 0; padding: 0; }
.hero__keywords li {
  font: 600 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--slate); border: 1px solid var(--border-2); border-radius: 999px;
  padding: .45rem .85rem; background: rgba(255,255,255,.6);
  will-change: transform;
}

.hero__media { position: relative; margin: 0; }
.hero__wash {
  position: absolute; inset: -8% -6% auto auto; width: 82%; height: 88%;
  background: linear-gradient(150deg, var(--gold-soft), var(--sky-soft));
  border-radius: 44vmax 44vmax 26px 26px; z-index: 0;
}
.hero__img {
  position: relative; z-index: 1;
  width: 92%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 44vmax 44vmax 24px 24px;
  box-shadow: 0 30px 60px -32px rgba(20, 33, 60, .38);
}
.hero__tag {
  position: absolute; z-index: 2; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  padding: .6rem .9rem; font: 500 .78rem/1.4 var(--sans); color: var(--slate);
  box-shadow: 0 14px 30px -18px rgba(20, 33, 60, .35);
}
.hero__tag strong { color: var(--ink); font-weight: 600; }
.hero__tag--a { left: -1.2rem; bottom: 16%; }
.hero__tag--b { right: -.6rem; top: 12%; color: var(--royal); border-color: var(--royal-soft); }
.hero__tag--b strong { color: var(--royal); }
.hero__tag--c { right: 8%; bottom: -1rem; color: var(--green); border-color: var(--green-soft); }
.hero__tag--c strong { color: var(--green); }

.hero__ribbon { display: block; width: 100%; height: clamp(70px, 10vw, 140px); margin-top: clamp(1rem, 4vh, 3rem); }
.hero__ribbon path { stroke: var(--coral); stroke-width: 2.5; stroke-linecap: round; opacity: .7; }
.js .hero__ribbon path { stroke-dashoffset: 100; }
.hero__ribbon-dot { fill: var(--coral); }
.hero__route {
  max-width: var(--shell); margin: -1.6rem auto 1rem; padding-inline: clamp(1.25rem, 4vw, 3rem);
  display: flex; justify-content: space-between;
  font: 600 var(--fs-tiny)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--slate);
}

/* ------------------------------------------------------------
   10. CHAPTER 3 — FOUR WORLDS
------------------------------------------------------------ */
.worlds__stage {
  border: 1px solid var(--border); border-radius: 28px; background: var(--paper);
  padding: clamp(1.4rem, 3vw, 2.6rem);
  transition: background .6s var(--ease);
}
.worlds__stage[data-world="technology"]       { background: linear-gradient(150deg, var(--paper) 62%, var(--sky-soft)); }
.worlds__stage[data-world="entrepreneurship"] { background: linear-gradient(150deg, var(--paper) 62%, var(--green-soft)); }
.worlds__stage[data-world="leadership"]       { background: linear-gradient(150deg, var(--paper) 62%, var(--royal-soft)); }
.worlds__stage[data-world="impact"]           { background: linear-gradient(150deg, var(--paper) 62%, var(--coral-soft)); }

.worlds__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.worlds__tab {
  border: 1.5px solid var(--border-2); background: rgba(255,255,255,.7);
  border-radius: 999px; padding: .6rem 1.15rem;
  font: 600 .875rem/1 var(--sans); color: var(--ink-2);
  display: inline-flex; gap: .5rem; align-items: center;
  transition: all .25s var(--ease);
}
.worlds__tab-num { font: 500 .7rem/1 var(--serif); color: var(--coral); }
.worlds__tab:hover { border-color: var(--ink); color: var(--ink); }
.worlds__tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.worlds__tab.is-on .worlds__tab-num { color: var(--gold-soft); }

.worlds__view { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.worlds__panel[hidden] { display: none; }
.js .worlds__panel { animation: worldIn .5s var(--ease); }
@keyframes worldIn { from { opacity: 0; transform: translateY(14px); } }
.worlds__line { font: 500 clamp(1.4rem, 2.4vw, 2rem)/1.2 var(--serif); }
.worlds__body { margin-top: .9rem; color: var(--ink-2); max-width: 50ch; }
.worlds__items { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.worlds__items li {
  font: 600 .8125rem/1 var(--sans); color: var(--ink-2);
  border: 1px solid var(--border-2); border-radius: 999px; padding: .5rem .9rem;
  background: rgba(255,255,255,.75);
}
.worlds__figure-frame {
  border-radius: 50%; overflow: hidden; aspect-ratio: 1;
  max-width: 320px; margin-inline: auto;
  border: 6px solid #fff; box-shadow: 0 24px 48px -28px rgba(20,33,60,.35);
  transition: transform .5s var(--spring);
}
.worlds__stage:hover .worlds__figure-frame { transform: rotate(-2deg) scale(1.02); }
.worlds__figure-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------
   11. CHAPTER 4 — ARCHIVE
------------------------------------------------------------ */
.archive__hint { color: var(--slate); font: 500 .875rem/1 var(--sans); }
.archive__rail {
  display: flex; gap: 1.2rem; align-items: flex-start;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding: 1rem clamp(1.25rem, calc((100vw - var(--shell)) / 2 + 3rem), 20rem) 1.6rem;
  scrollbar-width: none; cursor: grab;
}
.archive__rail::-webkit-scrollbar { display: none; }
.archive__rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.doc {
  flex: 0 0 min(330px, 76vw); scroll-snap-align: start;
  transform: rotate(var(--r, 0deg));
  transition: transform .35s var(--spring);
}
.doc:hover { transform: rotate(0deg) translateY(-6px); }
.doc__face {
  width: 100%; text-align: left; border: 1px solid var(--border-2);
  background:
    linear-gradient(180deg, var(--paper), #fbf7ee);
  border-radius: 4px 18px 18px 18px; padding: 1.4rem 1.5rem 1.3rem;
  box-shadow: 0 1px 0 #fff inset, 0 18px 34px -24px rgba(20,33,60,.35);
  display: flex; flex-direction: column; gap: .5rem; position: relative;
}
.doc__face::before {
  content: ""; position: absolute; top: -10px; left: 18px;
  width: 84px; height: 22px; border-radius: 6px 6px 0 0;
  background: var(--ivory); border: 1px solid var(--border-2); border-bottom: 0;
}
.doc__year { font: 500 2.4rem/1 var(--serif); color: var(--coral); }
.doc__tag { font: 700 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.doc__img { border-radius: 10px; margin-block: .5rem; aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.doc__title { font: 500 1.3rem/1.2 var(--serif); color: var(--ink); }
.doc__open { margin-top: .6rem; font: 600 .8125rem/1 var(--sans); color: var(--royal); }
.doc.is-open .doc__open { color: var(--slate); }
.doc__body { padding: 1rem 1.3rem 0; color: var(--ink-2); font-size: .9375rem; max-width: 40ch; }
.archive__endcap { flex: 0 0 180px; display: grid; place-content: center; color: var(--slate); font: 500 .9rem/1.5 var(--sans); }

/* ------------------------------------------------------------
   12–14. COMPANY CHAPTERS — styles live in companies.css
------------------------------------------------------------ */

/* ------------------------------------------------------------
   15. CHAPTER 8 — LEO ASCENT
------------------------------------------------------------ */
.leo__ascent { position: relative; max-width: 900px; margin-inline: auto; }
.leo__sash { position: absolute; top: 0; bottom: 0; left: 1rem; width: 12px; height: 100%; }
.leo__sash path { stroke: var(--royal-soft); stroke-width: 5; fill: none; }
.js .leo__sash path { stroke: var(--royal); stroke-dashoffset: var(--sash, 100); transition: stroke-dashoffset .2s linear; }

.leo__stages { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); }
.leo__stage { position: relative; padding-left: clamp(3.4rem, 9vw, 8.5rem); }
.leo__year {
  position: absolute; left: 2.4rem; top: -.4rem;
  font: 500 clamp(2rem, 5.5vw, 4rem)/1 var(--serif);
  color: transparent; -webkit-text-stroke: 1.2px var(--border-2);
  writing-mode: horizontal-tb; pointer-events: none; white-space: nowrap;
}
.leo__stage--now .leo__year { color: var(--gold-soft); -webkit-text-stroke-color: var(--gold); }
.leo__card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 1.5rem 1.7rem; margin-top: clamp(2rem, 5vw, 3rem); position: relative;
  transition: transform .35s var(--spring), box-shadow .35s;
}
.leo__card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(29, 78, 216, .3); }
.leo__stage--now .leo__card { border-color: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.leo__scope {
  font: 700 .6875rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--royal); background: var(--royal-soft); border-radius: 999px; padding: .4rem .75rem;
  display: inline-block;
}
.leo__stage--now .leo__scope { color: var(--gold); background: var(--gold-soft); }
.leo__role { font: 500 1.55rem/1.15 var(--serif); margin-top: .7rem; }
.leo__org { font: 600 .9375rem/1.4 var(--sans); color: var(--ink-2); margin-top: .2rem; }
.leo__cap { font: 500 1.02rem/1.4 var(--serif); font-style: italic; color: var(--royal); margin-top: .6rem; }
.leo__stage--now .leo__cap { color: var(--gold); }
.leo__note { color: var(--slate); font-size: .9375rem; margin-top: .5rem; max-width: 56ch; }

.leo__photo { margin: 3rem auto 0; max-width: 900px; }
.leo__photo img { border-radius: 24px; width: 100%; object-fit: cover; }
.leo__photo figcaption { margin-top: .7rem; font: 500 .845rem/1.4 var(--sans); color: var(--slate); text-align: center; }

.leo__moments { max-width: 900px; margin: 2.6rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.leo__moment { border-top: 2px solid var(--gold); padding-top: 1rem; }
.leo__moment h3 { font: 600 1rem/1.35 var(--sans); }
.leo__moment p { color: var(--slate); font-size: .9rem; margin-top: .35rem; }

/* ------------------------------------------------------------
   16. CHAPTER 9 — IMPACT MOSAIC
------------------------------------------------------------ */
.impact__mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; grid-auto-rows: minmax(190px, auto); }
.impact__tile { border-radius: 20px; overflow: hidden; }
.impact__tile--photo { position: relative; }
.impact__tile--photo img { width: 100%; height: 100%; object-fit: cover; }
.impact__tile--photo:first-child { grid-row: span 2; }
.impact__tile--story {
  background: var(--paper); border: 1px solid var(--border);
  padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem;
  transition: transform .35s var(--spring), border-color .25s;
}
.impact__tile--story:hover { transform: translateY(-4px); border-color: var(--green); }
.impact__metric { font: 500 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--serif); color: var(--green); display: flex; align-items: baseline; gap: .5rem; }
.impact__metric span { font: 600 .72rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.impact__name { font: 600 1.05rem/1.3 var(--sans); margin-top: .2rem; }
.impact__note { color: var(--slate); font-size: .9rem; }

/* ------------------------------------------------------------
   17. CHAPTER 10 — GALLERY WALL
------------------------------------------------------------ */
.gallery__filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.gallery__filter {
  border: 1.5px solid var(--border-2); background: var(--surface); border-radius: 999px;
  padding: .5rem 1rem; font: 600 .8125rem/1 var(--sans); color: var(--ink-2);
  transition: all .2s;
}
.gallery__filter:hover { border-color: var(--ink); color: var(--ink); }
.gallery__filter.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery__wall { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 1rem; }
.gallery__frame {
  break-inside: avoid; margin-bottom: 1rem;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 6px;
  padding: 1.2rem 1.3rem 1.1rem; position: relative;
  box-shadow: 0 2px 0 #fff inset, 0 16px 30px -22px rgba(20,33,60,.3);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .3s var(--spring), box-shadow .3s, opacity .3s;
}
.gallery__frame::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--border-2);
}
.gallery__frame:hover { transform: rotate(0deg) translateY(-4px); }
.gallery__frame.is-dim { opacity: .18; }
.gallery__cat {
  font: 700 .655rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px; padding: .35rem .65rem; display: inline-block;
  background: var(--ivory); color: var(--slate);
}
.gallery__cat--award        { background: var(--gold-soft);  color: var(--gold); }
.gallery__cat--competition  { background: var(--coral-soft); color: var(--coral); }
.gallery__cat--certification{ background: var(--sky-soft);   color: var(--sky-deep); }
.gallery__cat--recognition  { background: var(--green-soft); color: var(--green); }
.gallery__cat--appointment  { background: var(--royal-soft); color: var(--royal); }
.gallery__cat--media        { background: var(--ivory);      color: var(--ink-2); }
.gallery__title { font: 500 1.08rem/1.35 var(--serif); margin-top: .7rem; }
.gallery__title a { text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.gallery__org { color: var(--slate); font-size: .845rem; margin-top: .35rem; }
.gallery__year { font: 600 .8rem/1 var(--sans); color: var(--coral); margin-top: .6rem; display: inline-block; }

/* ------------------------------------------------------------
   18. CHAPTER 11 — SPEAKING
------------------------------------------------------------ */
.speaking__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.speaking__stage { margin: 0; position: relative; }
.speaking__stage img {
  border-radius: 26px; width: 100%;
  box-shadow: 0 30px 60px -34px rgba(20, 33, 60, .45);
}
.speaking__venues { margin-top: .8rem; font: 500 .8125rem/1.6 var(--sans); color: var(--slate); }
.speaking__topics { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.speaking__topic {
  padding: .8rem .2rem; border-bottom: 1px solid var(--border);
  font: 500 1.12rem/1.3 var(--serif); color: var(--slate);
  transition: color .3s, padding-left .3s var(--ease);
}
.speaking__topic:first-child { border-top: 1px solid var(--border); }
.speaking__topic.is-on { color: var(--ink); padding-left: .8rem; }
.speaking__topic.is-on::before { content: "● "; color: var(--coral); font-size: .7em; vertical-align: middle; }
.speaking__audiences { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.speaking__audiences span {
  font: 600 .78rem/1 var(--sans); color: var(--ink-2);
  border: 1px solid var(--border-2); border-radius: 999px; padding: .45rem .85rem;
}
.speaking__ctas { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* ------------------------------------------------------------
   19. CHAPTER 12 — IDEAS DESK
------------------------------------------------------------ */
.ideas__desk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.ideas__cover {
  background: var(--ink); color: #fdfcf8; border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 2.8rem); min-height: 380px;
  display: flex; flex-direction: column; position: sticky; top: 90px;
}
.ideas__cover-tag { font: 700 .6875rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.ideas__cover-title { font: 500 clamp(1.7rem, 3.2vw, 2.5rem)/1.15 var(--serif); margin-top: 1rem; max-width: 16ch; }
.ideas__cover-line { margin-top: 1rem; color: rgba(253, 252, 248, .75); max-width: 38ch; }
.ideas__cover-meta { margin-top: auto; padding-top: 2rem; font: 500 .8125rem/1 var(--sans); color: rgba(253, 252, 248, .55); }
.js .ideas__cover.is-flip { animation: coverFlip .45s var(--ease); }
@keyframes coverFlip { 0% { opacity: .4; transform: translateY(10px); } 100% { opacity: 1; } }

.ideas__index { list-style: none; margin: 0; padding: 0; counter-reset: idea; }
.ideas__entry {
  width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--border-2);
  display: grid; grid-template-columns: 2.6rem 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.05rem .3rem; transition: background .2s, padding-left .3s var(--ease);
}
.ideas__index li:first-child .ideas__entry { border-top: 1px solid var(--border-2); }
.ideas__entry:hover { background: #fff; }
.ideas__entry.is-on { padding-left: .9rem; background: #fff; }
.ideas__entry-num { font: 500 .9rem/1 var(--serif); color: var(--coral); }
.ideas__entry-title { font: 500 1.08rem/1.35 var(--serif); }
.ideas__entry-tag { font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }

/* ------------------------------------------------------------
   20. CHAPTER 13 — MANIFESTO
------------------------------------------------------------ */
.manifesto { background: radial-gradient(52rem 28rem at 50% 120%, var(--gold-soft) 0%, transparent 55%), var(--bg); text-align: center; }
.manifesto__quote { margin: 0; font: 500 clamp(1.5rem, 3.3vw, 2.55rem)/1.42 var(--serif); letter-spacing: -.01em; }
.manifesto__quote .mw { opacity: .16; transition: opacity .45s var(--ease); }
.manifesto__quote .mw.is-lit { opacity: 1; }
.no-js .manifesto__quote .mw { opacity: 1; }

.manifesto__words { margin-top: 2.6rem; display: flex; justify-content: center; align-items: center; gap: .8rem; flex-wrap: wrap; }
.manifesto__word { position: relative; font: 500 1.35rem/1 var(--serif); padding: .5rem .4rem; cursor: default; }
.manifesto__word svg { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; }
.manifesto__word svg path { stroke-width: 3; stroke-linecap: round; fill: none; }
.manifesto__word[data-w="learn"] svg path { stroke: var(--sky); }
.manifesto__word[data-w="prove"] svg path { stroke: var(--gold); }
.manifesto__word[data-w="win"]   svg path { stroke: var(--coral); }
.manifesto__word[data-w="grow"]  svg path { stroke: var(--green); }
.js .manifesto__word svg path { stroke-dashoffset: 100; transition: stroke-dashoffset .7s var(--ease); }
.js .manifesto__word.is-in svg path, .manifesto__word:hover svg path { stroke-dashoffset: 0 !important; }
.manifesto__sep { color: var(--slate); }
.manifesto__sig { margin-top: 2.2rem; font: 500 1.05rem/1 var(--serif); font-style: italic; color: var(--slate); }

/* ------------------------------------------------------------
   21. CHAPTER 14 — CONNECT ROUTER
------------------------------------------------------------ */
.form-status { max-width: 640px; margin: 0 auto 1.6rem; padding: 1rem 1.3rem; border-radius: 14px; font-weight: 500; text-align: center; }
.form-status--ok  { background: var(--green-soft); color: var(--green); }
.form-status--err { background: var(--coral-soft); color: var(--coral); }

.connect__router { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 820px; margin: 0 auto 2rem; }
.connect__intent {
  border: 1.5px solid var(--border-2); background: var(--surface); border-radius: 999px;
  padding: .6rem 1.1rem; font: 600 .8125rem/1 var(--sans); color: var(--ink-2);
  transition: all .25s var(--ease);
}
.connect__intent:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.connect__intent.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.connect__form { max-width: 640px; margin-inline: auto; display: grid; gap: 1rem; }
.connect__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field__label { font: 600 .8125rem/1 var(--sans); color: var(--ink-2); }
.field__input {
  width: 100%; border: 1.5px solid var(--border-2); border-radius: 14px;
  padding: .9rem 1.1rem; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.field__input::placeholder { color: #a8acb8; }
.field__input:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px var(--royal-soft); }
.field__input--area { resize: vertical; min-height: 130px; }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.connect__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .3rem; }

.connect__sig { display: block; width: min(340px, 70vw); margin: 3rem auto 0; }
.connect__sig path { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; opacity: .85; }
.js .connect__sig path { stroke-dashoffset: 100; transition: stroke-dashoffset 2.2s var(--ease) .2s; }
.js .connect__sig.is-in path { stroke-dashoffset: 0; }

.connect__ventures { margin-top: 1.8rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.connect__ventures a {
  font: 600 .9rem/1 var(--sans); color: var(--ink-2); text-decoration: none;
  border-bottom: 1.5px solid var(--border-2); padding-bottom: .3rem;
  transition: color .2s, border-color .2s;
}
.connect__ventures a:hover { color: var(--ink); border-color: var(--coral); }

/* ------------------------------------------------------------
   22. FOOTER
------------------------------------------------------------ */
.footer { background: var(--ink); color: rgba(255, 255, 255, .82); }
.footer__inner { max-width: var(--shell); margin-inline: auto; padding: 3.4rem clamp(1.25rem, 4vw, 3rem) 2rem; display: grid; gap: 2.2rem; }
.footer__name { font: 500 1.6rem/1.2 var(--serif); color: #fff; }
.footer__role { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: .3rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.footer__col { display: grid; gap: .55rem; align-content: start; }
.footer__label { font: 700 var(--fs-tiny)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: .3rem; }
.footer__col a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .9375rem; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem; font-size: .8125rem; color: rgba(255,255,255,.55); }

/* ------------------------------------------------------------
   23. RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 1020px) {
  .worlds__view { grid-template-columns: 1fr; }
  .worlds__figure { order: -1; }
  .worlds__figure-frame { max-width: 220px; }
  .speaking__grid { grid-template-columns: 1fr; }
  .ideas__desk { grid-template-columns: 1fr; }
  .ideas__cover { position: static; min-height: 300px; }
  .gallery__wall { columns: 2; }
}

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 400px; margin-inline: auto; order: -1; }
  .hero { padding-top: 6.2rem; }
  .hero__tag--a { left: -.3rem; }
  .hero__tag--b { right: -.3rem; }

  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 1.5rem;
    background: var(--bg); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav__links a { font-size: 1.25rem; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; z-index: 99; }
  .nav__toggle { display: flex; position: relative; z-index: 100; }

  .impact__mosaic { grid-template-columns: 1fr 1fr; }
  .impact__tile--photo:first-child { grid-row: span 1; }
}

@media (max-width: 640px) {
  .connect__row { grid-template-columns: 1fr; }
  .impact__mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery__wall { columns: 1; }
  .leo__stage { padding-left: 2.6rem; }
  .leo__year { left: 1.9rem; font-size: 1.7rem; top: .2rem; }
  .leo__moments { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .chapter-head--row { align-items: flex-start; }
  .worlds__tabs { gap: .4rem; }
  .worlds__tab { padding: .5rem .85rem; font-size: .8125rem; }
}

/* ------------------------------------------------------------
   24. REDUCED MOTION
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  .js .reveal, .js .rise { opacity: 1; transform: none; }
  .js [pathLength] { stroke-dasharray: none; stroke-dashoffset: 0 !important; }
  .intro { display: none; }
  .spine { display: none; }
  .manifesto__quote .mw { opacity: 1; }
  .hero__keywords li, .hero__img, .hero__wash, .hero__tag { transform: none !important; }
}
