/* ==========================================================================
   UPS-50 OMAN — Premium OnePage Landingpage
   Design: ruhig, hochwertig, architektonisch — Apple / Foster+Partners Anmutung
   ========================================================================== */

/* -------------------------------------------------------------------- */
/* 1. DESIGN TOKENS                                                      */
/* -------------------------------------------------------------------- */
:root {
  /* Farbwelt */
  --color-white: #ffffff;
  --color-warm-grey-50: #f7f5f2;
  --color-warm-grey-100: #efebe5;
  --color-warm-grey-300: #d8d1c6;
  --color-anthracite: #1c1c1e;
  --color-anthracite-800: #232326;
  --color-anthracite-900: #141416;
  --color-sand: #cdb68c;
  --color-gold: #b89664;
  --color-gold-soft: #cbae7f;
  --color-nightblue: #0d1420;
  --color-nightblue-800: #10192a;
  --color-text-dark: #201f1d;
  --color-text-muted: #6b665f;
  --color-text-on-dark: #f4f1ea;
  --color-text-on-dark-muted: #a9a49a;

  /* Typografie */
  --font-latin: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-arabic: "Noto Sans Arabic", "Inter", sans-serif;
  --font-body: var(--font-latin);

  /* Abstände */
  --gutter: clamp(24px, 5vw, 96px);
  --section-pad-y: clamp(64px, 10vh, 140px);
  --max-text-width: 640px;
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 22px;

  /* Bewegung */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-m: 1s;
  --dur-l: 1.4s;

  --vh100: 100svh;
}

/* -------------------------------------------------------------------- */
/* 2. RESET & BASE                                                      */
/* -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: auto; /* Lenis übernimmt smooth scroll */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html[lang="ar"] body { font-family: var(--font-arabic); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* RTL global */
html[dir="rtl"] { direction: rtl; }

/* -------------------------------------------------------------------- */
/* 3. TYPOGRAFIE                                                        */
/* -------------------------------------------------------------------- */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-gold);
}
html[lang="ar"] .eyebrow { letter-spacing: 0.02em; }

