/* SARI. Restrained: white and off-white surfaces, ink type, navy for the mark,
   the icons and one closing band. Every slanted edge sits on the logo's 30° rail. */

@font-face { font-family: 'Poppins'; src: url(/fonts/poppins-light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url(/fonts/poppins-bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'KO Sans'; src: url(/fonts/kosans-light.woff2) format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'KO Sans'; src: url(/fonts/kosans-bold.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
  --navy: #00556E;
  --deep: #0A3442;
  --ink: #10252C;
  --muted: #56686E;
  --white: #FFFFFF;
  --paper: #F4F6F6;
  --stone: #E8ECED;
  --line: rgba(16, 37, 44, .12);

  --font: 'Poppins', 'KO Sans', system-ui, sans-serif;
  --k: 1;                      /* Arabic sets this larger so both scripts read the same size */
  --track: -0.02em;
  --lh-head: 1.08;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --head-h: 64px;
  --rise: clamp(24px, 3vw, 44px);

  --fg: var(--ink);
  --fg-soft: var(--muted);
  --rule: var(--line);
  --focus: var(--navy);
}
:lang(ar) { --font: 'KO Sans', 'Poppins', system-ui, sans-serif; --k: 1.08; --track: 0; --lh-head: 1.32; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--white); color: var(--fg);
  font: 300 calc(1.0625rem * var(--k)) / 1.65 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
body:lang(ar) { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; }
strong, b { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--navy); color: var(--white); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100; background: var(--navy); color: var(--white); padding: 12px 18px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(1280px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ───────── Page transitions: a quiet cross-fade between pages ───────── */
@view-transition { navigation: auto; }
.head { view-transition-name: head; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ───────── Type ───────── */
.display, .h1, .h2, .h3 { letter-spacing: var(--track); line-height: var(--lh-head); text-wrap: balance; }
.display { font-size: calc(var(--k) * clamp(2.4rem, 1.5rem + 3.6vw, 4.75rem)); }
.h1 { font-size: calc(var(--k) * clamp(2.25rem, 1.5rem + 3vw, 4.25rem)); }
.h2 { font-size: calc(var(--k) * clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem)); }
.h3 { font-size: calc(var(--k) * clamp(1.3rem, 1.15rem + .55vw, 1.6rem)); }
.h4 { font-size: calc(var(--k) * 1.0625rem); font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.lead { font-size: calc(var(--k) * clamp(1.0625rem, 1rem + .3vw, 1.25rem)); line-height: 1.55; color: var(--fg-soft); max-width: 36em; text-wrap: pretty; }
.lead--xl { font-size: calc(var(--k) * clamp(1.25rem, 1.08rem + .7vw, 1.65rem)); line-height: 1.45; color: var(--fg); max-width: 30em; }
.h1 + .lead, .h2 + .lead, .display + .lead { margin-top: clamp(16px, 2vw, 24px); }
.muted { color: var(--fg-soft); }
.note { margin-top: 32px; color: var(--fg-soft); }
.prose p { max-width: 36em; }
.prose--lead p { font-size: calc(var(--k) * clamp(1.0625rem, 1rem + .3vw, 1.2rem)); line-height: 1.6; }
.sec__head { margin-bottom: clamp(32px, 4vw, 56px); }

/* Headings settle into place the first time they are seen */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ───────── Buttons and links ───────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px;
  background: var(--btn-bg, var(--navy)); color: var(--btn-fg, var(--white)); border: 1px solid var(--btn-line, var(--navy));
  font-weight: 700; font-size: calc(var(--k) * .9375rem); line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
/* Buttons come in pairs of equal weight: a solid primary and an outlined secondary
   in the same colour. The secondary fills in on hover. */
.btn:hover { --btn-bg: var(--deep); --btn-line: var(--deep); }
.btn--line { --btn-bg: transparent; --btn-fg: var(--navy); --btn-line: var(--navy); }
.btn--line:hover { --btn-bg: var(--navy); --btn-fg: var(--white); --btn-line: var(--navy); }
/* The same pair on photos and dark bands */
.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-line: var(--white); }
.btn--light:hover { --btn-bg: var(--paper); --btn-fg: var(--deep); --btn-line: var(--paper); }
.btn--glass { --btn-bg: transparent; --btn-fg: var(--white); --btn-line: rgba(255, 255, 255, .75); }
.btn--glass:hover { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-line: var(--white); }
.btn--small { min-height: 42px; padding: 0 18px; }
.btn .tick { width: 16px; height: 13px; }
.btn > .icon:not(.icon--ext) { width: 20px; height: 20px; color: currentColor; }
.btn .icon--ext { width: 16px; height: 16px; color: currentColor; stroke-width: 1.75; transition: transform .3s var(--ease); }
[dir=rtl] .btn .icon--ext { transform: scaleX(-1); }
.btn:hover .icon--ext { transform: translate(2px, -2px); }
[dir=rtl] .btn:hover .icon--ext { transform: scaleX(-1) translate(2px, -2px); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); text-decoration: none; }
.link:hover { text-decoration: underline; }
.tick { width: 18px; height: 14px; flex: none; fill: currentColor; transition: transform .35s var(--ease); }
a:hover .tick, a:focus-visible .tick { transform: translate(5px, -2.9px); }
[dir=rtl] a:hover .tick, [dir=rtl] a:focus-visible .tick { transform: translate(-5px, 2.9px); }

.icon { width: 28px; height: 28px; flex: none; color: var(--navy); }
.icon--xl { width: clamp(88px, 10vw, 128px); height: auto; aspect-ratio: 1; stroke-width: .75; }
/* An icon draws itself in: each stroke has pathLength="1" */
.icon.is-drawing * { stroke-dasharray: 1; animation: draw 1.1s var(--ease-out) both; }
.icon.is-drawing *:nth-child(2) { animation-delay: .08s; }
.icon.is-drawing *:nth-child(3) { animation-delay: .16s; }
.icon.is-drawing *:nth-child(n+4) { animation-delay: .24s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ───────── Surfaces ───────── */
.sec { position: relative; padding-block: clamp(72px, 9vw, 128px); background: var(--bg, var(--white)); }
.sec--white { --bg: var(--white); }
.sec--paper { --bg: var(--paper); }
.sec--flush { padding-top: 0; }
.sec--short { padding-block: clamp(48px, 6vw, 80px); }
.sec--navy, .foot, .is-bare, .closing, .hero--photo, .phero--photo {
  --fg: var(--white); --fg-soft: rgba(255, 255, 255, .75); --rule: rgba(255, 255, 255, .2); --focus: var(--white);
  color: var(--fg);
}
.sec--navy { --bg: var(--navy); }
.sec--navy .icon, .foot .icon { color: var(--white); }

/* The navy band climbs in on the logo's 30° angle. The edge doesn't mirror in
   Arabic: it is the mark's own geometry, not a reading direction. */
.step::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--rise); background: var(--bg);
  --x: 30%;
  clip-path: polygon(0 100%, var(--x) 100%, calc(var(--x) + var(--rise) * 1.7321) 0, 100% 0, 100% 100%);
  pointer-events: none;
}
@media (min-width: 900px) { .step::before { --x: 62%; } }

/* ───────── Header ───────── */
.head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.head.is-scrolled { border-bottom-color: var(--line); }
.head__in { display: flex; align-items: center; gap: 20px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; margin-inline-end: auto; padding-block: 8px; text-decoration: none; color: var(--navy); }
.logo { height: 26px; width: auto; color: var(--navy); }
.brand__name { font-weight: 700; font-size: 1rem; letter-spacing: .14em; line-height: 1; }
.brand__name:lang(ar), [lang=ar] .brand__name { letter-spacing: 0; font-size: 1.15rem; }
/* Language switch: a single short label (ع / EN), with a full-size tap area. The full
   language name is in its aria-label for screen readers. */
.lang { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; font-weight: 300; font-size: .875rem; letter-spacing: .06em; line-height: 1; text-decoration: none; color: var(--muted); transition: color .2s; }
.lang:lang(ar) { font-family: 'KO Sans', sans-serif; font-size: 1.125rem; letter-spacing: 0; }
.lang:hover { color: var(--navy); }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0; cursor: pointer; font-weight: 700; font-size: calc(var(--k) * .9375rem); }
.menu-btn__bars { position: relative; width: 22px; height: 14px; }
.menu-btn__bars i { position: absolute; inset-inline: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn__bars i:first-child { top: 3px; }
.menu-btn__bars i:last-child { top: 10px; }
.head.is-open .menu-btn__bars i:first-child { top: 6.5px; transform: rotate(30deg); }
.head.is-open .menu-btn__bars i:last-child { top: 6.5px; transform: rotate(-30deg); }

.nav__list a { text-decoration: none; }
/* Services: a link plus an arrow that opens the five services */
.nav__item--sub { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.nav__sub-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.nav__sub-btn svg { transition: transform .35s var(--ease); }
.nav__item--sub.is-open .nav__sub-btn svg { transform: rotate(180deg); }
.nav__sub { list-style: none; margin: 0; padding: 0; }
.nav__sub a { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.nav__sub .icon { width: 20px; height: 20px; flex: none; color: var(--navy); }
@media (max-width: 1023px) {
  /* A full-screen menu. The header's frosted blur is switched off while it is
     open, because a blur makes fixed children size to the header instead of the screen. */
  .brand, .lang, .menu-btn { position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; z-index: 1; height: 100vh; height: 100dvh; background: var(--white); padding: calc(var(--head-h) + clamp(24px, 5vh, 48px)) var(--gutter) max(40px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; display: none; flex-direction: column; gap: clamp(28px, 5vh, 48px); }
  .head.is-open { position: fixed; top: 0; inset-inline: 0; background: var(--white); border-bottom-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .head.is-open .nav { display: flex; animation: menu-in .4s var(--ease-out); }
  .head.is-open .nav__list > li, .head.is-open .nav__cta { animation: menu-item .55s var(--ease-out) both; animation-delay: calc(80ms + var(--i, 5) * 45ms); }
  @keyframes menu-in { from { opacity: 0; } }
  @keyframes menu-item { from { opacity: 0; transform: translateY(14px); } }
  .nav__sub-btn { margin-inline-start: auto; color: var(--muted); }
  .nav__sub { display: none; flex-basis: 100%; padding: 4px 0 14px; }
  .nav__item--sub.is-open .nav__sub { display: grid; gap: 2px; animation: menu-in .35s var(--ease-out); }
  .nav__sub a { padding: 10px 0; font-size: calc(var(--k) * 1.125rem); color: var(--fg-soft); }
  .nav__sub a[aria-current] { color: var(--navy); font-weight: 700; }
  .no-js .nav { position: static; display: flex; padding: 8px 0 24px; }
  .no-js .head__in { flex-wrap: wrap; height: auto; }
  .no-js .menu-btn { display: none; }
  .nav__list { display: grid; gap: 2px; }
  .nav__list > li > a { display: block; padding: 8px 0; font-size: calc(var(--k) * clamp(1.6rem, 1.2rem + 2vw, 2.25rem)); letter-spacing: var(--track); line-height: 1.25; }
  .nav__list > li > a[aria-current] { color: var(--navy); }
  .nav__cta { align-self: flex-start; }
}
@media (min-width: 1024px) {
  :root { --head-h: 76px; }
  .logo { height: 30px; }
  .menu-btn { display: none; }
  .nav { display: flex; align-items: center; gap: 36px; }
  .nav__list { display: flex; gap: 30px; }
  .nav__list > li > a { position: relative; display: block; padding: 8px 0; font-size: calc(var(--k) * .9375rem); color: var(--muted); transition: color .2s; }
  .nav__list > li > a:hover, .nav__list > li > a[aria-current] { color: var(--ink); }
  .nav__list > li > a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .35s var(--ease); }
  [dir=rtl] .nav__list > li > a::after { --origin: right; }
  .nav__list > li > a:hover::after, .nav__list > li > a[aria-current]::after { transform: scaleX(1); }
  /* The services dropdown: opens on hover, on keyboard focus, or with the arrow */
  .nav__item--sub { flex-wrap: nowrap; }
  .nav__sub-btn { width: 22px; height: 32px; margin-inline-start: 2px; color: var(--muted); }
  .nav__item--sub:hover .nav__sub-btn, .nav__item--sub.is-open .nav__sub-btn { color: var(--ink); }
  .nav__sub { position: absolute; top: calc(100% + 18px); inset-inline-start: -18px; min-width: 300px; padding: 8px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 48px -16px rgba(16, 37, 44, .18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
  .nav__sub::before { content: ''; position: absolute; inset-inline: 0; bottom: 100%; height: 20px; }
  .nav__item--sub:hover .nav__sub, .nav__item--sub:has(.nav__sub a:focus) .nav__sub, .nav__item--sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__item--sub:hover .nav__sub-btn svg { transform: rotate(180deg); }
  .nav__sub a { padding: 12px 14px; font-size: calc(var(--k) * .9375rem); transition: background-color .2s, color .2s; }
  .nav__sub a:hover, .nav__sub a[aria-current] { background: var(--paper); color: var(--navy); }
  .lang { order: 3; }
}

/* ───────── Living mark ───────── */
.mark { overflow: visible; width: 100%; height: auto; }
.mark__ink { fill: var(--navy); }
.mark__grid line { stroke: var(--navy); stroke-opacity: .09; stroke-width: 1; vector-effect: non-scaling-stroke; }

.phero--article .h1 { font-size: calc(var(--k) * clamp(2rem, 1.4rem + 2.4vw, 3.5rem)); max-width: 18em; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--fg-soft); margin: 0; }

.crumbs { margin-bottom: clamp(24px, 3vw, 36px); font-size: calc(var(--k) * .875rem); color: var(--fg-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ''; width: 9px; height: 7px; margin-inline: 10px; background: currentColor; clip-path: polygon(0 100%, 100% 28%, 100% 0, 0 72%); opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); }

/* ───────── Split layout ───────── */
.split { display: grid; gap: clamp(24px, 4vw, 40px); }
.split__side .lead { margin-top: 16px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .split__side { position: sticky; top: calc(var(--head-h) + 32px); }
}

/* ───────── Service explorer ───────── */
.explorer { border-top: 1px solid var(--rule); }
.explorer__h { font-size: inherit; }
.explorer__tab {
  display: flex; align-items: center; gap: 18px; width: 100%; padding: 22px 0; background: none; border: 0; border-bottom: 1px solid var(--rule);
  text-align: start; cursor: pointer; color: var(--fg-soft); transition: color .3s;
}
.explorer__name { flex: 1; font-size: calc(var(--k) * clamp(1.2rem, 1.05rem + .6vw, 1.55rem)); letter-spacing: var(--track); line-height: 1.25; }
.explorer__icon .icon { width: 30px; height: 30px; color: currentColor; transition: color .3s; }
.explorer__tab:hover, .explorer__tab[aria-expanded="true"] { color: var(--ink); }
.explorer__tab[aria-expanded="true"] .icon { color: var(--navy); }
.explorer__sign { position: relative; width: 14px; height: 14px; flex: none; }
.explorer__sign::before, .explorer__sign::after { content: ''; position: absolute; inset: 6.5px 0 auto; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.explorer__sign::after { transform: rotate(90deg); }
.explorer__tab[aria-expanded="true"] .explorer__sign::after { transform: rotate(0); }
.explorer__panel { padding: 8px 0 32px; border-bottom: 1px solid var(--rule); }
.explorer__art { display: none; }
.explorer__line { font-size: calc(var(--k) * clamp(1.15rem, 1.05rem + .4vw, 1.35rem)); line-height: 1.5; margin-bottom: 20px; max-width: 30em; }
.js .explorer__panel:not(.is-open) { display: none; }
.js .explorer__panel.is-open .explorer__copy { animation: panel-in .5s var(--ease-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }

@media (min-width: 960px) {
  .js .explorer { display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: repeat(5, auto) 1fr; column-gap: clamp(40px, 6vw, 96px); border-top: 0; }
  .js .explorer__h { grid-column: 1; border-top: 0; }
  .js .explorer__h:first-of-type .explorer__tab { border-top: 1px solid var(--rule); }
  .js .explorer__tab { padding: 26px 0; }
  .js .explorer__sign { display: none; }
  .js .explorer__tab[aria-expanded="true"] { position: relative; }
  .js .explorer__tab[aria-expanded="true"]::after { content: ''; position: absolute; inset-inline-start: 0; bottom: -1px; width: 100%; height: 2px; background: var(--navy); transform-origin: var(--origin, left); animation: grow .5s var(--ease-out) both; }
  [dir=rtl] .js .explorer__tab[aria-expanded="true"]::after { --origin: right; }
  @keyframes grow { from { transform: scaleX(0); } }
  .js .explorer__panel {
    grid-column: 2; grid-row: 1 / -1; display: grid; align-content: start; gap: 40px;
    padding: clamp(36px, 4vw, 56px); background: var(--paper); border: 0;
  }
  .js .explorer__panel:not(.is-open) { display: none; }
  .js .explorer__art { display: block; }
  .js .explorer__art .icon--xl { width: clamp(96px, 9vw, 128px); }
}

/* A list of what a service covers, each marked with the logo's slant */
.checks { border-top: 1px solid var(--rule); }
.checks li { position: relative; padding: 12px 0; padding-inline-start: 30px; border-bottom: 1px solid var(--rule); }
.checks li::before { content: ''; position: absolute; inset-inline-start: 0; top: calc(12px + .55em); width: 14px; height: 10px; background: var(--navy); clip-path: polygon(0 100%, 100% 42%, 100% 0, 0 58%); }
.checks--lg { margin-top: clamp(28px, 3vw, 40px); }
.checks--lg li { padding-block: 16px; font-size: calc(var(--k) * 1.125rem); }
.checks--lg li::before { top: calc(16px + .6em); }

/* ───────── Service rows ───────── */
.rows { border-top: 1px solid var(--rule); }
.split__main > .lead + .rows { margin-top: clamp(32px, 4vw, 48px); }
.rows li { border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 40px 1fr 18px; gap: 20px; align-items: center; padding-block: clamp(20px, 2.4vw, 28px); text-decoration: none; transition: padding .35s var(--ease); }
.row__icon .icon { width: 32px; height: 32px; }
.row__title { font-size: calc(var(--k) * clamp(1.25rem, 1.05rem + .8vw, 1.75rem)); letter-spacing: var(--track); line-height: 1.2; }
.row__text { margin: 4px 0 0; color: var(--fg-soft); }
.row .tick { color: var(--navy); }
.row:hover .row__title { color: var(--navy); }
@media (min-width: 900px) { .row:hover { padding-inline-start: 8px; } }

/* ───────── Points ───────── */
.trio { border-top: 1px solid var(--rule); }
.trio li { padding-block: clamp(22px, 2.6vw, 32px); border-bottom: 1px solid var(--rule); }
.trio .h4 { font-size: calc(var(--k) * clamp(1.2rem, 1.05rem + .6vw, 1.5rem)); font-weight: 300; letter-spacing: var(--track); line-height: 1.25; margin-bottom: 8px; }
.trio p { color: var(--fg-soft); max-width: 34em; }
.trio--compact { margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 640px) {
  .trio li { display: grid; grid-template-columns: 2fr 3fr; gap: 32px; align-items: baseline; }
  .trio .h4 { margin: 0; }
}
.quad { display: grid; gap: 0 48px; border-top: 1px solid var(--rule); }
.quad li { padding-block: clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--rule); }
.point__icon { display: block; margin-bottom: 20px; }
.point__icon .icon { width: 36px; height: 36px; }
.quad .h4 { font-size: calc(var(--k) * clamp(1.25rem, 1.1rem + .5vw, 1.5rem)); font-weight: 300; letter-spacing: var(--track); margin-bottom: 8px; }
.quad p { color: var(--fg-soft); max-width: 30em; }
@media (min-width: 760px) { .quad { grid-template-columns: 1fr 1fr; } }

/* ───────── Facts ───────── */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 32px; margin: clamp(24px, 3vw, 32px) 0 0; }
.facts > div { padding-block: 14px; border-top: 1px solid var(--rule); }
.facts dt { font-size: calc(var(--k) * .8125rem); color: var(--fg-soft); }
.facts dd { margin: 4px 0 0; font-size: calc(var(--k) * 1.0625rem); line-height: 1.4; }
.facts a { text-decoration: underline; color: var(--navy); }
.sec > .wrap > .facts { margin-top: 0; }

/* ───────── Ezera ───────── */
.ezera__mark, .ezera__word { display: block; background: currentColor; }
.ezera__mark { aspect-ratio: 1708 / 916; -webkit-mask: url(/img/ezera/mark.svg) center / contain no-repeat; mask: url(/img/ezera/mark.svg) center / contain no-repeat; }
.ezera__word { aspect-ratio: 1400 / 184; -webkit-mask: url(/img/ezera/wordmark.png) center / contain no-repeat; mask: url(/img/ezera/wordmark.png) center / contain no-repeat; }
/* The photo card: the Ezera logo in white, low on the photo, over a soft tint */
.ezera-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); }
.ezera-photo .photo { transition: transform 1.4s var(--ease-out), clip-path 1.3s var(--ease-out); }
.ezera-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16, 37, 44, .66) 0%, rgba(16, 37, 44, 0) 55%); pointer-events: none; }
.ezera-photo__logo { position: absolute; z-index: 1; inset-inline-start: clamp(20px, 3vw, 36px); bottom: clamp(20px, 3vw, 36px); display: grid; justify-items: start; gap: 14px; width: min(46%, 240px); color: var(--white); }
[dir=rtl] .ezera-photo__logo { justify-items: end; }
.ezera-photo__logo .ezera__mark { width: 34%; }
.ezera-photo__logo .ezera__word { width: 100%; }
.project:has(a:hover) .ezera-photo .photo { transform: scale(1.04); }
/* The logo as the heading of the Ezera page */
.h1--logo { line-height: 1; }
.ezera-logo { display: grid; justify-items: start; gap: clamp(14px, 2vw, 22px); width: min(78vw, 420px); color: var(--white); }
[dir=rtl] .ezera-logo { justify-items: end; }
.ezera-logo .ezera__mark { width: 30%; }
.ezera-logo .ezera__word { width: 100%; }
.project { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.project__media { display: block; }
.project .h2 a { text-decoration: none; }
.project .h2 a:hover, .project:has(.project__media:hover) .h2 a { color: var(--navy); }
.project__body .lead { margin-top: 12px; }
.project__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(24px, 3vw, 32px) 0 0; }
@media (min-width: 900px) { .project { grid-template-columns: 6fr 5fr; gap: 72px; } }

/* ───────── News ───────── */
.news { border-top: 1px solid var(--rule); }
.news li { border-bottom: 1px solid var(--rule); }
.news__item { display: grid; grid-template-columns: 1fr 18px; gap: 8px 24px; padding-block: clamp(20px, 2.4vw, 28px); text-decoration: none; align-items: center; }
.news__item time { grid-column: 1 / -1; font-size: calc(var(--k) * .875rem); color: var(--fg-soft); }
.news__cat { margin: 0 0 4px; font-weight: 700; font-size: calc(var(--k) * .8125rem); color: var(--navy); }
.news__title { font-size: calc(var(--k) * clamp(1.2rem, 1.05rem + .6vw, 1.5rem)); line-height: 1.25; letter-spacing: var(--track); }
.news__sum { margin: 6px 0 0; color: var(--fg-soft); }
.news__item .tick { color: var(--navy); }
.news__item:hover .news__title { color: var(--navy); }
@media (min-width: 900px) { .news__item { grid-template-columns: 170px 1fr 18px; align-items: baseline; } .news__item time { grid-column: auto; } }
.related { display: grid; gap: 8px; margin-top: 12px; }
.related a { color: var(--navy); }

/* ───────── Other services ───────── */
.siblings ul { display: grid; gap: 0 32px; margin-top: 16px; border-top: 1px solid var(--rule); }
.siblings a { display: flex; align-items: center; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.siblings a:hover span { color: var(--navy); }
.siblings .icon { width: 24px; height: 24px; }
@media (min-width: 760px) { .siblings ul { grid-template-columns: repeat(2, 1fr); } }

/* ───────── About ───────── */
.name-mark { margin-top: 32px; width: 120px; }
.name-mark .logo { width: 100%; height: auto; }

/* ───────── Contact form ───────── */
.contact { display: grid; gap: 64px; }
@media (min-width: 960px) { .contact { grid-template-columns: 7fr 4fr; gap: 96px; align-items: start; } .office { position: sticky; top: calc(var(--head-h) + 32px); } }
.form { display: grid; gap: 24px; max-width: 640px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; margin-bottom: 8px; font-weight: 700; font-size: calc(var(--k) * .9375rem); }
.field > legend.h3 { font-weight: 300; font-size: calc(var(--k) * clamp(1.3rem, 1.15rem + .55vw, 1.6rem)); margin-bottom: 16px; padding: 0; }
.input {
  width: 100%; min-height: 52px; padding: 12px 14px; background: var(--white); border: 1px solid #A9B7BB; border-radius: 0;
  font-size: max(16px, calc(var(--k) * 1rem)); line-height: 1.4; appearance: none; -webkit-appearance: none; transition: border-color .2s;
}
textarea.input { min-height: 120px; resize: vertical; }
.input:hover { border-color: var(--ink); }
.input:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.input[aria-invalid="true"] { border-color: #A3261B; border-width: 2px; }
.phone { display: grid; grid-template-columns: minmax(0, 9.5rem) 1fr; gap: 8px; }
.phone__code { padding-inline: 12px 30px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%; }
/* The number reads left to right in both languages, code first */
[dir=rtl] .phone { direction: ltr; }
[dir=rtl] .phone__code { text-align: left; }
.hint { margin: 8px 0 0; font-size: calc(var(--k) * .875rem); color: var(--fg-soft); }
.err { margin: 8px 0 0; font-size: calc(var(--k) * .875rem); font-weight: 700; color: #A3261B; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid #A9B7BB; background: var(--white); font-size: calc(var(--k) * .9375rem); transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.context { margin: 14px 0 0; font-weight: 700; color: var(--navy); }
.field > label.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 0; font-weight: 300; font-size: calc(var(--k) * .9375rem); line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); cursor: pointer; }
.check a { font-weight: 700; color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; min-width: 200px; }
.done { padding: 32px 0; }
.done .h2 { margin-bottom: 12px; }
.office { border-top: 1px solid var(--rule); padding-top: 28px; }
.office .h4 { margin: 28px 0 8px; }
.office .h3 { margin-bottom: 12px; }
.office a { color: var(--navy); }

/* ───────── Legal pages ───────── */
.legal { max-width: 46rem; }
.legal .h3 { margin: 40px 0 12px; }
.legal .h3:first-child { margin-top: 0; }
.legal p { color: var(--fg-soft); }
.legal .muted { margin-top: 48px; }

/* ───────── Footer ───────── */
.foot { background: var(--deep); padding-block: clamp(56px, 7vw, 88px) 32px; font-size: calc(var(--k) * .9375rem); }
.foot__top { display: grid; gap: 48px; align-items: start; }
.foot__brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; color: var(--white); text-decoration: none; font-weight: 700; letter-spacing: .14em; }
.foot__brand:lang(ar), [lang=ar] .foot__brand { letter-spacing: 0; }
.foot__brand .logo { height: 30px; color: var(--white); }
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; }
.foot__h { font-weight: 700; font-size: calc(var(--k) * .9375rem); margin-bottom: 12px; color: var(--white); }
.foot__cols ul { display: grid; gap: 6px; }
.foot a { text-decoration: none; color: rgba(255, 255, 255, .75); }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot p { color: rgba(255, 255, 255, .75); margin: 0 0 6px; }
.foot__legal { display: grid; gap: 4px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: calc(var(--k) * .8125rem); }
.foot__legal p { color: rgba(255, 255, 255, .62); }
.foot__legal a { margin-inline-start: 12px; text-decoration: underline; }
.foot__sep { display: inline-block; width: 9px; height: 7px; margin-inline: 6px; background: currentColor; clip-path: polygon(0 100%, 100% 28%, 100% 0, 0 72%); opacity: .6; }
@media (min-width: 900px) { .foot__top { grid-template-columns: 4fr 8fr; } }

