/* ==========================================================================
   Vista Cor — site styles (English and Arabic)
   Palette from the company profile and logo. Logical properties throughout,
   so the same rules lay out left-to-right and right-to-left.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Arabic: IBM Plex Sans Arabic, Arabic glyphs only. Latin inside Arabic text falls back to Archivo. */
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --night: #0B192C;
  --deep: #0E2034;
  --plate: #12283F;
  --teal: #14A098;
  --teal-bright: #3EC4BD;
  --steel: #B8C2C8;
  --frost: #EDF4F5;
  --text-2: #B3C1C9;
  --muted: #8FA3AF;
  --weld: #F2B84B;            /* heat only: spark, cut line, focus */
  --line: rgba(184, 194, 200, 0.14);
  --line-strong: rgba(184, 194, 200, 0.3);

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-ar: "Plex Arabic", "Archivo", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.25rem, 1.1rem + 0.6vw, 1.5625rem);
  --step-3: clamp(1.6rem, 1.25rem + 1.5vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem);
  --step-5: clamp(2.7rem, 1.3rem + 5.6vw, 6.25rem);

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --header-h: 76px;
  --space-section: clamp(96px, 12vw, 176px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cut: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--night);
  color: var(--text-2);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--teal); color: var(--night); }
:focus-visible { outline: 2px solid var(--weld); outline-offset: 3px; border-radius: 1px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.skip-link {
  position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 100;
  padding: 10px 16px; background: var(--frost); color: var(--night); font-weight: 600;
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- Type ---------- */
.h2 {
  color: var(--frost);
  font-size: var(--step-4);
  font-weight: 330;
  font-stretch: 110%;
  line-height: 1.06;
  letter-spacing: -0.022em;
  max-width: 16ch;
  text-wrap: balance;
}
.h3 {
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lead { color: var(--text-2); font-size: var(--step-1); line-height: 1.5; max-width: 32em; text-wrap: pretty; }
p { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 1.5em;
  border: 1px solid transparent; border-radius: 2px;
  font-size: 0.9375rem; font-weight: 560; font-stretch: 108%; letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn--small { min-height: 42px; padding: 0 1.15em; font-size: 0.875rem; }
.btn--primary { background: var(--teal); color: #04121F; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn--primary:hover { background: var(--teal-bright); }
.btn--primary:hover::after { transform: translateX(120%); transition: transform 0.8s var(--ease-out); }
.btn--ghost { border-color: rgba(237, 244, 245, 0.34); color: var(--frost); }
.btn--ghost:hover { border-color: var(--frost); background: rgba(237, 244, 245, 0.06); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  border-block-end: 1px solid transparent;
  transition: transform 0.45s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(11, 25, 44, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-block-end-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 40px; height: auto; }
.brand__name {
  color: var(--frost);
  font-family: var(--font);
  font-size: 0.9375rem; font-weight: 600; font-stretch: 125%;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.site-nav { margin-inline-start: auto; }
.site-nav__list { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.site-nav a { position: relative; display: block; padding: 8px 0; color: var(--text-2); font-size: 0.9375rem; transition: color 0.25s; }
.site-nav a::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 2px; height: 1px;
  background: var(--teal-bright); transform: scaleX(0); transition: transform 0.4s var(--ease-out);
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--frost); }
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.lang-link { color: var(--text-2); font-size: 0.9375rem; padding: 8px 2px; transition: color 0.25s; }
.lang-link:hover { color: var(--frost); }
.lang-link:lang(ar) { font-family: var(--font-ar); font-size: 1rem; }
.lang-link:lang(en) { font-family: var(--font); }

.menu-toggle {
  display: none; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 4px; background: none; border: 0;
  color: var(--frost); font-size: 0.9375rem; font-weight: 500;
}
.menu-toggle__bars { position: relative; width: 22px; height: 10px; }
.menu-toggle__bars span { position: absolute; inset-inline: 0; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out); }
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: -1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--night); overflow-y: auto;
  visibility: hidden; opacity: 0; transition: opacity 0.35s, visibility 0s 0.35s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.35s; }
.mobile-menu li { border-block-start: 1px solid var(--line); }
.mobile-menu li a { display: block; padding: 16px 0; color: var(--frost); font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 320; font-stretch: 112%; }
.mobile-menu.is-open li { animation: menu-in 0.6s var(--ease-out) both; }
.mobile-menu.is-open li:nth-child(2) { animation-delay: 0.04s; }
.mobile-menu.is-open li:nth-child(3) { animation-delay: 0.08s; }
.mobile-menu.is-open li:nth-child(4) { animation-delay: 0.12s; }
.mobile-menu.is-open li:nth-child(5) { animation-delay: 0.16s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(14px); } }
body.menu-open { overflow: hidden; }
.site-header.menu-is-open { background: var(--night); border-block-end-color: var(--line); }

@media (max-width: 1000px) {
  .site-nav, .site-header__cta { display: none; }
  .lang-link { margin-inline-start: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 380px) { .brand__name { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: var(--header-h);
  overflow: hidden; isolation: isolate;
  color: var(--frost);
}
.hero__media { position: absolute; inset: 0; z-index: -1; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 25, 44, 0.9) 0%, rgba(11, 25, 44, 0) 24%),
    linear-gradient(0deg, var(--night) 0%, rgba(11, 25, 44, 0) 34%),
    linear-gradient(var(--hero-dir, 90deg), rgba(11, 25, 44, 0.94) 0%, rgba(11, 25, 44, 0.78) 36%, rgba(11, 25, 44, 0.3) 70%, rgba(11, 25, 44, 0.5) 100%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center; gap: 4vw; padding-block: 6vh 5vh;
}
.hero__title {
  font-size: var(--step-5); font-weight: 300; font-stretch: 116%;
  line-height: 0.98; letter-spacing: -0.035em;
}
.hero__title .line { display: block; overflow: hidden; padding-block-end: 0.1em; margin-block-end: -0.1em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { margin-top: 28px; max-width: 30em; color: var(--text-2); font-size: var(--step-1); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__mark { justify-self: end; width: min(100%, 420px); }
.mark { width: 100%; height: auto; overflow: visible; }
.mark__spark, .mark__heat, .mark__flash { opacity: 0; }
.hero__foot { padding-block: 0 30px; }
.hero__facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  padding-block-start: 22px; border-block-start: 1px solid var(--line-strong);
}
.hero__facts dt { color: var(--muted); font-size: var(--step--1); }
.hero__facts dd { margin-top: 4px; color: var(--frost); font-size: 0.9375rem; font-weight: 500; font-stretch: 106%; line-height: 1.4; }

.js .hero__media img { animation: hero-img 2.8s var(--ease-out) both; }
.js .hero__title .line > span { animation: rise 1.15s var(--ease-out) both; }
.js .hero__title .line:nth-child(1) > span { animation-delay: 0.45s; }
.js .hero__title .line:nth-child(2) > span { animation-delay: 0.55s; }
.js .hero__title .line:nth-child(3) > span { animation-delay: 0.65s; }
.js .hero__lead { animation: fade 1s var(--ease-out) 1.05s both; }
.js .hero__actions { animation: fade 1s var(--ease-out) 1.2s both; }
.js .hero__foot { animation: fade 1s var(--ease-out) 1.4s both; }
.js .mark__v { animation: v-in 1.4s var(--ease-out) 0.25s both; }
.js .mark__y { opacity: 0; }
.js .mark.is-ignited .mark__y { opacity: 1; transition: opacity 0.12s; }
.js .mark.is-ignited .mark__flash { animation: flash 1.6s ease-out both; }
@keyframes hero-img { from { transform: scale(1.12); filter: brightness(0.25); } to { transform: scale(1.02); filter: none; } }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes v-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 0.9; } 100% { opacity: 0; } }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 28px; padding-block: 4vh; }
  .hero__mark { order: -1; justify-self: start; width: 104px; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
}
@media (max-width: 480px) { .hero__actions .btn { flex: 1 1 auto; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  align-items: end; margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head .h2 { grid-column: 1 / 7; }
.section-head .lead { grid-column: 8 / 13; }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-head .h2, .section-head .lead { grid-column: auto; }
}

/* Cut reveal: an image appears behind a travelling cut line */
.cut { position: relative; overflow: hidden; background: var(--plate); }
.cut img { width: 100%; height: 100%; object-fit: cover; }
.cut::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent calc(100% - 64px), rgba(242, 184, 75, 0.14) calc(100% - 2px), #F6C870 calc(100% - 2px));
  transform: translateY(-100%); opacity: 0;
}
.js .cut[data-reveal] img { clip-path: inset(0 0 100% 0); }
.js .cut[data-reveal].is-in img { animation: cut-img 1.3s var(--ease-cut) both; }
.js .cut[data-reveal].is-in::after { animation: cut-line 1.3s var(--ease-cut) both; }
@keyframes cut-img { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes cut-line { 0% { transform: translateY(-100%); opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }

/* ---------- How we work ---------- */
.services { --p: 0; background: var(--deep); }
.process__rail { position: relative; height: 1px; background: var(--line-strong); }
.process__rail-fill { position: absolute; inset: 0; background: var(--teal-bright); transform: scaleX(var(--p)); transform-origin: var(--rail-origin, left); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); padding-top: 36px; }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; inset-block-start: -41px; inset-inline-start: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--deep); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.step.is-lit::before { background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(62, 196, 189, 0.18); }
.step__num {
  display: block; color: var(--muted);
  font-family: var(--font); font-size: var(--step-3); font-weight: 200; font-stretch: 125%;
  line-height: 1; letter-spacing: -0.02em; transition: color 0.5s;
}
.step.is-lit .step__num { color: var(--teal-bright); }
.step__media { margin-top: 22px; aspect-ratio: 4 / 3; }
.step__title { margin-top: 22px; color: var(--frost); font-size: var(--step-2); font-weight: 420; font-stretch: 106%; line-height: 1.25; }
.step__list { margin-top: 14px; }
.step__list li { position: relative; padding-inline-start: 18px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.45; }
.step__list li + li { margin-top: 8px; }
.step__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.7em; width: 8px; height: 1px; background: var(--teal-bright); }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; padding-top: 0; }
  .process__rail, .step::before { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Products ---------- */
.products__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--plate); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.26), transparent 45%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity 0.4s;
}
.card:hover .card__media::after { opacity: 1; }
.card:hover .card__media img { transform: scale(1.03); }
.card__name { margin-top: 20px; color: var(--frost); font-size: var(--step-2); font-weight: 400; font-stretch: 106%; line-height: 1.25; }
.card__specs { margin-top: 14px; }
.card__specs > div {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px;
  padding-block: 9px; border-block-start: 1px solid var(--line); font-size: 0.875rem; line-height: 1.45;
}
.card__specs dt { color: var(--muted); }
.card__specs dd { color: var(--frost); }

