/*
  ██████╗  ██████╗ ██╗   ██╗███████╗██████╗
  ██╔══██╗██╔═══██╗╚██╗ ██╔╝██╔════╝██╔══██╗
  ██████╔╝██║   ██║ ╚████╔╝ █████╗  ██║  ██║
  ██╔══██╗██║   ██║  ╚██╔╝  ██╔══╝  ██║  ██║
  ██║  ██║╚██████╔╝   ██║   ███████╗██████╔╝
  ╚═╝  ╚═╝ ╚═════╝    ╚═╝   ╚══════╝╚═════╝

  ════════════════════════════════════════════
  THIS DESIGN WAS CREATED BY ROYED
  https://royed.org
  ════════════════════════════════════════════

  Structure:
  1. Tokens             6. Dock (status pill)    11. Proof · Membership
  2. Base               7. Sections: Hero–Exp    12. Contact · End · Confetti
  3. Utilities          8. Education · Teaching  13. Footer · Toast
  4. Components         9. Research · Editorial  14. Media queries
  5. Loader · Nav      10. Toolkit · Quals       15. Reduced motion
*/

/* ═══════════ 1. TOKENS ═══════════ */
:root {
  /* Light theme */
  --bg: #FAFAF7;
  --bg-raised: #FFFFFF;
  --ink: #101418;
  --ink-2: #4A4F55;
  --hairline: #E6E4DE;
  --accent: #C8A24B;          /* performance gold */
  --accent-ink: #8A6B23;      /* AA-safe gold on light bg */
  --green: #2F9E62;
  --glass: rgba(250, 250, 247, 0.55);
  --glass-hl: rgba(255, 255, 255, 0.45);
  --shadow: 0 18px 50px -22px rgba(16, 20, 24, 0.22);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", monospace;

  /* Fluid scale */
  --text-xs: clamp(0.68rem, 0.64rem + 0.18vw, 0.78rem);
  --text-sm: clamp(0.82rem, 0.78rem + 0.2vw, 0.94rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --text-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.6rem);
  --text-2xl: clamp(2.2rem, 1.6rem + 3vw, 4.2rem);
  --text-hero: clamp(2.9rem, 1.8rem + 6.2vw, 7.2rem);

  /* Spacing — uniform rhythm across all sections */
  --space-section: clamp(5rem, 3.6rem + 6.5vw, 9.5rem);
  --space-title: clamp(2.4rem, 2rem + 2vw, 3.8rem);
  --space-gap: clamp(1.2rem, 1rem + 1.2vw, 2rem);
  --container: min(1180px, 92vw);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.25s;

  --radius: 14px;
}

[data-theme="dark"] {
  --bg: #0B0D10;
  --bg-raised: #12151A;
  --ink: #EDEBE6;
  --ink-2: #9AA0A6;
  --hairline: #23272D;
  --accent: #C8A24B;
  --accent-ink: #D8B665;      /* AA-safe gold on dark bg */
  --green: #4CC98A;
  --glass: rgba(11, 13, 16, 0.55);
  --glass-hl: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.65);
}

/* ═══════════ 2. BASE ═══════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Lenis owns scrolling; native smooth only as a fallback. */
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Copy protection */
  -webkit-user-select: none;
  user-select: none;
}

/* Grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

::selection { background: var(--accent); color: #0B0D10; }

/* ═══════════ 3. UTILITIES ═══════════ */
.container { width: var(--container); margin-inline: auto; }

.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: calc(var(--space-section) * 0.5); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: block;
  margin-bottom: 1.4rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-title);
}
.section__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-2);
}

/* Reveal state (animated in JS) */
[data-reveal] { opacity: 0; transform: translateY(30px); }
html.no-motion [data-reveal] { opacity: 1; transform: none; }

/* ═══════════ 4. COMPONENTS ═══════════ */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
  will-change: transform;
}
.btn__arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0B0D10;
  box-shadow: 0 14px 36px -14px rgba(200, 162, 75, 0.55);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--lg { padding: 1.2rem 2.4rem; font-size: var(--text-base); }

/* Stats */
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 2vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  display: block;
  color: var(--ink);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: block;
  margin-top: 0.5rem;
  max-width: 16ch;
}

