/* بداية أفناد: V1 مروحة ألوان الفينيل */

@font-face { font-family: "Alexandria"; src: url("fonts/alexandria-ar.woff2") format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Alexandria"; src: url("fonts/alexandria-lat.woff2") format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex Pro"; src: url("fonts/readex-ar.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; src: url("fonts/readex-lat.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@property --fold { syntax: "<number>"; inherits: true; initial-value: 1; }

:root {
  --ground: #F4F5F3;
  --ground-2: #E7E9E5;
  --paper: #FFFFFF;
  --ink: #121316;
  --ink-2: #4A4F57;
  --rule: #D2D5D0;

  --red: #C8102E;
  --silver: #A3A8AD;
  --yellow: #F5C400;
  --orange: #E8611A;
  --azure: #0A78BE;
  --blue: #1B3C8E;
  --green: #0B7A45;
  --black: #1D1E22;
  --wa: #0F7A41;

  --shadow-1: 0 1px 0 rgb(18 19 22 / .07), 0 10px 20px -12px rgb(18 19 22 / .38);
  --shadow-2: 0 2px 0 rgb(18 19 22 / .08), 0 26px 40px -18px rgb(18 19 22 / .55);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);

  --r-strip: 10px;
  --r-ctl: 8px;

  --font-d: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --font-b: "Readex Pro", "Segoe UI", Tahoma, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --header: 76px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #131417;
    --ground-2: #1C1E22;
    --paper: #202227;
    --ink: #F1F2EF;
    --ink-2: #AEB3BA;
    --rule: #34373D;
    --black: #2B2D33;
    --shadow-1: 0 1px 0 rgb(0 0 0 / .4), 0 10px 22px -12px rgb(0 0 0 / .8);
    --shadow-2: 0 2px 0 rgb(0 0 0 / .4), 0 26px 44px -18px rgb(0 0 0 / .9);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 1.0625rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-d); letter-spacing: normal; line-height: 1.32; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

::selection { background: var(--yellow); color: #121316; }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--ink-2) var(--ground-2); }
input, textarea { caret-color: var(--red); }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-ctl);
  font-family: var(--font-d); font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--ground); }
.btn-line { box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: var(--wa); color: #fff; }
  .btn-line:hover { background: var(--ink); color: var(--ground); }
}

.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 0 24px; border-radius: var(--r-ctl);
  background: var(--c, var(--ink)); color: var(--t, var(--ground));
  font-family: var(--font-d); font-weight: 700; font-size: 1.125rem; white-space: nowrap;
  box-shadow: 0 1px 0 rgb(18 19 22 / .12), 0 12px 22px -14px rgb(18 19 22 / .6);
  transition: transform 160ms var(--ease-out), background-color 420ms var(--ease-out), color 420ms var(--ease-out);
}
.wa-btn .ic { width: 1.45em; height: 1.45em; }
.wa-btn:active { transform: scale(.97); }

