/* ==========================================================================
   SIMANTO MITRO — PREMIUM PORTFOLIO DESIGN SYSTEM
   Theme: Deep Navy to Luminous Ice Blue Glassmorphism ($10k Agency Look)
   ========================================================================== */

/* Fonts are loaded once via <link> in index.html (no duplicate render-blocking @import) */

:root {
  /* Color Palette */
  --bg-dark: #040814;
  --bg-deep: #060b18;
  --bg-navy: #091226;
  --accent-cyan: #38bdf8;
  --accent-ice: #bae6fd;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --text-primary: #f8fafc;
  --text-secondary: rgba(248, 250, 252, 0.75);
  --text-muted: rgba(248, 250, 252, 0.48);

  /* Glassmorphism Design Tokens */
  --glass-bg: rgba(14, 25, 48, 0.55);
  --glass-bg-hover: rgba(20, 36, 68, 0.75);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-bright: rgba(186, 230, 253, 0.45);
  --glass-top-edge: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
  --glass-blur: blur(20px);
  --glass-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.7), 0 0 24px 0 rgba(56, 189, 248, 0.08);
  --glass-shadow-hover: 0 24px 50px -10px rgba(0, 0, 0, 0.8), 0 0 35px 0 rgba(56, 189, 248, 0.28);

  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-display: 'Unbounded', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Smoothness */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-dark);
}

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

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

/* ==========================================================================
   SMOKY BLUE CURSOR LIGHT (Desktop Only)
   ========================================================================== */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  margin-top: -240px;
  margin-left: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(14, 165, 233, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
  transform: translate3d(-1000px, -1000px, 0);
  opacity: 0;
  will-change: transform;
}

/* stronger core over interactive elements (--hot is lerped 0..1 in JS) */
#cursor-glow::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.32) 0%, rgba(56, 189, 248, 0.1) 45%, transparent 70%);
  opacity: var(--hot, 0);
}

#cursor-smoke {
  position: fixed;
  top: 0;
  left: 0;
  width: 760px;
  height: 760px;
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 46%, rgba(56, 189, 248, 0.07) 0%, transparent 52%),
    radial-gradient(circle at 60% 58%, rgba(147, 197, 253, 0.05) 0%, transparent 48%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 998;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.6s ease;
  transform: translate3d(-1000px, -1000px, 0);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  body:hover #cursor-glow,
  body:hover #cursor-smoke {
    opacity: 1;
  }
}

@media (hover: none) or (pointer: coarse) {
  #cursor-glow, #cursor-smoke {
    display: none !important;
  }
}

/* ==========================================================================
   CANVAS STAGE VIEWPORT (60fps Canvas Architecture)
   ========================================================================== */
.stage-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  background-color: #000000;
}

#hero-canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* Subtle Vignette */
.stage-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(4, 8, 20, 0.6) 100%);
}

/* ==========================================================================
   NAVIGATION SYSTEM (Horizontal Top to Vertical Left Morph)
   ========================================================================== */
.nav-wrapper {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  transition: all 0.6s var(--ease-out-expo);
  pointer-events: auto;
}

.glass-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(14, 25, 48, 0.65) 100%);
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: all 0.5s var(--ease-out-expo);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 9999px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-shadow: 0 0 12px var(--accent-glow);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  margin-left: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(14, 25, 48, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 9999px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  transition: all 0.3s var(--ease-out-expo);
  white-space: nowrap;
}

.nav-cta:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4) 0%, rgba(20, 38, 70, 0.95) 100%);
  border-color: rgba(186, 230, 253, 0.8);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.nav-cta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Nav Morphed to Vertical Left Panel on Scroll */
.nav-wrapper.morphed {
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
}

.nav-wrapper.morphed .glass-nav {
  flex-direction: column;
  padding: 16px 10px;
  border-radius: 28px;
  gap: 12px;
}

.nav-wrapper.morphed .nav-links {
  flex-direction: column;
  gap: 2px;
}

.nav-wrapper.morphed .nav-link {
  padding: 8px 14px;
  font-size: 0.8rem;
  text-align: center;
}

.nav-wrapper.morphed .nav-cta {
  margin-left: 0;
  margin-top: 4px;
  padding: 8px 12px;
  font-size: 0.78rem;
}

