/* Hexvoid website stylesheet. Self-hosted fonts, no third-party requests. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #07070b;
  --bg-soft: #0b0b12;
  --surface: #10101a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eeeef6;
  --muted: #a3a3b8;
  --dim: #7a7a90;
  --accent: #8f8fff;
  --accent-soft: rgba(143, 143, 255, 0.14);
  --accent-line: rgba(143, 143, 255, 0.4);
  --brand: #8f8fff;
  --live: #6ee7b7;
  --dev: #f5c26b;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 68px;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--text); color: #0a0a12;
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 11, 0.72);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; color: var(--text); flex: none; }
.brand-mark path { fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark circle { fill: var(--brand); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted);
  font-size: 0.94rem; transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform 0.25s var(--ease), opacity 0.2s; }
.site-header[data-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 22px; background: rgba(7, 7, 11, 0.97); border-bottom: 1px solid var(--line);
  }
  .js .site-header[data-open="true"] .site-nav { display: flex; }
  .js .site-nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
}

/* ---------- Buttons, chips, labels ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 550; font-size: 0.97rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--text); color: #0a0a12; }
.btn-primary:hover { background: #fff; box-shadow: 0 10px 34px rgba(143, 143, 255, 0.3); transform: translateY(-1px); }
.btn-secondary { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; padding: 5px 12px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 0.8rem; color: var(--muted); background: rgba(255, 255, 255, 0.025);
}

.eyebrow { font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.status-live::before { background: var(--live); box-shadow: 0 0 12px rgba(110, 231, 183, 0.7); }
.status-dev::before { background: var(--dev); box-shadow: 0 0 12px rgba(245, 194, 107, 0.5); }

.text-link { color: var(--accent); text-decoration: none; font-weight: 550; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
.section-head p { color: var(--muted); max-width: 52ch; margin-top: 10px; text-wrap: pretty; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 8vw, 112px) clamp(48px, 7vw, 96px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23ffffff' stroke-opacity='0.045'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23ffffff' stroke-opacity='0.045'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero::after {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(143, 143, 255, 0.16), transparent);
}
.hero-grid {
  position: relative; z-index: 1; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 72px);
}
.hero h1 {
  margin: 20px 0 22px; font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.03;
  letter-spacing: -0.035em; font-weight: 600; text-wrap: balance;
}
.grad {
  background: linear-gradient(120deg, #ffffff 0%, #c4c4ff 55%, #8f8fff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Hex tunnel (signature visual) ---------- */
