/* ===========================================================
   Coffee Island Jordan
   Design system: tokens, then components, then sections.
   Logical properties throughout, so RTL needs almost no overrides.
   =========================================================== */

/* ---- Fonts ---- */
@font-face {
  font-family: 'CoffeeIsland';
  src: url('../fonts/CoffeeIsland-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'CFDromon';
  src: url('../fonts/cf_dromon_lg-webfont.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'CFDromon';
  src: url('../fonts/cf_dromon_rg-webfont.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'CFDromon';
  src: url('../fonts/cf_dromon_bd-webfont.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---- Tokens ---- */
:root {
  /* Brand palette — do not invent new colours */
  --espresso: #3B1F0E;
  --espresso-deep: #2A160A;
  --cream: #FCDCC4;
  --cream-line: #F0C9A9;
  --black: #0E1319;
  --white: #FFFFFF;
  --accent: #F3B61F;          /* packaging yellow */
  --accent-ink: var(--black); /* text that sits on the accent */

  --text-strong: #2A160A;
  --text-body: #4A3524;
  --text-muted: #6B5443;
  --text-faint: #94816F;

  --font-display: 'CoffeeIsland', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'CFDromon', 'Helvetica Neue', Arial, sans-serif;

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;

  --container: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);
  --header-h: 78px;

  --radius-card: 20px;
  --radius-pill: 100px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wave-h: clamp(40px, 5.5vw, 92px);
}

/* Arabic pairs Tajawal (display) with IBM Plex Sans Arabic (body). */
[lang="ar"] {
  --font-display: 'Tajawal', 'CFDromon', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'CFDromon', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }        /* clip, not hidden — keeps sticky working */
body {
  margin: 0;
  background: var(--white);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  text-wrap: pretty;
}
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease), opacity 0.2s var(--ease); }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--accent); color: var(--accent-ink);
}
.skip-link:focus { inset-inline-start: 0; }

/* ---- Typography ---- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--text-strong);
}
[lang="ar"] .display {
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.1;
}
.display--sm   { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.display--md   { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.12; }
.display--lg   { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.display--xl   { font-size: clamp(2.25rem, 5.2vw, 4.75rem); }
.display--hero { font-size: clamp(2.25rem, 6.5vw, 5.75rem); }
[lang="ar"] .display--xl   { font-size: clamp(2rem, 4.6vw, 4.25rem); }
[lang="ar"] .display--hero { font-size: clamp(2rem, 5.4vw, 4.5rem); }

.body { font-size: 1rem; }
.body--lg { font-weight: 300; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.7; }
.body--sm { font-size: 0.92rem; }
[lang="ar"] .body { line-height: 1.85; }
[lang="ar"] .body--lg { line-height: 1.8; }

.label {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--text-strong);
}
[lang="ar"] .label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}
.label--accent { color: var(--accent); }
.label--brown  { color: var(--text-muted); }
.label--faint  { color: var(--text-faint); }
.label--dim    { color: rgba(255,255,255,0.5); }

/* ---- Layout ---- */
.container { max-width: var(--container); margin-inline: auto; }
.section { padding-block: var(--section-y); padding-inline: var(--gutter); }
.section--white    { background: var(--white); }
.section--cream    { background: var(--cream); color: var(--text-strong); }
.section--espresso { background: var(--espresso); color: var(--cream); }
.section--black    { background: var(--black); color: var(--white); }
.section--accent   { background: var(--accent); color: var(--accent-ink); }

.section--espresso .display, .section--black .display { color: var(--white); }
.section--espresso .body--muted, .section--black .body--muted { color: rgba(255,255,255,0.7); }
.section--cream .display { color: var(--espresso); }
.section--cream .body { color: var(--espresso); }
.section--accent .display { color: var(--accent-ink); }

