/* ==========================================================================
   IF YOU KNOW YOU NOFO — LIVING 24-HR ATMOSPHERIC STYLES
   Apple HIG Spatial Glass Interface • Pure Editorial Aesthetics
   Graphite Typography (#161B22) • Optical Tracking (-0.015em)
   Responsive Viewport Support (320px - 1440px+)
   ========================================================================== */

:root {
  /* Dynamic Palette: Default (Dawn / Morning) */
  --bg-cream: #F8F3EB;
  --bg-paper: rgba(255, 252, 248, 0.85);
  --bg-card-translucent: rgba(255, 253, 248, 0.74);
  
  /* Apple HIG Graphite Typography & Label Tokens */
  --ink-charcoal: #161B22;
  --ink-body: #161B22;
  --ink-muted: #57606A;
  --ink-faint: #8C959F;

  /* Accents */
  --accent-primary: #4E6B56;  /* Peconic Sage */
  --accent-secondary: #BA6E58; /* Sound Terracotta */
  --accent-glow: rgba(78, 107, 86, 0.18);

  /* Subtle Optical Glass Borders */
  --border-light: rgba(22, 27, 34, 0.09);
  --border-focus: rgba(22, 27, 34, 0.40);
  --border-pencil: rgba(22, 27, 34, 0.15);

  /* Clean Apple Ambient Elevation Drop Shadows */
  --shadow-ambient: 0 4px 12px -2px rgba(22, 27, 34, 0.04), 0 12px 32px -4px rgba(22, 27, 34, 0.08);
  --shadow-soft: 0 4px 16px -2px rgba(22, 27, 34, 0.06), 0 1px 3px 0 rgba(22, 27, 34, 0.04);
  --shadow-float: 0 12px 32px -4px rgba(22, 27, 34, 0.08), 0 4px 12px -2px rgba(22, 27, 34, 0.04);
  --shadow-card: 0 4px 12px -2px rgba(22, 27, 34, 0.04), 0 12px 32px -4px rgba(22, 27, 34, 0.08), 0 32px 64px -12px rgba(22, 27, 34, 0.12);

  /* Apple System Typography Hierarchy */
  --font-serif: 'Cormorant Garamond', -apple-system-ui-serif, Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, 'Space Grotesk', Menlo, monospace;

  /* Optical Tracking & Radii */
  --tracking-tight: -0.015em;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-theme: background 0.8s ease, color 0.8s ease, border-color 0.8s ease;
}

/* ==========================================================================
   Dynamic Time-of-Day Themes
   ========================================================================== */
html.theme-dawn {
  --bg-cream: #F8F3EB;
  --bg-paper: rgba(255, 252, 248, 0.88);
  --bg-card-translucent: rgba(255, 253, 248, 0.76);
  --ink-charcoal: #161B22;
  --ink-body: #161B22;
  --ink-muted: #57606A;
  --accent-primary: #52705B;
  --accent-secondary: #BA6E58;
  --accent-glow: rgba(186, 110, 88, 0.20);
  --border-light: rgba(22, 27, 34, 0.09);
}

html.theme-midday {
  --bg-cream: #FAF7F2;
  --bg-paper: rgba(255, 255, 255, 0.90);
  --bg-card-translucent: rgba(255, 255, 255, 0.78);
  --ink-charcoal: #161B22;
  --ink-body: #161B22;
  --ink-muted: #57606A;
  --accent-primary: #286845;
  --accent-secondary: #286482;
  --accent-glow: rgba(40, 104, 69, 0.20);
  --border-light: rgba(22, 27, 34, 0.09);
}

html.theme-sunset {
  --bg-cream: #F7EFE4;
  --bg-paper: rgba(254, 248, 240, 0.88);
  --bg-card-translucent: rgba(254, 249, 242, 0.76);
  --ink-charcoal: #161B22;
  --ink-body: #161B22;
  --ink-muted: #57606A;
  --accent-primary: #B25432;
  --accent-secondary: #CE8238;
  --accent-glow: rgba(178, 84, 50, 0.22);
  --border-light: rgba(22, 27, 34, 0.09);
}

html.theme-night {
  --bg-cream: #0C1016;
  --bg-paper: rgba(18, 24, 34, 0.85);
  --bg-card-translucent: rgba(16, 22, 32, 0.80);
  
  --ink-charcoal: #FAF6EF;
  --ink-body: #EDE7DC;
  --ink-muted: #A8A194;
  --ink-faint: #7A746A;

  --accent-primary: #D4AF37;
  --accent-secondary: #6A8CA8;
  --accent-glow: rgba(212, 175, 55, 0.25);

  --border-light: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(212, 175, 55, 0.75);
  --border-pencil: rgba(255, 255, 255, 0.16);

  --shadow-ambient: 0 6px 16px -2px rgba(0, 0, 0, 0.40), 0 16px 40px -6px rgba(0, 0, 0, 0.60);
  --shadow-soft: 0 14px 40px -10px rgba(0, 0, 0, 0.50);
  --shadow-float: 0 28px 75px -14px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 6px 16px -2px rgba(0, 0, 0, 0.35), 0 16px 40px -6px rgba(0, 0, 0, 0.55), 0 44px 90px -12px rgba(0, 0, 0, 0.75);
}

