/* Layout: full-bleed arched hero, a quiet two-column philosophy, a filterable three-column stone catalog, a dark contact close. */
:root {
  --bg: #F2E6D2;
  --bg-alt: #E9D6B5;
  --fg: #2A2520;
  --muted: #6A6055;
  --line: rgba(42, 37, 32, 0.16);
  --accent: #8A5A33;
  --nav-bg: rgba(242, 230, 210, 0.86);
  --btn-bg: #1C1A17;
  --btn-fg: #F7EEDF;
  --ink: #1C1A17;
  --ink-fg: #EDE6DA;
  --ink-muted: #A89C8A;
  --ink-line: rgba(237, 230, 218, 0.18);
  --ink-accent: #C9A27A;
  --hero-fg: #FBF7F0;
  --hero-btn-bg: #F7EEDF;
  --hero-btn-fg: #1C1A17;
  --ph-a: #B9A68C;
  --ph-b: #8F7B62;
  --mark: #7A3E2A;
  --disk-a: #D8CDBB;
  --disk-b: #C2B6A3;
  --logo: #5A2D1F;
  --err: #A63A24;
  --g-page: radial-gradient(1000px 700px at 90% -10%, rgba(246, 234, 214, 0.55) 0%, rgba(246, 234, 214, 0) 60%), radial-gradient(1000px 760px at -8% 106%, rgba(214, 170, 104, 0.42) 0%, rgba(214, 170, 104, 0) 62%), linear-gradient(170deg, #F3E7D4 0%, #EEDCBE 45%, #E6CB9E 100%);
  --g-alt: radial-gradient(900px 600px at 10% 0%, rgba(245, 232, 210, 0.5) 0%, rgba(245, 232, 210, 0) 60%), linear-gradient(165deg, #EEDDBF 0%, #E7CFA6 55%, #DFC08C 100%);
  --g-card: linear-gradient(172deg, #F5EAD8 0%, #EEDCBD 100%);
  --g-ink: radial-gradient(900px 600px at 85% 0%, rgba(120, 82, 50, 0.32) 0%, rgba(120, 82, 50, 0) 60%), linear-gradient(170deg, #211C17 0%, #16130F 100%);
  --serif: 'EB Garamond', 'Noto Naskh Arabic', Georgia, 'Times New Roman', serif;
  --sans: 'EB Garamond', 'Noto Naskh Arabic', Georgia, serif;   /* one typeface across the site: the «sans» name stays only so older rules keep working */
  --gutter: clamp(20px, 7vw, 120px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1714;
    --bg-alt: #221E1A;
    --fg: #EDE6DA;
    --muted: #A89C8A;
    --line: rgba(237, 230, 218, 0.16);
    --accent: #C9A27A;
    --nav-bg: rgba(26, 23, 20, 0.84);
    --btn-bg: #EDE6DA;
    --btn-fg: #1A1714;
    --ink: #0F0D0B;
    --ph-a: #5A4D3E;
    --ph-b: #3A3128;
    --mark: #D08A63;
    --err: #E58A73;
    --g-page: radial-gradient(1100px 760px at 88% -8%, rgba(110, 78, 50, 0.30) 0%, rgba(110, 78, 50, 0) 62%), radial-gradient(900px 680px at -6% 104%, rgba(70, 52, 36, 0.40) 0%, rgba(70, 52, 36, 0) 60%), linear-gradient(168deg, #1F1A16 0%, #1A1613 55%, #15120F 100%);
    --g-alt: radial-gradient(900px 600px at 12% 0%, rgba(120, 86, 56, 0.22) 0%, rgba(120, 86, 56, 0) 60%), linear-gradient(162deg, #26201B 0%, #201B17 60%, #1B1714 100%);
    --g-card: linear-gradient(172deg, #241F1A 0%, #1C1815 100%);
    --g-ink: radial-gradient(900px 600px at 85% 0%, rgba(140, 96, 58, 0.22) 0%, rgba(140, 96, 58, 0) 60%), linear-gradient(170deg, #14110E 0%, #0B0908 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1714;
  --bg-alt: #221E1A;
  --fg: #EDE6DA;
  --muted: #A89C8A;
  --line: rgba(237, 230, 218, 0.16);
  --accent: #C9A27A;
  --nav-bg: rgba(26, 23, 20, 0.84);
  --btn-bg: #EDE6DA;
  --btn-fg: #1A1714;
  --ink: #0F0D0B;
  --ph-a: #5A4D3E;
  --ph-b: #3A3128;
  --mark: #D08A63;
  --err: #E58A73;
  --g-page: radial-gradient(1100px 760px at 88% -8%, rgba(110, 78, 50, 0.30) 0%, rgba(110, 78, 50, 0) 62%), radial-gradient(900px 680px at -6% 104%, rgba(70, 52, 36, 0.40) 0%, rgba(70, 52, 36, 0) 60%), linear-gradient(168deg, #1F1A16 0%, #1A1613 55%, #15120F 100%);
  --g-alt: radial-gradient(900px 600px at 12% 0%, rgba(120, 86, 56, 0.22) 0%, rgba(120, 86, 56, 0) 60%), linear-gradient(162deg, #26201B 0%, #201B17 60%, #1B1714 100%);
  --g-card: linear-gradient(172deg, #241F1A 0%, #1C1815 100%);
  --g-ink: radial-gradient(900px 600px at 85% 0%, rgba(140, 96, 58, 0.22) 0%, rgba(140, 96, 58, 0) 60%), linear-gradient(170deg, #14110E 0%, #0B0908 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; scrollbar-gutter: stable; }   /* the scrollbar's space is always kept, so nothing shifts sideways when a window opens or closes */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
section { scroll-margin-top: 72px; }

/* Arabic */
:lang(ar) body, html:lang(ar) body { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); line-height: 1.9; }
html:lang(ar) h1, html:lang(ar) h2, html:lang(ar) .serif { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
html:lang(ar) .caps, html:lang(ar) .eyebrow, html:lang(ar) .btn, html:lang(ar) .tab, html:lang(ar) .nav-links a { letter-spacing: 0; text-transform: none; font-size: 14px; }
html:lang(ar) em { font-style: normal; color: var(--accent); }
html:lang(ar) h1, html:lang(ar) h2 { line-height: 1.6; letter-spacing: 0; }
html:lang(ar) .hero-copy { gap: 26px; max-width: 580px; }
html:lang(ar) .hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.6; font-weight: 700; padding-block: 4px; }
html:lang(ar) .hero h1 em { display: block; }
html:lang(ar) .hero-copy p { font-size: 17px; line-height: 2.05; }
html:lang(ar) .hero-copy .eyebrow { line-height: 1.6; }
/* the brand line under the title: larger, in a fine serif */
.hero-copy > p[data-i18n="hero_p"] { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.5; letter-spacing: 0.02em; max-width: none; opacity: 0.95; }
html:lang(ar) .hero-copy > p[data-i18n="hero_p"] { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-style: normal; font-weight: 400; font-size: clamp(23px, 2.7vw, 30px); line-height: 1.7; letter-spacing: 0; }
html:lang(ar) .contact em { color: var(--ink-accent); }
html:lang(ar) .hero em { color: #E7C9A2; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* Nav */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
}
.nav-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 19px; letter-spacing: 0.32em; text-decoration: none; direction: ltr; white-space: nowrap; }
.brand .mark { width: 34px; height: auto; flex: none; fill: var(--mark); }
.nav .brand > span { color: var(--mark); }
.foot .brand > span { color: var(--ink-accent); }
.serif { font-family: var(--serif); }
.nav-right { display: flex; align-items: center; gap: 4px 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding-block: 12px; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
.nav-links a:hover { color: var(--fg); }
.nav-links a, .nav-right > .btn-outline { white-space: nowrap; }
.tools { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--fg); border-radius: 50%;
}
.icon-btn:hover { background: var(--line); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn { width: auto; padding: 0 12px; border-radius: 2px; font-size: 13px; letter-spacing: 0.04em; }
.menu-btn { flex-direction: column; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
/* Menu: a small sheet of frosted glass */
.menu { position: fixed; z-index: 40; top: calc(64px + env(safe-area-inset-top, 0px) + 8px); right: 16px; width: min(248px, calc(100vw - 32px)); padding: 8px;
  display: flex; flex-direction: column; border-radius: 2px;
  background: color-mix(in srgb, var(--bg) 52%, transparent);
  backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid color-mix(in srgb, #FFFFFF 38%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, #FFFFFF 35%, transparent) inset, 0 28px 60px -24px rgba(20, 14, 8, 0.45);
  transform-origin: top right; animation: menuin 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
html[dir="rtl"] .menu { transform-origin: top left; }
:root[data-theme="dark"] .menu { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 28px 60px -24px rgba(0, 0, 0, 0.7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .menu { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 28px 60px -24px rgba(0, 0, 0, 0.7); } }
.menu[hidden] { display: none; }
.menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 2px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 400; letter-spacing: 0.01em; text-decoration: none; color: var(--fg);
  transition: background 0.3s ease, color 0.3s ease; animation: menuitem 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 35ms + 60ms); }
html:lang(ar) .menu a { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 15px; letter-spacing: 0; }
.menu a::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(0.4); transition: opacity 0.3s ease, transform 0.3s ease; }
.menu a:hover, .menu a:focus-visible { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.menu a:hover::after, .menu a:focus-visible::after { opacity: 1; transform: none; }
.menu a:focus-visible { outline-offset: -2px; }
.menu .menu-sep { height: 1px; margin: 6px 14px; background: color-mix(in srgb, var(--fg) 12%, transparent); }
.menu a.menu-wa { justify-content: flex-start; gap: 10px; color: var(--accent); }
.menu a.menu-wa::after { display: none; }
.menu a.menu-wa svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@keyframes menuin { from { opacity: 0; transform: translateY(-6px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes menuitem { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .menu, .menu a { animation: none; } }
.theme-btn[data-mode="light"] .i-sun, .theme-btn[data-mode="dark"] .i-moon { display: none; }
.music-fab { position: fixed; z-index: 30; inset-inline-end: 16px; bottom: calc(44px + 52px + 12px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--line); background: var(--bg); color: var(--fg); box-shadow: 0 12px 30px -14px rgba(0,0,0,0.5); }
.music-fab svg { width: 30px; height: 30px; overflow: visible; }
.music-fab path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.music-fab .cl { stroke: currentColor; stroke-width: 1.45; }
.music-fab .cut { stroke: var(--bg); stroke-width: 0; }
.music-fab .slash { stroke: currentColor; stroke-width: 1.5; opacity: 0.9; }
.music-fab .rw { stroke: currentColor; stroke-width: 3; }
.music-fab .nh, .music-fab .nb { fill: currentColor; stroke: none; }
.music-fab .cl { stroke-width: 1.7; }
/* first visit: rings around the button, the notes sway, and a small label says what it is */
.music-btn.call::before, .music-btn.call::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--accent); pointer-events: none; animation: mring 2.6s ease-out infinite; }
.music-btn.call::after { animation-delay: 1.3s; }
@keyframes mring { from { transform: scale(1); opacity: 0.75; } to { transform: scale(1.75); opacity: 0; } }
.music-btn.call .clef { animation: nsway 2.6s ease-in-out infinite; }
/* the same button, small, in the top bar */
.music-nav { position: relative; transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s, background 0.3s ease, color 0.3s ease; }
.music-nav svg { width: 22px; height: 22px; overflow: visible; stroke-width: 0; }
.music-nav path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.music-nav .nh, .music-nav .nb { fill: currentColor; stroke: none; }
.music-nav .cl { stroke: currentColor; stroke-width: 1.7; }
.music-nav .rw { stroke: currentColor; }
.music-nav .clef, .music-nav .rhythm { transform-box: view-box; transform-origin: 12px 12px; transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1); }
.music-nav .rhythm { opacity: 0; transform: scale(0.85); }
.music-nav[aria-pressed="true"] .clef { opacity: 0; transform: scale(0.85); }
.music-nav[aria-pressed="true"] .rhythm { opacity: 1; transform: none; }
.nav .music-nav[aria-pressed="true"], .nav.on-hero .music-nav[aria-pressed="true"] { color: var(--accent); }
.music-nav.away { opacity: 0; transform: scale(0.6); visibility: hidden; pointer-events: none; transition: opacity 0.4s ease, transform 0.5s ease, visibility 0s 0.5s; }
/* the floating button waits below until the visitor scrolls past the first picture */
.music-fab { transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s, background 0.4s ease; }
.music-fab.docked { opacity: 0; transform: translateY(16px) scale(0.92); visibility: hidden; pointer-events: none; transition: opacity 0.35s ease, transform 0.45s ease, visibility 0s 0.45s; }
@keyframes nsway { 0%, 100% { transform: none; } 30% { transform: translateY(-1.6px) rotate(-7deg); } 60% { transform: translateY(0.6px) rotate(4deg); } }
.music-tip { position: fixed; z-index: 30; top: var(--ty, 80px); left: var(--tx, 50%); height: 40px; padding: 0 16px; border-radius: 2px; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13.5px; white-space: nowrap; color: var(--fg); cursor: pointer; --lg-tint: rgba(250, 246, 240, 0.92); box-shadow: inset 0 0 0 1px var(--lg-edge), 0 12px 28px -12px rgba(0, 0, 0, 0.55); opacity: 0; transform: translate(-50%, -8px); pointer-events: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.music-tip::before { content: ""; position: absolute; top: -5px; left: var(--ax, 50%); width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
:root[data-theme="dark"] .music-tip { --lg-tint: rgba(26, 22, 18, 0.92); }
.music-tip.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mt-note { color: var(--accent); font-size: 15px; line-height: 1; }
html:lang(ar) .music-tip { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 14px; }
/* computer screens: the music button is a wide pill like the WhatsApp one, with its name written on it */
.mf-text { display: none; }
@media (min-width: 900px) {
  .music-fab { width: auto; min-width: 200px; height: 52px; border-radius: 2px; padding: 0 22px 0 16px; gap: 10px; justify-content: flex-start; font: inherit; font-size: 14px; letter-spacing: 0.02em; }
  html:lang(ar) .music-fab { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 14.5px; letter-spacing: 0; }
  .music-fab svg { width: 26px; height: 26px; flex: none; }
  .mf-text { display: inline; white-space: nowrap; }
  .music-fab.call::before, .music-fab.call::after { border-radius: 2px; animation-name: mring-wide; }
  .music-fab.lg:not([aria-pressed="true"]) { --lg-tint: rgba(250, 246, 240, 0.7); }
  :root[data-theme="dark"] .music-fab.lg:not([aria-pressed="true"]) { --lg-tint: rgba(26, 22, 18, 0.72); }
  .hero .btn { margin-inline-end: 170px; }   /* keep the hero button clear of the floating buttons */
}
@keyframes mring-wide { from { transform: scale(1); opacity: 0.75; } to { transform: scale(1.14, 1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .music-btn.call::before, .music-btn.call::after, .music-btn.call .clef { animation: none; } .music-btn.call::before { opacity: 0.6; } .music-btn.call::after { display: none; } .music-nav, .music-fab, .music-nav.away, .music-fab.docked { transition: none; } }
.music-fab .clef, .music-fab .rhythm { transform-box: view-box; transform-origin: 12px 12px; transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1); }
/* stopped: a treble clef with a slash */
.music-fab .rhythm { opacity: 0; transform: scale(0.85); }
/* playing: three strings, almost still, plucked by each piano note */
.music-fab[aria-pressed="true"] .clef { opacity: 0; transform: scale(0.85); }
.music-fab[aria-pressed="true"] .rhythm { opacity: 1; transform: none; }
.music-fab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.music-fab[aria-pressed="true"] .cut { stroke: var(--accent); }
.btn-outline {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; text-decoration: none;
  border: 1px solid var(--fg); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }

.wrap { max-width: calc(1320px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.ph {
  background-image: var(--img, none), linear-gradient(140deg, var(--ph-a), var(--ph-b));
  background-size: cover; background-position: center;
}
.ph-lime { background-image: radial-gradient(rgba(255,255,255,0.35) 1px, transparent 1.6px), radial-gradient(rgba(120,95,60,0.10) 1px, transparent 1.6px), linear-gradient(150deg, #EAE1D0, #CDBFA7); background-size: 9px 9px, 13px 13px, cover; }
.ph-lime2 { background-image: linear-gradient(115deg, rgba(255,255,255,0.28), transparent 35%, rgba(90,60,30,0.12) 70%, transparent), radial-gradient(rgba(120,95,60,0.12) 1px, transparent 1.6px), linear-gradient(150deg, #D9C7A8, #B9A07F); background-size: cover, 11px 11px, cover; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 24px; text-decoration: none; cursor: pointer; border: 0;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; background: var(--btn-bg); color: var(--btn-fg); font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: clamp(560px, 66vw, 760px); display: flex; align-items: flex-end; color: var(--hero-fg); }
.hero-img { position: absolute; inset: -7%; transform: translateY(calc(var(--sy, 0) * 1px)); will-change: transform; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 14, 10, 0.72), rgba(18, 14, 10, 0.18) 60%, rgba(18, 14, 10, 0.34)); }
html[data-theme="dark"] .hero-img::after { background: linear-gradient(to top, rgba(10, 8, 6, 0.85), rgba(10, 8, 6, 0.35) 60%, rgba(10, 8, 6, 0.5)); }
.hero-inner { position: relative; width: 100%; align-self: stretch; align-content: flex-end; padding-block: 120px 56px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.hero .eyebrow { color: var(--hero-fg); opacity: 0.85; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.4vw, 80px); line-height: 1.02; text-wrap: balance; }
.hero h1 em { font-style: italic; }
.hero p { font-size: 14px; line-height: 1.8; max-width: 380px; opacity: 0.9; }
.hero .btn { background: var(--hero-btn-bg); color: var(--hero-btn-fg); }

/* Philosophy */
.philosophy { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(88px, 11vw, 150px); border-top: 1px solid var(--line); }
.philosophy::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, var(--bg) 0, color-mix(in srgb, var(--bg) 55%, transparent) 90px, transparent 190px), linear-gradient(to top, var(--bg) 0, color-mix(in srgb, var(--bg) 55%, transparent) 70px, transparent 150px); }
.phil-bg { position: absolute; inset: -90px -3%; z-index: -1; }
.phil-bg .ph { position: absolute; inset: 0; --img: url('img/philosophy.jpg?v=c3'); transform: translateY(calc(var(--sy, 0) * 1px)); will-change: transform; }
.phil-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, color-mix(in srgb, var(--bg) 6%, transparent) 0%, color-mix(in srgb, var(--bg) 50%, transparent) 36%, color-mix(in srgb, var(--bg) 93%, transparent) 62%); }
html[dir="rtl"] .phil-bg::after { background: linear-gradient(to left, color-mix(in srgb, var(--bg) 6%, transparent) 0%, color-mix(in srgb, var(--bg) 50%, transparent) 36%, color-mix(in srgb, var(--bg) 93%, transparent) 62%); }
@media (max-width: 720px) { .phil-bg::after, html[dir="rtl"] .phil-bg::after { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 6%, transparent) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 30%, color-mix(in srgb, var(--bg) 94%, transparent) 52%); } }
.phil-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.phil-photo { aspect-ratio: 4 / 5; max-width: 100%; }
@media (max-width: 720px) { .phil-photo { aspect-ratio: 4 / 3; } }
.phil-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
h2.title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.12; text-wrap: balance; }
h2.title em { font-style: italic; }
.phil-copy > p { color: var(--muted); max-width: 460px; }
.phil-text { color: var(--muted); max-width: 520px; display: flex; flex-direction: column; gap: 1em; }
.phil-text i { font-style: italic; color: var(--fg); }
.phil-text.short p:not(:first-child) { display: none; }
.phil-text p { animation: philin 0.8s ease both; }
@keyframes philin { from { opacity: 0; } }
.phil-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); cursor: pointer; font: inherit; font-size: 14px; margin-top: -8px; }
.phil-more::after { content: "+"; color: var(--accent); font-size: 16px; }
.phil-more:hover { border-color: var(--fg); }
.phil-more[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .phil-text p { animation: none; } }
html:lang(ar) .phil-text i { font-style: normal; }
.kname { color: var(--accent); }
.hero .kname, .lib-card .kname, .card .kname { color: #E7C9A2; }
.contact .kname, .foot .kname { color: var(--ink-accent); }
.nav .brand .kname, .foot .brand .kname { color: inherit; }
.kw { font-family: var(--serif); font-style: italic; font-size: 1.22em; line-height: 1; color: var(--accent); letter-spacing: 0.02em; }
html:lang(ar) .kw { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-style: normal; font-weight: 700; font-size: 1.18em; letter-spacing: 0; }.principles { display: flex; flex-direction: column; margin-top: 8px; }
.principle { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; padding-block: 18px; border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.num { font-family: var(--serif); font-size: 15px; color: var(--muted); }
.principle h3 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin-bottom: 4px; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
.principle p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* Portfolio */
.portfolio { background: var(--bg-alt); padding-block: clamp(64px, 9vw, 120px); }
/* a large photo, softly blurred, behind the work; the cards float above it */
.portfolio { position: relative; isolation: isolate; overflow: hidden; }
.portfolio::before { content: ""; position: absolute; inset: -80px; z-index: -2; background: url('img/hero-blur.jpg?v=c3') center / cover no-repeat; filter: saturate(0.9); }
.portfolio::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg-alt) 80%, transparent), color-mix(in srgb, var(--bg-alt) 40%, transparent) 30%, color-mix(in srgb, var(--bg-alt) 40%, transparent) 75%, color-mix(in srgb, var(--bg-alt) 85%, transparent)); }
.portfolio .card { border-radius: 2px; overflow: visible; box-shadow: 0 30px 50px -30px rgba(20, 14, 8, 0.55); transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.6s ease; }
.portfolio .card:hover { transform: translateY(-4px); box-shadow: 0 38px 60px -30px rgba(20, 14, 8, 0.65); }
/* the photo is clipped inside its own rounded frame, so no light seam shows at the edges */
.portfolio .card .tile { border-radius: inherit; overflow: hidden; clip-path: inset(0 round 2px); background: #2A2520; transform: translateZ(0); }
.portfolio .card .tile > div { inset: -3px; }
.portfolio .card .tile::after { border-radius: inherit; box-shadow: inset 0 0 70px rgba(10, 7, 4, 0.35), inset 0 0 0 1.5px rgba(20, 14, 8, 0.45); }
 color: var(--fg); border-style: solid; border-color: color-mix(in srgb, var(--fg) 22%, transparent); background: color-mix(in srgb, var(--bg) 55%, transparent); }
.portfolio .card:focus-visible { outline-offset: 4px; }
.port-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 40px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; cursor: pointer; min-height: 44px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 0; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
.tab:hover { color: var(--fg); }
.tab[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 40px 24px; margin-top: 36px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; } .card { aspect-ratio: 3 / 4; padding: 12px; gap: 2px; } .cap h3, html:lang(ar) .cap h3 { font-size: 16px; } .cap svg { display: none; } .card .tag { font-size: 10px; letter-spacing: 0.06em; line-height: 1.4; } html:lang(ar) .card .tag { font-size: 11px; letter-spacing: 0; } }
.card[hidden] { display: none; }
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; aspect-ratio: 4 / 5; overflow: hidden; padding: 22px; color: #FBF7F0; text-decoration: none; min-width: 0; isolation: isolate; }
.card { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card .tile { position: absolute; inset: 0; z-index: -1; touch-action: pan-y pinch-zoom; }
.card .tile::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 70px rgba(10, 7, 4, 0.35); background: linear-gradient(to top, rgba(14, 10, 7, 0.82), rgba(14, 10, 7, 0.38) 38%, rgba(14, 10, 7, 0) 66%); }
.card .tile > div {
  position: absolute; inset: 0; scale: 1.24;
  translate: calc(var(--mx, 0) * -20px) calc(var(--my, 0) * -20px);
  transform: translate3d(0, calc(var(--sy, 0) * 1px), 0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transition: translate 2.2s cubic-bezier(0.22, 0.61, 0.36, 1), scale 1.8s ease;
}
.card:hover .tile > div { scale: 1.32; }
.card .tile .ph-next { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 2.8s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }
.card .tile .ph-next.on { opacity: 1; }
.card .cap, .card .tag { translate: calc(var(--mx, 0) * 6px) calc(var(--my, 0) * 5px); transition: translate 2.2s cubic-bezier(0.22, 0.61, 0.36, 1); }
.card .tag { color: rgba(251, 247, 240, 0.78); }
.card .cap svg { stroke: #FBF7F0; }
.cap h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; }
html:lang(ar) .cap h3 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 22px; }
.cap svg { width: 14px; height: 14px; margin-top: 6px; stroke: var(--muted); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tag { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }

/* Contact */
.contact { background: var(--ink); color: var(--ink-fg); padding-block: clamp(64px, 9vw, 112px) 36px; }
.contact-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.1; text-wrap: balance; }
.contact h2 em { font-style: italic; color: var(--ink-accent); }
.contact .btn { background: transparent; color: var(--ink-fg); border: 1px solid var(--ink-line); }
.contact .btn:hover { border-color: var(--ink-fg); }
[hidden] { display: none !important; }
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--ink-line); }
.info dt { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-accent); margin-bottom: 8px; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
html:lang(ar) .info dt { letter-spacing: 0; text-transform: none; font-size: 13px; }
.info dd { margin: 0; font-size: 14px; color: var(--ink-fg); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ink-line); font-size: 12px; color: var(--ink-muted); }
.foot .brand { color: var(--ink-fg); font-size: 15px; }
.foot-login { border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 12px; color: var(--ink-muted); opacity: 0.7; cursor: pointer; }
.foot-login:hover, .foot-login:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.foot .brand .mark { width: 28px; fill: var(--ink-accent); }

/* Quote */
.quote { background: var(--bg-alt); padding-block: clamp(64px, 9vw, 120px); }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(32px, 6vw, 80px); align-items: start; }
.quote-copy { min-width: 0; }
.form { background: var(--bg); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide, .form > .btn, .form > p { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
html:lang(ar) .field label { letter-spacing: 0; text-transform: none; font-size: 13px; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 0; min-height: 48px; padding: 0 14px; width: 100%; }
.field textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.form .btn { justify-self: start; }
.form-hint { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.form-error { font-size: 13px; color: var(--err); }

/* Floating WhatsApp */
.fab {
  position: fixed; z-index: 30; inset-inline-end: 16px; bottom: calc(44px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 2px;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; font-size: 13px; letter-spacing: 0.04em;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
}
.fab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 560px) { .fab { width: 52px; padding: 0; justify-content: center; } .fab span { display: none; } }


/* Category modal */
.cm-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(14, 10, 7, 0.62); opacity: 0; transition: opacity 0.3s ease; }
.cm-backdrop[hidden] { display: none; }
.cm-backdrop.open { opacity: 1; }
.cm { position: relative; width: 100%; max-width: 960px; max-height: min(90vh, 720px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6); overflow: hidden; opacity: 0; transform: scale(0.97); transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cm-backdrop.open .cm { opacity: 1; transform: none; }
.cm-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 6; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cm-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; }
.cm-grab { display: none; }
.cm-media { display: flex; flex-direction: column; background: var(--bg-alt); min-height: 0; }
.cm-main { position: relative; flex: 1; min-height: 300px; overflow: hidden; }
.cm-main .ph { position: absolute; inset: 0; transition: opacity 0.35s ease; }
.cm-main .ph.swap { opacity: 0; }
.cm-thumbs { display: flex; gap: 8px; padding: 10px; }
.cm-thumbs button { flex: 1; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); background: var(--bg-alt); cursor: pointer; position: relative; overflow: hidden; opacity: 0.72; transition: opacity 0.3s ease; }
.cm-thumbs button .ph { position: absolute; inset: 0; }
.cm-thumbs button:hover, .cm-thumbs button[aria-current="true"] { opacity: 1; }
.cm-thumbs button[aria-current="true"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.cm-text { position: relative; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 44px 36px 96px; display: flex; flex-direction: column; gap: 20px; }
.cm-text h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; padding-inline-end: 40px; }
html:lang(ar) .cm-text h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 700; line-height: 1.4; }
.cm-work { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
html:lang(ar) .cm-work { letter-spacing: 0; text-transform: none; font-size: 13px; }
.cm-text > p { color: var(--muted); line-height: 1.85; font-size: 15px; }
html:lang(ar) .cm-text > p { line-height: 2; }
.cm-hl { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 14px; }
.cm-hl li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; line-height: 1.5; font-size: 15px; }
.cm-hl .ic { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 13%, transparent); }
.cm-hl svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cm-hl small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 2px; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
html:lang(ar) .cm-hl small { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.cm-more { margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.cm-more h3 { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
html:lang(ar) .cm-more h3 { letter-spacing: 0; text-transform: none; font-size: 13px; }
.cm-more-row { display: flex; gap: 14px; overflow-x: auto; padding: 8px 6px 4px; margin: -8px -6px 0; scrollbar-width: none; }
.cm-fade { display: none; }
.cm-more-row::-webkit-scrollbar { display: none; }
.cm-more button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 76px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--muted); font: inherit; font-size: 12px; line-height: 1.3; text-align: center; }
.cm-more button .dot { position: relative; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; outline: 1px solid var(--line); outline-offset: 3px; transition: outline-color 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cm-more button .dot .ph { position: absolute; inset: 0; }
.cm-more button:hover .dot { transform: scale(1.06); outline-color: var(--accent); }
.cm-more button:hover { color: var(--fg); }
.cm-float { position: absolute; z-index: 5; bottom: 18px; inset-inline-end: 18px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 2px; background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-size: 13px; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.55); }
.cm-float svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cm-ask { position: absolute; inset: 0; z-index: 7; background: var(--bg); overflow-y: auto; padding: 56px clamp(20px, 4vw, 44px) 32px; transform: translateY(100%); visibility: hidden; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.4s; }
.cm-ask.open { transform: none; visibility: visible; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cm-ask h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; margin-bottom: 6px; }
html:lang(ar) .cm-ask h3 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 700; }
.cm-ask .cm-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.cm-ask .form { border: 0; padding: 0; }
.cm-ask .cm-back { position: absolute; top: 12px; inset-inline-start: 12px; }
@media (max-width: 720px) {
  .cm-backdrop { padding: 0; align-items: flex-end; }
  .cm { max-width: none; height: 100%; max-height: none; border: 0; grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; opacity: 1; transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .cm-backdrop.open .cm { transform: none; }
  .cm-grab { display: block; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 44px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.85); z-index: 6; box-shadow: 0 0 6px rgba(0, 0, 0, 0.4); }
  .cm-main { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .cm-text { overflow: visible; padding: 26px 20px calc(130px + env(safe-area-inset-bottom, 0px)); }
  .cm-float { position: fixed; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); justify-content: center; }
  .cm-fade { display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 4; height: calc(104px + env(safe-area-inset-bottom, 0px)); pointer-events: none; background: linear-gradient(to top, var(--bg) 0, var(--bg) 55%, color-mix(in srgb, var(--bg) 0%, transparent)); }
  .cm-ask { position: fixed; }
}
@media (prefers-reduced-motion: reduce) { .cm-backdrop, .cm, .cm-main .ph, .cm-ask, .cm-ask.open { transition: none; } .cm { transform: none; } }

/* ---- Phone: the hero fills the screen; the bar dissolves into the photo until you scroll past it ---- */
@media (max-width: 720px) {
  main .hero { min-height: 100vh; min-height: 100svh; }
  main .hero-inner { padding-block: 110px 40px; }
  .nav { transition: background 0.5s ease, border-color 0.5s ease, color 0.5s ease; }
  .nav.on-hero { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--hero-fg); }
  .nav.on-hero::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(18, 14, 10, 0.4), rgba(18, 14, 10, 0));
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent); mask-image: linear-gradient(to bottom, #000 50%, transparent); }
  .nav.on-hero .brand, .nav.on-hero .icon-btn { color: var(--hero-fg); }
  .nav.on-hero .brand span { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4); }
  .nav.on-hero .brand .mark { fill: #F1DFCB; filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.35)); }
  .nav.on-hero .btn-outline { border-color: currentColor; }
  .nav.on-hero .icon-btn:hover { background: rgba(255, 255, 255, 0.14); }
}

/* ---- Stone texture zoom ---- */
.sw-zoom { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--bg) 86%, transparent); color: var(--fg); box-shadow: 0 6px 16px -8px rgba(0,0,0,0.5); transition: transform 0.3s ease, background 0.3s ease; }
.sw-zoom:hover { transform: scale(1.08); background: var(--bg); }
.sw-zoom svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tz { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(14, 10, 7, 0.7); opacity: 0; transition: opacity 0.3s ease; }
.tz[hidden] { display: none; }
.tz.open { opacity: 1; }
.tz-dlg { position: relative; width: 100%; max-width: 880px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--bg); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6); overflow: hidden; transform: scale(0.97); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tz.open .tz-dlg { transform: none; }
.tz-stage { position: relative; flex: 1; min-height: 0; aspect-ratio: 16 / 10; overflow: hidden; cursor: grab; touch-action: none; background: var(--bg-alt); }
.tz-stage, .tz-stage:active { cursor: default; }
.tz-zoom, .tz-hint { display: none !important; }
.tz-tex { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; background-color: var(--c, #CCC);
  background-image: var(--extra, linear-gradient(transparent, transparent)), var(--grain), radial-gradient(rgba(0,0,0,0.07) 1px, transparent 1.5px), radial-gradient(rgba(255,255,255,0.22) 1px, transparent 1.6px);
  background-size: auto, 220px 220px, 7px 7px, 11px 11px; background-position: 0 0, 0 0, 0 0, 3px 4px; }
.tz-tex.photo { background-color: #1C1712; background-image: var(--photo), linear-gradient(#29221C 0 30%, #120D09 70%); background-size: contain, cover; background-repeat: no-repeat; background-position: center; }
.tz-hint { position: absolute; bottom: 12px; inset-inline-start: 12px; font-size: 12px; padding: 5px 12px; border-radius: 2px; background: rgba(20, 15, 10, 0.55); color: #FBF7F0; pointer-events: none; transition: opacity 0.6s ease; }
.tz-hint.gone { opacity: 0; }
.tz-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px clamp(18px, 3vw, 28px); border-top: 1px solid var(--line); }
.tz-bar h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
html:lang(ar) .tz-bar h3 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 700; }
.tz-bar p { color: var(--muted); font-size: 13.5px; }
.tz-zoom { display: flex; align-items: center; gap: 6px; }
.tz-zoom button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 20px; line-height: 1; color: var(--fg); }
.tz-zoom input { width: 120px; accent-color: var(--accent); }
.tz .cm-close { z-index: 3; }
@media (max-width: 720px) {
  .tz { padding: 0; align-items: flex-end; }
  .tz-dlg { max-height: 100%; height: 100%; border: 0; }
  .tz-stage { aspect-ratio: auto; }
}

.est-qty label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.est-qty output { font-family: var(--serif); font-size: 26px; color: var(--fg); letter-spacing: 0; text-transform: none; }
.est-qty input { width: 100%; accent-color: var(--accent); min-height: 32px; }
.est-result { padding: 20px; background: color-mix(in srgb, var(--accent) 9%, transparent); border-inline-start: 2px solid var(--accent); display: flex; flex-direction: column; gap: 4px; }
.est-result small { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
html:lang(ar) .est-result small { letter-spacing: 0; text-transform: none; font-size: 13px; }
.est-result strong { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.25; }
html:lang(ar) .est-result strong { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 700; }
.est-result span { font-size: 13px; color: var(--muted); line-height: 1.7; }
.quote { background: var(--bg); }
.faq { background: var(--bg-alt); }
.form > .est-result { grid-column: 1 / -1; }
.field .flabel { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
.field .flabel i { font-style: normal; opacity: 0.75; }
html:lang(ar) .field .flabel { letter-spacing: 0; text-transform: none; font-size: 13px; }
.stones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
@media (max-width: 420px) { .stones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stone-opt { position: relative; min-width: 0; display: flex; }
.so-pick { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; background: none; border: 1px solid var(--line); cursor: pointer; text-align: center; min-width: 0; transition: border-color 0.3s ease, background 0.3s ease; }
.so-pick:hover { border-color: color-mix(in srgb, var(--fg) 40%, transparent); }
.so-pick[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.so-dot { width: 46px; height: 46px; border-radius: 50%; flex: none; background-color: var(--c, #CCC);
  background-image: var(--extra, linear-gradient(transparent, transparent)), radial-gradient(rgba(0,0,0,0.08) 1px, transparent 1.5px), radial-gradient(rgba(255,255,255,0.28) 1px, transparent 1.6px);
  background-size: auto, 7px 7px, 11px 11px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); transition: box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.so-pick:hover .so-dot { transform: scale(1.06); }
.so-dot.photo { background-image: var(--img); background-size: 230%; background-position: 52% 52%; }
.so-pick[aria-checked="true"] .so-dot { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.so-name { font-size: 13px; line-height: 1.35; color: var(--fg); }
.so-sig { font-size: 11px; line-height: 1.3; color: var(--accent); margin-top: -4px; }
.stone-opt .sw-zoom { top: 4px; inset-inline-end: 4px; width: 32px; height: 32px; background: transparent; box-shadow: none; color: var(--muted); }
.stone-opt .sw-zoom:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg); transform: none; }
.stone-opt .sw-zoom svg { width: 16px; height: 16px; }
.quote-steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: st; display: flex; flex-direction: column; }
.quote-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); padding-block: 16px; border-top: 1px solid var(--line); }
.quote-steps li:last-child { border-bottom: 1px solid var(--line); }
.quote-steps li::before { counter-increment: st; content: "0" counter(st); font-family: var(--serif); font-size: 15px; color: var(--accent); }
.quote-steps b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.quote-steps span { display: block; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

/* ---- FAQ ---- */
.faq { background: var(--bg-alt); padding-block: clamp(64px, 9vw, 120px); }
.faq .title { margin-top: 20px; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; }
.faq-copy .btn { margin-top: 28px; }
.faq-list { border-top: 1px solid var(--line); min-width: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 14px; font-size: 18px; line-height: 1.4; }
html:lang(ar) .faq-item summary { font-size: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-a { padding-bottom: 22px; padding-inline-end: 34px; color: var(--muted); line-height: 1.85; }
.faq-a .faq-go { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 14px; min-height: 42px; padding: 0 18px; border-radius: 2px; text-decoration: none; color: var(--fg); background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.faq-a .faq-go::after { content: "←"; color: var(--accent); }
html[dir="ltr"] .faq-a .faq-go::after { content: "→"; }
.faq-a .faq-go:hover { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.faq-item[open] .faq-a { animation: faqin 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes faqin { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .faq-item[open] .faq-a { animation: none; } }

/* Motion: pointer and finger parallax, slow reveal on scroll */
[data-depth] {
  translate: calc(var(--px, 0) * var(--d, 0) * 1px) calc(var(--py, 0) * var(--d, 0) * 0.7px);
  transition: translate 2.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-parallax] { touch-action: pan-y pinch-zoom; }
.js-reveal .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1.5s ease var(--rd, 0s), transform 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0s), translate 2.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.js-reveal .rise { animation: rise 1.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--rd, 0s); }
@media (prefers-reduced-motion: reduce) {
  [data-depth] { translate: none; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .js-reveal .rise { animation: none; }
}

@media (max-width: 1040px) { .nav-links { display: none; } }
@media (max-width: 900px) {
  .hero { min-height: 0; }
}
@media (max-width: 560px) { .nav-right > .btn-outline { display: none; } .brand { font-size: 16px; letter-spacing: 0.24em; } }
@media (max-width: 430px) {
  .nav-inner { gap: 8px; }
  .brand { font-size: 14px; letter-spacing: 0.16em; gap: 8px; }
  .brand .mark { width: 28px; }
  .tools .icon-btn { width: 40px; }
  .tools .lang-btn { width: auto; padding: 0 8px; }
}
@media (max-width: 370px) { .brand { font-size: 13px; letter-spacing: 0.12em; } .brand .mark { width: 24px; } .tools .icon-btn { width: 38px; } }

/* Library: two quiet cards on the homepage, a full-screen reader behind them */
.lib { padding-block: clamp(48px, 7vw, 96px); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.lib-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: clamp(200px, 30vw, 340px); padding: clamp(22px, 3vw, 34px); border: 0; cursor: pointer; text-align: left; color: #FBF7F0; font: inherit; background: var(--ph-b); }
.lib-bg { position: absolute; inset: -24px; z-index: -2; background-image: var(--img, none), var(--tone); background-size: cover; background-position: center; filter: blur(1.5px) saturate(0.95); transform: scale(1.04); transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lib-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18, 14, 10, 0.82), rgba(18, 14, 10, 0.5) 55%, rgba(18, 14, 10, 0.38)); }
.lib-card:hover .lib-bg, .lib-card:focus-visible .lib-bg { transform: scale(1.09); }
.lib-card .eyebrow { color: #FBF7F0; opacity: 0.9; }
.lib-card h2, .lib-card p, .lib-card .eyebrow, .lib-go { text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45); }
.lib-card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; }
.lib-card h2 em { font-style: italic; color: #E7C9A2; }
html:lang(ar) .lib-card h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 700; line-height: 1.5; }
.lib-card p { font-size: 14px; line-height: 1.8; opacity: 0.9; max-width: 440px; }
.lib-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
html:lang(ar) .lib-go { letter-spacing: 0; text-transform: none; font-size: 14px; }
.lib-go::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width 0.5s ease; }
.lib-card:hover .lib-go::after { width: 48px; }
@media (prefers-reduced-motion: reduce) { .lib-bg { transition: none; } }

.lib-ph { background-image: var(--img, none), var(--tone, linear-gradient(140deg, var(--ph-a), var(--ph-b))); background-size: cover; background-position: center; }

.rd { position: fixed; inset: 0; z-index: 65; background: var(--bg); color: var(--fg); overflow-y: auto; overscroll-behavior: contain; opacity: 0; transform: translateY(18px); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rd.open { opacity: 1; transform: none; }
.rd[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .rd { transition: none; transform: none; } }
.rd-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: env(safe-area-inset-top, 0px) clamp(10px, 3vw, 28px) 0; background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.rd-btn { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 2px; background: none; color: var(--fg); cursor: pointer; font: inherit; font-size: 14px; }
.rd-btn:hover { background: var(--line); }
.rd-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rd-btn.only-x { padding: 0; justify-content: center; }
.rd-title { flex: 1; min-width: 0; text-align: center; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
html:lang(ar) .rd-title { letter-spacing: 0; text-transform: none; font-size: 13px; }
.rd-x[hidden] { display: none; }
.rd-wrap { max-width: 1100px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) 96px; }
.rd-narrow { max-width: 720px; padding-top: 36px; }
.rd-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.rd h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 58px); line-height: 1.1; margin: 0; }
html:lang(ar) .rd h1 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 700; line-height: 1.5; }
.rd-head p { color: var(--muted); font-size: 16px; line-height: 1.9; }

.rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 44%), 1fr)); gap: 12px; }
.rd-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; aspect-ratio: 3 / 4; padding: 16px; border: 0; cursor: pointer; text-align: left; color: #FBF7F0; font: inherit; }
.rd-card .lib-ph { position: absolute; inset: 0; z-index: -2; transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rd-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18, 14, 10, 0.66), transparent 60%); }
.rd-card:hover .lib-ph { transform: scale(1.05); }
.rd-card-tx { display: flex; flex-direction: column; gap: 4px; }
.rd-card b { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
html:lang(ar) .rd-card b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 700; line-height: 1.4; }
.rd-card small { font-size: 12px; line-height: 1.5; opacity: 0.88; }
.rd-card-other { color: var(--fg); outline: 1px dashed color-mix(in srgb, var(--fg) 35%, transparent); outline-offset: -1px; }
.rd-card-other .lib-ph { opacity: 0.35; }
.rd-card-other::after { display: none; }

.rd-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rd-list li { border-bottom: 1px solid var(--line); }
.rd-list button { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: center; gap: 14px; padding: 22px 4px; border: 0; background: none; color: var(--fg); cursor: pointer; text-align: left; font: inherit; }
.rd-list button:hover b { color: var(--accent); }
.rd-list svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.rd-n { font-family: var(--serif); font-size: 20px; color: var(--accent); }
.rd-lt { display: flex; flex-direction: column; gap: 4px; }
.rd-lt b { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; transition: color 0.3s ease; }
html:lang(ar) .rd-lt b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 700; line-height: 1.5; }
.rd-lt small { color: var(--muted); font-size: 14px; }

/* Essays list: the choices and "write for Kalokathia" on one row */
.rd-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 0 22px; }
.rd-write-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 2px; cursor: pointer; font: inherit; font-size: 14px; color: var(--accent);
  background: var(--gl-soft); -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 0 14px rgba(255, 255, 255, 0.06); transition: background 0.3s ease, transform 0.25s ease; }
.rd-write-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rd-write-btn:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.rd-write-btn:active { transform: scale(0.97); }
/* The write page */
.rd-write .rd-lede p + p { margin-top: 0.7em; }
.rd-thanks { margin-top: 1.6em; color: var(--fg); font-family: var(--serif); font-size: 19px; line-height: 1.7; }
html:lang(ar) .rd-thanks { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 19px; }
.rd-send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.rd-send-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 2px; text-decoration: none; font-size: 15px;
  background: var(--gl-strong); color: var(--gl-strong-fg); -webkit-backdrop-filter: blur(24px) saturate(1.45); backdrop-filter: blur(24px) saturate(1.45); box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08), 0 14px 30px -16px rgba(0, 0, 0, 0.45); }
.rd-send-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rd-send-mail { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
/* Top bar: the essays pill, in the colour of sunlight */
.nav-essays { display: none; align-items: center; height: 34px; padding: 0 16px; margin-inline-end: 8px; border-radius: 2px; text-decoration: none; white-space: nowrap;
  font-size: 12.5px; letter-spacing: 0.06em; color: #3E240C;
  background: linear-gradient(135deg, #F3D6A2 0%, #E2B373 55%, #CF9551 100%);
  box-shadow: inset 0 1px 0 rgba(255, 249, 236, 0.7), inset 0 -1px 0 rgba(120, 70, 20, 0.18), 0 8px 18px -10px rgba(150, 90, 30, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease; }
html:lang(ar) .nav-essays { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 13.5px; letter-spacing: 0; }
.nav-essays { gap: 7px; padding-inline: 16px 12px; }
.nav-essays .ne-mark { width: 19px; height: auto; flex: none; fill: #5A2D1F; opacity: 0.9; }
/* on the opening photo: shown on phones only, beside "Explore the work" */
.hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-essays { height: 48px; padding-inline: 22px 16px; margin: 0; gap: 9px; font-size: 14px; }
html:lang(ar) .hero-essays { font-size: 15px; }
.hero-essays .ne-mark { width: 24px; }
@media (min-width: 600px) { .hero-essays { display: none !important; } }
@media (max-width: 599px) { .hero-essays { display: inline-flex; } .hero-acts { flex-direction: column; align-items: flex-start; } }  /* stacked on the start side, clear of the floating chat button */
.nav-essays:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: inset 0 1px 0 rgba(255, 249, 236, 0.7), 0 12px 22px -10px rgba(150, 90, 30, 0.7); }
.nav-essays:focus-visible { outline-offset: 2px; }
@media (min-width: 600px) { .nav-essays { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .nav-essays, .rd-write-btn { transition: none; } }

/* Article byline, author note, sources and rights */
.rd-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 22px; }
.rd-meta-tx { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13.5px; color: var(--muted); min-width: 0; }
.rd-meta-tx span + span::before { content: "·"; margin-inline: 10px; opacity: 0.7; }
.rd-meta-tx b { font-weight: 500; color: var(--fg); }
.rd-copy { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px; border: 0; border-radius: 2px; cursor: pointer; font: inherit; font-size: 13px; color: var(--fg);
  background: var(--gl-soft); -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 12%, transparent), inset 0 0 14px rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, color 0.3s ease; }
.rd-copy svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rd-copy:hover { color: var(--accent); }
.rd-copy.done { color: var(--accent); }
.rd-author { display: flex; align-items: flex-start; gap: 16px; margin-top: 44px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rd-author > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rd-author small { font-size: 12px; color: var(--muted); }
.rd-author b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.3; }
html:lang(ar) .rd-author b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 700; font-size: 21px; }
.rd-author p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.rd-author-mark { flex: none; width: 34px; height: auto; margin-top: 4px; fill: var(--mark); }
.rd-src { margin-top: 28px; }
.rd-src h2 { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 10px; }
html:lang(ar) .rd-src h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); letter-spacing: 0; font-size: 14px; }
.rd-src ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.rd-src li::marker { color: var(--accent); }
.rd-rights { margin-top: 26px; font-size: 12.5px; color: var(--muted); opacity: 0.85; }

/* The featured essay: first in the list, in the warm colour of sunlight */
.rd-list:has(> li.rd-feat:first-child) { border-top: 0; }
.rd-list li.rd-feat { border-bottom: 0; margin: 4px 0 12px; }
.rd-list li.rd-feat button { position: relative; padding: 26px clamp(16px, 3vw, 28px); border-radius: 2px; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 150% at 100% 0%, rgba(255, 220, 150, 0.62) 0%, rgba(255, 220, 150, 0) 58%), linear-gradient(155deg, rgba(236, 199, 134, 0.55) 0%, rgba(196, 140, 74, 0.34) 100%);
  box-shadow: inset 0 0 0 1px rgba(196, 140, 66, 0.42), inset 0 1px 0 rgba(255, 245, 225, 0.6), 0 26px 50px -32px rgba(120, 70, 18, 0.55); }
.rd-list li.rd-feat button:hover b { color: inherit; }
.rd-feat .rd-n, .rd-feat svg { color: #9A5F22; }
.rd-list .rd-feat-mark { align-self: flex-start; width: 30px; height: auto; margin-bottom: 4px; fill: currentColor; stroke: none; filter: drop-shadow(0 1px 0 rgba(255, 246, 228, 0.55)); }
.tabs.lg.rd-tabs { margin: 0; }
:root[data-theme="dark"] .rd-list .rd-feat-mark { filter: none; }
.rd-feat .rd-lt small { color: color-mix(in srgb, var(--fg) 74%, #9A5F22); }
:root[data-theme="dark"] .rd-list li.rd-feat button { background: radial-gradient(120% 150% at 100% 0%, rgba(255, 196, 112, 0.22) 0%, rgba(255, 196, 112, 0) 58%), linear-gradient(155deg, rgba(196, 140, 66, 0.26) 0%, rgba(110, 68, 26, 0.22) 100%);
  box-shadow: inset 0 0 0 1px rgba(226, 176, 104, 0.28), inset 0 1px 0 rgba(255, 220, 170, 0.12), 0 26px 50px -32px rgba(0, 0, 0, 0.7); }
:root[data-theme="dark"] .rd-feat .rd-n, :root[data-theme="dark"] .rd-feat svg { color: #E6B56E; }
:root[data-theme="dark"] .rd-feat .rd-lt small { color: color-mix(in srgb, var(--fg) 72%, #E6B56E); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rd-list li.rd-feat button { background: radial-gradient(120% 150% at 100% 0%, rgba(255, 196, 112, 0.22) 0%, rgba(255, 196, 112, 0) 58%), linear-gradient(155deg, rgba(196, 140, 66, 0.26) 0%, rgba(110, 68, 26, 0.22) 100%); }
  :root:not([data-theme="light"]) .rd-feat .rd-n, :root:not([data-theme="light"]) .rd-feat svg { color: #E6B56E; }
}

.rd-hero { width: 100%; aspect-ratio: 21 / 9; max-height: 56vh; }
@media (max-width: 720px) { .rd-hero { aspect-ratio: 3 / 2; } }
.rd-art .eyebrow { margin-bottom: 14px; }
.rd-lede { margin-top: 14px; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.8; color: var(--fg); }
.rd-tags { margin-top: 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
html:lang(ar) .rd-tags { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.rd-text { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.95; }
html:lang(ar) .rd-text { font-size: 17px; line-height: 2.15; }
.rd-text p { margin: 0 0 1.1em; }
.rd-text h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.3; margin: 1.6em 0 0.6em; }
html:lang(ar) .rd-text h3 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 700; font-size: 23px; }
.rd-text ul { margin: 0 0 1.2em; padding: 0; list-style: none; display: grid; gap: 10px; }
.rd-text li { position: relative; padding-inline-start: 22px; }
.rd-text li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.85em; width: 8px; height: 1px; background: var(--accent); }
.rd-text b { font-weight: 500; }
.rd-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 34px 0 8px; }
.rd-gal .lib-ph { aspect-ratio: 1; }
.rd-gal-btn { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; min-width: 0; }
.rd-gal-btn .lib-ph { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rd-gal-btn:hover .lib-ph, .rd-gal-btn:focus-visible .lib-ph { transform: scale(1.04); }
.rd-gal-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .rd-gal { grid-template-columns: 1fr 1fr; } .rd-gal > :first-child { grid-column: 1 / -1; } .rd-gal > .lib-ph:first-child, .rd-gal > .rd-gal-btn:first-child .lib-ph { aspect-ratio: 16 / 10; } }
@media (prefers-reduced-motion: reduce) { .rd-gal-btn .lib-ph { transition: none; } }
.rd-ask { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding-block: 8px; color: var(--muted); text-decoration: none; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.rd-ask:hover { color: var(--fg); border-color: var(--fg); }
.rd-ask svg, .rd-next svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rd-next { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; margin-top: 56px; padding: 22px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; color: var(--fg); cursor: pointer; text-align: left; font: inherit; }
.rd-next small { grid-column: 1; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
html:lang(ar) .rd-next small { letter-spacing: 0; text-transform: none; font-size: 13px; }
.rd-next b { grid-column: 1; font-family: var(--serif); font-weight: 400; font-size: 24px; }
html:lang(ar) .rd-next b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 700; }
.rd-next svg { grid-column: 2; grid-row: 1 / 3; }

/* quote form: a written-in stone */
.so-dot.other { background: none !important; border: 1px dashed color-mix(in srgb, var(--fg) 45%, transparent); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 18px; line-height: 1; }
.stone-other[hidden] { display: none; }
.stone-other { margin-top: 10px; }

/* ---- Kalokathia Letters ---- */
.letters-slot { margin-top: 16px; }
.letters { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 22px clamp(24px, 4vw, 56px); padding: clamp(22px, 3.4vw, 40px); border-radius: 2px; }
.letters.lg { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--gl-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 10%, transparent), inset 0 0 20px rgba(255, 255, 255, 0.06), var(--lg-drop); }
.letters h2 { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; }
html:lang(ar) .letters h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 700; line-height: 1.6; }
.letters .lt-copy p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.85; max-width: 460px; }
.lt-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lt-langs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 6%, transparent); }
.lt-langs button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 2px; background: transparent; cursor: pointer; font-size: 13px; color: var(--muted); transition: background 0.3s ease, color 0.3s ease; }
.lt-langs button[lang="ar"] { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
.lt-langs button[aria-checked="true"] { background: var(--gl-strong); color: var(--gl-strong-fg); }
.lt-row { display: flex; gap: 8px; min-width: 0; }
.lt-in { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.lt-in svg { position: absolute; inset-inline-start: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); stroke: var(--muted); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
html[dir="rtl"] .lt-in svg { inset-inline-start: auto; right: 16px; }
.lt-in input { flex: 1; min-width: 0; min-height: 50px; padding: 0 18px 0 46px; border: 0; border-radius: 2px; font: inherit; font-size: 15px; color: var(--fg); text-align: left;
  background: var(--gl-soft); -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); }
html[dir="rtl"] .lt-in input { padding: 0 46px 0 18px; text-align: right; }
html[dir="rtl"] .lt-in input:not(:placeholder-shown) { text-align: left; }
.lt-in input::placeholder { color: var(--muted); opacity: 0.85; }
.lt-in input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.lt-go { flex: none; min-height: 50px; padding: 0 24px; border: 0; border-radius: 2px; cursor: pointer; font-size: 15px;
  background: var(--gl-strong); color: var(--gl-strong-fg); -webkit-backdrop-filter: blur(24px) saturate(1.45); backdrop-filter: blur(24px) saturate(1.45); box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08), 0 14px 30px -16px rgba(0, 0, 0, 0.45); transition: transform 0.25s ease, opacity 0.25s ease; }
html:lang(ar) .lt-go { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
.lt-go:active { transform: scale(0.97); }
.lt-go:disabled { opacity: 0.6; cursor: default; }
.lt-note { font-size: 12.5px; color: var(--muted); }
.lt-msg { font-size: 14px; line-height: 1.8; color: var(--err); }
.lt-msg.ok { color: var(--fg); padding: 14px 18px; border-radius: 2px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.lt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* at the end of an article: the same letter, set inside the page's own lines */
.letters.lt-rd { grid-template-columns: 1fr; margin-top: 40px; padding: 26px 0 0; border-radius: 0; border-top: 1px solid var(--line); }
.letters.lt-rd h2 { font-size: clamp(22px, 2.6vw, 28px); }
@media (max-width: 760px) { .letters { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .lt-row { flex-direction: column; } .lt-go { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .lt-go, .lt-langs button { transition: none; } }

/* ---- Liquid glass ----
   Pure transparency: no sheen, no bright rim — just a clear pane that blurs what lies behind it,
   a hairline edge so it holds its shape, and on Chromium a gentle liquid refraction (.lg-r). */
:root { --lg-tint: rgba(250, 246, 240, 0.16); --lg-edge: rgba(255, 255, 255, 0.22); --lg-blur: 18px; --lg-drop: 0 12px 30px -16px rgba(30, 20, 10, 0.32); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lg-tint: rgba(26, 22, 18, 0.22); --lg-edge: rgba(255, 255, 255, 0.12); --lg-drop: 0 14px 32px -16px rgba(0, 0, 0, 0.6); } }
:root[data-theme="dark"] { --lg-tint: rgba(26, 22, 18, 0.22); --lg-edge: rgba(255, 255, 255, 0.12); --lg-drop: 0 14px 32px -16px rgba(0, 0, 0, 0.6); }
.lg {
  background: var(--lg-tint);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.35); backdrop-filter: blur(var(--lg-blur)) saturate(1.35);
  border: 0;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.07), var(--lg-drop);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.2), background 0.4s ease;
}
html.lg-refract .lg-r { -webkit-backdrop-filter: url(#lgRefract) blur(calc(var(--lg-blur) * 0.4)) saturate(1.35); backdrop-filter: url(#lgRefract) blur(calc(var(--lg-blur) * 0.4)) saturate(1.35); }
@media (hover: hover) { .lg.lg-press:hover { transform: scale(1.04); } }
.lg.lg-press:active { transform: scale(0.96); }
@media (prefers-reduced-motion: reduce) { .lg, .lg.lg-press:hover, .lg.lg-press:active { transition: none; transform: none; } }

/* floating buttons */
.music-fab.lg { color: var(--fg); }
.music-fab.lg .cut { stroke: transparent; }
.music-fab.lg { --lg-tint: rgba(250, 246, 240, 0.28); }
:root[data-theme="dark"] .music-fab.lg { --lg-tint: rgba(26, 22, 18, 0.34); }
.music-fab.lg[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 62%, transparent); color: #fff; }
.fab.lg { --lg-tint: rgba(24, 20, 16, 0.42); --lg-edge: rgba(255, 255, 255, 0.16); color: #FBF7F0; }

/* hero button: clear glass on the photo */
.hero .btn.lg { background: var(--lg-tint); --lg-tint: rgba(255, 255, 255, 0.07); --lg-edge: rgba(255, 255, 255, 0.4); --lg-blur: 12px; color: #FFFFFF; border-radius: 2px; padding: 0 28px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }

/* menu sheet */
.menu.lg { border-radius: 2px; --lg-tint: rgba(250, 246, 240, 0.34); --lg-blur: 26px; }
:root[data-theme="dark"] .menu.lg { --lg-tint: rgba(22, 19, 16, 0.36); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .menu.lg { --lg-tint: rgba(22, 19, 16, 0.36); } }
.menu.lg a.menu-wa { color: var(--fg); }
.menu.lg a.menu-wa svg { color: var(--accent); }
.menu.lg a { text-shadow: 0 1px 12px color-mix(in srgb, var(--bg) 70%, transparent); }

/* portfolio filter: a glass pill */
.tabs.lg { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 5px; margin-top: 36px; border-radius: 2px; border-bottom: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs.lg::-webkit-scrollbar { display: none; }
.tabs.lg .tab { flex: none; min-height: 40px; padding: 0 18px; margin: 0; border: 0; border-radius: 2px; color: var(--fg); opacity: 0.78; white-space: nowrap; transition: background 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease; }
.tabs.lg .tab:hover { opacity: 1; }
.tabs.lg .tab[aria-pressed="true"] { opacity: 1; background: color-mix(in srgb, var(--bg) 42%, transparent); box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.14); }
@media (max-width: 560px) { .tabs.lg .tab { padding: 0 14px; } }


/* philosophy: the words sit on a pane of glass over the photo */
.phil-copy.lg { padding: clamp(24px, 3.4vw, 44px); border-radius: 2px; --lg-tint: rgba(250, 246, 239, 0.5); --lg-blur: 22px; }
/* On computers the pane's glass is a pre-blurred twin of the photo behind it, kept in place by script and moving with the same parallax,
   so scrolling no longer recomputes a large live blur on every frame. Phones keep the live glass. */
.phil-glass { display: none; }
html.phil-baked .phil-copy.lg { position: relative; isolation: isolate; overflow: hidden; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.phil-baked .phil-glass { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
html.phil-baked .phil-glass > .phil-bg { inset: auto; z-index: 0; }
html.phil-baked .phil-glass .ph { --img: url('img/philosophy-glass.jpg?v=c3'); }
html.phil-baked .phil-glass > i { position: absolute; inset: 0; background: var(--lg-tint); box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.07); }
:root[data-theme="dark"] .phil-copy.lg { --lg-tint: rgba(24, 20, 17, 0.46); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phil-copy.lg { --lg-tint: rgba(24, 20, 17, 0.46); } }
.phil-copy.lg .phil-text, .phil-copy.lg .principle p { color: color-mix(in srgb, var(--fg) 82%, transparent); }
.phil-copy.lg .principle p { font-size: 14px; }
.phil-copy.lg .principle h3 { font-size: 12px; }
html:lang(ar) .phil-copy.lg .principle h3 { font-size: 15px; letter-spacing: 0; text-transform: none; }
.phil-copy.lg .principle { border-color: color-mix(in srgb, var(--fg) 14%, transparent); }
.phil-copy.lg .num { color: var(--accent); }
/* with the glass doing the work, the photo can show more of itself */
.philosophy .phil-bg::after { background: linear-gradient(to right, transparent 0%, color-mix(in srgb, var(--bg) 18%, transparent) 40%, color-mix(in srgb, var(--bg) 45%, transparent) 70%); }
html[dir="rtl"] .philosophy .phil-bg::after { background: linear-gradient(to left, transparent 0%, color-mix(in srgb, var(--bg) 18%, transparent) 40%, color-mix(in srgb, var(--bg) 45%, transparent) 70%); }
@media (max-width: 720px) {
  .philosophy .phil-bg::after, html[dir="rtl"] .philosophy .phil-bg::after { background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--bg) 12%, transparent) 40%, color-mix(in srgb, var(--bg) 40%, transparent) 100%); }
  .phil-photo { aspect-ratio: 16 / 10; }
  .phil-copy.lg { margin-inline: -6px; }
}

/* Soft gradient surfaces instead of flat colour, in both themes */
html { background: var(--bg); }
body { background: var(--bg); }
html::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--g-page), var(--bg); transform: translateZ(0); }
.portfolio, .faq { background: var(--g-alt), var(--bg-alt); }
.quote { background: transparent; }
.form, .cm, .cm-ask, .tz-dlg, .rd { background: var(--g-card), var(--bg); }
.cm-media, .tz-stage { background: var(--g-alt), var(--bg-alt); }
.contact { background: var(--g-ink), var(--ink); }


/* WhatsApp sits a little higher; the music button, once it settles, sits just above it */
.fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.music-fab { bottom: calc(76px + 52px + 12px + env(safe-area-inset-bottom, 0px)); }
.music-tip { display: none !important; }
.cm-more-space { height: 96px; }

/* Nothing solid: buttons, chips and small surfaces are frosted glass */
:root { --gl-strong: rgba(30, 25, 20, 0.66); --gl-strong-fg: #FBF5EC; --gl-soft: rgba(252, 245, 234, 0.38); --gl-edge: rgba(255, 255, 255, 0.28); }
:root[data-theme="dark"] { --gl-strong: rgba(240, 231, 218, 0.70); --gl-strong-fg: #1A1613; --gl-soft: rgba(36, 30, 25, 0.42); --gl-edge: rgba(255, 255, 255, 0.12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gl-strong: rgba(240, 231, 218, 0.70); --gl-strong-fg: #1A1613; --gl-soft: rgba(36, 30, 25, 0.42); --gl-edge: rgba(255, 255, 255, 0.12); } }
.btn:not(.lg), .cm-float, .btn-outline:hover {
  background: var(--gl-strong) !important; color: var(--gl-strong-fg) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.45); backdrop-filter: blur(24px) saturate(1.45);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08), 0 14px 30px -16px rgba(0, 0, 0, 0.45);
}
.cm-close, .sw-zoom, .sw-zoom:hover, .tz-hint, .cm-thumbs button, .icon-btn:hover, .rd-btn:hover,
.field input, .field select, .field textarea {
  background: var(--gl-soft) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35);
}
.cm-backdrop, .tz { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* The "interested?" button sits under the words of the work window, never floating over them */
.cm-float, .cm-float:hover { position: static !important; inset: auto !important; align-self: stretch; justify-content: center; margin-top: 8px; width: 100%; }
.cm-fade, .cm-more-space { display: none !important; }
.cm-text { padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)) !important; }

/* Top bar over the first photo (phones, where the bar is see-through): the name reads clearly in both themes */
@media (max-width: 720px) { .nav.on-hero .brand > span { color: #F6EBDD; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5); } }

/* Round icon buttons stay perfectly round on small screens */
.icon-btn { flex: none; }
@media (max-width: 430px) { .tools .icon-btn:not(.lang-btn) { height: 40px; } }
@media (max-width: 370px) { .tools .icon-btn:not(.lang-btn) { height: 38px; } }

/* "Other stones": the words sit on frosted glass so they read over the photo */
.rd-card-other .lib-ph { opacity: 1; }
.rd-card-other .rd-card-tx { width: 100%; padding: 12px 14px; border-radius: 2px; background: var(--gl-soft); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08); }

/* No back or close buttons: windows close by pulling them down; a small handle shows it */
.cm > .cm-close, .cm-ask .cm-back, #tzClose, .rd-bar .rd-btn { display: none !important; }
.cm-grab { display: block !important; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 44px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 35%, transparent); z-index: 6; }
.cm-main ~ .cm-grab, .cm .cm-grab { background: rgba(255, 255, 255, 0.85); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); }
.rd-bar { justify-content: center; min-height: 44px; }
.rd-bar::before { content: ""; position: absolute; top: calc(8px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; width: 44px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 30%, transparent); }
.rd-title { padding-top: 10px; }
.tz-dlg::before { content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 44px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 30%, transparent); z-index: 3; }
.cm, .rd, .tz-dlg { cursor: default; }

/* Previous / next between stones and between articles: two frosted buttons */
.rd-pn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 56px; }
.rd-pn-btn { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 16px; border: 0; border-radius: 2px; cursor: pointer; font: inherit; color: var(--fg); text-align: left;
  background: var(--gl-soft); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08), 0 12px 28px -18px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease; }
.rd-pn-btn.next { justify-content: space-between; }
.rd-pn-btn span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rd-pn-btn.next span { flex: 1; }
.rd-pn-btn small { font-size: 11.5px; color: var(--muted); }
.rd-pn-btn b { font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rd-pn-btn { min-width: 0; padding: 12px 12px; gap: 8px; }
.rd-pn-btn .pn-ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); }
@media (hover: hover) { .rd-pn-btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 24px color-mix(in srgb, var(--accent) 22%, transparent), 0 16px 30px -18px rgba(0, 0, 0, 0.5); } }
.rd-pn-btn:active { transform: scale(0.98); }

/* Photo viewer: frosted previous / next buttons on the photo */
.tz-nav { position: absolute; top: auto; bottom: 14px; z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #FBF7F0;
  background: rgba(24, 20, 16, 0.32); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.10), 0 10px 24px -12px rgba(0, 0, 0, 0.5); transition: transform 0.25s ease; }
.tz-nav.prev { inset-inline-start: 12px; } .tz-nav.next { inset-inline-end: 12px; }
.tz-nav[hidden] { display: none; }
.tz-nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .tz-nav:hover { transform: scale(1.08); } }
.tz-nav:active { transform: scale(0.94); }
.tz-tex.tz-in { animation: tzin 0.45s ease; }
@keyframes tzin { from { opacity: 0.2; } to { opacity: 1; } }

/* The name on a liquid-glass base while the bar sits over the first photo; it melts into the bar further down */
.nav .brand { padding: 7px 16px 7px 12px; margin-inline-start: -12px; border-radius: 2px; transition: background 0.6s ease, box-shadow 0.6s ease, -webkit-backdrop-filter 0.6s ease, backdrop-filter 0.6s ease; }
.nav .brand > span { --bw: var(--mark); }
.nav.on-hero .brand {
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.20), rgba(255, 250, 240, 0.06));
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.12), 0 12px 30px -16px rgba(0, 0, 0, 0.55);
}
@media (max-width: 720px) { .nav.on-hero .brand > span { --bw: #F6EBDD; } }
@media (max-width: 430px) { .nav .brand { padding: 6px 12px 6px 9px; margin-inline-start: -9px; } }

/* One slow line of light across the name when the site opens, like sun moving over carved stone */
.nav .brand.sweep > span {
  background: linear-gradient(100deg, var(--bw) 0%, var(--bw) 40%, #FFF4DF 50%, var(--bw) 60%, var(--bw) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: bsweep 2.4s cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
}
@keyframes bsweep { to { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .nav .brand.sweep > span { animation: none; } }

/* ---- Work viewer: full-screen photos, swipe between them, details on a glass sheet ---- */
.wv-fly { position: fixed; z-index: 81; overflow: hidden; pointer-events: none; transition: top 0.46s cubic-bezier(0.22, 0.8, 0.2, 1), left 0.46s cubic-bezier(0.22, 0.8, 0.2, 1), width 0.46s cubic-bezier(0.22, 0.8, 0.2, 1), height 0.46s cubic-bezier(0.22, 0.8, 0.2, 1), border-radius 0.46s ease, opacity 0.24s ease; }
.wv-fly > div { position: absolute; inset: 0; }
.wv-fly.gone { opacity: 0; }
.wv { position: fixed; inset: 0; z-index: 80; background: #0E0B09; opacity: 0; transition: opacity 0.3s ease; outline: none; overflow: hidden; }
.wv.open { opacity: 1; }
.wv-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; opacity: 0; transition: opacity 0.25s ease; }
.wv.shown .wv-track { opacity: 1; }
.wv-track::-webkit-scrollbar { display: none; }
.wv-slide { position: relative; flex: none; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.wv-slide .wv-img { position: absolute; inset: 0; border-radius: 0 !important; }
.wv-dots { position: absolute; z-index: 3; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; display: flex; gap: 6px; padding: 6px 10px; border-radius: 2px;
  background: rgba(20, 16, 12, 0.22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.wv-dots i { width: 18px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); transition: background 0.3s ease, width 0.3s ease; }
.wv-dots i.on { width: 28px; background: #FFF6E8; }
.wv-arrow { position: absolute; z-index: 3; top: 42%; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: none; align-items: center; justify-content: center; color: #FBF7F0;
  background: rgba(24, 20, 16, 0.28); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.1), 0 10px 24px -12px rgba(0, 0, 0, 0.5); }
.wv-arrow.prev { inset-inline-start: 20px; } .wv-arrow.next { inset-inline-end: 20px; }
@media (hover: hover) and (pointer: fine) { .wv-arrow { display: inline-flex; } .wv-arrow[hidden] { display: none; } }
.wv-arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wv-sheet { position: absolute; z-index: 4; inset-inline: 0; bottom: 0; margin-inline: auto; width: min(100%, 640px); max-height: 78%; display: flex; flex-direction: column;
  border-radius: 2px 2px 0 0; color: var(--fg);
  background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.08), 0 -20px 50px -30px rgba(0, 0, 0, 0.6);
  transform: translateY(calc(100% - var(--peek, 150px))); transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.2, 1); opacity: 0; }
.wv.shown .wv-sheet { opacity: 1; }
.wv.sheet-open .wv-sheet { transform: none; }
.wv-head { flex: none; padding: 12px 24px 18px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.wv-grip { display: block; width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 30%, transparent); }
.wv-eyebrow { font-size: 12px; letter-spacing: 0.08em; color: var(--accent); }
.wv-head h2 { margin: 4px 0 2px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 7vw, 38px); line-height: 1.12; }
html:lang(ar) .wv-head h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
.wv-tag { font-size: 13px; color: var(--muted); }
.wv-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px calc(28px + env(safe-area-inset-bottom, 0px)); }
.wv-lede { margin: 0 0 22px; line-height: 1.9; font-size: 15.5px; }
.wv-facts { margin: 0 0 22px; display: grid; gap: 0; }
.wv-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); }
.wv-facts dt { font-size: 13px; color: var(--muted); } .wv-facts dd { margin: 0; font-size: 14.5px; text-align: right; }
.wv-list { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; }
.wv-list li { font-size: 14px; color: var(--muted); padding-inline-start: 16px; position: relative; }
.wv-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.75em; width: 6px; height: 1px; background: var(--accent); }
.wv-ask { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 2px; text-decoration: none; font-size: 14.5px;
  background: var(--gl-strong); color: var(--gl-strong-fg); -webkit-backdrop-filter: blur(24px) saturate(1.45); backdrop-filter: blur(24px) saturate(1.45); box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08), 0 14px 30px -16px rgba(0, 0, 0, 0.45); }
.wv-ask svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .wv, .wv-track, .wv-sheet, .wv-fly { transition: none; } }

/* ---- Photo viewer: the whole screen, the photo whole, the same photo softly blurred behind it ---- */
.tz { padding: 0 !important; align-items: stretch !important; background: rgba(10, 8, 6, 0.6); }
.tz-dlg { max-width: none !important; width: 100%; height: 100%; max-height: none !important; border: 0 !important; border-radius: 0; box-shadow: none; background: #0E0B09 !important; color: var(--fg); }
.tz-stage { position: absolute !important; inset: 0; aspect-ratio: auto !important; background: #0E0B09 !important; }
.tz-stage.has-photo::before { content: ""; position: absolute; inset: -60px; background: var(--photo) center / cover no-repeat; filter: blur(46px) saturate(1.25) brightness(0.62); transform: scale(1.1); }
.tz-tex { z-index: 1; inset: calc(34px + env(safe-area-inset-top, 0px)) 0 var(--tzbar, 120px) 0 !important; }
.tz-tex.photo { background-color: transparent !important; background-image: var(--photo) !important; background-size: contain !important; }
.tz-bar { position: absolute; z-index: 3; inset-inline: 0; bottom: 0; border-top: 0 !important; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); }
.tz-nav { bottom: calc(var(--tzbar, 120px) + 14px) !important; }
.tz-dlg::before { background: rgba(255, 255, 255, 0.55); z-index: 4; top: calc(10px + env(safe-area-inset-top, 0px)); }

/* Swipe between photos: tap the edges, or swipe; the middle shows the photo whole, without words */
.wv-arrow, .tz-nav { display: none !important; }
.wv-slide::before { content: ""; position: absolute; inset: -60px; background: var(--img, none) center / cover no-repeat; filter: blur(44px) saturate(1.2) brightness(0.6); transform: scale(1.1); opacity: 0; transition: opacity 0.4s ease; }
.wv-slide .wv-img { transition: background-size 0.4s ease; }
.wv.pure .wv-slide::before { opacity: 1; }
.wv.pure .wv-slide .wv-img { background-image: var(--img, none) !important; background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; background-color: transparent !important; }
.wv.pure .wv-sheet { transform: translateY(105%) !important; opacity: 0; }
.wv.pure .wv-dots { opacity: 0.55; }
.wv-sheet, .wv-dots { transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.4s ease; }
.tz.pure .tz-bar { transform: translateY(105%); opacity: 0; }
.tz-bar { transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.35s ease; }
.tz.pure .tz-tex { inset: calc(34px + env(safe-area-inset-top, 0px)) 0 24px 0 !important; }
.tz-tex { transition: inset 0.4s ease; }
.swipe-hint { position: absolute; z-index: 5; left: 50%; bottom: calc(var(--peek, 150px) + 18px); translate: -50% 8px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 2px; font-size: 13px; color: #FBF7F0; white-space: nowrap; pointer-events: none; opacity: 0;
  background: rgba(24, 20, 16, 0.3); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.1), 0 10px 24px -12px rgba(0, 0, 0, 0.5); transition: opacity 0.5s ease, translate 0.5s ease; }
.tz .swipe-hint { bottom: calc(var(--tzbar, 120px) + 18px); }
.swipe-hint.show { opacity: 1; translate: -50% 0; }
.swipe-hint svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: hintswipe 1.4s ease-in-out infinite; }
@keyframes hintswipe { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-5px); } 60% { transform: translateX(5px); } }
.card-count { position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 2px; font-size: 12px; line-height: 1; color: #FBF7F0;
  background: rgba(20, 16, 12, 0.26); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.card-count svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* "Choose this stone": liquid glass, not a box */
#tzPick { border-radius: 2px !important; padding: 0 24px; min-height: 46px; background: color-mix(in srgb, var(--fg) 12%, transparent) !important; color: var(--fg) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.12), 0 12px 26px -16px rgba(0, 0, 0, 0.5) !important; }
@media (prefers-reduced-motion: reduce) { .swipe-hint svg { animation: none; } }

/* keep each photo's soft backdrop inside its own slide; quieter photo-count mark on the cards */
.wv-slide { overflow: hidden; }
.card-count { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(14, 10, 7, 0.38) !important; padding: 4px 9px !important; font-size: 11.5px !important; }
.swipe-hint { padding: 7px 13px; font-size: 12.5px; gap: 7px; }
.swipe-hint svg { animation: none !important; width: 16px; height: 16px; }

.swipe-hint { padding: 11px !important; gap: 0 !important; }
.swipe-hint svg { width: 18px !important; height: 18px !important; }

/* Work viewer slides glide on transforms (no scroll snapping): smooth, endless */
.wv-track { overflow: hidden !important; scroll-snap-type: none !important; display: block !important; touch-action: none; }
.wv-slide { position: absolute !important; inset: 0; width: 100%; height: 100%; will-change: transform; backface-visibility: hidden; }
.wv:not(.pure) .wv-slide::before { display: none; }

.wv-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--muted); transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease; }
.wv-more svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: moreup 1.8s ease-in-out infinite; }
@keyframes moreup { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.wv.sheet-open .wv-more { opacity: 0; }   /* fades out while the sheet is up, fades back when it comes down; its place stays, so nothing jumps */
.wv-sheet.nudge { animation: sheetnudge 1.1s cubic-bezier(0.3, 0.7, 0.3, 1) 1; }
@keyframes sheetnudge { 0%, 100% { transform: translateY(calc(100% - var(--peek, 150px))); } 40% { transform: translateY(calc(100% - var(--peek, 150px) - 26px)); } }
.swipe-hint { transition: opacity 0.6s ease, translate 0.6s ease !important; }
@media (prefers-reduced-motion: reduce) { .wv-more svg, .wv-sheet.nudge { animation: none; } }

/* ---- Computer: its own layout for the work viewer and the photo viewer ---- */
@media (min-width: 900px) and (hover: hover) {
  .wv { --panel: clamp(360px, 30vw, 440px); }
  .wv-track { inset: 0; inset-inline-end: var(--panel) !important; right: auto; }
  html[dir="rtl"] .wv-track { left: var(--panel) !important; right: 0 !important; }
  html:not([dir="rtl"]) .wv-track { right: var(--panel) !important; left: 0 !important; }
  .wv.pure .wv-track { left: 0 !important; right: 0 !important; }
  .wv-track { transition: left 0.5s cubic-bezier(0.22, 0.8, 0.2, 1), right 0.5s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.25s ease; }
  /* the whole photo, never cropped, on its own softened colours */
  .wv .wv-slide::before { display: block !important; opacity: 1 !important; }
  .wv .wv-slide .wv-img { background-image: var(--img, none) !important; background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; background-color: transparent !important; inset: 48px 56px !important; }
  /* the text lives in a glass column beside the photo, always open, nothing to pull */
  .wv-sheet { inset: 0 !important; inset-inline-start: auto !important; width: var(--panel) !important; max-height: none !important; height: 100%; margin: 0 !important; border-radius: 0 !important; transform: none !important; animation: none !important;
    background: color-mix(in srgb, var(--bg) 78%, transparent) !important; box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.05) !important; }
  html[dir="rtl"] .wv-sheet { left: 0 !important; right: auto !important; }
  html:not([dir="rtl"]) .wv-sheet { right: 0 !important; left: auto !important; }
  .wv.pure .wv-sheet { transform: translateX(var(--off, 100%)) !important; }
  html[dir="rtl"] .wv.pure .wv-sheet { --off: -100%; }
  .wv-head { padding: 64px 40px 8px; cursor: default; }
  .wv-grip, .wv-more { display: none !important; }
  .wv-head h2 { font-size: 40px; }
  .wv-body { padding: 18px 40px 40px; }
  .wv-lede { font-size: 16px; }
  /* visible glass arrows and larger marks */
  .wv-arrow { display: inline-flex !important; top: 50%; translate: 0 -50%; width: 56px; height: 56px; opacity: 0.85; transition: opacity 0.3s ease, transform 0.3s ease; }
  .wv-arrow:hover { opacity: 1; transform: scale(1.06); }
  .wv-arrow.prev { inset-inline-start: 24px; inset-inline-end: auto; }
  .wv-arrow.next { inset-inline-start: auto; inset-inline-end: calc(var(--panel) + 24px); }
  .wv.pure .wv-arrow.next { inset-inline-end: 24px; }
  .wv-arrow svg { width: 22px; height: 22px; }
  .wv:not(.multi) .wv-arrow { display: none !important; }
  .wv-dots { top: 22px; left: auto; translate: none; inset-inline-start: calc((100% - var(--panel)) / 2); transform: translateX(50%); }
  html:not([dir="rtl"]) .wv-dots { transform: translateX(-50%); }
  .wv.pure .wv-dots { inset-inline-start: 50%; }
  .wv-dots i { width: 26px; } .wv-dots i.on { width: 40px; }
  .wv .swipe-hint { bottom: auto; top: 50%; padding: 18px !important; translate: -50% -40%; }
  .wv .swipe-hint.show { translate: -50% -50%; }
  html[dir="rtl"] .wv .swipe-hint { left: calc(var(--panel) + (100% - var(--panel)) / 2); }
  html:not([dir="rtl"]) .wv .swipe-hint { left: calc((100% - var(--panel)) / 2); }
  .swipe-hint svg { width: 26px !important; height: 26px !important; }
  /* photo viewer on a computer: arrows at the sides, larger mark in the middle of the photo */
  .tz-nav { display: inline-flex !important; top: 45% !important; bottom: auto !important; translate: 0 -50%; width: 56px !important; height: 56px !important; }
  .tz:not(.multi) .tz-nav { display: none !important; }
  .tz .swipe-hint { bottom: auto; top: 45%; padding: 18px !important; translate: -50% -40%; }
  .tz .swipe-hint.show { translate: -50% -50%; }
  .tz-tex { inset: 48px 96px var(--tzbar, 120px) 96px !important; }
  .tz-bar { padding-inline: 48px !important; }
}

/* The name: no glass base; a soft dark glow behind the logo and the name over the first photo */
.nav .brand, .nav.on-hero .brand { background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; }
@media (max-width: 720px) {
  .nav.on-hero .brand > span { text-shadow: 0 0 18px rgba(0, 0, 0, 0.75), 0 0 6px rgba(0, 0, 0, 0.5) !important; }
  .nav.on-hero .brand .mark { filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 3px rgba(0, 0, 0, 0.45)) !important; }
}

/* Computer: instead of arrow buttons, a soft glass arch runs down each side of the photo; click it to move */
@media (min-width: 900px) and (hover: hover) {
  .wv-arrow, .tz-nav { top: 0 !important; bottom: 0 !important; height: auto !important; translate: none !important; width: 84px !important; border-radius: 0 !important; transform: none !important;
    background: rgba(255, 255, 255, 0.05) !important; -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: none !important; opacity: 0.55; transition: opacity 0.35s ease, background 0.35s ease !important; }
  .wv-arrow:hover, .tz-nav:hover { opacity: 1; background: rgba(255, 255, 255, 0.10) !important; transform: none !important; }
  .wv-arrow svg, .tz-nav svg { opacity: 0; transition: opacity 0.35s ease; }
  .wv-arrow:hover svg, .tz-nav:hover svg { opacity: 0.8; }
  /* the arch: flat against the screen edge, curving into the photo */
  html[dir="rtl"] .wv-arrow.prev, html[dir="rtl"] .tz-nav.prev, html:not([dir="rtl"]) .wv-arrow.next, html:not([dir="rtl"]) .tz-nav.next { border-radius: 100% 0 0 100% / 50% 0 0 50% !important; }
  html[dir="rtl"] .wv-arrow.next, html[dir="rtl"] .tz-nav.next, html:not([dir="rtl"]) .wv-arrow.prev, html:not([dir="rtl"]) .tz-nav.prev { border-radius: 0 100% 100% 0 / 0 50% 50% 0 !important; }
  .wv-arrow.prev, .tz-nav.prev { inset-inline-start: 0 !important; }
  .wv-arrow.next { inset-inline-end: var(--panel) !important; }
  .wv.pure .wv-arrow.next, .tz-nav.next { inset-inline-end: 0 !important; }
  .tz-nav { bottom: var(--tzbar, 120px) !important; }
}

/* whole-photo view: photos as framed pieces, the neighbours showing a faint edge */
.wv.pure .wv-slide { border-radius: 2px; overflow: hidden; }
.wv-fly.slow { transition: top 0.66s cubic-bezier(0.25, 0.8, 0.25, 1), left 0.66s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.66s cubic-bezier(0.25, 0.8, 0.25, 1), height 0.66s cubic-bezier(0.25, 0.8, 0.25, 1), border-radius 0.66s ease, opacity 0.38s ease; }
.wv { transition: opacity 0.42s ease; }
/* a small sign: pull down to leave */
.pull-hint { position: absolute; z-index: 6; left: 50%; top: calc(46px + env(safe-area-inset-top, 0px)); translate: -50% -6px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FBF7F0; pointer-events: none; opacity: 0;
  background: rgba(24, 20, 16, 0.3); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.1); transition: opacity 0.6s ease, translate 0.6s ease; }
.pull-hint.show { opacity: 1; translate: -50% 0; }
.pull-hint svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; animation: pulldown 1.3s ease-in-out infinite; }
@keyframes pulldown { 0%, 100% { transform: translateY(-2px); opacity: 0.7; } 50% { transform: translateY(4px); opacity: 1; } }
.tz .pull-hint { top: calc(30px + env(safe-area-inset-top, 0px)); }
@media (min-width: 900px) and (hover: hover) {
  .wv .pull-hint { left: calc((100% - var(--panel)) / 2); }
  html[dir="rtl"] .wv .pull-hint { left: calc(var(--panel) + (100% - var(--panel)) / 2); }
  .wv.pure .pull-hint { left: 50% !important; }
  .wv .pull-hint { top: 52px; }
  /* the side arches: a clear, quiet sheen along the curve */
  .wv-arrow, .tz-nav { opacity: 0.9 !important; -webkit-backdrop-filter: blur(10px) saturate(1.5) brightness(1.08); backdrop-filter: blur(10px) saturate(1.5) brightness(1.08); }
  html[dir="rtl"] .wv-arrow.prev, html[dir="rtl"] .tz-nav.prev, html:not([dir="rtl"]) .wv-arrow.next, html:not([dir="rtl"]) .tz-nav.next {
    background: linear-gradient(to left, rgba(255, 248, 236, 0.02), rgba(255, 248, 236, 0.14)) !important; box-shadow: inset 12px 0 22px -14px rgba(255, 236, 205, 0.75), inset 1px 0 0 rgba(255, 244, 228, 0.18) !important; }
  html[dir="rtl"] .wv-arrow.next, html[dir="rtl"] .tz-nav.next, html:not([dir="rtl"]) .wv-arrow.prev, html:not([dir="rtl"]) .tz-nav.prev {
    background: linear-gradient(to right, rgba(255, 248, 236, 0.02), rgba(255, 248, 236, 0.14)) !important; box-shadow: inset -12px 0 22px -14px rgba(255, 236, 205, 0.75), inset -1px 0 0 rgba(255, 244, 228, 0.18) !important; }
  .wv-arrow:hover, .tz-nav:hover { opacity: 1 !important; filter: brightness(1.15); }
}
@media (prefers-reduced-motion: reduce) { .pull-hint svg { animation: none; } }

/* No side arches and no zoom mark: the neighbours' edges and the photo itself are enough */
.wv-arrow, .tz-nav, .swipe-hint { display: none !important; }
@media (min-width: 900px) and (hover: hover) { .wv-arrow, .tz-nav { display: none !important; } .wv-track { cursor: grab; } .wv.dragging .wv-track { cursor: grabbing; } }
/* A close button on computers only: round liquid glass with an X */
.gl-x { display: none; }
@media (min-width: 900px) and (hover: hover) {
  .gl-x, .rd-bar .rd-x, #tzClose { position: absolute !important; z-index: 9; top: 20px !important; inset-inline-end: 20px !important; inset-inline-start: auto !important; display: inline-flex !important; align-items: center; justify-content: center;
    width: 46px !important; height: 46px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; cursor: pointer; color: var(--fg) !important;
    background: color-mix(in srgb, var(--fg) 10%, transparent) !important; -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.12), 0 12px 26px -16px rgba(0, 0, 0, 0.55) !important; transition: transform 0.25s ease, background 0.25s ease; }
  .gl-x:hover, .rd-bar .rd-x:hover, #tzClose:hover { transform: scale(1.07); background: color-mix(in srgb, var(--fg) 16%, transparent) !important; }
  .gl-x svg, .rd-bar .rd-x svg, #tzClose svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
  .rd-bar .rd-x { top: 8px !important; position: absolute !important; }
  .rd-bar { position: sticky; }
  #tzClose { color: #FBF7F0 !important; background: rgba(24, 20, 16, 0.3) !important; }
}

.pull-hint { display: none !important; }

/* small copy buttons beside the e-mail and the number */
.cp-row { display: inline-flex; align-items: center; gap: 8px; }
.info dd .cp-row + .cp-row { margin-top: 6px; }
.info dd { display: flex; flex-direction: column; align-items: flex-start; }
.cp { position: relative; width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink-accent);
  background: rgba(255, 255, 255, 0.07); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.06); transition: background 0.25s ease, transform 0.25s ease; }
.cp:hover { background: rgba(255, 255, 255, 0.14); }
.cp:active { transform: scale(0.92); }
.cp svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cp svg .ok { opacity: 0; }
.cp.done svg rect, .cp.done svg path:not(.ok) { opacity: 0; }
.cp.done svg .ok { opacity: 1; }
.cp svg * { transition: opacity 0.25s ease; }
.cp::after { content: attr(data-done); position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 4px; padding: 4px 10px; border-radius: 2px; font-size: 11.5px; white-space: nowrap; color: var(--ink-fg);
  background: rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease, translate 0.3s ease; }
.cp.done::after { opacity: 1; translate: -50% 0; }
/* "Swipe to move between photos": a quiet glass line when the photo is first seen whole */
.drag-tip { position: absolute; z-index: 8; left: 50%; bottom: calc(46px + env(safe-area-inset-bottom, 0px)); translate: -50% 10px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 2px; pointer-events: none;
  color: #FFF6E8; font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; opacity: 0;
  background: linear-gradient(135deg, rgba(255, 246, 232, 0.2), rgba(255, 246, 232, 0.05)); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 1px 1px rgba(255, 250, 240, 0.32), inset 0 0 16px rgba(255, 240, 215, 0.1), 0 10px 26px -12px rgba(0, 0, 0, 0.6); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  transition: opacity 0.6s ease, translate 0.6s cubic-bezier(0.22, 0.8, 0.2, 1); }
.drag-tip.on { opacity: 1; translate: -50% 0; }
.drag-tip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: dtsway 1.4s ease-in-out infinite; }
@keyframes dtsway { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .drag-tip svg { animation: none; } }
.wv.hints-seen .wv-more { display: none !important; }
/* On the computer, every photo you can press shows the pointing hand; while dragging it closes into a grab */
@media (hover: hover) {
  .wv-track, .tz-stage, .tz-stage:active, .rd-gal-btn, .wv .wv-slide { cursor: pointer !important; }
  .tz.multi .tz-stage { cursor: grab !important; } .tz.multi .tz-stage:active { cursor: grabbing !important; }
  .wv.dragging .wv-track, .wv.dragging .wv-slide { cursor: grabbing !important; }
}
/* ---- The "see it whole" mark: on the phone a few glass words for two seconds; on the computer small glass arrows that stay ---- */
.full-chip { position: absolute; z-index: 6; bottom: calc(var(--peek, 150px) + 14px); inset-inline-end: 14px; display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; border: 0; border-radius: 2px; cursor: pointer;
  color: #FFF6E8; font: inherit; font-size: 12.5px; letter-spacing: 0.01em; white-space: nowrap;
  background: linear-gradient(135deg, rgba(255, 246, 232, 0.22), rgba(255, 246, 232, 0.06)); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 1px rgba(255, 250, 240, 0.35), inset 0 0 14px rgba(255, 240, 215, 0.12), 0 8px 22px -10px rgba(0, 0, 0, 0.55); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  transition: opacity 0.45s ease, translate 0.45s ease, transform 0.3s ease, background 0.3s ease; -webkit-tap-highlight-color: transparent; }
.full-chip.gone { opacity: 0; translate: 0 6px; pointer-events: none; }
.full-chip:active { transform: scale(0.94); }
.full-chip .fc-ic { display: none; }
.full-chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35)); }
.full-chip .fc-in, .wv.pure .full-chip .fc-out, .tz.pure .full-chip .fc-out { display: none; }
.wv.pure .full-chip .fc-in, .tz.pure .full-chip .fc-in { display: inline; }
.wv:not(.shown) .full-chip, .wv.sheet-open .full-chip { opacity: 0; pointer-events: none; }
.tz .full-chip { z-index: 9; bottom: calc(var(--tzbar, 90px) + 14px); }
@media (min-width: 900px) and (hover: hover) {
  .full-chip, .wv.pure .full-chip, .tz.pure .full-chip { top: 24px; bottom: auto; width: 42px; height: 42px; padding: 0; }
  .full-chip .fc-t { display: none; }
  .full-chip .fc-ic { display: inline-flex; }
  .full-chip:hover { background: linear-gradient(135deg, rgba(255, 246, 232, 0.3), rgba(255, 246, 232, 0.1)); transform: scale(1.06); }
  .wv .full-chip { inset-inline-end: calc(var(--panel) + 22px); }
  .wv.pure .full-chip { inset-inline-end: 82px; }
  .tz .full-chip { top: 22px; inset-inline-end: 82px; }
  .wv.sheet-open .full-chip { opacity: 1; pointer-events: auto; }
}

/* ---- Homepage: the philosophy in one line; the gallery and library as doors that show a glimpse of what is inside ---- */
.philosophy.phil-short { padding-block: clamp(64px, 8vw, 116px); }
.phil-short .phil-photo { aspect-ratio: 5 / 4; }
.phil-short .phil-copy { gap: 18px; }
.phil-short .phil-line { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.25; text-wrap: balance; }
html:lang(ar) .phil-short .phil-line { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.7; }
.phil-short .phil-line em { color: var(--accent); }
@media (max-width: 720px) { .phil-short .phil-photo { aspect-ratio: 16 / 10; } }
.works { padding-block: clamp(56px, 7vw, 100px) clamp(36px, 4vw, 60px); }
.lib { padding-block: clamp(36px, 4.5vw, 64px) clamp(48px, 6vw, 88px); }
.door-card { cursor: pointer; }
.works .door-peek + * , .works #worksDoors + .cd-pill { margin-top: clamp(52px, 5vw, 72px); }
.door-chips { position: absolute; top: clamp(18px, 2.4vw, 28px); inset-inline-end: clamp(18px, 2.4vw, 28px); display: flex; flex-wrap: wrap; gap: 8px; z-index: 1; }
.door-chip { min-height: 36px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 2px; background: rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); color: #FBF7F0; font: inherit; font-size: 13px; cursor: pointer; transition: background 0.3s ease, border-color 0.3s ease; }
html:lang(ar) .door-chip { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 14px; }
.door-chip:hover, .door-chip:focus-visible { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); }
.door-peek { position: relative; z-index: 2; display: flex; justify-content: flex-end; gap: clamp(10px, 1.2vw, 16px); margin-top: clamp(-84px, -6vw, -44px); padding-inline: clamp(22px, 3vw, 34px); pointer-events: none; }
.peek { position: relative; width: clamp(108px, 12.5vw, 168px); padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.peek:nth-child(2) { transform: translateY(10px); } .peek:nth-child(3) { transform: translateY(20px); }
.peek .tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 22px 44px -20px rgba(8, 6, 4, 0.75), 0 2px 8px rgba(8, 6, 4, 0.25); background: var(--ph-b); }
.peek .tile .ph { position: absolute; inset: 0; display: block; scale: 1.05; filter: blur(1.4px) saturate(0.94); transition: scale 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s ease; }
.peek .tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 10, 7, 0.74), rgba(14, 10, 7, 0.16) 52%, rgba(14, 10, 7, 0) 70%); }
.peek-n { position: absolute; inset-inline: 11px; bottom: 10px; color: #FBF7F0; font-size: 12.5px; line-height: 1.4; text-align: left; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); transition: opacity 0.6s ease; }
html:lang(ar) .peek-n { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 15px; }
@media (hover: hover) {
  .peek:hover, .peek:focus-visible { transform: translateY(-8px); }
  .peek:hover .tile .ph, .peek:focus-visible .tile .ph { scale: 1.08; filter: none; }
}

@media (max-width: 720px) {
  .works .door-card { padding-bottom: 64px; }
  .works #worksDoors + .cd-pill { margin-top: 48px; }
  .door-chips { position: static; order: -1; margin-bottom: auto; }
  .door-peek { justify-content: center; margin-top: -40px; padding-inline: 14px; }
  .peek { flex: 1 1 0; max-width: 31%; width: auto; }
  .peek:nth-child(2) { transform: translateY(10px); } .peek:nth-child(3) { transform: translateY(20px); }
}
.lib-reads { display: flex; flex-direction: column; max-width: 560px; margin: 2px 0 4px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.lr { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding: 11px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.13); background: none; color: #FBF7F0; font: inherit; text-align: left; cursor: pointer; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); }
.lr-t { font-family: var(--serif); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.4; transition: color 0.35s ease; }
html:lang(ar) .lr-t { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.7; }
.lr-m { flex: none; font-size: 12px; opacity: 0.72; white-space: nowrap; }
.lr:hover .lr-t, .lr:focus-visible .lr-t { color: #E7C9A2; }
.lib-door { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .peek, .peek .tile .ph, .peek-n, .peek .tile::after { transition: none; } }

/* the philosophy pane: the house mark as a seal, and warm sunlight falling softly across the glass (a blurred wash of colour, not a shine) */
.phil-short .phil-copy { position: relative; isolation: isolate; overflow: hidden; -webkit-clip-path: inset(0 round 2px); clip-path: inset(0 round 2px); }
.phil-mark { width: 30px; height: auto; fill: var(--accent); opacity: 0.92; }
.phil-sun { position: absolute; inset: -35%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 78% 14%, rgba(255, 214, 156, 0.46), rgba(240, 182, 116, 0.24) 38%, rgba(236, 176, 108, 0.08) 62%, rgba(236, 176, 108, 0) 80%),
              radial-gradient(44% 40% at 22% 88%, rgba(214, 150, 90, 0.1), rgba(214, 150, 90, 0) 75%);
}
html[dir="ltr"] .phil-sun { transform: scaleX(-1); }
:root[data-theme="light"] .phil-sun { opacity: 0.85; }
/* the small works under the gallery door take turns changing, one at a time, with a slow dissolve */
.peek .tile .ph.pk-in { opacity: 0; transform: scale(1.07); transition: opacity 2.2s cubic-bezier(0.4, 0, 0.2, 1), transform 3.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.peek .tile .ph.pk-in.on { opacity: 1; transform: none; }
.peek-n.pk-fade { opacity: 0 !important; transition: opacity 0.6s ease; }

/* the library door, cut like a stone plaque: chamfered corners, a fine engraved line inside, warm light from the top corner */
.lib-door { --ch: 26px; border-radius: 0; padding: clamp(30px, 4vw, 52px); min-height: clamp(300px, 34vw, 440px);
  -webkit-clip-path: polygon(var(--ch) 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, var(--ch) 100%, 0 calc(100% - var(--ch)), 0 var(--ch));
  clip-path: polygon(var(--ch) 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, var(--ch) 100%, 0 calc(100% - var(--ch)), 0 var(--ch)); }
.lib-door::after { background: radial-gradient(52% 62% at 84% 6%, rgba(255, 208, 146, 0.3), rgba(255, 208, 146, 0) 72%), linear-gradient(to left, rgba(18, 14, 10, 0.8), rgba(18, 14, 10, 0.5) 58%, rgba(18, 14, 10, 0.34)); }
html[dir="ltr"] .lib-door::after { background: radial-gradient(52% 62% at 16% 6%, rgba(255, 208, 146, 0.3), rgba(255, 208, 146, 0) 72%), linear-gradient(to right, rgba(18, 14, 10, 0.8), rgba(18, 14, 10, 0.5) 58%, rgba(18, 14, 10, 0.34)); }
.ch-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ch-frame path { fill: none; stroke: rgba(255, 234, 206, 0.34); stroke-width: 1; }
.lib-door h2 { font-size: clamp(32px, 3.8vw, 48px); }
.lib-door .lib-reads { margin-block: 6px 8px; border-top-color: rgba(255, 234, 206, 0.22); }
.lib-door .lr { border-bottom-color: rgba(255, 234, 206, 0.14); transition: opacity 0.7s ease, transform 0.7s ease; }
.lib-door .lr.lr-out { opacity: 0; transform: translateY(6px); }
@media (max-width: 720px) { .lib-door { --ch: 18px; padding: 28px 24px; } }
@media (prefers-reduced-motion: reduce) { .lib-door .lr { transition: none; } }

/* the library door as a bookplate: centred and symmetrical, the house seal, an ornament, the titles set like lines on a title page */
.lib-door { align-items: center; justify-content: center; text-align: center; gap: 12px; }
.lib-door::after, html[dir="ltr"] .lib-door::after { background: radial-gradient(60% 46% at 50% 0%, rgba(255, 214, 158, 0.2), rgba(255, 214, 158, 0) 75%), radial-gradient(ellipse 46% 60% at 50% 50%, rgba(22, 16, 10, 0.66), rgba(22, 16, 10, 0.4) 100%), linear-gradient(rgba(22, 16, 10, 0.12), rgba(22, 16, 10, 0.12)); }
.lib-door .lib-bg { filter: saturate(1.02); }
.lib-mark { width: 30px; height: auto; fill: #E7C9A2; opacity: 0.95; filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.4)); }
.lib-door .eyebrow { justify-content: center; color: #E7C9A2; }
.lib-door .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.lib-door h2 { margin: 0; }
.lib-orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 2px 0 4px; }
.lib-orn i { width: clamp(48px, 7vw, 90px); height: 1px; background: linear-gradient(to right, rgba(231, 201, 162, 0), rgba(231, 201, 162, 0.7)); }
.lib-orn i:last-child { transform: scaleX(-1); }
.lib-orn b { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid rgba(231, 201, 162, 0.85); }
.lib-door .lib-reads { align-items: center; width: 100%; max-width: 640px; margin: 0; border-top: 0; }
.lib-door .lr { flex-direction: column; align-items: center; gap: 1px; padding: 8px 0; border-bottom: 0; text-align: center; }
.lib-door .lr + .lr::before { content: ""; width: 3px; height: 3px; margin-bottom: 9px; border-radius: 50%; background: rgba(231, 201, 162, 0.6); }
.lib-door .lr-t { font-size: clamp(20px, 2vw, 25px); }
html:lang(ar) .lib-door .lr-t { font-size: clamp(19px, 1.9vw, 24px); }
.lib-door .lr-m { font-size: 11.5px; opacity: 0.6; letter-spacing: 0.04em; }
.lib-door .lib-go { margin-top: 8px; color: #E7C9A2; }
.lib-door .lib-go::before { content: ""; width: 28px; height: 1px; background: currentColor; transition: width 0.5s ease; }
.lib-door:hover .lib-go::before { width: 48px; }
.ch-frame path + path { stroke: rgba(255, 234, 206, 0.16); }

/* behind the two doors: a sunlit limestone wall with olive-leaf shadows, held still while the doors pass over it */
.sunwall { position: relative; }
.sunwall > .works, .sunwall > .lib { position: relative; z-index: 1; }
.sw-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sw-img { position: sticky; top: 0; height: 100vh; height: 100lvh; background: var(--sw-d, url('img/sunwall.jpg?v=c3')) center / cover no-repeat; }
@media (orientation: portrait) { .sw-img { background-image: var(--sw-m, url('img/sunwall-tall.jpg?v=c3')); } }
.phil-glass .ph.pg-live { filter: blur(22px) saturate(1.08); }
.sw-img::after { content: ""; position: absolute; inset: 0; background: rgba(250, 240, 224, 0.18); }
.sw-bg::before, .sw-bg::after { content: ""; position: absolute; inset-inline: 0; z-index: 1; height: clamp(120px, 18vh, 220px); }
.sw-bg::before { top: 0; background: linear-gradient(to bottom, var(--bg), color-mix(in srgb, var(--bg) 60%, transparent) 45%, transparent); }
.sw-bg::after { bottom: 0; background: linear-gradient(to top, var(--bg), color-mix(in srgb, var(--bg) 60%, transparent) 45%, transparent); }
:root[data-theme="dark"] .sw-img::after { background: radial-gradient(70% 60% at 72% 18%, rgba(255, 196, 120, 0.16), rgba(255, 196, 120, 0) 70%), linear-gradient(rgba(46, 28, 12, 0.5), rgba(32, 20, 10, 0.6)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sw-img::after { background: radial-gradient(70% 60% at 72% 18%, rgba(255, 196, 120, 0.16), rgba(255, 196, 120, 0) 70%), linear-gradient(rgba(46, 28, 12, 0.5), rgba(32, 20, 10, 0.6)); } }

.door-chip-cd { display: inline-flex; align-items: center; gap: 7px; color: #F6DDB8; border-color: rgba(231, 190, 130, 0.5); background: linear-gradient(135deg, rgba(232, 190, 128, 0.26), rgba(196, 140, 78, 0.16)); }
.door-chip-cd svg { width: 15px; height: auto; fill: currentColor; }
.door-chip-cd:hover, .door-chip-cd:focus-visible { background: linear-gradient(135deg, rgba(232, 190, 128, 0.4), rgba(196, 140, 78, 0.26)); border-color: rgba(240, 204, 150, 0.7); }
.works { padding-bottom: clamp(56px, 6vw, 88px); }

/* a quiet notice inside the gallery door (المعرض ← إعدادات القسم ← سطر إعلان) */
.door-note { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; margin-bottom: 4px; padding: 6px 14px 6px 12px; border-radius: 2px; font-size: 13px; color: #F6DDB8; background: rgba(20, 14, 9, 0.28); border: 1px solid rgba(231, 190, 130, 0.32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-shadow: none; }
html:lang(ar) .door-note { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 13.5px; }
.door-note i { width: 6px; height: 6px; border-radius: 50%; background: #E9B877; box-shadow: 0 0 0 3px rgba(233, 184, 119, 0.18); }

/* ---- Articles: philosophical writing across the top, stone and buildings side by side below ---- */
.lib-grid { grid-template-columns: 1fr 1fr; }
.lib-card.lib-wide { grid-column: 1 / -1; min-height: clamp(220px, 26vw, 360px); }
@media (max-width: 720px) { .lib-grid { grid-template-columns: 1fr; } }
.rd-empty { margin: 8px 0 0; padding: 26px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* ---- Work viewer: each photo whole, never stretched past its own size, the same photo softly blurred behind ---- */
.wv .wv-slide::before { display: block !important; opacity: 1 !important; }
.wv .wv-slide .wv-img { background-image: var(--img, none) !important; background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; background-color: transparent !important;
  max-width: var(--nw, none); max-height: var(--nh, none); margin: auto; transition: top 0.45s ease, bottom 0.45s ease; }
.wv:not(.pure) .wv-slide .wv-img { top: calc(58px + env(safe-area-inset-top, 0px)); bottom: calc(var(--peek, 150px) + 14px); }
/* phone: the photo runs from one edge to the other and is never trimmed; a tall photo reaches up and under the glass sheet. A tap shows it alone */
@media (max-width: 899px), (hover: none) {
  .wv:not(.pure) .wv-slide .wv-img { left: 0; right: 0; max-width: none; max-height: none; height: calc(100vw / var(--ar, 1.5)); background-size: 100% 100% !important;
    top: max(0px, calc((100% + 44px + env(safe-area-inset-top, 0px) - var(--peek, 150px) - 100vw / var(--ar, 1.5)) / 2)); bottom: auto; margin: 0; }
}
.wv-fly { transform-origin: 0 0; will-change: transform, clip-path; transition: transform 0.46s cubic-bezier(0.22, 0.8, 0.2, 1), clip-path 0.46s cubic-bezier(0.22, 0.8, 0.2, 1), -webkit-clip-path 0.46s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.24s ease !important; }
.wv-fly.slow { transition: transform 0.66s cubic-bezier(0.25, 0.8, 0.25, 1), clip-path 0.66s cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-clip-path 0.66s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.38s ease !important; }
.wv .wv-slide::before { top: -4% !important; left: -4% !important; right: auto !important; bottom: auto !important; width: 13.5%; height: 13.5%; transform: scale(8) !important; transform-origin: 0 0; filter: blur(4px) saturate(1.2) brightness(0.6) !important; will-change: transform; }
/* a pull down inside any viewer closes it and never reloads the page */
html:has(.wv:not([hidden])), html:has(.tz:not([hidden])), html:has(.rd:not([hidden])) { overscroll-behavior-y: none; }
html:has(.wv:not([hidden])) body, html:has(.tz:not([hidden])) body, html:has(.rd:not([hidden])) body { overscroll-behavior-y: none; }
.wv, .tz, .rd { overscroll-behavior: none; }
/* the sheet stays still: its words already say to pull it up */
.wv-more { transition: opacity 0.45s ease !important; }
.wv-sheet.nudge { animation: none !important; }
/* the hand replaces the "see it whole" mark, and moving between photos needs no words */
.wv .full-chip, .tz .full-chip, .drag-tip { display: none !important; }
/* ---- The work on the homepage: three doors; the gallery: a full-screen page above the site ---- */
.works { padding-block: clamp(64px, 9vw, 120px); }
.works .title { margin-top: 18px; }
.works-doors { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (max-width: 860px) { .works-doors { grid-template-columns: 1fr; } }
.door-card { min-height: clamp(260px, 32vw, 400px); border-radius: 2px; }
@media (max-width: 860px) { .door-card { min-height: 280px; } }
.gal { position: fixed; inset: 0; z-index: 63; overflow-y: auto; overscroll-behavior: contain; padding-block: 0 72px !important; opacity: 0; transform: translateY(18px); transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); outline: none; }
.gal.open { opacity: 1; transform: none; }
.gal.lib-enter { transform: translateY(28px) scale(0.985); transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), transform 1.1s cubic-bezier(0.16, 0.8, 0.24, 1); }
.gal.lib-enter.open { transform: none; }
.gal.lib-enter :is(.port-head, .doors, .door-line, .coll-chips, .card, .quote-copy > *, .quote-steps li, #quoteForm > *, .rdg-done > *) { animation: libin 0.9s cubic-bezier(0.16, 0.8, 0.24, 1) backwards; animation-delay: calc(0.18s + var(--i, 0) * 0.07s); }
.gal-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: env(safe-area-inset-top, 0px) 16px 0; margin-bottom: clamp(24px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 96%, transparent); border-bottom: 1px solid var(--line); }
.gal-grab { position: absolute; top: calc(8px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; width: 44px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 30%, transparent); }
.gal-title { padding-top: 10px; font-size: 13px; color: var(--muted); }
.gal-list { position: absolute; inset-inline-start: 12px; top: calc(4px + env(safe-area-inset-top, 0px)); }
html:has(.gal.open) .fab { z-index: 64; }
.gal { -webkit-overflow-scrolling: touch; contain: layout paint; }
.gal.portfolio::before { filter: none; }
@media (hover: none) {
  .gal .card, .gal .card .tile > div, .gal .card .cap, .gal .card .tag { transition: none; }
  .gal.portfolio .card { box-shadow: 0 16px 28px -22px rgba(20, 14, 8, 0.6); }
  .gal.portfolio .card .tile::after { box-shadow: inset 0 0 0 1px rgba(20, 14, 8, 0.4); }
  .gal .card .tile > div { scale: 1.12; translate: none; }
}
.gal.rdl { z-index: 64; background: var(--g-page), var(--bg); }
html:has(.rdl.open) .fab { z-index: 30; }
.works-read { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 12px; padding: clamp(20px, 3vw, 32px); border-radius: 2px; background: var(--gl-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 10%, transparent); }
.works-read-tx { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 320px; }
.works-read-tx p { margin: 0; color: var(--muted); line-height: 1.85; max-width: 560px; }
.works-read .btn { border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .gal, .gal.lib-enter { transition: opacity 0.2s ease; transform: none; } .gal * { animation: none !important; } }
/* the list button in the top bar, with its count */
.list-btn { position: relative; }
.list-btn[hidden] { display: none; }
.list-btn .ml-n { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1; color: var(--btn-fg); background: var(--accent); }
.list-btn .ml-n[hidden] { display: none; }
.toast { position: fixed; z-index: 95; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 16px; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 18px; border-radius: 2px; color: var(--fg); font-size: 14px; opacity: 0; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 12%, transparent), 0 16px 34px -16px rgba(0, 0, 0, 0.55); transition: opacity 0.4s ease, translate 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
html[dir="rtl"] .toast { padding: 10px 18px 10px 10px; }
.toast.show { opacity: 1; translate: -50% 0; pointer-events: auto; }
.toast span { white-space: nowrap; }
.toast button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 2px; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--gl-strong-fg); background: var(--gl-strong); white-space: nowrap; }
/* ---- The work: doors, collections, kind badges ---- */
.doors.tabs.lg { margin-top: 32px; }
.door-line { margin: 16px 0 0; max-width: 620px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.coll-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.coll-chips:empty { display: none; }
.coll-chip { min-height: 36px; padding: 0 14px; border: 0; border-radius: 2px; cursor: pointer; font: inherit; font-size: 13px; color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 12%, transparent); transition: background 0.3s ease, box-shadow 0.3s ease; }
html:lang(ar) .coll-chip { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 14px; }
.coll-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.grid-empty { margin: 28px 0 0; color: var(--muted); }
.card-badges { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 70px); }
.card-kind, .card-state, .card-ex { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 2px; font-size: 11.5px; line-height: 1; color: #FBF7F0; background: rgba(14, 10, 7, 0.58); white-space: nowrap; }
html:lang(ar) .card-kind, html:lang(ar) .card-state, html:lang(ar) .card-ex { font-size: 12px; }
.card-state.st-available { box-shadow: inset 0 0 0 1px rgba(170, 214, 160, 0.55); }
.card-state.st-reserved { box-shadow: inset 0 0 0 1px rgba(232, 196, 120, 0.6); }
.card-state.st-owned { box-shadow: inset 0 0 0 1px rgba(251, 247, 240, 0.35); opacity: 0.9; }
.card-ex { background: rgba(160, 60, 40, 0.55); }
.card[data-kind="ready"] .card-kind, .card[data-kind="made"] .card-kind { background: rgba(120, 82, 40, 0.55); }
@media (max-width: 560px) { .card-badges { top: 8px; inset-inline-start: 8px; gap: 4px; } .card-kind, .card-state, .card-ex { min-height: 20px; padding: 0 7px; font-size: 10.5px; } }
/* the work viewer: order, gift and keep, right under the title, in the part of the sheet that is always in sight */
.wv-acts-top { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.wv-acts-top:empty { display: none; }
.wv-acts-top .wv-order { flex: 1 1 auto; width: auto; min-height: 46px; }
.wv-acts-top .wv-gift { flex: 0 0 auto; min-height: 46px; padding: 0 18px; gap: 8px; }
.wv-acts-top .wv-keep { flex: 0 0 46px; width: 46px; min-height: 46px; padding: 0; color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); }
.wv-acts-top .wv-keep.on { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.wv-gift svg { width: 17px; height: 17px; }
/* order or gift: a sheet that rises over the work */
.ox { position: fixed; inset: 0; z-index: 88; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 8, 6, 0.5); opacity: 0; transition: opacity 0.35s ease; }
.ox[hidden] { display: none; }
.ox.open { opacity: 1; }
.ox-panel { position: relative; width: min(100%, 560px); max-height: 92%; overflow-y: auto; overscroll-behavior: contain; padding: 30px 22px calc(26px + env(safe-area-inset-bottom, 0px)); border-radius: 2px 2px 0 0; color: var(--fg); background: var(--g-card), var(--bg); box-shadow: 0 -20px 50px -30px rgba(0, 0, 0, 0.7); transform: translateY(40px); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); outline: none; }
.ox.open .ox-panel { transform: none; }
@media (min-width: 900px) { .ox { align-items: center; } .ox-panel { border-radius: 2px; max-height: 88vh; padding: 34px 32px 30px; } }
.ox-grab { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 44px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 28%, transparent); }
.ox-head { display: flex; align-items: center; gap: 14px; }
.ox-th { flex: none; width: 58px; height: 58px; border-radius: 2px; }
.ox-ti { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ox-ti b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.3; }
html:lang(ar) .ox-ti b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 700; font-size: 20px; }
.ox-ti small { color: var(--muted); font-size: 12.5px; text-align: left; }
.ox-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 20px 0 6px; padding: 4px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 7%, transparent); }
.ox-mode button { min-height: 42px; border: 0; border-radius: 2px; cursor: pointer; font: inherit; font-size: 14.5px; color: var(--muted); background: transparent; transition: background 0.3s ease, color 0.3s ease; }
.ox-mode button[aria-selected="true"] { color: var(--gl-strong-fg); background: var(--gl-strong); }
.ox-range { display: flex; align-items: center; gap: 14px; }
.ox-range input { flex: 1; min-width: 0; accent-color: var(--accent); min-height: 36px; }
.ox-range output { flex: none; min-width: 64px; text-align: right; font-family: var(--serif); font-size: 22px; }
.ox-est { border-radius: 2px; }
.cd-mark { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #F3D6A2 0%, #E2B373 55%, #CF9551 100%); }
.cd-mark svg { width: 34px; height: auto; fill: #5A2D1F; }
.cd-pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; margin-top: 12px; border: 0; border-radius: 2px; cursor: pointer; font: inherit; font-size: 15px; color: #3E240C; width: 100%;
  background: linear-gradient(135deg, #F3D6A2 0%, #E2B373 55%, #CF9551 100%); box-shadow: inset 0 1px 0 rgba(255, 249, 236, 0.7), inset 0 -1px 0 rgba(120, 70, 20, 0.18), 0 12px 26px -14px rgba(150, 90, 30, 0.6); transition: transform 0.25s ease, filter 0.25s ease; }
html:lang(ar) .cd-pill { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 16px; }
.cd-pill .ne-mark { width: 24px; height: auto; fill: #5A2D1F; }
.cd-pill:hover { filter: brightness(1.04); transform: translateY(-1px); }
.doors.tabs.lg + .cd-small { display: inline-flex; width: auto; min-height: 44px; padding: 0 18px; margin: 12px 0 0; margin-inline-start: 8px; font-size: 14px; vertical-align: top; }
@media (max-width: 560px) { .doors.tabs.lg + .cd-small { margin-inline-start: 0; } }
.tabs.lg .tab.tab-custom { opacity: 1; color: #3E240C; background: linear-gradient(135deg, #F3D6A2 0%, #E2B373 55%, #CF9551 100%); }
.ox-which { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ox-which button { flex: 1 1 0; min-height: 40px; padding: 0 12px; border: 0; border-radius: 2px; cursor: pointer; font: inherit; font-size: 14px; color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.ox-which button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ox-form { display: grid; gap: 18px; margin-top: 14px; }
.ox-form .field input, .ox-form .field textarea { border-radius: 2px; }
.ox-panel { overflow-x: hidden; touch-action: pan-y; }
.ox-form, .ox-form .field { min-width: 0; }
.ox-form input, .ox-form textarea { max-width: 100%; min-width: 0; box-sizing: border-box; }
.ox-form input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-height: 48px; line-height: 48px; text-align: left; }
.ox-form input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.ox-size-o { margin-top: 10px; }
.ox-note { margin: 0; font-size: 13.5px; color: var(--accent); }
.ox-hint { margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.ox-info b { font-weight: 500; }
.ox-done { display: flex; flex-direction: column; gap: 14px; padding: 18px 0 8px; }
.ox-done p { margin: 0; line-height: 1.85; }
.ox-x { display: none; }
@media (min-width: 900px) and (hover: hover) { .ox .ox-x { position: absolute !important; top: 14px !important; inset-inline-end: 14px !important; } }
.ox-info { margin: 0; padding: 12px 16px; border-radius: 2px; font-size: 14px; line-height: 1.8; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ox-sec { display: grid; gap: 18px; }
.ox-sec[hidden] { display: none; }
/* the work viewer: notes under the facts */
.wv-acts { display: grid; gap: 10px; }
.wv-ask { border: 0; cursor: pointer; font: inherit; width: 100%; }
.wv-ask2 { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 0; border-radius: 2px; cursor: pointer; text-decoration: none; font: inherit; font-size: 14.5px; color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); }
.wv-ask2 svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wv-keep { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 2px; cursor: pointer; font: inherit; font-size: 14px; color: var(--muted); background: none; }
.wv-keep svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.wv-keep.on { color: var(--accent); } .wv-keep.on svg { fill: currentColor; }
.wv-note { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.wv-note.wv-ex { color: var(--err); }
/* ---- House reading: chips and the request ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips + .chips { margin-top: 10px; }
.chip { min-height: 40px; padding: 0 16px; border: 0; border-radius: 2px; cursor: pointer; font: inherit; font-size: 14px; color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.25s ease, box-shadow 0.25s ease; }
html:lang(ar) .chip { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
.chip:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 35%, transparent); }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.chips.days .chip { padding: 0 12px; min-width: 56px; }
.rdg-ref { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-radius: 2px; font-size: 14px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.rdg-ref[hidden] { display: none; }
.rdg-ref-l { color: var(--muted); }
.rdg-ref-x { margin-inline-start: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.rdg-proxy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; margin-top: 10px; }
.rdg-proxy[hidden] { display: none; }
.rdg-proxy input { font: inherit; font-size: 15px; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 0; min-height: 48px; padding: 0 14px; width: 100%; }
/* Sending a request: WhatsApp in burnt green, email in burnt brown, each with its sign after the words */
.kc { display: contents; }
.kc .kc-err { margin: 6px 0 0; }
.kd-reach { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.kd-reach .ox-hint { margin: 0; }
.kd-fail { color: var(--accent); }
.ox-done p b[dir="ltr"], .rdg-done p b[dir="ltr"] { white-space: nowrap; unicode-bidi: isolate; }
.rdg-done > p { margin: 0; line-height: 1.85; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.send-pair { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ml-send .send-pair { flex: 1 1 auto; }
.btn.wa-send, .rd-send-btn.wa-send { background: linear-gradient(160deg, #557A49 0%, #3A5A32 55%, #2C4626 100%) !important; color: #F7F1E6 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 30px -16px rgba(20, 40, 15, 0.7) !important; }
.btn.mail-send, .rd-send-btn.mail-send { background: linear-gradient(160deg, #9A633C 0%, #74462A 55%, #5A341D 100%) !important; color: #F7F1E6 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 30px -16px rgba(50, 25, 10, 0.7) !important; }
.wa-send:hover, .mail-send:hover { filter: brightness(1.08); }
.wa-send[aria-disabled="true"], .mail-send[aria-disabled="true"] { filter: saturate(0.75); }
.wa-send .send-ic, .mail-send .send-ic { width: 18px; height: 18px; flex: none; }
.wa-send .send-ic { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.wa-send .send-ic .ph { fill: currentColor; stroke: none; }
.mail-send .send-ic { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
/* How an order goes: a slim row of the steps, on the homepage, in the gallery, and inside every request form */
.ks { margin-top: 18px; padding: clamp(16px, 2.4vw, 24px); border-radius: 2px; background: var(--gl-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 10%, transparent); }
.ks-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.ks-head a { font-size: 13px; color: var(--accent); text-underline-offset: 4px; }
.ks-row { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; counter-reset: ks; }
.ks-row::-webkit-scrollbar { display: none; }
.ks-row li { flex: 1 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 2px; font-size: 13px; white-space: nowrap; color: var(--muted); background: color-mix(in srgb, var(--fg) 5%, transparent); }
html[dir="rtl"] .ks-row li { padding: 8px 8px 8px 12px; }
.ks-row .n { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
.ks-row li.done { color: var(--fg); }
.ks-row li.done .n { background: linear-gradient(160deg, #557A49, #2C4626); color: #F7F1E6; box-shadow: none; }
.ks-row li.here { color: var(--fg); background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.ks-row li.here .n { background: var(--accent); color: #1A1613; box-shadow: none; }
.ks-row li small { font-size: 11px; color: var(--accent); }
.ks.in-form { grid-column: 1 / -1; margin: 0; padding: 0; background: none; box-shadow: none; }
.ks-go { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 2px; text-decoration: none; font-size: 14px; color: var(--fg); background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.ks-go::after { content: "↗"; color: var(--accent); }
.ks-go:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.ks.in-form .eyebrow { font-size: 10.5px; }
html:lang(ar) .ks.in-form .eyebrow { font-size: 12.5px; }
.ks.in-form .ks-row { flex-wrap: wrap; overflow: visible; }
.ks.in-form .ks-row li { flex: 0 1 auto; font-size: 12.5px; padding-block: 5px; }
@media (min-width: 900px) { .ks-home .ks-row { flex-wrap: wrap; overflow: visible; } .ks-home .ks-row li { flex: 1 1 0; white-space: normal; line-height: 1.4; border-radius: 2px; } }
.list-btn, .gal-list, .menu-list, .wv-keep { display: none !important; }   /* "my list" is not offered */
.music-fab { display: none !important; }   /* music lives in the top bar only */
.rdg-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.rdg-no { font-size: 13.5px; color: var(--muted); } .rdg-no b { color: var(--fg); font-weight: 500; letter-spacing: 0.06em; }
.rdg-done { align-self: start; display: flex; flex-direction: column; gap: 16px; }
.rdg-done[hidden] { display: none; }
.rdg-done-no { margin: 0; font-size: 15px; color: var(--muted); } .rdg-done-no b { font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--fg); letter-spacing: 0.06em; margin-inline-start: 6px; }
.rdg-done-no { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.kno-copy { display: inline-flex; align-items: center; gap: 10px; margin-inline-start: 6px; padding: 4px 14px 4px 16px; border-radius: 2px; cursor: pointer; background: color-mix(in srgb, var(--fg) 6%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); transition: background .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.kno-copy:hover, .kno-copy:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); outline: none; }
.rdg-done-no .kno-copy b { margin: 0; }
.kno-copy i { width: 16px; height: 16px; flex: none; background: var(--muted); -webkit-mask: var(--kno-ic) center/contain no-repeat; mask: var(--kno-ic) center/contain no-repeat; --kno-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1'/%3E%3C/svg%3E"); }
.kno-copy.done i { background: var(--accent); --kno-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.kno-msg { font-size: 13px; color: var(--accent); opacity: 0; transition: opacity .25s; }
.kno-copy.done + .kno-msg { opacity: 1; }
.rdg-done-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; line-height: 1.8; }
.rdg-done-list li::marker { color: var(--accent); }
.rdg-new { align-self: flex-start; min-height: 44px; padding: 0 20px; border: 0; border-radius: 2px; cursor: pointer; font: inherit; color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
/* ---- My list ---- */
.menu-list .ml-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-inline-start: 6px; border-radius: 2px; font-size: 12px; color: var(--btn-fg); background: var(--accent); }
.menu-list .ml-n[hidden] { display: none; }
.ml-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ml-list li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.ml-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 14px 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--fg); text-align: left; }
.ml-th { flex: none; width: 64px; height: 64px; border-radius: 2px; }
.ml-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ml-tx b { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.3; }
html:lang(ar) .ml-tx b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 700; font-size: 18px; }
.ml-tx small { color: var(--muted); font-size: 13px; }
.ml-del { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; color: var(--muted); background: none; }
.ml-del svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; }
.ml-send { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ml-send input { flex: 1 1 220px; min-width: 0; min-height: 50px; padding: 0 18px; border: 0; border-radius: 2px; font: inherit; font-size: 15px; color: var(--fg); background: var(--gl-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); }
/* The library inside the reader: the same cards as before, writing across the top, stone and buildings side by side */
.rd-hub { gap: 12px; }
.rd-hub .lib-card { min-height: clamp(220px, 32vw, 340px); border-radius: 2px; }
.rd-hub .lib-card.lib-wide { min-height: clamp(240px, 30vw, 380px); }
.rd-hub-n { font-size: 12.5px; opacity: 0.82; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.rd .faq-list { border-top: 1px solid var(--line); }
/* Opening the library: a slow fade with a slight rise, then the title, the words and each section, one after another */
.rd.lib-enter { transform: translateY(28px) scale(0.985); transform-origin: 50% 30%; transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), transform 1.1s cubic-bezier(0.16, 0.8, 0.24, 1); }
.rd.lib-enter.open { transform: none; }
.rd.lib-enter .rd-head > *, .rd.lib-enter .rd-hub > .lib-card { animation: libin 1.1s cubic-bezier(0.16, 0.8, 0.24, 1) backwards; }
.rd.lib-enter .rd-head > :nth-child(1) { animation-delay: 0.25s; }
.rd.lib-enter .rd-head > :nth-child(2) { animation-delay: 0.42s; }
.rd.lib-enter .rd-hub > .lib-card:nth-child(1) { animation-delay: 0.6s; }
.rd.lib-enter .rd-hub > .lib-card:nth-child(2) { animation-delay: 0.78s; }
.rd.lib-enter .rd-hub > .lib-card:nth-child(3) { animation-delay: 0.94s; }
.rd.lib-enter .rd-hub .lib-bg { animation: libbg 1.9s cubic-bezier(0.16, 0.8, 0.24, 1) 0.6s backwards; }
@keyframes libin { from { opacity: 0; transform: translateY(22px); } }
@keyframes libbg { from { opacity: 0; transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .rd.lib-enter, .rd.lib-enter.open { transform: none; transition: opacity 0.3s ease; } .rd.lib-enter * { animation: none !important; } }
/* "Save our contact": one tap adds Kalokathia to the phone's contacts */
.save-ct { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 18px; border-radius: 2px; text-decoration: none; font-size: 14.5px; color: var(--ink-fg);
  background: rgba(255, 255, 255, 0.07); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--ink-line), inset 0 0 16px rgba(255, 255, 255, 0.06); transition: background 0.3s ease, transform 0.25s ease; }
html:lang(ar) .save-ct { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 15px; }
.save-ct svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.save-ct:hover { background: rgba(255, 255, 255, 0.13); }
.save-ct:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .save-ct { transition: none; } }
/* while an article is open, the WhatsApp button stays within reach above it */
html:has(.rd.open) .fab { z-index: 66; }
.tap-hint { position: absolute; z-index: 7; left: 50%; top: 55%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; color: #FFF8EE;
  background: radial-gradient(circle, rgba(30, 22, 15, 0.16), rgba(30, 22, 15, 0.04) 70%); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.tap-hint svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.3)); transform-origin: 35% 15%; }
.th-ring { position: absolute; left: 41%; top: 28%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid rgba(255, 248, 238, 0.85); opacity: 0; }
.tap-hint.on { animation: th-show 1.5s ease both; }
.tap-hint.on svg { animation: th-press 1.5s ease both; }
.tap-hint.on .th-ring { animation: th-ring 1.5s ease-out both; }
@keyframes th-show { 0% { opacity: 0; transform: scale(0.92); } 18% { opacity: 0.5; transform: none; } 78% { opacity: 0.5; } 100% { opacity: 0; } }
@keyframes th-press { 0%, 30% { transform: none; } 42% { transform: scale(0.86) translateY(2px); } 56%, 100% { transform: none; } }
@keyframes th-ring { 0%, 40% { opacity: 0; transform: scale(0.3); } 46% { opacity: 0.9; } 82%, 100% { opacity: 0; transform: scale(1.7); } }
@media (prefers-reduced-motion: reduce) { .tap-hint.on, .tap-hint.on svg, .tap-hint.on .th-ring { animation: none; } .tap-hint.on { opacity: 0.5; } }
/* phones zoom in on any field whose text is under 16px, and the page is then left zoomed and loose; fields stay at 16px on touch screens */
@media (hover: none), (pointer: coarse) { input, textarea, select { font-size: 16px !important; } }
html, body { max-width: 100%; overflow-x: clip; }

/* ---- The library as frosted glass: the house shows through, softly blurred; every article sits in its own liquid-glass pane ---- */
:root { --rdg-tint: linear-gradient(172deg, rgba(247, 236, 218, 0.62) 0%, rgba(238, 220, 189, 0.70) 100%); --rdg-read: linear-gradient(172deg, rgba(247, 236, 218, 0.86) 0%, rgba(238, 220, 189, 0.90) 100%);
  --pane: rgba(255, 250, 242, 0.30); --pane-hi: rgba(255, 250, 242, 0.48); --rim-a: rgba(255, 255, 255, 0.95); --rim-b: rgba(255, 255, 255, 0.12); --rim-c: rgba(160, 112, 60, 0.30); --pane-drop: 0 18px 36px -24px rgba(110, 70, 30, 0.45); }
:root[data-theme="dark"] { --rdg-tint: linear-gradient(172deg, rgba(30, 25, 21, 0.60) 0%, rgba(22, 19, 16, 0.68) 100%); --rdg-read: linear-gradient(172deg, rgba(30, 25, 21, 0.86) 0%, rgba(22, 19, 16, 0.90) 100%);
  --pane: rgba(255, 244, 228, 0.045); --pane-hi: rgba(255, 244, 228, 0.085); --rim-a: rgba(255, 240, 220, 0.42); --rim-b: rgba(255, 240, 220, 0.05); --rim-c: rgba(231, 201, 162, 0.22); --pane-drop: 0 18px 36px -22px rgba(0, 0, 0, 0.7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --rdg-tint: linear-gradient(172deg, rgba(30, 25, 21, 0.60) 0%, rgba(22, 19, 16, 0.68) 100%); --rdg-read: linear-gradient(172deg, rgba(30, 25, 21, 0.86) 0%, rgba(22, 19, 16, 0.90) 100%);
  --pane: rgba(255, 244, 228, 0.045); --pane-hi: rgba(255, 244, 228, 0.085); --rim-a: rgba(255, 240, 220, 0.42); --rim-b: rgba(255, 240, 220, 0.05); --rim-c: rgba(231, 201, 162, 0.22); --pane-drop: 0 18px 36px -22px rgba(0, 0, 0, 0.7); } }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* the frosted glass is a still layer behind the scrolling pages, so it is blurred once and never again while reading */
  /* frosted glass without a live blur: a still, pre-blurred photo of the house under a warm tint, so scrolling costs nothing */
  .rd { background: transparent; }
  body::after { content: ""; position: fixed; inset: 0; z-index: 64; pointer-events: none; opacity: 0; visibility: hidden;
    background: var(--rdg-tint), url('img/lib-frost.jpg?v=c3') center / cover no-repeat, var(--bg); transform: translateZ(0);
    transition: opacity 0.6s ease, visibility 0s 0.6s; }
  body:has(.rd.open)::after { opacity: 1; visibility: visible; transition: opacity 0.6s ease, visibility 0s; }
  /* inside an article the glass thickens, so long reading stays calm on the eye */
  body:has(.rd .rd-art)::after { background: var(--rdg-read), url('img/lib-frost.jpg?v=c3') center / cover no-repeat, var(--bg); }
  .rd-bar { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .rd-bar { background: transparent; border-bottom-color: color-mix(in srgb, var(--fg) 9%, transparent); }
}

/* the liquid-glass rim: a hairline that catches light at one corner and fades along the edges */
.rd-list li > button::before, .rd-card::before, .rd-hub .lib-card::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--rim-a) 0%, var(--rim-b) 32%, var(--rim-b) 64%, var(--rim-c) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
html[dir="rtl"] .rd-list li > button::before, html[dir="rtl"] .rd-card::before, html[dir="rtl"] .rd-hub .lib-card::before { background: linear-gradient(225deg, var(--rim-a) 0%, var(--rim-b) 32%, var(--rim-b) 64%, var(--rim-c) 100%); }

/* articles: separate panes instead of ruled lines */
.rd-list { display: grid; gap: 12px; border-top: 0; }
.rd-list li, .rd-list li.rd-feat { border-bottom: 0; margin: 0; }
.rd-list li > button { position: relative; isolation: isolate; padding: 22px clamp(16px, 3vw, 28px); border-radius: 2px;
  background: var(--pane); box-shadow: inset 0 1px 18px rgba(255, 255, 255, 0.06), var(--pane-drop);
  transition: background 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease; }
@media (hover: hover) { .rd-list li > button:hover { background: var(--pane-hi); transform: translateY(-2px); } }
.rd-list li > button:active { transform: scale(0.99); }
.rd-list li.rd-feat { margin-bottom: 6px; }

/* stone cards and the library's section doors take the same rounded glass edge */
.rd-card { border-radius: 2px; box-shadow: var(--pane-drop); }
.rd-hub .lib-card { border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .rd-list li > button { transition: none; } .rd-list li > button:hover { transform: none; } }

/* ---- The library door on the homepage: frosted, a liquid-glass rim along its cut edge, each title on its own pane of glass ---- */
.lib-door .lib-bg { filter: blur(7px) saturate(1.05); transform: scale(1.08); }
.lib-door:hover .lib-bg, .lib-door:focus-visible .lib-bg { transform: scale(1.12); }
.ch-frame path.ch-rim { stroke: url(#lgRim); stroke-width: 1.4; }
html[dir="ltr"] .ch-frame path.ch-rim { transform: scaleX(-1); transform-origin: center; transform-box: fill-box; }
.lib-door .lib-reads { gap: 10px; }
.lib-door .lr { position: relative; isolation: isolate; width: min(100%, 560px); padding: 12px 24px; border-radius: 2px;
  background: rgba(255, 246, 232, 0.07); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 16px rgba(255, 255, 255, 0.05), 0 14px 30px -20px rgba(0, 0, 0, 0.6); transition: background 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.7s ease; }
.lib-door .lr + .lr::before { display: none; }
.lib-door .lr::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(225deg, rgba(255, 244, 226, 0.75) 0%, rgba(255, 244, 226, 0.08) 34%, rgba(255, 244, 226, 0.06) 64%, rgba(231, 201, 162, 0.45) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
html[dir="ltr"] .lib-door .lr::after { background: linear-gradient(135deg, rgba(255, 244, 226, 0.75) 0%, rgba(255, 244, 226, 0.08) 34%, rgba(255, 244, 226, 0.06) 64%, rgba(231, 201, 162, 0.45) 100%); }
@media (hover: hover) { .lib-door .lr:hover { background: rgba(255, 246, 232, 0.14); transform: translateY(-2px); } }
.lib-door .lr.lr-out { transform: translateY(6px); }
@media (max-width: 720px) { .lib-door .lr { padding: 10px 16px; } }
@media (prefers-reduced-motion: reduce) { .lib-door .lr { transition: none; } .lib-door .lr:hover { transform: none; } }

/* ---- Computers: the whole house scales with the screen, in proportion — the layout drawn for a 1440px screen simply grows on larger ones ---- */
@media (min-width: 1600px) { html { zoom: 1.1; } }
@media (min-width: 1760px) { html { zoom: 1.2; } }
@media (min-width: 1900px) { html { zoom: 1.3; } }
@media (min-width: 2200px) { html { zoom: 1.5; } }
@media (min-width: 2500px) { html { zoom: 1.7; } }
@media (min-width: 3000px) { html { zoom: 2; } }
@media (min-width: 3600px) { html { zoom: 2.4; } }

/* The close button sits beside the content, not lost in the far corner of a wide screen */
@media (min-width: 900px) and (hover: hover) {
  .gl-x, .rd-bar .rd-x, #tzClose { inset-inline-end: max(20px, calc((100% - 960px) / 2 - 54px)) !important; }
  /* aligned exactly with the edge of the content below it */
  .rd-bar .rd-x { inset-inline-end: max(20px, calc((100% - 1100px) / 2 + var(--gutter))) !important; }
  .gal-bar .gal-x { inset-inline-end: max(20px, calc((100% - 1320px) / 2 + var(--gutter))) !important; }
  /* a piece open beside its details: the X sits at the top of the photo, right next to the details panel */
  .wv .wv-x { inset-inline-end: calc(var(--panel, 420px) + 18px) !important; }
  .ox-panel .ox-x { inset-inline-end: 16px !important; top: 16px !important; }
}


/* ==== Quieter luxury (Oct 2026): sharp corners, fewer effects, calmer buttons, more air ==== */
/* no floating chat bubble: contact lives in the menu and at the foot of the page */
.fab, .fab.lg { display: none !important; }
/* the glow washes and big drop shadows go; light stays natural */
.phil-sun { display: none !important; }
.lib-door::after, html[dir="ltr"] .lib-door::after { background: linear-gradient(rgba(22, 16, 10, 0.52), rgba(22, 16, 10, 0.52)) !important; }
.card, .rd-card, .lib-card, .peek .tile, .rd-list li > button { box-shadow: none !important; }
.hero h1, .hero p, .hero .eyebrow, .lib-card h2, .lib-card p, .lib-card .eyebrow, .lib-go, .lr, .peek-n { text-shadow: none !important; }
html.lg-refract .lg-r { -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(1.2) !important; backdrop-filter: blur(var(--lg-blur)) saturate(1.2) !important; }
/* glass is kept only on the top bar and the philosophy pane; elsewhere a clear hairline frame */
.lg:not(.nav):not(.nav *):not(.phil-copy):not(.menu):not(.tabs):not(.letters) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: transparent !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 32%, transparent) !important; }
.hero .btn.lg { background: transparent !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7) !important; text-shadow: none; letter-spacing: 0.04em; }
.lib-door .lr { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: transparent !important; box-shadow: none !important; border-bottom: 1px solid rgba(255, 234, 206, 0.22) !important; border-radius: 0 !important; }
.lib-door .lr::after { display: none !important; }
.lib-door .lib-reads { gap: 0; }
/* buttons: no pressing, no bouncing */
.lg.lg-press:hover, .lg.lg-press:active { transform: none !important; }
/* more air between the parts of the page */
.philosophy.phil-short { padding-block: clamp(88px, 10vw, 150px) !important; }
.works { padding-block: clamp(80px, 9vw, 130px) clamp(48px, 5vw, 80px) !important; }
.lib { padding-block: clamp(56px, 6vw, 96px) clamp(72px, 8vw, 120px) !important; }

/* ==== The homepage as layers of stone (Oct 2026) ====
   Each part is one screen high and sticks under the bar; the next one slides over it. A short pause (margin) lets each layer rest before the next arrives. */
.layers { --lh: calc(100svh - var(--navh, 64px)); margin-top: var(--navh, 64px); }
@supports not (height: 100svh) { .layers { --lh: calc(100vh - var(--navh, 64px)); } }
.layers > .layer { position: sticky; top: var(--navh, 64px); height: var(--lh); min-height: 500px; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; padding: 0; border: 0; background: var(--bg); color: var(--fg); box-shadow: 0 -1px 0 var(--line); isolation: isolate; }
.layers > .layer:not(:last-child) { margin-bottom: 28vh; }
.layers > .layer::before, .layers > .layer::after { display: none !important; }
.layers .wrap { width: 100%; max-width: 1320px; }
.layers h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; margin: 0; text-wrap: balance; color: var(--fg); }
.lay-label { display: block; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; margin-bottom: 4px; }
.lay-more { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: var(--fg); white-space: nowrap; transition: gap .4s ease; }
.lay-more:hover { gap: 20px; }
html[dir="ltr"] .lay-arr { transform: scaleX(-1); display: inline-block; }
.layers .shot { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--line); }
.layers .shot > .ph, .layers .shot > .hero-img { position: absolute !important; inset: 0 !important; transform: none !important; background-size: cover; background-position: center; }
.layers .shot > .hero-img::after { display: none !important; }
.lay-cap { border-top: 1px solid var(--line); background: var(--bg); }
.lay-cap .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 32px; padding-block: 22px 26px; }
.lay-cap h2 { font-size: clamp(26px, 2.9vw, 40px); line-height: 1.4; }
.lay-cap p { margin: 2px 0 0; color: var(--muted); font-size: 15px; max-width: 52ch; }
.layers .hero .lay-cap .wrap { align-items: baseline; }
.layers .hero .lay-cap b { font-weight: 400; font-size: 15px; color: var(--fg); }
@media (max-width: 700px) { .lay-cap .wrap { grid-template-columns: 1fr; padding-block: 16px 20px; } .lay-cap .lay-more { justify-self: start; } }

/* the line */
.layers > .lay-line { justify-content: center; }
.lay-line .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.lay-line .phil-line { font-size: clamp(34px, 4.6vw, 68px) !important; line-height: 1.45 !important; }
.lay-line .phil-line em { font-style: normal; color: var(--fg); }
.lay-side { color: var(--muted); max-width: 380px; }
.lay-side p { margin: 0; }
@media (max-width: 800px) { .lay-line .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* the house: a photo above, a row of pieces below */
.lay-house .shot { flex: 0 0 38%; }
.lay-body { flex: 1; min-height: 0; display: flex; }
.lay-body .wrap { display: flex; flex-direction: column; min-height: 0; }
.lay-top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 18px 12px; }
.lay-top h2 { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.4; }
.lay-strip { flex: 1; min-height: 0; display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 18px; scrollbar-width: none; }
.lay-strip::-webkit-scrollbar { display: none; }
.lay-piece { flex: 0 0 auto; height: 100%; display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; background: none; cursor: pointer; color: var(--fg); font: inherit; text-align: left; }
.lay-piece .tile { flex: 1; min-height: 0; aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: var(--line); }
.lay-piece .tile .ph { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.lay-piece:hover .tile .ph { transform: scale(1.035); }
.lay-piece .row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.lay-piece b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 17px; line-height: 1.4; }
.lay-piece .pr { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lay-nav { display: flex; gap: 6px; }
.lay-nav button { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; font: inherit; }
.lay-nav button:hover { border-color: var(--fg); }
@media (max-width: 700px) { .lay-house .shot { flex-basis: 32%; } .lay-nav { display: none; } .lay-piece b { font-size: 15.5px; } }

/* the craft */
.layers > .lay-craft { background: var(--bg-alt, var(--bg)); }
.lay-craft .wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 110px); align-items: center; padding-block: clamp(22px, 4vw, 56px); }
.lay-craft .frame { position: relative; height: 100%; min-height: 0; overflow: hidden; background: var(--line); }
.lay-craft .frame .ph { position: absolute; inset: 0; background-size: cover; background-position: center; }
.lay-craft .copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.lay-craft h2 { font-size: clamp(25px, 2.7vw, 40px); line-height: 1.5; }
.lay-craft p { margin: 0; color: var(--muted); max-width: 46ch; }
.lay-craft dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; margin: 0; width: 100%; max-width: 420px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.lay-craft dt { color: var(--muted); }
.lay-craft dd { margin: 0; }
@media (max-width: 800px) {
  .lay-craft .wrap { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 18px; padding-block: 14px 20px; }
  .lay-craft dl { display: none; }
  .lay-craft p { font-size: 14.5px; }
}

/* the library */
.lay-lib .wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-block: clamp(20px, 3vw, 44px); }
.lay-lib .lay-top { padding-block: 0 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.lay-reads { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.lay-read { display: flex; flex-direction: column; gap: 10px; min-height: 0; border: 0; padding: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.lay-read .tile { flex: 1; min-height: 110px; position: relative; overflow: hidden; background: var(--line); }
.lay-read .tile .ph { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.lay-read:hover .tile .ph { transform: scale(1.035); }
.lay-read b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 21px; line-height: 1.45; }
.lay-read small { font-size: 12.5px; color: var(--muted); }
.lay-read span.l { font-size: 14px; color: var(--muted); }
@media (max-width: 800px) {
  .lay-reads { display: flex; overflow-x: auto; scrollbar-width: none; }
  .lay-reads::-webkit-scrollbar { display: none; }
  .lay-read { flex: 0 0 82%; }
}
.lay-letters { position: relative; z-index: 9; background: var(--bg); padding-block: clamp(40px, 6vw, 80px); }
.lay-letters .letters-slot { margin-top: 0; }
main > .contact { position: relative; z-index: 9; }
/* very short screens (a phone turned sideways): the layers flow normally */
@media (max-height: 560px) {
  .layers > .layer { position: relative; top: auto; height: auto; min-height: 0; }
  .layers > .layer:not(:last-child) { margin-bottom: 0; }
  .layers .shot { flex: none; height: 70vh; }
  .lay-strip { height: 320px; flex: none; }
  .lay-craft .frame { height: 50vh; }
}
/* the first screen says what Kalokathia is, with two clear ways in */
.lay-intro .wrap { align-items: end; gap: 16px 40px; padding-block: 22px 26px; }
.lay-intro h1 { margin: 2px 0 0; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 31px); line-height: 1.55; max-width: 34ch; color: var(--fg); text-wrap: balance; }
.lay-acts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.lay-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; background: var(--fg); color: var(--bg); font-size: 14px; border-radius: 2px; white-space: nowrap; transition: opacity .3s; }
.lay-btn:hover { opacity: .86; }
.layers .hero .shot { flex: 1; }
@media (max-width: 700px) { .lay-intro h1 { font-size: 20px; } .lay-acts { gap: 16px; } .lay-btn { min-height: 44px; padding: 0 20px; } }
.lay-label [data-lay-meta] { color: var(--muted); }
.layers .hero .lay-intro h1 { font-size: clamp(21px, 2.1vw, 30px) !important; font-weight: 400 !important; line-height: 1.6 !important; letter-spacing: 0 !important; color: var(--fg) !important; text-shadow: none !important; }
@media (max-width: 700px) { .layers .hero .lay-intro h1 { font-size: 19px !important; } }

/* ==== Homepage, second form (Oct 2026): what Kalokathia is, then the pieces themselves, part by part. Plain scrolling. ==== */
.hm-page { margin-top: var(--navh, 64px); }
.hm-hero { position: relative; min-height: 0 !important; display: block !important; overflow: visible !important; color: var(--fg) !important; }
.hm-hero .shot { position: relative; height: min(66vh, 720px); min-height: 300px; overflow: hidden; background: var(--line); }
.hm-hero .shot > .hero-img { position: absolute !important; inset: 0 !important; transform: none !important; background-size: cover; background-position: center; }
.hm-hero .shot > .hero-img::after { display: none !important; }
.hm-hero .lay-cap { border-top: 0; }
@media (max-width: 700px) { .hm-hero .shot { height: 52vh; } }
.hm-sec { padding-block: clamp(56px, 7vw, 104px) 0; background: var(--bg); }
.hm-sec .wrap { max-width: 1320px; }
.hm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.hm-head h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: clamp(25px, 2.6vw, 36px); line-height: 1.4; margin: 0; color: var(--fg); text-wrap: balance; }
.hm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px clamp(14px, 1.6vw, 24px); }
.hm-card { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.hm-card .tile { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); margin-bottom: 8px; }
.hm-card .tile .ph { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.hm-card:hover .tile .ph { transform: scale(1.035); }
.hm-card .nm { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 18px; line-height: 1.45; }
.hm-card .pr { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hm-empty { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } .hm-card .nm { font-size: 16px; } .hm-head { align-items: flex-start; flex-direction: column; gap: 10px; } }
.hm-craft .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 100px); align-items: center; }
.hm-craft .frame { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--line); }
.hm-craft .frame .ph { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hm-craft .copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hm-craft h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.5; margin: 0; color: var(--fg); }
.hm-craft p { margin: 0; color: var(--muted); max-width: 46ch; }
.hm-craft dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; margin: 0; width: 100%; max-width: 420px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.hm-craft dt { color: var(--muted); } .hm-craft dd { margin: 0; }
@media (max-width: 800px) { .hm-craft .wrap { grid-template-columns: 1fr; } }
#library .lay-reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
#library .lay-read .tile { flex: none; aspect-ratio: 3 / 2; }
@media (max-width: 800px) { #library .lay-reads { grid-template-columns: 1fr; gap: 36px; } }
.hm-phil { padding-block: clamp(80px, 10vw, 150px); }
.hm-phil .wrap { display: flex; flex-direction: column; gap: 22px; }
.hm-phil .phil-line { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif) !important; font-weight: 400 !important; font-size: clamp(30px, 4vw, 58px) !important; line-height: 1.5 !important; margin: 0; color: var(--fg); max-width: 22ch; }
.hm-phil .phil-line em { font-style: normal; }
.hm-phil p { margin: 0; color: var(--muted); max-width: 52ch; }
.lay-letters { padding-block: clamp(56px, 7vw, 96px); }

/* ==== White as the ground of the day mode ==== */
:root[data-theme="light"] {
  --bg: #FFFFFF; --bg-alt: #F6F4F0; --line: rgba(28, 24, 20, 0.12); --nav-bg: rgba(255, 255, 255, 0.96);
  --g-page: linear-gradient(#FFFFFF, #FFFFFF); --g-card: linear-gradient(#FFFFFF, #FFFFFF);
  --rdg-tint: linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)); --rdg-read: linear-gradient(#FFFFFF, #FFFFFF);
}
:root[data-theme="light"] body { background: #FFFFFF; }
:root[data-theme="light"] .nav { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ==== Words without boxes: tabs, filters, labels and small buttons are plain words; the chosen one is underlined ==== */
.tabs.lg, .tabs.lg.lg-r { background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 0 !important; gap: 22px !important; border-radius: 0 !important; }
.tabs.lg .tab, .tab { background: none !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 0 4px !important; min-height: 36px; border-bottom: 1px solid transparent !important; opacity: .62; }
.tabs.lg .tab[aria-pressed="true"], .tab[aria-pressed="true"] { opacity: 1; border-bottom-color: currentColor !important; }
.coll-chip, .door-chip { background: none !important; box-shadow: none !important; border: 0 !important; border-bottom: 1px solid transparent !important; border-radius: 0 !important; padding: 0 0 3px !important; min-height: 32px; opacity: .62; }
.coll-chip[aria-pressed="true"] { opacity: 1; border-bottom-color: currentColor !important; }
.coll-chips { gap: 20px !important; }
.cd-pill, .nav-essays, .hero-essays { background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 0 3px !important; border-bottom: 1px solid currentColor !important; color: var(--fg) !important; filter: none !important; transform: none !important; height: auto !important; min-height: 0 !important; }
.cd-pill .ne-mark, .nav-essays .ne-mark { fill: currentColor !important; opacity: .8; }
.card-kind, .card-state, .card-ex { background: none !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; color: #FFFFFF; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); font-size: 12px; }
.card-count { background: none !important; padding: 0 !important; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.music-nav { box-shadow: none !important; }
.music-nav::before, .music-nav::after { display: none !important; }

.hm-hero .lay-intro h1 { font-size: clamp(21px, 2.1vw, 30px) !important; font-weight: 400 !important; line-height: 1.6 !important; letter-spacing: 0 !important; color: var(--fg) !important; text-shadow: none !important; margin: 2px 0 0 !important; max-width: 34ch; }
@media (max-width: 700px) { .hm-hero .lay-intro h1 { font-size: 19px !important; } }
/* the letters: no frame around them, a hairline above */
.lay-letters .letters, .lay-letters .letters.lg { background: none !important; box-shadow: none !important; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; padding-inline: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.letters .lt-langs { background: none !important; box-shadow: none !important; }
.letters .lt-langs button { background: none !important; color: var(--muted) !important; border-bottom: 1px solid transparent !important; border-radius: 0 !important; }
.letters .lt-langs button[aria-checked="true"] { color: var(--fg) !important; border-bottom-color: currentColor !important; }
.letters input { background: none !important; box-shadow: none !important; border: 0 !important; border-bottom: 1px solid var(--fg) !important; border-radius: 0 !important; }

/* ==== Top: the bar, then a row with the parts of the house; the words sit above the first photo ==== */
.nav .nav-links { display: none !important; }
.nav-row { display: flex; justify-content: center; gap: clamp(22px, 3vw, 44px); padding-block: 10px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.nav-row a { color: var(--fg); text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; white-space: nowrap; transition: border-color .3s; }
.nav-row a:hover { border-bottom-color: currentColor; }
@media (max-width: 720px) {
  .nav-row { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 22px; padding-inline: 2px; font-size: 13.5px; margin-inline: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .nav-row::-webkit-scrollbar { display: none; }
}
.hm-top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-block: clamp(22px, 3vw, 36px); }
.hm-top h1 { margin: 0; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif) !important; font-weight: 400 !important; font-size: clamp(24px, 2.6vw, 38px) !important; line-height: 1.4 !important; color: var(--fg) !important; text-shadow: none !important; }
.hm-hero .shot { height: min(70vh, 760px); }
@media (max-width: 700px) { .hm-top .wrap { flex-direction: column; align-items: flex-start; } .hm-hero .shot { height: 56vh; } }
.hm-head { align-items: baseline; }
.hm-head h2 { font-size: clamp(24px, 2.4vw, 34px); }
@media (max-width: 900px) { .hm-head { flex-direction: row !important; align-items: baseline !important; } }

/* ==== The bar: the mark in the middle, the menu on one side, the language on the other ==== */
.nav .nav-inner { position: relative; }
.nav .brand { position: absolute; inset-inline-start: 50%; translate: 50% 0; margin: 0 !important; }
html[dir="ltr"] .nav .brand { translate: -50% 0; }
.nav .nav-right { flex: 1; display: flex; justify-content: flex-start; }
.nav .tools { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.nav .tools .nav-essays, .nav .tools .music-nav, .nav .tools .theme-btn, .nav .tools .list-btn { display: none !important; }
.nav .tools .menu-btn { order: -1; }
.nav .tools .lang-btn { order: 2; }
/* the menu: the rest of the house, in plain words */
.menu.lg { background: var(--bg) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .35) !important; border: 1px solid var(--line); border-radius: 0 !important; width: min(300px, calc(100vw - 32px)) !important; padding: 14px 8px !important; }
.menu a { border-radius: 0 !important; font-size: 15px; }
.menu a::after { display: none !important; }
.menu-extra { display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.mx-contact { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--muted); }
.mx-contact span[dir="ltr"] { text-align: right; }
html[dir="ltr"] .mx-contact span[dir="ltr"] { text-align: left; }
.mx-set { display: flex; gap: 18px; }
.mx-set button { border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; color: var(--fg); cursor: pointer; }
/* phones: the row of parts steps aside while scrolling down */
@media (max-width: 720px) { .nav.row-off .nav-row { display: none; } }

/* ==== Fewer underlines: plain words; only the chosen tab or filter keeps a line ==== */
.nav-row a, .nav-row a:hover { border-bottom: 0 !important; }
.nav-row a:hover { opacity: .65; }
.lay-more { border-bottom: 0 !important; padding-bottom: 0 !important; }
.lay-more:hover { opacity: .65; }
.cd-pill, .nav-essays, .hero-essays { border-bottom: 0 !important; padding-bottom: 0 !important; }

/* ==== Homepage: one row of four for each part; on phones the row slides sideways ==== */
@media (max-width: 900px) {
  .hm-grid { display: flex !important; overflow-x: auto; gap: 12px !important; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .hm-grid::-webkit-scrollbar { display: none; }
  .hm-card { flex: 0 0 62%; scroll-snap-align: start; }
}

/* ==== Inside: the gallery is a white page with the same cards as the homepage ==== */
.gal.portfolio, .portfolio.gal { background: var(--bg) !important; }
.gal.portfolio::before, .portfolio::before { display: none !important; }
.portfolio .port-head h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif) !important; font-weight: 400 !important; font-size: clamp(28px, 3vw, 42px) !important; color: var(--fg) !important; }
.portfolio .door-line { display: none !important; }
.portfolio .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(14px, 1.6vw, 24px); }
@media (max-width: 900px) { .portfolio .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } }
.portfolio .card { aspect-ratio: auto !important; padding: 0 !important; justify-content: flex-start !important; gap: 4px !important; color: var(--fg) !important; overflow: visible !important; box-shadow: none !important; background: none !important; }
.portfolio .card .tile { position: relative !important; inset: auto !important; z-index: 0 !important; aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 8px; background: var(--line); }
.portfolio .card .tile::after { display: none !important; }
.portfolio .card .tile > div { scale: 1 !important; translate: none !important; transform: none !important; }
.portfolio .card:hover .tile > div { scale: 1.035 !important; }
.portfolio .card .cap, .portfolio .card .tag { translate: none !important; }
.portfolio .card .cap h3 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 18px; line-height: 1.45; color: var(--fg); margin: 0; }
.portfolio .card .cap svg { display: none; }
.portfolio .card .tag { display: none !important; }
.portfolio .card .card-pr { font-size: 13px; color: var(--muted); }
.portfolio .card .card-badges { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; }
.portfolio .card .card-state, .portfolio .card .card-kind { display: none !important; }
.portfolio .card-count { display: none !important; }

/* ==== The piece: the photo on a quiet ground, the details on a light, slightly clear panel ==== */
.wv { background: var(--bg) !important; }
.wv .wv-slide { background-color: var(--bg-alt) !important; }
.wv .wv-slide::before, .wv .wv-slide::after { display: none !important; }
.wv-sheet { background: color-mix(in srgb, var(--bg) 90%, transparent) !important; color: var(--fg) !important; -webkit-backdrop-filter: blur(16px) !important; backdrop-filter: blur(16px) !important; box-shadow: 0 0 0 1px var(--line) !important; border-radius: 0 !important; }
.wv-head h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif) !important; font-weight: 400 !important; color: var(--fg) !important; }
.wv-eyebrow, .wv-tag { display: none !important; }
.wv-keep { display: none !important; }
.wv[data-part="designs"] .wv-list { display: none !important; }
.wv-facts dt { color: var(--muted) !important; }
.wv-ask { background: var(--fg) !important; color: var(--bg) !important; border-radius: 2px !important; box-shadow: none !important; }
.wv-ask2 { background: none !important; color: var(--fg) !important; box-shadow: inset 0 0 0 1px var(--line) !important; border-radius: 2px !important; }
.wv-x, .wv .gl-x { color: var(--fg) !important; background: color-mix(in srgb, var(--bg) 85%, transparent) !important; }

/* ==== Foot of the page: white, in columns ==== */
.contact { background: var(--bg) !important; color: var(--fg) !important; border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px) 28px !important; }
.contact .contact-head h2 { font-size: clamp(24px, 2.4vw, 32px) !important; color: var(--fg) !important; }
.contact .save-ct { color: var(--fg) !important; background: none !important; box-shadow: none !important; border: 0 !important; }
.contact .info { border-top: 1px solid var(--line) !important; margin-top: 32px !important; }
.contact .info dt { color: var(--muted) !important; letter-spacing: 0 !important; text-transform: none !important; font-size: 12.5px !important; }
.contact .info dd, .contact .info dd a { color: var(--fg) !important; }
.contact .foot { border-top: 1px solid var(--line) !important; color: var(--muted) !important; }
.contact .foot .brand, .contact .foot-login { color: var(--fg) !important; }
.contact .cp { color: var(--muted) !important; }
.nav .brand { position: absolute !important; left: 50% !important; right: auto !important; top: 50%; translate: none !important; transform: translate(-50%, -50%) !important; margin: 0 !important; z-index: 1; }
.nav .nav-inner { min-height: 60px; }
@media (max-width: 720px) { .nav .brand > span { font-size: 14px !important; letter-spacing: .28em !important; } .nav .brand .mark { width: 22px !important; } }

/* ===== Prices and reservations: an empty price says nothing; collectibles and designs carry one quiet line under the button ===== */
.portfolio .card .card-pr:empty { display: none; }
.wv-acts-top { flex-wrap: wrap; }
.wv-acts-top .wv-res { flex: 1 0 100%; margin: 4px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ===== Inside the parts: each shows its pieces its own way =====
   all: the plain grid · designs: a zigzag with a panel on hover · collectibles: one piece to a screen · house: a grid with a wide photo after every four */
.portfolio .card .card-info { display: contents; }
.portfolio .card .card-n, .portfolio .card .card-d, .portfolio .card .card-ed, .portfolio .card .card-st, .portfolio .card .card-go { display: none; }
.portfolio .card .card-meta { display: contents; }
.portfolio .card .tile .ph-alt { position: absolute; inset: 0; z-index: 1; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.portfolio .card .tile .ph-alt.pin { opacity: 1; }

/* designs: large photos that alternate sides */
.portfolio[data-view="designs"] .wrap { max-width: 1320px; }
.portfolio[data-view="designs"] .grid { display: flex !important; flex-direction: column; gap: clamp(80px, 11vw, 168px); padding-block: 28px 60px; }
.portfolio[data-view="designs"] .card { width: min(64%, 860px); margin-inline: 0 auto; gap: 0 !important; }
.portfolio[data-view="designs"] .card.z-alt { margin-inline: auto 0; }
.portfolio[data-view="designs"] .card .tile { aspect-ratio: 3 / 2; margin: 0 !important; }
.portfolio[data-view="designs"] .card .card-info { display: flex; flex-direction: column; gap: 12px; }
.portfolio[data-view="designs"] .card .cap h3 { font-size: clamp(24px, 2.2vw, 30px); }
.portfolio[data-view="designs"] .card .card-d { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--muted); }
.portfolio[data-view="designs"] .card .card-d:empty { display: none; }
.portfolio[data-view="designs"] .card .card-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; letter-spacing: .04em; color: var(--accent); }
.portfolio[data-view="designs"] .card .card-go::after { content: ""; width: 26px; height: 1px; background: currentColor; transition: width .4s ease; }
.portfolio[data-view="designs"] .card:hover .card-go::after { width: 40px; }
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  /* the panel waits beside the photo and slides out when the pointer comes */
  .portfolio[data-view="designs"] .card .card-info { position: absolute; top: 50%; inset-inline-start: calc(100% - 48px); width: min(360px, 50%); padding: 34px 34px 30px; background: var(--bg); box-shadow: 0 24px 60px -24px rgba(30, 24, 18, .28); opacity: 0; pointer-events: none; z-index: 3; transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1); transform: translate(var(--pin, 0), -50%); }
  .portfolio[data-view="designs"] .card.z-alt .card-info { inset-inline-start: auto; inset-inline-end: calc(100% - 48px); }
  html[dir="rtl"] .portfolio[data-view="designs"] .card .card-info { --pin: 28px; }
  html[dir="rtl"] .portfolio[data-view="designs"] .card.z-alt .card-info { --pin: -28px; }
  html[dir="ltr"] .portfolio[data-view="designs"] .card .card-info { --pin: -28px; }
  html[dir="ltr"] .portfolio[data-view="designs"] .card.z-alt .card-info { --pin: 28px; }
  .portfolio[data-view="designs"] .card:hover .card-info, .portfolio[data-view="designs"] .card:focus-visible .card-info { --pin: 0px; opacity: 1; pointer-events: auto; }
  .portfolio[data-view="designs"] .card:hover .tile > div { scale: 1.02 !important; }
}
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  /* no pointer on a phone: the words sit under each photo, and the photos still alternate */
  .portfolio[data-view="designs"] .grid { gap: 64px; }
  .portfolio[data-view="designs"] .card { width: 88%; }
  .portfolio[data-view="designs"] .card .card-info { padding: 18px 2px 0; gap: 8px; }
  .portfolio[data-view="designs"] .card .cap h3 { font-size: 23px; }
  .portfolio[data-view="designs"] .card .card-d { -webkit-line-clamp: 3; font-size: 14px; }
}

/* collectibles: a large photo and words first, then the pieces in a calm grid of three */
.portfolio .gal-intro { display: none; }
.portfolio[data-view="objects"] .gal-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin: 8px 0 56px; }
.portfolio[data-view="objects"] .gal-intro .gi-img { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.portfolio[data-view="objects"] .gal-intro p { margin: 0; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 2; color: var(--fg); }
.portfolio[data-view="objects"] .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 48px clamp(18px, 2vw, 32px) !important; }
.portfolio[data-view="objects"] .card .card-meta { display: flex; flex-wrap: wrap; gap: 0; font-size: 13px; color: var(--muted); }
.portfolio[data-view="objects"] .card .card-meta > * { display: inline; font-size: 13px !important; }
.portfolio[data-view="objects"] .card .card-meta > :empty { display: none; }
.portfolio[data-view="objects"] .card .card-meta > :not(:empty) ~ :not(:empty)::before { content: "·"; margin-inline: 8px; }
.portfolio[data-view="objects"] .card .card-badges { display: none !important; }
@media (max-width: 900px) { .portfolio[data-view="objects"] .gal-intro { grid-template-columns: 1fr; margin-bottom: 36px; } .portfolio[data-view="objects"] .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 30px 12px !important; } }

/* the house: the grid, a wide photo of a piece in its place after every four, and the second photo on hover */
.portfolio[data-view="house"] .grid { grid-auto-flow: row dense; container-type: inline-size; }
.portfolio[data-view="house"] .card.wide { grid-column: span 2; }
/* as tall as the photos beside it, so the row stays one line */
.portfolio[data-view="house"] .card.wide .tile { aspect-ratio: auto; height: calc((100cqw - 3 * clamp(14px, 1.6vw, 24px)) / 4 * 1.25); }
@media (hover: hover) and (pointer: fine) { .portfolio[data-view="house"] .card:hover .tile .ph-alt { opacity: 1; } }
@media (max-width: 900px) { .portfolio[data-view="house"] .card.wide .tile { height: calc((100cqw - 12px) / 2 * 1.25); } }
.portfolio.gal::after { display: none !important; }
.portfolio[data-view="objects"] .card .card-badges { display: none !important; }
/* the collections are gone from the edit mode: no collection filters inside the gallery */
.portfolio .coll-chips { display: none !important; }
@media (max-width: 900px), (hover: none), (pointer: coarse) { .portfolio[data-view="designs"] .card { width: 80%; } }
/* a piece of the house ends with a few others */
.wv-sim { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.wv-sim-h { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.wv-sim-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.wv-sim-c { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; text-align: left; color: var(--fg); font: inherit; cursor: pointer; }
.wv-sim-c .ph { display: block; aspect-ratio: 4 / 5; background-size: cover; background-position: center; margin-bottom: 6px; }
.wv-sim-c .n { font-size: 14px; } .wv-sim-c .p { font-size: 12.5px; color: var(--muted); }

/* ===== Real pages: a section or a piece on a page of its own, under the bar ===== */
html.as-page .hm-page, html.as-page .lay-letters { display: none !important; }
.nav-row a.on, .nav-links a.on { color: var(--fg) !important; border-bottom-color: currentColor !important; }
@media (max-width: 420px) { .nav-row { gap: 15px !important; font-size: 13px !important; } }
html.page-sec .portfolio.gal { position: relative !important; inset: auto !important; opacity: 1 !important; transform: none !important; overflow: visible !important; z-index: auto !important; contain: none !important; padding-top: calc(var(--page-top, 96px) + 8px) !important; min-height: 70vh; }
html.page-sec .portfolio .gal-bar, html.page-sec .portfolio .doors { display: none !important; }
html.page-sec .portfolio .port-head { margin-top: 18px; }
html.page-piece .wv { top: var(--page-top, 96px) !important; transition: none !important; }
html.page-piece .wv .wv-x, html.page-piece .wv .gl-x, html.page-piece .wv-grip { display: none !important; }
html.page-piece body { overflow: hidden; }

/* ===== A piece of بيت كالوكاثيا: a product page ===== */
.wv[data-part="house"] .wv-eyebrow { display: block !important; font-size: 11.5px; letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }
.wv[data-part="house"] .wv-acts-top .wv-pr { flex: 1 0 100%; font-size: 21px; color: var(--fg); margin: -2px 0 2px; }
.wv[data-part="house"] .wv-acts-top .wv-dl { flex: 1 0 100%; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.wv[data-part="house"] .wv-acc { border-top: 1px solid var(--line); }
.wv[data-part="house"] .wv-acc:last-of-type { border-bottom: 1px solid var(--line); }
.wv[data-part="house"] .wv-acc summary { list-style: none; cursor: pointer; padding: 16px 0; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; }
.wv[data-part="house"] .wv-acc summary::-webkit-details-marker { display: none; }
.wv[data-part="house"] .wv-acc summary::after { content: "+"; font-size: 18px; color: var(--muted); transition: transform .3s ease; }
.wv[data-part="house"] .wv-acc[open] summary::after { transform: rotate(45deg); }
.wv[data-part="house"] .wv-acc-b { padding: 0 0 18px; }
.wv[data-part="house"] .wv-acc-b p { margin: 0 0 10px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.wv[data-part="house"] .wv-acc-b .wv-lede { color: var(--fg); }
.wv[data-part="house"] .wv-acc .wv-facts { margin: 0; }

/* ===== The homepage: few photos, more words, each photo its own way ===== */
.hp { padding-bottom: 20px; }
.hp .hp-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 13px 26px; background: var(--fg); color: var(--bg); font-size: 14px; letter-spacing: .02em; text-decoration: none; }
.hp .hp-btn::after { content: "←"; font-size: 13px; }
html[dir="ltr"] .hp .hp-btn::after { content: "→"; }
.hp h1, .hp h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; color: var(--fg); margin: 0 0 14px; }
.hp h2 { font-size: clamp(28px, 2.8vw, 40px); }
.hp .hp-text p, .hp-veil-text p { font-size: clamp(16px, 1.25vw, 18.5px); line-height: 2; color: var(--fg); margin: 0; max-width: 62ch; }
/* 1. the season: half of the photo veiled, the words on the veil */
.hp-story { padding: 0; }
.hp-veil { position: relative; min-height: min(86svh, 820px); background-size: cover; background-position: center; display: flex; }
.hp-veil::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 50%; -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1); background: color-mix(in srgb, var(--bg) 62%, transparent); }
.hp-veil-text { position: relative; width: 50%; padding: clamp(32px, 6vw, 96px); align-self: center; }
.hp-veil-text small { display: block; font-size: 12px; letter-spacing: .2em; color: var(--muted); margin-bottom: 14px; }
.hp-veil-text h1 { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.2; }
/* 2. the words about the house */
.hp-about { padding: clamp(72px, 10vw, 140px) 0; }
.hp-lead { margin: 0 auto; max-width: 34em; text-align: center; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: clamp(21px, 2vw, 29px); line-height: 1.9; color: var(--fg); }
/* 3. the collectibles: a narrow band of the photo */
.hp-sec { padding: clamp(40px, 6vw, 90px) 0; }
.hp-band { height: clamp(160px, 22vw, 320px); background-size: cover; background-position: center 55%; margin-bottom: clamp(28px, 4vw, 52px); }
.hp-pieces { margin-top: 36px; }
/* 4. the designs: a photo that fades into the page */
.hp-fade { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hp-fade-img { aspect-ratio: 5 / 4; background-size: cover; background-position: center; -webkit-mask-image: linear-gradient(to left, #000 55%, transparent); mask-image: linear-gradient(to left, #000 55%, transparent); }
html[dir="ltr"] .hp-fade-img { -webkit-mask-image: linear-gradient(to right, #000 55%, transparent); mask-image: linear-gradient(to right, #000 55%, transparent); }
/* 5. the library: words first, one small photo */
#library.hp-lib .lay-reads { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; margin-top: 18px; }
.hp-lib .lay-read { display: grid !important; grid-template-columns: 1fr auto; align-items: center; gap: 6px 28px; padding: 26px 0 !important; border-top: 1px solid var(--line); text-align: left; background: none !important; }
.hp-lib .lay-read:last-child { border-bottom: 1px solid var(--line); }
#library.hp-lib .lay-read .tile { grid-row: 1 / span 3; grid-column: 2; width: 120px; aspect-ratio: 4 / 3; margin: 0 !important; }
.hp-lib .lay-read:not(:first-child) .tile { display: none; }
.hp-lib .lay-read b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); color: var(--fg); }
.hp-lib .lay-read small, .hp-lib .lay-read .l { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .hp-veil { min-height: 0; flex-direction: column; justify-content: flex-end; aspect-ratio: auto; }
  .hp-veil { padding-top: 62svh; }
  .hp-veil::before { width: 100%; inset-block: 62svh 0; }
  .hp-veil-text { width: 100%; padding: 28px 20px 36px; }
  .hp-fade { grid-template-columns: 1fr; }
  .hp-fade-img { -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
  .hp-lead { text-align: left; }
  .hp-lib .lay-read .tile { width: 84px; }
}
#library.hp-lib .lay-read > :not(.tile) { grid-column: 1; }

/* ===== The trail: home / part / piece ===== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs [aria-current] { color: var(--fg); }
.gal-crumbs { margin: 4px 0 18px; }
.portfolio .port-head { margin-top: 0; }
.wv .wv-eyebrow { display: block !important; margin-bottom: 10px; letter-spacing: 0 !important; font-size: 12px !important; color: var(--muted) !important; }
.wv .wv-eyebrow .crumbs [aria-current] { display: none; }
.wv .wv-eyebrow .crumbs i:last-of-type { display: none; }
.rd-crumbs { max-width: 1320px; margin: 0 auto; padding: 14px var(--gutter, 20px) 0; }

/* ===== Lines under words keep a small, clear gap; the custom design is a link ===== */
a, button, .lay-more, .crumbs a { text-underline-offset: .45em; text-decoration-thickness: 1px; }
.tab[aria-pressed="true"], .portfolio .doors .tab { padding-bottom: 7px !important; }
.portfolio .cd-pill { min-height: 0 !important; padding: 0 !important; margin: 4px 0 10px !important; gap: 8px; font-size: 14px !important; color: var(--fg) !important; text-decoration: underline !important; text-underline-offset: .45em !important; }
.portfolio .cd-pill .ne-mark { width: 18px !important; }
/* a layer over the site covers the top bar too, so nothing slides under it */
html:has(.gal.open) .nav, html:has(.rd.open) .nav, html:has(.wv.open) .nav { opacity: 0 !important; pointer-events: none !important; }

/* ===== A piece is a page: the whole photo, smaller, then the words, lines and buttons under it ===== */
.wv { overflow-y: auto !important; overscroll-behavior: contain; background: var(--bg) !important; }
.wv .wv-track { position: relative !important; inset: auto !important; left: auto !important; right: auto !important; width: min(100% - 32px, 980px) !important; height: min(60svh, 620px) !important; margin: 72px auto 0 !important; touch-action: pan-y !important; opacity: 1 !important; }
.wv .wv-slide::before { display: none !important; }
.wv .wv-slide .wv-img { background-image: var(--img, none) !important; background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; background-color: transparent !important; }
.wv .wv-dots { position: absolute !important; top: calc(72px + min(60svh, 620px) + 12px) !important; }
.wv .wv-dots i { background: color-mix(in srgb, var(--fg) 22%, transparent) !important; }
.wv .wv-dots i.on { background: var(--fg) !important; }
.wv .wv-sheet, .wv.pure .wv-sheet { position: relative !important; inset: auto !important; left: auto !important; right: auto !important; width: min(100% - 40px, 680px) !important; height: auto !important; max-height: none !important; margin: 44px auto 96px !important; transform: none !important; opacity: 1 !important; background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; border: 0 !important; display: block !important; }
.wv .wv-head { padding: 0 0 22px !important; cursor: auto !important; touch-action: auto !important; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.wv .wv-body { overflow: visible !important; padding: 0 !important; }
.wv .wv-grip, .wv .wv-more { display: none !important; }
.wv .wv-x { position: fixed !important; top: 14px !important; z-index: 6 !important; }
.wv .wv-head h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif) !important; }
.wv-places { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.wv-places a { color: var(--muted); text-decoration: none; }
.wv-places a:hover, .wv-places a[aria-current] { color: var(--fg); text-decoration: underline; }
@media (max-width: 900px) { .wv .wv-track { height: 48svh !important; margin-top: 60px !important; width: 100% !important; } .wv .wv-dots { top: calc(60px + 48svh + 10px) !important; } .wv .wv-sheet { margin-top: 36px !important; } }
.wv .wv-track, .wv .wv-slide, .wv .wv-slide .wv-img { background-color: transparent !important; }
.wv:not(.multi) .wv-dots { display: none !important; }
.wv .wv-dots { background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.wv .wv-x { display: inline-flex !important; inset-inline-end: 16px !important; inset-inline-start: auto !important; }
@media (max-width: 900px) { .wv .wv-track { height: 42svh !important; } .wv .wv-dots { top: calc(60px + 42svh + 10px) !important; } }

/* ===== A clear way back on every layer, phone and computer ===== */
.lyr-back { position: absolute; z-index: 9; top: 50%; translate: 0 -50%; inset-inline-start: max(16px, calc((100% - 1320px) / 2 + var(--gutter, 20px))); display: inline-flex; align-items: center; gap: 8px; padding: 8px 2px; border: 0; background: none; color: var(--fg); font: inherit; font-size: 14px; cursor: pointer; }
.lyr-back svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html[dir="ltr"] .lyr-back svg { transform: scaleX(-1); }
.gal-bar { position: sticky; }
.wv > .lyr-back { position: fixed; top: 14px; translate: none; inset-inline-start: 16px; z-index: 7; padding: 8px 14px; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.gal .gl-x, .wv .wv-x { display: none !important; }
html.lyr-on .nav { visibility: hidden !important; opacity: 0 !important; }
.tap-hint { display: none !important; }

/* =====================================================================
   PHONE FIRST — the homepage (kh), a section page (kp), a piece page (kq)
   One system: real pages under the bar, the contact at the end of each.
   ===================================================================== */
.kh, .kp { --gut: 20px; color: var(--fg); }
.kh-in, .kp-in { max-width: 760px; margin-inline: auto; padding-inline: var(--gut); }
.kh h2, .kp-h, .kq-t, .kq-rel h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; color: var(--fg); letter-spacing: 0; }
.kh h2 { font-size: 30px; line-height: 1.35; margin: 0 0 12px; }
.kh-p, .kp-intro { font-size: 16px; line-height: 1.95; color: var(--fg); margin: 0; }
.kh-sec { padding: 60px 0 0; }
.kh-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 26px; padding: 0 28px; background: var(--fg); color: var(--bg); font-size: 15px; text-decoration: none; border: 0; }
.kh-link, .kz-go, .kf-cap i { color: var(--fg); font-size: 15px; text-decoration: underline; text-underline-offset: .55em; text-decoration-thickness: 1px; }
.kh-link { display: inline-block; margin-top: 20px; }
html.as-page .hm-page { display: none !important; }

/* the season: a wide photo, its lower half veiled, the title on the veil */
.kh-story { padding: 0; }
.kh-story-img { position: relative; aspect-ratio: 16 / 11; background-size: cover; background-position: center; background-color: var(--line); }
.kh-veil { position: absolute; inset-inline: 0; bottom: 0; height: 50%; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gut); -webkit-backdrop-filter: blur(18px) saturate(1.05); backdrop-filter: blur(18px) saturate(1.05); background: color-mix(in srgb, var(--bg) 52%, transparent); }
.kh-veil small { font-size: 12px; letter-spacing: .18em; color: color-mix(in srgb, var(--fg) 70%, transparent); }
.kh-veil h1 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 40px; line-height: 1.2; margin: 4px 0 0; color: var(--fg); }
.kh-story .kh-in { padding-top: 22px; }

/* the words about the house */
.kh-about { margin-top: 52px; padding-top: 44px; border-top: 1px solid var(--line); }
.kh-lead { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 22px; line-height: 1.95; margin: 0; color: var(--fg); }

/* cards: the photo, then the words under it */
.kc { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--fg); text-decoration: none; }
.kc-img { display: block; aspect-ratio: 4 / 5; background-size: cover; background-position: center; background-color: var(--line); margin-bottom: 10px; }
.kc-n { font-size: 11.5px; letter-spacing: .2em; color: var(--muted); }
.kc-t { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 19px; line-height: 1.4; }
.kc-m { font-size: 13.5px; color: var(--muted); }
.kc-s { font-size: 12px; margin-top: 2px; color: var(--fg); }
/* a row to swipe */
.kh-row { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 26px var(--gut) 4px; scrollbar-width: none; }
.kh-row::-webkit-scrollbar { display: none; }
.kc-row { flex: 0 0 64%; scroll-snap-align: start; }
/* a grid of two */
.kh-grid, .kp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; margin-top: 26px; }
.kp-grid { padding-inline: var(--gut); max-width: 1100px; margin-inline: auto; margin-top: 30px; }

/* one piece, large, its caption on a white card over the photo */
.kh-feat { padding-top: 64px; }
.kf { display: block; color: var(--fg); text-decoration: none; }
.kf-img { display: block; aspect-ratio: 16 / 11; background-size: cover; background-position: center; }
.kf-cap { position: relative; display: flex; flex-direction: column; gap: 8px; margin: -44px var(--gut) 0; padding: 22px 20px 22px; background: var(--bg); box-shadow: 0 20px 44px -28px rgba(0, 0, 0, .4); }
.kf-cap small { font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.kf-cap b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 27px; line-height: 1.3; }
.kf-cap span { font-size: 14.5px; line-height: 1.9; color: var(--muted); }
.kf-cap i { font-style: normal; margin-top: 4px; }

/* the designs: a photo that fades into the page */
.kh-des { padding-top: 64px; }
.kh-fade { aspect-ratio: 4 / 3; background-size: cover; background-position: center; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); margin-bottom: -36px; }

/* the library: titles, one small photo */
#library.kh-lib .lay-reads { display: block !important; margin-top: 8px; }
#library.kh-lib .lay-read { display: grid !important; grid-template-columns: minmax(0, 1fr) 76px; gap: 4px 16px; width: 100%; padding: 20px 0 !important; border-bottom: 1px solid var(--line); text-align: left; }
#library.kh-lib .lay-read .tile { grid-column: 2; grid-row: 1 / span 3; width: 76px; aspect-ratio: 1; min-height: 0 !important; flex: none !important; }
#library.kh-lib .lay-read > :not(.tile) { grid-column: 1; }
#library.kh-lib .lay-read b { font-size: 20px; }

/* a section's page */
.kp { padding: calc(var(--page-top, 100px) + 6px) 0 64px; }
.kp .crumbs { margin: 4px 0 16px; }
.kp-h { font-size: 34px; line-height: 1.3; margin: 0 0 12px; }
.kp-empty { padding: 30px var(--gut); color: var(--muted); }
.kp-zz { display: flex; flex-direction: column; gap: 52px; margin: 36px auto 0; padding-inline: var(--gut); max-width: 1100px; }
.kz { display: flex; flex-direction: column; gap: 8px; width: 84%; margin-inline: 0 auto; color: var(--fg); text-decoration: none; }
.kz.alt { margin-inline: auto 0; }
.kz-img { display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; margin-bottom: 8px; }
.kz-t { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 23px; line-height: 1.35; }
.kz-d { font-size: 14.5px; line-height: 1.85; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kz-go { font-size: 14px; margin-top: 4px; }

/* a piece's page */
html.page-piece body { overflow: visible !important; }
.kq { padding-bottom: 40px; }
.kq-gal { position: relative; margin-top: 2px; }
.kq-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: color-mix(in srgb, var(--fg) 4%, var(--bg)); }
.kq-track::-webkit-scrollbar { display: none; }
.kq-track img { flex: 0 0 100%; width: 100%; height: auto; max-height: 70svh; object-fit: contain; scroll-snap-align: center; display: block; }
.kq-count { position: absolute; bottom: 10px; inset-inline-end: 12px; padding: 3px 9px; font-size: 12px; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.kq-info { padding-top: 24px; }
.kq-n { font-size: 12px; letter-spacing: .16em; color: var(--muted); margin: 0 0 6px; }
.kq-t { font-size: 32px; line-height: 1.3; margin: 0; }
.kq-pr { font-size: 19px; margin: 10px 0 0; }
.kq-st { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.kq-acts { display: grid; gap: 10px; margin-top: 22px; }
.kb { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border: 0; border-radius: 0; font: inherit; font-size: 15px; cursor: pointer; }
.kb-dark { background: var(--fg); color: var(--bg); }
.kb-line { background: none; color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.kq-res { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 12px 0 0; }
.kq-folds { margin-top: 30px; border-top: 1px solid var(--line); }
.kq-f { border-bottom: 1px solid var(--line); }
.kq-f summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 15.5px; cursor: pointer; }
.kq-f summary::-webkit-details-marker { display: none; }
.kq-f summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); transition: transform .3s ease; }
.kq-f[open] summary::after { transform: rotate(45deg); }
.kq-fb { padding-bottom: 20px; }
.kq-fb p { margin: 0 0 10px; font-size: 15px; line-height: 1.95; }
.kq-fb dl { margin: 0; }
.kq-fb dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid color-mix(in srgb, var(--fg) 8%, transparent); font-size: 14.5px; }
.kq-fb dl div:first-child { border-top: 0; }
.kq-fb dt { color: var(--muted); } .kq-fb dd { margin: 0; text-align: right; }
.kq-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.kq-pn a { display: flex; flex-direction: column; gap: 2px; color: var(--fg); text-decoration: none; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 18px; line-height: 1.35; }
.kq-pn a:last-child { text-align: right; }
.kq-pn small { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 12px; color: var(--muted); }
.kq-rel { margin-top: 50px; padding-top: 36px; border-top: 1px solid var(--line); }
.kq-rel h2 { font-size: 24px; margin: 0; }
.kq-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s ease; }
.kq-bar.on { transform: none; }
.kq-bar span { display: flex; flex-direction: column; min-width: 0; }
.kq-bar b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kq-bar small { font-size: 13px; color: var(--muted); }
.kq-bar .kb { flex: none; min-height: 46px; }
html:not(.page-piece) .kq-bar { display: none; }

/* the computer, until its own design: the same pages, wider */
@media (min-width: 900px) {
  .kh-in, .kp-in { max-width: 820px; }
  .kh h2 { font-size: 38px; }
  .kh-p, .kp-intro { font-size: 17.5px; }
  .kh-story-img, .kf-img { aspect-ratio: 21 / 9; }
  .kh-veil { padding-inline: max(var(--gut), calc((100% - 820px) / 2 + var(--gut))); }
  .kh-veil h1 { font-size: 58px; }
  .kh-lead { font-size: 27px; }
  .kh-btn { display: inline-flex; width: auto; padding: 0 36px; }
  .kh-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; max-width: 1180px; margin-inline: auto; gap: 40px 20px; }
  .kc-row { flex: none; }
  .kh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }
  .kp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
  .kf-cap { max-width: 560px; margin-inline: auto; }
  .kh-fade { max-width: 1180px; margin-inline: auto; aspect-ratio: 21 / 9; }
  .kz { width: 62%; }
  .kq-gal { max-width: 1180px; margin-inline: auto; }
  .kq-acts { grid-template-columns: 1fr 1fr; }
}

/* the season's photo whole and wide; the veil on its lower third so the fireplace stays clear */
.kh-story-img { aspect-ratio: 16 / 9; background-position: center 42%; }
.kh-veil { height: 38%; }
.kh-veil h1 { font-size: 34px; }
@media (min-width: 900px) { .kh-story-img { aspect-ratio: 21 / 9; } .kh-veil h1 { font-size: 54px; } }
.kp .crumbs { margin-top: 10px; }

/* the end of every page: the contact, plain and in order */
.contact { padding: 56px 0 30px !important; border-top: 1px solid var(--line); background: var(--bg) !important; }
.contact .wrap { max-width: 760px !important; padding-inline: 20px !important; }
.contact .contact-head { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; text-align: left !important; }
.contact .contact-head h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif) !important; font-weight: 400 !important; font-size: 30px !important; color: var(--fg) !important; margin: 0 !important; text-align: left !important; }
.contact .contact-head h2 em, .contact .contact-head h2 .kname { font-style: normal !important; color: var(--fg) !important; font-family: inherit !important; }
.contact .save-ct { font-size: 14px !important; color: var(--fg) !important; }
.contact .info { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; margin: 28px 0 0 !important; border-top: 1px solid var(--line); text-align: left !important; }
.contact .info > div { display: flex !important; flex-direction: column !important; gap: 4px !important; padding: 16px 0 !important; border-bottom: 1px solid var(--line); align-items: flex-start !important; text-align: left !important; }
.contact .info dt { font-size: 12.5px !important; color: var(--muted) !important; letter-spacing: 0 !important; }
.contact .info dd { margin: 0 !important; font-size: 16px !important; color: var(--fg) !important; text-align: left !important; }
.contact .info .cp-row { justify-content: flex-start !important; }
.contact .foot { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; margin-top: 30px !important; padding-top: 0 !important; border: 0 !important; text-align: left !important; font-size: 12.5px !important; color: var(--muted) !important; }
.contact .foot .brand { opacity: .85; }
.contact .foot-login { font-size: 13px !important; padding: 0 !important; color: var(--muted) !important; text-decoration: underline; text-underline-offset: .5em; }

/* the request forms: white, plain lines, one clear button */
.ox-panel { border-radius: 0 !important; background: var(--bg) !important; padding: 34px 20px calc(24px + env(safe-area-inset-bottom, 0px)) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.ox-th { border-radius: 0 !important; }
.ox-ti b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif) !important; font-size: 24px !important; }
.ox-mode { background: none !important; padding: 0 !important; gap: 0 !important; border-bottom: 1px solid var(--line); border-radius: 0 !important; }
.ox-mode button { border-radius: 0 !important; background: none !important; box-shadow: none !important; padding: 12px 0 !important; font-size: 15px !important; color: var(--muted) !important; border-bottom: 2px solid transparent !important; }
.ox-mode button[aria-selected="true"] { color: var(--fg) !important; border-bottom-color: var(--fg) !important; }
.ox-which button, .ox .chip { border-radius: 0 !important; }
.ox-info { background: none !important; border: 0 !important; border-inline-start: 2px solid var(--fg) !important; border-radius: 0 !important; padding: 2px 14px !important; margin: 20px 0 6px !important; font-size: 14px !important; line-height: 1.9 !important; color: var(--fg) !important; }
.ox .field label, .ox .field .flabel, .ox .flabel { font-size: 13.5px !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--fg) !important; }
.ox .field input, .ox .field textarea, .ox .field select, .ox .kc input, .ox input.ka-i, .ox textarea { background: none !important; border: 0 !important; border-bottom: 1px solid color-mix(in srgb, var(--fg) 25%, transparent) !important; border-radius: 0 !important; box-shadow: none !important; padding: 10px 0 !important; min-height: 44px !important; font-size: 16px !important; }
.ox .field textarea, .ox textarea { min-height: 80px !important; }
.ox .field input:focus, .ox .field textarea:focus, .ox .kc input:focus { border-bottom-color: var(--fg) !important; outline: none; }
.ox .rdg-foot { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; margin-top: 26px !important; }
.ox #oxSend, .ox .rdg-foot .btn { width: 100% !important; min-height: 54px !important; border-radius: 0 !important; background: var(--fg) !important; color: var(--bg) !important; box-shadow: none !important; justify-content: center !important; font-size: 15.5px !important; }
.ox .rdg-no { font-size: 12.5px !important; color: var(--muted) !important; }
.ox .ks-go { display: none !important; }
.ox .form-hint, .ox .ox-hint, .ox .ox-note { font-size: 13px !important; color: var(--muted) !important; }
.ox .chip, .ox-which button { background: none !important; border: 1px solid color-mix(in srgb, var(--fg) 22%, transparent) !important; box-shadow: none !important; color: var(--fg) !important; }
.ox .chip[aria-pressed="true"], .ox-which button[aria-pressed="true"] { background: var(--fg) !important; color: var(--bg) !important; border-color: var(--fg) !important; }

/* the season, again: a wide photo whose subject stands on one side; the other side is blurred, the blur fading out towards the middle, the title on it */
.kh-story-img { aspect-ratio: 16 / 9 !important; background-position: center !important; overflow: hidden; }
.kh-veil { display: none !important; }
.kh-blur { position: absolute; inset: 0; background-image: inherit; background-size: cover; background-position: center; filter: blur(16px) brightness(.82); transform: scale(1.08); -webkit-mask-image: linear-gradient(to right, #000 0%, #000 34%, transparent 64%); mask-image: linear-gradient(to right, #000 0%, #000 34%, transparent 64%); }
.kh-cap { position: absolute; top: 0; bottom: 0; left: 0; width: 56%; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gut); color: #FBF7F0; }
.kh-cap small { font-size: 12px; letter-spacing: .18em; color: rgba(251, 247, 240, .78); }
.kh-cap h1 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 36px; line-height: 1.2; margin: 4px 0 0; color: #FBF7F0; text-shadow: 0 1px 18px rgba(0, 0, 0, .25); }
@media (min-width: 900px) { .kh-story-img { aspect-ratio: 21 / 9 !important; } .kh-cap { width: 46%; padding-inline: max(var(--gut), calc((100vw - 1180px) / 2)); } .kh-cap h1 { font-size: 60px; } }
/* the steps of a request, folded on the piece page; the gift switch in the order form */
.kq-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 12px; }
.kq-steps li { counter-increment: st; display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 15px; line-height: 1.85; }
.kq-steps li::before { content: counter(st, arabic-indic); font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 17px; color: var(--muted); }
html[lang="en"] .kq-steps li::before { content: counter(st); }
.kq-more { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 0 !important; }
.kq-more a { color: var(--fg); font-size: 14px; text-decoration: underline; text-underline-offset: .5em; text-decoration-thickness: 1px; }
.ox-gq { display: flex; align-items: center; gap: 10px; margin: 18px 0 4px; font-size: 15px; cursor: pointer; }
.ox-gq input { width: 20px; height: 20px; accent-color: var(--fg); margin: 0; }

/* no trail of places anywhere: the top bar and the phone's own back are enough */
.crumbs, .gal-crumbs, .rd-crumbs { display: none !important; }
/* delivery under the order button: within Syria a clear longest time, outside it by country */
.kq-dl { margin: 16px 0 0; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.kq-dl div { display: flex; gap: 10px; }
.kq-dl dt { flex: 0 0 auto; color: var(--fg); min-width: 84px; }
.kq-dl dd { margin: 0; flex: 1; }

/* the collectibles on the homepage: one photo and its words side by side on a stone-coloured band (one under the other on the phone), then the other pieces, then the way in */
.kh-obj { padding-top: 60px; }
.kh-ic { display: grid; gap: 26px; padding: 40px var(--gut) 44px; background: color-mix(in srgb, #A08A68 22%, var(--bg)); }
.kh-ic-fig { margin: 0; }
.kh-ic-img { display: block; aspect-ratio: 1 / 1; background-size: cover; background-position: center; background-color: color-mix(in srgb, var(--bg) 70%, transparent); }
.kh-ic-fig figcaption { margin-top: 10px; font-size: 12.5px; line-height: 1.7; color: color-mix(in srgb, var(--fg) 62%, transparent); max-width: 70%; }
.kh-ic-fig figcaption a { color: inherit; text-decoration: none; }
.kh-ic-txt h2 { margin: 0 0 12px; }
.kh-ic-txt .kh-p { font-size: 15.5px; }
.kh-obj .kh-row { padding-top: 30px; }
@media (min-width: 900px) {
  .kh-ic { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 48px; max-width: 1180px; margin-inline: auto; padding: 56px 52px; }
  .kh-ic-txt { max-width: 460px; }
}
/* rows of pieces: a thin line between each piece */
.kh-row { gap: 0; padding-inline-start: max(6px, calc(var(--gut) - 14px)); }
.kh-row .kc-row { padding-inline: 14px; border-inline-start: 1px solid var(--line); }
.kh-row .kc-row:first-child { border-inline-start-color: transparent; }
/* grids of pieces: a line under the price */
.kp-grid .kc, .kh-grid .kc { padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--fg) 45%, transparent); }
/* a piece: the making time beside the price, a question under the button, the details open in a grey box */
.kq-prl { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 10px; }
.kq-prl .kq-pr { margin: 0; }
.kq-mk { font-size: 12.5px; color: var(--muted); text-align: right; }
.kq-ask { display: block; width: max-content; margin: 16px auto 0; font-size: 14px; color: var(--fg); text-decoration: underline; text-underline-offset: .55em; text-decoration-thickness: 1px; }
.kq-desc { margin-top: 26px; }
.kq-desc p { margin: 0; font-size: 15.5px; line-height: 2; }
.kq-box { margin-top: 24px; padding: 18px 18px 8px; background: color-mix(in srgb, var(--fg) 4%, var(--bg)); }
.kq-box h2 { margin: 0 0 8px; font-size: 19px; }
.kq-box dl { margin: 0; }
.kq-box dl div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 7px 0; font-size: 14px; line-height: 1.75; }
.kq-box dt { color: var(--muted); }
.kq-box dd { margin: 0; }
.kq-box + .kq-folds { margin-top: 26px; }
/* the top bar is solid: nothing that scrolls under it shows through */
.nav:not(.on-hero) { background: var(--bg) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* homepage rows: one row for each part, its last photo half under a white mist with the way in */
.kh-row .kc-go .kc-img { position: relative; overflow: hidden; }
.kc-fog { position: absolute; inset: 0; background-image: inherit; background-size: cover; background-position: center; filter: blur(14px); transform: scale(1.12);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 44%, transparent 72%); mask-image: linear-gradient(to top, #000 0%, #000 44%, transparent 72%); }
.kc-fog::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .66); }
html[data-theme="dark"] .kc-fog::after { background: rgba(20, 17, 14, .6); }
.kc-gt { position: absolute; inset-inline: 16px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 20px; line-height: 1.4; color: var(--fg); }
.kc-gt i { font-style: normal; font-family: var(--sans); font-size: 18px; width: max-content; padding-bottom: 4px; border-bottom: 1px solid var(--fg); }
.kh-row .kc-go { border-bottom: 0 !important; }
.kh-sec > .kh-row { padding-top: 26px; }
.kh-des > .kh-row { padding-top: 26px; }
/* the house opens on one large photo with its words on a card (as the collectibles did before) */
.kh-hf { margin-top: 28px; }
.kh-hf[hidden] { display: none; }
/* a page fades in when it opens: no jump, no fast scroll */
@keyframes kpIn { from { opacity: 0; } to { opacity: 1; } }
.kp-in-a { animation: kpIn .32s ease both; }
/* a request is a page of its own under the top bar (no sheet, no dark veil, nothing to drag) */
html.ox-on .nav { z-index: 90 !important; }
.ox { inset: 0 !important; display: block !important; background: var(--bg) !important; overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .28s ease !important; }
.ox[hidden] { display: none !important; }
.ox.open { opacity: 1; }
.ox-panel { width: 100% !important; max-width: 620px; max-height: none !important; overflow: visible !important; margin: 0 auto; transform: none !important; transition: none !important; box-shadow: none !important;
  padding: calc(var(--page-top, 112px) + 18px) var(--gut, 20px) calc(40px + env(safe-area-inset-bottom, 0px)) !important; }
.ox-grab { display: none !important; }
.ox-panel .ox-x { display: inline-block !important; position: static !important; width: auto !important; height: auto !important; padding: 0 !important; margin: 0 0 20px; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: .5em; text-decoration-thickness: 1px; }
.ox-pt { margin: 0 0 22px; font-size: 30px; line-height: 1.3; }
@media (min-width: 900px) { .ox-panel { padding-top: calc(var(--page-top, 112px) + 40px) !important; } }
@media (min-width: 900px) { .kh-hf { max-width: 1180px; margin-inline: auto; } .kh-hf .kf-img { aspect-ratio: 21 / 9; } }
button.kq-ask { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; cursor: pointer; }
.kq-ntf + .kq-ask { margin-top: 12px; }
.kq-st { line-height: 1.8; }
/* the white mist on the last photo of a row is upright: it covers the far side and fades towards the middle */
.kc-fog { -webkit-mask-image: linear-gradient(to left, #000 0%, #000 46%, transparent 76%); mask-image: linear-gradient(to left, #000 0%, #000 46%, transparent 76%); }
html[dir="rtl"] .kc-fog { -webkit-mask-image: linear-gradient(to right, #000 0%, #000 46%, transparent 76%); mask-image: linear-gradient(to right, #000 0%, #000 46%, transparent 76%); }
.kc-gt { inset-inline-start: auto; inset-inline-end: 14px; bottom: auto; top: 50%; transform: translateY(-50%); width: 46%; font-size: 18px; line-height: 1.45; }
/* the house opens on its own photo with its name and words on the card; the photo leads into the part */
.kh-hf { margin-top: 0; }
.kh-hf.no-img .kf-img { display: none; }
.kh-hf.no-img .kf-cap { margin-top: 0; box-shadow: none; padding-inline: 0; }
.kf-h { margin: 0; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 30px; line-height: 1.3; }
.kf-cap .kf-p { font-size: 15px; line-height: 1.95; color: var(--fg); }
/* between two pages the content is simply not drawn for a moment, so no scrolling is ever seen */
html.pg-swap main, html.pg-swap footer, html.pg-swap .kq-bar { visibility: hidden !important; }
.kp-in-a { animation: none !important; }
/* designs on the homepage: the name and words sit on the photo itself (no white fade); the photo leads into the part */
.kh-dz { position: relative; display: block; color: #fff; text-decoration: none; }
.kh-dz-img { position: relative; display: block; aspect-ratio: 4 / 5; background-size: cover; background-position: center; }
.kh-dz-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16, 12, 9, .66) 0%, rgba(16, 12, 9, .3) 40%, rgba(16, 12, 9, 0) 64%); }
.kh-dz-cap { position: absolute; inset-inline: var(--gut); bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.kh-dz-cap h2 { margin: 0; color: #fff; }
.kh-dz-p { font-size: 15px; line-height: 1.95; color: rgba(255, 255, 255, .92); }
.kh-des .kh-fade { display: none; }
@media (min-width: 900px) {
  .kh-dz { max-width: 1180px; margin-inline: auto; }
  .kh-dz-img { aspect-ratio: 21 / 9; }
  .kh-dz-cap { inset-inline: 52px auto; bottom: 44px; max-width: 520px; }
}
/* the way into the edit mode is not shown to visitors (it opens from kalokathia.com/#admin) */
.foot-login { display: none !important; }

/* the menu: a white page under the top bar, its words large, the ways to reach Kalokathia under them (no music, no night mode) */
.menu.lg { position: fixed !important; top: var(--menu-top, 64px) !important; inset-inline: 0 !important; right: 0 !important; left: 0 !important; bottom: 0 !important; width: auto !important; max-width: none !important;
  padding: 18px var(--gutter, 20px) calc(28px + env(safe-area-inset-bottom, 0px)) !important; border: 0 !important; border-top: 1px solid var(--line) !important; box-shadow: none !important; background: var(--bg) !important;
  overflow-y: auto; display: flex; flex-direction: column; animation: none !important; transform: none !important; opacity: 1 !important; }
.menu.lg[hidden] { display: none !important; }
.menu.lg > a { min-height: 0 !important; padding: 15px 0 !important; border-bottom: 1px solid var(--line); background: none !important; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif) !important; font-size: 23px !important; line-height: 1.4; color: var(--fg); text-shadow: none !important; }
.menu.lg > a:hover { background: none !important; text-decoration: underline; text-underline-offset: .45em; text-decoration-thickness: 1px; }
.menu.lg .menu-sep { display: none; }
.menu.lg .menu-extra { border-top: 0; margin-top: 18px; padding: 0; }
.menu.lg .mx-contact { gap: 6px; font-size: 14px; }
.menu.lg .mx-set, .theme-btn, #themeBtn, .music-nav, #musicNav, .music-fab, #musicBtn { display: none !important; }
@media (min-width: 900px) { .menu.lg { padding-inline: max(var(--gutter, 20px), calc((100vw - 1180px) / 2)) !important; } .menu.lg > a { max-width: 560px; } }

/* ===== The library, its articles and the questions are pages under the top bar (the window scrolls them; nothing slides, nothing is pulled closed) ===== */
html.rd-page main, html.rd-page > body > footer { display: none !important; }
html:has(.rd:not([hidden])), html:has(.rd:not([hidden])) body { overscroll-behavior-y: auto !important; }
html:has(.rd.open) .nav { opacity: 1 !important; pointer-events: auto !important; visibility: visible !important; }
.rd { position: static !important; inset: auto !important; z-index: auto !important; overflow: visible !important; opacity: 1 !important; transform: none !important; transition: none !important;
  min-height: 100vh; padding-top: var(--page-top, 112px); padding-bottom: 60px; background: var(--bg) !important; }
.rd[hidden] { display: none !important; }
.rd.lib-enter *, .rd * { animation: none !important; }
.rd-bar { position: static !important; display: block !important; max-width: 760px; margin: 0 auto; min-height: 0 !important; padding: 18px var(--gut, 20px) 0 !important; background: none !important; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; }
.rd-bar .rd-title, .rd-bar .rd-x { display: none !important; }
.rd-bar .rd-back { display: inline-block !important; width: auto !important; height: auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: .5em; text-decoration-thickness: 1px; }
.rd-bar .rd-back svg { display: none !important; }
.rd .rd-wrap { padding-inline: var(--gut, 20px); }
.rd .rd-head { padding-top: 20px !important; }
.rd .rd-head h1 { font-size: 34px; }
/* the byline: the link is copied from plain words */
.rd .rd-copy { padding: 0 !important; min-height: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; font-size: 13.5px; color: var(--fg); text-decoration: underline; text-underline-offset: .5em; text-decoration-thickness: 1px; cursor: pointer; }
.rd .rd-copy svg { display: none !important; }
.rd .rd-ask { display: inline-block; margin-top: 26px; color: var(--fg); text-decoration: underline; text-underline-offset: .55em; text-decoration-thickness: 1px; background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.rd .rd-ask svg { display: none; }
/* the library page: the chosen article (photo beside its words), filters as underlined words, then the list */
.lib-ft { display: grid; gap: 18px; width: 100%; margin: 26px 0 0; padding: 0 0 26px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); text-align: left; font: inherit; cursor: pointer; }
.lib-ft-img { display: block; aspect-ratio: 1 / 1; background-size: cover; background-position: center; background-color: color-mix(in srgb, #A08A68 22%, var(--bg)); }
.lib-ft-tx { display: flex; flex-direction: column; gap: 8px; }
.lib-ft-tx small { font-size: 12.5px; color: var(--muted); }
.lib-ft-tx b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 28px; line-height: 1.35; }
.lib-ft-tx span { font-size: 15px; line-height: 1.9; color: var(--muted); }
.lib-ft-tx i { font-style: normal; width: max-content; margin-top: 4px; font-size: 14.5px; text-decoration: underline; text-underline-offset: .55em; text-decoration-thickness: 1px; }
@media (min-width: 900px) { .lib-ft { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 40px; } }
.lib-fl { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 24px 0 4px; }
.lib-fl button { padding: 4px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: none; font: inherit; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.lib-fl button[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.rd .lib-all { display: block; }
.rd .lib-all .lay-read { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 4px 16px; width: 100%; padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); text-align: left; font: inherit; cursor: pointer; }
.rd .lib-all .lay-read[hidden] { display: none; }
.rd .lib-all .lay-read .tile { grid-column: 2; grid-row: 1 / span 3; width: 76px; aspect-ratio: 1; display: block; }
.rd .lib-all .lay-read .ph { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; background-color: var(--line); }
.rd .lib-all .lay-read > :not(.tile) { grid-column: 1; }
.rd .lib-all .lay-read small { font-size: 12px; color: var(--muted); }
.rd .lib-all .lay-read b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 20px; line-height: 1.4; }
.rd .lib-all .lay-read .l { font-size: 14px; color: var(--muted); line-height: 1.8; }
/* a stone's article: its nature and uses in a grey box with its texture; the pieces made of it at the end */
.rd-facts { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; margin: 22px 0 8px; padding: 16px; background: color-mix(in srgb, var(--fg) 4%, var(--bg)); }
.rd-facts-sw { display: block; width: 64px; aspect-ratio: 1; background-size: cover; background-position: center; border: 0; padding: 0; cursor: zoom-in; transition: filter .3s ease; }
.rd-facts-sw:hover, .rd-facts-sw:focus-visible { filter: brightness(1.06); outline-offset: 3px; }
.rd-facts dl { margin: 0; display: grid; gap: 8px; }
.rd-facts dl div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; font-size: 14px; line-height: 1.75; }
.rd-facts dt { color: var(--muted); } .rd-facts dd { margin: 0; }
.rd-pcs { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.rd-pcs h2 { font-size: 24px; margin: 0; }
.rd-pcs .kh-row { margin-inline: calc(var(--gut, 20px) * -1); }
/* the questions page */
.rd .faq-list { margin-top: 18px; border-top: 1px solid var(--line); }
.rd .faq-item { border-bottom: 1px solid var(--line); }
.rd .faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; font-size: 16px; cursor: pointer; }
.rd .faq-item summary::-webkit-details-marker { display: none; }
.rd .faq-item summary svg { width: 18px; height: 18px; flex: none; stroke: var(--muted); fill: none; stroke-width: 1.5; transition: transform .3s ease; }
.rd .faq-item[open] summary svg { transform: rotate(45deg); }
.rd .faq-a { padding: 0 0 20px; font-size: 15px; line-height: 1.95; color: var(--fg); }
.rd .faq-a a { color: var(--fg); text-decoration: underline; text-underline-offset: .5em; text-decoration-thickness: 1px; }
/* the old reader drew a frosted photo over the whole screen behind its window; as a page it has none */
body::after { content: none !important; display: none !important; }
.rd-bar .rd-back:focus:not(:focus-visible) { outline: none !important; }
.rd-bar .rd-back { outline-offset: 4px; }
.rd-bar .rd-back:focus, .rd-bar .rd-back:focus-visible { outline: none !important; box-shadow: none !important; }

/* ===== The library page: one stone-coloured box with its photo and words, the kinds clear across the top, then the articles on large photos of changing sizes ===== */
.lib-page { max-width: 1320px; margin: 0 auto; padding: 18px var(--gut, 20px) 40px; }
.rd:has(.lib-page) .rd-bar { max-width: 1320px; }
.lib-hero { display: grid; gap: 22px; padding: 20px 20px 26px; background: color-mix(in srgb, #A08A68 22%, var(--bg)); }
.lib-hero-img { display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.lib-hero-tx h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.3; }
.lib-hero-tx p { margin: 0; font-size: 16px; line-height: 1.95; }
.lib-hero-go { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 22px; }
.lib-hero-go a, .lib-hero-go button { padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--fg); cursor: pointer; text-decoration: underline; text-underline-offset: .55em; text-decoration-thickness: 1px; }
.lib-cats { display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 40px 0 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.lib-cats button { display: inline-flex; align-items: baseline; gap: 8px; padding: 4px 0; border: 0; border-bottom: 2px solid transparent; background: none; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 23px; color: var(--muted); cursor: pointer; }
.lib-cats button small { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 12.5px; }
.lib-cats button[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--fg); }
/* the articles: words on the photo itself, a line between one row and the next */
.lib-mag { display: grid; }
.lm-row { display: grid; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.lm { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #2A241E; color: #fff; text-align: left; font: inherit; cursor: pointer; overflow: hidden; }
.lm-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s ease; }
.lm::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 11, 8, .78) 0%, rgba(14, 11, 8, .38) 42%, rgba(14, 11, 8, 0) 70%); }
.lm-tx { position: absolute; z-index: 1; inset-inline: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.lm-tx small { font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.lm-tx b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 26px; line-height: 1.35; }
.lm-tx span { font-size: 14.5px; line-height: 1.85; color: rgba(255, 255, 255, .9); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lm-xl { aspect-ratio: 4 / 5; }
.lm-lg { aspect-ratio: 1 / 1; }
.lm-sm { aspect-ratio: 16 / 11; }
.lm-sm .lm-tx b { font-size: 22px; }
.lm-sm .lm-tx span { -webkit-line-clamp: 2; }
@media (hover: hover) { .lm:hover .lm-img { transform: scale(1.03); } }
@media (min-width: 900px) {
  .lib-page { padding-top: 24px; }
  .lib-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 56px; padding: 44px; }
  .lib-hero-img { aspect-ratio: 4 / 3; }
  .lib-hero-tx h1 { font-size: 44px; }
  .lib-hero-tx p { font-size: 17px; max-width: 440px; }
  .lib-cats { margin-top: 56px; gap: 8px 40px; }
  .lib-cats button { font-size: 26px; }
  .lm-row { padding: 40px 0; gap: 24px; }
  .lm-one .lm-xl { aspect-ratio: 21 / 9; }
  .lm-one .lm-tx { inset-inline: 44px auto; bottom: 40px; max-width: 560px; }
  .lm-one .lm-tx b { font-size: 40px; }
  .lm-one .lm-tx span { font-size: 16px; }
  .lm-two { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); height: 600px; }
  .lm-two.lm-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .lm-two .lm { aspect-ratio: auto; height: 100%; }
  .lm-two .lm-sm { align-self: end; height: 72%; }
  .lm-two .lm-lg .lm-tx { inset-inline: 32px; bottom: 32px; }
  .lm-two .lm-lg .lm-tx b { font-size: 32px; }
}

/* ===== A few large photos are alive: a very slow drift closer and back (about 25 seconds), never on pieces, rows or a piece's own photos ===== */
@keyframes kAlive { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); } }
@keyframes kAliveBlur { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.145) translate3d(-1.2%, -0.8%, 0); } }
.kh-story-img, .kh-ic-img, .kf-img, .kh-dz-img, .lib-hero-img { position: relative; overflow: hidden; isolation: isolate; }
.kh-story-img::before, .kh-ic-img::before, .kf-img::before, .kh-dz-img::before, .lib-hero-img::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background-image: inherit; background-size: cover; background-position: inherit;
  animation: kAlive 25s ease-in-out infinite alternate; will-change: transform; }
.kh-story-img .kh-blur { animation: kAliveBlur 25s ease-in-out infinite alternate; will-change: transform; }
.kh-cap { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .kh-story-img::before, .kh-ic-img::before, .kf-img::before, .kh-dz-img::before, .lib-hero-img::before, .kh-story-img .kh-blur { animation: none; } }

/* the row of parts in the top bar: plain, on white (the brick red was taken out) */
.nav-row a.on { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .6em; }

/* the seal: Kalokathia's mark as carved in stone, beside the contact details */
.ct-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: clamp(14px, 4vw, 80px); }
.ct-body .info { min-width: 0; }
.ct-seal { display: block; width: clamp(80px, 22vw, 210px); margin: 0; }
.ct-seal img { display: block; width: 100%; height: auto; }
.contact .foot .brand .mark { display: none; }   /* the seal above already carries the mark */

/* ===== The name KALOKATHIA: larger and wider in the top bar, and everywhere in the deep red-brown of the carved seal ===== */
:root { --k-word: #5A2B1D; }
.brand > span, .nav .brand > span, .nav.on-hero .brand > span, .foot .brand > span, .i-name { color: var(--k-word) !important; --bw: var(--k-word) !important; text-shadow: none !important; -webkit-text-fill-color: var(--k-word) !important; }
.nav .brand > span { font-size: 23px !important; letter-spacing: .44em !important; }
@media (max-width: 720px) { .nav .brand > span { font-size: 17px !important; letter-spacing: .36em !important; } }
@media (max-width: 370px) { .nav .brand > span { font-size: 15px !important; letter-spacing: .3em !important; } }

/* the name inside sentences, Arabic and English: the seal's deep red-brown (on photos it stays light so it can be read) */
.kname, .contact .contact-head h2 em, .contact .contact-head h2 .kname, .contact .kname, .foot .kname { color: var(--k-word) !important; }
.hero .kname, .lib-card .kname, .card .kname, .kh-cap .kname, .kh-story-img .kname { color: #E7C9A2 !important; }

/* the name at the very end of the page: full colour and a little larger, so it reads clearly */
.contact .foot .brand { opacity: 1 !important; }
.contact .foot .brand > span { font-size: 18px !important; letter-spacing: .36em !important; font-weight: 600; }

/* ===== The living photos answer the visitor (replaces the slow drift): as the page is scrolled the photo moves a little slower than its frame, like a window onto depth;
   on a computer it also leans slightly with the mouse. The frame stays still; nothing appears, rises or fades. Moved by kalo.js through --kx / --ky. ===== */
.kh-story-img::before, .kh-ic-img::before, .kf-img::before, .kh-dz-img::before, .lib-hero-img::before {
  animation: none !important; inset: -7% -2.5% !important; transform: translate3d(var(--kx, 0px), var(--ky, 0px), 0); }
.kh-story-img .kh-blur { animation: none !important; inset: -7% -2.5% !important; transform: translate3d(var(--kx, 0px), var(--ky, 0px), 0) scale(1.08); will-change: transform; }

/* the library's heading on the homepage: «مكتبة» and the mark, in the seal's red-brown */
#library .lib-h { display: flex; align-items: center; gap: .32em; font-size: clamp(30px, 8vw, 44px); color: var(--k-word); }
#library .lib-h-mark { width: 1.25em; height: auto; fill: var(--k-word); flex: none; }

/* designs: a panel about the design on its photo, shown when the pointer passes over it (a first touch on a phone) */
.kz-img { position: relative; overflow: hidden; }
.kz-pane { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.kz:hover .kz-pane, .kz:focus-visible .kz-pane, .kz.show .kz-pane { opacity: 1; }
.kz-pane .kz-d { color: var(--fg); }
.kz-pane .kz-go { margin-top: 0; }
@media (max-width: 720px) { .kz-pane { padding: 12px 14px; gap: 6px; } .kz-pane .kz-d { font-size: 13px !important; line-height: 1.7 !important; -webkit-line-clamp: 3; } .kz-pane .kz-go { font-size: 13px; } }

/* the philosophy: a short heading over what Kalokathia believes */
.kh-phil-h { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: clamp(25px, 6.4vw, 34px); line-height: 1.5; font-weight: 700; color: var(--k-word); margin: 0 0 14px; }

/* the menu: a small list that drops under its button, not a page over the whole site */
.menu.lg { left: auto !important; right: auto !important; bottom: auto !important; inset-inline-start: 16px !important; inset-inline-end: auto !important;
  top: calc(var(--menu-top, 64px) + 6px) !important; width: min(280px, calc(100vw - 32px)) !important; max-height: calc(100dvh - var(--menu-top, 64px) - 24px);
  padding: 4px 20px 16px !important; border: 1px solid var(--line) !important; box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .35) !important; }
.menu.lg > a { font-size: 19px !important; padding: 13px 0 !important; }
.menu.lg .menu-extra { margin-top: 4px; padding-top: 14px !important; border-top: 0 !important; }
.menu.lg .mx-contact { font-size: 13px; }
/* a framed photo: the layers drawn from it (the soft blur beside the story, the slow living drift) follow its framing */
.kh-story-img .kh-blur { background-position: inherit !important; background-size: inherit !important; }
.kh-story-img::before, .kh-ic-img::before, .kf-img::before, .kh-dz-img::before, .lib-hero-img::before { background-size: inherit !important; }

/* ===== The new homepage (2026-10-30): تصاميم ومفاهيم, then معرض كالوكاثيا, then the library.
   Every part sits in the site's one width (1320px, like the bar above), so the edges line up from top to bottom.
   The computer layout is the original; the phone shows the same, fitted (a wide photo stays wide). No vw/vh here: the whole site is scaled on large screens (html zoom). ===== */
.kn-c, .kn .kh-in, .kn-sec-head, .kp-grid.kn-grid, .kn-art, .kn-arts { box-sizing: border-box; width: 100%; max-width: calc(1320px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.kn-lbl { display: block; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif) !important; font-size: 13px !important; font-weight: 400 !important; line-height: 1.6 !important; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
html:lang(en) .kn-lbl { letter-spacing: .2em; text-transform: uppercase; font-size: 11.5px !important; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); }
.kn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 28px; border: 1px solid var(--fg); border-radius: 0; color: var(--fg); background: transparent;
  font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 14px; font-weight: 400; letter-spacing: .03em; text-decoration: none; transition: background-color .25s, color .25s; }
.kn-btn:hover, a:hover > .kn-btn:not(.kn-btn-light) { background: var(--fg); color: var(--bg); }
.kn-btn-light { border-color: rgba(255, 255, 255, .92); color: #fff; }
a:hover .kn-btn-light { background: #fff; color: #1d1813; }
.kn > section { margin-top: 0; margin-bottom: 96px; }
.kn .kh-in { padding-top: 0; padding-bottom: 0; }

/* a photo in its frame: the frame stays still; a few photos move very slowly one way, once, then rest */
.kn-ph { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--line); }
.kn-drift { left: -5%; transform: translate3d(0, 0, 0); transition: transform 30s cubic-bezier(.3, .1, .3, 1); will-change: transform; }
.kn-drift.go { transform: translate3d(4.2%, 0, 0); }
@media (prefers-reduced-motion: reduce) { .kn-drift, .kn-drift.go { transition: none; transform: none; left: 0; } }

/* تصاميم ومفاهيم: one wide photo, and on it a small name, one line and the button */
.kn > .kn-des { margin-top: 28px; }
.kn-des-fr { position: relative; display: block; overflow: hidden; aspect-ratio: 21 / 9; color: #fff; text-decoration: none; isolation: isolate; }
.kn-des-fr::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 14, 10, .62) 0%, rgba(20, 14, 10, .22) 40%, rgba(20, 14, 10, 0) 68%); }
.kn-des-cap { position: absolute; z-index: 1; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 44px 40px; }
.kn-des-cap .kn-lbl { color: rgba(255, 255, 255, .88); margin: 0; }
.kn-des-h { display: block; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 34px; line-height: 1.4; max-width: 18em; margin-bottom: 6px; text-wrap: balance; }

/* معرض كالوكاثيا: two photos laid over each other, the words beside them, then four pieces with their artists */
.kn-gal-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.kn-pair { position: relative; display: block; aspect-ratio: 6 / 5; }
.kn-pa, .kn-pb { position: absolute; display: block; overflow: hidden; }
.kn-pa { top: 0; inset-inline-start: 0; width: 61%; aspect-ratio: 4 / 5; }
.kn-pb { bottom: 0; inset-inline-end: 0; width: 50%; aspect-ratio: 1 / 1; }
.kn-gal-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.kn-gal-txt .kn-lbl { margin: 0; }
.kn-gal-h { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 28px; line-height: 1.55; color: var(--fg); margin: 0; text-wrap: balance; max-width: 15em; }

.kh-row.kn-row { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; overflow: visible; box-sizing: border-box; width: 100%; max-width: calc(1320px + 2 * var(--gutter)); margin: 56px auto 0; padding: 0 var(--gutter); }
.kh-row.kn-row .kc-row { flex: none; padding: 0 !important; border: 0 !important; min-width: 0; }
.kh-row.kn-row .kc-row:nth-child(n+5), .kh-row.kn-row .kn-go { display: none; }
.kn-row .kc-img, .kn-grid .kc-img { aspect-ratio: 4 / 5; margin-bottom: 12px; }
.kn-row .kc-t, .kn-grid .kc-t { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 17px; line-height: 1.45; }
.kc-a { font-size: 13px; line-height: 1.6; color: var(--k-word); text-decoration: none; }
a.kc-a:hover { text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 1px; }

/* the library: three articles, photos with their titles written on them */
.kn-lib { padding: 0 !important; }
#library.kn-lib .lib-h { margin: 0; font-size: 32px; }
.kn-reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; box-sizing: border-box; width: 100%; max-width: calc(1320px + 2 * var(--gutter)); margin: 28px auto 32px; padding: 0 var(--gutter); }
.kn-read:nth-child(n+4) { display: none; }
.kn-read { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 0; border-radius: 0; padding: 0; margin: 0; cursor: pointer; background: var(--line); color: #fff; font: inherit; text-align: left; isolation: isolate; min-width: 0; }
.kn-read::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(20, 14, 10, .7) 0%, rgba(20, 14, 10, .2) 46%, rgba(20, 14, 10, 0) 70%); }
.kn-read-ph { position: absolute; inset: 0; background-size: cover; background-position: center; }
.kn-read-cap { position: absolute; z-index: 1; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; }
.kn-read-cap small { font-size: 12px; opacity: .86; }
.kn-read-cap b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 22px; line-height: 1.38; }
.kn-read-cap .kname { color: #F1DFC8 !important; }

/* a section's page: only the section's small name above, then its pieces */
.kn-sec-head { padding-top: 28px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.kn-sec-head .kn-lbl { margin: 0; }
.kp-grid.kn-grid { margin-top: 24px; margin-bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
.kn-grid .kc { padding-bottom: 0 !important; border-bottom: 0 !important; }
.kn-grid .kc-m { font-size: 13px; color: var(--fg); margin-top: 2px; }
@media (max-width: 1000px) { .kp-grid.kn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the piece's artist under its name */
.kq-by { margin: 2px 0 10px; font-size: 15px; }
.kq-by .kc-a { font-size: 15px; }

/* the artists */
.kn-arts { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.kn-arts-i { display: flex; flex-direction: column; gap: 3px; color: var(--fg); text-decoration: none; min-width: 0; }
.kn-arts-ph { display: block; aspect-ratio: 4 / 5; background-size: cover; background-position: center; background-color: var(--line); margin-bottom: 12px; }
.kn-arts-i .kc-t { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 19px; }
.kn-arts-i .kc-m { font-size: 13px; color: var(--muted); }
.kn-art { padding-top: 28px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: end; }
.kn-art-ph { display: block; aspect-ratio: 4 / 5; background-size: cover; background-position: center; background-color: var(--line); }
.kn-art-txt { padding-bottom: 8px; }
.kn-art-n { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 40px; line-height: 1.3; margin: 0 0 8px; color: var(--fg); }
.kn-art-c { color: var(--muted); margin: 0 0 20px; }
.kn-art-b p { margin: 0 0 14px; max-width: 36em; line-height: 1.95; }
.kn-art:not(:has(.kn-art-ph)) { grid-template-columns: 1fr; }
.kn-art + .kn-grid { margin-top: 64px; }
.kn-art + .kn-grid .kc-a { display: none; }   /* on an artist's own page their name is already above */

/* the philosophy, opened from the menu */
.kn-phil { max-width: 820px; margin: 0 auto; padding: 48px var(--gutter) 0; box-sizing: border-box; }
.kn-phil .kh-lead { font-size: 18px; line-height: 2; }

/* a piece's page on a computer, as in the great shops: its photos one under another on one side; its name, price, button and details beside them, staying in view */
@media (min-width: 900px) {
  #kpPiece:not([hidden]) { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: start;
    box-sizing: border-box; max-width: calc(1320px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
  #kpPiece .kq-gal { grid-column: 1; max-width: none; margin: 0; }
  #kpPiece .kq-track { flex-direction: column; gap: 12px; overflow: visible; background: none; scroll-snap-type: none; }
  #kpPiece .kq-track img { flex: none; width: 100%; max-height: none; object-fit: cover; background: color-mix(in srgb, var(--fg) 4%, var(--bg)); }
  #kpPiece .kq-count { display: none; }
  #kpPiece .kq-info { grid-column: 2; position: sticky; top: calc(var(--page-top, 96px) + 24px); max-width: none; margin: 0; padding: 4px 0 0; }
  #kpPiece .kq-rel { grid-column: 1 / -1; }
  #kpPiece .kq-rel .kp-in { max-width: none; padding-inline: 0; }
  #kpPiece .kq-rel .kh-row.kn-row { padding-inline: 0; margin-top: 28px; }
  #kpPiece .kq-t { font-size: 32px; line-height: 1.35; }
}

/* the phone: the same page, fitted; the rows of pieces and articles are swiped */
@media (max-width: 720px) {
  .kn > section { margin-bottom: 64px; }
  .kn > .kn-des { margin-top: 16px; }
  .kn-des-fr { aspect-ratio: 4 / 3.1; }
  .kn-des-cap { gap: 10px; padding: 0 20px 20px; }
  .kn-des-h { font-size: 21px; line-height: 1.45; margin-bottom: 4px; }
  .kn-btn { min-height: 40px; padding: 0 20px; font-size: 13.5px; }
  .kn-gal-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kn-gal-txt { gap: 14px; }
  .kn-gal-h { font-size: 21px; }
  .kh-row.kn-row, .kn-reads { display: flex !important; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .kh-row.kn-row::-webkit-scrollbar, .kn-reads::-webkit-scrollbar { display: none; }
  .kh-row.kn-row { margin-top: 36px; }
  .kh-row.kn-row .kc-row { flex: 0 0 62%; scroll-snap-align: start; }
  .kh-row.kn-row .kc-row:nth-child(n+5) { display: flex; }
  .kn-read { flex: 0 0 82%; scroll-snap-align: start; }
  .kn-read:nth-child(n+4) { display: block; }
  .kn-read-cap { padding: 14px 16px; }
  .kn-read-cap b { font-size: 19px; }
  #library.kn-lib .lib-h { font-size: 28px; }
  .kp-grid.kn-grid, .kn-arts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .kn-art { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .kn-art-n { font-size: 30px; }
}

/* the site's width: wider, with narrow sides, as on the great sites; the bar above follows the same width so every edge lines up */
:root { --gutter: clamp(20px, 4vw, 44px); }
.nav-inner { max-width: 1320px; }
.lay-letters .wrap { max-width: calc(1320px + 2 * var(--gutter)); }

/* ===== The bar: only the mark, the name and the menu. It sits at the top of each page; on the homepage it lies over the first photo, in white.
   When the visitor scrolls up it comes back calmly over the page, on white (kalo.js adds .kn-fix and .kn-show). ===== */
.nav { position: absolute !important; }
.nav .nav-row, .nav .nav-links, .nav .tools > :not(.menu-btn):not(.lang-btn) { display: none !important; }
.nav .brand > span { font-weight: 600 !important; }
.nav.kn-fix { position: fixed !important; top: 0; transform: translateY(-100%); transition: transform .45s cubic-bezier(.25, .1, .25, 1); background: var(--bg) !important; border-bottom: 1px solid var(--line) !important; }
.nav.kn-fix.kn-show { transform: none; }
html:not(.as-page) .hm-page.kn { margin-top: 0 !important; }
html:not(.as-page) .nav:not(.kn-fix) { background: transparent !important; border-bottom-color: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; }
html:not(.as-page) .nav:not(.kn-fix)::before { display: none !important; }
html:not(.as-page) .nav:not(.kn-fix) .nav-inner { border-bottom-color: transparent !important; }
html:not(.as-page) .nav:not(.kn-fix) .brand > span { color: #fff !important; -webkit-text-fill-color: #fff !important; --bw: #fff !important; text-shadow: 0 1px 10px rgba(0, 0, 0, .28) !important; }
html:not(.as-page) .nav:not(.kn-fix) .brand .mark { fill: #fff !important; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .25)) !important; }
html:not(.as-page) .nav:not(.kn-fix) .menu-btn { color: #fff !important; }
html:not(.as-page) .nav:not(.kn-fix) .menu-btn span { background: #fff !important; }
html:not(.as-page) .nav:not(.kn-fix) .icon-btn:hover { background: rgba(255, 255, 255, .14) !important; }
@media (prefers-reduced-motion: reduce) { .nav.kn-fix { transition: none; } }

/* the first photo, تصاميم ومفاهيم: the whole width, under the bar */
html:not(.as-page) .kn > .kn-des.kn-c { max-width: none; width: 100%; padding: 0; margin-top: 0; }
.kn-des-fr { aspect-ratio: 16 / 8.6; }
.kn-des-fr::before { content: ""; position: absolute; inset: 0 0 auto; height: 38%; z-index: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(20, 14, 10, .55) 0%, rgba(20, 14, 10, .22) 45%, rgba(20, 14, 10, 0) 100%); }
.kn-des-cap .kn-lbl { display: none; }
.kn-des-cap { padding: 0 max(var(--gutter), calc((100% - 1320px) / 2)) 64px; }
.kn-des-h { font-size: 38px; }
.kn > .kn-des { margin-bottom: 0; }

/* the colours: white, with one band of warm stone cream (the gallery) and one of deep warm brown (the library) */
:root { --kn-cream: #F2ECE2; --kn-dark: #2B231D; --kn-on-dark: #EFE5D7; }
.kn > .kn-gal { background: var(--kn-cream); padding: 96px 0 100px; margin-bottom: 96px; }
.kn-gal .kn-btn { background: var(--kn-dark); border-color: var(--kn-dark); color: #fff; }
.kn-gal .kn-btn:hover { background: #4A3C31; border-color: #4A3C31; color: #fff; }
.kn > .kn-lib { background: var(--kn-dark); color: var(--kn-on-dark); padding: 88px 0 96px !important; margin-bottom: 0; }
#library.kn-lib .lib-h { color: var(--kn-on-dark); }
#library.kn-lib .lib-h-mark { fill: var(--kn-on-dark); }
.kn-lib .kn-reads { margin-top: 36px; margin-bottom: 40px; }
.kn-lib .kn-btn { border-color: rgba(239, 229, 215, .7); color: var(--kn-on-dark); }
.kn-lib .kn-btn:hover { background: var(--kn-on-dark); color: var(--kn-dark); border-color: var(--kn-on-dark); }
.kn-lib .kn-read { background: #3A3029; }
.lay-letters { padding-top: 24px; }

/* the piece's details stay in view with no bar above them */
@media (min-width: 900px) { #kpPiece .kq-info { top: 28px; } }

@media (max-width: 720px) {
  .kn-des-fr { aspect-ratio: 1 / 1; }
  .kn-des-cap { padding: 0 var(--gutter) 24px; }
  .kn-des-h { font-size: 22px; }
  .kn > .kn-gal { padding: 56px 0 60px; margin-bottom: 64px; }
  .kn > .kn-lib { padding: 56px 0 60px !important; }
}

/* the name in the bar: wide, bold and clear */
.nav .brand > span { font-size: 24px !important; letter-spacing: .42em !important; }
@media (max-width: 720px) { .nav .brand > span { font-size: 18px !important; letter-spacing: .34em !important; } }

/* each part starts the same way: its small name, its words, then its photos; on the phone the gallery's words come before its photos */
@media (max-width: 720px) {
  .kn-gal-txt { order: -1; }
  .kn-gal-in { gap: 32px; }
  .kn-pair { width: 92%; margin-inline-start: auto; }
}

/* التواصل: a deep olive, as some of the great houses use (Aesop, Bottega Veneta), with cream words on it */
:root { --kn-olive: #383D2F; --kn-on-olive: #ECE4D4; }
.contact { background: var(--kn-olive) !important; color: var(--kn-on-olive) !important; border-top: 0 !important; }
.contact h2, .contact dt, .contact dd, .contact a, .contact .save-ct, .contact .foot, .contact .foot span, .contact .foot-login, .contact .cp { color: var(--kn-on-olive) !important; }
.contact dt, .contact .foot > span:not(.brand) { opacity: .68; }
.contact .kname, .contact .contact-head h2 em, .contact .contact-head h2 .kname { color: #D9C6A2 !important; }
.contact .foot .brand > span { color: var(--kn-on-olive) !important; -webkit-text-fill-color: var(--kn-on-olive) !important; --bw: var(--kn-on-olive) !important; }
.contact .info > div, .contact .contact-head, .contact .foot, .contact .ct-body { border-color: rgba(236, 228, 212, .18) !important; }
.contact a { text-decoration-color: rgba(236, 228, 212, .5) !important; }
.contact .save-ct svg, .contact .cp svg { stroke: currentColor !important; }
.contact .ct-seal img { filter: brightness(2.4) saturate(.35) sepia(.25); }
#contact, #contact :is(h2, h3, dt, dd, a, span, button, p, small, li) { color: var(--kn-on-olive) !important; -webkit-text-fill-color: var(--kn-on-olive) !important; }
#contact dt, #contact .foot > span:not(.brand) { opacity: .66; }
#contact .contact-head h2 :is(em, .kname) { color: #D9C6A2 !important; -webkit-text-fill-color: #D9C6A2 !important; }
@media (max-width: 720px) { .nav .brand > span { font-size: 16px !important; letter-spacing: .3em !important; } }
@media (max-width: 360px) { .nav .brand > span { font-size: 14px !important; letter-spacing: .24em !important; } .nav .brand { gap: 8px !important; } }

/* ===================================================================================================
   The homepage in one visual language (2026-10-30): the colour of limestone everywhere, and one deep brown taken from the carved seal
   for the end of the page — the library, the letters and the contact, like the back of a book. One solid button (on the first photo);
   everything else is a quiet text link. The gallery is hung as an exhibition, not laid out as a catalogue.
   =================================================================================================== */
:root, :root[data-theme="light"], :root[data-theme="dark"] { --bg: #FBFAF7 !important; --stone: #FBFAF7; --umber: #2E1B15; --on-umber: #EFE4D6; --on-umber-2: rgba(239, 228, 214, .62); --umber-line: rgba(239, 228, 214, .16);
  --kn-olive: #2E1B15; --kn-on-olive: #EFE4D6; }
html, body { background: var(--stone) !important; }

/* the first photo: the whole width; the phone's whole height */
.kn-des-h { font-size: 54px; line-height: 1.3; max-width: 14em; margin-bottom: 14px; }
.kn-des-cap { padding-bottom: 72px; gap: 0; }
.kn-btn-solid { min-height: 52px; padding: 0 36px; background: var(--stone); color: var(--fg) !important; border: 0; font-size: 15px; }
a:hover .kn-btn-solid { background: #fff; color: var(--fg) !important; }
.kn-des-fr::after { background: linear-gradient(to top, rgba(18, 12, 9, .6) 0%, rgba(18, 12, 9, .2) 42%, rgba(18, 12, 9, 0) 62%); }

/* a quiet link: words, an arrow, a fine line under them */
.kn-go { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--fg); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.kn-go i { font-style: normal; transition: transform .3s; }
a.kn-go:hover i, a:hover .kn-go i { transform: translateX(-4px); }
html[dir="ltr"] a.kn-go:hover i, html[dir="ltr"] a:hover .kn-go i { transform: translateX(4px); }
.kn-lbl-line { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .04em; color: var(--muted); margin: 0 0 40px; }
.kn-lbl-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* معرض كالوكاثيا: one piece large, three smaller ones hung at different heights */
.kn > .kn-gal { background: none; padding: 128px 0 140px; margin: 0; }
.kn-feat { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; align-items: end; color: var(--fg); text-decoration: none; }
.kn-feat-ph, .kn-trio-ph { display: block; background-size: cover; background-position: center; background-color: rgba(37, 27, 22, .08); }
.kn-feat-ph { aspect-ratio: 3 / 2; }
.kn-feat-t { display: flex; flex-direction: column; align-items: flex-start; }
.kn-feat-t small { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.kn-feat-n { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 40px; line-height: 1.3; margin-bottom: 10px; }
.kn-feat .kc-a { font-size: 15px; }
.kn-feat-p { font-size: 15px; margin: 4px 0 32px; }
.kn-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 112px; align-items: start; }
.kn-trio-i { display: flex; flex-direction: column; color: var(--fg); text-decoration: none; min-width: 0; }
.kn-trio-i:nth-child(2) { margin-top: 88px; }
.kn-trio-ph { aspect-ratio: 4 / 5; margin-bottom: 18px; }
.kn-trio-n { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 21px; line-height: 1.4; }
.kn-trio-i .kc-a { font-size: 14px; }
.kn-more { text-align: center; margin-top: 96px; }

/* the seal, once, between what Kalokathia makes and what it writes */
.kn > .kn-seal { padding: 40px 0 150px; margin: 0; text-align: center; }
.kn-seal img { width: 150px; height: auto; margin: 0 auto 26px; display: block; }
.kn-seal p { margin: 0; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 22px; color: var(--k-word); }

/* the end of the page, in the seal's deep brown: the library … */
.kn > .kn-lib { background: var(--umber); color: var(--on-umber); padding: 120px 0 0 !important; margin: 0; }
.kn-lib-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
#library.kn-lib .lib-h { font-size: 46px; line-height: 1; color: var(--on-umber); }
#library.kn-lib .lib-h-mark { fill: var(--on-umber); }
.kn-lib .kn-go { color: var(--on-umber); }
.kn-reads { margin: 48px auto 0 !important; gap: 36px; }
.kn-read { aspect-ratio: auto; overflow: visible; background: none !important; color: var(--on-umber); display: flex; flex-direction: column; }
.kn-read::after { content: none; }
.kn-read-ph { position: relative; inset: auto; display: block; aspect-ratio: 4 / 3; margin-bottom: 20px; background-color: rgba(239, 228, 214, .08); }
.kn-read-cap { position: static; padding: 0; gap: 4px; }
.kn-read-cap small { font-size: 12.5px; color: var(--on-umber-2); opacity: 1; }
.kn-read-cap b { font-size: 24px; line-height: 1.4; }
.kn-read-cap .kname { color: inherit !important; }

/* … the letters … */
.lay-letters { background: var(--umber); color: var(--on-umber); padding: 0 !important; margin: 0 !important; }
.lay-letters .wrap { padding-top: 110px; padding-bottom: 0; }
.lay-letters .letters { position: relative; display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; background: none !important; border: 0 !important; box-shadow: none !important;
  padding: 90px 0 0 !important; margin: 0 !important; border-top: 1px solid var(--umber-line) !important; border-radius: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.lay-letters .letters::before, .lay-letters .letters::after { content: none !important; display: none !important; }
.lay-letters .eyebrow { display: none !important; }
.lay-letters h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif) !important; font-weight: 400 !important; font-size: 34px !important; line-height: 1.35 !important; color: var(--on-umber) !important; margin: 0 0 10px !important; }
.lay-letters .lt-copy p { color: var(--on-umber-2) !important; font-size: 15px !important; margin: 0 !important; }
.lay-letters .lt-langs { display: flex; gap: 18px; margin-bottom: 18px; }
.lay-letters .lt-langs button { background: none !important; border: 0 !important; box-shadow: none !important; color: var(--on-umber-2) !important; font-size: 13px; padding: 0 0 4px !important; border-radius: 0 !important; }
.lay-letters .lt-langs button[aria-checked="true"] { color: var(--on-umber) !important; border-bottom: 1px solid var(--on-umber) !important; }
.lay-letters .lt-row { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid rgba(239, 228, 214, .5); padding-bottom: 12px; }
.lay-letters .lt-in { flex: 1; min-width: 0; display: flex; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.lay-letters .lt-in svg { display: none; }
.lay-letters .lt-in input { flex: 1; min-width: 0; background: none !important; border: 0 !important; box-shadow: none !important; outline: 0; color: var(--on-umber) !important; font-size: 16px; padding: 6px 0 !important; text-align: right; }
.lay-letters .lt-in input::placeholder { color: var(--on-umber-2) !important; }
.lay-letters .lt-go { background: none !important; border: 0 !important; box-shadow: none !important; color: var(--on-umber) !important; font-size: 15px; padding: 0 !important; min-height: 0 !important; width: auto !important; }
.lay-letters .lt-note { color: var(--on-umber-2) !important; font-size: 12.5px; margin-top: 12px; }
html.as-page .lay-letters { display: none !important; }

/* … and the contact, which is also the end of every other page */
.contact { background: var(--umber) !important; padding: 110px 0 44px !important; margin: 0 !important; border: 0 !important; }
.contact .wrap { max-width: calc(1320px + 2 * var(--gutter)) !important; padding-inline: var(--gutter) !important; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 3fr); column-gap: 40px; align-items: start; }
html:not(.as-page) .contact .wrap { border-top: 1px solid var(--umber-line); padding-top: 90px !important; }
.contact .contact-head { grid-column: 1; border: 0 !important; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact .contact-head h2 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif) !important; font-size: 34px !important; line-height: 1.35 !important; margin: 0 !important; }
.contact .ct-body { grid-column: 2; display: block !important; border: 0 !important; margin: 0 !important; padding: 0 !important; }
.contact .ct-seal { display: none !important; }
.contact .info { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0 !important; }
.contact .info > div { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.contact .info dt { font-size: 12.5px !important; margin-bottom: 8px !important; }
.contact .info dd { font-size: 15.5px !important; line-height: 1.9 !important; margin: 0 !important; }
.contact .foot { grid-column: 1 / -1; display: flex !important; align-items: center; justify-content: space-between; gap: 20px; margin-top: 110px !important; padding-top: 28px !important; border-top: 1px solid var(--umber-line) !important; font-size: 12.5px; }
.contact .foot .brand .mark { display: inline-block !important; width: 24px; fill: var(--on-umber) !important; }

@media (max-width: 720px) {
  html:not(.as-page) .kn-des-fr { aspect-ratio: auto; height: 100vh; height: 100svh; min-height: 560px; }
  .kn-des-h { font-size: 28px; margin-bottom: 10px; }
  .kn-des-cap { padding-bottom: 34px; }
  .kn-btn-solid { min-height: 46px; padding: 0 26px; font-size: 14px; }
  .kn > .kn-gal { padding: 72px 0 90px; }
  .kn-lbl-line { margin-bottom: 28px; }
  .kn-feat { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .kn-feat-n { font-size: 30px; }
  .kn-feat-p { margin-bottom: 24px; }
  .kn-trio { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 64px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); scrollbar-width: none; }
  .kn-trio::-webkit-scrollbar { display: none; }
  .kn-trio-i { flex: 0 0 70%; scroll-snap-align: start; }
  .kn-trio-i:nth-child(2) { margin-top: 0; }
  .kn-more { margin-top: 56px; }
  .kn > .kn-seal { padding: 20px 0 100px; } .kn-seal img { width: 110px; } .kn-seal p { font-size: 19px; }
  .kn > .kn-lib { padding-top: 80px !important; }
  #library.kn-lib .lib-h { font-size: 34px; }
  .kn-lib .kn-go { font-size: 14px; }
  .kn-reads { margin-top: 32px !important; }
  .kn-read { flex: 0 0 80% !important; }
  .lay-letters .wrap { padding-top: 72px; }
  .lay-letters .letters { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 60px !important; }
  .lay-letters h2, .contact .contact-head h2 { font-size: 26px !important; }
  .contact { padding: 72px 0 36px !important; }
  html:not(.as-page) .contact .wrap { padding-top: 60px !important; }
  .contact .wrap { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .contact .ct-body { grid-column: 1; }
  .contact .info { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .contact .foot { flex-direction: column; align-items: flex-start; margin-top: 64px !important; }
}

.kn-lib-head { align-items: center; }
.contact .info { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.contact .info > div { display: block !important; }
.lay-letters :is(.lt-row, .lt-in, .lt-form, .lt-go)::before, .lay-letters :is(.lt-row, .lt-in, .lt-form, .lt-go)::after { content: none !important; display: none !important; }
.lay-letters input:-webkit-autofill { -webkit-text-fill-color: var(--on-umber); -webkit-box-shadow: 0 0 0 40px var(--umber) inset !important; }
@media (max-width: 720px) { .contact .info { grid-template-columns: minmax(0, 1fr) !important; } }
.lay-letters .lt-row, .lay-letters .lt-row * { background-color: transparent !important; background-image: none !important; box-shadow: none !important; }
.lay-letters .lt-in, .lay-letters .lt-in input { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.contact .save-ct { background: none !important; box-shadow: none !important; padding: 0 !important; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html:not(.as-page) .lay-letters .letters { border-top: 1px solid var(--umber-line) !important; }
.lay-letters .lt-row { flex-direction: row !important; flex-wrap: nowrap !important; }
.lay-letters .lt-go { flex: none !important; border: 0 !important; outline: 0; }
.lay-letters .lt-in input { text-align: left !important; }

/* the gallery on the homepage opens with a photo that is not a piece (the hands at work) and what Kalokathia believes; then three pieces */
.kn-ed { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: center; }
.kn-ed-fr { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; }
.kn-ed-t { display: flex; flex-direction: column; align-items: flex-start; max-width: 34em; }
.kn-ed-h { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif) !important; font-weight: 400 !important; font-size: 38px !important; line-height: 1.45 !important; color: var(--fg) !important; margin: 0 0 22px !important; text-wrap: balance; }
.kn-ed-p { font-size: 17px; line-height: 2; color: var(--fg); opacity: .82; margin: 0 0 36px; }
.kn-show .kn-trio { margin-top: 128px; }
@media (max-width: 720px) {
  .kn-ed { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kn-ed-h { font-size: 26px !important; margin-bottom: 14px !important; }
  .kn-ed-p { font-size: 15.5px; margin-bottom: 28px; }
  .kn-show .kn-trio { margin-top: 72px; }
}

/* تصاميم ومفاهيم: the first photo is this section; its name is shown on it, as the gallery's name is shown above the gallery */
.kn-des-cap .kn-lbl { display: flex !important; align-items: center; gap: 14px; width: min(420px, 100%); font-size: 15px !important; color: rgba(255, 255, 255, .92) !important; margin: 0 0 18px !important; letter-spacing: .02em; }
.kn-des-cap .kn-lbl::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .45); }
@media (max-width: 720px) { .kn-des-cap .kn-lbl { font-size: 14px !important; margin-bottom: 12px !important; width: 100%; } }

/* ===== تصاميم ومفاهيم and the gallery, each with a strong presence of its own (2026-10-30) ===== */
/* تصاميم ومفاهيم: its name, the hands at work and what Kalokathia believes, then three designs hung at different heights */
.kn > .kn-dsg { padding: 128px 0 140px; margin: 0; }
.kn-dsg .kn-show .kn-trio { margin-top: 120px; }

/* the gallery: a band of warm sand; two photos laid over each other with its words beside them, then its newest pieces in a row */
.kn > .kn-gal { background: #ECE4D6; padding: 120px 0 120px; margin: 0; }
.kn-gx { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 80px; align-items: center; }
.kn-gx .kn-pair { position: relative; display: block; aspect-ratio: 6 / 5; }
.kn-gx .kn-pa, .kn-gx .kn-pb { position: absolute; display: block; overflow: hidden; }
.kn-gx .kn-pa { top: 0; inset-inline-start: 0; width: 60%; aspect-ratio: 4 / 5; }
.kn-gx .kn-pb { bottom: 0; inset-inline-end: 0; width: 52%; aspect-ratio: 1 / 1; }
.kn-gx-t { display: flex; flex-direction: column; align-items: flex-start; }
.kn-gx-t .kn-lbl { margin: 0 0 16px; }
.kn-gx-h { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif) !important; font-weight: 400 !important; font-size: 36px !important; line-height: 1.5 !important; color: var(--fg) !important; margin: 0 0 32px !important; text-wrap: balance; max-width: 13em; }
.kn-btn-dark { background: var(--umber); border-color: var(--umber); color: var(--on-umber) !important; min-height: 50px; padding: 0 34px; }
.kn-btn-dark:hover { background: #4A2E24; border-color: #4A2E24; }
.kn-rowhead { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 120px !important; }
.kn-rowh { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif) !important; font-weight: 400 !important; font-size: 30px !important; margin: 0 !important; color: var(--fg) !important; }
.kn-arr { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: var(--fg); font-size: 30px; line-height: 1; cursor: pointer; }
.kn-arr:hover { opacity: .6; }
.kn-rowall { text-align: center; margin-top: 6px !important; }
.kn-go-sm { font-size: 13px; padding-bottom: 2px; }
.kn-strip { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 40px; }
.kn-strip::-webkit-scrollbar { display: none; }
.kn-strip-i { flex: 0 0 calc((100% - 3 * 24px) / 4.3); scroll-snap-align: start; display: flex; flex-direction: column; color: var(--fg); text-decoration: none; min-width: 0; }
.kn-strip-ph { display: block; aspect-ratio: 4 / 5; background-size: cover; background-position: center; background-color: rgba(37, 27, 22, .08); margin-bottom: 14px; }
.kn-strip-n { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 18px; line-height: 1.4; }
.kn-strip-i .kc-a { font-size: 13.5px; }
.kn > .kn-seal { padding-top: 130px; }

@media (max-width: 720px) {
  .kn > .kn-dsg { padding: 72px 0 90px; }
  .kn-dsg .kn-show .kn-trio { margin-top: 64px; }
  .kn > .kn-gal { padding: 72px 0 80px; }
  .kn-gx { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .kn-gx-t { order: -1; }
  .kn-gx-h { font-size: 24px !important; margin-bottom: 22px !important; }
  .kn-gx .kn-pair { width: 94%; margin-inline-start: auto; }
  .kn-rowhead { margin-top: 72px !important; gap: 14px; }
  .kn-rowh { font-size: 24px !important; }
  .kn-strip { gap: 14px; margin: 28px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); }
  .kn-strip-i { flex-basis: 62%; }
  .kn > .kn-seal { padding-top: 90px; }
}
.kn-dsg .kn-ed-t .kn-btn-dark { margin-top: 4px; }
.kn > .kn-dsg { padding-bottom: 128px; }
@media (max-width: 720px) { .kn > .kn-dsg { padding-bottom: 80px; } }

/* ===== The first photo with no words; تصاميم ومفاهيم rises over its lower edge on a sheet of stone, so the first screen is full ===== */
html:not(.as-page) .kn-des-cap { display: none !important; }
.kn-des-fr::after { content: none; }
.kn > .kn-dsg { padding-top: 0; }
.kn > .kn-dsg > .kn-c { position: relative; z-index: 2; margin-top: -150px; background: var(--stone); padding-top: 56px; }
@media (max-width: 720px) {
  html:not(.as-page) .kn-des-fr { height: 82vh; height: 82svh; min-height: 480px; }
  .kn > .kn-dsg > .kn-c { margin: -80px 12px 0; width: auto; padding: 30px 18px 0; }
}

/* ===== The library: like a magazine's stories — one article in the middle with its title written large on its photo, the next ones at the edges ===== */
.kn-lib-head { justify-content: center !important; }
.kn-car { position: relative; margin-top: 44px; }
.kn-reads { display: flex !important; gap: 24px !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: none !important; width: 100% !important;
  margin: 0 !important; padding: 0 19% !important; box-sizing: border-box; grid-template-columns: none !important; }
.kn-reads::-webkit-scrollbar { display: none; }
.kn-reads .kn-read { position: relative; flex: 0 0 62%; display: block !important; aspect-ratio: 16 / 9; overflow: hidden; scroll-snap-align: center; color: #fff; text-align: left; }
.kn-reads .kn-read::after { content: "" !important; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(14, 9, 7, .72) 0%, rgba(14, 9, 7, .28) 50%, rgba(14, 9, 7, .12) 100%); }
.kn-reads .kn-read-ph { position: absolute !important; inset: 0 !important; aspect-ratio: auto !important; margin: 0 !important; }
.kn-reads .kn-read-cap { position: absolute !important; z-index: 1; inset: auto 0 0 0 !important; padding: 0 40px 36px !important; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.kn-reads .kn-read-cap small { color: rgba(255, 255, 255, .8); }
.kn-reads .kn-read-cap b { font-size: 38px !important; line-height: 1.3 !important; max-width: 16em; text-wrap: balance; }
.kn-read-go { font-style: normal; font-size: 13.5px; letter-spacing: .03em; margin-top: 10px; color: #fff; }
.kn-car-arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--on-umber); color: var(--umber);
  display: grid; place-items: center; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .5); }
.kn-car-prev { inset-inline-start: calc(19% - 23px); }
.kn-car-next { inset-inline-end: calc(19% - 23px); }
.kn-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.kn-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(239, 228, 214, .28); }
.kn-dots i.on { background: var(--on-umber); }
.kn-lib-more { text-align: center; margin-top: 40px !important; }
.kn-btn-line { border-color: rgba(239, 228, 214, .8) !important; color: var(--on-umber) !important; min-height: 50px; padding: 0 44px; }
.kn-btn-line:hover { background: var(--on-umber) !important; color: var(--umber) !important; }
@media (max-width: 720px) {
  .kn-car { margin-top: 30px; }
  .kn-reads { gap: 12px !important; padding: 0 7% !important; }
  .kn-reads .kn-read { flex-basis: 86%; aspect-ratio: 4 / 5; }
  .kn-reads .kn-read-cap { padding: 0 20px 24px !important; }
  .kn-reads .kn-read-cap b { font-size: 26px !important; }
  .kn-car-arr { display: none; }
  .kn-dots { margin-top: 20px; }
}
/* the library's slides: each slide is measured on the full width; empty spaces at both ends let the first and last slides sit in the middle */
.kn-reads { padding: 0 !important; }
.kn-reads::before, .kn-reads::after { content: ""; flex: 0 0 calc(19% - 24px); }
.kn-reads .kn-read { flex: 0 0 62% !important; }
@media (max-width: 720px) {
  .kn-reads::before, .kn-reads::after { flex-basis: calc(7% - 12px); }
  .kn-reads .kn-read { flex-basis: 86% !important; }
}

/* the first photo: still (no drift), and shown nearly whole — its own proportion on a computer; on the phone wider than before, so more of its sides show */
html:not(.as-page) .kn-des-fr { aspect-ratio: 1376 / 768 !important; height: auto !important; min-height: 0 !important; max-height: 92vh; }
html:not(.as-page) .kn-des-fr .kn-ph { left: 0 !important; transform: none !important; transition: none !important; }
@media (max-width: 720px) {
  html:not(.as-page) .kn-des-fr { aspect-ratio: 1 / 1.12 !important; height: auto !important; min-height: 0 !important; }
  .kn > .kn-dsg > .kn-c { margin-top: -56px; }
}

/* ===== The opening: the photo, still, with «كالوكاثيا 2026» written on it. The hands photo of تصاميم ومفاهيم rises over its lower edge in a frame of stone,
   the two photos joined by that frame alone (no sheet, no label above). ===== */
.kn > .kn-dsg > .kn-c { margin-top: 0 !important; background: none !important; padding-top: 0 !important; }
.kn-des-fr::before { height: 100% !important; background: linear-gradient(to bottom, rgba(18, 12, 9, .5) 0%, rgba(18, 12, 9, .12) 32%, rgba(18, 12, 9, .14) 62%, rgba(18, 12, 9, .34) 100%) !important; }
.kn-open-t { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; margin: 0; padding: 0 var(--gutter) 13%;
  font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 64px; line-height: 1.2; letter-spacing: .02em; color: #fff; text-align: center; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.kn-open-t .kname { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.kn-dsg .kn-ed { align-items: start; }
.kn-dsg .kn-ed-fr { margin-top: -230px; z-index: 2; border: 14px solid var(--stone); box-sizing: content-box; }
.kn-dsg .kn-ed-t { padding-top: 64px; }
.kn-dsg .kn-ed-t .kn-lbl { margin: 0 0 14px; }
.kn > .kn-dsg { padding-top: 0 !important; }
@media (max-width: 720px) {
  .kn-open-t { font-size: 36px; padding-bottom: 22%; }
  .kn-dsg .kn-ed-fr { margin-top: -96px; border-width: 10px; width: calc(100% - 20px); }
  .kn-dsg .kn-ed-t { padding-top: 6px; }
}

/* the bar's language button, opposite the menu: plain words, the same colour as the name */
.nav .tools .lang-btn { display: inline-flex !important; align-items: center; height: 40px; padding: 0 4px !important; background: none !important; border: 0 !important; box-shadow: none !important;
  font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 14px; letter-spacing: .04em; color: var(--fg) !important; }
html:not(.as-page) .nav:not(.kn-fix) .lang-btn { color: #fff !important; text-shadow: 0 1px 8px rgba(0, 0, 0, .3); }

/* the top of the first photo darkens a little, in the brown of the buttons, so the bar's words read on any photo */
html:not(.as-page) .kn-des-fr::before { height: 100% !important; background:
  linear-gradient(to bottom, rgba(46, 27, 21, .62) 0%, rgba(46, 27, 21, .3) 14%, rgba(46, 27, 21, 0) 30%),
  linear-gradient(to bottom, rgba(46, 27, 21, 0) 55%, rgba(46, 27, 21, .3) 100%) !important; }
.kn-open-t span { text-shadow: 0 2px 28px rgba(46, 27, 21, .45); }

/* the menu's last line: the language, then nothing else (night and day and the music are gone) */
.menu .mx-set button[data-proxy="themeBtn"], .menu .mx-set button[data-proxy="musicNav"] { display: none !important; }
.menu .mx-set { display: flex; padding-top: 4px; }
.menu .mx-set button[data-proxy="langBtn"] { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: var(--fg); cursor: pointer; border-bottom: 1px solid currentColor; }
html:not(.as-page) .kn-des-fr { width: 100% !important; max-height: none !important; }
.menu .menu-extra .mx-set { display: flex !important; visibility: visible !important; }
.menu .mx-set button[data-proxy="langBtn"] { display: inline-block !important; }
/* the brown shade at the top of the first photo: drawn above the photo (it was drawn beneath it and never showed) */
html:not(.as-page) .kn-des-fr::before { z-index: 1 !important; }
html:not(.as-page) .kn-open-t { z-index: 2 !important; }

/* تصاميم ومفاهيم: under the first photo (not over it), on a band of near white; the hands photo beside the words, smaller */
.kn > .kn-dsg { background: #FBF9F5; padding: 112px 0 112px !important; }
.kn-dsg .kn-ed { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 88px; align-items: center; }
.kn-dsg .kn-ed-fr { margin-top: 0 !important; border: 0 !important; box-sizing: border-box; max-width: 440px; width: 100%; }
.kn-dsg .kn-ed-t { padding-top: 0 !important; }
@media (max-width: 720px) {
  .kn > .kn-dsg { padding: 56px 0 72px !important; }
  .kn-dsg .kn-ed { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kn-dsg .kn-ed-fr { width: 78% !important; max-width: none; margin: 0 !important; }
}

/* ===== The opening's words, at the foot of the photo: the name in Reem Kufi, the year under it in Cormorant, both in a soft stone gold ===== */
:root { --kn-gold: #EBD4A8; }
.kn-open-t { place-items: end center !important; align-content: end; padding: 0 var(--gutter) 64px !important; display: flex !important; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.kn-open-w { font-family: 'Noto Naskh Arabic', 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 76px; line-height: 1.1; color: var(--kn-gold); text-shadow: 0 2px 30px rgba(46, 27, 21, .5); }
.kn-open-w .kname { color: var(--kn-gold) !important; -webkit-text-fill-color: var(--kn-gold) !important; }
.kn-open-y { display: flex; align-items: center; gap: 18px; font-family: 'EB Garamond', var(--serif); font-weight: 500; font-size: 22px; letter-spacing: .5em; margin-inline-end: -.5em; color: var(--kn-gold); direction: ltr; text-shadow: 0 1px 14px rgba(46, 27, 21, .5); }
.kn-open-y::before, .kn-open-y::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .75; }
.kn-open-y::after { margin-left: -.5em; }
html:not(.as-page) .kn-des-fr::before { background:
  linear-gradient(to bottom, rgba(46, 27, 21, .62) 0%, rgba(46, 27, 21, .3) 14%, rgba(46, 27, 21, 0) 30%),
  linear-gradient(to bottom, rgba(46, 27, 21, 0) 50%, rgba(46, 27, 21, .55) 100%) !important; }
@media (max-width: 720px) {
  .kn-open-t { padding-bottom: 30px !important; gap: 2px; }
  .kn-open-w { font-size: 44px; }
  .kn-open-y { font-size: 15px; gap: 12px; } .kn-open-y::before, .kn-open-y::after { width: 28px; }
}

/* ===== The whole site on large screens: a gentle enlargement only (it was up to 30%, which made every photo too large) ===== */
@media (min-width: 1600px) { html { zoom: 1.03 !important; } }
@media (min-width: 1760px) { html { zoom: 1.06 !important; } }
@media (min-width: 1900px) { html { zoom: 1.1 !important; } }
@media (min-width: 2200px) { html { zoom: 1.25 !important; } }
@media (min-width: 2500px) { html { zoom: 1.4 !important; } }
@media (min-width: 3000px) { html { zoom: 1.7 !important; } }

/* ===== The gallery's page: a thin bar (filter · how many · order), three pieces to a row in square photos, a wide photo after every two rows ===== */
.kg-bar { box-sizing: border-box; width: 100%; max-width: calc(1320px + 2 * var(--gutter)); margin: 22px auto 0; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.kg-fb { background: none; border: 0; padding: 0; font: inherit; color: var(--fg); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.kg-fb::before { content: ""; width: 16px; height: 10px; background: linear-gradient(currentColor, currentColor) 0 0 / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 70% 1px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 40% 1px no-repeat; }
.kg-fb b { font-weight: 400; }
.kg-count { color: var(--muted); font-size: 13px; }
.kg-sort { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.kg-sort select { appearance: none; -webkit-appearance: none; background: none; border: 0; border-bottom: 1px solid var(--fg); border-radius: 0; padding: 2px 0 3px 18px; font: inherit; color: var(--fg); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-size: 5px 5px; background-position: 4px 55%, 0 55%; background-repeat: no-repeat; }
.kg-grid { box-sizing: border-box; width: 100%; max-width: calc(1320px + 2 * var(--gutter)); margin: 44px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 32px; }
.kg-c { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--fg); text-decoration: none; min-width: 0; }
.kg-ph { display: block; width: 100%; aspect-ratio: 1 / 1; background-size: cover; background-position: center; background-color: #FBF9F5; margin-bottom: 18px; transition: opacity .3s; }
.kg-c:hover .kg-ph { opacity: .9; }
.kg-a { font-size: 12.5px; letter-spacing: .03em; color: var(--k-word); margin-bottom: 4px; }
.kg-n { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 19px; line-height: 1.45; }
.kg-p { font-size: 14px; margin-top: 6px; }
.kg-m { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kg-wide { grid-column: 1 / -1; display: block; aspect-ratio: 21 / 8; background-size: cover; background-position: center; background-color: #FBF9F5; margin: 8px 0; }
.kg-grid .kp-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }

/* the filter panel: a sheet from the side (from below on the phone) */
.kg-drw { position: fixed; inset: 0; z-index: 120; }
.kg-drw-bg { position: absolute; inset: 0; background: rgba(30, 20, 15, .35); opacity: 0; transition: opacity .3s; }
.kg-pnl { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(380px, 92vw); background: var(--stone); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s cubic-bezier(.25, .1, .25, 1); }
html[dir="ltr"] .kg-pnl { transform: translateX(-100%); }
.kg-drw.on .kg-drw-bg { opacity: 1; } .kg-drw.on .kg-pnl { transform: none; }
.kg-pnl-h { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid var(--line); font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 20px; }
.kg-x { background: none; border: 0; font-size: 16px; color: var(--fg); cursor: pointer; }
.kg-pnl-b { flex: 1; overflow-y: auto; padding: 10px 28px; }
.kg-g { border: 0; padding: 18px 0; margin: 0; border-bottom: 1px solid var(--line); }
.kg-g legend { padding: 0; margin-bottom: 12px; font-size: 13px; color: var(--muted); float: right; width: 100%; }
html[dir="ltr"] .kg-g legend { float: left; }
.kg-o { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; cursor: pointer; clear: both; }
.kg-o input { width: 16px; height: 16px; accent-color: var(--umber); margin: 0; }
.kg-pnl-f { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; border-top: 1px solid var(--line); }
.kg-clear { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--fg); text-decoration: underline; text-underline-offset: .4em; cursor: pointer; }
html.kg-lock { overflow: hidden; }

@media (max-width: 720px) {
  .kg-bar { margin-top: 14px; padding-block: 12px; font-size: 13.5px; }
  .kg-count { display: none; }
  .kg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 14px; margin-top: 28px; }
  .kg-ph { margin-bottom: 12px; }
  .kg-n { font-size: 16px; } .kg-p { font-size: 13px; margin-top: 4px; }
  .kg-wide { aspect-ratio: 4 / 3; margin: 4px calc(var(--gutter) * -1); }
  .kg-pnl { top: auto; inset-inline: 0; width: auto; max-height: 82vh; transform: translateY(100%) !important; }
  .kg-drw.on .kg-pnl { transform: none !important; }
}

/* ===== A piece's page: its details scroll with the page (they used to stay fixed and slide over the pieces below) ===== */
@media (min-width: 900px) {
  #kpPiece .kq-info { position: static !important; }
  #kpPiece .kq-bar { display: none !important; }
}
.kn-open-t { align-items: center !important; justify-content: flex-end !important; text-align: center; }
.kg-sort select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232A2520' stroke-width='1.2'/%3E%3C/svg%3E") !important;
  background-size: 10px 6px !important; background-position: 0 55% !important; padding-left: 18px !important; }

/* ===== The gallery's page (2026-10-31): the filters hidden for now; the pieces small, six to a row; no wide photos between them ===== */
.kg-fb, .kg-drw { display: none !important; }
.kg-bar { justify-content: space-between; }
.kg-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 44px 22px; margin-top: 36px; }
.kg-wide { display: none !important; }
.kg-ph { margin-bottom: 12px; }
.kg-a { font-size: 11.5px; margin-bottom: 2px; }
.kg-n { font-size: 15px; line-height: 1.4; }
.kg-p { font-size: 13px; margin-top: 4px; }
.kg-m { font-size: 11.5px; }
@media (max-width: 1100px) { .kg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .kg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; margin-top: 22px; } .kg-n { font-size: 15px; } .kg-p, .kg-a, .kg-m { font-size: 12.5px; } }   /* the gallery on the phone: two pieces to a row (2026-11-02) */

/* ===== A piece's page and a design's page: the photo shown, the other photos under it with two arrows, a click to see it whole ===== */
#kpPiece .kq-wrap { box-sizing: border-box; width: 100%; max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; padding: 28px var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
#kpPiece:not([hidden]) { display: block !important; max-width: none !important; padding-inline: 0 !important; }
.kq-media { min-width: 0; }
.kq-main { position: relative; background: #FBF9F5; aspect-ratio: 1 / 1; overflow: hidden; }
.kq-main img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.kq-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(245, 241, 234, .92); color: var(--fg);
  display: grid; place-items: center; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); z-index: 2; }
.kq-prev { inset-inline-start: 14px; } .kq-next { inset-inline-end: 14px; }
.kq-zoom { position: absolute; bottom: 14px; inset-inline-end: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(245, 241, 234, .92); color: var(--fg); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.kq-zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.kq-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.kq-th { aspect-ratio: 1 / 1; border: 0; padding: 0; background-size: cover; background-position: center; background-color: #FBF9F5; cursor: pointer; opacity: .6; outline: 1px solid transparent; outline-offset: 2px; transition: opacity .2s; }
.kq-th:hover { opacity: .85; } .kq-th.on { opacity: 1; outline-color: var(--fg); }
#kpPiece .kq-info { padding: 0 !important; max-width: none !important; margin: 0 !important; position: static !important; }
#kpPiece .kq-t { font-size: 34px; line-height: 1.35; margin: 0 0 18px; }
.kq-n { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
#kpPiece .kq-desc { margin: 0 0 26px; } #kpPiece .kq-desc p { margin: 0 0 12px; line-height: 2; font-size: 15.5px; }
.kq-specs { margin: 0 0 28px; border-top: 1px solid var(--line); }
.kq-specs > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kq-specs dt { font-size: 13px; color: var(--muted); } .kq-specs dd { margin: 0; font-size: 14.5px; }
#kpPiece .kq-pr { font-size: 22px; margin: 0 0 18px; }
#kpPiece .kq-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
#kpPiece .kq-acts .kb { flex: 1 1 200px; }
.kq-code { font-size: 12px; color: var(--muted); margin: 22px 0 0; }
.kq-box { display: none !important; }
/* a design: one column — the photos, then its words under them, then its two buttons */
#kpPiece.kq-design .kq-wrap { grid-template-columns: minmax(0, 1fr); max-width: calc(860px + 2 * var(--gutter)); gap: 36px; }
#kpPiece.kq-design .kq-main { aspect-ratio: 3 / 2; } #kpPiece.kq-design .kq-main img { object-fit: cover; }
#kpPiece.kq-design .kq-thumbs { grid-template-columns: repeat(8, minmax(0, 1fr)); }
/* the photo whole */
.kq-lb { position: fixed; inset: 0; z-index: 200; background: rgba(20, 14, 10, .92); display: grid; place-items: center; }
.kq-lb[hidden] { display: none; }
.kq-lb img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.kq-lb .kq-arr { position: fixed; }
.kq-lb-x { position: fixed; top: 18px; inset-inline-end: 22px; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
@media (max-width: 899px) {
  #kpPiece .kq-wrap { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 12px; }
  .kq-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  #kpPiece.kq-design .kq-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #kpPiece .kq-t { font-size: 27px; }
  .kq-arr { width: 36px; height: 36px; font-size: 20px; }
}

/* ===== تصاميم ومفاهيم: small photos laid close and over each other; a panel springs from the one under the pointer ===== */
.kd-grid { box-sizing: border-box; width: 100%; max-width: calc(1180px + 2 * var(--gutter)); margin: 40px auto 0; padding: 30px calc(var(--gutter) + 30px) 60px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.kd { position: relative; display: block; margin: 0 -14px 34px; color: var(--fg); text-decoration: none; z-index: 1; transition: transform .35s ease, z-index 0s .35s; }
.kd:nth-child(2n) { transform: translateY(56px); }
.kd:nth-child(3n) { transform: translateY(-18px); }
.kd-img { display: block; aspect-ratio: 4 / 5; background-size: cover; background-position: center; background-color: #FBF9F5; border: 6px solid var(--stone); box-shadow: 0 14px 30px -18px rgba(30, 20, 15, .45); }
.kd-t { display: block; margin-top: 10px; padding-inline: 8px; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 15px; line-height: 1.4; }
.kd:hover, .kd:focus-visible, .kd.show { z-index: 5; transition: transform .35s ease, z-index 0s; }
.kd-pane { position: absolute; z-index: 3; top: 62%; inset-inline: -8px; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; background: #FBF9F5;
  box-shadow: 0 24px 48px -20px rgba(30, 20, 15, .45); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.kd:hover .kd-pane, .kd:focus-visible .kd-pane, .kd.show .kd-pane { opacity: 1; transform: none; pointer-events: auto; }
.kd-pane b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 400; font-size: 18px; }
.kd-d { font-size: 13px; line-height: 1.85; color: var(--fg); opacity: .85; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.kd-go { align-self: flex-start; font-size: 13.5px; border-bottom: 1px solid currentColor; padding-bottom: 2px; margin-top: 4px; }
.kd-go i { font-style: normal; }
@media (max-width: 1000px) { .kd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .kd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px calc(var(--gutter) + 10px) 50px; margin-top: 16px; }
  .kd { margin: 0 -8px 26px; }
  .kd:nth-child(2n) { transform: translateY(34px); } .kd:nth-child(3n) { transform: translateY(-10px); }
  .kd-img { border-width: 4px; }
  .kd-t { font-size: 12.5px; }
  .kd-pane { position: fixed; top: auto; bottom: 0; inset-inline: 0; padding: 22px var(--gutter) 26px; transform: translateY(100%); }
  .kd.show .kd-pane { transform: none; }
}

/* ===== Arrows: drawn, and each moves the way it points (the one on the right to the right, the one on the left to the left) ===== */
.kn-arr svg, .kn-car-arr svg, .kq-arr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kq-main .kq-r, .kq-lb .kq-r { right: 14px !important; left: auto !important; } .kq-main .kq-l, .kq-lb .kq-l { left: 14px !important; right: auto !important; }
.kq-lb .kq-r { right: 22px; } .kq-lb .kq-l { left: 22px; }
.kq-lb .kq-arr { top: 50%; }

/* ===== The library: a band of articles with no beginning — the one in the middle, its neighbours on both sides, going round without end ===== */
.kn-reads::before, .kn-reads::after { content: none !important; display: none !important; }
.kn-reads { padding: 0 !important; }
.kn-car-arr { inset-inline: auto !important; }
.kn-car-r { right: calc(19% - 23px) !important; left: auto !important; }
.kn-car-l { left: calc(19% - 23px) !important; right: auto !important; }
#kpPiece .kq-info, #kpPiece .kq-media { grid-column: auto !important; grid-row: auto !important; }

/* the first photo: the whole width, not the whole height */
html:not(.as-page) .kn-des-fr { aspect-ratio: 21 / 8.4 !important; }
@media (max-width: 720px) { html:not(.as-page) .kn-des-fr { aspect-ratio: 5 / 4 !important; } .kn-open-w { font-size: 38px; } .kn-open-t { padding-bottom: 20px !important; } }
@media (max-width: 720px) { .kd:nth-child(3n) { transform: none; } .kd:nth-child(2n) { transform: translateY(22px); } .kd { margin-bottom: 40px; } }

/* ===== One layout for both languages (2026-11-02): the page keeps the English arrangement in Arabic too — what sits on the left stays on the left.
   Only the words read in their own direction: each line of Arabic runs right to left inside the same place. ===== */
html[lang="ar"] :where(p, h1, h2, h3, h4, h5, h6, li, dt, dd, blockquote, figcaption, small, label, legend, summary, caption, td, th, a, button, span, em, strong, b, i, div, input, textarea, select, option) { unicode-bidi: plaintext; }
/* and each line starts where the English one starts (left), unless a place is centred or set to the right on purpose */
html { text-align: left; }

/* ===== The gallery on the homepage (2026-11-02): smaller photos and words, then six of its newest pieces, three over three, close beneath them ===== */
.kn > .kn-gal { padding: 72px 0 80px !important; }
.kn-gal .kn-gx { max-width: 760px; margin-inline: auto !important; padding-inline: 0 !important; box-sizing: content-box; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 56px !important; }
.kn-gal .kn-gx .kn-pair { width: 100%; max-width: 360px; justify-self: start; margin: 0 !important; }
.kn-gal .kn-gx-h { font-size: 28px !important; line-height: 1.35 !important; margin: 0 0 10px !important; }
.kn-gx-p { margin: 0 0 28px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.kn-six { max-width: 760px; margin: 48px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 22px; }
.kn-six-i { display: flex; flex-direction: column; min-width: 0; color: var(--fg); text-decoration: none; }
.kn-six-ph { display: block; aspect-ratio: 1 / 1; background-size: cover; background-position: center; background-color: rgba(37, 27, 22, .08); margin-bottom: 10px; transition: opacity .3s; }
.kn-six-i:hover .kn-six-ph { opacity: .9; }
.kn-six-n { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 15.5px; line-height: 1.4; }
.kn-six-a { font-size: 12.5px; color: #5A2D1F; margin-top: 2px; }
.kn-six-p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 720px) {
  .kn > .kn-gal { padding: 60px 0 68px !important; }
  .kn-gal .kn-gx { grid-template-columns: minmax(0, 1fr) !important; gap: 26px !important; }
  .kn-gal .kn-gx .kn-pair { max-width: none; width: 88%; justify-self: start; margin: 0 !important; }
  .kn-gal .kn-gx-h { font-size: 24px !important; }
  .kn-gx-p { margin-bottom: 20px; }
  .kn-six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; margin-top: 44px; }
  .kn-six-n { font-size: 15px; }
}

/* ===== The wax seal (2026-11-02): Kalokathia's seal hangs from the top bar on the left, as a maker's mark; the name stays in the middle,
   the language and the menu on the right ===== */
.nav-seal { position: fixed; left: var(--seal-x, 24px); top: 12px; z-index: 1200; display: block; width: 96px; aspect-ratio: 1; line-height: 0;
  filter: drop-shadow(0 8px 14px rgba(30, 16, 8, .28)); transition: width .35s ease, top .35s ease; }
.nav-seal picture, .nav-seal img { display: block; width: 100%; height: auto; }
.nav-seal .seal-at { position: absolute; left: 16%; top: 15%; width: 68%; aspect-ratio: 680.2 / 625.5; pointer-events: none; }
.nav-seal:hover { filter: drop-shadow(0 10px 16px rgba(30, 16, 8, .34)); }
/* once the page moves (or on any inner page) the seal stays, smaller, always in its corner */
html.seal-sm .nav-seal { width: 60px; top: 8px; }
.nav .brand .mark { display: none !important; }
.nav .tools { justify-content: flex-end !important; gap: 22px; }
.nav .tools .menu-btn { order: 3 !important; }
.nav .tools .lang-btn { order: 2 !important; }
.menu.lg { inset-inline-start: auto !important; inset-inline-end: 16px !important; }
@media (min-width: 900px) { .menu.lg { inset-inline-end: max(16px, calc((100vw - 1180px) / 2)) !important; } }
@media (max-width: 720px) {
  .nav-seal { width: 56px; top: 8px; }
  html.seal-sm .nav-seal { width: 44px; top: 7px; }
  .nav .tools { gap: 12px; }
}
@media (max-width: 820px) { .kn-gal .kn-gx { margin-inline: var(--gutter, 20px) !important; } .kn-gal .kn-six { margin-inline: 0 !important; } }

/* ===== The gallery on the homepage, in one line (2026-11-02): its six newest pieces on the left, then the two photos, then the words ===== */
.kn-gal .kn-gx.kn-gx3 { max-width: 1400px !important; box-sizing: border-box; padding-inline: var(--gutter, 24px) !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .7fr) minmax(0, 1fr) !important; gap: 56px !important; align-items: center; }
/* the words sit between the pieces and the photos */
.kn-gx3 .kn-six { order: 1; } .kn-gx3 .kn-gx-t { order: 2; justify-self: center; } .kn-gal .kn-gx3 .kn-pair { order: 3; }
.kn-gx3 .kn-six { max-width: none; margin: 0 !important; gap: 22px 14px; }
.kn-gx3 .kn-six-n { font-size: 14px; }
.kn-gx3 .kn-six-a, .kn-gx3 .kn-six-p { font-size: 12px; }
.kn-gx3 .kn-six-ph { margin-bottom: 8px; }
.kn-gal .kn-gx3 .kn-pair { max-width: none; justify-self: stretch; }
@media (max-width: 1100px) {
  .kn-gal .kn-gx.kn-gx3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  .kn-gx3 .kn-six { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 720px) {
  .kn-gal .kn-gx.kn-gx3 { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; margin-inline: 0 !important; }
  /* on the phone: the two photos, then the words, then the pieces */
  .kn-gal .kn-gx3 .kn-pair { order: 1; width: 88%; justify-self: start; } .kn-gx3 .kn-gx-t { order: 2; justify-self: start; } .kn-gx3 .kn-six { order: 3; grid-column: auto; }
}

/* the library band on the homepage: no dots under the articles (2026-11-02) */
.kn-dots { display: none !important; }
/* «رجوع» on inner pages sits just after the seal, never under it */
.lyr-back, .wv > .lyr-back { inset-inline-start: calc(var(--seal-x, 16px) + 76px) !important; }
@media (max-width: 720px) { .lyr-back, .wv > .lyr-back { inset-inline-start: calc(var(--seal-x, 16px) + 56px) !important; } }

/* ===== A piece of the gallery, drawn to the exact measures of the owner's two drawings (2026-11-02).
   On a computer one unit (--d) is one pixel of the 1215-pixel-wide drawing; on the phone (--u) one pixel of the 852-pixel-wide drawing.
   So the page keeps the drawing's proportions on every screen: nothing grows beyond them. ===== */
html:has(#kpPiece.kz:not([hidden])) { --d: calc(100vw / 1215); --u: calc(100vw / 852); }
#kpPiece.kz:not([hidden]) { display: block !important; max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; background: #EEE4D5; color: #2A1F19; }
#kpPiece.kz { --ink: #2A1F19; --brown: #4B2B1F; --soft: #5A4A3F; --line: rgba(74, 42, 30, .3); --card: #E7DCCA; }
#kpPiece.kz svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
#kpPiece.kz .kz-mk { stroke: none; }
#kpPiece.kz .kq-bar { display: none !important; }
.kz-page { position: relative; display: grid; grid-template-columns: calc(222 * var(--d)) minmax(0, 1fr); }
.kz-c-ph { display: none; }
html[lang="ar"] .kz-body { text-align: right; }

/* -- the side column -- */
.kz-side { position: relative; overflow: hidden; background: #2A1C15; color: #EFE3D2; min-height: 100vh; }
.kz-side-ph { position: absolute; left: 0; right: 0; top: calc(92 * var(--d)); height: calc(900 * var(--d)); background-size: cover; background-position: center top; }
.kz-side::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100 * var(--d)); z-index: 1; background: linear-gradient(180deg, #3A2A20 0%, rgba(58, 42, 32, 0) 100%); }
.kz-side::after { content: ""; position: absolute; left: 0; right: 0; top: calc(560 * var(--d)); bottom: 0; background: linear-gradient(180deg, rgba(42, 28, 21, 0) 0%, rgba(42, 28, 21, .78) calc(250 * var(--d)), #2A1C15 calc(440 * var(--d))); }
.kz-side-in { position: absolute; inset: 0; z-index: 2; }
.kz-q { position: absolute; left: calc(20 * var(--d)); right: calc(20 * var(--d)); top: calc(806 * var(--d)); margin: 0; text-align: center;
  font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: calc(16 * var(--d)); line-height: calc(28.5 * var(--d)); color: #F2E7D7; }
.kz-orn { position: absolute; left: calc(37 * var(--d)); right: calc(32 * var(--d)); top: calc(938 * var(--d)); display: flex; align-items: center; gap: calc(12 * var(--d)); margin: 0; }
.kz-orn i { flex: 1; height: 1px; background: rgba(239, 227, 210, .45); }
#kpPiece.kz .kz-orn .kz-mk { width: calc(30 * var(--d)); height: auto; fill: #D7B48A; }
.kz-nl { position: absolute; left: calc(20 * var(--d)); top: calc(995 * var(--d)); width: calc(185 * var(--d)); height: calc(185 * var(--d)); box-sizing: border-box;
  border: 1px solid rgba(239, 227, 210, .45); padding: calc(30 * var(--d)) calc(16 * var(--d)) 0; text-align: center; }
.kz-nl h3 { margin: 0 0 calc(10 * var(--d)); padding-bottom: calc(8 * var(--d)); font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 500; font-size: calc(14.5 * var(--d)); color: #F4EADC;
  background: linear-gradient(rgba(239, 227, 210, .4), rgba(239, 227, 210, .4)) center bottom / calc(70 * var(--d)) 1px no-repeat; }
.kz-nl > p { margin: 0 0 calc(18 * var(--d)); font-size: calc(10.5 * var(--d)); line-height: 1.55; color: rgba(239, 227, 210, .75); }
.kz-nl-in { display: flex; align-items: center; height: calc(35 * var(--d)); border: 1px solid rgba(239, 227, 210, .5); border-radius: calc(4 * var(--d)); }
html[lang="ar"] .kz-nl-in { flex-direction: row-reverse; }
.kz-nl-in input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; padding: 0 calc(10 * var(--d)); font: inherit; font-size: calc(10.5 * var(--d)); color: #F4EADC; outline: none; }
html[lang="ar"] .kz-nl-in input { text-align: right; }
.kz-nl-in input::placeholder { color: rgba(239, 227, 210, .55); }
.kz-nl-in button { width: calc(32 * var(--d)); height: 100%; background: none; border: 0; color: #F4EADC; cursor: pointer; display: grid; place-items: center; }
.kz-nl-in button svg { width: calc(13 * var(--d)); height: calc(13 * var(--d)); }
html[lang="ar"] .kz-nl-in button svg { transform: scaleX(-1); }
.kz-nl-msg { font-size: calc(10.5 * var(--d)); line-height: 1.6; margin: calc(8 * var(--d)) 0 0; color: #F1C9A8; } .kz-nl-msg.ok { color: #F4EADC; }

/* -- the body: its measures from the drawing, minus the side column (222) -- */
.kz-body { min-width: 0; padding: calc(95 * var(--d)) calc(23 * var(--d)) calc(70 * var(--d)) calc(40 * var(--d)); }
.kz-crumb { display: flex; gap: calc(10 * var(--d)); align-items: center; font-size: calc(12.5 * var(--d)); color: var(--soft); height: calc(30 * var(--d)); margin: 0 0 calc(5 * var(--d)); }
html[lang="ar"] .kz-crumb { flex-direction: row-reverse; }
.kz-crumb a { color: inherit; text-decoration: none; } .kz-crumb a:hover { text-decoration: underline; }
.kz-crumb i { font-style: normal; font-size: calc(11 * var(--d)); opacity: .7; }
.kz-top { display: grid; grid-template-columns: calc(556 * var(--d)) minmax(0, 1fr); column-gap: calc(34 * var(--d)); align-items: start; }
.kz-main-ph { position: relative; height: calc(418 * var(--d)); overflow: hidden; background: #DCCFBC; }
.kz-main-ph img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.kz-zoom { position: absolute; left: calc(20 * var(--d)); bottom: calc(10 * var(--d)); width: calc(30 * var(--d)); height: calc(30 * var(--d)); padding: 0; display: grid; place-items: center; background: none; border: 0; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.kz-zoom svg { width: 100%; height: 100%; }
.kz-arr, .kz-count { display: none; }
.kz-thumbs { display: flex; align-items: center; margin-top: calc(12 * var(--d)); height: calc(75 * var(--d)); }
.kz-ta { width: calc(30 * var(--d)); height: calc(30 * var(--d)); padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.kz-ta svg { width: calc(20 * var(--d)); height: calc(20 * var(--d)); }
.kz-tr { flex: 1; display: flex; justify-content: center; gap: calc(17 * var(--d)); height: 100%; }
.kz-tr .kq-th { width: calc(107 * var(--d)); height: 100%; flex: none; border: 0; padding: 0; background-size: cover; background-position: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.kz-tr .kq-th.on { outline: 1px solid var(--ink); outline-offset: calc(2 * var(--d)); }

.kz-info { padding-top: calc(38 * var(--d)); }
.kz-sec { display: flex; align-items: center; gap: calc(14 * var(--d)); margin: 0 0 calc(14 * var(--d)); font-size: calc(15 * var(--d)); color: #4E3D32; }
.kz-sec i { height: 1px; background: var(--line); flex: 0 0 calc(98 * var(--d)); }
.kz-sec span { flex: none; }
.kz-sec i:first-child { flex: 1; }
html[lang="en"] .kz-sec { flex-direction: row-reverse; }
.kz-t { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 600; font-size: calc(42 * var(--d)); line-height: 1.25; margin: 0 0 calc(22 * var(--d)); color: var(--ink); }
.kz-line { font-style: italic; font-size: calc(15.5 * var(--d)); line-height: 1.6; color: var(--soft); margin: 0 0 calc(50 * var(--d)); }
.kz-pr { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: calc(33 * var(--d)); line-height: 1.2; text-align: center; margin: 0 0 calc(16 * var(--d)); color: var(--ink); }
.kz-st { display: none; }
.kz-acts { display: flex; flex-direction: column; align-items: center; gap: calc(8 * var(--d)); margin: 0 0 calc(36 * var(--d)); }
.kz-btn { display: inline-flex; align-items: center; justify-content: center; gap: calc(12 * var(--d)); width: calc(250 * var(--d)); height: calc(50 * var(--d)); padding: 0; border: 0; border-radius: calc(2 * var(--d));
  background: var(--brown); color: #F4EADC; font: inherit; font-size: calc(15 * var(--d)); cursor: pointer; box-shadow: 0 calc(4 * var(--d)) calc(10 * var(--d)) calc(-4 * var(--d)) rgba(40, 20, 10, .55); }
html[lang="ar"] .kz-btn { flex-direction: row-reverse; }
.kz-btn:hover { background: #5B3627; }
.kz-btn svg { width: calc(20 * var(--d)); height: calc(20 * var(--d)); }
.kz-gift { background: none; border: 0; font: inherit; font-size: calc(13 * var(--d)); color: var(--ink); text-decoration: underline; text-underline-offset: .5em; cursor: pointer; }
.kz-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line); padding-top: calc(14 * var(--d)); }
.kz-f { display: flex; flex-direction: column; align-items: center; text-align: center; gap: calc(3 * var(--d)); padding: calc(6 * var(--d)) calc(6 * var(--d)) calc(12 * var(--d)); font-size: calc(13 * var(--d)); color: #4E3D32; }
.kz-f + .kz-f { border-left: 1px solid var(--line); }
.kz-f svg { width: calc(24 * var(--d)); height: calc(24 * var(--d)); margin-bottom: calc(7 * var(--d)); color: var(--ink); }
.kz-f b { font-weight: 400; font-size: calc(14 * var(--d)); color: var(--ink); }

/* -- story · artist · a close photo -- */
.kz-row { display: grid; grid-template-columns: calc(316 * var(--d)) calc(234 * var(--d)) minmax(0, 1fr); column-gap: calc(11 * var(--d)); margin-top: calc(47 * var(--d)); height: calc(286 * var(--d)); }
html[lang="en"] .kz-row { grid-template-columns: calc(316 * var(--d)) calc(234 * var(--d)) minmax(0, 1fr); }
.kz-card { background: var(--card); box-shadow: 0 1px calc(3 * var(--d)) rgba(60, 40, 25, .12); padding: calc(18 * var(--d)) calc(22 * var(--d)) calc(18 * var(--d)); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.kz-card h2 { margin: 0 0 calc(18 * var(--d)); padding-bottom: calc(6 * var(--d)); align-self: flex-end; border-bottom: 1px solid var(--ink); font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 500; font-size: calc(20 * var(--d)); line-height: 1.3; color: var(--ink); }
html[lang="en"] .kz-card h2 { align-self: flex-start; }
.kz-story-t { flex: 1; font-size: calc(12 * var(--d)); line-height: calc(24 * var(--d)); color: #3D2F26; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.kz-story-t p { margin: 0; }
.kz-story.open .kz-story-t { -webkit-line-clamp: unset; display: block; }
.kz-more { display: inline-flex; align-items: center; gap: calc(8 * var(--d)); align-self: flex-end; background: none; border: 0; padding: 0 0 calc(4 * var(--d)); border-bottom: 1px solid currentColor; font: inherit; font-size: calc(12.5 * var(--d)); color: var(--ink); text-decoration: none; cursor: pointer; }
html[lang="ar"] .kz-more { flex-direction: row-reverse; }
html[lang="en"] .kz-more { align-self: flex-start; }
html[lang="en"] .kz-more svg { transform: scaleX(-1); }
.kz-more svg { width: calc(13 * var(--d)); height: calc(13 * var(--d)); }
.kz-story { padding-inline: calc(22 * var(--d)) calc(22 * var(--d)); }
.kz-story .kz-more { margin-top: calc(10 * var(--d)); }
.kz-art { align-items: flex-end; }
html[lang="en"] .kz-art { align-items: flex-start; }
.kz-art-ph { display: block; width: calc(129 * var(--d)); height: calc(127 * var(--d)); background-size: cover; background-position: center; margin-bottom: calc(20 * var(--d)); flex: none; }
.kz-art-t { display: flex; flex-direction: column; align-items: flex-end; gap: calc(2 * var(--d)); }
html[lang="en"] .kz-art-t { align-items: flex-start; }
.kz-art-t small { display: none; }
.kz-art-t b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 500; font-size: calc(15 * var(--d)); color: var(--ink); }
.kz-art-t > span { font-size: calc(12 * var(--d)); color: var(--soft); }
.kz-art .kz-more { margin-top: calc(14 * var(--d)); border-bottom: 0; font-size: calc(12 * var(--d)); }
.kz-det { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.kz-det-ph { display: block; height: calc(230 * var(--d)); background-size: cover; background-position: center; box-shadow: 0 1px calc(3 * var(--d)) rgba(60, 40, 25, .15); }
.kz-det-ph.kz-det-zoom { background-size: 210%; background-position: 50% 62%; }
.kz-det figcaption { font-size: calc(10 * var(--d)); color: var(--soft); margin-top: calc(10 * var(--d)); padding-bottom: calc(8 * var(--d)); border-bottom: 1px solid var(--line); }
.kz-moretxt { background: var(--card); margin-top: calc(11 * var(--d)); padding: calc(22 * var(--d)) calc(26 * var(--d)); font-size: calc(13 * var(--d)); line-height: 1.9; }
.kz-mt-in h3 { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 500; font-size: calc(16 * var(--d)); margin: calc(14 * var(--d)) 0 calc(6 * var(--d)); }
.kz-lead { margin: 0 0 calc(6 * var(--d)); }
.kz-cert { display: flex; align-items: center; gap: calc(8 * var(--d)); margin: 0; }
html[lang="ar"] .kz-cert { flex-direction: row-reverse; }
.kz-cert img { width: calc(20 * var(--d)); height: calc(20 * var(--d)); flex: none; }
.kz-mt-in .kq-steps { margin: 0 0 calc(8 * var(--d)); padding: 0 1.2em; }
html[lang="ar"] .kz-mt-in .kq-steps { direction: rtl; }
.kz-mt-in .kq-more, .kz-ask { margin: 0; color: var(--soft); } .kz-ask a, .kz-mt-in .kq-more a { color: var(--ink); }

/* -- other pieces -- */
.kz-rel { margin-top: calc(30 * var(--d)); }
.kz-rel h2 { position: relative; margin: 0 0 calc(18 * var(--d)); padding-bottom: calc(14 * var(--d)); font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 500; font-size: calc(20 * var(--d)); color: var(--ink); }
.kz-rel h2 i { display: none; }
.kz-rel h2::after { content: ""; position: absolute; bottom: 0; right: 0; width: calc(51 * var(--d)); height: 1px; background: var(--ink); }
html[lang="en"] .kz-rel h2::after { right: auto; left: 0; }
.kz-rel-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: calc(18 * var(--d)); padding-inline: calc(4 * var(--d)) 0; }
html[lang="ar"] .kz-rel-row { direction: rtl; }
.kz-rel-i { display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--d)); color: var(--ink); text-decoration: none; min-width: 0; }
.kz-rel-ph { display: block; width: 100%; height: calc(175 * var(--d)); background-size: cover; background-position: center; background-color: #DCCFBC; }
.kz-rel-n { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: calc(14.5 * var(--d)); }

/* -- the top bar and the seal over this page, on a computer (as drawn: they start after the side column) -- */
@media (min-width: 721px) {
  html:has(#kpPiece.kz:not([hidden])) .nav { left: calc(222 * var(--d)) !important; right: 0 !important; width: auto !important; background: #EEE4D5 !important; border-bottom: 1px solid rgba(74, 42, 30, .22) !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-inner { max-width: none !important; min-height: 0 !important; height: calc(75 * var(--d)); padding: 0 calc(23 * var(--d)) 0 calc(48 * var(--d)) !important; gap: 0 !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .brand { position: static !important; transform: none !important; translate: none !important; margin: 0 !important; padding: 0 !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .brand > span { font-family: 'Cinzel', Georgia, 'Times New Roman', var(--serif) !important; font-weight: 400 !important; font-size: calc(27 * var(--d)) !important; letter-spacing: .36em !important; color: #4A2418 !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-right { flex: 1; justify-content: flex-end !important; gap: 0 !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-links { display: flex !important; align-items: stretch; gap: 0 !important; height: calc(75 * var(--d)); margin: 0 calc(110 * var(--d)) 0 0 !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-links a { display: flex; align-items: center; padding: 0 calc(21 * var(--d)) !important; font-size: calc(15.5 * var(--d)) !important; letter-spacing: 0 !important; text-transform: none !important; color: #2A1F19 !important; border-bottom: 2px solid transparent !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-links a:last-child { border-bottom-color: #4B2B1F !important; padding: 0 calc(20 * var(--d)) !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .tools { flex: 0 0 auto !important; display: flex !important; align-items: center; gap: calc(22 * var(--d)) !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .tools .icon-btn { width: auto !important; height: auto !important; padding: 0 !important; font-size: calc(15 * var(--d)) !important; color: #2A1F19 !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .menu-btn { width: calc(27 * var(--d)) !important; height: calc(20 * var(--d)) !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-row { display: none !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav-seal { left: calc(113 * var(--d)) !important; top: calc(10 * var(--d)) !important; width: calc(72 * var(--d)) !important; }
  html:has(#kpPiece.kz:not([hidden])) .lyr-back { display: none !important; }
}

/* -- the phone: one unit is one pixel of the 852-pixel drawing (its status bar, 85 px, is the phone's own) -- */
@media (max-width: 720px) {
  .kz-page { grid-template-columns: minmax(0, 1fr); }
  .kz-side, .kz-row .kz-det, .kz-ta { display: none !important; }
  .kz-c-pc { display: none; } .kz-c-ph { display: inline; }
  .kz-body { position: relative; padding: calc(92 * var(--u)) 0 calc(40 * var(--u)); }
  .kz-crumb { position: absolute; z-index: 2; top: calc(92 * var(--u)); left: 0; right: 0; height: calc(55 * var(--u)); margin: 0; padding: 0 calc(47 * var(--u)); gap: calc(14 * var(--u)); background: rgba(236, 226, 211, .82); font-size: calc(20 * var(--u)); }
  .kz-crumb i { font-size: calc(18 * var(--u)); }
  .kz-crumb .kz-c-last { display: none; }
  .kz-top { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .kz-main-ph { height: calc(469 * var(--u)); }
  .kz-arr { display: grid; position: absolute; top: calc(262 * var(--u)); translate: 0 -50%; width: calc(66 * var(--u)); height: calc(66 * var(--u)); padding: 0; border-radius: 50%; border: 0; background: rgba(40, 30, 24, .55); color: #fff; place-items: center; cursor: pointer; }
  .kz-arr svg { width: calc(28 * var(--u)); height: calc(28 * var(--u)); } .kz-arr-l { left: calc(30 * var(--u)); } .kz-arr-r { right: calc(30 * var(--u)); }
  .kz-zoom { left: calc(28 * var(--u)); bottom: calc(18 * var(--u)); width: calc(42 * var(--u)); height: calc(42 * var(--u)); }
  .kz-count { display: block; position: absolute; right: calc(28 * var(--u)); bottom: calc(18 * var(--u)); padding: calc(4 * var(--u)) calc(16 * var(--u)); border-radius: calc(20 * var(--u)); background: rgba(40, 30, 24, .5); color: #fff; font-size: calc(20 * var(--u)); }
  .kz-thumbs { margin: calc(11 * var(--u)) 0 0; height: calc(95 * var(--u)); padding: 0 calc(58 * var(--u)); }
  .kz-tr { justify-content: space-between; gap: 0; }
  .kz-tr .kq-th { width: calc(170 * var(--u)); border-radius: calc(4 * var(--u)); }
  .kz-tr .kq-th.on { outline: calc(2 * var(--u)) solid var(--ink); outline-offset: 0; }
  .kz-info { padding: calc(36 * var(--u)) calc(58 * var(--u)) 0; text-align: center !important; }
  .kz-sec { justify-content: center; gap: calc(22 * var(--u)); margin: 0 0 calc(8 * var(--u)); font-size: calc(21 * var(--u)); }
  .kz-sec i, .kz-sec i:first-child { flex: 0 0 calc(155 * var(--u)); }
  .kz-t { font-size: calc(46 * var(--u)); margin: 0 0 calc(6 * var(--u)); }
  .kz-line { font-style: normal; font-size: calc(22 * var(--u)); margin: 0 0 calc(14 * var(--u)); color: #3D2F26; }
  .kz-pr { font-size: calc(46 * var(--u)); margin: 0 0 calc(8 * var(--u)); }
  .kz-st { display: inline-flex; align-items: center; gap: calc(12 * var(--u)); margin: 0 0 calc(14 * var(--u)); padding: calc(3 * var(--u)) calc(24 * var(--u)); border-radius: calc(20 * var(--u)); background: #56634F; color: #EEF0E6; font-size: calc(20 * var(--u)); }
  html[lang="ar"] .kz-st { flex-direction: row-reverse; }
  .kz-st span { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: currentColor; }
  .kz-st-reserved, .kz-st-owned { background: #7A6B5E; }
  .kz-acts { margin: 0 0 calc(18 * var(--u)); }
  .kz-btn { width: calc(520 * var(--u)); height: calc(60 * var(--u)); gap: calc(16 * var(--u)); font-size: calc(22 * var(--u)); border-radius: calc(4 * var(--u)); }
  .kz-btn svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
  .kz-gift { font-size: calc(19 * var(--u)); }
  .kz-facts { margin: 0 calc(-58 * var(--u)) 0; padding: calc(22 * var(--u)) calc(58 * var(--u)) 0; border-top: 0; position: relative; }
  .kz-facts::before { content: ""; position: absolute; top: 0; left: calc(58 * var(--u)); right: calc(58 * var(--u)); height: 1px; background: var(--line); }
  .kz-f { padding: calc(4 * var(--u)) calc(4 * var(--u)); gap: calc(2 * var(--u)); font-size: calc(18 * var(--u)); }
  .kz-f svg { width: calc(32 * var(--u)); height: calc(32 * var(--u)); margin-bottom: calc(6 * var(--u)); }
  .kz-f b { font-size: calc(18 * var(--u)); color: #4E3D32; }
  .kz-f-gem { order: -1; }
  .kz-f-box { order: 1; } .kz-f-mat { order: 2; }
  .kz-f + .kz-f { border-left: 0; }
  .kz-f-box, .kz-f-mat { border-left: 1px solid var(--line) !important; }
  .kz-row { display: block; height: auto; margin: calc(44 * var(--u)) 0 0; padding: 0 calc(47 * var(--u)) 0 calc(40 * var(--u)); }
  .kz-card { box-shadow: none; }
  .kz-story { position: relative; background: none; padding: 0; overflow: visible; min-height: calc(150 * var(--u)); }
  .kz-story::before { content: ""; position: absolute; left: calc(-20 * var(--u)); top: calc(-10 * var(--u)); width: calc(350 * var(--u)); height: calc(160 * var(--u)); background: var(--kz-det-bg) center / cover; opacity: .32; filter: sepia(.4);
    -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); pointer-events: none; }
  .kz-story h2 { position: relative; display: flex; align-items: center; gap: calc(18 * var(--u)); align-self: stretch; justify-content: flex-start; border: 0; padding: 0; margin: calc(-20 * var(--u)) 0 calc(10 * var(--u)); font-size: calc(26 * var(--u)); }
  html[lang="ar"] .kz-story h2 { flex-direction: row-reverse; }
  .kz-story h2::after { content: ""; flex: 0 0 calc(152 * var(--u)); height: 1px; background: var(--line); }
  .kz-story-t { position: relative; font-size: calc(18 * var(--u)); line-height: calc(33 * var(--u)); color: #2A1F19; -webkit-line-clamp: 3; padding-inline-start: calc(20 * var(--u)); }
  html[lang="ar"] .kz-story-t { padding: 0 0 0 calc(20 * var(--u)); }
  .kz-story .kz-more { display: none; }
  .kz-art { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) calc(202 * var(--u)); align-items: stretch; height: calc(113 * var(--u)); margin-top: calc(22 * var(--u)); padding: 0; background: var(--card); overflow: hidden; }
  .kz-art h2 { display: none; }
  .kz-art-ph { grid-column: 2; grid-row: 1; width: 100%; height: 100%; margin: 0; }
  .kz-art-t { grid-column: 1; grid-row: 1; justify-content: center; padding: 0 calc(108 * var(--u)) 0 calc(20 * var(--u)); gap: calc(4 * var(--u)); }
  html[lang="en"] .kz-art-t { padding: 0 calc(20 * var(--u)) 0 calc(40 * var(--u)); }
  .kz-art-t small { display: block; font-size: calc(17 * var(--u)); color: var(--soft); }
  .kz-art-t b { font-size: calc(22 * var(--u)); }
  .kz-art-t > span { display: none; }
  .kz-art .kz-more { margin-top: calc(4 * var(--u)); font-size: calc(15 * var(--u)); gap: calc(10 * var(--u)); }
  .kz-art .kz-more svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
  .kz-moretxt { margin: calc(14 * var(--u)) calc(40 * var(--u)) 0; padding: calc(24 * var(--u)); font-size: calc(19 * var(--u)); }
  .kz-mt-in h3 { font-size: calc(22 * var(--u)); }
  .kz-cert img { width: calc(28 * var(--u)); height: calc(28 * var(--u)); }
  .kz-rel { margin: calc(30 * var(--u)) 0 0; padding: 0 calc(45 * var(--u)); }
  .kz-rel h2 { display: flex; align-items: center; justify-content: center; gap: calc(26 * var(--u)); padding: 0; margin: 0 0 calc(14 * var(--u)); font-size: calc(24 * var(--u)); }
  .kz-rel h2 i { display: block; flex: 1; height: 1px; background: var(--line); }
  .kz-rel h2::after { display: none; }
  .kz-rel-row { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: calc(26 * var(--u)); padding: 0; }
  .kz-rel-3 { display: none; }
  .kz-rel-i { gap: calc(14 * var(--u)); }
  .kz-rel-ph { height: calc(155 * var(--u)); }
  .kz-rel-n { font-size: calc(17 * var(--u)); }
  /* the top bar as drawn */
  html:has(#kpPiece.kz:not([hidden])) .nav { background: #EEE4D5 !important; border-bottom: 1px solid rgba(74, 42, 30, .25) !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-inner { min-height: 0 !important; height: calc(92 * var(--u)); padding: 0 calc(46 * var(--u)) 0 calc(48 * var(--u)) !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .brand > span { font-family: 'Cinzel', Georgia, 'Times New Roman', var(--serif) !important; font-weight: 400 !important; font-size: calc(30 * var(--u)) !important; letter-spacing: .3em !important; color: #3A1F15 !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .tools .lang-btn { font-size: calc(24 * var(--u)) !important; color: #2A1F19 !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-row { display: none !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav-seal { left: calc(48 * var(--u)) !important; top: calc(4 * var(--u)) !important; width: calc(85 * var(--u)) !important; }
  html:has(#kpPiece.kz:not([hidden])) .lyr-back { display: none !important; }
}
#kpPiece.kz .kz-main-ph { width: 100%; aspect-ratio: auto !important; }
#kpPiece.kz .kz-story-t .kq-desc, #kpPiece.kz .kz-story-t .kq-desc p { margin: 0 !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important; }
#kpPiece.kz .kz-side .kname, #kpPiece.kz .kz-side em { color: inherit !important; font-style: normal; }
.kz-side-ph { top: 0; height: calc(990 * var(--d)); }
.kz-side::before { display: none; }
/* closer to white (2026-11-02) */
#kpPiece.kz:not([hidden]) { background: #F3F1EC; }
#kpPiece.kz { --card: #F0EBE3; }
@media (min-width: 721px) { html:has(#kpPiece.kz:not([hidden])) .nav { background: #F3F1EC !important; } }
@media (max-width: 720px) { html:has(#kpPiece.kz:not([hidden])) .nav { background: #F3F1EC !important; } .kz-crumb { background: rgba(248, 245, 240, .84); } }
@media (max-width: 720px) { html[lang="ar"] #kpPiece.kz .kz-story-t { padding: 0 0 0 calc(320 * var(--u)); } html[lang="en"] #kpPiece.kz .kz-story-t { padding: 0 calc(320 * var(--u)) 0 0; } #kpPiece.kz .kz-story-t { -webkit-line-clamp: 5; } }
@media (max-width: 720px) {
  html[lang="en"] #kpPiece.kz .kz-story::before { left: auto; right: calc(-20 * var(--u)); -webkit-mask-image: linear-gradient(270deg, #000 40%, transparent); mask-image: linear-gradient(270deg, #000 40%, transparent); }
  html[lang="en"]:has(#kpPiece.kz:not([hidden])) .nav .brand > span { letter-spacing: .22em !important; }
  html[lang="en"]:has(#kpPiece.kz:not([hidden])) .nav .tools .lang-btn { font-size: calc(21 * var(--u)) !important; }
}

/* ===== The piece page, calm on every screen (2026-11-02): words, buttons and icons keep fixed sizes (one unit ≈ one pixel of the drawing);
   only the photos and the spaces between the columns grow with the screen. The content stops at 1320 px; the side column stays 250 px. ===== */
html:has(#kpPiece.kz:not([hidden])) { --d: 1px; --u: min(calc(100vw / 852), .5px); }
@media (min-width: 721px) and (max-width: 1180px) { html:has(#kpPiece.kz:not([hidden])) { --d: .92px; } }
.kz-page { grid-template-columns: 250px minmax(0, 1fr); }
.kz-body { padding: 100px clamp(24px, 3vw, 48px) 72px; }
.kz-body > * { max-width: 1320px; margin-inline: auto; }
.kz-top { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); column-gap: clamp(28px, 3vw, 56px); }
.kz-main-ph { height: auto; aspect-ratio: 4 / 3 !important; max-height: calc(100vh - 290px); min-height: 340px; }
.kz-tr .kq-th { width: auto; flex: 0 1 112px; aspect-ratio: 107 / 75; height: auto; }
.kz-thumbs { height: auto; }
.kz-info { max-width: 420px; justify-self: end; width: 100%; padding-top: 30px; }
html[lang="en"] .kz-info { justify-self: start; }
.kz-pr { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 26px; font-weight: 500; }
.kz-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) minmax(0, 1.25fr); height: auto; column-gap: 12px; margin-top: 48px; }
.kz-card { min-height: 270px; }
.kz-det-ph { height: auto; aspect-ratio: 344 / 230; }
.kz-rel-row { column-gap: 18px; }
.kz-rel-ph { height: auto; aspect-ratio: 213 / 175; }
.kz-side-ph { height: 990px; }
.kz-q { top: 806px; font-size: 16px; line-height: 28.5px; left: 22px; right: 22px; }
.kz-orn { top: 938px; left: 37px; right: 32px; }
.kz-nl { top: 995px; left: 22px; width: 206px; height: auto; padding-bottom: 22px; }
/* the bar over the page: fixed sizes, the seal at 70 px */
@media (min-width: 721px) {
  html:has(#kpPiece.kz:not([hidden])) .nav { left: 250px !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-inner { height: 72px; padding: 0 clamp(24px, 3vw, 48px) !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .brand > span { font-size: 24px !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-links { height: 72px; margin-right: clamp(40px, 6vw, 110px) !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-links a { font-size: 15px !important; padding: 0 20px !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav-seal { left: 90px !important; top: 10px !important; width: 70px !important; }
}
/* below 1000 px the side column gives its room to the piece */
@media (min-width: 721px) and (max-width: 999px) {
  .kz-page { grid-template-columns: minmax(0, 1fr); } .kz-side { display: none; }
  html:has(#kpPiece.kz:not([hidden])) .nav { left: 0 !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-inner { padding-left: 110px !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav-seal { left: 24px !important; width: 60px !important; }
  .kz-top { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); }
}
@media (max-width: 720px) {
  .kz-page { grid-template-columns: minmax(0, 1fr); }
  .kz-body { padding: calc(92 * var(--u)) 0 calc(40 * var(--u)); }
  .kz-body > * { max-width: none; }
  .kz-main-ph { aspect-ratio: auto !important; height: calc(469 * var(--u)); max-height: none; min-height: 0; }
  .kz-tr .kq-th { flex: none; width: calc(170 * var(--u)); height: 100%; aspect-ratio: auto; }
  .kz-thumbs { height: calc(95 * var(--u)); }
  .kz-info { max-width: none; padding-top: calc(36 * var(--u)); }
  .kz-pr { font-size: calc(46 * var(--u)); }
  .kz-row { display: block; }
  .kz-card { min-height: 0; }
  .kz-rel-ph { aspect-ratio: auto; height: calc(155 * var(--u)); }
  /* on a wide phone or a small tablet the page stays at the size of a phone, centred */
  #kpPiece.kz .kz-body { max-width: 430px; margin-inline: auto; }
}
@media (min-width: 721px) { #kpPiece.kz .kz-main-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } }
@media (min-width: 721px) and (max-width: 999px) {
  html:has(#kpPiece.kz:not([hidden])) .nav .brand > span { font-size: 18px !important; letter-spacing: .26em !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-links { margin-right: 24px !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-links a { padding: 0 12px !important; font-size: 14px !important; }
}
@media (max-width: 720px) { #kpPiece.kz .kz-top { grid-template-columns: minmax(0, 1fr); column-gap: 0; } #kpPiece.kz .kz-info { justify-self: stretch; } #kpPiece.kz .kz-pr { font-size: calc(40 * var(--u)); } }

/* ===== The homepage as the owner drew it (2026-11-02): the gallery's hall, its four doors, the library band.
   Words and buttons keep fixed sizes on every screen; photos fill the width. ===== */
html:not(.as-page) body { background: #F3F1EC; }
.hm-page.kn { background: #F3F1EC; padding: 0 !important; }
.hx-hero { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1215 / 426; min-height: 360px; max-height: 560px; margin-top: var(--hx-top, 84px); overflow: hidden; color: #fff; }
.hx-hero-ph { position: absolute; inset: 0; background-size: cover; background-position: center 55%; }
.hx-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 46% 62% at 50% 50%, rgba(40, 26, 18, .5), rgba(40, 26, 18, .14) 70%, rgba(40, 26, 18, .05)); }
.hx-hero-t { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center !important; padding: 0 20px; }
.hx-hero-t h1 { margin: 0 0 14px; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 500; font-size: 46px; line-height: 1.25; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hx-hero-t p { margin: 0 0 16px; font-size: 16px; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.hx-orn { display: flex; align-items: center; gap: 6px; margin: 0 0 24px; }
.hx-orn i { width: 46px; height: 1px; background: rgba(255, 255, 255, .7); } .hx-orn b { width: 5px; height: 5px; transform: rotate(45deg); background: rgba(255, 255, 255, .85); }
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-width: 212px; height: 48px; padding: 0 26px; border: 1px solid rgba(255, 255, 255, .85); color: #fff; text-decoration: none; font-size: 15px; background: rgba(30, 20, 14, .12); transition: background .3s; }
.hx-btn:hover { background: rgba(30, 20, 14, .32); }
html[lang="ar"] .hx-btn, html[lang="ar"] .hx-link { flex-direction: row-reverse; }
.hx-btn svg, .hx-card-t svg, .hx-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html[lang="en"] .hx-btn svg, html[lang="en"] .hx-card-t svg, html[lang="en"] .hx-link svg { transform: scaleX(-1); }
/* the four doors */
.hx-cards { box-sizing: border-box; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: calc(1320px + 2 * 40px); margin: 16px auto 0; padding: 0 clamp(16px, 3vw, 40px); }
.hx-card { position: relative; display: block; aspect-ratio: 278 / 330; overflow: hidden; color: #fff; text-decoration: none; background: #D9CCB8; }
.hx-card-ph { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.2s ease; }
.hx-card:hover .hx-card-ph { transform: scale(1.03); }
.hx-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(180deg, rgba(58, 40, 28, 0), rgba(58, 40, 28, .72) 34%, rgba(52, 35, 24, .9)); }
.hx-card-t { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; text-align: center !important; padding: 0 18px 20px; }
.hx-card-t b { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3; margin-bottom: 8px; }
.hx-card-t small { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 15em; margin-bottom: 12px; text-wrap: balance; }
/* the library band */
.hx-lib { position: relative; margin-top: 28px; min-height: 230px; overflow: hidden; color: #F4EADC; background: #3A2A20; }
.hx-lib-ph { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.hx-lib::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(48, 33, 24, .93) 0%, rgba(48, 33, 24, .78) 32%, rgba(48, 33, 24, .3) 55%, rgba(48, 33, 24, .82) 78%, rgba(48, 33, 24, .92) 100%); }
.hx-lib-in { position: relative; z-index: 1; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 40px; max-width: calc(1320px + 2 * 40px); min-height: 230px; margin: 0 auto; padding: 30px clamp(16px, 3vw, 40px) 30px clamp(16px, 10vw, 170px); }
.hx-lib-t { max-width: 360px; }
html[lang="ar"] .hx-lib-t { text-align: right; }
.hx-lib-t h2 { margin: 0 0 6px; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 500; font-size: 25px; color: #F6ECDE; }
.hx-lib-t > p { margin: 0 0 14px; font-size: 14px; color: rgba(244, 234, 220, .85); }
.hx-reads { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid rgba(244, 234, 220, .22); }
.hx-reads li { border-bottom: 1px solid rgba(244, 234, 220, .22); }
.hx-reads button { display: flex; flex-direction: column; gap: 1px; width: 100%; padding: 8px 0; background: none; border: 0; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
html[lang="ar"] .hx-reads button { align-items: flex-end; }
.hx-reads small { font-size: 11px; letter-spacing: .04em; color: rgba(244, 234, 220, .6); }
.hx-reads span { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 15px; line-height: 1.45; color: #F6ECDE; }
.hx-reads button:hover span { text-decoration: underline; text-underline-offset: .3em; }
.hx-link { display: inline-flex; align-items: center; gap: 10px; color: #F6ECDE; text-decoration: none; font-size: 14px; padding-bottom: 3px; border-bottom: 1px solid currentColor; }
html[lang="ar"] .hx-lib-t .hx-link { float: right; }
.hx-lib-name { display: flex; align-items: center; gap: 20px; color: #F6ECDE; text-decoration: none; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 38px; flex: none; }
html[lang="ar"] .hx-lib-name { flex-direction: row-reverse; }
.hx-lib-ic { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid rgba(246, 236, 222, .7); border-radius: 50%; }
.hx-lib-ic svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.hx-end { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px auto 26px; max-width: 560px; padding: 0 20px; }
.hx-end i { flex: 1; height: 1px; background: rgba(74, 42, 30, .3); }
.hx-end svg { width: 30px; height: auto; fill: #4B2B1F; }

/* the top bar on every page but a piece's: light, the seal and the name on the left, the parts and the language on the right */
@media (min-width: 721px) {
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; transform: none !important; background: #F3F1EC !important; color: #2A1F19 !important; border-bottom: 1px solid rgba(74, 42, 30, .16) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav::before { display: none !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-inner { box-sizing: border-box; max-width: calc(1320px + 2 * 40px) !important; height: 84px; min-height: 0 !important; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px) 0 calc(clamp(16px, 3vw, 40px) + 116px) !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .brand { position: static !important; transform: none !important; translate: none !important; margin: 0 !important; padding: 0 !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .brand > span { font-family: 'Cinzel', Georgia, 'Times New Roman', var(--serif) !important; font-weight: 400 !important; font-size: 26px !important; letter-spacing: .34em !important; color: #4A2418 !important; text-shadow: none !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-right { flex: 1; justify-content: flex-end !important; gap: 0 !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-links { display: flex !important; align-items: stretch; height: 84px; gap: 0 !important; margin: 0 clamp(24px, 3vw, 48px) 0 0 !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-links a { display: flex; align-items: center; padding: 0 20px !important; font-size: 15px !important; letter-spacing: 0 !important; text-transform: none !important; color: #2A1F19 !important; border-bottom: 2px solid transparent !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-links a.on, html:not(.as-page) .nav .nav-links a[data-door="gallery"] { border-bottom-color: #4B2B1F !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-links a[href="/"] { position: relative; margin-left: 12px; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-links a[href="/"]::before { content: ""; position: absolute; left: -6px; top: 50%; height: 18px; translate: 0 -50%; width: 1px; background: rgba(42, 31, 25, .45); }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .tools { flex: 0 0 auto !important; display: flex !important; align-items: center; gap: 22px !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .tools .icon-btn { width: auto !important; height: auto !important; padding: 0 !important; font-size: 15px !important; color: #2A1F19 !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .menu-btn { width: 27px !important; height: 20px !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .menu-btn span { background: #2A1F19 !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-row { display: none !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav-seal { left: max(calc((100vw - 1320px) / 2 - 40px + clamp(16px, 3vw, 40px) + 18px), calc(clamp(16px, 3vw, 40px) + 18px)) !important; top: 4px !important; width: 82px !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))).seal-sm .nav-seal { width: 76px !important; top: 4px !important; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .brand > span { font-size: 19px !important; letter-spacing: .26em !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-links a { padding: 0 11px !important; font-size: 14px !important; }
  .hx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-card { aspect-ratio: 4 / 3.4; }
}
/* the phone */
@media (max-width: 720px) {
  .hx-hero { --hx-top: 60px; aspect-ratio: 4 / 3.3; min-height: 300px; }
  .hx-hero-t h1 { font-size: 32px; margin-bottom: 8px; }
  .hx-hero-t p { font-size: 13.5px; margin-bottom: 12px; }
  .hx-orn { margin-bottom: 16px; }
  .hx-btn { min-width: 180px; height: 44px; font-size: 14px; }
  .hx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; padding: 0 12px; }
  .hx-card { aspect-ratio: 3 / 3.7; }
  .hx-card-t { padding: 0 10px 14px; }
  .hx-card-t b { font-size: 17px; margin-bottom: 4px; }
  .hx-card-t small { font-size: 11.5px; margin-bottom: 8px; }
  .hx-lib { margin-top: 18px; }
  .hx-lib::after { background: rgba(48, 33, 24, .8); }
  .hx-lib-in { flex-direction: column-reverse; align-items: stretch; gap: 18px; padding: 28px 22px; }
  html[lang="ar"] .hx-lib-name { justify-content: flex-start; }
  .hx-lib-name { font-size: 30px; gap: 14px; }
  .hx-lib-ic { width: 56px; height: 56px; } .hx-lib-ic svg { width: 28px; height: 28px; }
  .hx-lib-t { max-width: none; }
  .hx-lib-t h2 { font-size: 21px; }
}
.hm-page.kn > .hx-hero { margin: var(--hx-top, 84px) 0 0 !important; }
.hm-page.kn > .hx-cards { margin: 16px auto 0 !important; }
.hm-page.kn > .hx-lib { margin: 28px 0 0 !important; }
.hx-hero .kname, .hx-lib .kname, .hx-card .kname { color: inherit !important; }
@media (min-width: 721px) { html:not(:has(#kpPiece.kz:not([hidden]))) .nav .brand > span { -webkit-text-fill-color: #4A2418 !important; background: none !important; animation: none !important; } }
@media (max-width: 720px) { .hm-page.kn > .hx-cards { margin-top: 10px !important; } .hm-page.kn > .hx-lib { margin-top: 18px !important; } }
.hx-card-t small { min-height: 3.2em; display: flex; align-items: flex-start; justify-content: center; }
@media (min-width: 721px) {
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-inner { padding: 0 clamp(16px, 3vw, 40px) !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .brand { margin-left: 112px !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav-seal { left: calc(max(0px, (100vw - 1400px) / 2) + clamp(16px, 3vw, 40px)) !important; }
}
@media (max-width: 720px) {
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; transform: none !important; background: #F3F1EC !important; border-bottom: 1px solid rgba(74, 42, 30, .16) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav::before { display: none !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-inner { min-height: 0 !important; height: 60px; padding: 0 16px 0 72px !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .brand > span { font-family: 'Cinzel', Georgia, 'Times New Roman', var(--serif) !important; font-weight: 400 !important; font-size: 15px !important; letter-spacing: .3em !important; color: #4A2418 !important; -webkit-text-fill-color: #4A2418 !important; background: none !important; text-shadow: none !important; animation: none !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .tools .icon-btn { color: #2A1F19 !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .menu-btn span { background: #2A1F19 !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-row { display: none !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav-seal { left: 14px !important; top: 6px !important; width: 48px !important; }
}
@media (min-width: 721px) { html:not(:has(#kpPiece.kz:not([hidden]))) .nav-seal { left: calc(var(--seal-x, 24px) + clamp(16px, 3vw, 40px)) !important; } }
.hx-lib-ph { background-position: center center; }

/* ===== A little more horizontal (2026-11-02): wider photos, lower rows, the content up to 1440 px; not more than that ===== */
@media (min-width: 721px) {
  .kz-body > * { max-width: 1440px; }
  .kz-top { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); }
  .kz-main-ph { aspect-ratio: 16 / 10 !important; max-height: calc(100vh - 250px); min-height: 320px; }
  .kz-info { padding-top: 18px; }
  .kz-line { margin-bottom: 30px; }
  .kz-acts { margin-bottom: 26px; }
  .kz-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.5fr); margin-top: 40px; }
  .kz-card { min-height: 220px; }
  .kz-art-ph { width: 110px; height: 108px; margin-bottom: 14px; }
  .kz-det-ph { aspect-ratio: 16 / 8.5; }
  .kz-rel-ph { aspect-ratio: 16 / 11; }
  /* the side column stays in view, its photo shown whole from top to bottom, the words over its foot */
  .kz-side { position: sticky; top: 0; height: 100vh; min-height: 0; align-self: start; }
  .kz-side-ph { top: 0; bottom: 0; height: auto; background-position: center top; }
  .kz-side::after { top: auto; height: 52%; background: linear-gradient(180deg, rgba(42, 28, 21, 0) 0%, rgba(42, 28, 21, .72) 38%, rgba(36, 24, 18, .94) 100%); }
  .kz-side-in { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 22px 26px; }
  .kz-q, .kz-orn, .kz-nl { position: static; }
  .kz-q { margin: 0 0 16px; font-size: 15.5px; line-height: 27px; }
  .kz-orn { margin: 0 0 18px; }
  .kz-nl { width: auto; padding: 20px 14px 18px; }
}
@media (min-width: 721px) and (max-height: 760px) { .kz-q { display: none; } }
/* the homepage a little lower too */
@media (min-width: 1101px) { .hx-card { aspect-ratio: 278 / 290; } .hx-cards, .hx-lib-in { max-width: calc(1440px + 2 * 40px); } }
@media (min-width: 721px) {
  #kpPiece.kz .kz-main-ph { aspect-ratio: 2 / 1 !important; height: auto; min-height: 300px; max-height: calc(100vh - 240px); }
  .kz-det-ph { aspect-ratio: 2 / 1; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-links a:last-child { border-bottom-color: transparent !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-links a[data-door="gallery"] { border-bottom-color: #4B2B1F !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-links a[href="/"] { position: relative; margin-left: 12px; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-links a[href="/"]::before { content: ""; position: absolute; left: -6px; top: 50%; height: 18px; translate: 0 -50%; width: 1px; background: rgba(42, 31, 25, .45); }
}
@media (min-width: 721px) { #kpPiece.kz .kz-det-ph { aspect-ratio: 16 / 9 !important; height: auto !important; flex: none !important; } #kpPiece.kz .kz-row { align-items: start; } #kpPiece.kz .kz-card { height: 100%; } }
/* the close photo: smaller, and opens whole on a click (2026-11-02) */
@media (min-width: 721px) {
  #kpPiece.kz .kz-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr) minmax(0, 1fr) !important; }
  #kpPiece.kz .kz-det { max-width: 400px; }
  #kpPiece.kz .kz-det-ph { aspect-ratio: 4 / 3 !important; }
}
#kpPiece.kz .kz-det-ph { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; transition: opacity .3s; }
#kpPiece.kz .kz-det-ph:hover { opacity: .92; }

/* ===== The homepage: pieces from the gallery in place of the four doors (2026-11-02) ===== */
.hm-page.kn > .hx-pieces { box-sizing: border-box; width: 100%; max-width: calc(1440px + 2 * 40px); margin: 32px auto 0 !important; padding: 0 clamp(16px, 3vw, 40px); }
.hx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
.hx-pc { display: flex; flex-direction: column; align-items: center; text-align: center !important; gap: 4px; color: #2A1F19; text-decoration: none; min-width: 0; }
.hx-pc-ph { display: block; width: 100%; aspect-ratio: 4 / 3.4; background-size: cover; background-position: center; background-color: #E7DFD3; margin-bottom: 10px; transition: opacity .3s; }
.hx-pc:hover .hx-pc-ph { opacity: .9; }
.hx-pc-n { font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-size: 16px; line-height: 1.4; }
.hx-pc-p { font-size: 13px; color: #6A5A4E; }
.hm-page.kn > .hx-lib { margin-top: 44px !important; }
@media (max-width: 1100px) { .hx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .hm-page.kn > .hx-pieces { margin-top: 22px !important; padding: 0 14px; }
  .hx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .hx-pc-n { font-size: 14.5px; } .hx-pc-p { font-size: 12px; }
  .hm-page.kn > .hx-lib { margin-top: 30px !important; }
}

/* ===== The piece's photo is always shown whole, at its own proportions (2026-11-02) ===== */
#kpPiece.kz .kz-main-ph { aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; max-height: none !important; background: none; display: flex; justify-content: center; }
#kpPiece.kz .kz-main-ph img { position: static !important; width: auto !important; max-width: 100%; height: auto !important; max-height: calc(100vh - 210px); object-fit: contain !important; }
@media (max-width: 720px) { #kpPiece.kz .kz-main-ph img { width: 100% !important; max-height: 70vh; } }

/* ===== Designs and concepts first on the homepage (2026-11-02): its photo beside the philosophy, low and wide ===== */
.hm-page.kn > .hx-des { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 72px);
  width: 100%; max-width: calc(1440px + 2 * 40px); margin: calc(var(--hx-top, 84px) + 28px) auto 0 !important; padding: 0 clamp(16px, 3vw, 40px); }
.hx-des-ph { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #E7DFD3; }
.hx-des-ph .kn-ph { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hx-des-t { display: flex; flex-direction: column; align-items: flex-end; max-width: 460px; }
html[lang="en"] .hx-des-t { align-items: flex-start; }
html[lang="ar"] .hx-des-t { text-align: right; }
.hx-des-t small { font-size: 13px; letter-spacing: .04em; color: #6A5A4E; margin-bottom: 10px; }
.hx-des-t h2 { margin: 0 0 12px; font-family: 'EB Garamond', 'Noto Naskh Arabic', var(--serif); font-weight: 500; font-size: 26px; line-height: 1.45; color: #2A1F19; }
.hx-des-t p { margin: 0 0 22px; font-size: 14.5px; line-height: 1.9; color: #4E3D32; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hx-btn-dark { color: #F4EADC; background: #4B2B1F; border-color: #4B2B1F; }
.hx-btn-dark:hover { background: #5B3627; }
.hm-page.kn > .hx-hero-2 { margin: 44px 0 0 !important; }
.hm-page.kn > .hx-pieces { margin-top: 28px !important; }
@media (max-width: 720px) {
  .hm-page.kn > .hx-des { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 60px !important; padding: 0; }
  .hx-des-ph { aspect-ratio: 4 / 3; }
  .hx-des-t { max-width: none; padding: 0 20px; }
  .hx-des-t h2 { font-size: 21px; }
  .hx-des-t p { font-size: 14px; }
  .hm-page.kn > .hx-hero-2 { margin-top: 32px !important; }
  .hx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 721px) and (max-width: 1100px) { .hx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 14px; } }
/* the piece page on the phone: the path sits above the photo, never over it */
@media (max-width: 720px) {
  #kpPiece.kz .kz-crumb { position: static !important; margin-top: 0; }
  #kpPiece.kz .kz-body { padding-top: 60px !important; }
}

/* ===== The site's letters (2026-11-02): Noto Naskh Arabic for Arabic, EB Garamond for Latin headings and figures, Inter for Latin text ===== */
html[lang="ar"] body { font-family: 'EB Garamond', 'Noto Naskh Arabic', serif; }
html[lang="ar"] :where(p, li, small, span, a, button, label, input, textarea, dd, dt, td, th, figcaption, summary) { font-feature-settings: normal; }
/* Naskh sits a little smaller than the old letters: body text one step up */
html, body, main#top { background: #F3F1EC !important; }
.kz-t, .hx-hero-t h1, .hx-des-t h2, .hx-lib-name, .hx-lib-t h2, .kz-card h2, .kz-rel h2 { font-weight: 600 !important; }
.kz-pr { font-family: 'EB Garamond', 'Noto Naskh Arabic', serif !important; font-weight: 600 !important; }
html::before { background: #F3F1EC !important; background-image: none !important; }

/* ===== One system for every page (2026-11-02): the photo band at the head of each part, the same calm grid of pieces,
   the same buttons, words, menu and order panels as the homepage and the piece page ===== */
:root { --kx-bg: #F3F1EC; --kx-ink: #2A1F19; --kx-soft: #6A5A4E; --kx-line: rgba(74, 42, 30, .2); --kx-brown: #4B2B1F; --kx-card: #F0EBE3; }
/* the band */
.pb { position: relative; display: grid; place-items: center; width: 100%; height: clamp(190px, 22vw, 290px); overflow: hidden; color: #fff; margin: 0 0 28px; }
.pb-ph { position: absolute; inset: 0; background-size: cover; background-position: center 55%; }
.pb::after { content: ""; position: absolute; inset: 0; background: rgba(40, 26, 18, .42); }
.pb-lib::after { background: rgba(40, 26, 18, .6); }
.pb-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center !important; padding: 0 20px; }
.pb-in h1 { margin: 0 0 8px; font-family: 'EB Garamond', 'Noto Naskh Arabic', serif; font-weight: 600; font-size: 38px; line-height: 1.25; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.pb-in p { margin: 0 0 12px; font-size: 15px; color: rgba(255, 255, 255, .92); }
.pb-in .hx-orn { margin-bottom: 14px; }
.pb-in .hx-btn { height: 42px; min-width: 0; padding: 0 22px; font: inherit; font-size: 14px; cursor: pointer; }
.pb-in .hx-lib-ic { width: 54px; height: 54px; margin-bottom: 10px; border-color: rgba(255, 255, 255, .7); color: #fff; }
.pb-in .hx-lib-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.1; }
html.as-page .kp, html.as-page #kpSec { padding-top: var(--page-top, 84px) !important; background: var(--kx-bg); }
#kpSec .pb { margin-left: 0; margin-right: 0; }
/* the gallery: four to a row, as on the homepage */
.kg-bar { box-sizing: border-box; max-width: calc(1440px + 2 * 40px) !important; margin: 0 auto !important; padding: 0 clamp(16px, 3vw, 40px) 12px !important; border-bottom: 1px solid var(--kx-line); font-size: 14px; color: var(--kx-ink); }
.kg-grid { box-sizing: border-box; max-width: calc(1440px + 2 * 40px) !important; margin: 28px auto 0 !important; padding: 0 clamp(16px, 3vw, 40px) 60px !important;
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 40px 20px !important; }
.kg-c { display: flex !important; flex-direction: column; align-items: center; text-align: center !important; gap: 3px; color: var(--kx-ink); text-decoration: none; }
.kg-ph { display: block; width: 100%; aspect-ratio: 4 / 3.4 !important; background-size: cover; background-position: center; background-color: #E7DFD3; margin-bottom: 10px; }
.kg-c > :not(.kg-ph) { order: 2; }
.kg-n { order: 1 !important; font-family: 'EB Garamond', 'Noto Naskh Arabic', serif; font-size: 16px !important; line-height: 1.4; }
.kg-a { font-size: 12.5px !important; color: #5A2D1F; }
.kg-p { font-size: 13px !important; color: var(--kx-soft); }
.kg-m { font-size: 12px !important; color: var(--kx-soft); opacity: .85; }
.kg-wide { grid-column: 1 / -1; aspect-ratio: 16 / 5 !important; height: auto !important; }
/* designs: three to a row, quiet and level */
.kd-grid { box-sizing: border-box; max-width: calc(1440px + 2 * 40px) !important; margin: 0 auto !important; padding: 8px clamp(16px, 3vw, 40px) 60px !important;
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 40px 22px !important; columns: auto !important; }
.kd, .kd:nth-child(2n), .kd:nth-child(3n) { margin: 0 !important; transform: none !important; display: flex !important; flex-direction: column; align-items: center; text-align: center !important; }
.kd-img { width: 100%; aspect-ratio: 3 / 2 !important; border: 0 !important; box-shadow: none !important; background-color: #E7DFD3; }
.kd-t { margin-top: 12px !important; font-size: 17px !important; color: var(--kx-ink); }
.kd-pane { display: none !important; }
/* artists */
.kn-arts { box-sizing: border-box; max-width: calc(1440px + 2 * 40px) !important; margin: 0 auto !important; padding: 0 clamp(16px, 3vw, 40px) 60px !important; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 40px 20px !important; }
.kn-arts-i { display: flex !important; flex-direction: column; align-items: center; text-align: center !important; gap: 4px; color: var(--kx-ink); text-decoration: none; }
.kn-arts-ph { width: 100%; aspect-ratio: 1 !important; background-size: cover; background-position: center; margin-bottom: 10px; }
.kn-art { max-width: calc(1440px + 2 * 40px) !important; padding: 20px clamp(16px, 3vw, 40px) !important; }
/* the library's parts and articles: the same width */
.lib-page { background: var(--kx-bg); }
.lib-cats, .lib-mag { box-sizing: border-box; max-width: calc(1440px + 2 * 40px) !important; margin-left: auto !important; margin-right: auto !important; padding-left: clamp(16px, 3vw, 40px) !important; padding-right: clamp(16px, 3vw, 40px) !important; }
.lib-cats button { font-family: 'EB Garamond', 'Noto Naskh Arabic', serif !important; font-size: 17px !important; }
/* the menu: a small, calm list under its button, on the right */
.menu.lg { background: var(--kx-bg) !important; border: 1px solid var(--kx-line) !important; border-radius: 0 !important; box-shadow: 0 18px 40px -24px rgba(40, 25, 15, .4) !important;
  inset-inline-start: auto !important; inset-inline-end: clamp(16px, 3vw, 40px) !important; left: auto !important; right: clamp(16px, 3vw, 40px) !important; top: calc(var(--page-top, 84px) + 4px) !important; width: 260px !important; padding: 8px 22px 16px !important; }
.menu.lg > a { font-family: 'EB Garamond', 'Noto Naskh Arabic', serif !important; font-size: 17px !important; padding: 11px 0 !important; color: var(--kx-ink) !important; border-bottom: 1px solid var(--kx-line); }
html[lang="ar"] .menu.lg > a { text-align: right; }
.menu.lg .mx-contact { font-size: 12.5px !important; color: var(--kx-soft); }
/* order and request panels: the same paper, the same buttons */
.ox { background: rgba(30, 20, 14, .45) !important; }
.ox-panel { background: var(--kx-bg) !important; color: var(--kx-ink) !important; border-radius: 0 !important; }
.ox-ti b, .ox-pt { font-family: 'EB Garamond', 'Noto Naskh Arabic', serif !important; font-weight: 600 !important; }
.ox .kb-dark, .ox .kn-btn-dark, .ox button[type="submit"], .ox .ox-send { background: var(--kx-brown) !important; border-color: var(--kx-brown) !important; color: #F4EADC !important; border-radius: 2px !important; }
.ox input, .ox textarea, .ox select { border-radius: 0 !important; background: #fff !important; border-color: var(--kx-line) !important; }
/* buttons everywhere */
.kn-btn, .kb { border-radius: 2px !important; }
.kn-btn-dark, .kb-dark { background: var(--kx-brown) !important; border-color: var(--kx-brown) !important; color: #F4EADC !important; }
@media (max-width: 1100px) { .kg-grid, .kn-arts { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 720px) {
  .pb { height: 170px; margin-bottom: 18px; }
  .pb-in h1 { font-size: 28px; }
  .pb-in p { font-size: 13px; margin-bottom: 8px; }
  .pb-in .hx-orn { margin-bottom: 10px; }
  .kg-grid, .kn-arts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 26px 12px !important; padding: 0 14px 40px !important; }
  .kd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 26px 12px !important; padding: 0 14px 40px !important; }
  .kd-t { font-size: 15px !important; }
  .kg-n { font-size: 14.5px !important; }
  .menu.lg { right: 12px !important; width: min(260px, calc(100vw - 24px)) !important; }
}
.pb .kname, .pb em { color: inherit !important; font-style: normal; }
.lib-page .pb { width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; }
html[lang="ar"] .ox-panel { text-align: right; } html[lang="ar"] .ox-panel .ox-head { flex-direction: row-reverse; }

/* ===== The piece page on the phone, larger and fuller (2026-11-02) ===== */
@media (max-width: 720px) {
  #kpPiece.kz .kz-sec { font-size: 14.5px; gap: 14px; margin-bottom: 6px; }
  #kpPiece.kz .kz-sec i { flex: 0 0 24% !important; }
  #kpPiece.kz .kz-t { font-size: 31px; margin-bottom: 4px; }
  #kpPiece.kz .kz-line { font-size: 16px; margin-bottom: 10px; }
  #kpPiece.kz .kz-pr { font-size: 27px; margin-bottom: 10px; }
  #kpPiece.kz .kz-st { font-size: 14px; padding: 4px 18px; margin-bottom: 14px; gap: 8px; }
  #kpPiece.kz .kz-st span { width: 6px; height: 6px; }
  #kpPiece.kz .kz-btn { width: 100%; max-width: none; height: 54px; font-size: 17px; gap: 12px; border-radius: 3px; }
  #kpPiece.kz .kz-btn svg { width: 22px; height: 22px; }
  #kpPiece.kz .kz-gift { font-size: 15px; margin-top: 4px; }
  #kpPiece.kz .kz-info { padding: 22px 22px 0; }
  #kpPiece.kz .kz-facts { margin: 0 -22px; padding: 18px 22px 0; }
  #kpPiece.kz .kz-facts::before { left: 22px; right: 22px; }
  #kpPiece.kz .kz-f { font-size: 15px; gap: 4px; padding: 4px 6px; }
  #kpPiece.kz .kz-f svg { width: 26px; height: 26px; margin-bottom: 4px; }
  #kpPiece.kz .kz-f b { font-size: 15px; font-weight: 500; }
  #kpPiece.kz .kz-f-box, #kpPiece.kz .kz-f-mat { border-left: 0 !important; }
  #kpPiece.kz .kz-f-mat { border-left: 1px solid var(--line) !important; order: 2; } #kpPiece.kz .kz-f-box { order: 1; }
  #kpPiece.kz .kz-row { margin: 28px 0 0; padding: 0 22px; }
  #kpPiece.kz .kz-story { min-height: 0; }
  #kpPiece.kz .kz-story h2 { font-size: 21px; margin: 0 0 10px; gap: 14px; }
  #kpPiece.kz .kz-story h2::after { flex: 1 1 auto; }
  #kpPiece.kz .kz-story::before { left: -22px; top: 34px; width: 40%; height: 130px; }
  #kpPiece.kz .kz-story-t, html[lang="ar"] #kpPiece.kz .kz-story-t, html[lang="en"] #kpPiece.kz .kz-story-t { padding: 0 !important; font-size: 15.5px; line-height: 1.95; -webkit-line-clamp: 6; color: #2A1F19; }
  #kpPiece.kz .kz-story .kz-more { display: inline-flex; font-size: 14px; margin-top: 8px; }
  #kpPiece.kz .kz-art { grid-template-columns: minmax(0, 1fr) 46%; height: 170px; margin-top: 22px; }
  #kpPiece.kz .kz-art-t, html[lang="en"] #kpPiece.kz .kz-art-t { padding: 0 20px !important; gap: 6px; }
  #kpPiece.kz .kz-art-t small { font-size: 14px; }
  #kpPiece.kz .kz-art-t b { font-size: 21px; }
  #kpPiece.kz .kz-art-t > span { display: block; font-size: 13.5px; }
  #kpPiece.kz .kz-art .kz-more { font-size: 14px; margin-top: 6px; }
  #kpPiece.kz .kz-art .kz-more svg { width: 16px; height: 16px; }
  #kpPiece.kz .kz-rel { padding: 0 22px; margin-top: 32px; }
  #kpPiece.kz .kz-rel h2 { font-size: 19px; gap: 14px; margin-bottom: 14px; }
  #kpPiece.kz .kz-rel-row { column-gap: 12px; }
  #kpPiece.kz .kz-rel-ph { height: auto; aspect-ratio: 1 / 1; }
  #kpPiece.kz .kz-rel-n { font-size: 14.5px; }
  #kpPiece.kz .kz-moretxt { margin: 14px 22px 0; padding: 20px; font-size: 15px; }
  #kpPiece.kz .kz-mt-in h3 { font-size: 18px; }
  #kpPiece.kz .kz-cert img { width: 24px; height: 24px; }
}
/* the button a little larger on a computer too */
@media (min-width: 721px) { #kpPiece.kz .kz-btn { width: 290px; height: 54px; font-size: 16.5px; } #kpPiece.kz .kz-btn svg { width: 22px; height: 22px; } }
@media (max-width: 720px) {
  #kpPiece.kz .kz-story::before { opacity: .16; }
  #kpPiece.kz .kz-crumb { height: 40px; font-size: 13.5px; padding: 0 22px; gap: 10px; }
  #kpPiece.kz .kz-crumb i { font-size: 12px; }
}
/* the side column's words in its middle, not at its foot (2026-11-02) */
@media (min-width: 721px) {
  #kpPiece.kz .kz-side-in { justify-content: center !important; padding: 0 22px !important; }
  #kpPiece.kz .kz-side::after { top: 0 !important; height: 100% !important; background: radial-gradient(ellipse 120% 45% at 50% 50%, rgba(36, 24, 18, .82) 0%, rgba(36, 24, 18, .55) 60%, rgba(36, 24, 18, .2) 100%) !important; }
}
.pb::after { background: rgba(40, 26, 18, .5); }

/* ===== The homepage pieces as the owner drew them (2026-11-03): tall photos, the name and price written on the stone at their foot ===== */
.hx-grid { gap: 16px !important; }
.hx-pc { position: relative; display: block !important; overflow: hidden; color: #fff !important; }
.hx-pc-ph { aspect-ratio: 4 / 5 !important; margin: 0 !important; transition: transform 1.2s ease !important; }
.hx-pc:hover .hx-pc-ph { opacity: 1 !important; transform: scale(1.03); }
.hx-pc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; pointer-events: none;
  background: linear-gradient(180deg, rgba(52, 37, 27, 0) 0%, rgba(52, 37, 27, .42) 45%, rgba(46, 32, 23, .72) 100%); }
.hx-pc-t { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; text-align: center !important; padding: 0 14px 18px; }
.hx-pc-n { font-family: 'EB Garamond', 'Noto Naskh Arabic', serif; font-weight: 600; font-size: 21px !important; line-height: 1.3; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.hx-pc-p { font-size: 13.5px !important; color: rgba(255, 255, 255, .88) !important; margin-top: 4px; }
.hx-pc-go { margin-top: 10px; display: block; line-height: 0; }
.hx-pc-go svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
html[lang="en"] .hx-pc-go svg { transform: scaleX(-1); }
@media (max-width: 720px) {
  .hx-grid { gap: 10px !important; }
  .hx-pc-n { font-size: 17px !important; }
  .hx-pc-p { font-size: 12px !important; }
  .hx-pc-t { padding: 0 8px 12px; }
  .hx-pc-go { margin-top: 6px; }
}
/* the gallery's pieces tall, like the homepage */
.kg-ph { aspect-ratio: 4 / 5 !important; }

/* ===== Designs and concepts (2026-11-03): an index of words with the photo beside it; a design as its photos one by one ===== */
.dx { box-sizing: border-box; max-width: calc(1440px + 2 * 40px); margin: 0 auto; padding: 40px clamp(16px, 3vw, 40px) 80px; color: #2A1F19; }
.dx-top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(74, 42, 30, .18); margin-bottom: 40px; }
html[lang="ar"] .dx-top { flex-direction: row-reverse; }
.dx-top h1 { margin: 0; font-family: 'EB Garamond', 'Noto Naskh Arabic', serif; font-weight: 500; font-size: 30px; letter-spacing: .01em; }
.dx-ask { font-size: 14px; color: #2A1F19; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.dx-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
html[lang="ar"] .dx-wrap { direction: rtl; } .dx-wrap > * { direction: ltr; }
html[lang="ar"] .dx-idx { direction: rtl; text-align: right; }
.dx-g { margin: 0 0 34px; }
.dx-g h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 10px; font-family: 'EB Garamond', 'Noto Naskh Arabic', serif; font-weight: 500; font-size: 15px; letter-spacing: .04em; color: #8A7A6E; }
.dx-g h2 span { font-family: 'EB Garamond', serif; font-size: 13px; color: #A89A8E; }
.dx-g ul { list-style: none; margin: 0; padding: 0; }
.dx-i { display: flex; align-items: center; gap: 14px; padding: 7px 0; color: #2A1F19; text-decoration: none; }
.dx-th { display: none; }
.dx-n { font-family: 'EB Garamond', 'Noto Naskh Arabic', serif; font-size: 25px; line-height: 1.35; transition: opacity .25s, padding .25s; }
.dx-idx:hover .dx-i:not(:hover) .dx-n { opacity: .38; }
.dx-i.on .dx-n, .dx-i:hover .dx-n { opacity: 1; }
.dx-pv { position: sticky; top: calc(var(--page-top, 84px) + 24px); }
.dx-pv-ph { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--page-top, 84px) - 90px); background-size: cover; background-position: center; background-color: #E7DFD3; }
.dx-pv-n { display: block; margin-top: 10px; font-size: 13px; color: #8A7A6E; }
@media (max-width: 860px) {
  .dx { padding-top: 24px; }
  .dx-wrap { grid-template-columns: minmax(0, 1fr); }
  .dx-pv { display: none; }
  .dx-top h1 { font-size: 25px; }
  .dx-i { padding: 8px 0; gap: 14px; }
  .dx-th { display: block; flex: none; width: 64px; aspect-ratio: 4 / 5; background-size: cover; background-position: center; background-color: #E7DFD3; }
  .dx-n { font-size: 21px; }
  .dx-idx:hover .dx-i:not(:hover) .dx-n { opacity: 1; }
}

/* a design */
#kpPiece.dz-p:not([hidden]) { display: block !important; max-width: none !important; padding: var(--page-top, 84px) 0 0 !important; margin: 0 !important; background: #F3F1EC; grid-template-columns: none !important; }
.dz { color: #2A1F19; }
.dz-stage { position: relative; display: flex; justify-content: center; align-items: center; height: calc(100vh - var(--page-top, 84px) - 96px); min-height: 360px; background: #F1ECE4; overflow: hidden; }
.dz-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; cursor: zoom-in; }
.dz-arr { position: absolute; top: 0; bottom: 0; width: 22%; display: flex; align-items: center; padding: 0 28px; background: none; border: 0; color: #2A1F19; cursor: pointer; opacity: 0; transition: opacity .3s; }
.dz-stage:hover .dz-arr { opacity: .8; }
.dz-l { left: 0; justify-content: flex-start; } .dz-r { right: 0; justify-content: flex-end; }
.dz-arr svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.dz-bar { box-sizing: border-box; display: flex; align-items: center; gap: 28px; max-width: calc(1440px + 2 * 40px); margin: 0 auto; min-height: 96px; padding: 14px clamp(16px, 3vw, 40px); }
html[lang="ar"] .dz-bar { flex-direction: row-reverse; }
.dz-id { flex: 1; min-width: 0; }
html[lang="ar"] .dz-id { text-align: right; }
.dz-t { margin: 0; font-family: 'EB Garamond', 'Noto Naskh Arabic', serif; font-weight: 500; font-size: 26px; line-height: 1.3; }
.dz-f { margin: 2px 0 0; font-size: 13.5px; color: #8A7A6E; }
.dz-count { position: static !important; display: block !important; background: none !important; color: #8A7A6E !important; padding: 0 !important; font-size: 13px !important; font-family: 'EB Garamond', serif; letter-spacing: .08em; }
.dz-acts { display: flex; align-items: center; gap: 22px; }
html[lang="ar"] .dz-acts { flex-direction: row-reverse; }
.dz-about-b { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14.5px; color: #2A1F19; border-bottom: 1px solid transparent; cursor: pointer; }
.dz-about-b:hover, .dz-about-b.on { border-bottom-color: currentColor; }
.dz-btn { height: 48px; padding: 0 30px; background: #4B2B1F; color: #F4EADC; border: 0; border-radius: 2px; font: inherit; font-size: 15.5px; cursor: pointer; }
.dz-btn:hover { background: #5B3627; }
.dz-about { box-sizing: border-box; max-width: calc(1440px + 2 * 40px); margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.dz-about-in { max-width: 640px; padding: 8px 0 26px; font-size: 16px; line-height: 2; color: #3D2F26; }
html[lang="ar"] .dz-about-in { margin-left: auto; text-align: right; }
.dz-about-in .kq-desc p { margin: 0 0 12px; }
.dz-note { margin: 4px 0 0; font-size: 13.5px; color: #8A7A6E; }
.dz-thumbs { box-sizing: border-box; display: flex; justify-content: center; gap: 10px; max-width: calc(1440px + 2 * 40px); margin: 0 auto; padding: 4px clamp(16px, 3vw, 40px) 0; }
.dz-thumbs .kq-th { width: 64px; aspect-ratio: 4 / 5; border: 0; padding: 0; background-size: cover; background-position: center; cursor: pointer; opacity: .55; transition: opacity .25s; }
.dz-thumbs .kq-th.on, .dz-thumbs .kq-th:hover { opacity: 1; }
.dz-rest { box-sizing: border-box; max-width: calc(1440px + 2 * 40px); margin: 0 auto; padding: 56px clamp(16px, 3vw, 40px) 80px; }
.dz-sec { margin-bottom: 56px; }
.dz-sec h2 { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(74, 42, 30, .18); font-family: 'EB Garamond', 'Noto Naskh Arabic', serif; font-weight: 500; font-size: 20px; }
html[lang="ar"] .dz-sec h2 { text-align: right; }
.dz-others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dz-o { display: flex; flex-direction: column; gap: 10px; color: #2A1F19; text-decoration: none; }
html[lang="ar"] .dz-o { align-items: flex-end; text-align: right; }
.dz-o-ph { display: block; width: 100%; aspect-ratio: 4 / 5; background-size: cover; background-position: center; background-color: #E7DFD3; }
.dz-o-n { font-family: 'EB Garamond', 'Noto Naskh Arabic', serif; font-size: 18px; }
#kpPiece.dz-p .kq-bar { background: #F3F1EC !important; border-top: 1px solid rgba(74, 42, 30, .15); }
@media (max-width: 720px) {
  .dz-stage { height: auto; min-height: 0; max-height: 72vh; }
  .dz-stage img { width: 100%; max-height: 72vh; }
  .dz-arr { opacity: .85; width: 30%; padding: 0 12px; color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); }
  .dz-bar { flex-wrap: wrap; gap: 12px 16px; padding: 16px 20px; }
  .dz-id { flex: 1 1 100%; }
  .dz-t { font-size: 24px; }
  .dz-count { order: 2; }
  .dz-acts { flex: 1 1 100%; justify-content: space-between; }
  .dz-btn { flex: 1; max-width: 220px; height: 50px; }
  .dz-about-in { font-size: 15.5px; }
  .dz-rest { padding: 36px 20px 60px; }
  .dz-others { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dz-others .dz-o:nth-child(3) { display: none; }
}
#kpPiece.dz-p .dz-stage { aspect-ratio: auto !important; width: 100%; background: #F1ECE4; }
#kpPiece.dz-p .dz-stage img { width: auto !important; height: auto !important; max-width: 100%; max-height: 100%; }
@media (max-width: 720px) { #kpPiece.dz-p .dz-stage img { width: 100% !important; } }
.kz-count, .dz-count { unicode-bidi: isolate !important; direction: ltr !important; }

/* ===== The library as a quiet catalogue (2026-11-03) ===== */
.lib-mag { max-width: 1040px !important; }
.lib-cats { display: flex !important; justify-content: center !important; gap: 34px !important; border: 0 !important; margin-bottom: 18px !important; }
.lib-cats button { background: none !important; border: 0 !important; padding: 6px 0 !important; color: #8A7A6E !important; border-bottom: 1px solid transparent !important; cursor: pointer; }
.lib-cats button[aria-pressed="true"] { color: #2A1F19 !important; border-bottom-color: #2A1F19 !important; }
.lib-cats button small { margin-inline-start: 6px; font-size: 11px; opacity: .7; }
.lv-list { display: flex; flex-direction: column; }
.lv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 34px; align-items: start; width: 100%; padding: 30px 0; background: none; border: 0; border-bottom: 1px solid rgba(74, 42, 30, .12); font: inherit; color: #2A1F19; text-align: inherit; cursor: pointer; }
.lv:first-child { padding-top: 10px; }
.lv-im { display: flex; justify-content: flex-end; }
.lv-im img { display: block; max-width: 100%; max-height: 210px; width: auto; height: auto; transition: opacity .3s; }
.lv:hover .lv-im img { opacity: .9; }
.lv-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 4px; }
html[lang="ar"] .lv-tx { align-items: flex-end; text-align: right; }
.lv-tx b { font-family: 'EB Garamond', 'Noto Naskh Arabic', serif; font-weight: 500; font-size: 22px; line-height: 1.4; letter-spacing: .02em; }
.lv-sub { font-size: 14.5px; line-height: 1.75; color: #3D2F26; max-width: 34em; }
.lv-tx small { margin-top: 8px; font-size: 11.5px; letter-spacing: .05em; color: #8A7A6E; }
.lv-tx i { margin-top: 10px; font-style: normal; font-size: 13px; color: #A08F82; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.lv:hover .lv-tx i { color: #2A1F19; border-bottom-color: currentColor; }
.lv-end, .rd-seal { display: flex; justify-content: center; margin: 44px 0 10px; }
.lv-end img, .rd-seal img { width: 54px; height: auto; filter: drop-shadow(0 4px 8px rgba(30, 16, 8, .22)); }
.rd-seal img { width: 64px; }
.rd-also { margin-top: 30px; }
.rd-also h2 { margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid rgba(74, 42, 30, .18); font-family: 'EB Garamond', 'Noto Naskh Arabic', serif; font-weight: 500; font-size: 20px; }
html[lang="ar"] .rd-also h2 { text-align: right; }
.rd-also .lv-im img { max-height: 150px; }
.rd-also .lv-tx b { font-size: 19px; }
/* the article itself: the cover at its height, then a calm reading column */
.rd-art .rd-hero { aspect-ratio: 21 / 8 !important; max-height: 48vh !important; }
.rd-art .rd-narrow { max-width: 680px !important; }
.rd-art h1#rdH { font-family: 'EB Garamond', 'Noto Naskh Arabic', serif !important; font-weight: 500 !important; font-size: 36px !important; line-height: 1.35 !important; letter-spacing: .01em; }
.rd-art .rd-lede { font-size: 17px !important; line-height: 1.85 !important; color: #5A4A3F !important; }
.rd-art .rd-text { font-size: 17.5px !important; line-height: 2.05 !important; color: #2A1F19 !important; }
.rd-art .eyebrow { font-size: 12px !important; letter-spacing: .08em !important; color: #8A7A6E !important; }
@media (max-width: 720px) {
  .lv { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 0; }
  .lv-im { justify-content: center; }
  .lv-im img { max-height: 240px; }
  .lv-tx, html[lang="ar"] .lv-tx { align-items: center; text-align: center !important; }
  .lv-tx b { font-size: 20px; }
  .lib-cats { gap: 22px !important; overflow-x: auto; }
  .rd-art h1#rdH { font-size: 28px !important; }
  .rd-art .rd-text { font-size: 16.5px !important; }
}
.rd, .rd > *, .rd .rd-scroll, .rd .rd-in, .rd .rd-body, .lib-page { background: #F3F1EC !important; box-shadow: none !important; }

/* ===== Quiet motion (2026-11-03) ===== */
html.rv-on .rv { opacity: 0; transform: translateY(22px); transition: opacity 1.1s cubic-bezier(.22,.61,.36,1), transform 1.3s cubic-bezier(.22,.61,.36,1); }
html.rv-on .rv.rv-in { opacity: 1; transform: none; }
html.rv-on .hx-hero-ph { animation: hxSettle 2.8s cubic-bezier(.22,.61,.36,1) both; }
@keyframes hxSettle { from { transform: scale(1.06); opacity: .6; } to { transform: scale(1); opacity: 1; } }
#kpSec.pg-in, #kpPiece.pg-in { animation: pgIn .7s ease both; }
@keyframes pgIn { from { opacity: 0; } to { opacity: 1; } }
/* the photos breathe a little under the pointer */
.hx-pc-ph, .kg-ph, .dz-o-ph, .kz-rel-ph, .hx-des-ph .kn-ph { transition: transform 1.6s cubic-bezier(.22,.61,.36,1) !important; }
.hx-pc:hover .hx-pc-ph, .kg-c:hover .kg-ph, .dz-o:hover .dz-o-ph, .kz-rel-i:hover .kz-rel-ph, .hx-des-ph:hover .kn-ph { transform: scale(1.035); }
.kg-c, .dz-o, .kz-rel-i { overflow: hidden; }
.kg-c .kg-ph, .dz-o .dz-o-ph, .kz-rel-i .kz-rel-ph { will-change: transform; }
/* links and buttons change slowly */
.hx-btn, .kz-btn, .dz-btn, .dx-n, .lv-tx i, .nav-links a { transition: all .45s ease !important; }
@media (prefers-reduced-motion: reduce) { html.rv-on .rv { opacity: 1 !important; transform: none !important; } html.rv-on .hx-hero-ph { animation: none; } }

/* sections closed in the control panel (kalo.js adds closed-<name> to the page) */
.closed-designs #designs, .closed-designs [data-door="designs"],
.closed-gallery #gallery, .closed-gallery .hx-pieces, .closed-gallery [data-door="gallery"], .closed-gallery [data-door="objects"], .closed-gallery [data-door="house"],
.closed-library #library, .closed-library [data-open-lib="library"], .closed-library .nav-essays { display: none !important; }
.closed-artists .kz-more[data-kpage="artists"], .closed-artists .kn-arts, .closed-artists #menuPanel [data-kpage="artists"], .closed-artists .nav-links [data-kpage="artists"] { display: none !important; }
.closed-artists a[href^="/artists"], .closed-artists a[href^="/en/artists"], .closed-artists a[href^="#artists"], .closed-artists [data-kpage="artists"] { pointer-events: none; text-decoration: none; border-bottom: 0; }

/* ===== The formal letters (2026-11): Noto Naskh Arabic for all Arabic, Cinzel for the name, the capitals and the English titles ===== */
html[lang^="en"] :is(h1, h2, h3) { font-family: 'EB Garamond', Georgia, serif !important; font-weight: 400 !important; letter-spacing: .04em; }
.nav .brand > span { font-family: 'Cinzel', Georgia, serif !important; }
html[lang^="ar"] :is(h1, h2, h3) { font-weight: 400; }

/* the order's information pages, at the foot of every page (2026-11) */
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s; }
.foot-links a:hover { border-bottom-color: currentColor; }

/* ===== The top bar: the name in the middle, the seal above it on the entrance screen =====
   Inside the site the bar stays quiet: links at the start, the name in the middle, the language and the menu at the end. ===== */
html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-inner { display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 16px; padding-inline: clamp(16px, 3vw, 40px) !important; }
html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-right { display: contents !important; }
html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-links { grid-column: 1; grid-row: 1; justify-self: start; margin: 0 !important; }
html:not(:has(#kpPiece.kz:not([hidden]))) .nav .brand { grid-column: 2; grid-row: 1; justify-self: center; position: static !important; transform: none !important; translate: none !important; margin: 0 !important; }
html:not(:has(#kpPiece.kz:not([hidden]))) .nav .tools { grid-column: 3; grid-row: 1; justify-self: end; flex: none !important; display: flex !important; align-items: center; gap: 2px; }
html:not(:has(#kpPiece.kz:not([hidden]))) .nav .tools .menu-btn { order: 2; }
html:not(:has(#kpPiece.kz:not([hidden]))) .nav .tools .lang-btn { order: 1; font-family: 'EB Garamond', Georgia, serif; font-size: 13px; letter-spacing: .14em; }

/* the entrance screen: the seal sits over the name, both in the middle */
html:not(.as-page):not(.rd-page):not(.lyr-on):not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-inner { height: auto !important; min-height: 0 !important; padding-top: 14px !important; padding-bottom: 12px !important; }
html:not(.as-page):not(.rd-page):not(.lyr-on):not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-inner { align-items: end; }
/* (replaced by the second pass below) */
html:not(.as-page):not(.rd-page):not(.lyr-on):not(:has(#kpPiece.kz:not([hidden]))) .nav .tools { padding-bottom: 6px; }
/* (replaced by the second pass below) */
/* inside the site the seal steps aside: the name alone is enough */

@media (max-width: 720px) {
/* (replaced by the second pass below) */
/* (replaced by the second pass below) */
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-inner { padding-inline: 14px !important; column-gap: 8px; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .brand > span { font-size: 13.5px !important; letter-spacing: .2em !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .tools .lang-btn { font-size: 12px; width: auto; padding: 0 6px; }
}

/* the contact lines at the foot of the page: quiet until the eye rests on them */
.foot-ct { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 12.5px; letter-spacing: .02em; }
.foot-ct a, .foot-ct span { color: inherit; text-decoration: none; opacity: .55; transition: opacity .35s ease; }
.foot-ct a:hover, .foot-ct a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.foot-ct:hover span { opacity: .7; }
@media (hover: none) { .foot-ct a, .foot-ct span { opacity: .72; } }

/* ===== The bar, second pass: the seal keeps the name company =====
   Inside the site it stands beside the name and hangs a little below the bar's edge, the way a seal is pressed
   over the edge of a letter; on the entrance screen it stays above the name, as it was. ===== */
.brand-wrap { position: relative; display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-inner > .brand-wrap, html:not(:has(#kpPiece.kz:not([hidden]))) .nav .brand-wrap { grid-column: 2; grid-row: 1; justify-self: center; }
html:not(:has(#kpPiece.kz:not([hidden]))) .nav .brand { grid-column: auto; grid-row: auto; padding-top: 0 !important; }
/* inside the site: the seal to the left of the name, hanging a little past the bar's edge */
html:not(:has(#kpPiece.kz:not([hidden]))) .nav-seal, html:not(:has(#kpPiece.kz:not([hidden]))).seal-sm .nav-seal { position: absolute !important; inset: auto !important; right: 100% !important; margin-right: 12px !important; top: 13px !important; translate: none !important; width: 50px !important; flex: none; z-index: 4; opacity: 1 !important; pointer-events: auto; }
html:not(:has(#kpPiece.kz:not([hidden]))) .nav-seal img { display: block; width: 100%; height: auto; }
/* the entrance screen: the seal over the name, both in the middle, as it was */
html:not(.as-page):not(.rd-page):not(.lyr-on):not(:has(#kpPiece.kz:not([hidden]))) .brand-wrap { flex-direction: column; gap: 2px; }
html:not(.as-page):not(.rd-page):not(.lyr-on):not(:has(#kpPiece.kz:not([hidden]))) .nav-seal, html:not(.as-page):not(.rd-page):not(.lyr-on):not(:has(#kpPiece.kz:not([hidden]))).seal-sm .nav-seal { position: relative !important; right: auto !important; margin: 0 !important; top: 0 !important; width: 58px !important; }
html:not(.as-page):not(.rd-page):not(.lyr-on):not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-inner { align-items: end; }
html:not(.as-page):not(.rd-page):not(.lyr-on):not(:has(#kpPiece.kz:not([hidden]))) .nav .tools { padding-bottom: 4px; }
html.intro-on .nav-seal { opacity: 0 !important; }

/* the links of the sections only where they have real room; under that the menu carries them */
html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-links a { font-size: 13.5px !important; padding: 0 12px !important; }
@media (max-width: 1259px) { html:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-links { display: none !important; } }
/* with the links away, the menu takes one side and the language the other */
@media (max-width: 1259px) {
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .tools { display: contents !important; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .tools .lang-btn { grid-column: 1; grid-row: 1; justify-self: start; }
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav .tools .menu-btn { grid-column: 3; grid-row: 1; justify-self: end; }
}

/* the stone's photo in the reader: a plain sign that it opens */
.rd-facts-sw { position: relative; width: 76px !important; }
.rd-facts-sw::after { content: ""; position: absolute; inset-inline-end: 4px; bottom: 4px; width: 14px; height: 14px; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; box-shadow: 0 0 6px rgba(0,0,0,.35); opacity: .9; }

@media (max-width: 720px) {
  html:not(:has(#kpPiece.kz:not([hidden]))) .nav-seal, html:not(:has(#kpPiece.kz:not([hidden]))).seal-sm .nav-seal { width: 42px !important; margin-right: 8px !important; top: 11px !important; }
  html:not(.as-page):not(.rd-page):not(.lyr-on):not(:has(#kpPiece.kz:not([hidden]))) .nav-seal { width: 48px !important; margin-right: 0 !important; top: 0 !important; }
}

/* the gallery piece page on the phone: the name stands beside the seal, whole (it had slipped under the seal and past the screen's edge) */
@media (max-width: 720px) {
  html:has(#kpPiece.kz:not([hidden])) .nav .brand-wrap { width: auto !important; flex: 0 0 auto; }
  html:has(#kpPiece.kz:not([hidden])) .nav .brand { position: static !important; left: auto !important; right: auto !important; transform: none !important; translate: none !important; margin: 0 0 0 calc(var(--nav-seal-w, 39px) + 12px) !important; padding: 0 !important; }
}
/* a writing open in the reader (library, a stone, an essay, the questions): the section underline of the page left behind goes away */
html.rd-page:not(:has(#kpPiece.kz:not([hidden]))) .nav .nav-links a[data-door], html.rd-page:has(#kpPiece.kz:not([hidden])) .nav .nav-links a[data-door] { border-bottom-color: transparent !important; }

/* =====================================================================================================
   The calm layer (2026-11-13). Closer to the quiet of the great studios' sites: light ground everywhere,
   no dark blocks, small calm words, larger pictures with more air around them, nothing written over a photo.
   Everything here only overrides what is above; remove this block to return to the site as it was.
   ===================================================================================================== */
:root { --calm-ground: #F3F1EC; --calm-ink: #1F1D1B; --calm-mute: #857F77; --calm-line: rgba(31, 29, 27, .12); --calm-seal: #5B2A1F; }
/* one ground for the whole site, every section, the reader and the foot of every page alike: a white with the least warmth
   (#F3F1EC), near-black words, and no other colour but the wax seal (2026-11-13; it replaces a colour per section).
   html[data-tone] is still set by kalo.js, so a section could be given its own shade again here if ever wanted. */
:root, html[data-tone], html.rd-page { --tone: #F3F1EC; --tone-deep: #F3F1EC; }
html body #contact .kc-foot { border-top: 1px solid var(--calm-line); }
html body, html:not(.as-page) body, main#top, #kpSec, #kpPiece.kz:not([hidden]), .rd, .rd-body, .lib-page, .rd-bar { background: var(--tone) !important; }

/* --- the head of a section (gallery, library): a quiet name on white, no dark photo, no ornament --- */
header.pb { height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; max-height: none !important; margin: 0 !important; padding: clamp(56px, 8vw, 104px) 0 clamp(20px, 3vw, 36px) !important; background: none !important; color: var(--calm-ink) !important; overflow: visible !important; }
header.pb .pb-ph, header.pb .hx-orn, header.pb .hx-lib-ic, header.pb::before, header.pb::after { display: none !important; }
header.pb .pb-in { position: static !important; transform: none !important; color: var(--calm-ink) !important; text-shadow: none !important; display: flex; flex-direction: column; align-items: center; gap: 14px; }
header.pb h1 { margin: 0 !important; font-family: 'Noto Naskh Arabic', 'EB Garamond', serif !important; font-size: clamp(22px, 2.1vw, 28px) !important; font-weight: 300 !important; letter-spacing: 0 !important; line-height: 1.3 !important; color: var(--calm-ink) !important; text-shadow: none !important; }
html[lang="en"] header.pb h1 { font-family: 'EB Garamond', serif !important; font-size: clamp(15px, 1.3vw, 18px) !important; font-weight: 400 !important; letter-spacing: .42em !important; text-transform: uppercase; padding-left: .42em; }
header.pb h1 .kname { color: inherit !important; font: inherit !important; letter-spacing: inherit !important; }
header.pb .pb-in > p { margin: 0 !important; font-size: 13.5px !important; color: var(--calm-mute) !important; text-shadow: none !important; max-width: 520px; text-align: center; }
#kpSec header.pb .pb-in > p { display: none !important; }   /* the gallery's tagline: the pieces say it */
header.pb .hx-btn { background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 2px 0 !important; min-height: 0 !important; color: var(--calm-ink) !important; border-bottom: 1px solid currentColor !important; border-radius: 0 !important; font-size: 13px !important; }

/* --- the gallery: three columns of larger pictures, the name and the price only --- */
#kpSec .kg-bar { border: 0 !important; border-top: 1px solid var(--calm-line) !important; border-bottom: 1px solid var(--calm-line) !important; background: none !important; margin-inline: clamp(24px, 6vw, 120px) !important; padding-inline: 0 !important; font-size: 12.5px !important; color: var(--calm-mute) !important; }
#kpSec .kg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: clamp(48px, 5.5vw, 88px) clamp(20px, 3vw, 48px) !important; padding: clamp(36px, 4vw, 64px) clamp(24px, 6vw, 120px) clamp(80px, 9vw, 140px) !important; }
#kpSec .kg-c { background: none !important; box-shadow: none !important; }
#kpSec .kg-c .kg-ph { aspect-ratio: 4 / 5 !important; height: auto !important; background-color: #EFEBE4 !important; border-radius: 0 !important; }
#kpSec .kg-c .kg-a { display: none !important; }
#kpSec .kg-c .kg-n { font-size: 14.5px !important; font-weight: 400 !important; color: var(--calm-ink) !important; margin-top: 18px !important; letter-spacing: 0 !important; }
#kpSec .kg-c .kg-p, #kpSec .kg-c .kg-m { font-size: 13px !important; color: var(--calm-mute) !important; font-weight: 300 !important; margin-top: 4px !important; }
#kpSec .kg-c:hover .kg-n { color: var(--calm-seal) !important; }
@media (max-width: 900px) { #kpSec .kg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 44px 16px !important; padding-inline: 18px !important; } #kpSec .kg-bar { margin-inline: 18px !important; } }

/* --- the piece: no dark column; the piece, its words and air --- */
@media (min-width: 721px) {
  .kz-page { grid-template-columns: minmax(0, 1fr) !important; }
  .kz-side { display: none !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav { left: 0 !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav .nav-inner { padding-left: 116px !important; }
  html:has(#kpPiece.kz:not([hidden])) .nav-seal { left: 40px !important; top: 9px !important; width: 56px !important; }
  .kz-body { padding-top: 112px !important; }
  .kz-top { column-gap: clamp(40px, 5vw, 96px) !important; }
}
#kpPiece.kz .kz-t { font-size: clamp(26px, 2.3vw, 34px) !important; font-weight: 300 !important; line-height: 1.35 !important; }
#kpPiece.kz .kz-sec { font-size: 12.5px !important; color: var(--calm-mute) !important; letter-spacing: 0 !important; }
#kpPiece.kz .kz-sec::before, #kpPiece.kz .kz-sec::after { opacity: .5; }
#kpPiece.kz .kz-pr { font-size: 20px !important; font-weight: 400 !important; }
#kpPiece.kz .kz-card { background: none !important; border-top: 1px solid var(--calm-line) !important; box-shadow: none !important; border-radius: 0 !important; }
#kpPiece.kz .kz-card h2, #kpPiece.kz .kz-rel h2 { font-size: 15px !important; font-weight: 400 !important; }
#kpPiece.kz .kz-det-ph, #kpPiece.kz .kz-rel-ph, #kpPiece.kz .kz-main-ph { background-color: #EFEBE4 !important; border-radius: 0 !important; box-shadow: none !important; }
.kz-crumb { font-size: 12px !important; color: var(--calm-mute) !important; }

/* --- reading: the cover is a picture, not a strip --- */
.rd-hero.lib-ph, .rd .rd-hero { height: auto !important; aspect-ratio: 16 / 9; max-height: 74vh; width: min(1180px, calc(100% - 48px)) !important; margin: 24px auto 0 !important; border-radius: 0 !important; background-size: cover !important; background-position: center !important; }
.rd .rd-narrow h1, .rd #rdH { font-weight: 300 !important; font-size: clamp(28px, 2.6vw, 38px) !important; line-height: 1.35 !important; }
.rd .rd-lede { color: var(--calm-mute) !important; font-size: 17px !important; }
.rd .rd-text { font-size: 17px !important; line-height: 2.05 !important; }
html[lang="en"] .rd .rd-text { line-height: 1.75 !important; }
.lv .lv-im, .lv .lv-im img { border-radius: 0 !important; }
.lv b { font-weight: 400 !important; }

/* --- the end of every page: light and small, as a colophon --- */
#contact.contact { background: var(--tone-deep) !important; background-image: none !important; color: var(--calm-ink) !important; border-top: 1px solid var(--calm-line) !important; padding-top: clamp(56px, 6vw, 88px) !important; padding-bottom: 40px !important; min-height: 0 !important; }
#contact.contact::before, #contact.contact::after { display: none !important; }
#contact .contact-head h2 { font-size: clamp(20px, 1.8vw, 24px) !important; font-weight: 300 !important; color: var(--calm-ink) !important; }
#contact .contact-head h2 em, #contact .contact-head h2 .kname { color: var(--calm-seal) !important; font-style: normal !important; }
#contact dt { font-size: 11.5px !important; color: var(--calm-mute) !important; letter-spacing: .02em !important; font-weight: 400 !important; }
#contact dd, #contact dd a, #contact .save-ct, #contact .save-ct span { color: var(--calm-ink) !important; font-size: 14px !important; }
#contact .save-ct { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; }
#contact .save-ct svg, #contact .cp svg { stroke: var(--calm-mute) !important; }
#contact .cp { background: none !important; border: 0 !important; box-shadow: none !important; }
#contact .foot { border-top: 1px solid var(--calm-line) !important; color: var(--calm-mute) !important; }
#contact .foot .brand, #contact .foot .brand span, #contact .foot .brand svg { color: var(--calm-seal) !important; fill: var(--calm-seal) !important; }
#contact .foot a, #contact .foot span, #contact .foot-ct a, #contact .foot-ct span { color: var(--calm-mute) !important; }
#contact .foot a:hover { color: var(--calm-ink) !important; }

/* --- the bar: a hairline and nothing more --- */
.nav { box-shadow: none !important; }
html.as-page .nav, html.rd-page .nav { border-bottom: 1px solid var(--calm-line) !important; background: var(--tone) !important; }
/* nothing rises or fades in while scrolling: everything is simply there (the owner's wish, 2026-10-28) */
.rv, .rv.rv-in { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
html body #contact, html body #contact :is(h2, h3, dt, dd, a, span, button, p, small, li, em) { -webkit-text-fill-color: currentColor !important; }
#contact { --kn-on-olive: var(--calm-ink) !important; }
#contact .foot .brand > span { --bw: var(--calm-seal) !important; }
#contact dt { opacity: 1 !important; }
html body #contact .contact-head h2 em, html body #contact .contact-head h2 em .kname { color: var(--calm-seal) !important; -webkit-text-fill-color: var(--calm-seal) !important; }

/* the pieces' frames take a shade of their world instead of grey */
#kpSec .kg-c .kg-ph, #kpPiece.kz .kz-det-ph, #kpPiece.kz .kz-rel-ph, #kpPiece.kz .kz-main-ph { background-color: rgba(29, 25, 21, .04) !important; }
#contact .foot { border-top-color: rgba(91, 42, 31, .14) !important; }
html body .rd .rd-body > *, html body .rd .rd-body > * > *, html body .rd .lib-page, html body .rd .rd-art, html body .rd .rd-wrap { background-color: transparent !important; }
html body .rd .rd-body, html body div.rd > .rd-body, html.rd-page body .rd-body { background: var(--tone) !important; background-color: var(--tone) !important; }
html { background: var(--tone) !important; }

/* the bar: drawn by a layer of the page's own colour; it rises away slowly while one reads down and comes back slowly on the way up.
   The seal stays where it is (kalo-calm.js sets html.bar-up). No glass behind it: on phones it left a pale square around the seal. */
html body header.nav, html:not(:has(#kpPiece.kz:not([hidden]))) body header.nav, html:has(#kpPiece.kz:not([hidden])) body header.nav { background: transparent !important; box-shadow: none !important; border-bottom-color: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body header.nav *, html body .nav-seal { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html:not(:has(#kpPiece.kz:not([hidden]))) body header.nav::before, html:has(#kpPiece.kz:not([hidden])) body header.nav::before { content: "" !important; display: block !important; position: absolute !important; inset: 0 !important; z-index: -1 !important; pointer-events: none; background: var(--tone) !important; transition: transform .9s cubic-bezier(.4, 0, .2, 1), opacity .9s ease !important; }
html.as-page body header.nav::before, html.rd-page body header.nav::before { border-bottom: 1px solid rgba(29, 25, 21, .08) !important; }
html body header.nav .nav-links, html body header.nav .tools > *, html body header.nav .nav-row { transition: transform .9s cubic-bezier(.4, 0, .2, 1), opacity .7s ease !important; }
html body header.nav .brand-wrap { transition: transform 1s cubic-bezier(.4, 0, .2, 1) !important; }
html body header.nav .brand { transition: text-shadow .9s ease, transform 1s cubic-bezier(.4, 0, .2, 1) !important; }
html.bar-up body header.nav::before { transform: translateY(-101%) !important; opacity: 0 !important; }
/* when the bar rises: the language, the menu and the links go up with it; the seal and the name stay, drawn to the left */
html.bar-up body header.nav .nav-links, html.bar-up body header.nav .tools > *, html.bar-up body header.nav .nav-row { transform: translateY(-160%) !important; opacity: 0 !important; pointer-events: none !important; }
html.bar-up body header.nav .brand-wrap { transform: translateX(var(--kc-brand-dx, 0px)) !important; }
html.bar-up:not(#x):not(#y) body header.nav .brand-wrap > a.brand, html.bar-up:not(#x):not(#y) body header.nav .brand { transform: translateY(var(--kc-name-dy, 0px)) !important; translate: none !important; text-shadow: 0 0 14px rgba(252, 251, 248, .95), 0 0 3px rgba(252, 251, 248, .9) !important; }

/* the library: no back button above it, its name small, its writings as a quiet list whose picture shows when the pointer rests on a line */
.rd .rd-back.only-x { display: none !important; }
.rd .rd-bar { background: transparent !important; border: 0 !important; }
html body .rd header.pb h1#rdH, html body .rd header.pb h1 { font-size: clamp(22px, 2vw, 28px) !important; letter-spacing: 0 !important; text-transform: none !important; padding: 0 !important; }
html[lang="en"] body .rd header.pb h1#rdH, html[lang="en"] body .rd header.pb h1 { font-family: 'EB Garamond', serif !important; font-size: clamp(14px, 1.2vw, 17px) !important; letter-spacing: .36em !important; text-transform: uppercase !important; padding-left: .36em !important; }
html body .rd .lib-cats button { font-size: 14px !important; }
@media (min-width: 821px) and (hover: hover) {
  html body .rd .lv-list { max-width: 980px; margin-inline: auto; }
  html body .rd .lv { position: relative; display: grid !important; grid-template-columns: minmax(0, 1fr) !important; padding: 26px 0 !important; border-top: 1px solid rgba(29, 25, 21, .12) !important; min-height: 0 !important; background: none !important; }
  html body .rd .lv .lv-im { position: absolute !important; inset-inline-end: 0; top: 50%; width: 220px !important; height: auto !important; aspect-ratio: 16 / 10; transform: translateY(-50%) scale(.96); opacity: 0; pointer-events: none; z-index: 3; transition: opacity .6s ease, transform .9s cubic-bezier(.2, .6, .2, 1); box-shadow: 0 18px 40px rgba(29, 25, 21, .12); }
  html body .rd .lv .lv-im img { width: 100% !important; height: 100% !important; object-fit: cover; position: static !important; }
  html body .rd .lv:hover .lv-im { opacity: 1; transform: translateY(-50%) scale(1); }
  html body .rd .lv .lv-tx { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 32px; width: 100% !important; max-width: 70%; padding: 0 !important; text-align: start; }
  html body .rd .lv .lv-tx b { grid-column: 1; font-size: clamp(20px, 1.8vw, 26px) !important; font-weight: 300 !important; }
  html body .rd .lv .lv-tx .lv-sub { grid-column: 1; font-size: 14.5px !important; color: #6F665D !important; }
  html body .rd .lv .lv-tx small { grid-column: 1; font-size: 12.5px !important; color: #8A8178 !important; }
  html body .rd .lv .lv-tx i { display: none !important; }
}
@media (min-width: 821px) and (hover: hover) {
  html body .rd .lib-mag { display: block !important; max-width: 980px !important; margin-inline: auto !important; padding-inline: 24px; }
  html body .rd .lv-list { display: block !important; width: 100% !important; max-width: none !important; }
  html body .rd .lv { width: 100% !important; justify-items: stretch !important; }
  html[lang="ar"] body .rd .lv { direction: rtl; }
  html body .rd .lv .lv-tx { grid-template-columns: minmax(0, 1fr) !important; text-align: start !important; }
}
html[lang="ar"] body .rd .lv .lv-tx, html[lang="ar"] body .rd .lib-cats { direction: rtl; }

html body .rd .lv, html body .rd .lv * { touch-action: manipulation; }

/* The article's line under the title, in Arabic: the byline first, then the date and the reading time, read from the right with a dot between each */
html[lang="ar"] .rd-meta-tx { direction: rtl; }

/* The article's sources in Arabic: the numbers on the right, in Arabic figures, never over the words */
html[lang="ar"] body .rd .rd-src { direction: rtl; text-align: right; }
html[lang="ar"] body .rd .rd-src ol { direction: rtl; unicode-bidi: isolate; list-style: arabic-indic; padding-inline-start: 28px; padding-inline-end: 0; text-align: right; }
html[lang="ar"] body .rd .rd-src li { unicode-bidi: isolate; direction: rtl; text-align: right; padding-inline-start: 4px; }
