/* Qistas Advisory. Ink, Brass and Stone. */
:root {
  --ink: #10262B; --ink-deep: #183338; --ink-slate: #3B5A60; --ink-mist: #9AACAE; --ink-haze: #B9C4C5;
  --brass: #B48A3E; --brass-burnished: #80612A; --brass-pale: #D6B97E; --brass-tint: #F0E6D0;
  --stone: #ECEAE4; --paper: #F6F5F1; --rule: #CCC8BD; --verdigris: #468E86;
  --font-display: Newsreader, Georgia, "Times New Roman", serif;
  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(64px, 9vw, 128px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--stone); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brass-burnished); outline-offset: 3px; }
.ink a:focus-visible, .ink button:focus-visible { outline-color: var(--brass); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--brass); color: var(--ink); padding: 12px 18px; z-index: 100; font-weight: 600; }
.skip:focus { left: 0; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 820px; }
.ink { background: var(--ink); color: var(--stone); }
.stone { background: var(--stone); }
.paper { background: var(--paper); }
.tint { background: var(--brass-tint); }
.section { padding-block: var(--section); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow { display: block; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-burnished); }
.ink .eyebrow { color: var(--brass); }
.h2 { font-size: clamp(38px, 4.6vw, 64px); font-weight: 300; line-height: 1.04; }
.h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-slate); max-width: 36em; }
.ink .lead { color: var(--ink-haze); }
.accent { font-style: italic; color: var(--brass); }
.stone .accent, .paper .accent, .tint .accent { color: var(--brass-burnished); }
.head { display: flex; flex-direction: column; gap: 20px; max-width: 800px; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.diamond { display: block; flex: none; }
.diamond path { fill: var(--brass); }
.muted { color: var(--ink-slate); }
.ink .muted { color: var(--ink-haze); }

.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 2px; font-size: 16px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background .2s; }
.btn:hover { text-decoration: none; }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-pale); }
.btn-ink { background: var(--ink); color: var(--stone); }
.btn-ink:hover { background: var(--ink-deep); }
.btn svg, .arrow-link svg { stroke: var(--brass); flex: none; }
.btn-brass svg { stroke: var(--ink); }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 600; }
.arrow-link svg { transition: transform .2s; }
.arrow-link:hover svg { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--stone); border-bottom: 1px solid rgba(236,234,228,.12); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.lockup { display: flex; align-items: center; gap: 14px; }
.lockup:hover { text-decoration: none; }
.lockup-words { display: inline-flex; flex-direction: column; gap: 7px; }
.lockup-name { font-family: var(--font-display); font-size: 24px; line-height: .8; letter-spacing: .14em; margin-right: -.14em; }
.lockup-desc { display: flex; justify-content: space-between; font-size: 9px; font-weight: 600; line-height: 1; color: var(--brass); }
.nav-menu { display: flex; align-items: center; gap: 4px 30px; font-size: 15px; font-weight: 500; }
.nav-menu > li { position: relative; }
.nav-menu > li > a:not(.btn), .nav-drop-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 76px; background: none; border: 0; cursor: pointer; font-weight: 500; }
.nav-menu a[aria-current="page"] { color: var(--brass-pale); }
.nav-drop-btn svg { stroke: var(--brass); transition: transform .2s; }
.nav-drop { position: absolute; left: -24px; top: 100%; width: 400px; background: var(--paper); color: var(--ink); padding: 12px; box-shadow: 0 24px 48px rgba(16,38,43,.28); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-drop:hover .nav-drop, .has-drop:focus-within .nav-drop, .has-drop.open .nav-drop { opacity: 1; visibility: visible; transform: none; }
.has-drop:hover .nav-drop-btn svg, .has-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.nav-drop li:last-child a { border-bottom: 0; }
.nav-drop a:hover { background: var(--stone); text-decoration: none; }
.nav-drop strong { font-family: var(--font-display); font-size: 20px; font-weight: 400; line-height: 1.2; }
.nav-drop span { font-size: 14px; color: var(--ink-slate); line-height: 1.4; }
.nav-drop em { font-family: var(--font-mono); font-style: normal; font-size: 11px; letter-spacing: .18em; color: var(--brass-burnished); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--stone); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 8px var(--gutter) 28px; border-bottom: 1px solid rgba(236,234,228,.12); max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav-open .nav-menu { display: flex; }
  .nav-menu > li > a:not(.btn), .nav-drop-btn { min-height: 52px; width: 100%; justify-content: space-between; font-size: 18px; border-bottom: 1px solid rgba(236,234,228,.12); }
  .nav-drop { position: static; width: auto; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; margin: 8px 0; }
  .has-drop.open .nav-drop { display: block; }
  .nav-menu .btn { margin-top: 20px; justify-content: center; min-height: 54px; border-bottom: 0; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Home hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 48px 72px; align-items: center; padding-block: clamp(40px, 6vw, 96px) clamp(56px, 7vw, 112px); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; min-width: 0; }
.hero h1 { font-size: clamp(54px, 7.6vw, 116px); font-weight: 300; line-height: .96; letter-spacing: -.015em; }
.hero h1 span { display: block; }
.hero-lead { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.55; color: var(--ink-haze); max-width: 33em; }
.hero-note { font-size: 14px; color: var(--ink-mist); }
.dial { display: flex; justify-content: center; min-width: 0; }
.dial svg { display: block; width: 100%; max-width: 580px; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .dial-arc { transform-origin: 320px 320px; animation: sweep 14s ease-in-out infinite alternate; }
  @keyframes sweep { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
}

/* Page hero */
.page-hero { padding-block: clamp(56px, 8vw, 120px) clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 26px; }
.page-hero h1 { font-size: clamp(44px, 6.2vw, 92px); font-weight: 300; line-height: 1; letter-spacing: -.012em; max-width: 14em; }
.page-hero .lead { max-width: 40em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mist); }
.crumbs a { color: var(--ink-haze); }
.hero-pattern { position: absolute; right: 0; top: 0; bottom: 0; width: min(38%, 520px); opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 11L17 14L14 17L11 14Z' fill='%23B48A3E'/%3E%3C/svg%3E"); -webkit-mask-image: linear-gradient(to right, transparent, #000 70%); mask-image: linear-gradient(to right, transparent, #000 70%); }
@media (max-width: 720px) { .hero-pattern { display: none; } }

.ruler { height: 14px; background-image: repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 64px), repeating-linear-gradient(to right, var(--ink-mist) 0 1px, transparent 1px 8px); background-size: 100% 14px, 100% 7px; background-repeat: no-repeat; }
.beam { display: flex; align-items: center; gap: 14px; }
.beam span { flex: 1; height: 1px; background: var(--ink); }
.ink .beam span { background: rgba(236,234,228,.35); }

/* Waterfall */
.bridge { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 40px 72px; align-items: start; margin-top: clamp(36px, 5vw, 60px); }
.bridge-rows { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bridge-row { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 52px; align-items: center; gap: 14px; width: 100%; padding: 8px 10px; background: none; border: 0; border-left: 2px solid transparent; text-align: left; cursor: pointer; }
.bridge-row:hover, .bridge-row.on { background: rgba(236,234,228,.06); border-left-color: var(--brass); }
.bridge-label { font-size: 15px; line-height: 1.3; }
.bridge-track { position: relative; height: 30px; background: rgba(236,234,228,.07); }
.bridge-bar { position: absolute; top: 0; bottom: 0; background: var(--brass); transition: left .9s cubic-bezier(.2,.7,.2,1), width .9s cubic-bezier(.2,.7,.2,1); }
.bridge-row.total .bridge-bar { background: var(--stone); }
.bridge-val { font-family: var(--font-mono); font-size: 14px; text-align: right; color: var(--ink-haze); }
.bridge-row.total .bridge-label { font-weight: 600; }
.bridge-panel { background: var(--ink-deep); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; min-height: 280px; }
.bridge-panel h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; }
.bridge-panel p { color: var(--ink-haze); }
.bridge-panel .q { font-family: var(--font-display); font-style: italic; font-size: 21px; line-height: 1.35; color: var(--brass-pale); padding-top: 12px; border-top: 1px solid rgba(236,234,228,.18); }
.fine { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-mist); }
@media (max-width: 520px) { .bridge-row { grid-template-columns: 104px 1fr 40px; gap: 8px; } .bridge-label { font-size: 13px; } }

