/* ==========================================================================
   Phoenix-Ed — Education Group
   Design system translated from Phoenix-Website-pages-01 (Illustrator, 1440 grid)
   ========================================================================== */

:root {
  /* Surfaces */
  --cream: #efeae3;
  --paper: #f6f3ee;
  --white: #ffffff;
  --forest: #17302a;
  --night: #0e1714;
  --mint: #b6d7cc;
  --sand: #ebd0a6;

  /* Ink */
  --ink: #111a17;
  --ink-2: #2b3330;
  --muted: #6d716b;
  --ghost: #ddd7cc;
  --line: rgba(17, 26, 23, 0.16);
  --line-strong: rgba(17, 26, 23, 0.32);
  --line-light: rgba(239, 234, 227, 0.32);

  /* Accents */
  --green: #1f7a5e;
  --emerald: #3bb994;
  --gold: #e8c27a;
  --crimson: #a83232;
  --whatsapp: #25d366;

  /* Type */
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --wrap: 1210px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 11vw, 150px);
  --header-h: 86px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--forest); color: var(--cream); padding: 10px 16px; font-size: 13px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }
.bg-forest { background: var(--forest); color: var(--cream); }
.bg-mint { background: var(--mint); }
.bg-green { background: var(--green); color: var(--cream); }
.bg-crimson { background: var(--crimson); color: var(--cream); }
.rule-top { border-top: 1px solid var(--line-strong); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.split--top { align-items: start; }
.split--center { align-items: center; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--green);
  display: block;
}
.on-dark .eyebrow, .eyebrow--gold { color: var(--gold); }
.eyebrow--muted { color: var(--muted); }

.display, .h1, .h2, .h3, .h4 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.015em; line-height: 1.04; font-optical-sizing: auto; }
.display { font-size: clamp(48px, 7.4vw, 104px); line-height: 1; }
.h1 { font-size: clamp(42px, 6.1vw, 88px); line-height: 1.03; }
.h2 { font-size: clamp(36px, 4.6vw, 66px); }
.h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.h4 { font-size: clamp(22px, 2vw, 27px); line-height: 1.18; font-weight: 400; letter-spacing: -0.01em; }
.italic, em.accent { font-style: italic; }
.accent { color: var(--green); }
.lede { font-family: var(--sans); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.7; color: var(--ink-2); max-width: 36em; }
.lede--serif { font-family: var(--serif); font-size: clamp(17px, 1.45vw, 20.5px); line-height: 1.6; color: var(--ink); }
.body-serif { font-family: var(--serif); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; color: var(--ink-2); }
.small { font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.on-dark .small, .on-dark .lede { color: rgba(239, 234, 227, .82); }
.num { font-family: var(--sans); font-size: 10.5px; letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.on-dark .num { color: var(--gold); }
.tnum { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Links & buttons ---------- */
.link {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 450; padding-bottom: 5px; white-space: nowrap;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transition: transform .5s var(--ease);
}
.link:hover::after { animation: underline .7s var(--ease); }
@keyframes underline { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 46% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }
.arrow { width: 10px; height: 10px; flex: none; transition: transform .45s var(--ease); }
.link:hover .arrow, .btn:hover .arrow, .card-link:hover .arrow { transform: translate(2px, -2px); }
.arrow--down { transform: rotate(0); }
.link:hover .arrow--down { transform: translateY(2px); }

.btn {
  display: inline-flex; align-items: center; gap: 18px; justify-content: center;
  min-height: 48px; padding: 14px 22px;
  font-size: 13px; font-weight: 450; letter-spacing: .01em;
  background: var(--forest); color: var(--cream);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--green); transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light::before { background: var(--white); }
.btn--ink { background: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 234, 227, .92);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-strong);
  transition: transform .5s var(--ease), background .3s;
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; justify-self: start; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -0.01em; }
.brand-sub { font-size: 8px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a { font-size: 13px; position: relative; padding: 6px 0; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--green); }
.header-cta { justify-self: end; }
.menu-toggle { display: none; justify-self: end; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px var(--gutter) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 16px; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 9vw, 52px); line-height: 1.25; border-bottom: 1px solid var(--line); padding: 10px 0; }
.mobile-menu nav a .num { font-size: 11px; }
.mobile-menu nav a[aria-current="page"] { color: var(--green); }
.mobile-menu .btn { margin-top: 32px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 100px) 0 clamp(64px, 8vw, 110px); border-bottom: 1px solid var(--line-strong); }
.page-hero-grid { display: grid; grid-template-columns: 210px 1fr; gap: 0 12px; }
.ghost-num { font-family: var(--serif); font-weight: 300; font-size: clamp(90px, 11vw, 168px); line-height: .8; color: var(--ghost); letter-spacing: -0.04em; user-select: none; margin-top: 2px; }
.page-hero .eyebrow { margin-bottom: 26px; }
.page-hero .h1 { max-width: 13.5em; font-weight: 400; }
.page-hero .lede--serif { margin-top: 40px; max-width: 34em; }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: clamp(40px, 5vw, 76px) 0 0; overflow: visible; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
.hero-copy { padding-top: clamp(4px, 1.5vw, 24px); padding-bottom: 80px; }
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 6.6vw, 96px); line-height: .99; letter-spacing: -0.02em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em { font-style: italic; color: var(--green); font-weight: 300; }
.hero .lede { margin-top: 28px; max-width: 30em; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; margin-top: 40px; }
.hero-media { position: relative; }
.hero-photo { position: relative; overflow: hidden; aspect-ratio: 1032 / 1314; background: #2a2620; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); transition: transform 2.2s var(--ease); }
.is-loaded .hero-photo img { transform: scale(1); }
.hero-photo figcaption { position: absolute; right: 22px; bottom: 18px; font-family: var(--serif); font-style: italic; font-size: 16px; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.stat-badge {
  position: absolute; left: -36px; bottom: -36px; width: 168px; padding: 22px 22px 24px;
  background: var(--night); color: var(--cream); z-index: 2;
}
.stat-badge .label { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; display: block; }
.stat-badge .value { white-space: nowrap; font-family: var(--serif); font-size: 44px; line-height: 1.05; color: var(--gold); display: block; margin: 6px 0 4px; font-weight: 300; }
.hero-tail { height: 36px; }

/* ---------- Audience selector ---------- */
.audience { padding: clamp(64px, 7vw, 100px) 0 clamp(56px, 6vw, 80px); border-bottom: 1px solid var(--line-strong); }
.audience .h2 { margin: 18px 0 clamp(32px, 4vw, 48px); font-size: clamp(32px, 3.6vw, 50px); font-weight: 400; }
.audience-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.aud-card {
  position: relative; overflow: hidden; aspect-ratio: 16 / 5.4; min-height: 130px;
  color: #fff; text-align: left; display: block; width: 100%; background: var(--forest);
}
.aud-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.85); }
.aud-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14,23,20,.72), rgba(14,23,20,.45)); transition: background .5s var(--ease); }
.aud-card:hover img { transform: scale(1.05); filter: saturate(1); }
.aud-card:hover::before, .aud-card[aria-selected="true"]::before { background: linear-gradient(90deg, rgba(23,48,42,.9), rgba(31,122,94,.55)); }
.aud-card .num { position: absolute; z-index: 2; left: 18px; top: 18px; color: rgba(255,255,255,.75); font-size: 9px; }
.aud-card .title { position: absolute; z-index: 2; right: 18px; top: 16px; font-family: var(--serif); font-size: clamp(16px, 1.6vw, 22px); font-weight: 300; text-align: right; }
.aud-card .go { position: absolute; z-index: 2; left: 18px; bottom: 18px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.0); border-radius: 50%; transition: border-color .4s, background .4s, transform .5s var(--ease); }
.aud-card:hover .go { border-color: rgba(255,255,255,.6); transform: translateX(4px); }
.aud-card[aria-selected="true"] .go { transform: rotate(90deg); background: var(--paper); color: var(--ink); }
.aud-card .go svg { width: 13px; height: 13px; }
.aud-card[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--gold); }
.aud-panel { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-top: 0; padding: 30px 32px; animation: panelIn .55s var(--ease); }
.aud-panel[hidden] { display: none; }
.aud-panel p { font-family: var(--serif); font-size: 18px; line-height: 1.55; max-width: 40em; }
.aud-panel .actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.audience-foot { margin-top: 18px; font-size: 12px; color: var(--muted); }
.audience-foot a { color: var(--ink-2); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }

/* ---------- Big idea ---------- */
.idea { padding: clamp(90px, 10vw, 140px) 0; }
.idea-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 8vw, 140px); align-items: center; padding-left: clamp(0px, 2.5vw, 40px); }
.idea blockquote { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.12; letter-spacing: -0.015em; text-indent: -.42em; }
.idea blockquote em { color: var(--green); }
.idea .eyebrow { margin-bottom: 30px; }
.idea-side p { font-family: var(--serif); font-size: 15.5px; line-height: 1.75; color: var(--ink-2); max-width: 17em; }
.idea-side .link { margin-top: 26px; }

/* ---------- Section heading (title left, blurb right) ---------- */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head .lede { max-width: 30em; padding-bottom: 6px; }
.sec-head .h2 { font-weight: 400; }

/* ---------- Service cards (home) ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); }
.svc-card { position: relative; padding: 26px 32px 32px; display: flex; flex-direction: column; min-height: 460px; border-right: 1px solid var(--line-strong); background: transparent; transition: background .5s var(--ease); }
.svc-card:last-child { border-right: 0; }
.svc-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent-c); transform-origin: left; transition: height .45s var(--ease); }
.svc-card:hover { background: rgba(255,255,255,.55); }
.svc-card:hover::after { height: 5px; }
.svc-card .meta { display: flex; justify-content: space-between; }
.svc-card .meta .num { text-transform: uppercase; font-size: 9px; }
.svc-card .eyebrow { margin-top: 72px; margin-bottom: 18px; font-size: 9.5px; }
.svc-card .h4 { font-size: clamp(22px, 2vw, 29px); font-weight: 300; line-height: 1.12; }
.svc-card .small { margin-top: 18px; max-width: 24em; }
.svc-card .link { margin-top: auto; align-self: flex-start; }
.card-link::before { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Admissions (dark) ---------- */
.admissions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.admissions-grid .h2 { margin: 26px 0 30px; font-weight: 300; max-width: 7.5em; }
.admissions-grid .small { font-size: 14px; line-height: 2; letter-spacing: .01em; max-width: 27em; }
.admissions-grid .btn { margin-top: 36px; }
.steps { border-top: 1px solid var(--line-light); }
.step { display: grid; grid-template-columns: 62px 1fr; padding: 26px 0 30px; border-bottom: 1px solid var(--line-light); transition: padding .5s var(--ease); }
.step:hover { padding-left: 8px; }
.step .num { padding-top: 4px; font-size: 9px; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.step p { font-size: 12.5px; color: rgba(239,234,227,.8); margin-top: 8px; }

/* ---------- Pathway timeline (home) ---------- */
.inst-bar { display: grid; grid-template-columns: 185px 1fr auto; align-items: center; gap: 24px; background: var(--forest); color: var(--cream); padding: 18px 25px; font-size: 12px; }
.inst-bar .serif { font-family: var(--serif); font-size: 13.5px; }
.inst-bar .desc { opacity: .85; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 32px; }
.timeline::before, .timeline .track { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--emerald) 0 60%, var(--gold) 60% 100%); }
.timeline::before { opacity: .18; }
.timeline .track { transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease); }
.in-view .timeline .track, .timeline.in-view .track { transform: scaleX(1); }
.tl-step { position: relative; padding-right: 20px; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--emerald); background: var(--cream); position: relative; z-index: 1; display: grid; place-items: center; }
.tl-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
.tl-step.gold .tl-dot { border-color: var(--gold); }
.tl-step.gold .tl-dot::after { background: var(--gold); }
.tl-step .num { display: block; margin-top: 18px; font-size: 9px; }
.tl-step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 1.6vw, 23px); margin-top: 8px; }
.tl-step p { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.legend { display: flex; gap: 36px; margin-top: 48px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.legend span { display: inline-flex; align-items: center; gap: 12px; }
.legend span::before { content: ""; width: 22px; height: 1.5px; background: var(--emerald); }
.legend span.gold::before { background: var(--gold); }

/* ---------- Scholar split ---------- */
.scholar { display: grid; grid-template-columns: 1fr 1fr; }
.scholar-photo { position: relative; overflow: hidden; min-height: 560px; }
.scholar-photo img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.scholar-copy { background: var(--mint); padding: clamp(56px, 6vw, 96px) clamp(28px, 6vw, 88px); }
.scholar-copy .h2 { margin: 22px 0 24px; font-weight: 300; max-width: 7.6em; }
.scholar-copy .body-serif { max-width: 26em; font-size: 15.5px; color: var(--ink); }
.ticks { margin-top: 32px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; font-size: 12.5px; padding: 9px 0; border-bottom: 1px solid rgba(17,26,23,.1); }
.ticks li::before { content: ""; width: 9px; height: 1.5px; background: var(--green); margin-top: .75em; }
.scholar-copy .btn { margin-top: 28px; }

/* ---------- Institutions ---------- */
.inst-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 64px); }
.inst-grid .h1 { font-size: clamp(38px, 4.6vw, 64px); max-width: 12em; line-height: 1.07; font-weight: 300; }
.inst-grid .body-serif { margin-top: 30px; max-width: 34em; font-size: 15.5px; }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 36px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); max-width: 740px; }
.phases li { padding: 14px 2px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; position: relative; cursor: default; }
.phases li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--green); transition: width .5s var(--ease); }
.phases li:hover::after { width: 80%; }
.phases li .tip { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; padding-right: 14px; }
.inst-grid .link { margin-top: 36px; }