/* ── Header ────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--header);
  transition: background-color 240ms ease, box-shadow 240ms ease;
}
.top.is-stuck { background: color-mix(in srgb, var(--ground) 94%, transparent); box-shadow: 0 1px 0 var(--rule); }
@supports (animation-timeline: scroll()) {
  .top { animation: stuck linear both; animation-timeline: scroll(root); animation-range: 0 90px; }
  @keyframes stuck { to { background-color: color-mix(in srgb, var(--ground) 94%, transparent); box-shadow: 0 1px 0 var(--rule); } }
}
.top-in { height: 100%; width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: grid; line-height: 1.2; }
.brand-text b { font-family: var(--font-d); font-weight: 800; font-size: 1.3rem; }
.brand-text small { font-size: .78rem; color: var(--ink-2); font-weight: 500; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a {
  padding: 8px 14px; border-radius: var(--r-ctl); font-family: var(--font-d); font-weight: 500; font-size: .98rem;
  transition: background-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--ground-2); } }
.top-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: var(--r-ctl); align-items: center; justify-content: center; }
.menu-btn .ic { width: 26px; height: 26px; }

/* ── Hero ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: max(660px, calc(100svh - var(--header)));
  margin-top: calc(var(--header) * -1);
  overflow: clip;
  view-timeline-name: --hero;
}
.hero-copy {
  position: relative; z-index: 3;
  width: min(640px, 46vw);
  margin-inline-start: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter)));
  padding-block: calc(var(--header) + clamp(48px, 9vh, 104px)) 56px;
}
.hero h1 { font-weight: 800; font-size: clamp(2.3rem, 3.9vw, 3.6rem); line-height: 1.28; }
.lede { margin-top: 20px; font-size: clamp(1.02rem, 1.25vw, 1.2rem); color: var(--ink-2); max-width: 44ch; }

/* The order slip: the white tab of a strip */
.slip {
  --c: var(--red); --t: #fff;
  margin-top: clamp(24px, 4vh, 40px);
  background: var(--paper);
  border-radius: var(--r-strip);
  box-shadow: var(--shadow-1);
  padding: 14px;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px 16px;
  align-items: center;
  max-width: 500px;
}
.slip-thumb {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: 6px; overflow: hidden;
  background: var(--c); transition: background-color 420ms var(--ease-out);
}
.slip-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity 260ms ease, filter 260ms ease, transform 420ms var(--ease-out); }
.slip-thumb img.is-swapping { opacity: 0; filter: blur(6px); transform: scale(1.04); }
.slip-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--t); }
.slip-ph svg { height: 76%; fill: none; stroke: currentColor; stroke-width: 2.5; }
.slip-ph[hidden] { display: none; }
.slip-info { display: grid; gap: 2px; min-width: 0; }
.slip-name {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-d); font-weight: 800; font-size: 1.45rem; line-height: 1.35;
}
.slip-name::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; transition: background-color 420ms var(--ease-out); box-shadow: inset 0 0 0 1px rgb(18 19 22 / .12); }
.slip-sub { font-size: .95rem; }
.slip-note { font-size: .82rem; color: var(--ink-2); }
.slip .wa-btn { grid-column: 1 / -1; }

/* ── The fan ───────────────────────────────── */
.fan-stage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fan {
  --L: min(72svh, 43vw);
  --W: clamp(58px, 6.2vw, 100px);
  position: absolute;
  left: max(3.5vw, 36px);
  bottom: 8svh;
  width: 0; height: 0;
}
.blade {
  position: absolute;
  width: var(--W); height: var(--L);
  left: calc(var(--W) / -2);
  bottom: calc(var(--W) / -2);
  transform-origin: 50% calc(100% - var(--W) / 2);
  rotate: calc(var(--a) * 1deg * var(--fold));
  z-index: var(--z);
  pointer-events: auto;
  border-radius: var(--r-strip);
  -webkit-tap-highlight-color: transparent;
}
.blade:focus-visible { outline: none; }
.blade-swing { position: absolute; inset: 0; transform-origin: 50% calc(100% - var(--W) / 2); }
.strip {
  position: absolute; inset: 0;
  border-radius: var(--r-strip);
  background: var(--c);
  color: var(--t);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 520ms var(--ease-out), box-shadow 520ms var(--ease-out);
}
.blade-silver .strip {
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .09) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #858B91 0%, #D5D8DB 38%, #B4B9BE 55%, #E2E4E6 70%, #8C9298 100%);
}
/* white base zone near the rivet */
.base {
  position: absolute; inset-inline: 0; bottom: 0;
  height: calc(var(--W) * 1.75);
  background: #FFFFFF; color: #121316;
}
/* gloss sheen: the selected strip changes its own material */
.strip::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 28%, rgb(255 255 255 / .34) 44%, rgb(255 255 255 / .05) 52%, transparent 62%);
  opacity: 0; transition: opacity 420ms ease;
  pointer-events: none;
}
.label {
  position: absolute; left: 50%; top: calc(var(--W) * .34);
  width: max-content;
  transform-origin: 0 0;
  transform: rotate(-90deg) translate(-100%, -50%);
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(14px, 1.32vw, 21px);
  line-height: 1.2;
  white-space: nowrap;
}
.code {
  position: absolute; left: 50%;
  bottom: calc(var(--W) * 1.12);
  transform: translateX(-50%) rotate(-90deg);
  font-family: var(--font-d); font-weight: 600; font-size: clamp(11px, .85vw, 14px);
  color: #121316; direction: ltr; z-index: 1;
}
.hole {
  position: absolute; left: 50%; bottom: calc(var(--W) / 2);
  width: 20px; height: 20px; transform: translate(-50%, 50%);
  border-radius: 50%; background: var(--ground-2);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / .35);
}
.blade[aria-checked="true"] { z-index: 20; }
.blade[aria-checked="true"] .strip { transform: translateY(calc(var(--W) * -.46)); box-shadow: var(--shadow-2); }
.blade[aria-checked="true"] .strip::after { opacity: 1; }
.blade:focus-visible .strip { box-shadow: var(--shadow-2), 0 0 0 3px var(--ground), 0 0 0 6px var(--azure); }
@media (hover: hover) and (pointer: fine) {
  .blade[aria-checked="false"]:hover .strip { transform: translateY(calc(var(--W) * -.18)); }
}
.rivet {
  position: absolute; left: -16px; bottom: -16px; width: 32px; height: 32px; z-index: 30;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFFFFF 0 10%, #D3D6D9 26%, #8A9096 66%, #555A60 100%);
  box-shadow: 0 3px 7px rgb(0 0 0 / .35), inset 0 -1px 2px rgb(0 0 0 / .45);
}
.rivet::after { content: ""; position: absolute; left: 7px; right: 7px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: #5D6268; rotate: -35deg; box-shadow: 0 1px 0 rgb(255 255 255 / .5); }

/* fan folds as the hero leaves */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fan { animation: fold linear both; animation-timeline: --hero; animation-range: exit 0% exit 90%; }
    @keyframes fold { to { --fold: .08; } }
  }
}

