/* ==========================================================================
   ESHWAR PRITHVI JONNADULA — EP SUB-WEBSITE STYLESHEET
   Design: Cyber-Editorial Luxury / Obsidian Precision
   Animations: Fluid 60fps, 3D Tilt, Particle Canvas, Interactive HUD
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,400;0,500;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300..800;1,9..40,300..800&family=DM+Serif+Display:ital@0;1&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Core Palettes */
  --bg-deep: #04070b;
  --bg-canvas: #070c12;
  --bg-surface: #0c141e;
  --bg-surface-elevated: #111d2c;
  --bg-card: rgba(13, 22, 34, 0.72);
  --bg-glass: rgba(10, 18, 28, 0.78);
  --bg-glass-heavy: rgba(7, 13, 21, 0.92);

  /* Accents */
  --orange: #ff9b54;
  --orange-glow: rgba(255, 155, 84, 0.4);
  --orange-dim: rgba(255, 155, 84, 0.12);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --amber: #ffc078;
  --amber-glow: rgba(255, 192, 120, 0.36);
  --indigo: #6366f1;
  --coral: #ff7950;
  --coral-glow: rgba(255, 121, 80, 0.38);

  /* Neutrals & Inks */
  --ink-primary: #f8fafc;
  --ink-secondary: #cbd5e1;
  --ink-muted: #8899a8;
  --ink-dim: #556677;

  /* Borders & Lines */
  --line-subtle: rgba(255, 255, 255, 0.07);
  --line-bright: rgba(255, 255, 255, 0.16);
  --line-orange: rgba(255, 155, 84, 0.3);
  --line-amber: rgba(255, 192, 120, 0.3);

  /* Typography */
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "DM Sans", sans-serif;
  --font-mono: "DM Mono", "JetBrains Mono", Consolas, monospace;

  /* Layout Spacing */
  --pad-x: clamp(20px, 6vw, 96px);
  --nav-height: 76px;

  /* Transition Curves */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --------------------------------------------------------------------------
   Reset & Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  background-color: var(--bg-deep);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg-deep);
  color: var(--ink-primary);
  line-height: 1.6;
}

body.is-nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--orange);
  color: var(--bg-deep);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

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

/* --------------------------------------------------------------------------
   Atmospheric Layers & Background Canvas
   -------------------------------------------------------------------------- */
.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 55% at 15% 15%, rgba(255, 192, 120, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 60% at 85% 35%, rgba(255, 155, 84, 0.08), transparent 75%),
    radial-gradient(ellipse 70% 65% at 50% 90%, rgba(255, 121, 80, 0.07), transparent 80%);
  animation: ambientFloat 24s ease-in-out infinite alternate;
}

@keyframes ambientFloat {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(2%, 3%); }
  100% { transform: scale(1) translate(-2%, -2%); }
}

.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(480px circle at var(--glow-x, 50%) var(--glow-y, 30%), rgba(255, 192, 120, 0.09), transparent 60%);
  transition: opacity 0.3s ease;
  will-change: background;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--amber), var(--orange), var(--coral));
  box-shadow: 0 0 16px var(--orange-glow), 0 0 8px var(--amber-glow);
  transition: width 0.08s linear;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 var(--pad-x);
  background: rgba(7, 12, 18, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line-subtle);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 12, 18, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.monogram {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--ink-primary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-fluid);
}

.monogram span {
  color: var(--orange);
  display: inline-block;
  transition: transform 0.3s var(--ease-spring);
}

.monogram:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-subtle);
}

.monogram:hover span {
  transform: translateY(-2px) scale(1.3);
  text-shadow: 0 0 12px var(--orange);
}

/* Header Navigation */
nav#site-navigation {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  position: relative;
}

nav#site-navigation a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.22s ease, background 0.22s ease;
}

nav#site-navigation a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease-fluid);
  box-shadow: 0 0 8px var(--orange-glow);
}

nav#site-navigation a:hover,
nav#site-navigation a.is-active {
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.03);
}

nav#site-navigation a:hover::after,
nav#site-navigation a.is-active::after {
  transform: scaleX(1);
}

nav#site-navigation a.contact-nav-link {
  color: var(--orange);
}

nav#site-navigation a.family-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 8px 16px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

nav#site-navigation a.family-link::after {
  display: none;
}

nav#site-navigation a.family-link:hover {
  color: var(--bg-deep);
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 20px var(--orange-glow);
  transform: translateY(-1px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Sound FX Toggle Pill */
.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s var(--ease-fluid);
}

