/* ==========================================================================
   إلهام — فنّ النحاس والفسيفساء
   One page, RTL. Structure of this file:
   1  tokens & base        2  type            3  buttons/controls
   4  header & menus       5  hero            5b listen
   6  story                7  statement       8  with her works
   9  collection           10 the two crafts  11 commission
   13 footer               14 dialogs         15 ribbon & mosaic
   16 display settings (high contrast, text size, still)  17 responsive
   ========================================================================== */

/* ───────── 1 · tokens & base ───────── */
/* The site is a gallery at night: --cream is the ground and --navy the ink, so here they are dark and light.
   .light (the commission section), and .statement, .footer, .mnav put the brand's own values back for their content. */
:root {
  --cream: #0B0807;
  --cream-2: #14100D;
  --navy: #F3E9DC;
  --navy-deep: #060403;
  --copper: #BF653E;
  --copper-ink: #E8A27A;          /* copper lifted to pass AA for small text on the dark ground */
  --teal: #6F8786;
  --sand: #1A1411;
  --ink: #E9DECF;
  --ink-soft: #C2B4A5;
  --grad-copper: linear-gradient(100deg, #995635 0%, #ED9868 50%, #995635 100%);
  --grad-copper-text: linear-gradient(100deg, #E58C5C 0%, #F9D3B2 46%, #E58C5C 100%);
  --f-ar: "Tajawal", "Segoe UI", system-ui, sans-serif;
  --f-lat: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --gut: clamp(20px, 5.4vw, 92px);
  --hdr-h: 78px;
  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
}

.light {
  --cream: #F8F3EB; --cream-2: #F1E9DC; --navy: #1C3B4A; --navy-deep: #142B37; --copper-ink: #9A4B2A;
  --sand: #DCC5AD; --ink: #1C3B4A; --ink-soft: #3F5C6A; color: var(--ink);
}
.statement, .footer, .mnav { --cream: #F8F3EB; --navy: #0E0A08; --navy-deep: #060403; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 8px); -webkit-text-size-adjust: 100%; }
html.fs-1 { font-size: 112.5%; }
html.fs-2 { font-size: 125%; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--f-ar); font-weight: 400; font-size: 1.0625rem; line-height: 1.95;
  color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .3em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--copper); color: #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 10000; top: 10px; inset-inline-start: 10px; transform: translateY(-200%); background: var(--navy); color: var(--cream); padding: .8rem 1.4rem; border-radius: 4px; font-weight: 700; }
.skip:focus { transform: none; outline-color: #ED9868; }

.wrap { position: relative; z-index: 2; width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gut); }
.page { position: relative; overflow-x: clip; }

/* ───────── 2 · type ───────── */
.lat { font-family: var(--f-lat); direction: ltr; unicode-bidi: isolate; font-feature-settings: "lnum" 1; }
.label {
  font-family: var(--f-lat); font-weight: 600; font-size: .8125rem; line-height: 1.4;
  letter-spacing: .34em; text-transform: uppercase; color: var(--copper-ink); direction: ltr; text-align: start;
  display: flex; align-items: center; gap: .9rem;
}
.label::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; flex: none; }
[dir="rtl"] .label { justify-content: flex-end; flex-direction: row-reverse; }
/* Arabic must never be letter-spaced: only .lat / .label carry tracking. */
.h-xl, .h-lg, .h-md { font-weight: 700; color: var(--navy); line-height: 1.16; }
.h-xl { font-size: clamp(3.2rem, 8.4vw, 8.4rem); }
.h-lg { font-size: clamp(2.8rem, 6vw, 6rem); }
.h-md { font-size: clamp(2.2rem, 4.2vw, 4.2rem); line-height: 1.25; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.95; color: var(--ink-soft); max-width: 36rem; }
/* no lonely last words: headings, leads and captions are balanced, running text is "pretty" */
p, li, dd { text-wrap: pretty; }
h1, h2, h3, h4, .lead, .story__lead, figcaption, .gallery__note p, .hero__sub, .statement__text, .path__txt p { text-wrap: balance; }

/* word-reveal helpers (Arabic is split by WORDS only — never letters) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em 0 .3em; margin: -.16em 0 -.3em; }
.wi { display: inline-block; will-change: transform; }

/* ───────── 3 · buttons & controls ───────── */
.ic { width: 1.35em; height: 1.35em; flex: none; }
.ic--dir { transition: transform .5s var(--ease-out); }
a:hover > .ic--dir, button:hover > .ic--dir, .btn:hover .ic--dir { transform: translateX(-5px); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 52px; padding: .8rem 1.9rem; border-radius: 3px;
  font-weight: 700; font-size: 1.02rem; line-height: 1.3; text-decoration: none; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out), background-color .45s var(--ease-out), border-color .45s;
}
.btn::after {                                 /* travelling copper sheen */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(120%) skewX(-18deg);
  background: linear-gradient(100deg, transparent 20%, rgba(255, 214, 176, .42) 50%, transparent 80%);
  transition: transform .9s var(--ease-out);
}
.btn:hover::after { transform: translateX(-120%) skewX(-18deg); }
.btn--solid { background: var(--navy); color: var(--cream); }
.btn--line { border: 1.5px solid var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--cream); }
.btn--sm { min-height: 44px; padding: .5rem 1.2rem; font-size: .95rem; }
.btn--lg { min-height: 60px; padding: 1rem 2.4rem; font-size: 1.12rem; }
.footer .btn--solid { background: var(--cream); color: var(--navy); }
.btn--solid:hover { background: #ED9868; color: #0B0807; }
.light .btn--solid:hover { background: var(--copper-ink); color: var(--cream); }

.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(243, 233, 220, .3); color: var(--navy);
  transition: background-color .35s, color .35s, border-color .35s;
}
.iconbtn:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.iconbtn .ic { width: 22px; height: 22px; }

