/* Natural Stone Morocco, catalogue direction. Colours, fonts and layout follow the PDF catalogue (catalogue/src/catalogue.css).
   One ground per section: limestone = charcoal limestone, marble = warm black, everything else = dark cedar. */

/* ---------- fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/cormorant-300.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/cormorant-300-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url(/assets/fonts/cormorant-300i.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url(/assets/fonts/cormorant-300i-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Arabic: Markazi Text for headings (owner, 2026-11-17), IBM Plex Sans Arabic for text. Only loaded where Arabic letters appear. */
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url(/assets/fonts/plex-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Markazi Text"; font-weight: 400; font-display: swap; src: url(/assets/fonts/markazi-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* Text font: Jost (Indestructible Type, SIL Open Font License), chosen by the owner 2026-11-19 */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/jost-latin.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/jost-latin-ext.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- grounds (all contrasts checked, WCAG 2.2 AA) ---------- */
.g-lime   { --bg: #20211E; --ink: #EDE9E1; --muted: #A9A598; --accent: #A9C2B0; }  /* text 13.4:1, muted 6.6:1, accent 8.5:1 */
.g-marble { --bg: #151311; --ink: #F0EAE0; --muted: #ADA497; --accent: #A9C2B0; }  /* text 15.5:1, muted 7.5:1, accent 9.7:1 (sage, as limestone: owner, 2026-11-21) */
.g-cedar  { --bg: #13221B; --ink: #ECEBE3; --muted: #A6AEA7; --accent: #C9D8CC; }  /* text 13.8:1, muted 7.3:1, accent 11.1:1 */
[class*="g-"] { background: var(--bg); color: var(--ink); --rule: color-mix(in srgb, var(--muted) 32%, transparent); }

/* Light mode (the Light/Dark switch; dark is the default) */
.light .g-lime   { --bg: #E9E7E1; --ink: #1B1C19; --muted: #57554D; --accent: #35513E; }
.light .g-marble { --bg: #E7E2D9; --ink: #1A1714; --muted: #5A5349; --accent: #35513E; }
.light .g-cedar  { --bg: #E3E7E2; --ink: #13221B; --muted: #4D5851; --accent: #1F4A36; }

:root {
  --serif: "Cormorant Garamond", "Markazi Text", Georgia, "Times New Roman", serif;
  --sans: "Jost", "IBM Plex Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  --g: clamp(16px, 4vw, 64px);                         /* side gutter */
  --sec: clamp(64px, 9vw, 144px);                       /* section padding */
  --max: 1600px;
  --ease: cubic-bezier(.22, .8, .16, 1);
  /* type scale (owner, 2026-12-04: one short set of sizes, used everywhere)
     text: xs labels and small capitals, sm captions and notes, md body, lg lead paragraphs
     headings (Cormorant): display, h1, h2, h3, h4 */
  --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: clamp(17px, 16px + .25vw, 19px);
  --h-display: clamp(3rem, 1.6rem + 6vw, 8rem);
  --h-1: clamp(2.6rem, 1.6rem + 4vw, 5.5rem);
  --h-2: clamp(2.2rem, 1.5rem + 2.6vw, 3.9rem);
  --h-3: clamp(1.6rem, 1.3rem + .9vw, 2.1rem);
  --h-4: clamp(1.3rem, 1.15rem + .5vw, 1.6rem);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-weight: 400; font-size: var(--t-md); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }
[id] { scroll-margin-top: 96px; }
.wrap { padding-inline: max(var(--g), (100% - var(--max)) / 2); }

/* ---------- type ---------- */
.display, .h1, .h2, .h3, .tagline, .card__name, .pn__name, .fin__n, .toc ol a, ol.toc a, .prose h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -.005em; }
.display { font-size: var(--h-display); line-height: .92; }
.h1 { overflow-wrap: break-word; hyphens: auto; font-size: var(--h-1); line-height: .98; }
.h2 { font-size: var(--h-2); line-height: 1; }
.h3 { font-size: var(--h-3); line-height: 1.1; }
.label { display: block; font-size: var(--t-xs); line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.label a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.label a:hover { text-decoration-color: currentColor; }
.text { font-size: var(--t-lg); line-height: 1.6; max-width: 34em; }
.cap { display: block; font-size: var(--t-sm); line-height: 1.45; color: var(--muted); letter-spacing: .02em; }
.aka { font-size: var(--t-sm); color: var(--muted); margin-top: 14px; }
.tagline { font-size: var(--h-3); line-height: 1.2; }
.tagline em { font-style: italic; }
.u { text-decoration: underline; text-decoration-color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s, color .2s; }
.u:hover { text-decoration-color: var(--ink); }
.label + .h1, .label + .display, .label + .h2 { margin-top: 18px; }
.h1 + .text, .h2 + .text, .display + .text { margin-top: clamp(20px, 2.4vw, 32px); }

/* ---------- facts block: label in small capitals, value beside it, hairlines between ---------- */
.facts > div { display: grid; grid-template-columns: minmax(7.5em, 30%) 1fr; gap: 6px 18px; padding: 11px 0; border-top: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts dd { font-size: var(--t-md); line-height: 1.5; }
@media (max-width: 380px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- photos: square-cut, true colour, with a hairline edge so pale stone still reads on dark ---------- */
.ph { position: relative; overflow: hidden; background: color-mix(in srgb, var(--ink) 6%, var(--bg)); }
.ph picture { display: contents; }
/* no "Save image" callout on a long press (iPhone) and no dragging photos out (owner, 2026-11-25); site.js blocks the right-click menu */
img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(var(--z, 1)); transform-origin: var(--pos, 50% 50%); }
.ph::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); pointer-events: none; }
figcaption.cap, figure > .cap { margin-top: 10px; }

/* ---------- buttons and links ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
/* Doorway buttons, from the current site: on hover the colour rises from the sill as a pointed arch; the primary button
   carries its arrow in a round marker. Square-cut here, like the catalogue's photos. */
.btn { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--muted); --h-bg: var(--ink); --h-fg: var(--bg);
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 8px 22px; border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font: inherit; font-size: var(--t-md); letter-spacing: .02em; line-height: 1.25; cursor: pointer; text-align: start;
  transition: color .5s .14s, transform .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn--primary { --b-bg: var(--ink); --b-fg: var(--bg); --b-bd: var(--ink); --h-bg: #1F4A36; --h-fg: #ECEBE3; padding-inline-end: 9px; }  /* hover: deep cedar, 8.4:1 */
.light .btn--primary { --h-bg: var(--accent); --h-fg: #FFFFFF; }
.btn__fill { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.btn__fill i { position: absolute; display: block; left: -4%; width: 108%; top: 100%; height: 220%; background: var(--h-bg); transition: transform 1s cubic-bezier(.25, .7, .25, 1);
  clip-path: polygon(0 45%, 1% 38%, 4% 31%, 9% 24%, 16% 17.5%, 25% 11.5%, 36% 6%, 50% 0, 64% 6%, 75% 11.5%, 84% 17.5%, 91% 24%, 96% 31%, 99% 38%, 100% 45%, 100% 100%, 0 100%); }
.btn__arrow { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; }
.btn--primary .btn__arrow { width: 30px; height: 30px; border-radius: 50%; background: #1F4A36; color: #ECEBE3; }
.btn--primary .btn__arrow { transition: background-color .5s .14s, color .5s .14s; }
.light .btn--primary .btn__arrow { background: #C9D8CC; color: #13221B; }  /* pale cedar marker, 11:1 */
.btn .arr { transition: transform .35s var(--ease); }
.btn:active { transform: scale(.975); }
@media (hover: hover) {
  .btn:hover { color: var(--h-fg); }
  .btn:hover .btn__fill i { transform: translateY(-92%); }
  .btn:hover .arr { transform: translateX(2px); }
  .btn--primary:hover .btn__arrow { background: #C9D8CC; color: #13221B; }  /* the marker turns pale so it stays visible on the cedar fill */
}
.btn:focus-visible { color: var(--h-fg); }
.btn--primary:focus-visible .btn__arrow { background: #C9D8CC; color: #13221B; }
.btn:focus-visible .btn__fill i { transform: translateY(-92%); }
@media (prefers-reduced-motion: reduce) { .btn__fill i { transition: none; } }
.arr { width: 14px; height: 14px; flex: none; transition: transform .3s var(--ease); }
.more:hover .arr, .fam:hover .arr { transform: translateX(4px); }
[dir="rtl"] .btn__arrow, [dir="rtl"] .more .arr, [dir="rtl"] .fam .arr { transform: scaleX(-1); }
[dir="rtl"] .more:hover .arr, [dir="rtl"] .fam:hover .arr { transform: scaleX(-1) translateX(4px); }
.more { display: inline-flex; align-items: center; gap: 12px; font-size: var(--t-md); border-bottom: 1px solid var(--muted); padding-bottom: 4px; transition: border-color .2s; }
.more:hover { border-color: var(--ink); }
.dl { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: var(--t-md); }
.dl svg { width: 15px; height: 15px; align-self: center; flex: none; color: var(--accent); }
.dl > span:first-of-type { text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 4px; }
.dl:hover > span:first-of-type { text-decoration-color: var(--ink); }
.dl__n { font-size: var(--t-sm); color: var(--muted); }
.dlset { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.dl--hq { font-size: var(--t-sm); color: var(--muted); }
.dl--hq > span:first-of-type { text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.maplink { display: inline-flex; align-items: center; gap: 10px; }
.maplink span { text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 4px; }
.pin { width: 18px; height: 18px; color: var(--accent); flex: none; }
.social { display: flex; gap: 6px; margin-inline-start: -10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); transition: color .2s; }
.social a:hover { color: var(--accent); }
.social svg { width: 22px; height: 22px; }

/* ---------- header: clear at the top, a floating frosted bar once scrolled (the current site's Doorway menu), hides
   while reading down and returns on the way up; a thin marker glides between the menu items ---------- */
:root { --top-h: 84px; }
main { padding-top: var(--top-h); }
.is-home main { padding-top: 0; }
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; padding: 0; transition: padding .55s var(--ease), transform .6s var(--ease); }
.top__bar { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); height: var(--top-h); padding: 0 var(--g); border: 1px solid transparent;
  transition: height .55s var(--ease), padding .55s var(--ease), background-color .45s, border-color .45s, -webkit-backdrop-filter .45s, backdrop-filter .45s; }
.top.is-scrolled { padding: 10px clamp(10px, 1.4vw, 20px) 0; }
.top.is-scrolled .top__bar { height: 62px; padding: 0 8px 0 clamp(14px, 1.6vw, 22px);
  background: color-mix(in srgb, var(--bg) 74%, transparent); border-color: color-mix(in srgb, var(--ink) 12%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.top.is-hidden { transform: translateY(calc(-100% - 12px)); }
.logo { margin-inline-end: auto; flex: none; }
.logo img { height: clamp(36px, 3.1vw, 46px); width: auto; transition: height .55s var(--ease); }
.top.is-scrolled .logo img { height: 36px; }
.on-light { display: none; }
.light .on-light { display: block; }
.light .on-dark { display: none; }

/* menu items: small spaced capitals, like the catalogue's labels */
.nav { position: relative; display: flex; align-items: center; gap: clamp(4px, .8vw, 14px); }
.nav a { position: relative; z-index: 1; padding: 14px clamp(8px, .9vw, 14px); font-size: var(--t-xs); font-weight: 450; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: color-mix(in srgb, var(--ink) 82%, transparent); transition: color .3s; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current] { color: var(--ink); }
.nav__ind { position: absolute; z-index: 0; left: 0; bottom: 8px; height: 1px; width: var(--w, 0); transform: translateX(var(--l, 0)); background: var(--accent); opacity: var(--o, 0);
  pointer-events: none; transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s; }
.top__tools { display: flex; align-items: center; gap: 10px; padding-inline-start: clamp(8px, 1vw, 16px); border-inline-start: 1px solid var(--rule); }
.lang { display: flex; gap: 0; font-size: var(--t-xs); letter-spacing: .12em; }
.lang a, .lang span { display: grid; place-items: center; min-width: 34px; min-height: 34px; color: var(--muted); transition: color .3s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); }
.lang span { opacity: .55; cursor: not-allowed; }
.mode { font: inherit; font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: none; border: 1px solid var(--rule); min-height: 34px; padding: 0 12px; cursor: pointer; transition: color .3s, border-color .3s; }
.mode:hover { color: var(--ink); border-color: var(--muted); }
.btn--sm { min-height: 44px; font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; padding-inline-start: 18px; }
.btn--sm.btn--primary { padding-inline-end: 7px; }
.btn--sm .btn__arrow { width: 28px; height: 28px; }

/* the menu button: two bars that turn into a cross */
.burger { display: none; place-items: center; width: 46px; height: 46px; flex: none; padding: 0; color: inherit; background: none; border: 1px solid var(--rule); cursor: pointer; }
.burger__bars { position: relative; display: block; width: 20px; height: 10px; }
.burger__bars i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger__bars i:first-child { top: 0; } .burger__bars i:last-child { top: 8.5px; }
.burger[aria-expanded="true"] .burger__bars i { top: 4.25px; }
.burger[aria-expanded="true"] .burger__bars i:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars i:last-child { transform: rotate(-45deg); }

/* phone menu: a full-height panel; the items rise in one after another */
.menu { position: fixed; inset: 0; z-index: 25; padding: calc(var(--top-h) + 24px) var(--g) 28px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; overscroll-behavior: contain; }
.menu[hidden] { display: none; }
.menu__nav { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.menu__nav a { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--serif); font-weight: 300; font-size: var(--h-2); line-height: 1.15; padding: 12px 0; border-bottom: 1px solid var(--rule);
  animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 60ms); }
.menu__nav .arr { width: 18px; height: 18px; color: var(--muted); }
[dir="rtl"] .menu__nav .arr { transform: scaleX(-1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.menu__contact { display: flex; flex-direction: column; gap: 6px; font-size: var(--t-md); }
.menu__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--rule); }
.menu .mode { min-height: 44px; }
.menu-open .top { transform: none; padding: 0; }
.menu-open .top .top__bar { height: var(--top-h); padding: 0 var(--g); background: none; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .top .logo img { height: clamp(36px, 3.1vw, 46px); }
@media (prefers-reduced-motion: reduce) { .menu__nav a { animation: none; } .top { transition: none; } }

@media (max-width: 999px) {
  :root { --top-h: 72px; }
  .top .nav, .top .top__tools { display: none; }
  .burger { display: grid; }
  .top__enq.btn--sm.btn--primary { min-height: 46px; padding: 0 16px; }  /* no arrow here, so the same space on both sides: the word sits centred */
  .top__enq .btn__arrow { display: none; }
  .top.is-scrolled { padding: 8px 8px 0; }
  .top.is-scrolled .top__bar { height: 58px; padding: 0 6px 0 14px; }
}
@media (max-width: 359px) { .top__enq { display: none; } }

/* ---------- home: cover (the header runs over it) ---------- */
.is-home .cover { padding-top: var(--top-h); min-height: 100vh; min-height: 100svh; }
.cover { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 4vw, 72px); padding-inline: var(--g); min-height: calc(100vh - 84px); min-height: calc(100svh - 84px); overflow: hidden; }
.cover__text { align-self: end; padding-block: 48px clamp(48px, 9vh, 112px); }
.cover__h { font-size: var(--h-display); }
/* wide but short screens (most laptops): the heading follows the screen height, so the heading, sentence and buttons fit
   and the keyhole scene can play (home.js only plays it when everything fits) (owner, 2026-12-04) */
@media (min-width: 900px) and (max-height: 1000px) {
  .cover__h { font-size: min(var(--h-display), 12vh); }
  .cover__text { padding-block: clamp(12px, 2.5vh, 48px) clamp(20px, 4vh, 112px); }
  .cover .cover__lead { margin-top: clamp(12px, 2vh, 36px); font-size: min(var(--t-lg), 2.6vh); }
  .cover .cover__text .btns { margin-top: clamp(16px, 2.6vh, 44px); }
}
/* "Moroccan" in Cormorant Light italic; the stone words filled with real stone (Chablis limestone, Grey Lido marble close up)
   that slides inside the letters as you scroll (home.js sets --sy from 0 to 1). The texture is lightened on the dark
   ground (screen) and darkened in light mode (multiply) so the words always read; plain text where clipping is missing. */
.ch { display: inline-block; }
.ch--origin { font-style: italic; }
[lang="ar"] .ch--origin { font-style: normal; }  /* Arabic is never slanted */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ch--lime, .ch--marble { padding: .06em .04em .16em; margin: -.06em -.04em -.16em; color: transparent; -webkit-text-fill-color: transparent;
    -webkit-background-clip: text; background-clip: text; background-repeat: no-repeat; background-size: 190% auto;
    background-position: calc(18% + var(--sy, 0) * 52%) calc(22% + var(--sy, 0) * 56%); }
  .ch--lime { background-color: #3a3f3b; background-blend-mode: screen;
    background-image: url(/assets/img/chablis-05-surface-960.jpg);
    background-image: image-set(url(/assets/img/chablis-05-surface-960.webp) type("image/webp"), url(/assets/img/chablis-05-surface-960.jpg) type("image/jpeg")); }
  .ch--marble { background-color: #747874; background-blend-mode: screen; background-size: 230% auto;
    background-image: url(/assets/img/grey-lido-10-tiles-886.jpg);
    background-image: image-set(url(/assets/img/grey-lido-10-tiles-886.webp) type("image/webp"), url(/assets/img/grey-lido-10-tiles-886.jpg) type("image/jpeg")); }
  .light .ch--lime { background-color: #7c807c; background-blend-mode: multiply;
    background-image: url(/assets/img/oudaya-blue-01-hero-960.jpg);
    background-image: image-set(url(/assets/img/oudaya-blue-01-hero-960.webp) type("image/webp"), url(/assets/img/oudaya-blue-01-hero-960.jpg) type("image/jpeg")); }
  .light .ch--marble { background-color: #FFFFFF; background-blend-mode: normal;
    background-image: url(/assets/img/black-mars-03-surface-960.jpg);
    background-image: image-set(url(/assets/img/black-mars-03-surface-960.webp) type("image/webp"), url(/assets/img/black-mars-03-surface-960.jpg) type("image/jpeg")); }
}
.cover__lead { font-size: var(--t-lg); line-height: 1.6; max-width: 30em; margin-top: clamp(22px, 3vh, 36px); color: var(--ink); }
.cover .btns { margin-top: clamp(26px, 4vh, 44px); }
.cover__door { position: relative; width: min(44vw, calc((100vh - 120px) / 1.5)); width: min(44vw, calc((100svh - 120px) / 1.5)); align-self: stretch; min-height: 420px; }
/* the keyhole doorway from the logo: a round head with a pointed tip, on wide posts that run off the bottom edge */
.cover__door .ph { position: absolute; inset: 3vh 0 0 0; -webkit-mask: url(/assets/img/arch-keyhole.svg) top center / 100% auto no-repeat; mask: url(/assets/img/arch-keyhole.svg) top center / 100% auto no-repeat; }
.cover__door .ph::after { display: none; }
.cover__cap { display: none; }
/* the scroll scene (home.js): the photo leaves the flow and grows from the doorway to the whole screen */
.scene .cover { position: relative; }
.scene .cover__door { position: static; }
.scene .cover__door .ph { inset: auto; z-index: 1; will-change: left, top, width, height; }
.scene .cover__door .ph.is-open { -webkit-mask: none; mask: none; }
.scene .cover__door .ph::after { display: block; box-shadow: none; background: linear-gradient(to top, rgba(8, 12, 10, .62), rgba(8, 12, 10, 0) 42%); opacity: var(--shade, 0); }
.scene .cover__cap { display: block; position: absolute; z-index: 2; inset-inline-start: var(--g); bottom: clamp(20px, 4vh, 40px); max-width: 30em; color: #ECEBE3; opacity: 0; pointer-events: none; }
@media (max-width: 899px) {
  .cover { grid-template-columns: 1fr; min-height: 0; }
  .cover__door { order: -1; width: min(78vw, 360px, calc(46vh / 1.25)); width: min(78vw, 360px, calc(46svh / 1.25)); height: min(52vh, 470px); height: min(52svh, 470px); min-height: 0; margin: 8px auto 0; }
  .cover__door .ph { inset: 0; }
  .cover__text { padding-block: 36px 56px; }
}

/* ---------- home: intro and contents ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 140px); padding-block: var(--sec); }
.intro__facts { margin-top: clamp(40px, 6vw, 80px); max-width: 34em; }
.toc ol { margin-top: 18px; }
.toc ol a, ol.toc a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: var(--h-4); line-height: 1.2; position: relative; transition: color .6s var(--ease); }
/* hover (owner, 2026-11-21, after mcmstonetailors.com): the other items step back to the muted colour, the word moves
   aside and a line draws along the item. Pointer devices and keyboard focus; still with reduced motion. */
.toc ol a > span:first-child, ol.toc a > span:first-child { display: inline-block; transition: transform .7s var(--ease); }
.toc ol a::after, ol.toc a::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
[dir="rtl"] .toc ol a::after, [dir="rtl"] ol.toc a::after { transform-origin: right; }
@media (hover: hover) {
  .toc ol:has(a:hover) a:not(:hover), ol.toc:has(a:hover) a:not(:hover) { color: var(--muted); }
  .toc ol a:hover > span:first-child, ol.toc a:hover > span:first-child { transform: translateX(10px); }
  [dir="rtl"] .toc ol a:hover > span:first-child, [dir="rtl"] ol.toc a:hover > span:first-child { transform: translateX(-10px); }
  .toc ol a:hover::after, ol.toc a:hover::after { transform: scaleX(1); }
}
.toc ol:has(a:focus-visible) a:not(:focus-visible), ol.toc:has(a:focus-visible) a:not(:focus-visible) { color: var(--muted); }
.toc ol a:focus-visible::after, ol.toc a:focus-visible::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .toc ol a > span:first-child, ol.toc a > span:first-child, .toc ol a::after, ol.toc a::after { transition: none; } }
.toc__n { font-family: var(--sans); font-size: var(--t-xs); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; text-align: end; }
.toc__pdf { margin-top: 28px; }
@media (max-width: 899px) { .intro { grid-template-columns: 1fr; } }

/* ---------- home: the two families (Limestone, Marble) ----------
   Scroll (home.js): each photo opens from a narrower window and settles, the name rises out of a mask, label and link follow.
   Hover: the photo moves closer, slowly; the name steps aside; the label opens up; a line draws under the link;
   the other panel quietly steps back. Pointer devices only; nothing moves with reduced motion. */
@property --h { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --s { syntax: "<number>"; inherits: false; initial-value: 1; }
.fams { display: grid; grid-template-columns: 1fr 1fr; }
.fam { position: relative; display: flex; flex-direction: column; }
.fam .ph { aspect-ratio: 5 / 4; }
.fam .ph img { transform: scale(calc(var(--z, 1) * var(--s, 1) * var(--h, 1))); transition: --h 1.6s var(--ease), filter .9s var(--ease); }
.fam .ph::after { transition: box-shadow .9s var(--ease); }
.fam__text { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 56px) var(--g) clamp(40px, 6vw, 80px); transition: opacity .9s var(--ease); }
.fam .label { transition: letter-spacing .9s var(--ease); }
.fam__mask { display: block; overflow: hidden; padding-block: .06em .12em; margin-block: -.06em -.12em; transition: transform .9s var(--ease); }
.fam__name { display: block; font-size: var(--h-display); }
.fam__go { position: relative; display: inline-flex; align-items: center; gap: 12px; font-size: var(--t-md); align-self: flex-start; padding-bottom: 6px; }
.fam__go::before, .fam__go::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; }
.fam__go::before { background: var(--muted); }
.fam__go::after { background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
[dir="rtl"] .fam__go::after { transform-origin: left; }
@media (hover: hover) {
  .fam:hover .ph img { --h: 1.06; }
  .fam:hover .ph::after { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
  .fam:hover .fam__mask { transform: translateX(14px); }
  [dir="rtl"] .fam:hover .fam__mask { transform: translateX(-14px); }
  .fam:hover .label { letter-spacing: .3em; }
  .fam:hover .fam__go::after { transform: scaleX(1); transform-origin: left; }
  [dir="rtl"] .fam:hover .fam__go::after { transform-origin: right; }
  .fams:has(.fam:hover) .fam:not(:hover) .ph img { filter: brightness(.72) saturate(.85); }
  .fams:has(.fam:hover) .fam:not(:hover) .fam__text { opacity: .55; }
}
.fam:focus-visible { outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) { .fam .ph img, .fam__mask, .fam .label, .fam__go::after, .fam__text { transition: none; } }
@media (max-width: 699px) { .fams { grid-template-columns: 1fr; } }

/* ---------- mosaic: a big photo and a grid of four (catalogue page 3) ---------- */
.mosaic { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-areas: "head grid" "big grid"; gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 40px); padding-block: var(--sec); align-items: start; }
.mosaic__head { grid-area: head; }
.mosaic__head .more { margin-top: 24px; }
.mosaic__big { grid-area: big; }
.mosaic__big .ph { aspect-ratio: 1.03; }
.mosaic__grid { grid-area: grid; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.mosaic__grid .ph { aspect-ratio: .85; }
@media (max-width: 899px) {
  .mosaic { grid-template-columns: 1fr; grid-template-areas: "head" "big" "grid"; }
  .mosaic__big .ph { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 359px) { .mosaic__grid { grid-template-columns: 1fr; } .mosaic__grid .ph { aspect-ratio: 4 / 3; } }

/* ---------- spread: photo on one side, the page on the other (contact, visit) ---------- */
.spread { display: grid; grid-template-columns: 1fr 1fr; min-height: min(100vh, 960px); min-height: min(100svh, 960px); }
.spread__ph { min-height: 100%; }
.spread__ph img { position: absolute; inset: 0; }
.spread__side { display: flex; flex-direction: column; gap: 26px; justify-content: center; padding: clamp(48px, 7vw, 120px) clamp(24px, 5vw, 96px); }
.spread__side .h1, .spread__side .h2 { margin: 0; }
.spread__side .facts { max-width: 30em; }
.visitnote { display: flex; flex-direction: column; gap: 8px; }
.visitnote .maplink { font-size: var(--t-md); margin-top: 6px; }
.facts--contact dd a { overflow-wrap: anywhere; }
@media (max-width: 899px) {
  .spread { grid-template-columns: 1fr; min-height: 0; }
  .spread__ph { aspect-ratio: 4 / 3; }
}

/* ---------- page heads and prose ---------- */
.phead { padding-block: clamp(48px, 8vw, 120px) clamp(48px, 6vw, 96px); }
.phead .btns, .phead__pdf { margin-top: 32px; }
.prose { padding-block: 0 var(--sec); max-width: calc(46em + 2 * var(--g)); }
.prose h2 { font-size: var(--h-3); line-height: 1.15; margin: 36px 0 10px; }
.prose p { max-width: 40em; }

/* ---------- stone list: a divider per family, then the stones ---------- */
.family { padding-bottom: var(--sec); }
.family__div { display: grid; grid-template-columns: 1fr 1fr; min-height: min(82vh, 820px); min-height: min(82svh, 820px); }
.family__ph { position: relative; }
.family__ph .ph { position: absolute; inset: 0; }
.family__side { display: flex; flex-direction: column; padding: clamp(40px, 6vw, 96px) var(--g) 32px clamp(28px, 5vw, 80px); }
.family__name { margin-bottom: clamp(24px, 3vw, 44px); }
.family__side .cap { margin-top: auto; padding-top: 28px; }
.cards { display: grid; gap: clamp(36px, 4vw, 56px) clamp(14px, 1.6vw, 24px); padding-top: clamp(56px, 7vw, 112px); }
/* four across by default, whatever the number of stones (a rule tied to the count broke when La Chamoise was removed) */
.cards:not(.cards--3) { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 4 / 5; }
.card .ph img { transition: transform 1.2s var(--ease); }
.card:hover .ph img { transform: scale(calc(var(--z, 1) * 1.03)); }
.card__name { font-size: var(--h-3); line-height: 1.05; margin-top: 16px; }
.card__line { font-size: var(--t-sm); color: var(--muted); margin-top: 6px; letter-spacing: .02em; }
@media (max-width: 1099px) { .cards:not(.cards--3) { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 899px) {
  .family__div { grid-template-columns: 1fr; min-height: 0; }
  .family__ph { aspect-ratio: 4 / 3; }
  .family__side { padding: 36px var(--g) 0; }
  .cards:not(.cards--3), .cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 419px) { .cards:not(.cards--3), .cards--3 { grid-template-columns: 1fr; } .card .ph { aspect-ratio: 4 / 3.4; } }

/* ---------- stone page (catalogue stone page: text on one side, the big photo and two small ones on the other) ---------- */
.st { display: grid; grid-template-columns: minmax(300px, 36%) minmax(0, 1fr); grid-template-areas: "head media"; column-gap: clamp(32px, 4vw, 72px); }
.st__head { grid-area: head; padding: clamp(32px, 5vh, 72px) 0 0; padding-inline-start: var(--g); }
/* on a computer the name and its sentence stay in view beside the photos while they scroll by (owner, 2026-12-04) */
@media (min-width: 900px) {
  /* the same on every page where a text column sits beside a longer column of photos or a form (owner, 2026-12-04):
     stone pages, each paving and walling product, the Enquire page and the Visit form */
  .st__head, .prod__text, .enq__side, .plan__head { position: sticky; top: calc(var(--top-h) + 24px); align-self: start; }
  .st__head { top: calc(var(--top-h) + 8px); }
}
/* the tall Enquire column only stays when the whole of it fits on the screen */
@media (min-width: 900px) and (max-height: 699px) { .enq__side { position: static; } }
.st__name { margin-top: 18px; overflow-wrap: break-word; }
.st__head .text { margin-top: clamp(22px, 3vh, 36px); max-width: 26em; }
.st__media { grid-area: media; }
.st__hero { height: clamp(360px, 68vh, 820px); height: clamp(360px, 68svh, 820px); }
.st__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; padding-inline-end: var(--g); }
.st__row .ph { aspect-ratio: 16 / 9; }
/* the facts and the Enquire button come after all the photos (detail.njk), at the width of the left column */
.st__info { display: flex; flex-direction: column; gap: 24px; padding: 0 var(--g) var(--sec); }
.st__info > * { max-width: 560px; }
.st + .st__info { padding-top: 56px; }
.st ~ .formats { padding-bottom: clamp(48px, 6vw, 88px); }
@media (max-width: 899px) {
  .st { display: block; }
  .st__head { padding: 24px var(--g) 32px; }
  .st__hero { height: auto; aspect-ratio: 4 / 3; }
  .st__row { padding-inline: var(--g); }
}
@media (max-width: 359px) { .st__row { grid-template-columns: 1fr; } }

.formats { padding-block: var(--sec); }
.formats .h2 { margin-top: 0; }
/* product pages: the photos follow the heading and its button directly (the two paddings stacked into a 195 px gap) */
/* stone pages: the more photos follow the main ones as one gallery, with the same gap as between photos */
.st ~ .formats--more { padding-top: 40px; }
.formats--more .formats__grid { margin-top: 0; }
.phead + .formats { padding-top: 0; }
.phead + .formats .formats__grid { margin-top: 0; }
/* cubes and tables: four photos two by two, square and large */
.formats--pair .formats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(16px, 2vw, 28px); max-width: 1160px; }
.formats--pair .formats__grid .ph { aspect-ratio: 1 / 1; }
.formats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 16px; margin-top: clamp(32px, 4vw, 56px); }
.formats__grid .ph { aspect-ratio: 3 / 4; }
@media (max-width: 899px) { .formats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 359px) { .formats__grid, .formats--pair .formats__grid { grid-template-columns: 1fr; } .formats__grid .ph { aspect-ratio: 4 / 3; } }

.pn { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px 32px; align-items: center; padding-block: 0 var(--sec); border-top: 0; }
.pn__a { display: flex; align-items: center; gap: 18px; padding-top: 24px; border-top: 1px solid var(--rule); }
.pn__a .ph { width: 76px; height: 76px; flex: none; }
.pn__a .label { color: var(--muted); }
.pn__name { display: block; font-size: var(--h-4); line-height: 1.1; margin-top: 4px; transition: color .2s; }
.pn__a:hover .pn__name { color: var(--accent); }
.pn__all { justify-self: end; margin-top: 24px; }
@media (max-width: 699px) { .pn { grid-template-columns: 1fr; } .pn__all { justify-self: start; } }

/* ---------- products: paving, walling, cubes and tables ---------- */
.phead__act { margin-top: 32px; }
.prod { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px clamp(32px, 5vw, 96px); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule); }
.prod__text .text { margin-top: 16px; max-width: 24em; }
.prod__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prod__photos .ph { aspect-ratio: 4 / 5; }
.prod__photos .prod__wide { grid-column: 1 / -1; }
.prod__photos .prod__wide .ph { aspect-ratio: 16 / 10; }
.pn--prod { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: clamp(40px, 5vw, 72px) var(--sec); }
.family--prod { padding-top: var(--sec); }
.family__head .h1 { margin-top: 14px; }
.family--prod .cards { padding-top: clamp(32px, 4vw, 56px); }
@media (max-width: 899px) { .prod { grid-template-columns: 1fr; } }
@media (max-width: 359px) { .prod__photos { grid-template-columns: 1fr; } .prod__photos .ph { aspect-ratio: 4 / 3; } }

/* ---------- From block to container (quarry page) ----------
   Without the scene: each phase is a block with its text and photos. With the scene (.story-on, story.js): one held
   screen, the photos stacked full-bleed, the panel over a dark shade at the bottom, the five steps listed on the side. */
@property --dim { syntax: "<number>"; inherits: true; initial-value: 0; }
.story { padding-top: var(--sec); }
.story__head { padding-bottom: clamp(32px, 4vw, 56px); }
.phase { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px clamp(32px, 5vw, 96px); padding: clamp(36px, 4vw, 64px) var(--g); border-top: 1px solid var(--rule); }
.phase__text .h2 { margin-top: 12px; }
.phase__text .text { margin-top: 14px; max-width: 26em; }
.phase__photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.phase__photos .ph { aspect-ratio: 4 / 3; }
.plate { margin: 0; }
.story__panel, .story__head + .story__scene [data-story-data] { display: none; }
@media (max-width: 899px) { .phase { grid-template-columns: 1fr; } }

/* The held screen is as tall as the largest viewport (100lvh): on phones the browser bar slides away while you scroll,
   and a screen sized to the small viewport (svh) then left an empty strip at the bottom. The panel keeps to the small
   viewport (100svh from the top), so the bar never covers the text. */
.story-on .story__scene { position: relative; height: 100vh; height: 100lvh; overflow: hidden; background: #0B110E; }
.story-on .story__phases { position: absolute; inset: 0; margin: 0; padding: 0; overflow: hidden; }
/* right to left with a desktop scrollbar (on the left there): ScrollTrigger counts the scrollbar twice when it holds the
   scene, which pushed it 15 px off the right edge */
[dir="rtl"] .story-on .story__scene[style*="position: fixed"], [dir="rtl"] .cover[style*="position: fixed"] { left: 0 !important; }
.story-on .phase, .story-on .phase__photos { display: contents; }
.story-on .phase__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.story-on .plate { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.story-on .plate .ph { position: absolute; inset: 0; aspect-ratio: auto; background: #0B110E; }
.story-on .plate .ph::after { box-shadow: none; background: #070B09; opacity: var(--dim); }
.story-on .plate figcaption { display: none; }
/* a little spare photo above and below (--bleed), so the gentle drift never shows an edge */
.story-on .plate img { --bleed: 10%; position: absolute; inset: calc(var(--bleed) * -1) 0 auto 0; height: calc(100% + 2 * var(--bleed)); will-change: transform; }
.story-on .story__panel { display: flex; position: absolute; inset: 0 0 auto 0; height: 100vh; height: 100svh; z-index: 40; pointer-events: none; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding: 0 var(--g) clamp(28px, 7vh, 72px); color: #ECEBE3;
  background: linear-gradient(0deg, rgba(7, 11, 9, .86) 0%, rgba(7, 11, 9, .5) 34%, rgba(7, 11, 9, 0) 62%); }
.story__box { max-width: 600px; }
.story__kick { color: #C9D8CC; }  /* the cedar accent: 11:1 on the shade */
.story__count { display: flex; align-items: center; gap: 14px; margin-top: 14px; white-space: nowrap; font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; }
.story__bar { position: relative; flex: 0 1 180px; min-width: 24px; height: 1px; background: rgba(236, 235, 227, .3); overflow: hidden; }
.story__bar b { position: absolute; inset: 0; background: #ECEBE3; transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .story__bar b { transform-origin: right; }
.story__sub { color: rgba(236, 235, 227, .7); letter-spacing: .1em; }
.story__t { margin-top: 14px; color: #ECEBE3; }
.story__d { margin-top: 12px; max-width: 40ch; font-size: var(--t-md); line-height: 1.6; color: rgba(236, 235, 227, .9); }
.story__chip { margin-top: 14px; font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: #C9D8CC; min-height: 1.5em; }
.story-on [data-k] { transition: opacity .35s var(--ease), transform .5s var(--ease); }
.story-on [data-k].out { opacity: 0; transform: translateY(10px); }
[lang="ar"] .story__count, [lang="ar"] .story__chip { letter-spacing: 0; text-transform: none; font-size: var(--t-sm); }
@media (max-width: 899px) {
  .story-on .story__panel { padding-bottom: 28px; background: linear-gradient(0deg, rgba(7, 11, 9, .9) 0%, rgba(7, 11, 9, .55) 45%, rgba(7, 11, 9, 0) 75%); }
}
@media (max-height: 560px) { .story__d { display: none; } }
/* Phones held upright (.story-stack, set by story.js): a full-height photo crops a landscape photo to a third of its width
   and enlarges it about three times, so it looks zoomed in and soft. Here the photo sits in a band at the top, at most as tall
   as it is wide (--band, measured so the longest step text fits below), with the text under it on the dark ground (kept in the same place from step to step). */
.story-stack .story__phases { bottom: auto; height: var(--band, 56vh); }
.story-stack .plate img { --bleed: 4%; }
.story-stack .story__panel { top: var(--band, 56vh); height: calc(100vh - var(--band, 56vh)); height: calc(100svh - var(--band, 56vh)); align-items: flex-start; padding: 22px var(--g) 28px; background: none; }
.story-stack .story__count { margin-top: 12px; }
.story-stack .story__t { margin-top: 10px; }

/* ---------- quarry page: finishes and packing ---------- */
.fin { padding-block: var(--sec); }
.fin__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 18px; margin-top: clamp(32px, 4vw, 56px); }
.fin__grid .ph { aspect-ratio: 8 / 7; }
.fin__grid figcaption { margin-top: 12px; }
.fin__n { display: block; font-size: var(--h-4); line-height: 1.1; }
.fin__grid .cap { margin-top: 4px; }
.fin__note { display: flex; flex-direction: column; gap: 10px; margin-top: clamp(32px, 4vw, 56px); }
.fin__note .text { font-size: var(--t-md); }
@media (max-width: 899px) { .fin__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 359px) { .fin__grid { grid-template-columns: 1fr; } }
.pack { padding-block: var(--sec); }
.pack__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.pack__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 14px; margin-top: clamp(32px, 4vw, 56px); }
.pack__grid .ph { aspect-ratio: 3 / 4; }
@media (max-width: 899px) { .pack__head { grid-template-columns: 1fr; } .pack__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 359px) { .pack__grid { grid-template-columns: 1fr; } .pack__grid .ph { aspect-ratio: 4 / 3; } }

/* ---------- visit page ---------- */
.see { padding-block: var(--sec); }
.see__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 20px; margin-top: clamp(32px, 4vw, 56px); }
.see__grid .ph { aspect-ratio: 4 / 3; margin-bottom: 20px; }
.see__grid p { margin-top: 10px; color: var(--muted); max-width: 26em; }
@media (max-width: 899px) { .see__grid { grid-template-columns: 1fr; } }
.plan { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px clamp(40px, 6vw, 112px); padding-block: var(--sec); }
@media (max-width: 899px) { .plan { grid-template-columns: 1fr; } }

/* ---------- enquire page and forms ---------- */
.enq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px clamp(40px, 6vw, 112px); padding-block: clamp(48px, 7vw, 112px) var(--sec); }
.enq__h { margin-top: 44px; margin-bottom: 14px; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2em 1fr; color: var(--ink); }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: var(--t-xs); letter-spacing: .1em; color: var(--muted); padding-top: 4px; }
@media (max-width: 899px) { .enq { grid-template-columns: 1fr; } }

.form .f { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; align-items: end; }  /* fields side by side always line up, even when one label wraps */
.form label { display: flex; flex-direction: column; gap: 8px; font-size: var(--t-sm); letter-spacing: .02em; }
.form label i { font-style: normal; color: var(--muted); }
.form label.full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-size: var(--t-md); color: var(--ink); background: transparent; border: 1px solid var(--muted); border-radius: 0; min-height: 48px; padding: 10px 14px; width: 100%; }
.form textarea { resize: vertical; min-height: 140px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .form select { background-position: 15px 50%, 20px 50%; }
.form select option { background: var(--bg); color: var(--ink); }
.form input::placeholder, .form textarea::placeholder { color: var(--muted); opacity: .8; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.form [aria-invalid="true"] { border-color: var(--accent); border-width: 2px; }
.form input[type=file] { padding: 10px; min-height: 0; color: var(--muted); font-size: var(--t-sm); }
/* the file button in the site's own style: square, thin line, ink fills it on hover (owner, 2026-12-04) */
.form input[type=file]::file-selector-button { font: inherit; font-size: var(--t-sm); letter-spacing: .02em; color: var(--ink); background: transparent;
  border: 1px solid var(--muted); border-radius: 0; min-height: 40px; padding: 8px 16px; margin-inline-end: 14px; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.form input[type=file]::file-selector-button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.form .hint { font-size: var(--t-sm); color: var(--muted); }
.form > .btn { margin-top: 30px; }
.form__msg { margin-top: 20px; padding: 12px 14px; border-inline-start: 2px solid var(--accent); }
.fine { font-size: var(--t-sm); color: var(--muted); margin-top: 14px; }
.form__fb, .form__ok { margin-top: 28px; padding: 24px; border: 1px solid var(--rule); }
.form__fb p, .form__ok p { margin-top: 10px; }
.form__fb pre { white-space: pre-wrap; font: 14px/1.5 var(--sans); background: color-mix(in srgb, var(--ink) 6%, transparent); padding: 14px; margin: 16px 0; }
.form .hp { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }  /* robot trap; no off-screen offset, which would make right-to-left pages scroll sideways */
@media (max-width: 599px) { .form .f { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { padding: clamp(32px, 3.5vw, 56px) var(--g) 28px; border-top: 1px solid color-mix(in srgb, #A6AEA7 22%, transparent); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px 32px; }
.foot__brand img { width: 190px; height: auto; }
.foot__brand .tagline { margin-top: 22px; font-size: var(--h-4); }
.foot h2 { margin-bottom: 14px; }
.foot p { font-size: var(--t-md); margin-top: 6px; }
.foot a:not(.maplink):hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__pdf { margin-top: 18px !important; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 899px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 459px) { .foot__grid { grid-template-columns: 1fr; } }
/* slim footer under the contact block (home, quarry and factory): logo, page links in a row, catalogue PDFs */
.foot--slim { padding-top: clamp(40px, 5vw, 64px); }
.foot--slim .foot__grid { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px 56px; }
.foot--slim .foot__links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.foot--slim .foot__links p, .foot--slim .foot__pdf { margin-top: 0 !important; }
.foot--slim .foot__base { margin-top: 40px; }
@media (max-width: 899px) { .foot--slim .foot__grid { grid-template-columns: minmax(0, 1fr); align-items: start; } .foot--slim .foot__brand { grid-column: auto; } }

/* ---------- small reveal: once, gentle, never without JavaScript or with reduced motion ---------- */
.rv [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Arabic (right to left): stone names stay in Latin script (Cormorant); Arabic words fall through to Markazi and Plex ---------- */
[lang="ar"] body { font-size: 17px; }
[lang="ar"] .nav a, [lang="ar"] .btn, [lang="ar"] .btn--sm, [lang="ar"] .mode { letter-spacing: 0; text-transform: none; }
[lang="ar"] .nav a { font-size: 15px; }
[lang="ar"] .fam .label, [lang="ar"] .fam:hover .label { letter-spacing: 0; }
[lang="ar"] .label, [lang="ar"] .facts dt, [lang="ar"] .toc__n, [lang="ar"] .burger, [lang="ar"] .lang, [lang="ar"] .mode, [lang="ar"] .card__line, [lang="ar"] .cap { letter-spacing: 0; text-transform: none; }
[lang="ar"] .label, [lang="ar"] .facts dt { font-size: var(--t-sm); }
[lang="ar"] .cap, [lang="ar"] .card__line { font-size: var(--t-sm); }
[lang="ar"] .text, [lang="ar"] p, [lang="ar"] dd, [lang="ar"] li { line-height: 1.8; }
[lang="ar"] .display, [lang="ar"] .h1, [lang="ar"] .h2 { line-height: 1.2; }
[lang="ar"] .h1:lang(ar), [lang="ar"] .h2:lang(ar), [lang="ar"] .tagline { font-size-adjust: none; }
[lang="ar"] .fin__n, [lang="ar"] .card__name, [lang="ar"] .pn__name, [lang="ar"] .toc ol a, [lang="ar"] ol.toc a, [lang="ar"] .menu nav a { line-height: 1.35; }

/* ---------- photo viewer (stone pages, viewer.js) ----------
   Always on the dark cedar shade, whatever the light/dark choice: the photo, then a bar with the caption, the counter and
   square previous and next buttons. Square-cut, thin lines, no gold. */
.ph--open { cursor: zoom-in; }
.ph__open { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.ph__open:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0B110E; color: #ECEBE3; overflow: hidden; }
.lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lb::backdrop { background: #0B110E; }
.lb__stage { position: relative; overflow: hidden; touch-action: pan-y pinch-zoom; }
.lb__fig { position: absolute; inset: max(64px, env(safe-area-inset-top)) var(--g) 12px; display: flex; align-items: center; justify-content: center; }
.lb__fig picture { display: contents; }
.lb__fig img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb__fig.is-moving { transition: transform .38s var(--ease), opacity .38s var(--ease); }
.lb__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 24px;
  padding: 14px var(--g) max(18px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(236, 235, 227, .14); }
.lb__cap { font-family: var(--serif); font-weight: 300; font-size: var(--h-4); line-height: 1.2; }
.lb__n { font-size: var(--t-xs); letter-spacing: .16em; color: #A6AEA7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb__nav { display: flex; gap: 8px; }
.lb__btn { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid rgba(236, 235, 227, .35); border-radius: 0;
  background: transparent; color: #ECEBE3; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.lb__btn svg { width: 14px; height: 14px; }
.lb__btn:hover { background: #ECEBE3; color: #0B110E; border-color: #ECEBE3; }
.lb__btn:focus-visible { outline: 2px solid #ECEBE3; outline-offset: 3px; }
.lb__prev .arr { transform: scaleX(-1); }
[dir="rtl"] .lb__prev .arr { transform: none; }
[dir="rtl"] .lb__next .arr { transform: scaleX(-1); }
.lb__close { position: absolute; top: max(12px, env(safe-area-inset-top)); inset-inline-end: var(--g); z-index: 2; }
@media (max-width: 599px) {
  .lb__bar { grid-template-columns: minmax(0, 1fr) auto; }
  .lb__cap { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .lb__fig.is-moving, .lb__btn { transition: none; } }

/* ---------- section rhythm (owner, 2026-12-04) ----------
   One step (--sec) between any two sections, on every page. Content sections carry a full step above and below; when two
   of them meet, the second drops its top space, so neighbours never add up to a double gap. Photos that run edge to edge
   (cover, family panels, spreads) carry no space of their own: the content section next to them provides it. */
:is(.intro, .mosaic, .family, .fin, .pack, .see, .plan, .enq, .formats, .pn, .st__info)
  + :is(.intro, .mosaic, .family--prod, .fin, .pack, .see, .plan, .formats:not(.formats--more), .story) { padding-top: 0; }

/* ---------- tap areas on touch screens (owner, 2026-12-04) ----------
   Small text links get a 44 px tall tap area. The extra space is invisible: padding on top and bottom, taken back by an
   equal negative margin, so nothing moves on screen. */
@media (max-width: 899px), (pointer: coarse) {
  .foot a, .facts--contact a, .menu__contact a, .dl, .label a, .more, .maplink, .formats figcaption a, .visitnote a {
    padding-block: 12px; margin-block: -12px;
  }
  .prose a { padding-block: 10px; margin-block: -10px; }
  .label a { padding-block: 14px; margin-block: -14px; }
  .lang a, .lang span { min-height: 44px; min-width: 40px; }
}
.cover + .intro { padding-top: 0; }

/* older browsers without color-mix(): soft lines instead of bright ones */
@supports not (color: color-mix(in srgb, red, blue)) {
  [class*="g-"] { --rule: rgba(166, 174, 167, .32); }
}

/* ---------- side by side: text that stays in view (owner, 2026-12-04, test) ----------
   On a computer the text sits in a column on the left and stays in view while the photos on the right scroll by,
   like the stone pages. Finishes, packing, the top of Quarry and factory, Cubes and tables. Phones keep one column. */
.split__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(14px, 1.6vw, 24px); }
.split__grid .ph { aspect-ratio: 1 / 1; }
.split--cubes { padding-block: clamp(48px, 8vw, 120px) var(--sec); }
.split--cubes .split__side .text { margin-top: clamp(22px, 3vh, 36px); }
@media (min-width: 900px) {
  .split, .mosaic--page { display: grid; grid-template-columns: minmax(280px, 34%) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 72px); align-items: start; }
  .split > .split__side, .mosaic--page > .split__side { position: sticky; top: calc(var(--top-h) + 24px); align-self: start; }
  .split .fin__grid, .split .pack__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
  .split .fin__note { margin-top: clamp(24px, 3vw, 40px); }
  .pack.split .pack__head { display: block; }
  .pack.split .pack__head .text { margin-top: 20px; }
  /* Quarry and factory top: title on the left, the big photo and the smaller ones on the right */
  .mosaic--page { grid-template-areas: "head big" "head grid"; row-gap: 16px; }
  .mosaic--page .mosaic__big .ph { aspect-ratio: 16 / 10; }
  .mosaic--page .mosaic__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .split .fin__grid { margin-top: clamp(32px, 4vw, 56px); }
  .split .fin__note { margin-top: 24px; }
  .split--cubes .split__grid { margin-top: 40px; }
}
@media (max-width: 359px) { .split__grid { grid-template-columns: 1fr; } }
