/* İlk Evim. Mobile first, white, one accent.
   Shape rule: buttons and chips are pills, photos and panels use --r, inputs use --r-in.
   Motion rule: 150ms hovers, 260ms UI, 700ms reveals, ease-out only, nothing loops. */
:root {
  color-scheme: light;
  --ink: #101418;
  --text: #2b3239;
  --muted: #626c75;
  --line: #e4e7ea;
  --soft: #f4f5f7;
  --bg: #fff;
  --blue: #1e9cd8;      /* the "ilk" in the logo; large type and marks only */
  --blue-ink: #0b6a9d;  /* same hue, dark enough for small text on white */
  /* Onest and IBM Plex Sans Arabic only fill the glyphs Hanken Grotesk lacks (Uzbek ʻ ʼ, the language menu); see layout() */
  --display: "Hanken Grotesk", "Onest", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Hanken Grotesk", "Onest", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 20px;
  --max: 1240px;
  --r: 14px;
  --r-in: 12px;
  --out: cubic-bezier(.16, 1, .3, 1);
  --snap: cubic-bezier(.2, 0, 0, 1);
  --fast: 150ms;
  --ui: 260ms;
  --slow: 700ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar, .menu::-webkit-scrollbar { display: none; } /* page still scrolls, the bar is just hidden */
body { margin: 0; padding-bottom: 60px; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; color: var(--ink); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
[hidden] { display: none !important; }
p { margin: 0; text-wrap: pretty; }
ol, ul, dl, dd { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; border-radius: 4px; }
:target { scroll-margin-top: 92px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 780px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.link { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 99px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.arr, .plus, .ic { flex: none; transition: transform var(--ui) var(--out); }
a:hover > .arr, a:hover .card__name > .arr, a:hover h2 > .arr { transform: translateX(4px); }

.eyebrow { display: block; margin-bottom: 18px; color: var(--muted); font-size: 14px; font-weight: 500; }
.eyebrow--link { color: var(--blue-ink); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btns--col { flex-direction: column; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid var(--ink); border-radius: 99px; background: var(--ink); color: #fff; font: 500 15px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: background-color var(--fast), color var(--fast), border-color var(--fast), transform var(--fast); }
.btn:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 40px; padding-block: 0; padding-inline: 18px 14px; gap: 6px; font-size: 14px; }
.btn .ic { width: 14px; height: 14px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: #ccd1d6; }
.btn--ghost:hover { background: transparent; color: var(--blue-ink); border-color: var(--blue-ink); }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; font-weight: 500; transition: color var(--fast); }
.more:hover { color: var(--blue-ink); }
.more--gap { margin-top: 36px; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); view-transition-name: hdr; }
.hdr__in { display: flex; align-items: center; gap: 8px; height: 64px; }
.logo { margin-inline-end: auto; }
.hdr__act { display: flex; align-items: center; gap: 8px; }
.hdr__cta { display: none; }
.logo img { width: 88px; }
.nav { display: none; }
.burger { position: relative; width: 44px; height: 44px; margin-inline-end: -10px; padding: 0; border: 0; background: none; cursor: pointer; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform var(--ui) var(--out), top var(--ui) var(--out); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* Mobile menu: fades and slides in, fades out a little faster */
.menu { position: fixed; inset: 65px 0 0; z-index: 49; display: flex; flex-direction: column; justify-content: space-between; padding: 24px var(--pad) 28px; background: #fff; overflow-y: auto; scrollbar-width: none; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 180ms ease-in, transform 180ms ease-in, visibility 0s 180ms; }
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--ui) var(--out), transform var(--ui) var(--out); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font: 500 32px/1.2 var(--display); letter-spacing: -.03em; color: var(--ink); opacity: 0; transform: translateY(10px); transition: opacity var(--ui), transform var(--ui) var(--out); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 35ms + 60ms); }
.menu__nav a[aria-current] { color: var(--blue-ink); }
.menu__foot { display: flex; flex-direction: column; gap: 6px; margin-top: 32px; color: var(--muted); font-size: 15px; }
.menu-open { overflow: hidden; }
.menu-open .bar { visibility: hidden; }

/* Sticky phone bar */
.bar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; height: 60px; padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; background: #fff; border-top: 1px solid var(--line); view-transition-name: bar; }
.bar a { display: grid; place-items: center; font-size: 15px; font-weight: 500; color: var(--ink); }
.bar .bar__wa { background: var(--ink); color: #fff; }

/* Hero: centered headline with a photo chip, search bar */
.hero { padding-top: 40px; text-align: center; }
.hero__t { font-size: clamp(38px, 9.6vw, 68px); line-height: 1.06; letter-spacing: -.04em; }
.ln { display: block; overflow: clip; padding: .14em 0; margin: -.14em 0; }
.w { display: inline-block; }
.chip { display: inline-block; width: 1.5em; height: .82em; margin: 0 .06em; border-radius: 99px; overflow: hidden; vertical-align: -.08em; background: var(--soft); }
.chip img { width: 100%; height: 100%; object-fit: cover; }
.hero__lead { margin: 18px auto 0; max-width: 31em; color: var(--muted); font-size: 16px; }

.search { position: relative; z-index: 5; display: grid; max-width: 760px; margin: 28px auto 0; padding: 8px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 14px 44px rgba(16, 20, 24, .09); text-align: start; }
.search__f { display: grid; gap: 1px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.search__f > span { color: var(--muted); font-size: 12px; }
.search select { width: 100%; padding: 2px 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: 500 15px/1.4 var(--sans); cursor: pointer; }
.search select:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; }
.search__go { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; margin-top: 8px; border: 0; border-radius: 99px; background: var(--ink); color: #fff; font: 500 15px/1 var(--sans); cursor: pointer; transition: background-color var(--fast), transform var(--fast); }
.search__go:hover { background: var(--blue-ink); }
.search__go:active { transform: scale(.98); }
.hero .search { margin-bottom: -36px; }
.fstatus { display: flex; align-items: center; gap: 14px; margin-top: 20px; color: var(--ink); font-weight: 500; }
.fstatus .link { padding: 0; border: 0; background: none; font: inherit; font-weight: 400; cursor: pointer; }
.fempty { margin-top: 28px; padding: 28px 24px; border-radius: var(--r); background: var(--soft); color: var(--muted); }
.is-filtered .grid > :first-child { grid-column: auto; display: block; }
.is-filtered .grid > :first-child .card__img { aspect-ratio: 4 / 3; }

/* Project map */
.map { position: relative; height: 480px; border-radius: 24px; overflow: hidden; background: var(--soft); isolation: isolate; }
.map::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 500; height: 120px; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); pointer-events: none; }
.map__canvas { position: absolute; inset: 0; background: var(--soft); font-family: var(--sans); }
.map__canvas img { max-width: none; }
.map__canvas > noscript img, .map__canvas > img { width: 100%; height: 100%; object-fit: cover; }
.map__chips { position: absolute; inset-inline-start: 12px; top: 56px; z-index: 600; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 70px); }
.chipbtn { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font: 500 13px/1 var(--sans); cursor: pointer; box-shadow: 0 4px 14px rgba(16, 20, 24, .08); transition: background-color var(--fast), color var(--fast), border-color var(--fast); }
.chipbtn:hover { border-color: var(--ink); }
.chipbtn.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.leaflet-tile-pane { filter: grayscale(1) contrast(.88) brightness(1.08); }
.leaflet-container { background: #eef0f2; }
.leaflet-container a { color: var(--muted); }
.pin { border-radius: 50%; }
.pin__in { display: block; width: 100%; height: 100%; border: 3px solid #fff; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 4px 14px rgba(16, 20, 24, .28); transition: transform var(--fast), box-shadow var(--fast); }
.pin__in img { width: 100%; height: 100%; object-fit: cover; }
.pin:hover .pin__in, .pin:focus-visible .pin__in { transform: scale(1.1); }
.pin.is-on .pin__in { border-color: var(--ink); transform: scale(1.1); }
.map__card { position: absolute; left: 12px; right: 12px; bottom: 28px; z-index: 650; }
.map .leaflet-top { top: 46px; }
.map__card:empty { display: none; }
.pcard { display: grid; grid-template-columns: 92px 1fr; gap: 3px 12px; align-content: center; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(16, 20, 24, .2); color: var(--muted); font-size: 13px; animation: cardIn var(--ui) var(--out); }
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } }
.pcard__img { display: block; grid-row: 1 / span 4; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard strong { align-self: end; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.pcard__row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12px; }
.pcard__row .ic { width: 13px; height: 13px; color: var(--ink); }
.pcard__row i { width: 1px; height: 10px; margin-inline: 3px; background: var(--line); }
.pcard__cta { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; margin-top: 4px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); font-size: 13px; font-weight: 500; transition: background-color var(--fast), color var(--fast), border-color var(--fast); }
.pcard__cta .ic { width: 12px; height: 12px; }
.pcard:hover .pcard__cta { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Stats row */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.stats div { display: flex; align-items: center; gap: 10px; }
.stats dt { font: 500 34px/1 var(--display); letter-spacing: -.04em; color: var(--ink); white-space: nowrap; }
.stats dd { max-width: 8.5em; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.3; letter-spacing: .05em; text-transform: uppercase; }

/* Reasons: copy on one side, tiles on the other */
.label { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--blue-ink); font-size: 13px; font-weight: 500; }
.label::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--blue); }
.whyx { display: grid; gap: 36px; }
.whyx__text { margin-top: 20px; max-width: 30em; color: var(--muted); }
.whyx__grid { display: grid; gap: 12px; }
.tile { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 20px; background: var(--soft); overflow: hidden; }
.tile__ic { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 26px; border-radius: 12px; background: var(--ink); color: #fff; }
.tile h3 { font: 600 17px/1.25 var(--sans); letter-spacing: -.01em; }
.tile p { color: var(--muted); font-size: 14px; }
.tile__stack { display: flex; justify-content: center; margin-top: 18px; padding: 8px 0 4px; }
.mini { display: grid; gap: 2px; width: 150px; padding: 6px 6px 10px; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(16, 20, 24, .12); transform: rotate(-5deg); }
.mini + .mini { margin-inline-start: -28px; transform: rotate(4deg) translateY(10px); }
.mini img { aspect-ratio: 4 / 3; margin-bottom: 4px; border-radius: 10px; object-fit: cover; }
.mini b { padding-inline: 4px; color: var(--ink); font-size: 12px; font-weight: 600; }
.mini small { padding-inline: 4px; color: var(--muted); font-size: 11px; }

/* Sections */
.sec { padding-top: 80px; }
.sec--tight { padding-top: 40px; }
.sec__head { display: grid; gap: 12px; margin-bottom: 32px; }
.sec__t { font-size: clamp(34px, 8vw, 60px); }
.sec__lead { max-width: 34em; color: var(--muted); font-size: 17px; }
.group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.group__head h2 { font-size: clamp(26px, 5.5vw, 38px); }
.h3 { margin-bottom: 12px; font: 600 15px/1.3 var(--sans); letter-spacing: 0; color: var(--ink); }

/* Project cards */
.card { display: block; }
.card__img { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--out); }
.card:hover .card__img img { transform: scale(1.04); }
.card__meta { display: grid; gap: 2px; padding-top: 14px; }
.card__area { color: var(--muted); font-size: 13px; }
.card__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 26px; transition: color var(--fast); }
.card:hover .card__name { color: var(--blue-ink); }
.card__rooms { font-size: 14px; }
.grid { display: grid; gap: 36px 20px; }

