/* ==========================================================================
   Yawmy — Official Brand Design System & Coming Soon Stylesheet
   Source of Truth: Yawmy Visual Identity Guidelines V2.1 (PDF Pages 1–38)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Official Brand Typography (PDF Pages 20–26)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Blanquotey';
  src: url('../fonts/Blanquotey.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lama Sans';
  src: url('../fonts/LamaSans-Regular.woff') format('woff'),
       url('../fonts/LamaSans.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lama Sans';
  src: url('../fonts/LamaSans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lama Sans';
  src: url('../fonts/LamaSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Centralized Brand Design Tokens (PDF Pages 20–30)
   -------------------------------------------------------------------------- */
:root {
  /* Primary Brand Colors (PDF Page 29) */
  --yawmy-teal: #00434C;          /* Pantone P 126-8 C | RGB 0/67/76 */
  --yawmy-teal-deep: #002F36;     /* Tonal elevation step */
  --yawmy-teal-surface: #00525D;  /* Tonal highlight surface */
  --yawmy-lime: #D3F424;          /* Pantone 2297 C | RGB 211/244/36 */

  /* Supporting Secondary Brand Palette (PDF Page 30) */
  --yawmy-orange: #FBAB68;
  --yawmy-sky: #57B7FF;
  --yawmy-cyan: #48D8E1;
  --yawmy-coral: #FE5C83;
  --yawmy-mint: #9DE7A4;
  --yawmy-yellow: #FFDC10;

  /* Text & Tinted Foreground Tokens (WCAG AAA verified on #00434C) */
  --ink-primary: #F7FBF9;         /* 11.2:1 contrast on #00434C */
  --ink-secondary: #CBE6E8;       /* 8.3:1 contrast on #00434C — tinted from teal */
  --ink-muted: rgba(203, 230, 232, 0.76);
  --ink-on-lime: #00434C;         /* 9.5:1 contrast on #D3F424 */

  /* Subtle Borders & Hairlines */
  --border-subtle: rgba(203, 230, 232, 0.14);
  --border-lime-tint: rgba(211, 244, 36, 0.22);
  --border-lime-hover: rgba(211, 244, 36, 0.42);

  /* Font Stacks */
  --font-display-en: 'Blanquotey', 'Lama Sans', sans-serif;
  --font-display-ar: 'Lama Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Lama Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Arabic', sans-serif;

  /* Spatial & Rhythm Scale (4px base) */
  --s-1: 0.25rem;  /* 4px */
  --s-2: 0.5rem;   /* 8px */
  --s-3: 0.75rem;  /* 12px */
  --s-4: 1rem;     /* 16px */
  --s-5: 1.5rem;   /* 24px */
  --s-6: 2rem;     /* 32px */
  --s-7: 3rem;     /* 48px */
  --s-8: 4rem;     /* 64px */
  --page-pad-x: clamp(1.5rem, 5.5vw, 5.5rem);
  --page-pad-y: clamp(1.25rem, 3.2vh, 2.5rem);

  /* Squircle & Component Radii (matching Logomark Construction Page 9–10) */
  --r-squircle: clamp(1.5rem, 2.6vw, 2.25rem);
  --r-seal: clamp(1.125rem, 1.8vw, 1.5rem);
  --r-badge: 1rem;
  --r-pill: 999px;

  /* Authored Motion Curve */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --stage-accent: var(--yawmy-lime);
}

html[data-active-card="1"] {
  --stage-accent: var(--yawmy-cyan);
}

html[data-active-card="2"] {
  --stage-accent: var(--yawmy-orange);
}

/* --------------------------------------------------------------------------
   3. Reset & Browser Surface Theming
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background-color: var(--yawmy-lime);
  color: var(--yawmy-teal);
}

html {
  background-color: var(--yawmy-teal);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--yawmy-lime);
  scrollbar-color: var(--yawmy-teal-surface) var(--yawmy-teal-deep);
  height: 100%;
}

body {
  min-height: 100svh;
  background-color: var(--yawmy-teal);
  color: var(--ink-primary);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

:focus-visible {
  outline: 2px solid var(--yawmy-lime);
  outline-offset: 4px;
}

/* Language-scoped visibility (prevents duplicate DOM maintenance) */
html[data-lang="en"] [lang="ar"]:not(.lang-btn) {
  display: none !important;
}

