:root {
  --ink: #11100E;
  --paper: #F3EFE7;
  --paper-2: #EAE4D8;
  --white: #FBF9F4;
  --fire: #FF4F1A;
  --fire-d: #C2370C;
  --mute-d: #B5AFA3;
  --mute-l: #5A554C;
  --rule: rgba(17, 16, 14, .16);
  --rule-d: rgba(243, 239, 231, .22);
  --serif: 'Instrument Serif', 'Noto Serif SC', 'Songti SC', 'Noto Naskh Arabic', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', 'Noto Sans', 'Noto Sans Arabic', Tahoma, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }

/* type */
h1, h2, .say { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.06; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
h4 { font-size: 17px; font-weight: 600; }
em { font-style: italic; color: var(--fire-d); }
.dark em, .accent-band em { color: var(--fire); }
.accent-band em { color: var(--ink); }
/* scripts with no italic tradition, or joined letters: colour only, no tracking */
:lang(zh) h1, :lang(zh) h2, :lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2,
:lang(ar) h1, :lang(ar) h2, :lang(fa) h1, :lang(fa) h2, :lang(ur) h1, :lang(ur) h2,
:lang(he) h1, :lang(he) h2, :lang(hi) h1, :lang(hi) h2, :lang(th) h1, :lang(th) h2,
:lang(ru) h1, :lang(ru) h2, :lang(vi) h1, :lang(vi) h2 { letter-spacing: 0; line-height: 1.25; }
:lang(zh) em, :lang(ja) em, :lang(ko) em, :lang(ar) em, :lang(fa) em, :lang(ur) em, :lang(he) em, :lang(hi) em, :lang(th) em { font-style: normal; }
:lang(zh) h1, :lang(zh) h2, :lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2, :lang(hi) h1, :lang(hi) h2, :lang(th) h1, :lang(th) h2, :lang(ar) h1, :lang(ar) h2, :lang(fa) h1, :lang(fa) h2, :lang(ur) h1, :lang(ur) h2, :lang(he) h1, :lang(he) h2 { font-weight: 600; }
:lang(zh) h1, :lang(ja) h1, :lang(ko) h1, :lang(ar) h1, :lang(fa) h1, :lang(ur) h1, :lang(he) h1, :lang(hi) h1, :lang(th) h1 { font-size: clamp(38px, 5vw, 72px); }
:lang(ur) body, :lang(ur) { line-height: 1.9; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--fire-d); }
.dark .eyebrow { color: var(--fire); }
.accent-band .eyebrow { color: var(--ink); }
:lang(ar) .eyebrow, :lang(fa) .eyebrow, :lang(ur) .eyebrow, :lang(he) .eyebrow, :lang(zh) .eyebrow, :lang(ja) .eyebrow, :lang(ko) .eyebrow, :lang(hi) .eyebrow, :lang(th) .eyebrow { font-family: var(--sans); letter-spacing: 0; font-size: 14px; font-weight: 600; }
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; max-width: 46em; }
.soft { color: var(--mute-l); }
.dark .soft { color: var(--mute-d); }
.say { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.18; max-width: 26em; }
.small { font-size: 15px; line-height: 1.55; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(243, 239, 231, .92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 23px; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--fire); flex-shrink: 0; }
.brand i { color: var(--fire-d); }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav > a, .nav-drop > button { font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 8px 11px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.nav > a:hover, .nav-drop > button:hover, .nav > a[aria-current="page"] { background: rgba(17, 16, 14, .07); }
.nav-drop { position: relative; }
.nav-drop svg { width: 12px; height: 12px; }
.nav-menu { display: none; position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 300px; background: var(--white); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 18px 44px rgba(17, 16, 14, .16); padding: 8px; }
.nav-drop.open .nav-menu { display: block; }
.nav-drop > button svg { transition: transform .18s ease; flex: none; }
.nav-drop.open > button svg { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1121px) { .nav-drop:hover .nav-menu { display: block; } .nav-drop:hover > button svg { transform: rotate(180deg); } .nav-menu::before { content: ""; position: absolute; inset-inline: 0; top: -10px; height: 10px; } }
.nav-menu a { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; }
.nav-menu a:hover { background: rgba(17, 16, 14, .06); }
.nav-menu b { display: block; font-size: 15px; font-weight: 600; }
.nav-menu span { display: block; font-size: 13px; color: var(--mute-l); line-height: 1.4; }
.head-cta { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--fire-d); border-color: var(--fire-d); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dark .btn { background: var(--fire); border-color: var(--fire); color: var(--ink); }
.dark .btn:hover { background: var(--paper); border-color: var(--paper); }
.dark .btn.ghost { background: transparent; color: var(--paper); border-color: var(--rule-d); }
.dark .btn.ghost:hover { background: var(--paper); color: var(--ink); }
.accent-band .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn svg { width: 16px; height: 16px; }
[dir="rtl"] .btn svg, [dir="rtl"] .more svg { transform: scaleX(-1); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; border-radius: 12px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1120px) {
  .menu-toggle { display: inline-flex; }
  .head-cta { margin-inline-start: auto; }
  .nav { display: none; position: absolute; top: 68px; inset-inline: 0; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; max-height: calc(100vh - 68px); overflow-y: auto; margin: 0; }
  .nav.open { display: flex; }
  .nav > a, .nav-drop > button { padding: 12px; font-size: 16px; width: 100%; justify-content: space-between; }
  .nav-menu { display: none; position: static; box-shadow: none; border: 0; background: none; padding: 0 0 6px 12px; min-width: 0; }
  .nav-drop.open .nav-menu { display: block; }
  .nav-drop > button svg { width: 14px; height: 14px; }
  .nav-menu span { display: none; }
  .head-cta .btn { display: none; }
}

/* language button + panel: same look and layout as buildmidas.com / stratmill.com */
.bm-locale-trigger { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: transparent; color: rgb(89, 97, 122); font: inherit; cursor: pointer; }
.bm-locale-trigger:hover { background: transparent; color: rgb(14, 17, 25); }
.bm-locale-overlay { position: fixed; inset: 0; z-index: 6000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); padding: 16px; font-family: var(--sans); }
.bm-locale-overlay[hidden] { display: none; }
.bm-locale-card { display: flex; flex-direction: column; width: 100%; max-width: 768px; max-height: 85vh; overflow: hidden; background: rgb(255, 255, 255); border-radius: 16px; box-shadow: rgba(0, 0, 0, .25) 0 24px 60px; }
.bm-locale-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgb(229, 231, 235); padding-inline: 24px; flex-shrink: 0; }
.bm-locale-tabs { display: flex; gap: 20px; padding-top: 12px; }
.bm-locale-tab { position: relative; padding: 0 0 10px; border: none; background: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; color: rgb(107, 114, 128); transition: color .15s; }
.bm-locale-tab.is-active { color: rgb(17, 24, 39); }
.bm-locale-tab.is-active::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; border-radius: 2px; background: rgb(17, 24, 39); }
.bm-locale-close { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-block: 10px; border: none; border-radius: 50%; background: none; color: rgb(107, 114, 128); cursor: pointer; }
.bm-locale-close:hover { background: rgb(243, 244, 246); }
.bm-locale-body { flex: 1 1 0%; overflow-y: auto; padding: 20px 24px; scrollbar-width: thin; scrollbar-color: rgb(209, 213, 219) transparent; }
.bm-locale-body::-webkit-scrollbar { width: 6px; }
.bm-locale-body::-webkit-scrollbar-track { background: transparent; }
.bm-locale-body::-webkit-scrollbar-thumb { background: rgb(209, 213, 219); border-radius: 3px; }
.bm-locale-h { margin: 0 0 12px; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: rgb(31, 41, 55); }
.bm-locale-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bm-locale-cell { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: none; border-radius: 8px; background: rgb(255, 255, 255); cursor: pointer; text-align: start; text-decoration: none; transition: background-color .15s; font: inherit; }
.bm-locale-cell:hover, .bm-locale-cell.is-selected { background: rgb(243, 244, 246); }
.bm-locale-cell:focus-visible { outline: rgb(26, 115, 232) solid 1px; outline-offset: -1px; }
.bm-locale-cell-text { min-width: 0; }
.bm-locale-cell-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; line-height: 1.25; color: rgb(31, 41, 55); }
.bm-locale-cell-sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 1.25; color: rgb(107, 114, 128); }
@media (max-width: 640px) {
  .bm-locale-overlay { align-items: flex-end; padding: 0; }
  .bm-locale-card { max-width: none; max-height: 92vh; border-radius: 16px 16px 0 0; animation: bmLocaleSlideUp .22s ease-out; }
  .bm-locale-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-locale-top { padding-inline: 16px; }
  .bm-locale-body { padding: 16px; }
}
@keyframes bmLocaleSlideUp { 0% { transform: translateY(24px); opacity: .6; } 100% { transform: translateY(0); opacity: 1; } }

