/* ==========================================================================
   LYBOTICS Wizards · FTC #18422 · shared stylesheet
   --------------------------------------------------------------------------
   1. Design tokens  (colours, type, spacing: change the look here)
   2. Base
   3. Layout helpers
   4. Blueprint motifs (grid, ruler, corner ticks, figure labels)
   5. Components: header, nav, buttons, chips, plates, cards…
   6. Page sections
   7. Forms
   8. Motion
   9. Language / RTL
   ========================================================================== */

/* 1. DESIGN TOKENS ======================================================== */
:root {
  /* Brand palette (from the team's existing work) */
  --orange: #C85A28;      /* hero colour. White text on it only at large sizes (4.24:1) */
  --rust: #A1431D;        /* accent text on paper (5.6:1), hovers */
  --brown: #5C3119;       /* dark contrast sections, footer */
  --ink: #141414;         /* logo outlines and hat; body text */
  --white: #FFFFFF;
  --orb: #F2C94C;         /* staff-orb yellow, tiny accents only */

  /* Derived neutrals */
  --paper: #F6F1E9;       /* warm off-white page background */
  --paper-2: #EDE4D8;     /* alternate band */
  --paper-3: #E2D4C2;
  --card: #FFFDF9;
  --text: var(--ink);
  --text-muted: #6B5546;  /* 6.2:1 on paper, 5.5:1 on paper-2 */
  --line: rgba(92, 49, 25, .16);
  --line-strong: rgba(92, 49, 25, .34);
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, .74);
  --on-dark-line: rgba(255, 255, 255, .16);
  --sand: #E9C9A8;        /* accent text on brown (7:1) */
  --focus: var(--ink);

  /* Type */
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-latin-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-label: .78125rem;                                       /* 12.5px mono labels */
  --fs-small: .875rem;
  --fs-body: clamp(1rem, .97rem + .15vw, 1.0938rem);
  --fs-lead: clamp(1.125rem, 1.04rem + .45vw, 1.375rem);
  --fs-h4: clamp(1.125rem, 1.06rem + .3vw, 1.3125rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .8vw, 1.875rem);
  --fs-h2: clamp(2.125rem, 1.45rem + 3vw, 4.25rem);
  --fs-h1: clamp(2.75rem, 1.7rem + 4.6vw, 5.75rem);
  --fs-giant: clamp(3.5rem, 1.4rem + 9.4vw, 11rem);

  --lh-body: 1.6;
  --lh-head: 1.02;
  --track-head: -.025em;
  --track-label: .1em;

  /* Space & layout */
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 82.5rem;                                              /* 1320px */
  --section: clamp(4.5rem, 2.6rem + 7vw, 9.5rem);
  --header-h: 4.5rem;
  --radius: 6px;
  --radius-lg: 14px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: .8s;
}

@media (max-width: 47.99em) {
  :root { --header-h: 4rem; }
}

/* Arabic: its own faces, roomier leading, no tracking or uppercase */
html[lang="ar"] {
  --font-display: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --font-mono: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --fs-body: clamp(1.0625rem, 1.03rem + .15vw, 1.15rem);
  --fs-label: .875rem;
  --lh-body: 1.85;
  --lh-head: 1.28;
  --track-head: 0;
  --track-label: 0;
}

/* 2. BASE ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark { --focus: #fff; color: var(--on-dark); }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--track-head);
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); font-weight: 800; }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.12; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.25; }
html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.4; }
p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.5; }
html[lang="ar"] .lead { line-height: 1.75; }
.muted { color: var(--text-muted); }
.on-dark .muted { color: var(--on-dark-muted); }

.skip-link {
  position: absolute; z-index: 100;
  inset-inline-start: 1rem; inset-block-start: -4rem;
  padding: .75rem 1rem; border-radius: var(--radius);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transition: inset-block-start .2s;
}
.skip-link:focus { inset-block-start: 1rem; }

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

/* 3. LAYOUT =============================================================== */
.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .66); }
.bg-paper-2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); }
.bg-brown { background: var(--brown); }
.bg-orange { background: var(--orange); }

.stack > * + * { margin-block-start: var(--stack, 1.1em); }

.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
}
@media (min-width: 64em) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .split > .split-a { grid-column: 1 / span 6; }
  .split > .split-b { grid-column: 8 / span 5; }
  .split--wide-b > .split-a { grid-column: 1 / span 5; }
  .split--wide-b > .split-b { grid-column: 7 / span 6; }
  .split--center { align-items: center; }
}

.section-head { max-width: 46rem; margin-block-end: clamp(2.5rem, 5vw, 4.5rem); }
.section-head > * + * { margin-block-start: 1.25rem; }
.section-head--row { max-width: none; display: grid; gap: 1.25rem; }
@media (min-width: 64em) {
  .section-head--row { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .section-head--row > :first-child { grid-column: 1 / span 7; }
  .section-head--row > :last-child { grid-column: 9 / span 4; margin: 0; }
}

/* 4. BLUEPRINT MOTIFS ===================================================== */
/* Section index label: "01 —— WHO WE ARE" */
.index {
  display: flex; align-items: center; gap: .85rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--rust);
}
.index-num { font-family: var(--font-latin-mono); }
.index::before { content: none; }
.index-num::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 2.5rem; height: 1px; margin-inline-start: .85rem;
  background: currentColor; opacity: .6;
}
.on-dark .index { color: var(--orb); }
.bg-brown .index, .bg-brown.on-dark .index { color: var(--sand); }
html[lang="ar"] .index { text-transform: none; }