/* Home: top projects. A swipe row on phones, an uneven grid on desktop. */
.bento { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.bento::-webkit-scrollbar { display: none; }
.bento > * { scroll-snap-align: start; }
.bento .card__img { aspect-ratio: 4 / 5; }

/* Areas index */
.arow { display: grid; grid-template-columns: 64px 1fr 24px; align-items: center; column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: color var(--fast); }
.aidx__list li:first-child .arow { border-top: 1px solid var(--line); }
.arow__thumb { grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.arow__t { align-self: end; font: 500 24px/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); transition: color var(--fast); }
.arow__s { grid-column: 2; align-self: start; color: var(--muted); font-size: 14px; }
.arow__c { display: none; }
.arow .arr { grid-column: 3; grid-row: 1 / span 2; color: var(--ink); }
.arow:hover .arow__t, .arow.is-on .arow__t { color: var(--blue-ink); }
.aidx__view { display: none; }

/* Services */
.svc__head { display: grid; gap: 12px; margin-bottom: 20px; }
.svc__head .more { margin-top: 8px; }
.acc { border-bottom: 1px solid var(--line); }
.acc:first-child { border-top: 1px solid var(--line); }
.acc summary { display: grid; grid-template-columns: 1fr 24px; align-items: center; gap: 16px; padding: 22px 0; list-style: none; cursor: pointer; font: 500 21px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); transition: color var(--fast); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--blue-ink); }
.acc[open] summary .plus { transform: rotate(45deg); }
.acc__body { display: grid; gap: 18px; max-width: 38em; padding-bottom: 28px; }
.acc[open] .acc__body { animation: accIn var(--ui) var(--out) both; }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } }

