:root {
  --bg: #0a0c11;
  --panel: #10131a;
  --line: rgba(255,255,255,.09);
  --text: #e6e8ee;
  --muted: #aab2c4;
  --dim: #6f7a92;
  --accent: #7aa2ff;
  --gutter: 56px;
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

a { color: inherit; text-decoration: none; }

/* Fixed so the grid stays put while the page scrolls. */
.gridbg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(140,160,200,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,160,200,.10) 1px, transparent 1px),
    linear-gradient(rgba(140,160,200,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,160,200,.05) 1px, transparent 1px);
  background-size: 192px 192px, 192px 192px, 48px 48px, 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 22%, #000 25%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 22%, #000 25%, transparent 100%);
}

.glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: min(820px, 90vw); height: 560px; right: -140px; top: -200px;
  background: radial-gradient(closest-side, rgba(70,120,255,.18), transparent);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--bg);
  padding: 10px 16px; border-radius: 0 0 4px 0; font-weight: 600;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(10,12,17,.82);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -.01em;
}
.brand .mark {
  width: 18px; height: 18px; background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; color: var(--muted); }
.links a { transition: color .15s ease; }
.links a:hover { color: var(--text); }
.links a.is-active { color: var(--text); }
.links .cta {
  background: var(--text); color: var(--bg);
  padding: 8px 15px; border-radius: 4px; font-weight: 600;
}
.links .cta:hover { background: #fff; color: var(--bg); }
.links .cta.is-active { color: var(--bg); }

/* ---------- shared ---------- */

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }

.kicker {
  margin: 0 0 18px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); font-weight: 600;
}

.btn {
  display: inline-block;
  background: var(--accent); color: var(--bg);
  padding: 11px 20px; border-radius: 4px;
  font: inherit; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: #93b4ff; }
.btn.ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.2); }
.btn.ghost:hover { background: rgba(255,255,255,.06); }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- hero ---------- */

.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 72px var(--gutter) 56px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch;
}
.hero-copy { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.4vw, 52px); font-weight: 600;
  line-height: 1.08; letter-spacing: -.025em;
}
.lead { margin: 0 0 28px; max-width: 30em; font-size: 17px; color: var(--muted); line-height: 1.6; }
.actions { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }

.art { position: relative; overflow: hidden; display: flex; padding: 0; }
.art svg { width: 100%; height: auto; min-height: 320px; display: block; }
.art-label { position: absolute; left: 24px; top: 22px; margin: 0; font-size: 10.5px; color: var(--dim); letter-spacing: .08em; }
.legend {
  position: absolute; right: 24px; bottom: 20px; margin: 0;
  display: flex; gap: 14px; font-size: 10px; color: var(--dim); letter-spacing: .08em;
}
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.legend .dot { background: var(--accent); }
.legend .ring { border: 1px solid rgba(122,162,255,.5); }

/* ---------- sections ---------- */

.sec {
  max-width: var(--maxw); margin: 0 auto;
  padding: 28px var(--gutter) 56px;
  scroll-margin-top: 76px;
}
.sechead {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin-bottom: 18px; padding: 0 4px;
}
.sechead h2 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.idx { font-size: 11px; color: var(--dim); letter-spacing: .1em; white-space: nowrap; }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.prose { padding: 34px 38px; }
.prose p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.prose p:last-child { margin-bottom: 0; }

.facts { padding: 30px 32px; }
.facts-label { margin: 0 0 18px; font-size: 10.5px; color: var(--dim); letter-spacing: .1em; }
.facts dl { margin: 0; }
.facts dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dl > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.facts dd { margin: 4px 0 0; font-size: 14px; color: var(--text); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile { padding: 28px 26px; }
.tile .n { margin: 0 0 14px; font-size: 11px; color: var(--accent); letter-spacing: .08em; }
.tile h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.tile p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---------- contact ---------- */

.contact {
  padding: 40px 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start;
}
.contact-copy .idx { display: block; margin-bottom: 14px; }
.contact-copy h2 { margin: 0 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.contact-copy p { margin: 0; color: var(--muted); font-size: 15px; }

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.form input, .form textarea {
  width: 100%;
  background: var(--bg); color: var(--text);
  border: 1px solid rgba(255,255,255,.12); border-radius: 4px;
  padding: 11px 12px; font: inherit; font-size: 14px;
  resize: vertical;
}
.form input:focus, .form textarea:focus { border-color: rgba(122,162,255,.6); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #e0736a; }

/* Honeypot. Off-screen, not display:none — some bots skip hidden fields. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.form-status { margin: 0; font-size: 13.5px; color: var(--muted); }
.form-status.is-error { color: #e0736a; }
.form-status.is-ok { color: var(--accent); }

/* ---------- footer ---------- */

.foot {
  max-width: var(--maxw); margin: 0 auto;
  padding: 22px var(--gutter) 34px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px; color: var(--dim);
}
.foot-links a:hover { color: var(--text); }

/* ---------- legal pages ---------- */

.doc { max-width: 820px; margin: 0 auto; padding: 56px var(--gutter) 64px; }
.doc .panel { padding: 40px 44px; }
.doc h1 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 8px; }
.doc .updated { margin: 0 0 28px; font-size: 12.5px; color: var(--dim); letter-spacing: .06em; }
.doc h2 { margin: 28px 0 8px; font-size: 17px; font-weight: 600; }
.doc p, .doc li { color: var(--muted); font-size: 15px; line-height: 1.65; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc .back { display: inline-block; margin-top: 28px; font-size: 13.5px; color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .tiles.four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --gutter: 28px; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-copy { padding: 36px 30px; }
  .art { min-height: 300px; }
  .two-col { grid-template-columns: 1fr; }
  .tiles, .tiles.four { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 28px; padding: 32px 30px; }
  .sechead { flex-direction: column; align-items: start; gap: 6px; }
  .links { gap: 18px; font-size: 13.5px; }
}

@media (max-width: 620px) {
  .links a:not(.cta) { display: none; }
  .prose { padding: 28px 24px; }
  .doc .panel { padding: 30px 26px; }
}
