/* ==========================================================================
   SEVATOME — coming soon
   Brand tokens
   ========================================================================== */
:root {
  --void: #07080A;
  --void-2: #0E1013;
  --bone: #E8E6E1;
  --ash: #8A8C90;
  --smoke: #4A4D52;
  --line: rgba(232, 230, 225, 0.12);
  --signal: #FF4D2E;
  --signal-glow: rgba(255, 77, 46, 0.45);

  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-serif: "Instrument Serif", "Times New Roman", serif;

  --gutter: clamp(16px, 3.2vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--void);
  color: var(--bone);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--signal); color: var(--void); }

.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;
}

.mono-dim { color: var(--ash); }
.accent { color: var(--signal); }

/* Electron (accent dot) — overridable per layer */
.wm-electron { fill: var(--electron, var(--signal)); }

/* --------------------------------------------------------------------------
   Background layers
   -------------------------------------------------------------------------- */
#field {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
}

.fx { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

.fx-vignette {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, transparent 40%, rgba(7, 8, 10, 0.85) 100%);
}

.fx-scan {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.022) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}

.fx-grain {
  inset: -50%;
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -4%); }
  60%  { transform: translate(-4%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* HUD corner brackets */
.hud { position: fixed; inset: 10px; pointer-events: none; z-index: 2; }
.hud-c { position: absolute; width: 18px; height: 18px; border-color: var(--line); border-style: solid; border-width: 0; }
.hud-c.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud-c.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud-c.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud-c.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* Cursor reticle (fine pointers only) */
.reticle {
  position: fixed; left: 0; top: 0;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition: opacity .3s ease, width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out);
  will-change: transform;
}
.reticle::before, .reticle::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(232, 230, 225, 0.35);
  border-radius: 50%;
}
.reticle::after {
  inset: 50% auto auto 50%;
  width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px;
  border: 0; background: var(--signal);
}
.reticle-xy {
  position: absolute; left: calc(100% + 8px); top: 100%;
  font-size: 9px; letter-spacing: .12em; color: var(--ash);
  white-space: nowrap;
}
.reticle.is-on { opacity: 1; }
.reticle.is-hot { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.reticle.is-hot::before { border-color: var(--signal); }

@media (hover: hover) and (pointer: fine) {
  body.has-reticle, body.has-reticle button, body.has-reticle .redact { cursor: none; }
}
@media not all and (hover: hover) and (pointer: fine) {
  .reticle { display: none; }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.shell {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding:
    max(var(--gutter), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(var(--gutter), env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
}

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-transform: uppercase;
}

.brand {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 0; border: 0; background: none;
  color: var(--bone); font: inherit; letter-spacing: inherit;
  cursor: pointer;
}
.brand-mark { width: 28px; height: 28px; transition: transform .8s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-40deg); }
.brand-file { color: var(--ash); }

.status { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.status-sep { color: var(--smoke); }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal-glow);
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

/* Stage */
.stage {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(32px, 6vh, 72px) 0;
}

.kicker { margin: 0 0 clamp(20px, 3.4vh, 36px); color: var(--signal); text-transform: uppercase; letter-spacing: .32em; }
.kicker-br { color: var(--smoke); }

.wordmark {
  position: relative;
  margin: 0;
  width: min(84vw, 780px);
  aspect-ratio: 808 / 112;
  color: var(--bone);
  filter: drop-shadow(0 0 28px rgba(232, 230, 225, 0.08));
}
.wm { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.wm-ghost { opacity: 0; --electron: currentColor; }
.wm-ghost-a { color: var(--signal); }
.wm-ghost-b { color: #7FE7FF; }

.wordmark.is-glitch .wm-main { animation: wm-jit .32s steps(2) 1; }
.wordmark.is-glitch .wm-ghost-a { animation: wm-slice-a .32s steps(3) 1; }
.wordmark.is-glitch .wm-ghost-b { animation: wm-slice-b .32s steps(3) 1; }

@keyframes wm-jit {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-2px, 1px); }
  100% { transform: translate(0, 0); }
}
@keyframes wm-slice-a {
  0%   { opacity: .9; clip-path: inset(10% 0 62% 0); transform: translate(-10px, 0); }
  33%  { opacity: .9; clip-path: inset(58% 0 18% 0); transform: translate(8px, 0); }
  66%  { opacity: .9; clip-path: inset(30% 0 45% 0); transform: translate(-4px, 0); }
  100% { opacity: 0; }
}
@keyframes wm-slice-b {
  0%   { opacity: .7; clip-path: inset(66% 0 8% 0); transform: translate(9px, 0); }
  33%  { opacity: .7; clip-path: inset(4% 0 70% 0); transform: translate(-7px, 0); }
  66%  { opacity: .7; clip-path: inset(44% 0 30% 0); transform: translate(5px, 0); }
  100% { opacity: 0; }
}

/* Intro reveal */
.wordmark { clip-path: inset(-40% 100% -40% -5%); animation: wm-in 1.6s var(--ease-out) .25s forwards; }
@keyframes wm-in { to { clip-path: inset(-40% -5% -40% -5%); } }

.tagline {
  margin: clamp(26px, 4.6vh, 48px) 0 0;
  font-family: var(--f-serif);
  font-size: clamp(26px, 4.2vw, 48px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--bone);
}
.tagline em { font-style: italic; color: var(--bone); }
.tagline > * {
  display: inline-block;
  opacity: 0; filter: blur(10px); transform: translateY(8px);
  animation: word-in 1.1s var(--ease-out) forwards;
}
.tagline > :nth-child(1) { animation-delay: 1.2s; }
.tagline > :nth-child(2) { animation-delay: 1.35s; }
.tagline > :nth-child(3) { animation-delay: 1.5s; }
.tagline > :nth-child(4) { animation-delay: 1.8s; }
@keyframes word-in { to { opacity: 1; filter: blur(0); transform: none; } }

.cipher {
  margin: clamp(18px, 3vh, 28px) 0 0;
  min-height: 1.5em;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: .22em;
}
.cipher-caret { color: var(--signal); }
.cursor { animation: blink 1s steps(1) infinite; color: var(--signal); }

.dossier {
  list-style: none;
  margin: clamp(30px, 5vh, 56px) 0 0;
  padding: 14px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 34px;
  border-top: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
}
.dossier li { display: inline-flex; gap: 10px; align-items: center; }

.redact {
  position: relative;
  color: var(--bone);
  letter-spacing: -0.04em;
  outline: none;
  cursor: help;
}
.redact::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  padding: 4px 8px;
  background: var(--signal); color: var(--void);
  font-size: 10px; letter-spacing: .14em; text-transform: lowercase;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s var(--ease-out);
}
.redact:hover::after, .redact:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
  text-transform: uppercase;
  font-size: 11px;
}
.readout { display: inline-flex; gap: 10px; color: var(--ash); font-variant-numeric: tabular-nums; }
.copy { justify-self: end; color: var(--ash); }