/* ---------- Results (home mint) ---------- */
.results-home { display: grid; grid-template-columns: 340px 1fr; }
.results-big { border-right: 1px solid rgba(17,26,23,.35); padding: 0 40px 0 0; display: flex; flex-direction: column; justify-content: center; }
.results-big .big { font-family: var(--serif); font-weight: 300; font-size: clamp(80px, 9vw, 128px); color: var(--green); line-height: 1; letter-spacing: -0.03em; margin: 8px 0 10px; }
.results-big .eyebrow { font-size: 9px; color: var(--muted); }
.results-copy { padding-left: clamp(32px, 6vw, 84px); }
.results-copy .h2 { margin-top: 18px; font-weight: 300; max-width: 12.5em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(17,26,23,.35); }
.chip { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; padding: 9px 12px; border: 1px solid var(--green); font-weight: 500; transition: background .3s, color .3s; }
.chip:hover { background: var(--green); color: var(--cream); }
.results-copy blockquote p { font-family: var(--serif); font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.6; max-width: 34em; }
.cite { display: block; margin-top: 12px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* ---------- Journal cards (home) ---------- */
.journal-cards { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #e4dccb; border-top: 0; }
.journal-card { position: relative; display: flex; flex-direction: column; border-right: 1px solid #e4dccb; background: var(--white); }
.journal-card:last-child { border-right: 0; }
.journal-card .band { height: 100px; background: var(--c); color: #fff; font-family: var(--serif); font-weight: 300; font-size: 36px; padding: 18px 26px; overflow: hidden; position: relative; }
.journal-card .band::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.12); transform: translateX(-101%); transition: transform .7s var(--ease); }
.journal-card:hover .band::after { transform: translateX(0); }
.journal-card .body { padding: 26px 26px 26px; display: flex; flex-direction: column; flex: 1; min-height: 210px; }
.journal-card .eyebrow { color: var(--muted); font-size: 9px; }
.journal-card h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.15; margin-top: 14px; }
.journal-card .link { margin-top: auto; padding-top: 28px; align-self: flex-start; font-size: 11.5px; }

/* ---------- Big CTA ---------- */
.cta { text-align: center; padding: clamp(80px, 9vw, 120px) 0; }
.cta .h1 { max-width: 12.4em; margin: 22px auto 0; font-weight: 300; font-size: clamp(40px, 5.4vw, 76px); }
.cta .body-serif { margin: 26px auto 0; max-width: 32em; color: rgba(255,255,255,.9); font-size: 15px; }
.cta .btn { margin-top: 32px; }

/* ---------- Next link band ---------- */
.next-band { background: var(--white); padding: 52px 0; border-top: 1px solid var(--line); }
.next-band a { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.next-band .label { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.next-band .target { display: inline-flex; align-items: flex-start; gap: 22px; font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.01em; }
.next-band .target svg { width: 12px; height: 12px; color: var(--green); margin-top: .3em; transition: transform .5s var(--ease); }
.next-band a:hover .target svg { transform: translate(4px, -4px); }
.next-band .target span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.next-band a:hover .target span { background-size: 100% 1px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(239,234,227,.82); padding: 64px 0 28px; font-size: 12.5px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-brand .name { font-family: var(--serif); font-size: 26px; color: var(--cream); font-weight: 400; display: block; }
.footer-brand .tag { font-family: var(--serif); font-style: italic; font-size: 14.5px; margin-top: 4px; display: block; }
.chat-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink); padding: 10px 16px 10px 10px; font-size: 12.5px; transition: transform .4s var(--ease), box-shadow .4s; }
.chat-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.chat-btn .wa { width: 30px; height: 30px; border-radius: 50%; background: var(--whatsapp); display: grid; place-items: center; }
.chat-btn .wa svg { width: 18px; height: 18px; color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 52px; }
.footer-cols h2 { font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 20px; }
.footer-cols li + li { margin-top: 9px; }
.footer-cols a { transition: color .25s; }
.footer-cols a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(239,234,227,.12); font-size: 11px; }
.footer-bottom nav { display: flex; gap: 36px; }
.footer-bottom a:hover { color: var(--cream); }

/* Floating WhatsApp */
.float-chat {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 54px; height: 54px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(14,23,20,.28);
  transform: translateY(120px); transition: transform .6s var(--ease);
}
.float-chat.is-visible { transform: none; }
.float-chat svg { width: 26px; height: 26px; }
.float-chat .tip { position: absolute; right: 64px; white-space: nowrap; background: var(--night); color: var(--cream); font-size: 12px; padding: 8px 12px; opacity: 0; transform: translateX(6px); transition: .35s var(--ease); pointer-events: none; }
.float-chat:hover .tip { opacity: 1; transform: none; }

/* ---------- Drawer (booking / enquiry) ---------- */
.drawer-root { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer-root.is-open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(14, 23, 20, .62); opacity: 0; transition: opacity .5s var(--ease); }
.drawer-root.is-open .drawer-scrim { opacity: 1; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(680px, 100%);
  background: var(--cream); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .65s var(--ease);
  padding: 40px clamp(24px, 6.5vw, 82px) 48px;
}
.drawer-root.is-open .drawer { transform: none; }
.drawer-close { position: absolute; top: 34px; right: clamp(24px, 6vw, 84px); display: inline-flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 0; }
.drawer-close svg { width: 11px; height: 11px; color: var(--ink); transition: transform .4s var(--ease); }
.drawer-close:hover svg { transform: rotate(90deg); }
.drawer .eyebrow { margin-top: 44px; }
.drawer h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -0.025em; margin-top: 14px; }
.drawer .intro { font-family: var(--serif); font-size: 15.5px; line-height: 1.5; margin-top: 18px; max-width: 30em; }
.form { margin-top: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--white);
  border: 1px solid #d9d2c5; border-radius: 0; padding: 13px 14px; min-height: 50px;
  transition: border-color .25s, box-shadow .25s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111a17' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,122,94,.14); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--crimson); }