/* Grid paper: applied as a faded pseudo layer */
.has-grid { position: relative; isolation: isolate; }
.has-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  --g-minor: rgba(255, 255, 255, .07);
  --g-major: rgba(255, 255, 255, .11);
  background-image:
    linear-gradient(var(--g-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--g-major) 1px, transparent 1px),
    linear-gradient(var(--g-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--g-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 70% 40%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 75% at 70% 40%, #000 30%, transparent 100%);
}
.has-grid--orange::before { --g-minor: rgba(200, 90, 40, .10); --g-major: rgba(200, 90, 40, .22); }
.has-grid--brown::before { --g-minor: rgba(92, 49, 25, .045); --g-major: rgba(92, 49, 25, .09); }

/* Ruler ticks along an edge */
.ruler {
  height: 14px; color: rgba(255, 255, 255, .55);
  background-image:
    linear-gradient(90deg, currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 120px 14px, 24px 9px, 6px 4px;
  background-repeat: repeat-x;
  background-position: 0 100%;
}
.ruler--dark { color: rgba(92, 49, 25, .4); }
.ruler--top { background-position: 0 0; }

/* Figure caption: "FIG. 03 — Edison division field" */
.fig {
  display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap;
  margin-block-start: .9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .02em;
  color: var(--text-muted);
  line-height: 1.5;
}
.fig-num {
  font-family: var(--font-latin-mono);
  color: var(--rust); font-weight: 500; letter-spacing: var(--track-label); white-space: nowrap;
}
.on-dark .fig { color: var(--on-dark-muted); }
.on-dark .fig-num { color: var(--orb); }
.bg-brown .fig-num { color: var(--sand); }
html[lang="ar"] .fig { letter-spacing: 0; }

/* Latin runs inside Arabic text keep their own direction */
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--font-latin-mono); }

/* 5. COMPONENTS =========================================================== */

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 60;
  height: var(--header-h);
  color: var(--ink);
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s;
}
.site-header::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 1px;
  background: var(--line); opacity: 0; transition: opacity .35s;
}
.site-header.is-scrolled {
  background: rgba(246, 241, 233, .94);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
          backdrop-filter: saturate(1.3) blur(10px);
}
.site-header.is-scrolled::after { opacity: 1; }
body[data-hero="dark"] .site-header:not(.is-scrolled) { color: #fff; --focus: #fff; }
body.menu-open .site-header { background: var(--ink); color: #fff; --focus: #fff; }
body.menu-open .site-header::after { opacity: 0; }

.header-bar {
  height: 100%;
  display: flex; align-items: center; gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .75rem;
  text-decoration: none; margin-inline-end: auto; flex-shrink: 0;
  border-radius: var(--radius);
}
.brand-tile {
  width: 2.75rem; height: 2.75rem; flex: none;
  display: grid; place-items: center;
  background: var(--orange); border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  overflow: hidden;
}
.brand-tile img { width: 2.15rem; height: auto; transform: translateY(1px); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: "Bricolage Grotesque", var(--font-display);
  font-weight: 800; font-size: 1.0625rem; letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--font-latin-mono); font-size: .6875rem; letter-spacing: .06em;
  opacity: .78; white-space: nowrap; margin-block-start: .2rem;
}
html[lang="ar"] .brand-sub { font-family: var(--font-body); letter-spacing: 0; font-size: .75rem; }

/* --- Navigation ---------------------------------------------------------- */
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative; display: inline-flex; align-items: baseline; gap: .5rem;
  padding: .55rem .8rem; border-radius: var(--radius);
  font-weight: 500; font-size: .9375rem; text-decoration: none;
}
.nav-num { display: none; font-family: var(--font-latin-mono); font-size: .75rem; opacity: .6; }
.nav-link::after {
  content: ""; position: absolute; inset-inline: .8rem; inset-block-end: .3rem; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: var(--origin-start, left);
  transition: transform .45s var(--ease-out);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-network {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-inline-start: .5rem;
  padding: .5rem .8rem .5rem .9rem; border-radius: 999px;
  border: 1px solid currentColor;
  font-weight: 600; font-size: .875rem; text-decoration: none; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s;
}
.site-header .nav-network { border-color: color-mix(in srgb, currentColor 35%, transparent); }
.nav-network:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
body[data-hero="dark"] .site-header:not(.is-scrolled) .nav-network:hover { background: #fff; color: var(--ink); border-color: #fff; }
.soon {
  display: inline-block; padding: .1rem .45rem; border-radius: 999px;
  background: var(--orb); color: var(--ink);
  font-family: var(--font-latin-mono); font-size: .625rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  line-height: 1.5;
}
html[lang="ar"] .soon { font-family: var(--font-body); font-size: .75rem; letter-spacing: 0; text-transform: none; }
.icon-ext { width: .85em; height: .85em; flex: none; }
html[data-network="soon"] [data-network-link] .icon-ext { display: none; }
html[data-network="live"] [data-network-soon] { display: none; }
html:not([data-network="live"]) [data-when="live"] { display: none !important; }
html[data-network="live"] [data-when="soon"] { display: none !important; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  height: 2.5rem; padding: 0 .85rem; border-radius: 999px;
  background: transparent; border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  font-size: .875rem; font-weight: 600;
  transition: background-color .3s, color .3s;
}
.lang-toggle:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.lang-toggle svg { width: 1rem; height: 1rem; }
.lang-toggle bdi[data-only="en"] { font-family: "IBM Plex Sans Arabic", "Tajawal", sans-serif; }
.lang-toggle bdi[data-only="ar"] { font-family: "Instrument Sans", system-ui, sans-serif; }

.menu-btn {
  display: none;
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  background: transparent; place-items: center; padding: 0;
}
.menu-btn-lines { position: relative; width: 1.1rem; height: .8rem; }
.menu-btn-lines span {
  position: absolute; inset-inline: 0; height: 1.75px; border-radius: 2px; background: currentColor;
  transition: transform .4s var(--ease-out), opacity .2s, top .4s var(--ease-out);
}
.menu-btn-lines span:nth-child(1) { top: 0; }
.menu-btn-lines span:nth-child(2) { top: calc(50% - .875px); }
.menu-btn-lines span:nth-child(3) { top: calc(100% - 1.75px); }
.menu-btn[aria-expanded="true"] .menu-btn-lines span:nth-child(1) { top: calc(50% - .875px); transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-lines span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn-lines span:nth-child(3) { top: calc(50% - .875px); transform: rotate(-45deg); }

.nav-foot { display: none; }

/* Mobile + tablet menu (below 1100px) */
@media (max-width: 68.74em) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 59;
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    padding: clamp(1.5rem, 5vw, 3rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
    background: var(--ink); color: #fff; --focus: #fff;
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-.75rem);
    transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s linear .45s;
  }
  .nav::before { /* faint grid in the open menu */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
      linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
            mask-image: linear-gradient(to bottom, #000, transparent 70%);
  }
  .nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-block-end: 1px solid rgba(255, 255, 255, .12); }
  .nav-link {
    display: flex; width: 100%; padding: 1rem 0; border-radius: 0;
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.75rem, 1.2rem + 3vw, 2.75rem); letter-spacing: var(--track-head); line-height: 1.15;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--orb); }
  .nav-num { display: inline; align-self: center; min-width: 2rem; }
  .nav-list > li.nav-network-item { border: 0; padding-block-start: 1.5rem; }
  .nav-network {
    margin: 0; width: 100%; justify-content: space-between;
    padding: 1rem 1.25rem; border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, .25); font-size: 1rem;
  }
  .site-header .nav-network { border-color: rgba(255, 255, 255, .25); }
  .nav-network:hover { background: #fff; color: var(--ink); }
  .nav-foot {
    display: grid; gap: .35rem; justify-items: start;
    font-family: var(--font-mono); font-size: var(--fs-label); color: var(--on-dark-muted);
  }
  .nav-foot .label { color: var(--orb); text-transform: uppercase; letter-spacing: var(--track-label); }
  html[lang="ar"] .nav-foot .label { text-transform: none; }
}
@media (max-width: 26em) {
  .brand-sub { display: none; }
  .lang-toggle svg { display: none; }
}

