/* =========================================================================
   VARIABLES & RESET
========================================================================= */
:root {
  --bg-color: #0d0e12;
  --text-color: #f0f0f2;
  --gold: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --dark-gold: #8c7322;
  --nav-height: 80px;
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Inter', sans-serif;
  --font-reading: 'Raleway', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
  scroll-behavior: initial; 
  overflow-x: hidden;
  max-width: 100vw;
} 
body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================================
   DYNAMIC BACKGROUND (Cinematic)
========================================================================= */
.dynamic-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-color);
  z-index: -2;
  transition: background-color 1.5s ease;
}
/* Premium Vignette & Grain Overlay */
.dynamic-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
  z-index: -1;
}
.dynamic-bg::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  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.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

/* Particle Canvas */
.particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 999;
  pointer-events: none;
}

/* =========================================================================
   CURSOR GLOW
========================================================================= */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 400px; height: 400px;
  margin-top: -200px; margin-left: -200px;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, rgba(212,175,55,0) 70%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  transition: opacity 0.3s;
}

/* =========================================================================
   CINEMATIC LOADER
   ========================================================================= */
#loader {
  position: fixed;
  inset: 0;
  background: #030303;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Film grain overlay */
.loader-grain {
  position: absolute;
  inset: -50%;
  background-image: url('data:image/svg+xml,%3Csvg viewBox%3D%220 0 200 200%22 xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cfilter id%3D%22n%22%3E%3CfeTurbulence type%3D%22fractalNoise%22 baseFrequency%3D%220.9%22 numOctaves%3D%224%22 stitchTiles%3D%22stitch%22/%3E%3C/filter%3E%3Crect width%3D%22100%25%22 height%3D%22100%25%22 filter%3D%22url(%23n)%22/%3E%3C/svg%3E');
  opacity: 0.055;
  pointer-events: none;
  animation: grain 0.7s steps(7) infinite;
}

/* Horizontal scan line — sweeps top to bottom */
.loader-scan {
  position: absolute;
  top: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, transparent, rgba(212,175,55,0.6), rgba(212,175,55,0.9), rgba(212,175,55,0.6), transparent);
  animation: scan-sweep 1.2s ease-out 0.05s forwards;
  box-shadow: 0 0 20px rgba(212,175,55,0.5), 0 0 40px rgba(212,175,55,0.2);
}
@keyframes scan-sweep {
  from { top: -4px; opacity: 1; }
  to   { top: 100vh; opacity: 0; }
}

/* Clapperboard diagonal stripe panels */
.clapper-panel {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 10;
  background: repeating-linear-gradient(
    -50deg,
    #0a0a0a 0px, #0a0a0a 28px,
    #161616 28px, #161616 56px
  );
}
.clapper-top {
  top: 0;
  height: 55%;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  transform: translateY(0);
  animation: clapper-top-open 0.65s cubic-bezier(0.55, 0, 1, 0.45) 0.15s forwards;
}
.clapper-bot {
  bottom: 0;
  height: 55%;
  clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 100%);
  transform: translateY(0);
  animation: clapper-bot-open 0.65s cubic-bezier(0.55, 0, 1, 0.45) 0.15s forwards;
}
@keyframes clapper-top-open {
  from { transform: translateY(0); }
  to   { transform: translateY(-105%); }
}
@keyframes clapper-bot-open {
  from { transform: translateY(0); }
  to   { transform: translateY(105%); }
}

/* Center content wrapper */
.loader-center {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: loader-center-in 0.4s ease 0.7s forwards;
}
@keyframes loader-center-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* Spinning cinema ring */
.loader-ring {
  margin-bottom: 4px;
}
.loader-ring svg {
  animation: ring-outer-spin 3s linear infinite;
}
.loader-ring .ring-arc {
  animation: ring-arc-spin 2s linear infinite;
  transform-origin: 42px 42px;
}
@keyframes ring-outer-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes ring-arc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* Name rows */
.loader-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.loader-row-1,
.loader-row-2 {
  display: flex;
  gap: 2px;
  padding-bottom: 6px;
}

/* Individual animated letter */
.loader-letter {
  font-family: var(--font-serif);
  display: inline-block;
  opacity: 0;
  animation: letter-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.loader-row-1 .loader-letter {
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 700;
  color: var(--gold);
  text-shadow:
    0 0 20px rgba(212,175,55,0.9),
    0 0 60px rgba(212,175,55,0.4);
  letter-spacing: 6px;
}
.loader-row-2 .loader-letter {
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  letter-spacing: 10px;
  text-shadow: none;
}
@keyframes letter-rise {
  0%   { opacity: 0; transform: translateY(40px) scaleY(0.4); filter: blur(12px); }
  55%  { opacity: 1; transform: translateY(-5px) scaleY(1.06); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); filter: blur(0); }
}

/* Tagline */
.loader-tagline {
  font-family: var(--font-reading);
  font-size: 0.68rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  opacity: 0;
  animation: fade-up 0.7s ease 2s forwards;
}

/* LED progress dot bar */
.loader-led-bar {
  display: flex;
  gap: 5px;
  align-items: center;
  opacity: 0;
  animation: fade-up 0.5s ease 2.1s forwards;
}
.led-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.12s ease, box-shadow 0.12s ease;
  flex-shrink: 0;
}
.led-dot.on {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 6px var(--gold), 0 0 14px rgba(212,175,55,0.5);
}
.led-dot.on-dim {
  background: rgba(212,175,55,0.4);
  border-color: rgba(212,175,55,0.3);
  box-shadow: 0 0 4px rgba(212,175,55,0.3);
}

