/* =========================================================
   SMP Management — design system (light)
   White paper, black ink, orange accent.
   ========================================================= */
:root {
  --black: #0A0A0A;
  --white: #FFFFFF;
  --orange: #FF6A00;
  --orange-hover: #E85F00;

  --bg-main: #FFFFFF;
  --bg-secondary: #F5F5F3;
  --bg-card: #FFFFFF;
  --border: #E4E4E1;
  --border-strong: #CFCFCB;

  --text-main: #0A0A0A;
  --text-secondary: #4D4D4D;
  --text-muted: #6B6B6B;            /* 5.3:1 on white (was #8A8A8A = 3.5:1) */
  --orange-text: #BF4A00;           /* brand orange dark enough for small text on white (4.9:1) */

  --ink-surface: #0A0A0A;         /* black accent blocks */
  --ink-border: #2B2B2B;
  --ink-text-secondary: #BDBDBD;

  --radius: 4px;
  --wrap: 1280px;
  --gutter: clamp(16px, 3vw, 40px);
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font-display: 'Archivo', 'Cairo', system-ui, sans-serif;
  --font-body: 'Inter', 'Cairo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}
[dir='rtl'] {
  --font-display: 'Cairo', 'Archivo', sans-serif;
  --font-body: 'Cairo', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg-main); color: var(--text-main);
  font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: var(--black); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.num { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }

/* ---------- type ---------- */
.kicker {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.kicker b { color: var(--orange); font-weight: 600; }
[dir='rtl'] .kicker { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; }
.display {
  font-family: var(--font-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(40px, 6.4vw, 96px); line-height: .95; letter-spacing: -.025em;
}
.h2 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 110%; text-transform: uppercase;
  font-size: clamp(30px, 3.8vw, 54px); line-height: 1; letter-spacing: -.02em;
}
[dir='rtl'] .display, [dir='rtl'] .h2 { font-weight: 900; line-height: 1.25; letter-spacing: 0; }
.statement { font-size: clamp(19px, 1.9vw, 26px); line-height: 1.45; font-weight: 500; letter-spacing: -.01em; }

/* ---------- buttons & links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border-radius: var(--radius); border: 1.5px solid transparent;
  font: 700 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  overflow: hidden; isolation: isolate; transition: color .35s, border-color .35s;
}
[dir='rtl'] .btn { letter-spacing: 0; font-size: 15px; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: scaleY(1); }
.btn-primary { background: var(--orange); color: var(--black); }
.btn-primary::before { background: var(--black); }
.btn-primary:hover { color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark::before { background: var(--orange); }
.btn-dark:hover { color: var(--black); }
.btn-outline { border-color: var(--black); color: var(--black); }
.btn-outline::before { background: var(--black); }
.btn-outline:hover { color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; transition: color .3s; }
.arrow-link::after { content: '→'; transition: transform .4s var(--ease-out); }
[dir='rtl'] .arrow-link::after { content: '←'; }
.arrow-link:hover { color: var(--orange); }
.arrow-link:hover::after { transform: translateX(4px); }
[dir='rtl'] .arrow-link:hover::after { transform: translateX(-4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px); border-bottom: 1px solid transparent;
  transition: border-color .4s, transform .5s var(--ease-out);
}
.is-scrolled .nav { border-color: var(--border); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.nav-logo { display: inline-flex; flex-direction: column; align-items: stretch; gap: 5px; width: 104px; direction: ltr; }
.nav-logo img { width: 104px; }
.nav-logo-sub { display: flex; justify-content: space-between; font: 500 8.5px/1 "Inter", sans-serif; color: var(--black); padding-inline: 2px; }
.nav-logo-sub span { display: block; }
.nav-links { display: flex; gap: 32px; margin-inline-start: auto; }
.nav-links a { position: relative; display: flex; align-items: baseline; gap: 6px; padding: 8px 0; font-size: 15px; font-weight: 500; transition: color .3s; }
.nav-links a::after { content: ''; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current] { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { background: none; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 8px 13px; cursor: pointer; font: 600 14px/1 'Cairo', 'Inter', sans-serif; transition: border-color .3s, color .3s; }
.lang:hover { border-color: var(--orange); color: var(--orange); }
.burger { display: none; position: relative; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.burger span { position: absolute; inset-inline: 10px; height: 2px; background: var(--black); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 40ms + var(--d, 0s)); }
.split.is-in .w > span { transform: none; }
.mask-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-out); }
.mask-img.is-in { clip-path: inset(0 0 0 0); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(56px, 9vw, 120px)) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--border); }
.page-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.page-hero .statement { color: var(--text-secondary); max-width: 40ch; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section.alt { background: var(--bg-secondary); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head p { color: var(--text-secondary); max-width: 46ch; }

/* =========================================================
   HOME
   ========================================================= */
/* ---------- hero: globe ---------- */
.hero-globe {
  position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(24px, 4vw, 56px)) 0 0;
  background:
    radial-gradient(closest-side at 72% 48%, rgba(255,106,0,.13), transparent 70%),
    radial-gradient(circle, #d6d6d1 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--bg-main);
}
.hero-globe::after { /* fade the dot grid out at the bottom */
  content: ''; position: absolute; inset: auto 0 0 0; height: 160px; pointer-events: none;
  background: linear-gradient(transparent, var(--bg-main));
}
.hg-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: min(78svh, 820px); }
.hg-in { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.is-ready .hg-in { opacity: 1; transform: none; }
.hg-title { font-family: var(--font-display); font-weight: 900; font-stretch: 105%; text-transform: uppercase; font-size: clamp(42px, 4.7vw, 78px); line-height: .88; letter-spacing: -.04em; }
[dir='rtl'] .hg-title { line-height: 1.2; letter-spacing: 0; font-size: clamp(42px, 5vw, 84px); }
.hg-line { display: block; overflow: hidden; padding-bottom: .04em; }
.hg-line > .hg-in { display: inline-block; transform: translateY(105%); opacity: 1; transition: transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.is-ready .hg-line > .hg-in { transform: none; }
.hg-line:first-child > .hg-in { color: var(--orange); }
.hg-title .dot { color: var(--orange); }
.hg-lead { margin: 28px 0 26px; max-width: 40ch; font-size: clamp(17px, 1.35vw, 19px); color: var(--text-secondary); }
.hg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.hg-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; cursor: default; transition: border-color .3s, background-color .3s, color .3s, transform .4s var(--ease-out);
}
[dir='rtl'] .hg-chips li { padding: 7px 8px 7px 12px; }
.hg-chips img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.hg-chips li:hover, .hg-chips li.is-active { border-color: var(--black); background: var(--black); color: var(--white); transform: translateY(-2px); }
.hg-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.globe-stage { position: relative; width: min(100%, 820px); aspect-ratio: 1; justify-self: center; margin-inline-end: calc(-1 * clamp(0px, 4vw, 80px)); opacity: 0; transform: scale(.9) rotate(-8deg); transition: opacity 1.4s ease .2s, transform 1.8s var(--ease-out) .2s; }
.is-ready .globe-stage.is-ready { opacity: 1; transform: none; }
.globe-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#globe { cursor: grab; contain: layout paint size; touch-action: pan-y; }
.globe-stage.is-dragging #globe { cursor: grabbing; }
#globeArcs { pointer-events: none; }
.globe-pins { position: absolute; inset: 0; pointer-events: none; }
.pin {
  position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; gap: 6px; margin: -15px 0 0 -15px;
  padding: 4px 9px 4px 4px; border-radius: 999px; background: var(--white); box-shadow: 0 6px 18px -6px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06);
  font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; will-change: transform, opacity;
  transition: box-shadow .3s, background-color .3s, color .3s;
}
[dir='rtl'] .pin { font-family: var(--font-body); letter-spacing: 0; font-size: 12px; }
.pin { margin: -15px 0 0 -15px; }
.pin img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
/* flag-only by default (the Middle East cluster is tight); the city shows for the HQ and the focused country */
.pin { padding: 4px; gap: 0; }
.pin b { max-width: 0; overflow: hidden; transition: max-width .5s var(--ease-out), margin .5s var(--ease-out); }
.pin.is-hq, .pin.is-focus { padding-inline-end: 9px; gap: 6px; }
.pin.is-hq b, .pin.is-focus b { max-width: 120px; }
.pin i { font-style: normal; padding: 3px 5px; margin-inline-start: 2px; background: var(--orange); color: var(--black); border-radius: 3px; font-size: 9px; }
.pin.is-hq { background: var(--black); color: var(--white); }
/* Montreal sits right above New York: lift its label so the two never overlap */
.pin.up { margin-top: -46px; }
.pin.up::after { content: ''; position: absolute; left: 14px; top: 100%; width: 1.5px; height: 17px; background: var(--black); opacity: .5; }
[dir='rtl'] .pin.up::after { left: auto; right: 14px; }
.pin.is-focus { background: var(--orange); color: var(--black); box-shadow: 0 0 0 4px rgba(255,106,0,.25), 0 8px 20px -6px rgba(0,0,0,.4); }
.globe-stage .drag-hint { position: absolute; inset: auto 0 4% 0; text-align: center; font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); pointer-events: none; }
[dir='rtl'] .globe-stage .drag-hint { font-family: var(--font-body); letter-spacing: 0; font-size: 12px; }

