/* ═══════════════════════════════════════════════════════════════
   AMITJYOTI VLOGS — DESIGN SYSTEM
   "The Magical Moving Frame" — vintage brass-and-velvet frames
   that wake up on hover, set against a cinematic midnight palette.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Color ─────────────────────────────────────────── */
  --midnight:        #0b0d13;
  --midnight-deep:    #060709;
  --charcoal:         #201c17;
  --charcoal-light:   #2c2620;
  --parchment:        #f4ecd8;
  --parchment-dim:    #e8dcc0;
  --parchment-ink:    #241d13;
  --gold:             #d4af37;
  --gold-soft:        #e9cf7d;
  --gold-deep:        #96762a;
  --brass:            #8a6e3b;
  --ivory:            #f6f2e6;
  --muted:            #a89a78;
  --muted-dark:       #6b6152;

  /* ── Type ──────────────────────────────────────────── */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Manrope', 'Helvetica Neue', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* ── Layout ────────────────────────────────────────── */
  --edge: clamp(1.5rem, 5vw, 5rem);
  --max-width: 1320px;
  --radius-frame: 4px;
  --ease-frame: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

.icon { display: inline-block; vertical-align: -3px; fill: none; }

/* ── Shared type utilities ─────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
}
.eyebrow-rule { width: 28px; height: 1px; background: var(--gold-soft); opacity: 0.7; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-frame), box-shadow 0.35s var(--ease-frame), background 0.35s;
}
.btn-gold {
  background: linear-gradient(155deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  color: var(--midnight-deep);
}
.btn-gold:hover { transform: translate3d(0, -2px, 0); box-shadow: 0 12px 28px -10px rgba(212, 175, 55, 0.55); }
.btn-ghost {
  border: 1px solid rgba(246, 242, 230, 0.28);
  color: var(--ivory);
}
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

/* ═══════════════════════════════════ HEADER ═══════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.35rem var(--edge);
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 13, 19, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  padding: 0.85rem var(--edge);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark-name { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: var(--ivory); }
.wordmark-sub { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.24em; color: var(--muted); }

.primary-nav { display: flex; gap: 2.2rem; margin-left: auto; }
.primary-nav a {
  position: relative;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--parchment-dim);
  padding-bottom: 3px;
}
.primary-nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold-soft);
  transition: right 0.35s var(--ease-frame);
}
.primary-nav a:hover { color: var(--gold-soft); }
.primary-nav a:hover::after { right: 0; }

.nav-cta {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.6rem 1.1rem;
  color: var(--gold-soft);
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-soft); color: var(--midnight-deep); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav-toggle span { height: 1.5px; background: var(--ivory); transition: transform 0.3s, opacity 0.3s; }

/* ═══════════════════════════════════ HERO ═══════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--midnight-deep);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  background: radial-gradient(120% 100% at 50% 20%, #241c14 0%, #0b0d13 65%, #060709 100%);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(6,7,9,0.96) 0%, rgba(6,7,9,0.35) 46%, rgba(6,7,9,0.55) 100%),
    linear-gradient(100deg, rgba(6,7,9,0.55) 0%, transparent 55%);
}
.hero-grain {
  position: absolute; inset: 0;
  opacity: 0.05; mix-blend-mode: overlay; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.7) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 8rem var(--edge) 6rem;
}
.hero-headline {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ivory);
  max-width: 16ch;
}
.hero-headline em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 1.75rem;
  max-width: 46ch;
  font-size: 1.06rem;
  color: var(--parchment-dim);
}
.hero-actions { display: flex; gap: 1rem; margin-top: 2.6rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; z-index: 1; bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid rgba(246, 242, 230, 0.4);
  border-radius: 20px;
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-cue span {
  width: 3px; height: 7px; border-radius: 2px;
  background: var(--gold-soft);
  animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  80% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; }
}

/* ═══════════════════════════════════ SECTION SCAFFOLDING ═══════════════════════════════════ */
section { padding: 7.5rem var(--edge); }
.section-heading { max-width: 680px; margin: 0 auto 4rem; text-align: center; }
.section-heading h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--ivory); }
.section-heading--light h2 { color: var(--parchment-ink); }
.section-lede { margin-top: 1.1rem; color: var(--muted); font-size: 1.02rem; }

/* ═══════════════════════════════════ STORY (split narrative) ═══════════════════════════════════ */
.story { max-width: var(--max-width); margin: 0 auto; }
.story-heading { max-width: 620px; margin-bottom: 4rem; }
.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.story-panel { display: flex; flex-direction: column; gap: 2rem; }
.story-panel--now { margin-top: 4rem; }
.living-frame--portrait { aspect-ratio: 4 / 5; }
.story-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.story-text h3 { font-size: 1.6rem; margin: 0.5rem 0 0.9rem; color: var(--ivory); }
.story-text p { color: var(--muted); }
.story-text strong { color: var(--parchment-dim); font-weight: 600; }

