﻿/* ===========================================================================
   بن سعود — light house style
   Palette is taken straight from the page this replaced:
   #fff ground · #000 ink · rgba(0,0,0,.55 / .35 / .25 / .15 / .12) rules
   Pills everywhere. Nothing else gets a colour — the watches supply it.
   =========================================================================== */

:root {
  --paper:      #ffffff;
  --paper-2:    #fafafa;
  --ink:        #000000;
  --ink-60:     rgba(0, 0, 0, 0.60);
  --ink-55:     rgba(0, 0, 0, 0.55);
  --ink-40:     rgba(0, 0, 0, 0.40);
  --ink-25:     rgba(0, 0, 0, 0.25);
  --rule:       rgba(0, 0, 0, 0.12);
  --rule-soft:  rgba(0, 0, 0, 0.07);
  --rule-hard:  rgba(0, 0, 0, 0.35);

  --sans:    'Cairo', 'Inter', -apple-system, system-ui, sans-serif;
  --latin:   'Inter', 'Cairo', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'Consolas', monospace;

  --gut:  clamp(1rem, 4.4vw, 3.25rem);
  --nav-h: 72px;
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Deliberately no boot gate on <body>. The 3D engine arrives as a dynamic
   import, which browsers refuse to load from a file:// origin — if the page
   depended on that script to become visible, opening the file directly would
   show nothing but white. Paint first, enhance second. */
body { opacity: 1; }

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- shell -- */
.shell { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gut); }
.shell-wide { max-width: 1680px; }

.sec { padding-block: clamp(4rem, 10vw, 9rem); }
.sec-line { border-top: 1px solid var(--rule); }

.skip {
  position: fixed; inset-block-start: -100px; inset-inline-start: var(--gut); z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.7rem 1.25rem;
  border-radius: 100px; font-size: 12px; font-weight: 600;
  transition: inset-block-start 0.25s var(--ease);
}
.skip:focus { inset-block-start: 1rem; }

/* ------------------------------------------------------------------ nav -- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), height 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--rule);
  height: 62px;
}
.nav-in {
  width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--paper-2);
  transition: transform 0.6s var(--ease);
}
/* logo.jpg is 411x411 — cover, not contain, so the mark never floats in the disc */
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-name { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub  { display: block; font-family: var(--latin); font-size: 9.5px; letter-spacing: 0.2em; color: var(--ink-40); }

.nav-links { display: none; align-items: center; gap: 2.2rem; }
.nav-links a {
  position: relative; font-size: 13px; font-weight: 600; color: var(--ink-55);
  padding-block: 4px; transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; inset-inline: 0; inset-block-end: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: inline-start;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }

.nav-end { display: flex; align-items: center; gap: 0.5rem; }

.lang { display: flex; align-items: center; background: transparent; border-radius: 100px; padding: 3px; gap: 2px; }
.lang button {
  font-family: var(--latin); font-size: 11px; font-weight: 600;
  padding: 5px 12px; border-radius: 100px; color: var(--ink-55);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
/* On phones the language switch lives only inside the drawer, so the top bar
   keeps just the brand and the menu button. */
@media (max-width: 899px) { .nav-end .lang { display: none; } }

.pill {
  display: none; align-items: center; gap: 8px;
  border: 1px solid var(--ink-25); border-radius: 100px; padding: 4px 14px 4px 4px;
  font-size: 12px; font-weight: 600; transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pill:hover { background: rgba(0, 0, 0, 0.04); border-color: var(--ink-25); }
.pill-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); flex-shrink: 0; display: grid; place-items: center; }
.pill-dot svg { width: 12px; height: 12px; color: var(--paper); }

.burger { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink-25); border-radius: 50%; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 14px; height: 1.5px; background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; inset-inline-start: 0; }
.burger span::before { transform: translateY(-4.5px); }
.burger span::after  { transform: translateY(4.5px); }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: rotate(45deg); }
body.menu-open .burger span::after  { transform: rotate(-45deg); }

/* --------------------------------------------------------------- drawer -- */
.drawer {
  position: fixed; inset: 0; z-index: 85; background: var(--paper);
  padding: calc(var(--nav-h) + 2rem) var(--gut) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0.7s;
}
body.menu-open .drawer { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer ol { list-style: none; display: grid; gap: 0.4rem; }
.drawer a {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: clamp(1.7rem, 9vw, 3rem); font-weight: 700; letter-spacing: -0.03em;
  padding-block: 0.35rem; opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
body.menu-open .drawer a { opacity: 1; transform: none; }
body.menu-open .drawer li:nth-child(1) a { transition-delay: 0.10s; }
body.menu-open .drawer li:nth-child(2) a { transition-delay: 0.16s; }
body.menu-open .drawer li:nth-child(3) a { transition-delay: 0.22s; }
body.menu-open .drawer li:nth-child(4) a { transition-delay: 0.28s; }
body.menu-open .drawer li:nth-child(5) a { transition-delay: 0.34s; }
.drawer a .n { font-family: var(--latin); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; color: var(--ink-40); }
.drawer-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.6rem; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid var(--ink-25);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-solid:hover { opacity: 0.85; }
.btn:not(.btn-solid):hover { background: rgba(0, 0, 0, 0.04); }
.btn .arw { transition: transform 0.4s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* ----------------------------------------------------------------- type -- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--latin); font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-40);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--ink-25); }

.h { font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.h-xl { font-size: clamp(2.6rem, 8.4vw, 6.6rem); }
.h-lg { font-size: clamp(2rem, 5.6vw, 4.1rem); }
.h-md { font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing: -0.025em; }

.lede { font-size: clamp(0.98rem, 1.35vw, 1.12rem); color: var(--ink-60); line-height: 1.85; max-width: 56ch; }
.muted { color: var(--ink-40); }

.sec-head { display: grid; gap: 1.6rem; margin-bottom: clamp(2.2rem, 5vw, 4rem); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; } }

/* ============================================================== 3D STAGE = */
/* Light stage: the watch is the only dark object on the page, so it reads
   like a photograph laid on paper rather than a glowing object in a void.  */
