/* LEVX Ascensores
   Black and white, one dark orange accent.
   Shape rule: everything square, radius 0 across the board. */

:root {
  --bg: #f4f4f3;
  --surface: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #5d5d5d;
  --accent: #0b0b0b;
  --accent-deep: #2c2c2c;
  --spark: #d1500f;
  --line: #e3e3e1;
  --font-display: "Gambarino", "Satoshi", Georgia, serif;
  --r-media: 0px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: "Satoshi", "Cairo", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

[lang="ar"] body { font-family: "Cairo", "Satoshi", system-ui, sans-serif; }
[dir="rtl"] { --dir: -1; }
:root { --dir: 1; }

::selection { background: var(--spark); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; letter-spacing: -0.01em; }
[lang="ar"] h1, [lang="ar"] h2 { font-family: "Cairo", sans-serif; font-weight: 900; letter-spacing: 0; }
[lang="ar"] .btn,
[lang="ar"] .main-nav a,
[lang="ar"] .site-footer nav a { font-family: "Cairo", sans-serif; font-weight: 700; letter-spacing: 0; }

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: 0;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(11, 11, 11, 0.35);
}

.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-quiet:hover { border-color: var(--ink-2); transform: translateY(-1px); }

.btn-invert {
  background: #fff;
  color: var(--ink);
}

.btn-invert:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.35); }

.btn-block { width: 100%; }

.btn-header { padding: 0.65rem 1.25rem; font-size: 0.88rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.scrolled { border-color: var(--line); }

/* Over the hero video the bar is transparent and everything in it turns white */
.site-header.over-hero {
  background: transparent;
  backdrop-filter: none;
  border-color: transparent;
}
.site-header.over-hero .brand-name { color: #fff; }
.site-header.over-hero .brand-sub { color: rgba(255, 255, 255, 0.7); }
.site-header.over-hero .lang-switch {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}
.site-header.over-hero .lang-switch button { color: rgba(255, 255, 255, 0.75); }
.site-header.over-hero .lang-switch button.active { background: #fff; color: var(--ink); }
.site-header.over-hero .btn-primary { background: #fff; color: var(--ink); }

.header-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex-shrink: 0; }
.brand-text { display: flex; align-items: baseline; gap: 0.55rem; }
.brand-mark { flex: none; display: block; }
.site-header.over-hero .brand-mark { outline: 1px solid rgba(255, 255, 255, 0.35); }

.site-header .brand-name, .site-header .brand-sub {
  font-family: "Gambarino", serif;
  font-weight: 400;
  letter-spacing: 0;
}
.site-header .brand-name { font-size: 1.5rem; }

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

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

/* Cedars-style sliding navigation, with LEVX square corners. */
.main-nav {
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: rgba(18, 22, 18, 0.72);
  backdrop-filter: blur(16px);
  white-space: nowrap;
}

.nav-pill {
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  border-radius: 0;
  background: var(--spark);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s;
}

.main-nav a {
  text-decoration: none;
  position: relative;
  padding: 0.65rem 1rem;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s;
}

.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible,
.site-header .main-nav a.is-highlighted { color: #fff; }

.lang-switch {
  display: flex;
  margin-inline-start: auto;
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 3px;
  background: var(--surface);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, scale 0.2s var(--ease);
}

.lang-switch button:active { scale: 0.96; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { background: var(--accent); color: #fff; }

/* ---------- Hero ---------- */

/* The intro plays as you scroll: a tall track with a sticky stage pinned inside it */
.hero { position: relative; height: 340vh; }

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-layers { display: grid; width: 100%; }
.hero-layers > * { grid-area: 1 / 1; align-self: center; max-width: 640px; }

.hero-cue { will-change: opacity; }

.cue-line {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.4rem;
}

.cue-hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-copy { opacity: 0; will-change: opacity, translate; }
.hero.no-scrub { height: auto; }
.hero.no-scrub .hero-stage { position: static; height: auto; padding: calc(68px + 4rem) 0 4rem; min-height: 88vh; }
.hero.no-scrub .hero-cue, .hero.no-scrub video { display: none; }
.hero.no-scrub .hero-copy { opacity: 1; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink) url(img/hero-still.jpg) center / cover no-repeat;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scrim: keeps the copy legible over every frame, bright marble or dark shaft */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(11, 11, 11, 0.94) 0%, rgba(11, 11, 11, 0.82) 34%, rgba(11, 11, 11, 0.42) 64%, rgba(11, 11, 11, 0.26) 100%),
    linear-gradient(to bottom, rgba(11, 11, 11, 0.55) 0%, rgba(11, 11, 11, 0) 28%);
}

[dir="rtl"] .hero-bg::after {
  background:
    linear-gradient(to left, rgba(11, 11, 11, 0.94) 0%, rgba(11, 11, 11, 0.82) 34%, rgba(11, 11, 11, 0.42) 64%, rgba(11, 11, 11, 0.26) 100%),
    linear-gradient(to bottom, rgba(11, 11, 11, 0.55) 0%, rgba(11, 11, 11, 0) 28%);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 640px); }

.hero h1, .hero .lede { color: #fff; }
.hero .lede { color: rgba(255, 255, 255, 0.82); }

.hero .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7); }
.hero .btn-primary:hover { background: #fff; }
.hero .btn-quiet { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.hero .btn-quiet:hover { border-color: #fff; }

.hero h1 {
  font-size: clamp(2.9rem, 5.4vw, 4.9rem);
  line-height: 1.08;
  margin-bottom: 1.2rem;
}

.lede {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--ink-2);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero .lede { margin-bottom: 2rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }

html[data-motion="on"] .cue-hint svg { animation: bob 1.9s var(--ease) infinite; }

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 4px; }
}

@keyframes rise {
  to { opacity: 1; translate: 0 0; }
}

/* A hairline keeps photos from bleeding into the page */
.wide-media img,
.voice-who img {
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

.mobile-voices .voice-who img { outline-color: oklch(1 0 0 / 0.1); }

/* ---------- Brands marquee ---------- */

.brands {
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
  background: var(--surface);
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee img {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  margin-inline-end: 4rem; /* margin, not gap: keeps both halves exactly equal so -50% loops seamlessly */
  opacity: 0.55;
}

@keyframes marquee {
  to { transform: translateX(calc(-50% * var(--dir))); }
}

/* ---------- Sections ---------- */

section h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.14;
}

/* ---------- Services ---------- */

.services { padding: clamp(4rem, 9vh, 6.5rem) 0; }

.services h2 { margin-bottom: 2rem; max-width: 18ch; }

.panels {
  display: flex;
  gap: 10px;
  height: clamp(380px, 42vw, 500px);
}

.panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  text-align: start;
  cursor: pointer;
  isolation: isolate;
  transition: flex 0.6s var(--ease), scale 0.25s var(--ease);
}

.panel:active { scale: 0.98; }

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.05) 30%, rgba(8, 8, 8, 0.86) 100%);
  pointer-events: none;
}

