/* ─────────────────────────────────────────────────────────────
   Maban Real Estate Investment — stylesheet
   Photography leads. White pages, Maban blue, and one typeface:
   29LT Zarid Slab, used across its whole weight range.

   Weight roles
     100 Thin        oversized numerals (indexes, 404)
     200 ExtraLight  display headlines, big figures
     300 Light       section headings, lead paragraphs
     400 Regular     body copy
     500 Medium      navigation, buttons, card titles
     600 SemiBold    eyebrows, labels, small headings
     700 Bold        tags, emphasis, counters
     900 Black       the MABAN wordmark, badge figure
   ───────────────────────────────────────────────────────────── */
:root {
  --white: #ffffff;
  --haze: #f5f7f9;
  --sky: #dce9f2;
  --mint: #aedccb;
  --blue: #005b91;
  --blue-deep: #003f66;
  --ink: #0f1f2e;
  --ink-2: #4b5a69;
  --muted: #7f8c99;
  --line: rgba(15, 31, 46, 0.14);
  --line-soft: rgba(15, 31, 46, 0.08);
  --font: '29LT Zarid Slab', 'Segoe UI', Tahoma, Arial, sans-serif;
  --display: var(--font);
  --w-thin: 100; --w-xlight: 200; --w-light: 300; --w-regular: 400; --w-medium: 500; --w-semi: 600; --w-bold: 700; --w-black: 900;
  --gutter: clamp(20px, 5vw, 84px);
  --max: 1440px;
  --nav-h: 144px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: var(--w-regular); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
html[dir="rtl"] body { font-size: 18px; line-height: 1.85; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: var(--w-light); line-height: 1.12; letter-spacing: 0; color: var(--ink); text-wrap: balance; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { line-height: 1.45; }
p { margin: 0; }
strong, b { font-weight: var(--w-bold); }
::selection { background: var(--sky); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; position: relative; z-index: 1; }
.section { padding-block: clamp(72px, 9vw, 140px); position: relative; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.eyebrow { display: block; font-size: 14px; font-weight: var(--w-semi); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 16px; }
.h-display { font-size: clamp(42px, 6.4vw, 96px); font-weight: var(--w-xlight); line-height: 1.02; letter-spacing: -0.015em; }
.h1 { font-size: clamp(40px, 5.4vw, 76px); font-weight: var(--w-xlight); letter-spacing: -0.01em; }
html[dir="rtl"] .h-display, html[dir="rtl"] .h1 { letter-spacing: 0; line-height: 1.35; font-weight: var(--w-light); }
.h2 { font-size: clamp(32px, 3.8vw, 54px); font-weight: var(--w-light); max-width: 20ch; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: var(--w-medium); }
.lead { font-size: clamp(18px, 1.4vw, 21px); color: var(--ink-2); max-width: 56ch; font-weight: var(--w-light); line-height: 1.7; }
html[dir="rtl"] .lead { line-height: 1.9; }
.muted { color: var(--muted); }
.accent { color: var(--blue); }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px; border-radius: 2px; font-size: 16px; font-weight: var(--w-medium); border: 1px solid var(--line); color: var(--ink); background: transparent; transition: background .3s, border-color .3s, color .3s; white-space: nowrap; }
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--ink); }
.btn-white:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.btn-gold { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-gold:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-light { border-color: var(--line); color: var(--ink); background: #fff; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .arrow { display: none; }
.btn-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 16px; font-weight: var(--w-medium); padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; transition: background-size .3s var(--ease); }
.btn-link:hover { background-size: 0 1px; }
.btn-link.light { color: #fff; }
.btn-link svg { display: none; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; transition: background .4s, border-color .4s, height .4s, color .4s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line-soft); height: 104px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 18px; flex: none; }
.brand img { height: 116px; width: auto; transition: height .4s; }
.brand img.light { display: none; }
.site-header.scrolled .brand img { height: 84px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); }
.nav a { position: relative; padding: 6px 0; font-size: 16px; font-weight: var(--w-medium); color: var(--ink-2); transition: color .3s; white-space: nowrap; }
.nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
html[dir="rtl"] .nav a::after { transform-origin: right; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 16px; flex: none; }
.lang-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 16px; font-weight: var(--w-medium); color: var(--ink-2); transition: color .3s; }
.lang-toggle:hover { color: var(--blue); }
.lang-toggle .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.header-tools .btn { padding: 11px 20px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; place-items: center; }
.menu-btn span { display: block; width: 22px; height: 1px; background: currentColor; position: relative; transition: .3s; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; inset-inline: 0; height: 1px; background: currentColor; transition: .3s; }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
body.menu-open .menu-btn span { background: transparent; }
body.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }
/* over the hero photograph the header is white */
.site-header.over:not(.scrolled) { color: #fff; }
.site-header.over:not(.scrolled) .nav a, .site-header.over:not(.scrolled) .lang-toggle { color: rgba(255,255,255,.85); }
.site-header.over:not(.scrolled) .nav a:hover, .site-header.over:not(.scrolled) .nav a.active, .site-header.over:not(.scrolled) .lang-toggle:hover { color: #fff; }
.site-header.over:not(.scrolled) .brand img.dark { display: none; }
.site-header.over:not(.scrolled) .brand img.light { display: block; }
.site-header.over:not(.scrolled) .btn-primary { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); backdrop-filter: blur(8px); }
.site-header.over:not(.scrolled) .btn-primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
body.menu-open .site-header.over { color: var(--ink); }
body.menu-open .site-header.over .brand img.dark { display: block; } body.menu-open .site-header.over .brand img.light { display: none; }
@media (max-width: 1180px) { .header-tools .btn { display: none; } }
@media (max-width: 960px) {
  :root { --nav-h: 108px; }
  .site-header.scrolled { height: 88px; }
  .brand img { height: 86px; } .site-header.scrolled .brand img { height: 70px; }
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: var(--nav-h) 0 0 0; flex-direction: column; align-items: stretch; padding: 20px var(--gutter); gap: 0; background: rgba(255,255,255,.98); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .35s var(--ease); overflow-y: auto; }
  .nav a, .site-header.over:not(.scrolled) .nav a { font-size: 30px; font-weight: var(--w-light); padding: 18px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
  .nav a::after { display: none; }
  body.menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  body.menu-open .site-header { background: #fff; }
  body.menu-open .site-header .lang-toggle, body.menu-open .site-header .menu-btn { color: var(--ink); }
}

/* ── Hero: four flagship projects ───────────────────────────
   Each change is a curtain wipe: the next rendering is unveiled edge to edge
   while both images drift, then settles into a slow zoom. The rail at the foot
   names the four projects and shows how long the current one has left. */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 40px) 0 0; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; }
