/* ============================================================
   SELF-HOSTED FONTS — no third-party requests, no IP leak to Google.
   Subsets are gated by unicode-range: a visitor reading only English
   never downloads the Arabic file, and vice versa.
   Regenerate with `python tools/fetch-fonts.py` if the weights change.
   ============================================================ */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/anton-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/anton-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/reem-kufi-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/reem-kufi-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/reem-kufi-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ============================================================
   AL-ILM MARTIAL ARTS — gym-wall one-pager
   Near-black walls · off-white paint · #DB0000 the only pigment
   ============================================================ */

:root {
  --ink: #0A0A0C;
  --ink-2: #111014;
  --ink-3: #191820;
  --paper: #F2EFE9;
  --paper-mid: #C6C1B8;
  --paper-dim: #A39D93;
  --red: #DB0000;
  --red-bright: #FF2B2B;   /* small-text tint of the brand red (AA on ink) */
  --line: rgba(242, 239, 233, 0.14);
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Reem Kufi", "Segoe UI", sans-serif;
  --pad-x: clamp(20px, 5vw, 64px);
  --wall-max: 1280px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { max-width: 100%; }

/* The picture element only exists to offer AVIF/WebP sources. Collapsing its box
   keeps the image a direct layout child of its parent, so wrapping an image never
   changes flex/grid behaviour or how `width: 100%` resolves. */
picture { display: contents; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }

a { color: inherit; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============ Buttons — painted blocks, hard corners ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 30px 15px;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(2px); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--paper); color: var(--ink); }

.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--red); color: #fff; }

.btn-small { font-size: 0.85rem; padding: 11px 18px 9px; }

/* ============ Header ============ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 12px var(--pad-x);
  background: rgba(10, 10, 12, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-head.scrolled { border-bottom-color: var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-crest { width: 56px; height: 56px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--paper-dim);
  margin-top: 4px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
}
.site-nav a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-dim);
  padding: 6px 0;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right 0.25s var(--ease-out);
}
.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after { right: 0; }

/* ============ Hero — the fight bill ============ */

.hero {
  position: relative;
  min-height: clamp(640px, 100svh, 1000px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(84px, 11vh, 120px) var(--pad-x) clamp(56px, 8vh, 90px);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* JPEG declaration first as the fallback; browsers that understand image-set()
     take the second and pick AVIF or WebP. */
  background:
    linear-gradient(180deg, rgba(10,10,12,0.5) 0%, rgba(10,10,12,0.18) 42%, var(--ink) 97%),
    url("assets/web/photo-ring-empty.jpg") center 32% / cover no-repeat;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.5) 0%, rgba(10,10,12,0.18) 42%, var(--ink) 97%),
    image-set(
      url("assets/web/photo-ring-empty.avif") type("image/avif"),
      url("assets/web/photo-ring-empty.webp") type("image/webp"),
      url("assets/web/photo-ring-empty.jpg") type("image/jpeg")
    ) center 32% / cover no-repeat;
  filter: grayscale(1) contrast(1.06) brightness(0.52);
  opacity: 0.4;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.hero-crown {
  font-family: var(--font-arabic);
  font-weight: 500;
  color: var(--red-bright);
  font-size: min(clamp(2.3rem, 4vw, 3.5rem), 6svh);
  line-height: 1.3;
  margin-bottom: clamp(4px, 1vw, 12px);
}

.hero-bill { font-weight: 400; }

.bill-line {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--paper);
  line-height: 0.92;
}
.bill-alilm { font-size: min(clamp(5.3rem, 23vw, 19.8rem), 28svh); letter-spacing: 0.01em; }
.bill-knowledge { font-size: min(clamp(3.1rem, 13.4vw, 11.6rem), 16.3svh); letter-spacing: 0.005em; }

.bill-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 24px);
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.52em;
  text-indent: 0.52em; /* optically recentre tracked caps */
  color: var(--red-bright);
  margin: clamp(10px, 2vh, 22px) auto;
  line-height: 1;
}
.bill-connector i {
  flex: 0 1 clamp(48px, 12vw, 180px);
  height: 2px;
  background: var(--red);
}

.hero-sub {
  max-width: 54ch;
  margin: clamp(18px, 2.6vh, 28px) auto 0;
  color: var(--paper-mid);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  text-wrap: balance;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(22px, 3.4vh, 34px);
}