/* Numeric counter */
.loader-counter {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: rgba(212,175,55,0.45);
  opacity: 0;
  animation: fade-up 0.5s ease 2.2s forwards;
}

/* Gold flash overlay for exit */
.loader-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #ffe97a 0%, #D4AF37 40%, rgba(180,130,0,0.6) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}
.loader-flash.burst {
  animation: flash-burst 0.7s ease-out forwards;
}
@keyframes flash-burst {
  0%   { opacity: 0;   transform: scale(0.8); }
  35%  { opacity: 0.95; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.05); }
}

/* Shared utility */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =========================================================================
   NAV
========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}
.nav-logo-img-small {
  height: 40px;
  /* Gold color filter */
  filter: brightness(0) saturate(100%) invert(86%) sepia(51%) saturate(541%) hue-rotate(352deg) brightness(85%) contrast(87%);
  animation: levitate 4s ease-in-out infinite;
  transition: all 0.3s ease;
}
.nav-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-link:hover .nav-logo-img-small {
  filter: brightness(0) saturate(100%) invert(86%) sepia(51%) saturate(541%) hue-rotate(352deg) brightness(120%) contrast(100%) drop-shadow(0 0 10px rgba(212,175,55,0.6));
}
@keyframes levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.nav-links { display: flex; gap: 40px; }
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }

/* =========================================================================
   HERO & 3D FLIP CARD
========================================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-container {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

/* 3D Flip Card Container */
.flip-card-container {
  width: 350px;
  height: 500px;
  perspective: 1000px; /* Gives the 3D depth */
  flex-shrink: 0;
  cursor: pointer;
}
.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
  transform-style: preserve-3d;
}
/* Hero flip card — hover to flip */
.flip-card-container:hover .flip-card {
  transform: rotateY(180deg);
}
/* About section flip card — disable hover, only click triggers flip */
.about-container .flip-card-container:hover .flip-card {
  transform: none;
}
.about-container .flip-card-container.flipped .flip-card {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}
.flip-card-front {
  background: #111;
}
.flip-card-back {
  background: #0a0a0a;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark-gold);
}
.flip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1);
}
.flip-img-logo {
  width: 80%;
  height: auto;
  /* Turns any color logo into perfectly solid Gold (#d4af37) */
  filter: brightness(0) saturate(100%) invert(77%) sepia(35%) saturate(836%) hue-rotate(5deg) brightness(97%) contrast(93%) drop-shadow(0 0 20px var(--gold-glow));
}

.hero-typography {
  flex-grow: 1;
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 6rem);
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 400;
}
.hero-title .word { 
  display: inline-block; 
  margin: 0 10px; 
  background-image: linear-gradient(
    to right,
    #f0f0f2 20%,
    #ffffff 40%,
    var(--gold) 50%,
    #ffffff 60%,
    #f0f0f2 80%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 5s linear infinite;
  font-weight: 600;
}
.hero-title .gold { 
  background-image: linear-gradient(
    to right,
    var(--gold) 20%,
    #fff 40%,
    var(--gold) 50%,
    #fff 60%,
    var(--gold) 80%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 600; 
}
@keyframes shine {
  to { background-position: 200% center; }
}
.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 30px;
  text-transform: uppercase;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1px;
  width: fit-content;
  margin: 42px auto 30px;
  border: 1px solid rgba(212,175,55,0.18);
  background: rgba(212,175,55,0.1);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fade-up 0.7s ease 0.45s both;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 18px;
  background: rgba(8,8,8,0.72);
}
.hero-stat-number {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.18rem;
  letter-spacing: 1px;
}
.hero-stat-label {
  color: rgba(255,255,255,0.48);
  font-size: 0.58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  margin: 0 auto;
  padding: 14px 28px;
  border: 1px solid rgba(212,175,55,0.65);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.22);
  box-shadow: 0 0 28px rgba(212,175,55,0.12);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  animation: fade-up 0.7s ease 0.62s both;
}
.hero-cta:hover {
  background: var(--gold);
  color: #050505;
  box-shadow: 0 0 36px rgba(212,175,55,0.34);
  transform: translateY(-2px);
}
.quick-actions {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 120%);
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(212,175,55,0.24);
  background: rgba(8,8,8,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.quick-actions.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.quick-actions a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 11px 18px;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.25s ease, background 0.25s ease;
}
.quick-actions a:hover {
  color: var(--gold);
  background: rgba(212,175,55,0.1);
}
.hero-tagline {
  font-family: var(--font-reading);
  font-size: 1.4rem;
  color: #aaa;
  margin: 0 auto;
}