.sound-toggle-btn:hover {
  color: var(--ink-primary);
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.06);
}

.sound-toggle-btn.is-active {
  color: var(--orange);
  border-color: var(--line-orange);
  background: var(--orange-dim);
}

.sound-bars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.sound-bar {
  width: 2px;
  height: 6px;
  background: currentColor;
  border-radius: 1px;
  transition: height 0.2s ease;
}

.sound-toggle-btn.is-active .sound-bar:nth-child(1) { animation: soundWave 0.8s ease-in-out infinite alternate; }
.sound-toggle-btn.is-active .sound-bar:nth-child(2) { animation: soundWave 0.8s ease-in-out infinite 0.2s alternate; }
.sound-toggle-btn.is-active .sound-bar:nth-child(3) { animation: soundWave 0.8s ease-in-out infinite 0.4s alternate; }

@keyframes soundWave {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* Family Home Pill */
.family-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s var(--ease-fluid);
}

.family-link:hover {
  color: var(--bg-deep);
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 20px var(--orange-glow);
  transform: translateY(-1px);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.nav-toggle {
  display: none;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  min-height: calc(100svh - var(--nav-height));
  padding: clamp(48px, 8vw, 112px) var(--pad-x) clamp(64px, 8vw, 100px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-subtle);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--line-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

/* Live Status Pill */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(255, 192, 120, 0.25);
  border-radius: 999px;
  background: rgba(255, 192, 120, 0.06);
  backdrop-filter: blur(8px);
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  position: relative;
}

.status-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--orange);
  animation: radarPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Main Hero Typography */
.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(54px, 8.2vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.065em;
  color: var(--ink-primary);
}

.hero h1 span.family-name {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--orange);
  text-shadow: 0 0 40px rgba(255, 155, 84, 0.25);
  transform: translateX(0.04em);
}

/* Dynamic Typed Subtitle */
.hero-tagline-wrap {
  margin: 28px 0 34px;
  width: 100%;
  max-width: 820px;
}

.hero-role .typed-text {
  color: var(--ink-primary);
}

.intro {
  margin: 0 0 10px;
  color: var(--ink-secondary);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0;
  color: var(--ink-muted);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--ink-secondary);
  font-weight: 500;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 36px;
}

.down-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-primary);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease-fluid);
}

.down-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--bg-deep);
  font-size: 14px;
  box-shadow: 0 4px 18px var(--orange-glow);
  transition: transform 0.3s var(--ease-spring), background 0.3s ease;
}

.down-link:hover {
  border-color: var(--line-orange);
  background: var(--orange-dim);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.down-link:hover .down-icon {
  transform: translateY(3px) rotate(-45deg);
  background: var(--amber);
  box-shadow: 0 4px 20px var(--amber-glow);
}

.intro .earth-age-counter {
  display: inline-block;
  margin-left: 0.2em;
  font: inherit;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--orange);
}

.earth-age-tail {
  color: inherit;
  font: inherit;
}

/* --------------------------------------------------------------------------
   Hero Artwork: Generative Silk Wave / Flowing Ribbon ("Stream of Thought")
   -------------------------------------------------------------------------- */
.hero-art {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  justify-self: end;
  pointer-events: auto;
  perspective: 1200px;
  transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0);
  transition: transform 0.25s var(--ease-fluid);
}

