/* Cormorant Garamond for titles (its medium weight; the regular is too fine over the scenes), EB Garamond for text
   and its true small caps for labels, Amiri for any Arabic (a revival of the Bulaq press type of Cairo, which printed
   the first Arabic edition of the 1001 Nights). All SIL Open Font License, see fonts/*-OFL.txt. */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-500.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-500i.woff2") format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-400.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-400i.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-500.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("fonts/amiri-arabic-400.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
/* Blue Cairo — an online gallery of tales, in the manner of the-boyd.com.
   Parchment ground, lapis ink, saffron on the actions. Cormorant Garamond (titles) + EB Garamond (text, small-caps labels) + Amiri (Arabic). */


:root {
  --paper: #EDE6D6;        /* parchment ground */
  --paper-2: #E4DAC4;      /* one tone step */
  --ink: #1C2B5A;          /* deep lapis ink */
  --ink-soft: #3A4670;     /* secondary ink, tinted from the lapis */
  --saffron: #E9A23B;      /* actions only */
  --saffron-hover: #F2B556;
  --light: #F8F3E8;        /* type set on the scenes */

  --display: "Cormorant Garamond", "Amiri", "EB Garamond", Georgia, serif;
  --text: "EB Garamond", "Amiri", Georgia, serif;
  --caps: "EB Garamond", "Amiri", Georgia, serif;   /* labels, set in its true small caps (see font-variant-caps) */

  --label: 1rem;   /* small caps sit lower than capitals, so labels set a little larger */
  --body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --phrase: clamp(1.5rem, 1rem + 1.2vw, 2.25rem);
  --mid: clamp(3rem, 1rem + 4.6vw, 6.5rem);
  --head: clamp(4rem, 1.5rem + 9vw, 11rem);
  --hero: clamp(4.25rem, 1rem + 13vw, 17rem);
  --hero-sm: clamp(3.75rem, 17vw, 9rem);    /* hero titles on phones */
  --big: clamp(3.5rem, 1rem + 7vw, 9.5rem);  /* long display lines: places, next series */
  --sub: clamp(2.5rem, 1rem + 3.4vw, 4.5rem); /* display list items and question groups */
  --lead: 1.3125rem;                         /* lead paragraphs and prose headings */
  --small: 1rem;                             /* notes that must still read as text */

  --margin: clamp(20px, 3vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-soft) var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 300; }
img { display: block; max-width: 100%; height: auto; }
/* Pictures can't be dragged out, selected, or saved with a long press on iPhone (main.js blocks the save menu) */
img, video, canvas { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--saffron); color: var(--ink); }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 4px; }
input { caret-color: var(--saffron); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -80px; z-index: 40; background: var(--saffron); color: var(--ink); padding: 8px 16px; }
.skip:focus { top: 12px; }

/* Shared voices */
.display { font-family: var(--display); font-weight: 400; text-transform: none; font-size: var(--head); line-height: 0.96; letter-spacing: -0.01em; }
.display > span { display: block; }
.num { font-family: var(--text); font-weight: 300; letter-spacing: -0.02em; }
.display .indent { padding-left: 1.4em; }
.label { font-weight: 400; font-size: var(--label); letter-spacing: 0.04em; text-transform: none; font-family: var(--caps); font-variant-caps: small-caps; line-height: 1.4; }
.fine { font-size: var(--label); color: var(--ink-soft); }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 180ms ease; }
.link:hover { color: var(--ink-soft); }
.tag {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  background: var(--light); color: var(--ink); border: 0; border-radius: 0; cursor: pointer;
  font-weight: 400; font-size: var(--label); letter-spacing: 0.04em; text-transform: none; font-family: var(--caps); font-variant-caps: small-caps;
  transition: background-color 200ms ease, transform 140ms var(--ease);
}
.tag:hover { background: var(--saffron); }
.tag:active { transform: scale(0.97); }
.tag-ink { background: var(--ink); color: var(--paper); }
.tag-ink:hover { background: var(--saffron); color: var(--ink); }
.bar .tag, .hero-tag { background: var(--saffron); color: var(--ink); }
.bar .tag:hover, .hero-tag:hover { background: var(--saffron-hover); }

/* Scenes: full-bleed generated photographs */
.scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }

/* ---------- Bar ---------- */
.bar { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px var(--margin); color: var(--light); }
.bar-left, .bar-right { display: flex; align-items: center; gap: 28px; }
.bar-right { justify-content: flex-end; }
.bar-link { background: none; border: 0; padding: 8px 0; cursor: pointer; font-weight: 400; font-size: var(--label); letter-spacing: 0.04em; text-transform: none; font-family: var(--caps); font-variant-caps: small-caps; transition: opacity 180ms ease; }
.bar-link:hover { opacity: 0.7; }
.bar-logo img { width: clamp(120px, 11vw, 168px); }
.tag { white-space: nowrap; }
@media (max-width: 760px) { .hide-sm { display: none; } .bar-logo img { width: 116px; } .bar .tag { padding: 0 12px; } .bar .tag .tag-more { display: none; } }

/* ---------- Menu ---------- */
.menu { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 18px var(--margin) 48px; border: 0; background: var(--paper); color: var(--ink); }
.menu::backdrop { background: rgba(28, 43, 90, 0.4); }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-top img { width: 150px; }
.menu-list { margin-top: 6vh; }
.menu-list a { display: block; font-family: var(--display); font-weight: 400; text-transform: none; font-size: var(--mid); line-height: 0.95; transition: color 200ms ease, padding-left 300ms var(--ease); }
.menu-list a:hover, .menu-list a:focus-visible { color: var(--ink-soft); padding-left: 0.3em; }
.menu[open] { animation: menu-in 400ms var(--ease); }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; color: var(--light); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(54, 34, 18, 0.26); }   /* a warm umber veil, not lapis: keeps the hall's honey stone warm and the title clear */
.hero-inner { position: relative; min-height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 90px var(--margin) 40px; align-content: center; }
.hero-title { grid-column: 1 / -1; font-family: var(--display); font-weight: 400; text-transform: none; font-size: var(--hero); line-height: 0.92; letter-spacing: -0.015em; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.ht-line { display: block; }
.ht-1 { grid-column: 4 / -1; }
.ht-amp { grid-column: 5 / span 6; font-family: var(--display); font-style: italic; font-weight: 400; text-transform: none; font-size: 1.6em; line-height: 0.8; margin: -0.04em 0 0.1em 0.1em; position: relative; z-index: 1; }
.ht-2 { grid-column: 1 / -1; white-space: nowrap; justify-self: center; }
.hero-label { position: absolute; left: var(--margin); top: 50%; font-weight: 400; font-size: var(--label); letter-spacing: 0.04em; text-transform: none; font-family: var(--caps); font-variant-caps: small-caps; line-height: 1.3; }
.hero-phrase { position: absolute; left: 63%; top: 38%; font-size: var(--phrase); line-height: 1; letter-spacing: -0.02em; z-index: 2; }
.hero-phrase span { display: block; }
.hero-phrase span:nth-child(2) { padding-left: 1.3em; }
.hero-phrase span:nth-child(3) { padding-left: 4.2em; }
.hero-phrase span:nth-child(4) { padding-left: 2.6em; }
.hero-tag { position: absolute; right: var(--margin); bottom: 40px; }
@media (max-width: 900px) {
  .hero-inner { align-content: end; padding-bottom: 96px; row-gap: 28px; }
  .hero-title { font-size: clamp(4.25rem, 20vw, 9rem); }
  .ht-1 { grid-column: 1 / -1; }
  .ht-amp { grid-column: 2 / -1; }
  .ht-2 { white-space: normal; }
  .hero-phrase { position: static; grid-column: 1 / -1; }
  .hero-label { position: static; grid-column: 1 / -1; }
  .ht-2 { justify-self: start; }
  .hero-tag { left: var(--margin); right: auto; bottom: 32px; }
}

/* ---------- Tales floating in the dawn ---------- */
.float { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.float-row { display: flex; gap: clamp(28px, 4vw, 72px); overflow-x: auto; scroll-snap-type: x proximity; padding: 12vh var(--margin); scrollbar-width: none; cursor: grab; width: 100%; }
.float-row::-webkit-scrollbar { display: none; }
.float-row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.float-row li { flex: none; scroll-snap-align: center; }
.float-row li:nth-child(odd) { margin-top: 14vh; }
.float-row li:nth-child(3n) { margin-top: -6vh; }
.float-row a { display: block; width: clamp(150px, 13vw, 230px); transform: rotate(var(--tilt, -2deg)); transition: transform 500ms var(--ease); }
.float-row li:nth-child(3n) a { --tilt: 1.5deg; }
.float-row li:nth-child(3n+1) a { --tilt: -1deg; }
.float-row a:hover, .float-row a:focus-visible { transform: rotate(0deg) scale(1.03); }
.float-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
/* Wall label above each home piece: its name and lowest price. A soft parchment halo keeps it legible over cloud and curtain. */
.float-cap { display: grid; justify-items: center; gap: 2px; margin-bottom: 12px; text-align: center; color: var(--ink); text-shadow: 0 0 2px var(--paper), 0 0 6px var(--paper), 0 0 14px var(--paper), 0 0 24px var(--paper); }
.float-cap .work-title { line-height: 1.25; }
.float-cap .label { color: var(--ink); }
/* The name of the set, small, in the open sky at the top right, clear of the curtain */
.float-title { position: absolute; z-index: 3; top: clamp(72px, 11vh, 120px); right: var(--margin); margin: 0; max-width: 9em; font-family: var(--display); font-weight: 400; text-transform: none; font-size: clamp(1.75rem, 1rem + 2vw, 3rem); line-height: 0.95; letter-spacing: -0.01em; text-align: right; color: var(--ink); }
.float-hint { position: absolute; right: var(--margin); bottom: 28px; color: var(--ink); font-weight: 400; font-size: var(--label); letter-spacing: 0.04em; text-transform: none; font-family: var(--caps); font-variant-caps: small-caps; }

/* ---------- Once upon a time ---------- */
.once { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; padding: clamp(120px, 14vw, 200px) var(--margin); }
.once-title { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 0.12em; text-align: center; }
.once-title > span { display: inline-block; }
.once-pic { width: 0.82em; height: 0.78em; }
.once-pic img { width: 100%; height: 100%; object-fit: contain; }
/* The seam between the dawn and "Once upon a time": a cloud bank painted in main.js, over the dawn's lower edge */
.seam { position: relative; z-index: 2; height: 0; pointer-events: none; overflow-x: clip; }
.seam-layer { position: absolute; left: -10%; width: 120%; top: -48vh; height: 80vh; }
.once { position: relative; z-index: 3; }
/* The star window (motion only, built in main.js): the dawn rests, then holds while the next section slides up
   behind it, and the dawn is masked by the logo's star as it shrinks into the title */
.star-stage { height: 200svh; }
.star-stage > .float-clouds { position: sticky; top: 0; z-index: 4; mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat; }
.star-stage + .once { margin-top: -100svh; }
/* From "Once upon a time" into the catalogue (motion only, built in main.js): the Nile scene rises over the held page */
.star-stage + .rise-stage { margin-top: -100svh; }
.rise-stage { position: relative; z-index: 2; }
.rise-stage > .once { position: sticky; }
.rise-stage + .catalogue { position: relative; z-index: 3; margin-top: -100svh; }
.catalogue.is-rising .marquee { will-change: clip-path, translate; }
.rise-crest { position: absolute; top: 0; left: 0; z-index: 2; width: 100%; height: 100vh; pointer-events: none; overflow: visible; opacity: 0; }
.rise-crest path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.crest-glow { stroke: rgba(255, 246, 226, 0.5); stroke-width: 14px; filter: blur(6px); }
.crest-line { stroke: rgba(255, 250, 238, 0.9); stroke-width: 2px; filter: blur(0.6px); }
/* The flight (motion and 3D only, built in main.js): the hall holds for 1.1 screens while the camera flies through
   its arch; the 3D canvas sits over the page and hands over to the real dawn beneath */
.flight-stage { height: 210svh; overflow: clip; }   /* the hall grows past the screen as the camera nears it */
.flight-stage > .hero { position: sticky; top: 0; z-index: 5; will-change: transform; }
.flight { position: fixed; inset: 0; z-index: 15; width: 100%; height: 100%; pointer-events: none; visibility: hidden; }
.once-sub { flex-basis: 100%; padding-left: 2.2em; text-align: center; }
.once-meta { grid-column: 1 / span 6; display: flex; justify-content: space-between; align-self: start; padding-top: 6px; color: var(--ink-soft); }
.once-text { grid-column: 8 / -1; display: grid; gap: 1em; max-width: 44ch; justify-items: start; }
.once-sign { font-style: italic; color: var(--ink-soft); }
.once-text .tag { margin-top: 8px; }
@media (max-width: 900px) { .once-meta { grid-column: 1 / -1; } .once-text { grid-column: 1 / -1; } }

/* ---------- Catalogue ---------- */
.marquee { position: relative; isolation: isolate; min-height: 120svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 6vh; padding-block: 12vh; }
.cat-float { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 0 var(--margin); align-items: start; }
.cat-float .f0 { grid-column: 2 / span 3; transform: rotate(-1.5deg); }
.cat-float .f1 { grid-column: 6 / span 2; margin-top: 10vh; transform: rotate(1deg); }
.cat-float .f2 { grid-column: 9 / span 3; margin-top: -2vh; transform: rotate(-0.8deg); }
.cat-float .work-title, .cat-float .label { color: var(--ink); }
@media (max-width: 760px) { .cat-float .f0 { grid-column: 1 / span 7; } .cat-float .f1 { grid-column: 8 / -1; margin-top: 18vh; } .cat-float .f2 { grid-column: 3 / span 7; margin-top: 4vh; } }
.marquee-track { display: flex; white-space: nowrap; font-family: var(--display); font-weight: 400; text-transform: none; font-size: var(--hero); line-height: 1; color: var(--ink); }
.marquee-track span { padding-right: 0.3em; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 6vw, 110px); row-gap: clamp(48px, 7vw, 110px); padding: clamp(80px, 9vw, 140px) var(--margin) 0; align-items: start; }
.work a { display: grid; justify-items: center; text-align: center; gap: 4px; }
.work img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 14px; transition: transform 600ms var(--ease); }
.work a:hover img { transform: scale(1.02); }
.work.w1 { margin-top: 12vw; }
.work.w1 img { width: 82%; }
.work.w2 img { width: 92%; }
.work-title { font-size: var(--body); line-height: 1.4; }
.work .label { color: var(--ink-soft); }
.view-all { display: block; width: max-content; margin: clamp(120px, 12vw, 180px) var(--margin) 0 auto; text-align: right; transition: color 200ms ease; }
.view-all:hover { color: var(--ink-soft); }
.view-all { line-height: 1.02; }
.view-all .va-2 { padding-right: 0.9em; }
@media (max-width: 760px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work.w1 { margin-top: 0; }
  .work:nth-child(even) { margin-top: 18vw; }
  .work.w1 img, .work.w2 img { width: 100%; }
}

