/* ============================================
   ETHAN DAVID SCOTT — CUSTOM HUGO THEME
   Dark navy + cyan/turquoise — matching Canva original
   ============================================ */

:root {
  --bg-primary: #111d30;
  --bg-secondary: #162542;
  --bg-card: #18283c;
  --bg-card-hover: #1e304c;
  --bg-footer: #0d1624;
  --cyan: #65f4f4;
  --cyan-dim: #4dd8d8;
  --cyan-glow: rgba(101, 244, 244, 0.15);
  --teal: #00bfa5;
  --green-card: #2ecb70;
  --text-primary: #d4d4d4;
  --text-secondary: #9aa5b8;
  --text-muted: #6b7a90;
  --text-bright: #ffffff;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(101, 244, 244, 0.2);
  --glass: rgba(15, 31, 58, 0.85);
  --font-heading: 'Times New Roman', Times, serif;
  --font-body: Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --content-width: 900px;
  --wide-width: 1200px;
  --section-pad: 5rem;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--text-bright); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-bright);
  line-height: 1.25;
  font-weight: 400;
}
h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; margin-top: 2.5rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; margin-top: 2rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; margin-top: 1.5rem; }
p { margin-bottom: 1.25rem; }
ul, ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

blockquote {
  border-left: 3px solid var(--cyan);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

code {
  font-family: var(--font-mono);
  background: var(--bg-card);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--cyan);
}
pre {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
pre code { background: none; padding: 0; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { color: var(--cyan); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
hr { border: none; height: 1px; background: var(--border-subtle); margin: 2.5rem 0; }
strong { color: var(--text-bright); font-weight: 600; }
em { color: var(--text-secondary); }


/* ============================================
   HEADER / NAVIGATION — large at top, compact on scroll
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 2rem 3rem;
  transition: all 0.4s var(--ease);
  background: transparent;
}
.site-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.6rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.4s var(--ease);
}
.nav-logo {
  height: 125px;
  width: auto;
  transition: height 0.4s var(--ease);
}
.site-header.scrolled .nav-logo {
  height: 32px;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 400;
  color: var(--cyan);
  transition: all 0.4s var(--ease);
}
.site-header.scrolled .logo-text {
  font-size: 1.2rem;
  color: var(--text-bright);
}
.site-header.scrolled .site-logo {
  gap: 0.75rem;
}

/* Hamburger always visible */
.menu-toggle {
  display: flex;
  background: rgba(30, 40, 60, 0.7);
  border: none;
  cursor: pointer;
  padding: 0.65rem;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  border-radius: 8px;
  transition: all 0.3s var(--ease);
}
.menu-toggle:hover { background: rgba(40, 55, 80, 0.9); }
.hamburger-line {
  width: 26px; height: 2.5px;
  background: var(--cyan);
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}
.menu-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Slide-in nav — individual bars, no panel background */
.main-nav {
  position: fixed;
  /* Anchor near top so the full stack fits on desktop too. */
  top: 1.25rem;
  right: 1.5rem;
  width: 50%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 1000;
  pointer-events: none;
  /* If the menu is taller than the viewport (common on mobile),
     allow scrolling within the menu itself (body scroll is locked when open). */
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  /* CRITICAL: clip children horizontally. The .nav-link items sit at
     transform: translateX(110%) while closed, which puts them ~500px past the
     right edge of the panel. Without overflow-x: hidden here, those translated
     children leak out into the document and trigger the page-wide horizontal
     scrollbar — they bypass html { overflow-x: hidden } in some browsers because
     .main-nav is position: fixed (own containing block).
     Fix: 2026-05-28. */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.main-nav.open { pointer-events: auto; }

/* Each nav link is a sliding bar */
.nav-link {
  display: block;
  /* Slightly more compact by default so the hamburger stack fits without scrolling on laptop screens. */
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--text-bright);
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.03em;
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), background 0.2s;
  border: none;
  border-radius: 0;
  margin-top: -1px;
}

/* Staggered slide-in when menu is open */
.main-nav.open .nav-link {
  transform: translateX(0);
  opacity: 1;
}
.main-nav.open .nav-link:nth-child(1) { transition-delay: 0.03s; }
.main-nav.open .nav-link:nth-child(2) { transition-delay: 0.07s; }
.main-nav.open .nav-link:nth-child(3) { transition-delay: 0.11s; }
.main-nav.open .nav-link:nth-child(4) { transition-delay: 0.15s; }
.main-nav.open .nav-link:nth-child(5) { transition-delay: 0.19s; }
.main-nav.open .nav-link:nth-child(6) { transition-delay: 0.23s; }
.main-nav.open .nav-link:nth-child(7) { transition-delay: 0.27s; }
.main-nav.open .nav-link:nth-child(8) { transition-delay: 0.31s; }
.main-nav.open .nav-link:nth-child(9) { transition-delay: 0.35s; }
/* Utility items at bottom of hamburger menu (divider + Log In). Use classes (not nth-child)
   so this keeps working if the public menu order/length changes. */
.main-nav.open .nav-link-utility { transition-delay: 0.42s; }
.main-nav.open .nav-divider { transition-delay: 0.39s; }

/* Blue-to-cyan gradient across the bars (top = blue, bottom = cyan) */
.nav-link:nth-child(1) { background: rgba(40, 70, 180, 0.85); }
.nav-link:nth-child(2) { background: rgba(30, 80, 190, 0.85); }
.nav-link:nth-child(3) { background: rgba(20, 100, 200, 0.85); }
.nav-link:nth-child(4) { background: rgba(10, 120, 210, 0.85); }
.nav-link:nth-child(5) { background: rgba(0, 140, 210, 0.85); }
.nav-link:nth-child(6) { background: rgba(0, 160, 200, 0.82); }
.nav-link:nth-child(7) { background: rgba(0, 180, 195, 0.80); }
.nav-link:nth-child(8) { background: rgba(0, 200, 190, 0.78); }
.nav-link:nth-child(9) { background: rgba(0, 210, 200, 0.75); }
.nav-link-utility { background: rgba(20, 50, 90, 0.85); }

.nav-link:hover {
  filter: brightness(1.15);
  color: var(--text-bright);
}
.nav-link.active { color: var(--text-bright); }

/* Slide out when closing — reverse stagger */
.main-nav:not(.open) .nav-link:nth-child(9) { transition-delay: 0.01s; }
.main-nav:not(.open) .nav-link:nth-child(8) { transition-delay: 0.04s; }
.main-nav:not(.open) .nav-link:nth-child(7) { transition-delay: 0.07s; }
.main-nav:not(.open) .nav-link:nth-child(6) { transition-delay: 0.10s; }
.main-nav:not(.open) .nav-link:nth-child(5) { transition-delay: 0.13s; }
.main-nav:not(.open) .nav-link:nth-child(4) { transition-delay: 0.16s; }
.main-nav:not(.open) .nav-link:nth-child(3) { transition-delay: 0.19s; }
.main-nav:not(.open) .nav-link:nth-child(2) { transition-delay: 0.22s; }
.main-nav:not(.open) .nav-link:nth-child(1) { transition-delay: 0.25s; }
.main-nav:not(.open) .nav-link-utility { transition-delay: 0s; }

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
body.nav-open { overflow: hidden; }


/* ============================================
   HERO — left-aligned, staggered text, photo right
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(0, 100, 255, 0.12), transparent 55%),
    radial-gradient(ellipse at 20% 60%, rgba(0, 212, 255, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.hero-glow {
  display: none;
}
.hero-photos {
  position: relative;
}
.hero-photos::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(0, 80, 255, 0.35) 0%, rgba(0, 100, 255, 0.18) 35%, rgba(0, 120, 255, 0.06) 55%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 6rem 3rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
}
.hero-text { flex: 1; }
.hero-line {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
}
.hero-line-lg {
  font-family: var(--font-body);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0;
  line-height: 1.15;
}
.hero-line-cyan { color: var(--cyan); }
.hero-line-accent { color: var(--cyan-dim); }
.hero-indent-1 { padding-left: 1.5rem; }
.hero-indent-2 { padding-left: 3rem; }
.hero-spacer {
  font-family: var(--font-heading);
  margin-top: 1.2rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}
.hero-roles {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.hero-role {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.hero-role-dot {
  color: var(--cyan-dim);
  font-size: 1.5rem;
}
.hero-tagline {
  font-weight: 700;
  font-size: 1.85rem;
  color: var(--text-bright);
  margin-top: 1rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.hero-photos {
  flex-shrink: 0;
  width: 460px;
  position: relative;
}
.hero-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
}
.hero-photo-main {
  grid-column: 1 / -1;
}
.hero-photo-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow:
    0 0 30px rgba(0, 100, 255, 0.25),
    0 12px 40px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}
.hero-photo-grid .hero-photo-img:not(.hero-photo-main) {
  height: 160px;
}
.hero-photo-placeholder {
  border-radius: var(--radius);
  border: 2px dashed rgba(101, 244, 244, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  background: rgba(255,255,255,0.02);
}
.hero-photo-placeholder span {
  font-size: 2rem;
  color: rgba(101, 244, 244, 0.3);
  font-weight: 300;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: mountain-bob 2.5s ease-in-out infinite;
  color: var(--cyan);
  opacity: 0.45;
  transition: opacity 0.3s;
}
.hero-scroll-indicator:hover { opacity: 0.85; }
.scroll-mountains {
  width: 70px;
  height: auto;
}
@keyframes mountain-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.hero-text {
  animation: fadeInUp 0.8s var(--ease) 0.2s both;
}
.hero-photos {
  animation: fadeInUp 0.8s var(--ease) 0.5s both;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  text-align: center;
  border: none;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
  color: var(--bg-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,212,255,0.3);
  color: var(--bg-primary);
}
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan-glow);
  color: var(--text-bright);
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--cyan);
  color: var(--bg-primary);
  font-weight: 700;
  border-radius: 100px;
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.35);
  color: var(--bg-primary);
}
.btn-accent i { margin-left: 0.5rem; }

.btn-glass {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-bright);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  color: var(--text-bright);
}


/* ============================================
   PREVIEW CARDS — vivid colored backgrounds
   ============================================ */
.cards-section {
  padding: 3rem 2rem 4rem;
  max-width: var(--wide-width);
  margin: 0 auto;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.preview-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-bright);
  border: none;
}
.preview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.card-about {
  background: linear-gradient(180deg, #1abc9c 0%, #16a085 100%);
}
.card-research {
  background: linear-gradient(180deg, #2c6fbb 0%, #1a4a8a 100%);
}
.card-tutoring {
  background: linear-gradient(180deg, #00c9db 0%, #0099aa 100%);
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: rgba(0,0,0,0.2);
}
.card-video-wrap {
  position: relative;
  overflow: hidden;
}
.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
  color: var(--text-bright);
  font-weight: 600;
  font-family: var(--font-heading);
}
.card-body p {
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}
.card-research .card-body p { color: var(--text-secondary); }

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s var(--ease);
  margin-top: 0.5rem;
}
.card-link i { margin-left: 0.3rem; transition: transform 0.2s var(--ease); }
.preview-card:hover .card-link { color: var(--text-bright); }
.preview-card:hover .card-link i { transform: translateX(4px); }

.preview-card { animation: fadeInUp 0.6s var(--ease) both; }
.preview-card:nth-child(1) { animation-delay: 0.1s; }
.preview-card:nth-child(2) { animation-delay: 0.2s; }
.preview-card:nth-child(3) { animation-delay: 0.3s; }


/* ============================================
   FULL-BLEED PHOTO BANNERS
   ============================================ */
.photo-banner {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.video-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.video-banner-bg::-webkit-media-controls-picture-in-picture-button,
.video-banner-bg::-webkit-media-controls-panel,
.video-banner-bg::-webkit-media-controls {
  display: none !important;
  -webkit-appearance: none;
}
.photo-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}
.photo-banner-text {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
}
.banner-line-1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--text-bright);
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  font-style: italic;
  margin-bottom: 0.5rem;
}
.banner-line-2 {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-bright);
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.banner-big {
  font-size: 3rem;
  font-weight: 800;
}