/* Expertise marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  margin-top: clamp(3rem, 2.4rem + 2.5vw, 4.5rem);
  padding-block: 1.1rem;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee__track i { font-style: normal; color: var(--accent-ink); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════ 5. LOADER · NAV ═══════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: clip-path 1.1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader.is-removed { display: none; }

.loader__inner { text-align: center; padding: 1.5rem; }

.loader__brain {
  width: clamp(150px, 22vw, 230px);
  margin-inline: auto;
  color: var(--ink);
}
.brain-path {
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
.brain-node { fill: var(--accent); opacity: 0; }
.loader.is-pulsing .loader__brain { animation: brainPulse 2.4s var(--ease) infinite; }
@keyframes brainPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(200,162,75,0)); }
  50% { filter: drop-shadow(0 0 18px rgba(200,162,75,0.45)); }
}

.loader__name {
  margin-top: 2.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 2.4vw, 2.7rem);
  line-height: 1.3;
}
.loader__name-main { display: block; }
.loader__name-main .char { opacity: 0; display: inline-block; }
.loader__name-roy {
  display: block;
  font-size: 0.55em;
  font-style: italic;
  color: var(--ink-2);
  opacity: 0;
  margin-top: 0.35rem;
}
.loader__name-roy em { color: var(--accent-ink); font-style: italic; }

.loader__quote {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-base);
  color: var(--ink-2);
  opacity: 0;
  max-width: 34ch;
  margin-inline: auto;
}

.loader__progress {
  margin-top: 2.6rem;
  width: min(240px, 60vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.loader__progress-bar {
  flex: 1;
  height: 1px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.loader__progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.loader__progress-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-2);
  min-width: 2.5ch;
}
.loader__skip {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0.55;
}

/* — Nav —
   Fixed 64px bar. Brand left, links dead-centre, dock pill right —
   all on one horizontal line at every scroll state. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-inline: clamp(1.2rem, 3vw, 2.6rem);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-bottom-color: var(--hairline);
  box-shadow: inset 0 1px 0 var(--glass-hl), 0 10px 34px -24px rgba(16, 20, 24, 0.35);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  position: relative;
  white-space: nowrap;
}
.nav__brand-short {
  position: absolute;
  inset: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.32em;
  opacity: 0;
  transform: translateY(8px);
  display: flex;
  align-items: center;
}
.nav__brand-full, .nav__brand-short { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.nav.is-scrolled .nav__brand-full { opacity: 0; transform: translateY(-8px); }
.nav.is-scrolled .nav__brand-short { opacity: 1; transform: translateY(0); }

.nav__links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: clamp(0.8rem, 1.6vw, 1.5rem);
}
.nav__link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding-block: 0.3rem;
  transition: color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { right: 0; }

.nav__actions { display: flex; align-items: center; margin-left: auto; }

.nav__burger {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger.is-open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 18px; transform: rotate(-45deg); }

/* Mobile overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 8vw, 4rem);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
  visibility: hidden;
}
.menu-overlay.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-overlay__link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6.5vw, 2.8rem);
  padding-block: 0.45rem;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color var(--t-fast);
}
.menu-overlay.is-open .menu-overlay__link { opacity: 1; transform: none; }
.menu-overlay.is-open .menu-overlay__link:nth-child(1) { transition-delay: 0.08s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(2) { transition-delay: 0.13s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(3) { transition-delay: 0.18s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(4) { transition-delay: 0.23s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(5) { transition-delay: 0.28s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(6) { transition-delay: 0.33s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(7) { transition-delay: 0.38s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(8) { transition-delay: 0.43s; }
.menu-overlay__link:hover { color: var(--accent-ink); }
.menu-overlay__foot {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-2);
}

/* Side rail */
.rail {
  position: fixed;
  right: clamp(0.8rem, 1.6vw, 1.6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.rail__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hairline);
  position: relative;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.rail__dot:hover { background: var(--ink-2); transform: scale(1.4); }
.rail__dot.is-active { background: var(--accent); transform: scale(1.55); }
.rail__tip {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.rail__dot:hover .rail__tip, .rail__dot:focus-visible .rail__tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ═══════════ 6. DOCK (STATUS PILL) ═══════════
   Desktop: fixed top-right, sitting where the theme toggle used to be.
   Mobile (≤880px): fixed pill centred at the bottom of the screen.    */
.dock {
  position: fixed;
  top: 11px;                       /* centred inside the 64px nav: (64 − 42) / 2 */
  right: clamp(1.2rem, 3vw, 2.6rem);
  z-index: 950;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid color-mix(in srgb, var(--hairline) 80%, transparent);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  box-shadow:
    inset 0 1px 0 var(--glass-hl),
    inset 0 -1px 0 rgba(16, 20, 24, 0.05),
    0 10px 34px -18px rgba(16, 20, 24, 0.4);
}

.dock__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  position: relative;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
  white-space: nowrap;
}
a.dock__item:hover, button.dock__item:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.dock__sep {
  width: 1px;
  height: 16px;
  background: var(--hairline);
  flex-shrink: 0;
}

.dock__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 158, 98, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(47, 158, 98, 0); }
}