/* ---------- Series slider ---------- */
.series { overflow-x: clip; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; padding: clamp(100px, 10vw, 160px) var(--margin) clamp(100px, 10vw, 160px); align-items: center; }
.series-stage { grid-column: 1 / span 8; }
.slide { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.slide[hidden] { display: none; }
.slide-art { grid-column: 1 / span 4; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.slide-text { grid-column: 5 / -1; display: grid; gap: 18px; justify-items: start; padding-bottom: 8px; }
.slide-text .label { color: var(--ink-soft); }
.slide-title { font-size: var(--mid); line-height: 0.86; }
.slide-text p:not(.label) { max-width: 30ch; }
.slide.is-on .slide-art, .slide.is-on .slide-text { animation: slide-in 700ms var(--ease); }
@keyframes slide-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.oval { grid-column: 9 / -1; position: relative; width: min(100%, 360px); justify-self: center; aspect-ratio: 400 / 520; }
.oval img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: cover; border-radius: 50%; transition: opacity 400ms ease; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: ring 60s linear infinite; }
.ring text { font-family: var(--text); font-style: italic; font-size: 20px; letter-spacing: 0.04em; fill: var(--ink); }
@keyframes ring { to { transform: rotate(360deg); } }
.series-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 900px) {
  .series-stage, .oval { grid-column: 1 / -1; }
  .slide-art { grid-column: 1 / -1; }
  .slide-text { grid-column: 1 / -1; padding-top: 24px; }
  .oval { width: 220px; }
}

/* ---------- Apparel ---------- */
.wear { background: var(--paper-2); padding: clamp(120px, 14vw, 200px) var(--margin); display: grid; gap: 48px; justify-items: start; }
.wear-intro { max-width: 46ch; justify-self: end; margin-top: -2vw; }
.wear-row { width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 6vw; align-items: start; }
.wear-row li:nth-child(1) { grid-column: 1 / span 4; }
.wear-row li:nth-child(2) { grid-column: 6 / span 3; margin-top: 10vw; }
.wear-row li:nth-child(3) { grid-column: 10 / span 3; margin-top: 2vw; }
.wear-row li:nth-child(4) { grid-column: 2 / span 3; }
.wear-row li:nth-child(5) { grid-column: 6 / span 4; margin-top: -4vw; }
.wear-row li:nth-child(6) { grid-column: 10 / span 3; margin-top: 6vw; }
.wear-row a { display: grid; justify-items: center; text-align: center; gap: 6px; }
.wear-row img { width: 100%; height: auto; margin-bottom: 16px; filter: drop-shadow(0 28px 30px rgba(28, 43, 90, 0.22)); /* taste-skill-ignore: floating cut-out garment */ transition: transform 600ms var(--ease); }
.wear-row li:nth-child(odd) img { transform: rotate(-2deg); }
.wear-row li:nth-child(even) img { transform: rotate(1.5deg); }
.wear-row a:hover img { transform: translateY(-8px) rotate(0deg); }
.wear-line { font-size: var(--label); color: var(--ink-soft); line-height: 1.45; max-width: 24ch; }
@media (max-width: 760px) { .wear-row li:nth-child(n) { grid-column: span 6; margin-top: 0; } .wear-row li:nth-child(even) { margin-top: 14vw; } .wear-intro { justify-self: start; margin-top: 0; } }

/* ---------- Materials ---------- */
.printed { padding: clamp(120px, 14vw, 200px) var(--margin); display: grid; gap: 56px; }
.mats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.mats li { display: grid; justify-items: center; text-align: center; gap: 6px; }
.mats img { width: 78%; margin-bottom: 18px; }
.mats h3 { font-family: var(--display); font-size: var(--mid); text-transform: none; line-height: 0.9; }
.mats h3 em { font-family: var(--text); font-style: italic; font-size: var(--label); text-transform: none; vertical-align: super; color: var(--ink-soft); }
.mats p:not(.label) { max-width: 28ch; }
.mats .label { color: var(--ink-soft); margin-top: 6px; }
.sizes { justify-self: center; border-collapse: collapse; font-size: var(--body); font-variant-numeric: tabular-nums; }
.sizes caption { padding-bottom: 16px; color: var(--ink-soft); }
.sizes th, .sizes td { padding: 10px 24px; text-align: left; font-weight: 400; }
.sizes th { font-weight: 500; }
.sizes tr:nth-child(odd) { background: var(--paper-2); }
.printed .fine { justify-self: center; }
@media (max-width: 760px) { .mats { grid-template-columns: 1fr; } .sizes th, .sizes td { padding: 10px 12px; } }

/* ---------- For your space ---------- */
.space { position: relative; isolation: isolate; overflow: hidden; padding: clamp(120px, 12vw, 180px) var(--margin) clamp(80px, 8vw, 120px); display: grid; gap: clamp(64px, 8vw, 120px); }
.space-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; row-gap: 32px; }
.space-title { grid-column: 2 / span 9; }
.space-note { grid-column: 9 / -1; max-width: 34ch; font-size: var(--body); line-height: 1.55; color: var(--ink); }
.letter { justify-self: center; width: min(100%, 980px); background: var(--paper); padding: clamp(28px, 4vw, 56px); }
.letter-lines { font-size: var(--phrase); line-height: 1.5; letter-spacing: -0.015em; }
.letter input:not([type="radio"]) { width: 9em; border: 0; border-bottom: 1px solid var(--ink-soft); background: transparent; padding: 0 4px; font: inherit; color: var(--ink); }
.letter input#l-email { width: 11em; }
.letter input::placeholder { color: var(--ink-soft); opacity: 0.75; font-style: italic; }
.letter input:focus { outline: none; border-bottom: 2px solid var(--saffron); }
.choices { display: inline-flex; flex-wrap: wrap; gap: 0 0.6em; }
.choices label { cursor: pointer; color: var(--ink-soft); transition: color 180ms ease; }
.choices input { accent-color: var(--ink); width: 0.6em; height: 0.6em; margin: 0 0.15em 0 0; vertical-align: middle; }
.choices label:has(input:checked) { color: var(--ink); }
.choices label:has(input:focus-visible) { outline: 2px solid var(--saffron); outline-offset: 2px; }
.letter-error { margin-top: 16px; color: #8A2A1E; font-size: var(--body); }
.letter-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.clock { justify-self: center; color: var(--ink); font-family: var(--text); font-weight: 300; font-size: var(--mid); line-height: 1; letter-spacing: 0.02em; display: flex; align-items: baseline; gap: 14px; }
.clock span { font-size: var(--label); letter-spacing: 0.04em; text-transform: none; font-family: var(--caps); font-variant-caps: small-caps; }
@media (max-width: 900px) { .space-title, .space-note { grid-column: 1 / -1; } }

/* ---------- Questions ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; padding: clamp(120px, 14vw, 200px) var(--margin); align-items: start; }
.faq-title { grid-column: 1 / span 6; font-size: clamp(3.5rem, 1rem + 5.4vw, 7.5rem); line-height: 1; }
.faq-title .indent { padding-left: 0.8em; }
.faq-list { grid-column: 7 / -1; display: grid; gap: 4px; }
.faq details { background: var(--paper-2); transition: background-color 200ms ease; }
.faq details[open] { background: #DDD2BA; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 18px 20px; font-size: var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 14px; height: 14px; margin-top: 6px; transition: transform 300ms var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--ink); }
.plus::before { left: 0; right: 0; top: 6px; height: 2px; }
.plus::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { padding: 0 20px 22px; max-width: 62ch; }
.faq-more { grid-column: 7 / -1; color: var(--ink-soft); }
@media (max-width: 900px) { .faq-title, .faq-list, .faq-more { grid-column: 1 / -1; } }

/* ---------- Footer ---------- */
.foot { background: var(--paper-2); padding: clamp(80px, 8vw, 120px) var(--margin) 28px; display: grid; gap: clamp(56px, 7vw, 100px); }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.foot-grid .label { color: var(--ink-soft); margin-bottom: 8px; }
.news label { display: block; font-weight: 400; font-size: var(--label); letter-spacing: 0.04em; text-transform: none; font-family: var(--caps); font-variant-caps: small-caps; color: var(--ink-soft); margin-bottom: 8px; }
.news-row { display: flex; gap: 8px; }
.news input[type="email"] { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; background: var(--paper); border: 1px solid var(--ink-soft); border-radius: 0; color: var(--ink); }
.news input::placeholder { color: var(--ink-soft); }
.foot-mark { width: 100%; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: var(--label); color: var(--ink-soft); }
.foot-legal a { margin-left: 16px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-scene { animation: settle 2600ms var(--ease) both; }
  @keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
  .js .hero-title > span, .js .hero-phrase span, .js .hero-label, .js .hero-tag { opacity: 0; transform: translateY(0.4em); animation: rise 1100ms var(--ease) forwards; }
  .js .hero-title .ht-1 { animation-delay: 200ms; }
  .js .hero-title .ht-amp { animation-delay: 380ms; }
  .js .hero-title .ht-2 { animation-delay: 520ms; }
  .js .hero-phrase span:nth-child(1) { animation-delay: 900ms; }
  .js .hero-phrase span:nth-child(2) { animation-delay: 980ms; }
  .js .hero-phrase span:nth-child(3) { animation-delay: 1060ms; }
  .js .hero-phrase span:nth-child(4) { animation-delay: 1140ms; }
  .js .hero-phrase span:nth-child(5) { animation-delay: 1220ms; }
  .js .hero-label, .js .hero-tag { animation-delay: 1300ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .float-row li { animation: bob 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.9s); }
  @keyframes bob { from { transform: translateY(-10px); } to { transform: translateY(10px); } }
  .marquee-track { animation: marquee 48s linear infinite; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  .js [data-reveal] > * { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--r, 0) * 80ms); }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } }

/* =====================================================================
   The rest of the site: collection, series, artwork, apparel, guide,
   story, spaces, materials, help, policies, bag. Same two inks, same voices.
   ===================================================================== */

[hidden] { display: none !important; }
@media (max-width: 1100px) { .hide-md { display: none; } }
.bar-ink { color: var(--ink); }
button, select, textarea { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* Menu: the series as huge words, the rest as a quiet list */
.menu-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; margin-top: 5vh; }
.menu-body > nav:first-child { grid-column: 1 / span 9; }
.menu-body > nav:last-child { grid-column: 10 / -1; align-self: end; }
.menu-label { color: var(--ink-soft); margin-bottom: 12px; }
.menu-list { margin-top: 0; }
.menu-more { display: grid; gap: 10px; font-size: var(--body); }
@media (max-width: 900px) { .menu-body > nav:first-child, .menu-body > nav:last-child { grid-column: 1 / -1; } }

/* Scene hero shared by the inner pages */
.c-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 88svh; color: var(--light); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-content: end; padding: 140px var(--margin) clamp(48px, 6vw, 80px); }
.c-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28, 43, 90, 0.34); }
.c-title { grid-column: 1 / -1; font-size: var(--hero); line-height: 0.8; letter-spacing: -0.015em; }
.c-title .indent { padding-left: 1.2em; }
.c-phrase { grid-column: 8 / -1; margin-top: clamp(28px, 3vw, 48px); font-size: var(--phrase); line-height: 1; letter-spacing: -0.02em; }
.c-phrase span { display: block; }
.c-phrase span:nth-child(2) { padding-left: 1.3em; }
.c-phrase span:nth-child(3) { padding-left: 3.4em; }
.c-phrase span:nth-child(4) { padding-left: 2em; }
.c-hero .hero-tag { bottom: clamp(48px, 6vw, 80px); }
/* the catalogue's hero turns with the filter: one scene per series, crossfaded; the words step back and return */
.c-scene { opacity: 0; transition: opacity 700ms ease; }
.c-scene.is-on { opacity: 1; }
.c-title, .c-phrase { transition: opacity 260ms ease-out, transform 260ms ease-out; }
.c-hero.is-turning .c-title, .c-hero.is-turning .c-phrase { opacity: 0; transform: translateY(0.12em); transition-timing-function: ease-in; }
.c-hero.turned .c-title > span, .c-hero.turned .c-phrase span { animation: none; opacity: 1; transform: none; }   /* the opening rise plays once */
@media (prefers-reduced-motion: reduce) { .c-scene, .c-title, .c-phrase { transition: none; } }