/* ───────── 4 · header, menus, preloader ───────── */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color .5s, box-shadow .5s, transform .6s var(--ease-out); }
.hdr__bar { height: var(--hdr-h); padding-inline: var(--gut); display: flex; align-items: center; gap: 2rem; }
.hdr.is-solid { background: rgba(11, 8, 7, .78); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1px 0 rgba(243, 233, 220, .1); }
.hdr.is-hidden { transform: translateY(-101%); }
.hdr__logo { display: block; opacity: 0; visibility: hidden; transition: opacity .5s; }
.hdr.show-logo .hdr__logo { opacity: 1; visibility: visible; }
.logo-crop { position: relative; display: block; overflow: hidden; }
.logo-crop > img { position: absolute; left: 0; top: 0; max-width: none; width: 131.707%; height: auto; transform: translate(-12.037%, -17.130%); }
.logo-crop--mark { height: 50px; aspect-ratio: 820 / 550; }
.logo-crop--full { width: 100%; aspect-ratio: 820 / 560; }      /* name only (إلهام + ELHAM): the tagline lines below are cropped out */

.hdr__nav { position: relative; margin-inline: auto; }
.hdr__nav ul { display: flex; gap: clamp(1.4rem, 3vw, 3.2rem); }
.hdr__nav a { display: block; min-width: 44px; text-align: center; padding: .55rem .2rem; font-weight: 500; font-size: 1rem; text-decoration: none; color: var(--navy); position: relative; }
.hdr__nav a::after { content: ""; position: absolute; inset-inline: .2rem; bottom: .2rem; height: 1.5px; background: var(--grad-copper); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.hdr__nav a:hover::after, .hdr__nav a[aria-current="true"]::after { transform: scaleX(1); }
.hdr__mark { position: absolute; top: calc(100% + 1px); right: 0; width: 7px; height: 7px; margin: -2px 0 0 -3.5px; background: var(--copper); transform: rotate(45deg); opacity: 0; transition: opacity .4s; }
.hdr__actions { display: flex; align-items: center; gap: .7rem; margin-inline-start: 0; }
.hdr__burger { display: none; }

.preloader { display: none; position: fixed; inset: 0; z-index: 9999; background: var(--cream); place-items: center; align-content: center; gap: 1.6rem; }
.has-preloader .preloader { display: grid; }
.preloader__tile { position: relative; width: 216px; height: 216px; }
.preloader__sweep { position: fixed; inset: 0; z-index: 10000; pointer-events: none; overflow: hidden; }
.preloader__tile svg { width: 100%; height: 100%; overflow: visible; }
.preloader__word { font-weight: 500; font-size: .9rem; letter-spacing: .5em; color: var(--navy); margin: 0; padding-inline-start: .5em; }

.mnav { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--cream); overflow: hidden; }
.mnav::backdrop { background: transparent; }
.mnav__solid { position: absolute; inset: 0; background: var(--navy-deep); }       /* grout under the tesserae once the wipe has covered the page */
.mnav__tiles { position: absolute; inset: 0; overflow: hidden; }
.mnav__tiles i { position: absolute; display: block; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); will-change: transform; }
.mnav__deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.mnav__bigtile { position: absolute; left: -36%; bottom: -16%; width: min(130vw, 780px); aspect-ratio: 1; }
.mnav__rib { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .34; overflow: visible; }
.mnav__logo { position: absolute; z-index: 3; top: 12px; inset-inline-start: var(--gut); height: 44px; }
.mnav__in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hdr-h) + 1rem) var(--gut) 3rem; gap: 2.4rem; overflow-y: auto; }
.mnav__close { position: absolute; z-index: 3; top: 17px; inset-inline-end: var(--gut); color: var(--cream); border-color: rgba(248, 243, 235, .4); }
.mnav__close:hover { background: var(--cream); color: var(--navy); }
.mnav__list a { display: flex; align-items: baseline; gap: 1.3rem; padding: .3rem 0; font-size: clamp(2.2rem, 9vw, 3.6rem); font-weight: 700; line-height: 1.25; text-decoration: none; color: var(--cream); }
.mnav__list a .lat { font-size: clamp(2rem, 8vw, 2.9rem); font-weight: 500; font-style: italic; line-height: 1; color: #ED9868; letter-spacing: .02em; min-width: 3.4rem; }
.mnav__cta { align-self: flex-start; }
.mnav .btn--solid { background: var(--cream); color: var(--navy); }
.mnav .btn--solid:hover { background: #ED9868; }
.mnav :focus-visible { outline-color: #ED9868; }

/* ───────── 5 · hero ───────── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; background: var(--cream); }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media > img { position: absolute; top: -3%; left: 0; height: 106%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 100%); mask-image: linear-gradient(to right, #000 72%, transparent 100%); }
.hero__veil { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11, 8, 7, .55) 0%, rgba(11, 8, 7, 0) 18%),
    linear-gradient(to left, var(--cream) 0%, var(--cream) 46%, rgba(11, 8, 7, .7) 58%, rgba(11, 8, 7, 0) 74%);
}
html:not(.hc) #lgWord, html:not(.hc) #lgLatin { fill: #F3E9DC; }
.hero__inner { padding-block: calc(var(--hdr-h) + 2vh) 7vh; display: flex; align-items: center; min-height: 100svh; }
.hero__col { width: min(46vw, 660px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__logo { width: min(100%, 580px); }
.hero__logo svg { width: 100%; height: auto; overflow: visible; }
.hero__tag { display: flex; align-items: center; justify-content: center; gap: 1.2rem; width: 100%; margin-top: 1.1rem; font-weight: 500; font-size: clamp(1.7rem, 2.8vw, 2.8rem); line-height: 1.3; color: var(--navy); }
.hero__rule { flex: 1; max-width: 96px; height: 2px; background: var(--grad-copper); }
.hero__sub { margin-top: .8rem; font-size: clamp(1.25rem, 1.8vw, 1.7rem); font-weight: 500; color: #F2B58C; line-height: 1.8; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.1rem; }

.hero__scroll { position: absolute; z-index: 3; bottom: 18px; inset-inline-start: var(--gut); width: min(46vw, 660px); display: flex; flex-direction: column; align-items: center; gap: .55rem; text-decoration: none; color: var(--navy); }
.hero__scroll .lat { font-weight: 600; font-size: .75rem; letter-spacing: .5em; padding-inline-start: .5em; }
.hero__scroll i { display: block; width: 1px; height: 38px; background: rgba(243, 233, 220, .25); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--copper); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ───────── 5b · listen ───────── */
.listen { position: relative; z-index: 3; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; background: #0B0807; color: #F8F3EB; }
.listen__plate { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s; }
.listen.is-ready .listen__plate { opacity: 1; }
.listen.no-gl { background: #0B0807 url("../assets/voice/plate.webp") center / cover no-repeat; }
.listen__foot { position: absolute; z-index: 2; inset-inline: 0; bottom: clamp(1.2rem, 4.5vh, 2.6rem); padding-inline: var(--gut); display: grid; justify-items: center; gap: clamp(.7rem, 2vh, 1.2rem); text-align: center; }
.listen__intro { display: grid; gap: .25rem; transition: opacity .6s, visibility .6s; }
.listen.is-playing .listen__intro { opacity: 0; visibility: hidden; }
.listen__title { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 700; line-height: 1.2; color: #F8F3EB; }
.listen__intro p { font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.7; color: rgba(248, 243, 235, .82); }
.listen__play { min-width: 13rem; background: #F3E9DC; color: #0B0807; }
.listen__play[hidden] { display: none; }
.listen__btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .7rem; }
.listen__stop { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem 1.3rem; border-radius: 3px; background: rgba(243, 233, 220, .14); color: #F3E9DC; font-weight: 500; font-size: .98rem; transition: background-color .3s, color .3s; }
.listen__stop:hover { background: #F3E9DC; color: #0B0807; }
.listen__stop[hidden] { display: none; }
.listen__stop .ic { width: 18px; height: 18px; }
.listen__words { position: absolute; z-index: 2; inset-inline: var(--gut); bottom: clamp(5rem, 13vh, 8rem); min-height: 3em; font-size: clamp(1.35rem, 2.5vw, 2.3rem); font-weight: 500; line-height: 1.55; text-align: center; color: #F8F3EB; text-shadow: 0 2px 22px rgba(0, 0, 0, .9); pointer-events: none; }
.listen__words p { position: absolute; inset-inline: 0; bottom: 0; visibility: hidden; text-wrap: balance; }
.listen__words span { opacity: .16; }

/* ───────── 6 · story ───────── */
.story { position: relative; padding-top: clamp(7rem, 17vh, 12rem); }
.story__head { display: grid; gap: 1.2rem; justify-items: start; }
.story__headtxt { display: grid; gap: 1.2rem; justify-items: start; }
@media (min-width: 900px) {
  .story__head { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: end; column-gap: clamp(3rem, 8vw, 9rem); }
  .story__head .story__lead { padding-bottom: 1.4rem; }
}
.story__lead { font-size: clamp(1.15rem, 1.7vw, 1.5rem); color: var(--ink-soft); max-width: 28rem; }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: clamp(3rem, 8vh, 6rem); padding-bottom: clamp(3rem, 8vh, 6rem); }
.story__media { display: none; }

.chapter { position: relative; display: grid; gap: 2rem; padding-block: clamp(2.5rem, 6vh, 4.5rem); }
.chapter__fig { overflow: hidden; background: var(--sand); aspect-ratio: 3 / 4; }
.chapter__fig img { width: 100%; height: 100%; object-fit: cover; }
.chapter__text { position: relative; z-index: 2; max-width: 31rem; }
.chapter__top { display: flex; align-items: flex-end; gap: 1.2rem; margin-bottom: .2rem; }
.chapter__num { font-weight: 600; font-size: clamp(5.5rem, 13vw, 11.5rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.3px var(--copper); letter-spacing: -.02em; user-select: none; }
.tilemark { width: 54px; height: 54px; flex: none; margin-bottom: .4rem; }
.tilemark svg, .bead svg, .value__tile svg { width: 100%; height: 100%; overflow: visible; }
.chapter h3 { margin-top: .5rem; font-size: clamp(2.3rem, 4.4vw, 4rem); font-weight: 700; line-height: 1.2; color: var(--navy); }
.chapter__quote { margin: 1.1rem 0 0; font-size: clamp(1.55rem, 2.5vw, 2.35rem); font-weight: 500; line-height: 1.6; color: #F2B58C; text-wrap: balance; }
.chapter__text > p:not(.label):not(.chapter__quote) { margin-top: 1rem; font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.95; color: var(--ink-soft); }

/* stacked (default / reduced motion / mobile) : the image sits beside the text */
@media (min-width: 900px) {
  .chapter { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; column-gap: clamp(3rem, 8vw, 9rem); }
  .chapter__fig { grid-column: 2; grid-row: 1; }
  .chapter__text { grid-column: 1; grid-row: 1; }
  .chapter:nth-child(even) .chapter__fig { grid-column: 1; }
  .chapter:nth-child(even) .chapter__text { grid-column: 2; }
}

/* pinned mode (desktop + motion): JS adds .is-pinned and hoists the figures into the sticky frame */
.story.is-pinned .story__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "text media"; column-gap: clamp(4rem, 9vw, 11rem); padding-bottom: 0; margin-top: 4vh; }
.story.is-pinned .story__chapters { grid-area: text; }
.story.is-pinned .story__media { grid-area: media; box-sizing: border-box; padding-top: 4.6rem; display: grid; align-content: center; justify-items: center; row-gap: 2.6rem; position: sticky; top: 0; height: 100svh; z-index: 3; }
.story.is-pinned .story__frame { position: relative; width: min(100%, 580px, calc(74svh * .75)); aspect-ratio: 3 / 4; }
.story.is-pinned .story__frame::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--copper); opacity: .7; pointer-events: none; }
.story.is-pinned .story__frame figure { position: absolute; inset: 0; background: var(--sand); overflow: hidden; }
.story.is-pinned .story__frame img { width: 100%; height: 100%; object-fit: cover; }
.story.is-pinned .chapter { display: flex; align-items: center; min-height: 100svh; padding-block: 0; }
.story.is-pinned .chapter .chapter__fig { display: none; }
.story__count { display: none; align-items: baseline; gap: .6rem; font-size: 1.1rem; color: var(--ink-soft); }
.story.is-pinned .story__count { display: flex; }
.story__count b { font-size: 1.8rem; font-weight: 600; color: var(--copper-ink); }
.story.is-pinned .chapter__num { opacity: .45; transition: opacity .7s var(--ease-out); }
.story.is-pinned .chapter.is-on .chapter__num { opacity: 1; }

/* ───────── 7 · statement ───────── */
.statement { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; background: var(--navy); color: var(--cream); padding-block: 16vh; }
.statement__bg img { filter: saturate(.9) contrast(1.05) brightness(.8); }
.statement__bg { position: absolute; inset: 0; z-index: 0; }
.statement__bg img { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; mix-blend-mode: soft-light; opacity: .7; filter: saturate(.85) contrast(1.05); }
.statement__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 46%, rgba(14, 10, 8, .42) 0%, rgba(11, 8, 7, .9) 78%), linear-gradient(to bottom, rgba(11, 8, 7, .9), rgba(11, 8, 7, 0) 30%); }
.statement__sheen { position: absolute; z-index: 1; inset: -30% -50%; background: linear-gradient(106deg, transparent 42%, rgba(237, 152, 104, .20) 50%, transparent 58%); mix-blend-mode: screen; animation: sheen 11s linear infinite; }
@keyframes sheen { from { transform: translateX(-35%); } to { transform: translateX(35%); } }
.statement__in { position: relative; z-index: 3; }
.statement__text { font-size: clamp(3rem, 7.6vw, 8rem); font-weight: 700; line-height: 1.3; max-width: 13em; margin-inline: auto; color: var(--cream); }
.statement__text .st-a { display: block; font-size: .46em; font-weight: 500; line-height: 1.7; color: rgba(248, 243, 235, .75); margin-bottom: .35em; }
.statement__text em { display: block; font-style: normal; color: #F2B58C; }
.statement__text em .wi { background: var(--grad-copper-text); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: shine 7s ease-in-out infinite alternate; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
.statement__en { margin-top: clamp(1.6rem, 4vh, 3rem); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.5rem); color: #F0D3BA; letter-spacing: .03em; }
.statement__en .chw { display: inline-block; white-space: nowrap; }
.statement__en .ch { display: inline-block; white-space: pre; }

/* ───────── 8 · with her works ───────── */
.with { position: relative; padding-block: clamp(5rem, 13vh, 10rem) clamp(3rem, 8vh, 6rem); }
.with__head { display: grid; gap: 1rem; justify-items: start; }
.with__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.8rem); row-gap: clamp(3rem, 7vw, 7rem); margin-top: clamp(3rem, 8vh, 6rem); }
.with__item { display: block; text-align: start; }
.with__item--a { grid-column: 1 / span 6; }
.with__item--b { grid-column: 8 / span 5; margin-top: clamp(4rem, 14vw, 13rem); }
.with__item--c { grid-column: 2 / span 6; }
.with__fig { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--sand); }
.with__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out); }
.with__item:hover .with__fig img { transform: scale(1.04); }
.with__cap { display: block; padding-top: .9rem; font-weight: 700; font-size: 1.15rem; line-height: 1.5; color: var(--navy); }
.mosaic-row { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; padding: clamp(3rem, 8vh, 5.5rem) var(--gut) clamp(2rem, 6vh, 4rem); }
.mosaic-row::before, .mosaic-row::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to left, rgba(191, 101, 62, .55), rgba(191, 101, 62, 0)); }
.mosaic-row::after { transform: scaleX(-1); }
.mosaic-row svg { width: clamp(24px, 2.7vw, 40px); height: clamp(24px, 2.7vw, 40px); overflow: visible; flex: none; }
.mosaic-row--onnavy::before, .mosaic-row--onnavy::after { background: linear-gradient(to left, rgba(237, 152, 104, .6), rgba(237, 152, 104, 0)); }