/* Scroll Cue */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.scroll-text {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================================
   BOOKS SHOWCASE (PARALLAX)
========================================================================= */
.books-showcase {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.book-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  gap: 80px;
}
.book-row.reverse {
  flex-direction: row-reverse;
}

.book-info {
  flex: 1;
  max-width: 500px;
  position: relative;
  z-index: 10;
}
.b-num {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(255,255,255,0.1);
  display: block;
  margin-bottom: -20px;
}
.b-genre {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.b-tagline {
  font-family: var(--font-reading);
  font-size: 1rem;
  font-style: italic;
  color: rgba(212, 175, 55, 0.7);
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.b-accolade {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-style: italic;
  color: #e5b93b;
  margin-bottom: 25px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
  padding: 8px 15px;
  border-left: 2px solid var(--gold);
  display: inline-block;
}
.b-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 30px;
}
.b-synopsis {
  font-family: var(--font-reading);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 40px;
}
.extended-text {
  display: none;
  margin-top: 10px;
  color: #fff;
}
.b-synopsis.expanded .extended-text {
  display: block;
  animation: fadeIn 0.4s ease-in-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.b-btn {
  display: inline-block;
  padding: 15px 35px;
  border: 1px solid var(--gold);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  transition: all 0.3s;
  background: transparent;
  cursor: pointer;
}
.b-btn:hover {
  background: var(--gold);
  color: #000;
}
.b-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.b-btn.buy-btn {
  background: var(--gold);
  color: #000;
  font-weight: bold;
}
.b-btn.buy-btn:hover {
  background: transparent;
  color: #fff;
  border-color: var(--gold);
}
.b-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.sample-btn {
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.78);
}
.b-proof-card {
  max-width: 360px;
  margin: 0 0 24px;
  padding: 10px;
  border: 1px solid rgba(212,175,55,0.22);
  background: rgba(0,0,0,0.3);
}
.b-proof-card img {
  width: 100%;
  display: block;
}
.b-proof-card figcaption {
  margin-top: 10px;
  color: rgba(255,255,255,0.42);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.inline-newsletter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(300px, 480px);
  gap: 24px;
  align-items: center;
  margin: 30px auto 90px;
  padding: 28px;
  max-width: 980px;
  border: 1px solid rgba(212,175,55,0.22);
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(255,255,255,0.025));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.inline-newsletter-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.inline-newsletter p {
  font-family: var(--font-reading);
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}
.inline-nl-form {
  display: flex;
  border: 1px solid rgba(212,175,55,0.3);
  background: rgba(0,0,0,0.38);
}
.inline-nl-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
}
.inline-nl-form button {
  border: 0;
  border-left: 1px solid rgba(212,175,55,0.3);
  padding: 0 20px;
  background: rgba(212,175,55,0.12);
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}
.inline-nl-form button:hover {
  background: var(--gold);
  color: #000;
}
.inline-nl-success {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.availability-bar {
  margin: 50px auto 0;
  padding: 26px 28px;
  max-width: 1080px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.availability-bar > span {
  display: block;
  margin-bottom: 18px;
  color: rgba(212,175,55,0.68);
  font-size: 0.62rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.availability-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.availability-list a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 1px;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.availability-list a:hover {
  color: var(--gold);
}

/* Buy Now dropdown */
.buy-dropdown-wrap {
  position: relative;
  display: inline-block;
}
.buy-dropdown-trigger::after {
  content: '▾';
  margin-left: 7px;
  font-size: 0.65rem;
  vertical-align: middle;
  transition: transform 0.25s ease;
  display: inline-block;
}
.buy-dropdown-wrap.open .buy-dropdown-trigger::after {
  transform: rotate(180deg);
}
.buy-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 190px;
  max-height: min(360px, 70vh);
  overflow-y: auto;
  background: rgba(8,8,8,0.97);
  border: 1px solid rgba(212,175,55,0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
}
.buy-dropdown-wrap.open .buy-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.buy-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}
.buy-option:last-child { border-bottom: none; }
.buy-option:hover {
  background: rgba(212,175,55,0.1);
  color: var(--gold);
  padding-left: 20px;
}
.buy-option-arrow {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-left: 10px;
}
.buy-option:hover .buy-option-arrow { opacity: 1; }

/* Coming Soon badge (In Development books) */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 24px;
  border: 1px solid rgba(200, 30, 50, 0.35);
  border-radius: 50px;
  color: rgba(220, 90, 100, 0.85);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: rgba(160, 10, 30, 0.08);
  backdrop-filter: blur(10px);
  cursor: default;
  user-select: none;
}
.cs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8283c;
  flex-shrink: 0;
  animation: cs-pulse 2.2s ease-in-out infinite;
}
@keyframes cs-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(200, 40, 60, 0.5); }
  50%       { opacity: 0.5; box-shadow: 0 0 0 5px rgba(200, 40, 60, 0); }
}


/* =========================================================================
   3D BOOK
========================================================================= */
.book-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Perspective wrapper */
.book-tilt-wrap {
  position: relative;
  width: 300px;
  perspective: 1400px;
  perspective-origin: 55% 50%;
  z-index: 1;
}

/* 3D book group — all faces sit inside here */
.book-3d {
  width: 300px;
  height: 450px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-22deg);
  cursor: pointer;
  will-change: transform;
}

/* ---- Front cover ---- */
.book-front {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 2px 4px 4px 2px;
  box-shadow:
    6px 8px 24px rgba(0,0,0,0.55),
    inset -4px 0 12px rgba(0,0,0,0.4);
}
.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px 4px 4px 2px;
}
/* Specular sheen — subtle light reflection */
.book-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0) 25%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0) 75%
  );
  pointer-events: none;
  border-radius: inherit;
}

/* ---- Spine (left edge) ---- */
.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 45px;
  height: 100%;
  background: var(--spine-clr, #1a1510);
  transform-origin: 0% 50%;
  transform: rotateY(-90deg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.book-spine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.5) 0%,
    rgba(255,255,255,0.07) 45%,
    rgba(0,0,0,0.25) 100%
  );
}
.spine-num {
  color: rgba(212,175,55,0.65);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 3px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  position: relative;
  z-index: 2;
  user-select: none;
}