/* ---------- Living scenes: the headers of the art collections ----------
   The stage keeps the picture's shape and covers the header (as object-fit: cover would), so what is drawn on it
   stays on its place in the painting. Only transform and opacity move. The life wakes once the scene has settled;
   it rests off screen (.is-away) and behind the catalogue's other scenes. Reduced motion keeps the light, not the travel. */
.live-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; container-type: size; pointer-events: none; }
.lv-stage { --W: max(100cqw, 100cqh * 1920 / 1088); position: absolute; top: 50%; width: var(--W); height: max(100cqh, 100cqw * 1088 / 1920); translate: 0 -50%;
  left: clamp(calc(100cqw - var(--W)), calc(50cqw - var(--fx, 0.5) * var(--W)), 0px); }   /* --fx: the point of the picture kept in view when the header crops it */
.lv-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lv-life { position: absolute; inset: 0; }
.lv-life i, .lv-window { position: absolute; display: block; }
.lv-glow { aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); }
.lv-moon { --c: rgba(220, 230, 255, 0.32); }
.lv-sun { --c: rgba(255, 196, 120, 0.42); }
.lv-flame { --c: rgba(255, 168, 72, 0.55); }
.lv-flame.lv-small { --c: rgba(255, 168, 72, 0.42); }
.lv-water { --c: rgba(205, 240, 255, 0.26); aspect-ratio: 3 / 1; }
.lv-haze { --c: rgba(255, 246, 225, 0.32); }
.lv-light { --c: rgba(255, 236, 200, 0.32); aspect-ratio: 2 / 1; }
.lv-star { width: var(--s); height: var(--s); border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 calc(var(--s) * 2.5) var(--c, #fff); }   /* taste-skill-ignore: starlight */
/* the bright stars flare into four-pointed sparkles */
.lv-spark::before, .lv-spark::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--s) * 10); height: 1px; translate: -50% -50%; background: linear-gradient(90deg, transparent, var(--c, #fff), transparent); }
.lv-spark::after { rotate: 90deg; }
.lv-moon-bright { --c: rgba(236, 243, 255, 0.5); }
.lv-moon-core { --c: rgba(255, 255, 255, 0.85); }
/* the wind lifts the sand off the dunes now and then: a fast low drift that fades in and out */
.lv-gust { position: absolute; inset: 0; opacity: 0; }
@keyframes lv-gust { 0%, 50% { opacity: 0; } 63% { opacity: 1; } 78% { opacity: 0.7; } 92%, 100% { opacity: 0; } }
@keyframes lv-sparkle { from { opacity: 0.35; transform: scale(0.55) rotate(0deg); } to { opacity: 1; transform: scale(1.25) rotate(20deg); } }
.lv-shoot { width: 9%; height: 2px; rotate: 16deg; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9)); }
.lv-drift { left: 0; aspect-ratio: 18 / 1; background-repeat: repeat-x; background-size: 33.3333% 100%; }
.lv-mist { background-image: url("assets/clouds/mist.webp"); }
.lv-bank { background-image: url("assets/clouds/bank.webp"); }
.lv-sand { filter: sepia(1) saturate(2.4) hue-rotate(-8deg) brightness(0.92); }   /* the mist, turned to blown sand */
.lv-window { left: 36.5%; top: 28.5%; width: 27%; height: 34%; overflow: hidden; clip-path: inset(0 round 50% 50% 0 0 / 34% 34% 0 0); }
.lv-mote { width: 0.32%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 240, 210, 0.85); opacity: 0; }
@keyframes lv-wake { from { opacity: 0; } to { opacity: 1; } }
@keyframes lv-breathe { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes lv-twinkle { from { opacity: 0.08; } to { opacity: 1; } }
@keyframes lv-flicker {
  0% { opacity: 0.86; transform: scale(1); } 11% { opacity: 1; transform: scale(1.04); } 23% { opacity: 0.76; transform: scale(0.99); }
  36% { opacity: 0.95; transform: scale(1.02); } 52% { opacity: 0.8; transform: scale(0.98); } 67% { opacity: 1; transform: scale(1.03); }
  82% { opacity: 0.78; transform: scale(1); } 100% { opacity: 0.86; transform: scale(1); }
}
@keyframes lv-shoot { 0% { opacity: 0; transform: translateX(0); } 1.5% { opacity: 1; } 6% { opacity: 0; transform: translateX(320%); } 100% { opacity: 0; transform: translateX(320%); } }
@keyframes lv-mote { 0% { opacity: 0; transform: translate(0, 0); } 18% { opacity: 0.9; } 82% { opacity: 0.9; } 100% { opacity: 0; transform: translate(var(--dx), -9vh); } }
@media (prefers-reduced-motion: no-preference) {
  .lv-stage { animation: settle 2600ms var(--ease) both; }
  .lv-life { animation: lv-wake 1600ms ease-out 900ms both; }
  .lv-drift { animation-name: cloud-drift; animation-timing-function: linear; animation-iteration-count: infinite; }
  .lv-star { animation: lv-twinkle var(--d) ease-in-out var(--dl) infinite alternate; }
  .lv-spark { animation-name: lv-sparkle; }
  .lv-gust { animation: lv-gust 19s ease-in-out infinite; }
  .lv-gust-2 { animation-duration: 23s; animation-delay: -9s; }
  .lv-moon-core { animation-duration: 4s; }
  .lv-moon, .lv-sun, .lv-haze, .lv-light { animation: lv-breathe 9s ease-in-out infinite alternate; }
  .lv-water { animation: lv-breathe 3.4s ease-in-out infinite alternate; }
  .lv-flame { animation: lv-flicker 2.8s linear infinite; }
  .lv-shoot { animation: lv-shoot 13s linear 5s infinite; }
  .lv-shoot-2 { rotate: 24deg; animation-duration: 17s; animation-delay: 11s; }
  .lv-mote { animation: lv-mote var(--d) linear var(--dl) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-drift, .lv-shoot, .lv-mote, .lv-gust { display: none; }
  .lv-moon, .lv-sun, .lv-haze, .lv-light, .lv-flame, .lv-water { animation: lv-breathe 12s ease-in-out infinite alternate; }
  .lv-star { animation: lv-twinkle 6s ease-in-out infinite alternate; animation-delay: var(--dl); }
}
.live-scene.is-away *, .c-scene:not(.is-on) * { animation-play-state: paused !important; }
@media (max-width: 900px) {
  .c-hero { min-height: 80svh; }
  .c-title { font-size: var(--hero-sm); }
  .c-phrase { grid-column: 1 / -1; }
  .c-hero .hero-tag { position: static; grid-column: 1 / -1; justify-self: start; margin-top: 28px; }
}

/* ---------- The catalogue ---------- */
.c-body { padding: 0 0 clamp(120px, 12vw, 180px); }
.filter { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px var(--margin); background: var(--paper); }
.filter-btn { min-height: 40px; padding: 0 14px; border: 0; background: var(--paper-2); color: var(--ink); cursor: pointer; font-weight: 400; font-size: var(--label); letter-spacing: 0.04em; text-transform: none; font-family: var(--caps); font-variant-caps: small-caps; transition: background-color 180ms ease, color 180ms ease; }
.filter-btn .num { letter-spacing: 0; margin-left: 4px; color: var(--ink-soft); }
.filter-btn:hover { background: #DDD2BA; }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-btn[aria-pressed="true"] .num { color: var(--paper); }
@media (max-width: 760px) { .filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .filter-btn { flex: none; } }

.band { background: var(--paper-2); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; padding: clamp(100px, 11vw, 160px) var(--margin); }
.band-title { grid-column: 1 / span 8; font-size: var(--mid); line-height: 0.9; }
.band p { grid-column: 9 / -1; max-width: 32ch; }
.band .tag { grid-column: 9 / -1; justify-self: start; }
@media (max-width: 900px) { .band-title, .band p, .band .tag { grid-column: 1 / -1; } }

/* ---------- Series ---------- */
.s-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; color: var(--light); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-content: end; padding: 120px var(--margin) clamp(40px, 5vw, 72px); }
.s-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28, 43, 90, 0.3); }
.s-lead { position: absolute; top: 15svh; right: 14vw; width: clamp(180px, 22vw, 360px); transform: rotate(2deg); z-index: 0; }
.s-lead img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.s-title { grid-column: 1 / -1; position: relative; z-index: 1; font-size: var(--hero); line-height: 0.8; }
.s-meta { grid-column: 1 / span 5; margin-top: 32px; display: grid; gap: 10px; position: relative; z-index: 1; }
.s-line { font-size: var(--phrase); line-height: 1.1; letter-spacing: -0.02em; max-width: 22ch; }
.s-works { padding: clamp(40px, 5vw, 80px) 0 0; }
.s-works .cat-grid { padding-top: clamp(80px, 8vw, 120px); }
.s-next { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; padding: clamp(140px, 14vw, 220px) var(--margin) clamp(100px, 10vw, 160px); transition: color 200ms ease; }
.s-next .label { grid-column: 1 / -1; color: var(--ink-soft); margin-bottom: 18px; }
.s-next-title { grid-column: 1 / span 9; font-size: var(--head); }
.s-next img { grid-column: 10 / span 2; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transform: rotate(-2deg); transition: transform 600ms var(--ease); }
.s-next:hover { color: var(--ink-soft); }
.s-next:hover img { transform: rotate(0deg) scale(1.03); }
@media (max-width: 900px) {
  .s-lead { top: 110px; right: var(--margin); width: 46vw; }
  .s-meta { grid-column: 1 / -1; }
  .s-next-title { grid-column: 1 / -1; }
  .s-next img { grid-column: 8 / -1; margin-top: 32px; }
}

/* ---------- Artwork ---------- */
.p-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.p-stage { position: sticky; top: 0; height: 100svh; isolation: isolate; overflow: hidden; display: grid; place-items: center; }
.p-art { width: auto; max-width: min(62%, 560px); max-height: 74svh; aspect-ratio: 3 / 4; object-fit: cover; transform: rotate(-1.5deg); }
.guide-cover { aspect-ratio: auto; object-fit: contain; }
.p-panel { padding: 120px var(--margin) 96px; display: grid; gap: 28px; align-content: start; min-width: 0; }
.crumbs { color: var(--ink-soft); }
.crumbs .link { text-decoration-color: transparent; }
.crumbs .link:hover { text-decoration-color: currentColor; }
.p-title { font-family: var(--display); font-weight: 400; text-transform: none; font-size: var(--mid); line-height: 0.88; letter-spacing: -0.01em; }
.p-price { display: flex; gap: 14px; align-items: baseline; color: var(--ink-soft); }
.p-price .label { color: var(--ink); }
.p-price [data-price] { color: var(--ink); font-size: var(--lead, 1.25rem); }

/* Markets: Egypt in EGP, everywhere else in euros. Both texts are in the page; the visitor's market shows (main.js). */
.mk-intl { display: none; }
:root[data-market="intl"] .mk-eg { display: none; }
:root[data-market="intl"] .mk-intl { display: revert; }
:root[data-market="intl"] div.mk-intl { display: block; }
.p-market { color: var(--ink-soft); margin-top: -20px; }
/* Global site: apparel ships in Egypt only */
.eg-only { color: var(--ink-soft); }
.p-eg { color: var(--ink-soft); margin-top: -20px; }
.p-eg .eg-only { color: var(--ink); }
.a-text .label + .eg-only { margin-top: -12px; }   /* sits with the kind label, 4px apart (grid gap 16) */
button.link { background: none; border: 0; padding: 0; cursor: pointer; }
.mat-soon { display: none; font-size: var(--label); color: var(--ink-soft); font-style: italic; }
.mat-choice.is-soon { cursor: not-allowed; }
.mat-choice.is-soon img, .mat-choice.is-soon .mat-line { opacity: 0.45; }
.mat-choice.is-soon .mat-soon { display: block; }
.mat-choice.is-soon:hover { background: var(--paper-2); }
.m-spec { margin-top: 18px; display: grid; gap: 14px; }
.m-facts { display: grid; gap: 4px; color: var(--ink-soft); font-size: var(--label); line-height: 1.45; }
.m-prices { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.m-prices strong { font-weight: 500; }
.p-form { display: grid; gap: 32px; }
.opt legend { color: var(--ink-soft); margin-bottom: 12px; padding: 0; }

.mat-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mat-choice { position: relative; display: grid; gap: 4px; align-content: start; padding: 10px 10px 14px; background: var(--paper-2); cursor: pointer; outline: 1px solid transparent; transition: outline-color 180ms ease, background-color 180ms ease; }
.mat-choice input, .size-choice input, .pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mat-choice img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; margin-bottom: 8px; }
.mat-name { font-weight: 500; }
.mat-name em, .a-name em { font-style: italic; font-weight: 400; font-size: var(--label); color: var(--ink-soft); text-transform: none; font-family: var(--text); }
.mat-line { font-size: var(--label); line-height: 1.4; color: var(--ink-soft); }
.mat-choice:hover { background: #DDD2BA; }
.mat-choice:has(input:checked) { outline: 2px solid var(--ink); outline-offset: -2px; background: var(--paper); }
.mat-choice:has(input:focus-visible), .size-choice:has(input:focus-visible), .pill:has(input:focus-visible) { outline: 2px solid var(--saffron); outline-offset: 2px; }
@media (max-width: 520px) { .mat-line { display: none; } }

.size-choices { display: grid; gap: 4px; }
.size-choice { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 16px; background: var(--paper-2); cursor: pointer; transition: background-color 180ms ease; }
.size-name { font-family: var(--display); font-size: var(--phrase); line-height: 1; }
.size-cm { font-size: var(--label); color: var(--ink-soft); font-variant-numeric: tabular-nums; text-align: right; }
.size-choice:hover { background: #DDD2BA; }
.size-choice:has(input:checked) { background: var(--ink); color: var(--paper); }
.size-choice:has(input:checked) .size-cm { color: var(--paper); }
.size-choice.is-off { cursor: not-allowed; opacity: 0.45; }
.size-choice.is-off .size-cm::after { content: ", not on Photo Rag"; }

.wall { --w: 42; --h: 59.4; display: grid; gap: 10px; }
.wall-label { color: var(--ink-soft); }
.wall-room { position: relative; aspect-ratio: 4 / 3; background: var(--light); overflow: hidden; }
.wall-room::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink-soft); }
.wall-art { position: absolute; left: 50%; bottom: calc(100 / 240 * 100%); width: calc(var(--w) / 320 * 100%); height: calc(var(--h) / 240 * 100%); object-fit: cover; transform: translateX(-50%); transition: width 450ms var(--ease), height 450ms var(--ease); }
.wall[data-material="canvas"] .wall-art { outline: 2px solid rgba(28, 43, 90, 0.18); }
.wall-sofa { position: absolute; left: 50%; bottom: 0; width: calc(210 / 320 * 100%); transform: translateX(-50%); fill: var(--ink-soft); }
.wall-caption { font-size: var(--label); color: var(--ink-soft); }