.service { display: grid; gap: 14px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.services .service:first-child { border-top: 1px solid var(--line); }
.service h2 { font-size: clamp(28px, 6.5vw, 40px); }
.service__body { display: grid; gap: 18px; max-width: 40em; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 24px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .68em; width: 10px; height: 2px; border-radius: 2px; background: var(--blue); }

/* Five reasons (About page) */
.why { display: grid; gap: 28px 24px; margin-top: 48px; }
.why li { display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.why strong { font: 500 19px/1.25 var(--display); letter-spacing: -.02em; color: var(--ink); }
.why span { color: var(--muted); font-size: 15px; }

/* Blog */
.posts { display: grid; gap: 40px 20px; }
.post { display: block; }
.post__img { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--out); }
.post:hover .post__img img { transform: scale(1.04); }
.post__date, .pline time { display: block; color: var(--muted); font-size: 13px; }
.post__date { margin-top: 16px; }
.post__t { margin-top: 6px; font-size: 26px; line-height: 1.12; transition: color var(--fast); }
.post:hover .post__t, .pline:hover h3 { color: var(--blue-ink); }
.post__x { margin-top: 8px; color: var(--muted); font-size: 15px; }
.blogx { display: grid; gap: 36px; }
.blogx__rest { display: grid; align-content: start; }
.pline { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.pline h3 { font-size: 22px; line-height: 1.15; transition: color var(--fast); }
.pline p { color: var(--muted); font-size: 15px; }

/* Contact band */
.cta { padding: 44px 24px; border-radius: 24px; background: var(--soft); }
.cta__t { max-width: 12em; font-size: clamp(34px, 8.5vw, 64px); }
.cta__lead { margin-top: 14px; max-width: 34em; color: var(--muted); }

/* Inner page head */
.phead { padding-block: 24px 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; color: var(--muted); font-size: 13px; }
.crumbs a { transition: color var(--fast); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { max-width: 16em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.phead__t { font-size: clamp(42px, 11vw, 88px); line-height: 1; letter-spacing: -.045em; }
.phead__t--post { font-size: clamp(32px, 7vw, 54px); line-height: 1.06; letter-spacing: -.035em; }
.phead__lead { margin-top: 16px; max-width: 36em; font-size: 17px; color: var(--muted); }
.chips { display: flex; gap: 8px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; white-space: nowrap; transition: border-color var(--fast), color var(--fast); }
.chips a:hover { border-color: var(--ink); }

/* Project page */
.cover { aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--soft); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--post { aspect-ratio: 3 / 2; }
.proj__grid, .split { display: grid; gap: 36px; padding-top: 32px; }
.proj__desc { margin-bottom: 28px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.spec { display: grid; margin-bottom: 28px; padding: 6px 20px; border-radius: var(--r); background: var(--soft); }
.spec div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 14px 0; }
.spec div + div { border-top: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 14px; }
.spec dd { color: var(--ink); }
.proj__side .btns { margin-top: 18px; }
.proj__gal { padding-top: 64px; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gal__i { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft); }
.gal__i img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--out); }
.gal__i:hover img { transform: scale(1.05); }

/* Photo viewer: fades in and out with the native dialog */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; opacity: 0; transition: opacity 180ms ease-in, display 180ms allow-discrete, overlay 180ms allow-discrete; }
.lb[open] { display: grid; grid-template-rows: 60px 1fr 64px; opacity: 1; transition: opacity var(--ui) ease-out, display var(--ui) allow-discrete, overlay var(--ui) allow-discrete; }
@starting-style { .lb[open] { opacity: 0; } }
.lb::backdrop { background: #fff; }
.lb img { grid-row: 2; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lb__top, .lb__bot { display: flex; align-items: center; justify-content: space-between; padding-inline: 12px; color: var(--muted); font-size: 14px; }
.lb__bot { justify-content: center; gap: 8px; }
.lb button { min-width: 48px; height: 44px; padding: 0 16px; border: 0; border-radius: 99px; background: none; color: var(--ink); font: 500 15px var(--sans); cursor: pointer; transition: background-color var(--fast); }
.lb button:hover { background: var(--soft); }
.lb__n { padding-inline-start: 8px; }

/* Areas page */
.areas { display: grid; gap: 44px 20px; }
.area { display: block; }
.area__img { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.area__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--out); }
.area:hover .area__img img { transform: scale(1.04); }
.area__body { display: grid; gap: 8px; padding-top: 16px; }
.area__body h2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 30px; transition: color var(--fast); }
.area:hover h2 { color: var(--blue-ink); }
.area__body p { color: var(--text); }
.area__body .muted { font-size: 14px; }

/* Prose */
.prose { display: grid; gap: 18px; max-width: 40em; font-size: 17px; }
.prose--post { padding-top: 36px; font-size: 18px; line-height: 1.65; }
.prose h2 { margin-top: 20px; font-size: 28px; line-height: 1.15; }
.prose ul { display: grid; gap: 10px; }
.prose li { position: relative; padding-inline-start: 24px; }
.prose li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .76em; width: 10px; height: 2px; border-radius: 2px; background: var(--blue); }
.note { margin-top: 36px; padding: 16px 20px; border-radius: var(--r); background: var(--soft); color: var(--muted); font-size: 14px; }
.nextpost { display: grid; grid-template-columns: 1fr 24px; align-items: center; margin-top: 56px; padding: 22px 0; border-block: 1px solid var(--line); }
.nextpost span { grid-column: 1; color: var(--muted); font-size: 13px; }
.nextpost strong { grid-column: 1; font: 500 24px/1.15 var(--display); letter-spacing: -.03em; color: var(--ink); transition: color var(--fast); }
.nextpost .arr { grid-column: 2; grid-row: 1 / span 2; }
.nextpost:hover strong { color: var(--blue-ink); }