.hg-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(8px, 2vw, 24px); margin-bottom: 0; border-top: 1.5px solid var(--black); }
.hg-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 20px 22px; border-inline-start: 1px solid var(--border-strong); }
.hg-stats > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hg-stats dt { font: 500 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
[dir='rtl'] .hg-stats dt { font-family: var(--font-body); letter-spacing: 0; font-size: 14px; }
.hg-stats dd { margin: 0; font: 900 clamp(30px, 3.2vw, 46px)/1 'Archivo', sans-serif; font-stretch: 115%; letter-spacing: -.02em; }
.hg-stats dd em { font-style: normal; color: var(--orange); }

.home-feature { padding: clamp(72px, 9vw, 128px) 0; }
.home-feature .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.home-title { font-family: var(--font-display); font-weight: 900; font-stretch: 116%; text-transform: uppercase; font-size: clamp(44px, 6.6vw, 104px); line-height: .92; letter-spacing: -.035em; }
.home-title .nobr { white-space: nowrap; }
[dir='rtl'] .home-title { line-height: 1.2; letter-spacing: 0; font-size: clamp(44px, 6.4vw, 96px); }
.home-title .dot { color: var(--orange); }
.home-lead { margin: 32px 0 40px; max-width: 42ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--text-secondary); }
.home-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
/* ---------- 3D tilt card (Fakhreddine) ---------- */
.tilt-wrap { perspective: 1000px; display: flex; justify-content: center; }
.tilt-card {
  position: relative; width: min(100%, 400px); aspect-ratio: 320 / 416; border-radius: 16px;
  background: var(--orange); border: 1px solid rgba(10,10,10,.06);
  box-shadow: 0 25px 50px -12px rgba(10,10,10,.28);
  transform-style: preserve-3d; will-change: transform; touch-action: pan-y;
  transition: box-shadow .4s var(--ease-out);
}
.tilt-card.is-tilting { box-shadow: 0 40px 70px -20px rgba(10,10,10,.38); }
.tilt-inner {
  position: absolute; inset: 16px; display: grid; border-radius: 12px; overflow: hidden;
  transform: translateZ(50px); transform-style: preserve-3d;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.12), 0 4px 6px -4px rgba(0,0,0,.12);
}
.tilt-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.tilt-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.1) 32%, transparent 50%, rgba(0,0,0,.65)); }
.tilt-content { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; color: var(--white); transform-style: preserve-3d; }
.tilt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; transform-style: preserve-3d; }
.tilt-top h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: clamp(20px, 2vw, 26px); line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
[dir='rtl'] .tilt-top h3 { line-height: 1.35; }
.tilt-top p { margin-top: 4px; font-size: 14px; font-weight: 300; color: rgba(255,255,255,.85); }
.tilt-icon {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transform: translateZ(60px); transition: background-color .25s, color .25s;
}
.tilt-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir='rtl'] .tilt-icon svg { transform: scaleX(-1); }
.tilt-icon:hover { background: var(--orange); color: var(--black); }
.tilt-action {
  display: block; width: 100%; padding: 13px 16px; border-radius: 10px; text-align: center; font-weight: 600; color: var(--white);
  background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translateZ(40px); transition: background-color .25s, color .25s;
}
.tilt-action:hover { background: var(--white); color: var(--black); }
.tilt-icon:focus-visible, .tilt-action:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.next-event { border-block: 1px solid var(--border); }
.next-event a { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 24px; padding: 22px 0; transition: color .3s; }
.next-event .tag { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; padding: 8px 12px; background: var(--orange); color: var(--black); }
[dir='rtl'] .next-event .tag { font-family: var(--font-body); letter-spacing: 0; font-size: 13px; }
.next-event time { font: 600 14px/1 var(--font-mono); text-transform: uppercase; }
[dir='rtl'] .next-event time { font-family: var(--font-body); }
.next-event strong { font-family: 'Archivo', sans-serif; font-weight: 800; font-stretch: 110%; font-size: clamp(17px, 2vw, 26px); text-transform: uppercase; direction: ltr; text-align: start; }
.next-event strong small { font: 400 14px/1 var(--font-body); text-transform: none; color: var(--text-secondary); margin-inline-start: 10px; }
.next-event a:hover strong { color: var(--orange); }

