/* Vantage by AVYR LABS · site styles. Plain CSS, no build step.
   Dark Ink theme with the gold accent. Tokens below are checked by tools/check_contrast.py. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1A1208;
  --ink-raised: #241A0D;
  --ink-sunk: #120C04;
  --line: #3F3322;
  --pearl: #F5F2EB;
  --text: #DDD6C7;
  --muted: #B5AC98;
  --gold: #E8C586;
  --gold-deep: #A88A5C;
  --gold-text: #D9B676;
  --code-bg: #120C04;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 20px;
  --max: 1120px;
  --radius: 16px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; background: var(--ink); }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0; color: var(--pearl); }
h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 5vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; line-height: 1.3; }
h4 { font-size: 1rem; line-height: 1.35; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--pearl); }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li + li { margin-top: 0.35em; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pearl); }

code, kbd { font-family: var(--mono); font-size: 0.9em; background: var(--ink-raised); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--pearl); overflow-wrap: anywhere; }
pre {
  font-family: var(--mono); font-size: 14.5px; line-height: 1.55;
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin: 0 0 1.2em; overflow-x: auto; color: var(--pearl);
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }

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

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--gold); color: var(--ink);
  padding: 10px 16px; border-radius: 999px; z-index: 100;
  text-decoration: none; font-size: 15px; font-weight: 500;
}
.skip:focus { top: 12px; color: var(--ink); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 18, 8, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--pearl); text-decoration: none; flex: 0 0 auto; }
.brand img { width: 22px; height: 25px; }
.brand .name { font-size: 17px; font-weight: 600; letter-spacing: 0.02em; }
.brand .by { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.brand:hover { color: var(--pearl); }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav li + li { margin-top: 0; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--pearl); }
.nav a[aria-current="page"] { font-weight: 600; box-shadow: 0 2px 0 var(--gold); }

.header-cta { flex: 0 0 auto; }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--pearl); border-radius: 10px;
}
.nav-toggle svg { margin: 0 auto; }
.nav-toggle .close { display: none; }
.nav-open .nav-toggle .open { display: none; }
.nav-open .nav-toggle .close { display: block; }

@media (max-width: 1179px) {
  .js .nav-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .nav { order: 3; margin-left: 0; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    background: var(--ink); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.7);
  }
  .js .nav-open .nav { display: block; }
  .js .nav ul { flex-direction: column; gap: 0; padding: 6px var(--gutter) 18px; max-width: var(--max); margin: 0 auto; }
  .js .nav a { display: block; padding: 14px 0; font-size: 19px; border-bottom: 1px solid var(--line); box-shadow: none !important; }
  .js .nav li:last-child a { border-bottom: 0; }
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 4px; }
  html:not(.js) .nav { flex-basis: 100%; overflow-x: auto; }
  html:not(.js) .nav ul { gap: 20px; padding: 6px 0 8px; }
}
@media (max-width: 420px) {
  .brand .by { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14.5px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--pearl); color: var(--ink); }
.btn-outline { border-color: var(--gold-deep); color: var(--gold); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--pearl); }
.btn-disabled, .btn[aria-disabled="true"] {
  border: 1px dashed var(--gold-deep); color: var(--muted); background: transparent; cursor: not-allowed;
}
.btn-disabled small { font-size: 12.5px; letter-spacing: 0.02em; color: var(--gold-text); font-weight: 500; }
.link-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; }
.link-more:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.band-raised { background: var(--ink-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 14px;
}
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head p { font-size: 19px; margin-top: 16px; }
.lede { font-size: clamp(1.12rem, 2.5vw, 1.35rem); line-height: 1.5; color: var(--text); max-width: 660px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; background: radial-gradient(900px 420px at 80% -10%, rgba(232, 197, 134, 0.1), transparent 70%); }
.hero h1 { max-width: 14ch; }
.hero .lede { margin: 26px 0 34px; }
.hero-meta { margin-top: 22px; font-size: 15px; color: var(--muted); }
.page-intro { padding: 64px 0 24px; }
.page-intro h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); max-width: 18ch; }
.page-intro .lede { margin-top: 20px; }

/* ---------- Film ---------- */
.film { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold-deep); background: #000; }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.film figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); background: var(--ink-raised); }

