/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Zefani Demo — uppercase-only display face, Regular weight only.
   Falls back to Space Grotesk if .otf fails to load. */
@font-face {
  font-family: 'Zefani Demo';
  src: url('fonts/Zefani-Demo.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Samarkan — Latin glyphs styled with Devanagari/Indian flair.
   Used only on the Carnatic section header. */
@font-face {
  font-family: 'Samarkan';
  src: url('fonts/Samarkan.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark:        #05060a;
  --bg-section:     #07090f;
  --accent-blue:    #4a9eff;
  --accent-warm:    #ff6b35;
  --text-primary:   rgba(255,255,255,0.92);
  --text-secondary: rgba(255,255,255,0.60);
  --text-dim:       rgba(255,255,255,0.45);
  --border:         rgba(255,255,255,0.07);
  --font-sans:      'Space Grotesk', 'Inter', sans-serif;
  --font-light:     'Inter', sans-serif;
  --font-display:   'Zefani Demo', 'Space Grotesk', 'Inter', sans-serif;
}

/* All large section headers — Zefani is uppercase-only,
   so force uppercase for any sentence-case source text */
.section-heading,
.sc-s2-heading,
.photo-carousel-title,
.travel-title,
.about-name,
.footer-heading {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;          /* Zefani demo has only Regular */
  letter-spacing: 0.01em;    /* slightly looser at large sizes */
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

/* Visually hidden but accessible to screen readers */
.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;
}

/* Skip navigation link — visible on focus only */
.skip-nav {
  position: fixed;
  top: -100px; left: 16px;
  background: var(--accent-blue);
  color: #fff;
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10000;
  transition: top 0.2s ease;
}
.skip-nav:focus { top: 16px; }

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* Hide default cursor only on pointer-fine (mouse) devices */
@media (pointer: fine) {
  body { cursor: none; }
}

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

/* ============================================================
   CURSOR CANVAS
   ============================================================ */
#cursor-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
  scroll-snap-align: start;
}

/* Triptych — sits behind portrait, revealed on hover */
#hero-bottom {
  position: absolute;
  inset: -10% -5%;        /* oversized for parallax room */
  background-image: url('images/triptych.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
  transition: transform 0.05s linear;
}

/* Portrait rendered here; holes punched on hover */
#reveal-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Cinematic gradient overlay — sits above canvas, below UI */
#hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.42) 45%,
    rgba(0,0,0,0.72) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ---- NAVIGATION ---- */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  padding: 34px 52px;
  transition: background 0.5s ease, padding 0.4s ease, backdrop-filter 0.5s ease;
}

#main-nav.scrolled {
  background: rgba(5,6,10,0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px 52px;
}

.nav-links {
  display: flex;
  gap: 38px;
  align-items: center;
}

.nav-links a {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-blue);
  transition: width 0.35s ease;
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-links a:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: #e84400;
  transition: width 0.4s ease;
}
.nav-links a.nav-active {
  color: #e84400;
}
.nav-links a.nav-active::after { width: 100%; }

/* Hamburger toggle — hidden on desktop */
#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
}
#nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.7);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- HERO TEXT FADE ON CURSOR HOVER ---- */
#hero-name,
#social-panel,
#hero-tagline {
  transition: opacity 0.35s ease;
}

#hero-name.cursor-over,
#social-panel.cursor-over,
#hero-tagline.cursor-over {
  opacity: 0;
}

/* ---- HERO NAME ---- */
#hero-name {
  position: absolute;
  top: 50%;
  left: 52px;
  transform: translateY(-56%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  line-height: 0.88;
  gap: 2px;
}

.name-line {
  display: block;
  font-size: clamp(38px, 5.8vw, 86px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

/* ---- SOCIAL PANEL ---- */
#social-panel {
  position: absolute;
  bottom: 86px;
  left: 52px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.social-link:hover { color: #fff; }

/* ---- HERO TAGLINE ---- */
#hero-tagline {
  position: absolute;
  bottom: 86px;
  right: 52px;
  z-index: 10;
  text-align: right;
}

.tagline-role {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 7px;
}

.tagline-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-light);
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ---- HOVER HINT ---- */
#hover-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.55);
  animation: hintFade 3s ease 2s forwards;
  pointer-events: none;
}