/* Stage cards */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.stage { position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 3vw, 40px); background: var(--paper); min-height: 440px; border-top: 3px solid var(--ink); transition: background .25s, color .25s, transform .25s; }
.stage:hover { text-decoration: none; background: var(--ink); color: var(--stone); transform: translateY(-4px); }
.stage-num { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 72px; line-height: 1; color: var(--brass-burnished); }
.stage:hover .stage-num { color: var(--brass); }
.stage-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-burnished); }
.stage:hover .stage-kicker { color: var(--brass); }
.stage h3 { font-size: clamp(28px, 2.5vw, 36px); line-height: 1.1; }
.stage p { font-size: 16px; color: var(--ink-slate); }
.stage:hover p { color: var(--ink-haze); }
.stage .arrow-link { margin-top: auto; }

/* Levers */
.levers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px 32px; margin-top: clamp(40px, 5vw, 64px); padding-bottom: 44px; border-bottom: 2px solid var(--ink); }
.lever { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lever-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.num { font-family: var(--font-mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-burnished); }
.ink .num { color: var(--brass); }
.lever svg { stroke: var(--ink); }
.lever svg .dot { fill: var(--brass); stroke: none; }
.lever h3 { font-size: 28px; line-height: 1.2; }
.lever p { font-size: 16px; color: var(--ink-slate); }
.fulcrum { display: flex; flex-direction: column; align-items: center; }
.fulcrum .diamond { margin-top: -12px; }
.fulcrum-line { width: 1px; height: 36px; background: var(--ink); }
.fulcrum-card { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px); background: var(--ink); color: var(--stone); text-align: center; }
.fulcrum-card .num { color: var(--brass); }
.fulcrum-card h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
.fulcrum-card p { max-width: 34em; font-size: 16px; color: var(--ink-haze); }