.headline-xl {
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.headline-l {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.headline-m {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  font-weight: 600;
}

.body-l {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: var(--max-text-width);
}

.body-m {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.section--dark .body-l,
.section--dark .body-m { color: var(--color-text-on-dark-muted); }

/* -------------------------------------------------------------------- */
/* 4. LAYOUT HELPERS                                                    */
/* -------------------------------------------------------------------- */
.section {
  position: relative;
  min-height: var(--vh100);
  padding: var(--section-pad-y) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section--dark {
  background: linear-gradient(180deg, var(--color-anthracite-900), var(--color-nightblue-800));
  color: var(--color-text-on-dark);
}

.section-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 64px);
  max-width: 760px;
}

.section-head .headline-l,
.section-head .headline-xl { margin-top: 0.6em; }

@media (max-width: 640px) {
  .section { min-height: auto; padding-top: 96px; padding-bottom: 88px; }
}

/* -------------------------------------------------------------------- */
/* 5. NAVIGATION                                                        */
/* -------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background-color 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), padding 0.4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(28,28,30,0.06);
}

.site-nav.is-scrolled.on-dark-section {
  background: rgba(20, 20, 22, 0.55);
  border-bottom-color: rgba(255,255,255,0.08);
}

.nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 2vw, 34px);
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.82;
  transition: opacity .25s var(--ease-out);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover,
.nav-links a.is-active { opacity: 1; }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
}

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid rgba(120,110,95,0.3);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  color: inherit;
  opacity: 0.6;
  transition: opacity .25s var(--ease-out), background-color .25s var(--ease-out);
}

.lang-switch button.is-active {
  opacity: 1;
  background: var(--color-anthracite);
  color: var(--color-white);
}

.site-nav.on-dark-section:not(.is-scrolled) .lang-switch { border-color: rgba(255,255,255,0.28); }
.site-nav.on-dark-section:not(.is-scrolled) .lang-switch button.is-active { background: var(--color-white); color: var(--color-anthracite); }

.nav-menu-toggle {
  display: none;
  border: none;
  background: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-menu-toggle span {
  display: block;
  width: 20px; height: 1px;
  background: currentColor;
  position: relative;
}
.nav-menu-toggle span::before,
.nav-menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0; width: 20px; height: 1px;
  background: currentColor;
}
.nav-menu-toggle span::before { top: -6px; }
.nav-menu-toggle span::after { top: 6px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu-toggle { display: flex; }
}

/* Mobile overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(247,245,242,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease-out), visibility .4s var(--ease-out);
}
html[dir="rtl"] .nav-overlay {}
.nav-overlay.is-open { opacity: 1; visibility: visible; }
.nav-overlay a {
  font-size: 1.6rem;
  font-weight: 600;
}
.nav-overlay-close {
  position: absolute;
  top: 22px;
  inset-inline-end: var(--gutter);
  width: 44px; height: 44px;
  border: none; background: none;
  font-size: 1.6rem;
}

/* -------------------------------------------------------------------- */
/* 6. HERO                                                               */
/* -------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.03);
  will-change: transform;
}

@media (max-width: 640px) {
  .hero-media img { object-position: 62% 40%; }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.05) 0%, rgba(10,10,10,0.08) 45%, rgba(8,8,10,0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-text-on-dark);
  padding: 0 var(--gutter) clamp(56px, 9vh, 108px);
  max-width: 720px;
}

.hero-content .eyebrow { color: var(--color-sand); }

.hero-content .headline-xl {
  margin-top: 0.5em;
  color: var(--color-white);
}

.hero-content .body-l {
  color: rgba(244,241,234,0.86);
  margin-top: 1.4em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(28px, 4vw, 42px);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  color: var(--color-anthracite);
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .35s var(--ease-out), background-color .35s var(--ease-out);
  min-height: 44px;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--color-warm-grey-50); }

.btn-ghost-dark {
  color: var(--color-text-on-dark);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(244,241,234,0.4);
  padding-bottom: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: border-color .3s var(--ease-out), opacity .3s var(--ease-out);
}
.btn-ghost-dark:hover { border-color: rgba(244,241,234,0.9); }

.btn-primary-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-anthracite);
  color: var(--color-white);
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .35s var(--ease-out), background-color .35s var(--ease-out);
  min-height: 44px;
}
.btn-primary-light:hover { transform: translateY(-2px); background: #000; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
}
html[dir="rtl"] .scroll-cue { transform: translateX(50%); }

/* -------------------------------------------------------------------- */
/* 7. VISION                                                             */
/* -------------------------------------------------------------------- */
.vision-layout {
  display: grid;
  grid-template-columns: 62% 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.vision-media { overflow: hidden; border-radius: var(--radius-l); }
.vision-media .reveal-clip { overflow: hidden; }
.vision-media img { width: 100%; height: auto; aspect-ratio: 4 / 3.1; object-fit: cover; }

.vision-text .eyebrow { display: block; margin-bottom: 14px; }
.vision-text .headline-l { margin-top: 0; margin-bottom: 22px; }
.vision-text .body-l { margin-bottom: 0; }

.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: clamp(36px, 5vw, 56px);
}

.icon-card svg {
  width: 30px; height: 30px;
  stroke: var(--color-anthracite);
  fill: none;
  stroke-width: 1.4;
  margin-bottom: 14px;
}

.icon-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.icon-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .vision-layout { grid-template-columns: 1fr; }
  .vision-media { order: 1; }
  .vision-text { order: 2; }
}

/* -------------------------------------------------------------------- */
/* 8. ARCHITECTURE                                                       */
/* -------------------------------------------------------------------- */
.architecture-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(40px, 5vw, 60px);
}

.arch-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  aspect-ratio: 3 / 4.2;
}
.architecture-grid .arch-tile:nth-child(2) { aspect-ratio: 3 / 4.6; }

.arch-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease-out);
}
.arch-tile:hover img { transform: scale(1.06); }

.arch-tile-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 20px;
  background: linear-gradient(0deg, rgba(10,10,10,0.55), rgba(10,10,10,0));
  color: var(--color-white);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.arch-tile:hover .arch-tile-caption,
.arch-tile:focus-within .arch-tile-caption { opacity: 1; transform: translateY(0); }

@media (max-width: 780px) {
  .architecture-grid { grid-template-columns: 1fr; }
  .arch-tile, .architecture-grid .arch-tile:nth-child(2) { aspect-ratio: 16/10; }
  .arch-tile-caption { opacity: 1; transform: none; background: linear-gradient(0deg, rgba(10,10,10,0.5), rgba(10,10,10,0)); }
}

