/* Viralis — The Independent Label Office */

:root {
  /* Bone-first palette */
  --bone: #F1ECDF;
  --bone-2: #E8E1CF;
  --paper: #F7F3E8;
  --ink: #14181C;
  --ink-soft: #1F262C;
  --ink-deep: #0A0E12;
  --rule: #1F262C;
  --muted: #6E6A5E;
  --oxblood: #5C1A1B;
  --oxblood-soft: #7A2424;

  /* fonts */
  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* density */
  --gutter: 40px;
  --pad-y: 120px;

  /* mode */
  --bg: var(--bone);
  --bg-alt: var(--paper);
  --fg: var(--ink);
  --fg-dim: var(--muted);
  --rule-c: rgba(20, 24, 28, 0.18);
  --rule-strong: var(--ink);
  --panel: var(--ink-deep);
  --panel-fg: var(--bone);
  --accent: var(--oxblood);
}

[data-mode="ink"] {
  --bg: var(--ink-deep);
  --bg-alt: #0F1418;
  --fg: var(--bone);
  --fg-dim: #8A867A;
  --rule-c: rgba(241, 236, 223, 0.18);
  --rule-strong: var(--bone);
  --panel: var(--bone);
  --panel-fg: var(--ink);
  --accent: #C24545;
}

[data-density="tight"] { --gutter: 24px; --pad-y: 80px; }
[data-density="loose"] { --gutter: 56px; --pad-y: 160px; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: multiply;
}
[data-mode="ink"] body::before { mix-blend-mode: screen; opacity: 0.35; }

.root { min-height: 100vh; position: relative; z-index: 2; }
.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a { color: inherit; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.up { text-transform: uppercase; letter-spacing: 0.14em; }
.dim { color: var(--fg-dim); }

/* ============= LOGO SYSTEM ============= */
/* The mark: leaning solid V + detached down-triangle dot */
.vmark {
  display: inline-block;
  position: relative;
  vertical-align: middle;
}
.vmark svg { display: block; width: 100%; height: 100%; }

/* Wordmark: VIRALIS in italic serif, with the V replaced by a custom svg V + tittle */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 0.9;
}
.wordmark .v-cap {
  display: inline-block;
  position: relative;
  width: 0.86em;
  height: 1em;
  margin-right: 0.02em;
  transform: translateY(0.04em);
}
.wordmark .v-cap svg { width: 100%; height: 100%; display: block; }

/* Brand mark — textured PNG specimens; CSS swaps based on palette mode */
.vmark-img {
  display: inline-block;
  position: relative;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.vmark-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: opacity 200ms ease;
}
/* Default (bone / light mode): show the dark navy V */
.vmark-img .vmark-bone { opacity: 0; }
.vmark-img .vmark-ink  { opacity: 1; }
/* Ink / dark mode: show the sand V */
[data-mode="ink"] .vmark-img .vmark-bone { opacity: 1; }
[data-mode="ink"] .vmark-img .vmark-ink  { opacity: 0; }
.wordmark .rest {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Stand-alone giant V monogram */
.v-monogram {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: middle;
  position: relative;
}

/* ============= NAV ============= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule-c);
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
}
.nav-brand {
  display: flex; align-items: baseline; gap: 14px;
}
.nav-brand .wordmark { font-size: 26px; }
.nav-brand .descr {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-left: 1px solid var(--rule-c);
  padding-left: 14px;
}
.nav-links {
  display: flex; justify-content: center; gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links a { text-decoration: none; opacity: 0.85; transition: opacity .15s; }
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ============= UNIVERSAL ============= */
section { position: relative; }
.sec { padding: var(--pad-y) 0; border-top: 1px solid var(--rule-c); }

.sec-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}
.sec-header .roman {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
}
.sec-header .roman b {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 12px;
  font-weight: 500;
}
.sec-header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.sec-header h2 em {
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}

/* ============= HERO ============= */
.hero {
  padding: 64px 0 96px;
  position: relative;
  border-bottom: 1px solid var(--rule-c);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 86px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
  max-width: 16ch;
}
.hero-headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.hero-headline .ag { font-style: italic; font-weight: 500; }