/* ---------- 3D gallery carousel ---------- */
.gallery-section { padding: clamp(80px, 10vw, 140px) 0 clamp(64px, 8vw, 110px); background: var(--bg-secondary); overflow: hidden; }
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(24px, 4vw, 48px); }
.gallery-note { max-width: 34ch; color: var(--text-secondary); }
.c3d { position: relative; }
.c3d-stage {
  position: relative; height: clamp(300px, 46vw, 520px); perspective: 1400px; perspective-origin: 50% 45%;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline: none;
}
.c3d-stage.is-dragging { cursor: grabbing; }
.c3d-stage:focus-visible { outline: 2px solid var(--orange); outline-offset: 8px; border-radius: 16px; }
.c3d-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.c3d-slide {
  --shade: 0; position: absolute; top: 50%; left: 50%; width: clamp(220px, 34vw, 440px); aspect-ratio: 1; margin: 0;
  translate: -50% -50%; border-radius: 16px; overflow: hidden; background: #ddd;
  box-shadow: 0 1px 2px rgba(10,10,10,.06), 0 30px 60px -30px rgba(10,10,10,.45);
  will-change: transform, opacity; backface-visibility: hidden; cursor: pointer;
}
.c3d-slide.is-active { cursor: grab; }
.c3d-slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.c3d-slide::after { /* side slides sit slightly in shadow */
  content: ''; position: absolute; inset: 0; background: rgba(10,10,10,var(--shade)); transition: background-color .2s; pointer-events: none;
}
.c3d-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: clamp(20px, 3vw, 36px); }
.c3d-caption { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.c3d-count { font-size: 12px; color: var(--orange-hover); flex: none; }
.c3d-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c3d-dots { display: flex; gap: 6px; justify-content: center; }
.c3d-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #CFCFCB; cursor: pointer; transition: width .4s var(--ease-out), background-color .3s; }
.c3d-dot[aria-selected='true'] { width: 26px; background: var(--orange); }
.c3d-dot:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.c3d-controls { display: flex; gap: 10px; justify-content: flex-end; }
.c3d-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--white); color: var(--black); cursor: pointer; transition: background-color .25s, border-color .25s, color .25s, transform .2s;
}
.c3d-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir='rtl'] .c3d-btn svg { transform: scaleX(-1); }
.c3d-btn:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.c3d-btn:active { transform: scale(.94); }
.c3d-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.explore { padding: clamp(80px, 10vw, 140px) 0; background: var(--bg-secondary); border-top: 1px solid var(--border); }
.explore-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }

/* editorial card: image on top, number / title / copy / arrow underneath */
.x-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  background: var(--white); border: 1px solid rgba(10,10,10,.06);
  box-shadow: 0 1px 2px rgba(10,10,10,.04), 0 18px 40px -34px rgba(10,10,10,.35);
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out), border-color .4s;
}
.x-card:hover, .x-card:focus-visible { transform: translateY(-8px); border-color: rgba(10,10,10,.12); box-shadow: 0 2px 4px rgba(10,10,10,.04), 0 34px 60px -34px rgba(10,10,10,.45); }
.x-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.x-media { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #E9E9E6; }
.x-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.4s var(--ease-out), filter .8s var(--ease); }
.x-card:hover .x-media img { transform: scale(1.06); }
.x-media::after { /* soft fade into the text panel keeps the four images reading as one set */
  content: ''; position: absolute; inset: auto 0 0 0; height: 28%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(10,10,10,.18));
}
.x-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: 16px; padding: 22px 22px 24px; flex: 1; }
.x-num { grid-column: 1; font-size: 12px; font-weight: 600; color: var(--orange-hover); letter-spacing: .06em; }
.x-body h3 {
  position: relative; grid-column: 1; margin-top: 10px; padding-bottom: 12px; width: fit-content;
  font-family: var(--font-display); font-weight: 900; font-stretch: 115%; text-transform: uppercase;
  font-size: clamp(24px, 2.1vw, 32px); line-height: 1; letter-spacing: -.02em;
}
[dir='rtl'] .x-body h3 { line-height: 1.3; letter-spacing: 0; }
.x-body h3::after { /* orange rule draws in on hover */
  content: ''; position: absolute; inset: auto auto 0 0; width: 100%; height: 2px; background: var(--orange);
  transform: scaleX(.18); transform-origin: left; transition: transform .7s var(--ease-out);
}
[dir='rtl'] .x-body h3::after { inset: auto 0 0 auto; transform-origin: right; }
.x-card:hover .x-body h3::after { transform: scaleX(1); }
.x-body p { grid-column: 1; margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.x-go {
  grid-column: 2; grid-row: 1 / 4; align-self: end; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border-strong); color: var(--black); overflow: hidden;
  transition: background-color .4s, border-color .4s, color .4s, transform .6s var(--ease-out);
}
.x-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out); }
[dir='rtl'] .x-go svg { transform: scaleX(-1); }
.x-card:hover .x-go { background: var(--orange); border-color: var(--orange); transform: rotate(-45deg); }
[dir='rtl'] .x-card:hover .x-go { transform: rotate(45deg); }

/* CTA band (black accent block) */
.cta-band { padding: clamp(80px, 11vw, 150px) 0; background: var(--ink-surface); color: var(--white); }
.cta-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.cta-band .display { font-size: clamp(36px, 5.4vw, 80px); }
.cta-band .display em { font-style: normal; color: var(--orange); }
.cta-band-side { display: grid; gap: 24px; justify-items: start; }
.cta-band-side p { color: var(--ink-text-secondary); max-width: 34ch; }
.cta-band .btn-primary::before { background: var(--white); }
.cta-band .btn-primary:hover { color: var(--black); }