.hero-art{position:relative;width:min(100%,550px);aspect-ratio:1;justify-self:end;pointer-events:none;transform:translate3d(var(--hero-x,0px),var(--hero-y,0px),0);transition:transform .3s ease-out}.hero-grid{position:absolute;inset:8%;border:1px solid var(--line);border-radius:50%;background:repeating-radial-gradient(circle at center,transparent 0 12%,rgb(255 208 160 / 6%) 12.2% 12.6%,transparent 12.8% 19%),linear-gradient(135deg,rgb(255 136 114 / 10%),transparent 60%)}.hero-orbit{position:absolute;top:50%;left:50%;border:1px solid rgb(255 220 180 / 22%);border-radius:50%;transform:translate(-50%,-50%) rotate(-22deg) scaleY(.49)}.orbit-one{width:94%;height:94%;animation:spin 22s linear infinite}.orbit-two{width:72%;height:72%;border-color:rgb(255 155 84 / 56%);animation:spin-reverse 16s linear infinite}.orbit-three{width:116%;height:116%;border-color:rgb(255 136 114 / 31%);animation:spin 32s linear infinite}.hero-sphere{position:absolute;top:50%;left:50%;width:43%;aspect-ratio:1;overflow:hidden;border:1px solid rgb(255 255 255 / 26%);border-radius:50%;background:radial-gradient(circle at 31% 26%,#fff0dc 0 2%,#ffad63 12%,#a45e35 46%,#342318 71%,#081018 100%);box-shadow:-18px 20px 45px rgb(0 0 0 / 34%),0 0 70px rgb(255 155 84 / 19%),inset -20px -20px 35px rgb(0 0 0 / 34%);transform:translate(-50%,-50%);animation:sphere-breathe 7s ease-in-out infinite}.hero-sphere i{position:absolute;top:9%;right:15%;width:18%;aspect-ratio:1;border-radius:50%;background:rgb(255 255 255 / 52%);filter:blur(7px)}.hero-satellite{position:absolute;top:50%;left:50%;width:11%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff1ce,#ff9679 45%,#7e345b 100%);box-shadow:0 0 27px rgb(255 136 114 / 64%);animation:satellite 11s linear infinite}.art-coordinate,.art-caption{position:absolute;margin:0;font:9px/1.75 var(--mono);letter-spacing:.09em}.art-coordinate{top:18%;left:1%;color:var(--amber)}.art-caption{right:-2%;bottom:16%;color:var(--orange);text-align:right}
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: var(--pad-x);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.scroll-cue:hover {
  color: var(--orange);
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 48px;
  height: 2px;
  background: var(--line-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: scanBar 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scanBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

/* --------------------------------------------------------------------------
   Quick Stats Ribbon (Below Hero)
   -------------------------------------------------------------------------- */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 var(--pad-x);
  background: var(--line-subtle);
  border: 1px solid var(--line-subtle);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-50%);
  position: relative;
  z-index: 10;
}

.stat-box {
  background: rgba(12, 19, 29, 0.88);
  backdrop-filter: blur(16px);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.stat-box:hover {
  background: rgba(18, 29, 44, 0.95);
}

.stat-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink-primary);
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--orange);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Section Foundations
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) var(--pad-x);
  border-bottom: 1px solid var(--line-subtle);
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.section-index span {
  color: var(--orange);
  font-weight: 600;
}

.section-index i {
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* --------------------------------------------------------------------------
   About Section & Bento Box
   -------------------------------------------------------------------------- */
.about {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 192, 120, 0.05), transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255, 155, 84, 0.04), transparent 70%);
}

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(36px, 5.5vw, 64px);
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45);
}

.about-heading {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: var(--ink-primary);
}

.about-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.8;
  color: var(--ink-secondary);
  margin: 0 0 20px;
}

.about-desc {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
}

.about-action-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* Copy Email Pill Button */
.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--orange);
  border: 1px solid var(--line-orange);
  border-radius: 12px;
  background: var(--orange-dim);
  transition: all 0.25s var(--ease-fluid);
  margin-top: 24px;
  align-self: flex-start;
}

.copy-email-btn:hover {
  background: var(--orange);
  color: var(--bg-deep);
  box-shadow: 0 0 24px var(--orange-glow);
  transform: translateY(-2px);
}

.copy-email-btn .copy-icon {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Currency Collection — Numismatic Vault
   -------------------------------------------------------------------------- */
.currency-collection {
  background:
    radial-gradient(circle at 10% 40%, rgba(255, 155, 84, 0.04), transparent 60%),
    radial-gradient(circle at 90% 70%, rgba(255, 121, 80, 0.04), transparent 60%);
}

.currency-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  margin-bottom: 40px;
}

.currency-intro h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.currency-intro p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.8;
}

/* Showcase Cabinet */
.currency-cabinet {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  border: 1px solid var(--line-bright);
  background: linear-gradient(145deg, rgba(16, 27, 41, 0.85), rgba(7, 13, 20, 0.95));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Currency type and country selectors */
.currency-type-switch,
.currency-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(4, 9, 14, 0.6);
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
}

.currency-type-switch {
  margin-bottom: 14px;
}

.currency-tabs {
  margin-bottom: 32px;
}

.currency-type-button,
.currency-tab {
  position: relative;
  z-index: 2;
  padding: 10px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-radius: 999px;
  transition: color 0.25s ease, transform 0.25s var(--ease-spring);
}

.currency-type-button:hover,
.currency-tab:hover {
  color: var(--ink-primary);
}