/* ───────── 9 · collection ───────── */
.collection { position: relative; padding-block: clamp(5rem, 12vh, 9rem) clamp(3rem, 7vh, 5.4rem); }
.collection__head { display: grid; gap: 2.4rem; align-items: end; }
.collection__head > div:first-child { display: grid; gap: 1rem; justify-items: start; }
.collection__side { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .collection__head { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); } }
.gallery { display: grid; row-gap: clamp(4.5rem, 14vh, 11rem); margin-top: clamp(3rem, 8vh, 6rem); }
@media (min-width: 900px) { .gallery { padding-inline: calc(var(--gut) + 3.2vw); } }
.piece { position: relative; z-index: 2; background: var(--cream); }
.piece__btn { display: grid; gap: 1.5rem; width: 100%; text-align: start; }
.piece__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--sand); }
.piece__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.3s var(--ease-out); }
.piece__media::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(243, 233, 220, .6); opacity: 0; transform: scale(1.03); transition: opacity .5s, transform .8s var(--ease-out); pointer-events: none; }
.piece__btn:hover .piece__media img { transform: scale(1.045); }
.piece__btn:hover .piece__media::after, .piece__btn:focus-visible .piece__media::after { opacity: 1; transform: none; }
.piece__cap { display: grid; justify-items: start; gap: .5rem; }
.piece__no { font-size: clamp(1.2rem, 1.6vw, 1.5rem); letter-spacing: .12em; color: var(--copper-ink); }
.piece__name { font-weight: 700; font-size: clamp(2.3rem, 4vw, 3.8rem); line-height: 1.2; color: var(--navy); }
.piece__mat { font-weight: 500; font-size: 1.1rem; line-height: 1.5; color: var(--copper-ink); }
.piece__line { margin-top: 1rem; max-width: 20em; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.7; color: var(--navy); text-wrap: balance; }
.piece__size { margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid rgba(243, 233, 220, .22); font-size: .98rem; color: var(--ink-soft); }

