.word-roller.smoke-sapphire { --smoke: 70 125 254;  --rim: 160 195 255; --haze: 48 121 255;  --haze-a: 1.8; --burst: 1.6; }

:root {
  --bg: #000;
  --pad: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: #def1f7;
}

@font-face {
  font-family: "Obel Mono";
  src: url("/assets/fonts/ObelMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: fixed;
  background: var(--bg);
}

body {
  height: 100svh;
  width: 100vw;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  font-family: "Obel Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2vh 0;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad);
  gap: 1rem;
  width: 100%;
}

.hero-logo{
  width: clamp(110px, 16vw, 230px);
  display: block;
  filter: drop-shadow(0 0 10px rgba(48,121,255,0.45));
}


.timer-container {
  backdrop-filter: blur(5px) saturate(115%);
  -webkit-backdrop-filter: blur(5px) saturate(115%);
  padding: clamp(28px, 6.2vw, 80px) clamp(24px, 5.6vw, 72px);
  --glass-r: clamp(14px, 2.2vw, 24px);
  border-radius: var(--glass-r);
  border: 1px solid rgba(222, 241, 247, 0.1);
  margin-top: 1rem;
  position: relative;
  z-index: 2;
}

.timer-readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1;
}

.timer-readout span { color: #a49f9f; }

.timer-readout .t-sep { opacity: 0.35; padding: 0 0.18em; }

.timer-readout .t-ms  { font-size: 0.55em; opacity: 0.7; }

.timer-readout .t-sep.t-ms { padding: 0 0.08em; }

.section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#tagline-animation { padding: 0.5rem 2rem 4rem; }

#tagline-animation h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.tagline-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.word-roller {
  --slot: 3s;
  --life: 7s;
  --rise: 1.2em;
  display: inline-block;
  height: 1.2em;

  clip-path: polygon(
    calc(var(--side-l, 50vw) * -1)        calc(var(--rise) * -1),
    var(--logo-l, 50%)                    calc(var(--to-logo, var(--rise)) * -1),
    calc(100% - var(--logo-r, 50%))       calc(var(--to-logo, var(--rise)) * -1),
    calc(100% + var(--side-r, 50vw))      calc(var(--rise) * -1),
    calc(100% + var(--side-r, 50vw))      0,
    calc(100% + 50vw)                     0,
    calc(100% + 50vw)                     calc(100% + 1em),
    -50vw                                 calc(100% + 1em),
    -50vw                                 0,
    calc(var(--side-l, 50vw) * -1)        0
  );
}

.word-roller ul { list-style: none; }

.word-roller li {
  height: 1.2em;
  line-height: 1.2em;
}

