/* TheTradeOff — guest applications
   One deliberate dark world: the studio backdrop from the host portrait,
   bone type, and the logo's signal red used sparingly. */

:root {
  color-scheme: dark;
  --ink: #0b0a09;
  --studio: #16120f;
  --panel: #121010;
  --raise: #1b1715;
  --bone: #f3efe9;
  --ash: #948d86;
  --ash-2: #6a645e;
  --line: rgba(243, 239, 233, 0.11);
  --line-2: rgba(243, 239, 233, 0.2);
  /* content boxes (traits, ledger) */
  --box: rgba(243, 239, 233, 0.035);
  --box-line: rgba(243, 239, 233, 0.14);
  --box-radius: 8px;
  --signal: #e62c2d;
  --signal-deep: #cf2427;
  --signal-text: #ff5a52;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

html[lang="ar"] {
  --f-display: "Alexandria", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="ar"] body { font-size: 17.5px; line-height: 1.8; }

/* film grain over everything, very quiet */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--signal); color: #fff; }

:focus-visible { outline: 2px solid var(--signal-text); outline-offset: 3px; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200;
  background: var(--bone); color: var(--ink); padding: 10px 14px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- type ---------- */
.label {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}
html[lang="ar"] .label {
  font-family: var(--f-body);
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 500;
}

.h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: "wdth" 104;
  font-size: 1.3rem;
  line-height: 1.2;
  text-wrap: balance;
}
html[lang="ar"] .h2 { text-transform: none; letter-spacing: 0; line-height: 1.3; font-weight: 800; }
html[lang="ar"] .h3 { line-height: 1.5; }
html[lang="ar"] .section-head { gap: 24px; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--signal-deep); color: #fff; }
.btn-red:hover { background: var(--signal); }
.btn-ghost { --h: 40px; padding: 0 16px; border-color: var(--line-2); font-size: 14px; }
.btn-ghost:hover { border-color: var(--bone); }
.btn-line { border-color: var(--line-2); background: transparent; }
.btn-line:hover { border-color: var(--bone); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }
#back:hover .arrow { transform: translateX(-3px); }
[dir="rtl"] #back:hover .arrow { transform: scaleX(-1) translateX(-3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(11, 10, 9, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand img { width: clamp(150px, 16vw, 210px); height: auto; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ash);
  transition: background-color 0.2s, color 0.2s;
}
.lang-btn[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 13px; letter-spacing: 0; }
.lang-btn:hover { color: var(--bone); }
.lang-btn[aria-pressed="true"] { background: var(--bone); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: calc(env(safe-area-inset-top, 0px) + 88px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 74% 40%, rgba(64, 50, 40, 0.55), transparent 70%),
    radial-gradient(40% 40% at 90% 90%, rgba(230, 44, 45, 0.09), transparent 70%);
}
[dir="rtl"] .hero-glow { transform: scaleX(-1); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: end;
  gap: 24px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding-block: 40px 72px;
}

.hero-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 850;
  font-variation-settings: "wdth" 118;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  /* let the headline lean into the portrait */
  margin-inline-end: -18%;
}
.hero-title em {
  font-style: normal;
  color: var(--signal);
  position: relative;
  white-space: nowrap;
}
html[lang="ar"] .hero-title {
  font-weight: 900;
  font-size: clamp(2.7rem, 5.6vw, 5.2rem);
  line-height: 1.22;
  letter-spacing: 0;
  text-transform: none;
}
.hero-lede {
  max-width: 52ch;
  margin: 28px 0 32px;
  color: #cfc8c0;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}
.hero-lede .lede-2 { display: block; margin-top: 0.9em; }

.hero-cta { --h: 56px; padding-inline: 28px; }
.hero-media {
  position: relative;
  margin: 0;
  align-self: end;
  /* no z-index here: a stacking context would stop the img blending with the glow */
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 1148;
  object-fit: cover;
  object-position: 50% 100%;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 22%, #000 66%, transparent 99%),
    linear-gradient(to right, transparent 0%, #000 18%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 22%, #000 66%, transparent 99%),
    linear-gradient(to right, transparent 0%, #000 18%, #000 84%, transparent 100%);
  mask-composite: intersect;
  filter: contrast(1.04) saturate(0.92);
  /* the photo's black backdrop melts into the hero glow instead of boxing it */
  mix-blend-mode: screen;
}

/* ---------- the mark ---------- */
.mark-a, .mark-b { transition: transform 0.6s var(--ease); }
.mark-b { transform: rotate(180deg); transform-origin: 92px 90px; }

/* load sequence */
@media (prefers-reduced-motion: no-preference) {
    .hero-title { animation: rise 0.9s 0.14s var(--ease) both; }
  .hero-lede { animation: rise 0.8s 0.28s var(--ease) both; }
  .hero-cta { animation: rise 0.8s 0.38s var(--ease) both; }
  .hero-media img { animation: develop 1.6s 0.05s ease-out both; }
}
@keyframes rise {
  from { transform: translateY(18px); opacity: 0.001; }
  to { transform: none; opacity: 1; }
}
@keyframes develop {
  from { filter: brightness(0.25) contrast(1.04) saturate(0.4); transform: scale(1.03); }
  to { filter: brightness(1) contrast(1.04) saturate(0.92); transform: none; }
}

/* ---------- platforms ---------- */
.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.platform-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #d8d1c9;
  transition: color 0.2s;
}
.platform-list a:hover { color: var(--bone); }
.platform-list svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}
.platform-list svg .fill { fill: currentColor; stroke: none; }
.platform-list a:hover svg { stroke: var(--signal); }
.platform-list a:hover svg .fill { fill: var(--signal); }

/* ---------- sections ---------- */
.section { padding-block: clamp(80px, 11vw, 150px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 820px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* who */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.trait {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--box);
  border: 1px solid var(--box-line);
  border-radius: var(--box-radius);
  transition: border-color 0.3s;
}
.trait:hover { border-color: rgba(243, 239, 233, 0.3); }
.trait p { margin: 0; color: #bdb6ae; }
.trait .trait-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-text);
}
html[lang="ar"] .trait .trait-tag { font-family: var(--f-body); letter-spacing: 0; font-size: 14px; font-weight: 600; }
.trait .trait-tag::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--signal);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%, 0 30%);
}