.grid { display: grid; gap: clamp(2rem, 6vw, 5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.grid--gap-md { gap: clamp(1.5rem, 4vw, 3rem); }
.grid--sticky { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.stack { display: flex; flex-direction: column; gap: var(--space-5); }

.sticky-col { position: sticky; top: calc(var(--header-h) + 2rem); display: flex; flex-direction: column; gap: var(--space-5); }
@media (max-width: 900px) { .sticky-col { position: static; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 0.85rem; letter-spacing: 0.12em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
[lang="ar"] .btn { font-family: var(--font-display); font-weight: 700; text-transform: none; letter-spacing: 0.02em; font-size: 0.95rem; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { color: var(--accent-ink); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(243,182,31,0.32); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { color: var(--white); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(14,19,25,0.28); }
.btn--start { align-self: start; }

/* ---- Curved dividers ---- */
.wave { line-height: 0; pointer-events: none; }
.wave svg { display: block; width: 100%; height: var(--wave-h); }
.wave--divider { position: relative; }
/* The next section is pulled up over the divider's last pixel row: sub-pixel
   rounding otherwise leaves a hairline between the two boxes. */
.wave--divider + * { margin-top: -1px; }
.wave--overlay-top,
.wave--overlay-bottom { position: absolute; inset-inline: 0; z-index: 2; }
.wave--overlay-top { top: -1px; }
.wave--overlay-bottom { bottom: -1px; }
/* Curves are asymmetric, so mirror them in RTL to keep the same reading rhythm */
[dir="rtl"] .wave svg { transform: scaleX(-1); }

/* ---- Motion ---- */
/* Reveals start visible and only move, so content is never hidden by a
   failed observer, by print, or by reduced-motion. */
.reveal { transform: translateY(26px); transition: transform 0.85s var(--ease); }
.reveal--2 { transition-delay: 0.08s; }
.reveal--3 { transition-delay: 0.16s; }
.reveal--4 { transition-delay: 0.24s; }
.reveal.is-visible { transform: none; }

.rise { animation: rise 0.9s var(--ease) both; }
.rise--1 { animation-delay: 0.2s; }
.rise--2 { animation-delay: 0.7s; }
.wipe { animation: wipe 1.1s var(--ease) 0.35s both; }
@keyframes rise { from { opacity: 0; transform: translateY(38px); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes zoom { from { transform: scale(1.12); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: none; }
  .rise, .wipe, .hero__img,
  .bracket-msg__arm, .hero__title .bw { animation: none; }
  .markets .market { transition-delay: 0s; }
}
@media print {
  .reveal { transform: none; }
  .site-header, .mobile-menu { display: none; }
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6);
  height: var(--header-h);
  padding-inline: var(--gutter);
  background: rgba(14,19,25,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(252,220,196,0.14);
}
.brand { display: flex; align-items: center; gap: var(--space-4); }
.brand__logo { height: 34px; width: auto; }
.brand__region { color: var(--cream); opacity: 0.75; }
.brand:hover { color: inherit; }

.nav--desktop { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav--desktop .label { color: rgba(255,255,255,0.68); }
.nav--desktop .label.is-current, .nav--desktop .label:hover { color: var(--cream); }
.nav__rule { width: 1px; height: 18px; background: rgba(255,255,255,0.22); }
.lang { display: flex; align-items: center; gap: 0.6rem; }
.lang__current { color: var(--cream); }
.lang__sep { color: rgba(255,255,255,0.3); }
.is-accent { color: var(--accent); }

.burger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 48px; padding-inline: 10px; }
.burger span { display: block; height: 2px; background: var(--cream); }

@media (max-width: 820px) {
  .nav--desktop { display: none; }
  .burger { display: flex; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.25rem, 5vw, 2rem);
  background: var(--black);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__bar { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.mobile-menu__bar img { height: 32px; width: auto; }
.mobile-menu__close { width: 48px; height: 48px; color: var(--cream); font-size: 2rem; line-height: 1; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: var(--space-5); }
.mobile-menu__nav a {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(2rem, 11vw, 3.25rem); line-height: 1; color: var(--white);
}
[lang="ar"] .mobile-menu__nav a { font-weight: 800; text-transform: none; font-size: clamp(2rem, 10vw, 3rem); }
.mobile-menu__foot {
  display: flex; flex-direction: column; gap: var(--space-5);
  padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,0.18);
}
.mobile-menu__social { display: flex; gap: var(--space-5); }
.mobile-menu__social a { color: var(--cream); min-height: 44px; display: flex; align-items: center; }

/* ---- Hero ---- */
.hero { position: relative; min-height: max(620px, calc(100vh - var(--header-h))); overflow: hidden; background: var(--espresso-deep); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoom 2.4s var(--ease) both; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,4,0.62) 0%, rgba(20,10,4,0.28) 42%, rgba(20,10,4,0.86) 100%); }
.hero__inner {
  position: relative; min-height: max(620px, calc(100vh - var(--header-h)));
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-6);
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(5.5rem, 11vw, 9rem);
}
.hero__title { color: var(--white); max-width: 20ch; font-size: clamp(2.75rem, min(8.4vw, 16vh), 8.5rem); line-height: 0.92; }
[lang="ar"] .hero__title { max-width: 22ch; font-size: clamp(2.5rem, min(7.4vw, 14vh), 7rem); }

.hero__foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-7); flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.22); padding-top: var(--space-5);
}
.hero__foot .body { max-width: 46ch; color: rgba(255,255,255,0.86); }

/* Hero video (iced latte pour) */
.hero--pour { background: #5C5A2E; }
.hero--pour .hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; animation: zoom 2.4s var(--ease) both; }
.hero--pour .hero__scrim { background: linear-gradient(180deg, rgba(28,16,6,0.52) 0%, rgba(28,16,6,0.34) 30%, rgba(24,13,5,0.66) 62%, rgba(20,10,4,0.88) 84%, rgba(18,9,3,0.94) 100%); }
@media (max-width: 720px) { .hero--pour .hero__media { object-position: 68% center; } }

/* ---- Intro ---- */
.facts { display: flex; flex-wrap: wrap; gap: var(--space-6); padding-top: var(--space-3); border-top: 1px solid var(--cream-line); }

/* ---- The two acts ---- */
.act { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--espresso-deep); }
.act__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act__scrim { position: absolute; inset: 0; }
.act__scrim--start { background: linear-gradient(105deg, rgba(20,10,4,0.9) 0%, rgba(20,10,4,0.35) 55%, rgba(20,10,4,0.7) 100%); }
.act__scrim--end   { background: linear-gradient(255deg, rgba(20,10,4,0.88) 0%, rgba(20,10,4,0.3) 55%, rgba(20,10,4,0.72) 100%); }
[dir="rtl"] .act__scrim--start { background: linear-gradient(255deg, rgba(20,10,4,0.9) 0%, rgba(20,10,4,0.35) 55%, rgba(20,10,4,0.7) 100%); }
[dir="rtl"] .act__scrim--end   { background: linear-gradient(105deg, rgba(20,10,4,0.88) 0%, rgba(20,10,4,0.3) 55%, rgba(20,10,4,0.72) 100%); }
.act__inner { position: relative; width: 100%; padding: clamp(2.5rem, 7vw, 6rem) var(--gutter); }
.act__inner--end { display: flex; justify-content: flex-end; }
.act__text { max-width: 36ch; display: flex; flex-direction: column; gap: var(--space-4); }
.act__inner--end .act__text { text-align: end; }
.act__text .display { color: var(--white); }
.act__text .body { color: rgba(255,255,255,0.84); }

.bridge { text-align: center; }
.bridge .display { margin-inline: auto; max-width: 32ch; }
.bridge__body { margin: var(--space-5) auto 0; max-width: 54ch; color: var(--text-muted); }

/* ---- Bean to cup ---- */
.note { padding: var(--space-5); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-card); max-width: 38ch; display: flex; flex-direction: column; gap: var(--space-4); }
.note .body { color: rgba(255,255,255,0.78); }
.stages { display: flex; flex-direction: column; }
.stage {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--space-5);
  padding-block: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.16);
}
.stage:last-child { border-bottom: 1px solid rgba(255,255,255,0.16); }
.stage__num { color: var(--accent); font-size: 1.5rem; }
.stage .display--sm { margin-bottom: var(--space-3); color: var(--white); }

