/* ============================================================
   IRAQ WC26 — Cinematic Editorial Microsite
   ============================================================ */

:root {
  --bone: #f5f2ec;
  --bone-dim: #d8d4cb;
  --ink: #0a0a0a;
  --mid: #141414;
  --mid-2: #1c1c1c;
  --line: #2a2a2a;
  --iraq-green: #0a3d2e;       /* deep editorial green, used as section bg */
  --iraq-green-soft: #14513e;
  --gold: #007a3d;             /* Iraq flag green — primary accent (formerly gold) */
  --gold-soft: #00a050;        /* brighter green for hovers / glows */
  --red: #c8102e;              /* Iraq flag red — reserved for selection highlight */

  --font-display: 'Cabinet Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-accent: 'Stardom', 'Times New Roman', serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 12vw, 160px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--gold); color: var(--ink); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10,10,10,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
}
.nav-brand svg { color: var(--gold); }
.nav-crest { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(0,0,0,0.4)); }
.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-brand-divider { color: var(--gold); margin: 0 4px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--bone-dim);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--bone); }
.nav-cta {
  background: var(--gold);
  color: var(--ink) !important;
  padding: 10px 18px;
  border-radius: 2px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--gold-soft); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: kenburns 18s var(--ease) infinite alternate;
  filter: saturate(1.1) contrast(1.05);
}
@keyframes kenburns {
  0%   { transform: scale(1.05) translateY(0); }
  100% { transform: scale(1.12) translateY(-2%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0.4) 65%, rgba(10,10,10,0.95) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0) 60%);
}
.hero-content {
  position: relative;
  padding: 0 var(--gutter) 80px;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--bone-dim);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--gold);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  color: var(--bone);
}
.hero-line { display: block; }
.hero-line:nth-child(2) { color: var(--gold); font-style: italic; font-family: var(--font-accent); font-weight: 400; letter-spacing: -0.01em; }
.hero-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
  max-width: 560px;
  color: var(--bone-dim);
  margin-bottom: 40px;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-meta > div {
  padding: 20px var(--gutter);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta > div:last-child { border-right: 0; }
.hero-meta span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  opacity: 0.7;
}
.hero-meta strong {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 36px);
  color: var(--gold);
  letter-spacing: -0.01em;
}

/* ============ COUNTDOWN ============ */
.hero-countdown { background: rgba(10,10,10,0.78); }
.cd { position: relative; padding: 18px var(--gutter) 20px !important; }
.cd-label {
  font-size: 10px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  color: var(--bone-dim) !important;
  opacity: 0.75 !important;
}
.cd-value {
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  font-size: clamp(18px, 2.4vw, 28px) !important;
  color: var(--bone) !important;
  letter-spacing: 0.04em !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cd-date {
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  color: var(--gold) !important;
  opacity: 1 !important;
  margin-top: 2px;
}
.cd-live .cd-value { color: var(--red) !important; animation: cdpulse 1.4s ease-in-out infinite; }
.cd-done .cd-value { color: var(--bone-dim) !important; opacity: 0.6; }
@keyframes cdpulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ============ KIT TEASER OVERLAY ============ */
.kit-teaser {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(0,122,61,0.92);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ============ PARTNERS LOGOS ============ */
.partners-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 100px;
  align-items: center;
}
@media (max-width: 800px) { .partners-logos { grid-template-columns: 1fr; gap: 40px; } }
.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.partner-logo-plate {
  width: 180px;
  height: 140px;
  background: var(--bone);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.partner-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-align: center;
}
.partner-cap {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.7;
}
.footer-crest { width: 48px; height: 48px; object-fit: contain; margin-bottom: 12px; }
@media (max-width: 640px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta > div:nth-child(2) { border-right: 0; }
  .hero-meta > div:nth-child(1), .hero-meta > div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--bone);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold); }
.btn-primary:disabled {
  background: var(--line);
  color: var(--bone-dim);
  cursor: not-allowed;
  opacity: 0.6;
}
.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--bone-dim);
}
.btn-ghost:hover { background: var(--bone); color: var(--ink); }
.btn-full { width: 100%; }
.btn-large { padding: 22px 40px; font-size: 14px; }

