:root {
  --navy: #101c25;
  --ink: #1b272d;
  --muted: #687278;
  --paper: #f4f1eb;
  --paper-deep: #e9e6df;
  --white: #fbfaf7;
  --gold: #b69a63;
  --gold-light: #d6c18f;
  --line: rgba(27, 39, 45, 0.18);
  --display: "Noto Serif SC", Georgia, serif;
  --sans: "Manrope", "Noto Sans Arabic", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 14px; line-height: 1.7; }
body.is-modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
.page-width { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.section-pad { padding-block: 142px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 20; height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; color: var(--white); transition: background 220ms ease, color 220ms ease, height 220ms ease; }
.site-header.is-scrolled { height: 76px; color: var(--ink); background: rgba(244, 241, 235, 0.95); box-shadow: 0 1px 0 rgba(27, 39, 45, 0.12); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: baseline; gap: 14px; min-width: 230px; }
.brand-wordmark { font-size: 25px; font-weight: 700; letter-spacing: .16em; line-height: 1; }
.brand-caption { color: currentColor; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.primary-nav { display: flex; align-items: center; gap: 40px; margin-inline: auto; }
.primary-nav a, .mobile-menu a { position: relative; font-size: 12px; letter-spacing: .05em; }
.primary-nav a::after, .mobile-menu a::after { content: ""; position: absolute; inset: auto 0 -5px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.primary-nav a:hover::after, .mobile-menu a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 23px; min-width: 230px; }
.language-switcher { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid rgba(251, 250, 247, .38); border-radius: 20px; }
.is-scrolled .language-switcher { border-color: rgba(27, 39, 45, .24); }
.language-button { width: 31px; height: 26px; border: 0; border-radius: 14px; background: transparent; color: currentColor; cursor: pointer; font-family: var(--mono); font-size: 10px; opacity: .72; }
.language-button.is-active { color: var(--navy); background: var(--gold-light); opacity: 1; }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 9px; border: 0; background: transparent; cursor: pointer; }
.menu-line { display: block; width: 22px; height: 1px; margin: 6px 0; background: currentColor; transition: transform 180ms ease; }
.mobile-menu { position: fixed; inset: 76px 0 auto; z-index: 18; display: none; gap: 24px; padding: 24px 28px 30px; color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--line); }
.mobile-menu.is-open { display: grid; }