/* ───────── Teaser and 404 ───────── */
.is-teaser { background: var(--white); min-height: 100svh; overflow: hidden; }
.teaser { min-height: 100svh; display: grid; place-items: center; padding: 48px var(--gutter); }
.teaser__lockup { margin: 0; width: min(100%, 560px); }
.teaser__mark { display: block; width: 100%; }
.is-bare { background: var(--navy); min-height: 100svh; overflow: hidden; }
.is-bare .mark__ink, .is-bare .logo { fill: var(--white); color: var(--white); }
.bare { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 40px; padding: 40px var(--gutter); max-width: 960px; margin-inline: auto; }
.bare__brand .logo { height: 30px; }
.bare__mark { width: min(70vw, 340px); }
.nf .lead { margin-top: 16px; }

/* ───────── Photography ───────── */
figure { margin: 0; }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Photos open along the logo's 30° edge the first time they are seen. The clip sits on
   the photo, not the frame, so the frame stays visible to the observer that triggers it. */
.js .wipe > * { clip-path: polygon(0 0, 0% 0, -30% 100%, 0 100%); transition: clip-path 1.3s var(--ease-out), transform 1.2s var(--ease-out); }
.js .wipe.is-in > * { clip-path: polygon(0 0, 130% 0, 100% 100%, 0 100%); }

