/* Value Link — site styles. Tokens first; see brand/README.md. Logical properties throughout for a later RTL version. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --gypsum: #ECEEE9;
  --basalt: #1C2622;
  --wadi: #2D5B4E;
  --slate: #5B6661;
  --limestone: #D8D3C4;
  --limestone-deep: #C8C0AA;
  --escarpment: #B08D57;
  --white: #FFFFFF;
  --clay: #8C2F1F; /* form errors only */
  --line: rgba(28, 38, 34, 0.16);

  /* Type scale: 1.25 ratio on an 18px body */
  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.5rem, 1.2rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.375rem, 1.5rem + 3.4vw, 4.25rem);
  --step-5: clamp(2.625rem, 1.4rem + 4.9vw, 5.5rem);

  --gutter: clamp(20px, 4.5vw, 72px);
  --col-gap: clamp(16px, 2vw, 32px);
  --section-space: clamp(48px, 6vw, 104px);
  --measure: 66ch;
  --radius-control: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--gypsum);
  color: var(--basalt);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--step-0);
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
@media (max-width: 599px) { body { font-size: 1.0625rem; } }

h1, h2, h3, .wordmark, .tier-name {
  font-stretch: 115%;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.022em; line-height: 1.03; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; font-stretch: 108%; letter-spacing: -0.005em; }
p, ul, ol, dl { margin: 0 0 1em; }
p { text-wrap: pretty; }
strong { font-weight: 600; }

a { color: var(--wadi); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--wadi); outline-offset: 3px; border-radius: 1px; }

