/* =====================================================================
   Maleen Kidiwela — Editorial-Scientific Portfolio
   Warm paper · Deep ocean accent · Magazine layout
   ===================================================================== */

:root {
  /* — palette — */
  --paper:        #faf8f3;
  --paper-2:      #f4efe4;
  --paper-3:      #ebe4d3;
  --surface:      #ffffff;
  --ink:          #0e1116;
  --ink-2:        #424b56;
  --ink-3:        #7e8793;
  --ink-4:        rgba(14, 17, 22, 0.42);
  --rule:         rgba(14, 17, 22, 0.10);
  --rule-strong:  rgba(14, 17, 22, 0.22);
  --accent:       #0b6e8a;          /* deep ocean teal */
  --accent-deep:  #074c61;
  --accent-soft:  rgba(11, 110, 138, 0.08);
  --ochre:        #b07033;
  --coral:        #c85a3c;

  /* — type — Bricolage display + Geist/SF body + mono accents */
  --display: 'Bricolage Grotesque', -apple-system, 'SF Pro Display', 'Geist', system-ui, sans-serif;
  --sans:    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Geist', system-ui, sans-serif;
  --serif:   'Newsreader', 'New York', 'Iowan Old Style', Georgia, serif;
  --mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  /* — Prisma hero — */
  --hp-cream: #E6E2D0;

  /* — motion — */
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* — layout — */
  --col: clamp(1.25rem, 5vw, 3rem);
}

/* — reset — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
@media (max-width: 720px) {
  html { scroll-behavior: auto; scroll-padding-top: 80px; }
}
html, body { max-width: 100vw; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, textarea, button { font: inherit; color: inherit; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  position: relative;
  animation: pageIn 0.7s var(--ease) both;
}

@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* — paper grain — */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.06  0 0 0 0 0.07  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* — utility — */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--col);
}

.section { padding: clamp(6rem, 12vw, 11rem) 0; }

.section-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 1.75rem;
  padding-left: 1.1rem;
  position: relative;
  text-transform: none;
}
.section-num::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 0.6rem;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}

.section-h {
  font-family: var(--sans);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
}

/* =====================================================================
   GLASS PILL NAV
   ===================================================================== */
.nav {
  position: fixed;
  top: 1rem;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 var(--col);
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: 0.45rem 0.55rem 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(14, 17, 22, 0.04),
    0 1px 1px rgba(14, 17, 22, 0.04),
    0 12px 40px -12px rgba(14, 17, 22, 0.20);
  transition: transform 0.6s var(--ease), background 0.4s, box-shadow 0.4s;
  max-width: calc(100vw - 2 * var(--col));
}

.nav.scrolled .nav-pill {
  background: rgba(250, 248, 243, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(14, 17, 22, 0.05),
    0 18px 50px -18px rgba(14, 17, 22, 0.30);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.72; }

.logo-mark {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  color: #f4fbff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 12px -4px rgba(11,110,138,0.5);
}
.logo-mark svg { width: 16px; height: 16px; }

.logo-text {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: 0.4rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--rule);
}
.nav-links a {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.005em;
  transition: color 0.25s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.4rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem 0.55rem 0.8rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: transform 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.nav-cta:active { transform: translateY(0); }

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6cd28e;
  box-shadow: 0 0 0 2px rgba(108, 210, 142, 0.25);
  position: relative;
}
.status-dot-live::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: rgba(108, 210, 142, 0.5);
  animation: pulseLive 2s ease-out infinite;
}
@keyframes pulseLive {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0;   }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 36px; height: 36px;
  position: relative;
  border-radius: 999px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}
.nav-toggle span:first-child { top: 14px; }
.nav-toggle span:last-child  { top: 20px; }
.nav-toggle.open span:first-child { top: 17px; transform: translateX(-50%) rotate(45deg);  }
.nav-toggle.open span:last-child  { top: 17px; transform: translateX(-50%) rotate(-45deg); }

/* =====================================================================
   HERO — Prisma-style atmospheric editorial
   ===================================================================== */
.hero-prisma {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #0a0a08;
  color: var(--hp-cream);
}

.hp-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
.hp-video, .hp-img {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.92) contrast(1.04) brightness(0.78);
  background: #050505;
}
/* fallback ken-burns if someone swaps the video for an image */
.hp-img { animation: kenBurns 22s ease-in-out infinite alternate; }
@keyframes kenBurns {
  0%   { transform: scale(1.04) translate(0,   0);   }
  100% { transform: scale(1.16) translate(-1.2%, 0.8%); }
}

