/* Medixcel story site. One continuous scroll, one persistent particle scene.
   Tokens from the Medixcel identity system; white first, navy only at the close. */
:root {
  --white: #FFFFFF; --navy: #050A34; --blue: #075BEF; --blue-light: #8FB3FF; --blue-deep: #0550D6;
  --ink: #2A3350; --ink-muted: #5A6580; --line: #D8E1F0; --line-strong: #8391B0;
  --mist: #F6F9FE; --pale: #E8F0FE; --pale-2: #CFE0FB;
  --on-navy-muted: #C3CEEE; --navy-raised: #0F1756; --navy-line: #2B3676; --gold: #DFA43A;
  --font-display: Inter, "Segoe UI", Arial, sans-serif;
  --font-text: Inter, "Segoe UI", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-arabic: Saudi, Inter, Tahoma, Arial, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bar-h: 72px;
  color-scheme: light;
}
@font-face { font-family: "Saudi"; src: url("../assets/fonts/Saudi-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Saudi"; src: url("../assets/fonts/Saudi-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Arabic edition */
html[dir="rtl"] body { font-family: var(--font-arabic); font-size: 18px; line-height: 1.75; letter-spacing: 0; }
html[dir="rtl"] .display-xl, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] .eyebrow, html[dir="rtl"] .statement, html[dir="rtl"] .lead, html[dir="rtl"] .serif { font-family: var(--font-arabic); letter-spacing: 0; margin-inline-start: 0; }
html[dir="rtl"] .display-xl { font-weight: 700; line-height: 1.12; }
html[dir="rtl"] .eyebrow { text-transform: none; letter-spacing: 0; font-size: 15px; }
html[dir="rtl"] .num, html[dir="rtl"] .latin, html[dir="rtl"] .stat-value, html[dir="rtl"] .step-num { font-family: var(--font-text); direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .latin { font-size: .9em; }

/* Scene canvas and smooth-scroll wrappers */
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(900px 700px at 82% 12%, rgba(7, 91, 239, .085), transparent 66%), radial-gradient(700px 600px at 10% 90%, rgba(7, 91, 239, .05), transparent 66%); transition: opacity .6s var(--ease); }
.scene-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#smooth-wrapper { position: relative; z-index: 1; }
#smooth-content { overflow: visible; width: 100%; }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--white); display: grid; place-items: center; transition: opacity .5s var(--ease), visibility .5s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader .inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader .inner svg { height: 40px; width: auto; }
.loader .inner svg path { animation: logoIn .8s var(--ease) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.loader .line { width: 160px; height: 2px; background: var(--line); overflow: hidden; border-radius: 1px; }
.loader .line i { display: block; height: 100%; width: 0; background: var(--blue); }
.loader .tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
html[dir="rtl"] .loader .tag { letter-spacing: 0; text-transform: none; font-size: 14px; }

/* Top bar */
.bar { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 60; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 4vw, 48px); transition: color .4s; }
.bar .logo svg { height: 28px; width: auto; }
.bar .logo .white { display: none; }
.bar.on-dark .logo .colour { display: none; }
.bar.on-dark .logo .white { display: block; }
.bar .chapter-name { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); display: flex; align-items: center; gap: 12px; }
.bar .chapter-name::before { content: ""; width: 24px; height: 2px; background: var(--blue); }
html[dir="rtl"] .bar .chapter-name { letter-spacing: 0; text-transform: none; font-size: 14px; }
.bar.on-dark .chapter-name { color: var(--on-navy-muted); }
.bar .actions { display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 13px; color: var(--navy); background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease); }
.pill:hover { border-color: var(--blue); transform: translateY(-1px); }
.pill .ic { width: 16px; height: 16px; }
.pill-primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pill-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.bar.on-dark .pill { color: var(--white); border-color: var(--navy-line); background: rgba(5,10,52,.5); }
.bar.on-dark .pill-primary { background: var(--white); color: var(--navy); border-color: var(--white); }
@media (max-width: 720px) { .bar .chapter-name { display: none; } .pill-primary span { display: none; } .pill-primary { padding: 0 12px; } }