.dock__member svg, .dock__share svg { width: 16px; height: 16px; }

.dock__clock { cursor: default; }
.dock__time {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
}
.dock__time::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  align-self: center;
  margin-left: 0.45rem;
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.2; } }

/* Tooltips below the dock (desktop) */
.dock__tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.dock__item:hover .dock__tip, .dock__item:focus-visible .dock__tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Theme toggle (inside the dock) */
.theme-toggle { position: relative; width: 34px; height: 30px; justify-content: center; }
.theme-toggle__icon {
  width: 16px; height: 16px;
  position: absolute;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.theme-toggle__icon--moon { opacity: 0; transform: translateY(120%) rotate(-40deg); }
[data-theme="dark"] .theme-toggle__icon--sun { opacity: 0; transform: translateY(-120%) rotate(40deg); }
[data-theme="dark"] .theme-toggle__icon--moon { opacity: 1; transform: translateY(0) rotate(0); }

/* ═══════════ 7. HERO · SKILLS · EXPERIENCE ═══════════ */
/* — Hero — */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--space-section) * 0.7);
}
.hero__brain {
  position: absolute;
  top: 8%;
  right: -4%;
  width: clamp(280px, 38vw, 560px);
  color: var(--ink);
  opacity: 0.07;
  pointer-events: none;
}
.hero__eyebrow { margin-bottom: 2rem; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 1.06;            /* room for descenders */
  letter-spacing: -0.02em;
}
/* Each line clips only for the reveal; padding protects the descenders
   (the tail of the “y”) from being cut off. */
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.08em;
}
.hero__line-inner { display: inline-block; will-change: transform; }
.hero__roles {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}
.hero__roles span { position: relative; }
.hero__roles span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.7rem;
  top: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}
.hero__summary {
  margin-top: 2.2rem;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: var(--text-base);
}
.hero__ctas {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__stats {
  margin-top: clamp(3rem, 2.2rem + 3vw, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--space-gap);
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
}
.hero__scrollcue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero__scrollline {
  width: 1px;
  height: 44px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.hero__scrollline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scrollcue 1.8s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* — Skills — */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--space-gap);
}
.skill-card {
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  will-change: transform;
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.skill-card__icon {
  width: 26px; height: 26px;
  color: var(--accent-ink);
  margin-bottom: 1.1rem;
}
.skill-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  margin-bottom: 0.9rem;
}
.skill-card ul li {
  font-size: var(--text-sm);
  color: var(--ink-2);
  padding-block: 0.32rem;
  border-bottom: 1px dashed var(--hairline);
}
.skill-card ul li:last-child { border-bottom: 0; }

/* — Experience — */
.exp__timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 2.4rem + 3vw, 5.5rem);
  padding-left: clamp(1.6rem, 1.2rem + 2vw, 3rem);
}
.exp__spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
}
.exp__spine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(var(--draw, 0));
  transform-origin: top;
}

.exp-panel {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) 1fr;
  gap: clamp(1.5rem, 1rem + 2.5vw, 4rem);
  align-items: start;
  position: relative;
}
.exp-panel::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1.6rem, 1.2rem + 2vw, 3rem) - 3.5px);
  top: 0.7rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--bg);
}
.exp-panel--alt { grid-template-columns: 1fr minmax(120px, 0.34fr); }
.exp-panel--alt .exp-panel__metric { order: 2; text-align: right; }
.exp-panel--alt .exp-panel__body { order: 1; }