.panel-media {
  position: absolute;
  inset: -6px;
  background-position: center;
  background-size: cover;
  filter: brightness(0.5) contrast(1.05);
  transition: filter 0.6s var(--ease), transform 1s var(--ease);
}

.panel.is-open { flex: 4 1 0; }

.panel.is-open .panel-media {
  filter: brightness(0.82) contrast(1.12);
  transform: scale(1.04);
}

.panel-tab {
  position: absolute;
  inset-inline-start: 0;
  bottom: 1.1rem;
  z-index: 2;
  width: 100%;
  padding-inline: 0.9rem;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
  hyphens: auto;
  opacity: 1;
  transition: opacity 0.3s;
}

.panel.is-open .panel-tab { opacity: 0; }

.panel-open {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  z-index: 2;
  display: block;
  padding: 1.6rem;
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.45s var(--ease) 0.12s, translate 0.45s var(--ease) 0.12s;
}

.panel.is-open .panel-open { opacity: 1; translate: 0 0; }

.panel-open::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--spark);
  margin-bottom: 0.9rem;
}

.panel-name {
  display: block;
  font-size: clamp(1.3rem, 2.1vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

[lang="ar"] .panel-name { letter-spacing: 0; }

.panel-desc {
  display: block;
  max-width: 34ch;
  color: #e6e5e3;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ---------- Testimonials ---------- */

.voices {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: clamp(4rem, 9vh, 6.5rem) 0;
}

.voices h2 { margin-bottom: 2.2rem; max-width: 14ch; }

.voice-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  height: clamp(420px, 52vh, 560px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.voice-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: voiceScroll linear infinite;
}

.voice-col:nth-child(2) { animation-direction: reverse; }

@keyframes voiceScroll {
  to { transform: translateY(-50%); }
}

.voice {
  background: var(--bg);
  border: 1px solid rgba(209, 80, 15, 0.32);
  border-radius: var(--r-media);
  padding: 1.3rem;
  flex-shrink: 0;
}

.voice p {
  font-size: 0.97rem;
  color: var(--ink);
  text-wrap: pretty;
  margin-bottom: 1rem;
}

.voice-who { display: flex; align-items: center; gap: 0.7rem; }

.voice-who img {
  width: 44px;
  height: 44px;
  border-radius: 0;
  object-fit: cover;
}

.voice-name { font-weight: 700; font-size: 0.88rem; }

.voice-role { font-size: 0.8rem; color: var(--ink-2); }

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.8rem;
  color: var(--spark);
}

.stars svg { width: 14px; height: 14px; }

/* ---------- Phone: two opposing review rows ---------- */

.mobile-voices {
  display: none;
  overflow: hidden;
  margin-inline: calc(-1 * clamp(1.25rem, 4vw, 2.5rem));
  direction: ltr;
}

.voice-row {
  display: flex;
  width: max-content;
  animation: voiceAcross 38s linear infinite;
}

.voice-row + .voice-row {
  margin-top: 14px;
  animation-duration: 44s;
  animation-direction: reverse;
}

.voice-group {
  display: flex;
  gap: 10px;
  padding-right: 10px;
  flex-shrink: 0;
}

.mobile-voices .voice {
  display: flex;
  flex-direction: column;
  width: 258px;
  min-height: 230px;
  padding: 16px;
  margin: 0;
  background: var(--ink);
  color: #fff;
}

.mobile-voices .voice-who { order: -1; margin-bottom: 18px; }
.mobile-voices .voice-role { color: #b9b9b7; }
.mobile-voices .voice p { color: #fff; font-size: 0.88rem; }
.mobile-voices .stars { order: 1; margin: auto 0 0; justify-content: flex-end; }
[dir="rtl"] .mobile-voices .voice { direction: rtl; }
.mobile-voices:hover .voice-row,
.mobile-voices:focus-within .voice-row,
.mobile-voices:active .voice-row { animation-play-state: paused; }

@keyframes voiceAcross {
  to { transform: translateX(-50%); }
}

html[data-motion="off"] .mobile-voices { overflow-x: auto; }
html[data-motion="off"] .voice-row { animation: none; }

/* ---------- Why (statement) ---------- */

.why {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: clamp(4rem, 10vh, 7rem) 0;
}

.statement {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: clamp(1.8rem, 4vh, 2.8rem);
}

.why-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 62rem;
}

.why-cols p { color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }

.process-line {
  margin-top: clamp(2.2rem, 5vh, 3.5rem);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--spark);
}

/* ---------- Emergency band ---------- */

.emergency {
  background: var(--ink);
  border-top: 3px solid var(--spark);
  color: #fff;
  padding: clamp(2.8rem, 6vh, 4rem) 0;
}

.emergency-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.emergency h2 { margin-bottom: 0.4rem; }

.emergency p { color: #b9b9b7; }

/* ---------- Wide image ---------- */

.wide-media { line-height: 0; }

.wide-media img {
  width: 100%;
  height: clamp(260px, 48vh, 460px);
  object-fit: cover;
}

/* ---------- Contact ---------- */

.contact { padding: clamp(4rem, 9vh, 6.5rem) 0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact h2 { margin-bottom: 0.8rem; }

.coverage-line { color: var(--ink-2); margin-top: 0.6rem; }

.channels { margin-top: 2rem; }

.channel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 0.2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.channel:first-child { border-top: 1px solid var(--line); }

.channel svg { color: var(--spark); flex-shrink: 0; }

.channel:hover { color: var(--spark); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder, .field textarea::placeholder { color: #8d8d8a; }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(209, 80, 15, 0.2);
}

.field textarea { resize: vertical; min-height: 100px; }

.form-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.6rem 0;
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.site-footer .brand-name { font-size: 0.9rem; }

.site-footer nav { display: flex; gap: 1.4rem; margin-inline-start: auto; }

.site-footer nav a { text-decoration: none; font-family: var(--font-display); color: var(--ink-2); transition: color 0.2s; }

.site-footer nav a:hover { color: var(--ink); }

.site-footer .copy { color: var(--ink-2); flex-basis: 100%; }

.footer-contact {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  font-style: normal;
}

.footer-contact a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--spark); }

/* ---------- Stats ---------- */

.stats { background: var(--bg); border-bottom: 1px solid var(--line); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: clamp(1.8rem, 4vw, 2.6rem) 1rem;
  text-align: center;
  border-inline-end: 1px solid var(--line);
}

.stat:last-child { border-inline-end: 0; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.6rem;
}

[lang="ar"] .stat-num { font-family: "Cairo", sans-serif; font-weight: 900; }

.stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

[lang="ar"] .stat-label { letter-spacing: 0; }


/* ---------- Certificate badge ---------- */
.cert-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  transition: background-color 0.2s;
}
.cert-badge:hover { background: var(--surface); }
.cert-seal { flex: none; }
.cert-title { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; }
.cert-meta { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cert-verify { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.cert-badge:hover .cert-verify { color: var(--ink); }
[lang="ar"] .cert-title { letter-spacing: 0; font-size: 0.85rem; }
.footer-cert { flex-basis: 100%; color: var(--ink-2); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-cert:hover { color: var(--ink); }

/* ---------- Buildings ---------- */

.buildings { background: var(--bg); }

.buildings-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.buildings-split img {
  width: 100%;
  height: 100%;
  min-height: clamp(340px, 52vh, 620px);
  object-fit: cover;
}

.buildings-copy {
  background: var(--ink);
  color: #fff;
  padding: clamp(2.2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.buildings-copy h2 { margin-bottom: 1.4rem; max-width: 18ch; }

.buildings-copy p {
  color: #b9b9b7;
  max-width: 46ch;
  text-wrap: pretty;
  margin-bottom: 1rem;
}

.creds {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.creds li {
  padding: 0.9rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e6e5e3;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

[lang="ar"] .creds li { letter-spacing: 0; }
.creds li:nth-child(odd) { border-inline-start: 0; }
.creds li:nth-child(-n+2) { border-top: 0; }

/* ---------- Dark CTA before the form ---------- */

.cta-dark {
  position: relative;
  background: var(--ink) url(img/lobby-doors.webp) center / cover no-repeat;
  color: #fff;
  padding: clamp(4rem, 11vh, 7.5rem) 0;
  isolation: isolate;
}

.cta-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 8, 8, 0.82);
}

.cta-inner { text-align: center; }

.cta-inner h2 { margin-inline: auto; max-width: 16ch; margin-bottom: 1rem; }

.cta-inner p {
  color: #c9c8c6;
  max-width: 48ch;
  margin-inline: auto;
  text-wrap: pretty;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Reveal ---------- */

html[data-motion="on"] .reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}
html[data-motion="on"] .reveal.in { opacity: 1; translate: 0 0; }
html[data-motion="off"] :is(.marquee, .voice-col, .cue-hint svg) { animation: none; }
html[data-motion="off"] .hero-bg video { display: none; }
html[data-motion="off"] .voice-cols { height: auto; mask-image: none; -webkit-mask-image: none; }
html[data-motion="off"] :is(.nav-pill, .main-nav a, .panel, .panel-media, .panel-open) { transition: none; }
html[data-motion="off"] { scroll-behavior: auto; }

.motion-toggle {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 60;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  font: 400 0.9rem var(--font-display);
  cursor: pointer;
  box-shadow: 0 3px 12px #0003;
}
.motion-toggle[hidden] { display: none; }
[lang="ar"] .motion-toggle { font-family: "Cairo", sans-serif; }

/* ---------- Focus ---------- */

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

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .main-nav { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { height: 280vh; height: 280svh; }
  .hero-stage { height: 100vh; height: 100svh; }
  .why-cols { grid-template-columns: 1fr; gap: 1.2rem; }
  .panels { flex-direction: column; height: auto; }
  .panel { height: 96px; flex: none; transition: height 0.6s var(--ease); }
  .panel.is-open { height: 330px; flex: none; }
  .panel-tab { bottom: auto; top: 50%; translate: 0 -50%; font-size: 1.05rem; }
  .voice-cols { display: none; }
  .mobile-voices { display: block; }
  .buildings-split { grid-template-columns: 1fr; }
  .buildings-split img { min-height: 300px; }
}

@media (max-width: 700px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .header-row { gap: 0.7rem; }
  .brand { gap: 0.5rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.05; }
  .site-header .brand-sub { display: block; font-size: 0.88rem; text-transform: none; }
  .btn-header { padding: 0.55rem 0.95rem; }
  .lang-switch button { padding: 0.32rem 0.55rem; }
  .field input, .field textarea { font-size: 16px; }
}

@media (max-width: 360px) {
  .header-row { gap: 0.4rem; padding-inline: 12px; }
  .btn-header { padding-inline: 0.65rem; white-space: nowrap; }
  .lang-switch button { padding-inline: 0.4rem; }
}