/* ==========================================================================
   Reset & Base Setup
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-cream);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: var(--tracking-tight);
  overflow-x: hidden;
  position: relative;
  transition: var(--transition-theme);
  -webkit-tap-highlight-color: transparent;
}

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

/* Paper Grain Texture Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-image: 
    radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 0),
    radial-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.65;
}

.svg-grain-filter {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ==========================================================================
   Background Layer Hierarchy (Sovereign WebGL Optical Compositor)
   ========================================================================== */
.art-layer-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Sovereign WebGL Fullscreen Optical Compositor */
.viewport-canvas, canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  margin: 0;
  padding: 0;
  display: block;
}

/* Legacy Static DOM Backdrops (Hidden: WebGL Shader renders the full scene natively) */
.art-backdrop,
.art-vignette {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==========================================================================
   Main Site Container & Responsive Boundaries
   ========================================================================== */
.site-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 1560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(1.1rem, env(safe-area-inset-top)) max(2.2rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(2.2rem, env(safe-area-inset-left));
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
  gap: 0.85rem;
}

@media (max-width: 1024px) {
  .site-container {
    padding: max(0.95rem, env(safe-area-inset-top)) max(1.4rem, env(safe-area-inset-right)) max(0.85rem, env(safe-area-inset-bottom)) max(1.4rem, env(safe-area-inset-left));
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .site-container {
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.85rem, env(safe-area-inset-right)) max(0.65rem, env(safe-area-inset-bottom)) max(0.85rem, env(safe-area-inset-left));
    gap: 0.55rem;
  }
}

@media (max-width: 420px) {
  .site-container {
    padding: max(0.6rem, env(safe-area-inset-top)) max(0.55rem, env(safe-area-inset-right)) max(0.55rem, env(safe-area-inset-bottom)) max(0.55rem, env(safe-area-inset-left));
    gap: 0.45rem;
  }
}

/* ==========================================================================
   Header & Live Telemetry Bar
   ========================================================================== */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  animation: cinematicHeaderReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.header-left {
  justify-self: start;
  display: flex;
  align-items: center;
}

.header-center {
  justify-self: center;
  display: flex;
  align-items: center;
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
}

/* Brand Badge Glass Capsule */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.44rem 1.05rem;
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(22, 27, 34, 0.08);
  border-radius: var(--radius-full);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.65), 0 4px 16px -2px rgba(22, 27, 34, 0.05);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  transition: var(--transition-smooth);
  white-space: nowrap;
  will-change: transform, backdrop-filter, box-shadow;
}

.brand-badge:hover {
  background: rgba(255, 255, 255, 0.72);
  border-top-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1.5px);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.85), 0 8px 24px -3px rgba(22, 27, 34, 0.09);
}

html.theme-night .brand-badge {
  background: rgba(22, 28, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.40);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.20), 0 8px 24px -4px rgba(0, 0, 0, 0.45);
}

html.theme-night .brand-badge:hover {
  background: rgba(30, 38, 52, 0.80);
  border-top-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-1.5px);
}

.brand-monogram {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-charcoal);
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-secondary);
  flex-shrink: 0;
}

.coordinates {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Real-Time Weather Pill Capsule */
.live-weather-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.44rem 1.25rem;
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(22, 27, 34, 0.08);
  border-radius: var(--radius-full);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.65), 0 4px 16px -2px rgba(22, 27, 34, 0.05);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: var(--tracking-tight);
  color: var(--ink-body);
  font-weight: 600;
  transition: var(--transition-smooth);
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  will-change: transform, backdrop-filter, box-shadow;
}

.live-weather-pill:hover {
  background: rgba(255, 255, 255, 0.72);
  border-top-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1.5px);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.85), 0 8px 24px -3px rgba(22, 27, 34, 0.09);
}

html.theme-night .live-weather-pill {
  background: rgba(22, 28, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.40);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.20), 0 8px 24px -4px rgba(0, 0, 0, 0.45);
}

html.theme-night .live-weather-pill:hover {
  background: rgba(30, 38, 52, 0.80);
  border-top-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-1.5px);
}

.weather-tide-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.weather-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulseDot 2.4s infinite;
  flex-shrink: 0;
}

.weather-icon {
  font-size: 0.92rem;
  line-height: 1;
  flex-shrink: 0;
}

.weather-time {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-charcoal);
  white-space: nowrap;
}

.weather-temp {
  font-weight: 700;
  color: var(--accent-primary);
  white-space: nowrap;
}

.weather-condition {
  color: var(--ink-body);
  font-weight: 600;
  white-space: nowrap;
}

.weather-tide {
  color: var(--ink-muted);
  font-weight: 600;
  white-space: nowrap;
}

.weather-sep {
  color: var(--border-light);
  font-weight: 400;
  flex-shrink: 0;
}