/* ───────── Preloader: the mark assembles, then the screen lifts ───────── */
.preloader { display: none; }
.intro .preloader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--white);
  clip-path: inset(0 0 0 0); transition: clip-path .85s var(--ease);
  animation: preloader-safety 0s 4s forwards;
}
.intro-done .preloader { clip-path: inset(0 0 100% 0); }
@keyframes preloader-safety { to { visibility: hidden; } }
.preloader__mark { width: min(56vw, 300px); }

/* ───────── Headers over photography ─────────
   Home: a full-screen photo. Inner pages: a shorter full-width photo. The header sits
   transparent over the photo until the page scrolls. */
.hero--photo, .phero--photo { position: relative; display: grid; align-items: end; margin-top: calc(-1 * var(--head-h)); overflow: hidden; background: var(--ink); isolation: isolate; }
.hero--photo { min-height: 100svh; }
.phero--photo { min-height: clamp(460px, 74svh, 760px); }
.hero__bg, .phero__bg { position: absolute; inset: -6% 0; z-index: -1; transform: translate3d(0, var(--hy, 0px), 0); will-change: transform; }
.hero__bg .photo, .phero__bg .photo { animation: settle 2.2s var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.1); } }
.hero--photo::after, .phero--photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(16, 37, 44, .82) 0%, rgba(16, 37, 44, .42) 48%, rgba(16, 37, 44, .2) 100%); }
.hero__in { padding-block: calc(var(--head-h) + 64px) clamp(96px, 12vh, 140px); }
.phero__in { position: relative; padding-block: calc(var(--head-h) + 56px) clamp(48px, 7vw, 88px); }
.hero--photo .display { max-width: 15em; }
.hero--photo .lead, .phero--photo .lead { color: rgba(255, 255, 255, .86); max-width: 34em; }
.phero .h1 { max-width: 14em; }
.phero--photo .crumbs, .phero--photo .crumbs a { color: rgba(255, 255, 255, .78); }
.phero--photo .crumbs [aria-current] { color: var(--white); }
.phero__badge { display: none; }
@media (min-width: 900px) { .phero__badge { position: absolute; inset-inline-end: var(--gutter); bottom: clamp(48px, 7vw, 88px); display: grid; place-items: center; width: clamp(64px, 7vw, 88px); aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .45); } }
.phero__badge .icon { width: 50%; height: 50%; color: var(--white); }

