/* ============================================================
   CHANDRASHEKHAR VARMA — PERSONAL WEBSITE
   Design Language: Refined Warm Editorial
   Fonts: Cormorant Garamond (display) + Inter (body)
   Palette: Parchment, Terracotta, Deep Brown
   ============================================================ */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
button { background: none; border: none; cursor: pointer; font: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- TOKENS ---- */
:root {
  /* Palette */
  --bg:           #f4ede2;
  --bg-deep:      #ede4d4;
  --surface:      #faf6ef;
  --surface-2:    #f0e9db;
  --border:       rgba(100, 70, 30, 0.12);
  --border-mid:   rgba(100, 70, 30, 0.2);
  --text:         #1e160c;
  --text-muted:   #6b5840;
  --text-faint:   #a8927a;
  --accent:       #9c4f1e;
  --accent-hover: #7d3e17;
  --accent-light: rgba(156, 79, 30, 0.1);
  --accent-glow:  rgba(156, 79, 30, 0.18);
  --white:        #fff;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Type scale */
  --t-xs:   0.72rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-md:   1.125rem;
  --t-lg:   1.375rem;
  --t-xl:   clamp(1.75rem, 2.5vw, 2.5rem);
  --t-2xl:  clamp(2.5rem, 4vw, 3.75rem);
  --t-hero: clamp(3.5rem, 7vw, 7rem);

  /* Space */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem;   --s10: 2.5rem;
  --s12: 3rem;   --s16: 4rem;  --s20: 5rem;  --s24: 6rem;

  /* Misc */
  --radius: 0.625rem;
  --radius-lg: 1rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
  --max-w: 1200px;
  --shadow-sm: 0 2px 8px rgba(30, 15, 5, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 15, 5, 0.1);
  --shadow-lg: 0 20px 60px rgba(30, 15, 5, 0.16);
}

[data-theme="dark"] {
  --bg:           #110d08;
  --bg-deep:      #0d0a06;
  --surface:      #1a140d;
  --surface-2:    #211a12;
  --border:       rgba(200, 160, 100, 0.1);
  --border-mid:   rgba(200, 160, 100, 0.18);
  --text:         #e8ddd0;
  --text-muted:   #a08870;
  --text-faint:   #5c4a38;
  --accent:       #c8784a;
  --accent-hover: #d98e60;
  --accent-light: rgba(200, 120, 74, 0.12);
  --accent-glow:  rgba(200, 120, 74, 0.2);
}

/* ---- BASE ---- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.7;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav-bar.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
}
.nav-logo-initials {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s6);
}
.nav-link {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: var(--s3); }

.theme-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.theme-btn:hover { color: var(--text); background: var(--accent-light); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.burger-btn {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text);
}
.burger-btn span {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  transform-origin: center;
}
.burger-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--s4) 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.nav-drawer.open { max-height: 300px; }
.drawer-link {
  padding: var(--s4) var(--s6);
  font-size: var(--t-base);
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.drawer-link:last-child { border-bottom: none; }
.drawer-link:hover { color: var(--accent); background: var(--accent-light); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger-btn { display: flex; }
  .nav-drawer { display: flex; }
  .nav-logo-name { display: block; font-size: var(--t-base); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero-img.loaded { transform: scale(1); }

.hero-vignette {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to top,    rgba(10, 6, 2, 0.92) 0%, rgba(10, 6, 2, 0.55) 35%, rgba(10, 6, 2, 0.15) 65%, transparent 100%),
    linear-gradient(to right,  rgba(10, 6, 2, 0.4) 0%, transparent 50%);
}

.hero-body {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s8) var(--s20);
  width: 100%;
}

.hero-kicker {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s5);
}

.hero-title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 300;
  line-height: 0.95;
  color: #f0e8dc;
  margin-bottom: var(--s6);
  letter-spacing: -0.02em;
}
.hero-title-line { display: block; }
.hero-title-accent {
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 232, 220, 0.6);
}

.hero-sub {
  font-size: var(--t-md);
  color: rgba(240, 220, 195, 0.75);
  max-width: 44ch;
  line-height: 1.6;
  margin-bottom: var(--s8);
}

.hero-ctas {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
}
.cta-primary {
  padding: 0.85rem var(--s8);
  background: var(--accent);
  color: #fff;
  border-radius: 2px;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.cta-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.cta-ghost {
  padding: 0.85rem var(--s8);
  border: 1px solid rgba(240, 220, 195, 0.35);
  color: rgba(240, 220, 195, 0.85);
  border-radius: 2px;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.cta-ghost:hover {
  border-color: rgba(240, 220, 195, 0.7);
  color: #fff;
  background: rgba(240, 220, 195, 0.08);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  right: var(--s10);
  bottom: var(--s10);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 220, 195, 0.45);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(240, 220, 195, 0.4));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@media (max-width: 640px) {
  .hero-body { padding: 0 var(--s6) var(--s16); }
  .hero-scroll-hint { display: none; }
}

/* ============================================================
   SECTION BANNER (Professional / Interests headers)
   ============================================================ */
.section-banner {
  position: relative;
  height: 52vh;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.section-banner-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transition: transform 0.6s var(--ease);
}
.section-banner:hover .section-banner-img { transform: scale(1.025); }
.section-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--bg) 90%, transparent) 0%,
    color-mix(in srgb, var(--bg) 40%, transparent) 40%,
    transparent 100%
  );
}
.section-banner-content {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s10) var(--s8);
  width: 100%;
}
.banner-title {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
}