/* Control Buttons (Soundscape & Actions) */
.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.44rem 1.05rem;
  min-height: 38px;
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(22, 27, 34, 0.08);
  border-radius: var(--radius-full);
  color: var(--ink-charcoal);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  cursor: pointer;
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.65), 0 4px 16px -2px rgba(22, 27, 34, 0.05);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  transition: var(--transition-smooth);
  will-change: transform, backdrop-filter, box-shadow;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  white-space: nowrap;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.75);
  border-top-color: rgba(255, 255, 255, 0.95);
  color: var(--accent-primary);
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.85), 0 8px 24px -3px rgba(22, 27, 34, 0.09);
}

.control-btn:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.40);
}

html.theme-night .control-btn {
  background: rgba(22, 28, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.40);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.20), 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  color: #FAF6EF;
}

html.theme-night .control-btn:hover {
  background: rgba(32, 42, 58, 0.85);
  border-top-color: rgba(255, 255, 255, 0.65);
  color: var(--accent-primary);
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.35), 0 12px 28px -4px rgba(0, 0, 0, 0.65);
}

.sound-btn.playing {
  background: var(--accent-glow);
  border-color: var(--accent-primary);
  border-top-color: var(--accent-primary);
  color: var(--accent-primary);
}

.desktop-label {
  display: inline;
}

.mobile-label {
  display: none;
}

/* Fluid Mobile/Tablet Header */
@media (max-width: 900px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    row-gap: 0.55rem;
    width: 100%;
  }
  
  .header-left {
    order: 1;
    flex-shrink: 0;
  }
  
  .header-right {
    order: 2;
    flex-shrink: 0;
  }
  
  .header-center {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .live-weather-pill {
    padding: 0.36rem 0.95rem;
    font-size: clamp(0.7rem, 2.3vw + 0.15rem, 0.78rem);
    gap: 0.42rem;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {
  .brand-badge .coordinates,
  .brand-badge .brand-dot {
    display: none;
  }

  .brand-badge {
    padding: 0.36rem 0.75rem;
  }

  .weather-tide-wrap {
    display: none;
  }
}

@media (max-width: 520px) {
  .desktop-label {
    display: none;
  }
  .mobile-label {
    display: inline;
  }
}

@media (max-width: 480px) {
  .brand-badge {
    padding: 0.32rem 0.65rem;
  }

  .brand-monogram {
    font-size: 0.74rem;
    letter-spacing: 0.10em;
  }

  .control-btn {
    padding: 0.32rem 0.65rem;
    font-size: 0.72rem;
    gap: 0.32rem;
    min-height: 34px;
  }

  .live-weather-pill {
    padding: 0.32rem 0.65rem;
    font-size: 0.7rem;
    gap: 0.28rem 0.38rem;
  }
}

@media (max-width: 360px) {
  .brand-monogram {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
  .control-btn {
    padding: 0.28rem 0.5rem;
    font-size: 0.68rem;
    min-height: 32px;
  }
  .live-weather-pill {
    font-size: 0.66rem;
    padding: 0.25rem 0.45rem;
    gap: 0.22rem 0.3rem;
  }
}

/* ==========================================================================
   Main Hero Content Stage & visionOS Spatial Glass Wireframe
   ========================================================================== */
.main-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.35rem, 1.5vw, 1.25rem) 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.content-card {
  width: 100%;
  max-width: 660px;
  min-width: 0;
  margin: 0 auto;
  text-align: center;
  position: relative;
  
  /* JS reads border-radius to size the WebGL SDF glass boundary */
  border-radius: clamp(28px, 5vw, 40px); 
  padding: clamp(1.6rem, 3.8vw + 0.3rem, 3.15rem) clamp(1.35rem, 3.5vw + 0.2rem, 3rem);
  box-sizing: border-box;
  
  /* Transparent structural container — WebGL shader renders 100% of physical glass optics */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  
  /* Ambient elevation drop shadows */
  box-shadow: 
    0 4px 14px 0 rgba(15, 20, 28, 0.04),
    0 20px 50px -10px rgba(15, 20, 28, 0.10),         
    0 45px 100px -16px rgba(10, 15, 24, 0.14);
    
  will-change: transform;
  transform-style: preserve-3d;
  animation: cinematicCardReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
  z-index: 2;
  overflow: visible;
}

html.theme-night .content-card {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: 
    0 4px 14px 0 rgba(0, 0, 0, 0.4),
    0 24px 60px -10px rgba(0, 0, 0, 0.65),
    0 54px 110px -16px rgba(0, 0, 0, 0.80);
}

/* Layer 5: Card Step View for Typography Crispness */
.card-step-view {
  position: relative;
  z-index: 5;
}

/* Botanical Emblem */
.emblem-container {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(0.55rem, 1.4vw, 1.15rem);
  animation: cinematicEmblemReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.emblem-ring {
  width: clamp(46px, 7.5vw, 68px);
  height: clamp(46px, 7.5vw, 68px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.50);
  border-top: 1.5px solid rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(22, 27, 34, 0.08);
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.85),
    0 4px 14px -2px rgba(22, 27, 34, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: var(--transition-smooth);
}

html.theme-night .emblem-ring {
  background: rgba(26, 34, 46, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1.5px solid rgba(255, 255, 255, 0.50);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.25),
    0 6px 18px -2px rgba(0, 0, 0, 0.45);
}

.emblem-ring:hover {
  transform: rotate(5deg) scale(1.05);
  border-color: var(--accent-primary);
  border-top-color: var(--accent-primary);
}

.emblem-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Headline: Deep Apple Graphite (#121720), Tight Optical Tracking (-0.015em), Crisp Center Legibility */
.headline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.65rem, 4.2vw + 0.1rem, 3.25rem);
  font-weight: 520;
  line-height: 1.18;
  color: #121720;
  letter-spacing: var(--tracking-tight);
  margin-bottom: clamp(0.45rem, 1.2vw, 0.95rem);
  word-break: normal;
  overflow-wrap: break-word;
  text-shadow: none;
  animation: cinematicTextReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  transition: color 0.8s ease;
}

html.theme-night .headline {
  color: #FAF6EF;
  text-shadow: none;
}

/* Description Narrative: Deep Apple Graphite (#1E2530), Tight Tracking (-0.015em), High Contrast */
.description {
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 1vw + 0.44rem, 1.05rem);
  line-height: 1.62;
  color: #1E2530;
  max-width: 520px;
  margin: 0 auto clamp(0.75rem, 1.6vw, 1.6rem);
  font-weight: 480;
  letter-spacing: var(--tracking-tight);
  text-shadow: none;
  animation: cinematicTextReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  transition: color 0.8s ease;
}

html.theme-night .description {
  color: #EDE7DC;
  text-shadow: none;
}

/* Form Footer Disclaimer: Clean Graphite Typography, Zero Halos */
.form-footer-note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-style: normal;
  margin-top: 0.85rem;
  text-align: center;
  font-weight: 450;
  letter-spacing: var(--tracking-tight);
  line-height: 1.5;
  text-shadow: none;
  animation: cinematicFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

html.theme-night .form-footer-note {
  color: #B8B0A2;
  text-shadow: none;
}

/* ==========================================================================
   Newsletter Signup Form — Translucent Spatial Glass Capsule
   ========================================================================== */
.newsletter-wrapper {
  max-width: 490px;
  width: 100%;
  margin: 0 auto;
  animation: cinematicInputReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.signup-form {
  position: relative;
}

/* ==========================================================================
   2. SPATIAL UI ELEMENTS (visionOS Authentic CSS Glass)
   ========================================================================== */
.input-group {
  display: flex;
  align-items: center;
  
  /* 🚨 FIX: Dropped opacity from 65% down to 12% for true spatial transparency */
  background: rgba(255, 255, 255, 0.12); 
  
  /* Refined to thin VisionOS micro-rim specs */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.35); /* Subtle overhead light catch */
  border-radius: var(--radius-full);
  padding: 0.35rem 0.4rem 0.35rem 1.25rem;
  
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.20),
    0 8px 24px -4px rgba(20, 24, 32, 0.06);
    
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, backdrop-filter;
}