.nav-wrapper.morphed .nav-cta span.cta-full {
  display: none;
}

.nav-wrapper.morphed .nav-cta span.cta-short {
  display: inline;
}

.nav-cta span.cta-short {
  display: none;
}

/* Mobile Glass Burger */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(14, 25, 48, 0.75);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 101;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-toggle span {
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 20, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

.mobile-nav-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer a {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s;
}

.mobile-nav-drawer a:hover {
  color: var(--accent-cyan);
}

@media (max-width: 900px) {
  .nav-wrapper {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
}

/* ==========================================================================
   SCROLL TRACK & SECTIONS LAYOUT
   ========================================================================== */
.scroll-container {
  position: relative;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.scene-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 60px 8% 60px 8%;
  pointer-events: none;
}

.scene-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  pointer-events: auto;
}

.scene-indicator {
  position: absolute;
  right: 5%;
  bottom: 28px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION 1: HERO
   ========================================================================== */
.hero-scene {
  justify-content: flex-end;
}

.hero-content {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--accent-cyan);
  flex-shrink: 0;
}

.hero-name-wrapper {
  display: flex;
  flex-direction: column;
  margin: 4px 0;
}

.hero-name-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(4.2rem, 8.5vw, 7.8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 40%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.85));
}

.hero-name-outline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.32em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.88);
  text-shadow: 0 0 32px rgba(56, 189, 248, 0.45);
  margin-top: -6px;
  margin-left: 4px;
}

.hero-tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 540px;
}

.hero-tagline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25em;
  color: #ffffff;
  font-weight: 400;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(14, 25, 48, 0.55) 100%);
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
}

.glass-pill:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-bright);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-2px);
  color: #ffffff;
}

.pill-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-icon svg {
  width: 100%;
  height: 100%;
}

/* As Featured In Strip */
.featured-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(14, 25, 48, 0.45) 100%);
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  max-width: 580px;
}

.featured-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.featured-outlets {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 26px, #000 calc(100% - 30px), transparent 100%);
  padding-left: 26px;
}

.marquee-track {
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
  animation: marqueeScroll 22s linear 1.6s infinite;
  will-change: transform;
}

.featured-strip:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.outlet-item {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.01em;
  transition: color 0.2s;
  white-space: nowrap;
  padding-right: 34px; /* spacing inside items so -50% loops seamlessly */
  flex-shrink: 0;
}

.outlet-item:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   SECTION 2: AT A GLANCE
   ========================================================================== */
.glance-scene {
  justify-content: flex-start;
}

.glance-content {
  width: 100%;
  max-width: 680px;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.scene-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.05;
  color: #ffffff;
}

.cards-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
  position: relative;
  perspective: 1200px;
}

.deck-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  min-height: 310px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(14, 25, 48, 0.65) 100%);
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo), border-color 0.3s;
}

/* Initial Fanned rotations */
.deck-card:nth-child(1) { transform: rotate(-7deg) translateY(10px); }
.deck-card:nth-child(2) { transform: rotate(-2.5deg) translateY(-6px); }
.deck-card:nth-child(3) { transform: rotate(2.5deg) translateY(-6px); }
.deck-card:nth-child(4) { transform: rotate(7deg) translateY(10px); }

/* Floating Sine Motion */
@keyframes cardFloat1 { 0%, 100% { transform: rotate(-7deg) translateY(10px); } 50% { transform: rotate(-6deg) translateY(2px); } }
@keyframes cardFloat2 { 0%, 100% { transform: rotate(-2.5deg) translateY(-6px); } 50% { transform: rotate(-1.5deg) translateY(-14px); } }
@keyframes cardFloat3 { 0%, 100% { transform: rotate(2.5deg) translateY(-6px); } 50% { transform: rotate(3.5deg) translateY(-14px); } }
@keyframes cardFloat4 { 0%, 100% { transform: rotate(7deg) translateY(10px); } 50% { transform: rotate(6deg) translateY(2px); } }

.deck-card.floating:nth-child(1) { animation: cardFloat1 5.5s ease-in-out infinite; }
.deck-card.floating:nth-child(2) { animation: cardFloat2 6.2s ease-in-out infinite 0.4s; }
.deck-card.floating:nth-child(3) { animation: cardFloat3 5.8s ease-in-out infinite 0.8s; }
.deck-card.floating:nth-child(4) { animation: cardFloat4 6.5s ease-in-out infinite 1.2s; }