html[data-lang="ar"] [lang="en"]:not(.lang-btn) {
  display: none !important;
}

/* --------------------------------------------------------------------------
   4. Architectural Brand Pattern Backdrop (PDF Page 32)
   -------------------------------------------------------------------------- */
.brand-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.brand-pattern-wing {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(46vw, 660px);
  opacity: 0.08;
  color: var(--yawmy-lime);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
  transition: transform 0.6s var(--ease-out-expo);
}

html[dir="rtl"] .brand-pattern-wing {
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
}

.brand-pattern-wing svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   5. Page Shell & Header Component (Logo Clear Space Rules: PDF Pages 10–18)
   -------------------------------------------------------------------------- */
.teaser-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  min-height: 100svh;
  padding: var(--page-pad-y) var(--page-pad-x);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(1.5rem, 3.2vh, 2.75rem);
  align-items: center;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  width: 100%;
}

/* Official Logo Lockup Container with protected 1.5x clear space */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  color: var(--yawmy-lime);
  padding: 0.5rem 0.75rem 0.5rem 0;
  text-decoration: none;
}

html[dir="rtl"] .brand-logo-wrap {
  padding: 0.5rem 0 0.5rem 0.75rem;
}

.brand-logo {
  height: clamp(2.25rem, 3vw, 2.875rem);
  width: auto;
  display: block;
  overflow: visible;
}

html[data-lang="en"] .logo-ar {
  display: none;
}

html[data-lang="ar"] .logo-en {
  display: none;
}

/* Bilingual Language Switcher (First-class EN / AR control, >=44px target) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--yawmy-teal-deep);
  padding: 4px;
  border-radius: var(--r-pill);
  gap: 4px;
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 44px;
  min-width: 68px;
  padding: 0.5rem 1.125rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.22s var(--ease-out-expo),
              color 0.22s var(--ease-out-expo),
              transform 0.15s var(--ease-out-expo);
  user-select: none;
}

.lang-btn:hover {
  color: var(--ink-primary);
}

.lang-btn:active {
  transform: scale(0.97);
}

.lang-btn[aria-pressed="true"] {
  background-color: var(--yawmy-lime);
  color: var(--ink-on-lime);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. Editorial Stage & Layout Hierarchy (Section 15 Priority)
   -------------------------------------------------------------------------- */
.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "copy   visual"
    "stores visual";
  align-items: center;
  column-gap: clamp(2.5rem, 5vw, 5.25rem);
  row-gap: clamp(1.75rem, 3.2vh, 2.5rem);
  width: 100%;
}

.copy-column {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 44rem;
  min-width: 0;
  width: 100%;
  align-self: end;
}

.store-column {
  grid-area: stores;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 44rem;
  min-width: 0;
  width: 100%;
  align-self: start;
}

/* --------------------------------------------------------------------------
   7. Dynamic Keyword Animation — Stable Typography (Section 16)
   -------------------------------------------------------------------------- */
.headline {
  color: var(--ink-primary);
  margin-bottom: clamp(1rem, 2.2vh, 1.65rem);
  width: 100%;
}

.headline-line {
  display: block;
}

.headline-en {
  font-family: var(--font-display-en);
  font-weight: 400;
  font-size: clamp(2.35rem, 4.35vw + 0.5rem, 4.5rem);
  line-height: 1.09;
  letter-spacing: 0.022em;
  word-spacing: 0.04em;
}

.headline-ar {
  font-family: var(--font-display-ar);
  font-weight: 700;
  font-size: clamp(2.35rem, 4.4vw + 0.6rem, 4.55rem);
  line-height: 1.26;
  letter-spacing: 0;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

.headline-ar .headline-line-inline {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.26em;
}

/*
 * Stable-width CSS Grid Rotator:
 * Every candidate word sits in the exact same grid cell ("slot").
 * The grid cell permanently locks its width and height to the largest word
 * ("extraordinary" in EN / "استثنائي" in AR) at initial paint -> 0.00px CLS.
 */
.word-rotator {
  display: inline-grid;
  grid-template-areas: "slot";
  vertical-align: baseline;
  position: relative;
  overflow: hidden;
  padding-block: 0.14em;
  margin-block: -0.14em;
  padding-inline-end: 0.06em;
}

.word-item {
  grid-area: slot;
  justify-self: start;
  color: var(--yawmy-lime);
  font-style: normal;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, 68%, 0);
  transition: opacity 0.55s var(--ease-out-expo),
              transform 0.55s var(--ease-out-expo);
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

.word-item.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  user-select: auto;
}