html.theme-night .input-group {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.10),
    0 8px 24px -4px rgba(0, 0, 0, 0.45);
}

.input-group:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.50);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.30),
    0 10px 28px -4px rgba(20, 24, 32, 0.09);
}

.input-group:focus-within {
  border-color: rgba(255, 255, 255, 0.40);
  border-top-color: rgba(255, 255, 255, 0.70);
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.40),
    0 10px 28px -4px rgba(22, 27, 34, 0.12),
    0 0 0 3px rgba(255, 255, 255, 0.15);
}

.input-group input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  color: #161B22;
  outline: none;
  padding: 0.5rem 0.25rem;
  min-width: 0;
}

html.theme-night .input-group input {
  color: #FAF6EF;
}

.input-group input::placeholder {
  color: #6E7781;
  font-style: italic;
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  opacity: 1;
}

html.theme-night .input-group input::placeholder {
  color: #A0988C;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.45rem;
  min-height: 42px;
  
  /* 🚨 FIX: Transformed from flat solid black to dark, refractive spatial glass */
  background: rgba(22, 27, 34, 0.65);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  color: #FFFFFF;
  
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.015em;
  cursor: pointer;
  
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.15), 
    0 4px 14px rgba(0, 0, 0, 0.16);
    
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  white-space: nowrap;
}

/* Micro-interactions */
.submit-btn:hover {
  transform: translateY(-1px) scale(1.02);
  background: rgba(32, 38, 48, 0.75);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.25), 
    0 6px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
  transform: translateY(1px) scale(0.98);
  background: rgba(15, 18, 22, 0.85);
}

.submit-btn:hover {
  background: rgba(22, 27, 34, 0.98);
  color: #FFFFFF;
  border-top-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.40),
    0 8px 24px -2px rgba(22, 27, 34, 0.32);
}