.hero-deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--fg);
  max-width: 50ch;
  margin-bottom: 24px;
}
.hero-body {
  font-size: 16px;
  line-height: 1.55;
  max-width: 60ch;
  margin-bottom: 36px;
  color: var(--fg);
}

.hero-cta-row {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.btn-primary {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bone);
  border: 0;
  padding: 18px 28px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none;
  transition: background .15s;
}
[data-mode="ink"] .btn-primary { background: var(--bone); color: var(--ink); }
.btn-primary:hover { background: var(--accent); color: var(--bone); }
.btn-link {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-c);
  padding-bottom: 2px;
}
.btn-link:hover { color: var(--accent); border-color: var(--accent); }

/* Hero ornament right column */
.hero-ornament {
  border-left: 1px solid var(--rule-c);
  padding-left: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  line-height: 1.8;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-ornament .v-monogram {
  width: 96px; height: 112px;
  align-self: flex-start;
}
.hero-ornament .ver {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--fg);
  letter-spacing: 0;
  text-transform: none;
}
.hero-ornament .stamp {
  border-top: 1px solid var(--rule-c);
  border-bottom: 1px solid var(--rule-c);
  padding: 8px 0;
  margin-top: 8px;
}
.hero-ornament .est {
  margin-top: auto;
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  font-size: 14px;
  color: var(--fg-dim);
  letter-spacing: 0;
}

/* ============= CREDIBILITY STRIP ============= */
.cred {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule-c);
}
.cred-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--fg-dim);
  text-align: center;
  margin-bottom: 28px;
  max-width: 70ch;
  margin-left: auto; margin-right: auto;
}
.cred-logos {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.cred-logos span { color: var(--fg); }
.cred-foot {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-align: center;
}

/* ============= BIG TYPE BLOCK (gap intro) ============= */
.big-block {
  padding: var(--pad-y) 0;
  border-top: 1px solid var(--rule-c);
}
.big-block h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: 56px;
}
.big-block h3 em { font-style: italic; font-weight: 500; color: var(--accent); }

.big-block-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 56px;
}
.big-block-grid p {
  font-size: 17px; line-height: 1.6; max-width: 38ch;
}
.big-block-grid p + p { margin-top: 18px; }

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.2;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: 28px 0;
  margin-top: 56px;
  text-align: center;
}

/* ============= PRACTICE ============= */
.practice-prose {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
}
.practice-prose p {
  font-size: 17px; line-height: 1.6;
}
.practice-prose .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 24px;
}
.practice-prose .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  color: var(--fg);
}

/* ============= NUMBERS TABLE ============= */
.numbers-table {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  margin-top: 24px;
}
.nrow {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--rule-c);
  align-items: baseline;
}
.nrow:first-child { border-top: 0; }
.nrow .roman {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.nrow .old {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--fg-dim);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.nrow .new {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}
.nrow .new em {
  font-style: italic;
  color: var(--accent);
}
.nrow .new .small {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 400;
  margin-left: 8px;
}

/* ============= ENGAGEMENTS ============= */
.eng-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-c);
}
.eng {
  border-right: 1px solid var(--rule-c);
  border-bottom: 1px solid var(--rule-c);
  padding: 40px;
  display: flex; flex-direction: column;
  min-height: 500px;
}
.eng .eng-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.eng h4 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 24px 0 8px;
  max-width: 16ch;
}
.eng h4 em { font-style: italic; font-weight: 500; }
.eng .price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 18px;
}
.eng .blurb {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--fg-dim);
  margin-bottom: 24px;
  max-width: 42ch;
}
.eng .body {
  font-size: 15px; line-height: 1.55;
  max-width: 50ch;
  margin-bottom: 24px;
}
.eng .foot {
  margin-top: auto;
  border-top: 1px solid var(--rule-c);
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  justify-content: space-between;
}
.eng .foot a { color: var(--accent); text-decoration: none; }

/* ============= DOCUMENT (positioning pack) ============= */
.doc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.doc-text p { font-size: 17px; line-height: 1.6; max-width: 50ch; }
.doc-text p + p { margin-top: 16px; }
.doc-text .price-strip {
  margin-top: 32px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.doc-text .price-strip em { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent); text-transform: none; letter-spacing: 0; }