/* ---- Products ---- */
.products { margin-top: clamp(2rem, 5vw, 4rem); }
.media { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }
.media--tall { aspect-ratio: 3 / 4; }
.media--offset { margin-top: clamp(1rem, 4vw, 3rem); }
.list { display: flex; flex-direction: column; gap: var(--space-3); }
.list li { padding-bottom: var(--space-3); border-bottom: 1px solid var(--cream-line); }
.list li:last-child { border-bottom: 0; padding-bottom: 0; }


/* ---- Product panels ---------------------------------------------------
   Packshots are cutouts, so they need a surface to sit on. The bar gets
   espresso, the shop gets cream, both against the white section.
   -------------------------------------------------------------------- */
.product-panel {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2%;
  aspect-ratio: 4 / 3;
  padding: 7% 8% 0;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.product-panel--bar  { background: var(--espresso); }
.product-panel--shop { background: var(--cream); }
.product-panel img { width: auto; max-width: 46%; object-fit: contain; }
.product-panel--shop img { max-width: 42%; height: 92%; }
/* The cappuccino sits behind and a little lower than the freddo. */
.product-panel__back  { height: 82%; margin-inline-end: -6%; }
.product-panel__front { height: 96%; position: relative; }

/* Packshots are moved by the scroll, not by a loop: the two cups drift apart
   as the section passes. Behind them the panel breathes and, at the espresso
   bar, steam rises - so the warmth moves while the products hold still. */
.product-panel { position: relative; transition: box-shadow 0.35s var(--ease); }
.product-panel:hover { box-shadow: 0 14px 34px rgba(42,22,10,0.18); }

.product-panel::before {
  content: ''; position: absolute; inset: -20%; pointer-events: none;
  animation: panel-breathe 9s ease-in-out infinite;
}
.product-panel--bar::before  { background: radial-gradient(60% 50% at 50% 78%, rgba(243,182,31,0.42), transparent 70%); }
.product-panel--shop::before { background: radial-gradient(58% 48% at 50% 76%, rgba(59,31,14,0.16), transparent 70%); animation-duration: 11s; }

/* Steam belongs to the cups, not to a bag of beans. */
.product-panel--bar::after {
  content: ''; position: absolute; inset-inline-start: 50%; inset-block-end: 44%;
  width: 26%; height: 42%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 100%, rgba(255,255,255,0.2), transparent 72%);
  filter: blur(12px); pointer-events: none;
  animation: panel-steam 7s ease-in-out infinite;
}