/* ---------- Cards, grids ---------- */
.grid { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.grid li + li { margin-top: 0; }
.card {
  display: block; height: 100%; background: var(--ink-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; color: inherit; text-decoration: none;
}
a.card:hover { border-color: var(--gold-deep); color: inherit; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 16px; margin: 0; }
.card .more { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--gold); }
.locks { counter-reset: lock; }
.locks .card { position: relative; padding-top: 30px; }
.locks .card::before {
  counter-increment: lock; content: counter(lock);
  position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ---------- Feature sections ---------- */
.feature { padding: 56px 0; border-top: 1px solid var(--line); display: grid; gap: 28px; scroll-margin-top: 70px; }
.feature:first-of-type { border-top: 0; }
.feature h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 14px; }
.feature ul { padding-left: 1.2em; }
figure.shot { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--ink-raised); }
figure.shot img { width: 100%; height: auto; }
figure.shot figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.slot {
  margin: 0; border: 1px dashed var(--gold-deep); border-radius: 12px; min-height: 180px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; padding: 24px;
  color: var(--muted); font-size: 14.5px; background: var(--ink-sunk);
}
.slot strong { color: var(--gold-text); font-weight: 600; letter-spacing: 0.04em; font-size: 13px; text-transform: uppercase; }

/* ---------- Diagram, steps, tables ---------- */
.diagram { background: var(--ink-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.diagram svg { width: 100%; height: auto; }
.steps { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; margin: 0; padding: 0 0 0 48px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gold-deep); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px;
}
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 520px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--pearl); font-weight: 600; background: var(--ink-raised); }
tr:last-child td { border-bottom: 0; }
.callout { background: var(--ink-raised); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 26px 0; }
.callout p { margin: 0; }
.callout p + p { margin-top: 0.8em; }

/* ---------- Prose and docs ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); margin: 44px 0 14px; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose li { font-size: 17.5px; }
.prose .updated { color: var(--muted); font-size: 15px; }
.docs-layout { display: grid; gap: 28px; padding: 40px 0 72px; }
.docs-nav h2 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; font-weight: 600; }
.docs-nav h2:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav li + li { margin-top: 0; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; }
.docs-nav a:hover { color: var(--pearl); background: var(--ink-raised); }
.docs-nav a[aria-current="page"] { color: var(--ink); background: var(--gold); font-weight: 600; }
.docs-body h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 22px; }
.docs-body h2 { font-size: 1.45rem; margin: 34px 0 12px; }
.docs-body > p, .docs-body li { font-size: 17px; }
.docs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.docs-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0 0 28px; }
.docs-list li + li { margin-top: 0; }
.docs-list a.card { padding: 18px 20px; }
.docs-list h3 { font-size: 1.05rem; margin: 0 0 4px; }
.docs-list p { font-size: 15px; color: var(--muted); }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--pearl); font-size: 18px; }
.faq details > div { padding: 0 0 16px; }
.changelog article { padding: 30px 0; border-top: 1px solid var(--line); }
.changelog h2 { font-size: 1.5rem; margin: 0 0 4px; }
.changelog .date { color: var(--muted); font-size: 15px; margin-bottom: 12px; display: block; }

h3.small-h { margin: 32px 0 14px; }
.figure-gap { height: 24px; }

/* ---------- Closing band ---------- */
.closing { padding: 80px 0; text-align: left; }
.closing h2 { margin-bottom: 16px; }
.closing p { font-size: 19px; max-width: 560px; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-sunk); color: var(--muted); padding: 64px 0 28px; font-size: 15px; border-top: 1px solid var(--line); }
.site-footer .brand .name { color: var(--pearl); }
.ft-top { display: grid; gap: 40px; }
.site-footer .ft-brand p { margin: 16px 0 0; max-width: 40ch; line-height: 1.6; color: var(--muted); }
.ft-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.ft-col h2 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft-col li + li { margin-top: 0; }
.ft-col a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.ft-col a:hover { color: var(--pearl); text-decoration: underline; text-underline-offset: 3px; }
.ft-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.ft-base p { margin: 0; }
.ft-base a { color: var(--muted); }
.ft-base a:hover { color: var(--pearl); }

.notfound { padding: 96px 0 120px; }

/* ---------- Larger screens ---------- */
@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .section { padding: 96px 0; }
  .hero { padding: 104px 0 72px; }
  .page-intro { padding: 96px 0 32px; }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.locks { gap: 28px 20px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .feature:nth-of-type(even) > .feature-media { order: -1; }
  .docs-list { grid-template-columns: repeat(2, 1fr); }
  .closing { padding: 112px 0; }
}
@media (min-width: 1180px) {
  .nav ul { gap: 20px; }
}
@media (min-width: 900px) {
  .docs-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
  .docs-nav { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
  .ft-top { grid-template-columns: 1fr 2.2fr; gap: 56px; }
  .ft-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  :root { --gutter: 40px; }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.site-footer .ft-company { display: inline-block; margin-top: 18px; opacity: .9; }
.site-footer .ft-company img { display: block; height: auto; }

.grid.videos .card.video { position: relative; display: block; }
.grid.videos .card.video img { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--line, #3a2e1d); }
.grid.videos .soon { position: absolute; top: 18px; right: 18px; font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--ink, #1a1208); color: var(--gold); border: 1px solid var(--gold); }
.faq .watch { margin-top: 10px; font-weight: 500; }