.p-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.p-add { min-height: 52px; padding: 0 28px; }
.p-added { font-size: var(--label); line-height: 1.45; max-width: 40ch; }
.p-facts { display: grid; gap: 8px; font-size: var(--label); color: var(--ink-soft); max-width: 46ch; }
.p-mats { padding: clamp(120px, 12vw, 180px) var(--margin); display: grid; gap: 56px; }
.pm-title { font-size: var(--mid); line-height: 0.9; }
.p-mats .fine { justify-self: center; }
.p-tale { padding: clamp(40px, 6vw, 100px) var(--margin) clamp(120px, 12vw, 180px); display: grid; justify-items: center; text-align: center; gap: 22px; }
.p-tale .label { color: var(--ink-soft); }
.pt-title a { transition: color 200ms ease; }
.pt-title a:hover { color: var(--ink-soft); }
.pt-line { font-size: var(--phrase); line-height: 1.15; letter-spacing: -0.02em; max-width: 26ch; }
.float-short { min-height: 86svh; }
@media (max-width: 900px) {
  .p-wrap { grid-template-columns: 1fr; }
  .p-stage { position: relative; height: 82svh; }
  .p-art { max-width: 64%; max-height: 64svh; }
  .p-panel { padding-top: 48px; }
}

/* ---------- Apparel ---------- */
.a-list { display: grid; gap: clamp(100px, 12vw, 180px); padding: clamp(120px, 12vw, 180px) var(--margin); }
.a-item, .m-item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: center; }
.a-pic { grid-column: 1 / span 6; overflow: hidden; }
.a-pic img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 800ms var(--ease); }
.a-pic:hover img { transform: scale(1.03); }
.a-text { grid-column: 8 / span 4; display: grid; gap: 16px; justify-items: start; }
.a-text .label { color: var(--ink-soft); }
.a-text p:not(.label) { max-width: 34ch; }
.a-name { font-family: var(--display); font-weight: 400; text-transform: none; font-size: var(--mid); line-height: 0.88; }
.a-name a { transition: color 200ms ease; }
.a-name a:hover { color: var(--ink-soft); }
.a-flip .a-pic { grid-column: 7 / -1; grid-row: 1; }
.a-flip .a-text { grid-column: 2 / span 4; grid-row: 1; }
@media (max-width: 900px) { .a-pic, .a-text, .a-flip .a-pic, .a-flip .a-text { grid-column: 1 / -1; grid-row: auto; } }
.s-wear { gap: clamp(56px, 6vw, 96px); padding-bottom: 0; }

.g-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.g-set { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.g-set img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--paper-2); }
.g-set img:first-child { grid-column: 1 / -1; aspect-ratio: 5 / 4; }
.g-panel { padding-top: 120px; }
.pill-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; background: var(--paper-2); cursor: pointer; font-weight: 400; font-size: var(--label); letter-spacing: 0.04em; text-transform: none; font-family: var(--caps); font-variant-caps: small-caps; transition: background-color 180ms ease, color 180ms ease; }
.pill:hover { background: #DDD2BA; }
.pill:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fit summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; padding: 14px 16px; background: var(--paper-2); }
.fit summary::-webkit-details-marker { display: none; }
.fit summary .plus { margin-top: 0; }
.fit[open] .plus { transform: rotate(45deg); }
.fit .fit-table { margin: 16px 0 10px; }
.g-story { display: grid; gap: 1em; max-width: 52ch; }
.g-story p:first-child, .gd-lead { font-size: var(--phrase); line-height: 1.15; letter-spacing: -0.02em; }
.g-more { padding: clamp(120px, 12vw, 180px) var(--margin); display: grid; gap: 56px; }
.gm-title { font-size: var(--mid); line-height: 0.9; }
.g-more-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.g-more-row li:nth-child(even) { margin-top: 8vw; }
.g-more-row a { display: grid; justify-items: center; text-align: center; gap: 4px; }
.g-more-row img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 12px; transition: transform 600ms var(--ease); }
.g-more-row a:hover img { transform: scale(1.03); }
.g-more-row .label { color: var(--ink-soft); }
@media (max-width: 900px) {
  .g-wrap { grid-template-columns: 1fr; }
  .g-panel { padding-top: 48px; }
  .g-gallery { padding-top: 76px; }
  .g-set { grid-auto-flow: column; grid-auto-columns: 86%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; }
  .g-set img, .g-set img:first-child { grid-column: auto; aspect-ratio: 1 / 1; scroll-snap-align: start; }
  .g-more-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- The Cairo Guide ---------- */
.inside { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; padding: clamp(120px, 12vw, 180px) var(--margin); align-items: start; }
.inside-title { grid-column: 1 / span 5; position: sticky; top: 40px; }
.inside-list { grid-column: 6 / -1; display: grid; gap: clamp(36px, 4vw, 56px); }
.inside-list li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: baseline; }
.inside-big { font-family: var(--display); font-weight: 400; text-transform: none; font-size: var(--sub); line-height: 0.9; }
@media (max-width: 900px) { .inside-title, .inside-list { grid-column: 1 / -1; position: static; } .inside-list li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Our story ---------- */
.st-open { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(64px, 8vw, 120px); padding: clamp(120px, 12vw, 180px) var(--margin); }
.st-big { grid-column: 2 / span 9; font-size: var(--phrase); line-height: 1.2; letter-spacing: -0.02em; text-indent: 3em; }
.st-cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.st-cols p { grid-column: 2 / span 5; max-width: 40ch; }
.st-cols img { grid-column: 8 / span 3; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transform: rotate(2deg); }
.journeys { padding: 0 var(--margin) clamp(120px, 12vw, 180px); display: grid; gap: clamp(48px, 6vw, 80px); }
.jr-label { color: var(--ink-soft); }
.jr-list { display: grid; gap: clamp(28px, 3vw, 44px); padding: 0; margin: 0; list-style: none; }
.jr-list li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: baseline; }
.jr-place { grid-column: 1 / span 8; font-size: var(--big); line-height: 0.86; }
.jr-list li:nth-child(even) .jr-place { padding-left: 1.2em; }
.jr-what { grid-column: 9 / -1; max-width: 30ch; }
.jr-foot { max-width: 52ch; justify-self: end; }
/* Our story: China follows Persia's indent, and the closing note starts on the descriptions' line (column 9 of 12). */
.journeys .jr-list li:last-child .jr-place { padding-left: 1.2em; }
.journeys .jr-foot { justify-self: start; max-width: none; margin-left: calc((100% - 11 * 24px) / 12 * 8 + 8 * 24px); }
.problem { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; color: var(--light); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-content: center; padding: clamp(120px, 12vw, 180px) var(--margin); }
.problem::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28, 43, 90, 0.42); }
.problem-title { grid-column: 1 / -1; }
.problem-text { grid-column: 7 / span 5; display: grid; gap: 1em; max-width: 44ch; }
.founders { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: center; padding: clamp(120px, 12vw, 180px) var(--margin); overflow-x: clip; }
.founders .oval { grid-column: 2 / span 4; width: min(100%, 400px); }
.founders-text { grid-column: 7 / -1; display: grid; gap: 1em; justify-items: start; max-width: 46ch; }
.founders-title { font-size: var(--mid); line-height: 0.9; margin-bottom: 0.3em; }
.founders-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (max-width: 900px) {
  .st-big, .st-cols p, .problem-text, .founders-text { grid-column: 1 / -1; }
  .st-cols img { grid-column: 4 / span 6; margin-top: 40px; }
  .jr-place, .jr-what { grid-column: 1 / -1; }
  .jr-what { margin-top: 10px; }
  /* an indented place keeps its description under it */
  .journeys .jr-list li:nth-child(even) .jr-what, .journeys .jr-list li:last-child .jr-what { padding-left: calc(var(--big) * 1.2); }
  .journeys .jr-foot { margin-left: 0; }
  .founders .oval { grid-column: 1 / -1; justify-self: center; width: 260px; }
}

/* ---------- For your space ---------- */
.offers { padding: clamp(120px, 12vw, 180px) var(--margin); display: grid; gap: clamp(80px, 9vw, 140px); }
.offer-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.offer-list li { display: grid; gap: 18px; }
.offer-list li:nth-child(2) { margin-top: 8vw; }
.offer-list li:nth-child(3) { margin-top: 3vw; }
.offer-name { font-size: var(--mid); line-height: 0.9; }
.offer-list p { max-width: 30ch; }
.partners { display: grid; justify-items: center; text-align: center; gap: 10px; }
.partners .label { color: var(--ink-soft); margin-bottom: 8px; }
.partner { font-family: var(--display); font-weight: 400; text-transform: none; font-size: var(--sub); line-height: 0.95; }
.partner-note { font-family: var(--text); font-size: var(--label); letter-spacing: 0; color: var(--ink-soft); white-space: nowrap; }
.steps { background: var(--paper-2); padding: clamp(120px, 12vw, 180px) var(--margin); display: grid; gap: 64px; }
.steps-title { font-size: var(--mid); line-height: 0.9; }
.step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 0; margin: 0; list-style: none; }
.step-list li { display: grid; gap: 12px; align-content: start; }
.step-n { font-size: var(--head); line-height: 0.8; font-weight: 300; }
.step-list h3 { font-family: var(--text); font-weight: 500; font-size: var(--phrase); line-height: 1.1; letter-spacing: -0.02em; }
.step-list p { max-width: 32ch; }
@media (max-width: 900px) { .offer-list, .step-list { grid-template-columns: 1fr; } .offer-list li:nth-child(n) { margin-top: 0; } }

/* ---------- The Studio: what we make for other brands and spaces ----------
   Four chapters, each told with Blue Cairo's own work. Night for the stories, parchment for the websites,
   the apparel's tone step, parchment again for the spaces. */
.sv-open { padding: clamp(120px, 12vw, 180px) var(--margin) clamp(100px, 10vw, 160px); display: grid; gap: clamp(64px, 7vw, 110px); }
.sv-lead { max-width: 34ch; margin-left: calc(100% / 12); font-size: var(--phrase); line-height: 1.2; letter-spacing: -0.015em; }
.sv-index .jr-place { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .sv-index .jr-place:hover { color: var(--ink-soft); } }

.sv-ch { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: clamp(64px, 7vw, 110px); padding: clamp(120px, 12vw, 180px) var(--margin); scroll-margin-top: 0; }
.sv-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; }
.sv-title { grid-column: 1 / span 8; font-size: var(--big); line-height: 0.9; }
.sv-say { grid-column: 9 / -1; max-width: 32ch; }
.sv-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; }
.sv-foot .sv-does { grid-column: 1 / span 6; }
.sv-foot .tag { grid-column: 9 / -1; justify-self: start; }
.sv-does { display: grid; gap: 8px; max-width: 44ch; }
.sv-does li { display: grid; grid-template-columns: 1.3em 1fr; }
.sv-does li::before { content: ""; width: 0.78em; height: 0.85em; margin-top: 0.4em; background: var(--saffron); -webkit-mask: url("assets/star-mask.svg") center / contain no-repeat; mask: url("assets/star-mask.svg") center / contain no-repeat; }   /* the Blue Cairo logo star, as the list mark */
.sv-cap { font-size: var(--label); line-height: 1.45; color: var(--ink-soft); margin-top: 14px; max-width: 34ch; }