.deck-card:hover {
  animation: none !important;
  transform: rotate(0deg) translateY(-18px) scale(1.03) !important;
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-bright);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.85), 0 0 38px rgba(56, 189, 248, 0.35);
  z-index: 20;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.card-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.card-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.card-number {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  transition: gap 0.25s, color 0.25s;
}

.deck-card:hover .card-link {
  color: #ffffff;
  gap: 10px;
}

/* ==========================================================================
   SECTION 3: STORY
   ========================================================================== */
.story-scene {
  justify-content: flex-end;
}

.story-content {
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  position: relative;
  display: flex;
  gap: 36px;
}

.story-progress-rail {
  width: 3px;
  height: 380px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
}

.story-progress-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(180deg, var(--accent-cyan), #ffffff);
  box-shadow: 0 0 16px var(--accent-cyan);
  border-radius: 9999px;
  transition: transform 0.3s ease-out;
}

.story-lines-container {
  transition: opacity 0.35s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
}

.story-line {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 400;
  /* upcoming line: hidden below its mask, blurred */
  opacity: 0;
  transform: translate3d(0, 0.6em, 0);
  filter: blur(6px);
  clip-path: inset(0 0 100% 0);
  transition:
    opacity 0.55s var(--ease-out-expo) 0.18s,
    transform 0.7s var(--ease-out-expo) 0.18s,
    filter 0.6s var(--ease-out-expo) 0.18s,
    clip-path 0.7s var(--ease-out-expo) 0.18s,
    color 0.4s ease;
}

.story-line.is-past {
  /* previous line fades out first (no delay), stays as a faint trail on desktop */
  opacity: 0.16;
  transform: translate3d(0, 0, 0);
  filter: blur(0.5px);
  clip-path: inset(0 0 0 0);
  transition-delay: 0s;
}

.story-line.active {
  color: #ffffff;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  clip-path: inset(0 0 0 0);
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.4);
  font-weight: 500;
}

.story-line.brand-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.story-line.brand-heading.active {
  background: linear-gradient(90deg, #ffffff 0%, var(--accent-ice) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   SECTION 4: PULL UP A CHAIR
   ========================================================================== */
.chair-scene {
  justify-content: flex-end;
}

.chair-content {
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chair-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.25;
  font-weight: 600;
  color: #ffffff;
}

.chair-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-ice);
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
}

.chair-desc {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.mug-form-wrapper {
  position: relative;
  margin-top: 10px;
  max-width: 500px;
}

.steam-emitter {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 50px;
  pointer-events: none;
  z-index: 5;
}

.steam-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 20 80;
  animation: steamRise 3s ease-out infinite;
  filter: drop-shadow(0 0 8px rgba(186, 230, 253, 0.8));
}

.steam-path:nth-child(2) {
  animation-delay: 0.7s;
  stroke-width: 2.5;
}

.steam-path:nth-child(3) {
  animation-delay: 1.4s;
  stroke-width: 1.8;
}

@keyframes steamRise {
  0% {
    stroke-dashoffset: 100;
    opacity: 0;
    transform: translateY(6px) scale(0.9);
  }
  30% {
    opacity: 0.75;
  }
  100% {
    stroke-dashoffset: -40;
    opacity: 0;
    transform: translateY(-28px) scale(1.15);
  }
}

.mug-body {
  position: relative;
  padding: 30px 28px 32px 28px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.1) 0%, rgba(14, 25, 48, 0.72) 100%);
  border: 1px solid var(--glass-border);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px 16px 42px 42px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
  transition: box-shadow 0.3s;
}

.mug-body:focus-within {
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.28);
}

.mug-handle {
  position: absolute;
  top: 45px;
  right: -36px;
  width: 52px;
  height: 120px;
  border: 7px solid rgba(255, 255, 255, 0.16);
  border-left: none;
  border-radius: 0 45px 45px 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(14, 25, 48, 0.35) 100%);
  box-shadow: 12px 10px 24px -5px rgba(0, 0, 0, 0.5);
  backdrop-filter: var(--glass-blur);
}

