*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #08090d;
  --color-white: #f5f8ff;
  --color-blue: #4a9fd4;
  --color-blue-dim: #2a6090;
  --color-sky: #8ec8f0;
  --color-panel: #0d1117;
  --color-muted: #b8cce0;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: auto; }

body {
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ========== VIDEO ========== */
.video-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, #0a1628 0%, #060c18 30%, #08090d 60%, #0a0d14 100%);
}
.video-container video {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; pointer-events: none;
}
.video-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(4,6,14,.80) 0%, rgba(8,9,13,.40) 30%, rgba(8,9,13,.08) 55%, transparent 70%),
    radial-gradient(ellipse at center, transparent 0%, rgba(8,9,13,.45) 60%, rgba(8,9,13,.88) 100%);
  pointer-events: none;
}

/* ========== PROGRESS BAR ========== */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 2px; z-index: 1000;
  background: rgba(255,255,255,.05);
}
.scroll-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--color-sky), var(--color-blue));
  transition: width .1s linear;
}

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0;
  width: 100%; padding: 1.5rem 2.5rem;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  mix-blend-mode: difference;
}
.nav-logo { display: flex; align-items: center; gap: .5rem; }
.nav-links {
  display: flex; gap: 1.8rem;
  list-style: none;
}
.nav-link {
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(245,248,255,.4);
  text-decoration: none;
  padding: .4rem 0;
  position: relative;
  transition: color .3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--color-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s;
}
.nav-link:hover { color: rgba(245,248,255,.7); }
.nav-link.active { color: var(--color-blue); }
.nav-link.active::after { transform: scaleX(1); }
.logo-icon {
  display: flex; align-items: center;
  color: var(--color-white); opacity: .9;
}
.logo-icon svg { width: 24px; height: 24px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-white);
}

/* ========== LAYOUT: RUNWAY + SCENE ========== */
.scroll-content { position: relative; z-index: 10; }

.runway { position: relative; }

.scene {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  pointer-events: none;
  will-change: opacity;
}

.scene--left  { justify-content: flex-start; }
.scene--right { justify-content: flex-end; }
.scene--lower { align-items: center; padding-top: 6rem; }
.scene--lower .scene-card { padding: 1.8rem 2rem; }
.scene--lower .reveal-heading { font-size: clamp(1.3rem, 3vw, 2rem); margin-bottom: 1rem; }
.scene--lower .divider-line { display: none; }
.scene--lower .reveal-body { font-size: .95rem; margin-bottom: 0; }

.scene-content {
  max-width: 920px;
  width: 100%;
  pointer-events: auto;
  transform-origin: center bottom;
  will-change: transform, filter;
}

.scene--left  .scene-content,
.scene--right .scene-content {
  max-width: 680px;
  width: 100%;
}


.scene--left .divider-line,
.scene--right .divider-line { margin-left: 0; margin-right: auto; }

.scene--left .cta-group,
.scene--right .cta-group { justify-content: flex-start; }

.scene--left .calendar-header,
.scene--right .calendar-header { justify-content: flex-start; }

.scene--left .reveal-body,
.scene--right .reveal-body { margin-left: 0; margin-right: 0; }

.scene-card {
  background: rgba(8,9,13,.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(74,159,212,.12);
  border-radius: 6px;
  padding: 3.5rem 3rem;
  position: relative;
}
.scene-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 2rem; right: 2rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-blue-dim), transparent);
}

/* ========== HERO ========== */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-shadow: 0 2px 40px rgba(0,0,0,.9), 0 0 80px rgba(0,0,0,.6);
  color: #fff;
}

.char-reveal {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(40%) scale(1.05);
  animation: charReveal .8s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: calc(.045s * var(--i));
}
.char-spacer { display: inline-block; width: .35em; }

@keyframes charReveal {
  0% { opacity: 0; filter: blur(12px); transform: translateY(40%) scale(1.05); }
  60% { opacity: .8; filter: blur(3px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

.hero-subtitle {
  font-size: .85rem; font-weight: 300;
  letter-spacing: .3em; text-transform: uppercase;
  opacity: 0; margin-bottom: 3rem;
  color: rgba(245,248,255,.6);
}

.scroll-indicator { opacity: 0; }
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid rgba(245,248,255,.35);
  border-radius: 11px;
  position: relative;
}
.scroll-dot {
  width: 3px; height: 7px;
  background: var(--color-blue);
  border-radius: 2px;
  position: absolute; top: 7px; left: 50%;
  transform: translateX(-50%);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { top: 7px; opacity: 1; }
  50% { top: 20px; opacity: .2; }
}

.fade-up {
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
  transform: translateY(20px);
}
.fade-up.show {
  opacity: 1 !important;
  transform: translateY(0);
}

/* ========== REVEAL HEADINGS ========== */
.reveal-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.reveal-heading.centered { text-align: center; }

.reveal-heading .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) rotateX(40deg);
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
  transform-origin: bottom center;
}
.reveal-heading .word.show {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* ========== DIVIDER ========== */
.divider-line {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-blue), transparent);
  margin: 1.5rem auto;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.divider-line.show { transform: scaleX(1); }