@keyframes hintFade {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* ---- SCROLL INDICATOR ---- */
#scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.28);
  font-size: 8.5px;
  letter-spacing: 0.22em;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.38));
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.85; transform: scaleY(1.15); }
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.dark-section {
  background: var(--bg-section);
  padding: 130px 0;
  position: relative;
}

.dark-section + .dark-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 52px;
  right: 52px;
  height: 1px;
  background: var(--border);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 52px;
}

.section-inner.centered { text-align: center; }

.section-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 22px;
  font-family: var(--font-light);
}

.section-heading {
  font-size: clamp(34px, 4.8vw, 70px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 52px;
  color: #fff;
}

.section-intro {
  max-width: 580px;
  margin: 0 auto 52px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
  font-family: var(--font-light);
  font-weight: 300;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SPACECRAFT SECTION — cinematic sticky-scroll animation
   ============================================================ */
#spacecraft {
  position: relative;
  height: 320vh;
  scroll-snap-align: start;
}

#sc-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #02040a;
}

/* Starfield */
#sc-sticky::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at  8% 14%,rgba(255,255,255,.52) 0%,transparent 100%),
    radial-gradient(1px 1px at 23% 38%,rgba(255,255,255,.28) 0%,transparent 100%),
    radial-gradient(2px 2px at 39%  9%,rgba(255,255,255,.60) 0%,transparent 100%),
    radial-gradient(1px 1px at 56% 61%,rgba(255,255,255,.24) 0%,transparent 100%),
    radial-gradient(1px 1px at 70% 27%,rgba(255,255,255,.40) 0%,transparent 100%),
    radial-gradient(2px 2px at 81% 74%,rgba(255,255,255,.52) 0%,transparent 100%),
    radial-gradient(1px 1px at 92% 12%,rgba(255,255,255,.30) 0%,transparent 100%),
    radial-gradient(1px 1px at 14% 83%,rgba(255,255,255,.22) 0%,transparent 100%),
    radial-gradient(1px 1px at 33% 68%,rgba(255,255,255,.35) 0%,transparent 100%),
    radial-gradient(1px 1px at 64% 46%,rgba(255,255,255,.44) 0%,transparent 100%),
    radial-gradient(1px 1px at  5% 52%,rgba(255,255,255,.30) 0%,transparent 100%),
    radial-gradient(1px 1px at 76% 88%,rgba(255,255,255,.20) 0%,transparent 100%),
    radial-gradient(1px 1px at 18% 55%,rgba(255,255,255,.38) 0%,transparent 100%),
    radial-gradient(1px 1px at 47% 82%,rgba(255,255,255,.26) 0%,transparent 100%),
    radial-gradient(2px 2px at 62% 22%,rgba(255,255,255,.44) 0%,transparent 100%),
    radial-gradient(1px 1px at 85% 41%,rgba(255,255,255,.32) 0%,transparent 100%),
    radial-gradient(1px 1px at 28% 15%,rgba(255,255,255,.20) 0%,transparent 100%),
    radial-gradient(1px 1px at 73% 58%,rgba(255,255,255,.42) 0%,transparent 100%),
    radial-gradient(1px 1px at 11% 70%,rgba(255,255,255,.28) 0%,transparent 100%),
    radial-gradient(1px 1px at 52% 35%,rgba(255,255,255,.18) 0%,transparent 100%),
    radial-gradient(2px 2px at 95% 64%,rgba(255,255,255,.50) 0%,transparent 100%),
    radial-gradient(1px 1px at 37% 90%,rgba(255,255,255,.22) 0%,transparent 100%),
    radial-gradient(1px 1px at 67%  5%,rgba(255,255,255,.36) 0%,transparent 100%),
    radial-gradient(1px 1px at  3% 32%,rgba(255,255,255,.24) 0%,transparent 100%);
}

/* Ambient glow */
#sc-sticky::after {
  content: ''; position: absolute;
  width: 70vw; height: 55vh; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(ellipse at center,
    rgba(74,158,255,.07) 0%, rgba(180,77,255,.04) 45%, transparent 75%);
  pointer-events: none; border-radius: 50%; z-index: 0;
}

/* ── Scene 1 ─────────────────────────────── */
#sc-s1 {
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  will-change: opacity;
}