/* ledger */
.ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0 clamp(16px, 2.4vw, 32px);
  max-width: 1080px;
  margin-inline: auto;
}
.ledger-col {
  padding: clamp(22px, 2.6vw, 36px);
  background: var(--box);
  border: 1px solid var(--box-line);
  border-radius: var(--box-radius);
}
.ledger-h {
  margin: 0 0 10px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}
html[lang="ar"] .ledger-h { font-family: var(--f-body); letter-spacing: 0; font-size: 15px; font-weight: 600; }
.ledger-col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.ledger-col li {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 14px;
  padding: 12px 0;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
}
.ledger-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ash);
}
.ledger-col li::before {
  content: "";
  width: 9px; height: 9px;
  margin-top: 0.5em;
  background: var(--signal);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%, 0 30%);
}
.ledger-axis {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ledger-mark {
  width: 56px; height: 56px;
  fill: var(--signal);
}
.ledger:hover .ledger-mark .mark-a,
.ledger-mark:hover .mark-a { transform: translate(-10px, -10px); }

/* ---------- apply ---------- */
.apply {
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(64, 50, 40, 0.35), transparent 70%),
    var(--ink);
  border-top: 1px solid var(--line);
  scroll-margin-top: 40px;
}
/* heading centred above the form */
.apply-grid { display: grid; gap: clamp(32px, 4vw, 56px); max-width: 860px; }
.apply-side { display: grid; gap: 14px; justify-items: center; text-align: center; }

.app-panel {
  background: linear-gradient(180deg, var(--raise), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.app-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}
.app-id { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ash-2); }
.steps { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ash-2);
  transition: color 0.3s;
}
.steps li span {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-family: var(--f-mono);
  font-size: 11px;
}
.steps li em { font-style: normal; }
.steps li.is-active { color: var(--bone); }
.steps li.is-active span { background: var(--signal-deep); border-color: var(--signal-deep); color: #fff; }
.steps li.is-done { color: var(--ash); }
.steps li.is-done span { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; }
.progress i {
  display: block;
  height: 100%;
  width: 33.34%;
  background: var(--signal);
  transition: width 0.5s var(--ease);
}

.app { padding: clamp(22px, 3vw, 36px); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .step:not([hidden]) { animation: step-in 0.45s var(--ease) both; }
}
@keyframes step-in {
  from { opacity: 0.001; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}
[dir="rtl"] .step:not([hidden]) { animation-name: step-in-rtl; }
@keyframes step-in-rtl {
  from { opacity: 0.001; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }

.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field label,
.field-label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #d8d1c9;
}
.field b { color: var(--signal-text); font-weight: 500; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  background: rgba(11, 10, 9, 0.6);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ash-2); }
.field input:hover,
.field textarea:hover { border-color: rgba(243, 239, 233, 0.32); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--bone); background: rgba(11, 10, 9, 0.9); }
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--signal); }
.field .err { margin: 0; font-size: 13.5px; color: var(--signal-text); }
.help {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 13.5px;
  color: var(--ash);
}
.count { font-family: var(--f-mono); font-size: 12px; font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14.5px;
  color: #d8d1c9;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover span { border-color: rgba(243, 239, 233, 0.4); }
.chip input:checked + span { background: var(--bone); border-color: var(--bone); color: var(--ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--signal-text); outline-offset: 2px; }
.field.is-invalid .chip span { border-color: rgba(230, 44, 45, 0.6); }

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  font-size: 15px;
  color: #d8d1c9;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box {
  width: 22px; height: 22px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  transition: background-color 0.2s, border-color 0.2s;
}
.check-box::after {
  content: "";
  width: 10px; height: 6px;
  border-inline-start: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
}
[dir="rtl"] .check-box::after { transform: rotate(45deg) translateY(-1px); }
.check input:checked + .check-box { background: var(--bone); border-color: var(--bone); }
.check input:checked + .check-box::after { opacity: 1; }
.check input:focus-visible + .check-box { outline: 2px solid var(--signal-text); outline-offset: 2px; }
.field.is-invalid .check-box { border-color: var(--signal); }

