:root {
  color-scheme: dark;
  --background: #0b0c0e;
  --text: #ebe9e5;
  --muted: #888b93;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 280px; background: var(--background); }
body { color: var(--text); }
button { font: inherit; }
button[hidden] { display: none; }
::selection { background: #858e9e; color: #08090b; }

.teaser {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  min-height: max(740px, 100svh);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.atmosphere {
  position: absolute;
  z-index: -4;
  inset: 0;
  background:
    radial-gradient(ellipse 35% 47% at 50% 60%, #31343a65 0%, #1a1d232b 60%, transparent 100%),
    radial-gradient(ellipse 65% 68% at 50% 50%, #17191d 0%, #0b0c0e 83%);
}

/* Keep the entire product reveal obscured; the headline is outside this layer. */
.ring-stage {
  position: absolute;
  z-index: 0;
  width: min(1100px, 100%);
  height: 420px;
  top: 61%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  filter: blur(4.5px);
}
.ring-canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms; }
.ring-fallback {
  position: absolute; width: 190px; height: 190px;
  top: 50%; left: 50%; object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: .6; filter: blur(.8px); transition: opacity 300ms;
}
body.scene-ready .ring-canvas { opacity: .94; }
body.scene-ready .ring-fallback { opacity: 0; }
.concept-note {
  position: absolute; top: 0; left: 0; right: 0;
  color: #90949d; text-align: center; font-size: .75rem;
  line-height: 1.5; letter-spacing: .14em; opacity: 0;
  filter: blur(5px);
}
.callout-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.callout-lines path { fill: none; stroke: #949aa4; stroke-width: .7; opacity: 0; }
.callout-lines circle { fill: #c5c9d0; opacity: 0; }
.component-labels { position: absolute; inset: 0; filter: blur(5px); }
.part-label { position: absolute; width: 178px; text-align: center; opacity: 0; }
.part-label h2 { margin: 0 0 .4rem; font-size: .875rem; line-height: 1.35; font-weight: 400; letter-spacing: -.01em; color: #e2e3e6; }
.part-copy { margin: 0; min-height: 3em; font-size: .8125rem; line-height: 1.45; font-weight: 400; color: #9da2ad; }
body.scene-fallback .ring-canvas, body.scene-fallback .callout-lines { display: none; }
body.scene-fallback .ring-fallback { top: 26%; }
body.scene-fallback .concept-note { opacity: 1 !important; }
body.scene-fallback .component-labels {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1.25rem 2rem; inset: auto 1.5rem 0; max-width: 550px; margin: 0 auto;
}
body.scene-fallback .part-label { position: static; width: auto !important; opacity: 1 !important; transform: none !important; }

.vignette {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: radial-gradient(ellipse 60% 68% at 50% 51%, transparent 15%, #0b0c0e22 58%, #0b0c0ecc 100%);
  pointer-events: none;
}

.headline {
  position: absolute;
  z-index: 2;
  top: 28%;
  width: 100%;
  padding: 2rem 1.25rem;
  text-align: center;
  transform: translateY(-50%);
}

h1 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1rem, 3.05vw, 2.75rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -.035em;
  text-shadow: 0 2px 35px #08090b50;
}
.headline-visual {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: .24em;
  white-space: nowrap;
}
.headline-line {
  display: block;
}

.word-window {
  display: block;
  position: relative;
  flex: 0 0 auto;
  width: 1.85em;
  height: 1.35em;
  overflow: hidden;
  transition: width 850ms cubic-bezier(.22,.65,.25,1);
}
.word-measure {
  position: absolute;
  width: max-content;
  padding: 0 .035em;
  visibility: hidden;
  pointer-events: none;
}
.word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  white-space: nowrap;
}
.word.entering { animation: enter-word 900ms cubic-bezier(.22,.65,.25,1) both; }
.word.leaving { animation: leave-word 850ms cubic-bezier(.4,0,.35,1) both; }
.ellipsis { letter-spacing: -.035em; }

.footer {
  position: absolute;
  right: 2rem;
  bottom: max(1.7rem, env(safe-area-inset-bottom));
  left: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.footer-note { font-size: .75rem; line-height: 1.5; letter-spacing: .13em; color: var(--muted); filter: blur(4px); user-select: none; }
.motion-toggle {
  position: absolute;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #a3a5ac;
  border: 1px solid #b1b7c41f;
  background: #16181c30;
  cursor: pointer;
  transition: background 180ms, color 180ms, border-color 180ms;
}
.motion-toggle:hover { color: #f6f4ee; border-color: #b1b7c455; background: #24272c80; }
.motion-toggle:focus-visible { outline: 2px solid #eceae7; outline-offset: 5px; }
.play-icon { display: none; }
body.paused .pause-icon { display: none; }
body.paused .play-icon { display: block; }
body.paused .word { animation-play-state: paused; }
.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; }

@keyframes enter-word {
  from { transform: translateY(-90%); opacity: 0; filter: blur(9px); }
  to { transform: translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes leave-word {
  from { transform: translateY(0); opacity: 1; filter: blur(0); }
  to { transform: translateY(92%); opacity: 0; filter: blur(9px); }
}

@media (max-width: 700px) {
  .teaser { min-height: max(780px, 100svh); }
  .headline { top: 23%; padding: 2rem .85rem; }
  .ring-stage { top: 60%; height: 500px; }
  .part-label h2 { font-size: .875rem; }
  .footer { right: 1.15rem; left: 1.15rem; bottom: max(1.2rem, env(safe-area-inset-bottom)); justify-content: flex-start; }
  .footer-note { font-size: .75rem; letter-spacing: .09em; }
}
@media (max-width: 360px) {
  .ring-stage { height: 480px; }
  .footer-note { max-width: 180px; }
  .part-label h2 { font-size: .8125rem; }
  .part-copy { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .word { animation: none !important; }
  .word-window, .ring-canvas, .ring-fallback { transition: none; }
  .motion-toggle { display: none; }
}
