:root {
  --navy: #0e195f;
  --navy-light: #1c2d7a;
  --navy-deep: #080f38;
  --orange: #ec8b5e;
  --orange-light: #f5b78a;
  --cream: #f7f0de;
  --white: #ffffff;
  --ink: #1a1a1a;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 14px;
  --font-heading: "Sora", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --z-ambient: 0;
  --z-stage: 1;
  --z-ticker: 2;
  --z-foot: 3;
}

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

html,
body {
  margin: 0;
  min-height: 100dvh;
}

body {
  display: flex;
  flex-direction: column;
  color: var(--cream);
  font-family: var(--font-body);
  background: var(--navy-deep);
  overflow: hidden;
}

/* ── Ambient ── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: var(--z-ambient);
  pointer-events: none;
  overflow: hidden;
}

.ambient__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 72%);
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  will-change: transform;
}

.ambient__orb--navy {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: -8%;
  right: -6%;
  background: var(--navy-light);
  opacity: 0.7;
  animation: drift 18s var(--ease-out) infinite alternate;
}

.ambient__orb--orange {
  width: min(38vw, 280px);
  height: min(38vw, 280px);
  bottom: 8%;
  left: -4%;
  background: var(--orange);
  opacity: 0.22;
  animation: drift 22s var(--ease-out) infinite alternate-reverse;
}

.ambient__spotlight {
  position: absolute;
  left: 0;
  top: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 139, 94, 0.16), transparent 68%);
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

body.is-pointer .ambient__spotlight {
  opacity: 1;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, -36px, 0) scale(1.08); }
}

/* ── Stage ── */
.stage {
  position: relative;
  z-index: var(--z-stage);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px 48px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  animation: enter 0.7s var(--ease-out) both;
}

.brand__plate {
  display: grid;
  place-items: center;
  padding: 12px 28px;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.brand__logo {
  display: block;
  width: min(220px, 58vw);
  height: auto;
}

.place {
  margin: 24px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 240, 222, 0.55);
  animation: enter 0.7s var(--ease-out) 0.08s both;
}

.headline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.28em;
  margin: 16px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--white);
}

.headline__word {
  display: inline-flex;
}

.headline__word span {
  display: inline-block;
  clip-path: inset(0 0 100% 0);
  transform: translateY(18%);
  animation: letter-in 0.72s var(--ease-out) calc(0.16s + var(--i) * 0.045s) both;
}

.headline__word--accent {
  color: var(--orange);
}

@keyframes letter-in {
  to {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

.tagline {
  margin: 16px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--orange-light);
  animation: enter 0.7s var(--ease-out) 0.62s both;
}

.lede {
  margin: 12px 0 0;
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(247, 240, 222, 0.78);
  animation: enter 0.7s var(--ease-out) 0.72s both;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  animation: enter 0.7s var(--ease-out) 0.82s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease-out),
    background 0.18s var(--ease-out),
    box-shadow 0.18s var(--ease-out),
    color 0.18s var(--ease-out);
}

.btn--primary {
  color: var(--navy-deep);
  background: linear-gradient(180deg, var(--orange-light), var(--orange));
  box-shadow: 0 10px 24px rgba(236, 139, 94, 0.28);
}

.btn--ghost {
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(247, 240, 222, 0.28);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary:hover {
  box-shadow: 0 14px 28px rgba(236, 139, 94, 0.38);
}

.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange-light);
}

.hours {
  margin: 20px 0 0;
  font-size: 0.8125rem;
  color: rgba(247, 240, 222, 0.48);
  animation: enter 0.7s var(--ease-out) 0.9s both;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Course ticker ── */
.ticker {
  position: relative;
  z-index: var(--z-ticker);
  overflow: hidden;
  border-top: 1px solid rgba(247, 240, 222, 0.08);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: marquee 28s linear infinite;
}

.ticker__track span {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 240, 222, 0.42);
  white-space: nowrap;
}

.ticker__track span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 40px;
  border-radius: 1px;
  background: var(--orange);
  transform: rotate(45deg);
  vertical-align: 1px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Footer ── */
.foot {
  position: relative;
  z-index: var(--z-foot);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  padding: 14px 24px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(247, 240, 222, 0.08);
}

.foot__mail {
  font-size: 0.8125rem;
  color: rgba(247, 240, 222, 0.5);
  text-decoration: none;
  transition: color 0.18s var(--ease-out);
}

.foot__mail:hover {
  color: var(--orange-light);
}

.foot__iso {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  border: 1px solid rgba(236, 139, 94, 0.35);
  background: rgba(236, 139, 94, 0.1);
}

.foot__iso-mark {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--navy-deep);
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.foot__iso-text {
  padding-right: 4px;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-light);
}

@media (max-width: 520px) {
  .stage {
    padding: 24px 20px 64px;
  }

  .actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
  }

  .ambient__orb {
    filter: blur(40px);
  }
}

@media (hover: none) {
  .ambient__spotlight {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient__orb,
  .ticker__track,
  .headline__word span,
  .brand,
  .place,
  .tagline,
  .lede,
  .actions,
  .hours {
    animation: none !important;
  }

  .headline__word span {
    clip-path: none;
    transform: none;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}