.gallery__note { display: grid; gap: 1.2rem; justify-items: center; text-align: center; padding-block: clamp(1rem, 4vh, 3rem); }
.gallery__note p { font-size: clamp(1.9rem, 3.6vw, 3.4rem); font-weight: 700; line-height: 1.35; color: var(--navy); max-width: 14em; }
.gallery__note .tilemark { width: 44px; height: 44px; }

@media (min-width: 900px) {
  .piece { background: none; }
  .piece__btn { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(3.5rem, 8vw, 8rem); align-items: center; }
  .piece__media { height: min(84svh, 880px); }
  .piece:nth-of-type(even) .piece__btn { grid-template-columns: minmax(0, 1fr) auto; }
  .piece:nth-of-type(even) .piece__media { order: 2; }
}

/* ───────── 10 · the two crafts ───────── */
.duo { position: relative; padding-block: 0 clamp(5rem, 12vh, 9rem); }
.duo__head { display: grid; gap: 1rem; justify-items: start; }
.duo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2.8rem); margin-top: clamp(2.5rem, 7vh, 5rem); }
.duo__item:nth-child(2) { margin-top: clamp(2rem, 7vw, 6rem); }
.duo__fig { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.duo__fig img { width: 100%; height: 100%; object-fit: cover; }
.duo__item figcaption { display: grid; gap: .1rem; padding-top: 1rem; }
.duo__item b { font-size: clamp(1.7rem, 2.8vw, 2.6rem); font-weight: 700; line-height: 1.3; color: var(--navy); }
.duo__item span:not(.duo__fig) { font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--ink-soft); }