/* Words rise into place once the photo has settled (after the preloader, if it ran) */
.js .hero__text > *, .js .phero__text > *, .js .phero__badge { opacity: 0; transform: translateY(26px); animation: rise 1.1s var(--ease-out) forwards; }
.js .hero__text > :nth-child(1), .js .phero__text > :nth-child(1) { animation-delay: .25s; }
.js .hero__text > :nth-child(2), .js .phero__text > :nth-child(2) { animation-delay: .4s; }
.js .hero__text > :nth-child(3), .js .phero__text > :nth-child(3) { animation-delay: .55s; }
.js .hero__text > :nth-child(4), .js .phero__text > :nth-child(4) { animation-delay: .7s; }
.js .phero__badge { animation-delay: .8s; }
.intro:not(.intro-done) .hero__text > *, .intro:not(.intro-done) .phero__text > *, .intro:not(.intro-done) .phero__badge, .intro:not(.intro-done) .hero__bg .photo, .intro:not(.intro-done) .phero__bg .photo { animation-play-state: paused; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Plain header: a large title on off-white, the mark cropped at the far edge */
.phero--plain { position: relative; overflow: hidden; background: var(--paper); }
.phero--plain .phero__in { padding-block: clamp(72px, 11vw, 160px) clamp(56px, 7vw, 96px); }
.phero__watermark { position: absolute; inset-inline-end: -8%; top: 50%; width: min(70vw, 760px); height: auto; color: var(--navy); opacity: .06; transform: translateY(-50%); pointer-events: none; }
.phero--plain .h1 { font-size: calc(var(--k) * clamp(2.4rem, 1.5rem + 3.4vw, 4.75rem)); }

/* Transparent header over the photo, until the page scrolls or the menu opens */
.has-photo-hero .head:not(.is-scrolled):not(.is-open) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--white); }
.has-photo-hero .head:not(.is-scrolled):not(.is-open) .brand, .has-photo-hero .head:not(.is-scrolled):not(.is-open) .logo, .has-photo-hero .head:not(.is-scrolled):not(.is-open) .lang { color: rgba(255, 255, 255, .85); }
.has-photo-hero .head:not(.is-scrolled):not(.is-open) .nav__list > li > a, .has-photo-hero .head:not(.is-scrolled):not(.is-open) .nav__sub-btn { color: rgba(255, 255, 255, .85); }
.has-photo-hero .head:not(.is-scrolled):not(.is-open) .nav__list > li > a:hover, .has-photo-hero .head:not(.is-scrolled):not(.is-open) .nav__list > li > a[aria-current] { color: var(--white); }
.has-photo-hero .head:not(.is-scrolled):not(.is-open) .nav__cta { background: var(--white); color: var(--navy); border-color: var(--white); }
.has-photo-hero .head:not(.is-scrolled):not(.is-open) { --focus: var(--white); }
.head { transition: background-color .35s, color .35s, border-color .35s; }