/* --- Buttons ------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .8rem 1.4rem;
  border-radius: var(--radius); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s, transform .3s var(--ease-out);
}
.btn:hover { --btn-bg: var(--rust); --btn-bd: var(--rust); }
@media (max-width: 29.99em) { .btn { padding-inline: 1.05rem; } .btn-row { gap: .6rem; } }
.btn:active { transform: translateY(1px); }
.btn .icon-arrow { width: 1.1rem; height: 1.1rem; flex: none; transition: transform .4s var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(.25rem); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--outline { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: color-mix(in srgb, currentColor 45%, transparent); color: inherit; }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.on-dark .btn--outline:hover, .hero .btn--outline:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--orange { --btn-bg: var(--orange); --btn-fg: #fff; --btn-bd: var(--orange); font-size: 1.1875rem; font-weight: 700; } /* 19px bold = large text, 4.24:1 passes */
.btn--orange:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* Text link with an arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1.5px;
  padding-block-end: .2rem;
  transition: background-size .45s var(--ease-out), color .3s;
}
.link-arrow:hover { color: var(--rust); }
.on-dark .link-arrow:hover { color: var(--orb); }
.link-arrow .icon-arrow { width: 1rem; height: 1rem; transition: transform .4s var(--ease-out); }
.link-arrow:hover .icon-arrow { transform: translateX(.25rem); }

/* --- Chips ------------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .75rem; border-radius: 4px;
  background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1.3;
}
html[lang="ar"] .chip { text-transform: none; }
.chip--orb { background: var(--orb); color: var(--ink); }
.chip--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.chip-dot {
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--orb); flex: none;
  box-shadow: 0 0 0 0 rgba(242, 201, 76, .6);
}
.chip--orb .chip-dot { background: var(--ink); }

/* Clearly marked placeholder text for the team to fill in */
.ph {
  font-family: var(--font-latin-mono); font-size: .9em; font-weight: 500;
  padding: .05em .4em; border-radius: 3px;
  outline: 1.5px dashed currentColor; outline-offset: -1.5px;
  background: rgba(242, 201, 76, .28);
  white-space: nowrap; direction: ltr; unicode-bidi: isolate;
}
.on-dark .ph { background: rgba(242, 201, 76, .16); color: var(--orb); }
.ph-block {
  display: grid; gap: .75rem; place-items: start;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(92, 49, 25, .035) 12px 24px);
}

/* --- Photo plates -------------------------------------------------------- */
.plate { position: relative; }
.plate-media {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ratio, 3 / 4);
  background: var(--paper-3);
}
.plate-media picture { display: block; width: 100%; height: 100%; }
.plate-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus-pos, 50% 50%); transition: transform 1.2s var(--ease-out); }
.plate:hover .plate-media img { transform: scale(1.035); }
/* corner ticks: top-start and bottom-end */
.plate-ticks { position: absolute; inset: -7px; pointer-events: none; z-index: 1; }
.plate-ticks::before, .plate-ticks::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--rust);
}
.plate-ticks::before { inset-block-start: 0; inset-inline-start: 0; border-block-start-width: 1.5px; border-inline-start-width: 1.5px; }
.plate-ticks::after { inset-block-end: 0; inset-inline-end: 0; border-block-end-width: 1.5px; border-inline-end-width: 1.5px; }
.on-dark .plate-ticks::before, .on-dark .plate-ticks::after { border-color: var(--orb); }
.bg-brown .plate-ticks::before, .bg-brown .plate-ticks::after { border-color: var(--sand); }

/* --- Spec sheet (definition lists of real facts) ------------------------- */
.specs { background: var(--ink); color: #fff; }
.specs-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.spec {
  padding: 1.35rem 1.25rem 1.5rem;
  border-block-start: 1px solid var(--on-dark-line);
  border-inline-start: 1px solid var(--on-dark-line);
}
.spec:nth-child(2n + 1) { border-inline-start: 0; padding-inline-start: 0; }
.spec:nth-child(-n + 2) { border-block-start: 0; }
.spec:last-child:nth-child(odd) { grid-column: 1 / -1; }
.spec dt {
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--orb); margin-block-end: .4rem;
}
html[lang="ar"] .spec dt { text-transform: none; }
.spec dd { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); line-height: 1.2; }

@media (min-width: 64em) {
  .specs-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, .9fr) minmax(0, 1fr); }
  .spec, .spec:nth-child(n) { border-block-start: 0; border-inline-start: 1px solid var(--on-dark-line); padding: 1.75rem 1.5rem 1.9rem; }
  .spec:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .spec:last-child:nth-child(odd) { grid-column: auto; }   /* the 2-column rule must not span here */
}

/* Factsheet (light variant, used on About) */
.factsheet { border-block-start: 2px solid var(--ink); margin: 0; }
.factsheet > div {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem;
  padding-block: 1rem; border-block-end: 1px solid var(--line-strong);
}
.factsheet dt {
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--rust); padding-block-start: .2rem;
}
html[lang="ar"] .factsheet dt { text-transform: none; }
.factsheet dd { font-weight: 600; }