.hp-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hp-grad-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0) 100%);
}
.hp-grad-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 78%;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(8,8,6,0) 0%,
    rgba(8,8,6,0.35) 35%,
    rgba(8,8,6,0.72) 70%,
    rgba(8,8,6,0.92) 100%);
}

/* eyebrow — top right, paper cream */
.hp-eyebrow {
  position: absolute;
  top: clamp(5.5rem, 8vw, 7.5rem);
  right: clamp(1.5rem, 5vw, 3rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(230,226,208,0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--hp-cream);
  animation: eyebrowIn 0.9s var(--ease) 0.4s both;
}
.hp-eyebrow .hh-dot {
  background: var(--hp-cream);
  box-shadow: 0 0 0 3px rgba(230,226,208,0.18);
}
@keyframes eyebrowIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* content bottom-anchored */
.hp-content {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
}
.hp-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1640px;
  margin: 0 auto;
}

/* NAME — massive Bricolage display */
.hp-name {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 95;
  font-weight: 500;
  font-size: clamp(3.2rem, 11vw, 10.5rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--hp-cream);
  margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.45), 0 1px 1px rgba(0,0,0,0.25);
}
.hp-word {
  display: block;
  overflow: hidden;
  padding-bottom: 0.02em;          /* prevent descender clip */
}
.hp-word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordPull 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hp-word:nth-child(1) > span { animation-delay: 0.10s; }
.hp-word:nth-child(2) > span { animation-delay: 0.22s; }
@keyframes wordPull {
  to { transform: translateY(0); }
}
.hp-aster {
  font-style: normal;
  font-size: 0.30em;
  font-weight: 400;
  vertical-align: 0.78em;
  margin-left: 0.06em;
  color: var(--hp-cream);
  opacity: 0.55;
}

.hp-name-foot {
  display: none;
}

/* aside — lede + CTA */
.hp-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: clamp(0.5rem, 1.5vw, 1.25rem);
  max-width: 380px;
  justify-self: end;
}
.hp-lede {
  font-family: var(--sans);
  font-size: clamp(0.82rem, 0.95vw, 0.96rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: rgba(230,226,208,0.92);
  text-shadow: 0 1px 16px rgba(0,0,0,0.5);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.55s forwards;
}
.hp-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.72s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0.5rem 0.4rem 1.1rem;
  border-radius: 999px;
  background: var(--hp-cream);
  color: #0a0a08;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: gap 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
}
.hp-cta:hover { gap: 1rem; transform: translateY(-1px); }
.hp-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0a0a08;
  color: var(--hp-cream);
  transition: transform 0.3s var(--ease-spring);
}
.hp-cta:hover .hp-cta-arrow { transform: scale(1.08); }

.hp-cta-ghost {
  background: transparent;
  border: 1px solid rgba(230,226,208,0.28);
  color: var(--hp-cream);
  padding: 0.6rem 1.1rem;
}
.hp-cta-ghost:hover {
  background: rgba(230,226,208,0.08);
  border-color: rgba(230,226,208,0.55);
  gap: 0.7rem;
}

/* mobile */
@media (max-width: 880px) {
  .hp-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hp-aside { justify-self: start; max-width: 100%; }
  .hp-name { font-size: clamp(2.6rem, 13vw, 5rem); line-height: 0.92; }
  .hp-eyebrow { top: 5rem; right: 1rem; padding: 0.4rem 0.75rem; font-size: 0.68rem; }
}