#sc-s1-inner {
  position: relative; z-index: 2;
  text-align: center;
  will-change: transform;
  transform-origin: center center;
}

.sc-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: .28em;
  color: rgba(255,255,255,.55); text-transform: uppercase;
  margin-bottom: 36px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .7s ease, transform .7s ease;
}
.sc-label.sc-in { opacity: 1; transform: translateY(0); }

#sc-hero-svg {
  display: block;
  width: min(88vw, 960px);
  height: auto;
  overflow: visible;
}

.sc-svg-word {
  opacity: 0;
  transform: translateY(18px);
  transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .6s ease;
}
.sc-svg-word.sc-in { opacity: 1; transform: translateY(0); }

.sc-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: .22em;
  color: rgba(255,255,255,.55); text-transform: uppercase;
  margin-top: 40px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .7s ease, transform .7s ease;
}
.sc-sub.sc-in { opacity: 1; transform: translateY(0); }

/* ── Scene 2 ─────────────────────────────── */
#sc-s2 {
  position: absolute; inset: 0; z-index: 9;
  background: #05060a;
  display: flex; align-items: stretch;
  clip-path: circle(0% at 50% 50%);
  opacity: 0;
  will-change: clip-path, opacity;
}

.sc-s2-left {
  flex: 0 0 50%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 60px 80px 80px;
}

.sc-s2-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: .28em;
  color: rgba(255,255,255,.55); text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.sc-s2-label.sc-in { opacity: 1; transform: translateY(0); }

.sc-s2-heading {
  font-size: clamp(34px, 4.4vw, 62px); font-weight: 700;
  letter-spacing: -.035em; line-height: .95; color: #fff;
  margin-bottom: 28px;
  opacity: 0; transform: translateY(22px);
  transition: opacity .85s ease, transform .85s ease;
}
.sc-s2-heading.sc-in { opacity: 1; transform: translateY(0); }

.sc-s2-desc {
  font-size: 14px; line-height: 1.92;
  color: rgba(255,255,255,.46); font-weight: 300;
  font-family: var(--font-light);
  margin-bottom: 50px; max-width: 460px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s ease, transform .8s ease;
}
.sc-s2-desc.sc-in { opacity: 1; transform: translateY(0); }

.sc-s2-stats {
  display: flex; gap: 44px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .75s ease, transform .75s ease;
}
.sc-s2-stats.sc-in { opacity: 1; transform: translateY(0); }

.sc-stat {
  border-left: 1px solid rgba(255,255,255,.09);
  padding-left: 20px;
}

.sc-stat-n {
  display: block; font-size: 44px; font-weight: 700;
  letter-spacing: -.04em; color: #fff; line-height: 1;
}

.sc-stat-l {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; letter-spacing: .16em;
  color: rgba(255,255,255,.55); text-transform: uppercase;
  margin-top: 7px;
}

.sc-s2-right {
  flex: 1; position: relative; background: #02040a;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  border-left: 1px solid rgba(255,255,255,.05);
  opacity: 0; transition: opacity 1s ease .1s;
}
.sc-s2-right.sc-in { opacity: 1; }

.sc-s2-right::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(2,4,10,.55) 100%);
  pointer-events: none; z-index: 1;
}

.sc-s2-right video {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center center;
  clip-path: inset(16% 0 16% 0);
}

.sc-corner {
  position: absolute; width: 24px; height: 24px; z-index: 2;
  opacity: 0; transition: opacity .5s ease .7s;
}
.sc-s2-right.sc-in .sc-corner { opacity: 1; }
.sc-corner-tl { top:20px;left:20px;   border-top:1px solid rgba(74,158,255,.36); border-left:1px solid rgba(74,158,255,.36); }
.sc-corner-tr { top:20px;right:20px;  border-top:1px solid rgba(74,158,255,.36); border-right:1px solid rgba(74,158,255,.36); }
.sc-corner-bl { bottom:20px;left:20px; border-bottom:1px solid rgba(74,158,255,.36); border-left:1px solid rgba(74,158,255,.36); }
.sc-corner-br { bottom:20px;right:20px; border-bottom:1px solid rgba(74,158,255,.36); border-right:1px solid rgba(74,158,255,.36); }

/* ============================================================
   CARNATIC MUSIC
   ============================================================ */