.submit-btn:active {
  transform: translateY(0.5px) scale(0.98);
  box-shadow: 
    inset 0 1px 1px rgba(0, 0, 0, 0.3),
    0 2px 8px -1px rgba(22, 27, 34, 0.20);
}

html.theme-night .submit-btn {
  background: rgba(250, 246, 239, 0.92);
  color: #12161A;
  border: 1px solid rgba(255, 255, 255, 0.60);
  border-top: 1.5px solid #FFFFFF;
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.90),
    0 4px 16px -2px rgba(0, 0, 0, 0.50);
}

html.theme-night .submit-btn:hover {
  background: #FFFFFF;
  color: #12161A;
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: 
    inset 0 1.5px 2px #FFFFFF,
    0 8px 24px -2px rgba(255, 255, 255, 0.35);
}

.btn-arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-arrow {
  display: none;
}

.submit-btn.loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  .input-group {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 0.45rem;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.68);
  }

  html.theme-night .input-group {
    background: rgba(22, 28, 38, 0.75);
  }

  .input-group input {
    width: 100%;
    text-align: center;
    padding: 0.65rem 0.75rem;
    font-size: 0.92rem;
    min-height: 44px;
  }

  .submit-btn {
    width: 100%;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.25rem;
    min-height: 44px;
    font-size: 0.9rem;
    justify-content: center;
  }
}

.form-feedback {
  font-size: 0.8rem;
  margin-top: 0.6rem;
  letter-spacing: var(--tracking-tight);
  display: none;
}

.form-feedback.error-msg {
  color: var(--accent-secondary);
  font-weight: 600;
}

.signup-success {
  background: var(--accent-glow);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  animation: fadeIn 0.5s ease both;
}

.success-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.success-text h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-charcoal);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 0.15rem;
}

.success-text p {
  font-size: 0.85rem;
  color: var(--ink-body);
  letter-spacing: var(--tracking-tight);
}

/* ==========================================================================
   Towns Strip & Ribbon Glass Capsules
   ========================================================================== */
.towns-strip-container {
  display: flex;
  justify-content: center;
  padding: 0.35rem 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  animation: cinematicRibbonReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.towns-strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.45rem;
  padding: 0.42rem 1.15rem;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-top: 1.5px solid rgba(255, 255, 255, 0.80);
  border-bottom: 1px solid rgba(22, 27, 34, 0.08);
  border-radius: var(--radius-full);
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.65), 
    0 10px 32px -4px rgba(22, 27, 34, 0.07);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  will-change: transform, backdrop-filter;
}

html.theme-night .towns-strip {
  background: rgba(18, 24, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.15), 
    0 14px 36px -6px rgba(0, 0, 0, 0.60);
}

.town-item {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.36rem 0.85rem;
  min-height: 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  text-transform: none;
  color: #161B22;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  white-space: nowrap;
}

.town-item:hover {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-top: 1.5px solid rgba(255, 255, 255, 0.90);
  color: #161B22;
  transform: translateY(-1.5px);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.80), 
    0 4px 14px rgba(22, 27, 34, 0.06);
}

.town-item:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.35);
}

html.theme-night .town-item {
  color: #EDE7DC;
}

html.theme-night .town-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #FAF6EF;
  transform: translateY(-1.5px);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.25), 
    0 6px 16px rgba(0, 0, 0, 0.35);
}

.town-item.active {
  background: #161B22;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.25), 
    0 4px 14px rgba(22, 27, 34, 0.22);
  transform: translateY(-0.5px);
}

html.theme-night .town-item.active {
  background: rgba(250, 246, 239, 0.95);
  color: #12161A;
  border: 1px solid rgba(255, 255, 255, 0.60);
  border-top: 1.5px solid #FFFFFF;
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.80), 
    0 6px 18px rgba(0, 0, 0, 0.50);
}

.town-sep {
  color: var(--border-light);
  font-weight: 500;
  font-size: 0.72rem;
  user-select: none;
  opacity: 0.6;
}

/* Touch-Scrollable Horizontal Ribbon on Tablets & Mobile (< 960px) */
@media (max-width: 960px) {
  .towns-strip-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.2rem 0;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
  }

  .towns-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.35rem 0.85rem;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
    align-items: center;
    border-radius: var(--radius-full);
  }

  .towns-strip::-webkit-scrollbar {
    display: none;
  }

  .town-item {
    flex-shrink: 0;
    scroll-snap-align: center;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 650;
    padding: 0.36rem 0.78rem;
    min-height: 36px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .town-sep {
    display: none;
  }
}

/* ==========================================================================
   Footer & Landmark Caption
   ========================================================================== */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: var(--tracking-tight);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  animation: cinematicFooterReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.footer-left {
  justify-self: start;
  display: flex;
  align-items: center;
}

.footer-center {
  justify-self: center;
  display: flex;
  align-items: center;
}

.footer-right {
  justify-self: end;
  display: flex;
  align-items: center;
}

