@font-face {
  font-family: "Geist Mono";
  src: url(/fonts/geist-mono-latin.woff2) format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07080a;
  --fg: #e9ecf1;
  --muted: #858b95;
  --faint: #6c727c;
  --line: rgba(233, 236, 241, .16);
  --accent: #ff4d2e;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

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

html { background: var(--bg); }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 400 14px/1.5 var(--mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #000; }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

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

.hot { color: var(--accent); }

/* ---------- background layers ---------- */

#mem {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh; height: 100lvh;
  display: block;
  opacity: 0;
  transition: opacity 1.4s ease;
}
#mem.on { opacity: 1; }

.veil {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 34% at 50% 50%, rgba(7, 8, 10, .95), rgba(7, 8, 10, .72) 48%, rgba(7, 8, 10, 0) 100%),
    radial-gradient(ellipse 72% 72% at 50% 50%, rgba(7, 8, 10, 0) 40%, rgba(7, 8, 10, .95) 100%),
    linear-gradient(to bottom, rgba(7, 8, 10, .8), rgba(7, 8, 10, 0) 16%, rgba(7, 8, 10, 0) 80%, rgba(7, 8, 10, .9));
}

.frame {
  --c: var(--line);
  --l: 14px;
  position: fixed;
  inset: clamp(10px, 2vw, 22px);
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--l);
  background-repeat: no-repeat;
}

/* ---------- layout ---------- */

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding:
    max(clamp(26px, 4.5vw, 52px), env(safe-area-inset-top))
    max(clamp(26px, 4.5vw, 52px), env(safe-area-inset-right))
    max(clamp(26px, 4.5vw, 52px), env(safe-area-inset-bottom))
    max(clamp(26px, 4.5vw, 52px), env(safe-area-inset-left));
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

.logo { display: inline-flex; color: var(--fg); }

.hero {
  place-self: center;
  text-align: center;
  padding-block: 8vh;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(18px, 2.6vw, 30px);
}
.eyebrow .sep { color: var(--faint); margin: 0 .9em; }

.mark {
  font-weight: 600;
  font-size: clamp(2.5rem, 11vw, 8.75rem);
  line-height: .9;
  letter-spacing: -.045em;
  white-space: nowrap;
  font-variant-ligatures: none;
}
.word .x { color: var(--faint); }

.cursor {
  display: inline-block;
  width: .5em;
  height: .72em;
  margin-left: .12em;
  background: var(--accent);
  animation: blink 1.06s steps(1, end) infinite;
}

.tag {
  margin-top: clamp(20px, 2.8vw, 34px);
  font-size: clamp(13px, 1.3vw, 16px);
  letter-spacing: .02em;
  color: var(--muted);
}
.tag a { color: var(--fg); border-bottom: 1px solid var(--accent); }
.tag a:hover { color: var(--accent); }

.readout { white-space: pre; text-transform: none; letter-spacing: .06em; opacity: 0; transition: opacity .5s ease; }
.readout.on { opacity: 1; }

/* ---------- motion ---------- */

.hero   { animation: fade .8s ease both; }
.tag    { animation: fade 1.2s .95s ease both; }
.bar    { animation: fade 1.2s 1.2s ease both; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 520px) {
  .eyebrow { letter-spacing: .22em; }
}