/* ---- CARNATIC — light section overrides ---- */
#carnatic {
  background: #f2ece0;   /* solid fallback; real bg rendered in #carnatic-bg */
  overflow: hidden;
}

#carnatic::before { display: none; }

#carnatic .section-inner {
  position: relative;
  z-index: 3;
  background: rgba(246, 240, 230, 0.88);  /* solid — no backdrop-filter compositor cost */
  border: 1px solid rgba(190, 155, 100, 0.20);
  border-radius: 4px;
  padding: 80px 80px 72px;
  box-shadow:
    0 4px 64px rgba(80, 48, 12, 0.10),
    inset 0 1px 0 rgba(255, 240, 200, 0.50);
}

#carnatic .section-heading {
  font-family: 'Samarkan', 'Yatra One', serif;
  color: #140a02;
  font-size: clamp(64px, 8.5vw, 132px);   /* Samarkan reads smaller — bumped up */
  letter-spacing: 0.02em;                  /* Samarkan needs breathing room */
  line-height: 1.0;
  margin-bottom: 36px;
  text-transform: none;                    /* override the global uppercase rule */
}

#carnatic .section-intro {
  color: rgba(28, 14, 3, 0.70);
  font-size: 15.5px;
  line-height: 1.9;
  max-width: 560px;
}

#carnatic .video-wrapper {
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 12px 48px rgba(60, 35, 8, 0.18);
}

/* CSS fallback: fades in if JS never runs */
@keyframes carnaticBgIn {
  from { opacity: 0; }
  to   { opacity: 0.82; }
}

/* JS-driven parallax background */
#carnatic-bg {
  position: absolute;
  inset: -18% 0;
  background-image: url('images/carnatic-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: url(#organic-breathe);   /* set once; JS only mutates SVG attrs */
  will-change: transform;           /* opacity handled cheaply; filter stays on CPU layer */
  z-index: 0;
  /* Fallback: JS inline style.opacity overrides this; fires only if JS absent */
  animation: carnaticBgIn 2s ease 1s both;
}