/* Scroll cue */
.hero__scroll { position: absolute; bottom: 28px; inset-inline-start: var(--gutter); display: inline-flex; align-items: center; gap: 12px; font-size: calc(var(--k) * .8125rem); color: rgba(255, 255, 255, .8); text-decoration: none; }
.hero__scroll i { position: relative; width: 1px; height: 40px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; inset: 0; background: var(--white); animation: scroll-line 2.4s var(--ease) infinite; }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (min-width: 1440px) { .hero__scroll { inset-inline-start: calc((100vw - 1280px) / 2); } }

/* ───────── Motion on every page ─────────
   app.js marks content blocks with .rv as they enter the viewport; siblings follow
   each other with a short stagger (--d). */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv-line { transform-origin: var(--origin, left); }
[dir=rtl] .js .rv-line { --origin: right; }

/* ───────── Home: "the life of a place" ─────────
   Base styles give a plain, readable page (no JavaScript or reduced motion).
   story.js adds .st-on and drives each chapter with GSAP while it is pinned. */
html.st-on { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.st { position: relative; background: var(--white); }
.st--dark { background: var(--ink); --fg: var(--white); --fg-soft: rgba(255, 255, 255, .84); --rule: rgba(255, 255, 255, .2); --focus: var(--white); color: var(--fg); }
.st__pin { position: relative; display: grid; align-items: end; min-height: 100svh; overflow: hidden; }
.st.st--dark .st__media { position: absolute; inset: 0; }
.st--dark .st__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16, 37, 44, .8) 0%, rgba(16, 37, 44, .35) 50%, rgba(16, 37, 44, .15) 100%); pointer-events: none; }
.st__media { margin: 0; overflow: hidden; }
.st__media .photo { will-change: transform; }
.st__copy { position: relative; z-index: 1; padding-block: clamp(120px, 16vh, 180px) clamp(72px, 11vh, 120px); }
.st__title { font-size: calc(var(--k) * clamp(2.5rem, 1.3rem + 4.4vw, 5.75rem)); letter-spacing: var(--track); line-height: var(--lh-head); max-width: 11em; text-wrap: balance; }
.st__copy .lead { margin-top: clamp(18px, 2.4vw, 28px); color: var(--fg-soft); max-width: 30em; font-size: calc(var(--k) * clamp(1.1rem, 1rem + .45vw, 1.4rem)); }
.st__links { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(24px, 3vw, 36px) 0 0; }
/* The grid drawn over the plan */
.st-plan__grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.st-plan__grid line { stroke: var(--white); stroke-opacity: .32; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
/* Lived in: Ezera's logo and the two actions */
.st-live__ezera { margin-top: clamp(28px, 4vw, 44px); }
.st-live__ezera .ezera-logo { width: min(64vw, 280px); }
.st-live__ezera .project__actions { margin-top: 24px; }
/* Cared for: moments side by side */
.st-care { background: var(--paper); }
.st-care .st__pin { display: block; align-content: center; padding-block: clamp(80px, 12vh, 120px); }
.st-care__head { margin-bottom: clamp(32px, 5vh, 56px); }
.st-care__track { display: flex; gap: clamp(20px, 3vw, 40px); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.st-care__track::-webkit-scrollbar { display: none; }
.st-care__panel { flex: 0 0 min(80vw, 520px); scroll-snap-align: start; }
.st-care__media { aspect-ratio: 4 / 3; overflow: hidden; }
.st-care__media .photo { width: 116%; max-width: none; margin-inline-start: -8%; }
.st-care__panel .h3 { margin: 20px 0 8px; }
.st-care__panel p { color: var(--fg-soft); max-width: 30em; }
/* The buttons line up along the bottom, whatever the length of the text above */
.st-care__panel { display: flex; flex-direction: column; }
.st-care__panel p { margin-bottom: 20px; }
.st-care__panel .btn { align-self: flex-start; margin-top: auto; }
@media (min-width: 1440px) { .st-care__track { padding-inline: calc((100vw - 1280px) / 2); } }
/* The closing statement */
.st-end { background: var(--white); }
.st-end .st__pin { align-items: center; }
.st-end__in { padding-block: 120px; }
.st-end__mark { width: min(56vw, 400px); }
.st-end__line { margin-top: clamp(36px, 5vw, 56px); font-size: calc(var(--k) * clamp(1.9rem, 1.2rem + 2.8vw, 3.75rem)); letter-spacing: var(--track); line-height: var(--lh-head); max-width: 16em; text-wrap: balance; }
/* With the story running */
.st-on .st__pin { height: 100svh; min-height: 0; }
.st-on .st-care__track { overflow: visible; scroll-snap-type: none; width: max-content; }
/* Pinned on wide screens, the strip has to fit one screen: photos take their
   height from the screen, and there is clear space above (below the header),
   below, and between the moments. */
@media (min-width: 900px) {
  .st-on .st-care .st__pin { display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--head-h) + clamp(40px, 8vh, 96px)) clamp(48px, 9vh, 112px); }
  .st-on .st-care__head { margin-bottom: clamp(28px, 6vh, 72px); }
  .st-on .st-care .st__title { font-size: calc(var(--k) * clamp(2.25rem, 1.1rem + 3vw, 4.25rem)); max-width: 20em; }
  .st-on .st-care__track { gap: clamp(32px, 4vw, 72px); }
  .st-on .st-care__panel { flex-basis: clamp(320px, 30vw, 480px); }
  .st-on .st-care__media { aspect-ratio: auto; height: clamp(140px, 30svh, 380px); }
  .st-on .st-care__panel .h3 { margin: clamp(16px, 2.6vh, 28px) 0 10px; }
}
@media (max-width: 899px) { .st-on .st-care .st__pin { height: auto; } .st-on .st-care__track { flex-direction: column; width: auto; padding-inline: var(--gutter); } .st-on .st-care__panel { flex-basis: auto; } }
.st-line { padding-bottom: .06em; }