/* Chapter rail */
.rail { position: fixed; top: 50%; transform: translateY(-50%); inset-inline-end: 22px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.rail a { position: relative; display: block; width: 22px; height: 22px; }
.rail a::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--line-strong); opacity: .55; transition: transform .25s var(--ease), background .25s, opacity .25s; }
.rail a:hover::after, .rail a.active::after { background: var(--blue); opacity: 1; transform: scale(1.5); }
.rail a span { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 28px; white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); opacity: 0; transition: opacity .2s; pointer-events: none; }
html[dir="rtl"] .rail a span { letter-spacing: 0; text-transform: none; font-size: 13px; }
.rail a:hover span, .rail a.active span { opacity: 1; }
.rail.on-dark a::after { background: var(--on-navy-muted); }
.rail.on-dark a.active::after { background: var(--white); }
.rail.on-dark a span { color: var(--on-navy-muted); }
@media (max-width: 860px) { .rail { display: none; } }

/* Type */
h1, h2, h3 { margin: 0; color: var(--navy); font-family: var(--font-display); text-wrap: balance; }
.display-xl { font-weight: 800; font-size: clamp(44px, 8.2vw, 116px); line-height: .98; letter-spacing: -.035em; margin-inline-start: -.045em; max-width: 11ch; }
.h-xl { font-weight: 800; font-size: clamp(34px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.03em; margin-inline-start: -.045em; }
.h-lg { font-weight: 700; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.025em; margin-inline-start: -.045em; }
.h-md { font-weight: 600; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; letter-spacing: -.01em; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--blue); flex: none; }
.lead { font-family: var(--font-serif); font-size: clamp(18px, 1.7vw, 23px); line-height: 1.5; color: var(--ink); max-width: 56ch; }
.serif { font-family: var(--font-serif); }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 1.55; }
.measure { max-width: 62ch; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; will-change: transform; }
.stack { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* Chapters */
.chapter { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--bar-h) + 24px) var(--gutter) 64px; }
.chapter .inner { width: min(1240px, 100%); margin-inline: auto; position: relative; }
.chapter.pinned .inner { width: min(1240px, 100%); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-start { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding-top: calc(var(--bar-h) + 6vh); }
.hero .inner { display: grid; gap: 28px; }
.hero .lead { max-width: 50ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s; }
.btn .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .ic { transform: translateX(-3px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(7,91,239,.22); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-ghost { border-color: var(--navy-line); color: var(--white); }
.btn-ghost:hover { background: var(--navy-raised); }
.scroll-cue { position: absolute; bottom: 28px; inset-inline-start: var(--gutter); display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
html[dir="rtl"] .scroll-cue { letter-spacing: 0; text-transform: none; font-size: 13px; }
.scroll-cue .line { width: 56px; height: 1.5px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform-origin: left; animation: cue 2.2s var(--ease) infinite; }
html[dir="rtl"] .scroll-cue .line::after { transform-origin: right; }
@keyframes cue { 0% { transform: scaleX(0); } 55% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* Purpose */
.purpose .statement { font-family: var(--font-serif); font-size: clamp(26px, 3.6vw, 54px); line-height: 1.28; color: var(--navy); max-width: 24ch; display: flex; flex-direction: column; gap: .4em; }
.purpose .beat { opacity: .16; transform: translateY(6px); }
.purpose .beat em { font-style: normal; color: var(--blue); }
.purpose .signature { margin-top: 36px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); opacity: 0; }
html[dir="rtl"] .purpose .signature { letter-spacing: 0; text-transform: none; font-size: 13px; }
.purpose .photo { position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); width: clamp(220px, 28vw, 420px); aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; opacity: 0; }
.purpose .photo img { width: 100%; height: 100%; object-fit: cover; }
.purpose .photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: 11px; color: rgba(255,255,255,.85); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 1100px) { .purpose .photo { display: none; } }

/* Idea and stats */
.stat { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; border-top: 1.5px solid var(--line); }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; color: var(--blue); font-variant-numeric: tabular-nums; }
.stat-unit { font-weight: 600; color: var(--navy); font-size: 17px; }
.stat-label { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }

/* Group cards */
.gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .gcards { grid-template-columns: 1fr; } }
.gcard { background: var(--white); border: 1.5px solid var(--line); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; min-height: 360px; box-shadow: 0 1px 2px rgba(5,10,52,.04), 0 24px 60px rgba(5,10,52,.06); }
.gcard .logo { height: 44px; display: flex; align-items: center; }
.gcard .logo svg, .gcard .logo img { height: 40px; width: auto; }
.gcard .wordmark { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; color: var(--navy); line-height: 1; }
.gcard .wordmark span { color: var(--blue); }
.gcard ul { display: flex; flex-direction: column; margin-top: auto; }
.gcard li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--navy); line-height: 1.45; }
.gcard li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; margin-top: 7px; }
.gcard .more { margin-top: 6px; color: var(--blue); font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.gcard .more .ic { width: 16px; height: 16px; }

/* Pathway */
.pathway .line { position: relative; height: 2px; background: var(--line); margin: 36px 0 28px; }
.pathway .line .fill { position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .pathway .line .fill { transform-origin: right; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; gap: 10px; opacity: .35; }
.step-num { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--white); transition: background .3s, color .3s; }
.step.on { opacity: 1; }
.step.on .step-num { background: var(--blue); color: var(--white); }
.step h3 { font-size: 19px; }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--ink); }