/* ============ MARQUEE ============ */
.marquee {
  background: var(--gold);
  color: var(--bone);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
}
.marquee-track span:nth-child(even) { color: rgba(245, 242, 236, 0.5); }
.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.marquee-track span { flex: 0 0 auto; }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ SECTION HEADS ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--bone);
  margin-bottom: 24px;
}
.section-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 620px;
}

/* ============ STORY ============ */
.story {
  padding: var(--section-y) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 64px;
  align-items: start;
}
.story-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 16px;
  border-top: 2px solid var(--gold);
}
.story-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--bone);
  grid-column: 2;
}
.story-body {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: 620px;
  margin-top: 16px;
}
.story-body strong { color: var(--gold); font-weight: 500; }
.story-stat {
  grid-column: 3;
  text-align: right;
  padding-top: 16px;
  border-top: 2px solid var(--line);
}
.story-stat-number {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(80px, 12vw, 180px);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.04em;
}
.story-stat-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 8px;
}
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-title, .story-body { grid-column: 1; }
  .story-stat { grid-column: 1; text-align: left; }
}

/* ============ CAPSULE ============ */
.capsule {
  padding: var(--section-y) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.capsule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) { .capsule-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .capsule-grid { grid-template-columns: 1fr; } }

.kit {
  background: var(--mid);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out), border-color 0.3s var(--ease);
}
.kit:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}
.kit-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bone);
}
.kit-image-dark { background: var(--mid-2); }
.kit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.kit:hover .kit-image img { transform: scale(1.04); }
.kit-badge {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  background: rgba(10,10,10,0.85);
  color: var(--bone);
  padding: 8px 12px;
  border-radius: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.kit-badge-limited {
  background: var(--gold);
  color: var(--ink);
}
.kit-body {
  padding: 28px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.kit-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.kit-meta strong { color: var(--gold); font-weight: 700; }
.kit-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--bone);
  margin-bottom: 12px;
}
.kit-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--bone-dim);
  margin-bottom: 20px;
  flex: 1;
}
.kit-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--bone);
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.kit-price-compare {
  font-size: 14px;
  font-weight: 500;
  color: var(--bone-dim);
  text-decoration: line-through;
}
.kit-shop { display: flex; flex-direction: column; gap: 14px; }
.size-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.size-pill {
  position: relative;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bone);
  background: var(--mid-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.size-pill:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}
.size-pill.is-selected {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.size-pill:disabled {
  color: var(--line);
  cursor: not-allowed;
  background: transparent;
  text-decoration: line-through;
}
@media (max-width: 480px) {
  .size-grid { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .size-pill { padding: 8px 0; font-size: 11px; }
}

/* ============ PARTNERS ============ */
.partners {
  padding: var(--section-y) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 800px) { .partners-grid { grid-template-columns: 1fr; } }
.partner {
  padding: 32px 0;
  border-top: 1px solid var(--gold);
}
.partner-num {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.partner-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-bottom: 20px;
}
.partner p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--bone-dim);
}