.tunnel-wrap { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.tunnel-wrap::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(143, 143, 255, 0.3), transparent);
  filter: blur(8px);
}
.tunnel {
  position: relative; aspect-ratio: 1 / 1;
  -webkit-mask-image: radial-gradient(circle at center, #000 56%, transparent 70%);
  mask-image: radial-gradient(circle at center, #000 56%, transparent 70%);
}
.tunnel svg { width: 100%; height: 100%; overflow: visible; }
.tunnel .ring { transform-box: fill-box; transform-origin: center; opacity: 0; }
.tunnel .ring path {
  fill: none; stroke: #f2f2fa; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.tunnel .core path { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tunnel .core .track { stroke: rgba(255, 255, 255, 0.14); stroke-dasharray: 2 5; stroke-width: 1.4; }
.tunnel .orbit { transform-box: fill-box; transform-origin: center; animation: orbit 5.5s linear infinite; }
.tunnel .orbit .dot { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(143, 143, 255, 0.9)); }

@keyframes tunnel {
  0%   { transform: scale(0.12) rotate(var(--a0)); opacity: 0; }
  12%  { opacity: 0.95; }
  50%  { transform: scale(0.42) rotate(calc(var(--a0) + 14deg)); }
  80%  { opacity: 0.95; }
  100% { transform: scale(1.45) rotate(var(--a1)); opacity: 0; }
}
@keyframes orbit { to { transform: rotate(360deg); } }

.tunnel .ring {
  --a0: calc(var(--i) * 60deg);
  --a1: calc(var(--i) * 60deg + 40deg);
  animation: tunnel 9s linear infinite;
  animation-delay: calc(var(--i) * -1.5s);
}

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.card h3 { font-size: 1.25rem; letter-spacing: -0.015em; font-weight: 600; }
.card p { color: var(--muted); text-wrap: pretty; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
a.card-link-text { text-decoration: none; }
a.card-link-text::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); }
.card-ghost { border-style: dashed; background: transparent; box-shadow: none; }
.card-ghost:hover { transform: none; background: transparent; border-color: var(--line); }
.card-foot { margin-top: auto; padding-top: 6px; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

.app-icon { width: 72px; height: 72px; border-radius: 18px; border: 1px solid var(--line-strong); box-shadow: 0 10px 40px rgba(143, 143, 255, 0.18); background: #000; flex: none; }
.app-icon-lg { width: 112px; height: 112px; border-radius: 28px; }

/* Featured project */
.feature {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(135deg, rgba(143, 143, 255, 0.11), rgba(255, 255, 255, 0.015) 55%);
}
.feature-body { padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.feature-body h3 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.03em; font-weight: 600; line-height: 1.08; }
.feature-body p { color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.feature-visual {
  position: relative; display: grid; place-items: center; padding: 24px; min-height: 320px;
  border-left: 1px solid var(--line); background: var(--bg-soft); overflow: hidden;
}
.feature-visual .tunnel-wrap { max-width: 400px; }

/* ---------- Principles ---------- */
.principles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.principle { background: var(--bg); padding: 28px 26px 32px; }
.principle .num { font: 500 0.78rem/1 var(--font-mono); color: var(--accent); letter-spacing: 0.1em; }
.principle h3 { margin: 18px 0 10px; font-size: 1.1rem; letter-spacing: -0.01em; font-weight: 600; }
.principle p { color: var(--muted); font-size: 0.95rem; text-wrap: pretty; }

/* ---------- Call to action ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(28px, 5vw, 56px); border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(143, 143, 255, 0.17), rgba(143, 143, 255, 0.035));
}
.cta h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -0.025em; font-weight: 600; line-height: 1.15; text-wrap: balance; }
.cta p { color: var(--muted); margin-top: 8px; max-width: 48ch; }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(44px, 7vw, 88px) clamp(20px, 3vw, 40px); }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); line-height: 1.05; letter-spacing: -0.032em; font-weight: 600; margin-block: 14px 18px; text-wrap: balance; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 10px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); opacity: 0.6;
}
.crumbs li { display: inline-flex; align-items: center; }

.project-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.project-title { display: flex; align-items: center; gap: 22px; margin-block: 22px 18px; }
.project-title h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.035em; line-height: 1; font-weight: 600; }
.tagline { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -0.015em; margin-bottom: 14px; }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.fact { background: var(--bg-soft); padding: 16px 18px; }
.fact dt { font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.fact dd { font-size: 0.97rem; font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.02); }
.step .n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--text); font: 600 0.9rem/1 var(--font-mono);
}
.step h3 { margin: 18px 0 8px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.step p { color: var(--muted); text-wrap: pretty; }

.modes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.mode { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); display: flex; flex-direction: column; gap: 8px; }
.mode h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; }
.mode p { color: var(--muted); font-size: 0.95rem; text-wrap: pretty; }
.mode .tag { margin-top: auto; padding-top: 6px; font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); text-wrap: pretty; }
.checks li strong { color: var(--text); font-weight: 550; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 16px; background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 550; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--font-mono); color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 70ch; text-wrap: pretty; }

/* Contact blocks */
.contact-card { gap: 10px; }
.contact-card .label { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.mail { font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 550; word-break: break-word; }
.mail a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.mail a:hover { border-color: var(--accent); }

/* About page prose blocks */
.stack > * + * { margin-top: 1.1em; }
.stack p { color: var(--muted); max-width: 66ch; text-wrap: pretty; }
.stack h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -0.02em; font-weight: 600; margin-top: 2em; color: var(--text); }

/* ---------- Legal text (privacy policy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.2rem; letter-spacing: -0.01em; font-weight: 600; margin: 2.6em 0 0.7em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.prose h2:first-of-type { margin-top: 1.6em; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 0.9em; }
.prose ul { margin: 0.8em 0 1em; padding-left: 1.2em; list-style: disc; }
.prose li { margin: 0.5em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; word-break: break-word; }
.prose .contact-box { margin-top: 1em; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); }
.prose .updated { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--dim); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.footer-brand p { color: var(--muted); max-width: 32ch; margin-top: 14px; font-size: 0.95rem; }
.footer-title { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 32px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.86rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(72px, 14vw, 160px); }
.notfound .code { font: 600 clamp(4rem, 14vw, 8rem)/1 var(--font-mono); letter-spacing: -0.04em; }
.notfound p { color: var(--muted); margin: 14px auto 28px; max-width: 44ch; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.9s var(--ease) both; animation-delay: var(--d, 0s); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .project-hero { grid-template-columns: 1fr; }
  .hero-visual, .project-visual { order: -1; }
  .hero-visual .tunnel-wrap, .project-visual .tunnel-wrap { max-width: 380px; }
  .feature { grid-template-columns: 1fr; }
  .feature-visual { border-left: 0; border-top: 0; border-bottom: 1px solid var(--line); min-height: 280px; order: -1; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero-visual .tunnel-wrap, .project-visual .tunnel-wrap { max-width: 270px; margin-block: -14px; }
  .principles, .checks, .two-col { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .project-title { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-actions .btn, .feature-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .tunnel .ring { animation: none; opacity: 0.8; transform: scale(calc(0.2 + var(--i) * 0.22)) rotate(var(--a0)); }
  .tunnel .orbit { animation: none; }
}

/* =====================================================================
   v2: multilingual site (language switcher, scripts), Loot Dealer theme
   ===================================================================== */

/* Cyrillic subsets (Ukrainian) */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Japanese and Korean use system fonts, with tighter heading settings */
:lang(ja) { --font-sans: "Geist", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", ui-sans-serif, system-ui, sans-serif; --font-mono: "Geist Mono", "Hiragino Sans", "Yu Gothic UI", "Meiryo", ui-monospace, monospace; line-break: strict; }
:lang(ko) { --font-sans: "Geist", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", ui-sans-serif, system-ui, sans-serif; --font-mono: "Geist Mono", "Apple SD Gothic Neo", "Malgun Gothic", ui-monospace, monospace; word-break: keep-all; }
:lang(ja) :is(h1, h2, h3, .tagline), :lang(ko) :is(h1, h2, h3, .tagline) { letter-spacing: 0; line-height: 1.25; }
:lang(ja) .eyebrow, :lang(ko) .eyebrow, :lang(ja) .status, :lang(ko) .status,
:lang(ja) .footer-title, :lang(ko) .footer-title, :lang(ja) .label, :lang(ko) .label { letter-spacing: 0.04em; }

/* Language switcher: a dropdown next to the main navigation */
.lang { position: relative; margin-left: 6px; }
.lang summary {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; list-style: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.9rem; user-select: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); }
.lang summary svg { width: 16px; height: 16px; flex: none; }
.lang .chev { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.lang[open] .chev { transform: rotate(180deg); }
.lang-current { font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.08em; }

.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: min(360px, 88vw);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px;
  border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(12, 12, 19, 0.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: menu-in 0.18s var(--ease);
}
.site-nav .lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px;
  border-radius: 10px; font-size: 0.93rem; color: var(--muted); text-decoration: none; background: transparent;
}
.site-nav .lang-menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.site-nav .lang-menu a[aria-current="true"] { color: var(--text); background: var(--accent-soft); }
.site-nav .lang-menu a[aria-current="true"]::after {
  content: ""; width: 5px; height: 9px; margin-right: 3px; flex: none;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .lang { margin: 8px 0 0; }
  .js .site-nav .lang summary { width: 100%; justify-content: space-between; padding: 14px 16px; border-radius: 12px; font-size: 1.02rem; }
  .js .site-nav .lang-menu { position: static; width: 100%; margin-top: 8px; box-shadow: none; animation: none; background: rgba(255, 255, 255, 0.03); }
  .js .site-nav .lang-menu a { padding: 12px 12px; font-size: 1rem; }
}

/* Notices */
.notice {
  max-width: 760px; margin-bottom: 28px; padding: 14px 18px; border: 1px solid var(--accent-line);
  border-radius: 12px; background: var(--accent-soft); color: var(--text); font-size: 0.95rem;
}
.note { margin-top: 28px; max-width: 62ch; color: var(--dim); font-size: 0.9rem; }

/* Loot Dealer theme: warm amber accent, faceted gem visual */
body.theme-loot { --accent: #f0b35a; --accent-soft: rgba(240, 179, 90, 0.14); --accent-line: rgba(240, 179, 90, 0.4); }
body.theme-loot .hero::after { background: radial-gradient(closest-side, rgba(240, 179, 90, 0.15), transparent); }
body.theme-loot .btn-primary:hover { box-shadow: 0 10px 34px rgba(240, 179, 90, 0.3); }
body.theme-loot .cta { background: linear-gradient(120deg, rgba(240, 179, 90, 0.15), rgba(240, 179, 90, 0.03)); }
body.theme-loot .step .n { border-color: rgba(240, 179, 90, 0.4); background: rgba(240, 179, 90, 0.12); }
body.theme-loot .checks li::before { background: #f0b35a; }

.app-icon-ld { border: 1px solid rgba(240, 179, 90, 0.35); border-radius: 18px; box-shadow: 0 10px 40px rgba(240, 179, 90, 0.16); background: #0d0a07; flex: none; }
.app-icon-ld.app-icon-lg { border-radius: 28px; }
.card-loot:hover { border-color: rgba(240, 179, 90, 0.45); }

.gem-wrap { position: relative; width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 1 / 1; }
.gem-wrap::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(240, 179, 90, 0.28), transparent); filter: blur(10px);
}
.gem { position: relative; width: 100%; height: 100%; overflow: visible; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 18px 40px rgba(240, 179, 90, 0.22)); }
.gem path { fill: none; stroke: #f5c26b; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.gem .gem-body { fill: url(#gem-fill-lg); }
.gem .spark { fill: #ffe9b8; opacity: 0.2; animation: twinkle 3.4s ease-in-out infinite; }
.gem .s2 { animation-delay: -1.1s; }
.gem .s3 { animation-delay: -2.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }

@media (max-width: 960px) { .project-visual .gem-wrap { max-width: 320px; } }
@media (max-width: 640px) { .project-visual .gem-wrap { max-width: 230px; margin-block: -10px; } }
@media (prefers-reduced-motion: reduce) {
  .gem, .gem .spark { animation: none; }
  .gem .spark { opacity: 0.7; }
  .lang-menu { animation: none; }
}

/* Long compound words (German, Dutch, Turkish...) must never push the page wider than the screen */
h1, h2, h3, .tagline, .lead, .card p, .step p, .mode p, .principle p, .fact dd, .status, .tag { overflow-wrap: anywhere; }
h1, h2, h3, .tagline { hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 480px) {
  .page-hero h1 { font-size: clamp(1.7rem, 8.4vw, 2.2rem); }
}

/* Screenshot strip */
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.shots:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.shot { flex: none; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-soft); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shots-portrait .shot { width: clamp(150px, 24vw, 220px); aspect-ratio: 9 / 19; }
.shots-wide .shot { width: clamp(260px, 46vw, 480px); aspect-ratio: 16 / 9; }

/* Press kit */
.prose .facts { margin: 1em 0 0.4em; }

/* ---------- Gameplay clips ---------- */
/* Hero film: the game plays behind the hero text, dimmed so the text keeps its contrast. */
.hero.has-film > .container { position: relative; z-index: 1; }
.hero-film { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-film video { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.hero-film::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(7, 7, 11, 0.8) 40%, rgba(7, 7, 11, 0.25) 100%),
              linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 11, 0) 35%);
}
.hero.has-film::after { z-index: 0; }

/* HEXVOID on a phone screen */
.phone {
  position: relative; width: min(290px, 74%); margin-inline: auto; aspect-ratio: 740 / 1546; padding: 10px;
  border: 1px solid var(--line-strong); border-radius: 38px; background: #0c0c14;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 70px rgba(143, 143, 255, 0.16);
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 29px; background: #000; }

/* Loot Dealer on a screen */
.screen {
  overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid rgba(240, 179, 90, 0.35); border-radius: var(--radius-lg);
  background: #0d0a07; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 70px rgba(240, 179, 90, 0.14);
}
.screen video { width: 100%; height: 100%; object-fit: cover; }

/* Featured card on the home page: the whole game screen on a phone */
.feature-visual .phone { width: min(210px, 56%); }

/* A clip across the top of a project card */
.card-media { margin: -26px -26px 4px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 1px solid var(--line); background: #000; }
.card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media video { transform: scale(1.04); }
.card-media-strip { display: flex; justify-content: center; gap: 8px; padding: 12px 12px 0; background: #050508; }
.card-media-strip img { height: 100%; width: auto; aspect-ratio: 720 / 1600; object-fit: cover; border-radius: 10px 10px 0 0; }

/* "See it in motion": clip cards with the name of what they show */
.clips { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.clip-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #000; }
.clips-square .clip-card { aspect-ratio: 1 / 1; }
.clips-wide .clip-card { aspect-ratio: 16 / 9; }
.clips-tall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clips-tall .clip-card { aspect-ratio: 720 / 1526; }
.clip-card video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.clip-card:hover video { transform: scale(1.03); }
.clip-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px;
  background: linear-gradient(0deg, rgba(7, 7, 11, 0.85), rgba(7, 7, 11, 0));
  font: 600 1.05rem/1.2 var(--font-sans); letter-spacing: -0.01em; color: var(--text);
}
.clip-card figcaption::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent); vertical-align: 2px;
}
body.theme-loot .screen, body.theme-loot .clip-card { border-color: rgba(240, 179, 90, 0.22); }

/* Test sign-ups not open yet */
.btn-soon { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--muted); cursor: default; }

@media (max-width: 960px) {
  .phone { width: min(230px, 60%); }
  .hero-film::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 11, 0.72) 60%, rgba(7, 7, 11, 0.55) 100%); }
}
@media (max-width: 640px) {
  .clips { grid-template-columns: 1fr; }
  .clips-tall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .clips-tall .clip-card figcaption { padding: 28px 8px 8px; font-size: 0.8rem; }
  .clips-tall .clip-card figcaption::before { display: none; }
  .phone { width: min(200px, 58%); }
}
@media (prefers-reduced-motion: reduce) {
  .card-media video, .clip-card video { transition: none; }
}

/* ---------- Screenshot lightbox ---------- */
.shot a { display: block; height: 100%; cursor: zoom-in; }
.shot a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.shot img { transition: transform 0.4s var(--ease); }
.shot a:hover img { transform: scale(1.03); }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 56px); background: rgba(5, 5, 9, 0.94);
}
.lightbox.is-open { display: flex; }
html.lightbox-on { overflow: hidden; }
.lightbox-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border: 1px solid var(--line-strong); border-radius: 16px; background: #000; cursor: zoom-out;
}
.lightbox button {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(16, 16, 26, 0.85); color: var(--text);
  font: 400 30px/1 var(--font-sans); cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.lightbox button:hover { background: rgba(40, 40, 60, 0.95); border-color: rgba(255, 255, 255, 0.35); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox { padding: 64px 8px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 12px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } }

/* ---------- Loot Dealer: joining the test ---------- */
.join-test { scroll-margin-top: calc(var(--header-h) + 24px); }
.join-test h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -0.025em; font-weight: 600; line-height: 1.15; }
.join-lead { color: var(--muted); margin: 10px 0 24px; max-width: 62ch; }
.join-steps { counter-reset: none; }
.join-steps .step { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.join-steps .step h3 { margin: 0; }
.join-steps .step p { margin: 0 0 6px; flex: 1; }