/* ═══════════════════════════════════ LIVING FRAME (signature component) ═══════════════════════════════════
   An antique brass-cornered frame. Default state: a slightly
   desaturated "sepia" still. Hover / in-view: the sepia lifts,
   the image breathes with a slow parallax scale, and a soft
   gold glow blooms behind the frame — the "photo waking up".
   ═══════════════════════════════════════════════════════════ */
.living-frame {
  position: relative;
  border-radius: var(--radius-frame);
  padding: 10px;
  background: linear-gradient(155deg, #3a2f1e, #17130d 60%, #241d13);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -30px rgba(0, 0, 0, 0.75);
  transform: perspective(1000px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translate3d(0,0,0);
  transition: transform 0.4s var(--ease-frame), box-shadow 0.4s var(--ease-frame);
  will-change: transform;
}
.living-frame::before {
  /* faux inner bevel, like a mat board around the photo */
  content: '';
  position: absolute; inset: 5px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}
.living-frame:hover,
.living-frame:focus-within,
.living-frame.is-active {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 60px -12px rgba(212, 175, 55, 0.35);
}

.frame-media {
  position: relative;
  overflow: hidden;
  border-radius: 1px;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
}
.frame-media-inner {
  position: absolute; inset: 0;
  transition: opacity 0.6s var(--ease-frame);
}
.frame-media-inner.sepia {
  background: linear-gradient(155deg, rgba(212,175,55,0.16), rgba(11,13,19,0.55) 70%);
  backdrop-filter: saturate(0.35) brightness(0.92);
  -webkit-backdrop-filter: saturate(0.35) brightness(0.92);
}
.living-frame:hover .frame-media-inner.sepia,
.living-frame:focus-within .frame-media-inner.sepia,
.living-frame.is-active .frame-media-inner.sepia { opacity: 0; }

.frame-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06) translate3d(0,0,0);
  transition: transform 6s var(--ease-frame);
}
.living-frame:hover .frame-thumb,
.living-frame.is-active .frame-thumb { transform: scale(1.14) translate3d(0,0,0); }

.frame-corner {
  position: absolute;
  width: 30px; height: 30px;
  color: var(--gold-soft);
  opacity: 0.85;
  z-index: 3;
  pointer-events: none;
}
.frame-corner--tl { top: 6px; left: 6px; }
.frame-corner--tr { top: 6px; right: 6px; transform: scaleX(-1); }
.frame-corner--bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.frame-corner--br { bottom: 6px; right: 6px; transform: scale(-1, -1); }

.frame-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0.85);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory);
  opacity: 0;
  transition: opacity 0.35s var(--ease-frame), transform 0.35s var(--ease-frame);
  z-index: 3;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5));
}
.living-frame:hover .frame-play,
.living-frame:focus-within .frame-play { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }

.frame-plaque {
  position: relative;
  z-index: 3;
  margin-top: 10px;
  padding: 0.7rem 0.85rem 0.6rem;
  background: linear-gradient(180deg, #4a3b22, #33280f);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}
.plaque-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--parchment);
}
.plaque-meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.85;
}

/* ═══════════════════════════════════ GALLERY GRID ═══════════════════════════════════ */
.gallery { max-width: var(--max-width); margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2rem);
}
.gallery-card { cursor: pointer; }
.gallery-card:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-card:nth-child(5n+1) .frame-media { aspect-ratio: 1 / 1; }

@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-card:nth-child(5n+1) { grid-column: span 2; grid-row: span 1; }
  .gallery-card:nth-child(5n+1) .frame-media { aspect-ratio: 16/10; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card:nth-child(5n+1) { grid-column: span 1; }
}

/* ═══════════════════════════════════ CHRONICLES (timeline) ═══════════════════════════════════ */
.chronicles {
  background: var(--parchment);
  color: var(--parchment-ink);
  position: relative;
}
.chronicles .section-lede { color: var(--muted-dark); }
.chronicles .eyebrow { color: var(--gold-deep); }
.chronicles .eyebrow-rule { background: var(--gold-deep); }

.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 0;
}
.timeline::before {
  /* the "route line" — a dashed travel path rather than a plain rule */
  content: '';
  position: absolute;
  left: 34px;
  top: 8px;
  bottom: 8px;
  width: 0;
  border-left: 2px dashed rgba(150, 118, 42, 0.45);
}
@media (min-width: 760px) {
  .timeline::before { left: 50%; margin-left: -1px; }
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  padding-bottom: 3.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: relative;
  display: flex; align-items: flex-start; justify-content: center;
}
.timeline-year {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  color: var(--midnight-deep);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 24px -8px rgba(150, 118, 42, 0.55);
}

