/* Model 42 — multi-page site: what the landing's styles.css does not have (menu, page heads, doors to apply, board,
   stats, ladders, tables, application forms). Same tokens, same type, same glass/mint sheets as the landing. */

/* ---------- header: brand · page menu · two doors (Invest / Partner) ---------- */
.top { gap: 24px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); margin-left: auto; }
.nav a { position: relative; padding: 8px 0; font: 500 14px/1 var(--sans); letter-spacing: .02em; color: var(--muted-on-dark); text-decoration: none; transition: color .3s; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--mint-300); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-on-dark); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.top-cta { display: flex; gap: 10px; }
.btn-ghost { --bg: transparent; color: var(--text-on-dark); box-shadow: 0 0 0 1px rgba(168, 208, 192, .45) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--mint-300) inset, 0 10px 30px -12px rgba(124, 195, 173, .5); background: rgba(168, 208, 192, .08); }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(3, 33, 29, .7); box-shadow: 0 0 0 1px var(--line-dark) inset; cursor: pointer; place-items: center; }
.burger i { display: block; width: 18px; height: 1.5px; background: var(--text-on-dark); position: relative; transition: background .3s; }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text-on-dark); transition: transform .4s var(--ease); }
.burger i::before { top: -6px; } .burger i::after { top: 6px; }
.menu-open .burger i { background: transparent; }
.menu-open .burger i::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger i::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1180px) {   /* 7 links + 2 buttons stop fitting next to the logo */
  .nav, .top-cta { display: none; }
  .burger { display: grid; margin-left: auto; }
}
/* the full-screen menu on small screens: pages as large serif lines, the two doors at the bottom */
.menu { position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 110px var(--gutter) 40px;
  background: radial-gradient(120% 80% at 80% 0%, #0d4c45, var(--ink-950) 70%); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu a.m { font: 350 clamp(30px, 8vw, 48px)/1.15 var(--serif); color: var(--text-on-dark); text-decoration: none; display: flex; align-items: baseline; gap: 16px; }
.menu a.m small { font: 600 11px/1 var(--sans); letter-spacing: .2em; color: var(--mint-400); }
.menu a.m[aria-current="page"] { color: var(--mint-300); }
.menu .menu-doors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.menu-open { overflow: hidden; }
.menu { overflow-y: auto; overscroll-behavior: contain; }   /* the page is locked, so the menu scrolls itself */
@media (max-height: 640px) { .menu { justify-content: flex-start; padding-top: 88px; } .menu a.m { font-size: 28px; } }   /* phone held sideways: 7 lines + 2 buttons do not fit centred */

/* ---------- page head (every inner page) ---------- */
.phero { position: relative; min-height: calc(var(--vh, 1svh) * 78); display: flex; flex-direction: column; justify-content: flex-end; padding: 170px 0 clamp(64px, 8vw, 110px); }
.phero h1 { font-size: clamp(42px, 6.4vw, 96px); line-height: 1.02; font-weight: 350; max-width: 15ch; }
.phero .lede { margin-bottom: 0; }
.crumb { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font: 600 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--mint-300); }
.crumb b { font-weight: 600; color: var(--muted-on-dark); }
.crumb i { width: 28px; height: 1px; background: currentColor; opacity: .6; }
.phero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
/* the page photo has no bottom edge: it reaches 35% below the head and fades to TRANSPARENT (mask), so the 3D helix
   behind the page continues through it — a dark gradient here ended in a hard line where the helix began (client 12.10) */
.phero-img { position: absolute; inset: 0 0 -35% 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0,0,0,.55) 62%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0,0,0,.55) 62%, transparent 100%), linear-gradient(90deg, rgba(0,0,0,.25) 0%, #000 45%);
  mask-composite: intersect; }
.phero-img img { width: 100%; height: 100%; object-fit: cover; opacity: .42; transform: translateY(var(--py, 0)) scale(1.08); }
.phero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,23,20,.75) 10%, rgba(2,23,20,.3) 55%, transparent); }   /* text side darker; no bottom band */

/* ---------- home hero additions: the two doors under the headline ---------- */
.doors-inline { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; font: 600 11px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-on-dark); }
.trust span { display: inline-flex; align-items: center; gap: 10px; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint-400); box-shadow: 0 0 12px var(--mint-400); }

