/* =================================================================
   NoVa Elite College Consulting
   Regal editorial — engraved certificate / heraldic prestige.
   Dominant ink & ivory · royal crimson · engraved gold.
   ================================================================= */

:root {
  --ivory: #f2f1ec;
  --ivory-2: #e9e7df;
  --ink: #14100c;
  --ink-2: #1f1913;
  --oxblood: #43090f;
  --oxblood-2: #2a070b;
  --crimson: #84111f;
  --crimson-bright: #a8182b;
  --gold: #c39a3e;
  --gold-deep: #9a7628;
  --gold-light: #e6c978;

  --on-dark: #ece6d8;
  --on-dark-mute: #b5ab94;
  --on-light: #1a1510;
  --on-light-mute: #6a5f4e;

  --line-dark: rgba(230, 201, 120, 0.22);
  --line-light: rgba(26, 21, 16, 0.16);

  --serif: "Fraunces", "Hoefler Text", Georgia, serif;
  --sans: "Archivo", -apple-system, system-ui, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-sticky: 100;
  --z-banner: 150;
  --z-menu: 200;
  --banner-h: 2.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; background: var(--ink); }
html.smooth { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--on-light);
  line-height: 1.62;
  overflow-x: hidden;
  font-size: clamp(15px, 1.04vw, 17px);
}

/* engraved paper grain */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--crimson); color: var(--ivory); }
a { color: inherit; text-decoration: none; }
svg { display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 540; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; padding-block: clamp(5rem, 10vw, 9rem); }
#edge { background: var(--ivory); }
[id] { scroll-margin-top: calc(var(--banner-h) + 4.5rem); }

/* A kicker used sparingly — gold italic serif, NOT an uppercase tracked eyebrow */
.kicker {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.05rem; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 0.7em;
}
.kicker::before { content: "✦"; font-style: normal; font-size: 0.7em; color: var(--gold); }
.on-dark .kicker { color: var(--gold-light); }

.lead {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.55;
  color: var(--on-light-mute);
  margin-top: 1.4rem;
}
.on-dark .lead { color: var(--on-dark-mute); }

.h-display { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.h-section { font-size: clamp(2.1rem, 5vw, 3.5rem); margin-top: 1rem; }

.section-head { max-width: 50ch; margin-bottom: clamp(3rem, 6vw, 5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  padding: 0.95em 1.8em; border: 1px solid transparent;
  cursor: pointer; transition: all 0.45s var(--e-out); position: relative;
}
.btn .arrow { transition: transform 0.45s var(--e-out); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold-deep); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(195,154,62,0.7); }
.btn-line-dark { color: var(--on-dark); border-color: var(--line-dark); }
.btn-line-dark:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-crimson { background: var(--crimson); color: var(--ivory); }
.btn-crimson:hover { background: var(--oxblood); transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(132,17,31,0.6); }
.btn-line-light { color: var(--on-light); border-color: var(--line-light); }
.btn-line-light:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

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

/* =================================================================
   ANNOUNCEMENT BANNER (sliding)
   ================================================================= */
.announce {
  position: fixed; top: 0; left: 0; right: 0; height: var(--banner-h);
  z-index: var(--z-banner); display: flex; align-items: center; overflow: hidden;
  background: var(--crimson); color: var(--ivory);
  border-bottom: 1px solid var(--gold-deep);
}
.announce-track { display: flex; align-items: center; flex-shrink: 0; white-space: nowrap; animation: scroll-x 34s linear infinite; will-change: transform; }
.announce:hover .announce-track { animation-play-state: paused; }
.a-item { display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.03em; padding-left: 0; }
.a-sep { color: var(--gold-light); font-size: 0.62rem; margin: 0 1.6rem; }

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: fixed; top: var(--banner-h); left: 0; right: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem var(--gutter);
  transition: background 0.5s var(--e-out), box-shadow 0.5s var(--e-out), padding 0.5s var(--e-out), color 0.5s var(--e-out);
  color: var(--on-dark);
}
.nav.scrolled {
  background: rgba(242, 241, 236, 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-light);
  padding-block: 0.85rem; color: var(--on-light);
}
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--serif); font-weight: 600; }
.brand .mono {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--gold-light);
}
.nav.scrolled .brand .mono { color: var(--crimson); border-color: var(--gold-deep); }
.brand b { font-size: 1.16rem; letter-spacing: -0.01em; }
.brand i { font-style: italic; color: var(--gold-light); }
.nav.scrolled .brand i { color: var(--crimson); }
.nav-links { display: flex; gap: 2.1rem; align-items: center; }
.nav-links a:not(.btn) { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.01em; position: relative; opacity: 0.86; transition: opacity 0.3s; }
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0; background: var(--gold); transition: width 0.35s var(--e-out); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-cta { padding: 0.6em 1.3em; font-size: 0.82rem; }
.menu-label, .menu-contact { display: none; }
/* While the mobile menu is open, the nav must NOT create a containing block
   (backdrop-filter would trap the fixed overlay), and the page shouldn't scroll. */