.product-panel img {
  width: auto; max-width: 46%; object-fit: contain;
  position: relative; z-index: 1;
  transition: transform 0.4s var(--ease);
}
.product-panel--shop img { max-width: 42%; height: 92%; }
/* The cappuccino sits behind and a little lower than the freddo. */
.product-panel__back  { height: 82%; margin-inline-end: -6%; }
.product-panel__front { height: 96%; }

/* --p runs -1 to 1 as the panel crosses the viewport; set in main.js. */
.product-panel--bar .product-panel__back  { transform: translateY(calc(var(--p, 0) * 22px)); }
.product-panel--bar .product-panel__front { transform: translateY(calc(var(--p, 0) * -26px)); }
.product-panel--shop img { transform: translateY(calc(var(--p, 0) * -16px)); }
.product-panel.is-tracking img { transition: none; }

.product-panel:hover .product-panel__front { transform: translateY(calc(var(--p, 0) * -26px - 10px)) scale(1.03); }
.product-panel--shop:hover img { transform: translateY(calc(var(--p, 0) * -16px - 9px)) scale(1.03); }

@keyframes panel-breathe { 0%, 100% { opacity: 0.34; transform: scale(1); } 50% { opacity: 0.68; transform: scale(1.08); } }
@keyframes panel-steam {
  0%   { opacity: 0; transform: translateX(-50%) translateY(12px) scaleX(0.9); }
  45%  { opacity: 0.8; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-54px) scaleX(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .product-panel::before, .product-panel--bar::after { animation: none; opacity: 0.4; }
  .product-panel img { transform: none !important; transition: none; }
}

/* ---- Story ---- */
.story__title { margin-block: var(--space-5) clamp(2rem, 5vw, 3.5rem); max-width: 26ch; }
.chapters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--cream-line); padding-top: var(--space-6);
}
.chapter__marker { color: var(--espresso); }
.chapter__text { margin-top: var(--space-4); }