/* ---------- big numbers (all from the deck; each carries its source line) ---------- */
.stats { display: grid; gap: 1px; margin-top: 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-radius: var(--r-lg); overflow: hidden; background: var(--line-dark); box-shadow: 0 0 0 1px var(--line-dark); }
.stats li { padding: 30px 28px 28px; background: linear-gradient(170deg, rgba(14,72,64,.72), rgba(4,34,30,.9)); }
.stats b { display: block; font: 300 clamp(44px, 4.6vw, 68px)/1 var(--serif); letter-spacing: -.02em; background: linear-gradient(180deg, #fff 20%, var(--mint-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: 12px; color: var(--text-on-dark); font-size: 15px; }
.stats small { display: block; margin-top: 4px; color: var(--muted-on-dark); font-size: 12px; letter-spacing: .04em; }
.panel .stats { background: var(--line-light); box-shadow: 0 0 0 1px var(--line-light); }
.panel .stats li { background: #fff; }
.panel .stats b { background: linear-gradient(180deg, var(--teal-700), var(--teal-500)); -webkit-background-clip: text; background-clip: text; }
.panel .stats span { color: var(--text-on-light); }
.panel .stats small { color: var(--muted-on-light); }

/* ---------- page index cards (home → every page) ---------- */
.index { display: grid; gap: 18px; margin-top: 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.index a { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 230px; padding: 30px 30px 28px; border-radius: var(--r-lg); text-decoration: none; overflow: hidden;
  background: linear-gradient(170deg, rgba(14,72,64,.66), rgba(4,34,30,.9)); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 0 0 1px var(--line-dark), 0 30px 60px -30px rgba(0,0,0,.8);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.index a:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 0 0 1px rgba(168,208,192,.4), 0 40px 70px -30px rgba(0,0,0,.9); }
.index small { font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--mint-400); }
.index h3 { font-size: clamp(24px, 2vw, 30px); }
.index p { color: var(--muted-on-dark); }
.index .go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--sans); letter-spacing: .08em; color: var(--mint-300); }
.index .go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.index a:hover .go svg { transform: translateX(5px); }

/* ---------- the two doors (investor / partner) — the end of every page ---------- */
.doors { display: grid; gap: 18px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.door { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 44px); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--text-on-dark);
  background: radial-gradient(140% 90% at var(--mx, 80%) var(--my, 0%), rgba(168,208,192,.22), transparent 55%), linear-gradient(165deg, #12645a, #052f2a);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 0 0 1px var(--line-dark), 0 40px 80px -30px rgba(0,0,0,.85); }
.door.alt { background: radial-gradient(140% 90% at var(--mx, 80%) var(--my, 0%), rgba(168,208,192,.16), transparent 55%), linear-gradient(165deg, #0b3f39, #03211d); }
.door small { font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--mint-300); }
.door h3 { font-size: clamp(28px, 2.6vw, 40px); font-weight: 350; }
.door p { color: var(--muted-on-dark); max-width: 44ch; }
.door ul { display: grid; gap: 8px; margin: 6px 0 4px; }
.door li { position: relative; padding-left: 22px; color: var(--text-on-dark); font-size: 15px; }
.door li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg, var(--mint-300), var(--teal-500)); }
.door .btn { align-self: flex-start; margin-top: 10px; }
.panel .door p { color: var(--muted-on-dark); }

/* ---------- next page (commitment ladder: one obvious step forward) ---------- */
.next { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: clamp(40px, 5vw, 64px) 0 0; margin-top: clamp(64px, 8vw, 96px); border-top: 1px solid var(--line-dark); text-decoration: none; }
.next small { display: block; font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--mint-400); margin-bottom: 14px; }
.next b { font: 350 clamp(34px, 5vw, 72px)/1 var(--serif); color: var(--text-on-dark); transition: color .3s; }
.next svg { width: 56px; height: 56px; fill: none; stroke: var(--mint-300); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.next:hover b { color: var(--mint-300); }
.next:hover svg { transform: translateX(10px); }

/* ---------- vision / mission ---------- */
.vm { display: grid; gap: 18px; margin-top: 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.vm article { padding: clamp(28px, 3vw, 44px); border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line-light), 0 30px 60px -30px rgba(15,92,85,.4); }
.vm small { font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--teal-600); }
.vm p { margin-top: 18px; font: 350 clamp(22px, 2vw, 30px)/1.25 var(--serif); color: var(--text-on-light); }