.hero-stage { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.1s var(--ease); will-change: clip-path, opacity; }
.hero-slide.on { opacity: 1; }
.hero-stage.gs .hero-slide { transition: none; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(180deg, rgba(15,31,46,.5) 0%, rgba(15,31,46,0) 28%, rgba(15,31,46,0) 40%, rgba(15,31,46,.55) 70%, rgba(15,31,46,.9) 100%),
  linear-gradient(90deg, rgba(15,31,46,.4) 0%, rgba(15,31,46,0) 55%); }
html[dir="rtl"] .hero-shade { background:
  linear-gradient(180deg, rgba(15,31,46,.5) 0%, rgba(15,31,46,0) 28%, rgba(15,31,46,0) 40%, rgba(15,31,46,.55) 70%, rgba(15,31,46,.9) 100%),
  linear-gradient(270deg, rgba(15,31,46,.4) 0%, rgba(15,31,46,0) 55%); }
.hero h1, .hero .eyebrow { text-shadow: 0 1px 24px rgba(15,31,46,.35); }
.hero-copy { display: grid; gap: 26px; max-width: 980px; padding-bottom: clamp(36px, 6vh, 72px); }
.hero .eyebrow { color: rgba(255,255,255,.82); margin: 0; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 30px; align-items: center; margin-top: 10px; }
.hero-rail { position: relative; border-top: 1px solid rgba(255,255,255,.22); background: linear-gradient(180deg, rgba(15,31,46,.12), rgba(15,31,46,.4)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-tabs { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-tab { position: relative; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-items: baseline; padding: 22px 22px 26px 0; color: rgba(255,255,255,.62); text-align: start; transition: color .4s; }
.hero-tab + .hero-tab { padding-inline-start: 22px; border-inline-start: 1px solid rgba(255,255,255,.14); }
.hero-tab .bar { position: absolute; top: -1px; inset-inline: 0; height: 2px; overflow: hidden; }
.hero-tab .bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .hero-tab .bar i { transform-origin: right; }
.hero-tab .n { grid-row: 1 / span 2; font-size: 38px; font-weight: var(--w-thin); line-height: 1; font-variant-numeric: tabular-nums; }
.hero-tab .name { font-size: clamp(17px, 1.35vw, 21px); font-weight: var(--w-medium); line-height: 1.3; }
.hero-tab .where { font-size: 14px; font-weight: var(--w-regular); opacity: .8; }
.hero-tab .name, .hero-tab .where { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tab .go { display: none; }
.hero-tab:hover, .hero-tab.on { color: #fff; }
.hero-tab.on .name { font-weight: var(--w-semi); }
.hero-now { display: none; }
@media (max-width: 900px) {
  .hero-tabs { gap: 8px; padding: 14px 0 20px; }
  .hero-tab, .hero-tab + .hero-tab { display: block; padding: 12px 0 0; border: 0; }
  .hero-tab .bar { top: 0; background: rgba(255,255,255,.28); }
  .hero-tab .n { font-size: 15px; font-weight: var(--w-bold); }
  .hero-tab .name, .hero-tab .where { display: none; }
  .hero-now { display: grid; gap: 2px; padding-top: 16px; color: #fff; }
  .hero-now .name { font-size: 20px; font-weight: var(--w-semi); }
  .hero-now .where { font-size: 14px; color: rgba(255,255,255,.8); }
}

/* ── Statement + figures ────────────────────────────────── */
.statement .statement-text { font-size: clamp(24px, 2.7vw, 40px); font-weight: var(--w-light); line-height: 1.4; max-width: 34ch; color: var(--ink); }
html[dir="rtl"] .statement .statement-text { line-height: 1.75; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.stat { padding: 34px 32px 0 0; border-inline-end: 1px solid var(--line-soft); }
html[dir="rtl"] .stat { padding: 34px 0 0 32px; }
.stat + .stat { padding-inline-start: 32px; }
.stat:last-child { border-inline-end: 0; }
.stat b { display: block; font-size: clamp(44px, 5vw, 76px); font-weight: var(--w-xlight); line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.stat b small { font-size: 0.32em; font-weight: var(--w-semi); color: var(--muted); margin-inline-start: 6px; }
.stat > span { display: block; margin-top: 12px; color: var(--ink-2); font-size: 15px; font-weight: var(--w-medium); }
@media (max-width: 900px) { .figures { grid-template-columns: 1fr 1fr; } .stat, html[dir="rtl"] .stat { padding: 26px 16px 0; padding-inline-start: 0; } .stat + .stat { padding-inline-start: 16px; } .stat:nth-child(2n+1) { padding-inline-start: 0; } .stat:nth-child(2n) { border-inline-end: 0; } .stat:nth-child(n+3) { margin-top: 26px; border-top: 1px solid var(--line-soft); } }

/* ── Showcase: full-bleed featured projects ─────────────── */
.showcase-wrap { padding-top: clamp(20px, 3vw, 40px); }
.showcase { display: grid; gap: clamp(28px, 4vw, 56px); }
.show { position: relative; display: block; color: #fff; }
.show-media { margin: 0; position: relative; height: clamp(420px, 86svh, 900px); overflow: hidden; background: var(--haze); }
.show-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease); }
.show:hover .show-media img { transform: scale(1.025); }
.show-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,31,46,0) 50%, rgba(15,31,46,.66) 100%); }
.show-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 0 var(--gutter) clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 40px; align-items: end; width: min(100%, calc(var(--max) + 2 * var(--gutter))); margin-inline: auto; }
.show-cap .meta { grid-column: 1; font-size: 14px; font-weight: var(--w-bold); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.8); }
html[dir="rtl"] .show-cap .meta { letter-spacing: 0; font-size: 15px; }
.show-cap h3 { grid-column: 1; color: #fff; font-size: clamp(30px, 3.6vw, 56px); font-weight: var(--w-xlight); }
html[dir="rtl"] .show-cap h3 { font-weight: var(--w-light); }
.show-cap .where { grid-column: 1; font-size: 16px; color: rgba(255,255,255,.85); }
.show-cap .more { grid-column: 2; grid-row: 1 / span 3; align-self: end; font-size: 15px; font-weight: var(--w-medium); color: #fff; padding-bottom: 4px; background: linear-gradient(#fff, #fff) no-repeat 0 100% / 100% 1px; }
.show:hover .show-cap .more { background-size: 0 1px; }
@media (max-width: 700px) { .show-media { height: 70svh; } .show-cap { grid-template-columns: 1fr; } .show-cap .more { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; } }

/* ── About ──────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.about-copy { display: grid; gap: 24px; }
.about-copy .eyebrow { margin: 0; }
.about-copy .lead { max-width: none; }
.about-copy .body { color: var(--ink-2); }
.pillars { display: grid; grid-template-columns: 1fr; margin-top: 8px; border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.pillar h4 { font-size: 16px; color: var(--blue); font-weight: var(--w-bold); line-height: 1.6; }
.pillar p { color: var(--ink-2); font-size: 16px; }
.about-art { position: relative; aspect-ratio: 4 / 5; }
.about-art img.photo { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.about-badge { position: absolute; inset-inline-start: -16px; bottom: 36px; padding: 22px 26px; background: #fff; border-inline-start: 3px solid var(--blue); max-width: 240px; }
.about-badge b { display: block; font-size: 56px; font-weight: var(--w-black); line-height: 1; color: var(--blue); }
.about-badge > span { display: block; margin-top: 6px; font-size: 14px; font-weight: var(--w-medium); color: var(--ink-2); line-height: 1.5; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-art { aspect-ratio: 4 / 3; order: -1; } .about-badge { inset-inline-start: 0; } .pillar { grid-template-columns: 1fr; gap: 4px; } }

/* ── CEO message ────────────────────────────────────────── */
.ceo { background: var(--blue); color: #fff; }
.ceo .eyebrow { color: var(--mint); }
.ceo-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.ceo-who { display: grid; gap: 6px; }
.ceo-who .name { font-size: clamp(28px, 2.6vw, 40px); font-weight: var(--w-xlight); line-height: 1.2; color: #fff; }
html[dir="rtl"] .ceo-who .name { font-weight: var(--w-light); line-height: 1.5; }
.ceo-who .role { font-size: 15px; font-weight: var(--w-medium); color: rgba(255,255,255,.75); }
.ceo-text { display: grid; gap: 22px; }
.ceo-text p { font-size: clamp(18px, 1.5vw, 23px); font-weight: var(--w-light); line-height: 1.75; color: rgba(255,255,255,.94); }
html[dir="rtl"] .ceo-text p { line-height: 2; }
@media (max-width: 900px) { .ceo-grid { grid-template-columns: 1fr; } }

/* ── Values ─────────────────────────────────────────────── */
.values { background: var(--haze); }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.value { position: relative; padding: 28px 24px 34px 0; border-inline-end: 1px solid var(--line-soft); }
html[dir="rtl"] .value { padding: 28px 0 34px 24px; }
.value + .value { padding-inline-start: 24px; }
.value:last-child { border-inline-end: 0; }
.value .num { display: block; font-size: 54px; font-weight: var(--w-thin); line-height: 1; color: var(--blue); opacity: .55; margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.value h3 { font-size: 24px; font-weight: var(--w-semi); color: var(--blue); margin-bottom: 10px; }
.value p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 1100px) { .values-grid { grid-template-columns: 1fr 1fr; } .value, html[dir="rtl"] .value { padding: 26px 0 30px; border-inline-end: 0; border-bottom: 1px solid var(--line-soft); } .value + .value { padding-inline-start: 0; } .value:nth-child(2n) { padding-inline-start: 28px; } .value:nth-child(2n+1) { padding-inline-end: 28px; } }
@media (max-width: 640px) { .values-grid { grid-template-columns: 1fr; } .value:nth-child(n) { padding-inline: 0; } }

/* ── Services ───────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.service { padding-top: 22px; border-top: 2px solid var(--blue); }
.service .num { display: block; font-size: 14px; font-weight: var(--w-bold); color: var(--muted); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.service h3 { font-size: 22px; font-weight: var(--w-medium); line-height: 1.3; margin-bottom: 10px; }
.service p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ── Partners: four doors to the application ────────────── */
.partners { background: var(--haze); }
.partners .section-head .lead { margin-top: 18px; }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.partner-card { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; min-height: 300px; padding: 30px 28px 28px; background: #fff; color: var(--ink); transition: background .4s var(--ease), color .4s var(--ease); }
.partner-card svg.ico { width: 44px; height: 44px; color: var(--blue); stroke-width: 1.2; transition: color .4s; margin-bottom: 14px; }
.partner-card h3 { font-size: 25px; font-weight: var(--w-medium); color: inherit; }
.partner-card p { font-size: 16px; color: var(--ink-2); transition: color .4s; }
.partner-card .go { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: var(--w-semi); color: var(--blue); transition: color .4s, gap .4s var(--ease); }
.partner-card .go svg { width: 18px; height: 18px; }
html[dir="rtl"] .partner-card .go svg { transform: scaleX(-1); }
.partner-card:hover { background: var(--blue); color: #fff; }
.partner-card:hover svg.ico, .partner-card:hover .go { color: #fff; }
.partner-card:hover p { color: rgba(255,255,255,.85); }
.partner-card:hover .go { gap: 16px; }
@media (max-width: 1000px) { .partner-grid { grid-template-columns: 1fr 1fr; } .partner-card { min-height: 240px; } }
@media (max-width: 560px) { .partner-grid { grid-template-columns: 1fr; } .partner-card { min-height: 0; } }

/* ── Call to action over a rendering ───────────────────── */
.cta { position: relative; min-height: 70svh; display: flex; align-items: flex-end; padding: 120px 0 clamp(48px, 6vw, 88px); color: #fff; overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,31,46,.1), rgba(15,31,46,.78)); }
.cta-inner { display: grid; gap: 20px; max-width: 820px; }
.cta h2 { color: #fff; }
.cta .lead { color: rgba(255,255,255,.85); }
/* band (projects page) */
.band { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 100px) clamp(28px, 5vw, 80px); background: var(--ink); color: #fff; border-radius: 2px; background-image: url('../img/projects/office-garden-alamariyah/03.jpg'); background-size: cover; background-position: center; }
.band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,31,46,.3), rgba(15,31,46,.8)); }
.band-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; z-index: 1; }
.band h2 { color: #fff; }
.band .lead { color: rgba(255,255,255,.82); }
.band .btn-gold { background: #fff; border-color: #fff; color: var(--ink); }
.band .btn-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 900px) { .band-grid { grid-template-columns: 1fr; } .band-actions { justify-content: flex-start; } }

/* ── Projects: catalogue index ──────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-bottom: 8px; }
.filters button { position: relative; padding: 8px 0; font-size: 16px; font-weight: var(--w-medium); color: var(--muted); transition: color .3s; }
.filters button::after { content: ''; position: absolute; inset-inline: 0; bottom: 4px; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
html[dir="rtl"] .filters button::after { transform-origin: right; }
.filters button:hover, .filters button.active { color: var(--ink); }
.filters button.active { font-weight: var(--w-semi); }
.filters button.active::after { transform: scaleX(1); }
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin-bottom: 20px; }
.list-tools .filters { margin-bottom: 0; }
.view-toggle { display: flex; border: 1px solid var(--line); }
.view-toggle button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 15px; font-weight: var(--w-medium); color: var(--ink-2); transition: background .3s, color .3s; }
.view-toggle button + button { border-inline-start: 1px solid var(--line); }
.view-toggle button svg { width: 18px; height: 18px; }
.view-toggle button:hover { color: var(--blue); }
.view-toggle button.active { background: var(--blue); color: #fff; font-weight: var(--w-semi); }
/* picture view (default) */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 36px); }
.pcard { display: grid; gap: 4px; align-content: start; color: var(--ink); }
.pcard-media { position: relative; margin: 0 0 14px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--haze); border-radius: 2px; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-status { position: absolute; top: 14px; inset-inline-start: 14px; padding: 5px 12px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 13px; font-weight: var(--w-bold); font-variant-numeric: tabular-nums; }
.pcard-status.live { background: var(--blue); color: #fff; }
.pcard-type { font-size: 13px; font-weight: var(--w-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .pcard-type { letter-spacing: 0; font-size: 15px; }
.pcard h3 { font-size: clamp(22px, 1.9vw, 28px); font-weight: var(--w-light); line-height: 1.25; transition: color .3s; }
.pcard:hover h3 { color: var(--blue); }
.pcard-where { font-size: 15px; color: var(--ink-2); }
.pgrid .empty { grid-column: 1 / -1; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .pgrid { grid-template-columns: 1fr; } .view-toggle button span { display: none; } }
.index { display: grid; border-top: 1px solid var(--line); }
.index-head { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 1.6fr) 170px; gap: 24px; padding: 14px 0; font-size: 13px; font-weight: var(--w-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
html[dir="rtl"] .index-head { letter-spacing: 0; font-size: 14px; }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 1.6fr) 170px; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line-soft); transition: color .3s; }
.row:hover { color: var(--blue); }
.row .name { font-weight: var(--w-light); font-size: clamp(22px, 2.2vw, 31px); line-height: 1.25; }
.row .type, .row .where { font-size: 16px; color: var(--ink-2); }
.row .type { font-weight: var(--w-medium); }
.row .year { font-size: 16px; font-weight: var(--w-medium); color: var(--muted); text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .year.live { color: var(--blue); font-weight: var(--w-semi); }
.row:hover .type, .row:hover .where { color: var(--blue); }
.row .thumb { position: absolute; z-index: 5; inset-inline-end: 14%; top: 50%; width: 260px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; opacity: 0; transform: translateY(-50%) scale(.96); pointer-events: none; transition: opacity .35s var(--ease), transform .5s var(--ease); box-shadow: 0 24px 50px -24px rgba(15,31,46,.35); }
.row:hover .thumb { opacity: 1; transform: translateY(-50%) scale(1); }
.row.hidden { display: none; }
@media (max-width: 800px) { .index-head { display: none; } .row { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; } .row .name { grid-column: 1 / -1; } .row .type { display: none; } .row .where { grid-column: 1; } .row .year { grid-row: 2; grid-column: 2; } .row .thumb { display: none; } }
.card-tags { display: flex; gap: 6px 18px; }
.tag { font-size: 14px; font-weight: var(--w-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .tag { letter-spacing: 0; font-size: 15px; }
.empty { padding: 60px 0; color: var(--muted); }

/* ── Forms (contact + partner application) ──────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(36px, 6vw, 100px); }
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-item { display: block; padding: 22px 0; border-bottom: 1px solid var(--line-soft); transition: color .3s; }
.contact-item .ico { display: none; }
.contact-item small { display: block; font-size: 13px; font-weight: var(--w-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
html[dir="rtl"] .contact-item small { letter-spacing: 0; font-size: 15px; }
.contact-item b { font-weight: var(--w-light); font-size: clamp(20px, 1.8vw, 27px); color: var(--ink); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.contact-item b.addr { direction: inherit; font-size: 18px; font-weight: var(--w-regular); }
a.contact-item:hover b { color: var(--blue); }
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); transition: .3s; }
.socials a:hover { border-color: var(--blue); color: var(--blue); }
.socials svg { width: 16px; height: 16px; }
.form { display: grid; gap: 22px; padding: clamp(26px, 3.4vw, 48px); background: var(--haze); border-radius: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-size: 14px; font-weight: var(--w-semi); color: var(--ink-2); }
.field label em, .field .label em { font-style: normal; font-weight: var(--w-regular); color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 18px; outline: none; border-radius: 0; transition: border-color .3s; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005b91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 18px; }
html[dir="rtl"] .field select { background-position: left center; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); }
.field textarea { min-height: 130px; resize: vertical; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #b3423a; }
.field.invalid label, .field.invalid .label { color: #b3423a; }
.form .hp { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding-top: 4px; }
.form-msg { font-size: 15px; font-weight: var(--w-medium); min-height: 1.5em; color: var(--ink-2); }
.form-msg.ok { color: #1f7a4d; } .form-msg.err { color: #b3423a; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.map-wrap { margin-top: clamp(44px, 6vw, 80px); border-radius: 2px; overflow: hidden; aspect-ratio: 21 / 8; background: var(--haze); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(.95) brightness(1.03); }
@media (max-width: 700px) { .map-wrap { aspect-ratio: 4 / 3; } }

/* partner application */
.apply-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.apply-aside { position: sticky; top: calc(104px + 28px); display: grid; gap: 22px; }
.apply-aside h2 { font-size: clamp(24px, 2.2vw, 32px); }
.apply-steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); counter-reset: s; }
.apply-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); font-size: 16px; }
.apply-steps li::before { content: '0' counter(s); font-size: 26px; font-weight: var(--w-thin); line-height: 1.1; color: var(--blue); }
.apply-form { gap: 0; padding: 0; background: none; }
.apply-form fieldset { border: 0; margin: 0; padding: clamp(24px, 3vw, 40px); background: var(--haze); display: grid; gap: 22px; min-width: 0; }
.apply-form fieldset + fieldset { margin-top: 14px; }
.apply-form legend { float: inline-start; width: 100%; padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: var(--w-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
html[dir="rtl"] .apply-form legend { letter-spacing: 0; font-size: 16px; }
.apply-form legend + * { clear: both; }
.type-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.type-pick label { position: relative; display: grid; gap: 10px; padding: 18px 16px; background: #fff; border: 1px solid var(--line); cursor: pointer; font-size: 16px; font-weight: var(--w-medium); color: var(--ink); transition: border-color .3s, background .3s, color .3s; }
.type-pick input { position: absolute; opacity: 0; pointer-events: none; }
.type-pick svg { width: 30px; height: 30px; color: var(--blue); stroke-width: 1.3; transition: color .3s; }
.type-pick label:hover { border-color: var(--blue); }
.type-pick label:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: var(--w-semi); }
.type-pick label:has(input:checked) svg { color: #fff; }
.type-pick label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 700px) { .type-pick { grid-template-columns: 1fr 1fr; } }
.yn { display: flex; gap: 8px; padding-top: 6px; }
.yn label { position: relative; padding: 9px 22px; background: #fff; border: 1px solid var(--line); cursor: pointer; font-size: 16px; font-weight: var(--w-medium); color: var(--ink); transition: .3s; }
.yn input { position: absolute; opacity: 0; pointer-events: none; }
.yn label:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.yn label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.field.invalid .yn label, .invalid > .type-pick label { border-color: #b3423a; }
.doc-hint { font-size: 15px; color: var(--ink-2); }
.field.doc { gap: 10px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.doc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.doc-btn { padding: 10px 20px; font-size: 15px; background: #fff; cursor: pointer; }
.doc-btn:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.doc-name { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.doc-x { font-size: 14px; font-weight: var(--w-semi); color: #b3423a; padding: 4px 0; }
.doc-x:hover { text-decoration: underline; }
.doc-err { font-size: 14px; font-weight: var(--w-medium); color: #b3423a; }
.doc-err:empty { display: none; }
.field.doc.invalid .doc-btn { border-color: #b3423a; color: #b3423a; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.checks label { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; background: #fff; border: 1px solid var(--line); cursor: pointer; font-size: 16px; font-weight: var(--w-medium); color: var(--ink); transition: .3s; }
.checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.checks label:has(input:checked) { border-color: var(--blue); color: var(--blue); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--blue); }
.consent.invalid { color: #b3423a; }
.apply-foot { margin-top: 14px; padding: clamp(24px, 3vw, 40px); background: var(--haze); display: grid; gap: 20px; }
.apply-done { padding: clamp(32px, 5vw, 72px); background: var(--blue); color: #fff; display: grid; gap: 16px; }
.apply-done h2 { color: #fff; }
.apply-done p { color: rgba(255,255,255,.9); font-size: 19px; font-weight: var(--w-light); max-width: 52ch; }
.apply-done b { font-weight: var(--w-bold); direction: ltr; unicode-bidi: isolate; }
[hidden] { display: none !important; }
@media (max-width: 960px) { .apply-grid { grid-template-columns: 1fr; } .apply-aside { position: static; } }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { padding: 72px 0 32px; background: #fff; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand img { height: 120px; width: auto; }
.footer-brand p { margin-top: 22px; color: var(--ink-2); font-size: 15px; max-width: 38ch; }
.footer-col h4 { font-size: 13px; font-weight: var(--w-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
html[dir="rtl"] .footer-col h4 { letter-spacing: 0; font-size: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); font-size: 15px; transition: color .3s; }
.footer-col a:hover { color: var(--blue); }
.footer-col .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Inner page hero ────────────────────────────────────── */
.page-hero { padding: calc(var(--nav-h) + clamp(40px, 6vw, 96px)) 0 clamp(36px, 5vw, 64px); position: relative; }
.page-hero .h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 22px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: var(--w-medium); color: var(--muted); margin-bottom: 24px; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span::before { content: '/'; margin-inline-end: 10px; opacity: .5; }

/* ── Project detail ─────────────────────────────────────── */
.project-hero { position: relative; min-height: 82svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 60px) 0 64px; overflow: hidden; color: #fff; isolation: isolate; background: var(--ink); }
.project-hero .bg { position: absolute; inset: 0; z-index: -1; }
.project-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.project-hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,31,46,.45), rgba(15,31,46,.05) 45%, rgba(15,31,46,.8) 100%); }
.project-hero h1 { max-width: 16ch; color: #fff; }
.project-hero .tag { color: rgba(255,255,255,.85); }
.project-hero .breadcrumbs { color: rgba(255,255,255,.75); }
.project-hero .breadcrumbs a:hover { color: #fff; }
.project-hero .card-tags { margin-bottom: 18px; }
.project-hero .loc { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.88); margin-top: 18px; font-size: 17px; }
.project-hero .loc svg { display: none; }
.project-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.project-copy { display: grid; gap: 30px; }
.project-copy .lead { max-width: none; color: var(--ink); font-size: clamp(21px, 1.9vw, 29px); font-weight: var(--w-light); line-height: 1.5; }
html[dir="rtl"] .project-copy .lead { line-height: 1.85; }
.detail { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line-soft); }
.detail small { font-size: 13px; font-weight: var(--w-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
html[dir="rtl"] .detail small { letter-spacing: 0; font-size: 15px; }
.detail p { color: var(--ink-2); }
.project-aside { position: sticky; top: calc(104px + 24px); display: grid; gap: 18px; }
.facts { display: grid; border-top: 1px solid var(--line); }
.fact { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.fact b { display: block; font-size: clamp(38px, 3.8vw, 58px); font-weight: var(--w-xlight); line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.fact b small { font-size: .34em; font-weight: var(--w-semi); color: var(--muted); margin-inline-start: 6px; }
.fact span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 15px; font-weight: var(--w-medium); }
.aside-actions { display: grid; gap: 10px; }
.aside-actions .btn { justify-content: center; white-space: normal; text-align: center; }
@media (max-width: 900px) { .project-body { grid-template-columns: 1fr; } .project-aside { position: static; } .detail { grid-template-columns: 1fr; gap: 4px; } }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery a { position: relative; grid-column: span 4; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; background: var(--haze); }
.gallery a:nth-child(6n+1), .gallery a:nth-child(6n+5) { grid-column: span 8; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery a:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .gallery a, .gallery a:nth-child(6n+1), .gallery a:nth-child(6n+5) { grid-column: span 6; } }
.video-wrap { border-radius: 2px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-wrap video { width: 100%; height: 100%; }
.proj-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proj-nav a { display: grid; gap: 6px; padding: 30px 0; transition: color .3s; }
.proj-nav a + a { border-inline-start: 1px solid var(--line-soft); padding-inline-start: 32px; }
.proj-nav a:hover { color: var(--blue); }
.proj-nav a small { font-size: 13px; font-weight: var(--w-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .proj-nav a small { letter-spacing: 0; font-size: 15px; }
.proj-nav a b { font-weight: var(--w-light); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; }
.proj-nav a.next { text-align: end; }
@media (max-width: 600px) { .proj-nav { grid-template-columns: 1fr; } .proj-nav a + a { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line-soft); } .proj-nav a.next { text-align: start; } }

/* ── Lightbox ───────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(255,255,255,.96); }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(94vw, 1500px); max-height: 86vh; object-fit: contain; border-radius: 2px; box-shadow: 0 40px 80px -40px rgba(15,31,46,.4); }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); background: #fff; transition: .3s; }
.lightbox button:hover { border-color: var(--blue); color: var(--blue); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .close { top: 20px; inset-inline-end: 20px; }
.lightbox .prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 14px; font-weight: var(--w-medium); font-variant-numeric: tabular-nums; }

/* ── 404 ────────────────────────────────────────────────── */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--nav-h) var(--gutter); }
.notfound b { display: block; font-size: clamp(110px, 22vw, 260px); font-weight: var(--w-thin); line-height: .9; color: var(--blue); opacity: .35; }

/* ── Motion ─────────────────────────────────────────────── */
.reveal { opacity: 1; transform: none; }
.hero .reveal { opacity: 0; transform: translateY(24px); }
.no-js .hero .reveal, .hero .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .hero .reveal { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } .hero-slide { transition: none; } }
.preload * { transition: none !important; }