.currency-type-button.is-current {
  color: var(--bg-deep);
  background: var(--orange);
  font-weight: 600;
  box-shadow: 0 4px 18px var(--orange-glow);
}

.currency-tab.is-current {
  color: var(--bg-deep);
  background: var(--orange);
  font-weight: 600;
  box-shadow: 0 4px 18px var(--orange-glow);
}

.currency-panel[hidden] {
  display: none;
}

.currency-panel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 8px;
}

.currency-panel h3 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Coin Card Grid */
.currency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.currency-empty-state {
  grid-column: 1 / -1;
  padding: clamp(24px, 4vw, 40px);
  border: 1px dashed rgba(255, 192, 120, 0.3);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 192, 120, 0.07), rgba(9, 16, 25, 0.45));
}

.currency-empty-state[hidden] {
  display: none;
}

.currency-empty-state span {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.currency-empty-state p {
  margin: 12px 0 0;
  color: var(--ink-secondary);
  line-height: 1.7;
}

.currency-sample {
  position: relative;
  padding: 24px;
  background: rgba(9, 16, 25, 0.7);
  border: 1px solid var(--line-subtle);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  transition: all 0.35s var(--ease-fluid);
}

.currency-sample[hidden] {
  display: none;
}

.currency-sample:hover {
  border-color: var(--line-orange);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 155, 84, 0.12);
}

.currency-sample-tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--amber);
  border: 1px solid rgba(255, 192, 120, 0.25);
  border-radius: 999px;
  background: rgba(255, 192, 120, 0.06);
}

/* 3D Coin Flip Container — High Reliability 3D Stage */
.currency-flip {
  display: block;
  position: relative;
  width: 100%;
  height: 220px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  user-select: none;
}

.currency-flip:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 16px;
}

.currency-flip-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.85, 0.25, 1.15);
}

.currency-flip.is-flipped .currency-flip-inner {
  transform: rotateY(180deg);
}

.currency-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 45%, #1d3142 0%, #09131c 80%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.75), 0 8px 24px rgba(0, 0, 0, 0.4);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.currency-face-front {
  transform: rotateY(0deg);
  z-index: 2;
}

.currency-face-back {
  transform: rotateY(180deg);
  z-index: 1;
}

.currency-flip.is-flipped .currency-face-front {
  z-index: 1;
}

.currency-flip.is-flipped .currency-face-back {
  z-index: 2;
}

.currency-badge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--ink-secondary);
  background: rgba(5, 10, 16, 0.88);
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 4;
}

.currency-face img {
  display: block;
  position: relative;
  z-index: 3;
  width: min(100%, 170px);
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.7));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.25, 1);
  pointer-events: none;
}

.currency-note-face img {
  width: min(94%, 360px);
  height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
}

.currency-sample:hover .currency-face img {
  transform: scale(1.05);
}

/* Washington Quarter 2-in-1 Image Crop */
.currency-us-crop {
  position: relative;
  z-index: 3;
  display: block;
  width: 170px;
  height: 170px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.65);
}

.currency-us-crop img {
  position: absolute;
  top: 0;
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.currency-us-crop img.is-obverse {
  left: 0;
}

.currency-us-crop img.is-reverse {
  left: -100%;
}

.currency-card-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
}

.currency-card-info strong {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-primary);
}

.currency-card-info span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.currency-details-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--orange);
  margin-top: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.currency-details-button:hover {
  color: var(--coral);
  transform: translateX(3px);
}

.currency-credit {
  margin-top: 14px;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--ink-dim);
  line-height: 1.6;
}

.currency-credit a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Travel Cartography Section — World & India Maps
   -------------------------------------------------------------------------- */
.travel {
  background:
    radial-gradient(ellipse 70% 60% at 50% 20%, rgba(255, 192, 120, 0.05), transparent 70%),
    radial-gradient(ellipse 60% 60% at 50% 80%, rgba(16, 185, 129, 0.04), transparent 70%);
}

.travel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.travel-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.travel-heading p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.travel-heading strong {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 22px;
}

/* Travel Switcher Tabs */
.travel-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(7, 13, 20, 0.7);
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  margin-bottom: 30px;
}

.travel-switch {
  padding: 9px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-radius: 999px;
  transition: all 0.25s var(--ease-fluid);
}

.travel-switch:hover {
  color: var(--ink-primary);
}

.travel-switch.is-current {
  color: var(--bg-deep);
  background: var(--orange);
  font-weight: 600;
  box-shadow: 0 4px 18px var(--orange-glow);
}