.mug-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mug-header svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-cyan);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.glass-input {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.88rem;
  color: #ffffff;
  background: rgba(4, 9, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: none;
  transition: all 0.25s ease;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.glass-input:focus {
  background: rgba(9, 18, 38, 0.75);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.28);
}

.btn-reserve {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.75) 0%, rgba(14, 165, 233, 0.95) 100%);
  border: 1px solid rgba(186, 230, 253, 0.6);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.btn-reserve:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9) 0%, #0284c7 100%);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.55);
  transform: translateY(-2px);
}

.form-success-banner {
  display: none;
  padding: 18px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  color: #d1fae5;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

/* ==========================================================================
   SECTION 5: FOOTER
   ========================================================================== */
.footer-section {
  position: relative;
  width: 100%;
  padding: 120px 8% 40px 8%;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 7, 18, 0.85) 30%, #020409 100%);
  z-index: 20;
  pointer-events: auto;
}

.footer-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px 40px 48px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(14, 25, 48, 0.75) 100%);
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  color: #ffffff;
  line-height: 1.1;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.25s ease;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  color: var(--accent-cyan);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: all 0.2s;
  display: inline-block;
}

.footer-links-list a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-reach-item {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.footer-reach-item a {
  color: #ffffff;
  transition: color 0.2s;
}

.footer-reach-item a:hover {
  color: var(--accent-cyan);
}

.footer-chair-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin-top: 8px;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(14, 25, 48, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 9999px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  transition: all 0.3s;
}

.footer-chair-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4) 0%, rgba(20, 38, 70, 0.95) 100%);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.footer-copyright {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 40px;
}

/* ==========================================================================
   MOTION LAYER (intro reveals, drawer, tilt/glare, magnetic glow, mug shimmer)
   ========================================================================== */
/* Hero intro — pure CSS so it starts on first paint (no wait for JS/CDN; good LCP).
   Letters rise out of a mask with a blur-to-sharp; on desktop they also slide out from
   his side (left), as if emerging from behind him. */