/* ---------- numbered ladders (investment model, how we start, diagnostics loop) ---------- */
.ladder { display: grid; gap: 14px; margin-top: 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: n; }
.ladder li { position: relative; padding: 26px 22px 24px; border-radius: var(--r-md); background: linear-gradient(170deg, rgba(14,72,64,.6), rgba(4,34,30,.88)); box-shadow: 0 0 0 1px var(--line-dark), 0 1px 0 rgba(255,255,255,.1) inset; }
.ladder li::before { counter-increment: n; content: counter(n, decimal-leading-zero); display: block; margin-bottom: 26px; font: 300 34px/1 var(--serif); color: var(--mint-300); }
.ladder h3 { font-size: 20px; }
.ladder p { margin-top: 8px; color: var(--muted-on-dark); font-size: 15px; }
.panel .ladder li { background: #fff; box-shadow: 0 0 0 1px var(--line-light), 0 24px 50px -30px rgba(15,92,85,.4); }
.panel .ladder li::before { color: var(--teal-500); }
.panel .ladder h3 { color: var(--text-on-light); }
.panel .ladder p { color: var(--muted-on-light); }
.note { margin-top: 30px; padding-left: 18px; border-left: 2px solid var(--mint-400); font: 300 italic clamp(19px, 1.6vw, 24px)/1.4 var(--serif); color: var(--text-on-dark); max-width: 56ch; }
.panel .note { color: var(--text-on-light); border-color: var(--teal-500); }

/* ---------- two-column feature rows (image + copy) ---------- */
.row { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(56px, 7vw, 96px); }
@media (min-width: 960px) { .row { grid-template-columns: 1fr 1fr; } .row.flip > :first-child { order: 2; } }
.row-img { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 40px 80px -40px rgba(0,0,0,.85), 0 0 0 1px var(--line-dark); }
.row-img > img { width: 100%; height: 100%; object-fit: cover; }
.row-img .work-logo, .row-img .work-badge { z-index: 2; }
.row h2 { font-size: clamp(30px, 3.4vw, 50px); }
.row .tags { margin-top: 22px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 14px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-900); background: var(--mint-300); }
.status.dev { color: var(--mint-300); background: transparent; box-shadow: 0 0 0 1px rgba(168,208,192,.5) inset; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.facts { display: grid; gap: 10px; margin-top: 20px; }
.facts li { position: relative; padding-left: 22px; color: var(--muted-on-dark); }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg, var(--mint-300), var(--teal-500)); }
.panel .facts li { color: var(--muted-on-light); }
.fine { margin-top: 18px; font-size: 13px; color: var(--muted-on-dark); max-width: 60ch; }
.panel .fine { color: var(--muted-on-light); }

/* ---------- client logos (Clinics On Cloud, per the company) ---------- */
.logos { display: grid; gap: 1px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); border-radius: var(--r-md); overflow: hidden; background: var(--line-light); box-shadow: 0 0 0 1px var(--line-light); }
.logos li { display: grid; place-items: center; padding: 22px 20px; background: #fff; min-height: 104px; }
.logos img { max-height: 54px; width: auto; max-width: 100%; filter: grayscale(1) contrast(1.05); opacity: .72; transition: filter .4s, opacity .4s; }
.logos li:hover img { filter: none; opacity: 1; }

/* ---------- status board (what operates now vs what is being built) ---------- */
.board2 { display: grid; gap: 18px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.board2 article { padding: 30px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line-light), 0 30px 60px -30px rgba(15,92,85,.4); }
.board2 h3 { color: var(--text-on-light); margin: 12px 0 18px; }
.board2 ol { display: grid; gap: 10px; counter-reset: b; }
.board2 li { display: flex; gap: 14px; align-items: baseline; color: var(--text-on-light); }
.board2 li::before { counter-increment: b; content: counter(b, decimal-leading-zero); font: 600 12px/1 var(--sans); color: var(--teal-500); }
.board2 .status { margin: 0; }
.board2 .status.dev { color: var(--teal-600); box-shadow: 0 0 0 1px rgba(15,92,85,.35) inset; }

/* ---------- entry models table ---------- */
.models { width: 100%; margin-top: 48px; border-collapse: separate; border-spacing: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--line-dark); font-size: 15px; }
.models th, .models td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line-dark); }
.models th { font: 600 11px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mint-300); background: rgba(7,45,40,.75); }
.models td { background: rgba(3,33,29,.6); color: var(--muted-on-dark); }
.models td:first-child { color: var(--text-on-dark); font: 400 18px/1.3 var(--serif); }
.models tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .models th, .models td { padding: 14px 12px; } .models td:first-child { font-size: 16px; } }

