:root {
  --paper: #FAFBFC;
  --blue: #4A90E2;
  --ocean: #1B3A57;
  --mist: #EAF3FF;
  --ink: #202124;
  --gold: #C9A227;
  --ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  cursor: default;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(234,243,255,.95), transparent 38%),
    linear-gradient(145deg, #FAFBFC 0%, #F4F9FF 48%, #FAFBFC 100%);
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: .35;
  background: repeating-radial-gradient(ellipse at center, transparent 0 90px, rgba(74,144,226,.025) 91px 94px, transparent 95px 180px);
  animation: drift 28s var(--ease) infinite alternate;
}
.cloud {
  position: absolute;
  width: 55vw;
  height: 22vw;
  min-width: 420px;
  min-height: 170px;
  border-radius: 50%;
  filter: blur(35px);
  opacity: .18;
  background: #dcecff;
}
.cloud-a { top: 12%; left: -15%; animation: float-a 18s var(--ease) infinite alternate; }
.cloud-b { right: -18%; bottom: 8%; animation: float-b 23s var(--ease) infinite alternate; }
.wash { position: absolute; border-radius: 50%; filter: blur(65px); opacity: .1; background: var(--blue); }
.wash-a { width: 30vw; height: 30vw; top: 15%; right: 15%; }
.wash-b { width: 24vw; height: 24vw; bottom: 10%; left: 12%; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(22px, 5vw, 72px);
  z-index: 10;
  mix-blend-mode: multiply;
}
.wordmark { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; letter-spacing: .03em; }
.site-nav a { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .68; transition: opacity 600ms var(--ease); }
.site-nav a:hover, .site-nav a:focus-visible { opacity: 1; }

.home-hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 100px 24px 72px;
  isolation: isolate;
}
.hero-orbit {
  position: absolute;
  width: min(72vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(74,144,226,.13);
  border-radius: 50%;
  animation: breathe 8s var(--ease) infinite;
}
.enso {
  position: absolute;
  width: min(44vw, 430px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 1400ms var(--ease);
}
.enso:hover, .enso:focus-visible { transform: scale(1.025); }
.enso-brush {
  position: absolute;
  inset: 4%;
  border: clamp(8px, 1.25vw, 16px) solid rgba(27,58,87,.78);
  border-left-color: rgba(27,58,87,.45);
  border-bottom-color: rgba(27,58,87,.92);
  border-radius: 50%;
  transform: rotate(-22deg);
  clip-path: polygon(0 0, 91% 0, 100% 54%, 90% 100%, 0 100%);
  animation: enso-breathe 7s var(--ease) infinite;
}
.enso-core {
  position: absolute;
  width: 8px;
  height: 8px;
  top: 12%;
  right: 14%;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 28px rgba(74,144,226,.55);
  opacity: .8;
}
.hero-copy { position: relative; z-index: 2; text-align: center; max-width: 560px; pointer-events: none; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
h1 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(3.3rem, 8vw, 6.7rem); font-weight: 400; line-height: .9; letter-spacing: -.035em; }
h1 em { font-weight: 500; color: var(--ocean); }
.hero-note { max-width: 390px; margin: 28px auto 0; font-size: .9rem; line-height: 1.7; color: rgba(32,33,36,.62); }
.enter-link {
  position: absolute;
  bottom: clamp(30px, 6vh, 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: transform 900ms var(--ease), color 600ms var(--ease);
}
.enter-link:hover, .enter-link:focus-visible { transform: translateY(-5px); color: var(--blue); }
.enter-mark { font-size: 1.25rem; animation: nudge 3s var(--ease) infinite; }
.sound-toggle {
  position: fixed;
  right: 24px;
  bottom: 22px;
  border: 1px solid rgba(27,58,87,.12);
  border-radius: 999px;
  padding: 9px 13px;
  color: rgba(27,58,87,.65);
  background: rgba(250,251,252,.5);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: .7rem;
  transition: transform 600ms var(--ease), background 600ms var(--ease);
}
.sound-toggle:hover, .sound-toggle:focus-visible { transform: translateY(-2px); background: rgba(255,255,255,.8); }

@keyframes breathe { 0%,100% { transform: scale(.96); opacity: .45; } 50% { transform: scale(1.04); opacity: .8; } }
@keyframes enso-breathe { 0%,100% { transform: rotate(-22deg) scale(.98); } 50% { transform: rotate(-20deg) scale(1.015); } }
@keyframes drift { from { transform: translate(-2%, -1%) scale(1); } to { transform: translate(2%, 2%) scale(1.06); } }
@keyframes float-a { from { transform: translate(-4vw, 0); } to { transform: translate(18vw, 8vh); } }
@keyframes float-b { from { transform: translate(4vw, 0); } to { transform: translate(-16vw, -10vh); } }
@keyframes nudge { 0%,65%,100% { transform: translateY(0); } 75% { transform: translateY(5px); } 85% { transform: translateY(0); } }

@media (pointer: fine) {
  body::before {
    content: "";
    position: fixed;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(74,144,226,.55);
    box-shadow: 0 0 18px rgba(74,144,226,.35);
    transform: translate(-50%, -50%);
    left: var(--pointer-x, -30px);
    top: var(--pointer-y, -30px);
    pointer-events: none;
    z-index: 100;
    transition: width 600ms var(--ease), height 600ms var(--ease);
  }
}

@media (max-width: 600px) {
  .site-header { padding-top: 20px; }
  .hero-orbit { width: 88vw; }
  .enso { width: 67vw; }
  .hero-copy { margin-top: 4vh; }
  .hero-note { font-size: .82rem; max-width: 300px; }
  .sound-toggle { right: 14px; bottom: 14px; }
}

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