.spaceship-banner {
  width: 100%;
  max-width: var(--wide-width);
  margin: 2.5rem auto;
  padding: 0 2rem;
  overflow: visible;
}
.spaceship-img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px var(--border-accent),
    0 0 24px rgba(101, 244, 244, 0.18),
    0 0 60px rgba(101, 244, 244, 0.08);
}
.photo-banner-dark {
  min-height: 500px;
  flex-direction: column;
}
.photo-banner-dark .photo-banner-bg {
  opacity: 0.6;
}
.photo-banner-content {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  text-align: center;
  max-width: var(--wide-width);
}
.projects-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}
.project-chip {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.1);
}


/* ============================================
   IN THE NEWS
   ============================================ */
.news-section {
  padding: var(--section-pad) 2rem;
  max-width: var(--wide-width);
  margin: 0 auto;
}
.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.section-title-light { color: var(--text-bright); }
.section-cta { text-align: center; margin-top: 2.5rem; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-card {
  background: var(--text-bright);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: #333;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  color: #333;
}
.news-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
}
.news-body {
  padding: 1rem;
  flex: 1;
}
.news-source {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.35rem;
}
.news-body h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  line-height: 1.35;
  margin: 0 0 0.4rem;
}
.news-body p {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}


/* ============================================
   PHOTO STRIP — horizontal life photos
   ============================================ */
.photo-strip {
  padding: 1rem 0;
  overflow: hidden;
  background: var(--bg-primary);
}
.photo-strip-inner {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0 2rem;
  max-width: var(--wide-width);
  margin: 0 auto;
}
.strip-photo {
  flex: 1;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  filter: brightness(0.85);
  transition: all 0.4s var(--ease);
}
.strip-photo:hover {
  filter: brightness(1);
  transform: scale(1.03);
  z-index: 1;
}


/* ============================================
   WRITING SECTION
   ============================================ */
.writing-section {
  padding: var(--section-pad) 2rem;
  max-width: var(--wide-width);
  margin: 0 auto;
}
.writing-inner {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.writing-photos { flex: 0 0 280px; }
.writing-photo-left {
  width: 100%;
  border-radius: var(--radius);
}
.writing-content { flex: 1; }
.writing-content h2 {
  margin-top: 0;
  font-size: 2.25rem;
}
.writing-cards {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.writing-card {
  position: relative;
  width: 170px;
  height: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transition: all 0.35s var(--ease);
  text-decoration: none;
  display: block;
}
.writing-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 0 25px rgba(101, 244, 244, 0.3),
    0 15px 40px rgba(0,0,0,0.4);
}
.writing-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.writing-card:hover .writing-card-img {
  transform: scale(1.08);
}
.writing-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  transition: background 0.3s var(--ease);
}
.writing-card:hover .writing-card-overlay {
  background: linear-gradient(180deg, rgba(0,80,120,0.3) 0%, rgba(0,0,0,0.9) 100%);
}
.writing-card-overlay h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-bright);
  margin: 0 0 0.2rem;
  line-height: 1.2;
}
.writing-card-overlay p {
  font-size: 0.75rem;
  color: var(--cyan);
  margin: 0;
  font-weight: 600;
}