/* =========================================================
   ABOUT
   ========================================================= */
.founder { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.founder-visual { position: sticky; top: calc(var(--nav-h) + 32px); }
.founder-photo { position: relative; aspect-ratio: 4 / 5; background: var(--bg-secondary); overflow: hidden; }
.founder-photo .bgword {
  position: absolute; inset: 6% 0 auto 0; text-align: center; font: 900 clamp(64px, 8.4vw, 132px)/.86 'Archivo', sans-serif; font-stretch: 125%;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,106,0,.45); letter-spacing: -.03em; direction: ltr;
}
.founder-photo img { position: absolute; inset: auto 0 0 50%; width: 92%; translate: -50% 0; filter: grayscale(1) contrast(1.04); transition: filter 1s var(--ease); }
.founder-photo:hover img { filter: grayscale(0); }
.founder-photo::after { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 4px; background: var(--orange); z-index: 2; }
.founder-tag { position: absolute; inset: auto auto 0 0; z-index: 2; padding: 14px 18px; background: var(--black); color: var(--ink-text-secondary); font: 500 12px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
[dir='rtl'] .founder-tag { inset: auto 0 0 auto; font-family: var(--font-body); letter-spacing: 0; font-size: 13px; }
.founder-tag b { display: block; color: var(--white); font-weight: 500; }
.founder-body .display { font-size: clamp(40px, 5vw, 76px); margin-bottom: 10px; }
.founder-role { font: 500 13px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--orange); margin-bottom: 36px !important; }
[dir='rtl'] .founder-role { font-family: var(--font-body); letter-spacing: 0; font-size: 15px; }
.founder-body p { color: var(--text-secondary); margin-bottom: 20px; font-size: 17px; }
.founder-body p.statement { color: var(--text-main); font-size: clamp(19px, 1.7vw, 23px); }
.creds { margin-top: 44px; border-top: 1px solid var(--border); }
.creds li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.creds .num { color: var(--orange); font-size: 13px; padding-top: 3px; }

.story { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 100px); }
.story-body p { color: var(--text-secondary); font-size: 17px; margin-bottom: 22px; }
.story-body p.statement { color: var(--text-main); font-size: clamp(20px, 1.8vw, 25px); }
.story-body p.sign { color: var(--text-main); font-weight: 600; padding-top: 22px; border-top: 1px solid var(--border-strong); margin-top: 32px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--border-strong); }
.stats > div { padding: 28px 24px 0; border-inline-start: 1px solid var(--border-strong); display: flex; flex-direction: column; gap: 8px; }
.stats > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stats dd { order: -1; margin: 0; font: 900 clamp(52px, 6.6vw, 96px)/.9 'Archivo', sans-serif; font-stretch: 115%; letter-spacing: -.03em; }
.stats dd em { font-style: normal; color: var(--orange); }
.stats dt { color: var(--text-secondary); font-size: 15px; }

/* =========================================================
   FIGHTERS — table
   ========================================================= */
.f-table { width: 100%; border-collapse: collapse; }
.f-table th { padding: 0 12px 14px; text-align: start; font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); border-bottom: 1.5px solid var(--black); white-space: nowrap; }
[dir='rtl'] .f-table th { font-family: var(--font-body); letter-spacing: 0; font-size: 13px; }
.f-table td { padding: 16px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.f-table th:first-child, .f-table td:first-child { padding-inline-start: 0; }
.f-table th:last-child, .f-table td:last-child { padding-inline-end: 0; text-align: end; }
.f-table tbody tr { position: relative; transition: background-color .35s; }
.f-table tbody tr:hover { background: var(--bg-secondary); }
.f-table .c-no { width: 56px; font: 500 13px/1 var(--font-mono); color: var(--text-muted); }
.f-table tr:hover .c-no { color: var(--orange); }
.f-who { display: flex; align-items: center; gap: 18px; min-width: 260px; }
.f-thumb { flex: none; width: 72px; height: 88px; overflow: hidden; background: var(--bg-secondary); position: relative; }
.f-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; filter: grayscale(1); transition: filter .5s, transform .8s var(--ease-out); }
tr:hover .f-thumb img { filter: grayscale(0); transform: scale(1.08); }
.f-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 900 22px/1 'Archivo', sans-serif; font-stretch: 125%; color: #B5B5B0; }
.f-name { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 108%; text-transform: uppercase; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.1; letter-spacing: -.01em; }
[dir='rtl'] .f-name { line-height: 1.4; }
.f-nick { display: block; margin-top: 4px; font-size: 13px; color: var(--text-secondary); }
.f-mob { display: none; margin-top: 8px; font: 500 13px/1.4 var(--font-mono); color: var(--text-secondary); }
.f-mob b { color: var(--text-main); font-weight: 600; white-space: nowrap; }
.f-table .c-rec { font: 600 18px/1 var(--font-mono); white-space: nowrap; direction: ltr; }
[dir='rtl'] .f-table .c-rec { text-align: right; }
.f-table .c-title { font-size: 14px; color: var(--text-secondary); max-width: 260px; }
.f-table .c-title b { color: var(--orange-hover); font-weight: 600; }
.f-go { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 50%; transition: background-color .3s, border-color .3s, transform .5s var(--ease-out); }
tr:hover .f-go { background: var(--orange); border-color: var(--orange); transform: rotate(45deg); }
.f-table a.row-link::after { content: ''; position: absolute; inset: 0; }