/* ---- Pages edge (right side) ---- */
.book-pages {
  position: absolute;
  top: 2%;
  bottom: 2%;
  right: 0;
  width: 45px;
  transform-origin: 100% 50%;
  transform: rotateY(90deg);
  background: repeating-linear-gradient(
    to bottom,
    #ede5d0 0px,
    #ede5d0 1.5px,
    #f8f2e4 1.5px,
    #f8f2e4 3.5px
  );
  border-radius: 0 1px 1px 0;
}

/* ---- Floor shadow ---- */
.book-floor-shadow {
  position: absolute;
  bottom: -22px;
  left: 10%;
  width: 80%;
  height: 32px;
  background: rgba(0,0,0,0.55);
  filter: blur(20px);
  border-radius: 50%;
  pointer-events: none;
}

.section-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5%;
}
.section-eyebrow {
  text-align: center;
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 14px;
}
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-align: center;
  margin-bottom: 44px;
}
.proof-section {
  padding: 90px 0;
}
.reviews-section[hidden],
.press-section[hidden] {
  display: none;
}
.review-carousel {
  display: flex;
  gap: 18px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.review-card {
  flex: 0 0 310px;
  padding: 26px;
  border: 1px solid rgba(212,175,55,0.18);
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: review-drift 42s linear infinite;
}
.review-carousel:hover .review-card {
  animation-play-state: paused;
}
.review-stars {
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 18px;
}
.review-card p {
  color: rgba(255,255,255,0.76);
  font-family: var(--font-reading);
  line-height: 1.7;
  margin-bottom: 18px;
}
.review-card span,
.review-card a {
  color: rgba(255,255,255,0.38);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
}
.review-card a:hover {
  color: var(--gold);
}
@keyframes review-drift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 18px)); }
}
.press-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.press-list a {
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.22);
}
.press-list a:hover {
  color: var(--gold);
  border-color: rgba(212,175,55,0.35);
}


/* =========================================================================
   OTHER WORKS & ABOUT & FOOTER
========================================================================= */
.about-author {
  padding: 100px 5%;
  background: transparent;
}
.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
}

/* ---- AUTHOR IDENTITY CARD (single-image, half-flip on click) ---- */
.author-card {
  width: 350px;
  height: 500px;
  perspective: 1000px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}
.author-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.35s ease-in;
  transform-origin: center;
}
/* Half-flip: rotate to 90deg (edge-on) */
.author-card-inner.flip-out {
  transform: rotateY(90deg);
}
/* Reverse entry: start from -90deg, transition to 0 */
.author-card-inner.flip-in {
  transform: rotateY(-90deg);
  transition: none;
}
.author-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Flip hint */
.flip-hint {
  text-align: center;
  margin-top: 14px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(212,175,55,0.45);
  transition: color 0.3s;
  user-select: none;
}
.author-card:hover ~ .flip-hint,
.author-card-wrap:hover .flip-hint {
  color: var(--gold);
}

/* Wrap keeps card + dots together as one unit */
.author-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

/* 3 dot indicators */
.card-dots {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}
.card-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(212,175,55,0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease,
              transform 0.3s ease, box-shadow 0.3s ease;
}
.card-dot:hover {
  border-color: rgba(212,175,55,0.7);
  transform: scale(1.2);
}
.card-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212,175,55,0.65);
  transform: scale(1.15);
}

/* Identity label strip */
.card-identity-labels {
  display: flex;
  gap: 0;
  margin-top: 12px;
}
.card-label {
  font-family: var(--font-reading);
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  padding: 0 8px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: color 0.35s ease;
  cursor: pointer;
  user-select: none;
}
.card-label:last-child { border-right: none; }
.card-label.active {
  color: rgba(212,175,55,0.8);
}

/* ---- BIO PANELS ---- */
.about-text {
  flex: 1;
  display: grid;
  min-height: 380px;
}
.bio-panel {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  visibility: hidden;
}
.bio-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}
.bio-panel .ow-heading {
  text-align: left;
  margin-bottom: 20px;
}
.bio-panel p {
  font-family: var(--font-reading);
  color: #aaa;
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 1rem;
}
/* Gold highlights within bio text */
.gold-text {
  color: var(--gold);
  font-style: italic;
}
.bio-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.bio-link:hover {
  color: #fff;
}

.other-works {
  padding: 150px 5%;
  background: transparent;
}
.ow-container { max-width: 1400px; margin: 0 auto; }
.ow-heading {
  font-family: var(--font-serif);
  font-size: 3rem;
  text-align: center;
  margin-bottom: 80px;
}
.ow-heading .gold { color: var(--gold); }

.ow-card {
  max-width: 800px;
  margin: 0 auto;
  background: #111;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}
.ow-card h3 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 20px; }
.ow-card p { font-family: var(--font-reading); color: #aaa; margin-bottom: 30px; line-height: 1.6; }
.video-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.3);
}
.ow-video { width: 100%; display: block; }