/* ============================================================
   CONTENT BLOCKS (shared)
   ============================================================ */
.eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}
.rule {
  width: 40px; height: 1.5px;
  background: var(--accent);
  margin-bottom: var(--s6);
}

.content-block {
  padding: clamp(var(--s12), 8vw, var(--s24)) var(--s8);
}
.content-block-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: start;
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: var(--s10); }
}

/* ============================================================
   PROFESSIONAL — PROSE
   ============================================================ */
.prose-col p {
  font-size: var(--t-base);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--s5);
}
.prose-col p:last-child { margin-bottom: 0; }
.prose-col strong { color: var(--text); font-weight: 600; }

/* ============================================================
   EXPERTISE CARDS
   ============================================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s6);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.exp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-light);
  opacity: 0;
  transition: opacity 0.25s;
}
.exp-card:hover, .exp-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-mid);
  outline: none;
}
.exp-card:hover::before, .exp-card:focus-visible::before { opacity: 1; }

.exp-icon {
  color: var(--accent);
  margin-bottom: var(--s2);
}
.exp-name {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}
.exp-sub {
  font-size: var(--t-xs);
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.exp-arrow {
  font-size: 1rem;
  color: var(--accent);
  margin-top: auto;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.2s, transform 0.2s;
}
.exp-card:hover .exp-arrow,
.exp-card:focus-visible .exp-arrow { opacity: 1; transform: translate(0, 0); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-block {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(var(--s12), 6vw, var(--s20)) var(--s8);
}
.timeline-inner {
  max-width: 720px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: var(--s10);
  margin-top: var(--s2);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}
.tl-item {
  position: relative;
  padding-bottom: var(--s10);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: calc(-1 * var(--s10) + 2px);
  top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.tl-phase {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s2);
}
.tl-title {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--s3);
}
.tl-desc {
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 58ch;
}

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-block {
  padding: clamp(var(--s12), 6vw, var(--s20)) var(--s8);
}
.edu-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
}
@media (max-width: 640px) { .edu-inner { grid-template-columns: 1fr; } }

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s8);
  display: flex;
  gap: var(--s5);
  align-items: flex-start;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.edu-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-mid); }
.edu-badge {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.edu-title {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--s2);
}
.edu-desc {
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   INTERESTS — MOSAIC
   ============================================================ */
.interests-intro {
  max-width: 680px;
  margin-bottom: var(--s12);
}
.lead-text {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 300;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.interest-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--s4);
}
.interest-tile { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-2); }
.interest-tile--wide { grid-column: span 2; }

.tile-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.interest-tile--wide .tile-img { height: 340px; }

.interest-tile:hover .tile-img { transform: scale(1.06); }