.roster-table { margin-top: clamp(80px, 10vw, 130px); }
.roster-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; border-top: 1.5px solid var(--black); }
.roster-grid a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 17px; transition: color .3s; }
.roster-grid .num { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.roster-grid a::after { content: '↗'; color: var(--text-muted); transition: color .3s, transform .4s var(--ease-out); }
.roster-grid a:hover { color: var(--orange-hover); }
.roster-grid a:hover::after { color: var(--orange); transform: translate(3px, -3px); }

/* =========================================================
   PARTNERS
   ========================================================= */
.rtc { display: grid; grid-template-columns: 1fr 1.15fr; border: 1px solid var(--border); transition: border-color .4s, box-shadow .6s var(--ease-out); }
.rtc:hover { border-color: var(--black); box-shadow: 0 24px 40px -30px rgba(0,0,0,.35); }
.rtc-logo { display: grid; place-items: center; padding: clamp(40px, 6vw, 80px); background: var(--bg-secondary); }
.rtc-logo img { width: min(340px, 100%); transition: transform .9s var(--ease-out); }
.rtc:hover .rtc-logo img { transform: scale(1.05); }
.rtc-body { padding: clamp(32px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.rtc-body .h2 { font-size: clamp(30px, 3.4vw, 48px); }
.rtc-body p { color: var(--text-secondary); max-width: 46ch; }
.rtc-points { width: 100%; border-top: 1px solid var(--border); }
.rtc-points li { display: grid; grid-template-columns: 40px 1fr; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.rtc-points .num { color: var(--orange); font-size: 12px; padding-top: 3px; }
.teams { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-strong); border-inline-start: 1px solid var(--border-strong); }
.teams li { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 24px 22px; min-height: 160px; border-bottom: 1px solid var(--border-strong); border-inline-end: 1px solid var(--border-strong); transition: background-color .35s; }
.teams li:hover { background: var(--white); }
.teams .num { font-size: 12px; color: var(--text-muted); }
.teams li:hover .num { color: var(--orange); }
.teams strong { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: 20px; text-transform: uppercase; line-height: 1.1; }
.teams span.where { display: block; margin-top: 6px; font-size: 13px; color: var(--text-muted); font-weight: 400; text-transform: none; }

/* =========================================================
   EVENTS
   ========================================================= */
.promos { border-top: 1.5px solid var(--black); }
.promos li { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-strong); }
.promos .num { font-size: 12px; color: var(--text-muted); }
.promos .name { font: 900 clamp(30px, 5vw, 72px)/1 'Archivo', sans-serif; font-stretch: 120%; letter-spacing: -.02em; direction: ltr; text-align: start;
  color: transparent; -webkit-text-stroke: 1.2px var(--black);
  background: linear-gradient(90deg, var(--orange) 50%, transparent 50%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text;
  transition: background-position .8s var(--ease-out), -webkit-text-stroke-color .4s; }
.promos li:hover .name { background-position: 0 0; -webkit-text-stroke-color: var(--orange); }
.promos .who { font-size: 14px; color: var(--text-secondary); text-align: end; max-width: 30ch; }
.timeline { border-top: 1.5px solid var(--black); }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border-strong); }
.timeline time { font: 500 13px/1.6 var(--font-mono); color: var(--orange-hover); text-transform: uppercase; }
[dir='rtl'] .timeline time { font-family: var(--font-body); }
.timeline p { font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; }

/* schedule */
.schedule { border-top: 1.5px solid var(--black); }
.schedule li { position: relative; display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--border); isolation: isolate; }
.schedule li::before { content: ''; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--bg-secondary); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); }
.schedule li:hover::before { transform: scaleY(1); }
.schedule time { display: flex; align-items: baseline; gap: 10px; }
.schedule time b { font: 900 clamp(44px, 5vw, 68px)/.9 'Archivo', sans-serif; font-stretch: 115%; letter-spacing: -.03em; }
.schedule time span { font: 500 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); }
[dir='rtl'] .schedule time span { font-family: var(--font-body); letter-spacing: 0; font-size: 14px; }
.schedule h3 { font-family: 'Archivo', sans-serif; font-weight: 800; font-stretch: 112%; font-size: clamp(20px, 2.4vw, 32px); line-height: 1.05; letter-spacing: -.01em; direction: ltr; text-align: start; }
.schedule p { margin-top: 6px; color: var(--text-secondary); font-size: 15px; }
.ev-status { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; padding: 8px 12px; border: 1px solid var(--border-strong); color: var(--text-muted); white-space: nowrap; }
[dir='rtl'] .ev-status { font-family: var(--font-body); letter-spacing: 0; font-size: 13px; }
.schedule .is-up .ev-status { background: var(--orange); border-color: var(--orange); color: var(--black); }
.schedule .is-up time b { color: var(--orange); }
.schedule .is-past { opacity: .55; }
.schedule .is-past:hover { opacity: 1; }

/* =========================================================
   APPLICATION SECTION (contact page + bottom of home)
   ========================================================= */
.apply-section { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--border); }
.page-contact .apply-section { border-top: 0; padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 110px)); }
.ap-head { max-width: 860px; margin-bottom: clamp(32px, 4vw, 56px); }
.ap-title { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: clamp(42px, 6.6vw, 104px); line-height: .9; letter-spacing: -.035em; }
[dir='rtl'] .ap-title { line-height: 1.25; letter-spacing: 0; }
.ap-sub { margin-top: 22px; max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--text-secondary); }

.ap-shell {
  position: relative; padding: clamp(22px, 3.4vw, 48px); background: var(--white); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(10,10,10,.04), 0 30px 60px -40px rgba(10,10,10,.25);
}
/* progress */
.ap-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: clamp(26px, 3.5vw, 40px); }
.ap-progress li { position: relative; display: flex; align-items: center; gap: 10px; padding-top: 14px; font-size: 13px; font-weight: 600; color: var(--text-muted); transition: color .4s; }
.ap-progress li::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 3px; background: var(--border); }
.ap-progress li::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
[dir='rtl'] .ap-progress li::after { transform-origin: right; }
.ap-progress li .num { font-size: 11px; }
.ap-progress li.is-current, .ap-progress li.is-done { color: var(--text-main); }
.ap-progress li.is-current::after, .ap-progress li.is-done::after { transform: scaleX(1); }
.ap-progress li.is-current .num, .ap-progress li.is-done .num { color: var(--orange-hover); }