/* ---------- team: executive set (landing) + the advisory board ---------- */
.board-grid { display: grid; gap: 18px; margin-top: 48px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.adv-card { border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line-light), 0 30px 60px -30px rgba(15,92,85,.45); }
.adv-photo { position: relative; aspect-ratio: 900 / 1102; overflow: hidden; background: #e9efed; }
.adv-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1s var(--ease), filter .6s; }
.adv-photo img.g { filter: grayscale(1) contrast(1.04); }   /* the one colour photo (Dr. Khan) shown b/w like the rest; colour on hover */
.adv-card:hover .adv-photo img { transform: scale(1.04); }
.adv-card:hover .adv-photo img.g { filter: none; }
.adv-card h3 { padding: 20px 22px 6px; font-size: 21px; color: var(--text-on-light); }
.adv-card p { padding: 0 22px 24px; font: 600 11.5px/1.55 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); }
.adv-card.feat { grid-column: 1 / -1; display: grid; }
@media (min-width: 860px) { .adv-card.feat { grid-template-columns: 340px 1fr; } .adv-card.feat .adv-photo { aspect-ratio: auto; min-height: 100%; } }
.adv-card.feat .adv-body { padding: clamp(24px, 3vw, 40px); }
.adv-card.feat h3 { padding: 0; font-size: clamp(26px, 2.4vw, 34px); }
.adv-card.feat .role2 { margin-top: 8px; font: 600 12px/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal-600); }
.adv-card.feat .facts { margin-top: 22px; }
.adv-card.feat .adv-stats { margin-top: 26px; }
.adv-stats { display: flex; flex-wrap: wrap; gap: 28px; }
.adv-stats b { display: block; font: 300 40px/1 var(--serif); color: var(--teal-700); }
.adv-stats span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted-on-light); max-width: 18ch; }
.person-photo img.c { pointer-events: none; }
.group-h { margin-top: clamp(72px, 9vw, 120px); }