.stage {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 88% at 50% 8%, #ffffff 0%, var(--paper-2) 46%, #f2f2f2 100%);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.stage:active, .stage.grabbing { cursor: grabbing; }
.stage canvas { display: block; width: 100%; height: 100%; }

.stage-frame { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.stage-frame i { position: absolute; width: 16px; height: 16px; border: 1px solid var(--ink-25); }
.stage-frame i:nth-child(1) { top: 14px; inset-inline-start: 14px; border-inline-end: 0; border-bottom: 0; }
.stage-frame i:nth-child(2) { top: 14px; inset-inline-end: 14px; border-inline-start: 0; border-bottom: 0; }
.stage-frame i:nth-child(3) { bottom: 14px; inset-inline-start: 14px; border-inline-end: 0; border-top: 0; }
.stage-frame i:nth-child(4) { bottom: 14px; inset-inline-end: 14px; border-inline-start: 0; border-top: 0; }

.stage-hud {
  position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.1rem; pointer-events: none;
  font-family: var(--latin); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--ink-40); text-transform: uppercase;
}
.stage-hud .hint { display: flex; align-items: center; gap: 0.5rem; }
.stage-hud .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); animation: pulse 2.4s infinite; }
.stage-hud .readout { font-variant-numeric: tabular-nums; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.stage-tools { position: absolute; z-index: 3; top: 14px; inset-inline-end: 14px; display: flex; gap: 6px; }
.tool {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 50%; background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.tool:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.tool[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tool svg { width: 16px; height: 16px; }

/* Image stage: a photo watch (front / back) dragged and flipped in 3D, used
   when a reference ships as photographs instead of a GLB model. */
.img-stage {
  position: absolute; inset: 0; z-index: 1; outline: none;
  display: grid; place-items: center; padding: clamp(1.5rem, 6%, 3rem);
  perspective: 1500px; touch-action: pan-y;
}
.ist-scene { position: relative; width: min(78%, 460px); aspect-ratio: 1 / 1; transform-style: preserve-3d; }
.ist-watch { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.ist-face {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.ist-face img {
  width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none;
  filter: drop-shadow(0 26px 38px rgba(0, 0, 0, 0.16));
}
.ist-back { transform: rotateY(180deg); }
.ist-face figcaption {
  display: none; padding: 1rem; text-align: center;
  font-family: var(--latin); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-40);
}
.ist-face.missing { border: 1px dashed var(--ink-25); border-radius: 24px; }
.ist-face.missing img { display: none; }
.ist-face.missing figcaption { display: block; }

.stage-loading { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; transition: opacity 0.6s var(--ease), visibility 0.6s; }
.stage-loading.gone { opacity: 0; visibility: hidden; }
.stage-loading .dial {  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--rule); border-top-color: var(--ink);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* A failed load gets words instead of a spinner that never stops. */
.stage-loading.bad { align-content: center; gap: 1rem; padding: 2rem; text-align: center; }
.stage-loading.bad .dial { display: none; }
.stage-loading .stage-err { display: none; }
.stage-loading.bad .stage-err {
  display: block; max-width: 38ch; font-size: 12.5px; line-height: 1.75; color: var(--ink-60);
}

.stage-fallback {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: center;
  gap: 0.9rem; padding: 2rem; text-align: center;
}

.stage-fallback p { font-size: 12.5px; max-width: 34ch; line-height: 1.7; }



/* ============================================================== HERO ===== */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: var(--nav-h);
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 30%);
  overflow: hidden;
}
.hero-film {
  position: relative; overflow: hidden; background: #0b0b0b;
  height: 54svh; min-height: 340px; order: -1;
}
.hero-film video { width: 100%; height: 100%; object-fit: cover; }
.hero-film-tag {
  position: absolute; inset-inline-start: var(--gut); inset-block-end: 1rem; z-index: 2;
  font-family: var(--latin); font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.hero-copy { padding: clamp(2rem, 5vw, 4rem) var(--gut); }
.hero-copy .h { margin-block: 1.2rem 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }

@media (min-width: 900px) {
  .hero { grid-template-rows: 1fr; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); align-items: center; gap: 3rem; padding-inline: 0; }
  .hero-film { order: 0; height: calc(100svh - var(--nav-h)); min-height: 0; }
  .hero-copy { padding-inline: var(--gut); padding-block: 0; }
  .nav-links { display: flex; }
  .pill { display: inline-flex; }
}

/* Phones: the hero copy sits inside the film (over the video). */
@media (max-width: 899px) {
  .hero { grid-template-rows: minmax(72svh, 1fr); }
  .hero-film { order: 0; height: auto; min-height: 0; grid-area: 1 / 1; }
  .hero-copy { order: 0; grid-area: 1 / 1; align-self: start; z-index: 2; padding-block: clamp(4rem, 20vh, 12rem) clamp(1.6rem, 5vw, 3rem); }
  .hero-film::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.30) 55%, rgba(0,0,0,0.06) 100%);
  }
  .hero-copy .eyebrow { color: rgba(255,255,255,0.85); }
  .hero-copy .eyebrow::before { background: rgba(255,255,255,0.6); }
  .hero-copy .h { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.55); }
  .hero-copy .lede { color: rgba(255,255,255,0.92); text-shadow: 0 1px 6px rgba(0,0,0,0.55); }
  .hero-copy .btn:not(.btn-solid) { border-color: rgba(255,255,255,0.45); color: #fff; }
  .hero-copy .btn:not(.btn-solid):hover { background: rgba(255,255,255,0.14); }
}

/* ========================================================== REFERENCES == */
.refs-grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.refs-panel { display: grid; gap: 1.8rem; }
.refs-stage { height: clamp(360px, 58svh, 620px); border: 1px solid var(--rule); }

.label {
  display: block; font-family: var(--latin); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 0.7rem;
}