.feature-quote {
  text-align: center;
  max-width: 700px;
  margin: 3rem auto;
  background: none;
  border: none;
  padding: 0;
}
.feature-quote p {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
}
.feature-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: normal;
}


/* ============================================
   AUTHOR CARD
   ============================================ */
.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(30, 30, 30, 0.8);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  max-width: 280px;
  margin: 2rem auto;
}
.author-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.author-logo { width: 20px; height: auto; }
.author-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--cyan);
  font-weight: 400;
}


/* ============================================
   CTA — STARFIELD + FROSTED GLASS BUTTONS
   ============================================ */
.cta-starfield {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cta-starfield .photo-banner-bg {
  opacity: 1;
}
/* Subtle vignette so the tagline lifts off the starfield without darkening the edges into a hard box */
.cta-starfield::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(10, 18, 36, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}
.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 900px;
}
.cta-tagline {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-bright);
  margin-bottom: 3rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
  line-height: 1.3;
}
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================
   PAGE HERO (Subpages)
   ============================================ */
.page-hero {
  position: relative;
  padding: 8rem 2rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.06), transparent 70%),
    linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: url('/images/page-hero-bg.jpg') center/cover no-repeat;
  opacity: 0.08;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-content h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--text-bright), var(--cyan-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.page-content { padding: var(--section-pad) 2rem; }
.content-wrapper { max-width: var(--content-width); margin: 0 auto; }
.page-content h2 { padding-bottom: 0.5rem; border-bottom: 2px solid var(--border-accent); }
.page-content h3 { color: var(--cyan); }

.page-cta {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}
.page-cta p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 1.5rem; }


/* ============================================
   BLOG POST CARDS
   ============================================ */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s var(--ease);
}
.post-card:hover { border-color: var(--border-accent); background: var(--bg-card-hover); }
.post-card h2 { font-size: 1.4rem; margin-top: 0; border: none; padding: 0; }
.post-card h2 a { color: var(--text-bright); }
.post-card h2 a:hover { color: var(--cyan); }
.post-card time { font-size: 0.85rem; color: var(--text-muted); }
.post-card p { color: var(--text-secondary); margin-top: 0.75rem; }


/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--bg-footer); padding: 3rem 2rem 2rem; }
.footer-rule {
  max-width: var(--wide-width);
  margin: 0 auto 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
}
.footer-inner { max-width: var(--wide-width); margin: 0 auto; text-align: center; }
.footer-icons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-icon {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all 0.2s var(--ease);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
}
.footer-icon:hover {
  color: var(--cyan);
  border-color: var(--border-accent);
  background: var(--cyan-glow);
  transform: translateY(-2px);
}
.footer-text { color: var(--text-muted); font-size: 0.85rem; }
.footer-text p { margin-bottom: 0.3rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--cyan); }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .cards-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { flex-direction: column; text-align: center; padding: 6rem 2rem 2rem; }
  .hero-header { justify-content: center; }
  .hero-indent-1 { padding-left: 0; }
  .hero-indent-2 { padding-left: 0; }
  .hero-roles { justify-content: center; }
  .hero-tagline { margin-bottom: 0.5rem; }
  .hero-photos { width: 340px; margin-top: 1rem; }
  .writing-inner { flex-direction: column; }
  .writing-photos { flex: none; width: 100%; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-line { font-size: 1.2rem; }
  .hero-line-lg { font-size: 2rem; }
  .hero-role { font-size: 1.2rem; }
  .hero-role-dot { font-size: 1.2rem; }
  .hero-tagline { font-size: 1.3rem; }
  .hero-photos { width: 280px; }
  .hero-photo-grid .hero-photo-img:not(.hero-photo-main) { height: 120px; }
  .hero-photo-placeholder { height: 120px; }
  .page-hero-content h1 { font-size: 2.25rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .cards-grid, .news-grid { grid-template-columns: 1fr; }
  .banner-line-1 { font-size: 1.8rem; }
  .banner-line-2 { font-size: 1.4rem; }
  .banner-big { font-size: 2.2rem; }
  .cta-tagline { font-size: 1.4rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .site-header { padding: 1rem 1.25rem; }
  .site-header.scrolled { padding: 0.65rem 1.25rem; }
  .nav-logo { height: 40px; }
  .logo-text { font-size: 1.3rem; }
  .main-nav { width: 75%; top: 4.4rem; max-height: calc(100vh - 5.1rem); }
  .nav-link { font-size: 0.92rem; padding: 0.62rem 1.25rem; }
  .nav-divider { margin: 0.45rem 1.25rem; }
  .nav-link-utility { font-size: 0.86rem; }
  .page-content, .cards-section, .news-section, .writing-section { padding: 3rem 1.25rem; }
  .page-hero { padding: 6rem 1.25rem 3rem; }
  .footer-icons { gap: 0.75rem; }
  .writing-cards { flex-direction: column; align-items: center; }
  .writing-card { width: 200px; height: 280px; }
  .photo-strip-inner { gap: 0.5rem; padding: 0 1rem; }
  .strip-photo { height: 150px; }
}

@media (max-width: 480px) {
  .hero-line-lg { font-size: 1.8rem; }
  .hero-role { font-size: 1.05rem; }
  .hero-role-dot { font-size: 1.05rem; }
  .hero-photos { width: 220px; }
  .hero-photo-grid { grid-template-columns: 1fr; }
  .hero-photo-grid .hero-photo-img:not(.hero-photo-main) { height: auto; }
  .hero-photo-placeholder { height: 100px; }
  .btn-glass { width: 100%; max-width: 280px; }
  .main-nav { width: 82%; top: 4.2rem; max-height: calc(100vh - 4.8rem); }
  .nav-link { font-size: 0.88rem; padding: 0.56rem 1rem; letter-spacing: 0.02em; }
  .nav-divider { margin: 0.35rem 1rem; }
  .nav-link-utility { font-size: 0.82rem; }
}


/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

::selection { background: rgba(0,212,255,0.25); color: var(--text-bright); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Cool-treated photo banner (mountains between Writing and CTA-starfield).
   Desaturates, slightly darkens, and shifts hue toward cyan to match the site palette. */
.photo-banner-cool .photo-banner-bg {
  filter: saturate(0.55) brightness(0.72) hue-rotate(-8deg) contrast(0.95);
}
.photo-banner-cool::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(17, 29, 48, 0.35) 0%,
    rgba(22, 37, 66, 0.45) 50%,
    rgba(17, 29, 48, 0.55) 100%);
  pointer-events: none;
}

/* ============================================
   Vertical banners — redwoods (writing-section left) + drone (Projects right)
   ============================================ */

/* Writing section, redwoods variant — pulled inside the page container,
   rounded corners, cyan glow to match the site's other imagery. */
.writing-section-bleed {
  max-width: var(--wide-width);
  padding: var(--section-pad) 2rem;
  margin: 0 auto;
}
.writing-section-bleed .writing-inner {
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
  min-height: 60vh;
}
.writing-section-bleed .writing-photos-bleed {
  flex: 0 0 32%;
  overflow: visible;
  border-radius: var(--radius);
}
.writing-section-bleed .writing-photos-bleed .writing-photo-left {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow:
    0 0 0 1px var(--border-accent),
    0 0 24px rgba(101, 244, 244, 0.18),
    0 0 60px rgba(101, 244, 244, 0.08);
}
.writing-section-bleed .writing-content {
  padding: 0;
  max-width: none;
}

/* Projects banner with vertical drone image on the right.
   The image floats over the right third of the existing photo-banner. */
.photo-banner-with-vertical {
  position: relative;
  overflow: hidden;
}
.photo-banner-with-vertical .photo-banner-content {
  /* leave room on the right so text doesn't sit under the vertical image */
  padding-right: calc(33% + 2rem);
}
.vertical-banner-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 33%;
  z-index: 2;
  overflow: hidden;
}
.vertical-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Placeholder state — applied when the drone image is missing (onerror in HTML). */
.vertical-banner-placeholder {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-secondary));
  border-left: 1px solid var(--border-subtle);
}
.vertical-banner-placeholder::after {
  content: "Drone survey — image coming";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Drone-survey banner — transparent PNG, full silhouette visible (contain not cover).
   Hotspot positions are percentages of the image box itself. */
.drone-survey-banner { display: flex; align-items: center; justify-content: center; }
.drone-survey-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  /* Blue glow following the silhouette — uses drop-shadow so it traces the alpha channel,
     not a rectangular box. Stacked shadows = denser, more luminous halo. The river is now
     hard-edged (mask traced from Ethan's pink boundary annotation), so the glow does the
     visual lifting against the navy background. */
  filter:
    drop-shadow(0 0 8px rgba(70, 150, 255, 0.70))
    drop-shadow(0 0 22px rgba(50, 130, 255, 0.45))
    drop-shadow(0 0 50px rgba(40, 110, 240, 0.28))
    drop-shadow(0 0 90px rgba(30, 90, 220, 0.18));
}