html.menu-open { overflow: hidden; }
html.menu-open .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: currentColor; transition: 0.3s; }

/* =================================================================
   HERO  (dark, engraved)
   ================================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(4.5rem + var(--banner-h)); padding-bottom: 1.5rem; color: var(--on-dark); overflow: hidden;
  background:
    radial-gradient(110% 120% at 78% 8%, rgba(132,17,31,0.55), transparent 45%),
    radial-gradient(90% 90% at 12% 100%, rgba(67,9,15,0.9), transparent 55%),
    linear-gradient(160deg, var(--ink) 0%, var(--oxblood-2) 60%, var(--oxblood) 100%);
}
/* engraved vertical hairlines */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 119px, var(--line-dark) 119px, var(--line-dark) 120px);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 78%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 3rem; align-items: center; width: 100%; }
.hero-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--on-dark-mute); font-weight: 600; }
.hero-meta .bar { width: 40px; height: 1px; background: var(--gold-deep); }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.2rem); font-weight: 500; margin-top: 1.1rem; letter-spacing: -0.035em; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero h1 .cr { color: var(--crimson-bright); font-style: italic; }
.hero-sub { max-width: 50ch; font-size: clamp(1.04rem, 1.4vw, 1.2rem); color: var(--on-dark-mute); margin-top: 1.3rem; }
.hero-cred { max-width: 52ch; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); font-size: clamp(0.96rem, 1.2vw, 1.08rem); color: var(--on-dark); }
.hero-cred strong { color: var(--gold-light); font-weight: 600; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.7rem; flex-wrap: wrap; }
.hero-foot { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 640px; margin-top: clamp(1.25rem,2.5vw,2rem); border: 1px solid var(--line-dark); border-radius: 3px; }
.hero-foot .stat { padding: 1.3rem clamp(1.1rem,2vw,1.8rem); border-left: 1px solid var(--line-dark); }
.hero-foot .stat:first-child { border-left: 0; }
.hero-foot .stat .n { font-family: var(--serif); font-size: clamp(1.7rem,2.6vw,2.4rem); color: var(--gold-light); line-height: 1; }
.hero-foot .stat .l { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-mute); margin-top: 0.5rem; }

/* Seal / crest */
.seal { width: min(340px, 30vw); aspect-ratio: 1; margin-inline: auto; color: var(--gold-light); filter: drop-shadow(0 12px 30px rgba(0,0,0,0.45)); animation: seal-rot 60s linear infinite; }
@keyframes seal-rot { to { transform: rotate(360deg); } }
.seal .fixed { animation: seal-rot 60s linear infinite reverse; transform-box: view-box; transform-origin: 100px 100px; }

/* =================================================================
   ACCEPTANCE BAND (light, editorial marquee)
   ================================================================= */