/* ── Sections shared ───────────────────────── */
section { position: relative; }
.sec-title { font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 3.1rem); max-width: 22ch; }

/* ── Groups: strips laid flat ──────────────── */
.groups { padding-block: clamp(80px, 12vw, 152px) clamp(48px, 7vw, 96px); }
.groups-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 48px; }
/* a mini deck of the three sections: jump straight to one */
.deck-index { position: relative; display: flex; gap: 10px; padding-bottom: 6px; }
.deck-index a {
  position: relative; display: grid; align-content: end; gap: 2px;
  width: clamp(150px, 13vw, 190px); min-height: 132px;
  padding: 14px 14px 14px 14px; padding-top: 40px;
  border-radius: var(--r-strip);
  background: var(--c); color: var(--t);
  box-shadow: var(--shadow-1);
  rotate: var(--r); transform-origin: 50% 100%;
  transition: translate 360ms var(--ease-out), box-shadow 360ms var(--ease-out);
}
.deck-index a .hole { position: absolute; top: 12px; inset-inline-start: 12px; left: auto; bottom: auto; transform: none; width: 14px; height: 14px; }
.deck-index b { font-family: var(--font-d); font-weight: 800; font-size: 1.06rem; line-height: 1.35; }
.deck-index small { font-size: .78rem; line-height: 1.5; opacity: .9; }
@media (hover: hover) and (pointer: fine) {
  .deck-index a:hover { translate: 0 -10px; box-shadow: var(--shadow-2); }
}
.deck-index a:active { translate: 0 -4px; }