/* nav adapts when over the hero */
.nav.over-dark .nav-pill {
  background: rgba(10,10,8,0.45);
  border-color: rgba(230,226,208,0.16);
  box-shadow:
    inset 0 1px 0 rgba(230,226,208,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.3),
    0 12px 40px -12px rgba(0,0,0,0.5);
}
.nav.over-dark .logo-text,
.nav.over-dark .nav-links a { color: var(--hp-cream); }
.nav.over-dark .nav-links a:hover { color: #ffffff; }
.nav.over-dark .nav-links { border-left-color: rgba(230,226,208,0.18); }
.nav.over-dark .nav-cta { background: var(--hp-cream); color: #0a0a08; }
.nav.over-dark .nav-cta:hover { background: #ffffff; }
.nav.over-dark .nav-toggle span { background: var(--hp-cream); }

/* —— legacy block kept for any older references —— */
.hero {
  position: relative;
  min-height: 100dvh;
  padding: 8rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero {
  position: relative;
  min-height: 100dvh;
  padding: 8rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-dark {
  background: #050608;
  color: var(--paper);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  cursor: crosshair;
  display: block;
}

/* radial vignette so edges feel weightier and CTAs pop center */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(80% 70% at 50% 55%, transparent 0%, rgba(5,6,8,0.55) 75%, rgba(5,6,8,0.92) 100%);
}

.hero-center {
  position: relative;
  z-index: 3;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--col);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 13rem);
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

/* eyebrow chip — minimal */
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: rgba(250,248,243,0.78);
  margin-bottom: 2.25rem;
}

.hero-hint {
  position: absolute;
  bottom: 5.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.10);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250,248,243,0.55);
  pointer-events: none;
  animation: hintFade 7s ease-out 4s forwards;
  white-space: nowrap;
}
.hh-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #48caE4;
  box-shadow: 0 0 0 3px rgba(72,202,228,0.18);
  animation: hintPulse 1.6s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(1.3); opacity: 0.6; }
}
@keyframes hintFade {
  to { opacity: 0; transform: translate(-50%, -6px); }
}

/* —— NAME (hero centerpiece, modern Apple-leaning) —— */
.hero-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--sans);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-bottom: 1.4rem;
  position: relative;
}
.hn-1 {
  font-size: clamp(3.4rem, 11vw, 9.4rem);
  display: block;
  font-weight: 700;
  color: #ffffff;
  animation: nameRise 1s var(--ease) both;
}
.hn-2 {
  font-size: clamp(3.4rem, 11vw, 9.4rem);
  display: block;
  font-weight: 300;
  color: rgba(250,248,243,0.55);
  margin-top: -0.02em;
  animation: nameRise 1s var(--ease) 0.12s both;
}
@keyframes nameRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ruleDraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-role {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: rgba(250,248,243,0.6);
  margin-bottom: 1.6rem;
}
.dot-sep {
  color: rgba(250,248,243,0.3);
  margin: 0 0.55em;
  font-weight: 400;
}

.hero-lede {
  font-family: var(--sans);
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: rgba(250,248,243,0.65);
  max-width: 56ch;
  margin: 0 auto 2.4rem;
}
.hero-lede em {
  font-style: normal;
  color: rgba(250,248,243,0.95);
  font-weight: 500;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* dark-hero button overrides */
.hero-dark .btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 0 14px 36px -14px rgba(72,202,228,0.45);
}
.hero-dark .btn-primary:hover {
  background: #48caE4;
  border-color: #48caE4;
  color: var(--ink);
  box-shadow: 0 18px 48px -16px rgba(72,202,228,0.7);
}
.hero-dark .btn-ghost {
  color: var(--paper);
  border-color: rgba(250,248,243,0.22);
  background: rgba(255,255,255,0.02);
}
.hero-dark .btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(250,248,243,0.55);
  color: var(--paper);
}

.hero-dark .hero-scroll {
  color: rgba(250,248,243,0.55);
}
.hero-dark .scroll-rule {
  background: linear-gradient(to bottom, rgba(250,248,243,0.55), transparent);
}

.hero-lede {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 2.25rem;
}
.hero-lede strong {
  color: var(--ink);
  font-weight: 600;
}
.hero-lede em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: all 0.3s var(--ease-spring);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 12px 28px -14px rgba(14,17,22,0.6);
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -14px rgba(11,110,138,0.6);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { transition: transform 0.3s var(--ease-spring); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.6);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* hero right — live seismogram scope */
.hero-right {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-bottom: 0.5rem;
  min-height: 380px;
  z-index: 2;
}

.scope {
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #11161d 0%, #0a0d12 100%);
  color: #d4d8de;
  font-family: var(--mono);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    0 30px 60px -25px rgba(14,17,22,0.45);
  overflow: hidden;
  position: relative;
}

.scope::before {
  /* tiny scanlines for analog-monitor texture */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.018) 0 1px,
    transparent 1px 3px
  );
  z-index: 2;
  mix-blend-mode: overlay;
}