/* ============ AUTH ============ */
.auth {
  background: var(--iraq-green);
  padding: var(--section-y) var(--gutter);
  border-bottom: 1px solid var(--iraq-green-soft);
}
.auth-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; gap: 40px; }
}
/* Inside auth (dark green bg), the green flag accent is too close to bg — use bone with red dot */
.auth-content .eyebrow { color: var(--bone); opacity: 0.85; }
.auth-content .eyebrow .dot { background: var(--red); }
.auth-content .section-title { color: var(--bone); }
.auth-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}
.auth-list li {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(245, 242, 236, 0.15);
  font-size: 16px;
  line-height: 1.5;
  color: var(--bone);
}
.auth-list li:last-child { border-bottom: 1px solid rgba(245, 242, 236, 0.15); }
.auth-list span {
  font-family: var(--font-accent);
  font-weight: 400;
  color: var(--bone);
  font-size: 22px;
  min-width: 36px;
  flex: 0 0 auto;
  opacity: 0.7;
}
.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
  text-align: right;
}
.auth-num {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(64px, 10vw, 144px);
  line-height: 1;
  color: var(--bone);
  letter-spacing: -0.03em;
}
.auth-num span:first-child { color: rgba(245, 242, 236, 0.4); }
.auth-num span {
  font-size: 0.5em;
  color: rgba(245, 242, 236, 0.4);
}
.auth-num-small {
  font-size: clamp(28px, 4vw, 56px);
  color: rgba(245, 242, 236, 0.4);
}
.auth-num-small span { color: rgba(245, 242, 236, 0.25); }
.auth-line {
  width: 100%;
  height: 1px;
  background: rgba(245, 242, 236, 0.2);
}
@media (max-width: 900px) {
  .auth-stack { align-items: flex-start; text-align: left; }
}

/* ============ CTA BAND ============ */
.cta-band {
  text-align: center;
  padding: var(--section-y) var(--gutter);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--bone);
  margin-bottom: 16px;
}
.cta-band p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--bone-dim);
  margin-bottom: 36px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--mid);
  padding: 80px var(--gutter) 32px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand svg { color: var(--gold); }
.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--bone-dim);
  margin-bottom: 10px;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--bone); }
.footer-base {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
  opacity: 0.7;
}

/* ============ SCROLL REVEAL ============
   Hidden state is applied by the .js-reveal-ready class on <html> only AFTER
   the IntersectionObserver is attached. This guarantees the page is fully
   visible if JS fails to load or runs before the observer is wired up. */
.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js-reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-image { animation: none; }
}

/* ============ LANGUAGE TOGGLE ============ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin-left: 8px;
  border: 1px solid rgba(245, 242, 236, 0.2);
  border-radius: 999px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-toggle:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ============ ARABIC TYPOGRAPHY + RTL ============ */
[lang="ar"] {
  --font-display: 'Reem Kufi', 'Cabinet Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-accent: 'Reem Kufi', 'Stardom', serif;
}
[lang="ar"] body {
  font-family: var(--font-body);
  letter-spacing: 0;
}
[lang="ar"] .hero-title,
[lang="ar"] .section-title,
[lang="ar"] .story-title,
[lang="ar"] .kit-title,
[lang="ar"] .cta-band h2 {
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.15;
}
/* Arabic display weight tweak — Reem Kufi reads bolder, so dial back */
[lang="ar"] .hero-title { font-weight: 600; }
[lang="ar"] .section-title { font-weight: 600; }
[lang="ar"] .story-title { font-weight: 600; }

/* Keep all-caps treatments off in Arabic (uppercase doesn't apply to Arabic glyphs but kills spacing) */
[lang="ar"] .nav-brand-text,
[lang="ar"] .hero-eyebrow,
[lang="ar"] .eyebrow,
[lang="ar"] .story-eyebrow,
[lang="ar"] .kit-badge,
[lang="ar"] .kit-meta,
[lang="ar"] .marquee,
[lang="ar"] .hero-meta span,
[lang="ar"] .footer-base,
[lang="ar"] .footer-col h4,
[lang="ar"] .nav-links a,
[lang="ar"] .btn {
  text-transform: none;
  letter-spacing: 0;
}

/* ============ RTL FLIPS ============ */
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .lang-toggle { margin-left: 0; margin-right: 8px; }

/* Hero meta — flip border side */
[dir="rtl"] .hero-meta > div { border-right: 0; border-left: 1px solid rgba(245, 242, 236, 0.15); }
[dir="rtl"] .hero-meta > div:last-child { border-left: 0; }