/* World Map Canvas */
.world-map-view[hidden] {
  display: none;
}

.world-map-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.world-map-caption span {
  color: var(--amber);
}

.world-map-canvas {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 48px);
  border-radius: 24px;
  border: 1px solid var(--line-bright);
  background: radial-gradient(ellipse at 50% 40%, #152b39 0%, #081119 78%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.world-map-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 192, 120, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 192, 120, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.world-map-canvas:hover {
  border-color: rgba(255, 192, 120, 0.45);
}

.world-map-svg {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 540px;
}

.world-land {
  fill: #395462;
  stroke: #09131a;
  stroke-width: 1.15;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.22s ease, filter 0.22s ease, transform 0.22s ease;
}

.world-land:hover,
.world-land:focus {
  fill: var(--amber);
  outline: none;
  filter: drop-shadow(0 0 8px var(--amber-glow));
}

/* India Map View */
.india-map-view[hidden] {
  display: none;
}

/* Quick Filter & Search Bar for India Map */
.india-map-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.india-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.filter-chip:hover {
  color: var(--ink-primary);
  border-color: var(--line-bright);
}

.filter-chip.is-active {
  color: var(--bg-deep);
  background: var(--orange);
  border-color: var(--orange);
  font-weight: 600;
  box-shadow: 0 0 14px var(--orange-glow);
}

.state-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.state-search-input {
  padding: 7px 14px 7px 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  outline: none;
  width: 190px;
  transition: width 0.3s ease, border-color 0.2s ease;
}

.state-search-input:focus {
  width: 240px;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.07);
}

.search-icon-inside {
  position: absolute;
  left: 12px;
  font-size: 11px;
  color: var(--ink-muted);
  pointer-events: none;
}

/* India Map Layout */
.travel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.travel-map-wrap {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line-bright);
  background: radial-gradient(ellipse at 50% 45%, #132733 0%, #071017 80%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.travel-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.travel-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.is-visited {
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange-glow);
}

.legend-dot.is-not-visited {
  background: #243b49;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.india-map {
  display: block;
  width: 100%;
  max-height: 700px;
  overflow: visible;
}

.travel-state {
  fill: #223a48;
  stroke: #071118;
  stroke-width: 1.15;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.22s ease, filter 0.22s ease;
}

.travel-state.is-visited {
  fill: var(--orange);
  filter: drop-shadow(0 0 2px var(--orange-glow));
}

.travel-state:hover {
  fill: var(--amber) !important;
  filter: drop-shadow(0 0 10px var(--amber-glow));
  outline: none;
}

.travel-state.is-active {
  stroke: var(--amber);
  stroke-width: 2.2;
}

.travel-state:focus {
  outline: none;
  fill: var(--amber);
  stroke: #ffffff;
  stroke-width: 2.2;
}

.lakshadweep-callout > path {
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
}

.lakshadweep-callout text {
  fill: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  paint-order: stroke;
  stroke: #071017;
  stroke-width: 3px;
  stroke-linejoin: round;
}

/* Travel Detail Sidebar Card */
.travel-detail {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line-bright);
  background: linear-gradient(145deg, rgba(19, 36, 49, 0.8), rgba(8, 17, 24, 0.9));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.travel-place {
  padding: 20px;
  border-radius: 14px;
  background: radial-gradient(circle at 70% 30%, rgba(255, 155, 84, 0.12), transparent 50%), #09131a;
  border: 1px solid var(--line-subtle);
}

.travel-state-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.travel-state-status-pill.is-visited {
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid var(--line-orange);
}

.travel-state-status-pill.is-not-visited {
  color: var(--coral);
  background: rgba(255, 121, 80, 0.1);
  border: 1px solid rgba(255, 121, 80, 0.3);
}

.travel-state-name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink-primary);
}

.travel-state-highlight {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 8px 0 0;
  line-height: 1.5;
}

.travel-view-memories-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--bg-deep);
  background: var(--orange);
  border-radius: 10px;
  transition: all 0.25s var(--ease-fluid);
  align-self: flex-start;
  box-shadow: 0 4px 16px var(--orange-glow);
}

.travel-view-memories-btn:hover {
  transform: translateY(-2px);
  background: var(--amber);
  box-shadow: 0 6px 20px var(--amber-glow);
}