.word-item.is-exiting {
  opacity: 0;
  transform: translate3d(0, -68%, 0);
}

.word-item.is-resetting {
  transition: none !important;
  opacity: 0;
  transform: translate3d(0, 68%, 0);
}

/* Official Brand Book Tagline (PDF Page 3: "Everything you need, one Yawmy.") */
.brand-tagline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.125rem, 1.25vw + 0.6rem, 1.5rem);
  line-height: 1.5;
  color: var(--ink-secondary);
  max-width: 34ch;
  text-wrap: pretty;
  margin-bottom: clamp(1.5rem, 3vh, 2.25rem);
}

html[data-lang="ar"] .brand-tagline {
  line-height: 1.65;
  max-width: 36ch;
}

/* Minimal Anticipation Status & Interactive Stage Controller */
.anticipation-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--yawmy-teal-deep);
  color: var(--ink-primary);
  padding: 0.75rem 1.375rem;
  min-height: 44px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--yawmy-lime);
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--yawmy-lime);
  opacity: 0.65;
  animation: pulseRing 2.4s var(--ease-out-expo) infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  75%, 100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

/* Tactile Squircle Frame Switcher (>=44x44px touch targets) */
.stage-dots {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background-color: var(--yawmy-teal-deep);
  padding: 4px 8px;
  border-radius: var(--r-pill);
}

.stage-dot-btn {
  appearance: none;
  border: none;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.15s var(--ease-out-expo);
}

.stage-dot-pip {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background-color: var(--ink-secondary);
  opacity: 0.4;
  transition: width 0.3s var(--ease-out-expo),
              background-color 0.3s var(--ease-out-expo),
              opacity 0.3s var(--ease-out-expo);
}

.stage-dot-btn:hover .stage-dot-pip {
  opacity: 0.8;
}

.stage-dot-btn[aria-current="true"] .stage-dot-pip {
  width: 24px;
  background-color: var(--yawmy-lime);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   8. App Store & Google Play Placeholders Component (Section 13)
   -------------------------------------------------------------------------- */
.store-placeholders {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  background-color: var(--yawmy-teal-deep);
  border: 1px solid var(--border-lime-tint);
  border-radius: var(--r-badge);
  padding: 0.75rem 1.25rem;
  min-height: 58px;
  min-width: 196px;
  color: var(--ink-primary);
  text-decoration: none;
  position: relative;
  transition: border-color 0.25s var(--ease-out-expo),
              background-color 0.25s var(--ease-out-expo),
              transform 0.25s var(--ease-out-expo);
  user-select: none;
}

.store-badge.is-placeholder {
  cursor: default;
}

.store-badge.is-placeholder:hover {
  border-color: var(--border-lime-hover);
  background-color: rgba(0, 47, 54, 0.92);
}

.store-badge.is-live {
  cursor: pointer;
}

.store-badge.is-live:hover {
  border-color: var(--yawmy-lime);
  transform: translateY(-2px);
}

.store-badge-icon {
  width: 1.625rem;
  height: 1.625rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-primary);
}

.store-badge-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.store-badge-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.store-badge-status {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--yawmy-lime);
  letter-spacing: 0.02em;
}

html[data-lang="ar"] .store-badge-status {
  letter-spacing: 0;
}

.store-badge-title {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
  direction: ltr;
  unicode-bidi: isolate;
}

/* --------------------------------------------------------------------------
   9. Sculptural Triptych Brand Visual Stage (PDF Pages 5, 6, 7, 9, 10, 33)
   -------------------------------------------------------------------------- */
.visual-column {
  grid-area: visual;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(320px, 48vh, 490px);
  user-select: none;
}