/* Contact */
.info { display: grid; }
.info div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); font-size: 13px; }
.info dd { color: var(--ink); font-size: 17px; }
.info dd a:not(.link) { transition: color var(--fast); }
.info dd a:not(.link):hover { color: var(--blue-ink); }
.form { display: grid; gap: 16px; padding: 24px 20px; border-radius: 24px; background: var(--soft); }
.form__t { font-size: 30px; }
.field { display: grid; gap: 6px; }
.field > span { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid #c9ced4; border-radius: var(--r-in); background: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans); transition: border-color var(--fast), box-shadow var(--fast); }
.field textarea { resize: vertical; }
.field ::placeholder { color: #6b747d; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8f98a1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 3px rgba(11, 106, 157, .18); }
.form .btns { margin-top: 4px; }
.form .btn { flex: 1 1 200px; }
.form__note { color: var(--muted); font-size: 13px; }

/* Footer */
.ftr { margin-top: 80px; border-top: 1px solid var(--line); padding-block: 44px 28px; font-size: 15px; }
.ftr__top { display: grid; gap: 32px; }
.ftr__brand img { width: 100px; }
.ftr__brand p { margin-top: 12px; max-width: 24em; color: var(--muted); }
.ftr__nav, .ftr__addr { display: grid; gap: 8px; align-content: start; }
.ftr a { transition: color var(--fast); }
.ftr a:hover { color: var(--blue-ink); }
.ftr__addr span { color: var(--muted); }
.ftr__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Developer badge on project photos */
.card__img, .post__img, .area__img, .evc__img, .dev__img, .cover { position: relative; }
.badge { position: absolute; inset-inline-start: 12px; top: 12px; z-index: 2; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: -.005em; box-shadow: 0 4px 14px rgba(16, 20, 24, .1); }

/* Developer tiles (home) */
.devs { display: grid; gap: 16px; }
.dev { display: grid; border-radius: 24px; overflow: hidden; background: var(--soft); }
.dev__img { aspect-ratio: 16 / 9; overflow: hidden; background: #e9ecef; }
.dev__img img { width: 100%; height: 100%; object-fit: cover; }
.dev__body { display: grid; grid-template-columns: 1fr 24px; gap: 4px 12px; padding: 20px 22px 24px; }
.dev__name { grid-column: 1; font-size: clamp(28px, 6vw, 40px); }
.dev__n { grid-column: 1; color: var(--blue-ink); font-size: 14px; font-weight: 600; }
.dev__list { grid-column: 1; color: var(--muted); font-size: 14px; }
.dev .arr { grid-column: 2; grid-row: 1 / span 3; align-self: center; }

/* Events */
.evrow { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.evrow::-webkit-scrollbar { display: none; }
.evrow > * { scroll-snap-align: start; }
.evgrid { display: grid; gap: 36px 20px; }
.evc { display: block; }
.evc__img { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.evc__img img { width: 100%; height: 100%; object-fit: cover; }
.evc__date { position: absolute; inset-inline-start: 12px; bottom: 12px; z-index: 2; display: grid; padding: 9px 14px 8px; border-radius: 14px; background: #fff; color: var(--ink); line-height: 1.1; box-shadow: 0 10px 30px rgba(16, 20, 24, .16); }
.evc__date b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.evc__date small { color: var(--muted); font-size: 12px; }
.evc__body { display: grid; gap: 4px; padding-top: 14px; }
.evc__country { color: var(--muted); font-size: 13px; }
.evc__city { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 30px; transition: color var(--fast); }
.evc:hover .evc__city { color: var(--blue-ink); }
.evc__row { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
.evc__row .ic { width: 16px; height: 16px; color: var(--muted); }
.evc__row small { color: var(--muted); font-size: 12px; }
.evc--big .evc__img { aspect-ratio: 4 / 3; }
.evpast { display: grid; }
.evpast li { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.evpast strong { font: 500 22px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); }
.cover--ev { aspect-ratio: 4 / 3; }
.evfacts { display: grid; gap: 0; margin-bottom: 28px; border-top: 1px solid var(--line); }
.evfacts div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.evfacts dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.evfacts dt .ic { width: 17px; height: 17px; color: var(--blue-ink); }
.evfacts dd { color: var(--ink); }
.evfacts small { color: var(--muted); font-size: 13px; }
.ev__free { margin-top: 16px; font-size: 14px; }
.btn .ic { width: 16px; height: 16px; }
.btn--ghost .ic { color: var(--blue-ink); }

/* Project facts */
.h3--gap { margin-top: 32px; }
.amen { display: flex; flex-wrap: wrap; gap: 8px; }
.amen li { padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; }
.proj__src { margin-top: 24px; font-size: 14px; }

/* Lead forms: every form on the site goes to the CRM */
.lform { position: relative; display: grid; gap: 18px; padding: 24px 20px; border-radius: 24px; background: var(--soft); }
.lform__t { font-size: 28px; }
.lform__lead { margin-top: 8px; color: var(--muted); font-size: 15px; }
.lform__fields { display: grid; gap: 14px; }
.lform .btns { margin-top: 0; }
.lform .btn { flex: 1 1 180px; }
.lform--compact { padding: 22px 18px; }
.lform--compact .lform__t { font-size: 22px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 13px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue-ink); cursor: pointer; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lform__err { padding: 12px 14px; border-radius: var(--r-in); background: #fdecec; color: #9b1c1c; font-size: 14px; }
.field [aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .14); }
.lform__ok { display: grid; justify-items: start; gap: 8px; outline: none; }
.lform__ok strong { font: 500 24px/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); }
.lform__ok p { color: var(--muted); }
.lform__okic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 50%; background: var(--ink); color: #fff; }
.lform.is-sent > :not(.lform__ok) { display: none; }
.lform.is-sent .lform__ok { animation: rise var(--slow) var(--out) both; }

/* Blog: consult an expert */
.consult { display: grid; gap: 0; margin-top: 48px; border-radius: 28px; overflow: hidden; background: var(--soft); }
.consult .lform { background: transparent; }
.consult__aside { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 20px 20px 0; color: var(--muted); font-size: 14px; }
.consult__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; }
.consult__aside p { flex: 1 1 12em; }

/* Accessibility helper for split text */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* WebGL photo layer (desktop): a fixed canvas behind the page; frames it has taken show through */
.glfx { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.gl-on main { position: relative; z-index: 1; }
.gl-on .gl-ready { background: transparent !important; }
.gl-on .gl-ready img { opacity: 0; }

/* ---------- Motion ("Tide"). Only with the .motion class, which is never set under reduced motion. */
@property --s { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --h { syntax: '<number>'; inherits: true; initial-value: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes safety { to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  /* Page-to-page: a quick cross-fade, and the project photo travels from card to page */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 160ms ease-in both vtOut; }
  ::view-transition-new(root) { animation: 280ms ease-out both vtIn; }
  ::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: var(--out); }
  @keyframes vtOut { to { opacity: 0; } }
  @keyframes vtIn { from { opacity: 0; } }

  /* Hero: words slide up out of their masks, then the rest settles */
  .w { animation: wordUp var(--slow) var(--out) both; animation-delay: calc(var(--i) * 70ms + 60ms); }
  .hero__lead, .hero .search, .map { animation: rise var(--slow) var(--out) both; }
  .hero__lead { animation-delay: 220ms; }
  .hero .search { animation-delay: 300ms; }
  .map { animation-delay: 380ms; }
  @keyframes wordUp { from { transform: translateY(135%); } }

  /* Headlines: lines rise from masks. Hidden until split; shown anyway after 2.5 s if the script never runs. */
  .motion [data-split]:not(.is-split) { opacity: 0; animation: safety 0s 2.5s forwards; }
  .sl { display: block; overflow: clip; padding-bottom: .12em; margin-bottom: -.12em; }
  .sl__i { display: block; transform: translate3d(0, 110%, 0); }
  .is-in > .sl > .sl__i { transform: none; transition: transform var(--slow) var(--out); transition-delay: calc(var(--l) * 70ms); }

  /* Blocks and cards: rise 24px and fade, 80ms apart */
  .motion .reveal { opacity: 0; transform: translate3d(0, 24px, 0); }
  .motion:not(.motion-ready) .reveal { animation: safety 0s 2.5s forwards; }
  .motion .reveal.is-in { opacity: 1; transform: none; transition: opacity var(--slow) var(--out), transform var(--slow) var(--out); transition-delay: calc(var(--d, 0) * 80ms); }

  /* Photo frames: settle from 1.2 to 1.12 (room for parallax), drift with --py, grow 4% on hover */
  .motion .fx { --s: 1.2; --h: 1; transition: --s 1.2s var(--out), --h var(--slow) var(--out); }
  .motion .fx.is-in { --s: 1.12; }
  .motion .fx img { transform: translate3d(0, var(--py, 0px), 0) scale(calc(var(--s) * var(--h))); transition: opacity 200ms; }
  .motion a:hover .fx { --h: 1.04; }
  .motion .card:hover .card__img img, .motion .post:hover .post__img img, .motion .area:hover .area__img img { transform: translate3d(0, var(--py, 0px), 0) scale(calc(var(--s) * var(--h))); }

  /* Statement paragraphs: words fill from grey to ink */
  .is-ink .iw { color: var(--ink-from, var(--muted)); transition: color 260ms ease-out; }
  .is-ink .iw.on { color: var(--ink-to, var(--ink)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Search bar becomes one pill */
@media (min-width: 720px) {
  .search { grid-template-columns: 1.15fr 1fr 1fr auto; align-items: center; padding: 8px; padding-inline-start: 14px; border-radius: 99px; }
  .search__f { padding: 4px 18px; border-bottom: 0; border-inline-end: 1px solid var(--line); }
  .search__f:nth-of-type(3) { border-inline-end: 0; }
  .search__go { width: 50px; margin: 0; }
  .search__go span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .map__chips { top: auto; bottom: 20px; inset-inline-start: 20px; }
  .map__card { inset-inline: auto 20px; bottom: auto; top: 104px; width: 248px; }
  .map .leaflet-bottom { bottom: 14px; }
  .map .leaflet-bottom.leaflet-right { right: 10px; }
  .map .leaflet-bottom.leaflet-left { left: 10px; }
  .pcard { grid-template-columns: 1fr; gap: 4px; }
  .pcard__img { grid-row: auto; aspect-ratio: 16 / 10; margin-bottom: 6px; }
  .pcard strong, .pcard__row { padding-inline: 4px; }
  .pcard__cta { min-height: 36px; margin-top: 8px; }
}

/* ---------- Tablet */
@media (min-width: 640px) {
  :root { --pad: 32px; }
  .bento { grid-auto-columns: 46%; }
  .grid, .posts, .areas { grid-template-columns: 1fr 1fr; }
  .grid[data-n="3"] > :first-child, .grid[data-n="1"] > :first-child, .areas > :first-child { grid-column: 1 / -1; }
  .grid[data-n="3"] > :first-child .card__img, .grid[data-n="1"] > :first-child .card__img, .areas > :first-child .area__img { aspect-ratio: 21 / 9; }
  .why { grid-template-columns: 1fr 1fr; }
  .whyx__grid { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: 1 / -1; grid-template-columns: 1fr auto; column-gap: 20px; }
  .tile--wide > :not(.tile__stack) { grid-column: 1; }
  .tile--wide .tile__stack { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0 4px 0 0; }
  .stats { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .map { height: 520px; }
  .gal { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cta { padding: 64px 48px; }
  .form { padding: 36px; }
  .ftr__top { grid-template-columns: 1.4fr 1fr 1.4fr; }
}

/* ---------- Desktop */
@media (min-width: 960px) {
  :root { --pad: 40px; --r: 18px; }
  body { padding-bottom: 0; font-size: 17px; }
  .bar, .burger, .menu { display: none !important; }
  .hdr__in { display: grid; grid-template-columns: 1fr auto 1fr; height: 72px; gap: 28px; }
  .hdr__act { justify-self: end; }
  .hdr__cta { display: inline-flex; }
  .logo img { width: 100px; }
  .nav { display: flex; gap: 28px; font-size: 15px; white-space: nowrap; }
  .nav a { position: relative; padding: 8px 0; color: var(--text); transition: color var(--fast); }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--ui) var(--out); }
  .nav a:hover, .nav a[aria-current] { color: var(--ink); }
  .nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }

  .hero { padding-top: 44px; }
  .hero__lead { max-width: 38em; font-size: 17px; }
  .map, .cover, .cta, .form { border-radius: 32px; }
  .map { height: 580px; }
  .stats { padding: 40px 28px; }
  .stats dt { font-size: 44px; }
  .whyx { grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: stretch; }
  .whyx__copy { display: flex; flex-direction: column; }
  .whyx__text { margin-top: auto; padding-top: 40px; }
  .tile { padding: 26px; }

  .sec { padding-top: 136px; }
  .sec--tight { padding-top: 48px; }
  .sec__head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 48px; }
  .sec__lead { grid-column: 1; font-size: 19px; }
  .sec__head .more { grid-column: 2; grid-row: 1; padding-bottom: 10px; }

  /* Six projects, six cells: one tall lead, two beside it, three below */
  .bento { grid-auto-flow: row; grid-template-columns: repeat(12, 1fr); gap: 44px 24px; margin: 0; padding: 0; overflow: visible; }
  .bento > :nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 3; display: grid; grid-template-rows: 1fr auto; }
  .bento > :nth-child(1) .card__img { aspect-ratio: auto; min-height: 420px; }
  .bento > :nth-child(2), .bento > :nth-child(3) { grid-column: 8 / 13; }
  .bento > :nth-child(n+4) { grid-column: span 4; }
  .bento .card__img { aspect-ratio: 16 / 10; }
  .bento > :nth-child(n+4) .card__img { aspect-ratio: 4 / 3; }
  .grid { gap: 56px 24px; }
  .grid[data-n="1"] > :first-child { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: end; }
  .grid[data-n="1"] > :first-child .card__img { aspect-ratio: 16 / 9; }
  .card__name { font-size: 30px; }

  /* Areas: names on the left, the photo on the right follows the hovered row */
  .aidx:not(.aidx--plain) { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
  .arow { grid-template-columns: 1fr auto 28px; column-gap: 24px; padding: 26px 0; }
  .arow__thumb { display: none; }
  .arow__t { grid-column: 1; align-self: auto; font-size: 44px; }
  .arow__s { grid-column: 1; }
  .arow__c { display: block; grid-column: 2; grid-row: 1 / span 2; color: var(--muted); font-size: 15px; }
  .arow .arr { grid-column: 3; }
  .aidx--plain .arow__t { font-size: 32px; }
  .aidx__view { display: block; position: sticky; top: 104px; aspect-ratio: 4 / 5; max-height: calc(100dvh - 140px); border-radius: 32px; overflow: hidden; background: var(--soft); }
  .aidx__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 420ms ease-out, transform var(--slow) var(--out); }
  .aidx__img.is-on { opacity: 1; transform: none; }

  .svc { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
  .svc__head { position: sticky; top: 112px; margin-bottom: 0; }
  .acc summary { padding: 28px 0; font-size: 26px; }
  .service { grid-template-columns: 1fr 1.2fr; gap: 0 48px; padding: 56px 0; }

  .why { grid-template-columns: repeat(5, 1fr); margin-top: 72px; }
  .more--gap { margin-top: 48px; }
  .posts { gap: 64px 24px; }
  .blogx { grid-template-columns: 1.5fr 1fr; gap: 64px; }
  .blogx .post__t { font-size: 34px; }
  .areas { gap: 64px 24px; }

  .phead { padding-block: 40px 48px; }
  .cover { aspect-ratio: 21 / 9; }
  .cover--post { aspect-ratio: 16 / 9; }
  .proj__grid, .split { grid-template-columns: 1.5fr 1fr; gap: 80px; padding-top: 56px; align-items: start; }
  .proj__side { position: sticky; top: 104px; }
  .proj__desc { font-size: 21px; }
  .proj__gal { padding-top: 104px; }
  .gal { grid-template-columns: repeat(6, 1fr); }
  .cta { padding: 96px 72px; }
  .ftr { margin-top: 136px; padding-block: 64px 32px; }
}

/* ---------- Added with events, developers and CRM forms */
.whyx__text { color: var(--ink); font-size: 21px; line-height: 1.45; letter-spacing: -.01em; }
.prose__lead { color: var(--ink); font-size: 20px; line-height: 1.5; }
@media (min-width: 640px) {
  .devs { grid-template-columns: 1fr 1fr; }
  .evrow { grid-auto-columns: 46%; }
  .evgrid { grid-template-columns: 1fr 1fr; }
  .evgrid > .evc--big { grid-column: 1 / -1; }
  .evgrid > .evc--big .evc__img { aspect-ratio: 21 / 9; }
  .lform__fields { grid-template-columns: 1fr 1fr; }
  .lform--compact .lform__fields { grid-template-columns: 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .lform { padding: 32px; }
  .lform--compact { padding: 26px 24px; }
  .consult { grid-template-columns: 1fr; }
}
@media (min-width: 720px) {
  .search--4 { grid-template-columns: 1.1fr 1fr 1fr 1fr auto; }
  .search--4 .search__f:nth-of-type(3) { border-inline-end: 1px solid var(--line); }
  .search--4 .search__f:nth-of-type(4) { border-inline-end: 0; }
}
@media (min-width: 960px) {
  .whyx__text { font-size: 27px; --ink-from: #8d969e; }
  .prose__lead { font-size: 23px; --ink-from: #8d969e; }
  .dev__body { padding: 26px 30px 30px; }
  .dev__img { aspect-ratio: 16 / 8; }
  .evrow { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; overflow: visible; gap: 24px; }
  .evrow:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
  .evrow:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
  .evgrid { gap: 56px 24px; }
  .evgrid > .evc--big { display: grid; grid-template-columns: 1.7fr 1fr; gap: 36px; align-items: end; }
  .evgrid > .evc--big .evc__img { aspect-ratio: 16 / 10; }
  .evgrid > .evc--big .evc__city { font-size: 56px; }
  .cover--ev { aspect-ratio: 21 / 9; }
  .consult { grid-template-columns: 220px 1fr; align-items: start; }
  .consult__aside { flex-direction: column; align-items: flex-start; padding: 36px 0; padding-inline-start: 32px; }
  .proj__side .lform { margin-top: 0; }
}
.credit { margin-top: 10px; color: var(--muted); font-size: 12px; }
.credit a { text-decoration: underline; text-underline-offset: 2px; }
/* The WebGL canvas sits behind the page, so a frame's panel must not paint over it */
.gl-on .dev { background: transparent; }
.gl-on .dev__body { background: var(--soft); }

/* ---------- Phones (mobile pass). Tap targets ≥ 44 px, no iOS zoom on inputs, shorter pages. */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, select, label { touch-action: manipulation; }
.search select { font-size: 16px; }          /* under 16 px iOS zooms the page when the field is tapped */
.search__f > span { font-size: 12.5px; }
.stats dd { font-size: 12px; letter-spacing: .04em; }
.more { padding-block: 10px; margin-block: -10px; }
.eyebrow--link, .info dd a, .ftr a, .menu__foot a { display: inline-block; padding-block: 9px; margin-block: -9px; }
.ftr__bot a { padding: 10px 0; margin: -10px 0; }
.check input { width: 22px; height: 22px; }
.gal__more { display: none; }
.hdr, .bar { transition: transform var(--ui) var(--out); }
.hdr.is-hidden { transform: translateY(-100%); }
/* The action bar steps aside while a form is on screen or being typed into (the keyboard would push it over the fields). */
.bar.is-off, .bar.is-typing, body:has(.lform :focus) .bar { transform: translateY(110%); }
.bar a:first-child[data-bar-target] { color: var(--blue-ink); }
@media (hover: none) {
  .card:active .card__img, .evc:active .evc__img, .post:active .post__img, .area:active .area__img, .dev:active .dev__img { transform: scale(.985); transition: transform 120ms var(--out); }
  .btn:active, .search__go:active { transform: scale(.97); }
}
@media (max-width: 719px) {
  /* Search: two by two, each whole tile is the dropdown, then one full-width button (was four stacked rows) */
  .search { grid-template-columns: 1fr 1fr; padding: 6px; border-radius: 22px; }
  .search__f { position: relative; display: block; min-height: 62px; padding: 9px 12px 0; }
  .search__f:nth-of-type(odd) { border-inline-end: 1px solid var(--line); }
  .search:not(.search--4) .search__f:nth-of-type(3) { grid-column: 1 / -1; border-inline-end: 0; }
  .search__f > span { position: relative; z-index: 1; pointer-events: none; }
  .search select { position: absolute; inset: 0; padding: 28px 28px 8px 12px; border-radius: 14px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath fill='%23626c75' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat right 12px bottom 15px; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; }
  .search__go { grid-column: 1 / -1; margin-top: 6px; }
}
@media (max-width: 639px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .sec { padding-top: 64px; }
  .sec--tight { padding-top: 28px; }
  .sec__head { gap: 10px; margin-bottom: 24px; }
  .hero { padding-top: 28px; }
  .hero .search { margin-bottom: -26px; }
  .map { height: 440px; }
  .chipbtn { min-height: 40px; padding: 0 15px; }
  .stats { padding: 24px 0; }
  .cta { padding: 36px 22px; }
  .cta .btn { flex: 1 1 100%; }
  .phead { padding-block: 16px 22px; }
  .crumbs { margin-bottom: 18px; }
  /* Reasons: a swipe row of compact tiles instead of five stacked cards */
  .whyx { gap: 28px; }
  .whyx__grid { grid-auto-flow: column; grid-auto-columns: 78%; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .whyx__grid::-webkit-scrollbar { display: none; }
  .whyx__grid > * { scroll-snap-align: start; }
  .tile { padding: 20px; }
  .tile__ic { margin-bottom: 12px; }
  .tile__stack { display: none; }
  /* Projects page: one swipe row per area; a plain list again while a filter is on */
  [data-group] .grid { grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
  [data-group] .grid::-webkit-scrollbar { display: none; }
  [data-group] .grid > * { scroll-snap-align: start; }
  [data-group] .card__area { display: none; }
  [data-group] .card__name { font-size: 22px; }
  [data-group] .group__head { margin-bottom: 14px; }
  .is-filtered [data-group] .grid { grid-auto-flow: row; grid-auto-columns: auto; gap: 32px; margin: 0; padding: 0; overflow: visible; }
  .is-filtered [data-group] .card__area { display: block; }
  /* Project page: key facts right under the photo, then the text, then the form; gallery shows six and “+N” */
  .proj__grid { display: flex; flex-direction: column; gap: 28px; padding-top: 24px; }
  .proj__side { display: contents; }
  .proj__side > .spec { order: -1; margin-bottom: 0; }
  .proj__side > .lform { order: 1; }
  .proj__desc { margin-bottom: 22px; }
  .proj__gal { padding-top: 48px; }
  .gal__i { position: relative; }
  .gal__i:nth-child(n+7) { display: none; }
  .gal__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(16, 20, 24, .5); color: #fff; font: 600 22px/1 var(--sans); }
  .lform, .consult { scroll-margin-top: 20px; }
  .evfacts div { grid-template-columns: 6.5em 1fr; }
  .ftr { margin-top: 64px; }
  .ftr__nav { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .menu__foot { gap: 2px; }
}
/* Motion on phones: shorter rise, less zoom (the drift is 3% there) */
@media (max-width: 639px) and (prefers-reduced-motion: no-preference) {
  .motion .reveal { transform: translate3d(0, 16px, 0); }
  .motion .fx { --s: 1.14; }
  .motion .fx.is-in { --s: 1.07; }
}
.logo { padding-block: 7px; }
.pcard__row { font-size: 12.5px; }

/* ---------- Contact page: three ways in, the form with what happens next, the office with a map */
.chead__t { max-width: 13em; font-size: clamp(36px, 8vw, 64px); line-height: 1.04; letter-spacing: -.04em; }
.openline { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.openline i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #a3abb2; }
.openline.is-open i { background: #15803d; box-shadow: 0 0 0 4px rgba(21, 128, 61, .12); }
.openline b { color: var(--ink); font-weight: 500; }

.ways { display: grid; margin: 8px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r); }
.ways li + li { border-top: 1px solid var(--line); }
.way { display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; align-items: center; gap: 16px; height: 100%; padding: 16px; transition: background-color var(--fast); }
.ways li:first-child .way { border-start-start-radius: var(--r); border-start-end-radius: var(--r); }
.ways li:last-child .way { border-end-start-radius: var(--r); border-end-end-radius: var(--r); }
.way:hover { background: var(--soft); }
.way__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--ink); transition: background-color var(--fast); }
.way:hover .way__ic { background: #fff; }
.way__ic .ic { width: 20px; height: 20px; }
.way__b { display: grid; gap: 2px; min-width: 0; }
.way__k { color: var(--muted); font-size: 13px; }
.way__v { color: var(--ink); font-size: 17px; font-weight: 500; overflow-wrap: anywhere; transition: color var(--fast); }
.way__n { color: var(--muted); font-size: 14px; }
.way .arr { width: 18px; height: 18px; color: var(--muted); transition: transform var(--fast), color var(--fast); }
.way:hover .way__v, .way:hover .arr { color: var(--blue-ink); }
.way:hover .arr { transform: translateX(3px); }

.csplit { display: grid; gap: 40px; margin-top: 32px; }
.nextsteps__t { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; gap: 4px; padding: 0 0 24px; padding-inline-start: 48px; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: -4px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 16px; top: 32px; bottom: 0; width: 1px; background: var(--line); }
.steps strong { color: var(--ink); font-weight: 500; }
.steps span { color: var(--muted); font-size: 15px; }

.office { display: grid; gap: 24px; padding: 24px 20px; border-radius: 24px; background: var(--soft); }
.office__t { font-size: clamp(28px, 5vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
.office__ad { margin-top: 16px; color: var(--ink); font-size: 17px; font-style: normal; line-height: 1.5; }
.hours { margin: 24px 0 0; border-top: 1px solid #dfe3e7; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #dfe3e7; font-size: 15px; }
.hours dt { display: flex; align-items: center; gap: 8px; color: var(--text); }
.hours dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.hours .is-today dt, .hours .is-today dd { color: var(--ink); font-weight: 500; }
.hours .is-today dt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.office__row { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; color: var(--text); font-size: 15px; }
.office__row .ic { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--muted); }
.office__note { margin-top: 8px; color: var(--muted); font-size: 15px; }
.office .btns { margin-top: 24px; }
.omap { position: relative; min-height: 280px; overflow: hidden; border-radius: var(--r); background: #e8ebee; isolation: isolate; }
.omap__canvas { position: absolute; inset: 0; font-family: var(--sans); }
.omap__canvas img { max-width: none; }
.opin { display: flex; flex-direction: column; align-items: center; }
.opin span { padding: 8px 12px; border-radius: 99px; background: var(--ink); color: #fff; font: 500 13px/1 var(--sans); white-space: nowrap; box-shadow: 0 4px 12px rgba(16, 20, 24, .2); }
.opin::after { content: ""; width: 10px; height: 10px; margin-top: -6px; background: var(--ink); transform: rotate(45deg); }

@media (min-width: 720px) {
  .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ways li + li { border-top: 0; border-inline-start: 1px solid var(--line); }
  .ways li:first-child .way { border-radius: 0; border-start-start-radius: var(--r); border-end-start-radius: var(--r); }
  .ways li:last-child .way { border-radius: 0; border-start-end-radius: var(--r); border-end-end-radius: var(--r); }
  .way { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "ic arr" "b b"; align-items: start; row-gap: 20px; padding: 24px; }
  .way__ic { grid-area: ic; }
  .way .arr { grid-area: arr; justify-self: end; margin-top: 11px; }
  .way__b { grid-area: b; }
}
@media (min-width: 960px) {
  .chead { padding-bottom: 40px; }
  .csplit { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 80px; margin-top: 56px; align-items: start; }
  .nextsteps { position: sticky; top: 104px; padding-top: 32px; }
  .office { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; padding: 48px; }
  .omap { min-height: 440px; }
}

/* ---------- Hero: the word for "first" in the brand blue (the "ilk" of the logo), inside its sliding mask */
.hero__t .hl { color: var(--blue); }

/* ---------- Dropdowns (src/app.js). The native <select> stays in the form, hidden; the button shows and picks its value.
   Popover on larger screens, bottom sheet on phones. Rows are 44 px (52 px in the sheet). */
.dd { position: relative; min-width: 0; }
.dd__btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: 500 16px/1.3 var(--sans); text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dd__val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd__caret { flex: none; color: var(--muted); transition: transform var(--ui) var(--out); }
.dd.is-open .dd__caret { transform: rotate(180deg); }
.dd__btn:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; border-radius: 8px; }
.dd__pop { position: absolute; inset-inline-start: 0; top: calc(100% + 8px); z-index: 60; min-width: 100%; width: max-content; max-width: min(340px, calc(100vw - 32px)); padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(16, 20, 24, .16); opacity: 0; transform: translateY(-4px); transition: opacity var(--fast) ease-out, transform var(--ui) var(--out); }
.dd__pop.is-in { opacity: 1; transform: none; }
.dd--up .dd__pop { top: auto; bottom: calc(100% + 8px); transform: translateY(4px); }
.dd--up .dd__pop.is-in { transform: none; }
.dd--end .dd__pop { inset-inline: auto 0; }
.dd__title { display: none; }
.dd__list { margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; outline: none; scrollbar-width: thin; }
.dd__opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 400; line-height: 1.3; cursor: pointer; transition: background-color var(--fast); }
.dd__opt.is-active { background: var(--soft); }
.dd__opt[aria-selected="true"] { font-weight: 600; }
.dd__tick { flex: none; color: var(--blue-ink); visibility: hidden; }
.dd__opt[aria-selected="true"] .dd__tick { visibility: visible; }
.dd__opt[aria-disabled="true"] { color: var(--muted); cursor: default; }
.dd__backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(16, 20, 24, .32); opacity: 0; transition: opacity var(--ui) ease-out; }
.dd__backdrop.is-in { opacity: 1; }
.dd__pop--sheet { position: fixed; inset: auto 0 0; z-index: 91; width: auto; min-width: 0; max-width: none; padding: 6px 12px calc(14px + env(safe-area-inset-bottom)); border: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(16, 20, 24, .18); opacity: 1; transform: translateY(100%); transition: transform var(--ui) var(--out); }
.dd__pop--sheet.is-in { transform: none; }
.dd__pop--sheet::before { content: ""; display: block; width: 40px; height: 4px; margin: 6px auto 8px; border-radius: 4px; background: var(--line); }
.dd__pop--sheet .dd__title { display: block; padding: 6px 12px 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.dd__pop--sheet .dd__list { max-height: min(62dvh, 480px) !important; }
.dd__pop--sheet .dd__opt { min-height: 52px; font-size: 17px; }
html.dd-lock, html.dd-lock body { overflow: hidden; }

/* In the search bar: the value under its small label; on phones each 2×2 tile is the whole button */
.search .dd__btn { min-height: 30px; font-size: 15px; }
.search .dd__pop { min-width: 220px; }
@media (max-width: 719px) {
  .search__f .dd { position: absolute; inset: 0; }
  .search__f .dd__btn { height: 100%; align-items: flex-end; padding: 0 12px 10px; border-radius: 14px; font-size: 16px; }
  .search__f .dd__caret { margin-bottom: 3px; }
}
/* In forms: looks like the text fields */
.field .dd__btn { min-height: 52px; padding: 13px 16px; border: 1px solid #c9ced4; border-radius: var(--r-in); background: #fff; font: 400 16px/1.4 var(--sans); transition: border-color var(--fast), box-shadow var(--fast); }
.field .dd__btn:hover { border-color: #8f98a1; }
.field .dd.is-open .dd__btn, .field .dd__btn:focus-visible { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 3px rgba(11, 106, 157, .18); }
.field .dd__pop { width: 100%; max-width: none; }

/* Language menus: a compact pill in the header, a full field in the phone menu, plain links in the footer */
.langsel { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font: 600 13px var(--sans); }
.hdr__lang .dd__btn { width: auto; height: 44px; min-height: 0; padding: 0 8px; gap: 6px; border-radius: 99px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.hdr__lang .dd__globe { color: var(--muted); }
.hdr__lang .dd__pop { min-width: 210px; }
.menu__lang { margin-bottom: 18px; }
.menu__lang > span .ic { width: 16px; height: 16px; color: var(--muted); }
.ftr__langs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ftr__langs a[aria-current] { color: var(--ink); font-weight: 500; }
@media (min-width: 960px) {
  .hdr__lang .dd__btn { height: 40px; padding: 0 14px; border: 1px solid var(--line); transition: border-color var(--fast); }
  .hdr__lang .dd__btn:hover, .hdr__lang .dd.is-open .dd__btn { border-color: var(--ink); }
}

/* ---------- Maps: no attribution strip; the OpenStreetMap credit opens from a small "i" by the zoom buttons */
.mapinfo { display: flex; flex-direction: row-reverse; align-items: center; gap: 6px; }
.leaflet-left .mapinfo { flex-direction: row; }
.leaflet-right .mapinfo { margin-right: 10px; }
.leaflet-left .mapinfo { margin-left: 10px; }
.mapinfo__btn { position: relative; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--muted); box-shadow: 0 2px 10px rgba(16, 20, 24, .14); cursor: pointer; transition: color var(--fast); }
.mapinfo__btn::before { content: ""; position: absolute; inset: -6px; }
.mapinfo__btn:hover, .mapinfo.is-open .mapinfo__btn { color: var(--ink); }
.mapinfo__txt { padding: 7px 11px; border-radius: 99px; background: rgba(255, 255, 255, .96); color: var(--muted); font: 400 12px/1.2 var(--sans); white-space: nowrap; box-shadow: 0 2px 10px rgba(16, 20, 24, .12); }
.leaflet-container .mapinfo__txt a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Project page. First screen: name, a summary line, the hero with its photos underneath, key facts and the
   price-list button. Then the story, highlights, amenities, location with a map, and the enquiry form. */
.pj__head { padding-block: 16px 20px; }
.pj__head .crumbs { margin-bottom: 18px; }
.pj__head .eyebrow { margin-bottom: 10px; }
@media (max-width: 959px) { .pj__head .eyebrow { display: none; } } /* the chips below the name say the same */
.pj__name { font-size: clamp(38px, 9.5vw, 72px); line-height: 1.02; letter-spacing: -.045em; }
.pj__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pj__chips li { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); font-size: 13.5px; line-height: 1.25; }
.pj__chips .ic { width: 15px; height: 15px; color: var(--blue-ink); }
.pj__top { display: grid; gap: 24px; }
.pj__media { display: grid; gap: 6px; min-width: 0; }
.pj__cover { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--soft); }
.pj__cover img { width: 100%; height: 100%; object-fit: cover; }
.pj__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pj__th { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--soft); }
.pj__th img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--out); }
.pj__th:hover img { transform: scale(1.05); }
.pj__more { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: rgba(16, 20, 24, .58); color: #fff; font: 600 20px/1 var(--sans); transition: background-color var(--fast); }
.pj__th:hover .pj__more { background: rgba(16, 20, 24, .62); }
.pj__facts { display: grid; gap: 16px; align-content: start; min-width: 0; }
.kf { display: grid; border-top: 1px solid var(--line); }
.kf > div { display: grid; grid-template-columns: minmax(7em, 34%) 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kf dt { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.kf dt .ic { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--blue-ink); }
.kf dd { display: grid; gap: 3px; min-width: 0; color: var(--ink); font-size: 16px; line-height: 1.4; }
.kf__s { color: var(--muted); font-size: 14px; }
.pj__act { display: grid; gap: 8px; }
.pj__act .btn { width: 100%; padding-inline: 20px; white-space: normal; text-align: center; line-height: 1.25; }
.pj__note { color: var(--muted); font-size: 13px; }
.pj__body { display: grid; gap: 48px; padding-top: 56px; }
.pj__main { display: grid; gap: 52px; min-width: 0; }
.pj__h { margin-bottom: 18px; font-size: clamp(26px, 5.5vw, 34px); }
.pj__desc { color: var(--ink); font-size: 18px; line-height: 1.6; }
.pj .amen { display: grid; gap: 0; }
.pj .amen li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 15px; }
.pj .amen .ic { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--blue-ink); }
.pj__loc { display: grid; gap: 20px; }
.pmap { min-height: 260px; }
.pj__locinfo { display: grid; gap: 12px; align-content: start; }
.pj__locinfo .office__row { margin-top: 0; }
.pj__locinfo .more { justify-self: start; margin-top: 6px; }
.pj__area { color: var(--ink); font: 500 24px/1.15 var(--display); letter-spacing: -.02em; }
.pj__side { position: relative; z-index: 2; min-width: 0; }
@media (min-width: 640px) {
  .pj__cover { border-radius: 24px; }
  .pj__thumbs { gap: 8px; }
  .pj__th { border-radius: 14px; }
  .kf { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .pj__act { grid-template-columns: 1fr 1fr; }
  .pj .amen { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (min-width: 960px) {
  .pj__head { padding-block: 28px 28px; }
  .pj__chips { display: none; } /* the facts beside the photo say the same */
  .pj__top { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .pj__cover { aspect-ratio: 16 / 10; border-radius: 28px; }
  .kf, .pj__act { grid-template-columns: 1fr; }
  .kf > div { padding: 13px 0; }
  .pj__body { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; padding-top: 104px; align-items: start; }
  .pj__side { position: sticky; top: 96px; }
  .pj__desc { font-size: 21px; --ink-from: #8d969e; }
  .pj__loc { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .pj__loc--nomap { grid-template-columns: 1fr; }
  .pmap { min-height: 360px; }
}

/* ---------- Right to left (Arabic). Layout uses logical properties above; these are the rest. */
[dir="rtl"] .ic--caret, [dir="rtl"] .arr { transform: scaleX(-1); }
[dir="rtl"] a:hover > .arr, [dir="rtl"] a:hover .card__name > .arr, [dir="rtl"] a:hover h2 > .arr { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .btn:hover .arr, [dir="rtl"] .way:hover .arr { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .nav a::after { transform-origin: right; }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
[dir="rtl"] .search select { background-position: left 12px bottom 15px; padding-inline: 12px 28px; }
/* Arabic script: no tracking (it breaks the joins), taller lines and masks for the ascenders and dots */
:lang(ar) { letter-spacing: 0 !important; }
:root:lang(ar) { --display: "Hanken Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif; --sans: "Hanken Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { line-height: 1.3; }
:lang(ar) .hero__t { line-height: 1.4; }
:lang(ar) .ln { padding: .28em 0; margin: -.28em 0; }
:lang(ar) .sl { padding-bottom: .3em; margin-bottom: -.3em; }
:lang(ar) .phead__t, :lang(ar) .pj__name, :lang(ar) .chead__t { line-height: 1.25; }
:lang(ar) body { line-height: 1.75; }
/* Russian pages: Onest throughout, so Cyrillic and Latin names share one face */
:root:lang(ru) { --display: "Onest", "IBM Plex Sans Arabic", system-ui, sans-serif; --sans: "Onest", "IBM Plex Sans Arabic", system-ui, sans-serif; }