/* -------------------------------------------------------------------- */
/* 9. COMFORT (Editorial layout)                                         */
/* -------------------------------------------------------------------- */
.comfort-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.comfort-media-group {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.comfort-media-main { grid-column: 1; grid-row: 1 / 3; border-radius: var(--radius-l); overflow: hidden; }
.comfort-media-main img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/3.6; }
.comfort-media-b { grid-column: 2; grid-row: 1; border-radius: var(--radius-m); overflow: hidden; }
.comfort-media-c { grid-column: 2; grid-row: 2; border-radius: var(--radius-m); overflow: hidden; }
.comfort-media-b img, .comfort-media-c img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }

.comfort-text .headline-l { margin: 0.5em 0 22px; }

.comfort-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
  margin-top: clamp(30px, 4vw, 46px);
}
.comfort-feature { display: flex; align-items: center; gap: 12px; }
.comfort-feature svg { width: 22px; height: 22px; stroke: var(--color-gold); fill: none; stroke-width: 1.5; flex-shrink: 0; }
.comfort-feature span { font-size: 0.94rem; font-weight: 500; }

@media (max-width: 900px) {
  .comfort-layout { grid-template-columns: 1fr; }
  .comfort-media-group { order: 1; }
  .comfort-text { order: 2; }
}
@media (max-width: 560px) {
  .comfort-media-group { grid-template-columns: 1fr 1fr; }
  .comfort-media-main img { aspect-ratio: 4/5; }
}

/* -------------------------------------------------------------------- */
/* 10. TECHNOLOGY (dark)                                                 */
/* -------------------------------------------------------------------- */
.technology-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.tech-media { position: relative; }
.tech-media-main { border-radius: var(--radius-l); overflow: hidden; }
.tech-media-main img { width: 100%; height: auto; aspect-ratio: 4/3.3; object-fit: cover; }

.tech-media-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.tech-media-details div { border-radius: var(--radius-m); overflow: hidden; }
.tech-media-details img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.tech-text .eyebrow { color: var(--color-sand); }
.tech-text .headline-l { margin: 0.5em 0 20px; color: var(--color-white); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 24px;
  margin-top: clamp(38px, 5vw, 56px);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 30px;
}
.stat-value {
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-on-dark-muted);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .technology-layout { grid-template-columns: 1fr; }
  .tech-media { order: 1; }
  .tech-text { order: 2; }
}

/* -------------------------------------------------------------------- */
/* 11. SYSTEM (dark)                                                     */
/* -------------------------------------------------------------------- */
.system-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.system-diagram { border-radius: var(--radius-l); overflow: hidden; }
.system-diagram img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4/3.2; }

.system-text .eyebrow { color: var(--color-sand); }
.system-text .headline-l { color: var(--color-white); margin: 0.5em 0 24px; }

.system-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin-bottom: clamp(34px, 5vw, 48px);
}
.system-facts li {
  font-size: 0.9rem;
  color: var(--color-text-on-dark-muted);
  padding-inline-start: 16px;
  position: relative;
}
.system-facts li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
}

.process-line { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  transform: translateY(14px);
}
.process-step:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.process-step .step-n {
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 600;
  min-width: 28px;
}
.process-step .step-title {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--color-white);
}

@media (max-width: 900px) {
  .system-layout { grid-template-columns: 1fr; }
  .system-diagram { order: 1; }
  .system-text { order: 2; }
}

/* -------------------------------------------------------------------- */
/* 12. GALLERY — METROGRID                                               */
/* -------------------------------------------------------------------- */
.gallery-section { min-height: auto; }
.gallery-section .section-head { max-width: 780px; }

.metro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: clamp(8px, 1vw, 14px);
}

.metro-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-s);
  grid-column: span 1;
  grid-row: span 1;
  background: var(--color-warm-grey-100);
}
.metro-item.size-wide { grid-column: span 2; }
.metro-item.size-big { grid-column: span 2; grid-row: span 2; }

.metro-item button {
  border: none; background: none; padding: 0;
  width: 100%; height: 100%; display: block;
  min-height: 44px;
}

