:root {
  --bg: #000;
  --fg: #f5f5f7;
  --muted: #86868b;
  /* brushed silver: cool greys with diagonal light bands */
  --silver: linear-gradient(115deg, #8f9196 0%, #e4e5e8 26%, #aeb0b5 44%, #f2f2f4 60%, #9fa1a6 80%, #c8c9cd 100%);
  --hair: rgba(255, 255, 255, .08);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); }
body {
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.page {
  position: relative; z-index: 1;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ---------- Nav ---------- */
nav {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .5em;
  color: var(--fg); text-decoration: none;
}
.logo .mark { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* ---------- Liquid glass button ---------- */
.glass {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 16px 0 18px; border-radius: 999px;
  font: 500 13px/1 var(--sans); letter-spacing: -.01em; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),       /* top lip catching light */
    inset 0 -1px 1px rgba(255,255,255,.06),
    0 10px 30px -8px rgba(0,0,0,.6);
  transition: transform .6s var(--ease), background .4s ease, box-shadow .4s ease;
}
/* specular rim: brighter at the top-left and bottom-right edges */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,.1) 32%, rgba(255,255,255,.03) 62%, rgba(255,255,255,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* soft light inside the glass that follows the pointer */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(90px circle at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,.22), transparent 70%);
  transition: opacity .4s ease;
}
.glass .arrow { width: 13px; height: 13px; opacity: .8; transition: transform .6s var(--ease); }
.glass:hover {
  transform: scale(1.04);
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 -1px 1px rgba(255,255,255,.08), 0 14px 40px -8px rgba(160,190,255,.25);
}
.glass:hover .arrow { transform: translateX(2px); }
.glass:active { transform: scale(.97); transition-duration: .15s; }
.glass:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 3px; }
.glass.lg { height: 48px; padding: 0 22px 0 26px; font-size: 15px; gap: 8px; }
.glass.lg .arrow { width: 15px; height: 15px; }

/* ---------- Hero ---------- */
.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(28px, 6vh, 64px);
}

.scene { perspective: 1400px; }
.stage {
  position: relative;
  height: clamp(240px, 56svh, 600px);
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

/* soft studio key light from above */
.stage::before {
  content: ""; position: absolute; inset: -25% -55% -5%;
  background: radial-gradient(50% 45% at 50% 42%, rgba(255,255,255,.075), transparent 70%);
  opacity: 0; animation: fade 3s var(--ease) .4s forwards;
  pointer-events: none;
}

.top-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  opacity: 0; filter: blur(16px);
  animation: top-in 2.2s var(--ease) .2s forwards;
}
@keyframes top-in {
  from { opacity: 0; filter: blur(16px); transform: translateY(16px) scale(.97); }
  to   { opacity: 1; filter: blur(0);    transform: none; }
}
@keyframes fade { to { opacity: 1; } }

/* slow precession around the tip; the reflection mirrors it */
.precess, .precess-mirror { transform-box: view-box; transform-origin: 200px 476px; }
.precess        { animation: precess 3.2s ease-in-out infinite; }
.precess-mirror { animation: precess 3.2s ease-in-out infinite reverse; animation-delay: -1.6s; }
@keyframes precess {
  0%, 100% { transform: rotate(-1.1deg); }
  50%      { transform: rotate(1.1deg); }
}

/* line drawing */
.ln { fill: none; stroke: #f5f5f7; stroke-width: 1.25; vector-effect: non-scaling-stroke;
      stroke-linecap: round; stroke-linejoin: round; }
.ln.dim   { stroke-opacity: .32; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 2.6s var(--ease) forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

/* points of light orbiting together = the spin */
.comets { opacity: 0; animation: fade 1.6s ease 2.6s forwards; }
.comet { fill: none; stroke: #fff; vector-effect: non-scaling-stroke; stroke-linecap: round;
         animation: orbit 2.6s linear infinite; }
.comet.tail  { stroke-width: 1.25; stroke-opacity: .14; stroke-dasharray: 160 840; --o: 0; }
.comet.mid   { stroke-width: 1.4;  stroke-opacity: .4;  stroke-dasharray: 60 940;  --o: -100; }
.comet.head  { stroke-width: 2.4;  stroke-dasharray: 8 992; --o: -152; filter: url(#glow); }
.flow { opacity: 0; animation: fade 2.4s var(--ease) 1.2s forwards; }
#meridians path, #rings path { fill: none; stroke: #f5f5f7; stroke-width: 1; vector-effect: non-scaling-stroke; }
.glint { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke;
         stroke-dasharray: .06 .94; filter: url(#glow); animation: glint 5.4s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes glint { from { stroke-dashoffset: .06; } to { stroke-dashoffset: -.94; } }
@keyframes orbit {
  from { stroke-dashoffset: var(--o); }
  to   { stroke-dashoffset: calc(var(--o) - 1000); }
}

.contact { animation: breathe 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 50% { transform: scaleX(.92); opacity: .85; } }

/* ---------- Copy ---------- */
.copy { text-align: center; }
h1 {
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 600; letter-spacing: -.04em; line-height: 1.05;
}
h1 .silver { display: inline-block; padding-bottom: .2em; margin-bottom: -.2em; }  /* gradient reaches the "g" descender */

/* silver text with a slow band of light gliding across it */
.silver {
  background-image: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.85) 50%, transparent 58%), var(--silver);
  background-size: 250% 100%, 100% 100%; background-repeat: no-repeat;
  background-position: 100% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s cubic-bezier(.45, 0, .25, 1) 3.4s infinite;
}
.count .silver { animation-delay: 3.9s; }
@keyframes sheen {
  0%         { background-position: 100% 0, 0 0; }
  35%, 100%  { background-position: 0% 0, 0 0; }
}

/* countdown: whole days large; fraction aligned to the digits' cap line, "days" to their baseline */
.count {
  --d: clamp(48px, 6.4vw, 84px);
  display: inline-flex; align-items: stretch; gap: calc(var(--d) * .08);
  margin-top: clamp(14px, 2.4vh, 24px);
  font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1;
}
.count .days {
  font-size: var(--d); font-weight: 600;
  text-box: trim-both cap alphabetic;
  padding: .04em 0;                      /* room for round-digit overshoot under the gradient clip */
}
.count .side {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: calc(var(--d) * .04) 0;
  font-size: calc(var(--d) * .31);
}
.count .frac, .count .unit { text-box: trim-both cap alphabetic; }
.count .frac { font-weight: 500; color: #c2c3c7; letter-spacing: -.02em; }
.count .unit { font-size: 1.5em; font-weight: 500; color: var(--muted); letter-spacing: -.02em;
  position: relative; top: -.17em; }   /* lift by the "y" descender so the word ends where 86 does */
@supports not (text-box: trim-both cap alphabetic) {
  .count { align-items: last baseline; }
  .count .side { padding: 0; }
}

.reveal { opacity: 0; transform: translateY(12px); animation: rise 1.6s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Join page ---------- */
.lede {
  max-width: 34ch; margin: 18px auto 0;
  font-size: clamp(15px, 1.6vw, 18px); line-height: 1.5; color: var(--muted); letter-spacing: -.01em;
}
.cta-row { margin-top: clamp(22px, 3.6vh, 34px); }
.join .stage { height: clamp(200px, 40svh, 460px); }

footer {
  height: 56px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #515154; letter-spacing: .01em;
}

canvas#dust { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

@media (max-width: 600px) {
  .stage { height: clamp(220px, 44svh, 420px); }
  .join .stage { height: clamp(180px, 34svh, 340px); }
  .hero { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
}