/* ───────── 11 · commission ───────── */
.commission { position: relative; padding-block: clamp(5rem, 12vh, 9rem) clamp(5rem, 12vh, 9rem); background: linear-gradient(to bottom, var(--cream) 0%, var(--cream-2) 18%, var(--cream-2) 100%); }
.commission__head { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .commission__head { column-gap: clamp(4rem, 9vw, 9rem); } }
.commission__txt { display: grid; gap: 1.2rem; justify-items: start; }
.commission__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); width: min(100%, 460px); justify-self: end; }
.commission__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .commission__head { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } .commission__img { justify-self: center; } }

.path { position: relative; display: grid; row-gap: clamp(2rem, 5vh, 4rem); margin-top: clamp(4rem, 10vh, 7rem); }
.path__step { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 1.4rem; align-items: center; }
.bead { display: block; width: 88px; height: 88px; position: relative; z-index: 2; }
.path__txt { padding-block: .4rem; }
.path__n { display: block; font-weight: 600; font-size: clamp(3.2rem, 5vw, 4.4rem); line-height: .9; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.2px var(--copper); margin-bottom: .45rem; user-select: none; }
.path__txt h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 700; line-height: 1.35; color: var(--navy); }
.path__txt p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.8; max-width: 24rem; }
@media (min-width: 900px) {
  .path { grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr); }
  .path__step { display: contents; }
  .path__step .bead { grid-column: 2; justify-self: center; width: 112px; height: 112px; }
  .path__step .path__txt { grid-column: 1; text-align: start; padding-inline: 0 clamp(1rem, 3vw, 3rem); justify-self: end; max-width: 30rem; }
  .path__step:nth-child(even) .path__txt { grid-column: 3; padding-inline: clamp(1rem, 3vw, 3rem) 0; justify-self: start; }
  .path__step:nth-child(1) > *, .path__step:nth-child(2) > * { }
  .path__step:nth-child(1) .bead { grid-row: 1; } .path__step:nth-child(1) .path__txt { grid-row: 1; }
  .path__step:nth-child(2) .bead { grid-row: 2; } .path__step:nth-child(2) .path__txt { grid-row: 2; }
  .path__step:nth-child(3) .bead { grid-row: 3; } .path__step:nth-child(3) .path__txt { grid-row: 3; }
  .path__step:nth-child(4) .bead { grid-row: 4; } .path__step:nth-child(4) .path__txt { grid-row: 4; }
}
.commission__cta { display: flex; justify-content: center; margin-top: clamp(3.5rem, 8vh, 6rem); }

