/* King Property public site. Hand-written, no build. Logical properties everywhere (Persian RTL, others LTR).
   Brand: the logo's black badge and its gold (#D1B06A sampled from the logo). One accent: gold.
   Theme: <html data-theme="dark|light"> set by theme.js before paint; dark is the brand default. */

@font-face { font-family: "Vazirmatn"; src: url("fonts/vazirmatn-arabic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; src: url("fonts/vazirmatn-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-cyrillic.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
    --font: "Manrope", "Vazirmatn", system-ui, sans-serif;
    --radius: 14px;          /* cards, images, panels */
    --radius-pill: 999px;    /* every interactive control */
    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --hdr-h: 72px;
    --staff-h: 0px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --z-header: 40; --z-dock: 45; --z-dialog: 60; --z-staff: 70;
}
.l-fa { --font: "Vazirmatn", system-ui, sans-serif; }

/* Dark (brand default) */
:root, [data-theme="dark"] {
    --bg: #0e0e10;
    --bg-2: #141417;
    --surface: #18181c;
    --surface-2: #202026;
    --line: rgb(255 255 255 / .09);
    --line-2: rgb(255 255 255 / .16);
    --text: #f1ede4;
    --muted: #aaa49a;
    --gold: #d1b06a;          /* fills, icons, rules */
    --gold-text: #dcc083;     /* gold as text on this background (contrast 9:1) */
    --on-gold: #15130f;
    --gold-soft: rgb(209 176 106 / .14);
    --shadow: 0 18px 50px rgb(0 0 0 / .45);
    --scrim: rgb(8 8 10 / .72);
    color-scheme: dark;
}
[data-theme="light"] {
    --bg: #f4f4f2;
    --bg-2: #ebebe8;
    --surface: #fcfcfb;
    --surface-2: #f0efec;
    --line: rgb(20 20 24 / .1);
    --line-2: rgb(20 20 24 / .18);
    --text: #17171b;
    --muted: #57554f;
    --gold: #c9a65e;
    --gold-text: #7a5d22;     /* 5.6:1 on --bg */
    --on-gold: #15130f;
    --gold-soft: rgb(201 166 94 / .16);
    --shadow: 0 18px 40px rgb(40 34 20 / .12);
    --scrim: rgb(20 20 24 / .55);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + var(--staff-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.75 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.l-fa body, body.l-fa { line-height: 1.95; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; font-weight: 750; letter-spacing: -.01em; }
.l-fa h1, .l-fa h2, .l-fa h3 { letter-spacing: 0; line-height: 1.5; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: var(--radius-pill); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 820px); }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---- Buttons (pill) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 22px; border-radius: var(--radius-pill); border: 1px solid transparent; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: color-mix(in srgb, var(--gold) 86%, white); }
.btn--light { background: rgb(255 255 255 / .92); color: #121214; }
.btn--light:hover { background: #fff; }
.btn--line { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--line:hover { border-color: var(--gold); color: var(--gold-text); }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn--block { width: 100%; }
.btn .ico { width: 1.15em; height: 1.15em; }
.iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s, background-color .2s; list-style: none; }
.iconbtn::-webkit-details-marker { display: none; }
.iconbtn:hover { border-color: var(--gold); }
.link-more { display: inline-flex; align-items: center; gap: .4em; color: var(--gold-text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
[dir="rtl"] .ico-flip { transform: scaleX(-1); }

/* ---- Staff bar (signed-in owner), always on top ---- */
body:has(.staffbar) { --staff-h: 40px; padding-top: var(--staff-h); }
.staffbar { position: fixed; inset-inline: 0; top: 0; height: var(--staff-h); z-index: var(--z-staff); background: #2a2210; color: #f6eedc; font: 13px/1 "Vazirmatn", sans-serif; overflow-x: auto; }
.staffbar__in { display: flex; align-items: center; gap: 10px; height: 100%; white-space: nowrap; }
.staffbar__who { margin-inline-end: auto; opacity: .85; }
.staffbar__btn { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: var(--radius-pill); background: #f6eedc; color: #2a2210; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 13px; }
.staffbar__btn--ghost { background: transparent; color: #f6eedc; border: 1px solid rgb(246 238 220 / .5); }
.staffbar form { margin: 0; }
@media (max-width: 640px) { .staffbar__who { display: none; } }

/* ---- Header ---- */
.hdr { position: sticky; top: var(--staff-h); z-index: var(--z-header); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.is-home .hdr { position: fixed; inset-inline: 0; background: linear-gradient(to bottom, rgb(10 10 12 / .7), transparent); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #f4efe5; }
.is-home .hdr.is-stuck { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); color: var(--text); }
.is-home .hdr:not(.is-stuck) .iconbtn { color: #f4efe5; border-color: rgb(255 255 255 / .22); }
.hdr__bar { display: flex; align-items: center; gap: 12px; height: 72px; }
.hdr__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.hdr__logo img { width: 44px; height: 44px; border-radius: 50%; }
.hdr__word { display: grid; font: 800 1.05rem/1 "Manrope", sans-serif; letter-spacing: .14em; color: var(--gold-text); }
.is-home .hdr:not(.is-stuck) .hdr__word { color: #dcc083; }
.hdr__word small { font-size: .56rem; letter-spacing: .42em; margin-top: 4px; color: currentColor; opacity: .8; }
.hdr__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.hdr__cta { min-height: 42px; padding: 0 16px; }
.hdr__finder { display: none; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; margin-inline-start: 12px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; font-size: .88rem; white-space: nowrap; transition: background-color .2s, border-color .2s; }
.hdr__finder .ico { color: var(--gold-text); }
.hdr__finder:hover, .hdr__finder[aria-current] { background: var(--gold-soft); border-color: var(--gold); }
.is-home .hdr:not(.is-stuck) .hdr__finder .ico { color: #dcc083; }
@media (min-width: 760px) { .hdr__finder { display: inline-flex; } }

/* Desktop menu: its own row under the bar, so long labels (en / tr / ru) never run into the buttons. */
.nav { display: none; border-top: 1px solid var(--line); }
.is-home .hdr:not(.is-stuck) .nav { border-color: rgb(255 255 255 / .12); }
.nav__list, .nav__sub { list-style: none; margin: 0; padding: 0; }
.nav__list { margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; padding-block: 4px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 9px 12px; border-radius: var(--radius-pill); text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.nav__item:first-child .nav__link { padding-inline-start: 0; }
.nav__link:hover, .nav__link[aria-current] { color: var(--gold-text); }
.is-home .hdr:not(.is-stuck) .nav__link:hover { color: #dcc083; }
.nav__caret { width: .85em; height: .85em; opacity: .7; }
.nav__sub { position: absolute; z-index: 2; top: 100%; inset-inline-start: 0; min-width: 260px; max-width: 340px; padding: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: .9rem; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--gold-soft); color: var(--gold-text); }
.nav__deep a { padding-inline-start: 26px; font-size: .85rem; color: var(--muted); }
@media (min-width: 1100px) { :root { --hdr-h: 118px; } .nav { display: block; } .drawer, .drawer__btn { display: none !important; } }

/* Language menu (button + list; a <details> summary is unreliable in iOS Safari). */
.lang { position: relative; }
.lang__btn { width: auto; padding: 0 10px 0 12px; gap: 7px; display: inline-flex; align-items: center; justify-content: center; font: 800 .78rem "Manrope", sans-serif; }
.lang__btn .ico { flex: none; }
.lang__caret { width: 12px; height: 12px; opacity: .7; transition: transform .2s var(--ease); }
.lang__btn[aria-expanded="true"] .lang__caret { transform: rotate(180deg); }
.flag { flex: none; display: block; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(127, 127, 127, .35); }
.lang__menu { position: absolute; z-index: 3; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; list-style: none; margin: 0; padding: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.lang__menu:not(.is-open) { display: none; }
.lang__menu { min-width: 220px; display: grid; gap: 2px; }
.lang__menu a { display: flex; gap: 12px; align-items: center; min-height: 46px; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.lang__menu a span { flex: 1; }
.lang__menu a:hover, .lang__menu a:focus-visible, .lang__menu a[aria-current] { background: var(--gold-soft); }
.lang__menu a[aria-current] { box-shadow: inset 0 0 0 1px var(--gold); }
.lang__menu b { font: 800 .7rem "Manrope", sans-serif; color: var(--gold-text); }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* Mobile drawer: a panel under the header, opened by its button. */
.drawer__btn .i-close, .drawer__btn[aria-expanded="true"] .i-open { display: none; }
.drawer__btn[aria-expanded="true"] .i-close { display: block; }
.drawer { position: absolute; top: calc(100% + 6px); inset-inline: 12px; max-height: calc(100dvh - var(--hdr-h) - var(--staff-h) - 24px); overflow: auto; overscroll-behavior: contain; padding: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.drawer:not(.is-open) { display: none; }
.drawer__finder { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-bottom: 6px; border-radius: var(--radius-pill); background: var(--gold); color: #17140c; font-weight: 800; text-decoration: none; }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list > li { border-bottom: 1px solid var(--line); }
.drawer__list a, .drawer__toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 6px; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: start; text-decoration: none; cursor: pointer; }
.drawer__toggle .ico { flex: none; transition: transform .2s; }
.drawer__toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.drawer__sub { list-style: none; margin: 0 0 8px; padding: 0 12px; }
.drawer__sub:not(.is-open) { display: none; }
.drawer__sub a { padding: 9px 6px; font-weight: 500; color: var(--muted); }
.drawer__langs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 14px; }
.drawer__langs a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); text-decoration: none; font-size: .92rem; font-weight: 600; }
.drawer__langs a[aria-current] { border-color: var(--gold); color: var(--gold-text); }
@media (max-width: 560px) { .hdr__cta span, .hdr__word small { display: none; } .hdr__cta { padding: 0; width: 42px; justify-content: center; } .lang__btn span, .lang__caret { display: none; } .lang__btn { width: 42px; padding: 0; } .hdr__actions { gap: 6px; } }
@media (max-width: 380px) { .hdr__word { display: none; } }

/* ---- Search dialog ---- */
.search { width: min(100% - 24px, 760px); margin: calc(var(--hdr-h) + 24px) auto auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.search::backdrop { background: var(--scrim); backdrop-filter: blur(4px); }
.search__form { display: flex; align-items: center; gap: 10px; padding: 12px; }
.search__form > .ico { margin-inline-start: 6px; color: var(--muted); }
.search__form input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; outline: none; font-size: 1.05rem; }

/* ---- Typography helpers ---- */
.h-display { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); font-weight: 800; }
.h-section { font-size: clamp(1.45rem, 1.05rem + 1.4vw, 2.2rem); font-weight: 800; }
.h-page { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.9rem); font-weight: 800; max-width: 26ch; }
.l-fa .h-page { max-width: 32ch; }
.kicker { color: var(--gold-text); font-weight: 700; font-size: .9rem; margin-bottom: .4em; }
.meta { color: var(--muted); font-size: .9rem; margin-top: .6em; }

/* ---- Hero (home) ---- */
.hero { position: relative; min-height: min(100dvh, 860px); display: grid; align-items: end; color: #f4efe5; isolation: isolate; overflow: hidden; background: #0b0b0d; }
.hero__slides, .hero__shade { position: absolute; inset: 0; z-index: -1; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 7s linear; }
.hero__img.is-on { opacity: 1; transform: scale(1); }
.hero__shade { background: linear-gradient(to top, rgb(10 10 12 / .92) 0%, rgb(10 10 12 / .55) 45%, rgb(10 10 12 / .25) 100%); }
[dir="ltr"] .hero__shade { background: linear-gradient(to top, rgb(10 10 12 / .9), rgb(10 10 12 / .2) 70%), linear-gradient(to right, rgb(10 10 12 / .75), transparent 65%); }
[dir="rtl"] .hero__shade { background: linear-gradient(to top, rgb(10 10 12 / .9), rgb(10 10 12 / .2) 70%), linear-gradient(to left, rgb(10 10 12 / .75), transparent 65%); }
.hero__in { position: relative; padding-block: calc(var(--hdr-h) + 48px) clamp(40px, 8vh, 88px); display: grid; gap: 28px; }
.hero__copy { max-width: 640px; display: grid; gap: 18px; }
.hero__title { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); font-weight: 800; line-height: 1.18; text-wrap: balance; }
.l-fa .hero__title { line-height: 1.45; }
.hero__captions { min-height: 3.4em; }
.hero__caption { margin: 0; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: rgb(244 239 229 / .85); max-width: 52ch; animation: rise .7s var(--ease) both; }
.hero__caption b { color: #dcc083; margin-inline-end: .35em; }
.hero__search { display: flex; align-items: center; gap: 8px; padding: 6px; padding-inline-start: 16px; background: rgb(255 255 255 / .96); color: #17171b; border-radius: var(--radius-pill); box-shadow: 0 16px 40px rgb(0 0 0 / .35); max-width: 600px; }
.hero__search > .ico { color: #6b675f; }
.hero__search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; outline: none; font-size: 1rem; color: #17171b; }
.hero__search input::placeholder { color: #6b675f; }
.hero__search--inline { margin-top: 20px; border: 1px solid var(--line); box-shadow: none; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 46px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.hero__dot span { display: block; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .3); overflow: hidden; position: relative; }
.hero__dot span::after { content: ""; position: absolute; inset: 0; background: #dcc083; transform: scaleX(0); transform-origin: inline-start; }
[dir="rtl"] .hero__dot span::after { transform-origin: right; }
[dir="ltr"] .hero__dot span::after { transform-origin: left; }
.hero__dot[aria-selected="true"] span::after { animation: fill 6.5s linear forwards; }
@media (max-width: 640px) { .hero { min-height: 92dvh; } .hero__search .btn { padding: 0 14px; } }

/* ---- Sections ---- */
section { scroll-margin-top: calc(var(--hdr-h) + 12px); }
.intro { padding-block: clamp(48px, 7vw, 96px) 0; }
.intro__in { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; }
.intro__lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 650; color: var(--text); }
.intro__lead p:first-child { color: var(--gold-text); font-weight: 800; }
.intro__quote { position: relative; padding-inline-start: 22px; border-inline-start: 2px solid var(--gold); color: var(--muted); }
.intro__quote p:first-child { color: var(--text); font-weight: 700; }
.js .intro__quote.is-long:not(.is-open) .intro__body { max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.intro__toggle { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--gold-text); font-weight: 700; cursor: pointer; }
.intro__quote:not(.is-long) .intro__toggle, .intro__quote.is-open .intro__toggle { display: none; }
@media (min-width: 900px) { .intro__in { grid-template-columns: 5fr 7fr; align-items: start; } }

.about { padding-block: clamp(56px, 8vw, 112px); overflow-x: clip; }
.about__in { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__media { margin: 0; position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__media--fade { display: grid; }
.about__media--fade img { grid-area: 1 / 1; opacity: 0; transition: opacity 1.1s var(--ease); }
.about__media--fade img.is-on { opacity: 1; }
.about__media::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1; }
[dir="rtl"] .about__media::after { inset: 18px 18px -18px -18px; }
.about__copy { display: grid; gap: 18px; justify-items: start; }
.about__copy .prose { color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) { .about__in { grid-template-columns: 5fr 6fr; } }

.tiles { padding-block: clamp(40px, 6vw, 88px); background: var(--bg-2); }
.tiles .h-section { margin-bottom: 28px; }
.tiles__grid { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: 1fr; }
.tile { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.tile:hover img { transform: scale(1.03); }
@media (min-width: 640px) { .tiles__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
    .tiles__grid--3, .tiles__grid--feature { grid-template-columns: repeat(3, 1fr); }
    .tiles__grid--4 { grid-template-columns: repeat(4, 1fr); }
    .tiles__grid--feature .tile:first-child { grid-column: span 2; grid-row: span 2; }
}
.tile img { aspect-ratio: 16 / 9; }
.tiles__grid--feature .tile:first-child img { aspect-ratio: auto; }
.tiles__grid--4 .tile img { aspect-ratio: 3 / 2; }

.posts { padding-block: clamp(48px, 7vw, 96px) 0; }
.posts__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 26px; }
.posts__text { color: var(--muted); max-width: 70ch; margin-top: 10px; }
.posts__text p:last-child { margin: 0; }
.posts__nav { display: flex; align-items: center; gap: 8px; }

/* Card */
.card { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__ph { display: grid; place-items: center; height: 100%; opacity: .5; }
.card__body { padding: 16px 18px 20px; display: grid; gap: 6px; }
.card__cat { margin: 0; font-size: .78rem; font-weight: 700; color: var(--gold-text); }
.card__title { font-size: 1rem; font-weight: 700; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.l-fa .card__title { line-height: 1.8; }
.card__text { margin: 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.grid-cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }

.feature { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .feature { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
    .feature { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; }
    .feature .card--big { grid-row: span 2; }
    .feature .card--big .card__media { aspect-ratio: auto; flex: 1; min-height: 360px; }
    .feature .card--big .card__title { font-size: 1.3rem; }
    .feature .card:not(.card--big) .card__media { aspect-ratio: 16 / 10; }
}

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; overscroll-behavior-x: contain; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1000px) { .rail { grid-auto-columns: calc((100% - 3 * 18px) / 4); } }
@media (max-width: 640px) { .rail { grid-auto-columns: 78%; } }

.split { display: grid; gap: 28px; }
.split__text { color: var(--muted); padding: 26px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }
.split__cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (min-width: 1000px) { .split { grid-template-columns: 4fr 8fr; align-items: start; } .split__text { position: sticky; top: calc(var(--hdr-h) + var(--staff-h) + 20px); } }

.list-cards { display: grid; gap: 14px; }
@media (min-width: 900px) { .list-cards { grid-template-columns: repeat(2, 1fr); } }
.card--row .card__link { flex-direction: row; }
.card--row .card__media { width: 38%; aspect-ratio: auto; flex: none; min-height: 140px; }
.card--row .card__body { align-content: center; }

.videos { padding-block: clamp(48px, 7vw, 96px) 0; }
.videos .h-section { margin-bottom: 26px; }
.videos__grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .videos__grid--3 { grid-template-columns: repeat(3, 1fr); } .videos__grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .videos__grid { grid-template-columns: 1fr; } }

/* Video blocks (home and bodies) */
.video { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video--file, .videos .video { aspect-ratio: 9 / 12; }
.video video, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.video[data-youtube] > a { position: absolute; inset: 0; display: grid; place-items: center; color: transparent; background: center / cover no-repeat; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(transparent, rgb(0 0 0 / .45)); cursor: pointer; color: #fff; }
.video__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.video__play .ico { width: 64px; height: 64px; color: #fff; filter: drop-shadow(0 6px 18px rgb(0 0 0 / .5)); transition: transform .25s var(--ease); }
.video__play:hover .ico { transform: scale(1.08); }
.prose .video { margin: 1.5em 0; }

/* ---- Consultation panel ---- */
.band { padding-block: clamp(56px, 8vw, 104px); }
.consult { display: grid; gap: clamp(24px, 4vw, 56px); padding: clamp(22px, 4vw, 48px); border-radius: calc(var(--radius) + 6px); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--gold) 18%, var(--surface)) 0%, var(--surface) 55%); border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line)); }
[dir="rtl"] .consult { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--gold) 18%, var(--surface)) 0%, var(--surface) 55%); }
.consult__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 800; margin-bottom: .4em; }
.consult__copy > p { color: var(--muted); max-width: 52ch; }
@media (min-width: 960px) { .consult:not(.consult--inline) { grid-template-columns: 1fr 1fr; align-items: start; } }
.consult--inline { margin: 2em 0; }
.listing__side { display: grid; gap: 18px; align-content: start; }
.listing__side .consult { padding: 22px; gap: 22px; grid-template-columns: 1fr !important; }
.listing__side .consult__title { font-size: 1.3rem; }
.wa-lines { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.wa-line { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.wa-line:hover { border-color: #25d366; transform: translateY(-1px); }
.wa-line > .ico:first-child { color: #25d366; width: 26px; height: 26px; }
.wa-line span { display: grid; line-height: 1.35; }
.wa-line b { font-size: .85rem; }
.wa-line bdi { font-weight: 700; font-family: "Manrope", sans-serif; }
.wa-line__go { margin-inline-start: auto; opacity: .5; }
[dir="rtl"] .wa-line__go { transform: scaleX(-1); }

.form { display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { border-radius: 16px; min-height: 92px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.field [aria-invalid="true"] { border-color: #e5776b; }
.field__err { margin: 0; color: #f09b90; font-size: .85rem; }
[data-theme="light"] .field__err { color: #b3261e; }
.form__note { margin: 0; font-size: .8rem; color: var(--muted); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---- Inner pages ---- */
.page__head { padding-block: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, var(--bg-2), var(--bg)); }
.page__head .h-page { margin-top: 10px; }
.page__cover { margin: 28px 0 0; }
.page__cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.page__body { padding-block: clamp(28px, 4vw, 56px); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-text); }
.archive { padding-block: clamp(28px, 4vw, 56px) 0; }
.archive__intro { color: var(--muted); margin-top: 14px; max-width: 75ch; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pager__n { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-family: "Manrope", sans-serif; }
.pager__n[aria-current] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.related { padding-block: clamp(48px, 6vw, 80px) 0; }
.related .h-section { margin-bottom: 24px; }

/* Listing (project) */
.listing__head { padding-block: clamp(24px, 4vw, 44px) 22px; }
.listing__head .h-page { margin-top: 10px; max-width: 40ch; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); }
.mosaic { position: relative; display: grid; gap: 8px; border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr; }
.mosaic__item { display: block; overflow: hidden; background: var(--surface-2); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic__item:hover img { transform: scale(1.03); }
.mosaic__item:first-child img { aspect-ratio: 16 / 10; }
.mosaic__all { position: absolute; inset-block-end: 14px; inset-inline-end: 14px; min-height: 40px; font-size: .85rem; box-shadow: 0 8px 24px rgb(0 0 0 / .3); }
@media (max-width: 759px) { .mosaic__item:not(:first-child) { display: none; } }
@media (min-width: 760px) {
    .mosaic--3, .mosaic--4, .mosaic--5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(360px, 48vw, 560px); }
    .mosaic--3 .mosaic__item:first-child, .mosaic--4 .mosaic__item:first-child, .mosaic--5 .mosaic__item:first-child { grid-row: span 2; }
    .mosaic--3 .mosaic__item:nth-child(2), .mosaic--3 .mosaic__item:nth-child(3) { grid-column: span 2; }
    .mosaic--4 .mosaic__item:nth-child(4) { grid-column: span 2; }
    .mosaic--2 { grid-template-columns: 2fr 1fr; height: clamp(320px, 40vw, 520px); }
    .mosaic--1 { height: auto; }
    .mosaic img { aspect-ratio: auto !important; }
    .mosaic--1 img { max-height: 620px; }
}
.listing__grid { display: grid; gap: clamp(28px, 4vw, 56px); padding-block: clamp(28px, 4vw, 48px); }
@media (min-width: 1040px) { .listing__grid { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } .sticky { position: sticky; top: calc(var(--hdr-h) + var(--staff-h) + 20px); } }

/* Body content */
.prose { overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.prose h4 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.prose h2, .prose h3 { color: var(--text); }
.prose a { color: var(--gold-text); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin: 1.5em 0; padding: 4px 20px; border-inline-start: 3px solid var(--gold); color: var(--muted); }
.prose blockquote p { unicode-bidi: plaintext; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .note { margin: 1.2em 0; padding: 14px 18px; border-radius: 12px; background: var(--gold-soft); border-inline-start: 3px solid var(--gold); color: var(--text); font-weight: 600; }
.prose figure { margin: 1.4em 0; }
.prose figure img, .prose > p img { border-radius: var(--radius); }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; }
.prose th { background: var(--surface-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .align-center { text-align: center; }
.prose .align-right { text-align: right; }
.prose .align-left { text-align: left; }
.prose .cta { margin: 1.4em 0; }
.prose .btn { color: var(--on-gold); background: var(--gold); text-decoration: none; }
.prose--page { max-width: 820px; margin-inline: auto; font-size: 1.04rem; }
.prose .gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 1.4em 0; }
.prose .gallery a, .prose .gallery figure { display: block; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); }
.prose .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.prose .gallery a:hover img { transform: scale(1.05); }
.prose .cols { display: grid; gap: 20px; margin: 1.4em 0; }
@media (min-width: 760px) { .prose .cols-2 { grid-template-columns: repeat(2, 1fr); } .prose .cols-3 { grid-template-columns: repeat(3, 1fr); } .prose .cols-4 { grid-template-columns: repeat(4, 1fr); } }
.prose .cols--media img { width: 100%; border-radius: var(--radius); }
.prose .col > :first-child { margin-top: 0; }
.prose .grid-cards { margin: 1.6em 0; }
.listing__body { font-size: 1.02rem; }

/* Centered messages (thanks, 404) */
.center-msg { min-height: 62vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 16px; padding-block: 64px; }
.center-msg img { border-radius: 50%; }
.center-msg p { color: var(--muted); max-width: 52ch; }
.center-msg__code { font: 800 4rem/1 "Manrope", sans-serif; color: var(--gold-text); margin: 0; }
.center-msg__ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---- Footer ---- */
.ftr { margin-top: clamp(40px, 6vw, 80px); background: #0a0a0c; color: #d9d3c7; border-top: 1px solid rgb(209 176 106 / .25); --line: rgb(255 255 255 / .09); --muted: #9f998e; --gold-text: #dcc083; }
.ftr__grid { display: grid; gap: 36px; padding-block: clamp(44px, 6vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 720px) { .ftr__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ftr__grid { grid-template-columns: 1.3fr 1.2fr 1fr .9fr; } }
.ftr__name { margin: 16px 0 10px; font-weight: 700; color: #f1ede4; }
.ftr__note { font-size: .86rem; color: var(--muted); }
.ftr__note p { margin: 0 0 .5em; }
.ftr__h { font-size: .95rem; font-weight: 800; color: #f1ede4; margin-bottom: 16px; }
.ftr__list, .ftr__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ftr__list li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; }
.ftr__list .ico { color: var(--gold-text); margin-top: 4px; }
.ftr__list span { display: grid; gap: 2px; }
.ftr__list b { font-size: .78rem; font-weight: 700; color: var(--muted); }
.ftr__list a, .ftr__links a { text-decoration: none; }
.ftr__list a:hover, .ftr__links a:hover { color: var(--gold-text); }
.ftr__links { gap: 10px; font-size: .9rem; }
.ftr__bottom { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; padding-block: 22px 28px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.ftr__bottom p { margin: 0; }
.ftr__langs { display: flex; gap: 14px; }
.ftr__langs a, .ftr__credit a { text-decoration: none; color: inherit; }
.ftr__langs a:hover { color: var(--gold-text); }
.ftr__credit a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Mobile dock ---- */
.dock { position: fixed; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: var(--z-dock); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dock .btn { min-height: 44px; padding: 0 12px; font-size: .88rem; }
@media (min-width: 900px) { .dock { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 84px; } }

/* ---- Lightbox ---- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(6 6 8 / .96); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: 10px; grid-column: 2; }
.lightbox__fig img { max-height: 84dvh; max-width: 100%; object-fit: contain; border-radius: 8px; }
.lightbox__fig figcaption { font: 600 .85rem "Manrope", sans-serif; opacity: .7; }
.lightbox .iconbtn { color: #fff; border-color: rgb(255 255 255 / .25); margin: 12px; }
.lightbox__close { position: absolute; top: 12px; inset-inline-end: 12px; }
.lightbox__prev { grid-column: 1; }
.lightbox__next { grid-column: 3; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { position: absolute; bottom: 20px; } .lightbox__prev { inset-inline-start: 20px; } .lightbox__next { inset-inline-end: 20px; } }

/* ---- Motion ---- */
/* ---- Property filter (hero bar and finder sidebar) ---- */
.btn--line-light { border-color: rgb(255 255 255 / .45); color: #f4efe5; background: rgb(0 0 0 / .15); }
.btn--line-light:hover { border-color: #dcc083; color: #dcc083; }
.pf { display: grid; gap: 12px; }
.pf__field { position: relative; display: grid; gap: 6px; min-width: 0; }
.pf__field label, .pf__feat legend { font-size: .8rem; font-weight: 700; color: var(--muted); }
.pf select, .pf__input { width: 100%; min-height: 48px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.pf select { appearance: none; -webkit-appearance: none; padding-block: 0; padding-inline: 18px 40px; cursor: pointer; text-overflow: ellipsis; }
.pf__field:not(.pf__field--q)::after { content: ""; position: absolute; inset-inline-end: 18px; bottom: 21px; width: 7px; height: 7px; border-inline-end: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; pointer-events: none; }
.pf option, .pf optgroup { background: var(--surface); color: var(--text); }
.pf__input { display: flex; align-items: center; gap: 8px; padding-inline: 16px; }
.pf__input .ico { flex: none; color: var(--muted); }
.pf__input input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; outline: none; }
.pf__input input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.pf select:focus, .pf__input:focus-within { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.pf__check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.pf__check input, .chip-check input { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; }
.pf__feat { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pf__feat legend { margin-bottom: 8px; padding: 0; }
.chip-check { position: relative; display: inline-flex; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.chip-check span { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); font-size: .85rem; font-weight: 600; transition: border-color .2s, background-color .2s, color .2s; }
.chip-check input:checked + span { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-text); }
.chip-check input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pf__actions { display: grid; gap: 10px; justify-items: center; }
.btn--block { width: 100%; }

/* Hero: one glass bar over the photo. */
.pf--hero { --text: #f4efe5; --muted: rgb(244 239 229 / .7); --line-2: rgb(255 255 255 / .16); color: var(--text); padding: 14px; border-radius: 26px; border: 1px solid rgb(255 255 255 / .16); background: rgb(14 14 16 / .62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 24px 60px rgb(0 0 0 / .35); grid-template-columns: 1fr 1fr; max-width: 1080px; }
.pf--hero .pf__field--q, .pf--hero .pf__go, .pf--hero .pf__check { grid-column: 1 / -1; }
.pf--hero select, .pf--hero .pf__input { background: rgb(255 255 255 / .07); }
.pf--hero option, .pf--hero optgroup { background: #18181c; color: #f1ede4; }
.pf--hero .pf__go { min-height: 50px; }
.pf--hero .pf__check { font-size: .85rem; color: var(--muted); }
@media (min-width: 1000px) {
    .pf--hero { grid-template-columns: minmax(200px, 1.4fr) repeat(4, minmax(0, 1fr)) auto; align-items: end; padding: 16px 16px 12px; column-gap: 10px; row-gap: 10px; }
    .pf--hero .pf__field--q { grid-column: auto; }
    .pf--hero .pf__go { grid-column: auto; min-height: 48px; padding: 0 22px; }
    .pf--hero .pf__check { grid-row: 2; }
}
@media (prefers-reduced-transparency: reduce) { .pf--hero { background: #141417; backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* ---- Finder page ---- */
.finder { display: grid; gap: 24px; padding-block: 8px 64px; }
.finder__toggle { justify-self: start; }
.finder__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--gold); color: var(--on-gold); font-size: .75rem; font-weight: 800; }
.finder__panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.finder__panel:not(.is-open) { display: none; }
.finder__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; }
.finder__count { margin: 0; font-size: 1.05rem; }
.finder__sort { display: inline-flex; align-items: center; gap: 10px; margin-inline-start: auto; font-size: .88rem; color: var(--muted); }
.finder__sort select { min-height: 42px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; }
.finder__saved { min-height: 42px; padding: 0 16px; }
.finder__saved .ico { color: var(--gold); }
.finder__chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.finder__chips a:not(.link-more) { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 14px; border-radius: var(--radius-pill); background: var(--gold-soft); color: var(--gold-text); font-size: .85rem; font-weight: 700; text-decoration: none; }
[dir="rtl"] .finder__chips a:not(.link-more) { padding: 6px 14px 6px 10px; }
.finder__chips .ico { width: .95em; height: .95em; }
.finder__chips .link-more { font-size: .85rem; margin-inline-start: 6px; }
.finder .empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.muted-note { color: var(--muted); font-size: .85rem; margin-top: 18px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
@media (min-width: 1000px) {
    .finder { grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 32px; }
    .finder__toggle { display: none; }
    .finder__panel, .finder__panel:not(.is-open) { display: block; position: sticky; top: calc(var(--hdr-h) + var(--staff-h) + 16px); max-height: calc(100dvh - var(--hdr-h) - var(--staff-h) - 32px); overflow: auto; overscroll-behavior: contain; }
    .grid-cards--finder { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1240px) { .grid-cards--finder { grid-template-columns: repeat(3, 1fr); } }

/* ---- Property cards ---- */
.card--prop .card__cat { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.card--prop .card__cat span + span::before { content: "·"; margin-inline-end: 10px; color: var(--muted); }
.card__facts { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .84rem; color: var(--muted); }
.card__facts li { display: inline-flex; align-items: center; gap: 6px; }
.card__facts .ico { width: 1.1em; height: 1.1em; color: var(--gold); }
.card__price { flex-direction: column; align-items: flex-start !important; gap: 0 !important; margin-inline-start: auto; text-align: end; }
.card__price span { font-size: .72rem; }
.card__price b { color: var(--text); font-size: 1rem; font-weight: 800; }
.card__cit { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--gold-soft); color: var(--gold-text); font-size: .75rem; font-weight: 700; }
.card__save { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .25); background: rgb(14 14 16 / .55); color: #fff; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .2s var(--ease), background-color .2s; }
.card__save:hover { transform: scale(1.06); }
.card__save:active { transform: scale(.94); }
.card__save .i-on, .card__save[aria-pressed="true"] .i-off { display: none; }
.card__save[aria-pressed="true"] .i-on { display: block; color: var(--gold); }

/* ---- Property facts on a project page ---- */
.facts { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 16px; }
.facts__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.facts__code { font: 800 1.1rem "Manrope", sans-serif; color: var(--gold-text); letter-spacing: .04em; }
.facts__list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.facts__list div { display: grid; gap: 2px; min-width: 0; }
.facts__list dt { font-size: .76rem; color: var(--muted); font-weight: 600; }
.facts__list dd { margin: 0; font-weight: 700; }
.facts__price dd { font-size: 1.2rem; color: var(--gold-text); }
.facts__cit { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); font-weight: 700; font-size: .9rem; }
.facts__feat { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.facts__feat li { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); font-size: .8rem; font-weight: 600; }
.facts__note { margin: 0; color: var(--muted); font-size: .78rem; }
.facts__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.facts__actions .btn { flex: 1 1 auto; min-height: 42px; padding: 0 16px; font-size: .88rem; }
.facts__actions [aria-pressed="true"] { border-color: var(--gold); color: var(--gold-text); }
.facts__actions .i-on, .facts__actions [aria-pressed="true"] .i-off { display: none; }
.facts__actions [aria-pressed="true"] .i-on { display: block; color: var(--gold); }

@media (max-width: 899px) { .drawer { max-height: calc(100dvh - var(--hdr-h) - var(--staff-h) - 110px); } }
@media (max-width: 640px) { .hero__ctas .btn--line-light { display: none; } }

/* ---- Service pages as landing pages (service.blade.php, App\Support\Landing) ---- */
.lp-hero { padding-block: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--line); background: radial-gradient(120% 90% at 100% 0%, var(--gold-soft), transparent 55%), linear-gradient(to bottom, var(--bg-2), var(--bg)); }
[dir="rtl"] .lp-hero { background: radial-gradient(120% 90% at 0% 0%, var(--gold-soft), transparent 55%), linear-gradient(to bottom, var(--bg-2), var(--bg)); }
.lp-hero__in { display: grid; gap: 28px; align-items: center; }
.lp-hero__copy { display: grid; gap: 4px; min-width: 0; }
.lp-hero__copy .kicker { margin: 14px 0 0; }
.lp-hero__copy .h-page { max-width: 22ch; text-wrap: balance; }
.lp-hero__lead { margin: 10px 0 0; color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.85; max-width: 60ch; }
.lp-hero__lead p { margin: 0; }
.lp-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.lp-hero__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; text-decoration: none; font-family: "Manrope", sans-serif; }
.lp-hero__tel:hover { color: var(--gold-text); }
.lp-hero__tel .ico { color: var(--gold); }
.lp-hero__media { margin: 0; }
.lp-hero__media a { display: block; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.lp-hero__media img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
@media (min-width: 960px) {
    .lp-hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
    .lp-hero__in--solo { grid-template-columns: 1fr; }
}

/* Table of contents: chips on small screens, sticky side list on wide ones. */
.lp-toc-m { padding-block: 18px 0; }
.lp-toc-m ol { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.lp-toc-m a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); text-decoration: none; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.lp-toc-m span, .lp-toc span { font: 800 .72rem "Manrope", "Vazirmatn", sans-serif; color: var(--gold-text); }
.lp-body { display: grid; gap: 24px; padding-block: clamp(16px, 3vw, 40px) clamp(40px, 6vw, 72px); }
.lp-aside { display: none; }
.lp-main { min-width: 0; max-width: 860px; width: 100%; margin-inline: auto; }
@media (min-width: 1100px) {
    .lp-toc-m { display: none; }
    .lp-body { grid-template-columns: 290px minmax(0, 1fr); gap: 56px; align-items: start; }
    .lp-body--single { grid-template-columns: 1fr; }
    .lp-aside { display: block; position: sticky; top: calc(var(--hdr-h) + var(--staff-h) + 20px); }
    .lp-main { margin-inline: 0; }
    .lp-body--single .lp-main { margin-inline: auto; }
}
.lp-aside__in { display: grid; gap: 16px; max-height: calc(100dvh - var(--hdr-h) - var(--staff-h) - 40px); overflow: auto; overscroll-behavior: contain; padding-bottom: 4px; }
.lp-toc { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lp-toc__h { margin: 0 0 10px; font-size: .8rem; font-weight: 800; color: var(--muted); }
.lp-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lp-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-size: .88rem; line-height: 1.6; color: var(--muted); transition: background-color .2s, color .2s; }
.lp-toc a:hover, .lp-toc a[aria-current] { background: var(--gold-soft); color: var(--text); }
.lp-toc a[aria-current] span { color: var(--gold-text); }
.lp-quick { padding: 18px; border-radius: var(--radius); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 16%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); display: grid; gap: 10px; }
.lp-quick__t { margin: 0 0 4px; font-weight: 800; }

/* Sections: numbered heading, quiet rule between them. */
.lp-sec { padding-block: clamp(28px, 4vw, 44px); scroll-margin-top: calc(var(--hdr-h) + var(--staff-h) + 16px); }
.lp-sec + .lp-sec, .lp-cta + .lp-sec { border-top: 1px solid var(--line); }
.lp-sec:first-child { padding-top: 8px; }
.lp-sec__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.lp-sec__n { flex: none; display: inline-grid; place-items: center; min-width: 44px; height: 32px; margin-top: 2px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--gold-soft); color: var(--gold-text); font: 800 .8rem "Manrope", "Vazirmatn", sans-serif; letter-spacing: .04em; }
.lp-sec__head h2 { margin: 0; font-size: clamp(1.3rem, 1.05rem + .9vw, 1.85rem); font-weight: 800; line-height: 1.5; text-wrap: balance; }
.lp-prose { font-size: 1.04rem; line-height: 1.95; }
.lp-prose p { margin: 0 0 .9em; }
.lp-prose figure img, .lp-prose > p img { width: auto; max-width: 100%; max-height: 560px; margin-inline: auto; display: block; }
.lp-prose .cols { gap: 28px; align-items: center; padding: clamp(16px, 2.5vw, 24px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.lp-prose .cols figure { margin: 0; }
.lp-prose .cols img { width: 100%; max-height: 480px; object-fit: cover; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-block: 8px; padding: clamp(20px, 3vw, 28px); border-radius: calc(var(--radius) + 4px); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 22%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.lp-cta__t { margin: 0; font-size: 1.2rem; font-weight: 800; }
.lp-cta__d { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.lp-cta__b { display: flex; flex-wrap: wrap; gap: 10px; }

/* Lists made from "1- …" and "⭐️ …" paragraphs (and written ones). */
.prose ol.checklist { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .lp-prose ol.checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-prose .col ol.checklist { grid-template-columns: 1fr; } }
.prose ol.checklist li { position: relative; margin: 0; padding: 12px 16px; padding-inline-start: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); line-height: 1.75; }
.prose ol.checklist li::before { content: "✓"; position: absolute; inset-inline-start: 14px; top: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); font-size: .75rem; font-weight: 800; }
.prose ol.steps { list-style: none; padding: 0; margin: 1.4em 0; counter-reset: step; display: grid; gap: 0; }
.prose ol.steps > li { position: relative; margin: 0; padding: 0 0 22px; padding-inline-start: 60px; counter-increment: step; }
.prose ol.steps > li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font: 800 .95rem "Manrope", "Vazirmatn", sans-serif; }
.l-fa .prose ol.steps > li::before { content: counter(step, persian); }
.prose ol.steps > li::after { content: ""; position: absolute; inset-inline-start: 19px; top: 46px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), transparent); opacity: .45; }
.prose ol.steps > li:last-child { padding-bottom: 0; }
.prose ol.steps > li:last-child::after { display: none; }
.prose ol.steps h3 { margin: 6px 0 4px; font-size: 1.08rem; }
.prose ol.steps p { margin: 0 0 .3em; }
.prose ol.steps .term { margin: 0 0 4px; font-size: .85rem; color: var(--gold-text); font-family: "Manrope", sans-serif; font-weight: 700; unicode-bidi: plaintext; }
[dir="rtl"] .prose ol.steps .term { text-align: right; }

/* Related services */
.lp-related { padding-block: 0 clamp(24px, 4vw, 40px); }
.lp-related ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .lp-related ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lp-related ul { grid-template-columns: repeat(3, 1fr); } }
.lp-related a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; font-weight: 700; transition: border-color .2s, transform .25s var(--ease); }
.lp-related a:hover { border-color: var(--gold); transform: translateY(-2px); }
.lp-related .ico { flex: none; color: var(--gold); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
    .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .hero__img { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
    .hdr, .dock { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}
@media print { .hdr, .dock, .ftr, .consult, .staffbar { display: none !important; } body { background: #fff; color: #000; } }

/* Formatting classes written by the dashboard editor (no inline styles on public pages). */
.ta-left { text-align: left; } .ta-center { text-align: center; } .ta-right { text-align: right; } .ta-justify { text-align: justify; }
.indent-1 { padding-inline-start: 40px; } .indent-2 { padding-inline-start: 80px; } .indent-3 { padding-inline-start: 120px; } .indent-4 { padding-inline-start: 160px; }
.tc-gold { color: var(--gold-text); } .tc-green { color: #3fae76; } .tc-red { color: #e06a5f; } .tc-gray { color: var(--muted); } .tc-black { color: var(--text); }
.fs-12 { font-size: 12px; } .fs-14 { font-size: 14px; } .fs-16 { font-size: 16px; } .fs-18 { font-size: 18px; } .fs-20 { font-size: 20px; } .fs-24 { font-size: 24px; } .fs-28 { font-size: 28px; } .fs-32 { font-size: 32px; }