/* Gradient: blends dark previous section → transparent cream */
#carnatic-top-fade {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 260px;
  background: linear-gradient(to bottom, var(--bg-section) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Gradient: blends cream → dark next section */
#carnatic-bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-section) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Decorative parallax circles */
.carnatic-circle {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  opacity: 0;             /* JS fades in after bg */
  will-change: transform, opacity;
  z-index: 1;
}

.carnatic-circle-left {
  bottom: -110px;
  left:   -100px;
  background-image: url('images/carnatic-flute.png');
}

.carnatic-circle-right {
  top:   -110px;
  right: -100px;
  background-image: url('images/carnatic-jewelry.jpg');
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   PHOTOGRAPHY — infinite carousel
   ============================================================ */
#photography {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #02030a;
  scroll-snap-align: start;
  position: relative;
}

.photo-carousel-header {
  flex-shrink: 0;
  height: 110px;
  display: flex;
  align-items: flex-end;
  padding: 0 52px 18px;
  position: relative;
  z-index: 4;
}

.photo-carousel-title {
  font-size: clamp(34px, 4.8vw, 70px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: #fff;
}

.carousels-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
  min-height: 0;
}

.carousel-row {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

/* Edge fade */
.carousel-row::before,
.carousel-row::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 80px; z-index: 2; pointer-events: none;
}
.carousel-row::before {
  left: 0;
  background: linear-gradient(to right, #02030a, transparent);
}
.carousel-row::after {
  right: 0;
  background: linear-gradient(to left, #02030a, transparent);
}

.carousel-track {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 100%;
  padding: 0 4px;
  will-change: transform;
}

/* Carousel animation driven by JS — see script.js initCarousels() */

/* White photo-print frame */
.c-frame {
  flex-shrink: 0;
  background: #fff;
  padding: 16px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.c-frame img {
  height: 100%;
  width: auto;
  display: block;
  filter: brightness(0.88) saturate(0.9);
}

/* ============================================================
   TRAVEL
   ============================================================ */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.travel-card {
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.4s;
  background: rgba(255,255,255,0.02);
}

.travel-card:hover { border-color: rgba(255,255,255,0.18); }

.travel-img {
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: #0c0f16;
  position: relative;
  overflow: hidden;
  transition: transform 0.7s ease;
}

.travel-card:hover .travel-img { transform: scale(1.04); }

.travel-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.65);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 11px;
  font-family: var(--font-light);
}

.travel-info { padding: 22px 22px 26px; }

.travel-location {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.travel-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 11px;
}

.travel-excerpt {
  font-size: 13px;
  line-height: 1.82;
  color: var(--text-secondary);
  font-family: var(--font-light);
  font-weight: 300;
  margin-bottom: 16px;
}

.travel-date {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}

/* ============================================================
   ABOUT — resume timeline
   ============================================================ */
.about-header {
  padding-bottom: 56px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.about-name {
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 18px;
}

.about-descriptor {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.10em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ---- Timeline entries ---- */
.resume-entries {
  display: flex;
  flex-direction: column;
}

.resume-entry {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 56px;
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.3s;
}

.resume-entry:hover {
  background: rgba(255,255,255,0.014);
  margin: 0 -52px;
  padding-left: 52px;
  padding-right: 52px;
}

.entry-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-warm);
  letter-spacing: 0.10em;
  padding-top: 6px;
  opacity: 0.88;
}

.entry-body {
  min-width: 0;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.entry-role {
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: #fff;
  line-height: 1.15;
}

.entry-duration {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--accent-warm);
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0.68;
  flex-shrink: 0;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.entry-org {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-light);
  letter-spacing: 0.03em;
}

.entry-sep {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1;
}

.entry-location {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-light);
}

.entry-dates {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--accent-blue);
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.entry-desc {
  font-size: 14.5px;
  line-height: 1.92;
  color: var(--text-secondary);
  font-family: var(--font-light);
  font-weight: 300;
  margin-bottom: 26px;
  max-width: 700px;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.entry-tags span {
  border: 1px solid var(--border);
  padding: 5px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.13em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
}

.entry-tags span:hover {
  border-color: rgba(255, 107, 53, 0.35);
  color: var(--accent-warm);
}

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
#contact {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 90px 52px 48px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.footer-heading {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}

.footer-socials { display: flex; gap: 26px; align-items: center; }

.footer-socials a {
  color: rgba(255,255,255,0.36);
  transition: color 0.3s;
}

.footer-socials a:hover { color: #fff; }

.footer-copy {
  font-size: 10.5px;
  color: var(--text-dim);
  font-family: var(--font-light);
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .spacecraft-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .resume-entry {
    grid-template-columns: 52px 1fr;
    gap: 0 32px;
  }

  .travel-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

}

@media (max-width: 768px) {
  .resume-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .resume-entry:hover {
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .entry-number { padding-top: 0; }

  .section-inner { padding: 0 24px; }
  #carnatic .section-inner { padding: 48px 28px 44px; }
  #main-nav { padding: 22px 24px; }
  #main-nav.scrolled { padding: 16px 24px; }

  .nav-links { gap: 18px; }
  .nav-links a { font-size: 9.5px; }

  #hero-name { left: 24px; }
  .name-line { font-size: clamp(30px, 10vw, 58px); }

  #social-panel { left: 24px; bottom: 64px; }
  #hero-tagline { right: 24px; bottom: 64px; }

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


  #contact { padding: 64px 24px 36px; }
}

@media (max-width: 768px) {
  /* Spacecraft: reduce from 320vh to 150vh on mobile */
  #spacecraft { height: 150vh; scroll-snap-align: none; }

  /* Scene 2 split → stacked */
  #sc-s2 { flex-direction: column; }
  .sc-s2-left {
    flex: 0 0 auto;
    padding: 48px 28px 32px;
  }
  .sc-s2-right { flex: 1; min-height: 45vh; }
}

@media (max-width: 520px) {
  /* Hamburger replaces nav links */
  #nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5,6,10,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 15px;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.75);
  }

}

@media (max-width: 360px) {
  #hero-name { left: 20px; }
  .name-line  { font-size: clamp(26px, 9vw, 42px); }
}

/* ============================================================
   INTRO OVERLAY — fullscreen video → fade to black → reveal page
   ============================================================ */
body.intro-active { overflow: hidden; }

#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: none;
}

#intro-video {
  width: 50%;
  height: 50%;
  object-fit: contain;
  display: block;
}

#intro-fade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#intro-overlay.fading #intro-fade { opacity: 1; }

#intro-overlay.done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s linear;
}