.triptych-stage {
  position: relative;
  width: min(100%, 435px);
  aspect-ratio: 10 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Architectural Lime Squircle Offset Backing (PDF Page 10) */
.stage-backing {
  position: absolute;
  inset: 5% 3% 3% 7%;
  border-radius: var(--r-squircle);
  background-color: var(--stage-accent);
  transform: rotate(4deg);
  transition: background-color 0.55s var(--ease-out-expo),
              transform 0.55s var(--ease-out-expo);
  z-index: 0;
}

html[dir="rtl"] .stage-backing {
  inset: 5% 7% 3% 3%;
  transform: rotate(-4deg);
}

.triptych-stage:hover .stage-backing {
  transform: rotate(5.5deg) scale(1.015);
}

html[dir="rtl"] .triptych-stage:hover .stage-backing {
  transform: rotate(-5.5deg) scale(1.015);
}

/* Layered Brand Portrait Cards */
.portrait-card {
  position: absolute;
  inset: 0;
  border-radius: var(--r-squircle);
  overflow: hidden;
  background-color: var(--yawmy-teal-deep);
  box-shadow: 0 28px 56px -14px rgba(0, 22, 26, 0.55);
  cursor: pointer;
  transition: transform 0.55s var(--ease-out-expo),
              opacity 0.45s var(--ease-out-expo),
              filter 0.45s var(--ease-out-expo);
  padding: 0;
  border: none;
  display: block;
  width: 100%;
  height: 100%;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.65s var(--ease-out-expo);
}

.portrait-card:hover img {
  transform: scale(1.03);
}

/* Card Stack Positions (Front, Middle, Back) */
.portrait-card[data-pos="front"] {
  z-index: 3;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  opacity: 1;
  filter: brightness(1);
}

.portrait-card[data-pos="mid"] {
  z-index: 2;
  transform: translate3d(-7%, -5%, 0) rotate(-5deg) scale(0.92);
  opacity: 0.85;
  filter: brightness(0.8);
}

.portrait-card[data-pos="back"] {
  z-index: 1;
  transform: translate3d(7%, -7.5%, 0) rotate(5deg) scale(0.85);
  opacity: 0.6;
  filter: brightness(0.65);
}

html[dir="rtl"] .portrait-card[data-pos="mid"] {
  transform: translate3d(7%, -5%, 0) rotate(5deg) scale(0.92);
}

html[dir="rtl"] .portrait-card[data-pos="back"] {
  transform: translate3d(-7%, -7.5%, 0) rotate(-5deg) scale(0.85);
}

/* Official Yawmy App Icon Squircle Seal (PDF Page 9–10: 1.5x clear space) */
.brand-seal {
  position: absolute;
  z-index: 5;
  inset-block-end: -1.25rem;
  inset-inline-start: -1.25rem;
  width: clamp(4.5rem, 6.2vw, 5.5rem);
  height: clamp(4.5rem, 6.2vw, 5.5rem);
  border-radius: var(--r-seal);
  background-color: var(--yawmy-lime);
  color: var(--yawmy-teal);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.28rem; /* Enforces strict 1.5x clear space around the logomark */
  box-shadow: 0 20px 40px -10px rgba(0, 22, 26, 0.5);
  transition: transform 0.3s var(--ease-out-expo),
              background-color 0.3s var(--ease-out-expo);
}

.brand-seal:hover {
  transform: translateY(-3px) scale(1.04);
}

.brand-seal:active {
  transform: translateY(0) scale(0.97);
}

.brand-seal svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Supporting Brand Value Symbol Accents (PDF Page 33: Productivity +) */
.symbol-badge {
  position: absolute;
  z-index: 4;
  inset-block-start: -1rem;
  inset-inline-end: -1rem;
  width: 3.375rem;
  height: 3.375rem;
  border-radius: 1rem;
  background-color: var(--yawmy-teal-deep);
  color: var(--yawmy-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 16px 32px -8px rgba(0, 22, 26, 0.45);
}

.symbol-badge svg {
  width: 1.45rem;
  height: 1.45rem;
  transition: transform 0.55s var(--ease-out-expo);
}

html[data-active-card="1"] .symbol-badge svg {
  transform: rotate(90deg);
  color: var(--yawmy-cyan);
}

html[data-active-card="2"] .symbol-badge svg {
  transform: rotate(180deg);
  color: var(--yawmy-orange);
}

/* --------------------------------------------------------------------------
   10. Minimal Brand Footer Component (Section 12)
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  padding-top: clamp(1rem, 2.2vh, 1.5rem);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
}

.footer-mark {
  width: 0.95rem;
  height: 1.2rem;
  color: var(--yawmy-lime);
  opacity: 0.85;
  flex-shrink: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   11. Responsive Breakpoints (Tablet & Mobile Optimization — Section 9 & 15)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .teaser-shell {
    grid-template-rows: auto 1fr auto;
    align-items: center;
    gap: var(--s-5);
  }

  /* Enforces Section 15 Hierarchy: Copy -> Visual -> Store Placeholders */
  .stage-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "visual"
      "stores";
    gap: clamp(2rem, 3.8vh, 2.75rem);
    padding-block: var(--s-2);
  }

  .copy-column,
  .store-column {
    max-width: 38rem;
    min-width: 0;
    width: 100%;
  }

  .visual-column {
    min-height: auto;
    min-width: 0;
    width: 100%;
    justify-content: center;
    padding-inline: var(--s-4);
    padding-block: var(--s-2);
  }

  .triptych-stage {
    width: min(100%, 400px);
    aspect-ratio: 11 / 10;
  }

  .brand-pattern-wing {
    width: 65vw;
    opacity: 0.05;
  }
}