/* ---------- application forms: two doors on one page ---------- */
.apply { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .apply { grid-template-columns: .9fr 1.1fr; gap: 72px; } }
.tabs { display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px; background: rgba(3,33,29,.7); box-shadow: 0 0 0 1px var(--line-dark) inset; margin-bottom: 22px; }
.tabs button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--muted-on-dark); font: 600 14px/1 var(--sans); cursor: pointer; transition: background .3s, color .3s; }
.tabs button[aria-selected="true"] { background: linear-gradient(135deg, #c9e8dc, var(--mint-300) 45%, #6fb7a2); color: var(--ink-900); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form select { width: 100%; padding: 26px 40px 10px 18px; border: 0; border-radius: 16px; appearance: none; -webkit-appearance: none;
  background: rgba(2, 23, 20, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a8d0c0' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 18px center;
  color: var(--text-on-dark); font: 400 16px/1.4 var(--sans); box-shadow: 0 0 0 1px var(--line-dark) inset, 0 2px 6px rgba(0,0,0,.25) inset; }
.form select:focus { outline: none; box-shadow: 0 0 0 1.5px var(--mint-300) inset; }
.form select option { background: var(--ink-900); color: var(--text-on-dark); }
.field .lab { position: absolute; left: 18px; top: 9px; font-size: 12.5px; color: var(--mint-300); pointer-events: none; }
.field.bad select { box-shadow: 0 0 0 1.5px #f2a38f inset; }
.form-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.form-grid .field + .field { margin-top: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted-on-dark); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--mint-400); }
.consent.bad { color: #f6b7a7; }
.after { display: grid; gap: 14px; margin-top: 30px; counter-reset: a; }
.after li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.after li::before { counter-increment: a; content: counter(a); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 600 14px/1 var(--sans); color: var(--ink-900); background: linear-gradient(135deg, #d6efe6, var(--mint-300)); }
.after b { display: block; color: var(--text-on-dark); font-weight: 600; }
.after span { color: var(--muted-on-dark); font-size: 15px; }
.done { display: none; padding: 34px; text-align: left; }
.done h3 { font-size: 30px; }
.done p { margin-top: 12px; color: var(--muted-on-dark); }
.form.sent .done { display: block; }   /* the filled fields stay: the visitor can fix them or copy the text */
.done { margin-top: 18px; padding: 22px 24px; border-radius: 16px; background: rgba(168,208,192,.08); box-shadow: 0 0 0 1px var(--line-dark) inset; }
.done .done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.contact-lines { display: grid; gap: 16px; margin-top: 36px; }
.contact-lines a, .contact-lines p { display: flex; gap: 14px; align-items: center; color: var(--text-on-dark); text-decoration: none; }
.contact-lines .ico { width: 46px; height: 46px; border-radius: 14px; }

/* ---------- disclaimer ---------- */
.legal { display: grid; gap: 14px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.legal li { padding: 22px; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line-dark); font-size: 13.5px; color: var(--muted-on-dark); }
.legal b { display: block; margin-bottom: 8px; font: 600 11px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mint-300); }

/* ---------- exclusivity line (private dinner etc.) ---------- */
.invite { display: grid; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); overflow: hidden; position: relative;
  background: linear-gradient(90deg, rgba(3,33,29,.96) 30%, rgba(3,33,29,.5)), url(assets/img/dinner.webp) 70% 50% / cover no-repeat; box-shadow: 0 0 0 1px var(--line-dark), 0 40px 90px -40px rgba(0,0,0,.9); }
@media (min-width: 900px) { .invite { grid-template-columns: 1.2fr .8fr; } }
.invite h2 { font-size: clamp(32px, 3.6vw, 54px); }
.invite .eyebrow { color: var(--mint-300); }

/* ---------- comments only for reviewers (?comments) ---------- */
html:not(.reviewing) .cm-fab { display: none; }

/* footer: page columns */
.foot-grid.cols { grid-template-columns: 1fr; }
@media (min-width: 900px) { .foot-grid.cols { grid-template-columns: 1.2fr .8fr .8fr 1.2fr; } .foot-grid.cols > div:last-child { text-align: left; } }
.foot h4 { margin: 0 0 14px; font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--mint-300); }
.foot ul { display: grid; gap: 8px; }
.foot ul a { color: var(--muted-on-dark); }
.foot ul a:hover { color: var(--text-on-dark); }
.foot .disc { margin-top: 26px; font-size: 12px; line-height: 1.6; opacity: .7; max-width: 90ch; }

@media (max-width: 640px) {
  .phero { padding-top: 130px; min-height: auto; }
  .next svg { width: 40px; height: 40px; }
  /* footer links were 19 px tall — too small for a finger; 40 px rows, same look */
  .foot ul { gap: 0; }
  .foot ul a, .foot-grid p a { display: inline-block; padding: 10px 0; }
}

/* home hero: the deck's longer headline needs a wider measure than the landing's 11ch */
.hero h1.hero-wide { max-width: 15ch; font-size: clamp(42px, 6.2vw, 92px); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* no JavaScript (blocked or failed): no preloader over the page, and both forms visible (they post to the mail app) */
html:not(.js) .preload { display: none; }
html:not(.js) .apply-forms .form[hidden] { display: flex; margin-top: 18px; }
html:not(.js) .tabs { display: none; }
html:not(.js) .step { opacity: 1; position: static; transform: none; }   /* the six stages are read as a list */

/* ---------- small pieces used by the pages ---------- */
a.inl { color: var(--mint-300); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.panel a.inl, .vm a.inl { color: var(--teal-700); }
.chain-dark { color: var(--teal-600); }
.chain-dark i { background: linear-gradient(90deg, var(--teal-500), transparent); }
.quote-dark { color: var(--text-on-dark); }
.adv-stats.light { margin-top: 26px; }
.adv-stats.light b { background: linear-gradient(180deg, #fff 20%, var(--mint-300)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(40px, 4vw, 56px); }
.adv-stats.light span { color: var(--muted-on-dark); }
.card .status { align-self: flex-start; margin: 10px 0 0; }
.panel:not(.panel-dark) .card .status.dev { color: var(--teal-600); box-shadow: 0 0 0 1px rgba(15,92,85,.35) inset; }
.row .facts b { color: var(--text-on-dark); font-weight: 600; }
/* NAZR: the logo on a white tile, like the deck slide */
.nazr-card { display: grid; place-items: center; gap: 22px; padding: 40px; background: linear-gradient(160deg, #ffffff, #e9f4ef); }
.nazr-card img { width: min(46%, 220px); height: auto; }
.nazr-card span { text-align: center; font: 400 28px/1.2 var(--serif); color: var(--text-on-light); }
.nazr-card small { display: block; margin-top: 8px; font: 600 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teal-600); }
/* contact page: the application sits in the first screen */
.contact-sec { padding-top: clamp(130px, 14vw, 180px); }
.apply-copy h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; font-weight: 350; max-width: 13ch; }
.apply-copy .lede { margin-bottom: 0; }
.apply-forms .form { display: flex; flex-direction: column; }
.apply-forms .form[hidden] { display: none; }

/* fixes after the first look (2026-10-11): the ANF emblem is a corner badge, not a cover photo; logos sit 4 × 2 */
.row-img > img.work-badge { width: 76px; height: 76px; object-fit: contain; z-index: 3; }
.logos { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.who h2.display { max-width: 22ch; }
.invite { background: linear-gradient(90deg, rgba(3,33,29,.95) 28%, rgba(3,33,29,.35)), url(assets/img/dinner.webp) 70% 62% / cover no-repeat; }

/* no JavaScript: the ecosystem rail cannot open panels, so it is shown as the stacked list (same as on phones) */
html:not(.js) .adv-rail { flex-direction: column; height: auto; }
html:not(.js) .rail-item { flex: none; min-height: 0; padding: 22px 22px 24px 112px; }
html:not(.js) .rail-item .ico { opacity: 1; transform: none; left: 18px; right: auto; top: 50%; margin-top: -40px; width: 80px; height: 80px; border-radius: 24px; }
html:not(.js) .rail-title, html:not(.js) .rail-text { position: static; opacity: 1; transform: none; white-space: normal; display: block; }
html:not(.js) .rail-title { font-size: 22px; }
html:not(.js) .rail-text { margin-top: 6px; }

/* no JavaScript: the six-stage block is not scroll-driven, so it is an ordinary section, not 520vh with a sticky panel */
html:not(.js) .steps-sec { height: auto; }
html:not(.js) .steps-pin { position: static; height: auto; }

/* team: six people (client 13.10) -> two rows of three instead of 4 + 2 */
@media (min-width: 1001px) { .team { grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin-left: auto; margin-right: auto; } }

/* ---------- language menu (EN · RU · AR): one quiet pill right after «For investors», a small glass panel under it ---------- */
.lang { position: relative; flex: none; }
.top .lang { margin-inline-start: -12px; }   /* sits close to the two doors, not a full header gap away */
.lang-btn { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px 0 11px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 12px/1 var(--sans); letter-spacing: .12em; color: var(--text-on-dark); background: rgba(3, 33, 29, .55); box-shadow: 0 0 0 1px var(--line-dark) inset; transition: box-shadow .3s, background .3s; }
.lang-btn:hover, .lang.open .lang-btn { box-shadow: 0 0 0 1px var(--mint-300) inset; background: rgba(168, 208, 192, .08); }
.lang-btn:focus-visible { outline: 2px solid var(--mint-300); outline-offset: 3px; }
.lang-globe { width: 16px; height: 16px; fill: none; stroke: var(--mint-300); stroke-width: 1.5; }
.lang-chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .3s var(--ease); }
.lang.open .lang-chev { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; min-width: 190px; margin: 0; padding: 6px; list-style: none; border-radius: 16px;
  background: rgba(3, 33, 29, .9); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 0 0 1px var(--line-dark) inset, 0 18px 44px rgba(0, 0, 0, .38);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease), visibility 0s; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 14px; border-radius: 11px;
  color: var(--muted-on-dark); text-decoration: none; font: 500 15px/1.2 var(--sans); letter-spacing: 0; transition: background .2s, color .2s; }
.lang-menu a:hover, .lang-menu a:focus-visible { color: var(--text-on-dark); background: rgba(168, 208, 192, .09); outline: none; }
.lang-menu a[aria-checked="true"] { color: var(--text-on-dark); }
.lang-menu a[lang="ar"] span { font-family: "M42 Arabic", Tahoma, var(--sans); font-size: 15px; }
.lang-menu small { display: flex; align-items: center; gap: 8px; font: 600 10px/1 var(--sans); letter-spacing: .16em; color: var(--mint-300); opacity: .8; }
.lang-menu a[aria-checked="true"] small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint-300); box-shadow: 0 0 10px var(--mint-300); }
@media (max-width: 1240px) { .nav, .top-cta { display: none; } .burger { display: grid; margin-inline-start: 0; } .top .lang { margin-inline-start: auto; } .lang-btn { height: 46px; } }

/* ---------- Russian pages: Fraunces has no Cyrillic — Playfair Display draws the Cyrillic letters (same high contrast and ball
   terminals, so RU and EN read as one typeface); Latin words inside Russian text stay in Fraunces. Longer labels fold the menu earlier ---------- */
html[lang="ru"] { --serif: Fraunces, "Playfair Display", Georgia, serif; }
html[lang="ru"] :is(.quote, .note) { font-style: normal; }
/* the full menu stays on laptops (≥1241, like EN): a burger here made the Russian site look like a single page on a MacBook.
   Room is made instead: the CTAs never wrap, the ghost "become a partner" door goes first (the menu has «Партнёрам»),
   then the investor door (the menu has «Инвесторам») */
html[lang="ru"] .top-cta .btn { white-space: nowrap; }
@media (max-width: 1520px) { html[lang="ru"] .top-cta .btn-ghost { display: none; } }
@media (max-width: 1320px) { html[lang="ru"] .top-cta { display: none; } }
html[lang="ru"] :is(h1, h2, h3) { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }   /* long Russian words in display sizes on phones */
@media (max-width: 480px) { html[lang="ru"] h2.display { font-size: clamp(28px, 8.2vw, 38px); } }   /* 16-letter Russian words ("коммерциализации.") are wider than a phone at 38px: the period broke onto its own line */
html[lang="ru"] .hero h1.hero-wide { max-width: 19ch; font-size: clamp(36px, 4.6vw, 72px); }   /* the Russian line is ~1.5× longer */
@media (max-width: 1240px) { html[lang="ru"] .scroll-cue { display: none; } }   /* the Russian trust line wraps here and would run into it */

/* ---------- Arabic pages: right to left, IBM Plex Sans Arabic, no letter-spacing (it tears Arabic letters apart), no italics ---------- */
/* IBM Plex Sans Arabic, self-hosted so it can be enlarged as a whole: Arabic letters look ~15% smaller than Latin at the same px,
   size-adjust scales every Arabic text on the page at once (Latin words keep the normal size) */
@font-face { font-family: "M42 Arabic"; font-style: normal; font-weight: 300; font-display: swap; size-adjust: 118%; src: url(assets/fonts/ibm-plex-sans-arabic-300.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "M42 Arabic"; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 118%; src: url(assets/fonts/ibm-plex-sans-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "M42 Arabic"; font-style: normal; font-weight: 500; font-display: swap; size-adjust: 118%; src: url(assets/fonts/ibm-plex-sans-arabic-500.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "M42 Arabic"; font-style: normal; font-weight: 600; font-display: swap; size-adjust: 118%; src: url(assets/fonts/ibm-plex-sans-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
html[lang="ar"] { --sans: "M42 Arabic", -apple-system, "Segoe UI", Tahoma, system-ui, sans-serif; --serif: var(--sans); }
html[lang="ar"] body, html[lang="ar"] body * { letter-spacing: 0 !important; }
html[lang="ar"] :is(h1, h2) { font-weight: 400; line-height: 1.3; }
html[lang="ar"] :is(.quote, .note, em, i) { font-style: normal; }
html[dir="rtl"] :is(.ico-inline, .go svg, .next svg) { transform: scaleX(-1); }   /* arrows point the reading way */
html[dir="rtl"] .world-veil { transform: scaleX(-1); }   /* the darkening follows the copy to the right */
html[dir="rtl"] .world-fallback { transform: scaleX(-1); }   /* the still helix sits left, like the live one */
html[dir="rtl"] .next:hover svg { transform: scaleX(-1) translateX(10px); }
html[dir="rtl"] .hp { left: auto; right: -9999px; }   /* off-page to the right: in RTL a far-left box would widen the page by 10 000 px */
html[dir="rtl"] .marquee { direction: ltr; } html[dir="rtl"] .marquee-track { animation-direction: reverse; }   /* the loop is built left-to-right; reversed, the words drift toward the reading direction */
html[dir="rtl"] .marquee-track > * { direction: rtl; }
html[dir="rtl"] .note { padding-left: 0; padding-right: 18px; border-left: 0; border-right: 2px solid var(--mint-400); }
@media (max-width: 1320px) { html[lang="ar"] .nav, html[lang="ar"] .top-cta { display: none; } html[lang="ar"] .burger { display: grid; margin-inline-start: 0; } html[lang="ar"] .top .lang { margin-inline-start: auto; } }

/* ---------- two offices in the footer and on Contact: Dubai and Moscow ---------- */
.foot p.addr b, .contact-lines p.addr b { display: block; margin-bottom: 4px; font: 600 11px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mint-300); }
.foot p.addr + p.addr { margin-top: 14px; }

/* application delivered to the team (api/apply.js): the form folds into its confirmation */
.form.delivered > :not(.done) { display: none; }
.form.delivered .done { margin-top: 0; }

/* ---------- offices: Dubai · Moscow on a dotted map (assets/img/offices-map.svg from tools/offices_map.py) ---------- */
.offices .omap { position: relative; margin-top: 44px; display: grid; gap: 24px; padding: clamp(14px, 2vw, 26px); border-radius: 28px;
  background: radial-gradient(80% 70% at 60% 55%, rgba(30, 110, 92, .28), transparent 70%), #021a17;   /* opaque: the 3D helix stays behind it */
  box-shadow: 0 0 0 1px var(--line-dark) inset, 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
@media (min-width: 980px) { .offices .omap { grid-template-columns: 1.55fr 1fr; align-items: center; } }
.omap-stage { position: relative; direction: ltr; aspect-ratio: 1200 / 1084; max-height: 640px; margin-inline: auto; width: 100%; }
@media (min-width: 980px) { .omap-stage { width: auto; height: min(640px, 52vw); } }
.omap-dots, .omap-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.omap-dots { -webkit-mask: radial-gradient(85% 80% at 55% 50%, #000 62%, transparent 100%); mask: radial-gradient(85% 80% at 55% 50%, #000 62%, transparent 100%); }
.omap-route path { fill: none; stroke-linecap: round; }
.route-base { stroke: rgba(168, 208, 192, .7); stroke-width: 2.5; stroke-dasharray: 2 9; }
.route-glow { stroke: var(--mint-300); stroke-width: 3.5; stroke-dasharray: 140 860; filter: drop-shadow(0 0 6px var(--mint-300));
  animation: route-run 4.2s cubic-bezier(.45, 0, .25, 1) infinite; }   /* a light runs Dubai → Moscow, then starts again */
@keyframes route-run { from { stroke-dashoffset: 140; } to { stroke-dashoffset: -1000; } }
.pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; text-decoration: none; color: var(--text-on-dark); z-index: 2; }
.pin-dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--mint-300);
  box-shadow: 0 0 0 4px rgba(3, 33, 29, .9), 0 0 18px 4px rgba(127, 214, 186, .75); transition: transform .3s var(--ease); }
.pin-wave { position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--mint-300);
  opacity: 0; animation: pin-pulse 2.6s cubic-bezier(.2, .6, .3, 1) infinite; }
.pin-wave + .pin-wave { animation-delay: 1.3s; }
.pin-moscow .pin-wave { animation-delay: .65s; } .pin-moscow .pin-wave + .pin-wave { animation-delay: 1.95s; }
@keyframes pin-pulse { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.pin-tag { position: absolute; left: 22px; top: -26px; display: grid; gap: 4px; padding: 9px 14px 10px; border-radius: 14px; white-space: nowrap;
  font: 400 18px/1.1 var(--serif); background: rgba(3, 33, 29, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px var(--line-dark) inset; transition: box-shadow .3s; }
.pin-tag small { font: 600 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mint-300); }
.pin-dubai .pin-tag { left: auto; right: 22px; text-align: right; }   /* Dubai sits near the right edge: its label opens to the left */
.pin:hover .pin-dot, .pin:focus-visible .pin-dot { transform: scale(1.35); }
.pin:hover .pin-tag, .pin:focus-visible .pin-tag { box-shadow: 0 0 0 1px var(--mint-300) inset; }
.route-tag { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); margin: 0; display: grid; justify-items: center; gap: 2px;
  font: 600 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); text-align: center; }
.route-tag b { font: 400 22px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--text-on-dark); }
.offices-list { display: grid; gap: 14px; }
.office { position: relative; padding: 22px 24px; border-radius: 20px; background: rgba(168, 208, 192, .05); box-shadow: 0 0 0 1px var(--line-dark) inset; transition: background .3s, box-shadow .3s; }
.office:hover { background: rgba(168, 208, 192, .09); box-shadow: 0 0 0 1px rgba(127, 214, 186, .45) inset; }
.office-city { margin: 0; font: 400 clamp(28px, 2.6vw, 36px)/1.05 var(--serif); color: var(--text-on-dark); }
.office-role { margin: 8px 0 0; font: 600 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mint-300); }
.office-addr { margin: 12px 0 0; color: var(--muted-on-dark); }
.office-time { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 0; font-size: 13px; color: var(--muted-on-dark); }
.office-time .clock { font: 400 26px/1 var(--serif); color: var(--text-on-dark); font-variant-numeric: tabular-nums; }
.office-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font: 600 13px/1 var(--sans); color: var(--mint-300); text-decoration: none; }
.office-go .ico-inline { width: 16px; height: 16px; }
.office-go:hover { color: var(--text-on-dark); }
/* card ↔ pin: pointing at an office lights up its city on the map */
.omap:has(.office-dubai:hover) .pin-dubai .pin-dot, .omap:has(.office-moscow:hover) .pin-moscow .pin-dot { transform: scale(1.5); }
.omap:has(.office-dubai:hover) .pin-dubai .pin-tag, .omap:has(.office-moscow:hover) .pin-moscow .pin-tag { box-shadow: 0 0 0 1px var(--mint-300) inset; }
@media (max-width: 620px) { .pin-tag { font-size: 0; gap: 0; padding: 7px 10px; left: 16px; } .pin-dubai .pin-tag { left: auto; right: 16px; } .pin-tag small { font-size: 10px; } .route-tag { display: none; } .pin-wave { left: -26px; top: -26px; width: 52px; height: 52px; } }
html[dir="rtl"] .pin-tag, html[dir="rtl"] .route-tag { direction: rtl; }   /* the map keeps real geography; only the labels read right-to-left */
@media (prefers-reduced-motion: reduce) { .route-glow, .pin-wave { animation: none; } .route-glow { stroke-dasharray: none; opacity: .5; } }
html.is-scrolling .route-glow, html.is-scrolling .pin-wave { animation-play-state: paused; }