/* Generic grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px 96px; align-items: start; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 32px; }
.mt { margin-top: clamp(40px, 5vw, 64px); }
.item { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--ink); min-width: 0; }
.ink .item { border-top-color: rgba(236,234,228,.3); }
.item h3 { font-size: 26px; line-height: 1.18; }
.item p { font-size: 16px; color: var(--ink-slate); }
.ink .item p { color: var(--ink-haze); }
.list li { display: flex; align-items: baseline; gap: 18px; padding-block: 20px; border-top: 1px solid var(--rule); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.ink .list li { border-color: rgba(236,234,228,.18); }
.list span { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 25px); line-height: 1.3; }
.list.small span { font-family: var(--font-sans); font-size: 17px; line-height: 1.5; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 48px 36px; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step-head { display: flex; align-items: center; gap: 16px; }
.step-num { font-family: var(--font-display); font-size: 56px; font-style: italic; font-weight: 300; line-height: 1; color: var(--brass-burnished); }
.ink .step-num { color: var(--brass); }
.step-rule { flex: 1; height: 1px; background: var(--ink); opacity: .35; }
.ink .step-rule { background: var(--stone); }
.step h3 { font-size: 30px; line-height: 1.1; }
.step p { font-size: 16px; color: var(--ink-slate); }
.ink .step p { color: var(--ink-haze); }

.statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 4.8vw, 72px); line-height: 1.08; max-width: 17em; }

/* Insight cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; background: var(--paper); transition: transform .25s; }
.stone .card { background: var(--paper); }
.paper .card { background: var(--stone); }
.card:hover { text-decoration: none; transform: translateY(-4px); }
.card-art { aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; }
.card-art svg { display: block; width: 100%; height: 100%; transition: transform .6s; }
.card:hover .card-art svg { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 30px; flex: 1; }
.card-body h3 { font-size: 27px; line-height: 1.16; }
.card-body p { font-size: 16px; color: var(--ink-slate); }
.card-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-burnished); }
.card .arrow-link { margin-top: auto; padding-top: 8px; }

/* Article */
.article { padding-block: clamp(48px, 6vw, 88px) var(--section); }
.article-body { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; font-size: 19px; line-height: 1.7; }
.article-body h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.12; margin-top: 24px; }
.article-body .intro { font-family: var(--font-display); font-size: clamp(23px, 2.2vw, 28px); line-height: 1.4; }
.article-body ul { display: flex; flex-direction: column; gap: 12px; }
.article-body ul li { display: flex; gap: 16px; align-items: baseline; }
.article-body ul li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--brass); transform: rotate(45deg) translateY(-2px); }
.pull { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; color: var(--brass-burnished); padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-block: 16px; }
.article-cta { margin-top: 32px; padding: 32px; background: var(--ink); color: var(--stone); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.article-cta h3 { font-size: 30px; }
.article-cta p { font-size: 17px; color: var(--ink-haze); }

/* FAQ */
.faq details { border-top: 1px solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: clamp(21px, 2vw, 27px); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: var(--brass); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(135deg) scale(.7); }
.faq details p { padding: 0 0 26px; max-width: 46em; color: var(--ink-slate); }

/* Quiz */
.quiz { background: var(--paper); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 8px; }
.quiz-q { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.quiz-q p { flex: 1 1 320px; font-size: 17px; }
.quiz-opts { display: flex; gap: 8px; }
.quiz-opts button { min-width: 64px; min-height: 44px; padding: 0 16px; background: transparent; border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; font-weight: 600; font-size: 15px; }
.quiz-opts button[aria-pressed="true"] { background: var(--ink); color: var(--stone); }
.quiz-result { margin-top: 20px; padding: clamp(24px, 3vw, 36px); background: var(--ink); color: var(--stone); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.quiz-result h3 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; }
.quiz-result p { color: var(--ink-haze); max-width: 40em; }
.quiz-meter { width: 100%; height: 8px; background: rgba(236,234,228,.15); }
.quiz-meter i { display: block; height: 100%; width: 0; background: var(--brass); transition: width .6s; }

/* Platform mock */
.mock { background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); font-size: 14px; min-width: 0; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--ink-deep); color: var(--stone); font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.mock-tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.mock-tabs button { padding: 14px 14px 12px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--ink-slate); }
.mock-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brass); }
.mock-pane { padding: 20px; overflow-x: auto; }
.mock table { width: 100%; min-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mock th { text-align: left; font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-slate); padding: 8px 10px; border-bottom: 1px solid var(--ink); }
.mock td { padding: 12px 10px; border-bottom: 1px solid var(--rule); }
.mock td.r, .mock th.r { text-align: right; }
.pill { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 600; border-radius: 2px; }
.pill.ok { background: #DDE9E6; color: #1F4F49; }
.pill.wait { background: var(--brass-tint); color: #5E4619; }
.pill.flag { background: var(--ink); color: var(--stone); }
.mock-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mock-kpi { padding: 16px; background: var(--stone); display: flex; flex-direction: column; gap: 4px; }
.mock-kpi b { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; }
.mock-kpi span { font-size: 12px; color: var(--ink-slate); }
.mock-note { padding: 10px 20px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-slate); }

/* Arabic mark */
.qmark { display: block; width: 100%; max-width: 480px; height: auto; --mark-ink: var(--ink); }
.qmark-sm { display: block; width: 120px; height: auto; --mark-ink: var(--stone); }
.qm-ink { fill: var(--mark-ink); }
.qm-brass { fill: var(--brass); }
.qm-line, .qm-cord, .qm-pan { fill: none; stroke: var(--mark-ink); vector-effect: non-scaling-stroke; }
.qm-line { stroke-width: 1.5px; } .qm-cord { stroke-width: 1.1px; } .qm-pan { stroke-width: 2px; stroke-linecap: round; }
.translit { font-family: var(--font-mono); font-size: 14px; letter-spacing: .06em; color: var(--ink-slate); }

/* Contact */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-slate); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--ink-mist); border-radius: 2px; }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--ink-slate); }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.contact-card { display: flex; flex-direction: column; gap: 22px; padding: clamp(28px, 3vw, 40px); background: var(--ink); color: var(--stone); }
.contact-card dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.contact-card dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.contact-card dl { margin: 0; display: flex; flex-direction: column; gap: 22px; }