/* Stories and video: written, painted, filmed, under the night sky */
.sv-stories { color: var(--light); }
.sv-stories::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(16, 26, 58, 0.5); }
.sv-stories .sv-cap, .sv-stories .partner-note { color: var(--light); }
.sv-stories .label { color: var(--light); margin-bottom: 18px; }
.sv-stories .tag-ink { background: var(--saffron); color: var(--ink); }
.sv-make { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(56px, 6vw, 96px); padding: 0; margin: 0; list-style: none; align-items: start; }
.sv-written { grid-column: 1 / span 5; align-self: center; }
.sv-written blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: var(--phrase); line-height: 1.25; max-width: 24ch; }
.sv-painted { grid-column: 7 / span 4; }
.sv-painted img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transform: rotate(1.5deg); }
.sv-filmed { grid-column: 1 / -1; }
.sv-reels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.sv-reels li:nth-child(1) { grid-column: 2 / span 3; transform: rotate(-2deg); }
.sv-reels li:nth-child(2) { grid-column: 6 / span 3; margin-top: 8vw; transform: rotate(1deg); }
.sv-reels li:nth-child(3) { grid-column: 10 / span 3; margin-top: 2vw; transform: rotate(-1deg); }
.sv-reel { position: relative; display: block; }
.sv-reel img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; transition: transform 400ms var(--ease); }
.sv-play { position: absolute; left: 12px; bottom: 12px; padding: 8px 14px; background: var(--saffron); color: var(--ink); font-family: var(--caps); font-variant-caps: small-caps; font-size: var(--label); letter-spacing: 0.04em; line-height: 1.2; transition: transform 140ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .sv-reel:hover img { transform: scale(1.02); } }
.sv-reel:active .sv-play { transform: scale(0.97); }
.sv-reels iframe { display: block; width: 100%; aspect-ratio: 4 / 7; border: 0; background: var(--paper); }

/* Websites: this site, in three screens */
.sv-screens { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.sv-screens img { width: 100%; height: auto; box-shadow: 0 30px 60px rgba(28, 43, 90, 0.18); }   /* taste-skill-ignore: screens float above the page like the tales */
.sv-screens .sc0 { grid-column: 1 / span 7; transform: rotate(-1deg); }
.sv-screens .sc1 { grid-column: 8 / span 5; margin-top: 14vw; transform: rotate(1.2deg); }
.sv-screens .sc2 { grid-column: 3 / span 4; margin-top: -2vw; transform: rotate(-0.6deg); }

/* Apparel for brands: the garments float as on the home page */
.sv-wear { background: var(--paper-2); }
.sv-wear-row li:nth-child(4) { grid-column: 3 / span 3; }
.sv-wear-row li:nth-child(5) { grid-column: 8 / span 4; margin-top: 4vw; }

/* Art for spaces: one tale in each material, and the spaces that hang them */
.sv-mats img { width: 70%; margin-bottom: 18px; }
.sv-mats h3 { font-size: var(--phrase); }

@media (max-width: 900px) {
  .sv-lead { margin-left: 0; }
  .sv-title, .sv-say, .sv-foot .sv-does, .sv-foot .tag, .sv-written, .sv-painted { grid-column: 1 / -1; }
  .sv-painted { width: 78%; }
  .sv-reels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 4px 16px; margin: 0 calc(var(--margin) * -1); padding-inline: var(--margin); }
  .sv-reels li:nth-child(n) { grid-column: auto; margin-top: 0; scroll-snap-align: start; }
  .sv-screens .sc0, .sv-screens .sc1, .sv-screens .sc2 { grid-column: 1 / -1; margin-top: 0; }
  .sv-screens { row-gap: 48px; }
  .sv-screens .sc1 { width: 82%; justify-self: end; }
  .sv-screens .sc2 { width: 72%; }
}

/* ---------- Materials & sizes ---------- */
.m-list { display: grid; gap: clamp(100px, 11vw, 160px); padding: clamp(120px, 12vw, 180px) var(--margin) clamp(60px, 6vw, 100px); }
.m-item > img { grid-column: 1 / span 8; width: 100%; height: auto; }
.m-item .a-text { grid-column: 10 / -1; }
.m-item.a-flip > img { grid-column: 5 / -1; grid-row: 1; }
.m-item.a-flip .a-text { grid-column: 1 / span 3; grid-row: 1; }
.m-fine { justify-self: center; }
.m-wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; padding: clamp(80px, 8vw, 120px) var(--margin); align-items: start; }
.mw-title { grid-column: 1 / span 5; font-size: var(--mid); line-height: 0.9; position: sticky; top: 40px; }
.m-form { grid-column: 6 / -1; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
.m-table, .m-fit { padding-top: clamp(80px, 8vw, 120px); padding-bottom: clamp(80px, 8vw, 120px); }
.sizes thead th { font-weight: 400; font-size: var(--label); letter-spacing: 0.04em; text-transform: none; font-family: var(--caps); font-variant-caps: small-caps; color: var(--ink-soft); }
.table-scroll { overflow-x: auto; max-width: 100%; }
@media (max-width: 900px) {
  .mw-title, .m-form { grid-column: 1 / -1; position: static; }
  .m-form { grid-template-columns: 1fr; }
  .m-item > img, .m-item.a-flip > img, .m-item .a-text, .m-item.a-flip .a-text { grid-column: 1 / -1; grid-row: auto; }
  .m-table .sizes { font-size: var(--label); }
  .m-table .sizes th, .m-table .sizes td { padding: 8px 6px; }
}

/* ---------- Help ---------- */
.h-hero { min-height: 64svh; }
.faq-group { padding-top: clamp(80px, 8vw, 120px); padding-bottom: 0; }
.faq-sub { font-size: var(--sub); }
.h-contact { display: grid; justify-items: center; text-align: center; gap: 28px; padding: clamp(140px, 14vw, 200px) var(--margin); }
.h-contact-title { font-size: var(--head); }
.h-mail { font-size: var(--phrase); }

/* ---------- Policies ---------- */
.policy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; padding: 150px var(--margin) clamp(120px, 12vw, 180px); align-items: start; }
.policy-nav { grid-column: 1 / span 3; position: sticky; top: 40px; display: grid; gap: 12px; }
.policy-nav .label { color: var(--ink-soft); }
.policy-nav ul { display: grid; gap: 8px; }
.policy-nav .link { text-decoration-color: transparent; }
.policy-nav .link:hover, .policy-nav [aria-current] { text-decoration-color: currentColor; }
.policy-body { grid-column: 5 / span 7; display: grid; gap: 32px; min-width: 0; }
.policy-title { font-size: var(--mid); line-height: 0.9; }
.policy-note { font-size: var(--phrase); line-height: 1.2; letter-spacing: -0.02em; max-width: 34ch; }
.prose { display: grid; gap: 1em; max-width: 66ch; min-width: 0; }
.prose h2, .prose h3 { font-family: var(--text); font-weight: 500; font-size: var(--lead); line-height: 1.25; margin-top: 1.2em; }
.prose h3 { font-size: 1.1em; }
/* Policy pages: a region (Egypt, outside Egypt) opens a part of the page */
.prose h2.part { font-family: var(--display); font-weight: 400; font-size: var(--sub); line-height: 1; margin-top: 1.6em; padding-top: 32px; border-top: 1px solid var(--line, rgba(28, 43, 90, 0.18)); }
.prose > h2.part:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 0.4em; }
.prose .fees { font-size: var(--label); }
.prose .fees th, .prose .fees td { padding: 10px 14px; white-space: nowrap; }
@media (max-width: 900px) { .policy-nav, .policy-body { grid-column: 1 / -1; position: static; } .policy { padding-top: 110px; } }

/* ---------- Bag ---------- */
.bag { padding: 150px var(--margin) clamp(120px, 12vw, 180px); display: grid; gap: 56px; }
.bag-title { font-size: var(--head); }
.bag-title:focus { outline: none; }
.bag-list { display: grid; gap: 4px; max-width: 1080px; }
.bag-list:empty { display: none; }
.bag-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 24px; align-items: center; padding: 14px; background: var(--paper-2); }
.bag-item img { width: 96px; height: 120px; object-fit: cover; }
.bag-text { display: grid; gap: 4px; }
.bag-name { font-size: var(--phrase); line-height: 1.1; letter-spacing: -0.02em; }
.bag-text .label { color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty .num { min-width: 2ch; text-align: center; font-size: var(--body); }
.qty-btn { width: 40px; height: 40px; border: 0; background: var(--paper-2); cursor: pointer; font-size: var(--body); transition: background-color 180ms ease; }
.qty-btn:hover { background: #DDD2BA; } .bag-item .qty-btn { background: var(--paper); }
.bag-foot { display: grid; gap: 16px; justify-items: start; max-width: 1080px; }
.bag-note { max-width: 46ch; color: var(--ink-soft); }
.bag-warn { max-width: 52ch; }
.bag-checkout { background: var(--saffron); min-height: 52px; padding: 0 28px; }
.bag-checkout:hover { background: var(--saffron-hover); }
.bag-empty { display: grid; gap: 40px; justify-items: start; }
.bag-empty-line { font-size: var(--phrase); letter-spacing: -0.02em; }
.bag-empty-row { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 24px; }
@media (max-width: 760px) {
  .bag-item { grid-template-columns: 72px minmax(0, 1fr); gap: 14px 16px; }
  .bag-item img { width: 72px; height: 90px; }
  .qty { grid-column: 2; }
  .bag-remove { grid-column: 2; justify-self: start; }
  .bag-empty-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 404 ---------- */
.lost { min-height: 100svh; }
.lost-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.lost-links .hero-tag { position: static; }

/* Motion for the inner pages */
@media (prefers-reduced-motion: no-preference) {
  .js .c-title > span, .js .c-phrase span, .js .s-title > span { opacity: 0; transform: translateY(0.4em); animation: rise 1100ms var(--ease) forwards; }
  .js .c-title > span:nth-child(2), .js .s-title > span:nth-child(2) { animation-delay: 160ms; }
  .js .c-phrase span:nth-child(1) { animation-delay: 600ms; }
  .js .c-phrase span:nth-child(2) { animation-delay: 680ms; }
  .js .c-phrase span:nth-child(3) { animation-delay: 760ms; }
  .js .c-phrase span:nth-child(4) { animation-delay: 840ms; }
  .s-lead { animation: lead-in 1600ms var(--ease) 300ms both; }
  @keyframes lead-in { from { opacity: 0; transform: translateY(40px) rotate(4deg); } to { opacity: 1; transform: rotate(2deg); } }
  .p-art { animation: drift 9s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: rotate(-1.5deg) translateY(-8px); } to { transform: rotate(-0.6deg) translateY(8px); } }
}

/* Pass-1 fixes */
.pt-title a > span { display: block; }
.pt-title .indent { padding-left: 0; }
.g-gallery { padding-top: 76px; }
.g-set img:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 5 / 4; }
.g-story p:first-child { font-size: var(--lead); line-height: 1.4; letter-spacing: -0.01em; }
.problem::after { background: rgba(28, 43, 90, 0.5); }
.lost-links .hero-tag { margin-top: 0; }
.prose .table-scroll { justify-self: stretch; }
.prose .fees { justify-self: auto; margin: 0; }
.prose .fees th[scope="row"] { white-space: normal; min-width: 7.5em; }
@media (max-width: 760px) { .h-contact-title { font-size: var(--sub); } }
.prose .fees thead th { white-space: normal; } .prose .fees th, .prose .fees td { padding: 10px; }
.p-from { margin-top: -12px; }
.opt legend { color: var(--ink); font-size: var(--body); }
.p-facts, .p-added, .wall-caption { font-size: var(--body); color: var(--ink); }
.p-facts { gap: 10px; }
.size-cm, .mat-line { font-size: var(--small); } .mat-line { color: var(--ink); line-height: 1.35; } .size-choice:has(input:checked) .size-cm { color: var(--paper); }

/* Pass-2: labels folded into sentences, more pictures on the quiet pages */
.s-count { color: var(--light); }
.s-next-title { font-size: var(--big); }
.s-next-line { grid-column: 1 / span 7; margin-top: 24px; max-width: 40ch; }
@media (max-width: 900px) { .s-next-line { grid-column: 1 / -1; } }
.faq-head { grid-column: 1 / span 6; display: grid; gap: 32px; justify-items: start; }
.faq-head .faq-title { grid-column: auto; }
.faq-art { width: clamp(120px, 14vw, 200px); aspect-ratio: 3 / 4; object-fit: cover; transform: rotate(-2deg); margin-left: 1.4em; }
.faq-group:nth-of-type(odd) .faq-art { transform: rotate(1.5deg); margin-left: 4em; }
@media (max-width: 900px) { .faq-head { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: end; } .faq-art { width: 92px; margin: 0; } }
.partners-line { font-size: var(--phrase); letter-spacing: -0.02em; margin-top: 10px; }
.policy { padding-top: clamp(80px, 8vw, 120px); }
.policy-tales { padding: 0 var(--margin) clamp(120px, 12vw, 180px); display: grid; justify-items: center; }
.lost-tales { position: absolute; right: var(--margin); top: 16svh; display: flex; gap: clamp(16px, 2vw, 32px); z-index: 0; }
.lost-tales li:nth-child(1) { transform: rotate(-3deg) translateY(4vh); }
.lost-tales li:nth-child(2) { transform: rotate(1.5deg); }
.lost-tales li:nth-child(3) { transform: rotate(-1deg) translateY(10vh); }
.lost-tales img { width: clamp(90px, 10vw, 170px); aspect-ratio: 3 / 4; object-fit: cover; }
.lost .c-title, .lost .c-phrase, .lost-links { position: relative; z-index: 1; }
@media (max-width: 900px) { .lost-tales { top: 96px; left: var(--margin); right: auto; } }
.foot-legal { font-size: var(--small); }
@media (prefers-reduced-motion: no-preference) {
  .js .bag-title > span { opacity: 0; transform: translateY(0.4em); animation: rise 1100ms var(--ease) forwards; }
  .js .bag-title > span:nth-child(2) { animation-delay: 160ms; }
  .lost-tales li { animation: bob 7s ease-in-out infinite alternate; }
  .lost-tales li:nth-child(2) { animation-delay: -2.4s; }
  .lost-tales li:nth-child(3) { animation-delay: -4.8s; }
}
.s-next-title { position: relative; z-index: 1; }
.foot-legal { color: var(--ink); }
.s-next-title { line-height: 1; }
@media (min-width: 901px) { .split .bar-right .bar-link { color: var(--ink); } }
.p-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28, 43, 90, 0.2); }