.portfolio-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -20px auto 58px;
}
.tab-btn {
  padding: 12px 18px;
  border: 1px solid rgba(212,175,55,0.22);
  background: rgba(0,0,0,0.28);
  color: rgba(255,255,255,0.52);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.tab-btn:hover,
.tab-btn.active {
  color: var(--gold);
  border-color: rgba(212,175,55,0.55);
  background: rgba(212,175,55,0.08);
}
.portfolio-panels {
  max-width: 1400px;
  margin: 0 auto;
}
.tab-panel[hidden] {
  display: none;
}
.project-grid,
.restoration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 46px;
  padding: 0 5%;
}
.project-card {
  min-height: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(0,0,0,0.34));
  color: inherit;
  font: inherit;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.media-project-card {
  display: grid;
  grid-template-rows: 170px 1fr;
  padding: 0;
  cursor: pointer;
}
.media-project-card:hover,
.text-project-card:hover {
  border-color: rgba(212,175,55,0.38);
  transform: translateY(-4px);
}
.project-thumb {
  display: block;
  overflow: hidden;
  background: #000;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
  transition: transform 0.35s ease, filter 0.35s ease;
}
.media-project-card:hover .project-thumb img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.08);
}
.project-copy,
.text-project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}
.project-kicker {
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}
.project-card h3,
.project-copy strong,
.video-feature h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
}
.project-role {
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.project-card p,
.project-copy span:last-child,
.video-feature p {
  color: rgba(255,255,255,0.58);
  font-family: var(--font-reading);
  line-height: 1.65;
  font-size: 0.92rem;
}
.video-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 0 5%;
}
.video-feature {
  border: 1px solid rgba(212,175,55,0.16);
  background: rgba(0,0,0,0.32);
}
.video-feature video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #000;
}
.video-feature > div {
  padding: 22px;
}

/* =========================================================================
   ROLLING FILM STRIP GALLERY
   ========================================================================= */
.ow-subtitle {
  font-family: var(--font-reading);
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: -55px;
  margin-bottom: 60px;
}
.film-gallery {
  position: relative;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}

/* Sprocket-hole rail (top / mid / bot) */
.film-rail {
  height: 34px;
  background: #111;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  overflow: hidden;
  position: relative;
  z-index: 3;
}
.sprocket-hole {
  flex-shrink: 0;
  width: 17px;
  height: 20px;
  background: #0a0a0a;
  border-radius: 3px;
  border: 1.5px solid #222;
}

/* Track wrapper — clips overflow and adds fade edges */
.film-track-wrap {
  overflow: hidden;
  width: 100%;
  background: #0d0d0d;
  padding: 14px 0;
  position: relative;
}
.film-track-wrap::before,
.film-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 120px;
  z-index: 4;
  pointer-events: none;
}
.film-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, #0d0d0d 0%, transparent 100%);
}
.film-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, #0d0d0d 0%, transparent 100%);
}

/* The rolling strip — uses CSS animation for seamless infinite loop */
.film-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: film-roll 160s linear infinite;
  will-change: transform;
}
.film-track.reverse {
  animation-name: film-roll-rev;
  animation-duration: 180s; /* slightly different speed for visual depth */
}
/* Pauses BOTH tracks when the gallery is hovered */
.film-gallery:hover .film-track {
  animation-play-state: paused;
}

@keyframes film-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes film-roll-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Individual film frame */
.film-frame {
  flex-shrink: 0;
  width: 248px;
  height: 166px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  border: 3px solid #1c1c1c;
  transition: transform 0.3s ease, filter 0.3s ease, border-color 0.3s ease;
  filter: brightness(0.78) saturate(0.8) sepia(0.12);
}
.film-frame:hover {
  transform: scale(1.06) translateY(-5px);
  filter: brightness(1.05) saturate(1.05) sepia(0);
  border-color: rgba(212,175,55,0.55);
  z-index: 10;
}
.film-frame img,
.film-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.4s ease;
}
.film-frame:hover img,
.film-frame:hover video {
  transform: scale(1.07);
}

/* Video indicator badge */
.film-play-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.72);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  pointer-events: none;
  z-index: 2;
}

/* Hover label overlay */
.film-frame-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.film-frame:hover .film-frame-label {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================================
   GALLERY LIGHTBOX
   ========================================================================= */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.gallery-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 90vw;
}
.lightbox-close {
  position: fixed;
  top: 22px;
  right: 26px;
  background: rgba(10,10,10,0.7);
  border: 1px solid rgba(212,175,55,0.35);
  color: rgba(255,255,255,0.75);
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 1;
}
.lightbox-close:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,175,55,0.1);
  transform: rotate(90deg);
}
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(212,175,55,0.2);
  color: rgba(255,255,255,0.65);
  font-size: 2.4rem;
  width: 54px;
  height: 96px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 1;
}
.lightbox-prev { left: 0; border-radius: 0 10px 10px 0; }
.lightbox-next { right: 0; border-radius: 10px 0 0 10px; }
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(212,175,55,0.12);
  border-color: var(--gold);
  color: var(--gold);
}
.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-media img,
.lightbox-media video {
  max-width: 86vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.9);
  display: block;
}
.lightbox-caption {
  color: rgba(255,255,255,0.4);
  font-family: var(--font-reading);
  font-size: 0.73rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
}

.footer {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 100px 20px 40px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  z-index: 10;
}
.footer-content { max-width: 600px; margin: 0 auto 80px; }
.footer-title { font-family: var(--font-serif); font-size: 3rem; margin-bottom: 20px; color: var(--gold); }
.footer-content p { color: #888; margin-bottom: 40px; }
.footer-grid {
  max-width: 1120px;
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 360px) minmax(180px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  text-align: left;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.footer-col:nth-child(2) {
  justify-self: center;
  align-items: center;
  text-align: center;
}
.footer-col:nth-child(3) {
  justify-self: end;
  align-items: flex-end;
  text-align: right;
}
.footer-kicker {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-col a {
  color: rgba(255,255,255,0.54);
  text-decoration: none;
  font-family: var(--font-reading);
  transition: color 0.25s ease, transform 0.25s ease;
}
.footer-col a:hover {
  color: var(--gold);
  transform: translateX(4px);
}
.footer-connect p {
  color: rgba(255,255,255,0.42);
  font-family: var(--font-reading);
  line-height: 1.7;
  max-width: 340px;
  margin: 0;
}
.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 8px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.3);
  color: #fff;
  transition: all 0.3s ease;
  background: transparent;
}
.social-btn svg {
  width: 22px;
  height: 22px;
}
.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-5px);
}
/* ========================================= */
/* FOOTER BOTTOM */
/* ========================================= */
.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  color: #666;
  font-size: 0.9rem;
  overflow: visible;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  text-align: left;
}
.footer-bottom span {
  color: rgba(212,175,55,0.64);
  letter-spacing: 1.4px;
}
.back-to-top {
  border: 1px solid rgba(212,175,55,0.28);
  background: transparent;
  color: rgba(255,255,255,0.62);
  padding: 10px 16px;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.back-to-top:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212,175,55,0.08);
}

