/* =========================================================
   ARAM MIZURI ARCHITECTURE — project.css
   A project's own page (/projects/{slug}). Standalone on purpose: it is
   often the first page a visitor sees, arriving from a shared link, so it
   loads only what it uses rather than the homepage's whole stylesheet.
   The look follows the homepage's project overlay — gold on near-black,
   light type, glass panels.
   ========================================================= */

:root {
    --gold:      #F5C518;
    --black:     #090909;
    --panel:     #111;
    --line:      rgba(255,255,255,.08);
    --text:      #E5E2DC;
    --muted:     rgba(255,255,255,.55);
    --faint:     rgba(255,255,255,.32);
    --done:      #4ecb71;
    --font:      'Inter', 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ku:   'Speda', 'XoshnusKurdish', 'Vazirmatn', 'Inter', sans-serif;
    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
    --gutter:    clamp(16px, 4vw, 56px);
    --wide:      1320px;
}

/* Same Kurdish face as the homepage (see style.css); the optional Xoshnûs
   face is declared in the page head (partials/kurdish-font). */
@font-face {
    font-family: 'Speda';
    src: url('/fonts/speda.ttf') format('truetype');
    font-weight: 400 700;
    font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--black);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
[dir="rtl"] { --font: var(--font-ku); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* An arrow that means "back" points the other way in Kurdish */
[dir="rtl"] .pp-arrow { display: inline-block; transform: scaleX(-1); }

.pp-label {
    font-size: 10px; letter-spacing: .38em; text-transform: uppercase;
    color: var(--gold); font-weight: 400; margin-bottom: 18px;
}
[dir="rtl"] .pp-label { letter-spacing: 0; font-size: 13px; }

/* ---- Top bar ---------------------------------------------- */
.pp-top {
    position: fixed; inset: 0 0 auto 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px var(--gutter);
    background: linear-gradient(to bottom, rgba(9,9,9,.85), rgba(9,9,9,0));
    transition: background .35s, padding .35s, box-shadow .35s;
}
/* Past the hero the bar sits over text, so it turns to frosted glass
   (project.js toggles the class). */
.pp-top.is-solid {
    padding-block: 12px;
    background: rgba(9,9,9,.78);
    -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 1px 0 var(--line);
}
.pp-brand { display: flex; flex-direction: column; gap: 4px; }
.pp-brand__name { font-size: 15px; letter-spacing: .32em; font-weight: 500; color: #fff; }
.pp-brand__sub  { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .pp-brand__name, [dir="rtl"] .pp-brand__sub { letter-spacing: 0; }
.pp-top__nav { display: flex; align-items: center; gap: 10px; }
.pp-top__link, .pp-lang {
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 16px; border-radius: 100px;
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    background: rgba(20,20,20,.55);
    border: 1px solid rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: border-color .25s, color .25s;
}
.pp-lang { color: var(--gold); border-color: rgba(245,197,24,.35); text-transform: none; letter-spacing: 0; font-size: 13px; }
.pp-top__link:hover, .pp-lang:hover { border-color: var(--gold); color: var(--gold); }
[dir="rtl"] .pp-top__link { letter-spacing: 0; font-size: 13px; }
/* "Saved (n)": the visitor's hearted projects, once there are any (saved.js) */
.pp-saved { gap: 6px; padding: 0 13px; color: var(--gold); border-color: rgba(245,197,24,.35); }
.pp-saved[hidden] { display: none; }
.pp-saved .icon-heart { width: 14px; height: 14px; fill: var(--gold); stroke: var(--gold); }
.pp-saved__n { font-size: 12px; letter-spacing: 0; }

/* The homepage's menu, on every other page too (partials/page-top): across
   the bar on a computer, folded into a Menu button below that. */
.pp-menu {
    display: flex; align-items: center; gap: clamp(14px, 1.4vw, 24px);
    height: 36px; padding: 0 20px; border-radius: 100px;
    background: rgba(20,20,20,.55);
    border: 1px solid rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pp-menu__link {
    position: relative; padding: 3px 1px; white-space: nowrap;
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72);
    transition: color .2s;
}
.pp-menu__link::after {
    content: ''; position: absolute; inset-inline-start: 0; bottom: -2px; width: 0; height: 1px;
    background: var(--gold); transition: width .35s var(--ease-out);
}
.pp-menu__link:hover { color: #fff; }
.pp-menu__link:hover::after, .pp-menu__link[aria-current]::after { width: 100%; }
.pp-menu__link[aria-current] { color: var(--gold); }
[dir="rtl"] .pp-menu__link { letter-spacing: 0; font-size: 13px; text-transform: none; }

.pp-menu-btn { display: none; }
.pp-menu-btn__icon { position: relative; flex: none; width: 14px; height: 8px; }
.pp-menu-btn__icon i {
    position: absolute; inset-inline: 0; height: 1px; background: currentColor;
    transition: top .35s var(--ease-out), transform .35s var(--ease-out);
}
.pp-menu-btn__icon i:first-child { top: 0; }
.pp-menu-btn__icon i:last-child { top: 7px; }
.pp-menu-btn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.pp-menu-btn[aria-expanded="true"] .pp-menu-btn__icon i:first-child { top: 3.5px; transform: rotate(45deg); }
.pp-menu-btn[aria-expanded="true"] .pp-menu-btn__icon i:last-child { top: 3.5px; transform: rotate(-45deg); }

/* ...unfolded under the bar: the site as a list of numbered sheets */
.pp-sheet {
    position: fixed; inset: 0; z-index: 19; overflow-y: auto; overscroll-behavior: contain;
    padding: 88px var(--gutter) 32px;
    background: rgba(9,9,9,.95);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; transition: opacity .35s;
}
.pp-sheet[hidden] { display: none; }
.pp-sheet.is-open { opacity: 1; }
.pp-sheet__inner { max-width: 560px; margin-inline: auto; }
.pp-sheet__list { list-style: none; border-top: 1px solid var(--line); }
.pp-sheet__link {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center;
    padding: 15px 0; border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(10px);
    transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), color .2s;
}
.pp-sheet.is-open .pp-sheet__link { opacity: 1; transform: none; }
.pp-sheet.is-open li:nth-child(2) .pp-sheet__link { transition-delay: .03s; }
.pp-sheet.is-open li:nth-child(3) .pp-sheet__link { transition-delay: .06s; }
.pp-sheet.is-open li:nth-child(4) .pp-sheet__link { transition-delay: .09s; }
.pp-sheet.is-open li:nth-child(5) .pp-sheet__link { transition-delay: .12s; }
.pp-sheet.is-open li:nth-child(6) .pp-sheet__link { transition-delay: .15s; }
.pp-sheet.is-open li:nth-child(7) .pp-sheet__link { transition-delay: .18s; }
.pp-sheet.is-open li:nth-child(n+8) .pp-sheet__link { transition-delay: .21s; }
.pp-sheet__num { font-size: 11px; letter-spacing: .2em; color: rgba(245,197,24,.75); font-variant-numeric: tabular-nums; }
.pp-sheet__label { font-size: clamp(22px, 6vw, 30px); font-weight: 200; color: #fff; letter-spacing: -.01em; }
[dir="rtl"] .pp-sheet__label { letter-spacing: 0; font-weight: 400; }
.pp-sheet__link .pp-arrow { color: var(--gold); opacity: .55; }
.pp-sheet__link:hover .pp-sheet__label, .pp-sheet__link[aria-current] .pp-sheet__label { color: var(--gold); }
.pp-sheet__wa { width: 100%; justify-content: center; margin-top: 28px; }
html.pp-menu-open { overflow: hidden; }

@media (max-width: 1100px) {
    .pp-menu { display: none; }
    .pp-menu-btn { display: inline-flex; }
}

/* ---- Hero ------------------------------------------------- */
.pp-hero {
    position: relative;
    height: min(92vh, 980px); min-height: 520px;
    background: var(--panel);
    overflow: hidden;
}
.pp-hero__img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    animation: ppSettle 1.6s var(--ease-out) both;
}
@keyframes ppSettle { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }
.pp-hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(to top, rgba(9,9,9,.96) 0%, rgba(9,9,9,.55) 32%, rgba(9,9,9,0) 62%),
        linear-gradient(to bottom, rgba(9,9,9,.45), rgba(9,9,9,0) 22%);
}
.pp-hero__text {
    position: absolute; inset-inline: var(--gutter); bottom: clamp(28px, 6vh, 64px);
    max-width: var(--wide); margin-inline: auto;
    animation: ppRise 1s .25s var(--ease-out) both;
}
@keyframes ppRise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.pp-hero__kicker {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    font-size: 10px; letter-spacing: .32em; text-transform: uppercase;
    color: rgba(255,255,255,.6); margin-bottom: 16px;
}
.pp-num { color: var(--gold); }
.pp-hero__cats { position: relative; padding-inline-start: 14px; }
.pp-hero__cats::before {
    content: ''; position: absolute; inset-inline-start: 0; top: 50%;
    width: 6px; height: 1px; background: rgba(255,255,255,.4);
}
.pp-hero__title {
    font-size: clamp(34px, 6vw, 84px);
    font-weight: 200; color: #fff;
    letter-spacing: -.025em; line-height: 1.04;
    max-width: 16ch;
}
[dir="rtl"] .pp-hero__title { letter-spacing: 0; line-height: 1.3; font-weight: 400; max-width: 20ch; }
[dir="rtl"] .pp-hero__kicker { letter-spacing: 0; font-size: 13px; }
.pp-hero__meta { margin-top: 16px; font-size: 14px; font-weight: 300; color: var(--muted); }
.pp-hero__photos {
    position: absolute; inset-inline-end: var(--gutter); bottom: clamp(28px, 6vh, 64px);
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: 100px;
    background: rgba(20,20,20,.55); border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-size: 12px; color: #fff;
    transition: border-color .25s;
}
.pp-hero__photos:hover { border-color: var(--gold); }
.pp-hero__photos svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---- Story + facts ------------------------------------------ */
.pp-body {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    max-width: var(--wide); margin: 0 auto;
    padding: clamp(48px, 9vh, 104px) var(--gutter);
}
.pp-status {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
    margin-bottom: 28px;
}
[dir="rtl"] .pp-status { letter-spacing: 0; font-size: 13px; }
.pp-status__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); }
.pp-status--done    { color: var(--done); }
.pp-status--done .pp-status__dot  { background: var(--done); box-shadow: 0 0 8px rgba(78,203,113,.8); }
.pp-status--build   { color: var(--gold); }
.pp-status--build .pp-status__dot { background: var(--gold); box-shadow: 0 0 8px rgba(245,197,24,.8); animation: ppPulse 1.8s ease-in-out infinite; }
.pp-status--concept { color: var(--faint); }
@keyframes ppPulse { 50% { opacity: .4; transform: scale(.6); } }