/* ---------- Drifting clouds in the dawn scene (home) ----------
   Each plate is a 200%-wide strip whose tile is mirrored end to end, so sliding it
   by half its width loops with no seam. Far and near sit behind the tales, front passes over them. */
.drift { position: absolute; left: 0; aspect-ratio: 18 / 1; width: auto; pointer-events: none; background-repeat: repeat-x; background-size: 33.3333% 100%; will-change: transform; }
.drift-far { z-index: 0; top: 47%; height: 26vh; background-image: url("assets/clouds/bank.webp"); opacity: 0.55; }
.drift-near { z-index: 0; top: 55%; height: 34vh; background-image: url("assets/clouds/bank.webp"); background-position: 40% 0; opacity: 0.75; }
.drift-front { z-index: 2; top: 60%; height: 30vh; background-image: url("assets/clouds/mist.webp"); opacity: 0.5; }
.float-clouds .float-row { position: relative; z-index: 1; }
.float-clouds .float-hint { z-index: 3; }
/* On a phone the dawn is cropped towards its left edge, so the drape stays in the picture */
@media (max-width: 760px) { .float-clouds .scene { object-position: 12% 50%; } }
@media (max-width: 760px) { .drift-far { top: 44%; height: 18vh; } .drift-near { top: 50%; height: 22vh; } .drift-front { top: 56%; height: 20vh; opacity: 0.4; } }
@media (prefers-reduced-motion: no-preference) {
  .drift-far { animation: cloud-drift 240s linear infinite; }
  .drift-near { animation: cloud-drift 150s linear infinite; animation-delay: -60s; }
  .drift-front { animation: cloud-drift 95s linear infinite; }
  @keyframes cloud-drift { from { transform: translateX(-33.3333%); } to { transform: translateX(0); } }
}

/* ---------- The hall in the clouds (home) ----------
   Fog falls slowly from above, settles on the floor and glides forward and to the right.
   main.js simulates it on this canvas; without motion, the hall is shown as photographed. */
.sky { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .sky { display: block; position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
  .sky canvas { width: 100%; height: 100%; }
  .hero-title, .hero-phrase { text-shadow: 0 0 40px rgba(54, 34, 18, 0.5); }   /* keeps the type clear when mist passes behind it */
}

/* ---------- The wind (home) ----------
   One wind blows left to right through the dawn scene: the clouds above, the drape and the smoke.
   main.js builds both pieces and only when motion is allowed; without it the scene stays as photographed. */
.drape { position: absolute; z-index: -1; pointer-events: none; }
.drape img, .drape canvas { position: absolute; }
.drape img { inset: 0; width: 100%; height: 100%; }

/* Clouds rise from below as the hall gives way to the dawn, cover the change, then lift away.
   Each layer is a canvas of billowing puffs scattered by main.js: a few at the crest, packed below. */
.smoke { position: fixed; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; visibility: hidden; }
.smoke.is-on { visibility: visible; }
/* Mist in the dawn's cloud tone, only at full cover, behind the billows so they still show */
.smoke-veil { position: absolute; inset: 0; opacity: 0; background: radial-gradient(120% 90% at 50% 40%, #E6DFD3, #D9D2C6); }
.smoke-layer { position: absolute; left: -10%; width: 120%; top: 100%; height: 180vh; will-change: transform, opacity;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 30vh), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 30vh), transparent); }
.lv-river { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }   /* the redrawn river, over its photograph */

/* ---------- Stories in the headers (tools/stories.mjs) ----------
   Birds cross the sky, the caravan crosses the night desert, the king shows his guest the city. The stage is centred
   on the header, so travel is measured from its middle in container units (cqw) and crosses only what is visible. */
.lv-flock { position: absolute; left: 50%; width: 0; height: 0; }
.lv-bird { position: absolute; width: calc(1.25cqw * var(--s)); aspect-ratio: 2 / 1; }
.lv-bird svg, .lv-train svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lv-wing { transform-box: fill-box; transform-origin: center; }
.lv-caravan { position: absolute; left: 50%; top: 60.4%; width: 0; height: 9.6%; }
.lv-train { position: absolute; top: 0; left: 0; height: 100%; aspect-ratio: 680 / 132; }
.lv-silhouette { fill: #0a1022; stroke: #0a1022; }
.lv-lamp-body { fill: url(#lamp-gold); stroke: none; }
.lv-lamp-glow { fill: url(#lamp-glow); stroke: none; }
.lv-smoke { fill: rgba(226, 222, 236, 0.7); stroke: none; transform-box: fill-box; transform-origin: center; opacity: 0; }
.lv-story { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lv-door-l { transform-origin: 486px 0; }
.lv-door-r { transform-origin: 584px 0; }
.lv-hall, .lv-walker { opacity: 0; }
.lv-arm { transform-origin: 13px -88px; }
@keyframes lv-fly { 0% { transform: translate(-64cqw, 0); } 50% { transform: translate(0, -3cqh); } 100% { transform: translate(64cqw, 1.5cqh); } }
@keyframes lv-fly-left { 0% { transform: translate(64cqw, 0); } 50% { transform: translate(0, -3cqh); } 100% { transform: translate(-64cqw, 1.5cqh); } }
@keyframes lv-flap { from { transform: scaleY(1); } to { transform: scaleY(-0.55); } }
@keyframes lv-cross { 0% { transform: translateX(58cqw); } 86% { transform: translateX(calc(-58cqw - 100%)); } 100% { transform: translateX(calc(-58cqw - 100%)); } }
@keyframes lv-leg { from { transform: skewX(11deg); } to { transform: skewX(-11deg); } }   /* legs swing from below the belly */
@keyframes lv-nod { from { transform: translateY(-0.8px); } to { transform: translateY(0.8px); } }
@keyframes lv-smoke { 0% { opacity: 0; transform: translate(0, 0) scale(0.6); } 12% { opacity: 0.6; } 100% { opacity: 0; transform: translate(46px, -26px) scale(3.6); } }
@keyframes lv-lamp { from { opacity: 0.75; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .lv-flock { animation: lv-fly 34s linear infinite; }
  .lv-flock-left { animation-name: lv-fly-left; }
  .lv-wing { animation: lv-flap var(--flap) ease-in-out var(--fl) infinite alternate; }
  .lv-train { animation: lv-cross 78s linear -14s infinite; }
  .lv-leg-a { animation: lv-leg 0.75s ease-in-out var(--ph) infinite alternate; }
  .lv-leg-b { animation: lv-leg 0.75s ease-in-out var(--ph) infinite alternate-reverse; }
  .lv-gait { animation: lv-nod 0.375s ease-in-out var(--ph) infinite alternate; }
  .lv-smoke { animation: lv-smoke 4.3s linear infinite; }
  .lv-lamp-glow { animation: lv-lamp 0.9s ease-in-out infinite alternate; }
  .lv-door-l, .lv-door-r { animation: lv-door-l 32s ease-in-out infinite; }
  .lv-hall { animation: lv-hall 32s ease-in-out infinite; }
  .lv-walker-k { animation: lv-king-walk 32s linear infinite, lv-king-fade 32s linear infinite; }
  .lv-walker-g { animation: lv-guest-walk 32s linear infinite, lv-guest-fade 32s linear infinite; }
  .lv-king .lv-arm { animation: lv-gesture 32s ease-in-out infinite; }
  .lv-guest .lv-robe { transform-origin: 0 0; animation: lv-turn 32s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) { .lv-flock, .lv-caravan { display: none; } }
.lv-sand-night { filter: sepia(0.5) saturate(0.8) brightness(0.55); }   /* blown sand under the moon */
.lv-arch-iwan { left: 37%; top: 55.5%; width: 29%; height: 30%; clip-path: inset(0 round 50% 50% 0 0 / 30% 30% 0 0); container-type: size; }   /* the sky in the iwan's arch */
.lv-lamp-core { fill: #fff0b0; stroke: none; }   /* the lamp itself, brighter than the moonlit rider who holds it */

/* ---------- Filmed loops in the collection headers (assets/clips, LTX 2.5) ----------
   The video sits exactly over its picture and fades in once it is playing, so the swap is never seen. */
.lv-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms ease; pointer-events: none; }
.lv-clip.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lv-clip { display: none; } }

/* ---------- Wishlist ----------
   "Save to wishlist" sits beside "Add to bag" as a quiet text action. Its mark is the logo's own star: drawn in
   outline while unsaved, filled with saffron once saved. */
.keep { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 4px; background: none; border: 0; color: var(--ink); cursor: pointer; font-family: var(--caps); font-variant-caps: small-caps; font-size: var(--label); letter-spacing: 0.04em; }
.keep-star { width: 24px; height: 26px; flex: none; fill: transparent; stroke: currentColor; stroke-width: 26; stroke-linejoin: round; overflow: visible; transition: fill 200ms ease-out, transform 200ms ease-out; }
.keep:hover .keep-star { fill: rgba(233, 162, 59, 0.35); }
.keep[aria-pressed="true"] .keep-star { fill: var(--saffron); }
.keep.is-just .keep-star { animation: keep-pop 320ms ease-out; }
@keyframes keep-pop { 40% { transform: scale(1.25) rotate(-8deg); } }
.keep[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.wish-why { max-width: 46ch; color: var(--ink-soft); margin-top: -16px; }
.wish-demo { max-width: 60ch; margin-top: -24px; }
.wish .bag-item { grid-template-columns: 96px minmax(0, 1fr) auto; }
@media (prefers-reduced-motion: reduce) { .keep-star { transition: none; } .keep.is-just .keep-star { animation: none; } }
@media (max-width: 760px) { .wish .bag-item { grid-template-columns: 72px minmax(0, 1fr); } }
.p-added a { white-space: nowrap; }

/* ---------- ARt Viewer (art pages) ----------
   A quiet outlined button under the wall sketch; it opens a parchment sheet with the viewer's two ways in,
   set as two lines of display type rather than cards. */
.see-wall { justify-self: start; margin-top: -16px; min-height: 48px; padding: 0 24px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-family: var(--caps); font-variant-caps: small-caps; font-size: var(--label); letter-spacing: 0.04em; transition: background-color 200ms ease, color 200ms ease; }
.see-wall:hover { background: var(--ink); color: var(--paper); }
.see-wall:active { transform: scale(0.97); }
.viewer { width: min(100vw - 32px, 640px); max-height: calc(100dvh - 32px); margin: auto; padding: clamp(24px, 4vw, 48px); border: 0; background: var(--paper); color: var(--ink); }
.viewer::backdrop { background: rgba(28, 43, 90, 0.4); }
.viewer[open] { animation: viewer-in 300ms var(--ease); }
@keyframes viewer-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.viewer-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.viewer-title { font-family: var(--display); font-weight: 500; font-size: var(--phrase); line-height: 1.1; }
.viewer-choices { margin-top: 32px; border-top: 1px solid rgba(28, 43, 90, 0.25); }
.viewer-choices li { border-bottom: 1px solid rgba(28, 43, 90, 0.25); }
.viewer-choices a { display: grid; gap: 4px; padding: 24px 0; transition: padding-left 300ms var(--ease); }
.viewer-choices a:hover, .viewer-choices a:focus-visible { padding-left: 12px; }
.vc-name { font-family: var(--display); font-weight: 500; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.05; }
.vc-note { color: var(--ink-soft); font-size: var(--body); }
.viewer-fine { margin-top: 24px; color: var(--ink-soft); font-size: var(--small); }

/* Policies: the page's region sections, listed under it in the side menu. */
.policy-parts { display: grid; gap: 6px; margin: 8px 0 4px 16px; font-size: var(--small); }
.policy-parts .link { color: var(--ink-soft); }
.prose h2[id], .prose h3[id] { scroll-margin-top: 32px; }
.foot-address { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .viewer[open] { animation: none; }
  .viewer-choices a { transition: none; }
}


/* ---------- Cairo Stories (blog): from the approved lab/cairo-guide preview ---------- */

.guide-hero { position: relative; height: min(82svh, 860px); min-height: 420px; overflow: hidden; background: var(--ink); }
.guide-hero img { width: 100%; height: 100%; object-fit: cover; }
.guide-hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; background: linear-gradient(rgba(16, 22, 44, 0.55), rgba(16, 22, 44, 0)); pointer-events: none; }
.guide-hero-credit { position: absolute; right: var(--margin); bottom: 14px; z-index: 1; margin: 0; color: var(--light); font-size: 0.875rem; font-style: italic; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.guide-hero-credit a { color: inherit; }

/* index: the title sits on the photograph */
.guide-hero--index::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 35%, rgba(16, 22, 44, 0.72)); }
.guide-hero-title { position: absolute; z-index: 2; left: var(--margin); right: var(--margin); bottom: clamp(32px, 6vw, 72px); margin: 0; color: var(--light); }
.guide-hero-title h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: var(--big); line-height: 0.92; letter-spacing: -0.015em; }
.guide-hero-title p { margin: 16px 0 0; max-width: 34em; font-size: var(--lead); line-height: 1.45; }

/* the reading grid */
.guide-page { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); padding: clamp(48px, 7vw, 104px) var(--margin) clamp(80px, 10vw, 144px); }
.guide-page > * { grid-column: 3 / span 7; }
.guide-head { margin-bottom: clamp(40px, 5vw, 72px); }
.guide-crumb { display: inline-block; margin-bottom: 24px; color: var(--ink-soft); text-decoration: none; font-size: var(--label); letter-spacing: 0.04em; font-family: var(--caps); font-variant-caps: small-caps; }
.guide-crumb:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.guide-head h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.75rem, 1rem + 4.6vw, 6rem); line-height: 0.98; letter-spacing: -0.012em; text-wrap: balance; }
.guide-lead { margin: 28px 0 0; max-width: 32em; font-size: var(--lead); line-height: 1.5; font-style: italic; color: var(--ink-soft); }
.guide-meta { margin: 20px 0 0; color: var(--ink-soft); font-size: var(--small); }

.guide-body { max-width: 36em; }
.guide-body p, .guide-body li { line-height: 1.7; }
.guide-body p { margin: 0 0 1.15em; }
.guide-body h2 { margin: 2.2em 0 0.55em; font-family: var(--display); font-weight: 500; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.08; letter-spacing: -0.005em; }
.guide-body ul { margin: 0 0 1.15em; padding-left: 1.1em; list-style: disc; }
.guide-body li::marker { color: var(--ink-soft); }
.guide-body li { margin-bottom: 0.4em; }
.guide-body a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--saffron); }
.guide-body a:hover { text-decoration-thickness: 2px; }