/* Floating Map HUD Tooltip */
.map-hud-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%) scale(0.92);
  padding: 10px 16px;
  background: rgba(6, 12, 19, 0.94);
  border: 1px solid var(--orange);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 16px var(--orange-glow);
  backdrop-filter: blur(16px);
  transition: opacity 0.15s ease, transform 0.15s var(--ease-spring);
  font-family: var(--font-sans);
  max-width: 240px;
}

.map-hud-tooltip.is-active {
  opacity: 1;
  transform: translate(-50%, -130%) scale(1);
}

.hud-state-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}

.hud-state-meta {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   Writing & Essays Section
   -------------------------------------------------------------------------- */
.blog {
  background:
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(255, 121, 80, 0.05), transparent 70%),
    radial-gradient(ellipse 60% 40% at 15% 85%, rgba(255, 192, 120, 0.05), transparent 70%);
}

.blog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.blog-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.blog-heading em {
  font-style: italic;
  color: var(--coral);
}

.blog-heading p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* Post Filter & Search Controls */
.blog-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 32px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.blog-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-pill {
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.22s var(--ease-fluid);
}

.blog-pill:hover {
  color: var(--ink-primary);
  border-color: var(--line-bright);
}

.blog-pill.is-active {
  color: var(--bg-deep);
  background: var(--orange);
  border-color: var(--orange);
  font-weight: 600;
  box-shadow: 0 0 16px var(--orange-glow);
}

.blog-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.blog-search-input {
  padding: 8px 16px 8px 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  outline: none;
  width: 220px;
  transition: width 0.3s ease, border-color 0.2s ease;
}

.blog-search-input:focus {
  width: 280px;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.07);
}

/* Post Cards Grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: posts;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line-subtle);
  background: linear-gradient(145deg, rgba(16, 26, 38, 0.7), rgba(9, 16, 24, 0.85));
  text-decoration: none;
  counter-increment: posts;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-fluid), border-color 0.35s ease, box-shadow 0.35s ease;
}

.post-card::before {
  content: "NOTE / " counter(posts, decimal-leading-zero);
  position: absolute;
  top: 22px;
  left: 26px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.post-card::after {
  content: "↗";
  position: absolute;
  right: -10px;
  bottom: -25px;
  font-family: var(--font-serif);
  font-size: 160px;
  line-height: 0.7;
  color: rgba(255, 155, 84, 0.06);
  transition: transform 0.4s var(--ease-fluid), color 0.4s ease;
  pointer-events: none;
}

.post-card:hover {
  border-color: var(--line-orange);
  background: linear-gradient(145deg, rgba(22, 36, 52, 0.85), rgba(12, 22, 33, 0.95));
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 155, 84, 0.12);
}

.post-card:hover::after {
  color: rgba(255, 155, 84, 0.22);
  transform: translate(-12px, -8px);
}

.post-card-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.post-read-time {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding: 3px 8px;
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.post-copy {
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

.post-meta {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.post-copy h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink-primary);
}

/* --------------------------------------------------------------------------
   CV, Publications & Experience Section
   -------------------------------------------------------------------------- */
.cv {
  background:
    radial-gradient(ellipse 60% 40% at 10% 20%, rgba(255, 155, 84, 0.04), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(99, 102, 241, 0.05), transparent 70%);
}

.cv-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 36px;
  margin-bottom: 44px;
}

.cv-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.cv-heading p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.8;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cv-card {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 24px;
  border: 1px solid var(--line-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: all 0.35s var(--ease-fluid);
}

.cv-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.card-label {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.signal-wave-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 20px;
  margin-bottom: 16px;
}

.signal-bar {
  width: 3px;
  background: var(--amber);
  border-radius: 2px;
  animation: signalPulse 1.2s ease-in-out infinite alternate;
}

.signal-bar:nth-child(1) { height: 6px; animation-delay: 0s; }
.signal-bar:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.signal-bar:nth-child(3) { height: 18px; animation-delay: 0.3s; }
.signal-bar:nth-child(4) { height: 14px; animation-delay: 0.45s; }
.signal-bar:nth-child(5) { height: 8px; animation-delay: 0.6s; }

@keyframes signalPulse {
  0% { transform: scaleY(0.4); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

.cv-current h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink-primary);
}

.cv-current > p:last-child {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.8;
}

/* Publications & Education Entries */
.cv-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-subtle);
}

.cv-entry:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.cv-entry strong {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
}

.cv-entry span {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.publication-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--orange);
  border: 1px solid var(--line-orange);
  border-radius: 8px;
  background: var(--orange-dim);
  align-self: flex-start;
  margin-top: 6px;
  transition: all 0.2s var(--ease-fluid);
}