@property --tint { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --fade { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

.word-roller:not(.is-live) li:not(:first-child) { display: none; }

.word-roller.is-live ul { display: grid; }

.word-roller.is-live li {
  grid-area: 1 / 1;
  opacity: 0;
  animation: word-life calc(var(--count) * var(--slot)) calc(var(--i) * var(--slot)) infinite both;
}

.word-roller.is-live li span {
  display: inline-block;
  color: color-mix(in oklab, color-mix(in oklab, #def1f7, rgb(var(--smoke)) var(--tint)), transparent var(--fade));
  animation:
    word-smoke calc(var(--count) * var(--slot)) calc(var(--i) * var(--slot) + var(--d)) infinite both,
    word-tint  calc(var(--count) * var(--slot)) linear calc(var(--i) * var(--slot) + var(--d)) infinite both;
}

@keyframes word-life {
  0%            { opacity: 0; transform: translate3d(0, 0.5em, 0); filter: blur(6px); animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  10%           { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
  32.86%        { opacity: 1; transform: translate3d(0, 0, 0); animation-timing-function: cubic-bezier(.55, 0, .9, .55); }
  51.43%        { opacity: 1; transform: translate3d(0, calc(var(--rise) * -1), 0); }
  97.86%        { opacity: 1; transform: translate3d(0, calc(var(--rise) * -1), 0); }
  100%          { opacity: 0; transform: translate3d(0, calc(var(--rise) * -1), 0); filter: blur(0); }
}

@keyframes word-smoke {
  0%, 50% {
    transform: none;
    filter: blur(0);
    --fade: 0%;
    text-shadow:
      0 0 2px rgb(var(--rim) / 0),
      0 0 6px rgb(var(--haze) / 0),
      0 0 16px rgb(var(--haze) / 0),
      0 0 34px rgb(var(--haze) / 0);
    animation-timing-function: ease-out; 
  }
  51.43% {
    transform: none;
    filter: blur(0.5px); 
    --fade: 20%; 
    text-shadow:
      0 0 2px rgb(var(--rim) / 0.35),
      0 0 6px rgb(var(--haze) / calc(0.35 * var(--haze-a) * var(--burst))),
      0 0 16px rgb(var(--haze) / calc(0.3 * var(--haze-a) * var(--burst))),
      0 0 34px rgb(var(--haze) / calc(0.18 * var(--haze-a)));
    animation-timing-function: cubic-bezier(.1, .8, .3, 1);
  }
  60% {
    transform:
      translate3d(var(--dx), var(--dy), 0)
      rotate(var(--r)) scale(1.15);
    filter: blur(4px);
    --fade: max(0%, calc(100% - 40% * var(--burst)));
    text-shadow: 
        0 0 2px rgb(var(--rim) / 0.22),
        0 0 6px rgb(var(--haze) / calc(0.4 * var(--haze-a) * var(--burst))),
        0 0 16px rgb(var(--haze) / calc(0.35 * var(--haze-a) * var(--burst))),
        0 0 34px rgb(var(--haze) / calc(0.25 * var(--haze-a) * var(--burst)));
    animation-timing-function: cubic-bezier(.45, 0, .75, .6);
  }
  88.57% {
    transform: translate3d(var(--px), var(--py), 0) rotate(calc(var(--r) * 1.6)) scale(1.35, 1.35);
    filter: blur(9px); --fade: 62%;
    text-shadow:
      0 0 2px rgb(var(--rim) / 0.12),
      0 0 6px rgb(var(--haze) / calc(0.25 * var(--haze-a))),
      0 0 16px rgb(var(--haze) / calc(0.3 * var(--haze-a))),
      0 0 34px rgb(var(--haze) / calc(0.2 * var(--haze-a)));
    animation-timing-function: cubic-bezier(.35, .25, .85, .6);
  }
  97.86%, 100% {
    transform: translate3d(var(--mx), var(--my), 0) rotate(calc(var(--r) * 2)) scale(0.45, 0.45);
    filter: blur(7px); --fade: 100%;
    text-shadow: 0 0 2px rgb(var(--rim) / 0), 0 0 6px rgb(var(--haze) / 0), 0 0 16px rgb(var(--haze) / 0), 0 0 34px rgb(var(--haze) / 0);
  }
}

@keyframes word-tint {
  0%, 51.43%    { --tint: 0%; }
  82.86%, 100%  { --tint: 100%; }
}

.hero {
  --exit-at: 4.8s;
  --absorb-at: 6.75s;
}

.hero.is-absorbing .hero-logo { animation: logo-absorb var(--slot) var(--absorb-at) infinite both; }

.hero-logo-wrap { position: relative; }

.hero-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgb(175 205 255) 0%, rgb(70 130 250 / 0.85) 40%, rgb(30 100 240 / 0) 80%);
  -webkit-mask: var(--logo-mask) center / contain no-repeat;
          mask: var(--logo-mask) center / contain no-repeat;
  mix-blend-mode: plus-lighter;
  opacity: 0;
  pointer-events: none;
}

.hero.is-absorbing .hero-logo-wrap::after { animation: core-absorb var(--slot) var(--absorb-at) infinite both; }

.timer-container::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--glass-r);
  right: var(--glass-r);
  height: 1px;
  background: linear-gradient(90deg, rgb(110 160 255 / 0), rgb(110 160 255 / 0.6) 18%, rgb(110 160 255 / 0.6) 82%, rgb(110 160 255 / 0));
  opacity: 0;
  pointer-events: none;
}

.hero.is-absorbing .timer-container::before { animation: glass-absorb var(--slot) var(--exit-at) infinite both; }

@keyframes logo-absorb {
  0%        { filter: drop-shadow(0 0 10px rgba(48, 121, 255, 0.45)); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  8%        { filter: drop-shadow(0 0 18px rgba(70, 130, 250, 0.9)); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  45%, 100% { filter: drop-shadow(0 0 10px rgba(48, 121, 255, 0.45)); }
}

@keyframes core-absorb {
  0%        { opacity: 0; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  12%       { opacity: 0.9; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  50%, 100% { opacity: 0; }
}

@keyframes glass-absorb {
  0%        { opacity: 0; animation-timing-function: ease-out; }
  4%, 53%   { opacity: 1; animation-timing-function: ease-in; }
  57%, 100% { opacity: 0; }
}

.site-footer {
  --reel-h: 20px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.24em;
  line-height: var(--reel-h);
  text-align: center;
  text-transform: uppercase;
  color: rgba(222, 241, 247, 0.55);
}

.site-footer span { color: inherit; }

.site-footer .reel {
  display: inline-block;
  height: var(--reel-h);
  overflow: hidden;
  vertical-align: top;
}

.site-footer .reel-strip {
  display: block;
  white-space: pre;
  transition:
    transform 600ms cubic-bezier(.3, 1.15, .5, 1),
    color 350ms ease,
    text-shadow 350ms ease;
}

.site-footer .reel-strip.is-cipher {
  color: rgba(110, 160, 255, 0.9);
  text-shadow: 0 0 6px rgba(48, 121, 255, 0.5);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


@media (max-width: 768px) {

  body { padding: 0; }

  .hero            { gap: 0.5rem; }

  .timer-container { margin-top: 0.5rem; }

  .hero .hero-logo { width: clamp(90px, 35vw, 160px); }

  #tagline-animation    { padding: 0; }
  #tagline-animation h2 { font-size: clamp(1.2rem, 4vw, 1.6rem); }

  .word-roller     { margin-bottom: 0.2rem; }
}

@media (max-width: 480px) {

  .hero .hero-logo { width: clamp(80px, 30vw, 140px); }

  #tagline-animation h2 { font-size: clamp(1rem, 4.5vw, 1.4rem); }
}