/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-bg:             #0a0a0a;
  --color-surface:        #111111;
  --color-border:         rgba(255, 255, 255, 0.08);
  --color-text-primary:   #f5f0eb;
  --color-text-secondary: rgba(245, 240, 235, 0.55);
  --color-accent:         #c8a96e;
  --color-white:          #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:not(.is-ready) {
  overflow: hidden;
}

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

address {
  font-style: normal;
}

em {
  font-style: italic;
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-in);
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 280px;
}

.loader__wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.loader__em {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.loader__divider {
  display: block;
  width: 1px;
  height: 20px;
  background: var(--color-border);
  margin: 10px auto;
}

.loader__home {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--color-text-primary);
}

.loader__bar-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loader__bar-track {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  overflow: hidden;
}

.loader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.15s linear;
}

.loader__count {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
  text-align: right;
}

/* ============================================================
   SHARED LOGO STYLE
   ============================================================ */
.logo__em,
.header__logo .logo__em,
.footer__logo .logo__em {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.logo__sep {
  margin: 0 0.4em;
  opacity: 0.35;
}

.logo__home,
.header__logo .logo__home,
.footer__logo .logo__home {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}

.site-header.is-visible {
  opacity: 1;
  pointer-events: all;
}

.header__logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  transition: opacity 0.2s;
}

.header__logo:hover {
  opacity: 0.7;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__nav a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--color-text-primary);
}

.header__cta {
  font-size: 0.7rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #0a0a0a;
  border: 1px solid var(--color-accent);
}

.btn-primary:hover {
  background: #d4b87e;
  border-color: #d4b87e;
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(245, 240, 235, 0.25);
}

.btn-outline:hover {
  border-color: rgba(245, 240, 235, 0.6);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 80px 80px;
  overflow: hidden;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s var(--ease-out) 0.35s forwards;
}

.hero__sub {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.55s forwards;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1s forwards;
}

.scroll-cue__line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(245, 240, 235, 0.4));
  animation: scrollPulse 2s ease-in-out 1.5s infinite;
}

.scroll-cue__label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-text-secondary);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); transform-origin: top; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__headline,
  .hero__sub,
  .hero__scroll-cue {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .scroll-cue__line {
    animation: none;
  }
}

/* ============================================================
   SCROLL SEQUENCE
   ============================================================ */
.scroll-sequence {
  position: relative;
  height: 600vh;
}

.scroll-sequence__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Decorative horizontal rule above canvas */
.deco-h-rule {
  position: absolute;
  top: calc(50% - (85vw / 16 * 9 / 2) - 16px);
  left: 50%;
  transform: translateX(-50%);
  width: 85vw;
  max-width: 1440px;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* Canvas */
#frameCanvas {
  display: block;
  width: 85vw;
  max-width: 1440px;
  height: auto;
  position: relative;
  z-index: 1;
}

/* Stage watermark — large faded number */
.stage-watermark {
  position: absolute;
  top: 4%;
  left: calc(50% - 42.5vw);
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 13rem);
  font-weight: 300;
  color: var(--color-white);
  opacity: 0.055;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  transition: none;
  user-select: none;
}

/* Vertical progress rule */
.deco-rule--left {
  position: absolute;
  left: calc(50% - 42.5vw - 28px);
  top: calc(50% - (85vw / 16 * 9 / 2));
  width: 1px;
  height: calc(85vw / 16 * 9);
  max-height: calc(1440px / 16 * 9);
  background: rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.deco-rule__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(245, 240, 235, 0.65);
  transition: height 0.05s linear;
}

/* Stage tag — top right of canvas */
.stage-tag {
  position: absolute;
  top: calc(50% - (85vw / 16 * 9 / 2) - 1px);
  right: calc(50% - 42.5vw);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  z-index: 2;
  transform: translateY(-100%);
  padding-bottom: 10px;
}

/* Stage text overlays */
.stage-text {
  position: absolute;
  bottom: calc(50% - (85vw / 16 * 9 / 2) + 10%);
  left: calc(50% - 42.5vw + 3%);
  width: min(340px, 26%);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

/* Dark gradient behind text for legibility */
.stage-text::before {
  content: '';
  position: absolute;
  inset: -24px -28px -24px -28px;
  background: radial-gradient(ellipse at center, rgba(10, 10, 10, 0.75) 0%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

.stage-text__tag {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.stage-text__headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.stage-text__body {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--color-text-secondary);
}

/* Stage dots */
.stage-dots {
  position: absolute;
  bottom: calc(50% - (85vw / 16 * 9 / 2) - 24px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.stage-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 235, 0.3);
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.stage-dot--active {
  background: var(--color-white);
  border-color: var(--color-white);
  transform: scale(1.3);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px;
  border-top: 1px solid var(--color-border);
}

.cta-section__inner {
  text-align: center;
  max-width: 700px;
}

.cta-section__eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 28px;
}

.cta-section__headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.cta-section__sub {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cta-section__cities {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
  padding: 100px 80px;
  border-top: 1px solid var(--color-border);
}

.about-strip__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.about-strip__stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--color-text-primary);
}

.stat__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-top: 6px;
}

.about-strip__headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 24px;
}

.about-strip__text p {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--color-text-secondary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: #080808;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  padding: 72px 80px 48px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.footer__logo {
  display: flex;
  align-items: baseline;
  margin-bottom: 12px;
}

.footer__logo .logo__em {
  font-size: 0.6rem;
}

.footer__logo .logo__home {
  font-size: 0.95rem;
}

.footer__tagline {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-title {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(245, 240, 235, 0.5);
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--color-text-primary);
}

.footer__col address {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(245, 240, 235, 0.5);
  line-height: 1.7;
}

.site-footer__legal {
  border-top: 1px solid var(--color-border);
  padding: 24px 80px;
}

.site-footer__legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.site-footer__legal span,
.site-footer__legal a {
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(245, 240, 235, 0.3);
  letter-spacing: 0.03em;
}

.site-footer__legal a:hover {
  color: var(--color-text-secondary);
}

/* ============================================================
   FOCUS STYLES (accessibility)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    padding: 100px 40px 80px;
  }

  .about-strip {
    padding: 80px 40px;
  }

  .about-strip__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-strip__stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    padding: 60px 40px 40px;
  }

  .site-footer__legal {
    padding: 20px 40px;
  }

  .header__nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 20px 24px;
  }

  .hero {
    padding: 90px 24px 80px;
  }

  #frameCanvas {
    width: 100vw;
    max-width: 100vw;
  }

  .deco-h-rule,
  .deco-rule--left,
  .stage-watermark,
  .stage-tag {
    display: none;
  }

  /* Stack all text blocks in same spot below canvas */
  .stage-text {
    position: absolute;
    /* canvas is 100vw * 9/16 = 56.25vw tall, centered in 100vh */
    top: calc(50% + 28.125vw + 16px);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    padding: 16px 24px 0;
    transform: none !important;
  }

  .stage-text::before {
    display: none;
  }

  .stage-dots {
    display: none;
  }

  .cta-section {
    padding: 80px 24px;
  }

  .cta-section__sub br {
    display: none;
  }

  .about-strip {
    padding: 60px 24px;
  }

  .about-strip__stats {
    flex-direction: column;
    gap: 24px;
  }

  .site-footer__inner {
    padding: 48px 24px 32px;
  }

  .site-footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .site-footer__legal {
    padding: 16px 24px;
  }

  .site-footer__legal-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .header__cta {
    display: none;
  }
}