/* bands */
.band { padding-block: clamp(64px, 8vw, 112px); }
.band.tight { padding-block: clamp(40px, 5vw, 64px); }
.dark { background: var(--ink); color: var(--paper); }
.white { background: var(--white); }
.accent-band { background: var(--fire); color: var(--ink); }
.band-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 900px; }
.band-head .lead { margin-top: 4px; }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 120px) clamp(56px, 7vw, 96px); }
.hero .wrap { position: relative; display: grid; gap: 22px; }
.hero h1 { max-width: 13em; }
.hero.sub h1 { font-size: clamp(40px, 5.4vw, 76px); max-width: 15em; }
.hero-orbit { position: absolute; inset-inline-end: -300px; top: 50%; width: 760px; height: 760px; transform: translateY(-50%); pointer-events: none; }
[dir="rtl"] .hero-orbit { transform: translateY(-50%) scaleX(-1); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.hero-note { font-family: var(--mono); font-size: 13px; color: var(--mute-d); margin-top: 18px; }
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--mute-l); display: flex; gap: 8px; flex-wrap: wrap; }
.dark .crumbs { color: var(--mute-d); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (max-width: 900px) { .hero-orbit { opacity: .28; inset-inline-end: -380px; } }

/* grids */
.g2, .g3, .g4, .g5, .g6 { display: grid; gap: 32px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .g4, .g5, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4, .g5, .g6 { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--ink); }
.dark .card { border-top-color: var(--rule-d); }
.card .kicker { font-family: var(--mono); font-size: 13px; color: var(--fire-d); letter-spacing: .04em; }
.dark .card .kicker { color: var(--fire); }
.card p { color: var(--mute-l); font-size: 16px; }
.dark .card p { color: var(--mute-d); }
.step-n { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--fire-d); }
.dark .step-n { color: var(--fire); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; width: fit-content; }
.more:hover { color: var(--fire-d); }
.dark .more:hover { color: var(--fire); }
.more svg { width: 14px; height: 14px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stat { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.dark .stat { border-top-color: var(--fire); }
.stat b { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.6vw, 84px); line-height: 1; letter-spacing: -.02em; direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .stat b { text-align: right; }
.dark .stat b { color: var(--fire); }
.stat span { color: var(--mute-l); font-size: 15px; line-height: 1.5; }
.dark .stat span { color: var(--mute-d); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* split + figures */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .text { display: grid; gap: 18px; align-content: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }
.shot { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 30px 60px -30px rgba(17, 16, 14, .35); }
.dark .shot { border-color: var(--rule-d); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--rule); direction: ltr; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(17, 16, 14, .22); }
.shot-bar span { margin-inline-start: 10px; font-family: var(--mono); font-size: 12px; color: var(--mute-l); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
figcaption { font-size: 14px; color: var(--mute-l); margin-top: 12px; }
.dark figcaption { color: var(--mute-d); }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 26px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 14px; height: 2px; background: var(--fire-d); }
.dark .ticks li::before { background: var(--fire); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { font-family: var(--mono); font-size: 13px; padding: 6px 14px; border: 1px solid currentColor; border-radius: 999px; }
:lang(ar) .pill, :lang(fa) .pill, :lang(ur) .pill, :lang(he) .pill, :lang(zh) .pill, :lang(ja) .pill, :lang(ko) .pill, :lang(hi) .pill, :lang(th) .pill { font-family: var(--sans); font-size: 14px; }

/* tables */
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
.dark .table-wrap { border-top-color: var(--fire); }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 620px; }
caption { caption-side: bottom; text-align: start; font-size: 14px; color: var(--mute-l); padding-top: 12px; }
.dark caption { color: var(--mute-d); }
th, td { text-align: start; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
[dir="rtl"] th, [dir="rtl"] td { padding: 14px 0 14px 16px; }
.dark th, .dark td { border-bottom-color: var(--rule-d); }
thead th { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fire-d); white-space: nowrap; }
.dark thead th { color: var(--fire); }
:lang(ar) thead th, :lang(fa) thead th, :lang(ur) thead th, :lang(he) thead th, :lang(zh) thead th, :lang(ja) thead th, :lang(ko) thead th, :lang(hi) thead th, :lang(th) thead th { font-family: var(--sans); font-size: 14px; letter-spacing: 0; font-weight: 600; }
tbody th { font-weight: 600; }
td { color: var(--mute-l); }
.dark td { color: var(--mute-d); }
td.n { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--ink); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.dark td.n { color: var(--paper); }

/* bar charts */
.chart { display: grid; gap: 14px; }
.chart-title { font-weight: 600; font-size: 17px; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: 15px; }
.bar-track { height: 22px; background: rgba(17, 16, 14, .08); border-radius: 3px; overflow: hidden; }
.dark .bar-track { background: rgba(243, 239, 231, .1); }
.bar-fill { height: 100%; background: var(--ink); border-radius: 3px; transform-origin: left; }
[dir="rtl"] .bar-fill { transform-origin: right; }
.dark .bar-fill { background: var(--fire); }
.bar-row.hi .bar-fill { background: var(--fire-d); }
.dark .bar-row.hi .bar-fill { background: var(--paper); }
.bar-val { font-family: var(--mono); font-size: 14px; min-width: 56px; text-align: end; direction: ltr; unicode-bidi: isolate; }
.chart-note { font-size: 14px; color: var(--mute-l); }
.dark .chart-note { color: var(--mute-d); }
.seg { display: flex; height: 44px; border-radius: 4px; overflow: hidden; direction: ltr; }
.seg div { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--paper); background: var(--ink); min-width: 34px; }
.seg div:nth-child(2) { background: var(--fire-d); }
.seg div:nth-child(3) { background: var(--mute-l); }
.seg div:nth-child(4) { background: #8C867A; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 2px; background: var(--ink); flex-shrink: 0; }
.legend li:nth-child(2) i { background: var(--fire-d); }
.legend li:nth-child(3) i { background: var(--mute-l); }
.legend li:nth-child(4) i { background: #8C867A; }
@media (max-width: 640px) { .bar-row { grid-template-columns: minmax(0, 1fr) auto; } .bar-row .bar-track { grid-column: 1 / -1; order: 3; } }

/* flow diagram */
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; counter-reset: flow; }
.flow li { position: relative; padding: 22px 22px 22px 0; border-top: 2px solid var(--ink); display: grid; gap: 8px; align-content: start; }
[dir="rtl"] .flow li { padding: 22px 0 22px 22px; }
.dark .flow li { border-top-color: var(--fire); }
.flow li::before { counter-increment: flow; content: "0" counter(flow); font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--fire-d); }
.dark .flow li::before { color: var(--fire); }
.flow li::after { content: ""; position: absolute; top: -7px; inset-inline-start: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--fire-d); }
.dark .flow li::after { background: var(--fire); }
.flow p { font-size: 15px; color: var(--mute-l); }
.dark .flow p { color: var(--mute-d); }
@media (max-width: 900px) { .flow { grid-auto-flow: row; } .flow li { padding-inline-start: 26px !important; padding-inline-end: 0 !important; border-top: 0; border-inline-start: 2px solid var(--ink); } .dark .flow li { border-inline-start-color: var(--fire); } .flow li::after { top: 26px; inset-inline-start: -7px; } }
.layers { display: grid; gap: 10px; }
.layer { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 20px 24px; border: 1px solid var(--ink); border-radius: 10px; align-items: center; }
.layer:nth-child(1) { background: var(--ink); color: var(--paper); }
.layer:nth-child(1) p { color: var(--mute-d); }
.layer:nth-child(2) { background: var(--fire); }
.layer:nth-child(2) p { color: var(--ink); }
.layer p { font-size: 15px; color: var(--mute-l); }
.dark .layer { border-color: var(--rule-d); }
@media (max-width: 640px) { .layer { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.timeline li { border-top: 2px solid var(--fire); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.timeline time { font-family: var(--mono); font-size: 13px; color: var(--fire); }
.timeline p { font-size: 15px; color: var(--mute-d); }
@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* faq */
.faq { display: grid; gap: 0; max-width: 900px; }
.faq details { border-top: 1px solid var(--rule); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--fire-d); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 12px; color: var(--mute-l); max-width: 46em; }

/* cta + footer */
.cta { display: grid; gap: 22px; }
.cta h2 { max-width: 16em; }
.site-foot { background: var(--ink); color: var(--paper); padding-block: 64px 36px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-grid h4 { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fire); margin-bottom: 14px; }
.foot-grid ul { display: grid; gap: 8px; }
.foot-grid a { color: var(--mute-d); text-decoration: none; }
.foot-grid a:hover { color: var(--paper); }
.foot-about { display: grid; gap: 14px; align-content: start; max-width: 28em; color: var(--mute-d); }
.foot-about .brand { color: var(--paper); }
.foot-about .brand i { color: var(--fire); }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule-d); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: var(--mute-d); font-size: 14px; }
.foot-base a { color: inherit; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }

/* contact form */
.form { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 8px; background: var(--white); color: var(--ink); width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--fire-d); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-weight: 600; min-height: 1.6em; }
.form-msg.ok { color: #1F6B3A; }
.form-msg.err { color: var(--fire-d); }
.prose { display: grid; gap: 16px; max-width: 46em; }
.prose h2 { font-size: 32px; margin-top: 20px; }

/* motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }
.bar-fill { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal:not(.in) .bar-fill { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .bar-fill { transition: none; } .reveal:not(.in) .bar-fill { transform: none; } html { scroll-behavior: auto; } }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .reveal .bar-fill { transform: none; }

/* fixes after first visual pass */
.hero .lead { max-width: 38em; }
.hero.sub .hero-orbit { width: 560px; height: 560px; inset-inline-end: -220px; }
.dark .seg div:first-child { background: var(--paper); color: var(--ink); }
.dark .legend li:first-child i { background: var(--paper); }
.dark .seg div:nth-child(2) { background: var(--fire); color: var(--ink); }
.dark .legend li:nth-child(2) i { background: var(--fire); }

/* v2: logo mark, wider footer, ring chart, moving pipeline, glossary */
.brand { gap: 11px; font-size: 24px; }
.brand-mark { width: 30px; height: 30px; border-radius: 0; background: none; flex-shrink: 0; }
.foot-grid { grid-template-columns: 1.5fr repeat(5, 1fr); gap: 32px; }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 640px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1121px) { .nav-menu { min-width: 320px; } .nav-drop:nth-last-child(-n+2) .nav-menu { inset-inline-start: auto; inset-inline-end: 0; } }
:root { --d1: #11100E; --d2: #C2370C; --d3: #5A554C; --d4: #B5AFA3; --d5: #E8A58E; --d6: #8C867A; }
.dark { --d1: #F3EFE7; --d2: #FF4F1A; --d3: #B5AFA3; --d4: #6E685E; --d5: #FFB199; --d6: #8C867A; }
.donut-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.donut-svg { width: 200px; height: 200px; flex-shrink: 0; }
.donut-mid { font-family: var(--serif); font-size: 26px; fill: currentColor; }
.legend.col { flex-direction: column; gap: 10px; }
.legend.col li i { background: var(--d1); }
.motion { --n: 5; position: relative; padding-top: 6px; }
.motion-line { position: relative; height: 2px; background: var(--rule); margin: 9px 0 0; }
.dark .motion-line { background: var(--rule-d); }
.motion-line i { position: absolute; top: -6px; inset-inline-start: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--fire-d); animation: mgvTravel 7s cubic-bezier(.6, 0, .4, 1) infinite; }
.dark .motion-line i { background: var(--fire); }
@keyframes mgvTravel { 0% { inset-inline-start: 0; } 90%, 100% { inset-inline-start: calc(100% - 14px); } }
.motion ol { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: -12px; }
.motion li { display: grid; gap: 14px; justify-items: start; font-size: 15px; }
.motion li span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); animation: mgvPulse 7s linear infinite; animation-delay: calc(var(--k) * 7s / var(--n)); }
.white .motion li span { background: var(--white); }
.dark .motion li span { border-color: var(--paper); background: var(--ink); }
@keyframes mgvPulse { 0%, 12% { background: var(--fire); border-color: var(--fire); } 20%, 100% { background: transparent; } }
@media (max-width: 640px) { .motion li b { font-size: 12px; font-weight: 500; } }
@media (prefers-reduced-motion: reduce) { .motion-line i, .motion li span { animation: none; } }
.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; }
.gloss div { border-top: 1px solid var(--rule); padding: 18px 0; display: grid; gap: 6px; }
.dark .gloss div { border-top-color: var(--rule-d); }
.gloss dt { font-weight: 600; font-size: 18px; }
.gloss dd { margin: 0; color: var(--mute-l); font-size: 16px; }
.dark .gloss dd { color: var(--mute-d); }
@media (max-width: 800px) { .gloss { grid-template-columns: minmax(0, 1fr); } }