.accept { background: var(--ivory-2); padding-block: clamp(3.5rem,6vw,5.5rem); overflow: hidden; border-block: 1px solid var(--line-light); }
.accept .cap { text-align: center; margin-bottom: 2.4rem; }
.accept .cap .kicker { justify-content: center; }
.accept .cap p { font-size: 0.85rem; color: var(--on-light-mute); margin-top: 0.5rem; letter-spacing: 0.02em; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.m-track { --marquee-offset: 0px; display: flex; flex-shrink: 0; align-items: center; animation: scroll-x 46s linear infinite; will-change: transform; touch-action: none; user-select: none; cursor: grab; }
.m-track.rev { animation-direction: reverse; }
.marquee:hover .m-track, .m-track.dragging { animation-play-state: paused; }
.m-track.dragging { cursor: grabbing; }
.m-item { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.7rem); font-style: italic; white-space: nowrap; padding: 0 1.6rem; display: flex; align-items: center; gap: 1.6rem; color: var(--ink); }
.m-item::after { content: "✦"; color: var(--crimson); font-size: 0.5em; font-style: normal; }
.marquee + .marquee { margin-top: 0.5rem; }
@keyframes scroll-x { to { transform: translateX(calc(var(--marquee-offset, 0px) - 50%)); } }

/* =================================================================
   DIFFERENTIATORS (editorial, no numbered cards)
   ================================================================= */
.edge-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line-light); }
.edge-item { padding: clamp(1.8rem,3vw,2.6rem) clamp(1.8rem,3vw,2.6rem) clamp(1.8rem,3vw,2.6rem) 0; border-bottom: 1px solid var(--line-light); position: relative; }
.edge-item:nth-child(odd) { padding-right: clamp(2rem,4vw,3.5rem); }
.edge-item:nth-child(even) { padding-left: clamp(2rem,4vw,3.5rem); border-left: 1px solid var(--line-light); }
.edge-item .glyph { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 1.3rem; }
.edge-item h3 { font-size: clamp(1.3rem,2vw,1.6rem); margin: 0.5rem 0 0.7rem; }
.edge-item p { color: var(--on-light-mute); font-size: 0.99rem; max-width: 46ch; }

/* =================================================================
   SERVICES
   ================================================================= */
.services { background: var(--ink); color: var(--on-dark); }
.services::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.4; background-image: repeating-linear-gradient(90deg, transparent, transparent 159px, var(--line-dark) 159px, var(--line-dark) 160px); -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.services .wrap { position: relative; z-index: 2; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 1.4rem; }
.pkg {
  border: 1px solid var(--line-dark); padding: clamp(1.9rem,3vw,2.7rem);
  display: flex; flex-direction: column; background: rgba(236,230,216,0.02);
  transition: transform 0.5s var(--e-out), border-color 0.5s var(--e-out), background 0.5s var(--e-out);
}
.pkg:hover { transform: translateY(-7px); border-color: var(--gold); background: rgba(236,230,216,0.05); }
.pkg.feature { background: linear-gradient(165deg, rgba(132,17,31,0.35), rgba(67,9,15,0.15)); border-color: var(--gold-deep); }
.pkg .tag { font-family: var(--serif); font-style: italic; color: var(--gold-light); font-size: 0.98rem; }
.pkg .ribbon { align-self: flex-start; margin-bottom: 0.8rem; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); background: var(--gold-light); padding: 0.4em 0.85em; font-weight: 700; }
.pkg h3 { font-size: 1.7rem; margin: 0.55rem 0 0.5rem; color: var(--ivory); }
.pkg .desc { font-size: 0.95rem; color: var(--on-dark-mute); margin-bottom: 1.5rem; }
.pkg ul { list-style: none; flex: 1; }
.pkg li { font-size: 0.92rem; color: var(--on-dark); padding: 0.72em 0; border-top: 1px solid var(--line-dark); display: flex; gap: 0.7em; }
.pkg li:first-child { border-top: 0; }
.pkg li::before { content: "·"; color: var(--gold); font-weight: 700; }