.hero-est {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

/* ============ Marquee — the paper band ============ */

.marquee {
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  padding: 13px 0 11px;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track > span {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.marquee-track b {
  color: var(--red);
  font-weight: 400;
  padding: 0 0.55em;
}
.marquee-track [lang="ar"] { font-family: var(--font-arabic); font-weight: 600; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ Walls — shared ============ */

.wall {
  position: relative;
  padding: clamp(88px, 12vw, 150px) var(--pad-x);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.wall-inner {
  position: relative;
  z-index: 1;
  max-width: var(--wall-max);
  margin-inline: auto;
}

.wall-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 8px 13px 7px;
  margin-bottom: clamp(30px, 4.5vw, 48px);
}
.wall-tag-ink { background: var(--ink); color: var(--paper); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--paper);
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  margin-bottom: clamp(18px, 2.4vw, 30px);
  text-wrap: balance;
}
.display em {
  font-style: normal;
  color: var(--red-bright);
}

.wall-lede {
  color: var(--paper-dim);
  max-width: 58ch;
  font-size: 1.08rem;
}

.wall p + p { margin-top: 1em; }

/* Ghosted Arabic mural */
.wall-ghost {
  position: absolute;
  top: -4%;
  right: -3%;
  z-index: 0;
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: clamp(16rem, 38vw, 34rem);
  line-height: 0.9;
  color: rgba(219, 0, 0, 0.05);
  pointer-events: none;
  user-select: none;
}

/* ============ Wall: the name ============ */

.name-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.name-copy p { color: var(--paper-mid); max-width: 56ch; }

.name-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.name-facts dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.name-facts dd {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--paper);
}

.name-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 10px solid var(--paper);
  filter: saturate(0.92) contrast(1.04);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
}
.name-photo figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.name-photo figcaption::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--red);
  flex: none;
}

/* ============ Wall: curriculum strips ============ */

.wall-curriculum { padding-bottom: 0; }
.wall-curriculum .wall-lede { margin-bottom: clamp(48px, 6vw, 80px); }

.strips {
  margin-inline: calc(-1 * var(--pad-x));
}

.strip {
  padding: clamp(30px, 4.2vw, 48px) max(var(--pad-x), calc((100% - var(--wall-max)) / 2));
  border-top: 2px solid rgba(242, 239, 233, 0.85);
  transition: background-color 0.25s ease;
}
.strip:last-child { border-bottom: 2px solid rgba(242, 239, 233, 0.85); }
.strip:hover { background: var(--ink-2); }

.strip-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.strip-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 8.5vw, 7.2rem);
  line-height: 0.95;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.strip:hover .strip-title { color: var(--red-bright); }

.strip-limbs {
  text-align: right;
  flex: none;
  line-height: 1;
}
.strip-limbs b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 0.9;
  color: var(--red);
}
.strip-limbs span {
  display: block;
  margin-top: 6px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.strip-desc {
  margin-top: 14px;
  max-width: 58ch;
  color: var(--paper-mid);
}
.red-flag { color: var(--red-bright); font-weight: 700; }

/* ============ Wall: footage ============ */

.footage-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.footage-copy { position: sticky; top: 120px; }
.footage-copy p { color: var(--paper-mid); max-width: 44ch; }
.footage-hint {
  margin-top: 1.4em;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim) !important;
}

.reels {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 36px);
}

.reel {
  position: relative;
  width: min(380px, 100%);
}
.reel-promo {
  width: min(300px, 88%);
  margin-top: clamp(48px, 7vw, 110px);
}

.reel video {
  display: block;
  width: 100%;
  aspect-ratio: 478 / 850;
  object-fit: cover;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.reel-toggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 478 / 850;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.reel-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-left: 30px solid var(--paper);
  border-top: 19px solid transparent;
  border-bottom: 19px solid transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}
.reel.is-paused .reel-toggle { background: rgba(10, 10, 12, 0.35); }
.reel.is-paused .reel-toggle::after { opacity: 1; }

.reel figcaption {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--paper-dim);
}
.reel figcaption b { color: var(--paper); font-weight: 600; }

/* ============ Fight-night band ============ */

.band {
  position: relative;
  border-block: 1px solid var(--line);
}
.band img {
  display: block;
  width: 100%;
  height: clamp(300px, 46vw, 560px);
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(0.35) contrast(1.05) brightness(0.66);
}
.band figcaption {
  position: absolute;
  left: var(--pad-x);
  bottom: 22px;
  background: rgba(10, 10, 12, 0.82);
  color: var(--paper);
  padding: 10px 15px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============ Wall: benefits ============ */

.wall-benefits .wall-lede { margin-bottom: clamp(44px, 6vw, 72px); }

.benefits-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
}
.benefits-split::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.benefit-head {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--red);
  margin-bottom: 8px;
}
.benefit-head .amp { color: var(--red-bright); }

.benefit-col dl > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.benefit-col dt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.benefit-col dd {
  margin: 8px 0 0;
  color: var(--paper-mid);
  max-width: 48ch;
}

/* ============ Wall: community — the red wall ============ */

.wall-community {
  background: var(--red);
  border-top: 0;
}