/* --- Cards ---------------------------------------------------------------- */
.cards { display: grid; gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); }
@media (min-width: 40em) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  background: var(--paper); padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; gap: .85rem;
  transition: background-color .4s var(--ease-out);
}
.bg-paper-2 .card { background: var(--paper-2); }
.card:hover { background: var(--card); }
.card-num {
  font-family: var(--font-latin-mono); font-size: var(--fs-label); color: var(--rust);
  letter-spacing: .1em; display: flex; justify-content: space-between; align-items: center;
}
.card-num::after { content: ""; width: 10px; height: 10px; border-block-start: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor; }
.card h3, .card h4 { font-size: var(--fs-h4); }
.card p { color: var(--text-muted); }

/* --- Section: home hero -------------------------------------------------- */
.hero {
  background: var(--orange); color: #fff; --focus: #fff;
  padding-block: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem)) 0;
  overflow: hidden;
}
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: end; }
@media (min-width: 64em) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; }
}
/* Tablet: headline full width, mascot beside the deck and buttons */
@media (min-width: 48em) and (max-width: 63.99em) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto min-content 1fr; row-gap: 0; column-gap: 2.5rem; align-items: start; }
  .hero-copy { display: contents; }
  .hero-copy > .chip { grid-column: 1 / -1; justify-self: start; }
  .hero-title { grid-column: 1 / -1; }
  .hero-deck { grid-column: 1; grid-row: 3; }
  .hero .btn-row { grid-column: 1; grid-row: 4; align-self: start; }
  .mascot { grid-column: 2; grid-row: 3 / span 2; align-self: center; margin-block-start: 1.5rem; }
  .mascot-stage { height: 15rem; }
}
.hero-copy > * + * { margin-block-start: clamp(1.25rem, 2.5vw, 1.75rem); }
.hero-title { font-size: var(--fs-h1); line-height: .96; letter-spacing: -.035em; }
html[lang="ar"] .hero-title { line-height: 1.22; letter-spacing: 0; font-size: calc(var(--fs-h1) * .98); }
.hero-title .line { display: block; overflow: hidden; padding-block-end: .08em; margin-block-end: -.08em; }
.hero-title .line > span { display: inline-block; }
.hero-deck {
  max-width: 36rem;
  font-family: var(--font-display); font-weight: 700;          /* bold ≥ 18.7px: WCAG "large" text on orange */
  font-size: clamp(1.1875rem, 1.05rem + .55vw, 1.5rem); line-height: 1.38; letter-spacing: -.005em;
}
html[lang="ar"] .hero-deck { line-height: 1.7; letter-spacing: 0; }
.hero .btn-row { padding-block-start: .5rem; }
.hero-base { margin-block-start: clamp(3rem, 7vw, 5.5rem); }

/* Mascot drawn as a technical figure */
.mascot { justify-self: center; position: relative; padding-inline-end: 2.75rem; padding-block-end: 2.75rem; }
@media (min-width: 64em) { .mascot { justify-self: end; margin-inline-end: 1rem; } }
.mascot-stage { position: relative; height: clamp(15rem, 10rem + 18vw, 25rem); aspect-ratio: 296 / 547; margin-inline: auto; }
.mascot-stage img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(92, 49, 25, .28)); }
.dim { position: absolute; color: rgba(255, 255, 255, .78); pointer-events: none; }
.dim::before, .dim::after { content: ""; position: absolute; background: currentColor; }
.dim--v { inset-block: 0; inset-inline-end: -2.25rem; width: 1px; background: currentColor; transform-origin: 50% 0; }
.dim--v::before, .dim--v::after { width: 13px; height: 1px; inset-inline-start: -6px; }
.dim--v::before { top: 0; }
.dim--v::after { bottom: 0; }
.dim--h { inset-inline: 0; inset-block-end: -2.25rem; height: 1px; background: currentColor; transform-origin: 0 50%; }
.dim--h::before, .dim--h::after { width: 1px; height: 13px; top: -6px; }
.dim--h::before { left: 0; }
.dim--h::after { right: 0; }
.dim-label {
  position: absolute; white-space: nowrap;
  font-family: var(--font-latin-mono); font-size: .6875rem; letter-spacing: .08em; color: #fff;
  background: var(--orange); padding: .15rem .45rem;
  direction: ltr; unicode-bidi: isolate;
}
.dim--v .dim-label { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.dim--h .dim-label { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.mascot-cross {
  position: absolute; width: 22px; height: 22px; pointer-events: none;
  top: 39.5%; left: 93%; transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%;
}
.mascot-cross::before, .mascot-cross::after { content: ""; position: absolute; background: rgba(255, 255, 255, .7); }
.mascot-cross::before { left: 50%; top: -7px; bottom: -7px; width: 1px; }
.mascot-cross::after { top: 50%; left: -7px; right: -7px; height: 1px; }
.mascot .fig { color: #fff; justify-content: center; text-align: center; margin-block-start: 3rem; max-width: 16rem; margin-inline: auto; }
.mascot .fig-num { color: #fff; opacity: .8; }
@media (max-width: 47.99em) {
  .mascot { margin-inline-end: 2.25rem; }
}

/* Generic page hero for inner pages */
.page-hero {
  padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 6.5rem)) clamp(3rem, 6vw, 5rem);
  position: relative;
}
.page-hero.on-dark { background: var(--brown); }
.page-hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 64em) {
  .page-hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .page-hero-grid > :first-child { grid-column: 1 / span 7; }
  .page-hero-grid > :last-child { grid-column: 8 / span 5; }
}
.page-hero .h1 + .lead, .page-hero h1 + .lead { margin-block-start: 1.5rem; max-width: 38rem; }
.page-hero .index { margin-block-end: 1.75rem; }

/* --- Home: who we are ---------------------------------------------------- */
.values { display: grid; gap: 0; margin-block-start: 2rem; border-block-start: 1px solid var(--line-strong); }
.values li { display: grid; grid-template-columns: 2.25rem 1fr; gap: .75rem; padding-block: 1rem; border-block-end: 1px solid var(--line-strong); font-weight: 500; }
.values li { counter-increment: value; }
.values li::before { content: counter(value, decimal-leading-zero); font-family: var(--font-latin-mono); font-size: var(--fs-label); color: var(--rust); padding-block-start: .25rem; }
.values { list-style: none; padding: 0; counter-reset: value; }

.photo-pair { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.photo-pair .plate:first-child { grid-column: 1 / span 9; grid-row: 1; }
.photo-pair .plate:last-child { grid-column: 6 / span 7; grid-row: 1; margin-block-start: 46%; z-index: 2; }
.photo-pair .plate:last-child .plate-media { box-shadow: 0 0 0 clamp(6px, 1vw, 10px) var(--paper); }
.photo-pair .plate:first-child .fig { max-width: 52%; }
@media (min-width: 64em) {
  .split-b.photo-pair { grid-column: 7 / span 6; }
}

/* --- Home: pillars ------------------------------------------------------- */
.pillars { display: grid; gap: 0; list-style: none; padding: 0; counter-reset: pillar; }
.pillar { padding-block: 1.75rem 2rem; border-block-start: 1px solid var(--line-strong); display: grid; gap: .65rem; align-content: start; }
.pillar-num { font-family: var(--font-latin-mono); font-size: var(--fs-label); color: var(--rust); letter-spacing: .1em; }
.pillar h3 { font-size: var(--fs-h3); }
.pillar p { color: var(--text-muted); max-width: 30rem; }
@media (min-width: 40em) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3rem); } }
@media (min-width: 72em) { .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pillar { border-block-start: 2px solid var(--ink); } }