.skip-link { position: absolute; inset-inline-start: var(--gutter); inset-block-start: -100px; background: var(--basalt); color: var(--gypsum); padding: 10px 16px; z-index: 10; }
.skip-link:focus { inset-block-start: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header { border-block-end: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--basalt); text-decoration: none; }
.brand .monogram { width: 30px; height: 30px; flex: none; }
.wordmark { font-size: 1.3rem; font-stretch: 122%; letter-spacing: 0.01em; line-height: 1; white-space: nowrap; }
.site-nav { font-size: 1rem; }
.nav-list { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-list a, .subnav summary { color: var(--basalt); text-decoration: none; padding-block: 6px; border-block-end: 2px solid transparent; }
.nav-list a:hover, .subnav summary:hover { border-block-end-color: var(--slate); }
.nav-list [aria-current="page"], .nav-list .is-section > a, .subnav summary.is-section { border-block-end-color: var(--wadi); }
.subnav { position: relative; }
.subnav summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.subnav summary::-webkit-details-marker { display: none; }
.subnav summary::after { content: ""; width: 7px; height: 7px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.subnav[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.subnav ul { position: absolute; inset-inline-start: -16px; inset-block-start: calc(100% + 12px); min-width: 210px; list-style: none; margin: 0; padding: 10px 0; background: var(--gypsum); border: 1px solid var(--line); z-index: 5; }
.subnav ul a { display: block; padding: 8px 16px; border: 0; }
.subnav ul a:hover, .subnav ul a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; }
.menu-toggle { display: none; }

@media (max-width: 959px) {
  .menu-toggle { display: inline-block; font: inherit; font-size: 1rem; font-weight: 500; color: var(--basalt); background: transparent; border: 1px solid var(--basalt); border-radius: var(--radius-control); padding: 6px 14px; text-decoration: none; cursor: pointer; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { display: none; flex-basis: 100%; padding-block: 8px 24px; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-block-start: 1px solid var(--line); }
  .nav-list a, .subnav summary { display: flex; padding-block: 14px; border: 0; }
  .nav-list [aria-current="page"], .subnav summary.is-section { text-decoration: underline; text-decoration-color: var(--wadi); text-decoration-thickness: 2px; }
  .subnav ul { position: static; border: 0; padding: 0 0 10px 16px; min-width: 0; }
  .subnav ul a { padding: 10px 0; }
}

/* ---------- Layout: rail + body on a 12-column grid ---------- */
.section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-block: var(--section-space);
  border-block-start: 1px solid var(--line);
}
.section > .rail { grid-column: 1 / span 3; font-size: var(--step-2); padding-block-start: 0.15em; }
.section > .body { grid-column: 5 / span 7; }
.section > .full { grid-column: 1 / -1; margin-block-start: clamp(32px, 4vw, 56px); }
.section .body > :last-child, .prose > :last-child { margin-block-end: 0; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-block: 2em 0.6em; }
.prose h3 { margin-block: 1.6em 0.5em; }
.page-head + .strata-rule, .strata-rule + .wrap > .section:first-child { border-block-start: 0; }
@media (max-width: 799px) {
  .section { display: block; }
  .section > .rail { margin-block-end: 0.9em; }
}

.page-head { padding-block: clamp(48px, 8vw, 128px) clamp(40px, 5vw, 80px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.page-head > * { grid-column: 1 / span 10; }
.page-head .lede { grid-column: 1 / span 7; margin-block: 1.1em 0; }
@media (max-width: 799px) { .page-head > *, .page-head .lede { grid-column: 1 / -1; } }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.crumb { font-size: var(--step--1); margin-block-end: 1.25em; }
.crumb a { color: var(--slate); }
.note { color: var(--slate); font-size: var(--step--1); max-width: var(--measure); }
.secondary { color: var(--slate); }

/* ---------- Strata: hero, rules ---------- */
.hero { padding-block-start: clamp(48px, 6.5vw, 104px); }
.hero h1 { font-size: var(--step-5); max-width: 14ch; }
.hero .lede { max-width: 44ch; margin-block: 1.2em 0; }
@media (min-width: 1100px) {
  .hero-text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
  .hero-text h1 { grid-column: 1 / span 8; }
  .hero-text .lede { grid-column: 9 / span 4; margin: 0 0 0.35em; font-size: var(--step-0); line-height: 1.55; }
}
.strata { position: relative; margin-block-start: clamp(40px, 5vw, 80px); }
.strata-svg { display: block; width: 100%; height: clamp(250px, 34vw, 500px); }
.strata .band path { animation: strata-in 1.5s cubic-bezier(0.22, 0.7, 0.18, 1) both; transition: filter 0.2s ease; }
.strata .band:hover path { filter: brightness(0.93); }
.strata .band.ink-light:hover path { filter: brightness(1.22); }
.strata .band:focus { outline: none; }
.strata .band:focus-visible path { stroke: var(--wadi); stroke-width: 6px; vector-effect: non-scaling-stroke; paint-order: stroke; }
.strata .band.ink-light:focus-visible path { stroke: var(--gypsum); }
.strata-labels { position: absolute; inset: 0; pointer-events: none; }
.strata-label { position: absolute; inset-inline-start: var(--gutter); transform: translateY(-50%); font-size: 0.9375rem; font-weight: 500; font-stretch: 112%; line-height: 1; opacity: 0; transition: opacity 0.15s ease; }
.ink-dark { color: var(--basalt); }
.ink-light { color: var(--gypsum); }
.strata-caption { font-size: var(--step--1); color: var(--slate); margin: 14px 0 0; padding-block-end: clamp(24px, 4vw, 56px); }
.hero + .wrap > .section:first-child { border-block-start: 0; padding-block-start: clamp(24px, 3vw, 48px); }
@keyframes strata-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.strata-rule svg { display: block; width: 100%; height: clamp(36px, 4.5vw, 64px); }
.strata-rule.is-focused svg { height: clamp(64px, 8vw, 120px); }
.strata-rule.on-dark { background: var(--gypsum); }

/* ---------- Platform rows (home, overview) ---------- */
.platform-rows { list-style: none; margin: 0; padding: 0; border-block-end: 1px solid var(--line); }
.platform-row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  align-items: baseline; padding-block: 26px; border-block-start: 1px solid var(--line);
}
.platform-row::before { content: ""; grid-column: 1 / span 3; align-self: center; height: var(--h, 12px); background: var(--tone); }
.platform-row h3 { grid-column: 5 / span 3; font-size: var(--step-1); }
.platform-row h3 a { color: var(--basalt); text-decoration-color: var(--escarpment); }
.platform-row h3 a:hover { text-decoration-color: currentColor; }
.platform-row p { grid-column: 8 / span 5; margin: 0; color: var(--slate); }
.platform-row:nth-child(3n+1) { --h: 14px; }
.platform-row:nth-child(3n+2) { --h: 8px; }
.platform-row:nth-child(3n) { --h: 20px; }
@media (max-width: 799px) {
  .platform-row { display: block; padding-block: 22px; }
  .platform-row::before { display: block; width: 72px; margin-block-end: 14px; }
  .platform-row p { margin-block-start: 6px; }
}
.tone-limestone { --tone: var(--limestone); }
.tone-limestone-deep { --tone: var(--limestone-deep); }
.tone-escarpment { --tone: var(--escarpment); }
.tone-slate { --tone: var(--slate); }
.tone-wadi { --tone: var(--wadi); }
.tone-basalt { --tone: var(--basalt); }

/* ---------- Lists and definitions ---------- */
.plain-list { list-style: none; padding: 0; max-width: var(--measure); }
.plain-list { margin-block-start: -12px; }
.plain-list > li { padding-block: 12px; }
.plain-list > li + li { border-block-start: 1px solid var(--line); }
.defs { margin: 0; max-width: var(--measure); }
.defs > div { padding-block: 0 18px; }
.defs > div + div { padding-block-start: 18px; border-block-start: 1px solid var(--line); }
.defs > div:last-child { padding-block-end: 0; }
.defs dt { font-weight: 500; font-stretch: 108%; font-size: var(--step-1); line-height: 1.3; margin-block-end: 4px; }
.defs dd { margin: 0; }
.steps { list-style: none; counter-reset: step; padding: 0; max-width: var(--measure); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; padding-block: 20px; border-block-start: 1px solid var(--line); }
.steps > li:last-child { border-block-end: 1px solid var(--line); }
.steps > li::before { content: counter(step); font-stretch: 115%; font-weight: 500; font-size: var(--step-1); line-height: 1.3; color: var(--slate); }
.steps h3 { margin-block-end: 6px; line-height: 1.3; }
.steps p { margin: 0; }
.link-list { list-style: none; padding: 0; columns: 2 18rem; column-gap: var(--col-gap); }
.link-list li { padding-block: 6px; break-inside: avoid; }
.principles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--col-gap); }
.principles > li { padding-block: 0 32px; }
.principles h3 { margin-block-end: 8px; }
.principles p { margin: 0; color: var(--slate); }
@media (max-width: 799px) { .principles { grid-template-columns: 1fr; } }
.routes { list-style: none; padding: 0; margin: 0; }
.routes > li { padding-block: 0 18px; }
.routes > li + li { padding-block-start: 18px; border-block-start: 1px solid var(--line); }
.routes h3 { margin-block-end: 4px; }
.routes p { margin: 0; color: var(--slate); }
.article-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.article-list > li { padding-block: 20px; border-block-start: 1px solid var(--line); }
.article-list p { margin: 6px 0 0; color: var(--slate); }
.article-list .meta { font-size: var(--step--1); margin: 0 0 6px; }

/* ---------- Kingdom map ---------- */
.kingdom-map { list-style: none; padding: 0; margin: 0; }
.kingdom-map > li { padding-block: 22px; border-block-start: 1px solid var(--line); padding-inline-start: 22px; border-inline-start: 6px solid var(--tone); }
.kingdom-map > li:last-child { border-block-end: 1px solid var(--line); }
.kingdom-map ul { list-style: none; padding: 0; margin: 8px 0 0; }
.kingdom-map ul li { margin-block-start: 4px; }

/* ---------- Structure diagram ---------- */
.structure { margin: 0; }
.structure-tier { padding: 22px 0; position: relative; }
.tier-kind { font-size: var(--step--1); color: var(--slate); margin: 0 0 6px; }
.tier-name { font-size: var(--step-3); margin-block-end: 0.3em; }
.tier-holding { border-block-start: 3px solid var(--basalt); }
.tier-platforms ol { list-style: none; padding: 0; margin: 0; }
.tier-platforms ol > li { background: var(--tone); padding: 12px 16px; }
.tier-platforms ol > li:nth-child(3n+1) { padding-block: 16px; }
.tier-platforms ol > li:nth-child(3n+2) { padding-block: 10px; }
.tier-platforms ol > li a { color: var(--basalt); font-weight: 500; font-stretch: 108%; }
.tier-platforms ol > li.tone-slate a, .tier-platforms ol > li.tone-wadi a, .tier-platforms ol > li.tone-basalt a { color: var(--gypsum); }
.tier-platforms ol ul { list-style: none; padding: 4px 0 0; margin: 0; font-size: var(--step--1); }
.tier-companies { border-block-end: 1px solid var(--line); }
.structure figcaption { font-size: var(--step--1); color: var(--slate); margin-block-start: 14px; max-width: var(--measure); }

/* ---------- Buttons, prompts, dark sections ---------- */
.button {
  display: inline-block; font: inherit; font-weight: 500; font-size: 1.0625rem; line-height: 1.2;
  color: var(--white); background: var(--wadi); border: 0; border-radius: var(--radius-control);
  padding: 15px 24px; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--basalt); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.prompt-text { font-size: var(--step-2); font-stretch: 110%; font-weight: 450; line-height: 1.3; max-width: 30ch; }
.dark { background: var(--basalt); color: var(--gypsum); }
.dark .section { border-color: rgba(236, 238, 233, 0.16); }
.dark a { color: var(--gypsum); }
.dark .button { background: var(--gypsum); color: var(--basalt); }
.dark .button:hover { background: var(--limestone); }
.dark :focus-visible { outline-color: var(--escarpment); }
.closing .section { border: 0; }

/* ---------- Forms ---------- */
.form { max-width: 40rem; }
.field { margin-block-end: 22px; }
.field label, .field legend { display: block; font-weight: 500; font-size: 1rem; margin-block-end: 6px; }
.field .hint { display: block; font-size: var(--step--1); color: var(--slate); margin-block: -2px 8px; font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--basalt); background: var(--white);
  border: 1px solid var(--slate); border-radius: var(--radius-control); padding: 12px 14px;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--basalt) 50%), linear-gradient(135deg, var(--basalt) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--wadi); outline-offset: 1px; }
