:root {
  --bg: #0a0814;
  --bg-deep: #06040e;
  --ink: #fffded;
  --muted: rgba(255, 253, 237, 0.66);
  --whisper: rgba(255, 253, 237, 0.42);
  --coral: #ff5757;
  --sky: #84aac6;
  --green: #9caa52;
  --yellow: #fffacd;
  --line: rgba(255, 253, 237, 0.16);
  --font-title: "Anton", "Integral-EB", Impact, sans-serif;
  --font-body: "Poppins", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --side-w: 60px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--coral);
  color: var(--ink);
}

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

/* ---------------- Universe canvas ---------------- */

.universe {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, #1a1330 0%, #0c0820 45%, var(--bg-deep) 100%);
}

/* ---------------- Sidebar nav ---------------- */

.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 30;
  width: var(--side-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 22px;
  background: linear-gradient(90deg, rgba(6, 4, 14, 0.72) 0%, rgba(6, 4, 14, 0) 100%);
}

.side-brand {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 253, 237, 0.28);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: border-color 240ms ease, transform 240ms ease;
}

.side-brand:hover,
.side-brand:focus-visible {
  border-color: var(--coral);
  transform: scale(1.05);
}

.side-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.side-nav__list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  color: var(--whisper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 240ms ease;
}

.side-nav__dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 253, 237, 0.28);
  transition: background 280ms ease, transform 280ms ease, box-shadow 280ms ease;
}

.side-nav__label {
  display: none;
}

.side-nav__list a:hover .side-nav__dot,
.side-nav__list a:focus-visible .side-nav__dot {
  background: var(--ink);
  transform: scale(1.25);
}

.side-nav__list a.is-active {
  color: var(--ink);
}

.side-nav__list a.is-active .side-nav__dot {
  background: var(--coral);
  transform: scale(1.55);
  box-shadow: 0 0 0 4px rgba(255, 87, 87, 0.18);
}

.side-nav__hint {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--whisper);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---------------- Journey ---------------- */

.journey {
  position: relative;
  z-index: 10;
  margin-left: var(--side-w);
}

.moment {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 22px;
}

/* A soft elliptical "calm pocket" behind the text in each moment: dims +
   blurs the cosmos passing through, without a hard edge. Symbols outside
   the ellipse remain sharp. */