/* CTA band */
.cta { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; padding-block: clamp(72px, 10vw, 140px); }
.cta .beam { width: 100%; max-width: 360px; }
.cta h2 { font-size: clamp(44px, 6vw, 84px); font-weight: 300; line-height: 1.02; }
.cta .lead { max-width: 34em; }

/* Footer */
.footer { display: flex; flex-direction: column; gap: 56px; padding-block: clamp(56px, 6vw, 80px) 36px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 22px; }
.footer-tag { font-family: var(--font-display); font-size: 22px; font-style: italic; font-weight: 300; line-height: 1.2; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ink-haze); }
.footer-col .eyebrow { font-size: 12px; letter-spacing: .18em; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid rgba(236,234,228,.18); }
.footer-base small { font-size: 13px; color: var(--ink-mist); }

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Calculator */
.calc { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3vw, 40px); background: var(--paper); min-width: 0; }
.calc label { display: flex; justify-content: space-between; gap: 12px; }
.calc output { font-family: var(--font-mono); color: var(--ink); letter-spacing: 0; }
.calc input[type=range] { min-height: 32px; padding: 0; border: 0; background: transparent; accent-color: var(--brass-burnished); }
.calc-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc-out div { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--stone); min-width: 0; }
.calc-out span { font-size: 13px; color: var(--ink-slate); }
.calc-out b { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.calc-out .big { grid-column: 1 / -1; background: var(--ink); color: var(--stone); }
.calc-out .big span { color: var(--brass-pale); }
.calc-out .big b { font-size: clamp(36px, 4.4vw, 60px); color: var(--stone); }
.calc .btn { align-self: flex-start; }
/* Glossary */
.gloss { margin: 0; }
.gloss > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 40px; padding: 24px 0; border-top: 1px solid var(--rule); }
.gloss dt { font-family: var(--font-display); font-size: 24px; line-height: 1.2; }
.gloss dd { margin: 0; color: var(--ink-slate); }
@media (max-width: 640px) { .gloss > div { grid-template-columns: 1fr; } }
a.head:hover { text-decoration: none; }
/* Keep labels, headings and text of side by side items on shared rows */
@supports (grid-template-rows: subgrid) {
  .grid-3 > .item, .grid-4 > .item { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 12px; align-content: start; }
  .levers > .lever { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 14px; }
  .steps > .step { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 16px; }
}