/* Marquee — scroll opposite direction in RTL */
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* Auth list — number gutter on the right */
[dir="rtl"] .auth-list li { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .auth-stack { align-items: flex-start; text-align: left; }

/* Partner numerals stay LTR (they're "01", "02"… but positioned in flow) */
[dir="rtl"] .partner-num { text-align: right; }

/* Story stat — number stays large; align right in RTL */
[dir="rtl"] .story-stat { text-align: right; }
[dir="rtl"] .story-eyebrow { text-align: right; }

/* Story grid — keep 2 columns, but text aligns right */
[dir="rtl"] .story-grid,
[dir="rtl"] .story-body,
[dir="rtl"] .story-title { text-align: right; }

/* Kit metadata — flex row reverse so "1,375 pieces" sits at left edge */
[dir="rtl"] .kit-meta { flex-direction: row-reverse; }
[dir="rtl"] .kit-body { text-align: right; }
[dir="rtl"] .kit-badge { right: auto; left: 16px; }
[dir="rtl"] .kit-price-compare { margin-left: 0; margin-right: 10px; }

/* Section heads centered already; just ensure subhead reads RTL */
[dir="rtl"] .section-sub { text-align: center; }
[dir="rtl"] .section-head .eyebrow { justify-content: center; }

/* Footer */
[dir="rtl"] .footer-grid { text-align: right; }
[dir="rtl"] .footer-base { flex-direction: row-reverse; }

/* Hero content text alignment */
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-eyebrow { flex-direction: row-reverse; justify-content: flex-end; }

/* Buttons inside RTL stay LTR-feeling; no flip needed for icon-less buttons */
[dir="rtl"] .hero-cta { flex-direction: row-reverse; justify-content: flex-end; }

/* Numbers in Arabic — keep Western digits in LTR direction for clarity */
[lang="ar"] .hero-meta strong,
[lang="ar"] .kit-price,
[lang="ar"] .partner-num,
[lang="ar"] .auth-num,
[lang="ar"] .nav-brand-text {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Auth list — restore left margin on RTL since flex-direction row-reverse handles gap */
[dir="rtl"] .auth-list span { min-width: 36px; }

/* Mobile RTL fine-tune */
@media (max-width: 760px) {
  [dir="rtl"] .footer-base { flex-direction: column; align-items: flex-start; }
}

/* ============ POWERED-BY RIBBON ============ */
.footer-powered {
  max-width: var(--container);
  margin: 56px auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px var(--gutter);
  border-top: 1px solid rgba(245, 242, 236, 0.15);
  border-bottom: 1px solid rgba(245, 242, 236, 0.15);
}
.footer-powered-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.footer-powered-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--bone);
  transition: color 0.25s var(--ease);
}
.footer-powered-brand svg { color: var(--gold); }
.footer-powered-brand:hover { color: var(--gold); }
.footer-powered-brand:hover svg { color: var(--bone); }

[lang="ar"] .footer-powered-label { letter-spacing: 0; text-transform: none; font-size: 13px; }
[lang="ar"] .footer-powered-brand { font-family: var(--font-display); }

@media (max-width: 760px) {
  .footer-powered { flex-direction: column; gap: 8px; padding: 18px var(--gutter); }
}

/* ============================================================
   JAKO hero mark — official wordmark, top-right of hero banner
   ============================================================ */
.hero-jako-mark {
  position: absolute;
  top: clamp(82px, 10vh, 100px);
  right: clamp(20px, 5vw, 64px);
  width: clamp(72px, 9vw, 110px);
  height: auto;
  z-index: 5;
  opacity: 0.9;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
  pointer-events: none;
}
[dir="rtl"] .hero-jako-mark {
  right: auto;
  left: clamp(20px, 5vw, 64px);
}
.hero-eyebrow { margin-top: clamp(50px, 8vh, 90px); }
@media (max-width: 600px) {
  .hero-jako-mark {
    top: 72px;
    width: 64px;
  }
  .hero-eyebrow { margin-top: 40px; }
}

/* Lighter browser-level blur on jersey teaser images */
.kit-image img {
  filter: blur(5px) saturate(0.95);
  transform: scale(1.04);
  transition: filter .6s ease, transform .6s ease;
}
.kit-image:hover img {
  filter: blur(3px) saturate(1);
}