/* ---- Markets ---- */
.markets__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6); flex-wrap: wrap; }
.markets__head .display { margin-top: var(--space-5); }
.markets__lead { max-width: 36ch; }
.markets {
  display: flex; flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.5rem) clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.market { display: inline-flex; align-items: flex-start; gap: 0.6rem; }
/* The list arrives as a wave rather than all at once, so the count is felt. */
.markets .market { transition-delay: calc(var(--i, 0) * 0.055s); }
.market--current .market__name { transition: color 0.5s var(--ease); }
.market__name { font-size: clamp(1.5rem, 4vw, 3.25rem); color: rgba(255,255,255,0.82); }
[lang="ar"] .market__name { font-size: clamp(1.35rem, 3.4vw, 2.75rem); }
.market--current .market__name { color: var(--accent); }
.market__badge { margin-top: 0.6rem; }

/* ---- Jordan ---- */
.jordan { position: relative; background: var(--espresso-deep); color: var(--white); }
.jordan__hero { position: relative; height: clamp(420px, 78vh, 820px); overflow: hidden; }
.jordan__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jordan__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,4,0.5) 0%, rgba(20,10,4,0.1) 40%, rgba(20,10,4,0.9) 100%); }
.jordan__title {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-5);
  padding: clamp(2rem, 6vw, 5rem) var(--gutter);
}
.jordan__title .display { color: var(--white); max-width: 24ch; }
.jordan__body { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); }
.jordan__body .body--lg { color: rgba(255,255,255,0.86); }
.jordan__body .body--muted { color: rgba(255,255,255,0.66); }
.store-card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,0.18);
}
.store-card .body--lg { color: var(--white); }
.jordan__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* ---- Social ---- */
.social__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.social__inner .display { max-width: 28ch; }
.social__links { display: flex; gap: var(--space-4); flex-wrap: wrap; }



/* ---- Sticky visit-us button ------------------------------------------- */
.visit-us {
  position: fixed; z-index: 35;
  inset-block-end: clamp(1rem, 3vw, 1.75rem);
  inset-inline-end: clamp(1rem, 3vw, 1.75rem);
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.6rem;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 0.85rem; letter-spacing: 0.12em;
  box-shadow: 0 10px 30px rgba(20,10,4,0.28);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.25s var(--ease);
}
[lang="ar"] .visit-us { font-family: var(--font-display); font-weight: 700; text-transform: none; letter-spacing: 0.02em; font-size: 0.95rem; }
.visit-us.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.visit-us:hover { color: var(--accent-ink); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(243,182,31,0.4); }
.visit-us svg { width: 17px; height: 17px; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .visit-us { transition: opacity 0.2s linear; transform: none; }
  .visit-us.is-shown { transform: none; }
}
@media print { .visit-us { display: none; } }

/* ---- Long-form pages (policies) --------------------------------------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 4vw, 3rem); background: var(--espresso); }
.page-head .display { color: var(--ci-white, #FFFFFF); max-width: 24ch; }
.page-head .label { color: var(--accent); }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: var(--space-6); }
.prose h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.03em; line-height: 1.05;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem); color: var(--text-strong);
  margin-bottom: calc(var(--space-4) * -1 + var(--space-2));
}
[lang="ar"] .prose h2 { font-weight: 800; text-transform: none; letter-spacing: 0; line-height: 1.25; }
.prose p { color: var(--text-body); }
.prose ul { display: flex; flex-direction: column; gap: var(--space-4); }
.prose ul li {
  padding-inline-start: var(--space-5);
  border-inline-start: 2px solid var(--cream-line);
  color: var(--text-body);
}
.prose ul li strong { color: var(--text-strong); font-weight: 700; }
.prose .browser-links { flex-direction: row; flex-wrap: wrap; gap: var(--space-4); }
.prose .browser-links li { border: 0; padding: 0; }
.prose .browser-links a { color: var(--text-strong); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.prose .browser-links a:hover { color: var(--accent); }
.prose a { color: var(--text-strong); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }

/* ---- Footer ---- */
.footer {
  background: var(--black); color: rgba(255,255,255,0.7);
  padding: clamp(2rem, 4vw, 3rem) var(--gutter) var(--space-5);
}
/* 140px floor, so five columns fit from about 900px up; below that the
   two-column override below takes over. */
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__logo { height: 34px; width: auto; align-self: start; }
.footer__col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col .label { color: var(--white); }
.footer__legal {
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.footer__policies { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.body--dim { color: rgba(255,255,255,0.45); }

/* Five 140px tracks plus gaps need about 900px of container; below that the
   footer goes to two columns rather than orphaning the last one. */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-4); }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---- Coffee Campus ---- */