/* =========================================================================
   HAMBURGER MENU BUTTON
========================================================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================================================================
   TABLET BREAKPOINT (max-width: 1024px)
========================================================================= */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    gap: 40px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
  .flip-card-container {
    width: 280px;
    height: 400px;
  }
  .book-row,
  .book-row.reverse {
    flex-direction: column;
    gap: 70px;
    min-height: auto;
    padding: 60px 0;
  }
  .book-tilt-wrap {
    width: 300px;
    height: 450px;
  }
  .b-title {
    font-size: 2.5rem;
  }
  .about-container {
    flex-direction: column;
    gap: 40px;
  }
  .ow-heading {
    font-size: 2.5rem;
  }
  .project-grid,
  .restoration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: minmax(170px, 0.9fr) minmax(280px, 320px) minmax(140px, 0.7fr);
    gap: 24px;
  }
  .social-btn {
    width: 46px;
    height: 46px;
  }
  /* Gallery tablet */
  .gallery-scroll { padding: 44px 28px; }
  .polaroid-frame { width: 168px; padding: 8px 8px 40px; }
  .polaroid-img-wrap { width: 152px; height: 152px; }
}

/* =========================================================================
   MOBILE BREAKPOINT (max-width: 768px)
========================================================================= */
@media (max-width: 768px) {
  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Fullscreen mobile nav overlay */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 99;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.2rem;
    letter-spacing: 3px;
  }
  .quick-actions {
    display: none;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }
  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
  }
  .hero-container {
    padding: 0 20px;
  }
  .hero-stats {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-stat {
    padding: 12px 10px;
  }
  .hero-stat-label {
    font-size: 0.54rem;
    white-space: normal;
  }
  .hero-cta {
    width: 100%;
    justify-content: center;
    max-width: 310px;
  }

  /* Flip card */
  .flip-card-container {
    width: 220px;
    height: 320px;
  }

  /* Books */
  .book-row,
  .book-row.reverse {
    gap: 60px;
    padding: 50px 0;
  }
  .book-tilt-wrap { width: 250px; }
  .book-3d { width: 250px; height: 375px; }
  .book-spine { width: 38px; }
  .book-pages { width: 38px; }
  .b-title {
    font-size: 2rem;
  }
  .b-num {
    font-size: 2.5rem;
  }
  .b-synopsis {
    font-size: 1rem;
  }
  .b-btn {
    padding: 12px 25px;
    font-size: 0.75rem;
  }
  .books-showcase {
    padding: 60px 5%;
  }
  .inline-newsletter {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .inline-nl-form {
    flex-direction: column;
  }
  .inline-nl-form button {
    border-left: 0;
    border-top: 1px solid rgba(212,175,55,0.3);
    padding: 14px;
  }

  /* Other Works */
  .other-works {
    padding: 80px 0;
  }
  .ow-container {
    padding: 0 5%;
  }
  .ow-heading {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  .portfolio-tabs {
    margin-top: -8px;
  }
  .tab-btn {
    width: 100%;
  }
  .project-grid,
  .restoration-grid,
  .video-showcase {
    grid-template-columns: 1fr;
  }
  /* Gallery mobile */
  .gallery-scroll { padding: 30px 20px; }
  .polaroid-frame { width: 146px; padding: 7px 7px 36px; }
  .polaroid-img-wrap { width: 132px; height: 132px; }
  .polaroid-strip { gap: 20px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 72px; font-size: 1.8rem; }

  /* About */
  .about-container {
    padding: 0 20px;
  }
  .about-author .flip-card-container {
    width: 200px;
    height: 300px;
  }

  /* Footer */
  .footer-title {
    font-size: 2rem;
  }
  .social-btn {
    width: 44px;
    height: 44px;
  }
  .social-links {
    gap: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-grid .footer-col {
    justify-self: center;
    align-items: center;
    text-align: center;
  }
  .footer-col {
    align-items: center;
  }
  .social-links {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Hide cursor glow on touch devices */
  #cursor-glow {
    display: none;
  }
}

/* =========================================================================
   SMALL MOBILE BREAKPOINT (max-width: 480px)
========================================================================= */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.5rem, 10vw, 2.5rem);
  }
  .hero-title .word {
    margin: 0 5px;
  }
  .book-tilt-wrap { width: 200px; }
  .book-3d { width: 200px; height: 300px; }
  .book-spine { width: 32px; }
  .book-pages { width: 32px; }
  .b-title {
    font-size: 1.6rem;
  }
  .b-actions {
    flex-direction: column;
    width: 100%;
  }
  .b-btn {
    width: 100%;
    text-align: center;
  }
  .footer {
    padding: 60px 15px 30px;
  }
  .footer-content {
    margin-bottom: 40px;
  }
  .loader-row-1 .loader-letter {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    letter-spacing: 3px;
  }
  .loader-row-2 .loader-letter {
    font-size: clamp(0.7rem, 3vw, 1rem);
    letter-spacing: 4px;
  }
  .loader-tagline {
    font-size: 0.55rem;
    letter-spacing: 2px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 10px;
  }
  .hero-stat {
    width: 100%;
  }
  .about-author .flip-card-container {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
  }
}