.metro-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
  opacity: 0;
  transition: transform 1.2s var(--ease-out), opacity .6s ease;
}
.metro-item img.is-loaded { opacity: 1; }
.metro-item button:hover img,
.metro-item button:focus-visible img { transform: scale(1.05); }

.gallery-note {
  margin-top: clamp(28px, 4vw, 44px);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

@media (max-width: 900px) {
  .metro-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .metro-item.size-big { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 520px) {
  .metro-grid { grid-template-columns: repeat(1, 1fr); grid-auto-rows: 66vw; }
  .metro-item.size-wide, .metro-item.size-big { grid-column: span 1; }
}

/* -------------------------------------------------------------------- */
/* 13. LIGHTBOX                                                          */
/* -------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(6,6,7,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox-figure {
  position: relative;
  max-width: 92vw;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-figure img {
  max-width: 92vw;
  max-height: 78vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-counter {
  margin-top: 18px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  width: 46px; height: 46px;
  border: none;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .25s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.18); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border: none;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .25s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { inset-inline-start: 18px; }
.lightbox-next { inset-inline-end: 18px; }
html[dir="rtl"] .lightbox-prev svg,
html[dir="rtl"] .lightbox-next svg { transform: scaleX(-1); }

@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { inset-inline-start: 8px; }
  .lightbox-next { inset-inline-end: 8px; }
}

/* -------------------------------------------------------------------- */
/* 14. CONTACT                                                           */
/* -------------------------------------------------------------------- */
.contact-section {
  position: relative;
  color: var(--color-white);
  overflow: hidden;
}
.contact-media { position: absolute; inset: 0; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }
.contact-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.72), rgba(10,10,12,0.5) 55%, rgba(10,10,12,0.78));
}

.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.contact-inner .eyebrow { color: var(--color-sand); }
.contact-inner .headline-xl { color: var(--color-white); margin: 0.5em 0 22px; }
.contact-inner .body-l { color: rgba(244,241,234,0.86); margin-bottom: clamp(30px, 4vw, 46px); }

.contact-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.contact-field {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-m);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.contact-field:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.26);
  transform: translateY(-2px);
}

.contact-field svg {
  width: 20px; height: 20px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.4;
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-field-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.contact-field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-on-dark-muted);
}
.contact-field .value {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--color-white);
  word-break: break-word;
  transition: color .25s var(--ease-out);
}
.contact-field a.value { text-decoration: none; }
.contact-field a.value:hover { color: var(--color-sand); }

@media (max-width: 640px) {
  .contact-fields { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------- */
/* 15. FOOTER                                                            */
/* -------------------------------------------------------------------- */
.site-footer {
  background: var(--color-anthracite);
  color: var(--color-text-on-dark-muted);
  padding: 48px var(--gutter) 34px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand { color: var(--color-white); font-weight: 700; }
.footer-tagline { font-size: 0.85rem; margin-top: 4px; }
.footer-links { display: flex; gap: 22px; font-size: 0.85rem; }
.footer-links a { opacity: 0.8; transition: opacity .2s ease; }
.footer-links a:hover { opacity: 1; }
.footer-note {
  max-width: 1440px;
  margin: 22px auto 0;
  font-size: 0.72rem;
  opacity: 0.55;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
}

/* -------------------------------------------------------------------- */
/* 16. SCROLL REVEAL BASE STATES                                        */
/* -------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); transition: opacity var(--dur-m) var(--ease-out), transform var(--dur-m) var(--ease-out); }

[data-reveal-clip] { clip-path: inset(0 0 100% 0); }
[data-reveal-clip].is-revealed { clip-path: inset(0 0 0% 0); transition: clip-path var(--dur-l) var(--ease-out); }

/* -------------------------------------------------------------------- */
/* 17. REDUCED MOTION                                                    */
/* -------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-reveal-clip] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-media img { transform: none !important; }
}

/* -------------------------------------------------------------------- */
/* 18. RTL FINE-TUNING                                                   */
/* -------------------------------------------------------------------- */
html[dir="rtl"] .architecture-grid,
html[dir="rtl"] .comfort-layout,
html[dir="rtl"] .technology-layout,
html[dir="rtl"] .system-layout {
  direction: rtl;
}
html[dir="rtl"] .system-facts li { padding-inline-start: 16px; padding-inline-end: 0; }