.drone-hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;            /* center on the (top,left) anchor */
  border: 2px solid var(--cyan);
  background: rgba(17, 29, 48, 0.85); /* solid navy fill so the number reads on any image area */
  color: var(--cyan);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  z-index: 3;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(101, 244, 244, 0.45);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.drone-hotspot::before {
  content: attr(data-number);
}
.drone-hotspot:hover,
.drone-hotspot:focus-visible {
  background: var(--cyan);
  color: var(--bg-primary);
  transform: scale(1.15);
  box-shadow: 0 0 24px rgba(101, 244, 244, 0.75);
  outline: none;
}
/* Gentle attention pulse so users notice the markers exist */
@keyframes drone-hotspot-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(101, 244, 244, 0.45); }
  50%      { box-shadow: 0 0 24px rgba(101, 244, 244, 0.85); }
}
.drone-hotspot {
  animation: drone-hotspot-pulse 2.4s ease-in-out infinite;
}
.drone-hotspot:hover,
.drone-hotspot:focus-visible {
  animation: none;
}

.drone-tooltip {
  position: absolute;
  z-index: 4;
  max-width: 240px;
  padding: 0.75rem 1rem;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.drone-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.drone-tooltip-label {
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}
.drone-tooltip-blurb { color: var(--text-secondary); }

@media (max-width: 900px) {
  .drone-hotspot { width: 28px; height: 28px; margin: -14px 0 0 -14px; font-size: 0.75rem; }
  .drone-tooltip { max-width: 200px; font-size: 0.8rem; }
}

/* ============================================
   "What I Do in the World" — discovery map
   ============================================ */
.projects-discovery {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 5rem 0 6rem;
}
.projects-discovery .photo-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.85;
}
.projects-discovery::before {
  /* subtle vignette so the centerpiece reads off the stars */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(10, 18, 36, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.projects-discovery-content {
  position: relative;
  z-index: 2;
  /* Widened beyond --wide-width (1200px) so the discovery map can breathe.
     The section title and intro paragraph have their own narrower max-widths,
     so widening here only affects the map zone and life photos. */
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
.projects-discovery-intro {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0.5rem auto 2.5rem;
}

/* Constellation zone removed 2026-05-29 — interests are now map-anchored geo-node
   pins (see index.html). The shared .node-icon / .node-label rules below still
   apply to .geo-node. */

/* Geographic map zone — wide track, hidden scrollbar, pan on Spokes expand */
.geo-map-zone {
  /* Full-bleed centerpiece map — 80vh, edge-to-edge, the homepage's main canvas.
     2026-05-29 rebuild: map is now the central interactive feature of the homepage,
     not a sidebar. Always pan-and-zoom enabled (drag + wheel + pinch). */
  position: relative;
  height: 80vh;
  min-height: 540px;
  /* Escape the parent's max-width by using a 100vw trick. The section's content
     wrapper has padding; we punch through it so the map fills the viewport edge to edge. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 2rem;
  overflow: hidden;
  /* Ocean-depth radial — lifted navy in the upper-center, deepening toward the
     edges so the full-bleed map reads as a physical globe surface rather than a
     flat chart (task #3, 2026-05-30). */
  background:
    radial-gradient(140% 120% at 50% 32%, #16294a 0%, #0e1b30 62%, #0a1422 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  cursor: grab;
}
.geo-map-zone.is-panning { cursor: grabbing; }
/* Legacy route-expanded class kept as no-op so the existing JS selector check
   doesn't error. Pan/zoom is always on now; there's no "expanded" state. */
.geo-map-zone.is-route-expanded { }

/* Reset-view control — bottom-right corner of the map. Map-control aesthetic. */
.geo-map-reset {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: rgba(17, 29, 48, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.geo-map-reset:hover, .geo-map-reset:focus-visible {
  background: rgba(24, 40, 60, 0.95);
  color: var(--text-bright);
  border-color: var(--cyan);
  outline: none;
}

/* Old scroll hint no longer applies — pan/zoom is always on. */
.geo-map-scroll-hint { display: none; }
.geo-map-scroll-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 0.65rem;
  text-align: center;
}
.geo-map-zone.is-route-expanded .geo-map-scroll-hint {
  color: var(--cyan-dim);
}
.geo-map-scroller {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: none;
}
/* Hide the oversized pre-camera frame until JS frames the western US view. */
.geo-map-zone:not(.is-map-ready) .geo-map-track {
  opacity: 0;
  pointer-events: none;
}
.geo-map-zone.is-map-ready .geo-map-track {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s var(--ease);
}
.geo-map-zone:not(.is-route-expanded) .geo-map-scroller {
  cursor: default;
}
.geo-map-zone.is-route-expanded .geo-map-scroller {
  cursor: ew-resize;
}
.geo-map-track {
  /* Pannable canvas — one world image at equirectangular aspect. Pan/zoom is
     transform-only (no oversized CSS width that flashes as a giant tile). */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 2754 / 1398;
  height: auto;
  will-change: transform;
  transform-origin: 0 0;
  transition: transform 0s linear;
}
/* When the JS triggers a 'fly to' animation, swap to an easing transition. */
.geo-map-track.is-animating {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* World coastline backdrop — faint cyan tracing on the navy canvas.
   Wikimedia BlankMap-World.svg ships with #c0c0c0 fills and white strokes.
   Filter chain inverts to dark, recolors via hue-rotate / sepia tricks,
   and drops opacity so it reads as ghosted geography behind the pins. */
.geo-world-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  /* Convert the gray landmasses into a faint cyan tracing.
     invert → light becomes dark; sepia + hue-rotate biases to cyan;
     opacity dims the whole thing. */
  filter: invert(0.92) sepia(0.55) hue-rotate(140deg) saturate(2.2) brightness(0.85);
  opacity: 0.32;
}

/* ── SVG mountain-relief layer (task #3, 2026-05-30) ──────────────────────────
   Inline <svg class="geo-terrain"> lives INSIDE .geo-map-track, so it is scaled
   by the camera and stays locked to the coastlines + calibrated pins. Peaks are
   placed via the same CAL affine the pins use (see outputs/gen_terrain.py).
   Decorative physical relief — tune brightness/scale here; geometry is regenerable. */
.geo-terrain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;                 /* above the ghosted world img, below the pins (z-3) */
  opacity: 0.9;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.5))
          drop-shadow(0 0 5px rgba(101, 244, 244, 0.18));
}
.geo-terrain .gp { fill: #2c5273; }                  /* lit rock face — navy slate */
.geo-terrain .gd { fill: #122236; }                  /* shaded lee face — darker   */
.geo-terrain .gs { fill: #a9ecf3; opacity: 0.95; }   /* snow cap — cyan-white      */

/* Globe-like atmospheric framing — ocean vignette (limb darkening) + a faint
   cyan atmospheric bloom. Above the map/mountains, below the pins, never blocks
   clicks. (task #3, 2026-05-30) */
.geo-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(120% 95% at 50% 42%, transparent 52%, rgba(7, 13, 26, 0.62) 100%),
    radial-gradient(70% 60% at 50% 46%, rgba(101, 244, 244, 0.06), transparent 65%);
}

.geo-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.geo-landmass-east,
.geo-label-east {
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.geo-map-zone.is-route-expanded .geo-landmass-east,
.geo-map-zone.is-route-expanded .geo-label-east {
  opacity: 1;
}
.geo-spokes-route-full {
  opacity: 0.45;
  transition: opacity 0.45s var(--ease);
}
.geo-map-zone.is-route-expanded .geo-spokes-route-full {
  opacity: 0.85;
}
.geo-map-zone.is-route-expanded .geo-spokes-continuation {
  opacity: 0;
}
.panel-spokes-route-btn {
  display: block;
  width: 100%;
  margin: 0 0 1.25rem;
  text-align: center;
}
.geo-landmass {
  fill: rgba(24, 40, 60, 0.55);
  stroke: rgba(101, 244, 244, 0.30);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 18px rgba(101, 244, 244, 0.12));
}
.geo-water {
  fill: rgba(10, 18, 36, 0.85);
  stroke: rgba(101, 244, 244, 0.15);
  stroke-width: 1;
}
.geo-ridge {
  fill: none;
  stroke: rgba(101, 244, 244, 0.45);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.geo-spokes-route {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  opacity: 0.7;
}
.geo-spokes-continuation { opacity: 0.3; }
.geo-label {
  fill: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.geo-route-label {
  fill: var(--cyan);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Pin overlay — sibling of .geo-map-track inside .geo-map-scroller.
   Does NOT receive the camera transform; JS positions each pin in pixel
   space on every camera update. Keeps pins constant-size at all zoom levels.
   Added 2026-05-29. */
.geo-pin-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;  /* pins themselves re-enable below */
  z-index: 3;
}
.geo-pin-overlay .geo-node {
  pointer-events: auto;
}

/* Node styling — applies to the map's .geo-node pins */
.geo-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 3;
  color: var(--text-bright);
  font-family: var(--font-body);
  transition: transform 0.25s var(--ease);
}
.geo-node:hover,
.geo-node:focus-visible {
  transform: translate(-50%, -50%) scale(1.12);
  outline: none;
}
.geo-node {
  /* Anchor by center so positioning percents read more intuitively */
  transform: translate(-50%, -50%);
}
.node-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(17, 29, 48, 0.85);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 14px rgba(101, 244, 244, 0.4);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.geo-node:hover .node-icon,
.geo-node:focus-visible .node-icon {
  background: var(--cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 28px rgba(101, 244, 244, 0.75);
}
.node-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-bright);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
  /* Hidden by default. Show on hover/focus only so pins don't pile up labels
     when they're geographically clustered (Bay Area pins are within a degree
     of longitude of each other on a world map). 2026-05-29 fix. */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease);
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 18, 36, 0.92);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-accent);
  z-index: 4;
}
.geo-node:hover .node-label,
.geo-node:focus-visible .node-label {
  opacity: 1;
}
/* Gentle pulse so nodes invite exploration */
@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(101, 244, 244, 0.40); }
  50%      { box-shadow: 0 0 22px rgba(101, 244, 244, 0.70); }
}
.node-icon { animation: node-pulse 3s ease-in-out infinite; }
.geo-node:hover .node-icon { animation: none; }