/* custom select: trigger looks like the other fields, option list is drawn in the site's palette */
.sel { position: relative; }
.sel-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.sel-btn { font: inherit; font-size: 16px; text-align: start; padding: 12px 44px 12px 14px; border: 1px solid var(--ink); border-radius: 8px; background: var(--white); color: var(--ink); width: 100%; cursor: pointer; position: relative; display: block; }
[dir="rtl"] .sel-btn { padding: 12px 14px 12px 44px; }
.sel-btn::after { content: ""; position: absolute; inset-inline-end: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .18s ease; }
.sel.is-open .sel-btn::after { transform: translateY(-25%) rotate(-135deg); }
.sel-btn:focus-visible, .sel.is-open .sel-btn { outline: 2px solid var(--fire-d); outline-offset: 1px; }
.sel-list { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--ink); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(17, 16, 14, .45); max-height: 300px; overflow-y: auto; }
.sel.is-up .sel-list { top: auto; bottom: calc(100% + 6px); }
.sel-opt { position: relative; padding: 11px 14px; padding-inline-start: 34px; border-radius: 8px; font-size: 16px; line-height: 1.35; cursor: pointer; }
.sel-opt.is-active { background: var(--paper-2); }
.sel-opt[aria-selected="true"] { font-weight: 600; }
.sel-opt[aria-selected="true"]::before { content: ""; position: absolute; inset-inline-start: 13px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--fire); }
@media (prefers-reduced-motion: reduce) { .sel-btn::after { transition: none; } }
