:root {
  color-scheme: dark;
  --story-progress: 0;
  --door-opacity: 0;
  --door-scale: 0.14;
  --door-y: 5vh;
  --image-opacity: 0;
  --title-opacity: 0;
  --title-y: 20px;
  --landing-ui-opacity: 0;
  --landing-ui-y: 15px;
  --collage-intro-scale: 1;
  --ink: #f8f5eb;
  --green-deep: #04150e;
  --near-black: #020604;
  --green-shadow: #071d14;
  --green-warm: #13281d;
  --red-note: #e94322;
  --yellow-note: #e6de48;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--green-deep);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(4, 21, 14, 1) 0%, rgba(7, 29, 20, 1) 55%, rgba(3, 12, 9, 1) 100%);
  color: var(--ink);
  font-family:
    "Outfit",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.landing {
  min-height: 100vh;
  isolation: isolate;
}

body.intro-running {
  overflow: hidden;
  height: 100vh;
}

.story {
  position: relative;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 21, 14, 1) 0%, rgba(7, 29, 20, 1) 100%);
}

.stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 14, 9, 0.96), rgba(8, 30, 21, 0.88) 46%, rgba(3, 13, 9, 0.98)),
    var(--green-shadow);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: var(--hero-veil-opacity, 0);
  background:
    radial-gradient(
      ellipse 68% 52% at 50% 52%,
      rgba(2, 16, 10, 0.72) 0%,
      rgba(3, 20, 13, 0.52) 42%,
      rgba(4, 21, 14, 0.24) 78%,
      rgba(4, 21, 14, 0.08) 100%
    ),
    linear-gradient(180deg, rgba(3, 16, 10, 0.24) 0%, rgba(2, 12, 8, 0.36) 100%);
}

.quiet-vignette,
.film-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.quiet-vignette {
  z-index: 8;
  background:
    linear-gradient(90deg, rgba(2, 9, 6, 0.45), transparent 14%, transparent 86%, rgba(2, 9, 6, 0.45)),
    linear-gradient(180deg, rgba(2, 9, 6, 0.5), transparent 12%, transparent 78%, rgba(2, 9, 6, 0.6));
  opacity: 0.34;
}

.film-grain {
  z-index: 20;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image:
    repeating-radial-gradient(circle at 14% 23%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 74% 62%, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 4px);
  background-size: 140px 140px, 190px 190px;
}

.bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 18vh;
  z-index: 9;
  background: linear-gradient(to bottom, transparent 0%, #020604 100%);
  pointer-events: none;
}

.image-field {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: var(--image-opacity);
  overflow: hidden;
}

/* Individual-photo hero collage — JS masonry, float-in, slight overlap */
.collage-grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  overflow: hidden;
}

.cg-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cg-cell {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  background: rgba(248, 245, 235, 0.04);
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(var(--sx, 0), var(--sy, 0)) rotate(var(--sr, 0deg)) scale(0.82);
  transition:
    opacity 2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.collage-grid.revealed .cg-cell {
  opacity: 1;
  /* rest scale > 1 pushes tiles into each other for an overlapping collage */
  transform: translate(0, 0) rotate(0deg) scale(var(--rs, 1.06));
}

/* Resize rebuilds settle instantly instead of re-running the float-in. */
.collage-grid.cg-no-anim .cg-cell {
  transition: none !important;
}

.cg-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .cg-cell {
    transition-duration: 0.4s;
    transform: none;
  }
}

/* Legacy tile styles — unused in grid mode */
.collage-plane {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  isolation: isolate; /* single stacking context for tile z-order */
  transform-origin: 0 0;
  will-change: transform;
}

.collage-debug-frame {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 80, 80, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 100;
}

.collage-debug-tile-label {
  position: absolute;
  font: 9px/1 "Space Mono", monospace;
  color: rgba(255, 220, 100, 0.9);
  background: rgba(0, 0, 0, 0.55);
  padding: 1px 3px;
  border-radius: 2px;
  transform: translate(-50%, -100%);
}