.moment::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(112%, 920px);
  height: 80%;
  transform: translate(-50%, -50%);
  background: rgba(10, 8, 20, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at center, #000 22%, transparent 82%);
  mask-image: radial-gradient(ellipse 62% 58% at center, #000 22%, transparent 82%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.92;
}

h1,
h2,
h3,
p {
  margin: 0 0 16px;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(48px, 13vw, 96px);
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(32px, 7.5vw, 56px);
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

p {
  color: var(--muted);
}

.lead {
  max-width: 560px;
  color: rgba(255, 253, 237, 0.82);
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.55;
  margin-bottom: 26px;
}

.quote {
  margin-top: 22px;
  color: var(--sky);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 3.2vw, 28px);
  line-height: 1.35;
  max-width: 580px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 253, 237, 0.24);
  border-radius: 999px;
  color: rgba(255, 253, 237, 0.88);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Classes list */

.classes {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.classes li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.classes li:first-child {
  border-top: none;
  padding-top: 0;
}

.classes .num {
  color: var(--coral);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1;
}

.classes p {
  margin: 0;
  font-size: 14.5px;
}

/* Schedule */

.schedule {
  margin: 18px 0 0;
  padding: 0;
}

.schedule > div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.schedule > div:first-child {
  border-top: none;
}

.schedule dt {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.schedule dd {
  margin: 0 0 4px;
  color: var(--muted);
}

.schedule dd strong {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
}

/* Invite */

.invite {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 22px;
  border: 1px solid var(--coral);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.invite svg {
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.invite:hover,
.invite:focus-visible {
  background: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 87, 87, 0.32);
}

.invite:hover svg,
.invite:focus-visible svg {
  transform: translateX(4px);
}

.signature {
  margin-top: 64px;
  color: var(--whisper);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------------- Ambient audio toggle ---------------- */

.audio-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 253, 239, 0.3);
  border-radius: 50%;
  background: rgba(6, 4, 14, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 253, 239, 0.85);
  cursor: pointer;
  transition:
    border-color 240ms ease,
    color 240ms ease,
    background 240ms ease,
    transform 240ms ease;
}

.audio-toggle:hover,
.audio-toggle:focus-visible {
  border-color: rgba(255, 253, 239, 0.85);
  color: var(--ink);
  background: rgba(255, 253, 239, 0.14);
  transform: scale(1.06);
  outline: none;
}

.audio-toggle__icon {
  display: none;
  width: 19px;
  height: 19px;
}

.audio-toggle[data-state="playing"] .audio-toggle__on {
  display: block;
}

.audio-toggle[data-state="muted"] .audio-toggle__off {
  display: block;
}

/* Soft pulse on the icon when audio is playing — barely perceptible breath */
@keyframes audio-toggle-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

.audio-toggle[data-state="playing"] .audio-toggle__on {
  animation: audio-toggle-pulse 3.6s ease-in-out infinite;
}

@media (max-width: 680px) {
  .audio-toggle {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
  .audio-toggle__icon {
    width: 17px;
    height: 17px;
  }
}

/* ---------------- Quote overlay (FY brand click) ---------------- */

.quote-veil {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 4, 14, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quote-veil.is-open {
  opacity: 1;
  pointer-events: auto;
}

.quote-card {
  position: relative;
  width: min(540px, 88vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 14% 16%;
  text-align: center;
}

.quote-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* start the depletion from the top */
  pointer-events: none;
}

.quote-ring circle {
  fill: none;
  stroke: rgba(255, 253, 239, 0.92);
  stroke-width: 0.5;
  stroke-linecap: round;
  stroke-dasharray: 301.59; /* 2π · 48 */
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px rgba(255, 253, 239, 0.4));
}

.quote-text {
  width: 100%;
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1) 220ms,
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1) 220ms;
}

.quote-veil.is-open .quote-text {
  opacity: 1;
  transform: translateY(0);
}

.quote-share {
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  opacity: 0;
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1) 500ms;
}

.quote-veil.is-open .quote-share {
  opacity: 1;
}

.quote-share__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 253, 239, 0.42);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 253, 239, 0.85);
  cursor: pointer;
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease, color 240ms ease;
}

.quote-share__btn:hover,
.quote-share__btn:focus-visible {
  background: rgba(255, 253, 239, 0.12);
  border-color: rgba(255, 253, 239, 0.85);
  color: var(--ink);
  transform: translateY(-2px);
  outline: none;
}

/* ---------------- Reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  filter: blur(var(--reveal-blur, 10px));
  transform:
    translate3d(var(--reveal-x, 0), var(--reveal-y, 28px), 0)
    scale(var(--reveal-scale, 1))
    rotate(var(--reveal-rot, 0deg));
  transition-property: opacity, transform, filter;
  transition-duration: var(--reveal-duration, 1.6s);
  transition-delay: var(--reveal-delay, 0s);
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1) rotate(0);
}

/* ============== Tablet (≥ 681px) ============== */

@media (min-width: 681px) {
  :root {
    --side-w: 220px;
  }

  body {
    font-size: 16px;
  }

  .side-nav {
    align-items: stretch;
    padding: 36px 28px;
  }

  .side-brand {
    align-self: flex-start;
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .side-nav__list {
    align-items: stretch;
    gap: 2px;
  }

  .side-nav__list a {
    padding: 12px 4px;
    font-size: 13px;
  }

  .side-nav__label {
    display: inline;
  }

  .side-nav__hint {
    align-self: flex-start;
  }

  .moment {
    padding: 120px 48px;
    max-width: 760px;
  }
}

/* ============== Desktop (≥ 981px) ============== */

@media (min-width: 981px) {
  .moment {
    padding: 140px 64px;
  }

  .side-nav {
    padding: 44px 32px;
  }
}

@media (hover: hover) {
  .invite:hover {
    transform: translateY(-2px);
  }
}

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

  .reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}