.doc-plate {
  background: var(--paper);
  border: 1px solid var(--rule-c);
  padding: 36px;
  aspect-ratio: 5/3.6;
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
}
[data-mode="ink"] .doc-plate { background: var(--bg-alt); }
.doc-plate .corner {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.doc-plate .c-tl { top: 18px; left: 18px; }
.doc-plate .c-tr { top: 18px; right: 18px; }
.doc-plate .c-bl { bottom: 18px; left: 18px; }
.doc-plate .c-br { bottom: 18px; right: 18px; }
.doc-plate .plate-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-top: 48px;
}
.doc-plate .plate-title em { font-style: italic; font-weight: 500; }
.doc-plate .plate-mid {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--rule-c); border-bottom: 1px solid var(--rule-c);
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 24px 0;
}
.doc-plate .toc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.7;
  columns: 2;
  column-gap: 24px;
}

/* ============= OPERATING SYSTEM (manifest) ============= */
.os-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.os-text p { font-size: 17px; line-height: 1.6; max-width: 50ch; }
.os-text p + p { margin-top: 18px; }
.os-text h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 32px 0 8px;
  color: var(--fg);
}

.manifest {
  background: var(--ink-deep);
  color: var(--bone);
  padding: 32px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  border: 1px solid rgba(241, 236, 223, 0.15);
}
[data-mode="ink"] .manifest {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--rule-c);
}
.manifest .head {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  border-bottom: 1px dashed currentColor;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.manifest .rule { border-bottom: 1px dashed currentColor; opacity: 0.4; margin: 12px 0; }
.manifest ol { list-style: none; counter-reset: m; }
.manifest li {
  counter-increment: m;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 6px 0;
}
.manifest li::before {
  content: counter(m, decimal-leading-zero);
  font-weight: 500;
  opacity: 0.5;
}
.manifest .foot {
  margin-top: 20px;
  border-top: 1px dashed currentColor;
  padding-top: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
}

.os-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.3;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding: 32px 0;
  margin-top: 56px;
  max-width: 64ch;
}
.os-quote em { color: var(--accent); }

/* ============= FIT ============= */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.fit-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-strong);
}
.fit-col h5.bad { color: var(--accent); border-bottom-color: var(--accent); }
.fit-col li {
  list-style: none;
  padding: 14px 0;
  font-size: 16px;
  line-height: 1.5;
  border-bottom: 1px solid var(--rule-c);
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: baseline;
}
.fit-col .glyph { font-family: var(--serif); font-style: italic; color: var(--fg-dim); }
.fit-col.bad .glyph { color: var(--accent); }

/* ============= STANDARD ============= */
.std-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-c);
}
.std {
  border-right: 1px solid var(--rule-c);
  border-bottom: 1px solid var(--rule-c);
  padding: 28px;
  min-height: 220px;
  display: flex; flex-direction: column;
}
.std .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
}
.std h6 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 16px 0 12px;
}
.std h6 em { font-style: italic; font-weight: 500; }
.std p { font-size: 14px; line-height: 1.55; color: var(--fg-dim); }

/* ============= PROCESS ============= */
.proc-list { counter-reset: p; }
.proc {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  padding: 28px 0;
  border-top: 1px solid var(--rule-c);
  align-items: baseline;
}
.proc:first-child { border-top: 1px solid var(--rule-strong); }
.proc:last-child { border-bottom: 1px solid var(--rule-strong); }
.proc .step {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--fg-dim);
}
.proc .body {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 60ch;
}
.proc .body em { font-style: italic; }

/* ============= FAQ ============= */
.faq-list {
  border-top: 1px solid var(--rule-strong);
}
.faq-item {
  border-bottom: 1px solid var(--rule-c);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
}
.faq-item h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
}
.faq-item p {
  font-size: 16px; line-height: 1.6; max-width: 56ch;
  margin-top: 4px;
}

/* ============= FINAL CTA ============= */
.final-cta {
  padding: var(--pad-y) 0;
  border-top: 1px solid var(--rule-c);
  text-align: center;
}
.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 24px auto 32px;
  max-width: 18ch;
}
.final-cta h2 em { font-style: italic; font-weight: 500; }
.final-cta .actions {
  display: flex; justify-content: center; align-items: center; gap: 24px;
  margin-bottom: 24px;
}
.final-cta .note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-dim);
  font-size: 14px;
}