/* ───────── 13 · footer ───────── */
.footer { position: relative; background: var(--navy); color: var(--cream); overflow: hidden; padding-top: clamp(1rem, 4vh, 3rem); }
.footer__bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at 20% 30%, rgba(191, 101, 62, .16), transparent 60%), radial-gradient(ellipse at 90% 100%, rgba(191, 101, 62, .1), transparent 55%); }
.footer__grid { position: relative; display: grid; gap: 3rem; align-items: center; padding-block: clamp(5rem, 14vh, 9rem) clamp(3rem, 8vh, 6rem); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 8vw, 9rem); } }
.footer__logo { width: min(100%, 560px); margin-inline: auto; }
.footer__contact { display: grid; gap: 1.2rem; justify-items: start; }
.footer .label { color: #ED9868; }
.footer .h-lg { color: var(--cream); }
.footer .lead { color: rgba(248, 243, 235, .9); }
.contacts { display: grid; gap: .7rem; width: min(100%, 31rem); margin-top: .6rem; }
.contact { display: flex; align-items: center; gap: 1rem; min-height: 58px; padding: .6rem 1.2rem; border: 1px solid rgba(248, 243, 235, .26); color: var(--cream); text-decoration: none; font-weight: 500; font-size: 1.08rem; transition: background-color .4s, color .4s, border-color .4s; }
.contact span { flex: 1; }
.contact:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.footer :focus-visible { outline-color: #ED9868; }
.footer__base { position: relative; display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; align-items: center; padding-block: 1.6rem 2.2rem; border-top: 1px solid rgba(248, 243, 235, .16); font-size: .98rem; color: rgba(248, 243, 235, .86); }
.footer__base .totop { margin-inline-start: auto; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; }
.footer__base .totop:hover { color: #ED9868; }

/* ───────── 14 · dialogs ───────── */
dialog { color: var(--navy); }
.sheet { position: fixed; inset: 0 auto 0 0; margin: 0; width: min(430px, 100vw); height: 100%; max-height: none; border: 0; padding: 0; background: var(--cream-2); box-shadow: 30px 0 80px rgba(0, 0, 0, .6); }
.sheet::backdrop { background: rgba(6, 4, 3, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet__in { display: flex; flex-direction: column; gap: 1.6rem; height: 100%; padding: 1.4rem 1.6rem 1.6rem; overflow-y: auto; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__head h2 { font-size: 1.7rem; font-weight: 700; line-height: 1.4; }
.sheet__lead { color: var(--ink-soft); font-size: 1rem; line-height: 1.8; }
.sheet__grp { border: 0; padding: 0; margin: 0; display: grid; gap: .9rem; }
.sheet__grp legend { font-weight: 700; font-size: 1.05rem; margin-bottom: .7rem; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.seg button { min-height: 56px; border: 1.5px solid rgba(243, 233, 220, .35); font-weight: 700; color: var(--navy); display: grid; place-items: center; transition: background-color .3s, color .3s; }
.seg button[aria-checked="true"] { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.sw { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 56px; padding: .4rem 0; cursor: pointer; }
.sw input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sw__ui { flex: none; width: 52px; height: 30px; border-radius: 99px; background: rgba(243, 233, 220, .22); position: relative; transition: background-color .3s; }
.sw__ui::after { content: ""; position: absolute; top: 4px; inset-inline-start: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .35s var(--ease-out); }
.sw input:checked + .sw__ui { background: var(--navy); }
.sw input:checked + .sw__ui::after { transform: translateX(-22px); }
.sw input:focus-visible + .sw__ui { outline: 3px solid var(--copper); outline-offset: 3px; }
.sw__t { display: grid; gap: 0; line-height: 1.5; }
.sw__t small { color: var(--ink-soft); font-size: .88rem; }
.sheet__foot { margin-top: auto; display: flex; gap: .7rem; justify-content: space-between; }

.pview { position: fixed; inset: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; padding: 0; background: var(--cream); overflow: hidden; }
.pview::backdrop { background: rgba(6, 4, 3, .8); }
.pview__stage { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "info fig"; height: 100%; }
.pview__fig { grid-area: fig; position: relative; background: var(--sand); overflow: hidden; }
.pview__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pview__fig img.is-real { object-fit: contain; padding: clamp(1rem, 3vw, 3rem); }
.pview__swap { position: absolute; z-index: 3; inset-block-end: 1.2rem; inset-inline-start: 1.2rem; min-height: 44px; padding: .4rem 1.1rem; border-radius: 3px; background: rgba(11, 8, 7, .78); color: #F3E9DC; font-weight: 500; font-size: 1rem; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .3s, color .3s; }
.pview__swap:hover { background: #F3E9DC; color: #0B0807; }
.pview__info { grid-area: info; align-self: center; max-height: 100dvh; overflow-y: auto; padding: clamp(4rem, 8vh, 6rem) clamp(2rem, 6vw, 6rem) 5.5rem; display: grid; gap: 1rem; justify-items: start; }
.pview__kind { margin-top: -.5rem; font-size: 1.15rem; font-weight: 500; color: var(--ink-soft); }
.pview__story { max-width: 30rem; font-size: clamp(1.05rem, 1.2vw, 1.18rem); line-height: 2; color: var(--ink); text-wrap: pretty; }
.pview__ghost { position: fixed; z-index: 7; margin: 0; max-width: none; object-fit: cover; pointer-events: none; will-change: left, top, width, height; }
.pview__rule { display: block; width: min(100%, 22rem); height: auto; margin-top: -.3rem; transform: scaleX(-1); overflow: visible; }
.pview__mat { font-size: 1.05rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--copper-ink); }
.pview__info h2 { font-size: clamp(2.4rem, 4vw, 4rem); font-weight: 700; line-height: 1.25; color: var(--navy); }
.pview__dl { width: 100%; max-width: 30rem; border-top: 1px solid rgba(243, 233, 220, .2); margin-top: .6rem; }
.pview__dl > div[hidden] { display: none; }
.pview__dl > div { display: flex; justify-content: space-between; gap: 1.4rem; padding: .6rem 0; border-bottom: 1px solid rgba(243, 233, 220, .2); }
.pview__dl dt { color: var(--ink-soft); }
.pview__dl dd { font-weight: 700; text-align: end; }
.pview__note { color: var(--ink-soft); font-size: 1.05rem; max-width: 30rem; margin-bottom: .6rem; }
.pview__nav { position: absolute; z-index: 5; bottom: 1.6rem; inset-inline-end: 1.6rem; display: flex; align-items: center; gap: .8rem; padding: .35rem; background: rgba(11, 8, 7, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pview__count { font-size: 1.1rem; font-weight: 600; min-width: 4.2rem; text-align: center; letter-spacing: .08em; }
.pview__close { position: absolute; z-index: 6; top: 1.2rem; inset-inline-end: 1.2rem; background: rgba(11, 8, 7, .78); }
@media (max-width: 899px) {
  .pview__stage { grid-template-columns: 1fr; grid-template-rows: 46dvh minmax(0, 1fr); grid-template-areas: "fig" "info"; overflow-y: auto; }
  .pview__info { align-self: start; padding: 1.6rem var(--gut) 6.5rem; }
  .pview__nav { position: fixed; inset-inline: 0; bottom: 0; justify-content: space-between; padding: .7rem var(--gut) calc(.7rem + env(safe-area-inset-bottom)); background: rgba(11, 8, 7, .96); border-top: 1px solid rgba(243, 233, 220, .12); }
}

/* ───────── 15 · ribbon & mosaic ───────── */
.ribbon { position: absolute; top: 0; left: 0; width: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.tess { shape-rendering: geometricPrecision; transform-box: fill-box; transform-origin: 50% 50%; }
/* big tiles: the logo's own vector tile is the resting state; the tesserae only play while it assembles */
[data-vec], [data-vonly] { position: relative; }
[data-vec] > svg:not(.vtile) { opacity: 0; }
.vtile { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vtile .vt-c { fill: #E8956A; }
.vtile .vt-n { fill: #8FB2B0; }
.light .vtile .vt-c { fill: #AC5C3C; }
.light .vtile .vt-n { fill: #233A47; }
.vtile--dark .vt-c { fill: #E8956A; }
.vtile--dark .vt-n { fill: #8FB2B0; }


/* ───────── 16 · display settings ───────── */
/* motion: nothing animates when the visitor turns on «إيقاف كل الحركة» (the phone's reduce-motion is ignored, see index.html) */
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition-duration: .001s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }

/* high contrast: navy on white, no textures behind text */
html.hc { --cream: #FFFFFF; --cream-2: #FFFFFF; --sand: #FFFFFF; --ink-soft: #1C3B4A; --copper-ink: #7A3414; --ink: #0F2733; --navy: #12303F; }
html.hc body { background: #fff; color: #0F2733; }
html.hc .mnav__rib, html.hc .mnav__bigtile { display: none; }
html.hc .statement__text .st-a { color: #fff; }
html.hc .path__n { -webkit-text-stroke-color: #7A3414; }
html.hc .statement__bg, html.hc .footer__bg, html.hc .statement__sheen, html.hc .hero__veil { display: none; }
html.hc .hero__media > img { opacity: .18; }
html.hc .hero { background: #fff; }
html.hc .statement, html.hc .footer { background: #0B1F29; }
html.hc .statement__text em { animation: none; background: none; -webkit-text-fill-color: #FFC9A0; color: #FFC9A0; }
html.hc .chapter__num { -webkit-text-stroke-color: #7A3414; }
html.hc .commission { background: #fff; }
html.hc .btn--solid { background: #0B1F29; color: #fff; }
html.hc .btn--line, html.hc .iconbtn { border-color: #0B1F29; border-width: 2px; color: #0B1F29; }
html.hc .sheet { background: #fff; }
html.hc .pview__nav, html.hc .pview__close { background: #fff; }
html.hc .hdr.is-solid { background: #fff; box-shadow: 0 2px 0 #0B1F29; }
html.hc p, html.hc li, html.hc dd, html.hc dt { color: #0F2733; }
html.hc .statement p, html.hc .footer p, html.hc .footer li, html.hc .listen p { color: #fff; }
html.hc .chapter__quote { color: #7A3414; }
html.hc a { text-decoration: underline; }
html.hc :focus-visible { outline-width: 4px; outline-color: #7A3414; }
html.hc .footer :focus-visible, html.hc .statement :focus-visible, html.hc .listen :focus-visible { outline-color: #FFC9A0; }

html.ul a:not(.btn):not(.contact):not(.skip) { text-decoration: underline; }

/* ───────── 17 · responsive ───────── */
@media (max-width: 1100px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: inline-grid; }
  .hdr__actions { margin-inline-start: auto; }
}
@media (max-width: 899px) {
  :root { --hdr-h: 68px; }
  .hdr__order { display: none; }
  .logo-crop--mark { height: 44px; }

  .hero { align-items: end; }
  .hero__media { bottom: auto; height: 66svh; }
  .hero__media > img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; -webkit-mask-image: none; mask-image: none; }
  .hero__veil { background: linear-gradient(to bottom, rgba(11, 8, 7, .5) 0%, rgba(11, 8, 7, 0) 14%, rgba(11, 8, 7, 0) 46%, rgba(11, 8, 7, .8) 76%, var(--cream) 98%); }
  .hero__inner { padding-top: 46svh; padding-bottom: 4.5rem; align-items: flex-end; }
  .hero__col { width: 100%; }
  .hero__logo { width: min(70vw, 340px); }
  .hero__scroll { display: none; }

  .statement { min-height: auto; padding-block: 22vh; }
  .with__grid { grid-template-columns: 1fr; row-gap: 2.6rem; }
  .with__item--a, .with__item--c { grid-column: auto; }
  .with__item--b { grid-column: auto; margin-top: 0; width: 84%; justify-self: end; }
  .duo__grid { gap: 12px; }
  .footer__grid { padding-top: 1rem; }
}
@media (max-width: 899px) {
  .path { grid-template-columns: minmax(0, 1fr); }
  .path__step { grid-template-columns: 72px minmax(0, 1fr); }
  .bead { width: 72px; height: 72px; }
}
@media (max-height: 640px) and (min-width: 900px) { .hero__logo { width: min(100%, 400px); } }

/* ───────── no-JS fallback ───────── */
.no-js .hdr__logo { opacity: 1; visibility: visible; }
.mnav__bigtile .vtile { opacity: .16; }

/* phones: the hero sub-line wraps into two balanced lines instead of running edge to edge */
@media (max-width: 599px) {
  .hero__sub { max-width: 19rem; margin-inline: auto; }
  .hero__tag { gap: .7rem; font-size: 1.5rem; }
  .hero__rule { max-width: 28px; }
}