.ap-step.ap-enter { animation: ap-in .55s var(--ease-out); }
@keyframes ap-in { from { opacity: 0; transform: translateY(14px); } }
.ap-step-title { margin-bottom: 18px; font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
[dir='rtl'] .ap-step-title { font-family: var(--font-body); letter-spacing: 0; font-size: 14px; }

/* category cards with an animated orange border */
.ap-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@property --ap-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.ap-card {
  --ap-angle: 0deg; position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; min-height: 248px; padding: 26px 24px 22px;
  text-align: start; border: 0; border-radius: 16px; background: var(--bg-secondary); cursor: pointer; isolation: isolate;
  transition: transform .5s var(--ease-out), background-color .4s, box-shadow .5s var(--ease-out);
}
.ap-card-border {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px; opacity: 0; transition: opacity .35s;
  background: conic-gradient(from var(--ap-angle), transparent 0 55%, var(--orange) 75%, #FFB27A 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.ap-card:hover, .ap-card:focus-visible { background: var(--white); transform: translateY(-6px); box-shadow: 0 24px 44px -26px rgba(10,10,10,.35); }
.ap-card:hover .ap-card-border, .ap-card:focus-visible .ap-card-border { opacity: 1; animation: ap-spin 2.6s linear infinite; }
@keyframes ap-spin { to { --ap-angle: 360deg; } }
.ap-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.ap-card-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--black); color: var(--orange); transition: background-color .35s, color .35s, transform .5s var(--ease-out); }
.ap-card:hover .ap-card-icon { background: var(--orange); color: var(--black); transform: rotate(-6deg) scale(1.05); }
.ap-card-icon svg, .ap-card-go svg, .ap-back svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ap-card-title { align-self: end; font-family: var(--font-display); font-weight: 900; font-stretch: 115%; font-size: clamp(26px, 2.6vw, 36px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
[dir='rtl'] .ap-card-title { line-height: 1.3; letter-spacing: 0; }
.ap-card-text { color: var(--text-secondary); font-size: 15px; line-height: 1.5; }
.ap-card-go { position: absolute; top: 24px; inset-inline-end: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); transition: background-color .3s, border-color .3s, transform .5s var(--ease-out); }
.ap-card-go svg { width: 18px; height: 18px; stroke-width: 2; }
[dir='rtl'] .ap-card-go svg { transform: scaleX(-1); }
.ap-card:hover .ap-card-go { background: var(--orange); border-color: var(--orange); transform: translateX(4px); }
[dir='rtl'] .ap-card:hover .ap-card-go { transform: translateX(-4px); }

/* step 2 */
.ap-form-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.ap-back { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px 9px 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: none; cursor: pointer; font-size: 14px; font-weight: 600; transition: border-color .25s, background-color .25s; }
.ap-back svg { width: 18px; height: 18px; stroke-width: 2; }
[dir='rtl'] .ap-back svg { transform: scaleX(-1); }
.ap-back:hover { border-color: var(--black); background: var(--bg-secondary); }
.ap-form-cat { font-family: var(--font-display); font-weight: 900; font-stretch: 115%; font-size: clamp(22px, 2.4vw, 32px); text-transform: uppercase; color: var(--orange-hover); }
.ap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.ap-field { display: grid; gap: 8px; align-content: start; grid-column: 1 / -1; }
.ap-field.half { grid-column: auto; }
.ap-field label { font-size: 14px; font-weight: 600; }
.ap-field label em { font-style: normal; font-weight: 400; color: var(--text-muted); }
.ap-field input:not([type='hidden']) {
  width: 100%; min-height: 52px; padding: 13px 16px; font: 400 16px/1.4 var(--font-body); color: var(--text-main);
  background-color: var(--bg-main); border: 1px solid var(--border-strong); border-radius: 12px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.ap-field input::placeholder { color: #A3A39E; }
.ap-field input:hover { border-color: #A8A8A3; }
.ap-field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,0,.16); }
.ap-field.has-error input:not([type='hidden']) { border-color: #C9302C; background-color: #FFFBFA; }
.ap-err { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #B3261E; animation: ap-in .25s var(--ease-out); }
.ap-err::before { content: '!'; flex: none; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #B3261E; color: #fff; font: 700 10px/1 var(--font-body); }

/* combobox */
.ap-combo { position: relative; }
.ap-combo [role='combobox'] { padding-inline-end: 38px !important; background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
[dir='rtl'] .ap-combo:not(.ap-dial) [role='combobox'] { background-position: 14px 52%, 20px 52%; }
.ap-combo [role='listbox'] {
  position: absolute; z-index: 20; inset: calc(100% + 6px) 0 auto 0; max-height: 260px; overflow: auto; padding: 6px; margin: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(10,10,10,.28);
}
.ap-combo [role='option'], .ap-combo .ap-none { padding: 10px 12px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.ap-combo .ap-none { color: var(--text-muted); cursor: default; }
.ap-combo [role='option'] b { font-weight: 600; color: var(--text-muted); margin-inline-start: 6px; direction: ltr; unicode-bidi: isolate; }
.ap-combo [role='option']:hover, .ap-combo [role='option'].is-active { background: var(--bg-secondary); }
.ap-combo [role='option'][aria-selected='true'] { color: var(--orange-hover); font-weight: 600; }
/* record */
.ap-record { display: flex; align-items: flex-start; gap: 8px; }
.ap-rec { flex: 1; display: grid; gap: 4px; text-align: center; }
.ap-rec input { text-align: center; padding-inline: 8px !important; font-family: var(--font-mono) !important; font-weight: 600 !important; }
.ap-rec span { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
[dir='rtl'] .ap-rec span { font-family: var(--font-body); letter-spacing: 0; font-size: 12px; }
.ap-rec-sep { padding-top: 14px; color: var(--text-muted); }
/* phone */
.ap-phone { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px; direction: ltr; }
.ap-dial [role='listbox'] { width: min(320px, 80vw); right: auto; }
[dir='rtl'] .ap-dial [role='listbox'] { direction: rtl; }

/* submit + states */
.ap-form .ap-submit { width: 100%; min-height: 58px; margin-top: 26px; border-radius: 12px; font-size: 14px; }
.ap-submit .ap-submit-label::after { content: ' →'; }
[dir='rtl'] .ap-submit .ap-submit-label::after { content: ' ←'; }
.ap-submit[disabled] { cursor: progress; opacity: .85; }
.ap-submit[disabled]::before { transform: scaleY(0); }
.ap-spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ap-spinner .7s linear infinite; }
.ap-submit.is-loading .ap-spinner { display: inline-block; }
.ap-submit.is-loading .ap-submit-label::after { content: ''; }
@keyframes ap-spinner { to { transform: rotate(360deg); } }
.ap-status { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #FFF5F4; border: 1px solid #F1C4C1; color: #8C1D18; font-size: 15px; animation: ap-in .35s var(--ease-out); }
.ap-status p { margin: 0; }
.ap-status-icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #B3261E; color: #fff; }
.ap-status-icon::after { content: '!'; font: 700 12px/1 var(--font-body); }

/* step 3: success */
.ap-done { display: grid; justify-items: center; gap: 16px; padding: clamp(24px, 5vw, 56px) 0; text-align: center; outline: none; }
.ap-check { width: 88px; height: 88px; fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ap-check circle { stroke-dasharray: 183; stroke-dashoffset: 183; animation: ap-draw .7s var(--ease-out) .1s forwards; }
.ap-check path { stroke: var(--black); stroke-width: 4; stroke-dasharray: 44; stroke-dashoffset: 44; animation: ap-draw .45s var(--ease-out) .65s forwards; }
.ap-done[hidden] .ap-check circle, .ap-done[hidden] .ap-check path { animation: none; }
@keyframes ap-draw { to { stroke-dashoffset: 0; } }
.ap-done h3 { max-width: 20ch; font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.02; text-transform: uppercase; letter-spacing: -.02em; }
[dir='rtl'] .ap-done h3 { line-height: 1.35; letter-spacing: 0; }
.ap-done p { max-width: 52ch; color: var(--text-secondary); }
.ap-done .btn { margin-top: 10px; }

/* direct contact strip */
.ap-direct { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.ap-direct li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--border); }
.ap-direct li > span:first-child { font: 500 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
[dir='rtl'] .ap-direct li > span:first-child { font-family: var(--font-body); letter-spacing: 0; font-size: 13px; }
.ap-direct a, .ap-direct li > span:last-child { font-weight: 600; width: fit-content; }
.ap-direct a:hover { color: var(--orange-hover); }
[dir='rtl'] .ap-direct a[dir='ltr'] { text-align: right; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }

/* ---------- footer (black accent) ---------- */
.footer { background: var(--ink-surface); color: var(--white); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-logo { width: 190px; margin-bottom: 18px; }
.footer p { color: var(--ink-text-secondary); max-width: 30ch; }
.footer nav, .footer-contact { display: grid; gap: 12px; align-content: start; color: var(--ink-text-secondary); }
.footer nav a, .footer-contact a { width: fit-content; transition: color .3s; }
.footer nav a:hover, .footer-contact a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 30px; border-top: 1px solid var(--ink-border); font: 500 12px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: #8A8A8A; }
[dir='rtl'] .footer-bottom { font-family: var(--font-body); letter-spacing: 0; font-size: 13px; }
.footer-bottom a:hover { color: var(--orange); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teams { grid-template-columns: repeat(2, 1fr); }
  .f-table .c-title { display: none; }
}
@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 0;
    padding: var(--nav-h) var(--gutter) 40px; margin: 0; background: var(--white);
    clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-out);
  }
  .nav-open .nav-links { clip-path: inset(0 0 0 0); }
  .nav-links a { gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(28px, 8vw, 42px); text-transform: uppercase; line-height: 1.1; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease-out), color .3s; }
  .nav-links a::after { display: none; }
  .nav-open .nav-links a { opacity: 1; transform: none; }
  .nav-open .nav-links a:nth-child(2) { transition-delay: .04s; } .nav-open .nav-links a:nth-child(3) { transition-delay: .08s; }
  .nav-open .nav-links a:nth-child(4) { transition-delay: .12s; } .nav-open .nav-links a:nth-child(5) { transition-delay: .16s; }
  .nav-open .nav-links a:nth-child(6) { transition-delay: .2s; }
  .nav-open .nav { background: var(--white); backdrop-filter: none; transform: none; } /* backdrop-filter would trap the fixed menu */
  .nav-actions { margin-inline-start: auto; }

  .home-feature .wrap { grid-template-columns: minmax(0, 1fr); }
  .hg-wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hg-title { font-size: clamp(34px, 11.2vw, 72px); }
  .globe-stage { width: min(100%, 560px); margin-inline-end: 0; }
  .hg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hg-stats > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .hg-stats > div:nth-child(n+3) { border-top: 1px solid var(--border-strong); }
  .tilt-card { width: min(100%, 360px); }
  .next-event a { grid-template-columns: auto 1fr; gap: 10px 16px; }
  .next-event strong { grid-column: 1 / -1; }
  .next-event .arrow-link { display: none; }
  .explore-head { flex-direction: column; align-items: flex-start; }
  .cta-band .wrap, .page-hero-grid, .section-head, .founder, .story, .rtc { grid-template-columns: minmax(0, 1fr); }
  .founder-visual { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .stats > div:nth-child(n+3) { margin-top: 28px; }
  .roster-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* table → stacked rows */
  .f-table thead, .f-table .c-no, .f-table .c-country, .f-table .c-div, .f-table .c-rec { display: none; }
  .f-table, .f-table tbody { display: block; }
  .f-table { border-top: 1.5px solid var(--black); }
  .f-table tr { display: flex; align-items: center; gap: 12px; }
  .f-table td { padding: 14px 0; }
  .f-table .c-who { flex: 1; min-width: 0; }
  .f-name { overflow-wrap: anywhere; }
  .f-who { min-width: 0; }
  .f-mob { display: block; }
}
@media (max-width: 820px) {
  .ap-cards { grid-template-columns: minmax(0, 1fr); }
  .ap-card { min-height: 0; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; padding: 20px; padding-inline-end: 66px; }
  .ap-card-icon { grid-row: span 2; }
  .ap-card-title { align-self: center; }
  .ap-card-go { top: 50%; translate: 0 -50%; }
  .ap-direct { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 640px) {
  .gallery-head { flex-direction: column; align-items: flex-start; }
  .c3d-stage { perspective: 900px; height: clamp(260px, 82vw, 380px); }
  .c3d-slide { width: clamp(200px, 64vw, 300px); border-radius: 12px; }
  .c3d-bar { grid-template-columns: 1fr auto; }
  .c3d-dots { grid-column: 1 / -1; grid-row: 2; }
  .c3d-btn { width: 44px; height: 44px; }
}
@media (max-width: 600px) {
  .explore-grid { grid-template-columns: minmax(0, 1fr); }
  .x-media { aspect-ratio: 4 / 3; }
  .roster-grid, .teams { grid-template-columns: 1fr; }
  .teams li { min-height: 0; gap: 16px; }
  .promos li { grid-template-columns: 40px 1fr; }
  .promos .who { grid-column: 2; text-align: start; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .schedule li { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .schedule li > div { grid-column: 1 / -1; grid-row: 2; }
  .ap-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-progress li span:not(.num) { font-size: 12px; }
  .creds li { grid-template-columns: 44px 1fr; }
  .footer-bottom { flex-direction: column; }
  .home-ctas .btn { flex: 1 1 100%; }
  .cta-band .btn { width: 100%; }
}
@media (max-width: 420px) {
  /* very small phones: big display type follows the viewport so long words never overflow */
  .display { font-size: clamp(30px, 10.4vw, 44px); }
  .home-title { font-size: clamp(32px, 10.8vw, 48px); }
  .h2 { font-size: clamp(26px, 8.4vw, 36px); }
  .ap-title { font-size: clamp(36px, 11.5vw, 56px); }
  .ap-card-title { font-size: 22px; }
  .ap-card-icon { width: 48px; height: 48px; }
  .ap-phone { grid-template-columns: 104px minmax(0, 1fr); }
  .f-thumb { width: 56px; height: 70px; }
  .f-who { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-card:hover .ap-card-border { animation: none; }
  .ap-check circle, .ap-check path { stroke-dashoffset: 0 !important; animation: none !important; }
  .c3d-slide { transition: opacity .2s; }
  .hg-in, .hg-line > .hg-in, .globe-stage { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal], .split .w > span, .mask-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* =====================================================================
   UX quality pass — accessibility, touch, type and motion
   (WCAG 2.2 AA: contrast 4.5:1, focus visible, targets; 44px touch on phones)
   ===================================================================== */

/* -- keyboard: skip link + anchors never hidden under the sticky header -- */
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
.skip-link { position: fixed; top: 10px; inset-inline-start: 10px; z-index: 1000; padding: 12px 18px; background: var(--black); color: var(--white);
  font-weight: 600; border-radius: var(--radius); transform: translateY(-200%); transition: transform .2s var(--ease-out); }
.skip-link:focus { transform: none; outline: 2px solid var(--orange); outline-offset: 2px; }
main:focus { outline: none; }

/* -- contrast: small orange text uses the darker text orange; brand orange stays for fills and display type -- */
.x-num, .c3d-count, .creds .num, .rtc-points .num, .teams li:hover .num,
.ap-progress li.is-current .num, .ap-progress li.is-done .num, .arrow-link.is-accent { color: var(--orange-text); }

/* -- type: nothing functional below 12px; headings wrap in balanced lines -- */
.f-table th, .ev-status, .next-event .tag, .globe-stage .drag-hint, .ap-rec span, .ap-direct li > span:first-child, .ap-progress li .num { font-size: 12px; }
.pin i { font-size: 10px; }
h1, h2, h3, .display, .h2, .statement { text-wrap: balance; }
p, li { text-wrap: pretty; }
.num, .f-table .c-rec, time { font-variant-numeric: tabular-nums; }

/* -- press feedback on every tappable surface -- */
.btn:active { transform: scale(.98); }
.x-card:active, .roster-grid a:active, .hg-chips li:active, .ap-card:active { transform: scale(.985); }
.btn, .c3d-btn, .c3d-dot, .hg-chips li, #langSwitch, .burger, .nav-links a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* -- carousel: dots get a 24px target, plus a pause / play control -- */
.c3d-dots { gap: 0; }
.c3d-dot { position: relative; width: 22px; height: 24px; background: none; transition: width .4s var(--ease-out); }
.c3d-dot::before { content: ''; position: absolute; inset: 8px 7px; border-radius: 99px; background: #B9B9B4; transition: background-color .3s; }
.c3d-dot[aria-selected='true'] { width: 40px; background: none; }
.c3d-dot[aria-selected='true']::before { background: var(--orange); }
.c3d-btn.c3d-pause svg { width: 18px; height: 18px; }
[dir='rtl'] .c3d-btn.c3d-pause svg { transform: none; }

/* -- phones: every control is at least 44px tall -- */
@media (max-width: 760px) {
  #langSwitch { min-height: 44px; min-width: 44px; }
  .nav-logo { padding-block: 4px; min-height: 44px; justify-content: center; }
  .hg-chips li { min-height: 44px; }
  .footer nav, .footer-contact { gap: 0; }
  .footer nav a, .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .c3d-dot { height: 44px; }
  .c3d-dot::before { inset: 18px 7px; }
  .ap-field input, .ap-field select, .ap-combo input { min-height: 48px; font-size: 16px; }   /* 16px stops iOS zooming into fields */
}

/* -- contrast, second pass: accents that sit on light backgrounds -- */
:root { --orange-display: #F06000; }   /* brand orange a touch deeper: 3.3:1 for large display type on white */
.kicker b, .f-table .c-title b, .timeline time { color: var(--orange-text); }
.cta-band .kicker b, .footer .kicker b { color: var(--orange); }   /* dark surfaces keep the bright orange */
.hg-title .dot, .home-title .dot, .display em, .stats dd em, .schedule .is-up time b { color: var(--orange-display); }
.cta-band .display em { color: var(--orange); }
.f-thumb .ph { color: var(--text-muted); }
@media (max-width: 760px) {
  .ap-direct a { display: inline-flex; align-items: center; min-height: 44px; }
  .c3d-dot { width: 26px; }
  .c3d-dot[aria-selected='true'] { width: 40px; }
}
.c3d-dot { width: 24px; }
.footer-bottom a, .footer nav a, .footer-contact a { padding-block: 4px; }

/* contact form: four options + free-text message */
.ap-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ap-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ap-cards { grid-template-columns: minmax(0, 1fr); } }
.ap-field textarea { width: 100%; min-height: 150px; resize: vertical; }
.ap-field textarea { padding: 13px 16px; font: 400 16px/1.55 var(--font-body); color: var(--text-main); background-color: var(--bg-main); border: 1px solid var(--border-strong); border-radius: 12px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.ap-field textarea::placeholder { color: #8A8A85; }
.ap-field textarea:hover { border-color: #A8A8A3; }
.ap-field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,0,.16); }
.ap-field.has-error textarea { border-color: #C9302C; background-color: #FFFBFA; }

/* about: full-frame founder portrait + the list of coaches */
.founder-photo.is-portrait img { inset: 0; width: 100%; height: 100%; translate: none; object-fit: cover; object-position: center top; filter: none; }
.founder-photo.is-portrait:hover img { filter: none; }
.coach-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: -6px 0 22px; padding: 0; list-style: none; }
.coach-list li { position: relative; padding: 11px 0; padding-inline-start: 20px; border-bottom: 1px solid var(--border); font-size: 17px; font-weight: 600; color: var(--text-main); }
.coach-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 50%; width: 8px; height: 2px; background: var(--orange); }
@media (max-width: 520px) { .coach-list { grid-template-columns: minmax(0, 1fr); } }