.landmark-caption-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.95rem;
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(22, 27, 34, 0.08);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-charcoal);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.65), 0 4px 12px rgba(22, 27, 34, 0.04);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, backdrop-filter;
}

.landmark-caption-pill:hover {
  background: rgba(255, 255, 255, 0.72);
  border-top-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1.5px);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.85), 0 8px 20px rgba(22, 27, 34, 0.08);
}

html.theme-night .landmark-caption-pill {
  background: rgba(22, 28, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.35);
  color: #FAF6EF;
}

html.theme-night .landmark-caption-pill:hover {
  background: rgba(30, 38, 52, 0.80);
  border-top-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-1.5px);
}

.landmark-pin {
  font-size: 0.8rem;
  flex-shrink: 0;
}

.domain-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-charcoal);
  white-space: nowrap;
  padding: 0.32rem 0.85rem;
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(22, 27, 34, 0.08);
  border-radius: var(--radius-full);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.65), 0 4px 12px rgba(22, 27, 34, 0.04);
  display: inline-flex;
  align-items: center;
  will-change: transform, backdrop-filter;
  transition: all 0.25s ease;
}

.domain-tag:hover {
  background: rgba(255, 255, 255, 0.72);
  border-top-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1.5px);
}

html.theme-night .domain-tag {
  background: rgba(22, 28, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.35);
  color: #FAF6EF;
}

html.theme-night .domain-tag:hover {
  background: rgba(30, 38, 52, 0.80);
  border-top-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-1.5px);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-charcoal);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(22, 27, 34, 0.08);
  min-height: 34px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.65), 0 4px 12px rgba(22, 27, 34, 0.04);
  will-change: transform, backdrop-filter;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.75);
  border-top-color: rgba(255, 255, 255, 0.95);
  color: var(--accent-primary);
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.85), 0 8px 20px rgba(22, 27, 34, 0.08);
}

html.theme-night .footer-link {
  background: rgba(22, 28, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.35);
  color: #FAF6EF;
}

html.theme-night .footer-link:hover {
  background: rgba(32, 42, 58, 0.85);
  border-top-color: rgba(255, 255, 255, 0.65);
  color: var(--accent-primary);
  transform: translateY(-1.5px) scale(1.01);
}

.footer-link:active {
  transform: scale(0.97);
}

@media (max-width: 768px) {
  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding-top: 0.6rem;
    padding-bottom: max(0.25rem, env(safe-area-inset-bottom));
    text-align: center;
    border-top: 1px solid var(--border-light);
    width: 100%;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    justify-self: center;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .landmark-caption-pill {
    max-width: 100%;
    font-size: clamp(0.68rem, 1.8vw + 0.2rem, 0.72rem);
    padding: 0.32rem 0.8rem;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .domain-tag {
    font-size: clamp(0.7rem, 2vw + 0.1rem, 0.74rem);
  }

  .footer-link {
    padding: 0.32rem 0.85rem;
    border-radius: var(--radius-full);
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }
}

/* ==========================================================================
   Cinematic Orchestrated Keyframe Timeline
   ========================================================================== */
@keyframes cinematicArtReveal {
  0% {
    opacity: 0;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1.0);
  }
}

@keyframes cinematicHeaderReveal {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cinematicCardReveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cinematicEmblemReveal {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-4deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes cinematicTextReveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cinematicInputReveal {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cinematicRibbonReveal {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cinematicFooterReveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

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

/* ==========================================================================
   Progressive Multi-Step Card System & Step Transitions
   ========================================================================== */
.card-step-view {
  position: relative;
  z-index: 5;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-step-view.active-step {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.card-step-view.step-enter {
  animation: stepFadeSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stepFadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mini-emblem {
  margin-bottom: 0.65rem;
}

.mini-emblem .emblem-ring {
  width: 44px;
  height: 44px;
  padding: 2.5px;
}

.step-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3.8vw + 0.1rem, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  color: #161B22;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 0.4rem;
  text-shadow: none;
}

html.theme-night .step-title {
  color: #FAF6EF;
  text-shadow: none;
}

.step-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 1vw + 0.35rem, 0.95rem);
  line-height: 1.5;
  color: var(--ink-muted);
  letter-spacing: var(--tracking-tight);
  max-width: 480px;
  margin: 0 auto 1.25rem;
  font-weight: 450;
  text-shadow: none;
}

html.theme-night .step-subtitle {
  color: #B8B0A2;
  text-shadow: none;
}

/* ==========================================================================
   Step 2: Personalization Grid
   ========================================================================== */
.personalize-grid {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  text-align: left;
  max-width: 530px;
  margin: 0 auto;
}

.form-row-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 580px) {
  .form-row-duo {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #161B22;
  text-shadow: none;
}

html.theme-night .field-label {
  color: #DDD6CA;
  text-shadow: none;
}

.glass-text-input {
  width: 100%;
  padding: 0.65rem 0.95rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(22, 27, 34, 0.08);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  color: #161B22;
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.75), 
    0 4px 12px rgba(22, 27, 34, 0.04);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  will-change: transform, backdrop-filter;
}

.glass-text-input:hover {
  background: rgba(255, 255, 255, 0.70);
  border-top-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.glass-text-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(22, 27, 34, 0.30);
  border-top-color: rgba(22, 27, 34, 0.45);
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.95),
    0 0 0 3px rgba(22, 27, 34, 0.08);
  transform: translateY(-1px);
}

html.theme-night .glass-text-input {
  background: rgba(22, 28, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1.5px solid rgba(255, 255, 255, 0.40);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.20);
  color: #FAF6EF;
}

html.theme-night .glass-text-input:focus {
  background: rgba(26, 34, 46, 0.95);
  border-color: var(--accent-primary);
  border-top-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Quick Town Chips */
.quick-town-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: -0.3rem;
}

.chip-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-style: normal;
  margin-right: 0.2rem;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  text-shadow: none;
}

html.theme-night .chip-label {
  color: #A8A092;
  text-shadow: none;
}

.town-chip {
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(22, 27, 34, 0.08);
  border-radius: var(--radius-full);
  padding: 0.24rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: #161B22;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, backdrop-filter;
}

.town-chip:hover {
  background: #161B22;
  color: #FFFFFF;
  border-color: #161B22;
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 4px 14px rgba(22, 27, 34, 0.18);
}

html.theme-night .town-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.30);
  color: #DDD6CA;
}