.tile-overlay {
  position: absolute;
  inset: 0;
  padding: var(--s6);
  background: linear-gradient(to top, rgba(10, 6, 2, 0.88) 0%, rgba(10, 6, 2, 0.45) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f0e8dc;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.interest-tile:hover .tile-overlay { opacity: 1; }

.tile-icon {
  margin-bottom: var(--s3);
  color: var(--accent);
}
.tile-title {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 400;
  margin-bottom: var(--s2);
}
.tile-desc {
  font-size: var(--t-sm);
  color: rgba(240, 232, 220, 0.8);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .interest-mosaic { grid-template-columns: 1fr 1fr; }
  .interest-tile--wide { grid-column: span 2; }
  .tile-overlay { opacity: 1; }
}
@media (max-width: 480px) {
  .interest-mosaic { grid-template-columns: 1fr; }
  .interest-tile--wide { grid-column: span 1; }
}

/* ============================================================
   QUOTE STRIP
   ============================================================ */
.quote-strip {
  background: var(--accent);
  padding: clamp(var(--s10), 5vw, var(--s16)) var(--s8);
  text-align: center;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 240, 225, 0.95);
  line-height: 1.4;
  max-width: 52ch;
  margin: 0 auto var(--s4);
}
.pull-quote cite {
  font-style: normal;
  font-size: var(--t-sm);
  color: rgba(255, 240, 225, 0.6);
  letter-spacing: 0.05em;
}

/* ============================================================
   CONNECT
   ============================================================ */
.connect-grid { align-items: start; }
.connect-title {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--s5);
  line-height: 1.1;
}
.connect-body {
  font-size: var(--t-base);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--s8);
  max-width: 44ch;
}
.social-row {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s10);
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.6rem var(--s5);
  border: 1px solid var(--border-mid);
  border-radius: 2rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.social-pill:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  transform: translateY(-2px);
}

.connect-photo-wrap {
  position: relative;
  display: inline-block;
}
.connect-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -10px 10px 10px -10px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  opacity: 0.4;
}
.connect-photo {
  width: 170px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

/* Contact form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s8);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.form-row label {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.form-row input,
.form-row textarea {
  padding: 0.75rem var(--s4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--t-base);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-faint); }
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-row textarea { min-height: 130px; resize: vertical; }

.form-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  align-self: flex-start;
  padding: 0.85rem var(--s8);
  background: var(--accent);
  color: #fff;
  border-radius: 2px;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.form-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.form-btn:active { transform: translateY(0); }

.form-success {
  display: none;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4);
  background: rgba(60, 110, 40, 0.1);
  border: 1px solid rgba(60, 110, 40, 0.25);
  border-radius: var(--radius);
  color: #3a7a20;
  font-size: var(--t-sm);
  font-weight: 500;
}
.form-success.show { display: flex; }
[data-theme="dark"] .form-success { color: #7dba4a; background: rgba(100, 160, 60, 0.1); border-color: rgba(100, 160, 60, 0.2); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: var(--s10) var(--s8);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s6);
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.footer-initials {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-name {
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-weight: 400;
  color: var(--text);
}
.footer-links {
  display: flex;
  gap: var(--s6);
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: var(--t-sm);
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: var(--t-xs);
  color: var(--text-faint);
  line-height: 1.8;
}
.footer-copy a { transition: color 0.2s; }
.footer-copy a:hover { color: var(--text-muted); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 2, 0, 0.7);
  z-index: 400;
  opacity: 0; pointer-events: none;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%);
  z-index: 500;
  width: min(520px, calc(100vw - var(--s8)));
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: var(--s8);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: var(--s5); right: var(--s5);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--text); background: var(--border); }

.modal-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: var(--s5);
}
.modal-title {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--s3);
  line-height: 1.2;
}
.modal-divider {
  width: 36px; height: 1.5px;
  background: var(--accent);
  margin-bottom: var(--s5);
}
.modal p {
  font-size: var(--t-base);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--s4);
}
.modal p:last-child { margin-bottom: 0; }
.modal strong { color: var(--text); font-weight: 600; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.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;
}

/* Stagger delays for grouped reveals */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.exp-card.reveal:nth-child(1) { transition-delay: 0s; }
.exp-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.exp-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.exp-card.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---- TEXT-ONLY INTEREST TILES ---- */
.interest-tile--text {
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 200px;
  grid-column: span 1 !important;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.interest-tile--text:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-mid);
}
.tile-text-body {
  padding: var(--s8);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.interest-tile--text .tile-icon { color: var(--accent); }
.interest-tile--text .tile-title {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--text);
}
.interest-tile--text .tile-desc {
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- HERO INLINE LINK ---- */
.hero-link {
  color: inherit;
  border-bottom: 1px solid rgba(240, 220, 195, 0.5);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.hero-link:hover {
  color: #fff;
  border-bottom-color: rgba(240, 220, 195, 0.9);
}