.timeline-card {
  background: var(--ivory);
  border: 1px solid rgba(150, 118, 42, 0.18);
  border-radius: 3px;
  padding: 1.9rem 2.1rem;
  box-shadow: 0 18px 40px -28px rgba(36, 29, 19, 0.4);
}
.timeline-card h3 { font-size: 1.3rem; margin-bottom: 0.7rem; color: var(--parchment-ink); }
.timeline-card p { color: var(--muted-dark); }
.timeline-card strong { color: var(--gold-deep); font-weight: 700; }

@media (min-width: 760px) {
  .timeline-item { grid-template-columns: 1fr 90px 1fr; align-items: start; }
  .timeline-item .timeline-card { grid-column: 1; }
  .timeline-item .timeline-marker { grid-column: 2; }
  .timeline-item:nth-child(even) .timeline-card { grid-column: 3; }
  .timeline-item:nth-child(odd) .timeline-card { text-align: right; }
}

.timeline-item[data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 0.7s var(--ease-frame), transform 0.7s var(--ease-frame); }
.timeline-item.is-visible { opacity: 1; transform: translate3d(0,0,0); }

/* ═══════════════════════════════════ LATEST STRIP ═══════════════════════════════════ */
.latest { max-width: var(--max-width); margin: 0 auto; }
.latest-strip {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x proximity;
}
.latest-strip::-webkit-scrollbar { height: 6px; }
.latest-strip::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.35); border-radius: 4px; }

.latest-card {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.latest-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 3px;
  overflow: hidden;
  background: var(--charcoal-light);
  border: 1px solid rgba(212,175,55,0.16);
}
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-frame); }
.latest-card:hover .latest-thumb img { transform: scale(1.08); }
.latest-play {
  position: absolute; bottom: 8px; right: 8px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,13,19,0.72);
  color: var(--gold-soft);
  border-radius: 50%;
}
.latest-title { font-size: 0.92rem; color: var(--parchment-dim); line-height: 1.35; }
.latest-date { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--muted-dark); text-transform: uppercase; }

/* ═══════════════════════════════════ FOOTER ═══════════════════════════════════ */
.site-footer { background: var(--midnight-deep); border-top: 1px solid rgba(212,175,55,0.14); padding: 3.5rem var(--edge) 2.5rem; }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2rem;
  align-items: center; justify-content: space-between;
}
.footer-brand p { margin-top: 0.4rem; color: var(--muted-dark); font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { color: var(--muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-copy { width: 100%; margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted-dark); text-align: center; }

/* ═══════════════════════════════════ LIGHTBOX ═══════════════════════════════════ */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 4vh 4vw; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(6,7,9,0.92); backdrop-filter: blur(6px); }
.lightbox-panel {
  position: relative; z-index: 1;
  width: min(1000px, 100%);
  background: linear-gradient(160deg, #241d13, #14110c);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 4px;
  padding: 14px;
  animation: lightboxIn 0.4s var(--ease-frame);
}
@keyframes lightboxIn { from { opacity: 0; transform: translate3d(0,16px,0) scale(0.98); } to { opacity: 1; transform: translate3d(0,0,0) scale(1); } }
.lightbox-frame { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 2px; overflow: hidden; }
.lightbox-video { position: absolute; inset: 0; }
.lightbox-video iframe { width: 100%; height: 100%; border: 0; }
.lightbox-info { padding: 1.1rem 0.4rem 0.3rem; }
.lightbox-info h3 { font-size: 1.15rem; color: var(--ivory); }
.lightbox-info p { margin-top: 0.35rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--gold-soft); text-transform: uppercase; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-soft); color: var(--midnight-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.6);
}

/* ═══════════════════════════════════ SCROLL-REVEAL (generic) ═══════════════════════════════════ */
[data-reveal] { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity 0.8s var(--ease-frame), transform 0.8s var(--ease-frame); }
[data-reveal].is-visible { opacity: 1; transform: translate3d(0,0,0); }

/* ═══════════════════════════════════ FOCUS STATES ═══════════════════════════════════ */
a:focus-visible, button:focus-visible, .living-frame:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ═══════════════════════════════════ RESPONSIVE ═══════════════════════════════════ */
@media (max-width: 860px) {
  .primary-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .story-split { grid-template-columns: 1fr; }
  .story-panel--now { margin-top: 0; }
}

@media (max-width: 600px) {
  section { padding: 5rem var(--edge); }
  .hero-content { padding-top: 7rem; }
}