.pp-desc {
    font-size: clamp(16px, 1.35vw, 19px); line-height: 1.85;
    font-weight: 300; color: rgba(255,255,255,.72);
    white-space: pre-line;
}
.pp-quote {
    margin-top: 36px; padding-inline-start: 22px;
    border-inline-start: 1px solid var(--gold);
    font-size: clamp(17px, 1.5vw, 21px); line-height: 1.7;
    font-weight: 200; font-style: italic; color: #fff;
}
[dir="rtl"] .pp-quote { font-style: normal; }
.pp-story .pp-label { margin-top: 40px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.pp-chips li {
    font-size: 12px; padding: 7px 14px; border-radius: 100px;
    background: rgba(245,197,24,.07); border: 1px solid rgba(245,197,24,.22);
    color: rgba(245,197,24,.85);
}
/* a material other projects share: a way into them */
.pp-chips li:has(.pp-chip-link) { padding: 0; }
.pp-chip-link {
    display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: inherit;
    transition: background-color .25s, color .25s;
}
.pp-chip-link sup { font-size: 9px; color: rgba(245,197,24,.6); margin-inline-start: 2px; }
.pp-chip-link__arrow { font-variant-emoji: text; font-size: 11px; opacity: .6; margin-inline-start: 4px; transition: transform .35s var(--ease-out), opacity .25s; }
[dir="rtl"] .pp-chip-link__arrow { transform: scaleX(-1); }
.pp-chip-link:hover { background: rgba(245,197,24,.14); color: var(--gold); }
.pp-chip-link:hover .pp-chip-link__arrow { opacity: 1; transform: translate(2px, -2px); }
[dir="rtl"] .pp-chip-link:hover .pp-chip-link__arrow { transform: translate(-2px, -2px) scaleX(-1); }
/* Save it (the heart), share it on WhatsApp, or share / copy its link */
.pp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.pp-act {
    display: inline-flex; align-items: center; gap: 10px;
    height: 42px; padding: 0 18px; border-radius: 100px;
    border: 1px solid rgba(255,255,255,.16);
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
    transition: border-color .25s, color .25s, background .25s;
}
[dir="rtl"] .pp-act { letter-spacing: 0; font-size: 13px; }
.pp-act:hover, .pp-act.is-done { border-color: var(--gold); color: var(--gold); }
.pp-act--save.is-saved { border-color: rgba(245,197,24,.5); color: var(--gold); background: rgba(245,197,24,.08); }
.pp-act--wa { color: #25D366; border-color: rgba(37,211,102,.35); }
.pp-act--wa:hover { color: #25D366; border-color: #25D366; background: rgba(37,211,102,.08); }
.pp-act--wa svg { width: 16px; height: 16px; }

.pp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.pp-fact {
    position: relative; overflow: hidden;
    padding: 16px 18px; border-radius: 14px;
    background: rgba(255,255,255,.04); border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.pp-fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pp-fact dt {
    font-size: 8px; letter-spacing: .28em; text-transform: uppercase;
    color: var(--faint); margin-bottom: 7px;
}
[dir="rtl"] .pp-fact dt { letter-spacing: 0; font-size: 12px; }
.pp-fact dd { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.88); line-height: 1.45; }

/* ---- Gallery ------------------------------------------------ */
.pp-gallery {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter);
}
.pp-shot { margin: 0; background: var(--panel); border-radius: 4px; overflow: hidden; }
.pp-shot--wide { grid-column: 1 / -1; }
.pp-shot__open { display: block; width: 100%; cursor: zoom-in; }
.pp-shot img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    transition: transform 1.1s var(--ease-out), opacity .4s;
}
.pp-shot--wide img { aspect-ratio: 16 / 9; }
.pp-shot__open:hover img { transform: scale(1.03); }

.pp-status__updated { color: var(--muted); text-transform: none; letter-spacing: .02em; }
.pp-status__updated:hover { color: var(--gold); }

/* Sections the homepage overlay links straight to (#render-vs-built, #film,
   #progress): land with their heading clear of the fixed top bar. */
.pp-compare, .pp-media, .pp-progress { scroll-margin-top: 84px; }

/* ---- Render vs. built ------------------------------------------ */
.pp-compare { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 10vh, 112px); }
.pp-compare__frame {
    --pos: 50%;
    position: relative; overflow: hidden; isolation: isolate;
    aspect-ratio: 16 / 9; border-radius: 6px; background: var(--panel);
    user-select: none; -webkit-user-select: none;
}
.pp-compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pp-compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.pp-compare__handle {
    position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0;
    background: var(--gold); box-shadow: 0 0 12px rgba(0,0,0,.5); pointer-events: none;
}
.pp-compare__handle::after {
    content: '‹ ›'; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--gold); color: #0a0a0a; font-size: 18px; font-weight: 600; letter-spacing: 2px;
    box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.pp-compare__tag {
    position: absolute; top: 14px; z-index: 2; pointer-events: none;
    padding: 6px 12px; border-radius: 100px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
    background: rgba(9,9,9,.6); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pp-compare__tag--before { left: 14px; }
.pp-compare__tag--after  { right: 14px; }
[dir="rtl"] .pp-compare__tag { letter-spacing: 0; font-size: 13px; }
/* Dragging is the frame's own (pointer events in project.js: a range input's
   thumb is the only part iOS lets you drag, and here it is invisible). The
   range stays for the keyboard — focusable, arrow keys step it — but takes
   no pointer events. Vertical swipes still scroll the page. */
.pp-compare__frame { cursor: ew-resize; touch-action: pan-y; }
.pp-compare__range {
    position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
    opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.pp-compare__frame:has(.pp-compare__range:focus-visible) .pp-compare__handle::after { outline: 2px solid #fff; outline-offset: 3px; }
.pp-compare__hint { margin-top: 12px; text-align: center; font-size: 12px; color: var(--faint); }

/* ---- Film & 360° tours ----------------------------------------- */
.pp-media { max-width: var(--wide); margin: 0 auto; padding: clamp(56px, 10vh, 112px) var(--gutter) 0; }
.pp-media__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pp-media__grid--one { grid-template-columns: 1fr; }
.pp-embed { margin: 0; }
.pp-embed__frame {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
    border-radius: 6px; background: var(--panel);
}
.pp-embed__poster { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .4s, transform 1.2s var(--ease-out); }
.pp-embed__frame:hover .pp-embed__poster { opacity: .9; transform: scale(1.03); }
.pp-embed__play {
    position: absolute; inset: 0; margin: auto; width: max-content; height: 56px;
    display: inline-flex; align-items: center; gap: 12px; padding: 0 24px 0 18px; border-radius: 100px;
    background: rgba(9,9,9,.62); border: 1px solid rgba(255,255,255,.22); color: #fff;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    transition: border-color .25s, background .25s, transform .25s var(--ease-out);
}
.pp-embed__play:hover { border-color: var(--gold); background: rgba(9,9,9,.78); transform: scale(1.03); }
.pp-embed__play svg { width: 22px; height: 22px; fill: var(--gold); stroke: none; }
.pp-embed--tour .pp-embed__play svg { fill: none; stroke: var(--gold); stroke-width: 1.5; }
[dir="rtl"] .pp-embed__play { letter-spacing: 0; font-size: 14px; padding: 0 18px 0 24px; }
.pp-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pp-embed figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---- Construction progress -------------------------------------- */
.pp-progress { max-width: 960px; margin: 0 auto; padding: clamp(56px, 10vh, 112px) var(--gutter) 0; }
.pp-timeline { list-style: none; position: relative; padding-inline-start: 28px; }
.pp-timeline::before {
    content: ''; position: absolute; inset-inline-start: 5px; top: 8px; bottom: 8px; width: 1px;
    background: linear-gradient(to bottom, var(--gold), rgba(245,197,24,.08));
}
.pp-step { position: relative; padding-bottom: 44px; }
.pp-step:last-child { padding-bottom: 0; }
.pp-step::before {
    content: ''; position: absolute; inset-inline-start: -28px; top: 5px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--black); border: 2px solid var(--gold);
}
.pp-step:first-child::before { background: var(--gold); box-shadow: 0 0 12px rgba(245,197,24,.6); }
.pp-step__date { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .pp-step__date { letter-spacing: 0; font-size: 14px; }
.pp-step__title { margin-top: 8px; font-size: 20px; font-weight: 300; color: #fff; }
.pp-step__note { margin-top: 8px; font-size: 15px; line-height: 1.75; font-weight: 300; color: var(--muted); white-space: pre-line; }
.pp-step__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 16px; }
.pp-step__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--panel); cursor: zoom-in; }
.pp-step__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.pp-step__photo:hover img { transform: scale(1.05); }

/* ---- Map ---------------------------------------------------- */
.pp-map { max-width: var(--wide); margin: 0 auto; padding: clamp(56px, 10vh, 112px) var(--gutter) 0; }
.pp-map__frame {
    /* Leaflet stacks its panes at z-index 200–1000; isolate them in here, or
       the map scrolls over the fixed top bar */
    position: relative; isolation: isolate; height: clamp(300px, 46vh, 460px);
    border-radius: 18px; overflow: hidden;
    border: 1px solid var(--line); background: #0d0d0d;
}
.pp-map__canvas { position: absolute; inset: 0; background: #0d0d0d; }
.pp-map__canvas .leaflet-container, .pp-map__canvas.leaflet-container { background: #0d0d0d; font-family: var(--font); }
.pp-map__open, .pp-map__place {
    position: absolute; z-index: 500;
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 16px; border-radius: 100px;
    background: rgba(9,9,9,.7); border: 1px solid rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-size: 12px;
}
.pp-map__open  { top: 14px; inset-inline-end: 14px; color: var(--gold); transition: border-color .25s; }
.pp-map__open:hover { border-color: var(--gold); }
.pp-map__place { bottom: 14px; inset-inline-start: 14px; color: rgba(255,255,255,.8); }
.pp-map__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(245,197,24,.9); }
/* The project's pin. display:block matters — it is a <span>, and an inline
   box ignores width and height, which left only a faint glow on the map. */
.pp-pin {
    display: block; position: relative;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--gold);
    border: 3px solid #0b0b0b;              /* a dark rim to lift it off the map */
    box-shadow: 0 0 0 6px rgba(245,197,24,.28), 0 0 26px rgba(245,197,24,.9);
}
.pp-pin::after {
    content: ''; position: absolute; inset: -16px; border-radius: 50%;
    border: 2px solid rgba(245,197,24,.7);
    animation: ppRing 2.2s ease-out infinite;
}
@keyframes ppRing { from { transform: scale(.45); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }

/* ---- Call to action ----------------------------------------- */
.pp-cta {
    max-width: 760px; margin: 0 auto; text-align: center;
    padding: clamp(80px, 14vh, 150px) var(--gutter);
}
.pp-cta__title {
    font-size: clamp(28px, 4vw, 52px); font-weight: 200; color: #fff;
    letter-spacing: -.02em; line-height: 1.12;
}
[dir="rtl"] .pp-cta__title { letter-spacing: 0; line-height: 1.4; font-weight: 400; }
.pp-cta__text { margin: 20px auto 36px; max-width: 52ch; font-size: 15px; line-height: 1.8; font-weight: 300; color: var(--muted); }
.pp-btn {
    display: inline-flex; align-items: center; gap: 12px;
    height: 52px; padding: 0 30px; border-radius: 100px;
    background: var(--gold); color: #0a0a0a;
    font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    box-shadow: 0 12px 34px rgba(245,197,24,.22);
    transition: transform .3s var(--ease-out), box-shadow .3s;
}
[dir="rtl"] .pp-btn { letter-spacing: 0; font-size: 14px; }
.pp-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(245,197,24,.32); }

.pp-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pp-btn--line { background: none; color: var(--gold); border: 1px solid rgba(245,197,24,.5); box-shadow: none; }
.pp-btn--line:hover { background: rgba(245,197,24,.08); box-shadow: none; }
.pp-btn--line svg { width: 18px; height: 18px; }
.pp-btn--wa {
    background: rgba(37,211,102,.08); color: #25D366;
    border: 1px solid rgba(37,211,102,.4); box-shadow: none;
}
.pp-btn--wa:hover { background: rgba(37,211,102,.14); box-shadow: 0 12px 30px rgba(37,211,102,.18); }
.pp-btn--wa svg { width: 18px; height: 18px; }

/* ---- Client quotes -------------------------------------------- */
.pp-quotes { max-width: 960px; margin: 0 auto; padding: clamp(64px, 11vh, 120px) var(--gutter) 0; }
.pp-quote-card { margin: 0 0 40px; }
.pp-quote-card:last-child { margin-bottom: 0; }
.pp-quote-card blockquote {
    font-size: clamp(20px, 2.2vw, 30px); line-height: 1.55; font-weight: 200;
    font-style: italic; color: #fff;
}
.pp-quote-card blockquote::before { content: '“'; color: var(--gold); }
.pp-quote-card blockquote::after  { content: '”'; color: var(--gold); }
[dir="rtl"] .pp-quote-card blockquote { font-style: normal; font-weight: 400; line-height: 1.9; }
[dir="rtl"] .pp-quote-card blockquote::before { content: '«'; }
[dir="rtl"] .pp-quote-card blockquote::after  { content: '»'; }
.pp-quote-card figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 18px; font-size: 13px; }
.pp-quote-card__name { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: 11px; }
[dir="rtl"] .pp-quote-card__name { letter-spacing: 0; font-size: 14px; }
.pp-quote-card__role { color: var(--muted); }