/* the walk: real stops in walking order, so they are numbered */
.guide-body h2[data-stop] { position: relative; }
.guide-body h2[data-stop]::before { content: attr(data-stop); position: absolute; right: calc(100% + clamp(16px, 2.5vw, 40px)); top: 0.05em; font-family: var(--display); font-style: italic; font-weight: 400; color: var(--ink-soft); }

/* figures run wider than the text column */
.guide-fig { grid-column: 2 / span 10; margin: clamp(40px, 5vw, 64px) 0; }
.guide-fig img { width: 100%; height: auto; max-height: 72svh; object-fit: cover; display: block; background: var(--paper-2); }
.guide-fig--tall img { max-height: 84svh; }
.guide-fig--tall { grid-column: 3 / span 6; }
.guide-fig figcaption { margin-top: 12px; max-width: 40em; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5; }
.guide-fig figcaption span { display: block; font-style: italic; font-size: 0.875rem; }
.guide-fig figcaption a { color: inherit; }
.guide-flow { grid-column: 3 / span 7; }

/* prints at the end */
.guide-prints { grid-column: 2 / span 10; margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(28, 43, 90, 0.18); }
.guide-prints h2 { margin: 0 0 32px; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 1.2rem + 2vw, 3.25rem); line-height: 1; }
.guide-prints ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 40px); }
.guide-prints a { display: block; color: var(--ink); text-decoration: none; }
.guide-prints img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--paper-2); }
.guide-prints span { display: block; margin-top: 12px; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.guide-prints a:hover span, .guide-prints a:focus-visible span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* index list */
.guide-list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; }
.guide-list li + li { margin-top: clamp(56px, 7vw, 104px); }
.guide-entry { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; color: var(--ink); text-decoration: none; }
.guide-entry img { grid-column: 1 / span 6; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--paper-2); }
.guide-entry div { grid-column: 8 / span 5; }
.guide-entry h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.25rem, 1rem + 3vw, 4.25rem); line-height: 0.98; letter-spacing: -0.01em; text-wrap: balance; }
.guide-entry p { margin: 18px 0 0; line-height: 1.6; }
.guide-entry .guide-read { display: inline-block; margin-top: 18px; font-size: var(--label); letter-spacing: 0.04em; font-family: var(--caps); font-variant-caps: small-caps; text-decoration: underline; text-decoration-color: var(--saffron); text-underline-offset: 4px; }
.guide-entry:focus-visible h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.guide-intro { grid-column: 1 / span 7; margin: 0 0 clamp(56px, 7vw, 96px); font-size: var(--lead); line-height: 1.55; max-width: 32em; }

@media (max-width: 900px) {
  .guide-hero { height: 58svh; min-height: 360px; }
  .guide-hero--index { height: 72svh; }
  .guide-page > *, .guide-flow, .guide-fig, .guide-fig--tall, .guide-prints { grid-column: 1 / -1; }
  .guide-body h2[data-stop]::before { position: static; display: block; margin-bottom: 4px; font-size: 1.25rem; }
  .guide-entry img { grid-column: 1 / -1; }
  .guide-entry div { grid-column: 1 / -1; margin-top: 20px; }
  .guide-intro { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .guide-prints ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-prints li:nth-child(3) { display: none; }
}

/* the live articles: their figures sit in the text column, credits under each photograph */
.guide-lead p { margin: 0; }
.guide-body figure { margin: clamp(32px, 4vw, 56px) 0; }
.guide-body figure img { width: 100%; height: auto; display: block; background: var(--paper-2); }
.guide-body figure a { text-decoration: none; }
.guide-body figcaption { margin-top: 12px; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5; }
.guide-body figcaption a { color: inherit; text-decoration: underline; text-decoration-color: rgba(28, 43, 90, 0.35); }
.guide-body figcaption span, .guide-body figcaption small { display: block; font-style: italic; font-size: 0.875rem; }
.guide-entry p:last-of-type { margin-bottom: 0; }

/* Cairo Stories: one centred reading column; hover effects only on devices that really hover */
.guide-page > .guide-head, .guide-page > .guide-body { grid-column: 1 / -1; width: 100%; max-width: 36em; margin-inline: auto; }
.guide-intro { grid-column: 1 / -1; margin-inline: auto; text-align: center; }
.guide-body a { transition: text-decoration-thickness 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .guide-entry:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
  .guide-crumb:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
}


/* ---------- Cairo Stories v2 (2026-11-16): titles on the photographs, a loose list, prints in the stories ---------- */

/* index: the newest story is the cover, under the page title */
.guide-hero--index { height: min(92svh, 940px); }
.guide-hero--index::before { background: linear-gradient(rgba(16, 22, 44, 0) 25%, rgba(16, 22, 44, 0.82)); }
.guide-feature { display: grid; justify-items: start; gap: 10px; margin-top: clamp(20px, 3vw, 36px); max-width: 38em; color: var(--light); text-decoration: none; }
.guide-feature .label { color: var(--light); opacity: 0.85; }
.guide-feature-title { font-family: var(--display); font-size: clamp(1.75rem, 1rem + 2vw, 3rem); line-height: 1.02; text-wrap: balance; }
.guide-feature-sum { font-size: var(--body); line-height: 1.5; max-width: 34em; }
.guide-feature .tag { margin-top: 10px; background: var(--saffron); color: var(--ink); }
.guide-feature:hover .guide-feature-title, .guide-feature:focus-visible .guide-feature-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* the line under each title: what kind of story, and how long it takes */
.guide-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 14px 0 0; font-size: var(--small); }
.guide-facts .label { color: inherit; }
.guide-facts span + span { font-style: italic; }

/* the list: four stories in a loose gallery, not one row repeated */
.guide-list--loose { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(56px, 7vw, 112px); align-items: start; }
.guide-list--loose li + li { margin-top: 0; }
.guide-list--loose .guide-entry { display: block; }
.guide-list--loose .guide-entry div { margin-top: 22px; max-width: 30em; }
.guide-list--loose .guide-entry h2 { font-size: clamp(1.9rem, 1rem + 2.2vw, 3.25rem); }
.guide-list--loose .guide-entry img { aspect-ratio: 3 / 2; }
.guide-list--loose li:nth-child(4n+1) { grid-column: 1 / span 7; }
.guide-list--loose li:nth-child(4n+2) { grid-column: 9 / span 4; margin-top: clamp(80px, 16vh, 200px); }
.guide-list--loose li:nth-child(4n+3) { grid-column: 2 / span 5; }
.guide-list--loose li:nth-child(4n) { grid-column: 7 / span 6; margin-top: clamp(48px, 10vh, 140px); }
.guide-list--loose li:nth-child(4n+2) img, .guide-list--loose li:nth-child(4n+3) img { aspect-ratio: 4 / 5; }
.guide-sum { margin: 14px 0 0; font-size: var(--body); line-height: 1.55; }
.guide-entry .guide-facts { color: var(--ink-soft); }

/* article: the title sits on the photograph */
.guide-hero--story { height: min(88svh, 900px); }
.guide-hero--story::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(16, 22, 44, 0) 35%, rgba(16, 22, 44, 0.8)); }
.guide-hero--story h1 { margin: 0; max-width: 13em; font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 1rem + 4.4vw, 6rem); line-height: 0.96; letter-spacing: -0.012em; text-wrap: balance; }
.guide-hero--story .guide-crumb { color: var(--light); margin-bottom: 18px; }
.guide-hero--story .guide-facts { margin-top: 20px; }
.guide-hero--story .guide-facts .label { color: var(--light); }

/* before you go, and the walk's route */
.guide-start { grid-column: 3 / span 7; display: grid; gap: clamp(24px, 3vw, 48px); margin: 0 0 clamp(40px, 5vw, 72px); }
.guide-start--two { grid-column: 3 / span 9; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.guide-before { padding: clamp(24px, 3vw, 36px); background: var(--paper-2); }
.guide-before h2, .guide-route h2 { margin: 0 0 16px; font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); line-height: 1.05; }
.guide-before ul { margin: 0; padding-left: 1.1em; list-style: disc; }
.guide-before li { margin-bottom: 0.5em; line-height: 1.6; }
.guide-before li::marker { color: var(--ink-soft); }
.guide-route .label { margin: 0; color: var(--ink-soft); }
.guide-route ol { position: relative; list-style: none; margin: 10px 0; padding: 0; }
.guide-route ol::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; border-left: 1px solid var(--ink); }
.guide-route li + li { margin-top: 10px; }
.guide-route a { position: relative; display: flex; align-items: flex-start; gap: 14px; color: var(--ink); text-decoration: none; line-height: 1.4; }
.guide-route img { flex: none; width: 24px; height: 24px; margin-top: 1px; background: var(--paper); border-radius: 50%; }
.guide-route-n { font-family: var(--display); font-style: italic; color: var(--ink-soft); }
.guide-route a:hover > span, .guide-route a:focus-visible > span { text-decoration: underline; text-decoration-color: var(--saffron); text-underline-offset: 3px; }
.guide-body h2[id] { scroll-margin-top: 96px; }

/* photographs by shape: wide ones run wider than the text, tall ones sit in pairs or at a reading size */
.guide-photo img { display: block; width: 100%; height: auto; background: var(--paper-2); }
.guide-photo figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5; }
.guide-photo figcaption a { color: inherit; }
.guide-body .guide-photo--tall { max-width: 26rem; }
.guide-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; margin: clamp(32px, 4vw, 56px) 0; }
.guide-body .guide-pair .guide-photo { margin: 0; max-width: none; }
@media (min-width: 901px) {
  .guide-body .guide-photo--wide { width: min(calc(100vw - 2 * var(--margin)), 66rem); margin-left: 50%; transform: translateX(-50%); }
  .guide-body .guide-pair { width: min(calc(100vw - 2 * var(--margin)), 54rem); margin-left: 50%; transform: translateX(-50%); }
}

/* prints in the stories: floating, with a wall label, as on the home page */
.guide-art { margin: clamp(48px, 6vw, 88px) 0; }
.guide-art--row { grid-column: 1 / -1; margin-top: clamp(80px, 10vw, 144px); }
.guide-art-line { margin: 0 0 clamp(20px, 3vw, 36px); font-family: var(--display); font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.75rem); line-height: 1.05; }
.guide-body .guide-art ul, .guide-art ul { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); margin: 0 0 clamp(20px, 3vw, 32px); padding: 0; list-style: none; }
.guide-art li { width: clamp(140px, 40%, 240px); margin: 0; }
.guide-art--row li { width: clamp(130px, 15vw, 210px); }
.guide-art li:nth-child(even) { margin-top: clamp(24px, 4vw, 56px); }
.guide-art li a { display: block; color: var(--ink); text-decoration: none; transform: rotate(var(--tilt, -1.5deg)); }
.guide-art li:nth-child(3n+2) a { --tilt: 1.2deg; }
.guide-art li:nth-child(3n) a { --tilt: -0.6deg; }
.guide-art li a:hover, .guide-art li a:focus-visible { transform: rotate(0deg) scale(1.02); }
@media (prefers-reduced-motion: no-preference) { .guide-art li a { transition: transform 400ms var(--ease); } }
.guide-art img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.guide-art .float-cap { margin: 12px 0 0; text-shadow: none; }