.bands { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: clamp(16px, 1.8vw, 24px); }
.band {
  display: grid;
  grid-template-columns: clamp(64px, 6vw, 88px) minmax(0, 1fr) minmax(0, 42%);
  min-height: clamp(400px, 34vw, 480px);
  background: var(--c); color: var(--t);
  border-radius: var(--r-strip);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.band-tab { position: relative; background: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding-block: 22px; }
.band-tab .hole { position: relative; left: auto; bottom: auto; transform: none; }
.band-code { font-family: var(--font-d); font-weight: 600; font-size: .9rem; color: #121316; direction: ltr; writing-mode: vertical-rl; rotate: 180deg; }
.band-body { padding: clamp(26px, 3.2vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
.band-name { font-weight: 900; font-size: clamp(2.3rem, 4.8vw, 4.5rem); line-height: 1.18; }
.band-desc { font-size: clamp(1rem, 1.15vw, 1.12rem); max-width: 42ch; opacity: .94; }
.band-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pick {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: var(--r-ctl);
  box-shadow: inset 0 0 0 1.5px currentColor;
  font-family: var(--font-d); font-weight: 600; font-size: 1rem;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.pick[aria-pressed="true"] { background: var(--t); color: var(--c); box-shadow: 0 8px 16px -10px rgb(18 19 22 / .6); }
.pick:active { transform: scale(.97); }
.pick:focus-visible { outline: 3px solid var(--t); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .pick[aria-pressed="false"]:hover { box-shadow: inset 0 0 0 2.5px currentColor; }
}
.band-cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
  min-height: 54px; padding: 0 24px; border-radius: var(--r-ctl);
  background: #121316; color: #FFFFFF;
  font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; white-space: nowrap;
  box-shadow: 0 12px 22px -14px rgb(0 0 0 / .7);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.band-cta .ic { width: 1.4em; height: 1.4em; }
.band-cta:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .band-cta:hover { background: var(--wa); } }
.band-photo { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; padding: 14px; padding-inline-start: 0; }
.band-window { position: relative; min-height: 260px; border-radius: 6px; overflow: hidden; background: rgb(0 0 0 / .14); }
.band-window img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 280ms ease, filter 280ms ease, transform 520ms var(--ease-out);
}
.band-window img.is-swapping { opacity: 0; filter: blur(8px); transform: scale(1.04); }
.band-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; padding: 20px; text-align: center; }
.band-ph[hidden] { display: none; }
.band-ph svg { height: 46%; fill: none; stroke: currentColor; stroke-width: 2.2; }
.band-ph span { font-size: .92rem; max-width: 24ch; }
.band-photo figcaption { font-size: .86rem; opacity: .92; padding-inline: 2px; }

/* the strip slides the last bit out of the deck as it arrives; content is never hidden */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band { animation: bandOut linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes bandOut { from { clip-path: inset(0 0 0 14% round var(--r-strip)); translate: -2.5% 0; } to { clip-path: inset(0 0 0 0 round var(--r-strip)); translate: 0 0; } }
  }
}

/* ── Work: strict panel grid with one splash ─ */
.work { padding-block: clamp(56px, 8vw, 112px); }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--r-ctl);
  font-family: var(--font-d); font-weight: 600; font-size: .95rem;
  box-shadow: inset 0 0 0 1.5px var(--rule);
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 160ms var(--ease-out);
}
.filter[data-f]:not([data-f="all"])::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--ground); box-shadow: none; }
.filter:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .filter[aria-pressed="false"]:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }

.panels {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 250px);
  grid-auto-flow: dense;
  gap: clamp(8px, 1vw, 14px);
}
.panel { grid-column: span 4; grid-row: span 1; }
.panel.tall { grid-row: span 2; }
.panel.splash { grid-column: span 8; grid-row: span 2; }
.panel[hidden] { display: none; }
.panel button { position: relative; display: block; width: 100%; height: 100%; border-radius: 6px; overflow: hidden; background: var(--ground-2); }
.panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out), filter 300ms ease; }
@media (hover: hover) and (pointer: fine) { .panel button:hover img { transform: scale(1.035); } }
.panel button:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; }
.work-more { margin-top: 28px; display: flex; justify-content: center; }