.scope-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}
.scope-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #6cd28e;
  text-transform: uppercase;
  font-weight: 600;
}
.scope-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6cd28e;
  box-shadow: 0 0 8px rgba(108, 210, 142, 0.7);
  animation: liveBlink 1.4s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1;   }
  50%      { opacity: 0.35; }
}
.scope-clock {
  color: #7e8793;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.scope-grid {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  padding: 0.6rem 1rem 0.2rem;
  gap: 0.1rem;
  position: relative;
  z-index: 1;
}
.scope-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: #aab2bd;
  padding: 0.4rem 0 0.15rem;
}
.scope-stn {
  font-weight: 600;
  color: #ecf0f4;
}
.scope-stn i {
  font-style: normal;
  color: var(--accent);
  margin-left: 0.4rem;
  font-weight: 500;
}
.scope-meta {
  color: #65707d;
  font-size: 0.6rem;
}

.scope-canvas {
  display: block;
  width: 100%;
  height: 156px;
  margin-top: -2px;
}

.scope-axis {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem 0.7rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  color: #65707d;
  font-variant-numeric: tabular-nums;
}

.glass-card {
  width: 100%;
  max-width: 380px;
  padding: 1.5rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(14,17,22,0.04),
    0 30px 60px -25px rgba(14,17,22,0.25);
  position: relative;
  overflow: hidden;
}

.gc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.9rem;
}
.gc-eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}
.gc-coords {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.data-stack { display: flex; flex-direction: column; }
.data-stack li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--rule);
}
.data-stack li:last-child { border-bottom: none; }
.d-label {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--ink-2);
}
.d-val {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.d-val b { font-weight: 600; }
.d-unit {
  font-size: 0.66rem;
  color: var(--ink-3);
  margin-left: 0.2rem;
  font-weight: 400;
}

.gc-seismo {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  height: 48px;
}
.gc-seismo svg { width: 100%; height: 100%; }
.seismo-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawLine 3.5s var(--ease-smooth) 1s forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.float-chip {
  position: absolute;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 14px 30px -14px rgba(14,17,22,0.20);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  animation: chipFloat 6s ease-in-out infinite;
}
.float-chip .chip-k { color: var(--ink-3); }
.float-chip .chip-v { color: var(--ink); font-weight: 600; }
.chip-1 { top: 8%; left: -10%; animation-delay: -1s; }
.chip-2 { bottom: 14%; left: -4%; animation-delay: -3s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  z-index: 5;
}
.scroll-rule {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--ink-3), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1);    opacity: 0.5; transform-origin: top; }
  50%     { transform: scaleY(1.5);  opacity: 1;   }
}

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  font-weight: 300;
  letter-spacing: -0.005em;
}
.marquee-track span { padding-right: 0; }
.marquee-track i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.6em;
  opacity: 0.7;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================================
   ABOUT
   ===================================================================== */
.section-about { background: var(--paper); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 110px;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 30px 60px -25px rgba(14,17,22,0.2);
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transition: filter 0.6s, transform 1.2s var(--ease);
}
.portrait-frame:hover img { filter: saturate(1); transform: scale(1.02); }

/* tasteful registration marks */
.portrait-corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--ink);
  opacity: 0.55;
}
.portrait-corner.tl { top: 10px; left: 10px;     border-right: none;  border-bottom: none; }
.portrait-corner.br { bottom: 10px; right: 10px; border-left: none;   border-top: none;    }

.portrait-cap {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink);
}
.cap-sub { color: var(--ink-3); font-size: 0.66rem; }

.about-text { padding-top: 0.4rem; }
.big-statement {
  font-family: var(--sans);
  font-size: clamp(1.7rem, 3.6vw, 2.85rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin-bottom: 2.5rem;
}
.big-statement em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.about-body p {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--ink-2);
  margin-bottom: 1.5rem;
  max-width: 60ch;
}
.about-body p strong {
  color: var(--ink);
  font-weight: 600;
}
.about-body p em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

.tools-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.tools-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tools-list li {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  letter-spacing: 0.005em;
  transition: all 0.25s;
}
.tools-list li:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* =====================================================================
   RESEARCH — magazine zig-zag
   ===================================================================== */
.section-research { background: var(--paper-2); }

.head-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}
.head-aside {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 38ch;
  line-height: 1.65;
}

.zz-list {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 7rem);
}

.zz { position: relative; }
.zz-link {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  color: inherit;
  transition: transform 0.6s var(--ease);
}
.zz-reverse .zz-link { grid-template-columns: 1fr 1.05fr; direction: rtl; }
.zz-reverse .zz-link > * { direction: ltr; }