.publication-button:hover {
  background: var(--orange);
  color: var(--bg-deep);
  box-shadow: 0 0 16px var(--orange-glow);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Dialogs / Modals
   -------------------------------------------------------------------------- */
dialog {
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-orange);
  border-radius: 24px;
  background: var(--bg-glass-heavy);
  color: var(--ink-primary);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 155, 84, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  max-width: calc(100vw - 32px);
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(4, 8, 13, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Dialog Entrance Animation */
dialog[open] {
  animation: dialogScaleIn 0.35s var(--ease-spring) forwards;
}

@keyframes dialogScaleIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.currency-dialog { width: min(780px, 94vw); max-height: 92vh; overflow-y: auto; }
.travel-dialog { width: min(480px, 92vw); }
.state-travel-dialog { width: min(920px, 94vw); max-height: 94vh; overflow-y: auto; }

.currency-dialog-inner,
.state-dialog-inner {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
}

.travel-dialog-inner {
  padding: clamp(28px, 5vw, 44px);
}

.currency-dialog-close,
.state-dialog-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-primary);
  font-size: 24px;
  line-height: 1;
  transition: all 0.2s var(--ease-fluid);
  z-index: 10;
}

.currency-dialog-close:hover,
.state-dialog-close:hover {
  background: var(--orange);
  color: var(--bg-deep);
  border-color: var(--orange);
  box-shadow: 0 0 16px var(--orange-glow);
}

.currency-dialog-country,
.state-dialog-kicker,
.travel-dialog-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 8px;
}

.currency-dialog-title,
.state-dialog-title,
.travel-dialog h3 {
  margin: 0 40px 24px 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

/* Dialog Image & Story */
.state-dialog-image {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--line-subtle);
  background: #050b10;
  margin-bottom: 24px;
}

.state-dialog-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.state-dialog-status {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid var(--line-orange);
  align-self: flex-start;
  margin: 0;
}

.state-dialog-status.is-not-covered {
  color: var(--coral);
  background: rgba(255, 121, 80, 0.1);
  border-color: rgba(255, 121, 80, 0.3);
}

.state-dialog-place {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  color: var(--ink-primary);
}

.state-dialog-date {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.state-dialog-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-secondary);
}

.state-dialog-placeholder {
  padding: 48px 24px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed var(--line-bright);
  background: rgba(14, 25, 36, 0.6);
  color: var(--ink-muted);
  font-size: 14px;
}

/* Currency Modal Fact Cards */
.currency-dialog-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.currency-dialog-images .currency-face {
  position: relative !important;
  inset: auto !important;
  min-height: 250px !important;
  transform: none !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.currency-dialog-images .currency-face .currency-badge {
  display: none !important;
}

.currency-dialog-images .currency-face-front::before {
  content: "OBVERSE";
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--amber);
  background: rgba(5, 12, 18, 0.9);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-subtle);
  z-index: 5;
}

.currency-dialog-images .currency-face-back::before {
  content: "REVERSE";
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--coral);
  background: rgba(5, 12, 18, 0.9);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-subtle);
  z-index: 5;
}

.currency-dialog-images .currency-note-face.currency-face-front::before {
  content: "FRONT";
}

.currency-dialog-images .currency-note-face.currency-face-back::before {
  content: "BACK";
}

.currency-dialog-images .currency-face img {
  width: min(100%, 200px);
  height: 200px;
}

.currency-dialog-images .currency-note-face img {
  width: min(100%, 560px);
  height: 230px;
}

.currency-dialog-images .currency-us-crop {
  width: 200px;
  height: 200px;
}

.currency-dialog-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.currency-dialog-facts > div {
  padding: 14px;
  border: 1px solid var(--line-subtle);
  border-radius: 12px;
  background: rgba(5, 11, 18, 0.6);
}

.currency-dialog-facts dt {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.currency-dialog-facts dd {
  margin: 0;
  font-size: 13px;
  color: var(--ink-primary);
  font-weight: 500;
}

.currency-dialog-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-secondary);
}

/* Travel Dialog Actions */
.travel-dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.travel-dialog-primary {
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--bg-deep);
  background: var(--orange);
  border: 1px solid var(--orange);
  box-shadow: 0 4px 18px var(--orange-glow);
  transition: all 0.25s var(--ease-fluid);
}

.travel-dialog-primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 4px 20px var(--amber-glow);
  transform: translateY(-2px);
}