.refs { display: grid; gap: 1px; background: var(--rule-soft); border-block: 1px solid var(--rule); }
.ref {
  display: grid; gap: 3px; text-align: start; padding: 0.95rem 0.2rem;
  background: var(--paper); position: relative;
  transition: padding-inline 0.45s var(--ease), background 0.35s var(--ease);
}
.ref::after {
  content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 2px; background: var(--ink);
  transform: scaleY(0); transform-origin: center; transition: transform 0.45s var(--ease);
}
.ref:hover { padding-inline: 0.75rem 0.2rem; background: var(--paper-2); }
.ref[aria-pressed="true"]::after { transform: scaleY(1); }
.ref[aria-pressed="true"] { padding-inline: 0.75rem 0.2rem; }
.ref-no { font-family: var(--latin); font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-40); }
.ref-t  { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.ref-s  { font-family: var(--latin); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-40); direction: ltr; }

.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
.spec > div { background: var(--paper); padding: 0.9rem 1rem; }
.spec dt { font-family: var(--latin); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-40); }
.spec dd { margin-top: 0.35rem; font-size: 12.5px; line-height: 1.5; }

@media (min-width: 1000px) {
  .refs-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
  .refs-panel { position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* ============================================ CLOSER LOOK (dark band) == */
/* Omega-style cinematic treatment: a near-black studio where the watch is the
   only bright object, an oversized light/bold product title, and everything
   eased in on scroll. The palette is local, like the footer, so the section
   flips to light-on-dark without touching the rules inside it. */
.wc {
  --paper: #0b0b0c; --paper-2: #151517;
  --ink: #ffffff;
  --ink-60: rgba(255, 255, 255, 0.64);
  --ink-55: rgba(255, 255, 255, 0.55);
  --ink-40: rgba(255, 255, 255, 0.44);
  --ink-25: rgba(255, 255, 255, 0.22);
  --rule: rgba(255, 255, 255, 0.14);
  --rule-soft: rgba(255, 255, 255, 0.08);
  --rule-hard: rgba(255, 255, 255, 0.4);
  position: relative; overflow: hidden;
  background: var(--paper); color: var(--ink);
}
.wc-aura {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 62%),
    radial-gradient(55% 45% at 82% 92%, rgba(255, 255, 255, 0.045), transparent 70%);
}
.wc .shell { position: relative; }
.wc-intro { margin-bottom: clamp(2rem, 4.5vw, 3.4rem); }
.wc .eyebrow { color: var(--ink-60); }
.wc-title {
  margin: 1.1rem 0 0;
  font-weight: 300; letter-spacing: -0.02em; line-height: 1.1;
  font-size: clamp(1.85rem, 4.6vw, 3.6rem);
}

/* The deck is a three-frame walk-through. The photographs are cut-outs, so
   they sit straight on the black — no card, no border, no frame behind them. */
.wc-deck { display: grid; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .wc-deck { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.wc-visual { margin: 0; display: grid; place-items: center; min-height: clamp(280px, 46vh, 520px); }
.wc-visual img { width: auto; height: auto; max-width: 100%; max-height: clamp(280px, 52vh, 560px); object-fit: contain; }
.wc-visual img:not([src]) { opacity: 0; }
.wc-visual.missing { min-height: clamp(240px, 40vh, 460px); }
.wc-visual.missing::after { content: attr(data-ph); font-family: var(--latin); font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--ink-40); border: 1px dashed var(--rule); border-radius: 3px; padding: 2.4rem 3rem; text-align: center; }
.wc-copy { max-width: 42ch; }
.wc-count { font-family: var(--latin); font-size: 0.72rem; letter-spacing: 0.28em; color: var(--ink-40); margin: 0 0 1.1rem; }
.wc-count i { font-style: normal; opacity: 0.5; margin-inline: 0.4em; }
.wc-name { font-size: clamp(1.35rem, 2.8vw, 2.1rem); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.9rem; }
.wc-body { color: var(--ink-60); }
.wc-body p { margin: 0; line-height: 1.95; }
.wc-body dl { margin: 0; display: grid; gap: 0.55rem; }
.wc-body .row { display: flex; justify-content: space-between; gap: 1.5rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--rule-soft); }
.wc-body dt { color: var(--ink-40); font-size: 0.8rem; }
.wc-body dd { margin: 0; text-align: end; color: var(--ink); font-size: 0.9rem; }
.wc-nav { display: flex; gap: 0.7rem; margin-top: 1.9rem; }
.wc-arrow { width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  border: 1px solid var(--rule); background: transparent; color: var(--ink);
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.2s; }
.wc-arrow:hover { background: #fff; border-color: #fff; color: #000; }
.wc-arrow:active { transform: scale(0.93); }
.wc-arrow svg { width: 20px; height: 20px; }
html[dir="ltr"] .wc-arrow svg { transform: rotate(180deg); }
.wc-deck.swap .wc-visual img { animation: wcIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.wc-deck.swap .wc-copy > * { animation: wcIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.wc-deck.swap .wc-copy > *:nth-child(2) { animation-delay: 0.05s; }
.wc-deck.swap .wc-copy > *:nth-child(3) { animation-delay: 0.1s; }
@keyframes wcIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wc-deck.swap .wc-visual img, .wc-deck.swap .wc-copy > * { animation: none; } }

/* Phones: the deck arrows sit right under the image and are smaller. */
@media (max-width: 899px) {
  .wc-copy { display: contents; }
  .wc-deck { gap: 1.2rem; }
  .wc-visual { order: 1; }
  .wc-nav { order: 2; margin-top: 0.3rem; justify-content: center; }
  .wc-count { order: 3; margin-top: 0.5rem; }
  .wc-name { order: 4; }
  .wc-body { order: 5; }
  .wc-arrow { width: 40px; height: 40px; }
  .wc-arrow svg { width: 16px; height: 16px; }
}

.film { position: relative; min-height: min(84svh, 760px); display: flex; align-items: center; overflow: hidden; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film .history-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.82) 6%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.34) 100%); }
.film-in { position: relative; z-index: 2; padding-block: clamp(2.5rem, 6vw, 5rem); color: #fff; }
.film-in .eyebrow { color: rgba(255,255,255,0.7); }
.film-in .eyebrow::before { background: rgba(255,255,255,0.5); }
.film-in .lede { color: rgba(255,255,255,0.8); }
.film-in .btn { border-color: rgba(255,255,255,0.4); color: #fff; }
.film-in .btn:hover { background: rgba(255,255,255,0.14); }
@media (prefers-reduced-motion: reduce) { .film video { display: none; } .film { background: #111; } }

/* ============================================================ SHOWROOMS == */
/* The cities are a list on the reading-start side; the opened branch's
   phones show beside them, on the other side of the same card. */
.rooms { display: block; width: 100%; }

.acc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start;
}
.acc-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.acc-list .acc-btn:first-child { border-top: 1px solid var(--rule); }
.acc-btn {
  min-width: 0;
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0.2rem; text-align: start; border-bottom: 1px solid var(--rule);
  border-radius: 8px;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.acc-btn:hover { background-color: rgba(0, 0, 0, 0.045); }
.acc-t { display: flex; align-items: baseline; gap: 0.85rem; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.acc-t .n { font-family: var(--latin); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-40); }
.acc-t .c { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.acc-t .s { font-family: var(--latin); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-40); }
.acc-x { position: relative; width: 13px; height: 13px; flex-shrink: 0; }
.acc-x::before, .acc-x::after { content: ''; position: absolute; inset: 50% 0 auto 0; height: 1.5px; background: var(--ink); transition: transform 0.45s var(--ease); }
.acc-x::after { transform: rotate(90deg); }
.acc-btn.open .acc-x::after { transform: rotate(0deg); }

.acc-detail { border-inline-start: 1px solid var(--rule); padding-inline-start: clamp(1.2rem, 2.6vw, 2rem); }
.acc-detail ul { display: grid; gap: 1.15rem; list-style: none; }
.acc-detail .a { font-size: 15px; font-weight: 650; }
.acc-detail .m { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; font-family: var(--latin); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-40); }
.acc-detail .m a:hover { color: var(--ink); }
.acc-empty { font-size: 12.5px; color: var(--ink-40); }

@media (max-width: 580px) {
  .acc { grid-template-columns: 1fr; gap: 1.1rem; }
  .acc-detail { border-inline-start: none; border-top: 1px solid var(--rule); padding-inline-start: 0; padding-top: 1.1rem; }
  /* On phones the branches read as a plain list that leads to the branches
     page: no plus sign and no contact-detail panel to expand. */
  .acc-x { display: none; }
  .acc-detail { display: none; }

  /* Each city becomes its own tappable card — a soft block with a chevron
     that points the way to the branches page — instead of a bare ruled row. */
  .acc-list { gap: 0.6rem; }
  .acc-list .acc-btn:first-child { border-top: 0; }
  .acc-btn {
    padding: 1.05rem 1.15rem;
    border-bottom: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
  }
  .acc-btn:hover { background: rgba(255, 255, 255, 0.09); }
  .acc-btn:active { background: rgba(255, 255, 255, 0.14); }
  .acc-btn::after {
    content: ''; flex: 0 0 auto; width: 8px; height: 8px;
    margin-inline-start: 0.6rem;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(-135deg);
    opacity: 0.5;
    transition: opacity 0.3s var(--ease);
  }
  html[dir="ltr"] .acc-btn::after { transform: rotate(45deg); }
  .acc-btn:active::after { opacity: 1; }

  /* Nudge the whole card a little further toward the right edge on phones.
     Its width is pinned to the section first so the shift is the same on
     every phone and never runs off the screen. */
  .hero-branch .shell { width: 100%; max-width: none; margin-inline: 0; transform: translateX(16px); }
}

/* ============================================ SHOWROOMS AS A FULL FILM == */
/* The branch photo runs full-bleed behind #showrooms, and all the copy sits
   on a solid dark card — not just a scrim — so it stays perfectly legible
   regardless of what the photo shows behind it. The 0.82 alpha means even
   browsers without backdrop-filter keep full contrast. */
.hero-branch {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: flex-start;
  gap: clamp(1.8rem, 4vw, 5rem); flex-wrap: nowrap;
  min-height: min(80svh, 740px);
  padding-inline: clamp(1rem, 6vw, 12rem);
}
.hero-branch-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
  filter: brightness(0.88) contrast(1.06);
}
.hero-branch::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.28) 48%, rgba(0,0,0,0.48) 100%);
}
.hero-branch .shell {
  position: relative; z-index: 1; color: #fff;
  max-width: 620px;
  margin-inline: clamp(1rem, 2vw, 2.5rem);
  background: rgba(10, 10, 10, 0.86);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: clamp(18px, 2.4vw, 26px);
  padding: clamp(1.6rem, 3.4vw, 3rem);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
/* The card only takes a fixed height once the cities sit in two columns.
   On phones the accordion is a single column and is taller, so the card has
   to grow with it — a fixed 700px there clipped the last branch. */
@media (min-width: 581px) {
  .hero-branch .shell { height: 700px; }
}
.hero-branch .eyebrow { color: rgba(255,255,255,0.82); text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.hero-branch .eyebrow::before { background: rgba(255,255,255,0.55); }
.hero-branch .h, .hero-branch h2 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.55); }
.hero-branch .lede { color: rgba(255,255,255,0.92); text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.hero-branch .rooms { width: 100%; flex: 1 1 auto; min-height: 0; }
.hero-branch [data-rise] { opacity: 1; transform: none; }
.hero-branch .acc-list .acc-btn:first-child { border-top-color: rgba(255,255,255,0.28); }
.hero-branch .acc-btn { border-bottom-color: rgba(255,255,255,0.28); }
.hero-branch .acc-btn:hover { background-color: rgba(255,255,255,0.08); }
.hero-branch .acc-detail { border-inline-start-color: rgba(255,255,255,0.28); }
.hero-branch .acc-t .c { color: #fff; }
.hero-branch .acc-t .n, .hero-branch .acc-t .s { color: rgba(255,255,255,0.74); }
.hero-branch .acc-x::before, .hero-branch .acc-x::after { background: #fff; }
.hero-branch .acc-detail .a { color: rgba(255,255,255,0.93); }
.hero-branch .acc-detail .m { color: rgba(255,255,255,0.62); }
.hero-branch .acc-detail .m a:hover { color: #fff; }
.hero-branch .acc-empty { color: rgba(255,255,255,0.5); }

/* ============================================= ACCORDION "MORE" CTA ==== */
/* Sits under the four rows a city expands to and leads to the branches page. */
.acc-detail .acc-more { margin-top: clamp(1.2rem, 2.6vw, 1.7rem); }
.hero-branch .acc-more { border-color: #fff; background: #fff; color: #111; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.hero-branch .acc-more:hover { background: rgba(255,255,255,0.92); border-color: #fff; color: #111; }

/* Full-width Omega photograph behind the homepage branch card. */
#showrooms.hero-branch {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2rem, 4vw, 5rem);
  background: #10354b; min-height: 0;
}
#showrooms .hero-branch-bg { object-fit: cover; object-position: center; filter: none; }
#showrooms.hero-branch::before { display: none; }
#showrooms.hero-branch > .shell {
  width: 100%; max-width: none; margin: 0; height: auto; min-height: 560px;
  transform: none; background: rgba(20,20,20,.9);
}
.showrooms-art { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; min-width: 0; margin: 0; }
#showrooms .showrooms-art { position: relative; z-index: 1; }
#showrooms .showrooms-art .btn { background: #fff; color: #141414; border-color: #fff; }
@media (max-width: 999px) {
  #showrooms.hero-branch { grid-template-columns: minmax(0, 1fr); }
  #showrooms.hero-branch > .shell { min-height: 0; }
}
@media (max-width: 580px) {
  #showrooms.hero-branch { isolation: isolate; }
  #showrooms.hero-branch > .shell { position: relative; z-index: 1; background: rgba(20,20,20,.9); }
}

/* ================================================================ FOOT == */
/* ============================================================== FOOTER == */
/* The footer is the one block that turns over to ink, so it carries its own
   light-on-dark tokens instead of overriding every rule inside it. */
.foot {
  --paper: #0a0a0b;
  --paper-2: #141416;
  --ink: #ffffff;
  --ink-60: rgba(255, 255, 255, 0.62);
  --ink-55: rgba(255, 255, 255, 0.55);
  --ink-40: rgba(255, 255, 255, 0.42);
  --ink-25: rgba(255, 255, 255, 0.25);
  --rule: rgba(255, 255, 255, 0.16);
  --rule-soft: rgba(255, 255, 255, 0.09);
  --rule-hard: rgba(255, 255, 255, 0.4);
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
}
.foot-top { display: grid; gap: 2.2rem; }
.foot h4 { font-family: var(--latin); font-size: 9.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 0.9rem; }
.foot ul { list-style: none; display: grid; gap: 0.55rem; }
.foot li a { font-size: 13.5px; color: var(--ink-60); transition: color 0.3s var(--ease); }
.foot li a:hover { color: var(--ink); }
.foot-bot { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between; margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.4rem; border-top: 1px solid var(--rule); font-family: var(--latin); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-40); }
@media (min-width: 760px) { .foot-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ================================================================ TICKER */
/* Sits directly under the hero. Full-bleed black band, so the brand names
   read as a solid rule rather than loose text floating in white space.

   The band now carries one real link, so it can no longer be aria-hidden —
   only the duplicated marquee inside it is. direction:ltr is on the band
   itself so the button stays on the physical left in both languages, while
   the track below fills whatever is left of the strip. */
.tick {
  position: relative; overflow: hidden;
  background: var(--ink);
  padding-block: 1.15rem; padding-inline: var(--gut);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem);
  direction: ltr;
}
.tick-more {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink);
  border-radius: 100px; padding: 0.6rem 1.25rem;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.tick-more:hover { transform: translateY(-2px); opacity: 0.88; }
.tick-mask { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.tick-track { display: flex; gap: 3.5rem; width: max-content; animation: slide 34s linear infinite; }
.tick-track span {
  font-family: var(--latin); font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.78); white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.tick:hover .tick-track span { color: #fff; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tick-track { animation: none; } }

/* ============================================================ ARCHIVE == */
/* Six loose plates rather than a grid: each one keeps its own width, sits at
   its own height, and is given room to breathe. Spans and column offsets do
   the arranging, so nothing has to be cropped to make the rows line up. */
/* Each plate's frame is sized to its scan: never widened past the scan's own
   pixel width, and centred in its column, so a small scan keeps a small, sharp
   plate whose frame fits it. --arc-w is that intrinsic width. */
.arc { display: grid; gap: 0.9rem; align-content: start; width: min(100%, var(--arc-w, 100000px)); justify-self: center; }
.arc-img { overflow: hidden; }
.arc-img img { display: block; width: 100%; height: auto; transition: transform 1.5s var(--ease), opacity 0.6s var(--ease); }
.arc:hover .arc-img img { transform: scale(1.035); }
.arc figcaption { display: grid; gap: 0.5rem; justify-items: start; }
.arc-chip {
  font-family: var(--latin); font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  color: var(--ink-40); text-decoration: none; padding: 0.3rem 0.6rem;
  border: 1px solid var(--rule); transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  font-variant-numeric: tabular-nums;
}
.arc-chip:hover { color: var(--ink); border-color: var(--ink-25); }
.arc-cap { max-width: 40ch; font-size: 12.5px; line-height: 1.75; color: var(--ink-60); }
[dir="ltr"] .arc-cap { max-width: 46ch; }

@media (min-width: 700px) {
  .arc-wall {
    display: grid; grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1.5rem, 3.5vw, 3.5rem); row-gap: clamp(3rem, 7vw, 6rem);
    align-items: start;
  }
  .arc-a { grid-column: 1 / span 7; }
  .arc-b { grid-column: 9 / span 4; margin-top: clamp(1rem, 5vw, 4.5rem); }
  .arc-c { grid-column: 2 / span 5; }
  .arc-d { grid-column: 8 / span 5; margin-top: clamp(1rem, 4vw, 3.5rem); }
  .arc-e { grid-column: 1 / span 6; margin-top: clamp(0.5rem, 3vw, 2.5rem); }
  .arc-f { grid-column: 8 / span 5; margin-top: clamp(1.5rem, 6vw, 5rem); }
}
@media (min-width: 1100px) {
  .arc-a { grid-column: 1 / span 7; }
  .arc-b { grid-column: 9 / span 4; }
  .arc-c { grid-column: 2 / span 5; }
  .arc-d { grid-column: 8 / span 5; }
  .arc-e { grid-column: 1 / span 6; }
  .arc-f { grid-column: 9 / span 4; margin-top: clamp(2rem, 7vw, 6rem); }
}
@media (max-width: 699px) {
  /* one column, so the desktop offsets and the hanging indent both go */
  .arc-wall { display: grid; gap: clamp(3.5rem, 11vw, 5rem); }
  .arc-a, .arc-b, .arc-c, .arc-d, .arc-e, .arc-f { grid-column: auto; margin: 0; }
}

/* ================================================================ TABS == */
/* Just two labels sitting under the nav. No panel behind them, no pill: the
   only thing that marks the current view is the rule under its label.

   The nav is fixed, and on this page nothing else clears it — index.html lets
   its own .hero do that — so the offset belongs here. */
.page-story main { padding-top: var(--nav-h); }

.tabs { position: static; }

.tabs-bar {
  display: flex; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem);
  padding-block: 0.9rem; overflow-x: auto; scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }

.tab {
  display: inline-flex; align-items: baseline; gap: 0.45rem; flex-shrink: 0;
  padding: 0.55rem 0 0.6rem; background: none; border: 0; border-bottom: 1px solid transparent;
  color: var(--ink-40); font-family: inherit; font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em; cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.tab-n { font-family: var(--latin); font-size: 10px; letter-spacing: 0.12em; opacity: 0.5; font-variant-numeric: tabular-nums; }



/* ================================================================ STORY == */
/* Nothing sticky lives in story-hero. */
.story-hero { padding-block: clamp(3rem, 8vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.story-hero-in { display: grid; gap: clamp(2.2rem, 5vw, 4rem); align-items: end; }
@media (min-width: 900px) { .story-hero-in { grid-template-columns: minmax(0, 1fr) auto; } }

/* ============================================================== BRANDS == */
/* Eight houses on a ruled lattice rather than eight floating cards — the same
   1px-gutter technique the references list uses, so the page reads as one
   sheet. Each entry is a single link: the logo itself is the affordance. */
.page-brands main { padding-top: var(--nav-h); }

.brands-wall {
  display: grid; gap: 1px; background: var(--rule-soft);
  border-block: 1px solid var(--rule);
}
@media (min-width: 700px)  { .brands-wall { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .brands-wall { grid-template-columns: repeat(4, 1fr); } }

.bc {
  position: relative; display: grid; gap: clamp(1rem, 2vw, 1.35rem); align-content: start;
  background: var(--paper); padding: clamp(1.5rem, 2.6vw, 2.3rem);
  transition: background 0.4s var(--ease);
}
.bc:hover { background: var(--paper-2); }

/* One fixed band for every logo, so a tightly cropped 320px mark and a padded
   square one sit on the same baseline. All eight marks ship as squares whose
   wordmark fills ~90% of the width, so the band height alone sets how wide
   every logo reads — they line up without per-logo tuning. */
.bc-logo { height: clamp(72px, 9vw, 116px); display: flex; align-items: center; }
.bc-logo img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  transition: transform 0.55s var(--ease);
}
.bc:hover .bc-logo img { transform: translateY(-3px); }

.bc-no {
  position: absolute; inset-block-start: clamp(1.5rem, 2.6vw, 2.3rem);
  inset-inline-end: clamp(1.5rem, 2.6vw, 2.3rem);
  font-family: var(--latin); font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-25);
  font-variant-numeric: tabular-nums;
}
.bc-body { display: grid; gap: 0.5rem; }
.bc-name {
  font-family: var(--latin); font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 600;
  letter-spacing: 0.05em; direction: ltr; unicode-bidi: isolate;
}
.bc-meta {
  font-family: var(--latin); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-40);
}
.bc-x { font-size: 13px; line-height: 1.85; color: var(--ink-60); }
.bc-go {
  display: block; margin-top: 0.3rem;
  font-family: var(--latin); font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--ink-40); direction: ltr; unicode-bidi: isolate; text-align: start;
  transition: color 0.35s var(--ease);
}
.bc:hover .bc-go { color: var(--ink); }

/* ==================================================== BRANDS HERO FILM = */
/* A faint film runs behind the brands hero copy. Kept well under full
   opacity so paper still reads through it and the black type stays legible;
   it is purely decorative, hence hidden from assistive tech. */
.br-hero { position: relative; }
.br-film {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
}
.br-hero .shell { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .br-film { display: none; } }

/* ========================================================= SHOWROOMS CTA */
/* The "اكتشف فروعنا" button sits to the LEFT of the branch card on wide
   screens (RTL row: card first, CTA second). On narrow screens the pair
   wraps and the button drops centered below the card. */
.hero-branch .bx-cta {
  border-color: #fff; color: #111;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.hero-branch .bx-cta:hover { background: rgba(255, 255, 255, 0.92); color: #111; border-color: #fff; }

/* ======================================================== BRANCHES PAGE = */
/* The nav floats over a full-bleed photograph here, so it keeps a frosted
   paper backdrop from the very top instead of waiting for the stuck state. */
.page-bx .nav {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--rule);
}
.bx-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(70svh, 620px);
  padding-block: clamp(3rem, 8vw, 7rem) clamp(2.5rem, 6vw, 4.5rem);
}
.bx-arrival {
  isolation: isolate; display: flex; flex-direction: column; align-items: stretch; justify-content: end;
  min-height: min(88svh, 850px); padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 6vw, 7rem) 0;
  background: #181b1b; color: #fff;
}
.bx-arrival-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.bx-arrival::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(8,13,15,.94), rgba(8,13,15,.12) 90%), linear-gradient(270deg, rgba(8,13,15,.58), transparent 80%);
}
html[dir="ltr"] .bx-arrival::before { background: linear-gradient(0deg, rgba(8,13,15,.94), rgba(8,13,15,.12) 90%), linear-gradient(90deg, rgba(8,13,15,.58), transparent 80%); }
.bx-arrival .bx-hero-copy { position: relative; width: 100%; margin: 0; padding-bottom: clamp(3rem, 6vw, 5rem); }
.bx-arrival .eyebrow { color: #d6c5a3; letter-spacing: .2em; }
.bx-arrival .eyebrow::before { background: #d6c5a3; }
.bx-arrival .h-xl { font-size: clamp(3.5rem, 8vw, 7.3rem); line-height: 1.1; text-shadow: 0 2px 30px rgba(0,0,0,.15); }
.bx-arrival .bx-arrival-cta { margin-top: 2rem; color: #fff; border-color: rgba(255,255,255,.55); border-radius: 0; }
.bx-arrival .bx-arrival-cta:hover { background: #fff; color: #181b1b; }
.bx-arrival-cities { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.28); list-style: none; }
.bx-arrival-cities li { padding: 1.6rem 0; display: grid; gap: .3rem; }
.bx-arrival-cities li + li { border-inline-start: 1px solid rgba(255,255,255,.18); padding-inline-start: clamp(1rem, 3vw, 3rem); }
.bx-arrival-cities li > span:first-child { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }
.bx-arrival-cities li > span:last-child { font-size: .75rem; color: #c5c6c3; }
@media (max-width: 580px) {
  .bx-arrival { min-height: 76svh; padding-top: 4rem; }
  .bx-arrival-photo { object-position: 46% center; }
  .bx-arrival .bx-hero-copy { padding-bottom: 2.5rem; }
  .bx-arrival-cities li { padding-block: 1.25rem; }
}

.bx-arrival-map {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center; gap: 2rem; min-height: 0;
  padding-top: clamp(3rem, 6vw, 6rem); background: #fff; color: var(--ink);
}
.bx-arrival-map::before { display: none; }
.bx-arrival-map .bx-arrival-photo {
  position: static; z-index: auto; grid-column: 2; grid-row: 1;
  width: 100%; height: auto; object-fit: contain;
}
.bx-arrival-map .bx-hero-copy { grid-column: 1; grid-row: 1; padding-bottom: 0; }
.bx-arrival-map .eyebrow { color: var(--ink-60); }
.bx-arrival-map .eyebrow::before { background: var(--ink-25); }
.bx-arrival-map .h-xl { font-size: clamp(3rem, 6.5vw, 6rem); text-shadow: none; }
.bx-arrival-map .bx-arrival-cta { color: var(--ink); border-color: var(--ink-25); }
.bx-arrival-map .bx-arrival-cta:hover { background: var(--ink); color: #fff; }
.bx-arrival-map .bx-arrival-cities { grid-column: 1 / -1; border-top-color: var(--rule); }
.bx-arrival-map .bx-arrival-cities li + li { border-inline-start-color: var(--rule); }
.bx-arrival-map .bx-arrival-cities li > span:last-child { color: var(--ink-60); }
@media (max-width: 760px) {
  .bx-arrival-map { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .bx-arrival-map .bx-arrival-photo { grid-column: 1; grid-row: 2; }
  .bx-arrival-map .bx-hero-copy { padding-bottom: 0; }
}

.bx-grid {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}
.bx-list { display: grid; gap: 1.8rem; }
.bx-group-h {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--ink-40); margin-bottom: 0.4rem;
}
.bx-row {
  display: flex; align-items: center; gap: 0.9rem; width: 100%;
  padding: 0.95rem 0.35rem; text-align: start;
  border-bottom: 1px solid var(--rule); cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.bx-row:hover { background: rgba(0, 0, 0, 0.03); }
.bx-row[aria-pressed="true"] { background: rgba(0, 0, 0, 0.06); }
.bx-row .n { font-family: var(--latin); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-40); }
.bx-row .t { flex: 1 1 auto; font-weight: 600; font-size: 15.5px; min-width: 0; }
.bx-row .ar { font-size: 13px; color: var(--ink-40); transition: transform 0.35s var(--ease), color 0.35s var(--ease); }
.bx-row:hover .ar { color: var(--ink); transform: translateX(-3px); }
.bx-row[aria-pressed="true"] .n { color: var(--ink); }

.bx-pic { position: sticky; top: calc(5.5rem); }
.bx-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rule);
  border-radius: clamp(14px, 2vw, 22px);
  background: #0d0d0d;
  box-shadow: 0 22px 60px -30px rgba(0, 0, 0, 0.35);
}
.bx-img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  opacity: 1; transition: opacity 0.45s var(--ease);
}
.bx-img.swap { opacity: 0; }
.bx-cap { margin-top: 1.4rem; display: grid; gap: 0.45rem; justify-items: start; }
.bx-no { font-family: var(--latin); color: var(--ink-40); }
.bx-name { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.bx-addr { color: var(--ink-60); font-size: 13.5px; line-height: 1.7; }
.bx-m { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.bx-m a {
  font-family: var(--latin); font-size: 11.5px; letter-spacing: 0.05em;
  color: var(--ink-60); border: 1px solid var(--rule);
  padding: 0.42rem 0.9rem; border-radius: 999px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bx-m a:hover { color: var(--ink); border-color: var(--ink-25); }

@media (max-width: 900px) {
  .bx-grid { grid-template-columns: 1fr; }
  .bx-pic { position: static; margin: 0.4rem 0 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bx-img { transition: none; }
}

/* =============================================================== REVEAL = */
[data-rise] { opacity: 0; transform: translateY(26px); }
[data-rise].in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  [data-rise] { opacity: 1; transform: none; }
  .stage-hud .dot, .stage-loading .dial, .tick-track { animation: none; }
}

/* ====================================================== MOBILE POLISH == */
/* Phone-only touch comfort. A few links sat under the ~40px comfortable hit
   size on small screens (language toggle 39x28, the city/contact rows in the
   footer at 26px, and the branch phone/e-mail chips at 18px). This only grows
   the tap area; nothing here moves on tablet or desktop. */
@media (max-width: 640px) {
  [data-lang] { min-width: 40px; min-height: 40px; }
  .burger { width: 44px; height: 44px; }
  .foot ul a,
  .acc-detail .m a,
  .bx-m a { min-height: 40px; display: inline-flex; align-items: center; }
}

/* ==========================================================================
   STORY
   ========================================================================== */
.page-story {
  --tint: #f7f5f0;
  --ink: #14110c;
  --ink-60: rgba(20, 17, 12, 0.62);
  --ink-40: rgba(20, 17, 12, 0.42);
  --ink-25: rgba(20, 17, 12, 0.25);
  --rule: rgba(20, 17, 12, 0.13);
  --rule-soft: rgba(20, 17, 12, 0.07);
  --rule-hard: rgba(20, 17, 12, 0.34);
  --accent: #96703a;
  --display: 'Amiri', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --num: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--paper);
}
.page-story .nav.stuck { background: rgba(255, 255, 255, 0.88); }
.page-story ::selection { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------------ hero -- */
.her { padding-block: clamp(2.6rem, 6vw, 5rem) clamp(1.8rem, 4vw, 3rem); }
.her-in { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
@media (min-width: 900px) {
  .her-in { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(2.5rem, 7vw, 6rem); }
}
.her-t {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.7rem, 8.5vw, 6.4rem); line-height: 1.03; letter-spacing: -0.015em;
  margin-top: 0.9rem;
}
.her-t em { font-style: normal; color: var(--accent); }
.her-dek {
  margin-top: clamp(1.2rem, 3vw, 1.9rem); max-width: 46ch;
  font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.95; color: var(--ink-60);
}
.her-facts {
  display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 5vw, 3.4rem);
  margin-top: clamp(1.6rem, 4vw, 2.4rem); padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
.her-facts div { display: grid; gap: 0.3rem; }
.her-facts b {
  font-family: var(--num); font-weight: 600; line-height: 1; letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-variant-numeric: tabular-nums;
}
.her-facts span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-40);
}
.her-fig { display: grid; gap: 0.8rem; }
.her-fig .plate {
  background: transparent; border: 1px solid var(--rule);
  padding: 0;
}
.her-fig .plate img {
  width: 100%; height: auto; display: block;
}

.her-fig figcaption { display: grid; gap: 0.2rem; }
.her-fig figcaption b { font-size: 14px; font-weight: 600; }
.her-fig figcaption span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--ink-40); font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- timeline -- */
.tline { padding-block: clamp(1.6rem, 4vw, 2.6rem) clamp(3.5rem, 9vw, 7rem); }
.era {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.7rem;
  margin: clamp(2.4rem, 6vw, 4.2rem) 0 clamp(0.4rem, 1vw, 0.8rem);
  padding-bottom: 0.7rem; border-bottom: 1px solid var(--ink);
}
.era:first-child { margin-top: 0; }
.era i {
  font-family: var(--mono); font-style: normal; font-size: 10px;
  letter-spacing: 0.18em; color: var(--accent);
}
.era h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.1;
}
.era span {
  margin-inline-start: auto; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; color: var(--ink-40); font-variant-numeric: tabular-nums;
}

.ms {
  display: grid;
  grid-template-columns: clamp(3.4rem, 13vw, 5.2rem) 1px minmax(0, 1fr);
  gap: clamp(0.9rem, 2.8vw, 1.9rem);
  padding-block: clamp(1.1rem, 2.6vw, 1.8rem);
  scroll-margin-top: calc(var(--nav-h) + 1.4rem);
}
.ms-r { position: relative; background: var(--rule); }
.ms-r::after {
  content: ''; position: absolute; top: 0.55rem; inset-inline-start: -3px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--rule-hard);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.ms.is-on .ms-r::after { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }
.ms-y { text-align: end; }
.ms-y b {
  display: block; font-family: var(--num); font-weight: 600; line-height: 1.05;
  letter-spacing: -0.02em; font-size: clamp(1.25rem, 2.7vw, 1.95rem);
  font-variant-numeric: tabular-nums; transition: color 0.4s var(--ease);
}
.ms.is-on .ms-y b { color: var(--accent); }
.ms-b { display: grid; gap: 0.95rem; align-content: start; max-width: 62ch; }
.ms-b .ms-title { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; line-height: 1.5; }
.ms-y .ms-period { font-size: clamp(.8rem, 1.7vw, 1.15rem); line-height: 1.5; }
.ms-period span { display: block; white-space: nowrap; }
.ms-b p { font-size: 0.99rem; line-height: 1.95; color: var(--ink-60); }
.ms .chr-fig {
  background: transparent; border: 1px solid var(--rule);
  padding: 0; max-width: 560px;
}
.ms .chr-fig img { width: 100%; height: auto; display: block; }
.chr-cap {
  margin-top: 0; padding: clamp(0.6rem, 1.4vw, 0.85rem) clamp(0.5rem, 1.4vw, 0.8rem);
  border-top: 1px solid var(--rule);
  font-size: 12px; line-height: 1.7; color: var(--ink-40);
}

@media (max-width: 640px) {
  .ms-y b { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-r::after, .ms-y b { transition: none; }
}
/* Below the wide layout the branch card fills the column, so the absolutely
   placed "اكتشف فروعنا" button would sit on top of it. It wraps under the
   card instead (the inline position is overridden, hence !important). */
@media (max-width: 999px) {
  .hero-branch { flex-direction: column; align-items: center; }
  .hero-branch .bx-cta { position: static !important; inset: auto !important; align-self: center; margin-bottom: 1.4rem; }
}