.zz-link:hover { transform: translateY(-3px); }
.no-link { cursor: default; }
.no-link:hover { transform: none; }

.zz-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 24px 60px -28px rgba(14,17,22,0.4);
  isolation: isolate;
}
.zz-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) saturate(0.92);
  transition: transform 1.2s var(--ease), filter 0.6s;
}
/* per-photo crop alignment — keeps the subject inside the 4:3 frame */
.zz-media[data-illustration="orca"]    img { object-position: 50% 55%; }
.zz-media[data-illustration="cascadia"] img { object-position: 50% 50%; }
.zz-media[data-illustration="axial"]    img { object-position: 50% 50%; }
.zz-media[data-illustration="methane"]  img { object-position: 50% 65%; }
/* duotone overlay for cohesion */
.zz-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,110,138,0.18), rgba(176,112,51,0.06));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.zz-link:hover .zz-media img {
  transform: scale(1.045);
  filter: contrast(1.08) saturate(1);
}

.zz-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.9);
}

.zz-body { padding: 0 0.5rem; }
.zz-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.zz-body h3 {
  font-family: var(--sans);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--ink);
  transition: color 0.3s;
}
.zz-link:hover h3 { color: var(--accent); }
.zz-body p {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.72;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
  max-width: 48ch;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip-row span {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  letter-spacing: 0.005em;
}

/* =====================================================================
   DATA BAND
   ===================================================================== */
.data-band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.db-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.db-item {
  padding: 0 clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.db-item:first-child { border-left: none; padding-left: 0; }
.db-num {
  font-family: var(--mono);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--paper);
  line-height: 1;
}
.db-num i {
  font-style: normal;
  font-size: 0.4em;
  font-weight: 400;
  color: rgba(250, 248, 243, 0.55);
  margin-left: 0.15em;
  letter-spacing: 0;
}
.db-cap {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(250, 248, 243, 0.6);
  letter-spacing: 0.005em;
}

/* =====================================================================
   PUBLICATIONS
   ===================================================================== */
.section-pubs { background: var(--paper); }

.pub-stack {
  display: flex;
  flex-direction: column;
}

.pub {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--rule);
  color: inherit;
  transition: transform 0.5s var(--ease);
}
.pub:last-child { border-bottom: 1px solid var(--rule); }
.pub:hover { transform: translateY(-3px); }

.pub-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--paper-3);
  position: relative;
  box-shadow: 0 20px 50px -28px rgba(14,17,22,0.30);
  isolation: isolate;
}
.pub-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.94);
  transition: transform 1.2s var(--ease);
}
.pub-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,110,138,0.10), transparent);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.pub:hover .pub-media img { transform: scale(1.04); }

.pub-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}
.pub-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
}
.pub-body h3 {
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: var(--ink);
  transition: color 0.3s;
  max-width: 38ch;
}
.pub:hover h3 { color: var(--accent); }
.pub-authors {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--ink-2);
}
.pub-authors strong {
  font-style: normal;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--ink);
}
.pub-sum {
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 56ch;
}
.pub-foot {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pub-doi {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.pub-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--accent);
  transition: all 0.3s var(--ease-spring);
}
.pub:hover .pub-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  transform: rotate(8deg);
}

/* =====================================================================
   PRESS
   ===================================================================== */
.section-press { background: var(--paper); }

.press-list {
  border-top: 1px solid var(--rule);
}
.press-list li { border-bottom: 1px solid var(--rule); }

.press-row {
  display: grid;
  grid-template-columns: 200px 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.5rem 0;
  transition: padding 0.45s var(--ease), background 0.3s;
}
.press-row:hover {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  background: var(--paper-2);
  border-radius: 14px;
}

.pr-outlet {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.pr-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.55rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.pr-mark-uw   { background: #4b2e83; }   /* UW purple */
.pr-mark-duw  { background: #b07033; }   /* warm ochre */
.pr-mark-ooi  { background: #0b6e8a; }   /* OOI deep teal */
.pr-name {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.pr-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.3s;
}
.press-row:hover .pr-head { color: var(--accent); }
.pr-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--ink-3);
}

.pr-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pr-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  transition: all 0.3s var(--ease-spring);
}
.press-row:hover .pr-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  transform: rotate(8deg);
}