/* How we work: a photo held beside three habits */
.habits__grid { display: grid; gap: clamp(36px, 5vw, 56px); }
.habits__media { aspect-ratio: 4 / 5; overflow: hidden; }
.habits__list { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--rule); }
.habits__list li { padding-block: clamp(22px, 2.6vw, 32px); border-bottom: 1px solid var(--rule); }
.habits__list .h3 { margin-bottom: 8px; }
.habits__list p { color: var(--fg-soft); max-width: 32em; }
@media (min-width: 900px) {
  .habits__grid { grid-template-columns: 5fr 7fr; gap: clamp(56px, 8vw, 120px); align-items: start; }
  .habits__media { position: sticky; top: calc(var(--head-h) + 32px); max-height: calc(100svh - var(--head-h) - 64px); }
}


/* Closing invitation (the same component on every page): a photo under an ink tint */
.closing { position: relative; display: grid; align-items: end; min-height: min(88svh, 760px); overflow: hidden; background: var(--ink); }
.closing__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing::after { content: ''; position: absolute; inset: 0; background: rgba(16, 37, 44, .6); }
.closing__in { position: relative; z-index: 1; padding-block: clamp(96px, 12vw, 160px) clamp(64px, 8vw, 104px); }
.closing .lead { max-width: 32em; }

