/* Cléo Clinics — shared stylesheet (AR + EN) */

@font-face { font-family: "Ivy Mode"; src: url("../fonts/IvyMode-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Ivy Mode"; src: url("../fonts/IvyMode-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ivy Mode"; src: url("../fonts/IvyMode-LightItalic.otf") format("opentype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Ador Hairline"; src: url("../fonts/AdorHairline-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ador Hairline"; src: url("../fonts/AdorHairline-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Ador Hairline"; src: url("../fonts/AdorHairline-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Changa"; src: url("../fonts/arabic/variable/changa-arabic-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+0660-0669; }

:root {
  --navy: #071238;
  --navy-2: #0c1844;
  --navy-3: #13204f;
  --navy-line: #2a3563;
  --sand: #e9e6e1;
  --sand-2: #d2ccc4;
  --stone: #9b9186;
  --taupe: #8f806b;
  --taupe-ink: #5d5242;
  --on-navy: #e9e6e1;
  --on-navy-2: #bdb6ac;
  --on-sand: #071238;
  --on-sand-2: #4f4639;
  --danger-sand: #8a2d1f;
  --danger-navy: #f0b3a3;

  --f-display: "Ivy Mode", "Changa", "Times New Roman", serif;
  --f-body: "Ador Hairline", "Changa", system-ui, sans-serif;

  --gutter: clamp(16px, 4.5vw, 72px);
  --max: 1320px;
  --section: clamp(56px, 8vw, 128px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ring: 1px solid var(--stone);
  --lattice: url("../brand/pattern.svg");
  --lattice-size: 70px 79.4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--stone);
}
:lang(en) body, body:lang(en) { font-weight: 400; line-height: 1.7; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .28em; text-decoration-thickness: 1px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 300; line-height: 1.12; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { font-weight: 400; line-height: 1.3; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--stone); color: var(--navy); }
:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; border-radius: 4px; }
.on-sand :focus-visible, .slip :focus-visible { outline-color: var(--navy); }
html { scrollbar-color: var(--stone) var(--navy); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-line); border: 3px solid var(--navy); border-radius: 99px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--sand); color: var(--navy); padding: 10px 18px; border-radius: 99px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.lattice { position: relative; isolation: isolate; }
.lattice::before { content: ""; position: absolute; inset: 0; background: var(--lattice) 0 0 / var(--lattice-size) repeat; opacity: .5; z-index: -1; pointer-events: none; }
.on-sand { background: var(--sand); color: var(--on-sand); }
.on-sand-2 { background: var(--sand-2); color: var(--on-sand); }
.on-sand ::selection, .on-sand-2 ::selection { background: var(--navy); color: var(--sand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-body); font-weight: 500; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sand { background: var(--sand); color: var(--navy); }
.btn--sand:hover { background: #fff; }
.btn--navy { background: var(--navy); color: var(--sand); }
.btn--navy:hover { background: var(--navy-3); }
.btn--line { border-color: var(--stone); color: inherit; background: transparent; }
.btn--line:hover { border-color: currentColor; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
:dir(ltr) .link svg, [dir="ltr"] .link svg { transform: scaleX(-1); }
.link:hover svg { transform: translateX(-4px); }
[dir="ltr"] .link:hover svg { transform: scaleX(-1) translateX(-4px); }

/* ---------- Header ---------- */
.site-head { position: absolute; top: 0; inset-inline: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 96px; }
.brand { display: block; width: 132px; color: var(--sand); }
.brand svg { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a { text-decoration: none; font-size: .95rem; color: var(--on-navy-2); transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sand); }
.head-tools { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 40px; padding: 0 14px; border: var(--ring); border-radius: 99px; text-decoration: none; font-family: "Ador Hairline", sans-serif; font-weight: 500; font-size: .85rem; letter-spacing: .12em; }
.lang:lang(ar) { font-family: "Changa", sans-serif; letter-spacing: 0; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 99px; border: var(--ring); background: none; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.head-call { font-family: "Ador Hairline", sans-serif; font-weight: 500; letter-spacing: .06em; font-size: .95rem; direction: ltr; unicode-bidi: isolate; text-decoration: none; color: var(--on-navy-2); }
.head-call:hover { color: var(--sand); }

@media (max-width: 1080px) {
  .nav, .head-call { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: 0; background: var(--navy); padding: 112px var(--gutter) 40px; z-index: -1;
  }
  .nav.is-open a { font-family: var(--f-display); font-size: 1.9rem; padding: 14px 0; border-bottom: 1px solid var(--navy-line); color: var(--sand); }
}

/* ---------- Capsules ---------- */
.capsule { border-radius: 999px; }
.window { position: relative; border-radius: 999px; outline: var(--ring); outline-offset: 12px; }
.slot {
  position: relative; overflow: hidden; border-radius: inherit; width: 100%; height: 100%;
  background: var(--navy-3); display: grid; place-items: center;
}
.slot::before { content: ""; position: absolute; inset: 0; background: var(--lattice) center / var(--lattice-size) repeat; opacity: .45; }
.slot::after { content: ""; width: 34%; aspect-ratio: 1008 / 680; background: url("../brand/lily-sand.svg") center / contain no-repeat; opacity: .55; position: relative; }
.on-sand .slot, .on-sand-2 .slot, .slot--sand { background: var(--sand-2); }
.on-sand .slot::after, .on-sand-2 .slot::after, .slot--sand::after { background-image: url("../brand/lily.svg"); opacity: .18; }
/* hero slides carry brand marks until their photos arrive */
.slot[data-photo="hero-1"]::after { width: 34%; aspect-ratio: 637 / 1578; background-image: url("../brand/logo-v-sandlight.svg"); opacity: .92; }
.slot[data-photo="hero-3"]::after { width: 50%; aspect-ratio: 440 / 532; background-image: url("../brand/stamp-logo-sand.svg"); opacity: .75; }
.slot[data-photo="hero-5"]::after { width: 30%; aspect-ratio: 637 / 1578; background-image: url("../brand/logo-v-sand.svg"); opacity: .6; }
.slot:has(img)::before, .slot:has(img)::after { content: none; }
.slot > img, .slot > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

.js .opens > .slot { clip-path: inset(0 18% round 999px); transition: clip-path 1.4s var(--ease-out); }
.js .opens.is-open > .slot { clip-path: inset(0 0 round 999px); }
.js .opens { outline-color: transparent; transition: outline-color 1.2s .35s var(--ease-out); }
.js .opens.is-open { outline-color: var(--stone); }
@media (prefers-reduced-motion: reduce) { .js .opens > .slot { clip-path: none; transition: none; } .js .opens { outline-color: var(--stone); transition: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: 96px; min-height: min(100svh, 980px); display: flex; align-items: center; }
.hero .wrap {
  display: grid; align-items: center; gap: clamp(28px, 4vw, 64px);
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 300px) minmax(300px, 356px);
  padding-block: clamp(24px, 3vw, 48px);
}
.hero h1 { font-size: clamp(2.9rem, 5.6vw, 5.6rem); color: var(--sand); }
.hero h1 span { display: block; color: var(--stone); }
:lang(en) .hero h1 { font-size: clamp(3rem, 5.8vw, 5.8rem); letter-spacing: -.02em; }
.hero .lede { margin-top: 28px; max-width: 34ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--on-navy-2); }
.concerns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.concerns a { text-decoration: none; padding: 9px 18px; border: 1px solid var(--navy-line); border-radius: 99px; font-size: .95rem; color: var(--on-navy); transition: border-color .3s, background-color .3s; }
.concerns a:hover { border-color: var(--stone); background: var(--navy-2); }
/* Cleopatra slider: slides stack inside the capsule; each new one opens like the capsule itself */
.hero-slides .window { height: clamp(400px, calc(100svh - 360px), 580px); touch-action: pan-y; }
.hero-slides .slide { position: absolute; inset: 0; visibility: hidden; }
.hero-slides .slide.is-prev { visibility: visible; z-index: 1; }
.hero-slides .slide.is-active { visibility: visible; z-index: 2; }
.hero-slides.is-moving .slide.is-active { animation: slide-open 1.3s var(--ease-out) both; }
@keyframes slide-open { from { clip-path: inset(0 50% round 999px); } to { clip-path: inset(0 0 round 999px); } }
.hero-slides .slide img { transform: scale(1.06); transition: transform 9s linear; }
.hero-slides .slide.is-active > img { transform: scale(1); }
.hero-caps { margin-top: 28px; min-height: 5.6em; text-align: center; }
.hero-cap { font-size: 1rem; line-height: 1.6; color: var(--sand); text-wrap: balance; }
.hero-cap.is-active { animation: cap-in .8s var(--ease-out) both; }
@keyframes cap-in { from { opacity: 0; transform: translateY(6px); } }
.hero-cap .link { display: flex; width: max-content; margin: 10px auto 0; font-size: .9rem; color: var(--stone); }
.hero-cap .link:hover { color: var(--sand); }
.hero-pager { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.hero-pager .dots { display: flex; align-items: center; gap: 6px; }
.hero-pager .dot { position: relative; width: 20px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .5s var(--ease-out); }
.hero-pager .dot::before, .hero-pager .dot::after { content: ""; position: absolute; inset-inline: 0; top: 11px; height: 2px; border-radius: 2px; background: var(--navy-line); }
.hero-pager .dot::after { background: var(--sand); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hero-pager .dot::after { transform-origin: right; }
.hero-pager .dot[aria-current] { width: 44px; }
.hero-pager .dot[aria-current]::before { background: var(--stone); }
.hero-slides.is-playing .hero-pager .dot[aria-current]::after { animation: dot-fill var(--slide-time, 6.5s) linear both; }
.hero-slides.is-held .hero-pager .dot[aria-current]::after { animation-play-state: paused; }
.hero-slides:not(.is-playing) .hero-pager .dot[aria-current]::after { transform: scaleX(1); }
@keyframes dot-fill { to { transform: scaleX(1); } }
.play { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: var(--ring); background: none; color: var(--stone); display: grid; place-items: center; cursor: pointer; transition: color .3s, border-color .3s; }
.play:hover { color: var(--sand); border-color: var(--sand); }
.play svg { width: 15px; height: 15px; }
.hero-pager .dot:focus-visible, .play:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  .hero-slides.is-moving .slide.is-active, .hero-cap.is-active { animation: none; }
  .hero-slides .slide img { transform: none; transition: none; }
}

/* ---------- Booking slip ---------- */
.slip {
  background: var(--sand); color: var(--on-sand); border-radius: 999px;
  padding: clamp(60px, 4.8vw, 70px) clamp(28px, 2.6vw, 40px) clamp(60px, 5vw, 70px);
  outline: var(--ring); outline-offset: 12px; text-align: center;
}
.slip::before { content: ""; display: block; width: 88px; aspect-ratio: 1649.3 / 720.3; margin: 0 auto 14px; background: url("../brand/logo-h-navy.svg") center / contain no-repeat; }
.slip h2 { font-size: clamp(1.7rem, 2.2vw, 2rem); }
:lang(en) .slip h2 { font-size: clamp(1.9rem, 2.4vw, 2.3rem); }
.slip .note { margin-top: 6px; font-size: .9rem; color: var(--on-sand-2); line-height: 1.6; }
.form { margin-top: 18px; display: grid; gap: 10px; text-align: start; }
.field label, .field legend { display: block; font-size: .85rem; font-weight: 500; color: var(--on-sand-2); margin-bottom: 4px; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 6px 2px; border: 0; border-bottom: 1px solid var(--stone); border-radius: 0;
  background: transparent; color: var(--navy); font-size: 1rem; outline-offset: 2px;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23071238' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat; background-size: 18px; background-position: left 2px center; padding-inline-end: 26px; cursor: pointer; }
[dir="ltr"] .field select { background-position: right 2px center; }
.field input::placeholder { color: #6b6155; }
.field input:focus, .field select:focus { border-bottom-color: var(--navy); }
.field[data-invalid] input, .field[data-invalid] select { border-bottom-color: var(--danger-sand); }
.field .err { display: block; min-height: 0; font-size: .82rem; color: var(--danger-sand); margin-top: 4px; }
.field .err:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: flex; border: 1px solid var(--navy); border-radius: 99px; overflow: hidden; }
.seg label { flex: 1; margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 42px; font-size: .95rem; font-weight: 500; color: var(--navy); transition: background-color .3s, color .3s; }
.seg input:checked + span { background: var(--navy); color: var(--sand); }
.seg input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: -5px; border-radius: 99px; }
.form .btn { width: 100%; margin-top: 8px; }
.slip .alt { margin-top: 16px; font-size: .9rem; color: var(--on-sand-2); }
.slip .alt a { font-family: "Ador Hairline", sans-serif; font-weight: 500; letter-spacing: .05em; direction: ltr; unicode-bidi: isolate; color: var(--navy); }
.form-status { font-size: .9rem; color: var(--navy); text-align: center; }
.form-status a { display: block; margin-top: 4px; font-weight: 500; }
.picked { font-size: .9rem; color: var(--navy); text-align: center; }
.picked button { background: none; border: 0; padding: 0; color: var(--on-sand-2); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.form-status:empty { display: none; }

@media (max-width: 1180px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); grid-template-areas: "copy slip" "win slip"; row-gap: 48px; }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-window { grid-area: win; align-self: start; }
  .hero .slip { grid-area: slip; }
  /* the capsule shrinks and sits beside its caption */
  .hero-slides { display: grid; grid-template-columns: clamp(124px, 20vw, 180px) minmax(0, 1fr); grid-template-areas: "win caps" "win pager"; column-gap: clamp(22px, 3vw, 36px); align-items: center; }
  .hero-slides .window { grid-area: win; height: auto; aspect-ratio: 1 / 1.9; outline-offset: 8px; }
  .hero-caps { grid-area: caps; align-self: end; margin-top: 0; min-height: 0; text-align: start; }
  .hero-cap .link { margin-inline: 0; }
  .hero-pager { grid-area: pager; align-self: start; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; grid-template-areas: "copy" "win" "slip"; row-gap: 40px; padding-top: 24px; }
  /* phones: quieter type so the slider gets the stage */
  .hero h1, :lang(en) .hero h1 { font-size: clamp(2rem, 7.4vw, 2.6rem); }
  .hero .lede { margin-top: 14px; font-size: 1rem; line-height: 1.75; }
  .concerns { margin-top: 22px; gap: 8px; }
  .concerns a { padding: 7px 14px; font-size: .86rem; }
  /* the slider is centred and capped so it never outgrows a large phone */
  .hero-slides { display: block; width: min(100%, 400px); margin-inline: auto; }
  .hero-slides .window { width: 100%; height: auto; aspect-ratio: 1 / 1.5; outline-offset: 10px; }
  .hero-slides .slide img { object-position: 50% 30%; }
  .hero-caps { margin-top: 28px; min-height: 5em; text-align: center; }
  .hero-cap { font-size: 1.05rem; }
  .hero-cap .link { margin-inline: auto; }
  .hero-pager { justify-content: center; }
  .hero .slip { width: 100%; max-width: 380px; margin-inline: auto; margin-top: 12px; }
}

/* Desktop: the slider becomes the hero's full-width backdrop. Copy and slip frame the subject,
   which every 16:9 slide keeps in its middle quarter; caption and dots sit under the copy. */
@media (min-width: 1025px) {
  .hero { overflow: hidden; min-height: min(100svh, 1000px); }
  .hero .wrap {
    grid-template-columns: minmax(300px, 34%) minmax(0, 1fr) minmax(320px, 350px);
    grid-template-areas: "copy . slip" "caps . slip"; row-gap: 44px; align-content: center;
  }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-window { grid-area: caps; align-self: start; }
  .hero .slip { grid-area: slip; align-self: center; }
  .hero h1 { font-size: clamp(2.5rem, 3.9vw, 4.2rem); }
  :lang(en) .hero h1 { font-size: clamp(2.6rem, 4.2vw, 4.5rem); }
  .hero-slides { display: block; }
  .hero-slides .window { position: absolute; inset: 0; z-index: -1; height: auto; aspect-ratio: auto; border-radius: 0; outline: 0; }
  /* navy shade behind the copy side and along the foot keeps type legible over any slide */
  .hero-slides .window::after {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(90deg, rgba(7, 18, 56, .9) 0%, rgba(7, 18, 56, .55) 27%, rgba(7, 18, 56, 0) 45%),
                linear-gradient(0deg, rgba(7, 18, 56, .55) 0%, rgba(7, 18, 56, 0) 24%);
  }
  [dir="rtl"] .hero-slides .window::after {
    background: linear-gradient(270deg, rgba(7, 18, 56, .9) 0%, rgba(7, 18, 56, .55) 27%, rgba(7, 18, 56, 0) 45%),
                linear-gradient(0deg, rgba(7, 18, 56, .55) 0%, rgba(7, 18, 56, 0) 24%);
  }
  .js .hero-slides .window > .slot { clip-path: none; }
  .hero-slides .slide { border-radius: 0; background: var(--navy); }
  /* full height, centred; narrower-than-screen images (the braid, ultra-wide screens) fade into navy */
  .hero-slides .slide img {
    left: 50%; right: auto; width: auto; max-width: none; height: 100%;
    transform: translateX(-50%) scale(1.05);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  }
  .hero-slides .slide.is-active img { transform: translateX(-50%) scale(1); }
  .hero-slides.is-moving .slide.is-active { animation-name: slide-wipe; }
  .hero-caps { margin-top: 0; min-height: 3.4em; text-align: start; }
  .hero-cap .link { margin-inline: 0; }
  .hero-pager { justify-content: flex-start; }
}
@keyframes slide-wipe { from { clip-path: inset(0 50%); } to { clip-path: inset(0 0); } }
@media (min-width: 1025px) and (prefers-reduced-motion: reduce) {
  .hero-slides.is-moving .slide.is-active { animation: none; }
  .hero-slides .slide img, .hero-slides .slide.is-active img { transform: translateX(-50%); }
}

/* ---------- Anniversary band ---------- */
.band { border-block: 1px solid var(--navy-line); }
.band .wrap { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); padding-block: 28px; }
.band .stamp { width: 92px; flex: none; }
.band p { font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--on-navy-2); }
.band strong { font-family: var(--f-display); font-weight: 400; color: var(--sand); font-size: 1.25em; display: block; line-height: 1.4; }
.band .btn { margin-inline-start: auto; }
@media (max-width: 760px) { .band .wrap { flex-wrap: wrap; } .band .stamp { width: 72px; } .band .btn { margin-inline-start: 0; width: 100%; } }

/* ---------- Section heads ---------- */
.section { padding-block: var(--section); }
.head { max-width: 760px; margin-bottom: clamp(28px, 4.5vw, 64px); }
.head h2 { font-size: clamp(2.2rem, 4.2vw, 3.9rem); }
:lang(en) .head h2 { letter-spacing: -.015em; }
.head p { margin-top: 20px; font-size: clamp(1.05rem, 1.3vw, 1.18rem); max-width: 56ch; }
.on-navy-copy { color: var(--on-navy-2); }
.on-sand .head p, .on-sand-2 .head p { color: var(--on-sand-2); }

/* ---------- Departments ---------- */
.depts { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); align-items: start; }
.dept:nth-child(3) { margin-top: clamp(24px, 4vw, 64px); }
.dept:nth-child(2), .dept:nth-child(4) { margin-top: clamp(48px, 7vw, 112px); }
.dept .window { aspect-ratio: 1 / 2.15; outline-offset: 9px; }
.dept:first-child .window { aspect-ratio: 1 / 1.3; outline-offset: 12px; }
.dept:first-child h3 { font-size: clamp(2rem, 3vw, 2.8rem); }
.dept-lede { margin-top: 10px; max-width: 34ch; color: var(--on-sand-2); }
.dept h3 { margin-top: 40px; font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
.dept ul { margin-top: 12px; color: var(--on-sand-2); font-size: .98rem; line-height: 1.9; }
.dept .link { margin-top: 18px; }
@media (max-width: 900px) {
  .depts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }
  .dept:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; align-items: end; }
  .dept:first-child .window { grid-row: 1 / span 5; aspect-ratio: 1 / 1.35; }
  .dept:nth-child(n+2) { margin-top: 0; }
  .dept:nth-child(3) { margin-top: 40px; }
}
@media (max-width: 420px) { .dept .window { outline-offset: 6px; } .dept h3 { margin-top: 26px; } }

/* ---------- Method ---------- */
.method .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.method blockquote { margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; font-family: var(--f-display); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.6; color: var(--sand); max-width: 26ch; }
:lang(en) .method blockquote { font-style: italic; line-height: 1.4; }
.method cite { display: block; margin-top: 14px; font-family: var(--f-body); font-style: normal; font-size: .9rem; color: var(--stone); }
.rail { position: relative; border: var(--ring); border-radius: 999px; padding: clamp(40px, 7vw, 100px) clamp(22px, 4vw, 64px); }
.rail ol { list-style: none; margin: 0; padding: 0; position: relative; }
.rail ol::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 13px; width: 1px; background: var(--navy-line); }
.rail li { position: relative; padding-inline-start: 56px; padding-block: 18px; }
.rail .dot { position: absolute; inset-inline-start: 0; top: 22px; width: 27px; height: 27px; border-radius: 50%; border: var(--ring); background: var(--navy); display: grid; place-items: center; font-family: "Ador Hairline", sans-serif; font-weight: 500; font-size: .75rem; color: var(--stone); }
.rail h3 { font-size: clamp(1.4rem, 1.9vw, 1.75rem); color: var(--sand); }
.rail p { margin-top: 6px; color: var(--on-navy-2); font-size: 1rem; max-width: 40ch; }
@media (max-width: 900px) { .method .wrap { grid-template-columns: 1fr; } .rail { border-radius: 64px; } }

/* ---------- Doctors ---------- */
.lead-doc { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.lead-doc .window { aspect-ratio: 1 / 1.75; }
.lead-doc .window::after { content: ""; position: absolute; z-index: 2; width: clamp(104px, 10vw, 132px); aspect-ratio: 440 / 532; inset-inline-end: -16%; bottom: 7%; border-radius: 50%; background: var(--sand) url("../brand/stamp-logo-dark.svg") center / 84% no-repeat; }
.lead-doc h3 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
.lead-doc .role { margin-top: 8px; color: var(--taupe-ink); font-weight: 500; }
.lead-doc p.bio { margin-top: 22px; max-width: 58ch; color: var(--on-sand-2); }
.lead-doc ul { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.lead-doc li { border: 1px solid var(--stone); border-radius: 99px; padding: 6px 14px; font-size: .9rem; }
.lead-doc .btn { margin-top: 30px; }
.team { margin-top: clamp(44px, 6vw, 88px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); border-top: 1px solid var(--stone); }
.member { display: grid; grid-template-columns: clamp(64px, 6vw, 84px) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 28px; align-items: center; padding-block: 26px; border-bottom: 1px solid var(--sand-2); }
.member .window { grid-row: 1 / span 2; aspect-ratio: 1 / 1.7; outline-offset: 5px; }
.member .slot::after { width: 52%; }
.member h3 { align-self: end; font-size: clamp(1.35rem, 1.9vw, 1.7rem); }
.member a { justify-self: start; align-self: start; margin-top: 4px; font-size: .92rem; color: var(--taupe-ink); }
@media (max-width: 900px) {
  .lead-doc { grid-template-columns: 1fr; }
  .lead-doc .window { width: 100%; max-width: 300px; margin-inline: auto; }
  .lead-doc .window::after { inset-inline-end: -10%; }
  /* stacked: capsule, name, title, bio, chips and button share one centred column (AR and EN alike) */
  .lead-doc { justify-items: center; text-align: center; }
  .lead-doc p.bio { margin-inline: auto; }
  .lead-doc ul { justify-content: center; }
  .team { grid-template-columns: 1fr; }
}

/* ---------- Cleopatra band: the one full-width 16:9 moment, closed by the lily ribbon ---------- */
.cleo-band { position: relative; isolation: isolate; background: var(--navy); padding-bottom: 64px; }
.cleo-band::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 64px; background: url("../brand/lily-pattern-sand.svg") center bottom / 47.6px 64px repeat-x; }
.cleo-band picture { display: block; height: min(56.25vw, 88vh); min-height: 520px; }
.cleo-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* in Arabic she turns toward the copy, which sits on the right */
[dir="rtl"] .cleo-band img { transform: scaleX(-1); }
.cleo-band .wrap { position: absolute; inset: 0 0 64px; display: flex; align-items: center; }
.cleo-band-copy { max-width: min(29vw, 420px); }
.cleo-band h2 { font-size: clamp(2rem, 3.3vw, 3.3rem); line-height: 1.25; color: var(--sand); }
.cleo-band h2 span { display: block; color: var(--stone); }
:lang(en) .cleo-band h2 { letter-spacing: -.015em; line-height: 1.12; }
.cleo-band p { margin-top: 20px; color: var(--on-navy-2); font-size: clamp(1rem, 1.2vw, 1.12rem); }
.cleo-band .link { margin-top: 26px; color: var(--sand); }
@media (max-width: 980px) {
  .cleo-band picture { height: auto; min-height: 0; aspect-ratio: 4 / 5; max-height: 86svh; }
  .cleo-band .wrap { position: static; padding-block: 40px 52px; }
  .cleo-band-copy { max-width: 46ch; }
}

/* ---------- Results (before & after) ---------- */
/* each case is a square pair of capsules: two tall pills side by side (row) or two wide pills stacked (stack) */
.ba-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(56px, 6vw, 88px) clamp(28px, 3.5vw, 56px); align-items: start; }
.ba-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ba { margin: 0; }
.ba-pair { display: grid; gap: 16px; aspect-ratio: 1; padding-block: 14px; box-sizing: content-box; }
.ba[data-layout="row"] .ba-pair { grid-template-columns: 1fr 1fr; }
.ba[data-layout="stack"] .ba-pair { grid-template-rows: 1fr 1fr; }
.ba-shot { position: relative; margin: 0; min-height: 0; border-radius: 999px; outline: var(--ring); outline-offset: 5px; background: var(--navy-2); }
.ba-shot img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ba-shot figcaption { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); padding: 3px 14px; border-radius: 99px; background: var(--sand); color: var(--navy); font-size: .8rem; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.ba[data-layout="stack"] .ba-shot:first-child figcaption { top: 0; bottom: auto; transform: translate(-50%, -50%); }
:lang(en) .ba-shot figcaption { font-family: "Ador Hairline", sans-serif; letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; padding: 4px 12px 4px 14px; }
.ba-text { margin-top: 30px; }
.ba h3 { font-size: clamp(1.45rem, 2vw, 1.9rem); color: var(--sand); }
.ba p { margin-top: 8px; max-width: 44ch; color: var(--on-navy-2); }
.ba .meta { margin-top: 10px; font-size: .9rem; color: var(--stone); }
.ba .link { margin-top: 16px; color: var(--sand); }
.on-sand .ba-shot { background: var(--sand-2); }
.on-sand .ba-shot figcaption { background: var(--navy); color: var(--sand); }
.on-sand .ba h3, .on-sand .ba .link { color: var(--navy); }
.on-sand .ba p { color: var(--on-sand-2); }
.on-sand .ba .meta { color: var(--taupe-ink); }
.ba-note { align-self: center; justify-self: center; display: grid; justify-items: center; gap: 24px; text-align: center; max-width: 34ch; }
.ba-note img { width: 120px; opacity: .85; }
.ba-foot { margin-top: clamp(36px, 4.5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.fine { font-size: .88rem; color: var(--stone); max-width: 60ch; }
.on-sand .fine { color: var(--taupe-ink); }
@media (max-width: 900px) { .ba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ba-grid--wide { grid-template-columns: 1fr; }
  /* home: cases swipe sideways so the section stays short */
  .ba-grid--swipe { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 4px; scroll-padding-inline: var(--gutter); }
  .ba-grid--swipe::-webkit-scrollbar { display: none; }
  .ba-grid--swipe > * { scroll-snap-align: start; }
}

/* ---------- Journal list ---------- */
.notes { border-top: 1px solid var(--stone); }
.notes li { border-bottom: 1px solid var(--sand-2); }
.notes a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: clamp(16px, 4vw, 64px); align-items: baseline; padding-block: clamp(26px, 3vw, 40px); text-decoration: none; transition: padding .5s var(--ease-out); }
.notes a:hover { padding-inline-start: 14px; }
.notes h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
.notes p { color: var(--on-sand-2); font-size: 1rem; }
.notes .go { width: 44px; height: 44px; border: 1px solid var(--stone); border-radius: 99px; display: grid; place-items: center; }
.notes .go svg { width: 20px; height: 20px; }
[dir="ltr"] .notes .go svg { transform: scaleX(-1); }
.notes-foot { margin-top: 40px; }
@media (max-width: 760px) { .notes a { grid-template-columns: 1fr auto; } .notes p { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Branches ---------- */
.branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); }
.branch .map { position: relative; isolation: isolate; height: 220px; border-radius: 999px; outline: var(--ring); outline-offset: 10px; background: var(--navy-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-decoration: none; color: var(--sand); transition: outline-color .4s var(--ease-out), background-color .4s var(--ease-out); }
.branch .map::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--lattice) center / var(--lattice-size) repeat; opacity: .55; z-index: -1; }
.branch .map svg { width: 44px; height: 44px; }
.branch .map strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--sand); text-align: center; padding-inline: 48px; line-height: 1.4; }
.branch .map span { font-size: .9rem; color: var(--on-navy-2); }
.branch .map--live { overflow: hidden; }
.branch .map--live::before { z-index: 0; }
.branch .map--live iframe { position: absolute; top: -90px; left: -70px; width: calc(100% + 140px); height: calc(100% + 180px); border: 0; pointer-events: none; filter: grayscale(1) contrast(.95) brightness(.8); z-index: 1; transition: opacity 1s var(--ease-out); }
.js .branch .map--live iframe:not(.is-loaded) { opacity: 0; }
.branch .map--live .map-pin { z-index: 1; }
.branch .map--live .map-pin { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -88%); color: var(--navy); fill: var(--sand); filter: drop-shadow(0 6px 10px rgba(7, 18, 56, .45)); }
.branch .map-cover { position: absolute; inset: 0; border-radius: inherit; z-index: 2; }
.branch .map-cover:focus-visible { outline-offset: -4px; }
.branch .map:hover { outline-color: var(--sand); background: #182657; }
.branch h3 { margin-top: clamp(24px, 3vw, 40px); font-size: clamp(2rem, 3.4vw, 3rem); color: var(--sand); }
.branch dl { margin: 18px 0 0; display: grid; gap: 10px; }
.branch dt { font-size: .85rem; color: var(--stone); }
.branch dd { margin: 0; color: var(--on-navy); }
.branch dd a { text-decoration: none; }
.branch .ltr { direction: ltr; unicode-bidi: isolate; font-family: "Ador Hairline", sans-serif; font-weight: 500; letter-spacing: .04em; }
.branch .actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .branches { grid-template-columns: 1fr; } .branch .map { height: 180px; } }

/* ---------- Closing ---------- */
.closing { text-align: center; padding-block: clamp(64px, 8vw, 120px); }
.closing .mark { width: clamp(60px, 6vw, 88px); margin-inline: auto; }
/* navy section straight into the navy closing: one gap, not two stacked paddings */
.section:not(.on-sand) + .closing { padding-top: clamp(16px, 2vw, 32px); }
.section:not(.on-sand):has(+ .closing) { padding-bottom: clamp(36px, 4.5vw, 64px); }
.closing h2 { margin-top: clamp(20px, 2.5vw, 32px); font-size: clamp(2rem, 4.4vw, 4rem); color: var(--sand); }
.closing p { margin: 18px auto 0; max-width: 46ch; color: var(--on-navy-2); }
.closing .row { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--navy-line); padding-block: clamp(44px, 5vw, 64px) clamp(96px, 21vw, 330px); font-size: .95rem; color: var(--on-navy-2); }
/* letterhead signature: the wordmark set huge and cropped by the page edge */
.foot::after { content: ""; position: absolute; inset-inline: -1.5vw; bottom: -6.5vw; height: 27vw; background: url("../brand/logo-h-stone.svg") center top / 103% auto no-repeat; opacity: .16; pointer-events: none; }
.foot .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot .brand { width: 120px; }
.foot .tag { margin-top: 18px; max-width: 30ch; }
.foot h2 { font-family: var(--f-body); font-size: .85rem; font-weight: 500; color: var(--stone); margin-bottom: 14px; }
.foot li + li { margin-top: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--sand); }
.foot .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.foot .legal { margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--stone); }
@media (max-width: 860px) { .foot .grid { grid-template-columns: 1fr 1fr; } .foot .grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Docked capsule bar ---------- */
.dock {
  position: fixed; inset-inline: 0; bottom: 14px; margin-inline: auto; z-index: 30;
  width: min(calc(100% - 24px), 440px); display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 4px;
  padding: 5px; border-radius: 99px; background: var(--sand); color: var(--navy);
  outline: 1px solid rgba(155, 145, 134, .7); outline-offset: 5px;
  box-shadow: 0 18px 40px -18px rgba(3, 8, 28, .7);
  transform: translateY(calc(100% + 30px)); transition: transform .7s var(--ease-out);
}
.dock.is-shown { transform: none; }
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 99px; text-decoration: none; font-weight: 500; font-size: .95rem; }
.dock a svg { width: 19px; height: 19px; }
.dock a.main { background: var(--navy); color: var(--sand); }
@media (min-width: 761px) { .dock { bottom: 24px; width: 400px; } }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* ---------- Sub pages: full-width cover, title on the reading side, lily ribbon at the foot ---------- */
.cover { position: relative; isolation: isolate; background: var(--navy); color: var(--sand); padding-bottom: 64px; }
.cover::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 64px; background: url("../brand/lily-pattern-sand.svg") center bottom / 47.6px 64px repeat-x; }
.cover-media { display: block; position: absolute; inset: 0 0 64px; z-index: -1; overflow: hidden; background: var(--navy); }
/* edge to edge; the centred subject survives the crop */
.cover-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
/* portrait images stand as a full-height column that fades into navy at its sides */
.cover--column .cover-media img {
  left: 50%; right: auto; width: auto; max-width: none; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.cover-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 18, 56, .92) 0%, rgba(7, 18, 56, .6) 30%, rgba(7, 18, 56, 0) 52%),
              linear-gradient(0deg, rgba(7, 18, 56, .7) 0%, rgba(7, 18, 56, 0) 32%),
              linear-gradient(180deg, rgba(7, 18, 56, .65) 0%, rgba(7, 18, 56, 0) 22%);
}
[dir="rtl"] .cover-media::after {
  background: linear-gradient(270deg, rgba(7, 18, 56, .92) 0%, rgba(7, 18, 56, .6) 30%, rgba(7, 18, 56, 0) 52%),
              linear-gradient(0deg, rgba(7, 18, 56, .7) 0%, rgba(7, 18, 56, 0) 32%),
              linear-gradient(180deg, rgba(7, 18, 56, .65) 0%, rgba(7, 18, 56, 0) 22%);
}
.cover .wrap { display: flex; align-items: flex-end; min-height: min(72svh, 720px); padding-block: 140px clamp(48px, 6vw, 80px); }
.cover-copy { max-width: min(36vw, 500px); }
.cover h1 { font-size: clamp(2.8rem, 5vw, 5rem); color: var(--sand); }
:lang(en) .cover h1 { letter-spacing: -.02em; }
.cover p { margin-top: 20px; max-width: 46ch; color: var(--on-navy-2); font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.toc-strip { background: var(--navy); padding-block: 8px clamp(56px, 7vw, 96px); }
@media (max-width: 1024px) { .cover-copy { max-width: min(48vw, 460px); } }
@media (max-width: 760px) {
  /* phones: the image sits on top, fades into navy, and the title rises over its foot */
  .cover-media { position: relative; inset: auto; aspect-ratio: 1; }
  .cover-media img, .cover--column .cover-media img { left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: none;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
  .cover-media::after, [dir="rtl"] .cover-media::after { background: linear-gradient(180deg, rgba(7, 18, 56, .7) 0%, rgba(7, 18, 56, 0) 26%); }
  .cover .wrap { position: relative; min-height: 0; margin-top: -64px; padding-block: 0 44px; }
  .cover-copy { max-width: none; }
  .cover h1 { font-size: clamp(2.3rem, 9.4vw, 2.9rem); }
}

/* About: story with capsule stats, numbered promises */
.story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.story h2, .help h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.story .body { margin-top: 24px; display: grid; gap: 1em; font-size: 1.08rem; color: var(--on-sand-2); max-width: 58ch; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.stats li { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 190px; padding: 24px 18px; border-radius: 999px; outline: var(--ring); outline-offset: 6px; background: var(--sand-2); text-align: center; }
.stats strong { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.8rem, 4vw, 3.8rem); line-height: 1; color: var(--navy); }
.stats span { font-size: .95rem; line-height: 1.5; color: var(--on-sand-2); max-width: 16ch; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.promises li { border-top: 1px solid var(--stone); padding-top: 26px; }
.promises .dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: var(--ring); font-family: "Ador Hairline", sans-serif; font-weight: 500; font-size: .8rem; color: var(--taupe-ink); }
.promises h3 { margin-top: 18px; font-size: clamp(1.4rem, 2vw, 1.8rem); }
.promises p { margin-top: 8px; color: var(--on-sand-2); }
.help .btn { margin-top: 30px; }
/* Branches: contact pills */
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.contact-grid a { display: grid; justify-items: center; gap: 6px; padding: 34px 20px; border-radius: 999px; outline: var(--ring); outline-offset: 6px; background: var(--sand-2); color: var(--navy); text-decoration: none; text-align: center; transition: background-color .35s var(--ease-out), outline-color .35s var(--ease-out); }
.contact-grid a:hover { background: var(--sand); outline-color: var(--navy); }
.contact-grid svg { width: 26px; height: 26px; margin-bottom: 4px; }
.contact-grid strong { font-weight: 500; }
.contact-grid span { font-size: .9rem; color: var(--on-sand-2); direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .promises, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .promises { grid-template-columns: 1fr; }
  .stats li { min-height: 150px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid a { padding: 22px 20px; }
}

.tabs { position: sticky; top: 0; z-index: 15; background: var(--navy); border-block: 1px solid var(--navy-line); }
.tabs .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.tabs a { flex: none; text-decoration: none; padding: 8px 18px; border-radius: 99px; border: 1px solid var(--navy-line); font-size: .95rem; color: var(--on-navy-2); }
.tabs a:hover, .tabs a.is-active { border-color: var(--stone); color: var(--sand); }

.dept-block { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.dept-block aside { position: sticky; top: 96px; }
.dept-block aside .window { aspect-ratio: 1 / 1.8; }
.dept-block aside .btn { margin-top: 36px; width: 100%; }
.dept-block .intro h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.dept-block .intro p { margin-top: 18px; max-width: 58ch; }
.on-sand .dept-block .intro p, .on-sand .tx p, .on-sand .tx dd { color: var(--on-sand-2); }
.dept-block:not(.on-sand *) .intro p { color: var(--on-navy-2); }
.tx { margin-top: 56px; border-top: 1px solid var(--stone); }
.tx > article { padding-block: 36px; border-bottom: 1px solid var(--navy-line); }
.on-sand .tx > article { border-bottom-color: var(--sand-2); }
.tx h3 { font-size: clamp(1.55rem, 2.3vw, 2.1rem); }
.tx > article > p { margin-top: 12px; max-width: 62ch; }
.tx dl { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.tx dt { font-size: .85rem; font-weight: 500; color: var(--stone); }
.on-sand .tx dt { color: var(--taupe-ink); }
.tx dd { margin: 4px 0 0; font-size: 1rem; }
:not(.on-sand) > .wrap > .dept-block .tx dd { color: var(--on-navy-2); }
.faq { margin-top: 22px; }
.faq details { border-top: 1px solid var(--navy-line); }
.on-sand .faq details { border-top-color: var(--sand-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; cursor: pointer; list-style: none; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform .4s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 16px; max-width: 62ch; }
@media (max-width: 900px) {
  .dept-block { grid-template-columns: 1fr; }
  .dept-block aside { position: static; display: flex; flex-direction: column; align-items: center; gap: 28px; }
  .dept-block aside .window { width: min(46vw, 200px); }
  .dept-block aside .btn { margin-top: 0; width: 100%; white-space: normal; text-align: center; }
  .tx dl { grid-template-columns: 1fr; }
}

.disclaimer { font-size: .9rem; color: var(--stone); max-width: 70ch; }
/* a single line of small print: a slim strip, not a full section */
.note-strip { padding-block: clamp(28px, 3.5vw, 44px); border-top: 1px solid var(--sand-2); }

/* Journal */
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 40px; border-top: 1px solid var(--navy-line); }
.toc a { display: block; padding-block: 18px; border-bottom: 1px solid var(--navy-line); text-decoration: none; color: var(--on-navy-2); }
.toc a:hover { color: var(--sand); }
.article { padding-block: clamp(52px, 8vw, 112px); border-top: 1px solid var(--sand-2); }
.article:first-of-type { border-top: 0; }
.article + .article { border-top: 0; padding-top: 0; }
.article + .article::before { content: ""; display: block; width: 52px; aspect-ratio: 1008 / 680; margin: 0 auto clamp(40px, 6vw, 80px); background: url("../brand/lily.svg") center / contain no-repeat; }
.article .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 68ch) minmax(0, 1fr); }
.article .wrap > * { grid-column: 2; }
.article .tag { font-size: .9rem; font-weight: 500; color: var(--taupe-ink); }
.article h2 { margin-top: 10px; font-size: clamp(2rem, 3.6vw, 3.2rem); }
.article .body { margin-top: 28px; display: grid; gap: 1.1em; font-size: 1.1rem; color: var(--on-sand-2); }
.article .body strong { color: var(--navy); font-weight: 500; }
.article .body ul { display: grid; gap: .4em; padding-inline-start: 1.2em; list-style: disc; }
.article .cta-line { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Brand graphics ---------- */
#departments { position: relative; isolation: isolate; padding-bottom: calc(var(--section) + 64px); }
#departments::before { content: ""; position: absolute; z-index: -1; top: 0; inset-inline-end: 0; width: clamp(180px, 24vw, 360px); aspect-ratio: 663 / 1147; background: url("../brand/panel-swash.svg") center / contain no-repeat;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 40%), linear-gradient(to top, transparent, #000 35%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, transparent, #000 40%), linear-gradient(to top, transparent, #000 35%); mask-composite: intersect; }
[dir="ltr"] #departments::before {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40%), linear-gradient(to top, transparent, #000 35%);
  mask-image: linear-gradient(to right, transparent, #000 40%), linear-gradient(to top, transparent, #000 35%); }
#departments::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 64px; background: url("../brand/lily-pattern.svg") center top / 47.6px 64px repeat-x; opacity: .9; }
/* navy lily close-up from the kit, faded at its inner edge so the panel never shows a seam */
.method::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset-inline-start: 0; bottom: 0; width: min(46vw, 640px); aspect-ratio: 663 / 1147; max-height: 100%;
  background: url("../brand/panel-navy.svg") right bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%), linear-gradient(to bottom, transparent, #000 25%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 45%), linear-gradient(to bottom, transparent, #000 25%); mask-composite: intersect;
}
[dir="ltr"] .method::after {
  background-position: left bottom;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 45%), linear-gradient(to bottom, transparent, #000 25%);
  mask-image: linear-gradient(to left, transparent, #000 45%), linear-gradient(to bottom, transparent, #000 25%);
}
.band { background: url("../brand/lily-pattern-sand.svg") center / 33px 44.4px repeat; background-blend-mode: normal; position: relative; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; background: var(--navy); opacity: .9; z-index: -1; }
@media (max-width: 1080px) {
  .nav.is-open::after { content: ""; display: block; width: 58px; aspect-ratio: 677 / 1618; margin: auto auto 0; background: url("../brand/logo-v-sand.svg") center / contain no-repeat; }
}
@media (max-width: 760px) {
  #departments::before { display: none; }
  .depts { grid-template-columns: 1fr; row-gap: 0; border-top: 1px solid var(--stone); }
  .dept, .dept:first-child { grid-column: auto; display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 24px; align-items: start; margin-top: 0 !important; padding-block: 28px; border-bottom: 1px solid var(--sand-2); }
  .dept .window, .dept:first-child .window { grid-row: 1 / span 5; aspect-ratio: 1 / 1.9; outline-offset: 6px; }
  .dept h3, .dept:first-child h3 { margin-top: 0; font-size: 1.65rem; }
  .dept .slot::after { width: 52%; }
}