/* Cards, generic */
.card { background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(5,10,52,.1); border-color: var(--pale-2); }
.card .ic-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--pale); display: grid; place-items: center; color: var(--blue); margin-bottom: 4px; }
.card .ic-wrap .ic { width: 22px; height: 22px; }
.card h3 { font-size: 19px; }
.card p { font-size: 15px; line-height: 1.55; }
.card .tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
html[dir="rtl"] .card .tag { letter-spacing: 0; text-transform: none; font-size: 13px; }
.photo-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photo-card:hover img { transform: scale(1.03); }
.photo-card .cap { position: absolute; inset-inline: 16px; bottom: 14px; color: var(--white); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
html[dir="rtl"] .photo-card .cap { letter-spacing: 0; text-transform: none; font-size: 14px; }

/* Horizontal chapters: partners and news */
.hchapter { padding-left: 0; padding-right: 0; display: block; }
.hchapter .head { padding: 0 var(--gutter); width: min(1240px + 2 * var(--gutter), 100%); margin-inline: auto; margin-bottom: 28px; }
.hchapter .viewport { width: 100%; overflow: hidden; }
.track { display: flex; gap: 28px; width: max-content; padding: 0 var(--gutter) 24px; align-items: stretch; }
.panel { width: min(82vw, 980px); flex: none; background: var(--white); border: 1.5px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 40px); align-items: center; box-shadow: 0 1px 2px rgba(5,10,52,.04), 0 24px 60px rgba(5,10,52,.06); }
.panel .plogo { height: 46px; display: flex; align-items: center; margin-bottom: 8px; }
.panel .plogo img { height: 42px; width: auto; max-width: 240px; object-fit: contain; object-position: left; }
html[dir="rtl"] .panel .plogo img { object-position: right; }
.panel .plogo.tall img { height: 54px; }
.panel .pbody { display: flex; flex-direction: column; gap: 12px; }
.panel .pbody h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.02em; font-weight: 700; }
.panel .returns { display: grid; gap: 10px; margin-top: 8px; }
.panel .ret { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--mist); border: 1px solid var(--line); }
.panel .ret .ic-wrap { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; }
.panel .ret .ic-wrap .ic { width: 18px; height: 18px; }
.panel .ret strong { display: block; color: var(--navy); font-size: 15px; }
.panel .ret span { font-size: 14px; color: var(--ink); line-height: 1.5; }
.panel .pvisual { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.panel .pvisual img { width: 100%; height: 100%; object-fit: cover; }
.panel .pvisual .num { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(255,255,255,.9); color: var(--navy); font-weight: 700; font-size: 12px; letter-spacing: .12em; padding: 6px 10px; border-radius: 999px; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; width: min(88vw, 560px); } }
.track .frame { width: min(72vw, 640px); flex: none; display: flex; flex-direction: column; gap: 12px; }
.track .frame .photo-card { aspect-ratio: 4 / 3; }
.track .frame .cap-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-muted); }
.track .frame .cap-row strong { color: var(--navy); font-weight: 600; }
.hint { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
html[dir="rtl"] .hint { letter-spacing: 0; text-transform: none; font-size: 14px; }
.hint .ic { width: 16px; height: 16px; }

/* Kingdom's return */
.kingdom .inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 960px) { .kingdom .inner { grid-template-columns: 1fr; } }
.returns-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 520px) { .returns-grid { grid-template-columns: 1fr; } }
.returns-grid .card { padding: 20px; gap: 6px; }
.returns-grid .card h3 { font-size: 16px; }
.returns-grid .card p { font-size: 14px; }
.map-note { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--ink-muted); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
html[dir="rtl"] .map-note { letter-spacing: 0; text-transform: none; font-size: 14px; }
.map-note span { display: inline-flex; align-items: center; gap: 8px; }
.map-note span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* Closing (the one navy surface, painted by the body background) */
.closing { color: var(--white); min-height: 100vh; padding-bottom: 0; }
.closing h2, .closing h3, .closing .lead { color: var(--white); }
.closing .eyebrow { color: var(--gold); } .closing .eyebrow::before { background: var(--gold); }
.closing .muted { color: var(--on-navy-muted); }
.closing .contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
@media (max-width: 860px) { .closing .contact { grid-template-columns: 1fr; } }
.closing .ccard { border: 1.5px solid var(--navy-line); background: rgba(15,23,86,.6); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.closing .ccard .tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-muted); font-weight: 600; }
html[dir="rtl"] .closing .ccard .tag { letter-spacing: 0; text-transform: none; font-size: 13px; }
.closing .ccard .email { font-weight: 600; font-size: 17px; color: var(--white); word-break: break-all; direction: ltr; unicode-bidi: isolate; }
.closing .ccard p { font-size: 14px; color: var(--on-navy-muted); }
.closing .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.footer { margin-top: 64px; padding: 32px 0 36px; border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 12.5px; color: var(--on-navy-muted); }
.footer .logos { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer .logos img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .7; }
.footer a { color: var(--white); }
.footer .runfoot { letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
html[dir="rtl"] .footer .runfoot { letter-spacing: 0; text-transform: none; }
.linkedin-btn .ic-fill { width: 18px; height: 18px; fill: currentColor; }

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  .purpose .beat { opacity: 1; transform: none; }
  .purpose .signature, .purpose .photo { opacity: 1; }
  .step { opacity: 1; }
  .scroll-cue .line::after { animation: none; transform: scaleX(1); }
  .loader { display: none; }
}

/* Phones: horizontal chapters stack vertically and pins are released by the script */
@media (max-width: 860px) {
  .track { flex-direction: column; width: auto; gap: 20px; }
  .panel, .track .frame { width: auto; }
  .hchapter .viewport { overflow: visible; }
  .chapter { padding-left: 20px; padding-right: 20px; }
  .display-xl { max-width: none; }
}

/* Innov: the helix lives in the empty right half; the project row sits under it */
.innov .split { min-height: 52vh; align-items: start; }
.innov .helix-space { min-height: 40vh; }
.innov-row { margin-top: 32px; align-items: stretch; }
.innov-row .card { padding: 22px; }
@media (max-width: 860px) { .innov .helix-space { display: none; } .innov .split { min-height: 0; } }