/* --- Gallery (portrait trio) --------------------------------------------- */
.trio {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 22rem); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-block: .5rem 1.25rem; padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--orb) transparent;
}
.trio > * { scroll-snap-align: center; }
@media (min-width: 48em) {
  .trio {
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto;
    gap: clamp(1rem, 2.5vw, 2rem); overflow: visible; margin: 0; padding: 0;
  }
  .trio > :nth-child(2) { margin-block-start: clamp(3rem, 8vw, 7rem); }
  .trio > :nth-child(3) { margin-block-start: clamp(1.5rem, 4vw, 3.5rem); }
}

/* --- Home: kickoff -------------------------------------------------------- */
.kickoff { overflow: hidden; }
.kickoff-word {
  font-family: "Bricolage Grotesque", var(--font-display); font-weight: 800;
  font-size: var(--fs-giant); line-height: .85; letter-spacing: -.045em;
  color: var(--orange);                                   /* large text: 3.4:1 on paper-2 */
  margin-inline-start: -.04em;
  direction: ltr; unicode-bidi: isolate;
}
html[dir="rtl"] .kickoff-word { text-align: end; }
.kickoff-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); margin-block-start: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 64em) {
  .kickoff-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .kickoff-grid > :first-child { grid-column: 1 / span 6; }
  .kickoff-grid > :last-child { grid-column: 8 / span 5; }
}
.kickoff-grid h2 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem); }
.kickoff-grid p { margin-block-start: 1.25rem; }
.hexes { position: absolute; inset-block-start: clamp(1.5rem, 3vw, 2.5rem); inset-inline-end: -2.5rem; width: clamp(11rem, 22vw, 20rem); color: var(--rust); opacity: .42; pointer-events: none; }
.kickoff > .container { position: relative; z-index: 1; }
.nw { white-space: nowrap; }
@media (max-width: 47.99em) { .hexes { opacity: .25; inset-inline-end: -6rem; } }

/* --- Home: network teaser ------------------------------------------------- */
.network { background: var(--ink); color: #fff; --focus: #fff; overflow: hidden; }
.network-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
@media (min-width: 64em) {
  .network-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .network-grid > :first-child { grid-column: 1 / span 6; }
  .network-grid > :last-child { grid-column: 8 / span 5; }
}
.network-title { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 5.25rem); line-height: .98; }
.network-title em { font-style: normal; color: var(--orange); }   /* orange on ink = 4.34:1, large text */
.network-copy > * + * { margin-block-start: 1.5rem; }
.network-copy .chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.network-features { list-style: none; padding: 0; display: grid; gap: 0; border-block-start: 1px solid var(--on-dark-line); }
.network-features li { display: grid; grid-template-columns: 2.25rem 1fr; gap: .5rem; padding-block: .9rem; border-block-end: 1px solid var(--on-dark-line); }
.network-features li > span:first-child { font-family: var(--font-latin-mono); font-size: var(--fs-label); color: var(--orb); padding-block-start: .2rem; }
.network-features strong { display: block; font-weight: 600; }
.network-features p { color: var(--on-dark-muted); font-size: var(--fs-small); }
.network-note { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--on-dark-muted); }