.soon { display: inline-flex; align-items: center; gap: 14px; }
.soon-label { letter-spacing: .38em; }
.soon-bar { display: inline-flex; gap: 3px; }
.soon-bar i {
  width: 6px; height: 10px;
  background: var(--smoke);
  animation: cell 2.6s ease-in-out infinite;
}
.soon-bar i:nth-child(1)  { animation-delay: 0s; }
.soon-bar i:nth-child(2)  { animation-delay: .12s; }
.soon-bar i:nth-child(3)  { animation-delay: .24s; }
.soon-bar i:nth-child(4)  { animation-delay: .36s; }
.soon-bar i:nth-child(5)  { animation-delay: .48s; }
.soon-bar i:nth-child(6)  { animation-delay: .60s; }
.soon-bar i:nth-child(7)  { animation-delay: .72s; }
.soon-bar i:nth-child(8)  { animation-delay: .84s; }
.soon-bar i:nth-child(9)  { animation-delay: .96s; }
.soon-bar i:nth-child(10) { animation-delay: 1.08s; }
@keyframes cell {
  0%, 100% { background: var(--smoke); }
  30%      { background: var(--signal); box-shadow: 0 0 8px var(--signal-glow); }
  55%      { background: var(--bone); box-shadow: none; }
}

/* --------------------------------------------------------------------------
   Vault (easter egg)
   -------------------------------------------------------------------------- */
.vault {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: var(--gutter);
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade .35s ease;
}
.vault[hidden] { display: none; }
.vault-card {
  max-width: 460px;
  padding: 32px 28px 26px;
  background: var(--void-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--signal);
  text-align: left;
  animation: rise .5s var(--ease-out);
}
.vault-card .kicker { margin-bottom: 18px; letter-spacing: .24em; }
.vault-card h2 {
  margin: 0 0 14px;
  font-family: var(--f-serif); font-weight: 400; font-style: italic;
  font-size: 32px; line-height: 1.1; letter-spacing: -0.01em;
}
.vault-card p { margin: 0 0 10px; color: var(--bone); letter-spacing: .04em; font-size: 13px; }
.vault-close {
  margin-top: 18px; padding: 10px 0 0;
  border: 0; background: none;
  color: var(--signal); font: inherit; letter-spacing: .2em;
  cursor: pointer;
}
.vault-close:hover { color: var(--bone); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

:focus-visible { outline: 1px solid var(--signal); outline-offset: 4px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .brand-file, .status-sep, #utc { display: none; }
  .bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; }
  .copy { justify-self: center; }
  .readout { order: 2; }
  .copy { order: 3; }
  .dossier { gap: 10px 22px; }
  .kicker { letter-spacing: .24em; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .dossier { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .fx-grain { animation: none; }
}