.exp-panel__metric {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 4vw, 5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
  position: sticky;
  top: 7rem;
}
.exp-panel__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.7rem;
}
.exp-panel__meta a { color: var(--accent-ink); transition: color var(--t-fast); }
.exp-panel__meta a:hover { color: var(--ink); }
.exp-panel__role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1.1;
}
.exp-panel__org {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-top: 0.4rem;
  margin-bottom: 1.2rem;
}
.exp-panel__wink {
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  color: var(--ink-2);
}
.exp-panel__points li {
  position: relative;
  padding-left: 1.7rem;
  padding-block: 0.4rem;
  color: var(--ink-2);
  font-size: var(--text-base);
  max-width: 64ch;
}
/* Stylish tick: gold check drawn via SVG mask */
.exp-panel__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 1em;
  height: 1em;
  background-color: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t-fast) var(--ease);
}
.exp-panel__points li:hover::before { transform: scale(1.18); }

.exp__tier2-label {
  margin-top: clamp(4rem, 3rem + 4vw, 7rem);
  margin-bottom: 1.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--ink-2);
}
.exp__tier2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-gap);
}
.exp-mini {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.exp-mini:hover { border-color: var(--accent); transform: translateY(-4px); }
.exp-mini__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-bottom: 0.6rem;
}
.exp-mini h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
}
.exp-mini__org {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-top: 0.25rem;
  margin-bottom: 0.8rem;
}
.exp-mini__detail {
  font-size: var(--text-sm);
  color: var(--ink-2);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.45s var(--ease);
}
.exp-mini:hover .exp-mini__detail,
.exp-mini:focus-within .exp-mini__detail { max-height: 240px; opacity: 1; }
@media (hover: none) {
  .exp-mini__detail { max-height: none; opacity: 1; }
}

/* ═══════════ 8. EDUCATION · TEACHING ═══════════ */
/* — Education (degree-only plaques) — */
.edu__list { display: flex; flex-direction: column; gap: 1.1rem; }
.edu-plaque {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.edu-plaque:hover {
  transform: translateY(-4px);
  border-left-color: var(--accent);
  box-shadow: var(--shadow);
}
.edu-plaque__icon {
  width: 28px; height: 28px;
  color: var(--accent-ink);
  flex-shrink: 0;
}
.edu-plaque h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1.15;
}

/* — Teaching — */
.teach__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: start;
}
.teach__summary { color: var(--ink-2); max-width: 52ch; }
.course-tile {
  display: block;
  margin-top: 2.2rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  background: linear-gradient(135deg, rgba(200,162,75,0.10), transparent 60%);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  will-change: transform;
}
.course-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px -18px rgba(200,162,75,0.4);
}
.course-tile__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.course-tile h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  margin-block: 0.5rem;
}
.course-tile__sub { font-size: var(--text-sm); color: var(--ink-2); }
.teach__dev2 { margin-top: 1.4rem; font-size: var(--text-sm); color: var(--ink-2); }

.acc {
  border-bottom: 1px solid var(--hairline);
  padding-block: 1.1rem;
}
.acc summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  list-style: none;
  transition: color var(--t-fast) var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent-ink); }
.acc__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--ink-2);
  white-space: nowrap;
}
.acc__codes {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
/* Course code chips with hover tooltip showing the unit title */
.code {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  cursor: help;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.code:hover, .code:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}
.code::after {
  content: attr(data-title);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  padding: 0.38rem 0.7rem;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  z-index: 5;
}
.code::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
  z-index: 5;
}
.code:hover::after, .code:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.code:hover::before, .code:focus-visible::before { opacity: 1; }

/* ═══════════ 9. RESEARCH · EDITORIAL ═══════════ */
.pubwall {
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  padding-block: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
  margin-bottom: clamp(2.2rem, 1.8rem + 2vw, 3.5rem); /* tightened gap to the cards */
}
.pubwall__track {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 2rem + 4vw, 6rem);
  width: max-content;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.pubwall:hover .pubwall__track { animation-play-state: paused; }
.pub {
  font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.3rem);
  color: var(--ink-2);
  opacity: 0.62;
  transition: opacity var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  cursor: default;
}
.pub:hover { opacity: 1; color: var(--ink); transform: translateY(-3px); }
.pub--nature { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.pub--tf { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.pub--routledge { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.3em; font-size: 0.8em; }
.pub--elsevier { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.12em; }
.pub--sage { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.18em; }
.pub--frontiers { font-family: var(--font-body); font-weight: 500; letter-spacing: -0.01em; }
.pub--mdpi { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.22em; }

.cite__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-gap);
}
.cite-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  will-change: transform;
}
.cite-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.cite-card__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.cite-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-lg);
  line-height: 1.3;
  flex: 1;
}
.cite-card__doi {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.cite-card:hover .cite-card__doi,
.cite-card:focus-visible .cite-card__doi { opacity: 1; transform: none; }
@media (hover: none) { .cite-card__doi { opacity: 1; transform: none; } }

/* — Scholarly profiles (ORCID · Google Scholar) — */
.research__profiles {
  margin-top: clamp(2.6rem, 2rem + 2vw, 4rem);
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.profile-link {
  position: relative;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--ink-2);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.profile-link:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-3px);
}
.profile-link svg { width: 22px; height: 22px; }
.profile-link::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  padding: 0.38rem 0.7rem;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.profile-link:hover::after, .profile-link:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.research__impact {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  text-align: center;
  max-width: 30ch;
  margin-inline: auto;
  line-height: 1.3;
}
.research__impact strong { font-weight: 500; color: var(--accent-ink); }
.research__cta { text-align: center; margin-top: 2rem; }