html.theme-night .town-chip:hover {
  background: #FAF6EF;
  color: #12161A;
  border-color: #FAF6EF;
}

/* Interest Pills Grid */
.interests-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.interest-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interest-pill {
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(22, 27, 34, 0.08);
  border-radius: var(--radius-full);
  padding: 0.42rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: #161B22;
  cursor: pointer;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.60), 0 4px 12px rgba(22, 27, 34, 0.04);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  will-change: transform, backdrop-filter;
}

.interest-pill:hover {
  background: rgba(255, 255, 255, 0.78);
  border-top-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.85), 0 6px 16px rgba(22, 27, 34, 0.08);
}

.interest-pill.active {
  background: #161B22;
  color: #FFFFFF;
  border-color: #161B22;
  border-top-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.25), 0 6px 18px rgba(22, 27, 34, 0.22);
  transform: translateY(-0.5px);
}

html.theme-night .interest-pill {
  background: rgba(22, 28, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #DDD6CA;
}

html.theme-night .interest-pill:hover {
  background: rgba(32, 42, 58, 0.85);
  color: #FFFFFF;
}

html.theme-night .interest-pill.active {
  background: #FAF6EF;
  color: #12161A;
  border-color: #FAF6EF;
}

/* Cadence Section */
.cadence-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cadence-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.45rem;
  background: rgba(22, 27, 34, 0.04);
  padding: 0.35rem;
  border-radius: var(--radius-md);
}

html.theme-night .cadence-toggle-grid {
  background: rgba(255, 255, 255, 0.06);
}

.cadence-btn {
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  padding: 0.52rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 550;
  letter-spacing: var(--tracking-tight);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.cadence-btn.active {
  background: #FFFFFF;
  color: #161B22;
  font-weight: 650;
  box-shadow: 0 2px 6px rgba(22, 27, 34, 0.08);
}

html.theme-night .cadence-btn {
  color: #A8A092;
}

html.theme-night .cadence-btn.active {
  background: #FAF6EF;
  color: #12161A;
}

.cadence-trip-btn {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.50);
  border: 1px dashed var(--border-light);
}

.cadence-trip-btn.active {
  background: #161B22;
  color: #FFFFFF;
  border-style: solid;
  border-color: #161B22;
}

html.theme-night .cadence-trip-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

html.theme-night .cadence-trip-btn.active {
  background: #FAF6EF;
  color: #12161A;
}

/* Trip Dates Drawer */
.trip-dates-drawer {
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
  backdrop-filter: blur(10px);
  animation: stepFadeSlideIn 0.3s ease;
}

html.theme-night .trip-dates-drawer {
  background: rgba(18, 24, 32, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
}

.drawer-instruction {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: var(--tracking-tight);
  color: #161B22;
  margin-bottom: 0.45rem;
}

html.theme-night .drawer-instruction {
  color: #DDD6CA;
}

.trip-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.trip-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.micro-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

html.theme-night .micro-label {
  color: #A0988A;
}

.glass-date-input {
  width: 100%;
  padding: 0.48rem 0.65rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: var(--tracking-tight);
  color: #161B22;
  box-sizing: border-box;
}

html.theme-night .glass-date-input {
  background: rgba(18, 24, 32, 0.92);
  border-color: rgba(255, 255, 255, 0.16);
  color: #FAF6EF;
}

/* Step 2 Actions */
.step-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.primary-step-btn {
  width: 100%;
  background: rgba(22, 27, 34, 0.92);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-full);
  padding: 0.78rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: var(--tracking-tight);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.30),
    0 6px 18px -2px rgba(22, 27, 34, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.primary-step-btn:hover {
  background: #161B22;
  border-top-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: 
    inset 0 1.5px 2px rgba(255, 255, 255, 0.40),
    0 8px 24px -2px rgba(22, 27, 34, 0.30);
}

html.theme-night .primary-step-btn {
  background: rgba(250, 246, 239, 0.92);
  color: #12161A;
  border: 1px solid rgba(255, 255, 255, 0.50);
  border-top: 1.5px solid #FFFFFF;
}

html.theme-night .primary-step-btn:hover {
  background: #FFFFFF;
  transform: translateY(-1.5px) scale(1.01);
}

.skip-step-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--ink-muted);
  letter-spacing: var(--tracking-tight);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
  font-weight: 500;
  text-shadow: none;
}