.collage-debug-hud {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  font: 11px/1.5 "Space Mono", monospace;
  color: #f8f5eb;
  background: rgba(4, 21, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  border-radius: 6px;
  max-width: 320px;
}

.collage-debug-warn {
  color: #ff8a80;
}

.memory {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(248, 245, 235, 0.08);
  border-radius: var(--tile-radius, 3px);
  background: rgba(248, 245, 235, 0.05);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform-origin: center center;
}

.image-field.animating .memory {
  will-change: transform, opacity;
}

.memory img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* no scale/filter nudges — match Figma fills exactly */
}

.title-lockup {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-content: center;
  gap: clamp(12px, 2vw, 22px);
  padding: 8vh clamp(22px, 6vw, 96px);
  text-align: center;
  opacity: var(--title-opacity);
  transform: translateY(var(--title-y));
  pointer-events: none;
}

.title-lockup h1,
.title-lockup p {
  margin: 0;
  font-weight: 200;
  letter-spacing: 0;
  text-wrap: balance;
}

.title-lockup h1 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.88;
  font-weight: 100;
  color: rgba(248, 245, 235, 0.98);
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  letter-spacing: -0.02em;
}

.title-lockup p {
  font-size: clamp(1.32rem, 3.8vw, 4.6rem);
  line-height: 1.02;
  color: rgba(248, 245, 235, 0.92);
}