/* Spokes route node is special — sits on the route line, smaller, dashed border */
.geo-node-route .node-icon {
  border-style: dashed;
  background: rgba(10, 18, 36, 0.95);
}

/* World-map pins: small relative to geography (full-world track ≈ 1200px wide;
   the western US is only ~7% of that — a 44px icon reads as continent-sized). */
.geo-map-zone .geo-node {
  gap: 0.1rem;
  padding: 0;
  /* Invisible hit target larger than the visible dot for clicking. */
  min-width: 20px;
  min-height: 20px;
}
.geo-map-zone .node-icon {
  width: 10px;
  height: 10px;
  border-width: 1px;
  font-size: 0.32rem;
  box-shadow: 0 0 4px rgba(101, 244, 244, 0.45);
  animation: geo-node-pulse 3s ease-in-out infinite;
}
.geo-map-zone .geo-node-route .node-icon {
  width: 11px;
  height: 11px;
  font-size: 0.35rem;
}
.geo-map-zone .node-label {
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  opacity: 0;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s var(--ease);
}
.geo-map-zone .geo-node:hover .node-label,
.geo-map-zone .geo-node:focus-visible .node-label {
  opacity: 1;
}
@keyframes geo-node-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(101, 244, 244, 0.4); }
  50%      { box-shadow: 0 0 7px rgba(101, 244, 244, 0.65); }
}
.geo-map-zone .geo-node:hover .node-icon,
.geo-map-zone .geo-node:focus-visible .node-icon {
  animation: none;
  box-shadow: 0 0 8px rgba(101, 244, 244, 0.75);
}

.projects-discovery-cta {
  margin-top: 1.5rem;
}

/* Discovery slide-in sidebar removed 2026-05-28.
   The .discovery-panel + .discovery-panel-close + .discovery-panel-title +
   .discovery-panel-blurb rules previously here have been archived to
   _docs/_archive/discovery-sidebar-removed-2026-05-28.md.
   The .discovery-panel-title and .discovery-panel-blurb class names are
   STILL referenced by the existing renderNode() JS in index.html — we keep
   minimal styling for them so the inline content well renders correctly. */