.skip-step-btn:hover {
  color: #161B22;
}

html.theme-night .skip-step-btn {
  color: #A0988A;
  text-shadow: none;
}

html.theme-night .skip-step-btn:hover {
  color: #FAF6EF;
}

/* ==========================================================================
   Step 3: Animated Long Island Map & Share Module
   ========================================================================== */
.confirmation-header {
  margin-bottom: 0.95rem;
}

.conf-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #245A3E;
  background: rgba(36, 90, 62, 0.12);
  border: 1px solid rgba(36, 90, 62, 0.24);
  padding: 0.26rem 0.78rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.45rem;
}

html.theme-night .conf-badge {
  color: #68D391;
  background: rgba(104, 211, 145, 0.15);
  border-color: rgba(104, 211, 145, 0.30);
}

.interactive-map-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 
    0 4px 16px rgba(22, 27, 34, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.70);
  margin-bottom: 1.05rem;
  background: #FDFBF7;
}

.map-art-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.map-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-trajectory-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.map-origin-pin,
.map-dest-pin {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.map-origin-pin {
  top: 42%;
  left: 70%;
}

.map-dest-pin {
  top: 72%;
  left: 12%;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #161B22;
  box-shadow: 0 0 0 4px rgba(22, 27, 34, 0.20);
  animation: pulsePin 2s infinite;
}

.pin-dest-pulse {
  background: #C45525;
  box-shadow: 0 0 0 4px rgba(196, 85, 37, 0.20);
}

@keyframes pulsePin {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(196, 85, 37, 0.4); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(196, 85, 37, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(196, 85, 37, 0); }
}

.pin-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  background: rgba(255, 255, 255, 0.95);
  color: #161B22;
  padding: 0.16rem 0.48rem;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(22, 27, 34, 0.12);
  margin-top: 3px;
  white-space: nowrap;
}

.confirmation-status-box {
  margin-bottom: 1.05rem;
}

.confirmation-lead-text {
  font-family: var(--font-sans);
  font-size: clamp(0.84rem, 1vw + 0.40rem, 0.98rem);
  line-height: 1.58;
  color: #161B22;
  letter-spacing: var(--tracking-tight);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 450;
  text-shadow: none;
}

html.theme-night .confirmation-lead-text {
  color: #EDE7DC;
  text-shadow: none;
}

/* Unobtrusive Share Section */
.share-invitation-section {
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(22, 27, 34, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.65), 0 4px 16px -2px rgba(22, 27, 34, 0.04);
  text-align: center;
  position: relative;
  will-change: transform, backdrop-filter;
}

html.theme-night .share-invitation-section {
  background: rgba(22, 28, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.15), 0 8px 24px -4px rgba(0, 0, 0, 0.45);
}

.share-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--ink-muted);
  margin-bottom: 0.55rem;
  text-shadow: none;
}

html.theme-night .share-eyebrow {
  color: #B2ACA0;
  text-shadow: none;
}

.share-actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.44rem 0.92rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, backdrop-filter;
}

.primary-share-btn {
  background: rgba(22, 27, 34, 0.92);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.30), 0 4px 12px rgba(22, 27, 34, 0.18);
}

.primary-share-btn:hover {
  background: #161B22;
  border-top-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.40), 0 8px 20px rgba(22, 27, 34, 0.24);
}

html.theme-night .primary-share-btn {
  background: rgba(250, 246, 239, 0.92);
  color: #12161A;
}

.secondary-share-btn {
  background: rgba(255, 255, 255, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(22, 27, 34, 0.08);
  color: #161B22;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.60);
}

.secondary-share-btn:hover {
  background: rgba(255, 255, 255, 0.78);
  border-top-color: rgba(255, 255, 255, 0.95);
  color: var(--accent-primary);
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.85), 0 6px 16px rgba(22, 27, 34, 0.08);
}

html.theme-night .secondary-share-btn {
  background: rgba(22, 28, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #DDD6CA;
}

html.theme-night .secondary-share-btn:hover {
  background: rgba(32, 42, 58, 0.85);
  color: #FFFFFF;
}

.share-feedback-toast {
  margin-top: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: var(--tracking-tight);
  color: #245A3E;
  animation: stepFadeSlideIn 0.25s ease;
}

html.theme-night .share-feedback-toast {
  color: #68D391;
}