@media (max-width: 820px) {
  .press-row {
    grid-template-columns: 1fr auto;
    gap: 0.6rem 1rem;
    padding: 1.5rem 0;
  }
  .pr-outlet  { grid-column: 1 / -1; }
  .pr-head    { grid-column: 1 / 2; grid-row: 2; }
  .pr-arrow   { grid-column: 2; grid-row: 2; }
  .pr-date    { grid-column: 1; }
}

/* =====================================================================
   3D VIZ
   ===================================================================== */
.section-viz {
  background: var(--paper-2);
  padding-bottom: 0;
}

.viz-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.viz-title {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.96;
}
.viz-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.viz-aside p {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
  max-width: 42ch;
}
.viz-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.vh {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.vh svg { opacity: 0.7; }
.vh-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity 0.3s;
}
.vh-link:hover { opacity: 0.75; }

.viz-frame {
  width: 100%;
  border-top: 1px solid var(--rule);
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
  height: 72vh;
  min-height: 540px;
  max-height: 780px;
}
.viz-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #0a0a0a;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.viz-frame.iframe-loaded .viz-iframe { opacity: 1; }
.viz-frame.iframe-loaded .viz-loader  { opacity: 0; pointer-events: none; }

.viz-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #0a0a0a;
  color: rgba(250,248,243,0.7);
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.vl-spinner { width: 48px; height: 48px; }
.vl-spinner svg { width: 100%; height: 100%; }
.vl-caption {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(250,248,243,0.45);
}