/* the end of a story: the next one */
.guide-next { grid-column: 3 / span 8; margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(28, 43, 90, 0.18); }
.guide-next a { display: grid; grid-template-columns: clamp(110px, 16vw, 200px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(20px, 3vw, 40px); color: var(--ink); text-decoration: none; }
.guide-next img { grid-row: 1 / span 3; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.guide-next .label { color: var(--ink-soft); }
.guide-next-title { margin-top: 8px; font-family: var(--display); font-size: clamp(1.75rem, 1rem + 2vw, 3rem); line-height: 1.02; text-wrap: balance; }
.guide-next .guide-facts { align-self: start; color: var(--ink-soft); }
.guide-next a:hover .guide-next-title, .guide-next a:focus-visible .guide-next-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

@media (max-width: 900px) {
  .guide-list--loose li:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .guide-start, .guide-start--two, .guide-next { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  .guide-hero--story { height: 78svh; }
  .guide-hero--index { height: 88svh; }
  .guide-feature-sum { display: none; }
}
@media (max-width: 560px) {
  .guide-pair { grid-template-columns: minmax(0, 1fr); }
  .guide-art li { width: calc(50% - 14px); }
  .guide-art--row li { width: calc(50% - 14px); }
}

/* ---------- Cairo Stories review fixes (2026-11-16) ---------- */
/* the fact line on the photograph keeps its small size (not the hero's lead size) */
.guide-hero-title .guide-facts { margin: 20px 0 0; max-width: none; font-size: var(--small); line-height: 1.4; }
/* the prints' line is a display line, not body text */
.guide-art .guide-art-line { margin: 0 0 clamp(20px, 3vw, 36px); line-height: 1.05; }
/* our prints in the text carry their price under the caption */
.guide-price { display: block; margin-top: 4px; color: var(--ink); font-style: normal; }
/* a tall photograph on its own stands beside the text, in the margin, alternating sides */
@media (min-width: 1280px) {
  .guide-body .guide-photo--right, .guide-body .guide-photo--left { --w: clamp(200px, 16vw, 300px); width: var(--w); max-width: none; margin-top: 6px; margin-bottom: 28px; }
  .guide-body .guide-photo--right { float: right; margin-left: 28px; margin-right: calc(-1 * (var(--w) + 28px)); }
  .guide-body .guide-photo--left { float: left; margin-right: 28px; margin-left: calc(-1 * (var(--w) + 28px)); }
  .guide-body .guide-photo--wide, .guide-body .guide-pair, .guide-body .guide-art { clear: both; }
  .guide-body::after { content: ""; display: block; clear: both; }
}
/* the walk's route: saffron stars (the parchment logo's star), joined stop to stop; folds on phones */
.guide-route ol::before { content: none; }
.guide-route li { position: relative; }
.guide-route li:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 27px; bottom: -9px; border-left: 1px solid var(--ink); }
.guide-route-star { flex: none; width: 22px; height: 24px; margin-top: 1px; background: var(--saffron); -webkit-mask: url("assets/star-mask.svg") center / contain no-repeat; mask: url("assets/star-mask.svg") center / contain no-repeat; }
.guide-route summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; cursor: pointer; list-style: none; }
.guide-route summary::-webkit-details-marker { display: none; }
.guide-route summary h2 { margin: 0; }
.guide-route summary::after { content: "+"; margin-left: auto; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--ink); }
.guide-route[open] summary::after { content: "−"; }
.guide-route[open] summary { margin-bottom: 14px; }
.guide-route-count { color: var(--ink-soft); font-size: var(--small); font-style: italic; }
.guide-route summary:focus-visible { outline: 2px solid var(--saffron); outline-offset: 4px; }
/* on wide screens the fold sign stays next to "The walk"; on phones it sits at the edge, easy to tap */
@media (min-width: 901px) { .guide-route summary::after { margin-left: 4px; } }
/* the price under a print's caption is a label, not a credit line (the older caption rule italicises every span) */
.guide-body figcaption .guide-price, .guide-body figcaption .guide-price span { font-style: normal; font-size: var(--label); }

/* ---------- Cairo Stories: text wraps around the pictures (owner, 2026-11-16) ----------
   A single tall picture now floats inside the text column, right or left in turn, and the paragraphs wrap around it.
   Replaces the margin placement above. Phones keep the picture full width (too narrow to wrap). */
@media (min-width: 700px) {
  .guide-body .guide-photo--right, .guide-body .guide-photo--left { --w: min(42%, 300px); width: var(--w); max-width: none; margin-top: 8px; margin-bottom: 20px; }
  .guide-body .guide-photo--right { float: right; margin-left: clamp(24px, 3vw, 36px); margin-right: 0; }
  .guide-body .guide-photo--left { float: left; margin-right: clamp(24px, 3vw, 36px); margin-left: 0; }
  .guide-body .guide-photo--right figcaption, .guide-body .guide-photo--left figcaption { font-size: 0.875rem; }
  .guide-body h2, .guide-body .guide-photo--wide, .guide-body .guide-pair, .guide-body .guide-art { clear: both; }
  .guide-body::after { content: ""; display: block; clear: both; }
}
/* the text keeps wrapping past a heading, so a short section leaves no gap under its picture; a new picture always
   starts below the previous one, so text is never squeezed between two */
@media (min-width: 700px) {
  .guide-body h2 { clear: none; }
  .guide-body .guide-photo--right, .guide-body .guide-photo--left { clear: both; }
}
/* space under a wrapped picture: what clears it (a wide photo, the prints) loses its own top margin */
@media (min-width: 700px) { .guide-body .guide-photo--right, .guide-body .guide-photo--left { margin-bottom: 44px; } }

/* ---------- Cairo Stories: one column (owner, 2026-11-16) ----------
   The text under "Before you go" is as wide as the box, on every story: the lead, "Before you go" (with a walk's route
   beside it), the text and "Next story" share one centred 40em column (about 80 characters a line). */
.guide-page > .guide-head, .guide-page > .guide-start, .guide-page > .guide-body, .guide-page > .guide-next { grid-column: 1 / -1; width: 100%; max-width: 40em; margin-inline: auto; }
.guide-lead { max-width: none; }

/* ---------- Cairo Stories: tight wrap (owner, 2026-11-16) ----------
   Text hugs the pictures: a 16px gutter beside and under each wrapped picture, and hyphenation so lines run out to
   the picture's edge instead of stopping short. What follows a picture (prints, wide photos, pairs) keeps its own
   space above it with padding, since a cleared element loses its top margin. */
@media (min-width: 700px) {
  .guide-body .guide-photo--right { margin: 6px 0 16px 16px; }
  .guide-body .guide-photo--left { margin: 6px 16px 16px 0; }
  .guide-body .guide-photo--right figcaption, .guide-body .guide-photo--left figcaption { margin-top: 6px; }
  .guide-body p, .guide-body li { hyphens: auto; -webkit-hyphens: auto; }
  .guide-body .guide-art, .guide-body .guide-photo--wide, .guide-body .guide-pair { padding-top: 28px; }
}
/* a wrapped picture left with no text beside it (see main.js) sits in the column under its text */
@media (min-width: 700px) { .guide-body .guide-photo.is-alone { float: none; clear: both; width: min(100%, 24rem); margin: 24px 0 16px; } }

/* ---------- Cairo Stories: the walk, one row per stop (owner, 2026-11-16) ----------
   Each stop's heading and text on the left, its picture on the right, centred on the text; every picture the same
   width with its right edge on the column edge, so the stops line up. On phones the picture follows its text. */
.guide-stop { display: grid; grid-template-columns: minmax(0, 1fr) 14em; column-gap: clamp(20px, 3vw, 40px); align-items: center; margin: 2.2em 0 0; }
.guide-stop-text > h2:first-child { margin-top: 0; }
.guide-stop-text > :last-child { margin-bottom: 0; }
.guide-body .guide-stop .guide-photo--stop { float: none; clear: none; width: 100%; max-width: none; margin: 0; }
.guide-body .guide-photo--wide { margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 699px) {
  .guide-stop { grid-template-columns: minmax(0, 1fr); }
  .guide-body .guide-stop .guide-photo--stop { margin-top: 20px; }
}
/* the walk: each stop's text starts level with the top of its picture (owner, 2026-11-16) */
.guide-stop { align-items: start; }
/* the letters themselves (not just the heading's box) start level with the picture: trim the font's space above the
   capitals where the browser can, otherwise pull the heading up by that space */
.guide-stop-text > h2:first-child { margin-top: -0.16em; }
@supports (text-box: trim-start cap alphabetic) { .guide-stop-text > h2:first-child { margin-top: 0; text-box: trim-start cap alphabetic; } }

/* ---------- Cairo Stories: one width for everything (owner, 2026-11-16) ----------
   Wide photographs and pairs no longer run wider than the text: they share the column's borders with the text and
   the walk's stop pictures. */
@media (min-width: 901px) {
  .guide-body .guide-photo--wide, .guide-body .guide-pair { width: 100%; margin-left: 0; transform: none; }
}

/* Stories and video (2026-11-16): the night sky stays pinned to the screen while the section scrolls over it,
   so the picture only ever covers one screen and is not stretched down the whole tall section */
.sv-stories { clip-path: inset(0); }
.sv-stories .scene-pinned { position: fixed; inset: 0; height: 100vh; height: 100lvh; }
.sv-stories::after { position: fixed; height: 100vh; height: 100lvh; }
.p-sizer { margin-top: 12px; }

/* Return and exchange request (pages/return-request.html) */
.rq { padding: 150px var(--margin) clamp(120px, 12vw, 180px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: start; }
.rq-head { grid-column: 1 / span 4; position: sticky; top: 40px; display: grid; gap: 24px; min-width: 0; }
.rq .bag-title { font-size: var(--mid); }
.rq-say { font-size: var(--phrase); line-height: 1.3; letter-spacing: -0.015em; max-width: 30ch; }
.rq-form, .rq-done { grid-column: 6 / -1; display: grid; gap: 40px; min-width: 0; }
.rq-done { gap: 16px; max-width: 52ch; }
.rq-done:focus { outline: none; }
.rq-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq-kind { border: 0; padding: 0; margin: 0; }
.rq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.rq-field { display: grid; gap: 8px; margin: 0; }
.rq-field[hidden] { display: none; }
.rq-field label { color: var(--ink-soft); }
.rq-field input, .rq-field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--ink-soft); background: transparent; padding: 8px 0; font: inherit; font-size: var(--lead, 1.25rem); color: var(--ink); border-radius: 0; }
.rq-field textarea { resize: vertical; min-height: 6.5em; line-height: 1.5; border: 1px solid var(--ink-soft); padding: 12px; font-size: var(--body); }
.rq-field input::placeholder, .rq-field textarea::placeholder { color: var(--ink-soft); opacity: 0.6; font-style: italic; }
.rq-field input:focus, .rq-field textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 1px 0 0 var(--saffron); }
.rq-field [aria-invalid="true"] { border-color: #8A2A1E; }
.rq-err { color: #8A2A1E; font-size: var(--label); min-height: 0; }
.rq-err:empty { display: none; }
.rq-photos { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.rq-photos legend { color: var(--ink); margin-bottom: 4px; padding: 0; }
.rq-photo-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.rq-pick { position: relative; cursor: pointer; }
.rq-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.rq-pick:has(input:focus-visible) { outline: 2px solid var(--saffron); outline-offset: 3px; }
.rq-pick.is-off { opacity: 0.4; pointer-events: none; }
.rq-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.rq-thumbs:empty { display: none; }
.rq-thumbs li { position: relative; aspect-ratio: 1; background: var(--paper-2); }
.rq-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rq-remove { position: absolute; left: 6px; bottom: 6px; min-height: 32px; padding: 0 10px; border: 0; background: var(--paper); color: var(--ink); font-family: var(--caps); font-variant-caps: small-caps; font-size: var(--label); letter-spacing: 0.04em; cursor: pointer; }
.rq-remove:hover { background: var(--saffron); }
.rq-remove:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }
.rq-error { color: #8A2A1E; }
.rq-foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.rq-send:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 900px) {
  .rq { padding-top: 110px; }
  .rq-head, .rq-form, .rq-done { grid-column: 1 / -1; position: static; }
}
@media (max-width: 560px) { .rq-grid { grid-template-columns: 1fr; } }

/* Wishlist: choose a version and move it to the bag */
.wish-buy { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; }
.wish-opt { font: inherit; font-size: var(--label); color: var(--ink); background: var(--paper); border: 1px solid var(--ink-soft); padding: 8px 10px; min-height: 40px; max-width: 100%; }
.wish-opt:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }
.wish-move:disabled { opacity: 0.6; }
.wish-said:empty { display: none; }

/* Global launch pre-order (owner, 2026-11-19): one quiet line above the header, and sale prices.
   Remove with `sale = 0` in tools/lib.mjs at launch. */
.launch { position: relative; z-index: 21; box-sizing: border-box; height: 40px; margin: 0; padding: 0 var(--margin); display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--light); font-size: var(--small); line-height: 1.2; white-space: nowrap; overflow: hidden; }
.launch a { color: var(--saffron); text-decoration: underline; text-underline-offset: 3px; flex: none; }
.launch a:hover { color: var(--saffron-hover); }
.launch ~ .bar { top: 40px; }
@media (max-width: 760px) { .launch { height: auto; min-height: 40px; padding-block: 8px; white-space: normal; font-size: 0.9375rem; } }
.was { color: var(--ink-soft); text-decoration-thickness: 1px; }
.now { color: inherit; }

/* Global launch pre-order (owner, 2026-11-19): one quiet line above the header, and sale prices.
   Switched off with `sale = 0` in tools/lib.mjs at launch. */
.launch { position: relative; z-index: 21; box-sizing: border-box; height: 40px; margin: 0; padding: 0 var(--margin); display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--light); font-size: var(--small); line-height: 1.2; white-space: nowrap; overflow: hidden; }
.launch a { flex: none; color: var(--saffron); text-decoration: underline; text-underline-offset: 3px; }
.launch a:hover { color: var(--saffron-hover); }
.launch-short { display: none; }
.launch ~ .bar { top: 40px; }
@media (max-width: 760px) { .launch { gap: 8px; font-size: 0.9375rem; } .launch-long { display: none; } .launch-short { display: inline; overflow: hidden; text-overflow: ellipsis; } }
.was { color: var(--ink-soft); text-decoration-thickness: 1px; }