/* ============= FOOTER ============= */
footer.foot {
  border-top: 1px solid var(--rule-strong);
  padding: 64px 0 32px;
}
.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 56px;
}
.foot-brand .wordmark { font-size: 56px; }
.foot-brand .descr {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--fg-dim);
  max-width: 36ch;
}
.foot-col h6 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--fg);
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  font-size: 14px;
  text-decoration: none;
  font-family: var(--sans);
}
.foot-col a:hover { color: var(--accent); }

.foot-mark {
  border-top: 1px solid var(--rule-c);
  padding: 64px 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.foot-mark .v-monogram {
  width: 240px; height: 280px;
}

.foot-bottom {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-top: 24px;
  border-top: 1px solid var(--rule-c);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============= responsive ============= */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-ornament { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-c); padding-top: 28px; }
  .sec-header { grid-template-columns: 1fr; gap: 16px; }
  .big-block-grid { grid-template-columns: 1fr; gap: 24px; }
  .practice-prose { grid-template-columns: 1fr; gap: 16px; }
  .nrow { grid-template-columns: 1fr; gap: 8px; }
  .nrow .old { text-align: left; }
  .eng-grid { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; }
  .os-wrap { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .std-grid { grid-template-columns: 1fr; }
  .proc { grid-template-columns: 1fr; gap: 16px; }
  .faq-item { grid-template-columns: 1fr; gap: 12px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

/* ============ MOTION ============ */
@media (prefers-reduced-motion: no-preference) {
  /* Generic fade-up wrapper */
  .fade { opacity: 0; transform: translateY(14px); transition: opacity 900ms cubic-bezier(.2,.6,.2,1), transform 900ms cubic-bezier(.2,.6,.2,1); }
  .fade.in { opacity: 1; transform: translateY(0); }

  /* Hero word reveal — split each word, stagger via :nth-child */
  .reveal-words { opacity: 1; }
  .reveal-words em { display: inline-block; }

  .hero-headline { opacity: 0; transform: translateY(24px); transition: opacity 1100ms cubic-bezier(.2,.6,.2,1), transform 1100ms cubic-bezier(.2,.6,.2,1); }
  .hero-headline.in { opacity: 1; transform: translateY(0); }
  .hero-headline em { position: relative; }
  .hero-headline em::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.36em;
    background: var(--accent); opacity: 0;
    transform: scaleX(0); transform-origin: left;
    transition: transform 700ms cubic-bezier(.2,.6,.2,1) 1100ms, opacity 200ms ease 1100ms;
    z-index: -1;
  }
  .hero-headline.in em::after { opacity: .14; transform: scaleX(1); }

  /* Numbers table — staggered slide-in + animate the strikethrough drawing */
  .numbers-table .nrow {
    opacity: 0; transform: translateY(10px);
    transition: opacity 700ms cubic-bezier(.2,.6,.2,1), transform 700ms cubic-bezier(.2,.6,.2,1);
  }
  .numbers-table .nrow.in { opacity: 1; transform: translateY(0); }

  .nrow .old .strike-track {
    position: relative; display: inline-block;
    text-decoration: none;
  }
  .nrow .old .strike-track::after {
    content: ""; position: absolute; left: -2%; right: -2%; top: 52%;
    height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: left;
    transition: transform 900ms cubic-bezier(.5,.05,.2,1) 300ms;
  }
  .nrow.in .old .strike-track::after { transform: scaleX(1); }

  /* Doc plate — reveal */
  .doc-plate {
    opacity: 0; transform: translateY(20px);
    transition: opacity 1100ms cubic-bezier(.2,.6,.2,1), transform 1100ms cubic-bezier(.2,.6,.2,1);
  }
  .doc-plate.in { opacity: 1; transform: translateY(0); }
  .doc-plate .toc-line {
    transition: opacity 380ms ease, transform 380ms cubic-bezier(.2,.6,.2,1);
  }

  /* Section headers — subtle fade as they enter */
  .sec .sec-header,
  .big-block .eyebrow + h3,
  .big-block { animation: vrl-rise 1100ms cubic-bezier(.2,.6,.2,1) both; animation-timeline: view(); animation-range: entry 0% cover 30%; }

  @keyframes vrl-rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Engagement cards — gentle staggered rise */
  .eng-grid .eng {
    animation: vrl-card 1000ms cubic-bezier(.2,.6,.2,1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }
  .eng-grid .eng:nth-child(1) { animation-delay: 0ms; }
  .eng-grid .eng:nth-child(2) { animation-delay: 80ms; }
  .eng-grid .eng:nth-child(3) { animation-delay: 160ms; }
  .eng-grid .eng:nth-child(4) { animation-delay: 240ms; }
  @keyframes vrl-card { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

  /* OS manifest list — items slide in */
  .manifest ol li {
    animation: vrl-rise 700ms cubic-bezier(.2,.6,.2,1) both;
    animation-timeline: view(); animation-range: entry 0% cover 35%;
  }
  .manifest ol li:nth-child(1) { animation-delay: 40ms; }
  .manifest ol li:nth-child(2) { animation-delay: 100ms; }
  .manifest ol li:nth-child(3) { animation-delay: 160ms; }
  .manifest ol li:nth-child(4) { animation-delay: 220ms; }
  .manifest ol li:nth-child(5) { animation-delay: 280ms; }
  .manifest ol li:nth-child(6) { animation-delay: 340ms; }
  .manifest ol li:nth-child(7) { animation-delay: 400ms; }
  .manifest ol li:nth-child(8) { animation-delay: 460ms; }

  /* Standard grid + Process steps + FAQ items */
  .std-grid .std,
  .proc-list .proc,
  .faq-list .faq-item {
    animation: vrl-rise 800ms cubic-bezier(.2,.6,.2,1) both;
    animation-timeline: view(); animation-range: entry 0% cover 30%;
  }

  /* Final CTA pulse on the arrow */
  .final-cta .btn-primary span,
  .hero-cta-row .btn-primary span {
    display: inline-block;
    transition: transform 240ms cubic-bezier(.2,.6,.2,1);
  }
  .final-cta .btn-primary:hover span,
  .hero-cta-row .btn-primary:hover span { transform: translateX(4px); }

  /* Wordmark + monogram — gentle entrance */
  .v-monogram .vmark-img,
  .v-monogram svg { transform-origin: center; transition: transform 600ms cubic-bezier(.2,.6,.2,1); }
  .nav:hover .v-monogram .vmark-img,
  .nav:hover .v-monogram svg { transform: rotate(-3deg) scale(1.04); }

  /* Hero ornament — slow drift */
  .hero-ornament .v-monogram { animation: vrl-drift 8s ease-in-out infinite alternate; }
  @keyframes vrl-drift {
    from { transform: translateY(0) rotate(0); }
    to   { transform: translateY(-6px) rotate(-1.5deg); }
  }

  /* Marquee-ish credibility logos: subtle horizontal float on hover */
  .cred-logos span { transition: opacity 300ms ease, transform 300ms ease; }
  .cred-logos:hover span { opacity: 0.4; }
  .cred-logos span:hover { opacity: 1 !important; transform: translateY(-2px); }

  /* Pull quote — drawn underline that animates in */
  .pull em { background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%; transition: background-size 1200ms cubic-bezier(.2,.6,.2,1); animation: vrl-pullul 1200ms cubic-bezier(.2,.6,.2,1) both; animation-timeline: view(); animation-range: entry 10% cover 50%; }
  @keyframes vrl-pullul { from { background-size: 0% 2px; } to { background-size: 100% 2px; } }

  /* Big-block headlines — emphasized underline draws in */
  .big-block h3 em {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: 0 92%;
    animation: vrl-pullul 1100ms cubic-bezier(.2,.6,.2,1) both;
    animation-timeline: view(); animation-range: entry 0% cover 40%;
  }
}

/* Fallback for browsers without animation-timeline (Safari): just show */
@supports not (animation-timeline: view()) {
  .sec .sec-header, .big-block, .eng-grid .eng, .manifest ol li,
  .std-grid .std, .proc-list .proc, .faq-list .faq-item,
  .pull em, .big-block h3 em { animation: none !important; opacity: 1 !important; transform: none !important; background-size: 100% 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