/* — POSTER — */
.viz-poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, #0e1116 0%, #050608 100%);
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease);
  overflow: hidden;
}
.viz-bathy {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.viz-poster-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(11,110,138,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,110,138,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.scan-line {
  transform-origin: 600px 330px;
  animation: scanRotate 8s linear infinite;
}
@keyframes scanRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.viz-poster-ui {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding: 2rem;
  color: #faf8f3;
}

.vp-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.vp-coord {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(11,110,138,0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.vp-k {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(250,248,243,0.5);
  text-transform: uppercase;
}
.vp-v {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: #faf8f3;
  letter-spacing: 0.01em;
}

.viz-launch {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.6rem 0.65rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #faf8f3;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  transition: all 0.4s var(--ease-spring);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 14px 40px -16px rgba(11,110,138,0.6);
}
.viz-launch:hover {
  background: rgba(11,110,138,0.30);
  border-color: rgba(255,255,255,0.32);
  transform: translateY(-2px);
}
.viz-launch:active { transform: translateY(0); }

.vl-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #faf8f3;
}
.vl-ring svg { width: 100%; height: 100%; animation: spinSlow 12s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.vl-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.vl-line-1 {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.vl-line-2 {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: rgba(250,248,243,0.55);
  letter-spacing: 0.01em;
}

.vp-log {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: rgba(11,110,138,0.85);
  letter-spacing: 0.02em;
  opacity: 0.7;
}

/* — LOADER — */
.viz-loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  background: linear-gradient(180deg, #0e1116 0%, #050608 100%);
  color: #faf8f3;
  transition: opacity 0.6s var(--ease);
}
.viz-frame.loading .viz-loader { display: flex; }
.viz-frame.loading .viz-poster { opacity: 0; pointer-events: none; }

.vl-scan { width: 120px; height: 120px; }
.vl-scan svg { width: 100%; height: 100%; }
.vl-sweep {
  transform-origin: 60px 60px;
  animation: scanRotate 1.8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(11,110,138,0.7));
}
.vl-log {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}
.vl-log li {
  color: rgba(250,248,243,0.4);
  opacity: 0;
  transform: translateY(4px);
  animation: logIn 0.4s var(--ease) forwards;
}
.vl-log li.active { color: rgba(108,210,142,0.95); }
.vl-log li.active::before {
  content: '✓ ';
  color: #6cd28e;
  margin-right: 0.1rem;
}
@keyframes logIn { to { opacity: 1; transform: translateY(0); } }

/* =====================================================================
   QUOTE
   ===================================================================== */
.quote {
  background: var(--paper);
  padding: clamp(5rem, 10vw, 9rem) 0;
  text-align: center;
  position: relative;
}
.quote .container {
  max-width: 880px;
}
.quote-mark {
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 400;
  line-height: 0.4;
  color: var(--accent);
  margin-bottom: 1.5rem;
  user-select: none;
}
.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
}
.quote-sig {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* =====================================================================
   CONTACT
   ===================================================================== */
.section-contact { background: var(--paper-2); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-h {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.4rem;
  color: var(--ink);
}
.contact-lede {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 2.5rem;
  max-width: 42ch;
}

.contact-list { border-top: 1px solid var(--rule); }
.cl-row {
  display: grid;
  grid-template-columns: 90px 1fr 24px;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  transition: padding 0.4s var(--ease), color 0.3s;
}
.cl-row:hover {
  padding-left: 0.6rem;
  color: var(--accent);
}
.cl-k {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cl-v {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 400;
}
.cl-arrow {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--ink-3);
  text-align: right;
  transition: transform 0.3s var(--ease-spring), color 0.3s;
}
.cl-row:hover .cl-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.cl-row-feat {
  position: relative;
}
.cl-row-feat::before {
  content: '';
  position: absolute;
  inset: 0.45rem -0.3rem;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--accent-soft), rgba(176,112,51,0.10));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.cl-row-feat:hover::before { opacity: 1; }
.cl-row-feat .cl-k {
  color: var(--accent);
  font-weight: 600;
}
.cl-row-feat .cl-v {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-weight: 500;
}
.cl-mini {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(14,17,22,0.18);
}
.cf-row { display: flex; flex-direction: column; gap: 0.45rem; }
.cf-row label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cf-row input,
.cf-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  padding: 0.65rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  resize: vertical;
  border-radius: 0;
  transition: border-color 0.3s;
}
.cf-row textarea { line-height: 1.6; }
.cf-row input::placeholder,
.cf-row textarea::placeholder {
  color: var(--ink-3);
  font-weight: 300;
}
.cf-row input:focus,
.cf-row textarea:focus {
  border-bottom-color: var(--accent);
}

.btn-submit {
  align-self: flex-start;
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 12px 28px -14px rgba(14,17,22,0.6);
}
.btn-submit:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -14px rgba(11,110,138,0.6);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit svg { transition: transform 0.3s var(--ease-spring); }
.btn-submit:hover svg { transform: translateX(3px); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: var(--paper);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}
.f-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}
.f-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  color: var(--paper);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.f-copy {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-2);
  text-align: center;
}
.f-mini {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }
.reveal-d4 { transition-delay: 0.40s; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-right { justify-content: flex-start; min-height: 360px; }
  .glass-card { max-width: 100%; }
  .chip-1 { top: 4%; left: auto; right: 4%; }
  .chip-2 { bottom: auto; top: 30%; left: auto; right: -2%; }

  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: relative; top: auto; max-width: 360px; }

  .head-row { grid-template-columns: 1fr; }
  .zz-link, .zz-reverse .zz-link {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
  }

  .pub { grid-template-columns: 1fr; gap: 1.5rem; }
  .pub-media { max-width: 480px; }

  .viz-intro { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .db-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 0;
  }
  .db-item:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 720px) {
  .nav-pill {
    padding: 0.4rem 0.45rem 0.4rem 0.95rem;
    gap: 0.55rem;
    /* drop backdrop-filter so fixed-positioned dropdown escapes the pill's containing block */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(250, 248, 243, 0.92);
  }
  .nav.over-dark .nav-pill {
    background: rgba(10, 10, 8, 0.72);
  }
  .logo-text { display: none; }
  .nav-links {
    position: fixed;
    top: 4.5rem;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: #faf8f3;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(14,17,22,0.10);
    border-left: 1px solid rgba(14,17,22,0.10);
    border-radius: 18px;
    box-shadow: 0 30px 60px -25px rgba(14,17,22,0.45);
    transform: scale(0.98) translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
    margin: 0;
    list-style: none;
  }
  .nav-links li { width: 100%; }
  .nav-links.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a,
  .nav.over-dark .nav-links a {
    display: block;
    padding: 0.85rem 1.05rem;
    font-size: 1rem;
    font-weight: 500;
    color: #0e1116;
    letter-spacing: -0.01em;
    border-radius: 12px;
    white-space: nowrap;
  }
  .nav-links a:hover,
  .nav.over-dark .nav-links a:hover {
    color: #0b6e8a;
    background: rgba(11,110,138,0.06);
  }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: block; }

  .hero { padding-top: 8rem; }
  .meta-row { flex-wrap: wrap; gap: 0.55rem; padding: 0.4rem 0.7rem; }

  .db-grid { grid-template-columns: 1fr; }
  .db-item { border-left: none !important; padding-left: 0 !important; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.10); }
  .db-item:first-child { border-top: none; padding-top: 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .f-brand { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
