/* ivanoff.app — shared tokens & chrome (home + case pages) */
:root {
  --bg: #060606;
  --bg-2: #0b0b0b;
  --bg-3: #111111;
  --fg: #ededed;
  --fg-2: #c2c2c2;
  --dim: #8c8c8c;
  --muted: #6a6a6a;
  --faint: #3d3d3d;
  --line: #161616;
  --line-2: #222222;
  --acc: #7fd28a;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font: var(--sans);
  --fs: 15px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r: 8px; --r-lg: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: var(--fs);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: #2b2b2b; color: var(--fg); }
a { color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--dim); outline-offset: 3px; border-radius: 3px; }

/* one tiny CRT touch */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.008) 0 1px, transparent 1px 3px);
  z-index: 1;
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s8) var(--s6) var(--s9);
}

/* top bar */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
  margin-bottom: var(--s8);
}
.top .brand, .top .back { color: var(--muted); text-decoration: none; transition: color .2s; white-space: nowrap; }
.top .brand:hover, .top .back:hover { color: var(--fg); }
.top .back .ar { display: inline-block; transition: transform .25s var(--ease); }
.top .back:hover .ar { transform: translateX(-3px); }

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
}
.lang button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.6;
  padding: 2px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.lang button:hover { color: var(--fg); }
.lang button.on { color: var(--fg); background: var(--bg-3); }

/* section label: `$ label ————` */
section { margin-top: var(--s8); }
.label {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: 0 0 var(--s5);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before { content: "$"; color: var(--faint); }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* pill link */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--dim);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 2px 9px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.pill .ar { display: inline-block; transition: transform .25s var(--ease); }
a.pill:hover { color: var(--fg); border-color: var(--dim); background: var(--bg-2); }
a.pill:hover .ar { transform: translateX(3px); }
a.pill.ext:hover .ar { transform: translate(2px, -2px); }
.pill svg { width: 13px; height: 13px; fill: currentColor; flex: none; }

/* footer */
.foot {
  margin-top: var(--s9);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}
.foot a { color: var(--muted); text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--fg); }
.foot .clock { font-variant-numeric: tabular-nums; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .wrap { padding: var(--s6) 20px var(--s8); }
  .top { margin-bottom: var(--s7); }
  section { margin-top: var(--s7); }
  .label { margin-bottom: var(--s4); }
  .foot { margin-top: var(--s8); }
}