/* Illustrative board of team cards */
.netmock {
  position: relative; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  padding: 1rem; display: grid; gap: .75rem;
}
.netmock::before, .netmock::after { /* registration marks */
  content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--orange);
}
.netmock::before { inset-block-start: -8px; inset-inline-start: -8px; border-block-start-width: 1.5px; border-inline-start-width: 1.5px; }
.netmock::after { inset-block-end: -8px; inset-inline-end: -8px; border-block-end-width: 1.5px; border-inline-end-width: 1.5px; }
.netmock-bar {
  display: flex; justify-content: space-between; gap: 1rem; padding: .25rem .25rem .5rem;
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted);
  border-block-end: 1px dashed rgba(255, 255, 255, .16);
}
html[lang="ar"] .netmock-bar { text-transform: none; letter-spacing: 0; font-size: .8125rem; }
.tcard {
  border-radius: 10px; padding: 1rem 1.1rem; display: grid; gap: .3rem;
  background: #1f1b18; border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .5s var(--ease-out), border-color .4s;
}
.tcard:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .25); }
.tcard-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.tcard-num { font-family: var(--font-latin-mono); font-size: .8125rem; color: var(--orb); }
.tcard-status {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px;
  background: rgba(200, 90, 40, .22); color: #F4B48F;
}
.tcard-status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--orange); }
.tcard-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.tcard-meta { font-size: .8125rem; color: var(--on-dark-muted); }
.tcard--live { background: var(--rust); border-color: var(--rust); }   /* rust, not orange: keeps small white text at 6.3:1 */
.tcard--live .tcard-num { color: #fff; }
.tcard--live .tcard-status { background: rgba(20, 20, 20, .28); color: #fff; }
.tcard--live .tcard-status::before { background: var(--orb); }
.tcard--live .tcard-meta { color: #fff; }
.tcard--ghost { background: transparent; border: 1px dashed rgba(255, 255, 255, .22); }
.tcard--ghost .tcard-name, .tcard--ghost .tcard-num { color: rgba(255, 255, 255, .6); }
.tcard--ghost .tcard-status { background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .7); }
.tcard--ghost .tcard-status::before { background: rgba(255, 255, 255, .45); }
.skeleton { display: block; height: .5rem; border-radius: 4px; background: rgba(255, 255, 255, .1); width: var(--w, 60%); }
.tcard-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (min-width: 30em) { .netmock { padding: 1.25rem; gap: .85rem; } }

/* --- Paths (get involved list) ------------------------------------------- */
.paths { list-style: none; padding: 0; margin: 0; border-block-start: 2px solid var(--ink); }
.path {
  position: relative; display: grid; gap: .35rem 1.5rem;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) .25rem;
  border-block-end: 1px solid var(--line-strong);
  text-decoration: none; isolation: isolate;
}
.path::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--rust); transform: scaleY(0); transform-origin: 50% 100%;   /* white on rust 6.3:1 */
  transition: transform .5s var(--ease-out);
}
.path-num { font-family: var(--font-latin-mono); font-size: var(--fs-label); color: var(--rust); align-self: start; padding-block-start: .55rem; }
.path-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); line-height: 1.1; letter-spacing: var(--track-head); }
.path-desc { grid-column: 2 / 3; color: var(--text-muted); max-width: 38rem; }
.path-arrow {
  grid-row: 1 / span 2; grid-column: 3; width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  transition: background-color .4s, color .4s, border-color .4s, transform .5s var(--ease-out);
}
.path-arrow svg { width: 1.2rem; height: 1.2rem; }
@media (min-width: 64em) {
  .path { grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 5fr) auto; padding-inline: 1rem; }
  .path-desc { grid-column: 3; }
  .path-arrow { grid-column: 4; grid-row: 1; }
  .path-num { align-self: center; padding: 0; }
}
@media (hover: hover) {
  .path:hover::before { transform: scaleY(1); }
  .path:hover { color: #fff; }
  .path:hover .path-num, .path:hover .path-desc { color: #fff; }
  .path:hover .path-arrow { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(-45deg); }
  html[dir="rtl"] .path:hover .path-arrow { transform: rotate(45deg); }
  .path:hover .path-title { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); }
}
@media (max-width: 47.99em) {
  .path { grid-template-columns: 2rem 1fr 2.5rem; column-gap: .75rem; }
  .path-arrow { width: 2.5rem; height: 2.5rem; }
}

/* --- CTA band ------------------------------------------------------------- */
.cta-band { background: var(--orange); color: #fff; --focus: #fff; overflow: hidden; }
.cta-band-inner { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 64em) { .cta-band-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.cta-band h2 { font-size: clamp(2.75rem, 1.5rem + 6vw, 7.5rem); line-height: .92; letter-spacing: -.04em; }
html[lang="ar"] .cta-band h2 { line-height: 1.2; letter-spacing: 0; }
.cta-band .deck { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem); line-height: 1.4; max-width: 30rem; }
.cta-band .btn-row { margin-block-start: 1.5rem; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--brown); color: #fff; --focus: #fff; position: relative; }
.site-footer .ruler { color: rgba(255, 255, 255, .3); }
.footer-main { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 48em) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .footer-main { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } }
.footer-brand .brand { margin-block-end: 1.25rem; }
.footer-brand p { color: var(--on-dark-muted); max-width: 22rem; }
.footer-col h2 {
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--sand); margin-block-end: 1rem;
}
html[lang="ar"] .footer-col h2 { text-transform: none; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer-col a { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .4s var(--ease-out); }
html[dir="rtl"] .footer-col a { background-position: 100% 100%; }
.footer-col a:hover { background-size: 100% 1px; }
.footer-col li { color: var(--on-dark-muted); }
.footer-col li a { color: #fff; }
.footer-word {
  font-family: "Bricolage Grotesque", var(--font-display); font-weight: 800;
  font-size: min(18.5vw, 17rem); line-height: .8; letter-spacing: -.05em;
  color: rgba(255, 255, 255, .08); white-space: nowrap; overflow: hidden;
  direction: ltr; text-align: center; user-select: none;
  padding-block-start: .1em;
}
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  padding-block: 1.5rem 2rem; border-block-start: 1px solid var(--on-dark-line);
  font-size: .8125rem; color: var(--on-dark-muted);
}
.footer-legal p { max-width: 52rem; }

/* 6. PAGE SECTIONS ======================================================== */

/* About: wide team photo */
.wide-plate .plate-media { --ratio: 3 / 2; }
@media (min-width: 64em) { .wide-plate .plate-media { --ratio: 16 / 8.2; } }

/* About: program explainer */
.program-grid { display: grid; gap: 2.5rem; }
@media (min-width: 64em) {
  .program-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .program-grid > :first-child { grid-column: 1 / span 5; }
  .program-grid > :last-child { grid-column: 7 / span 6; }
}

/* About: values on ink */
.statements { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.statement {
  display: grid; gap: .75rem 2rem; padding-block: clamp(1.75rem, 4vw, 3rem);
  border-block-start: 1px solid var(--on-dark-line);
}
.statement:last-child { border-block-end: 1px solid var(--on-dark-line); }
.statement-num { font-family: var(--font-latin-mono); font-size: var(--fs-label); color: var(--orb); padding-block-start: .6rem; }
.statement p:first-of-type { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.15rem + 2.7vw, 3.5rem); line-height: 1.05; letter-spacing: var(--track-head); }
html[lang="ar"] .statement p:first-of-type { line-height: 1.35; }
.statement p + p { color: var(--on-dark-muted); max-width: 34rem; }
@media (min-width: 64em) { .statement { grid-template-columns: 5rem minmax(0, 8fr) minmax(0, 4fr); align-items: start; } .statement p + p { padding-block-start: .75rem; } }

/* About: seasons timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.season {
  position: relative; display: grid; gap: .25rem 2rem;
  padding-block: 1.4rem; padding-inline-start: 2rem;
  border-block-end: 1px solid var(--line-strong);
}
.season::before { /* tick on the rail */
  content: ""; position: absolute; inset-inline-start: 0; top: 2.05rem; width: 1rem; height: 1.5px; background: var(--ink);
}
.timeline::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 0; width: 1.5px; background: var(--ink); }
.season-year { font-family: var(--font-latin-mono); font-size: .9375rem; color: var(--rust); font-weight: 500; }
.season-game { font-family: "Bricolage Grotesque", var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2.125rem); line-height: 1.1; letter-spacing: -.01em; direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .season-game { text-align: end; justify-self: start; }
.season-note { color: var(--text-muted); }
.season--now .season-game { color: var(--orange); }
.season--now::before { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--orange); inset-inline-start: -.58rem; top: 1.45rem; box-shadow: 0 0 0 5px var(--paper); }
@media (min-width: 48em) {
  .season { grid-template-columns: 7rem minmax(0, 1fr); align-items: baseline; padding-inline-start: 2.5rem; }
  .season-note { grid-column: 2; }
}
.season-note:empty { display: none; }

