@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0c0f;
  --bg-alt: #0f1216;
  --surface: #14181d;
  --line: #242a32;
  --line-strong: #353c46;
  --text: #f1ede5;
  --muted: #a3a9b1;
  --light: #ffe3b0;
  --light-strong: #f6c978;
  --error: #ff9a8a;
  --ok: #9fe0b5;
  --focus: #ffd58a;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--light); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.1; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--light); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 12, 15, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.01em;
}
.wordmark em { font-style: normal; font-weight: 400; color: var(--muted); }
.wordmark .mark { width: 26px; height: 26px; color: var(--light); }
.site-header .wordmark { min-height: 44px; }
.wordmark.small { font-size: 1rem; }
nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--muted); text-decoration: none; font-size: 0.9375rem; border-radius: 8px;
}
nav a:hover { color: var(--text); }
nav .nav-cta { color: var(--text); border: 1px solid var(--line-strong); padding: 0 16px; }
nav .nav-cta:hover { border-color: var(--light); }

/* Hero */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
  background:
    radial-gradient(60% 50% at 78% 35%, rgba(255, 227, 176, 0.07), transparent 70%),
    linear-gradient(180deg, #0c0f13 0%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--light-strong); box-shadow: 0 0 10px 2px rgba(246, 201, 120, 0.55); }
.eyebrow {
  margin-top: 28px;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--light);
}
.hero h1 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.hero h1 .lit { display: block; color: var(--light); text-shadow: 0 0 34px rgba(255, 214, 140, 0.28); }
.lede { margin-top: 24px; max-width: 36ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--light); color: #17130c; box-shadow: 0 0 0 0 rgba(255, 214, 140, 0); }
.btn-primary:hover { background: #fff0d2; color: #17130c; box-shadow: 0 0 28px rgba(255, 214, 140, 0.25); }
.btn-quiet { color: var(--text); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--light); color: var(--text); }

.hero-figure { margin: 0; }
.scene {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.hero-figure figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--muted); }
.scene .beam { animation: beam-in 1.8s ease-out both; }
.scene .projection { animation: projection-in 1.8s 0.35s ease-out both; }
.scene .lens { filter: drop-shadow(0 0 6px #ffe3b0); }
@keyframes beam-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes projection-in { 0% { opacity: 0; } 30% { opacity: 0.6; } 38% { opacity: 0.3; } 100% { opacity: 1; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.section-alt { background: var(--bg-alt); }
.kicker { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--light); }
.section h2 { margin-top: 14px; max-width: 20ch; font-family: var(--serif); font-size: clamp(2.125rem, 4.4vw, 3.5rem); letter-spacing: -0.01em; }
.section-lede { margin-top: 20px; max-width: 60ch; color: var(--muted); font-size: 1.125rem; }
.section h3 { font-family: var(--sans); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 48px 0 0; padding: 0; }
.steps li { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), transparent); }
.step-num { display: block; margin-bottom: 18px; font-family: var(--serif); font-size: 2.25rem; line-height: 1; color: var(--light); }
.steps p, .card p, .mode p { margin-top: 10px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 48px 0 0; padding: 0; }
.card { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.card::before {
  content: ""; position: absolute; left: 24px; top: 0; width: 40px; height: 2px;
  background: var(--light); box-shadow: 0 0 14px 1px rgba(255, 214, 140, 0.5);
}

.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.mode { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.roadmap { margin-top: 20px; padding: 28px 32px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-strong); }
.roadmap p { margin-top: 8px; color: var(--muted); max-width: 70ch; }

/* Contact */
.section-contact { background: radial-gradient(50% 60% at 15% 20%, rgba(255, 227, 176, 0.05), transparent 70%), var(--bg); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-intro p { margin-top: 20px; color: var(--muted); max-width: 44ch; }
.fine { font-size: 0.875rem; color: var(--muted); }
.contact-intro .fine { margin-top: 24px; }
.form-panel { padding: clamp(22px, 3.5vw, 40px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.form-closed h3 { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; }
.form-closed p { margin-top: 12px; color: var(--muted); }

.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.req, .opt { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #0c0f13; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px;
  font: 400 1rem/1.4 var(--sans);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #4a525e; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(255, 213, 138, 0.25);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.hint { font-size: 0.8125rem; color: var(--muted); }
.field-error { font-size: 0.875rem; color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-field { min-height: 65px; }
.btn-send { width: 100%; min-height: 54px; font-size: 1.0625rem; }
.btn-send[disabled] { opacity: 0.6; cursor: progress; }
.form-fine { text-align: center; }

.form-status { margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: 0.9375rem; }
.form-status:focus { outline: none; }
.form-status.is-ok { border-color: rgba(159, 224, 181, 0.45); background: rgba(159, 224, 181, 0.08); color: var(--ok); }
.form-status.is-error { border-color: rgba(255, 154, 138, 0.45); background: rgba(255, 154, 138, 0.08); color: var(--error); }
.form-status strong { color: var(--text); }
.ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }

/* Privacy and other prose pages */
.prose-section { border-top: 0; }
.prose { max-width: 760px; }
.prose h1 { margin-top: 14px; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 3.5rem); }
.prose h2 { margin-top: 40px; font-family: var(--sans); font-size: 1.25rem; font-weight: 600; max-width: none; }
.prose p { margin-top: 12px; color: var(--muted); }
.prose .fine { margin-top: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 32px; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.125rem; }
.footer-links { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; font-size: 0.8125rem; color: #7d838b; }

/* Responsive */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { max-width: 640px; order: -1; }
  .hero-figure figcaption { margin-top: 8px; }
  .steps, .modes { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero { padding-top: 20px; }
  .hero-grid { gap: 28px; }
  .eyebrow { margin-top: 20px; }
  nav li:not(:last-child) { display: none; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
  .steps li, .mode, .card { padding: 24px 20px; }
  .roadmap { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene .beam, .scene .projection { animation: none; }
  .btn { transition: none; }
}
@media (forced-colors: active) {
  .btn-primary { border: 1px solid ButtonText; }
}
