@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  --bg: #2B201B;
  --card: #352822;
  --line: #4A3A32;
  --line2: #5A4840;
  --ac: #C4B0F5;
  --muted: #A3949A;
  --sub: #D8CDD2;
  --ink: #F3ECEF;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 40%, rgba(196, 176, 245, .14), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(196, 176, 245, .06), transparent 70%);
  z-index: 0;
}

p,
h1,
dl,
dd,
figure {
  margin: 0;
}

.ac {
  color: var(--ac);
}

.dim {
  color: var(--muted);
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--gutter);
  font-family: var(--font-mono);
  font-size: 14px;
}

.wordmark {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.clocks {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.clocks time {
  color: var(--sub);
}

.clocks .sep {
  margin-inline: 10px;
  color: var(--line2);
}

.cur {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: var(--ac);
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: 8px var(--gutter) 40px;
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
}

.copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.prompt,
.soon {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--sub);
}

.title {
  font-size: clamp(76px, 13vw, 200px);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -0.06em;
}

.title .line {
  display: inline-block;
}

.lead {
  max-width: 22ch;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--sub);
}

.whois {
  display: grid;
  gap: 10px;
  max-width: 460px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(53, 40, 34, .72);
  font-family: var(--font-mono);
  font-size: 14px;
}

.whois div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.whois dt {
  color: var(--muted);
}

.whois dt::after {
  content: ":";
}

.redact {
  display: inline-block;
  padding: 1px 8px;
  background: var(--ink);
  color: var(--ink);
  user-select: none;
}

.meter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar {
  position: relative;
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.fill {
  position: absolute;
  inset: 0;
  background: var(--ac);
  transform: scaleX(0);
  transform-origin: left center;
}

.pct {
  min-width: 4ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ac);
}

.portrait {
  min-width: 0;
}

.frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  cursor: crosshair;
  touch-action: pan-y;
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo {
  filter: grayscale(1) contrast(1.08) brightness(1.04);
}

.tint-low,
.tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tint-low {
  background: #1E1613;
  mix-blend-mode: lighten;
}

.tint {
  background: var(--ac);
  mix-blend-mode: multiply;
}

.beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(243, 236, 239, .07) 60%, rgba(196, 176, 245, .22) 98%, transparent);
  transform: translateY(-100%);
}

.bar-eyes {
  position: absolute;
  top: 19.6%;
  left: 35.5%;
  width: 30%;
  height: 5.4%;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: #120D0B;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  rotate: -2deg;
  transform-origin: left center;
}

.bar-eyes span {
  font-family: var(--font-mono);
  font-size: clamp(8px, .8vw, 11px);
  letter-spacing: .45em;
  color: var(--muted);
}

.lens {
  position: absolute;
  top: 0;
  left: 0;
  width: 34%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--ac);
  box-shadow: 0 0 0 6px rgba(196, 176, 245, .14), 0 24px 60px rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
  will-change: transform;
}

.lens.on {
  opacity: 1;
}

.lens img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  will-change: transform;
}

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--ac);
  pointer-events: none;
}

.tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }

.portrait figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.bottom {
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.ticker {
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--sub);
  white-space: nowrap;
}

.track {
  display: inline-flex;
  gap: 28px;
  padding-left: 28px;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: var(--gutter);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--sub);
}

.boot p {
  opacity: 0;
}

@media (max-width: 899px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .portrait {
    order: -1;
    width: min(100%, 520px);
  }

  .clocks .sep,
  .clocks .del {
    margin-inline: 6px;
  }
}

@media (max-width: 479px) {
  .top {
    font-size: 12px;
  }

  .whois {
    padding: 16px;
    font-size: 13px;
  }

  .whois div {
    grid-template-columns: 60px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .boot {
    display: flex;
    animation: boot-out .7s var(--ease) 1.5s forwards;
  }

  .js .boot p {
    animation: line-in .2s var(--ease) forwards;
  }

  .js .boot p:nth-child(2) { animation-delay: .3s; }
  .js .boot p:nth-child(3) { animation-delay: .65s; }
  .js .boot p:nth-child(4) { animation-delay: 1s; }

  .cur {
    animation: blink 1.1s steps(1) infinite;
  }

  .js .fill {
    animation: fill 3.2s var(--ease) 2.1s forwards;
  }

  .js .bar-eyes {
    animation: glitch 6s steps(1) 3s infinite;
  }

  .js .copy > *,
  .js .portrait {
    opacity: 0;
    transform: translateY(18px);
    animation: rise .9s var(--ease) forwards;
  }

  .js .copy > :nth-child(1) { animation-delay: 1.9s; }
  .js .copy > :nth-child(2) { animation-delay: 2s; }
  .js .copy > :nth-child(3) { animation-delay: 2.1s; }
  .js .copy > :nth-child(4) { animation-delay: 2.2s; }
  .js .copy > :nth-child(5) { animation-delay: 2.3s; }
  .js .portrait { animation-delay: 2.05s; }

  .track {
    animation: tick 38s linear infinite;
  }

  .js .beam {
    animation: beam 5.5s var(--ease) 2.6s infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fill {
    transform: scaleX(.99);
  }

  .lens {
    display: none;
  }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes line-in {
  to { opacity: 1; }
}

@keyframes boot-out {
  to { opacity: 0; transform: translateY(-100%); visibility: hidden; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes fill {
  to { transform: scaleX(.99); }
}

@keyframes beam {
  0% { transform: translateY(-100%); }
  45%, 100% { transform: translateY(560%); }
}

@keyframes tick {
  to { transform: translateX(-50%); }
}

@keyframes glitch {
  0% { transform: none; }
  90% { transform: translateX(4px) scaleX(1.04); }
  92% { transform: translateX(-6px) scaleX(.9); }
  94% { transform: scaleX(.15); }
  96% { transform: translateX(3px); }
  98% { transform: none; }
}
