:root {
  --bg: oklch(0.14 0.012 285);
  --bg-elev: oklch(0.17 0.014 285);
  --fg: oklch(0.96 0.008 80);
  --fg-dim: oklch(0.72 0.01 80);
  --fg-mute: oklch(0.52 0.012 280);
  --rule: oklch(0.28 0.012 285 / 0.9);
  --rule-soft: oklch(0.28 0.012 285 / 0.45);

  --accent-a: #f0b370;
  --accent-b: #a78bfa;

  --font-display: 'Geist', system-ui, sans-serif;
  --font-body:    'Geist', system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;
  --tracking: -0.025em;

  --page-x: clamp(24px, 5vw, 64px);
  --page-y: clamp(24px, 3.5vw, 40px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

/* subtle film grain + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 85% 25%, color-mix(in oklch, var(--accent-b) 10%, transparent), transparent 70%),
    radial-gradient(900px 600px at 10% 90%, color-mix(in oklch, var(--accent-a) 6%, transparent), transparent 70%);
  opacity: 0.7;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.35;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--page-y) var(--page-x);
  gap: clamp(32px, 5vw, 64px);
}

/* ---- Nav ---------------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.nav__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
}
.mark-glyph { display: inline-flex; }
.mark-glyph svg { animation: markspin 48s linear infinite; }
@keyframes markspin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--fg-dim);
}
.nav__links a {
  color: inherit;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--fg);
  transition: right 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { right: 0; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding-left: 16px;
  border-left: 1px solid var(--rule);
  margin-left: 8px;
}
.lang-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--fg-mute);
  font: inherit;
  cursor: pointer;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}
.lang-btn.is-active { color: var(--fg); }
.lang-btn:hover { color: var(--fg); }
.lang-sep { color: var(--fg-mute); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 520px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: var(--tracking);
  line-height: 1.02;
  margin: 0;
  background: linear-gradient(180deg, var(--fg) 55%, color-mix(in oklch, var(--fg) 65%, var(--accent-b)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.45;
  color: var(--fg-dim);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  max-width: 460px;
  text-wrap: pretty;
}

.body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg);
  letter-spacing: -0.005em;
  max-width: 460px;
}
.body p { margin: 0; text-wrap: pretty; }

.sig {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}

.status-row {
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px dashed var(--rule-soft);
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.status-row__label {
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10.5px;
}
.status-row__value { color: var(--fg-dim); }

.status-dot {
  position: relative;
  width: 10px; height: 10px;
  display: inline-block;
}
.status-dot__core {
  position: absolute; inset: 3px;
  background: var(--dot, var(--accent-a));
  border-radius: 50%;
  box-shadow: 0 0 10px var(--dot, var(--accent-a));
}
.status-dot__ring {
  position: absolute; inset: 0;
  border: 1px solid var(--dot, var(--accent-a));
  border-radius: 50%;
  opacity: 0.5;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---- Art panel ---------------------------------------------------------- */
.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 72vh;
  width: 100%;
  justify-self: end;
  max-width: 640px;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.art-meta {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  z-index: 2;
}
.art-meta__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-a);
  box-shadow: 0 0 8px var(--accent-a);
}
.art-hairline {
  position: absolute;
  inset: 0;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}
.art-hairline::before,
.art-hairline::after {
  content: "";
  position: absolute;
  background: var(--rule);
}
.art-hairline::before {
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--rule-soft) 20%, var(--rule-soft) 80%, transparent);
}
.art-hairline::after {
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-soft) 20%, var(--rule-soft) 80%, transparent);
}

/* ---- Footer ------------------------------------------------------------- */
.foot { display: flex; flex-direction: column; gap: 18px; }
.foot__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}
.foot__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
}
.foot__mid { display: inline-flex; gap: 12px; align-items: center; }
.foot__right { text-align: right; }
.foot a { color: var(--fg-dim); text-decoration: none; transition: color 0.25s ease; }
.foot a:hover { color: var(--fg); }
.dot { color: var(--fg-mute); }

/* ---- Crossfade ---------------------------------------------------------- */
.crossfade {
  display: inline-block;
  animation: crossfade 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes crossfade {
  0%   { opacity: 0; transform: translateY(4px); filter: blur(4px); }
  100% { opacity: 1; transform: none; filter: none; }
}
/* block-level context for paragraphs */
.body .crossfade, .status-row .crossfade { display: block; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__art {
    order: -1;
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }
  .nav__links { gap: 18px; }
}
@media (max-width: 560px) {
  .nav__links a:not(.lang-btn) { display: none; }
  .lang-toggle { border-left: 0; padding-left: 0; margin-left: 0; }
  .foot__row { grid-template-columns: 1fr; text-align: left; gap: 10px; }
  .foot__right { text-align: left; }
}

/* ---- Privacy page ------------------------------------------------------- */
.nav__home {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav__home:hover { color: var(--fg); }

.privacy {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.privacy__head { display: flex; flex-direction: column; gap: 8px; }
.privacy__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: var(--tracking);
  line-height: 1.05;
  margin: 0;
}
.privacy__updated {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  margin: 0;
}
.privacy__lang { display: flex; flex-direction: column; gap: 14px; }
.privacy__h2 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-soft);
}
.privacy a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.25s ease;
}
.privacy a:hover { border-bottom-color: var(--fg); }