/* ── Materials: chips on a ring ────────────── */
.materials { padding-block: clamp(56px, 8vw, 112px); background: var(--ground-2); overflow-x: clip; }
.mat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.mat-lede { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; }
.mat-detail { margin-top: clamp(28px, 4vw, 44px); padding-top: 24px; box-shadow: 0 -1.5px 0 var(--rule); min-height: 210px; }
.mat-detail h3 { font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.mat-detail p { margin-top: 8px; max-width: 46ch; }
.mat-fit { color: var(--ink-2); }
.mat-fit b { color: var(--ink); font-weight: 600; }
.ring { position: relative; height: clamp(360px, 38vw, 480px); }
.ring-loop {
  position: absolute; left: 50%; top: 14px; width: 46px; height: 46px; margin-left: -23px; z-index: 10;
  border-radius: 50%; border: 6px solid #9AA0A6;
  box-shadow: 0 2px 4px rgb(0 0 0 / .25), inset 0 1px 0 rgb(255 255 255 / .6);
}
.chip {
  --rot: 0deg;
  position: absolute; left: 50%; top: 24px;
  width: clamp(170px, 16vw, 220px); height: clamp(280px, 28vw, 380px);
  margin-left: calc(clamp(170px, 16vw, 220px) / -2);
  transform-origin: 50% 13px;
  rotate: calc(var(--rot) * var(--spread, 1));
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  transition: rotate 620ms var(--ease-out), box-shadow 420ms ease, translate 620ms var(--ease-out);
  overflow: hidden;
  text-align: start;
}
.chip-hole { position: absolute; left: 50%; top: 12px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--ground-2); box-shadow: inset 0 1px 3px rgb(0 0 0 / .4); }
.chip-name {
  position: absolute; inset-inline: 0; bottom: 0; padding: 14px 18px; text-align: start;
  font-family: var(--font-d); font-weight: 800; font-size: 1.35rem;
  background: rgb(255 255 255 / .92); color: #121316;
}
.chip-steel { background: #6E6A62 url("img/mat-steel.webp") center top / cover no-repeat; }
.chip-zinc { background: #3D4045; }
.chip-zinc::before { content: "بيتدهن بأي لون"; position: absolute; inset-inline: 18px; top: 46px; color: #E7E8EA; font-size: .86rem; line-height: 1.6; }
.chip-acrylic { background: #23262A url("img/mat-acrylic.webp") center / cover no-repeat; }
.chip[data-k="steel"] { --rot: 0deg; }
.chip[data-k="zinc"] { --rot: -20deg; }
.chip[data-k="acrylic"] { --rot: 20deg; }
.chip[data-side="end"] .chip-name { text-align: end; }
.chip[aria-pressed="true"] { z-index: 5; box-shadow: var(--shadow-2); translate: 0 -10px; }
.chip[aria-pressed="false"] { z-index: 1; }
.chip:focus-visible { outline: 3px solid var(--azure); outline-offset: 4px; }

/* ── Process: one strip run ────────────────── */
.process { padding-block: clamp(56px, 8vw, 112px); }
.run { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--r-strip); overflow: hidden; box-shadow: var(--shadow-1); }
.run li { background: var(--c); color: var(--t); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 6px; align-content: start; min-height: 190px; position: relative; }
.run li + li { box-shadow: inset -1px 0 0 rgb(18 19 22 / .14); }
.run b { font-family: var(--font-d); font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.25; }
.run span { font-size: 1.02rem; }

/* ── Close ─────────────────────────────────── */
.close { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 9vw, 120px); }
.close-strip {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px;
  background: #17181B; color: #F4F5F3;
  border-radius: var(--r-strip);
  padding: clamp(28px, 4.6vw, 64px);
  overflow: hidden;
  position: relative;
}
@media (prefers-color-scheme: dark) { .close-strip { background: #F4F5F3; color: #121316; } }
.close-copy { display: grid; gap: 18px; justify-items: start; order: -1; }
.close-copy h2 { font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 3.2rem); max-width: 18ch; }
.close-num { font-family: var(--font-d); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; }
@media (hover: hover) and (pointer: fine) { .close-num:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; } }
.wa-btn-light { --c: var(--yellow); --t: #121316; }
.close-fan { position: relative; width: clamp(150px, 18vw, 240px); height: clamp(170px, 20vw, 260px); }
.close-fan span {
  position: absolute; left: 22%; bottom: 8%; width: 22%; height: 86%;
  transform-origin: 50% 92%; rotate: calc(var(--a) * 1deg);
  background: var(--c); border-radius: 8px; box-shadow: 0 10px 20px -12px rgb(0 0 0 / .6);
}
.close-fan i { position: absolute; left: calc(22% + 11% - 9px); bottom: calc(8% + 86% * .08 - 9px); width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #8A9096 70%); }

/* ── Footer ────────────────────────────────── */
.foot { padding-block: 40px calc(40px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--rule); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.foot-brand { display: grid; line-height: 1.3; }
.foot-brand b { font-family: var(--font-d); font-weight: 800; font-size: 1.2rem; }
.foot-brand span { color: var(--ink-2); font-size: .85rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .95rem; }
@media (hover: hover) and (pointer: fine) { .foot-nav a:hover { text-decoration: underline; text-underline-offset: 5px; } }
.foot-legal { color: var(--ink-2); font-size: .88rem; }
.foot-legal a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule); }

/* ── Mobile dock ───────────────────────────── */
.dock {
  position: fixed; z-index: 50; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; border-radius: 12px;
  background: var(--wa); color: #fff;
  font-family: var(--font-d); font-weight: 700; font-size: 1.08rem;
  box-shadow: 0 14px 30px -12px rgb(0 0 0 / .55);
  transform: translateY(140%); transition: transform 360ms var(--ease-out);
}
.dock .ic { width: 1.5em; height: 1.5em; }
.dock.is-on { transform: none; }

/* ── Lightbox ──────────────────────────────── */
.lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(10 11 13 / .94); color: #F4F5F3;
}
.lb[open] { display: grid; place-items: center; animation: lbIn 260ms var(--ease-out); }
.lb::backdrop { background: transparent; }
@keyframes lbIn { from { opacity: 0; } }
.lb-frame { display: grid; gap: 12px; justify-items: center; padding: 72px 72px 24px; max-width: 100%; }
.lb-frame img { max-height: calc(100dvh - 160px); width: auto; max-width: min(1280px, 100%); object-fit: contain; border-radius: 6px; animation: lbImg 320ms var(--ease-out); }
@keyframes lbImg { from { opacity: 0; transform: scale(.97); } }
.lb-cap { font-family: var(--font-d); font-weight: 500; text-align: center; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .1); color: #fff; transition: background-color 180ms ease, transform 160ms var(--ease-out); }
.lb-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgb(255 255 255 / .22); } }
.lb-btn .ic { width: 24px; height: 24px; }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev { top: 50%; margin-top: -26px; inset-inline-start: 16px; }
.lb-next { top: 50%; margin-top: -26px; inset-inline-end: 16px; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 1100px) {
  .nav a { padding: 8px 10px; font-size: .92rem; }
}
@media (max-width: 980px) {
  .nav {
    position: absolute; top: calc(var(--header) - 6px); inset-inline: var(--gutter);
    display: grid; gap: 2px; padding: 8px;
    background: var(--paper); border-radius: var(--r-strip); box-shadow: var(--shadow-2);
    opacity: 0; translate: 0 -8px; pointer-events: none; visibility: hidden;
    transition: opacity 200ms ease, translate 260ms var(--ease-out), visibility 0s 260ms;
  }
  .nav.is-open { opacity: 1; translate: 0 0; pointer-events: auto; visibility: visible; transition: opacity 200ms ease, translate 260ms var(--ease-out); }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .menu-btn { display: inline-flex; }
  .top-actions { margin-inline-start: auto; }

  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { width: auto; margin-inline: var(--gutter); padding-block: calc(var(--header) + 20px) 0; display: contents; }
  .hero h1, .lede { margin-inline: var(--gutter); }
  .hero h1 { padding-top: calc(var(--header) + 18px); font-size: clamp(2rem, 7.4vw, 3rem); }
  .lede { margin-top: 12px; }
  .fan-stage { --H: min(46svh, 96vw); position: relative; inset: auto; order: 3; height: var(--H); min-height: 300px; }
  .fan { --L: calc(var(--H) - 74px); --W: clamp(46px, 11.4vw, 70px); left: max(5vw, 22px, calc(50vw - var(--L) * .52)); bottom: 34px; }
  .label { font-size: clamp(13px, 3.4vw, 17px); }
  .slip { order: 4; margin: 0 var(--gutter) 40px; max-width: none; }
  .groups-head { grid-template-columns: 1fr; }
  .deck-index { width: 100%; }
  .deck-index a { flex: 1; width: auto; min-height: 112px; }
  .band { grid-template-columns: 1fr; min-height: 0; }
  .band-tab { flex-direction: row; padding: 0 16px; height: 44px; }
  .band-code { writing-mode: horizontal-tb; rotate: none; }
  .band-body { padding: 22px 18px 18px; }
  .band-photo { padding: 0 12px 12px; }
  .band-window { min-height: 0; aspect-ratio: 4 / 3; }
  .band-cta { width: 100%; justify-content: center; }
  .mat-grid { grid-template-columns: 1fr; }
  .ring { order: -1; height: 400px; }
  .run { grid-template-columns: 1fr 1fr; }
  .run li + li { box-shadow: none; }
  .close-strip { grid-template-columns: 1fr; }
  .close-fan { display: none; }
  .dock { display: flex; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .btn-ink .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .btn-ink { width: 48px; padding: 0; }
  .deck-index { gap: 8px; }
  .deck-index a { min-height: 92px; padding: 34px 10px 10px; --r: 0deg !important; }
  .deck-index small { display: none; }
  .deck-index b { font-size: .92rem; }
  .btn-ink .ic { width: 24px; height: 24px; }
  .brand-mark { width: 34px; height: 34px; }
  .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
  .panel, .panel.tall { grid-column: span 1; grid-row: span 1; }
  .panel.tall { grid-row: span 2; }
  .panel.splash { grid-column: span 2; grid-row: span 1; }
  .run { grid-template-columns: 1fr; }
  .run li { min-height: 0; }
  .slip { grid-template-columns: 88px 1fr; }
  .ring { --spread: 1.4; }
  .chip[data-side="end"] .chip-name, .chip[aria-pressed="false"] .chip-name { font-size: 1.12rem; }
  .slip-name { font-size: 1.25rem; }
  .lb-frame { padding: 64px 12px 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