.field .err { font-size: 11.5px; color: var(--crimson); min-height: 0; }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin-top: 24px; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.consent input { width: 14px; height: 14px; margin: 1px 0 0; accent-color: var(--green); }
.consent.has-error { color: var(--crimson); }
.form .btn { margin-top: 22px; }
.form-note { text-align: center; font-size: 10.5px; color: var(--muted); margin-top: 14px; }
.hp { position: absolute; left: -9999px; }
.form-success { margin-top: 36px; padding: 32px; background: var(--white); border-left: 3px solid var(--green); animation: panelIn .6s var(--ease); }
.form-success h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.form-success p { margin-top: 10px; font-family: var(--serif); font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.form-success .steps-mini { margin-top: 20px; display: grid; gap: 10px; font-size: 13px; }
.form-success .steps-mini li { display: grid; grid-template-columns: 28px 1fr; }
.form-success .steps-mini .num { color: var(--green); font-size: 11px; padding-top: 2px; }
.form-error { margin-top: 18px; padding: 14px 16px; background: #f6e3e3; color: #7a1f1f; font-size: 13px; }
.drawer-alt { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.drawer-alt a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
body.no-scroll { overflow: hidden; }

/* ---------- Philosophy ---------- */
.argument-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 100px); }
.argument-grid blockquote { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.1vw, 58px); line-height: 1.17; letter-spacing: -0.012em; margin-top: 22px; }
.argument-grid .body-serif { padding-top: 46px; }
.argument-grid .body-serif p + p { margin-top: 1.4em; }
.beliefs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-light); margin-top: 32px; }
.belief { padding: 28px 22px 44px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); transition: background .5s var(--ease); }
.belief:nth-child(2n) { border-right: 0; }
.belief:nth-last-child(-n+2) { border-bottom: 0; }
.belief:hover { background: rgba(255,255,255,.035); }
.belief h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; margin-top: 44px; max-width: 11em; }
.belief p { font-size: 12.5px; color: rgba(239,234,227,.8); margin-top: 18px; max-width: 36em; }
.manifesto { text-align: center; padding: clamp(80px, 9vw, 120px) 0; }
.manifesto p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.1; color: var(--green); letter-spacing: -0.02em; max-width: 13em; margin: 0 auto; }
.manifesto .cite { font-size: 12px; letter-spacing: .04em; margin-top: 28px; color: #6b7c74; }

/* ---------- Services page ---------- */
.svc-block { padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid var(--line-strong); }
.svc-block:last-of-type { border-bottom: 0; }
.svc-block-grid { display: grid; grid-template-columns: 210px 1fr; gap: 12px; }
.svc-block .ghost-num { font-size: clamp(60px, 6vw, 84px); }
.svc-block .h1 { font-weight: 400; margin-top: 18px; font-size: clamp(40px, 5vw, 70px); }
.svc-block .lede--serif { margin-top: 26px; max-width: 32em; font-size: clamp(15.5px, 1.2vw, 17.5px); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin-top: 40px; border-top: 1px solid var(--line-strong); max-width: 1000px; }
.feature-list li { display: grid; grid-template-columns: 22px 1fr; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); font-size: 13px; color: var(--ink-2); }
.feature-list li::before { content: ""; width: 9px; height: 1.2px; background: var(--ink); margin-top: .8em; }
.feature-list li:nth-child(n+3)::before { background: var(--green); }
.svc-block .btn { margin-top: 36px; }
.svc-block .aside-meta { display: flex; gap: 40px; margin-top: 26px; flex-wrap: wrap; }
.svc-block .aside-meta div { font-size: 12px; color: var(--muted); }
.svc-block .aside-meta strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); }