.finishes {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px;
  margin-top: clamp(64px, 7vw, 96px); padding-top: 32px; border-block-start: 1px solid var(--line-strong);
}
.finishes__list { display: flex; flex-wrap: wrap; gap: 20px 32px; }
.finishes__list li { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--frost); font-size: 0.875rem; }
.sw { display: block; width: 64px; height: 40px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 6px 18px rgba(0, 0, 0, 0.35); }
.sw--2b { background: linear-gradient(180deg, #C6CDD1, #A6AFB5); }
.sw--ba { background: linear-gradient(125deg, #F7FAFB 0%, #A1ACB3 45%, #EEF2F4 60%, #B4BEC4 100%); }
.sw--no4 { background: repeating-linear-gradient(0deg, #BCC5CB 0 1px, #A2ACB3 1px 2px, #B2BBC1 2px 3px); }
.sw--hairline { background: repeating-linear-gradient(0deg, #CBD2D6 0 0.6px, #9AA5AC 0.6px 1.6px); }
.sw--mirror { background: linear-gradient(125deg, #FFFFFF 0%, #6B7882 40%, #F4F7F8 52%, #56626C 100%); }
.sw--pvd { background: linear-gradient(125deg, #D2AC66 0%, #7E6A48 38%, #2E6D73 68%, #173F47 100%); }

@media (max-width: 1000px) { .products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .products__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .products__grid::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
  .finishes { gap: 20px; }
  .finishes__list { gap: 16px 20px; }
  .sw { width: 52px; height: 32px; }
}

/* ---------- Quality ---------- */
.quality { background: var(--deep); }
.quality__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.quality__media { grid-column: 1 / 6; aspect-ratio: 4 / 5; }
.quality__media img { object-position: 60% 50%; }
.quality__copy { grid-column: 7 / 13; }
.quality__copy .lead { margin-top: 24px; }
.controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin-top: 48px; }
.controls > div { padding-block: 18px 20px; border-block-start: 1px solid var(--line-strong); }
.controls dt { color: var(--frost); font-weight: 520; font-stretch: 104%; }
.controls dd { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 900px) {
  .quality__grid { grid-template-columns: 1fr; gap: 48px; }
  .quality__media, .quality__copy { grid-column: auto; }
  .quality__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) { .controls { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.projects__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.projects__media { grid-column: 1 / 6; aspect-ratio: 3 / 4; position: sticky; top: calc(var(--header-h) + 40px); }
.projects__copy { grid-column: 7 / 13; }
.projects__copy .h3 { margin-top: 48px; margin-bottom: 14px; }
.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.sectors li { padding-block: 13px; border-block-start: 1px solid var(--line); color: var(--frost); font-size: var(--step-0); line-height: 1.35; }
.record { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.record li { display: flex; flex-direction: column; gap: 2px; padding-block: 14px; border-block-start: 1px solid var(--line); }
.record__name { color: var(--frost); line-height: 1.35; }
.record__city { color: var(--muted); font-size: 0.875rem; }
.clients { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 28px; }
.clients__label { color: var(--muted); font-size: var(--step--1); }
.clients__names { display: inline-flex; flex-wrap: wrap; }
.clients__names span { color: var(--frost); font-weight: 500; padding-inline: 12px; }
.clients__names span:first-child { padding-inline-start: 0; }
.clients__names span + span { border-inline-start: 1px solid var(--line-strong); }
.note { margin-top: 14px; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 900px) {
  .projects__grid { grid-template-columns: 1fr; }
  .projects__media, .projects__copy { grid-column: auto; }
  .projects__media { position: static; aspect-ratio: 16 / 10; order: 2; margin-top: 48px; }
}
@media (max-width: 560px) { .sectors, .record { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { position: relative; padding-block: var(--space-section); isolation: isolate; overflow: hidden; }
.contact__media { position: absolute; inset: 0; z-index: -1; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--hero-dir, 90deg), rgba(11, 25, 44, 0.94) 0%, rgba(11, 25, 44, 0.76) 50%, rgba(11, 25, 44, 0.55) 100%),
              linear-gradient(0deg, var(--night) 0%, transparent 30%, transparent 70%, var(--night) 100%);
}
.contact__title { font-size: var(--step-5); font-weight: 300; font-stretch: 116%; letter-spacing: -0.035em; line-height: 1; max-width: 12ch; }
.contact .lead { margin-top: 24px; }
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; max-width: 1000px; }
.action {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 24px 26px 26px;
  background: rgba(11, 25, 44, 0.66);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  transition: border-color 0.3s, background-color 0.3s;
}
.action:hover { border-color: var(--teal-bright); background: rgba(20, 160, 152, 0.12); }
.action__label { color: var(--muted); font-size: var(--step--1); }
.action__value {
  color: var(--frost); font-family: var(--font);
  font-size: var(--step-1); font-weight: 450; font-stretch: 104%;
  unicode-bidi: isolate; overflow-wrap: anywhere; text-align: start;
}
.contact__place { margin-top: 28px; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 800px) { .actions { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: 64px; border-block-start: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.9fr); gap: 40px; padding-bottom: 48px; }
.site-footer__brand p { margin-top: 18px; max-width: 36ch; color: var(--muted); font-size: 0.9375rem; }
.site-footer__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.site-footer a { color: var(--text-2); font-size: 0.9375rem; transition: color 0.25s; }
.site-footer a:hover { color: var(--frost); }
.site-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer__base { padding-block: 22px 30px; border-block-start: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; align-items: center; }
.notfound__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 80px; }
.notfound__inner .brand { margin-bottom: 40px; }
.notfound__ar { font-family: var(--font-ar); letter-spacing: 0; }

/* ==========================================================================
   Arabic / right-to-left
   ========================================================================== */
[dir="rtl"] { --hero-dir: 270deg; --rail-origin: right; }
[dir="rtl"] .hero__media img { object-position: 38% 50%; }
[dir="rtl"] .btn--primary::after { transform: translateX(120%); }
[dir="rtl"] .btn--primary:hover::after { transform: translateX(-120%); }

:lang(ar) body, html:lang(ar) body { font-family: var(--font-ar); line-height: 1.85; font-size: 1.0625rem; }
html:lang(ar) .h2,
html:lang(ar) .hero__title,
html:lang(ar) .contact__title,
html:lang(ar) .step__title,
html:lang(ar) .card__name,
html:lang(ar) .mobile-menu li a,
html:lang(ar) .h3,
html:lang(ar) .btn { letter-spacing: 0; }
html:lang(ar) .hero__title { font-weight: 400; line-height: 1.22; font-size: clamp(2.5rem, 1.4rem + 4.8vw, 5.4rem); }
html:lang(ar) .hero__title .line { padding-block: 0.06em 0.18em; margin-block: -0.06em -0.18em; }
html:lang(ar) .h2 { font-weight: 400; line-height: 1.3; }
html:lang(ar) .contact__title { font-weight: 400; line-height: 1.2; }
html:lang(ar) .lead, html:lang(ar) .hero__lead { line-height: 1.75; }
html:lang(ar) .step__title, html:lang(ar) .card__name { font-weight: 500; line-height: 1.45; }
html:lang(ar) .h3 { font-weight: 500; font-size: 0.875rem; }
html:lang(ar) .hero__facts dd, html:lang(ar) .controls dt { font-weight: 500; }
html:lang(ar) .btn { font-weight: 500; font-size: 1rem; }
html:lang(ar) .menu-toggle { font-size: 1rem; }
html:lang(ar) .site-nav a { font-size: 1rem; }
html:lang(ar) .step__list li, html:lang(ar) .controls dd, html:lang(ar) .card__specs > div { line-height: 1.7; }
html:lang(ar) .step__list li::before { top: 0.85em; }
html:lang(ar) .card__specs > div { grid-template-columns: 84px minmax(0, 1fr); font-size: 0.9375rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .cut[data-reveal] img { clip-path: none; }
  .cut::after { display: none; }
  .js .mark__y { opacity: 1; }
}

/* ---------- Additions ---------- */
.finishes__title { color: var(--muted); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em; }
html:lang(ar) .finishes__title { letter-spacing: 0; font-size: 0.875rem; font-weight: 500; }
bdi { unicode-bidi: isolate; }
@media (max-width: 860px) {
  .hero__media::after {
    background: linear-gradient(180deg, rgba(11, 25, 44, 0.86) 0%, rgba(11, 25, 44, 0.62) 38%, rgba(11, 25, 44, 0.8) 70%, var(--night) 100%);
  }
}
/* The language link on the English page uses the system Arabic font, so English visitors don't download the Arabic font for one word. */
html:lang(en) .lang-link:lang(ar) { font-family: "Geeza Pro", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif; }