/* ========== BODY TEXT ========== */
.reveal-body {
  font-size: 1.05rem;
  line-height: 1.85; font-weight: 300;
  color: var(--color-muted);
  opacity: 0;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
  transform: translateY(20px);
  transition: opacity .7s .1s cubic-bezier(.16,1,.3,1), transform .7s .1s cubic-bezier(.16,1,.3,1);
}
.reveal-body.centered { text-align: center; }
.reveal-body.show { opacity: .85; transform: translateY(0); }

/* ========== TEAM GRID ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.team-col {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(245,248,255,.03);
  border: 1px solid rgba(74,159,212,.08);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.team-col.show { opacity: 1; transform: translateY(0); }

.team-symbol {
  margin-bottom: .8rem;
  color: var(--color-blue);
  display: flex; justify-content: center;
}
.team-col h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600;
  color: #fff;
  margin-bottom: .5rem;
}
.team-col p {
  font-size: .88rem; font-weight: 300;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ========== SERVICES RING ========== */
.services-ring {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 2rem;
}

.service-item {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  opacity: 0; transform: scale(.85);
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}
.service-item.show { opacity: 1; transform: scale(1); }

.service-icon {
  width: 64px; height: 64px;
  background: rgba(74,159,212,.08);
  border: 1px solid rgba(74,159,212,.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-sky);
}
.service-name {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-muted);
}

/* ========== BOOKING / CTA ========== */
.booking-card { text-align: left; }

.calendar-widget {
  margin: 1.2rem auto;
  max-width: 520px;
  background: rgba(74,159,212,.05);
  border: 1px solid rgba(74,159,212,.15);
  border-radius: 8px;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s .1s cubic-bezier(.16,1,.3,1), transform .7s .1s cubic-bezier(.16,1,.3,1);
}
.calendar-widget.show { opacity: 1; transform: translateY(0); }

.calendar-header {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-size: .8rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-sky);
  margin-bottom: 1.2rem;
}
.cal-icon { display: flex; align-items: center; }

.calendar-slots {
  display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap;
}

.cal-slot {
  flex: 1; min-width: 70px;
  padding: .6rem .4rem;
  border-radius: 6px;
  font-size: .8rem; font-weight: 400;
  text-align: center;
  line-height: 1.5;
  transition: background .2s, border-color .2s;
}
.cal-slot strong { font-weight: 600; }

.cal-slot.available {
  background: rgba(74,159,212,.1);
  border: 1px solid rgba(74,159,212,.3);
  color: var(--color-white);
  cursor: pointer;
}
.cal-slot.available:hover {
  background: rgba(74,159,212,.22);
  border-color: rgba(74,159,212,.6);
}
.cal-slot.taken {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.25);
}

.cta-group {
  display: flex; gap: 1rem; justify-content: center; align-items: center;
  flex-wrap: wrap;
  margin: 1rem 0 .8rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s .2s cubic-bezier(.16,1,.3,1), transform .7s .2s cubic-bezier(.16,1,.3,1);
}
.cta-group.show { opacity: 1; transform: translateY(0); }

.cta-primary {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: var(--color-blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: .9rem; font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: 4px;
  transition: background .25s, transform .2s;
}
.cta-primary:hover { background: var(--color-sky); transform: translateY(-2px); }

.cta-secondary {
  display: inline-block;
  padding: 1rem 1.6rem;
  border: 1px solid rgba(74,159,212,.35);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: .9rem; font-weight: 400;
  text-decoration: none;
  border-radius: 4px;
  transition: border-color .25s, color .25s;
}
.cta-secondary:hover { border-color: var(--color-blue); color: var(--color-white); }

.trust-line {
  font-size: .75rem; font-weight: 300;
  color: rgba(245,248,255,.3);
  letter-spacing: .04em;
  opacity: 0; transform: translateY(10px);
  transition: opacity .7s .3s cubic-bezier(.16,1,.3,1), transform .7s .3s cubic-bezier(.16,1,.3,1);
}
.trust-line.show { opacity: 1; transform: translateY(0); }

/* anim states shared */
.anim-item[data-anim="fade-down"] { transform: translateY(-16px); opacity: 0; transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.anim-item[data-anim="fade-down"].show { opacity: 1; transform: translateY(0); }

/* ========== PERFORMANCE ========== */
.reveal-heading .word,
.fade-up,
.team-col,
.service-item,
.divider-line,
.calendar-widget,
.cta-group,
.trust-line,
.reveal-body {
  will-change: opacity, transform;
}

.runway {
  content-visibility: auto;
  contain-intrinsic-size: auto 200vh;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .char-reveal { opacity: 1; filter: none; transform: none; animation: none; }
  .reveal-heading .word { opacity: 1; transform: none; }
  .fade-up { opacity: 1 !important; transform: none; }
  .team-col { opacity: 1; transform: none; }
  .service-item { opacity: 1; transform: none; }
  .calendar-widget, .cta-group, .trust-line { opacity: 1; transform: none; }
  .reveal-body, .hero-subtitle, .scroll-indicator { opacity: 1 !important; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
  .team-grid { grid-template-columns: 1fr; }
  .services-ring { gap: 1.5rem; }
  .nav-links { display: none; }
  .scene-card { padding: 2.5rem 1.5rem; }
}