/* =========================================================================
   PORTRAIT MODE OVERRIDES
========================================================================= */
@media (max-width: 1024px) and (orientation: portrait) {
  .hero-container {
    padding-top: 15vh;
  }
  .book-tilt-wrap {
    width: 80vw;
    height: 120vw;
    max-width: 300px;
    max-height: 450px;
  }
  .book-3d {
    width: 100%;
    height: 100%;
  }
}

/* =========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================= */
@media (max-width: 768px) {
  /* SVG feTurbulence filters kill mobile GPU performance */
  .dynamic-bg::after,
  .loader-grain {
    display: none !important;
    animation: none !important;
  }
}

/* =========================================================================
   SCROLL PROGRESS BAR
========================================================================= */
#scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, #D4AF37, rgba(212,175,55,0.5));
  z-index: 99999;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* =========================================================================
   BOOK QUOTE
========================================================================= */
.b-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: rgba(212,175,55,0.62);
  border-left: 2px solid rgba(212,175,55,0.28);
  padding-left: 18px;
  margin: 18px 0 22px;
  line-height: 1.72;
  letter-spacing: 0.3px;
}
.b-quote::before { content: '\201C'; }
.b-quote::after  { content: '\201D'; }

/* =========================================================================
   WRITING JOURNEY TIMELINE
========================================================================= */
.journey-section {
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}
.journey-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.journey-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 12px;
}
.journey-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.journey-sub {
  font-family: var(--font-sans);
  color: rgba(255,255,255,0.45);
  font-size: 1rem;
  margin-bottom: 80px;
  letter-spacing: 0.5px;
}

/* Track + spine */
.journey-track {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}
.journey-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(212,175,55,0.4) 8%,
    rgba(212,175,55,0.4) 92%,
    transparent
  );
  transform: translateX(-50%);
}

/* Grid row */
.j-item {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  margin-bottom: 62px;
  gap: 0 16px;
}
.j-item.j-left  .j-content { grid-column: 1; text-align: right; }
.j-item.j-left  .j-node    { grid-column: 2; }
.j-item.j-right .j-node    { grid-column: 2; }
.j-item.j-right .j-content { grid-column: 3; text-align: left; }

.j-node {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 6px;
}
.j-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(212,175,55,0.15);
  border: 2px solid rgba(212,175,55,0.7);
  box-shadow: 0 0 14px rgba(212,175,55,0.35);
  flex-shrink: 0;
}
.j-dot-upcoming {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  box-shadow: none;
}
.j-dot-dev {
  background: rgba(200,40,60,0.15);
  border-color: rgba(200,40,60,0.55);
  box-shadow: 0 0 10px rgba(200,40,60,0.3);
  animation: cs-pulse 2.2s ease-in-out infinite;
}

.j-year {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 8px;
}
.j-year-upcoming { color: rgba(255,255,255,0.35); opacity: 1; }
.j-year-dev      { color: rgba(210,60,80,0.85);   opacity: 1; }

.j-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.j-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}
.j-title a:hover {
  color: var(--gold);
}
.j-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.65;
  max-width: 340px;
}
.j-item.j-left  .j-desc { margin-left: auto; }

/* GSAP initial reveal state */
.js-reveal-left  { opacity: 0; transform: translateX(-28px); }
.js-reveal-right { opacity: 0; transform: translateX(28px); }

/* Journey mobile collapse */
@media (max-width: 680px) {
  .journey-track::before { left: 20px; transform: none; }
  .j-item { grid-template-columns: 40px 1fr; }
  .j-item.j-left  .j-content,
  .j-item.j-right .j-content { grid-column: 2; text-align: left; }
  .j-item.j-left  .j-node,
  .j-item.j-right .j-node    { grid-column: 1; }
  .j-item.j-left  .j-desc,
  .j-item.j-right .j-desc    { margin-left: 0; max-width: 100%; }
}

/* =========================================================================
   NEWSLETTER / CONTACT SECTION
========================================================================= */
.newsletter-section {
  padding: 120px 5%;
  text-align: center;
  background: linear-gradient(to bottom,
    transparent,
    rgba(212,175,55,0.025) 50%,
    transparent
  );
}
.newsletter-container { max-width: 580px; margin: 0 auto; }

.nl-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 10px;
}
.nl-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 18px;
}
.nl-sub {
  color: rgba(255,255,255,0.48);
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: 50px;
  line-height: 1.7;
}
.nl-form { margin-bottom: 14px; }
.nl-input-group {
  display: flex;
  max-width: 480px;
  margin: 0 auto 14px;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 50px;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s;
}
.nl-input-group:focus-within { border-color: rgba(212,175,55,0.65); }
.nl-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 15px 22px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.nl-input-group input::placeholder { color: rgba(255,255,255,0.28); }
.nl-btn {
  background: linear-gradient(135deg, #D4AF37, #8a6a10);
  color: #080808;
  border: none;
  padding: 15px 26px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 50px;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nl-btn:hover { opacity: 0.88; transform: scale(1.02); }
.nl-note {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.22);
  letter-spacing: 1px;
}
.nl-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(212,175,55,0.9);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 22px;
}
.nl-check { font-size: 1.3rem; color: var(--gold); }
.nl-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px auto;
  max-width: 280px;
  color: rgba(255,255,255,0.18);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.nl-divider::before,