@media (prefers-reduced-motion: reduce) {
  .hero__scroll i::after { animation: none; }
  .js .rv, .js .hero__text > *, .js .phero__text > *, .js .phero__badge { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero__bg, .phero__bg { transform: none; }
  .js .wipe > * { clip-path: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ───────── Richer inner pages ───────── */
/* Numbered steps */
.process { display: grid; gap: 0 clamp(24px, 3vw, 40px); counter-reset: none; }
.process li { padding-block: clamp(22px, 2.6vw, 32px); border-top: 1px solid var(--rule); }
.process__n { display: block; margin-bottom: clamp(12px, 2vw, 24px); font-weight: 300; font-size: calc(var(--k) * clamp(2rem, 1.5rem + 1.6vw, 3rem)); line-height: 1; letter-spacing: var(--track); color: var(--navy); }
.process .h4 { font-size: calc(var(--k) * clamp(1.15rem, 1.05rem + .4vw, 1.35rem)); font-weight: 700; margin-bottom: 8px; }
.process p { color: var(--fg-soft); max-width: 28em; }
.process__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: calc(var(--k) * .875rem); font-weight: 700; color: var(--navy); text-decoration: none; }
.process__link .icon { width: 18px; height: 18px; }
.process__link:hover span { text-decoration: underline; }
@media (min-width: 760px) { .process { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }

/* Questions that fold open */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(18px, 2vw, 24px); cursor: pointer; list-style: none; font-size: calc(var(--k) * clamp(1.1rem, 1rem + .4vw, 1.3rem)); line-height: 1.35; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; flex: none; width: 16px; height: 16px; }
.faq__item summary i::before, .faq__item summary i::after { content: ''; position: absolute; inset-inline: 0; top: 7.25px; height: 1.5px; background: var(--navy); transition: transform .35s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0deg); }
.faq__item summary:hover span { color: var(--navy); }
.faq__item p { padding-bottom: clamp(20px, 2.4vw, 28px); color: var(--fg-soft); max-width: 40em; }
.faq__item[open] p { animation: panel-in .45s var(--ease-out) both; }

/* A full-width photo between sections */
.wide-photo { margin: 0; height: clamp(260px, 56vh, 640px); overflow: hidden; }
.wide-photo .photo, .gallery .photo { width: 100%; height: 100%; object-fit: cover; }

/* Ezera: home types, a row of photos, amenities in two columns */
.homes { display: grid; gap: 0 clamp(24px, 3vw, 48px); }
.homes li { padding-block: clamp(24px, 3vw, 36px); border-top: 1px solid var(--rule); }
.homes .h3 { margin-bottom: 6px; }
.homes__spec { margin-bottom: 12px; font-weight: 700; color: var(--navy); }
.homes p:last-child { color: var(--fg-soft); max-width: 28em; }
@media (min-width: 900px) { .homes { grid-template-columns: repeat(3, 1fr); } }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(6px, 1vw, 12px); }
.gallery figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; }
@media (max-width: 599px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }
@media (min-width: 760px) { .checks--two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 900px) { .quad--three { grid-template-columns: repeat(3, 1fr); } }

/* News with a photo */
.news__media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; grid-column: 1 / -1; }
.news__media .photo { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.news__item--photo:hover .news__media .photo { transform: scale(1.04); }
@media (min-width: 900px) {
  .news__item--photo { grid-template-columns: 280px 150px 1fr 18px; align-items: center; }
  .news__item--photo .news__media { grid-column: auto; aspect-ratio: 4 / 3; }
}