/* — Editorial: peer-review stamp wall + rotating seal — */
.editorial {
  margin-top: clamp(3.5rem, 2.8rem + 3vw, 5.5rem);
  padding-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  align-items: center;
}
.editorial__seal {
  width: clamp(110px, 14vw, 150px);
  color: var(--accent-ink);
  flex-shrink: 0;
}
.editorial__seal svg { animation: sealSpin 26s linear infinite; }
.editorial__seal text {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  fill: currentColor;
}
@keyframes sealSpin { to { transform: rotate(360deg); } }

.editorial__stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 0.9rem;
  align-items: center;
}
.stamp {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1.5px dashed var(--hairline);
  border-radius: 9px;
  padding: 0.55rem 0.95rem;
  transition: transform 0.35s var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  cursor: default;
}
.editorial__stamps .stamp:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--ink);
}
.stamp--featured {
  border: 1.5px solid var(--accent);
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--accent);
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ═══════════ 10. TOOLKIT · QUALIFICATIONS ═══════════ */
.tools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: var(--space-gap);
}
.tool-group {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.tool-group:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 34px -20px rgba(200,162,75,0.45);
}
.tool-group h3 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.7rem;
}
.tool-group p {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.9;
  color: var(--ink-2);
}

/* — Qualifications: credential badge grid — */
.quals__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: var(--space-gap);
}
.qual-badge {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.5rem;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.qual-badge::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.qual-badge:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.qual-badge:hover::before { transform: scaleX(1); }
.qual-badge__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--accent-ink);
  margin-bottom: 1.1rem;
  transition: border-color var(--t-fast) var(--ease);
}
.qual-badge:hover .qual-badge__icon { border-color: var(--accent); }
.qual-badge__icon svg { width: 20px; height: 20px; }
.qual-badge h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1.3;
}
.qual-badge__org {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* — Details strip — */
.facts { border-block: 1px solid var(--hairline); }
.facts__strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-gap);
}
.fact {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.fact svg { width: 20px; height: 20px; color: var(--accent-ink); flex-shrink: 0; }
.fact__label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.fact__value { color: var(--ink); }
/* G'day: the kangaroo cursor */
.fact__value--roo {
  cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMCcgaGVpZ2h0PSczMCc+PHRleHQgeT0nMjMnIGZvbnQtc2l6ZT0nMjInPvCfppg8L3RleHQ+PC9zdmc+") 15 15, auto;
}

/* Canadian flag cursor */
.fact__value--canada {
  cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMCcgaGVpZ2h0PSczMCc+PHRleHQgeT0nMjMnIGZvbnQtc2l6ZT0nMjInPvCfh6jwn4emPC90ZXh0Pjwvc3ZnPg==") 15 15, auto;
}

/* ═══════════ 11. PROOF · MEMBERSHIP ═══════════ */
.proof__quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 1.2rem + 2.8vw, 3.3rem);
  line-height: 1.2;
  max-width: 22ch;
  margin-bottom: var(--space-title);
}
.proof__quote em { font-style: italic; color: var(--accent-ink); }