.discovery-panel-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-bright);
  margin: 0 0 0.5rem;
}
.discovery-panel-blurb {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Inline content well — appears anchored over the clicked pin.
   Replaces the slide-in sidebar 2026-05-28. */
.geo-content-well {
  position: absolute;
  z-index: 50;
  background: rgba(15, 31, 58, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--cyan);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 24px var(--cyan-glow);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
  max-width: 480px;
  max-height: 70vh;
  overflow-y: auto;
}
.geo-content-well[hidden] { display: none; }
.geo-content-well-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(17, 29, 48, 0.85);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.geo-content-well-close:hover {
  color: var(--cyan);
  border-color: var(--border-accent);
}
.discovery-satellites {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.discovery-satellites li {
  margin-bottom: 0.5rem;
}
.satellite-link, .satellite-leaf {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  background: rgba(17, 29, 48, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-body);
  text-align: left;
  width: 100%;
  cursor: default;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.satellite-link {
  cursor: pointer;
}
.satellite-link:hover, .satellite-link:focus-visible {
  border-color: var(--border-accent);
  background: rgba(24, 40, 60, 0.85);
  color: var(--text-bright);
  outline: none;
}
.satellite-link strong, .satellite-leaf strong {
  color: var(--text-bright);
  font-size: 0.95rem;
}
.satellite-link span, .satellite-leaf span {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}
.satellite-deeper {
  align-self: flex-end;
  color: var(--cyan);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.panel-cta {
  margin-top: 0.5rem;
}

/* Snow Creek mosaic rendered inside the panel — its own layout context */
.panel-mosaic-wrap {
  position: relative;
  margin: 0 auto 1.5rem;
  max-width: 100%;
}
.panel-mosaic-img {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 6px rgba(70, 150, 255, 0.60))
    drop-shadow(0 0 18px rgba(50, 130, 255, 0.35))
    drop-shadow(0 0 40px rgba(40, 110, 240, 0.20));
}
.panel-mosaic-caption {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(17, 29, 48, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  min-height: 3rem;
}
.panel-mosaic-caption.visible { opacity: 1; }
.panel-mosaic-caption .caption-label {
  display: block;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
}
.panel-mosaic-caption .caption-blurb {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Responsive: stack zones and shrink nodes on narrow screens */
@media (max-width: 900px) {
  .projects-discovery { padding: 3rem 0 4rem; min-height: 0; }
  /* Constellation zone is display:none above so no height needed. */
  .geo-map-zone { height: 70vh; min-height: 460px; }
  .geo-map-zone .node-icon { width: 8px; height: 8px; font-size: 0.28rem; }
  .geo-map-zone .geo-node-route .node-icon { width: 9px; height: 9px; }
  /* Content well: on narrow screens it goes full-width and sits below the map. */
  .geo-content-well {
    left: 1rem !important;
    right: 1rem;
    width: auto !important;
    max-width: none;
  }
}
@media (max-width: 600px) {
  .geo-map-zone { height: 65vh; min-height: 420px; }
  .geo-map-zone .geo-node { min-width: 32px; min-height: 32px; }
}

/* ============================================
   Contact form (on /contact/)
   ============================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 600px;
  margin: 2rem 0;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-field label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  background: rgba(17, 29, 48, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(24, 40, 60, 0.85);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.contact-submit { align-self: flex-start; }
.contact-submit.sending {
  opacity: 0.7;
  cursor: wait;
}
.contact-status {
  margin: 0;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  min-height: 1.4rem;
}
.contact-status.success { color: var(--cyan); }
.contact-status.error   { color: #ff8a80; }

/* Nav utility section — divider + Log In link inside the hamburger panel.
   These items intentionally appear only in the slide-out hamburger menu, not on desktop nav,
   so casual visitors don't notice the gated section. */
.nav-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 1rem 1.5rem;
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.main-nav.open .nav-divider {
  transform: translateX(0);
  opacity: 1;
}
.nav-link-utility {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-bright);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.nav-link-utility:hover {
  color: var(--cyan);
}
.nav-link-utility i {
  font-size: 0.85em;
  opacity: 0.7;
}

/* Responsive: stack vertical banners below content on narrow screens */
@media (max-width: 900px) {
  .writing-section-bleed .writing-inner {
    flex-direction: column;
    min-height: 0;
  }
  .writing-section-bleed .writing-photos-bleed {
    flex: none;
    width: 100%;
    height: 35vh;
  }
  .writing-section-bleed .writing-content {
    max-width: none;
    padding: 0;
  }
  .photo-banner-with-vertical .photo-banner-content {
    padding-right: 2rem;
    padding-bottom: calc(40vh + 2rem);
  }
  .vertical-banner-right {
    width: 100%;
    height: 40vh;
    top: auto;
    bottom: 0;
  }
}

/* ============================================================
   Per-student tutoring pages — /students/<name>/
   Layout: themes/ethan-theme/layouts/students/single.html
   Pattern mirrors the Canva "Hi, Ben!" / "Hi, Carson!" pages.
   ============================================================ */

.student-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Greeting strip */
.student-greeting {
  padding: 3rem 0 1rem;
}
.student-greeting-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.student-logo-mark {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.student-hi {
  font-size: 3rem;
  margin: 0;
  color: var(--text-bright);
  letter-spacing: -0.5px;
}
.student-subject-line {
  width: 100%;
  margin: 0.75rem 0 0 calc(64px + 1.25rem);
  color: var(--cyan-dim);
  font-style: italic;
  font-size: 1.1rem;
}

/* Section scaffolding */
.student-section {
  padding: 2.5rem 0;
}
.student-section-title {
  margin-top: 0;
}
.student-section-intro {
  color: var(--text-secondary);
  max-width: 60ch;
}
.student-encouragement {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Session Mastery Packet tiles */
.packet-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 0;
}
.packet-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.packet-tile:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: var(--cyan);
  box-shadow: 0 8px 24px var(--cyan-glow);
  color: var(--text-bright);
}
.packet-tile-placeholder {
  opacity: 0.7;
  pointer-events: none;
}
.packet-tile-placeholder:hover {
  transform: none;
}
.packet-tile-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  font-size: 1.5rem;
}
.packet-tile-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  color: var(--text-bright);
}
.packet-tile-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
}
.packet-tile-arrow {
  color: var(--cyan);
  font-size: 1rem;
}

/* Resource subtopics */
.resource-subtopic {
  margin-top: 2rem;
}
.resource-subtopic-title {
  margin-top: 0;
  color: var(--cyan-dim);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}
.resource-subtopic-intro {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.resource-item {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
              background 0.2s var(--ease);
}
.resource-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan);
  transform: translateY(-2px);
  color: var(--text-bright);
}
.resource-thumb {
  width: 100px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-secondary);
  flex-shrink: 0;
}
.resource-thumb-icon {
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 1.5rem;
}
.resource-body {
  padding: 0.75rem 1rem;
  flex: 1;
}
.resource-body h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--text-bright);
}
.resource-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

.resource-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  color: var(--text-secondary);
}
.resource-placeholder p {
  margin: 0;
}

.student-freeform {
  margin-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
}