/* ---- Previous / next ----------------------------------------- */
.pp-pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--line); }
.pp-pager__item {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
    min-height: clamp(200px, 30vh, 300px); padding: 28px var(--gutter);
    overflow: hidden; background: var(--panel);
}
.pp-pager__item--next { align-items: flex-end; text-align: end; }
.pp-pager__item img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: .38; transition: opacity .5s, transform 1.2s var(--ease-out);
}
.pp-pager__item:hover img { opacity: .6; transform: scale(1.04); }
.pp-pager__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,9,9,.85), rgba(9,9,9,.1)); }
.pp-pager__dir, .pp-pager__name { position: relative; }
.pp-pager__dir { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); display: inline-flex; gap: 8px; }
[dir="rtl"] .pp-pager__dir { letter-spacing: 0; font-size: 13px; }
.pp-pager__name { font-size: clamp(20px, 2.2vw, 30px); font-weight: 200; color: #fff; }

/* ---- More projects ------------------------------------------- */
.pp-more { max-width: var(--wide); margin: 0 auto; padding: clamp(64px, 11vh, 120px) var(--gutter); }
.pp-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pp-card { display: flex; flex-direction: column; gap: 6px; }
.pp-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--panel); margin-bottom: 10px; }
.pp-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.pp-card:hover .pp-card__img img { transform: scale(1.05); }
.pp-card__num { font-size: 10px; letter-spacing: .3em; color: rgba(245,197,24,.6); }
.pp-card__name { font-size: 18px; font-weight: 300; color: #fff; }
.pp-card__meta { font-size: 12px; color: var(--faint); }

/* ---- Footer --------------------------------------------------- */
.pp-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
    padding: 36px var(--gutter) 44px; border-top: 1px solid var(--line);
    font-size: 12px; color: var(--muted);
}
.pp-foot__brand { display: flex; flex-direction: column; gap: 6px; }
.pp-foot__brand a { font-size: 13px; letter-spacing: .3em; color: #fff; }
[dir="rtl"] .pp-foot__brand a { letter-spacing: 0; }
.pp-foot__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.pp-foot__links a { transition: color .25s; }
.pp-foot__links a:hover { color: var(--gold); }

/* ---- Photo viewer --------------------------------------------- */
.pp-lightbox {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
    padding: 0; border: 0; background: rgba(5,5,5,.97); color: #fff;
}
.pp-lightbox::backdrop { background: rgba(5,5,5,.9); }
.pp-lightbox[open] { display: flex; align-items: center; justify-content: center; }
/* the photograph and its notes, together in a frame that is the picture's own size */
.pp-lightbox__frame { position: relative; display: inline-flex; }
.pp-lightbox__img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); object-fit: contain; transition: opacity .25s; }
/* its room, and the notes shown or put away */
.pp-lightbox__room, .pp-lightbox__notes {
    position: absolute; bottom: 16px; height: 38px; padding: 0 16px; border-radius: 100px;
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
    background: rgba(20,20,20,.75); border: 1px solid rgba(245,197,24,.4); color: var(--gold);
    transition: border-color .25s, background-color .25s;
}
.pp-lightbox__room { inset-inline-start: 16px; }
.pp-lightbox__room::after { content: '↗\FE0E'; }
.pp-lightbox__notes { inset-inline-end: 16px; }
.pp-lightbox__notes[aria-pressed="false"] { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.2); }
.pp-lightbox__room[hidden], .pp-lightbox__notes[hidden] { display: none; }
.pp-lightbox__room:hover, .pp-lightbox__notes:hover { border-color: var(--gold); background: rgba(245,197,24,.12); }