.nl-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.nl-email-link {
  display: inline-block;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  margin: 5px 14px;
}
.nl-email-link:hover { color: var(--gold); }

/* =========================================================================
   AMBIENT SOUND BUTTON
========================================================================= */
.ambient-btn {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 14px;
  border-radius: 50px;
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(212,175,55,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  color: rgba(212,175,55,0.5);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: border-color 0.4s, color 0.4s, box-shadow 0.4s;
  outline: none;
  overflow: visible;
}
.ambient-btn:hover {
  border-color: rgba(212,175,55,0.45);
  color: rgba(212,175,55,0.85);
}
.ambient-btn.active {
  border-color: rgba(212,175,55,0.55);
  color: var(--gold);
  box-shadow: 0 0 22px rgba(212,175,55,0.18);
}

/* Icon swap */
.amb-icon-off,
.amb-icon-on { flex-shrink: 0; transition: opacity 0.3s; }
.amb-icon-on  { display: none; }
.ambient-btn.active .amb-icon-off { display: none; }
.ambient-btn.active .amb-icon-on  { display: block; }

/* Label */
.amb-label { pointer-events: none; }
@media (max-width: 480px) { .amb-label { display: none; } }

/* Ripple rings (visible only when active) */
.ambient-rings {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  pointer-events: none;
}
.amb-ring {
  position: absolute;
  inset: -1px;
  border-radius: 50px;
  border: 1px solid rgba(212,175,55,0.35);
  opacity: 0;
  transform: scale(1);
}
.ambient-btn.active .amb-ring {
  animation: amb-ripple 2.8s ease-out infinite;
}
.ambient-btn.active .r2 { animation-delay: 0.9s; }
.ambient-btn.active .r3 { animation-delay: 1.8s; }

@keyframes amb-ripple {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* =========================================================================
   MAHABHARATA CHARIOT ECOSYSTEM
========================================================================= */
.chariot-track {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}
.chariot-ground-line {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(212,175,55,0.15);
  z-index: 1;
}

.mahabharata-scene {
  position: absolute;
  bottom: 0;
  left: -300px;
  width: 280px;
  height: 120px;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
}

/* COUNTRIES SCROLLING MARQUEE */
.hero-stat-countries {
  overflow: hidden;
  min-width: 0;
  position: relative;
  white-space: nowrap;
}
.hero-stat-countries-list {
  display: inline-block;
  color: var(--gold);
  animation: countryScroll 15s linear infinite;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding-left: 100%;
}

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

/* RK Initiative Footer Glow */
.rk-credit {
  opacity: 0.8;
  padding-left: 8px;
  font-family: var(--font-sans);
  font-size: 0.85em;
  letter-spacing: 1px;
}
.rk-word {
  display: inline-block;
  color: rgba(255, 255, 255, 0.4);
  animation: wordGlow 4s ease-in-out infinite;
}
.rk-word.w1 { animation-delay: 0s; }
.rk-word.w2 { animation-delay: 1.3s; }
.rk-word.w3 { animation-delay: 2.6s; }

@keyframes wordGlow {
  0%, 100% {
    color: rgba(255, 255, 255, 0.4);
    text-shadow: none;
  }
  30% {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8), 0 0 20px rgba(212, 175, 55, 0.4);
  }
}

/* =========================================================================
   INTERVIEW BADGE & MODAL
========================================================================= */

/* Floating Badge */
.interview-badge {
  position: fixed;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--gold);
  border-right: none;
  padding: 15px 10px;
  border-radius: 8px 0 0 8px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 2px;
  cursor: pointer;
  z-index: 900;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  box-shadow: -2px 0 15px rgba(212, 175, 55, 0.2);
}
.interview-badge:hover {
  right: 0;
  background: var(--gold);
  color: #000;
  box-shadow: -4px 0 20px rgba(212, 175, 55, 0.4);
}

/* Modal Structure */
.interview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.interview-modal.active {
  opacity: 1;
  pointer-events: all;
}

/* Dim & Blur Backdrop */
.interview-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
}

/* Modal Content */
.interview-modal-content {
  position: relative;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  background: #111;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 50px;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: translateY(30px);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.interview-modal.active .interview-modal-content {
  transform: translateY(0);
}

/* Custom Scrollbar for Modal */
.interview-modal-content::-webkit-scrollbar {
  width: 6px;
}
.interview-modal-content::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 3px;
}

/* Close Button */
.interview-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}
.interview-close:hover {
  color: var(--gold);
}

/* Modal Typography */
.interview-meta {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.interview-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}
.interview-subtitle {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Q&A Section */
.interview-qa {
  margin-bottom: 35px;
}
.interview-qa .question {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.5;
  margin-bottom: 12px;
}
.interview-qa .answer {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #ddd;
  line-height: 1.8;
  letter-spacing: 0.3px;
}

/* Link Button */
.interview-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.interview-link-btn {
  display: inline-block;
  font-family: var(--font-sans);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  padding: 12px 25px;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.interview-link-btn .arrow {
  margin-left: 8px;
  transition: margin-left 0.3s ease;
}
.interview-link-btn:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}
.interview-link-btn:hover .arrow {
  margin-left: 12px;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .interview-modal-content {
    padding: 30px 20px;
    width: 95%;
  }
  .interview-title { font-size: 1.8rem; }
  .interview-qa .answer { font-size: 1.05rem; }
}