/* Goal card */
.goal-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: 0 0 32px var(--cyan-glow);
  position: relative;
}
.goal-card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.goal-card-target {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  color: var(--text-bright);
}
.goal-card-deadline {
  color: var(--cyan-dim);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.goal-card-deadline i {
  margin-right: 0.4rem;
}
.goal-card-status {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.6;
}
.goal-card-status-label {
  color: var(--cyan);
  font-weight: bold;
  margin-right: 0.4rem;
}
.goal-card-updated {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Progress timeline */
.timeline {
  position: relative;
  padding: 1.5rem 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-dim) transparent;
}
.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-accent);
  transform: translateY(-50%);
  z-index: 0;
}
.timeline-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  gap: 1.5rem;
  min-width: max-content;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
  padding: 0 0.5rem;
  flex: 1 0 auto;
  max-width: 180px;
}
.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-accent);
  transition: all 0.25s var(--ease);
}
.timeline-step-done .timeline-dot {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}
.timeline-step-current .timeline-dot {
  background: var(--bg-primary);
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan), inset 0 0 6px var(--cyan);
  animation: timeline-pulse 2s infinite ease-in-out;
}
@keyframes timeline-pulse {
  0%, 100% { box-shadow: 0 0 16px var(--cyan), inset 0 0 6px var(--cyan); }
  50%      { box-shadow: 0 0 22px var(--cyan), inset 0 0 8px var(--cyan); }
}
.timeline-step-upcoming .timeline-dot {
  background: transparent;
  border-style: dashed;
}
.timeline-step-body {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.timeline-step-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.timeline-step-label {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.timeline-step-current .timeline-step-label {
  color: var(--text-bright);
  font-weight: bold;
}
.timeline-step-upcoming .timeline-step-label {
  color: var(--text-secondary);
}

/* Topic progress bars */
.topic-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.topic-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.topic-row:last-child {
  border-bottom: none;
}
.topic-name {
  color: var(--text-bright);
  font-size: 1.05rem;
}
.topic-bar {
  display: inline-flex;
  gap: 4px;
}
.topic-bar-seg {
  width: 28px;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 2px;
}
.topic-bar-seg-filled {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan-glow);
}
.topic-row-mastered .topic-bar-seg-filled {
  background: var(--teal);
  box-shadow: 0 0 8px rgba(0, 191, 165, 0.4);
}
.topic-level-label {
  font-size: 0.85rem;
  color: var(--cyan-dim);
  text-transform: capitalize;
  letter-spacing: 0.5px;
  min-width: 90px;
  text-align: right;
}
.topic-row-mastered .topic-level-label {
  color: var(--green-card);
}
.topic-note {
  grid-column: 1 / -1;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.25rem;
  font-style: italic;
}
.topic-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.topic-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.topic-legend-item .topic-bar-seg {
  width: 14px;
}

/* Check-in card */
.checkin-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}
.checkin-card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--bg-secondary);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 1.5rem;
}
.checkin-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--text-bright);
}
.checkin-card-body p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.checkin-card-body .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 700px) {
  .student-hi { font-size: 2.25rem; }
  .student-logo-mark { width: 48px; height: 48px; }
  .student-subject-line { margin-left: 0; }
  .packet-tiles { grid-template-columns: 1fr; }
  .packet-tile { grid-template-columns: auto 1fr; padding: 1.25rem; }
  .packet-tile-arrow { display: none; }

  .goal-card { padding: 1.5rem 1.25rem; }
  .goal-card-target { font-size: 1.35rem; }

  .topic-row {
    grid-template-columns: 1fr auto;
  }
  .topic-level-label {
    grid-column: 2;
    min-width: auto;
  }
  .topic-bar {
    grid-column: 1 / -1;
  }

  .checkin-card { grid-template-columns: 1fr; gap: 1rem; text-align: left; }
  .checkin-card-icon { width: 48px; height: 48px; }
}

/* ============================================================
   Discovery section additions (2026-05-28):
   - Life photos moved here from standalone .photo-strip
   - "I tell stories" umbrella replaces old Writing section
   ============================================================ */

/* Life-photos row inside the discovery section.
   Three thumbnails sit between the intro line and the map zone. */
.discovery-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}
.discovery-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.discovery-photo:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 10px 28px var(--cyan-glow);
}

/* "I tell stories" — restructured Writing section.
   Shares the existing .writing-section-bleed background treatment for the
   redwoods photo on the left. */
.stories-section {
  position: relative;
  padding: var(--section-pad) 0 calc(var(--section-pad) * 0.7);
  background: var(--bg-primary);
}
.stories-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 2rem;
  align-items: start;
}
.stories-content {
  max-width: 760px;
}
.stories-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  color: var(--text-bright);
  margin: 0 0 1rem;
  letter-spacing: -0.5px;
}
.stories-manifesto {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 2rem;
  max-width: 60ch;
}

/* Form chips — click-targets for each storytelling form. */
.stories-chips {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.stories-chip {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: rgba(101, 244, 244, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.stories-chip:hover, .stories-chip:focus-visible {
  background: rgba(101, 244, 244, 0.18);
  border-color: var(--cyan);
  color: var(--text-bright);
  transform: translateY(-1px);
  outline: none;
}

/* Bucket titles (Favorites / Recents) */
.stories-bucket-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--cyan-dim);
  margin: 2rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.5px;
}

/* Recents bucket — a light "latest" feed. Favorites carry the artwork;
   Recents stays text-forward so rows can be added without images. */
.stories-recents {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.stories-recent {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--border-accent);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.stories-recent:hover {
  border-left-color: var(--cyan);
  transform: translateX(2px);
}
.stories-recent-form {
  flex: 0 0 auto;
  min-width: 5.5rem;
  padding-top: 0.15rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan-dim);
}
.stories-recent-body { flex: 1 1 auto; }
.stories-recent-title {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-bright);
  text-decoration: none;
}
.stories-recent-title:hover { color: var(--cyan); }
.stories-recent-meta {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .stories-inner { grid-template-columns: 1fr; gap: 2rem; }
  .stories-title { font-size: 2.5rem; }
  .stories-manifesto { font-size: 1rem; }
  .discovery-photo-strip { gap: 0.5rem; padding: 0 1.25rem; }
}
@media (max-width: 600px) {
  .discovery-photo-strip { grid-template-columns: 1fr; max-width: 320px; }
  .stories-chips { gap: 0.4rem; }
  .stories-chip { font-size: 0.85rem; padding: 0.35rem 0.85rem; }
  .stories-recent { flex-direction: column; gap: 0.35rem; }
  .stories-recent-form { padding-top: 0; }
}


/* ============================================================================
   Article-well pin styles (ported 2026-05-30 from _docs/discovery-well-preview.html,
   approved). Turns the clicked-pin content well (#geo-content-well) into a
   wikipedia-article-style CENTERED MODAL + scrim. The structural rules here are
   ID-prefixed (#geo-content-well.aw-well) so they override the older anchored
   .geo-content-well positioning without deleting it. Source/look: the preview.
   Var mapping: preview --bg/--bg2/--card/--bright/--text -> live --bg-primary/
   --bg-secondary/--bg-card/--text-bright/--text-primary; --cyan/--teal unchanged;
   no live "muted" var so --aw-muted defined locally. Well bg keeps the preview's
   literal rgba(15,31,58,.96) to match the approved look exactly.
   ============================================================================ */
:root{
  --aw-spring:cubic-bezier(.34,1.56,.64,1);
  --aw-ease:cubic-bezier(.2,.8,.2,1);
  --aw-muted:#8aa6c0;
  --aw-border:rgba(101,244,244,0.18);
  --aw-border2:rgba(101,244,244,0.55);
}

/* ---------- scrim ---------- */
.geo-scrim{position:fixed;inset:0;background:rgba(8,16,30,.55);opacity:0;pointer-events:none;
  transition:opacity .42s var(--aw-ease);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);z-index:9998;}
.geo-scrim.is-open{opacity:1;pointer-events:auto;}

/* ---------- article well (structural override of the anchored .geo-content-well) ---------- */
#geo-content-well.aw-well{position:fixed;top:50%;left:50%;width:min(560px,92vw);max-width:none;max-height:86vh;
  margin:0;padding:0;inset:auto;right:auto;bottom:auto;
  transform:translate(-50%,-44%) scale(.94);opacity:0;
  background:rgba(15,31,58,0.96);border:1px solid var(--aw-border2);border-radius:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.6),0 0 30px rgba(101,244,244,.18);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  overflow:hidden;pointer-events:none;
  transition:opacity .45s var(--aw-ease),transform .55s var(--aw-spring);z-index:9999;}