:root { --intro-ease: cubic-bezier(0.16, 1, 0.3, 1); --char-from-x: -55%; }
.hero-content .eyebrow { animation: introRise 0.8s var(--intro-ease) 0.05s both; }
.hero-name-serif .char { animation: charRise 1.1s var(--intro-ease) calc(0.1s + var(--i, 0) * 0.05s) both; }
.hero-name-outline .char { animation: charRise 1s var(--intro-ease) calc(0.35s + var(--i, 0) * 0.06s) both; }
.hero-tagline { animation: lineRise 1.1s var(--intro-ease) 0.1s both; }
.hero-pills .glass-pill { animation: introRise 0.8s var(--intro-ease) 0.8s both; }
.hero-pills .glass-pill + .glass-pill { animation-delay: 0.88s; }
.hero-content .featured-strip { animation: introRise 0.8s var(--intro-ease) 0.95s both; }
@keyframes charRise {
  from { opacity: 0; transform: translate3d(var(--char-from-x), 115%, 0); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
/* no opacity in this one: the headline is painted from the first frame (it is the LCP element) */
@keyframes lineRise {
  from { transform: translate3d(0, 14px, 0); filter: blur(8px); }
  to { transform: none; filter: blur(0); }
}
@keyframes introRise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 767.98px) {
  :root { --char-from-x: 0%; }
}

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

/* Split letters: each char rises out of its own mask */
.char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.06em 0.1em 0.14em 0.04em;
  margin: -0.06em -0.1em -0.14em -0.04em;
}
.char {
  display: inline-block;
  will-change: transform;
}
.hero-name-serif.is-split {
  background: none;
  -webkit-text-fill-color: currentColor;
}
.hero-name-serif.is-split .char {
  background: linear-gradient(180deg, #ffffff 40%, #bae6fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-name-outline .char {
  display: inline-block;
}
/* Burger -> X */
.mobile-nav-toggle span {
  transform-origin: center;
}
.mobile-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.mobile-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-toggle:active { transform: scale(0.94); }

/* Full-screen glass menu with staggered links */
.mobile-nav-drawer {
  background: radial-gradient(120% 80% at 80% 0%, rgba(56, 189, 248, 0.14) 0%, transparent 55%), rgba(4, 8, 20, 0.86);
  gap: 18px;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out-expo), visibility 0s linear 0.45s;
}
.mobile-nav-drawer.open {
  visibility: visible;
  transition: opacity 0.45s var(--ease-out-expo), visibility 0s;
}
.mobile-nav-drawer > a,
.mobile-nav-drawer .drawer-social {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(4px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), filter 0.5s ease, color 0.2s;
}
.mobile-nav-drawer.open > a,
.mobile-nav-drawer.open .drawer-social {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}
.mobile-nav-drawer.open > :nth-child(1) { transition-delay: 0.06s; }
.mobile-nav-drawer.open > :nth-child(2) { transition-delay: 0.10s; }
.mobile-nav-drawer.open > :nth-child(3) { transition-delay: 0.14s; }
.mobile-nav-drawer.open > :nth-child(4) { transition-delay: 0.18s; }
.mobile-nav-drawer.open > :nth-child(5) { transition-delay: 0.22s; }
.mobile-nav-drawer.open > :nth-child(6) { transition-delay: 0.26s; }
.mobile-nav-drawer.open > :nth-child(7) { transition-delay: 0.30s; }
.mobile-nav-drawer.open > :nth-child(8) { transition-delay: 0.36s; }
.mobile-nav-drawer > a:active { color: var(--accent-cyan); }
.mobile-nav-drawer .nav-cta {
  margin: 10px 0 0 0;
  padding: 12px 24px;
  font-size: 1rem;
}
.drawer-social {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
.drawer-social a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.drawer-social a:hover, .drawer-social a:active { color: var(--accent-cyan); }
body.menu-open { overflow: hidden; }

/* Cards: 3D tilt + glare (desktop), highlight when reached via a link */
.deck-card {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 0%;
  transform-style: preserve-3d;
}
.deck-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.22) 0%, rgba(186, 230, 253, 0.08) 28%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.deck-card.is-tilting {
  animation: none !important;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-14px) scale(1.03) !important;
  transition: transform 0.12s linear, box-shadow 0.45s var(--ease-out-expo), border-color 0.3s;
}
.deck-card.is-tilting::after { opacity: 1; }
.deck-card.is-highlighted {
  border-color: rgba(125, 211, 252, 0.85) !important;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.5), 0 0 40px rgba(56, 189, 248, 0.45) !important;
}

/* CTA glow pulse (opacity-only animation on a pseudo element = cheap) */
.nav-cta, .btn-reserve, .footer-chair-btn {
  position: relative;
  will-change: transform;
}
.nav-cta::after, .btn-reserve::after, .footer-chair-btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 22px 2px rgba(56, 189, 248, 0.55);
  opacity: 0;
  pointer-events: none;
  animation: ctaPulse 3.2s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.75; }
}

/* Mug glass: steam-like shimmer drifting up through the glass + glowing focus */
.mug-body {
  overflow: hidden;
  isolation: isolate;
}
.mug-body::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 0;
  height: 200%;
  background:
    radial-gradient(40% 18% at 30% 70%, rgba(186, 230, 253, 0.07) 0%, transparent 70%),
    radial-gradient(35% 14% at 70% 40%, rgba(255, 255, 255, 0.06) 0%, transparent 70%),
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: mugShimmer 9s ease-in-out infinite;
  will-change: transform;
}
@keyframes mugShimmer {
  0% { transform: translate3d(-6%, 0, 0); }
  50% { transform: translate3d(6%, -50%, 0); }
  100% { transform: translate3d(-6%, 0, 0); }
}
.glass-input:focus {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), 0 0 18px rgba(56, 189, 248, 0.35);
}

/* ==========================================================================
   TABLET & MOBILE OPTIMIZATIONS (<1024px and <768px)
   Keeps Desktop (>=1024px) 100% untouched
   ========================================================================== */