/* ---- Notes on a photograph, as a drawing's callouts (photo-notes.js) ----
   A numbered point, a leader at 45° and the words at its end, set away
   from the nearer edges of the photograph. */
.pp-shot { position: relative; }
.pp-notes { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.pp-notes.is-hidden { display: none; }
.pp-note { position: absolute; width: 0; height: 0; pointer-events: auto; --a: -45deg; }
.pp-note.to-left.to-up { --a: -135deg; }
.pp-note.to-right.to-down { --a: 45deg; }
.pp-note.to-left.to-down { --a: 135deg; }
.pp-note__dot {
    position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; padding: 0;
    display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #111;
    background: var(--gold); border: 0; cursor: pointer;
    box-shadow: 0 0 0 2px rgba(9,9,9,.55), 0 0 0 0 rgba(245,197,24,.5);
    animation: ppNote 2.8s ease-out infinite;
}
@keyframes ppNote { 0% { box-shadow: 0 0 0 2px rgba(9,9,9,.55), 0 0 0 0 rgba(245,197,24,.5); } 70%, 100% { box-shadow: 0 0 0 2px rgba(9,9,9,.55), 0 0 0 12px rgba(245,197,24,0); } }
.pp-note__lead {
    position: absolute; left: 0; top: 0; width: 40px; height: 1px; background: var(--gold);
    transform-origin: 0 0; transform: rotate(var(--a)) scaleX(0); transition: transform .4s var(--ease-out);
}
.pp-note__text {
    position: absolute; width: max-content; max-width: min(260px, 60vw); padding: 7px 11px;
    font-size: 13px; line-height: 1.45; color: #fff; text-align: start;
    background: rgba(9,9,9,.84); border: 1px solid rgba(245,197,24,.5); border-radius: 3px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity .3s .1s, visibility .3s .1s;
}
.pp-note.to-right .pp-note__text { left: 28px; }
.pp-note.to-left .pp-note__text { right: 28px; }
.pp-note.to-up .pp-note__text { bottom: 28px; }
.pp-note.to-down .pp-note__text { top: 28px; }
.pp-note.is-open .pp-note__lead { transform: rotate(var(--a)) scaleX(1); }
.pp-note.is-open .pp-note__text { opacity: 1; visibility: visible; }
.pp-note.is-open .pp-note__dot { background: #fff; animation: none; }
@media (hover: hover) {
    .pp-note:hover .pp-note__lead { transform: rotate(var(--a)) scaleX(1); }
    .pp-note:hover .pp-note__text { opacity: 1; visibility: visible; }
}
/* in the gallery the points are smaller, and say their words when asked */
.pp-shot .pp-note__dot { left: -11px; top: -11px; width: 22px; height: 22px; font-size: 11px; }

/* ---- The architect's voice note (the client quotes' player, voices.js) ---- */
.pp-voice { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.pp-voice .cv--architect { align-items: flex-start; margin: 0; }
.pp-voice__by { margin-top: 12px; font-size: 13px; color: var(--muted); }
.pp-voice__lang { color: rgba(245,197,24,.8); }
.pp-lightbox__img.is-loading { opacity: .25; }
.pp-lightbox__btn {
    position: absolute; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; font-size: 18px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    transition: border-color .25s, color .25s;
}
.pp-lightbox__btn:hover { border-color: var(--gold); color: var(--gold); }
.pp-lightbox__close { top: 16px; inset-inline-end: 16px; }
.pp-lightbox__prev  { inset-inline-start: 16px; top: 50%; translate: 0 -50%; }
.pp-lightbox__next  { inset-inline-end: 16px; top: 50%; translate: 0 -50%; }
[dir="rtl"] .pp-lightbox__prev, [dir="rtl"] .pp-lightbox__next { transform: scaleX(-1); }
.pp-lightbox__count {
    position: absolute; bottom: 22px; left: 50%; translate: -50% 0;
    font-size: 11px; letter-spacing: .3em; color: var(--muted);
}

/* ---- Smaller screens ------------------------------------------ */
@media (max-width: 900px) {
    .pp-body { grid-template-columns: 1fr; }
    .pp-more__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .pp-top { padding-block: 14px; }
    .pp-brand__sub { display: none; }
    .pp-top__link span:last-child { display: none; }       /* the arrow alone is enough */
    .pp-top__link { width: 36px; padding: 0; justify-content: center; }
    .pp-top .pp-saved { width: auto; padding: 0 11px; }    /* ...but the count is the point */
    .pp-top .pp-saved .pp-saved__n { display: inline; }
    .pp-hero { height: 78vh; min-height: 460px; }
    .pp-hero__photos { bottom: auto; top: 76px; }
    .pp-gallery { grid-template-columns: 1fr; gap: 8px; }
    .pp-media__grid { grid-template-columns: 1fr; }
    .pp-compare__frame { aspect-ratio: 4 / 3; }
    .pp-embed__play { height: 48px; font-size: 11px; }
    .pp-shot img, .pp-shot--wide img { aspect-ratio: 4 / 3; }
    .pp-fact { padding: 14px; }
    .pp-more__grid { grid-template-columns: 1fr; }
    .pp-lightbox__prev, .pp-lightbox__next { top: auto; bottom: 10px; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