/* ---------- Pathway page ---------- */
.inst-foundation { display: grid; grid-template-columns: auto auto 1fr; gap: 16px 22px; align-items: center; background: var(--forest); color: var(--cream); padding: 22px 24px; }
.inst-foundation .eyebrow { font-size: 9px; }
.inst-foundation .serif { font-family: var(--serif); font-size: 21px; }
.inst-foundation .desc { font-size: 12px; justify-self: end; opacity: .85; text-align: right; }
.pw-list { margin-top: 40px; border-top: 1px solid var(--line-strong); position: relative; }
.pw-row { display: grid; grid-template-columns: 60px 120px 1fr 1.6fr; align-items: center; gap: 0 2%; min-height: 100px; border-bottom: 1px solid var(--line-strong); position: relative; transition: background .45s var(--ease); padding: 18px 0; }
.pw-row:hover { background: rgba(255,255,255,.45); }
.pw-dot { width: 25px; height: 25px; border-radius: 50%; background: var(--emerald); color: #fff; font-size: 9px; display: grid; place-items: center; position: relative; z-index: 2; margin-left: 18px; transition: transform .45s var(--ease); }
.pw-row:hover .pw-dot { transform: scale(1.18); }
.pw-row.gold .pw-dot { background: var(--gold); color: var(--ink); }
.pw-row .grade { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pw-row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); padding-left: 10%; }
.pw-row p { font-family: var(--serif); font-size: 13.5px; line-height: 1.6; color: var(--ink-2); max-width: 32em; }
.pw-spine { position: absolute; left: 30px; top: 50px; bottom: 50px; width: 1.5px; background: rgba(31,122,94,.18); z-index: 1; }
.pw-spine i { position: absolute; inset: 0; background: var(--green); transform-origin: top; transform: scaleY(var(--p, 0)); }
.pw-bars { display: grid; grid-template-columns: 6fr 4fr; gap: 6px; margin-top: 36px; }
.pw-bars div { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; min-height: 48px; }
.pw-bars .scholar-bar { background: var(--mint); }
.pw-bars .admit-bar { background: var(--sand); }
.pw-bars small { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pw-bars span { font-family: var(--serif); font-size: 14px; }

/* ---------- Results page ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 56px); border-left: 1px solid rgba(14,23,20,.35); padding-left: clamp(24px, 5vw, 56px); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .val { font-family: var(--serif); font-weight: 300; font-size: clamp(60px, 7vw, 96px); line-height: 1; letter-spacing: -0.02em; display: block; }
.stat .lbl { display: block; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; margin-top: 20px; }
.placements { border-top: 1px solid var(--line-strong); }
.placement { display: grid; grid-template-columns: 60px 104px 1fr auto; align-items: center; min-height: 80px; padding: 14px 0; border-bottom: 1px solid var(--line-strong); transition: padding .5s var(--ease), background .4s; }
.placement:hover { padding-left: 12px; padding-right: 12px; background: rgba(255,255,255,.45); }
.placement .num { padding-left: 12px; }
.placement .region { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.placement h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.9vw, 26px); }
.placement .tags { font-size: 11.5px; color: var(--ink-2); padding-right: 12px; text-align: right; }
.voice { padding: clamp(80px, 9vw, 120px) 0; }
.voice blockquote { max-width: 980px; margin: 0 auto; padding: 0 clamp(0px, 4vw, 48px); }
.voice blockquote p { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.9vw, 54px); line-height: 1.16; letter-spacing: -0.012em; text-indent: -.4em; margin-top: 30px; }
.voice .cite { color: rgba(239,234,227,.75); margin-top: 32px; }

/* ---------- Insights page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line-strong); }
.filters button { font-size: 12px; color: var(--muted); padding: 6px 0; position: relative; transition: color .25s; }
.filters button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--green); transform: scaleX(0); transition: transform .4s var(--ease); transform-origin: left; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--green); }
.filters button[aria-pressed="true"]::after { transform: scaleX(1); }
.filters .count { font-size: 9px; vertical-align: super; margin-left: 3px; opacity: .7; }
.essays { display: grid; grid-template-columns: 1fr 1fr; }
.essay { position: relative; display: grid; grid-template-columns: 116px 1fr; gap: 24px; padding: 40px clamp(16px, 3vw, 40px) 64px 0; border-bottom: 1px solid var(--line-strong); min-height: 300px; transition: opacity .4s var(--ease); }
.essay:nth-child(2n) { padding-left: clamp(16px, 3.6vw, 52px); border-left: 1px solid var(--line-strong); }
.essay.is-hidden { display: none; }
.essay .sq { width: 116px; height: 116px; background: var(--c); color: #fff; font-family: var(--serif); font-weight: 300; font-size: 26px; padding: 18px 16px; transition: transform .6s var(--ease); }
.essay:hover .sq { transform: rotate(-3deg) scale(1.03); }
.essay .eyebrow { color: var(--muted); font-size: 9px; }
.essay h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.3vw, 31px); line-height: 1.12; margin-top: 10px; max-width: 12em; }
.essay p { font-family: var(--serif); font-size: 13.5px; line-height: 1.6; margin-top: 16px; max-width: 26em; color: var(--ink-2); }
.essay .link { margin-top: 22px; font-size: 11.5px; }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; padding: clamp(60px, 6vw, 80px) 0; }
.newsletter .h2 { margin-top: 14px; font-weight: 300; font-size: clamp(36px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.025em; }
.nl-form { display: flex; align-items: center; border-bottom: 1px solid rgba(239,234,227,.75); padding-bottom: 6px; }
.nl-form input { flex: 1; background: transparent; border: 0; color: var(--cream); font: inherit; font-size: 14px; padding: 12px 0; min-width: 0; }
.nl-form input::placeholder { color: rgba(239,234,227,.9); }
.nl-form input:focus { outline: none; }
.nl-form button { color: var(--gold); font-size: 11.5px; display: inline-flex; gap: 6px; align-items: center; padding: 10px 0 10px 16px; }
.nl-msg { font-size: 12.5px; margin-top: 12px; color: var(--gold); min-height: 1.2em; }

/* Essay article */
.article-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line-strong); }
.article-hero .back { font-size: 12px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; margin-bottom: 40px; }
.article-hero .back:hover { color: var(--ink); }
.article-hero-grid { display: grid; grid-template-columns: 150px 1fr; gap: 32px; }
.article-hero .sq { width: 150px; height: 150px; background: var(--c); color: #fff; font-family: var(--serif); font-weight: 300; font-size: 34px; padding: 20px; }
.article-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 72px); line-height: 1.04; letter-spacing: -0.02em; margin-top: 14px; max-width: 14em; }
.article-hero .standfirst { font-family: var(--serif); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; margin-top: 26px; max-width: 32em; color: var(--ink-2); }
.article-meta { display: flex; gap: 24px; margin-top: 28px; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.prose { max-width: 680px; margin: 0 auto; font-family: var(--serif); font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.75; color: var(--ink); }
.prose p + p { margin-top: 1.15em; }
.prose p:first-child::first-letter { font-size: 3.6em; float: left; line-height: .9; padding: .08em .1em 0 0; color: var(--green); font-weight: 300; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5em; line-height: 1.2; margin: 1.8em 0 .6em; }
.prose blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--green); font-style: italic; font-size: 1.15em; line-height: 1.5; color: var(--green); }
.reading-bar { position: fixed; left: 0; top: 0; height: 2px; background: var(--green); z-index: 60; width: 100%; transform-origin: left; transform: scaleX(0); }
.article-end { max-width: 680px; margin: 64px auto 0; padding-top: 28px; border-top: 1px solid var(--line-strong); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.share { display: flex; gap: 18px; font-size: 12px; color: var(--muted); align-items: center; }
.share a, .share button { color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; font-size: 12px; }
.draft-note { max-width: 680px; margin: 0 auto 40px; font-size: 12px; color: var(--muted); }

/* ---------- Careers ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.work-grid .h2 { margin-top: 20px; font-weight: 300; max-width: 9em; }
.work-grid .body-serif p + p { margin-top: 1em; }
.ethos-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-light); margin-top: 32px; }
.ethos { padding: 26px 20px 30px; border-right: 1px solid var(--line-light); min-height: 270px; display: flex; flex-direction: column; }
.ethos:last-child { border-right: 0; }
.ethos h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(25px, 2.4vw, 32px); margin-top: auto; padding-top: 50px; }
.ethos p { font-size: 12px; color: rgba(239,234,227,.78); margin-top: 18px; max-width: 26em; }
.roles { border-top: 1px solid var(--line-strong); }
.role { display: grid; grid-template-columns: 84px 1fr 1.25fr auto; align-items: center; gap: 0 24px; padding: 28px 0 34px; border-bottom: 1px solid var(--line-strong); transition: background .4s; }
.role:hover { background: rgba(255,255,255,.45); }
.role .num { padding-left: 14px; }
.role .eyebrow { font-size: 8.5px; margin-bottom: 8px; }
.role h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 27px); }
.role p { font-family: var(--serif); font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.role .link { font-size: 11.5px; margin-right: 14px; }
.letter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.letter-grid .h1 { font-weight: 300; font-size: clamp(42px, 5.2vw, 72px); line-height: 1; letter-spacing: -0.025em; margin-top: 18px; }
.letter-grid .body-serif { color: rgba(255,255,255,.92); font-size: 15px; max-width: 26em; }
.letter-grid .btn { margin-top: 24px; }

/* ---------- Legal / 404 ---------- */
.legal { max-width: 760px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 48px 0 12px; }
.legal p, .legal li { font-family: var(--serif); font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.legal ul { list-style: none; margin-top: 10px; }
.legal li { padding-left: 20px; position: relative; }
.legal li::before { content: ""; position: absolute; left: 0; top: .85em; width: 9px; height: 1.2px; background: var(--green); }
.legal a { color: var(--green); border-bottom: 1px solid currentColor; }
.lost { min-height: 70vh; display: grid; align-items: center; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in-view { opacity: 1; transform: none; }
.js-off .reveal { opacity: 1; transform: none; }
.hero h1 .line > span { transform: translateY(105%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 120ms); }
.is-loaded .hero h1 .line > span { transform: none; }
.fade-in { opacity: 0; transition: opacity 1.2s var(--ease) .5s; }
.is-loaded .fade-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .hero h1 .line > span, .fade-in { opacity: 1 !important; transform: none !important; }
  .timeline .track { transform: none; }
  .scholar-photo img { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .header-inner { grid-template-columns: 1fr auto; }
  .page-hero-grid, .svc-block-grid { grid-template-columns: 1fr; }
  .ghost-num { font-size: clamp(72px, 14vw, 120px); margin-bottom: 10px; }
  .svc-block .ghost-num { font-size: 64px; }
  .inst-grid { grid-template-columns: 1fr; }
  .results-home { grid-template-columns: 1fr; }
  .results-big { border-right: 0; border-bottom: 1px solid rgba(17,26,23,.35); padding: 0 0 32px; }
  .results-copy { padding: 36px 0 0; }
  .pw-row { grid-template-columns: 60px 100px 1fr; }
  .pw-row p { grid-column: 3; margin-top: 6px; }
  .pw-row h3 { padding-left: 0; }
  .role { grid-template-columns: 56px 1fr; gap: 10px 16px; }
  .role p, .role .link { grid-column: 2; }
  .role .link { justify-self: start; }
}
@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .split, .sec-head, .hero-grid, .idea-grid, .admissions-grid, .argument-grid, .work-grid, .letter-grid, .newsletter { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 40px; }
  .hero-media { margin: 0 calc(var(--gutter) * -1) 0; }
  .hero-photo { aspect-ratio: 4 / 4.2; }
  .stat-badge { left: var(--gutter); bottom: -36px; width: 150px; padding: 18px; }
  .stat-badge .value { font-size: 38px; }
  .hero-tail { height: 56px; }
  .audience-cards { grid-template-columns: 1fr; }
  .aud-card { aspect-ratio: 16 / 6; }
  .aud-panel { grid-template-columns: 1fr; padding: 24px; }
  .svc-cards { grid-template-columns: 1fr; }
  .svc-card { border-right: 0; border-bottom: 1px solid var(--line-strong); min-height: 0; }
  .svc-card .eyebrow { margin-top: 36px; }
  .svc-card .link { margin-top: 32px; }
  .timeline { grid-template-columns: 1fr; gap: 0; margin-top: 28px; padding-left: 34px; }
  .timeline::before, .timeline .track { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--emerald) 0 60%, var(--gold) 60% 100%); }
  .timeline .track { transform: scaleY(0); transform-origin: top; }
  .in-view .timeline .track, .timeline.in-view .track { transform: scaleY(1); }
  .tl-step { padding: 0 0 26px; }
  .tl-dot { position: absolute; left: -34px; top: 2px; }
  .tl-step .num { margin-top: 0; }
  .inst-bar { grid-template-columns: 1fr; gap: 4px; }
  .legend { flex-direction: column; gap: 12px; }
  .scholar { grid-template-columns: 1fr; }
  .scholar-photo { min-height: 360px; }
  .phases { grid-template-columns: 1fr 1fr; }
  .journal-cards { grid-template-columns: 1fr; gap: 0; }
  .journal-card { border-right: 0; border-bottom: 1px solid #e4dccb; }
  .journal-card .body { min-height: 0; }
  .footer-top { flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .beliefs { grid-template-columns: 1fr; }
  .belief { border-right: 0 !important; border-bottom: 1px solid var(--line-light) !important; }
  .belief:last-child { border-bottom: 0 !important; }
  .belief h3 { margin-top: 24px; }
  .argument-grid .body-serif { padding-top: 0; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list li:nth-child(n+3)::before { background: var(--ink); }
  .feature-list li:nth-child(2n)::before { background: var(--green); }
  .inst-foundation { grid-template-columns: 1fr; }
  .inst-foundation .desc { justify-self: start; text-align: left; }
  .pw-row { grid-template-columns: 52px 1fr; }
  .pw-row .grade { grid-column: 2; }
  .pw-row h3, .pw-row p { grid-column: 2; }
  .pw-dot { margin-left: 14px; }
  .pw-spine { left: 26px; }
  .pw-bars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(14,23,20,.35); }
  .stat:first-child { border-top: 0; }
  .placement { grid-template-columns: 44px 1fr; gap: 4px 12px; }
  .placement h3, .placement .tags { grid-column: 2; text-align: left; }
  .placement .region { grid-column: 2; grid-row: 1; }
  .placement .num { grid-row: 1 / span 3; align-self: start; padding-top: 4px; }
  .essays { grid-template-columns: 1fr; }
  .essay, .essay:nth-child(2n) { padding: 32px 0 44px; border-left: 0; grid-template-columns: 76px 1fr; gap: 18px; min-height: 0; }
  .essay .sq { width: 76px; height: 76px; font-size: 20px; padding: 10px 12px; }
  .ethos-grid { grid-template-columns: 1fr; }
  .ethos { border-right: 0; border-bottom: 1px solid var(--line-light); min-height: 0; }
  .ethos:last-child { border-bottom: 0; }
  .article-hero-grid { grid-template-columns: 1fr; }
  .article-hero .sq { width: 72px; height: 72px; font-size: 20px; padding: 10px; }
  .next-band a { flex-direction: column; align-items: flex-start; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .float-chat { right: 16px; bottom: 16px; }
}
@media (max-width: 520px) {
  .display, .hero h1 { font-size: clamp(44px, 12.5vw, 60px); }
  .phases { grid-template-columns: 1fr; }
  .chips { gap: 6px; }
  .aud-card { aspect-ratio: 16 / 7; }
}

@media print {
  .site-header, .site-footer, .float-chat, .drawer-root, .next-band, .reading-bar { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   WhatsApp CTAs
   ========================================================================== */
.btn--wa { background: var(--whatsapp); color: #06301a; gap: 10px; }
.btn--wa::before { background: #1fbd5a; }
.btn--wa svg { width: 18px; height: 18px; flex: none; }
.on-dark .btn--wa { color: #06301a; }
.wa-line { margin-top: 26px; font-size: 12.5px; color: var(--muted); }
.wa-line a { display: inline-flex; align-items: center; gap: 10px; transition: color .25s; }
.wa-line a:hover { color: var(--ink); }
.wa-line strong { white-space: nowrap; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.wa-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; flex: none; }
.wa-dot svg { width: 14px; height: 14px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-actions .btn { margin-top: 0; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: 36px; }
.svc-block .cta-row .btn { margin-top: 0; }

/* ==========================================================================
   Ask Phoenix-Ed — chat widget
   ========================================================================== */
.phx-chat-root { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.phx-chat-root > * { pointer-events: auto; }
.chat-launcher {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 27px;
  background: var(--forest); color: var(--cream); font-size: 13px; letter-spacing: .01em;
  box-shadow: 0 12px 32px rgba(14,23,20,.28); transition: transform .5s var(--ease), box-shadow .3s, background .3s;
}
.chat-launcher:hover { transform: translateY(-2px); background: var(--green); }
.chat-launcher svg { width: 22px; height: 22px; }
.chat-launcher .ic-close { display: none; }
.chat-launcher .ic-close svg { width: 14px; height: 14px; }
.chat-open .chat-launcher { padding: 0; width: 54px; justify-content: center; }
.chat-open .chat-launcher .ic-open, .chat-open .chat-launcher .label { display: none; }
.chat-open .chat-launcher .ic-close { display: grid; }
.chat-nudge { display: flex; align-items: stretch; background: var(--paper); box-shadow: 0 10px 30px rgba(14,23,20,.18); font-size: 12.5px; max-width: 290px; animation: panelIn .6s var(--ease); }
.chat-nudge[hidden] { display: none; }
.chat-nudge .nudge-open { text-align: left; padding: 12px 6px 12px 14px; line-height: 1.45; }
.chat-nudge strong { color: var(--green); font-weight: 500; }
.chat-nudge .nudge-x { padding: 0 12px; color: var(--muted); }
.chat-nudge .nudge-x svg { width: 9px; height: 9px; }

.chat {
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px)); height: min(600px, calc(100dvh - 120px));
  background: var(--cream); display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 64px rgba(14,23,20,.32), 0 0 0 1px rgba(17,26,23,.08);
  transform-origin: bottom right; animation: chatIn .45s var(--ease);
}
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--forest); color: var(--cream); }
.chat-avatar { width: 36px; height: 36px; display: grid; place-items: center; background: var(--cream); color: var(--forest); font-family: var(--serif); font-size: 20px; box-shadow: inset 0 -2px 0 var(--gold); }
.chat-head strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.1; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 11px; opacity: .8; margin-top: 3px; }
.chat-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px rgba(59,185,148,.25); }
.chat-x { width: 36px; height: 36px; display: grid; place-items: center; color: var(--cream); opacity: .8; }
.chat-x:hover { opacity: 1; }
.chat-x svg { width: 12px; height: 12px; }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; font-size: 13.5px; line-height: 1.55; padding: 10px 13px; animation: msgIn .4s var(--ease); word-wrap: break-word; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg--bot { align-self: flex-start; background: var(--white); color: var(--ink); border: 1px solid rgba(17,26,23,.06); }
.msg--user { align-self: flex-end; background: var(--forest); color: var(--cream); }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: 8px; }
.msg ul { list-style: none; margin-top: 4px; }
.msg li { position: relative; padding-left: 14px; }
.msg li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 1.2px; background: var(--green); }
.msg strong { font-weight: 600; }
.msg a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg-actions a, .msg-actions button { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 7px 11px; border: 1px solid var(--forest); color: var(--forest); text-decoration: none; transition: background .25s, color .25s; }
.msg-actions a:hover, .msg-actions button:hover { background: var(--forest); color: var(--cream); }
.msg-actions .wa { border-color: #1fa851; color: #12763a; }
.msg-actions .wa:hover { background: var(--whatsapp); color: #06301a; }
.msg-actions svg { width: 13px; height: 13px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 14px; background: var(--white); border: 1px solid rgba(17,26,23,.06); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 16px 10px; }
.chat-suggest[hidden] { display: none; }
.chat-suggest button { font-size: 12px; padding: 7px 11px; border: 1px solid var(--line-strong); background: var(--paper); transition: border-color .25s, color .25s; }
.chat-suggest button:hover { border-color: var(--green); color: var(--green); }
.chat-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 12px; background: var(--white); border: 1px solid #d9d2c5; transition: border-color .25s, box-shadow .25s; }
.chat-form:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,122,94,.12); }
.chat-form textarea { flex: 1; border: 0; resize: none; font: inherit; font-size: 14px; line-height: 1.45; padding: 8px 0; max-height: 120px; background: transparent; color: var(--ink); }
.chat-form textarea:focus { outline: none; }
.chat-form button { width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: var(--forest); color: var(--cream); transition: background .25s, opacity .25s; }
.chat-form button:hover { background: var(--green); }
.chat-form button:disabled { opacity: .4; }
.chat-form button svg { width: 17px; height: 17px; }
.chat-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 12px 0; padding: 10px; font-size: 12.5px; color: #12763a; border: 1px solid rgba(37,211,102,.45); background: rgba(37,211,102,.06); transition: background .25s; }
.chat-wa:hover { background: rgba(37,211,102,.16); }
.chat-wa svg { width: 16px; height: 16px; color: var(--whatsapp); }
.chat-fine { font-size: 10.5px; color: var(--muted); text-align: center; padding: 8px 16px 12px; line-height: 1.4; }
body.drawer-open .phx-chat-root { display: none; }

@media (max-width: 860px) {
  .phx-chat-root { right: 14px; bottom: 14px; }
  .chat-launcher .label { display: none; }
  .chat-launcher { width: 54px; padding: 0; justify-content: center; }
  .chat-open .phx-chat-root, .phx-chat-root:has(.chat:not([hidden])) { right: 0; bottom: 0; left: 0; }
  .chat { width: 100vw; height: 100vh; height: 100dvh; box-shadow: none; }
  .chat-open .chat-launcher { display: none; }
  .chat-head { padding-top: max(14px, env(safe-area-inset-top)); }
  .chat-fine { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .cta-row .link { width: 100%; }
}
@media print { .phx-chat-root { display: none !important; } }
@media (max-width: 860px) { body.chat-open { overflow: hidden; } }
.phx-chat-root .chat { order: -1; }
.phx-chat-root .chat-nudge { order: -2; }

/* ==========================================================================
   Artwork & motion layer (all generated in code)
   ========================================================================== */
/* Line art that draws itself */
.draw :is(path, circle, line) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.draw.in-view :is(path, circle, line) { animation: drawIn var(--dur, 1.9s) var(--ease) calc(var(--i, 0) * 70ms + var(--dd, 0ms)) both; }
@keyframes drawIn { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.js-off .draw :is(path, circle, line) { stroke-dashoffset: 0; }
.fa-grid line, .fa-halo, .fa-dot, .fa-spark, .sv-dot, .fa-node circle, .fa-origin circle { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation-name: none; }
.fa-halo { animation-name: halo !important; }

/* Phoenix mark */
.mark { display: block; overflow: visible; color: var(--forest); }
.mark path { stroke: currentColor; stroke-width: var(--sw, 1.4); }
.mark .pf { stroke: var(--green); }
.mark .pb { stroke: var(--gold); stroke-width: calc(var(--sw, 1.4) * 1.5); }
.on-dark .mark { color: var(--cream); }
.on-dark .mark .pf { stroke: var(--emerald); }

.page-hero { position: relative; overflow: hidden; }
.hero-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }
.hero-mark { width: 104px; color: #bdb3a0; --dd: 500ms; --sw: 1.5; margin-left: 4px; }
.hero-mark .pf { stroke: #9cc7b8; }
.page-hero .wrap { position: relative; z-index: 1; }

.footer-brand { display: grid; grid-template-columns: 38px auto; column-gap: 16px; align-items: center; }
.footer-brand .footer-mark { grid-row: span 2; width: 38px; --sw: 3.4; }
.idea-mark { width: 64px; margin-bottom: 24px; --dd: 200ms; --sw: 2.3; }
.manifesto-mark { width: 58px; margin: 0 auto 26px; color: var(--forest); --sw: 2.4; }
.lost { position: relative; overflow: hidden; }
.lost-mark { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); width: clamp(160px, 22vw, 300px); color: #c8bfae; --sw: .55; }

/* Embers */
.hero { position: relative; }
.hero .embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.cta { position: relative; overflow: hidden; }
.cta .embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta .wrap { position: relative; z-index: 1; }

/* Marquee */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line-strong); background: var(--cream); padding: 22px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); color: var(--ink-2); white-space: nowrap; letter-spacing: -0.01em; }
.marquee svg { width: 10px; height: 10px; fill: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Service artwork */
.svc-art { position: absolute; right: 24px; bottom: 22px; width: 96px; height: 88px; pointer-events: none; transition: transform .8s var(--ease); --dd: 400ms; }
.svc-art svg { width: 100%; height: 100%; overflow: visible; }

.svc-card:hover .svc-art { transform: translateY(-6px) rotate(-3deg); }
.svc-art .sv-dot { transition: transform .6s var(--ease); transform-box: fill-box; transform-origin: center; }
.svc-card:hover .sv-dot { transform: scale(1.6); }

/* Icons */
.icon { display: block; width: 100%; height: 100%; overflow: visible; }

.step-icon { display: block; width: 26px; height: 26px; color: var(--gold); margin-bottom: 14px; }
.stat-icon { display: block; width: 30px; height: 30px; color: var(--cream); opacity: .9; margin-bottom: 22px; }

/* Generated essay / journal art */
.gen-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: transform 1.2s var(--ease); }
.band, .essay .sq, .article-hero .sq { position: relative; overflow: hidden; }
.band > span, .sq > span { position: relative; z-index: 1; text-shadow: 0 1px 14px rgba(0,0,0,.12); }
.journal-card:hover .gen-art, .essay:hover .gen-art { transform: scale(1.07); }
.band .gen-art .ga-ring, .sq .gen-art .ga-ring { transform-box: view-box; transform-origin: center; }
.scholar-copy { position: relative; overflow: hidden; }
.scholar-copy > .gen-art { inset: auto -18% -32% auto; width: 78%; height: 70%; opacity: .7; }
.scholar-copy > *:not(.gen-art) { position: relative; z-index: 1; }

/* Flight arcs (Results) */
.flight { margin: 0 0 clamp(40px, 5vw, 64px); background: var(--forest); color: var(--cream); padding: clamp(18px, 3vw, 36px) clamp(12px, 3vw, 36px) 22px; position: relative; overflow: hidden; }
.flight svg { width: 100%; height: auto; display: block; overflow: visible; }
.fa-grid line { stroke: rgba(239,234,227,.06); stroke-width: 1; }
.fa-arc { fill: none; stroke: var(--gold); stroke-width: 1.6; --dur: 2.4s; --dd: calc(var(--i) * 190ms + 200ms); }
.fa-spark { fill: #fff8e8; filter: drop-shadow(0 0 5px rgba(232,194,122,.9)); opacity: 0; transition: opacity .6s 2.4s; }
.draw.in-view .fa-spark { opacity: 1; }
.fa-dot { fill: var(--gold); }
.fa-origin .fa-dot { fill: var(--emerald); }
.fa-halo { fill: none; stroke: rgba(232,194,122,.45); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: halo 3.2s var(--ease) infinite; }
.fa-origin .fa-halo { stroke: rgba(59,185,148,.5); }
@keyframes halo { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.fa-node, .fa-origin { opacity: 0; transition: opacity .9s var(--ease); transition-delay: calc(var(--i, 0) * 260ms + 1.6s); }
.fa-origin { transition-delay: .1s; }
.draw.in-view .fa-node, .draw.in-view .fa-origin { opacity: 1; }
.flight text { fill: var(--cream); }
.flight .u { font-family: var(--serif); font-size: 19px; }
.flight .c { font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; fill: rgba(239,234,227,.6); }
.flight figcaption { display: flex; gap: 14px; align-items: baseline; font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(239,234,227,.8); margin-top: 6px; }

/* Pathway dots ping once on arrival */
.pw-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--emerald); opacity: 0; }
.pw-row.gold .pw-dot::after { border-color: var(--gold); }
.pw-row.in-view .pw-dot::after { animation: ping 1.6s var(--ease) .3s 1; }
@keyframes ping { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(2); } }

/* Cross-page transitions (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .28s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .5s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .draw :is(path, circle, line) { stroke-dashoffset: 0 !important; animation: none !important; }
  .fa-node, .fa-origin, .fa-spark { opacity: 1 !important; }
  .fa-halo { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media (max-width: 860px) {
  .hero-mark { display: none; }
  .lost-mark { opacity: .35; }
  .flight text { display: none; }
  .fa-arc { stroke-width: 4; }
  .flight { padding: 16px 8px 18px; }
  .flight figcaption { padding: 0 8px; flex-direction: column; gap: 4px; }
  .svc-art { width: 72px; height: 66px; }
  .marquee { padding: 16px 0; }
}

/* ==========================================================================
   UX refinements
   ========================================================================== */
/* Header gets a soft edge once the page has moved, so it reads as floating */
.site-header { transition: transform .55s var(--ease), box-shadow .4s, background .3s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(14,23,20,.45); }

/* Touch devices: no "stuck" hover lifts after a tap */
@media (hover: none) {
  .svc-card:hover { background: transparent; }
  .svc-card:hover .svc-art, .aud-card:hover img, .journal-card:hover .gen-art, .essay:hover .gen-art, .essay:hover .sq,
  .chat-launcher:hover, .chat-btn:hover, .step:hover, .placement:hover { transform: none; }
  .placement:hover, .step:hover { padding-left: 0; padding-right: 0; }
}

@media (max-width: 860px) {
  /* Thumb-friendly primary actions */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .hero-actions .link { align-self: flex-start; }
  .cta-actions .btn { flex: 1 1 100%; }
  /* Comfortable tap targets in the footer */
  .footer-cols li + li { margin-top: 0; }
  .footer-cols li a, .footer-cols li { display: block; padding: 7px 0; }
  .footer-bottom nav a { padding: 8px 0; }
  /* Inputs at 16px stop iOS zooming into the form */
  .field input, .field textarea, .field select, .chat-form textarea, .nl-form input { font-size: 16px; }
}
/* Small phones (320px): let the newsletter form shrink instead of pushing the page sideways */
.newsletter > * { min-width: 0; }
.nl-form input { width: 100%; }