.proof__testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-gap);
}
.tcard {
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  will-change: transform;
}
.tcard:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.tcard__stars {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  margin-bottom: 0.9rem;
}
.tcard blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink);
  flex: 1;
}
.tcard figcaption {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.tcard__name { font-weight: 600; font-size: var(--text-sm); }
.tcard__role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* — Membership — */
.member__card {
  position: relative;
  text-align: center;
  border: 1px solid var(--accent);
  border-radius: calc(var(--radius) * 1.6);
  padding: clamp(3rem, 2.4rem + 3.5vw, 5.5rem) clamp(1.6rem, 1.2rem + 3vw, 4rem);
  background:
    radial-gradient(120% 130% at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    var(--bg-raised);
  overflow: hidden;
}
.member__card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: calc(var(--radius) * 1.3);
  pointer-events: none;
}
.member__card .eyebrow { text-align: center; }
.member__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.member__title em { font-style: italic; color: var(--accent-ink); }
.member__line {
  margin-top: 1.4rem;
  color: var(--ink-2);
  max-width: 52ch;
  margin-inline: auto;
}
.member__cta { margin-top: 2.4rem; }

/* ═══════════ 12. CONTACT · END · CONFETTI ═══════════ */
.contact {
  min-height: 88svh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.contact__brain {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(360px, 56vw, 760px);
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
}
.contact__inner { position: relative; }
.contact__inner .eyebrow { text-align: center; }
.contact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.8rem + 4.6vw, 5.8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.contact__title em { font-style: italic; color: var(--accent-ink); }
.contact__line {
  margin-top: 1.6rem;
  color: var(--ink-2);
  max-width: 46ch;
  margin-inline: auto;
}
.contact__cta { margin-top: 2.6rem; }

/* — End message — */
.end { text-align: center; }
.end__message {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-lg);
  color: var(--ink-2);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.end__message.is-visible { opacity: 1; transform: none; }
html.no-motion .end__message { opacity: 1; transform: none; }

/* Confetti particles (spawned by JS, animated by GSAP) */
.confetti {
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 3;
}

/* ═══════════ 13. FOOTER · TOAST ═══════════ */
.footer {
  border-top: 1px solid var(--hairline);
  padding-block: 1.8rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  color: var(--ink-2);
}
.footer a { color: var(--ink); transition: color var(--t-fast); }
.footer a:hover { color: var(--accent-ink); }
.footer__top {
  width: 40px; height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.footer__top:hover { border-color: var(--accent); transform: translateY(-4px); }
.footer__top svg { width: 16px; height: 16px; }

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(160%);
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease), visibility 0s linear 0.45s;
  pointer-events: none;
  white-space: nowrap;
  max-width: 92vw;
}
.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}

/* ═══════════ 14. MEDIA QUERIES ═══════════ */
/* Below 1480px the dock condenses to clear icons only:
   pulsing green dot (tooltip: Available for consulting) ·
   fingerprint (tooltip: Become a member) · time · theme · share. */
@media (max-width: 1480px) {
  .dock__avail-text { display: none; }
  .dock__avail { padding-inline: 0.6rem; }
}

/* Below 1180px the centred links would crowd the pill — switch to the burger.
   The burger sits to the left of the dock pill while the dock is top-right. */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__actions { margin-right: 275px; }
}

@media (max-width: 1080px) {
  .rail { display: none; }
  .hero__brain { display: none; } /* brain↔Earth orb is desktop-only */
}

@media (max-width: 880px) {
  .nav__actions { margin-right: 0; }

  /* Dock moves to the bottom of the screen, icons only */
  .dock {
    top: auto;
    bottom: max(0.9rem, env(safe-area-inset-bottom, 0.9rem));
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 1.6rem);
    box-shadow:
      inset 0 1px 0 var(--glass-hl),
      0 12px 36px -16px rgba(16, 20, 24, 0.45);
  }
  .dock__tip { display: none; } /* touch: aria-labels cover it */

  /* Keep content clear of the bottom dock */
  .footer { padding-bottom: 5.4rem; }

  .teach__grid { grid-template-columns: 1fr; }
  .exp-panel, .exp-panel--alt { grid-template-columns: 1fr; }
  .exp-panel--alt .exp-panel__metric { order: 0; text-align: left; }
  .exp-panel--alt .exp-panel__body { order: 1; }
  .exp-panel__metric { position: static; font-size: clamp(2rem, 8vw, 3rem); }

  .editorial { grid-template-columns: 1fr; }
  .editorial__seal { margin-inline: auto; }
}

@media (max-width: 560px) {
  .hero { padding-top: 6.5rem; }
  .hero__scrollcue span:first-child { display: none; }
  .toast { white-space: normal; text-align: center; border-radius: 16px; bottom: 5.4rem; }
}

/* ═══════════ 15. REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .end__message { opacity: 1; transform: none; }
  .marquee__track, .pubwall__track, .editorial__seal svg { animation: none; }
  .loader { display: none !important; }
}