.travel-dialog-close {
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--ink-secondary);
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s ease;
}

.travel-dialog-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-primary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 32px;
  min-height: 110px;
  padding: 32px var(--pad-x);
  border-top: 1px solid var(--line-subtle);
  background: rgba(4, 8, 13, 0.75);
  backdrop-filter: blur(12px);
  color: var(--ink-muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer a:not(.monogram) {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-secondary);
  transition: color 0.2s ease;
}

.site-footer a:not(.monogram):hover {
  color: var(--orange);
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   Progressive Scroll Reveals
   -------------------------------------------------------------------------- */
html.is-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-fluid), transform 0.75s var(--ease-fluid);
  will-change: opacity, transform;
}

html.is-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

@keyframes spin{to{transform:translate(-50%,-50%) rotate(338deg) scaleY(.49)}}
@keyframes spin-reverse{to{transform:translate(-50%,-50%) rotate(-382deg) scaleY(.49)}}
@keyframes sphere-breathe{50%{box-shadow:-12px 15px 35px rgb(0 0 0 / 32%),0 0 95px rgb(255 155 84 / 32%),inset -20px -20px 35px rgb(0 0 0 / 34%);transform:translate(-50%,calc(-50% - 8px)) scale(1.03)}}
@keyframes satellite{from{transform:translate(-50%,-50%) rotate(0) translateX(165px) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg) translateX(165px) rotate(-360deg)}}
@keyframes scan{50%{transform:translateX(150%)}}

.hero-sphere {
  background: radial-gradient(circle at 30% 25%, #fff2df 0 2%, #ffc17a 9%, #ed853b 34%, #a34f2b 61%, #3b251d 83%, #151a1b 100%);
  box-shadow: -18px 20px 45px rgb(0 0 0 / 34%), 0 0 70px rgb(255 155 84 / 22%), inset -20px -20px 35px rgb(0 0 0 / 34%);
}

.hero-sphere::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 68% 36%, rgb(255 209 149 / 20%), transparent 44%);
  content: "";
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-sphere::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 239 218 / 30%);
  border-radius: inherit;
  box-shadow: inset 7px 7px 18px rgb(255 237 211 / 12%), inset -18px -14px 28px rgb(20 10 5 / 48%);
  content: "";
  pointer-events: none;
}

.hero-sphere i {
  background: rgb(255 246 230 / 70%);
  box-shadow: 0 0 16px rgb(255 226 185 / 60%);
}

.hero-satellite {
  background: radial-gradient(circle at 35% 30%, #fff4e5, #ff9b54 45%, #c34f1b 100%);
  box-shadow: 0 0 27px rgba(255, 155, 84, 0.72);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 80px;
  }

  .hero-copy {
    order: 2;
  }

  .hero-art {
    order: 1;
    width: min(80vw, 420px);
    justify-self: center;
  }

  .hero-telemetry-badge {
    padding: 4px 8px;
  }
  .badge-label {
    font-size: 7px;
  }
  .badge-val {
    font-size: 9px;
  }

  .stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
    transform: none;
    margin: 40px var(--pad-x);
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cv-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
    --nav-height: 68px;
  }

  .nav-toggle {
    display: grid;
    place-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-bright);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink-primary);
    cursor: pointer;
    z-index: 60;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 17px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  nav#site-navigation {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line-bright);
    background: rgba(8, 14, 22, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 55;
  }

  nav#site-navigation.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  nav#site-navigation a {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line-subtle);
    font-size: 13px;
  }

  nav#site-navigation a:last-child {
    border-bottom: none;
  }

  nav#site-navigation a.family-link {
    width: auto;
    margin-top: 0;
    padding: 13px 14px;
    border: 0;
    border-bottom: 1px solid var(--line-subtle);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  nav#site-navigation a.family-link:hover {
    color: var(--ink-primary);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    transform: none;
  }

  nav#site-navigation a::after {
    display: none;
  }

  .travel-layout {
    grid-template-columns: 1fr;
  }

  .currency-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .travel-heading,
  .blog-heading {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .site-footer p {
    order: 3;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(48px, 14vw, 76px);
  }

  .stats-ribbon {
    grid-template-columns: 1fr;
  }

  .currency-dialog-images,
  .currency-dialog-facts {
    grid-template-columns: 1fr;
  }

  .state-search-input {
    width: 140px;
  }

  .state-search-input:focus {
    width: 180px;
  }
}

@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;
  }

  html.is-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