.hero { position: relative; height: max(720px, 100svh); min-height: 680px; color: var(--white); overflow: hidden; background: var(--navy); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; animation: hero-in 1.1s ease both; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 18, 25, .62), rgba(8, 18, 25, .12) 62%), linear-gradient(0deg, rgba(8, 18, 25, .55), transparent 45%); }
.hero-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 108px; }
.section-kicker { display: flex; align-items: center; gap: 13px; margin: 0 0 28px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.section-kicker.light { color: rgba(251, 250, 247, .8); }
.kicker-rule { display: inline-block; width: 45px; height: 1px; background: var(--gold); }
.hero h1 { display: flex; flex-direction: column; margin: 0; color: var(--white); font-size: clamp(52px, 8vw, 114px); font-weight: 500; line-height: .97; letter-spacing: .02em; }
.hero h1 > span { color: var(--gold-light); font-family: var(--sans); font-size: .72em; font-weight: 500; letter-spacing: .16em; }
.hero h1 em { max-width: 820px; font-family: var(--display); font-size: .66em; font-style: normal; font-weight: 400; letter-spacing: .06em; }
.hero-bottomline { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; max-width: 900px; margin-top: 45px; }
.hero-bottomline p { max-width: 430px; margin: 0; color: rgba(251, 250, 247, .78); font-size: 13px; line-height: 2; }
.circle-link { display: flex; align-items: center; gap: 12px; color: var(--white); font-size: 11px; white-space: nowrap; }
.circle-link-arrow { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--gold-light); border-radius: 50%; color: var(--gold-light); font-size: 19px; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.circle-link:hover .circle-link-arrow { color: var(--navy); background: var(--gold-light); transform: rotate(-45deg); }
.hero-location { position: absolute; right: 48px; bottom: 108px; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: rgba(251, 250, 247, .7); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.hero-scroll { position: absolute; right: 48px; bottom: 35px; z-index: 1; display: flex; align-items: center; gap: 15px; color: rgba(251, 250, 247, .72); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.scroll-line { width: 70px; height: 1px; background: var(--gold); }
@keyframes hero-in { from { transform: scale(1.04); opacity: .72; } to { transform: scale(1); opacity: 1; } }

.intro { display: grid; grid-template-columns: minmax(190px, 1fr) 2.5fr; gap: 90px; }
.intro-aside { display: flex; flex-direction: column; justify-content: space-between; }
.vertical-label { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; writing-mode: vertical-rl; transform: rotate(180deg); }
.intro-copy { max-width: 780px; }
.intro h2, .section-heading h2, .contact-main h2 { margin: 0; color: var(--navy); font-family: var(--display); font-size: clamp(30px, 4.2vw, 58px); font-weight: 400; line-height: 1.28; letter-spacing: .03em; }
.intro-copy > p { max-width: 590px; margin: 36px 0 42px; color: var(--muted); font-size: 14px; line-height: 2.1; }
.text-link { display: inline-flex; align-items: center; gap: 13px; padding-bottom: 7px; border-bottom: 1px solid var(--gold); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.text-link-arrow { color: var(--gold); font-size: 16px; line-height: 1; transition: transform 180ms ease; }
.text-link:hover .text-link-arrow { transform: translate(4px, -4px); }

.projects-section { background: var(--paper-deep); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 55px; }
.section-heading .section-kicker { margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(32px, 4.5vw, 62px); }
.section-index { margin: 0 0 8px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.project-grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: 34px; align-items: start; }
.project-card { position: relative; cursor: pointer; }
.project-card:nth-child(2) { margin-top: 100px; }
.project-card-image { position: relative; aspect-ratio: 1.15 / 1; overflow: hidden; background: #c6c7c2; }
.project-card:nth-child(2) .project-card-image { aspect-ratio: .95 / 1; }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.65,.2,1); }
.project-card:hover .project-card-image img { transform: scale(1.045); }
.project-card-image::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(251, 250, 247, .38); pointer-events: none; }
.project-hover { position: absolute; top: 20px; right: 20px; z-index: 1; display: grid; place-items: center; width: 51px; height: 51px; border: 1px solid rgba(251, 250, 247, .76); border-radius: 50%; color: var(--white); font-size: 20px; opacity: 0; transform: translateY(8px); transition: opacity 220ms ease, transform 220ms ease, background 220ms ease, color 220ms ease; }
.project-card:hover .project-hover { opacity: 1; transform: translateY(0); background: var(--gold-light); color: var(--navy); }
.project-card-image:focus-within { outline: 2px solid var(--gold); outline-offset: 5px; }
.project-card-info { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding-top: 19px; border-top: 1px solid var(--ink); }
.project-card-info h3 { margin: 0 0 5px; color: var(--navy); font-size: 19px; font-weight: 500; letter-spacing: .07em; }
.project-card-info p { margin: 0; color: var(--muted); font-size: 11px; }
.project-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-align: right; }
.project-card-meta strong { color: var(--gold); font-weight: 400; }

.statement-band { color: var(--white); background: var(--navy); }
.statement-inner { position: relative; min-height: 325px; display: flex; flex-direction: column; justify-content: center; }
.statement-mark { margin: 0 0 22px; color: var(--gold-light); font-size: 13px; font-weight: 600; letter-spacing: .3em; }
.statement-copy { max-width: 760px; margin: 0; font-family: var(--display); font-size: clamp(31px, 4.2vw, 57px); line-height: 1.35; letter-spacing: .04em; }
.statement-line { position: absolute; right: 0; bottom: 62px; width: 27%; height: 1px; background: var(--gold); }

.contact-section { display: grid; grid-template-columns: minmax(190px, 1fr) 2.5fr; gap: 90px; }
.contact-main { max-width: 780px; }
.contact-main h2 { font-size: clamp(36px, 5.2vw, 75px); }
.email-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 48px; padding-bottom: 11px; border-bottom: 1px solid var(--gold); color: var(--navy); font-family: var(--mono); font-size: 13px; }
.email-link span { color: var(--gold); font-size: 18px; transition: transform 180ms ease; }
.email-link:hover span { transform: translate(4px, -4px); }
.contact-details { display: flex; gap: 110px; margin-top: 90px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.contact-details > div { display: flex; flex-direction: column; gap: 5px; }
.detail-label { color: var(--ink); font-family: var(--sans); font-size: 11px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 25px 34px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }

.project-modal { position: fixed; inset: 0; z-index: 40; display: none; color: var(--white); }
.project-modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7, 13, 18, .82); backdrop-filter: blur(6px); }
.modal-panel { position: relative; width: min(1160px, calc(100% - 72px)); height: min(92svh, 940px); margin: 4svh auto 0; padding: 40px 43px 50px; overflow: auto; background: var(--navy); box-shadow: 0 25px 90px rgba(0, 0, 0, .4); animation: modal-in 240ms ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.modal-header .section-kicker { margin-bottom: 15px; }
.modal-header h2 { margin: 0; color: var(--white); font-family: var(--display); font-size: clamp(28px, 3vw, 44px); font-weight: 400; line-height: 1.2; }
.modal-close { width: 42px; height: 42px; padding: 0; border: 1px solid rgba(214, 193, 143, .68); border-radius: 50%; color: var(--gold-light); background: transparent; cursor: pointer; font-size: 27px; font-weight: 200; line-height: 1; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.modal-close:hover { color: var(--navy); background: var(--gold-light); transform: rotate(90deg); }
.modal-meta { display: flex; gap: 12px 38px; margin-top: 20px; color: rgba(251, 250, 247, .65); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.modal-meta span { color: var(--gold-light); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 39px; }
.gallery figure { margin: 0; overflow: hidden; background: #26343c; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1.6 / 1; object-fit: cover; transition: transform 500ms ease; }
.gallery figure:not(:first-child) img { aspect-ratio: 1.38 / 1; }
.gallery figure:hover img { transform: scale(1.025); }
.gallery figcaption { padding: 7px 10px 9px; color: rgba(251, 250, 247, .58); font-family: var(--mono); font-size: 8px; letter-spacing: .09em; }
.toast { position: fixed; right: 30px; bottom: 26px; z-index: 60; max-width: min(360px, calc(100% - 40px)); padding: 11px 16px; color: var(--white); background: var(--navy); border-left: 3px solid var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

[dir="rtl"] body, [dir="rtl"] { font-family: "Noto Sans Arabic", var(--sans); }
[dir="rtl"] .brand-caption, [dir="rtl"] .section-kicker, [dir="rtl"] .hero-location, [dir="rtl"] .hero-scroll, [dir="rtl"] .project-card-meta, [dir="rtl"] .modal-meta, [dir="rtl"] .gallery figcaption, [dir="rtl"] .site-footer { font-family: "Noto Sans Arabic", var(--mono); }
[dir="rtl"] .hero h1 em, [dir="rtl"] .intro h2, [dir="rtl"] .section-heading h2, [dir="rtl"] .statement-copy, [dir="rtl"] .contact-main h2, [dir="rtl"] .modal-header h2 { font-family: "Noto Sans Arabic", var(--display); }
[dir="rtl"] .intro-aside, [dir="rtl"] .contact-label { text-align: right; }
[dir="rtl"] .vertical-label { transform: none; }
[dir="rtl"] .hero-overlay { background: linear-gradient(-90deg, rgba(8, 18, 25, .62), rgba(8, 18, 25, .12) 62%), linear-gradient(0deg, rgba(8, 18, 25, .55), transparent 45%); }
[dir="rtl"] .hero-location, [dir="rtl"] .hero-scroll { right: auto; left: 48px; align-items: flex-start; }
[dir="rtl"] .statement-line { right: auto; left: 0; }
[dir="rtl"] .project-card-meta { align-items: flex-start; text-align: left; }
[dir="rtl"] .text-link-arrow, [dir="rtl"] .email-link span { transform: scaleX(-1); }
[dir="rtl"] .text-link:hover .text-link-arrow, [dir="rtl"] .email-link:hover span { transform: scaleX(-1) translate(4px, -4px); }

@media (max-width: 800px) {
  .page-width { width: min(100% - 42px, 620px); }
  .site-header { height: 76px; padding: 0 21px; }
  .site-header:not(.is-scrolled) { background: linear-gradient(180deg, rgba(8, 18, 25, .38), transparent); }
  .brand { min-width: auto; gap: 9px; }
  .brand-wordmark { font-size: 21px; }
  .brand-caption { display: none; }
  .primary-nav { display: none; }
  .header-tools { min-width: auto; gap: 7px; }
  .menu-toggle { display: block; }
  .hero { height: 100svh; min-height: 650px; }
  .hero-image { object-position: 58% center; }
  .hero-content { padding-bottom: 100px; }
  .hero h1 { font-size: clamp(48px, 15vw, 82px); }
  .hero h1 em { max-width: 100%; font-size: .57em; line-height: 1.25; }
  .hero-bottomline { display: block; margin-top: 32px; }
  .hero-bottomline p { max-width: 330px; font-size: 12px; line-height: 1.9; }
  .circle-link { margin-top: 27px; }
  .hero-location { right: 21px; bottom: 33px; font-size: 8px; }
  .hero-scroll { display: none; }
  .section-pad { padding-block: 86px; }
  .intro, .contact-section { display: block; }
  .intro-aside, .contact-label { display: block; }
  .vertical-label { display: none; }
  .intro-copy { margin-top: 48px; }
  .intro h2, .section-heading h2, .contact-main h2 { font-size: clamp(30px, 8vw, 48px); line-height: 1.35; }
  .intro h2 br, .contact-main h2 br { display: none; }
  .intro-copy > p { margin: 25px 0 32px; font-size: 13px; line-height: 2; }
  .section-heading { align-items: flex-start; margin-bottom: 35px; }
  .section-heading h2 { max-width: 300px; }
  .section-index { margin-top: 17px; }
  .project-grid { display: block; }
  .project-card, .project-card:nth-child(2) { margin: 0 0 52px; }
  .project-card:last-child { margin-bottom: 0; }
  .project-card-image, .project-card:nth-child(2) .project-card-image { aspect-ratio: 1 / 1.04; }
  .project-hover { opacity: 1; transform: none; width: 43px; height: 43px; top: 14px; right: 14px; font-size: 17px; }
  .project-card-info { padding-top: 15px; }
  .project-card-info h3 { font-size: 16px; }
  .statement-inner { min-height: 260px; }
  .statement-copy { font-size: clamp(28px, 8vw, 43px); }
  .statement-line { right: 0; bottom: 41px; width: 40%; }
  .contact-main { margin-top: 48px; }
  .email-link { margin-top: 36px; font-size: 11px; }
  .contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 63px; }
  .site-footer { width: calc(100% - 42px); flex-wrap: wrap; padding-block: 21px 27px; font-size: 8px; }
  .site-footer span:nth-child(2) { display: none; }
  .modal-panel { width: calc(100% - 24px); height: 95svh; margin-top: 2.5svh; padding: 26px 16px 35px; }
  .modal-meta { flex-wrap: wrap; gap: 4px 22px; margin-top: 17px; line-height: 1.8; }
  .gallery { display: block; margin-top: 27px; }
  .gallery figure { margin-bottom: 14px; }
  .gallery figure:first-child img, .gallery figure:not(:first-child) img { aspect-ratio: 1 / .77; }
  .toast { right: 20px; bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