.field [aria-invalid="true"] { border: 2px solid var(--clay); }
.field .error { display: block; color: var(--clay); font-size: var(--step--1); margin-block-start: 6px; font-weight: 500; }
.field .error:empty { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--wadi); }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 18px; margin-block-end: 22px; border-inline-start: 4px solid var(--wadi); background: var(--white); }
.form-status.is-error { border-color: var(--clay); }
.form-status:empty { display: none; }
.form-status:focus { outline: none; }
.cf-turnstile { margin-block-end: 22px; min-height: 65px; }
.contact-details p { margin-block-end: 0.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--basalt); color: var(--gypsum); margin-block-start: var(--section-space); font-size: 1rem; }
.site-footer a { color: var(--gypsum); text-decoration-color: rgba(236, 238, 233, 0.45); }
.site-footer a:hover { text-decoration-color: currentColor; }
.site-footer :focus-visible { outline-color: var(--escarpment); }
.footer-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; padding-block: 56px 40px; }
.footer-brand { grid-column: 1 / span 4; }
.footer-brand .brand { color: var(--gypsum); margin-block-end: 20px; }
.footer-brand p { margin: 0 0 6px; }
.footer-col { grid-column: span 2; }
.footer-title { font-size: 1rem; font-stretch: 108%; font-weight: 500; margin-block-end: 12px; color: var(--limestone); }
.footer-col ul, .footer-legal ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding-block: 4px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 22px 32px; border-block-start: 1px solid rgba(236, 238, 233, 0.16); font-size: var(--step--1); color: var(--limestone); }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 959px) { .footer-brand { grid-column: 1 / -1; } .footer-col { grid-column: span 6; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .strata .band path { animation: none; }
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Home: the closing prompt runs straight into the footer */
.home .site-footer { margin-block-start: 0; }
.home .site-footer > .strata-rule { display: none; }
.home .footer-inner { border-block-start: 1px solid rgba(236, 238, 233, 0.16); }
.closing { margin-block-start: var(--section-space); }
.closing .strata-rule { background: var(--gypsum); }
.platforms-more { margin-block-start: 24px; }

/* Generated by build.mjs from platforms.json */
.strata-label.label-1{top:10.41%}
.strata:has(.band-1:hover) .label-1,.strata:has(.band-1:focus-visible) .label-1{opacity:1}
.strata .band-1 path{animation-delay:0ms}
.strata-label.label-2{top:19.56%}
.strata:has(.band-2:hover) .label-2,.strata:has(.band-2:focus-visible) .label-2{opacity:1}
.strata .band-2 path{animation-delay:90ms}
.strata-label.label-3{top:33.57%}
.strata:has(.band-3:hover) .label-3,.strata:has(.band-3:focus-visible) .label-3{opacity:1}
.strata .band-3 path{animation-delay:180ms}
.strata-label.label-4{top:49.59%}
.strata:has(.band-4:hover) .label-4,.strata:has(.band-4:focus-visible) .label-4{opacity:1}
.strata .band-4 path{animation-delay:270ms}
.strata-label.label-5{top:62.38%}
.strata:has(.band-5:hover) .label-5,.strata:has(.band-5:focus-visible) .label-5{opacity:1}
.strata .band-5 path{animation-delay:360ms}
.strata-label.label-6{top:72.24%}
.strata:has(.band-6:hover) .label-6,.strata:has(.band-6:focus-visible) .label-6{opacity:1}
.strata .band-6 path{animation-delay:450ms}
.strata-label.label-7{top:85.94%}
.strata:has(.band-7:hover) .label-7,.strata:has(.band-7:focus-visible) .label-7{opacity:1}
.strata .band-7 path{animation-delay:540ms}