/* Flagship roadmap — ordered, connected path */
.pkg .path { list-style: none; padding: 0; margin: 0; flex: 1; }
.pkg .path li { display: flex; gap: 1rem; padding: 0 0 1.5rem; border-top: 0; position: relative; }
.pkg .path li:last-child { padding-bottom: 0; }
.pkg .path li::before { content: ""; position: absolute; left: 16px; top: 38px; bottom: 0; width: 1px; background: linear-gradient(var(--gold-deep), rgba(154,118,40,0.15)); }
.pkg .path li:last-child::before { display: none; }
.pkg .path .step-n {
  flex-shrink: 0; width: 33px; height: 33px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-light);
  display: grid; place-items: center; font-family: var(--serif); font-size: 0.98rem;
  background: var(--oxblood-2); position: relative; z-index: 1;
}
.pkg .path b { display: block; color: var(--ivory); font-size: 1.04rem; font-weight: 600; margin-bottom: 0.25rem; line-height: 1.25; }
.pkg .path p { font-size: 0.88rem; color: var(--on-dark-mute); line-height: 1.5; }

/* =================================================================
   GUARANTEE (drenched crimson)
   ================================================================= */
.guarantee { background: radial-gradient(120% 130% at 50% -10%, var(--crimson-bright), var(--crimson) 40%, var(--oxblood) 100%); color: var(--ivory); text-align: center; overflow: hidden; }
.guarantee::after { content: "T20"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 44vw; color: rgba(255,255,255,0.05); line-height: 0; pointer-events: none; }
.guarantee .wrap { position: relative; z-index: 2; max-width: 880px; }
.guarantee .kicker { color: var(--gold-light); justify-content: center; }
.guarantee h2 { font-size: clamp(2.3rem,5.5vw,4rem); margin: 1.1rem 0 1.4rem; }
.guarantee h2 em { color: var(--gold-light); font-style: italic; }
.guarantee p { color: rgba(242,241,236,0.86); font-size: 1.12rem; max-width: 60ch; margin: 0 auto; }
.merit { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.6rem; }
.merit .chip { border: 1px solid rgba(242,241,236,0.28); padding: 0.7em 1.3em; border-radius: 100px; font-size: 0.85rem; backdrop-filter: blur(2px); }
.merit .chip b { color: var(--gold-light); font-weight: 600; }

/* =================================================================
   TEAM — heraldic school shields, no names
   ================================================================= */
.team { background: var(--ink); color: var(--on-dark); }
.team .wrap { position: relative; z-index: 2; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.advisor {
  border: 1px solid var(--line-dark); border-radius: 4px; padding: clamp(2rem,3vw,2.6rem); text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.5s var(--e-out), border-color 0.5s var(--e-out);
  background: linear-gradient(180deg, rgba(236,230,216,0.03), transparent);
}
.advisor:hover { transform: translateY(-7px); border-color: var(--gold); }
.advisor:hover .plate { transform: scale(1.03); }
.advisor .plate { transition: transform 0.5s var(--e-out); }
.advisor .school { font-family: var(--serif); font-size: 1.7rem; color: var(--ivory); }
.advisor .yr { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); margin: 0.5rem 0 1.1rem; }
.advisor .bio { font-size: 0.93rem; color: var(--on-dark-mute); max-width: 32ch; line-height: 1.55; }

/* =================================================================
   CTA (oxblood)
   ================================================================= */