#geo-content-well.aw-well.is-open{opacity:1;transform:translate(-50%,-50%) scale(1);pointer-events:auto;}

.aw-progress{position:absolute;top:0;left:0;height:3px;width:100%;z-index:5;
  background:linear-gradient(90deg,var(--cyan),var(--teal));
  transform:scaleX(0);transform-origin:left;opacity:.9;}

.aw-scroll{max-height:86vh;overflow-y:auto;overflow-x:hidden;}
.aw-scroll::-webkit-scrollbar{width:9px;}
.aw-scroll::-webkit-scrollbar-thumb{background:rgba(101,244,244,.25);border-radius:9px;}

#geo-content-well .aw-close,#geo-content-well .aw-back{position:absolute;z-index:6;border:none;cursor:pointer;font:inherit;}
#geo-content-well .aw-close{top:12px;right:12px;width:34px;height:34px;border-radius:50%;
  border:1px solid var(--aw-border);background:rgba(17,29,48,.8);color:var(--aw-muted);
  font-size:15px;line-height:1;display:flex;align-items:center;justify-content:center;
  transition:color .2s var(--aw-ease),border-color .2s var(--aw-ease),transform .3s var(--aw-spring);}
#geo-content-well .aw-close:hover{color:var(--cyan);border-color:var(--aw-border2);transform:rotate(90deg) scale(1.08);}
#geo-content-well .aw-back{top:15px;left:15px;background:none;color:var(--aw-muted);font-size:13px;
  display:none;align-items:center;gap:6px;transition:color .2s var(--aw-ease),transform .2s var(--aw-ease);}
#geo-content-well .aw-back:hover{color:var(--cyan);transform:translateX(-3px);}
#geo-content-well .aw-back.show{display:inline-flex;animation:awRise .4s var(--aw-ease);}

/* block reveal */
@keyframes awRise{from{opacity:0;transform:translateY(18px);}to{opacity:1;transform:none;}}
.aw-block{opacity:0;animation:awRise .6s var(--aw-ease) forwards;animation-delay:calc(var(--i,0)*70ms);}
.aw-body.no-stagger .aw-block{animation:none;opacity:1;}

#geo-content-well .aw-body{padding:0 0 24px;transition:opacity .2s var(--aw-ease),transform .2s var(--aw-ease);}
.aw-body.leave-fwd{opacity:0;transform:translateX(-30px);}
.aw-body.leave-back{opacity:0;transform:translateX(30px);}
.aw-body.pre-fwd{opacity:0;transform:translateX(30px);}
.aw-body.pre-back{opacity:0;transform:translateX(-30px);}
.aw-prose{padding:0 26px;}

/* header photo */
.aw-figure{position:relative;margin:0 0 4px;height:215px;overflow:hidden;border-bottom:1px solid var(--aw-border);}
.aw-parallax{position:absolute;inset:-30px 0;will-change:transform;}
.aw-figure img{width:100%;height:100%;object-fit:cover;display:block;
  animation:kenburns 24s ease-in-out infinite alternate;}
@keyframes kenburns{from{transform:scale(1.04) translate(0,0);}to{transform:scale(1.14) translate(-2%,-3%);}}
.aw-figure::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(15,31,58,0) 38%,rgba(15,31,58,.92) 100%);}
.aw-sheen{position:absolute;inset:0;z-index:2;pointer-events:none;mix-blend-mode:screen;
  background:linear-gradient(105deg,transparent 30%,rgba(101,244,244,.18) 48%,transparent 66%);
  background-size:280% 100%;animation:sheen 6.5s ease-in-out infinite;}
@keyframes sheen{0%{background-position:140% 0;}55%,100%{background-position:-40% 0;}}
.aw-figcap{position:absolute;left:24px;bottom:12px;right:24px;z-index:3;
  color:var(--aw-muted);font-size:12px;letter-spacing:.01em;}

.aw-title{font-family:"Times New Roman",Times,serif;color:var(--text-bright);
  font-size:30px;line-height:1.1;margin:18px 0 2px;}
.aw-kicker{color:var(--cyan);font-size:12px;letter-spacing:.16em;text-transform:uppercase;margin:0 0 14px;}
.aw-intro{color:var(--text-primary);font-size:17px;line-height:1.55;margin:0 0 18px;}
.aw-para{color:var(--text-primary);font-size:15px;line-height:1.72;margin:0 0 15px;}
.aw-lead{color:var(--cyan);font-weight:600;}

/* inline cross-links — animated growing underline */
.aw-xlink{color:var(--cyan);text-decoration:none;cursor:pointer;padding:0 1px;border-radius:3px;
  background-image:linear-gradient(var(--cyan),var(--cyan));
  background-repeat:no-repeat;background-position:0 100%;background-size:0% 1.5px;
  transition:background-size .28s var(--aw-ease),background-color .2s var(--aw-ease);}
.aw-xlink:hover{background-size:100% 1.5px;background-color:rgba(101,244,244,.12);}
.aw-ext{color:var(--teal);text-decoration:none;
  background-image:linear-gradient(var(--teal),var(--teal));
  background-repeat:no-repeat;background-position:0 100%;background-size:0% 1.5px;
  transition:background-size .28s var(--aw-ease);}
.aw-ext:hover{background-size:100% 1.5px;}

/* wander chips */
.aw-wander{margin-top:22px;padding-top:16px;border-top:1px solid var(--aw-border);}
.aw-wander-h{color:var(--aw-muted);font-size:12px;letter-spacing:.14em;text-transform:uppercase;margin:0 0 10px;}
.aw-chips{display:flex;flex-wrap:wrap;gap:8px;}
.aw-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:999px;cursor:pointer;
  background:rgba(17,29,48,.7);border:1px solid var(--aw-border);color:var(--text-primary);font:inherit;font-size:13px;
  transition:transform .2s var(--aw-spring),box-shadow .2s var(--aw-ease),border-color .2s var(--aw-ease),
             color .2s var(--aw-ease),background .2s var(--aw-ease);
  animation:chipFloat 4.5s ease-in-out infinite;animation-delay:calc(var(--c,0)*-1.4s);}
@keyframes chipFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-3px);}}
.aw-chip:hover{transform:translateY(-3px) scale(1.03);color:var(--text-bright);border-color:var(--aw-border2);
  background:rgba(24,40,60,.9);box-shadow:0 6px 18px rgba(0,0,0,.4),0 0 16px rgba(101,244,244,.3);}
.aw-chip .arr{color:var(--cyan);font-size:12px;transition:transform .2s var(--aw-ease);}
.aw-chip:hover .arr{transform:translateX(4px);}

/* Override the legacy anchored-well mobile rule (.geo-content-well left/width !important
   at max-width:900px) so the centered modal stays centered on narrow screens too. */
@media (max-width:900px){
  #geo-content-well.aw-well{left:50% !important;right:auto !important;width:min(560px,92vw) !important;}
}
@media (max-width:560px){.aw-title{font-size:25px;}#geo-content-well.aw-well{width:96vw !important;}}
@media (prefers-reduced-motion: reduce){
  .aw-block,#geo-content-well.aw-well,.aw-figure img,.aw-sheen,.aw-chip,.geo-scrim{animation:none !important;transition:none !important;}
  .aw-block{opacity:1;}
}