/* Glassmorphic Get Started CTA matching user's image */
.home-cta {
  position: absolute;
  top: clamp(24px, 5vw, 64px);
  right: clamp(24px, 6vw, 96px);
  z-index: 100;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0 34px;
  border: 1.5px solid rgba(248, 245, 235, 0.3);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 12px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(248, 245, 235, 0.95);
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: var(--landing-ui-opacity, 0);
  transform: translateY(var(--landing-ui-y, 15px));
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.home-cta:hover {
  border-color: rgba(248, 245, 235, 0.7);
  background: rgba(248, 245, 235, 0.15);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    0 16px 36px rgba(248, 245, 235, 0.08);
}




/* Section 2: Details Section */
.details-section {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, #020604 0%, #04150e 40%, #071d14 70%, #020604 100%);
  padding: 140px clamp(24px, 8vw, 120px) 0;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Section 2: Details Header */
.section-header {
  text-align: center;
  max-width: 900px;
  margin-bottom: clamp(60px, 10vw, 100px);
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-header h2 {
  font-family: 'Lexend', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(248, 245, 235, 0.95);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 120px;
}

.feature-card {
  position: relative;
  background: rgba(4, 21, 14, 0.55);
  border: 2px solid rgba(248, 245, 235, 0.12);
  border-radius: 16px;
  padding: 48px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(40px);
  opacity: 0;
  transition:
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.feature-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

#cardNetwork.in-view {
  transition-delay: 0.1s;
}
#cardCareer.in-view {
  transition-delay: 0.2s;
}
#cardMultiplier.in-view {
  transition-delay: 0.3s;
}

.feature-card:hover {
  border-color: rgba(248, 245, 235, 0.3);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(248, 245, 235, 0.03),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(248, 245, 235, 0.04), transparent 40%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

@media (hover: hover) {
  .feature-card:hover .card-glow {
    opacity: 1;
  }
}

.card-content {
  position: relative;
  z-index: 2;
}

.card-num {
  font-family: 'Space Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
  transition: color 0.4s ease;
}

.feature-card:hover .card-num {
  color: rgba(248, 245, 235, 0.35);
}

.feature-card h3 {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 16px 0;
  color: rgba(248, 245, 235, 0.95);
  letter-spacing: -0.015em;
  text-transform: lowercase;
}

.feature-card p {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(248, 245, 235, 0.82);
  margin: 0;
}

/* Scrolling Text Section */
.scrolling-text-section {
  width: 100%;
  max-width: 800px;
  margin-bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scrolling-paragraph {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(248, 245, 235, 0.72);
  text-align: center;
}

.scrolling-paragraph p {
  margin: 0 0 clamp(24px, 5vh, 48px) 0;
}

.scrolling-paragraph p:last-child {
  margin-bottom: 0;
}

.scroll-sentence {
  display: inline;
  transition:
    color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    text-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: color, text-shadow;
  margin-right: 6px;
}

.scroll-sentence.highlight {
  color: rgba(248, 245, 235, 0.98);
  text-shadow:
    0 0 1px rgba(248, 245, 235, 0.7),
    0 0 22px rgba(248, 245, 235, 0.18);
}

/* Comprehensive Footer */
/* Closing CTA band */
.closing-cta {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 120px;
  padding: clamp(48px, 7vw, 96px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
  border-top: 1px solid rgba(248, 245, 235, 0.06);
}

.closing-cta-line {
  font-family: 'Lexend', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(248, 245, 235, 0.95);
  margin: 0;
}

.closing-cta-btn {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0 34px;
  border: 1.5px solid rgba(248, 245, 235, 0.3);
  border-radius: 999px;
  background: rgba(248, 245, 235, 0.06);
  color: var(--ink);
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.closing-cta-btn:hover {
  border-color: rgba(248, 245, 235, 0.7);
  background: rgba(248, 245, 235, 0.15);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    0 16px 36px rgba(248, 245, 235, 0.08);
}

.closing-cta-note {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 245, 235, 0.35);
  margin: 0;
}

.site-footer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: #010403;
  border-top: 1px solid rgba(248, 245, 235, 0.05);
  padding: 100px clamp(24px, 8vw, 120px) 80px;
  display: flex;
  justify-content: center;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(320px, 2.2fr) repeat(3, minmax(120px, 1fr));
  gap: 60px;
}

.footer-col h3 {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  margin: 0 0 16px 0;
  color: rgba(248, 245, 235, 0.98);
}

.footer-desc {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(248, 245, 235, 0.55);
  max-width: 320px;
  margin: 0 0 32px 0;
}

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(248, 245, 235, 0.35);
}

.footer-col h4 {
  font-family: 'Satoshi', sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col ul a {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(248, 245, 235, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul a:hover {
  color: rgba(248, 245, 235, 0.98);
}

@media (max-width: 980px) {
  .footer-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .story {
    height: 100svh;
  }

  .title-lockup h1 {
    font-size: clamp(3.5rem, 18vw, 7rem);
  }

  .title-lockup p {
    font-size: clamp(1.2rem, 5.5vw, 2.1rem);
  }

  .home-cta {
    top: 18px;
    right: 18px;
    min-height: 40px;
    padding: 0 20px;
    font-size: 0.95rem;
  }

  .details-section {
    padding: 80px 18px 0;
  }

  .section-header {
    margin-bottom: 40px;
    padding: 0 10px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 80px;
  }

  .feature-card {
    padding: 32px 24px;
  }

  .scrolling-paragraph {
    font-size: 1.35rem;
    line-height: 1.5;
  }

  .scrolling-paragraph p {
    margin-bottom: 24px;
  }

  .scroll-sentence {
    display: inline;
    padding: 0;
    margin-right: 4px;
  }

  .site-footer {
    padding: 60px 18px 40px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-desc {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .door,
  .memory,
  .title-lockup,
  .home-cta,
  .closing-cta-btn,
  .section-header,
  .feature-card,
  .scroll-sentence {
    transition: none !important;
    animation: none !important;
  }
}

/* ----------------------------------------------------
   V2 Loading Page Styles
   ---------------------------------------------------- */
.hero-center-container {
  position: absolute;
  inset: 0;
  z-index: 1; /* sits behind the community photos (z-index: 5) */
  opacity: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: opacity 1.2s ease-in-out;
}

.hero-center-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--near-black);
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-center-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Heartbeat animation on centered frame */
@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.04); }
  28% { transform: scale(1); }
  42% { transform: scale(1.04); }
  56% { transform: scale(1); }
  100% { transform: scale(1); }
}

.hero-pulse {
  animation: heartbeat 1.6s ease-in-out infinite;
}

/* Bottom-left bouncy typography logo */
.logo-lockup-v2 {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(20px);
  z-index: 20; /* sits on top of all image grid components */
  text-align: center;
  width: 90%;
  max-width: 800px;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.logo-lockup-v2.visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
  pointer-events: auto;
}

.logo-v2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.8rem, 8.5vw, 7.5rem); /* much larger, center-stage display title */
  color: var(--ink);
  text-shadow: 0 0 60px rgba(0, 0, 0, 0.55);
  text-transform: lowercase;
  margin: 0 0 16px 0;
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.subtitle-v2 {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.25rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0 auto;
  line-height: 1.5;
  max-width: 90%;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Floating Brand Mark Button in Bottom-Left Corner */
.bottom-left-mark-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1.5px solid rgba(248, 245, 235, 0.15);
  background: rgba(2, 6, 4, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.bottom-left-mark-btn:hover {
  background: rgba(248, 245, 235, 0.1);
  border-color: rgba(248, 245, 235, 0.35);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.bottom-left-mark-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Mini Syne 'i' Glyph inside the button */
.syne-i-mini {
  width: 14px;
  height: 22px;
  position: relative;
}

.syne-i-mini-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px; /* wide dot */
  height: 5px;
  background-color: var(--cream);
  transition: background-color 0.3s ease;
}

.syne-i-mini-stem {
  position: absolute;
  bottom: 0;
  left: 2px;
  width: 10px; /* narrower stem */
  height: 13px;
  background-color: var(--cream);
  transition: background-color 0.3s ease;
}

.bottom-left-mark-btn:hover .syne-i-mini-dot,
.bottom-left-mark-btn:hover .syne-i-mini-stem {
  background-color: var(--gold);
}

/* Blackout Transition Overlay & Content Layout */
.blackout-overlay {
  position: fixed;
  inset: 0;
  background-color: #000000;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.blackout-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.blackout-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

/* Blackout Animated Logo */
.blackout-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.8rem, 10vw, 8.5rem);
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.letter {
  display: inline-block;
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center center;
  width: 1.15ch;
  opacity: 1;
  text-align: center;
}

/* Custom absolute 'i' Dot positioning relative to standard 'i' stem */
.letter-i1, .letter-i2 {
  position: relative;
}

.i-dot {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.6em;
  height: 0.22em;
  background-color: var(--cream);
  opacity: 0; /* hidden in rest state, let native font dot show */
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease, background-color 0.3s ease;
  z-index: 5;
}

.i-stem-text {
  display: inline-block;
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Collapse Phase: Inner letters disappear, outer l's slide together */
.blackout-logo.collapse .letter-i1,
.blackout-logo.collapse .letter-i2 {
  width: 0;
  margin: 0;
}

.blackout-logo.collapse .letter-i1 .i-stem-text,
.blackout-logo.collapse .letter-i2 .i-stem-text,
.blackout-logo.collapse .letter-m,
.blackout-logo.collapse .letter-n {
  width: 0;
  opacity: 0;
  transform: scaleX(0);
}

/* Keep the clone absolute i-dots visible but slide them vertically & overlap them above the merged l's */
.blackout-logo.collapse .letter-i1 .i-dot,
.blackout-logo.collapse .letter-i2 .i-dot {
  opacity: 1;
  pointer-events: auto;
  /* Shift them up slightly to sit on top of the merged column */
  transform: translate(-50%, -50%) translateY(-0.1ch);
}

.blackout-logo.collapse .letter-l1 {
  transform: translateX(12px);
}

.blackout-logo.collapse .letter-l2 {
  transform: translateX(-12px);
}

/* Dynamic Stretching Path Overlay */
.stretching-path-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: visible;
}

#stretchingPath {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(197, 168, 128, 0.6));
}

.blackout-sub {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  color: rgba(248, 245, 235, 0.35);
  margin-top: 24px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(15px);
  transition: all 1.0s cubic-bezier(0.25, 1, 0.5, 1);
}

.blackout-overlay.active .blackout-sub {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}