/* Commitments thread: six promises joined in order */
.thread { list-style: none; margin: 0; padding: 0; position: relative; max-width: 980px; }
.thread::before { content: ""; position: absolute; left: calc(220px + 28px); top: 18px; bottom: 18px; width: 1px; background: linear-gradient(var(--brass), rgba(180,138,62,.35)); }
.thread-step { display: grid; grid-template-columns: 220px 56px 1fr; align-items: start; padding: 22px 0; }
.thread-step + .thread-step { border-top: 1px solid rgba(236,234,228,.12); }
.thread-stage { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.thread-stage .step-num { font-size: 44px; }
.thread-node { display: flex; justify-content: center; padding-top: 14px; position: relative; z-index: 1; }
.thread-node .diamond { fill: var(--brass); background: var(--ink); box-shadow: 0 0 0 6px var(--ink); }
.thread-body h3 { font-size: 28px; line-height: 1.15; margin: 4px 0 8px; }
.thread-body p { margin: 0; color: var(--ink-haze); max-width: 560px; }
.thread-step:last-child .thread-node .diamond { transform: scale(1.35); }
@media (max-width: 760px) {
  .thread::before { left: 14px; }
  .thread-step { grid-template-columns: 28px 1fr; column-gap: 18px; }
  .thread-stage { grid-column: 2; grid-row: 1; flex-direction: row; align-items: baseline; gap: 14px; text-align: left; }
  .thread-stage .step-num { font-size: 34px; }
  .thread-node { grid-column: 1; grid-row: 1; padding-top: 12px; }
  .thread-body { grid-column: 2; }
  .thread-body h3 { font-size: 24px; }
}
.thread { overflow: hidden; }
.thread-step:last-child .thread-node::after { content: ""; position: absolute; left: 50%; top: 34px; height: 400px; width: 5px; transform: translateX(-50%); background: var(--ink); z-index: -1; }
.thread-node .diamond { position: relative; z-index: 1; }
.note { margin-top: 48px; padding: 28px 32px; background: var(--stone); max-width: 900px; }
.note p { margin: 0; font-size: 17px; color: var(--ink-deep); }
a.head { height: 100%; } a.head .arrow-link { margin-top: auto; }
.form-note:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* v3: self-hosted fonts */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic.woff2") format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* v3: who it is for strip */
.fit-band { border-bottom: 1px solid var(--rule); }
.fit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; margin: 0; }
.fit dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-burnished); margin-bottom: 10px; }
.fit dd { margin: 0; font-size: 17px; color: var(--ink-deep); }
@media (max-width: 860px) { .fit { grid-template-columns: 1fr; } }