@media (max-width: 1024px) {
  /* Prevent horizontal cut-offs */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  .nav-wrapper {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
  }

  /* Hide overflowing wide indicator text */
  .scene-indicator {
    display: none !important;
  }

  /* Hide protruding mug handle on tablet & mobile */
  .mug-handle {
    display: none !important;
  }

  /* Tablet 2-column card deck */
  .cards-deck {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .deck-card {
    min-height: 230px !important;
    transform: none !important;
    animation: none !important;
  }

  .deck-card:nth-child(1),
  .deck-card:nth-child(2),
  .deck-card:nth-child(3),
  .deck-card:nth-child(4) {
    transform: none !important;
    animation: none !important;
  }

  .footer-panel {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* ==========================================================================
   PHONES (<768px) — "portfolio cover" layout
   The canvas (main.js) draws the clip in the top of the screen and fades it into #060b18,
   all text lives in the bottom ~40% on a fixed dark gradient. Desktop is untouched.
   ========================================================================== */
@media (max-width: 767.98px) {
  /* 'clip' (not 'hidden') so the page itself stays the scroller and position:sticky works */
  html, body {
    overflow-x: clip !important;
  }

  /* Fixed bottom gradient (transparent -> #060b18) that text always sits on */
  .stage-vignette {
    background: linear-gradient(180deg,
      rgba(6, 11, 24, 0) 0%,
      rgba(6, 11, 24, 0) 52%,
      rgba(6, 11, 24, 0.55) 62%,
      rgba(6, 11, 24, 0.92) 74%,
      #060b18 84%,
      #060b18 100%);
  }

  .scene-section {
    padding: 0 18px 22px 18px;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    background: none;
  }

  .scene-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .hero-content, .glance-content, .story-content {
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  /* ---------- 1. HERO ---------- */
  .hero-content {
    gap: 10px;
  }

  .eyebrow {
    font-size: clamp(9px, 2.6vw, 11px);
    letter-spacing: 0.14em;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .eyebrow::before {
    width: 16px;
  }

  .hero-name-wrapper {
    margin: 0;
  }

  .hero-name-serif {
    font-size: clamp(46px, 13.6vw, 58px);
    line-height: 0.95;
  }

  .hero-name-outline {
    font-size: clamp(25px, 7.4vw, 31px);
    letter-spacing: 0.1em;
    margin-top: 0;
    margin-left: 2px;
    -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.9);
  }

  .hero-tagline {
    font-size: 15.5px;
    line-height: 1.45;
    max-width: 100%;
  }

  .hero-pills {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 0;
  }

  .glass-pill {
    padding: 6px 12px;
    font-size: 12px;
    gap: 7px;
    white-space: nowrap;
    max-width: 100%;
  }

  .pill-icon {
    width: 14px;
    height: 14px;
  }

  .featured-strip {
    width: 100%;
    max-width: 100%;
    padding: 8px 0 8px 12px;
    margin-top: 2px;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  .featured-label {
    font-size: 8.5px;
    letter-spacing: 0.14em;
    flex-shrink: 0;
    padding-right: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  .featured-outlets {
    padding-left: 24px;
  }

  .outlet-item {
    font-size: 12px;
    padding-right: 26px;
  }

  /* ---------- 2. AT A GLANCE: 2x2 compact grid, fully on screen ---------- */
  .glance-content {
    gap: 6px;
  }

  .scene-title {
    font-size: 30px;
    line-height: 1.1;
    margin-bottom: 6px;
  }

  .cards-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 0;
    perspective: none;
  }

  .deck-card,
  .deck-card:nth-child(1),
  .deck-card:nth-child(2),
  .deck-card:nth-child(3),
  .deck-card:nth-child(4) {
    min-height: 0 !important;
    padding: 12px 12px 11px 12px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(14, 25, 48, 0.82) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7);
    transform: none !important;
    animation: none !important;
  }

  .deck-card:hover {
    transform: none !important;
  }

  .card-top {
    margin-bottom: 8px;
  }

  .card-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .card-icon-wrap svg {
    width: 16px;
    height: 16px;
  }

  .card-number {
    font-size: 10px;
  }

  .card-body {
    gap: 4px;
  }

  .card-title {
    font-size: 13.5px;
    line-height: 1.2;
  }

  .card-desc {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .card-link {
    margin-top: 8px;
    font-size: 9.5px;
  }

  /* ---------- 3. STORY: pinned, one line at a time in the bottom area ---------- */
  .story-scene {
    display: block;
    min-height: 240vh;
    padding: 0 18px;
    overflow: clip;
  }

  .story-scene .scene-inner {
    height: 240vh;
  }

  .story-content {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    justify-content: flex-end;
    padding-bottom: 14vh;
  }

  .story-progress-rail {
    display: none;
  }

  .story-lines-container {
    display: grid;
    width: 100%;
    gap: 0;
    transition: opacity 0.25s linear;
  }

  .story-line,
  .story-line.brand-heading,
  .story-line.is-past {
    grid-area: 1 / 1;
    align-self: end;
    font-size: 21px;
    line-height: 1.4;
    color: #ffffff;
    opacity: 0;
  }

  .story-line.is-past {
    transform: translate3d(0, -0.35em, 0);
    filter: blur(4px);
    transition-delay: 0s;
  }

  .story-line.active {
    font-weight: 500;
  }

  .story-line.brand-heading {
    font-size: 32px;
  }

  /* ---------- 4. COFFEE MOMENT + FORM: pinned sequence ---------- */
  .chair-scene {
    display: block;
    min-height: 260vh;
    padding: 0 18px;
  }

  .chair-scene .scene-inner {
    height: 260vh;
  }

  .chair-content {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    max-width: 100%;
    margin: 0;
    justify-content: flex-end;
    gap: 6px;
    padding-bottom: 16px;
  }

  .chair-title {
    font-size: clamp(17px, 4.85vw, 20px);
    line-height: 1.25;
  }

  .chair-desc {
    font-size: clamp(11.5px, 3.15vw, 13px);
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .mug-form-wrapper {
    max-width: 100%;
    width: 100%;
    margin-top: 6px;
  }

  .steam-emitter {
    top: -30px;
    width: 90px;
    height: 34px;
  }

  .mug-body {
    padding: 12px 14px 16px 14px;
    border-radius: 14px 14px 34px 34px;
    gap: 9px;
  }

  .mug-header {
    font-size: 14px;
    padding-bottom: 4px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .form-group[style] {
    margin-top: 0 !important;
  }

  .form-row[style] {
    margin-top: 0 !important;
  }

  #chair-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .glass-input {
    font-size: 16px; /* >=16px stops mobile browsers from zooming on focus */
    padding: 8px 12px;
    border-radius: 10px;
  }

  .btn-reserve {
    padding: 11px 16px;
    font-size: 14px;
    margin-top: 2px;
  }

  /* Fixed burger hides while the form is on screen */
  .mobile-nav-toggle {
    transition: opacity 0.25s ease;
  }

  .mobile-nav-toggle.is-hidden {
    opacity: 0;
    pointer-events: none;
  }

  /* Tap feedback */
  .deck-card.is-pressed,
  .deck-card:active {
    transform: scale(0.97) !important;
    border-color: rgba(125, 211, 252, 0.6) !important;
    box-shadow: 0 0 26px rgba(56, 189, 248, 0.35) !important;
    transition: transform 0.12s ease, box-shadow 0.2s ease !important;
  }
  .glass-pill:active, .btn-reserve:active, .footer-chair-btn:active, .social-btn:active {
    transform: scale(0.96);
  }

  /* ---------- 5. FOOTER: plain dark gradient, no video behind ---------- */
  .footer-section {
    background: linear-gradient(180deg, #060b18 0%, #050916 45%, #020409 100%);
    z-index: 30;
    padding: 48px 16px 32px 16px;
  }

  .footer-panel {
    padding: 24px 18px;
    border-radius: 18px;
    gap: 28px !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(14, 25, 48, 0.6) 100%);
  }

  .footer-heading {
    font-size: 30px;
  }

  .footer-copyright {
    margin-top: 28px;
    font-size: 10px;
  }
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .deck-card {
    animation: none !important;
    transform: none !important;
  }
  .marquee-track {
    animation: none !important;
  }
  .hero-name-serif .char, .hero-name-outline .char, .hero-tagline, .hero-pills .glass-pill, .hero-content .eyebrow, .hero-content .featured-strip { animation: none !important; }
  .story-line { filter: none !important; clip-path: none !important; transform: none !important; }
  .nav-cta::after, .btn-reserve::after, .footer-chair-btn::after, .mug-body::before { animation: none !important; }
}