.campus { margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgba(252,220,196,0.22); }
.campus__head { margin-bottom: var(--space-6); }
.campus__head .display { color: var(--white); }
.campus__cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(2rem, 4vw, 4rem); }
@media (max-width: 820px) { .campus__cols { grid-template-columns: 1fr; } }
.facts--dark { border-top-color: rgba(252,220,196,0.22); }

/* ---- Timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cream-line); }
.milestone {
  display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem); align-items: start;
  padding: clamp(1.25rem, 2.6vw, 2rem) 0; border-bottom: 1px solid var(--cream-line);
}
.milestone__year { color: var(--espresso); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; }
.milestone__text { max-width: 62ch; color: var(--text-muted); }
@media (max-width: 640px) {
  .milestone { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ---- Journey (scroll-driven arc timeline) ---- */
.journey.is-live .timeline { display: none; }
.journey__scene { position: relative; }
.journey__pin {
  position: sticky; top: calc(var(--header-h) + 3vh);
  display: flex; flex-direction: column; gap: clamp(1rem, 2vw, 1.75rem);
  padding-bottom: var(--space-4);
}
/* Full-bleed: the line has to run off both edges of the window, not stop
   at the container. */
.journey__viewport { position: relative; overflow: hidden; width: 100vw; margin-inline: calc(50% - 50vw); }
.journey__rail { position: absolute; inset-block: 0; left: 0; will-change: transform; }
.journey__curve { position: absolute; top: 0; height: 100%; max-width: none; overflow: visible; }
.journey__curve path { fill: none; stroke: var(--espresso); stroke-width: 1.5; opacity: 0.45; }
/* The button box is the dot alone, so the curve runs straight through it;
   the year hangs underneath, out of the line's way. */
.journey__year {
  position: absolute; transform: translate(-50%, -50%);
  display: block; appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-display); color: var(--espresso);
  font-size: calc(1.15rem + var(--near, 0) * 1.15rem); line-height: 1; letter-spacing: 0.03em;
  white-space: nowrap;
}
.journey__dot {
  display: block;
  width: calc(9px + var(--near, 0) * 7px); height: calc(9px + var(--near, 0) * 7px);
  border-radius: 50%; background: var(--cream); border: 1.5px solid var(--espresso);
}
.journey__num { position: absolute; top: calc(100% + 0.7rem); left: 50%; transform: translateX(-50%); }
.journey__year.is-active .journey__dot { background: var(--espresso); }
.journey__year:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; border-radius: 10px; }
.journey__panel {
  position: relative; margin-inline: auto; max-width: 58ch; text-align: center;
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem); min-height: 9rem;
}
.journey__stem {
  position: absolute; top: 0; left: 50%; width: 1px;
  height: clamp(1.25rem, 2.5vw, 2rem); background: var(--espresso); opacity: 0.35;
}
.journey__label { display: block; color: var(--espresso); font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1; }
.journey__text { margin-top: var(--space-3); color: var(--text-muted); text-wrap: pretty; }
.journey__panel.is-swap .journey__label,
.journey__panel.is-swap .journey__text { animation: journey-in 420ms var(--ease) both; }
@keyframes journey-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .journey__panel.is-swap .journey__label,
  .journey__panel.is-swap .journey__text { animation: none; }
}
@media (max-width: 640px) { .journey__panel { min-height: 12rem; } }