/* About: mixed gallery */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); }
.mosaic .plate--wide { grid-column: 1 / -1; }
.mosaic .plate--wide .plate-media { --ratio: 4 / 3; }
@media (min-width: 64em) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mosaic .plate--wide { grid-column: span 2; }
  .mosaic .plate--wide .plate-media { --ratio: auto; height: 100%; }
  .mosaic .plate--wide { display: flex; flex-direction: column; }
  .mosaic .plate--wide .plate-media { flex: 1; aspect-ratio: auto; min-height: 0; }
}

/* Get involved: sticky sub-navigation */
.subnav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(246, 241, 233, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--line);
}
.subnav-list {
  display: flex; gap: .25rem; list-style: none; margin: 0; padding: .6rem 0;
  overflow-x: auto; scrollbar-width: none;
}
.subnav-list::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .5rem .85rem; border-radius: 999px; text-decoration: none; font-size: .9375rem; font-weight: 500;
  transition: background-color .3s, color .3s;
}
.subnav a span.mono { font-size: .6875rem; color: var(--rust); }
.subnav a:hover { background: var(--paper-2); }
.subnav a[aria-current="true"] { background: var(--ink); color: #fff; }
.subnav a[aria-current="true"] span.mono { color: var(--orb); }
.get-involved [id] { scroll-margin-top: calc(var(--header-h) + 4.5rem); }

/* Get involved: path sections */
.involve { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 64em) {
  .involve { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .involve-head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 6rem); align-self: start; }
  .involve-body { grid-column: 7 / span 6; }
}
.involve-head > * + * { margin-block-start: 1.25rem; }
.involve-head .h2 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.75rem); }
.involve-big-num { font-family: var(--font-latin-mono); font-size: var(--fs-label); color: var(--rust); letter-spacing: .1em; }
.involve-body > * + * { margin-block-start: clamp(2rem, 4vw, 3rem); }
.block-title {
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--rust); margin-block-end: 1rem;
  padding-block-end: .75rem; border-block-end: 2px solid var(--ink);
}
html[lang="ar"] .block-title { text-transform: none; }
.ticklist { list-style: none; padding: 0; display: grid; gap: 0; }
.ticklist li {
  display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; padding-block: .8rem;
  border-block-end: 1px solid var(--line-strong);
}
.ticklist li::before {
  content: ""; width: .7rem; height: .7rem; margin-block-start: .5rem;
  border: 1.5px solid var(--orange); transform: rotate(45deg);
}
.ticklist strong { font-weight: 600; }
.steps { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--font-latin-mono); font-size: .8125rem;
}
.steps li > div { padding-block-start: .55rem; }
.involve .photo { margin-block-start: 0; }
.photo-wide .plate-media { --ratio: 3 / 2; }

/* Contact */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 64em) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .contact-grid > :first-child { grid-column: 1 / span 5; }
  .contact-grid > :last-child { grid-column: 6 / span 7; }
}
.details {
  background: var(--ink); color: #fff; --focus: #fff;
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative; overflow: hidden; isolation: isolate;
}
.details.has-grid::before { opacity: .55; }
.details-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; }
.details-list li { padding-block: 1.1rem; border-block-start: 1px solid var(--on-dark-line); display: grid; gap: .25rem; }
.details-list dt, .details-label {
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--orb);
}
html[lang="ar"] .details-label { text-transform: none; }
.details-value { font-size: 1.125rem; font-weight: 600; word-break: break-word; }
.details-value a { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; }
.details-note { font-size: var(--fs-small); color: var(--on-dark-muted); }
.quicklinks { display: grid; gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); margin-block-start: 2rem; }
.quicklinks a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; background: var(--paper); text-decoration: none; font-weight: 600;
  transition: background-color .3s;
}
.quicklinks a:hover { background: var(--card); color: var(--rust); }
.quicklinks small { display: block; font-weight: 400; color: var(--text-muted); font-size: var(--fs-small); }
.quicklinks svg { width: 1.1rem; height: 1.1rem; flex: none; }

/* Dark-section variants */
.on-dark .cards { background: var(--on-dark-line); border-color: var(--on-dark-line); }
.on-dark .card { background: var(--ink); }
.on-dark .card:hover { background: #1d1a17; }
.on-dark .card p { color: var(--on-dark-muted); }
.on-dark .card-num, .on-dark .involve-big-num { color: var(--orb); }
.on-dark .block-title { color: var(--orb); border-color: rgba(255, 255, 255, .55); }
.on-dark .ticklist li { border-color: var(--on-dark-line); }
.on-dark .pillar-num, .on-dark .path-num { color: var(--orb); }
.ph-block--dark { border-color: rgba(255, 255, 255, .3); background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 255, 255, .03) 12px 24px); }
.on-dark .muted, .on-dark .lead.muted { color: var(--on-dark-muted); }
.on-dark .link-arrow { color: #fff; }
.bg-brown .chip-dot { background: var(--sand); }
code { font-family: var(--font-latin-mono); font-size: .9em; }
html[dir="rtl"] .input[dir="ltr"] { text-align: right; }

/* 7. FORMS ================================================================ */
.form-card {
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2.75rem);
  box-shadow: 0 1px 0 rgba(92, 49, 25, .05), 0 30px 60px -40px rgba(92, 49, 25, .35);
  position: relative;
}
.form-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-block-end: 1.75rem; flex-wrap: wrap; }
.form-card-head h2 { font-size: var(--fs-h3); }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .9375rem; display: flex; gap: .4rem; align-items: baseline; flex-wrap: wrap; }
.field .req { color: var(--rust); font-weight: 700; }
.field .opt { color: var(--text-muted); font-weight: 400; font-size: .875rem; }
.input {
  width: 100%; min-height: 3.25rem; padding: .8rem 1rem;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
  appearance: none; -webkit-appearance: none;
}
.input::placeholder { color: #8E7B6E; opacity: 1; }
.input:hover { border-color: rgba(92, 49, 25, .55); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200, 90, 40, .35); }
textarea.input { min-height: 9.5rem; resize: vertical; }
select.input {
  padding-inline-end: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 1.1rem; background-position: right 1rem center;
}
html[dir="rtl"] select.input { background-position: left 1rem center; }
.input[aria-invalid="true"] { border-color: var(--rust); background-color: #FFF8F4; }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(161, 67, 29, .3); }
.field-error {
  display: none; align-items: center; gap: .4rem;
  color: var(--rust); font-size: .875rem; font-weight: 600;
}
.field-error.is-visible { display: flex; }
.field-error::before {
  content: "!"; display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; flex: none;
  border-radius: 50%; background: var(--rust); color: #fff; font-size: .7rem; font-weight: 700;
}
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-block-start: .5rem; }
.form-foot p { font-size: var(--fs-small); color: var(--text-muted); max-width: 22rem; }
.form-status { font-weight: 600; color: var(--rust); }
.form-status:empty { display: none; }
.btn .spinner { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; display: none; animation: spin .8s linear infinite; }
.btn.is-busy .spinner { display: inline-block; }
.btn.is-busy .icon-arrow { display: none; }