.form-error { margin: 18px 0 0; color: var(--signal-text); font-size: 14.5px; }
.app-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.app-nav #next { margin-inline-start: auto; }
.app-nav .btn[disabled] { opacity: 0.6; cursor: progress; }

.done {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: clamp(28px, 4vw, 48px);
  outline: none;
}
.done-mark { width: 56px; height: 56px; fill: var(--signal); }
.done-body { margin: 0; color: #cfc8c0; max-width: 48ch; }
.done .platform-list { gap: 6px 22px; }
@media (prefers-reduced-motion: no-preference) {
  .done:not([hidden]) .mark-a { animation: lock-a 0.9s var(--ease) both; }
  .done:not([hidden]) .mark-b { animation: lock-b 0.9s var(--ease) both; }
}
@keyframes lock-a { from { transform: translate(-40px, -40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lock-b { from { transform: rotate(180deg) translate(-40px, -40px); opacity: 0; } to { transform: rotate(180deg); opacity: 1; } }

/* ---------- final ---------- */
.final {
  position: relative;
  overflow: hidden;
  padding-block: clamp(90px, 12vw, 170px);
  border-top: 1px solid var(--line);
  background: radial-gradient(60% 80% at 50% 110%, rgba(230, 44, 45, 0.16), transparent 70%), var(--ink);
}
.final-inner { display: grid; justify-items: center; text-align: center; gap: 34px; }
.final-mark { width: 72px; height: 72px; fill: var(--signal); }
.final-mark .mark-a { transform: translate(-6px, -6px); }
.final-mark .mark-b { transform: rotate(180deg) translate(-6px, -6px); }
.final:hover .final-mark .mark-a { transform: none; }
.final:hover .final-mark .mark-b { transform: rotate(180deg); }
.final-title {
  margin: 0;
  max-width: 24ch;
  font-family: var(--f-display);
  font-weight: 850;
  font-variation-settings: "wdth" 116;
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}
html[lang="ar"] .final-title { text-transform: none; letter-spacing: 0; line-height: 1.35; font-weight: 800; max-width: 20ch; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 56px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}
.foot-brand { display: grid; justify-items: center; }
.foot-brand img { width: min(320px, 70vw); height: auto; }
/* icon-only social links in the footer; the names stay for screen readers */
.foot .platform-list { justify-content: center; gap: 8px 26px; }
.foot .platform-list a { padding: 8px; }
.foot .platform-list svg { width: 26px; height: 26px; }
.foot .pl-name {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* host name, Arabic stacked over English; shown the same in both languages */
.foot-host { display: grid; justify-items: center; gap: 2px; margin: 22px 0 0; color: var(--bone); }
.foot-host-ar {
  font-family: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
  font-weight: 500;
  /* size and the kashida (ـ) count in the HTML are tuned so both lines are the same width */
  font-size: 23px;
  line-height: 1.3;
}
.foot-host-en {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 800;
  font-variation-settings: "wdth" 110;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.foot-tag { margin: 18px 0 0; color: var(--bone); font-family: var(--f-display); font-size: 15px; }
.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ash-2);
}
.foot-base .lang-btn { font-family: var(--f-body); letter-spacing: 0; font-size: 13px; }

/* ---------- scroll reveal (only for things below the first screen) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .is-pending { opacity: 0.001; transform: translateY(22px); }
  .is-shown { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-title { margin-inline-end: 0; }
}

@media (max-width: 860px) {
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 64px); }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-media { order: -1; margin-inline: calc(var(--gutter) * -1); }
  .hero-media img {
    aspect-ratio: 4 / 3.8;
    object-position: 50% 55%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 60%, transparent 97%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 60%, transparent 97%);
  }
  .hero-copy { margin-top: -12vw; padding-block: 0 56px; }
  .who-grid { grid-template-columns: 1fr; gap: 12px; }
  .ledger { grid-template-columns: 1fr; gap: 16px; }
  .ledger-axis { order: 0; }
  .ledger-mark { width: 40px; height: 40px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .hero-cta { width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .app-head { flex-direction: column; align-items: flex-start; }
  .steps { gap: 12px; }
  .steps li:not(.is-active) em { display: none; }
  .app-nav .btn { flex: 1; }
}