/* v3: selected experience */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.stat { border-top: 1px solid currentColor; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.stat b { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--brass-burnished); }
.stat span { font-size: 15px; color: var(--ink-slate); max-width: 22em; }
.case-body { margin-top: 56px; align-items: start; gap: 48px 72px; }
.case-body .h3 { margin: 0 0 14px; }
.case-body .list { margin-top: 18px; }
.case-steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; }
.case-steps li { padding: 18px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.case-steps .num { grid-row: span 2; padding-top: 4px; }
.case-steps h3 { font-size: 21px; line-height: 1.25; margin: 0 0 6px; }
.case-steps p { margin: 0; font-size: 16px; color: var(--ink-slate); }
.case-result { margin-top: 48px; padding: 32px 36px; background: var(--brass-tint); }
.case-result p { margin: 12px 0 0; font-family: var(--font-display); font-size: clamp(20px, 2vw, 24px); line-height: 1.45; color: var(--ink); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }
.vignette .lead { color: var(--ink-haze); }

/* v3: internal links */
.related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.related ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.related a { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 5px; }
.terms { margin-top: 40px; font-size: 15px; color: var(--ink-slate); }
.terms a { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.further h3 a { text-decoration: none; }
.further h3 a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.gloss > div { scroll-margin-top: 120px; }
.gloss > div:target dt { color: var(--brass-burnished); }
#calculator { scroll-margin-top: 90px; }

/* v3: side by side heading blocks share rows, so headings, text and links line up */
@supports (grid-template-rows: subgrid) {
  .grid-2:has(> .head + .head) > .head { display: grid; grid-template-rows: subgrid; grid-row: span 4; align-content: start; }
  .grid-2:has(> .head + .head) > .head > .arrow-link { align-self: start; }
}
