@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07080b;
  --bg-2: #0c0d12;
  --bg-3: #11131a;
  --ink: #f3ece0;
  --ink-soft: #cfc6b6;
  --muted: #8f8779;
  --dim: #5e5a53;
  --line: rgba(201, 169, 110, 0.18);
  --line-strong: rgba(201, 169, 110, 0.38);
  --gold: #c9a96e;
  --gold-2: #e8d7ae;
  --gold-d: #8a7344;
  --shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  --sans: "Outfit", system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1180px;
  --narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--pad), var(--narrow)); margin-inline: auto; }

/* Grain + vignette */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: radial-gradient(1200px 700px at 50% -10%, rgba(201,169,110,0.07), transparent 55%),
              radial-gradient(800px 500px at 100% 100%, rgba(201,169,110,0.04), transparent 50%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 11, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}
.brand:hover { color: var(--gold-2); }
.brand-mark { width: 22px; height: 22px; }
.brand-name {
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.nav a:hover, .nav a.current { color: var(--gold-2); }
.nav-cta {
  border: 1px solid var(--line-strong);
  padding: 0.45rem 0.85rem;
  color: var(--gold-2) !important;
}
.nav-cta:hover { background: rgba(201,169,110,0.1); color: var(--ink) !important; }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
body.nav-open .menu-btn span { background: transparent; }
body.nav-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
body.nav-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  padding: 4rem 0 5.5rem;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 1.4rem;
}
.kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 9.2vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 1.6rem;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--gold-2); }
.lede {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  margin: 0 0 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--gold);
  color: var(--bg);
  background: var(--gold);
  padding: 0.8rem 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.btn:hover { background: var(--gold-2); color: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--gold-2);
}
.btn-ghost:hover { background: rgba(201,169,110,0.08); color: var(--ink); }
.hero-meta {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  max-width: 46rem;
}
.hero-meta dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
  font-weight: 400;
}
.hero-meta dd { margin: 0; color: var(--ink); font-weight: 400; font-size: 0.95rem; }

/* Sections */
.section { padding: 7rem 0; position: relative; z-index: 1; scroll-margin-top: 88px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: baseline;
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 0 auto 3rem;
}
.num {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}
.prose { color: var(--ink-soft); }
.prose p { margin: 0 0 1.15rem; }
.prose p:last-child { margin-bottom: 0; }

/* Problem */
.problem-grid {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}
.issue-list { display: grid; gap: 1.1rem; }
.issue {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(201,169,110,0.04), transparent 55%), var(--bg-2);
  padding: 1.25rem 1.3rem 1.3rem;
}
.issue h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.issue p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* What it is */
.pillars {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pillar {
  padding: 1.6rem 1.4rem 1.7rem;
  border: 1px solid var(--line);
  min-height: 100%;
  background: var(--bg-2);
}
.pillar-index {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  margin: 0 0 0.7rem;
}
.pillar p { margin: 0; color: var(--ink-soft); }

/* Today / stack */
.stack {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}
.stack-intro { max-width: 40rem; color: var(--ink-soft); margin: 0 0 2.2rem; }
.spec-board {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
}
.spec-main, .spec-side {
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.spec-main { padding: 1.6rem 1.6rem 1.3rem; }
.spec-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}
.spec-row:first-child { border-top: 0; padding-top: 0; }
.spec-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  padding-top: 0.25rem;
}
.spec-row dd { margin: 0; color: var(--ink); }
.spec-side { display: grid; }
.spec-card {
  padding: 1.35rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.spec-card:last-child { border-bottom: 0; }
.spec-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.spec-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.note {
  margin: 1.3rem 0 0;
  color: var(--dim);
  font-size: 0.85rem;
}

/* Architecture */
.arch-wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}
.arch-frame {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(201,169,110,0.05), transparent 30%),
    var(--bg-2);
  padding: clamp(1.2rem, 3vw, 2.4rem);
  overflow-x: auto;
}
.arch-svg { width: 100%; min-width: 720px; height: auto; }
.arch-caption {
  margin: 1rem 0 0;
  color: var(--dim);
  font-size: 0.85rem;
}

/* Roadmap */
.timeline {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 500;
  padding: 0.28rem 0.5rem;
  width: fit-content;
}
.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 500;
}
.step p { margin: 0; color: var(--ink-soft); max-width: 42rem; }

/* Team / contact */
.split {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.panel {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 2rem 1.8rem;
}
.panel h3 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
}
.role {
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 500;
  margin: 0 0 1.2rem;
}
.email {
  font-size: 1.15rem;
  color: var(--gold-2);
  word-break: break-word;
}
.pending {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.6rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-inner strong { color: var(--ink-soft); font-weight: 400; }

.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.9s ease forwards; }
.hero-copy { animation-delay: 0.05s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .section-head, .problem-grid, .pillars, .spec-board, .split, .step, .hero-meta {
    grid-template-columns: 1fr;
  }
  .section-head { gap: 0.4rem; }
  .pillars { gap: 0.9rem; }
  .hero-meta { max-width: none; }
  .menu-btn { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(7,8,11,0.96);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.2rem;
  }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 0.85rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { border: 0; padding-left: 0; }
  .arch-svg { min-width: 640px; }
}

@media (max-width: 520px) {
  .hero { padding-top: 2.6rem; padding-bottom: 3.2rem; min-height: auto; }
  .section { padding: 4.2rem 0; }
  .spec-row { grid-template-columns: 1fr; gap: 0.25rem; }
}

.arch-box { fill: #11131a; stroke: rgba(201, 169, 110, 0.38); }
.arch-t { fill: #f3ece0; font-family: "Outfit", sans-serif; font-size: 15px; font-weight: 500; }
.arch-s { fill: #9a9488; font-family: "Outfit", sans-serif; font-size: 11px; letter-spacing: 0.08em; }
.arch-l { stroke: #c9a96e; stroke-opacity: 0.55; fill: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.hero-art {
  width: 58%;
  left: auto;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
}
.arch-flow { display: grid; gap: 1.6rem; }
.arch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.7rem 0.55rem;
}
.arch-row-sub { padding-left: 0; justify-content: flex-end; }
.arch-node {
  flex: 1 1 140px;
  max-width: 220px;
  border: 1px solid var(--line-strong);
  background: var(--bg-3);
  padding: 0.95rem 1rem 1.05rem;
  min-height: 92px;
}
.arch-node-wide { flex: 1.4 1 240px; max-width: 320px; }
.arch-node span {
  display: block;
  color: var(--gold);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.45rem;
}
.arch-node strong {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}
.arch-node em {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.arch-arrow {
  width: 22px;
  align-self: center;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  flex: 0 0 22px;
  position: relative;
}
.arch-arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: -3px;
  border: 4px solid transparent;
  border-left-color: var(--gold);
  border-right: 0;
}
@media (max-width: 900px) {
  .hero-art {
    width: 100%;
    opacity: 0.32;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 78%);
    mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 78%);
  }
  .arch-row, .arch-row-sub { flex-direction: column; justify-content: stretch; }
  .arch-node, .arch-node-wide { max-width: none; width: 100%; }
  .arch-arrow {
    width: 1px;
    height: 18px;
    flex: 0 0 18px;
    align-self: center;
  }
  .arch-arrow::after {
    right: auto; left: -3px; top: auto; bottom: -1px;
    border: 4px solid transparent;
    border-top-color: var(--gold);
    border-left-color: transparent;
    border-bottom: 0;
  }
}
@media (max-width: 520px) {
  .hero-art { opacity: 0.22; }
}