.cta { background: linear-gradient(160deg, var(--oxblood) 0%, var(--ink) 100%); color: var(--on-dark); text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; opacity: 0.4; background-image: repeating-linear-gradient(90deg, transparent, transparent 119px, var(--line-dark) 119px, var(--line-dark) 120px); -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%); }
.cta .wrap { position: relative; z-index: 2; max-width: 720px; }
.cta h2 { font-size: clamp(2.4rem,6vw,4.4rem); }
.cta h2 em { font-style: italic; color: var(--gold-light); }
.cta p { color: var(--on-dark-mute); max-width: 50ch; margin: 1.3rem auto 2.4rem; font-size: 1.1rem; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; justify-content: center; }
.cta-primary { padding: 1.05em 4.2em; font-size: 1rem; min-width: clamp(260px, 34vw, 330px); justify-content: center; }
.cta-secondary-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =================================================================
   FOOTER
   ================================================================= */
footer { background: var(--oxblood-2); color: var(--on-dark-mute); padding-block: 3.5rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; }
footer .brand { color: var(--ivory); }
footer .brand .mono { color: var(--gold-light); }
footer .fnav { display: flex; gap: 1.5rem; font-size: 0.86rem; flex-wrap: wrap; }
footer a { transition: color 0.3s; }
footer a:hover { color: var(--gold-light); }
footer .legal { width: 100%; border-top: 1px solid var(--line-dark); padding-top: 1.5rem; margin-top: 0.5rem; font-size: 0.78rem; display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }

/* =================================================================
   LOGO PLATES
   ================================================================= */
/* Acceptance logo wall (HYPSM) — logo shapes haloed in the school colour */
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.4rem,3vw,2.6rem); max-width: 960px; margin: 0 auto clamp(2.6rem,5vw,3.6rem); }
.logo-wall .tile { position: relative; padding: 22px 32px; display: grid; place-items: center; transition: transform 0.45s var(--e-out); }
.logo-wall .tile::before {
  content: ""; position: absolute; inset: -12%; z-index: 0; pointer-events: none;
  background: radial-gradient(52% 58% at 50% 50%, color-mix(in srgb, var(--aura) 58%, transparent), transparent 72%);
  filter: blur(12px); opacity: 0.92;
}
.logo-wall .tile:hover { transform: translateY(-4px); }
.logo-wall .tile img { position: relative; z-index: 1; height: 58px; width: auto; max-width: 124px; object-fit: contain; display: block; }
.logo-wall .more { font-family: var(--serif); font-style: italic; color: var(--on-light-mute); font-size: 1.35rem; padding-left: 0.2rem; }

/* Advisor logo — a light aura is always visible, then it intensifies on hover */
.advisor .plate { position: relative; width: 100%; height: 150px; display: grid; place-items: center; margin-bottom: 1.3rem; }
.advisor .plate::before {
  content: ""; position: absolute; inset: 10%; z-index: 0; pointer-events: none;
  transform: scale(0.9); opacity: 0.72;
  background:
    radial-gradient(26% 28% at 50% 48%, rgba(255,255,255,0.12), transparent 58%),
    radial-gradient(46% 50% at 50% 50%, color-mix(in srgb, var(--aura) 42%, transparent), transparent 70%);
  filter: blur(11px);
  transition: transform 0.5s var(--e-out), opacity 0.5s var(--e-out), filter 0.5s var(--e-out), background 0.5s var(--e-out);
}
.advisor:hover .plate::before {
  transform: scale(1.2); opacity: 1;
  background:
    radial-gradient(34% 36% at 50% 48%, rgba(255,255,255,0.18), transparent 58%),
    radial-gradient(66% 70% at 50% 50%, color-mix(in srgb, var(--aura) 82%, transparent), transparent 74%);
  filter: blur(18px);
}
.advisor .plate img { position: relative; z-index: 1; height: 96px; width: auto; max-width: 170px; object-fit: contain; }
/* Wider mark (Duke) gets a slightly larger all-the-time aura */
.advisor .plate.plate-wide::before {
  inset: 0; transform: scale(0.96); opacity: 0.76;
  background:
    radial-gradient(30% 32% at 50% 48%, rgba(255,255,255,0.14), transparent 60%),
    radial-gradient(54% 58% at 50% 50%, color-mix(in srgb, var(--aura) 50%, transparent), transparent 74%);
  filter: blur(13px);
}
.advisor:hover .plate.plate-wide::before {
  transform: scale(1.18); opacity: 1;
  background:
    radial-gradient(38% 40% at 50% 48%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(72% 76% at 50% 50%, color-mix(in srgb, var(--aura) 88%, transparent), transparent 78%);
  filter: blur(21px);
}

/* =================================================================
   MOTION — visible by default; only JS-enabled gets the reveal
   ================================================================= */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.95s var(--e-out), transform 0.95s var(--e-out); }