@media (max-width: 639px) {
  :root {
    --page-pad-x: 1.25rem;
    --page-pad-y: 1.25rem;
  }

  .teaser-shell {
    padding-bottom: clamp(1.75rem, 4vh, 2.75rem);
    gap: 1.75rem;
  }

  .top-bar {
    gap: var(--s-3);
  }

  .brand-logo {
    height: 2.125rem;
  }

  .lang-btn {
    min-width: 58px;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
  }

  .stage-grid {
    gap: 1.875rem;
  }

  /* Fits 13-character "extraordinary" cleanly on a single line at 390px & 320px */
  .headline-en {
    font-size: clamp(1.95rem, 8.2vw, 2.65rem);
    line-height: 1.1;
  }

  /* Fits "شيءٌ استثنائي" cleanly on a single line at 390px & 320px */
  .headline-ar {
    font-size: clamp(2rem, 8.4vw, 2.75rem);
    line-height: 1.26;
  }

  .brand-tagline {
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
  }

  .anticipation-bar {
    width: 100%;
    justify-content: space-between;
    gap: var(--s-3);
  }

  .visual-column {
    padding-inline: 0.75rem;
    padding-block: 0.5rem;
  }

  .triptych-stage {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
  }

  .brand-seal {
    width: 4rem;
    height: 4rem;
    padding: 1rem;
    inset-block-end: -0.75rem;
    inset-inline-start: -0.5rem;
  }

  .symbol-badge {
    width: 2.875rem;
    height: 2.875rem;
    inset-block-start: -0.65rem;
    inset-inline-end: -0.5rem;
  }

  .store-placeholders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
  }

  .store-badge {
    min-width: 0;
    width: 100%;
    padding: 0.6875rem 0.875rem;
    gap: 0.625rem;
  }

  .store-badge-icon {
    width: 1.375rem;
    height: 1.375rem;
  }

  .store-badge-status {
    font-size: 0.6875rem;
  }

  .store-badge-title {
    font-size: 0.9375rem;
  }

  .site-footer {
    padding-top: 1rem;
  }

  .footer-brand {
    font-size: 0.8125rem;
  }
}

/* --------------------------------------------------------------------------
   12. Reduced Motion Accessibility (WCAG 2.3.3)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }

  .pulse-dot::after {
    animation: none !important;
    display: none;
  }

  .word-item {
    transition: none !important;
  }

  .portrait-card:hover img,
  .brand-seal:hover,
  .triptych-stage:hover .stage-backing,
  .store-badge.is-live:hover {
    transform: none !important;
  }
}

