/* h1v3MIND/ed site: shared styles. Palette from hive/static/style.css. Self-hosted fonts, no CDNs. */

@font-face {
  font-family: "Anybody";
  src: url("../fonts/anybody-latin-standard-normal.woff2") format("woff2-variations"),
       url("../fonts/anybody-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 50% 150%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "VT323";
  src: url("../fonts/vt323-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg: #0c1115; --panel: #10171c; --panel-2: #151f25; --raised: #182229; --hover: #1f2b32;
  --line: #31404a; --line-soft: #222e36;
  --text: #edf0e9; --muted: #a3afb3; --subtle: #76858b;
  --gold: #efc77d; --gold-2: #ffe0a6; --gold-bg: #2b251a; --gold-line: #6a5836;
  --green: #93d9b3; --green-bg: #17291f; --red: #f0a596; --red-bg: #33201d; --blue: #a6cbe0; --purple: #c8b7e9;
  --display: "Anybody", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --pixel: "VT323", "JetBrains Mono", ui-monospace, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --nav-h: 64px;
  --cut: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15.5px/1.7 var(--mono);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (max-width: 600px) { body { font-size: 14.5px; } }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
p, h1, h2, h3, h4, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
code { font-family: var(--mono); font-size: .92em; color: var(--gold-2); background: var(--gold-bg); padding: .1em .38em; border-radius: 3px; }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
::selection { background: #efc77d55; color: var(--text); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 2000; background: var(--gold); color: var(--bg);
  padding: 10px 14px; font-weight: 700; text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; color: var(--bg); }

.pix { font-family: var(--pixel); font-weight: 400; letter-spacing: .06em; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- type ---------- */
.eyebrow { font-size: 21px; line-height: 1; text-transform: uppercase; color: var(--gold); letter-spacing: .12em; }
.eyebrow::before { content: "\25AE"; display: inline-block; margin-right: .5em; animation: blink 1.1s steps(1) infinite; }
.h-xl, .h-lg {
  font-family: var(--display); font-weight: 850; font-stretch: 64%; text-transform: uppercase;
  line-height: .92; letter-spacing: -.005em; color: var(--text); text-wrap: balance;
}
.h-xl { font-size: clamp(2.5rem, 1.2rem + 5.2vw, 6.1rem); }
.h-lg { font-size: clamp(2rem, 1.1rem + 3vw, 3.9rem); }
.h-md { font-family: var(--mono); font-weight: 700; font-size: 1.12rem; line-height: 1.35; letter-spacing: -.01em; color: var(--text); }
.muted-s { color: var(--subtle); font-size: .92em; }
.note { color: var(--subtle); font-size: 18px; line-height: 1.25; }
.note::before { content: "// "; color: var(--gold-line); }

/* split text produced by site.js */
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--gold-line);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 46px; padding: .8em 1.3em;
  font: 700 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--gold-2); background: transparent; border: 1px solid var(--b);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
  position: relative;
}
.btn:hover { color: var(--gold-2); border-color: var(--gold); background: var(--gold-bg); text-shadow: -1.5px 0 #f0a59699, 1.5px 0 #a6cbe099; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -6px; }
.btn-gold { --b: var(--gold); background: var(--gold); color: #0c1115; }
.btn-gold:hover { background: var(--gold-2); color: #0c1115; border-color: var(--gold-2); text-shadow: none; }
.btn-gold:focus-visible { outline-color: #0c1115; }
.btn-ghost { color: var(--text); --b: var(--line); }
.btn-sm { min-height: 36px; padding: .55em .95em; font-size: .72rem; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 1; color: var(--subtle); background: var(--panel-2); border-color: var(--line); text-shadow: none; }
.btn-k { font-family: var(--pixel); font-size: 1.35em; letter-spacing: 0; font-weight: 400; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4em; font: 400 17px/1 var(--pixel); letter-spacing: .08em; text-transform: uppercase;
  padding: .28em .55em .22em; border: 1px solid currentColor; border-radius: 2px; vertical-align: middle; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge-live { color: var(--green); background: var(--green-bg); }
.badge-soon { color: var(--gold); background: var(--gold-bg); }
.badge-planned { color: var(--muted); background: var(--panel-2); }
.badge-live::before { animation: blink 1.6s steps(1) infinite; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gut);
  background: linear-gradient(180deg, #0c1115f2, #0c1115c9);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand img { width: 32px; height: 32px; border-radius: 5px; background: #0e0f0e; }
.brand-word { font: 400 18px/1 var(--mono); letter-spacing: -.01em; color: var(--muted); }
.brand-word b { color: var(--gold); font-weight: 800; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font: 400 19px/1 var(--pixel); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none;
  padding: 8px 12px; border: 1px solid transparent; position: relative;
}
.nav-links a:hover, .nav-links a.on { color: var(--gold-2); border-color: var(--line-soft); background: var(--panel); }
.nav-links a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-links ~ .nav-right { margin-left: 12px; }
.fx-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); color: var(--muted); font: 400 18px/1 var(--pixel); letter-spacing: .08em;
}
.fx-toggle:hover { color: var(--gold-2); border-color: var(--gold-line); }
.fx-state { color: var(--green); min-width: 2.2em; text-align: left; }
html[data-fx="off"] .fx-state { color: var(--subtle); }
@media (max-width: 980px) { .nav-links { display: none; } .nav-links ~ .nav-right { margin-left: auto; } }
@media (max-width: 420px) { .brand-word { display: none; } .nav { gap: 10px; } }

/* ---------- terminal window ---------- */
.term {
  position: relative; background: #0a0f12; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 30px 80px #0008, inset 0 0 0 1px #ffffff05; overflow: hidden; color: var(--muted);
}
.term-bar {
  display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px;
  background: var(--panel-2); border-bottom: 1px solid var(--line-soft);
}
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 2px; background: var(--line); }
.term-dots i:nth-child(1) { background: var(--red); } .term-dots i:nth-child(2) { background: var(--gold); } .term-dots i:nth-child(3) { background: var(--green); }
.term-title { font: 400 17px/1 var(--pixel); letter-spacing: .06em; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-body { margin: 0; padding: 18px 20px 20px; font: 400 13px/1.75 var(--mono); color: var(--muted); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.term::after {
  content: ""; position: absolute; inset: 34px 0 0 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, #dbe6dd06 2px 3px);
}
.c-p { color: var(--gold); } .c-c { color: var(--subtle); } .c-o { color: var(--green); }

/* ---------- screen / monitor chrome ---------- */
.screen {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 40px 120px #000a, 0 0 0 6px #10171c, 0 0 0 7px var(--line-soft);
}
.screen::before, .screen::after { content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 3; }
.screen::before { left: -14px; top: -14px; border-left: 2px solid var(--gold); border-top: 2px solid var(--gold); }
.screen::after { right: -14px; bottom: -14px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.screen-bar {
  display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line-soft);
  font: 400 16px/1 var(--pixel); letter-spacing: .08em; color: var(--subtle); text-transform: lowercase; white-space: nowrap; overflow: hidden;
  border-radius: 10px 10px 0 0; background: var(--panel-2);
}
.sb-dot { width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 8px var(--green); flex-shrink: 0; }
.sb-r { margin-left: auto; color: var(--gold-line); overflow: hidden; text-overflow: ellipsis; }
.screen-view { position: relative; overflow: hidden; border-radius: 0 0 10px 10px; background: var(--bg); aspect-ratio: 8 / 5; }
.screen-view img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.screen-view::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, #00000014 2px 3px), linear-gradient(115deg, #ffffff0a 0%, transparent 32%);
}
.screen figcaption, figure > figcaption { padding: 14px 4px 0; color: var(--subtle); font-size: .86rem; line-height: 1.55; }
.screen > figcaption { position: absolute; top: 100%; left: 0; right: 0; }
.slice { position: absolute; left: 0; right: 0; background-size: 100% auto; background-repeat: no-repeat; pointer-events: none; z-index: 2; }

/* ---------- phone frame ---------- */
.phone {
  position: relative; width: 100%; aspect-ratio: 1170 / 1992; padding: 7px; border-radius: 34px;
  background: linear-gradient(160deg, #24313a, #11181d 40%, #182229); border: 1px solid var(--line);
  box-shadow: 0 40px 100px #000b, inset 0 0 0 1px #ffffff0a;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.phone::before {
  content: ""; position: absolute; top: 14px; left: 50%; width: 30%; height: 16px; transform: translateX(-50%);
  background: #05080a; border-radius: 10px; z-index: 2;
}

/* ---------- stickers ---------- */
.sticker {
  position: absolute; z-index: 4; display: inline-block; padding: .5em .8em .45em;
  font: 900 15px/1 var(--display); font-stretch: 70%; letter-spacing: .04em; text-transform: uppercase;
  background: var(--gold); color: #0c1115; transform: rotate(-7deg); box-shadow: 3px 4px 0 #000a; pointer-events: none; white-space: nowrap;
}
.sticker::before {
  content: ""; position: absolute; left: 50%; top: -9px; width: 46px; height: 16px; transform: translateX(-50%) rotate(4deg);
  background: #edf0e933; border-left: 1px dashed #edf0e955; border-right: 1px dashed #edf0e955;
}
.sticker-outline { background: transparent; color: var(--gold); border: 2px dashed var(--gold); box-shadow: none; transform: rotate(5deg); }
.sticker-outline::before { display: none; }
.sticker-red { background: var(--red); transform: rotate(4deg); }
.sticker-blue { background: var(--blue); transform: rotate(-4deg); }
.sticker-purple { background: var(--purple); }

/* ---------- FX layer: scanlines, vignette, flicker (like the app's terminal effects) ---------- */
.fx-layer {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, #dbe6dd09 2px 3px),
    radial-gradient(130% 90% at 50% 45%, transparent 55%, #00000073 100%);
}
.motion .fx-layer { animation: crt 7s steps(1) infinite; }
.fx-layer::after {
  content: ""; position: absolute; left: 0; right: 0; height: 18vh; top: -20vh;
  background: linear-gradient(180deg, transparent, #efc77d07 60%, transparent);
}
.motion .fx-layer::after { animation: roll 9s linear infinite; }
html[data-fx="off"] .fx-layer { display: none; }

@keyframes crt { 0%, 100% { opacity: 1; } 31% { opacity: .82; } 31.6% { opacity: 1; } 63% { opacity: .9; } 63.4% { opacity: 1; } 64% { opacity: .86; } 64.5% { opacity: 1; } }
@keyframes roll { from { transform: translateY(0); } to { transform: translateY(140vh); } }
@keyframes blink { 50% { opacity: 0; } }

/* glitch RGB split: gold main, red and blue channels */
.gl { position: relative; display: block; }
.gl::before, .gl::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.gl::before { color: var(--red); transform: translateX(-3px); mix-blend-mode: screen; }
.gl::after { color: var(--blue); transform: translateX(3px); mix-blend-mode: screen; }
.motion:not([data-fx="off"]) .gl.glitching::before { opacity: .9; animation: slice-a .5s steps(1) infinite; }
.motion:not([data-fx="off"]) .gl.glitching::after { opacity: .9; animation: slice-b .5s steps(1) infinite; }
@keyframes slice-a {
  0% { clip-path: inset(10% 0 70% 0); transform: translate(-4px, 0); }
  20% { clip-path: inset(60% 0 12% 0); transform: translate(3px, 0); }
  40% { clip-path: inset(32% 0 44% 0); transform: translate(-6px, 0); }
  60% { clip-path: inset(80% 0 4% 0); transform: translate(2px, 0); }
  80% { clip-path: inset(0 0 86% 0); transform: translate(-3px, 0); }
}
@keyframes slice-b {
  0% { clip-path: inset(70% 0 8% 0); transform: translate(4px, 0); }
  20% { clip-path: inset(6% 0 76% 0); transform: translate(-3px, 0); }
  40% { clip-path: inset(48% 0 30% 0); transform: translate(6px, 0); }
  60% { clip-path: inset(22% 0 60% 0); transform: translate(-2px, 0); }
  80% { clip-path: inset(88% 0 0 0); transform: translate(3px, 0); }
}
.rgb { text-shadow: -2px 0 #f0a596b3, 2px 0 #a6cbe0b3; }

@keyframes deny-shake {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-10px, 1px); } 20% { transform: translate(9px, -2px); } 30% { transform: translate(-7px, 2px); }
  40% { transform: translate(6px, 0); } 50% { transform: translate(-4px, 1px); } 60% { transform: translate(3px, -1px); } 70% { transform: translate(-2px, 0); }
}
@keyframes crt-on {
  0% { transform: scale(.02, .004); filter: brightness(4); opacity: .4; }
  35% { transform: scale(1, .006); filter: brightness(3); opacity: 1; }
  70% { transform: scale(1, 1.02); filter: brightness(1.4); }
  100% { transform: scale(1, 1); filter: none; }
}

/* ---------- footer ---------- */
.foot { position: relative; border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--bg), #0a0e11); padding: 64px 0 0; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 48px; align-items: start; }
.foot-word { font: 800 clamp(2.4rem, 6vw, 4.6rem)/1 var(--mono); letter-spacing: -.04em; color: var(--muted); }
.foot-word b { color: var(--gold); font-weight: 800; }
.foot-tag { color: var(--subtle); font-size: 20px; text-transform: uppercase; margin-top: 10px; }
.foot-nav { display: grid; gap: 8px; justify-items: start; }
.foot-nav a { font: 400 20px/1.2 var(--pixel); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.foot-nav a::before { content: "> "; color: var(--gold-line); }
.foot-nav a:hover { color: var(--gold-2); }
.foot-legal { grid-column: 1 / -1; color: var(--subtle); font-size: .82rem; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.foot-ascii { margin-top: 36px; padding: 10px 0 18px; font: 400 18px/1 var(--pixel); color: var(--gold-line); white-space: nowrap; overflow: hidden; letter-spacing: .1em; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }

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