html.js .reveal.in { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: 0.08s; }
[data-d="2"] { transition-delay: 0.16s; }
[data-d="3"] { transition-delay: 0.24s; }
[data-d="4"] { transition-delay: 0.32s; }
[data-d="5"] { transition-delay: 0.40s; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .seal { width: 200px; order: -1; }
  .hero { min-height: auto; padding-block: calc(7rem + var(--banner-h)) 4.5rem; }
}
@media (max-width: 820px) {
  /* 2-column grid so logos line up in tidy rows AND columns (Stanford under Yale) */
  .logo-wall { display: grid; grid-template-columns: repeat(2, 1fr); place-items: center; gap: 0.6rem 1rem; }
  .logo-wall .tile { width: 100%; }
  .team-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .advisor { padding: 2.2rem 1.6rem; }
  .advisor .plate { height: 132px; max-width: 230px; }
  .advisor .bio { max-width: 46ch; }
}
@media (max-width: 720px) {
  .edge-list { grid-template-columns: 1fr; }
  .edge-item, .edge-item:nth-child(odd), .edge-item:nth-child(even) { padding: 1.8rem 0; border-left: 0; }
  /* Full-screen editorial menu — width = viewport, so it can't overflow */
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: auto; width: 100%;
    height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: center; align-items: stretch; gap: 0;
    padding: 5.5rem var(--gutter) max(2.5rem, env(safe-area-inset-bottom));
    background:
      radial-gradient(120% 70% at 85% 0%, rgba(132,17,31,0.42), transparent 55%),
      linear-gradient(165deg, var(--ink) 0%, var(--oxblood-2) 100%);
    color: var(--on-dark);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.45s var(--e-out), visibility 0.45s var(--e-out), transform 0.5s var(--e-out);
    z-index: var(--z-menu);
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .menu-label { display: block; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.6rem; }
  .nav-links a:not(.btn):not(.menu-contact) {
    font-family: var(--serif); font-size: clamp(1.9rem, 8vw, 2.5rem); font-weight: 500;
    color: var(--ivory); text-align: left; opacity: 1;
    padding: 1.05rem 0; border-top: 1px solid var(--line-dark);
    display: flex; align-items: center; justify-content: space-between;
  }
  .nav-links a:not(.btn):not(.menu-contact):last-of-type { border-bottom: 1px solid var(--line-dark); }
  .nav-links a:not(.btn):not(.menu-contact)::after { content: "\2197"; display: inline; position: static; width: auto; height: auto; background: none; color: var(--gold); font-family: var(--sans); font-size: 1.1rem; opacity: 0.7; }
  .nav-cta { margin-top: 2rem; font-size: 1rem; padding: 1.05em 1.8em; justify-content: center; }
  .menu-contact { display: block; margin-top: 1.8rem; font-size: 0.86rem; color: var(--on-dark-mute); font-family: var(--sans); letter-spacing: 0.01em; }
  .nav-toggle { display: flex; z-index: calc(var(--z-menu) + 1); }
  .nav-links.open ~ .nav-toggle span { background: var(--on-dark); }
  .nav-links.open ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-links.open ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-links.open ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Stat tiles: tighter labels so they don't wrap to four lines */
  .hero-foot { max-width: none; }
  .hero-foot .stat { padding: 1rem 0.85rem; }
  .hero-foot .stat .l { font-size: 0.6rem; letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .seal { animation: none; }
}