.success { text-align: start; display: grid; gap: 1.25rem; justify-items: start; padding-block: 1rem; }
.success[hidden] { display: none; }
.success-mark { width: 4.5rem; height: 4.5rem; color: var(--orange); }
.success-mark circle { stroke-dasharray: 152; stroke-dashoffset: 152; }
.success-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.success.is-in .success-mark circle { animation: draw .8s var(--ease-out) forwards; }
.success.is-in .success-mark path { animation: draw .5s .55s var(--ease-out) forwards; }
.success h2 { font-size: var(--fs-h3); }
.success h2:focus { outline: none; }
.success [data-mode] { display: none; }
.success[data-mode="sent"] [data-mode="sent"],
.success[data-mode="mailto"] [data-mode="mailto"],
.success[data-mode="preview"] [data-mode="preview"] { display: block; }
.success .preview-note { padding: .85rem 1rem; border-radius: var(--radius); border: 1.5px dashed var(--line-strong); background: rgba(242, 201, 76, .2); font-size: var(--fs-small); }

/* 8. MOTION =============================================================== */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 201, 76, .55); } 70% { box-shadow: 0 0 0 .55rem rgba(242, 201, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 201, 76, 0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
  .hero-deck, .hero .btn-row, .hero .chip { animation: fade-up .9s var(--ease-out) both; }
  .hero .chip { animation-delay: .05s; }
  .hero-deck { animation-delay: .45s; }
  .hero .btn-row { animation-delay: .58s; }
  .mascot-stage img { animation: fade-up 1.1s .3s var(--ease-out) both; }
  .mascot-stage { animation: bob 6s 1.4s ease-in-out infinite; }
  .dim--v { animation: grow-y 1s .7s var(--ease-out) both; }
  .dim--h { animation: grow-x 1s .85s var(--ease-out) both; }
  .dim-label, .mascot-cross, .mascot .fig { animation: fade 1s 1.3s both; }
  .chip-dot { animation: pulse 2.4s ease-out infinite; }

  .page-hero .index, .page-hero h1, .page-hero .lead, .page-hero .btn-row, .page-hero .plate { animation: fade-up 1s var(--ease-out) both; }
  .page-hero h1 { animation-delay: .08s; }
  .page-hero .lead { animation-delay: .18s; }
  .page-hero .btn-row { animation-delay: .26s; }
  .page-hero .plate { animation-delay: .3s; }

  .js .reveal { opacity: 0; transform: translateY(1.75rem); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: var(--delay, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal-stagger > * { opacity: 0; transform: translateY(1.5rem); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
  .js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
  .js .reveal-stagger.is-in > :nth-child(2) { transition-delay: .08s; }
  .js .reveal-stagger.is-in > :nth-child(3) { transition-delay: .16s; }
  .js .reveal-stagger.is-in > :nth-child(4) { transition-delay: .24s; }
  .js .reveal-stagger.is-in > :nth-child(5) { transition-delay: .32s; }
  .js .reveal-stagger.is-in > :nth-child(6) { transition-delay: .4s; }
  .js .reveal-line { transform: scaleX(0); transform-origin: var(--origin-start, left); transition: transform 1.2s var(--ease-out); }
  .js .reveal-line.is-in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .success-mark circle, .success-mark path { stroke-dashoffset: 0; }
}

/* 9. LANGUAGE / RTL ======================================================= */
/* Each piece of copy exists twice: <span lang="en"> and <span lang="ar">.
   Only the one matching <html lang> is shown. */
html[lang="en"] [lang="ar"]:not(html),
html[lang="ar"] [lang="en"]:not(html) { display: none !important; }
html[lang="en"] [data-only="ar"],
html[lang="ar"] [data-only="en"] { display: none !important; }

html[dir="rtl"] { --origin-start: right; }
html[dir="rtl"] .icon-arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .icon-arrow,
html[dir="rtl"] .link-arrow:hover .icon-arrow { transform: scaleX(-1) translateX(.25rem); }
html[dir="rtl"] .icon-ext { transform: scaleX(-1); }
html[dir="rtl"] .link-arrow { background-position: 100% 100%; }
html[dir="rtl"] .has-grid::before {
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 30% 40%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 75% at 30% 40%, #000 30%, transparent 100%);
}
html[dir="rtl"] .dim--h { transform-origin: 100% 50%; }
html[lang="ar"] .hero-title .line { padding-block-end: .18em; margin-block-end: -.12em; }
html[lang="ar"] .brand-name { font-family: "Bricolage Grotesque", "Instrument Sans", sans-serif; }

/* Print: plain and readable */
@media print {
  .site-header, .menu-btn, .subnav, .cta-band, .network, .footer-word { display: none !important; }
  body { background: #fff; }
  .hero { color: var(--ink); background: none; }
}