.wall-ghost-red {
  top: auto;
  right: auto;
  bottom: -8%;
  left: -3%;
  color: rgba(10, 10, 12, 0.08);
  font-size: clamp(14rem, 32vw, 30rem);
}

.community-title {
  color: var(--ink);
  font-size: clamp(3rem, 8.8vw, 8.2rem);
}

.community-body {
  color: #FFF1ED;
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.community-venues {
  display: inline-block;
  margin-top: clamp(36px, 5vw, 58px);
  border: 2px solid var(--ink);
  padding: 15px 24px 13px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.7rem); /* >=24px: large-text AA for ink on red */
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.community-venues b { color: #fff; font-weight: 400; padding: 0 0.3em; }

/* ============ Wall: join ============ */

.join-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(32px, 4vw, 52px);
}

.join-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: var(--ink-2);
  padding: clamp(32px, 4.5vw, 60px);
  transition: background-color 0.25s ease;
}
.join-panel:hover { background: var(--ink-3); }

.join-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.join-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.join-body {
  color: var(--paper-mid);
  max-width: 44ch;
  flex-grow: 1;
}

/* ============ Footer ============ */

.site-foot {
  background: #070708;
  border-top: 1px solid var(--line);
  padding: clamp(64px, 8vw, 100px) var(--pad-x) 32px;
}

.foot-inner {
  max-width: var(--wall-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.foot-brand img { width: 150px; height: auto; margin-left: -14px; }
.foot-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-top: 14px;
}
.foot-meaning { color: var(--paper-dim); margin-top: 6px; font-size: 0.92rem; }
.foot-meaning [lang="ar"] { font-family: var(--font-arabic); color: var(--red-bright); }

.foot-nav { display: flex; flex-direction: column; gap: 13px; }
.foot-nav a {
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-dim);
  transition: color 0.2s ease;
}
.foot-nav a:hover { color: var(--red-bright); }

.foot-contact { color: var(--paper-dim); max-width: 36ch; font-size: 0.95rem; }

.foot-legal {
  max-width: var(--wall-max);
  margin: 52px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #8A847B;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============ Motion ============ */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}

/* Hero bill: painted lines pulled up from behind masks */
.js .hero-crown,
.js .hero-sub,
.js .hero-ctas,
.js .hero-est {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.js .bill-line {
  clip-path: inset(0 0 102% 0);
  transform: translateY(12%);
}
.js.loaded .bill-line {
  clip-path: inset(-5% 0 -8% 0);
  transform: none;
  transition:
    clip-path 0.95s var(--ease-out),
    transform 0.95s var(--ease-out);
}
.js.loaded .bill-alilm { transition-delay: 0.08s; }
.js.loaded .bill-connector { transition-delay: 0.34s; }
.js.loaded .bill-knowledge { transition-delay: 0.5s; }
.js.loaded .hero-crown { opacity: 1; }
.js.loaded .hero-sub,
.js.loaded .hero-ctas { opacity: 1; transition-delay: 0.85s; }
.js.loaded .hero-est { opacity: 1; transition-delay: 1.1s; }

/* ============ Responsive ============ */

@media (max-width: 980px) {
  .site-nav { display: none; }
  .btn-small { margin-left: auto; }

  .name-grid { grid-template-columns: 1fr; }
  .name-photo { max-width: 540px; }

  .footage-grid { grid-template-columns: 1fr; }
  .footage-copy { position: static; }
  .reels { justify-content: flex-start; }

  .benefits-split { grid-template-columns: 1fr; gap: 44px; }
  .benefits-split::before { display: none; }

  .join-panels { grid-template-columns: 1fr; }

  .foot-inner { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 600px) {
  .brand-name { font-size: 1.1rem; }
  .brand-crest { width: 40px; height: 40px; }

  .hero { padding-top: 96px; }
  .hero-ctas { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; }

  .reels { flex-direction: column; }
  .reel, .reel-promo { width: min(340px, 100%); margin-top: 0; }
  .reel-promo { align-self: flex-end; }

  .strip-row { flex-wrap: wrap; align-items: baseline; }

  .name-facts { grid-template-columns: 1fr 1fr; }

  .band figcaption { left: 16px; right: 16px; font-size: 0.66rem; }
}

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal,
  .js .bill-line,
  .js .hero-crown,
  .js .hero-sub,
  .js .hero-ctas,
  .js .hero-est {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}

/* ============ 404 ============ */

.wall-404 {
  display: grid;
  place-items: center;
  min-height: 100svh;
  border-top: 0;
  text-align: center;
}
.notfound { max-width: 44rem; }
/* Title deliberately inherits the .display step — no new size on the ramp for one page. */
.notfound-body {
  color: var(--paper-mid);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: clamp(30px, 4vw, 44px);
}
