/* ─────────────────────────────────────────────
   Boshra — Model & Interior Designer
   Palette: white · grey · rose pink · charcoal
   Playfair Display + Inter
   ───────────────────────────────────────────── */

:root {
  --cream: #ffffff;         /* white */
  --cream-2: #f3f3f2;       /* soft grey-white */
  --burgundy: #c06183;      /* deep pink (primary accent) */
  --burgundy-deep: #a84e6e;
  --rose: #d9829b;
  --blush: #eddbe1;         /* pale pink */
  --chocolate: #444041;     /* charcoal grey (text) */
  --plum: #292426;          /* near-black grey (dark sections) */
  --line: rgba(68, 64, 65, 0.15);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", sans-serif;
  --arabic: "Amiri", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
/* Kill sideways scroll from decorative overflow (3D carousel, hero drift) —
   `clip` is respected by iOS Safari where `hidden` on body is not */
html, body { overflow-x: clip; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--cream);
  color: var(--chocolate);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--burgundy); color: var(--cream); }

/* Keyboard focus — visible on both light and dark backgrounds */
:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 2px;
}
.header:not(.is-scrolled) :focus-visible { outline-color: var(--cream); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: var(--burgundy); border-radius: 8px; }

/* ── Password gate ── */
.gate {
  position: fixed; inset: 0; z-index: 1200;
  background: var(--plum);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.2rem;
  padding: 2rem;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.gate.is-open { opacity: 0; visibility: hidden; }
.gate__ar {
  font-family: var(--arabic);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  color: var(--blush);
}
.gate__label {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--rose);
}
.gate__form { display: flex; align-items: center; gap: 0.9rem; }
.gate__input {
  width: min(220px, 60vw);
  background: none; border: none;
  border-bottom: 1px solid rgba(250, 250, 248, 0.4);
  color: var(--cream);
  font-family: var(--sans); font-size: 1.4rem; letter-spacing: 0.6em;
  text-align: center;
  padding: 0.5rem 0;
  outline: none;
  transition: border-color 0.3s;
}
.gate__input:focus { border-color: var(--rose); }
.gate__btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--rose);
  background: none; color: var(--rose);
  font-size: 1.1rem; cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.gate__btn:hover { background: var(--rose); color: var(--plum); }
.gate__error {
  min-height: 1.2em;
  font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--rose);
}
.gate.is-wrong .gate__form { animation: shake 0.45s var(--ease); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-9px); }
  55% { transform: translateX(7px); }
  80% { transform: translateX(-4px); }
}

/* ── Preloader ── */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--plum);
  display: grid; place-items: center;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.preloader__ar {
  font-family: var(--arabic);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--blush);
  animation: fadeUp 1.1s var(--ease) both;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Header ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.4rem clamp(1.5rem, 5vw, 4rem);
  transition: transform 0.5s var(--ease), background 0.4s, padding 0.4s, box-shadow 0.4s;
  /* Over the dark hero at the top */
  color: var(--cream);
}
.header.is-scrolled {
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.9rem clamp(1.5rem, 5vw, 4rem);
  box-shadow: 0 1px 0 var(--line);
  color: var(--chocolate);
}
.header.is-hidden { transform: translateY(-110%); }
.header__logo {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 600;
  justify-self: start;
  letter-spacing: 0.04em;
}
.header__logo em { color: var(--rose); font-style: normal; }
.header.is-scrolled .header__logo em { color: var(--burgundy); }
.header__nav {
  display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem);
  justify-self: center;
}
.header__nav a {
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  position: relative; padding: 0.2rem 0;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta {
  justify-self: end;
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 0.6rem 1.5rem; border-radius: 999px;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.header__cta:hover { background: var(--cream); color: var(--plum); border-color: var(--cream); }
.header.is-scrolled .header__cta:hover { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.header__burger { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 1rem 2.2rem; border-radius: 999px;
  border: 1px solid var(--burgundy);
  transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, box-shadow 0.35s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(192, 97, 131, 0.55); }
.btn--solid { background: var(--burgundy); color: var(--cream); }
.btn--solid:hover { background: var(--burgundy-deep); }
.btn--light { background: var(--blush); border-color: var(--blush); color: var(--plum); }
.btn--light:hover { background: var(--rose); border-color: var(--rose); }
.btn--lg { padding: 1.2rem 2.8rem; font-size: 0.84rem; }

/* ── Hero (full-bleed editorial) ── */
.hero {
  position: relative;
  height: 100svh; min-height: 620px;
  overflow: hidden;
  background: var(--plum);
  isolation: isolate;
}
/* Blurred, darkened backdrop */
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 32%;
  filter: grayscale(0.35) brightness(0.62) blur(3px);
  transform: scale(1.12);
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(60% 55% at 50% 34%, transparent 40%, rgba(41, 36, 38, 0.55) 100%),
    linear-gradient(to bottom, rgba(41, 36, 38, 0.55) 0%, transparent 26%, transparent 52%, rgba(41, 36, 38, 0.88) 100%);
  pointer-events: none;
}
/* Sharp focus-frame crop with crosshair */
.hero__focus {
  position: absolute; z-index: 2;
  top: clamp(4.5rem, 11vh, 8.5rem); left: 50%;
  transform: translateX(-50%);
  width: clamp(220px, 30vw, 400px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  outline: 1px solid rgba(250, 250, 248, 0.5);
  outline-offset: 8px;
  box-shadow:
    0 0 0 1px rgba(250, 250, 248, 0);
  opacity: 0; transform: translateX(-50%) scale(0.94);
  animation: focusIn 1.2s var(--ease) 0.4s forwards;
}
.hero__focus::before, .hero__focus::after {
  /* corner brackets */
  content: ""; position: absolute; width: 22px; height: 22px;
  border: 1px solid var(--cream); z-index: 3;
}
.hero__focus::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.hero__focus::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.hero__focus img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  filter: grayscale(0.35) contrast(1.02);
}
.hero__cross {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--cream); font-size: 1.3rem; font-weight: 300;
  z-index: 3; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
@keyframes focusIn {
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
/* Corner labels */
.hero__side {
  position: absolute; z-index: 3;
  top: 46%;
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cream);
  opacity: 0; animation: fadeIn 1s var(--ease) 0.7s forwards;
}
.hero__side--left { left: clamp(1.5rem, 5vw, 4rem); }
.hero__side--right { right: clamp(1.5rem, 5vw, 4rem); text-align: right; }
.hero__side span { opacity: 0.82; }
@keyframes fadeIn { to { opacity: 1; } }
/* Giant name across the bottom */
.hero__name {
  position: absolute; z-index: 3;
  left: 0; right: 0; bottom: clamp(5rem, 13vh, 9rem);
  padding: 0 clamp(0.5rem, 2vw, 1.5rem);
  display: flex; align-items: baseline; justify-content: center;
  gap: clamp(0.6rem, 2.5vw, 2rem);
  line-height: 0.9;
  color: var(--cream);
}
.hero__name-en, .hero__name-ar {
  font-size: clamp(3.4rem, 15vw, 12rem);
  font-weight: 500;
  display: inline-block;
  transform: translateY(105%);
}
body.is-loaded .hero__name-en, body.is-loaded .hero__name-ar {
  transform: translateY(0);
  transition: transform 1.1s var(--ease) 0.3s;
}
.hero__name-en { font-family: var(--serif); letter-spacing: -0.02em; }
.hero__name-ar { font-family: var(--arabic); color: var(--rose); }
body.is-loaded .hero__name-ar { transition-delay: 0.42s; }

/* ── Sections ── */
.section { padding: clamp(5rem, 12vh, 8.5rem) clamp(1.5rem, 5vw, 4rem); max-width: 1250px; margin: 0 auto; }
.section__head { margin-bottom: clamp(2.2rem, 5vh, 3.5rem); }
.section__num {
  font-family: var(--serif); font-style: italic;
  color: var(--rose); font-size: 1.1rem;
  display: block; margin-bottom: 0.4rem;
}
.section__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
}
.section__sub {
  margin-top: 0.9rem;
  font-size: 0.95rem; letter-spacing: 0.06em;
  color: var(--chocolate); opacity: 0.85;
  max-width: 46ch;
}

/* ── Model ── */
.model { border-top: 1px solid var(--line); }
.model__lede {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 400; line-height: 1.4;
  max-width: 34ch; margin-bottom: clamp(3rem, 7vh, 5rem);
  color: var(--chocolate);
}
.model__cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  perspective: 1400px;
  max-width: 900px;
}
.card3d { cursor: default; }
.card3d--offset { margin-top: clamp(2rem, 6vh, 5rem); }
.card3d__inner {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(90, 60, 72, 0.45);
  will-change: transform;
}
.card3d:hover .card3d__inner { box-shadow: 0 45px 80px -35px rgba(90, 60, 72, 0.6); }
.card3d img { width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; }
.card3d figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.4rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(41, 36, 38, 0.72), transparent);
  color: var(--cream);
  font-family: var(--serif); font-size: 1.3rem;
}
.card3d figcaption span {
  display: block;
  font-family: var(--sans); font-size: 0.64rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blush); margin-bottom: 0.25rem;
}
/* ── Brands 3D carousel ── */
.brands { border-top: 1px solid var(--line); }
.carousel { position: relative; }
.carousel__stage {
  position: relative;
  height: clamp(400px, 58vh, 520px);
  perspective: 1400px;
  transform-style: preserve-3d;
  touch-action: pan-y;
}
.ccard {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(230px, 26vw, 320px);
  aspect-ratio: 3 / 4.1;
  margin: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--plum);
  box-shadow: 0 32px 64px -32px rgba(41, 36, 38, 0.55);
  transition: transform 0.75s var(--ease), opacity 0.75s var(--ease), filter 0.75s var(--ease);
  will-change: transform;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.ccard__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ccard::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(41, 36, 38, 0.82) 0%, transparent 45%);
}
.ccard__info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.8rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  color: var(--cream);
}
.ccard__logo {
  grid-row: 1 / 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(250, 250, 248, 0.4);
  background: #fff;
  display: grid; place-items: center;
}
.ccard__logo img { width: 100%; height: 100%; object-fit: cover; }
.ccard__logo--mono {
  font-family: var(--serif); font-size: 1.25rem;
  color: var(--burgundy); background: var(--blush);
}
.ccard__info h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.3rem; line-height: 1.1;
}
.ccard__info h3 small { font-size: 0.62em; font-style: italic; font-weight: 400; color: var(--rose); }
.ccard__info p {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose);
}
.ccard.is-active { cursor: default; }
.ccard.is-active[data-url] { cursor: pointer; }
.carousel__nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1.6rem;
  margin-top: 2rem;
}
.carousel__btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--burgundy);
  background: none; color: var(--burgundy);
  font-size: 1.05rem; cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.carousel__btn:hover { background: var(--burgundy); color: var(--cream); transform: translateY(-2px); }
.carousel__dots { display: flex; gap: 0.6rem; }
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: var(--blush);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.carousel__dot.is-active { background: var(--burgundy); transform: scale(1.35); }
.brands__cta {
  text-align: center;
  margin-top: clamp(2rem, 4vh, 3rem);
}
.brands__cta p {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  margin-bottom: 1.6rem;
}

/* ── Interiors ── */
.interiors { border-top: 1px solid var(--line); }
.interiors__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

/* Floor-plan panel */
.interiors__panel {
  position: sticky; top: 6.5rem;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1rem;
  box-shadow: 0 30px 60px -38px rgba(41, 36, 38, 0.4);
}
#spaceCanvas {
  width: 100%;
  aspect-ratio: 460 / 500;
  border-radius: 0.7rem;
  background: var(--cream);
  display: block;
}
.interiors__panel figcaption {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.4rem 0.2rem;
  font-family: var(--serif); font-size: 1.02rem;
  color: var(--chocolate);
}
.interiors__panel figcaption span {
  font-family: var(--sans);
  font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--burgundy);
}

.interiors__lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 400; line-height: 1.5;
  color: var(--chocolate);
  max-width: 44ch;
  margin-bottom: 2.2rem;
}
.interiors__services { margin-bottom: 2.4rem; }
.interiors__services li {
  display: flex; gap: 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.interiors__services li:last-child { border-bottom: 1px solid var(--line); }
.interiors__services li > span {
  font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--burgundy);
  min-width: 2.2rem;
}
.interiors__services h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.3rem; margin-bottom: 0.15rem;
}
.interiors__services p { font-size: 0.92rem; color: var(--chocolate); opacity: 0.85; }
.interiors__actions {
  display: flex; align-items: center; gap: 1.1rem;
}
.iconlink {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.iconlink:hover { background: var(--burgundy); color: var(--cream); transform: translateY(-2px); }

.interiors__lede strong { font-weight: 500; color: var(--burgundy); }

/* Past work & projects */
.projects { margin-top: clamp(3rem, 7vh, 4.5rem); }
.projects__list {
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.projects__list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.4rem 0.5rem;
  border-top: 1px solid var(--line);
  transition: background 0.35s, padding 0.35s;
}
.projects__list li:hover { background: rgba(237, 219, 225, 0.28); padding-left: 1.1rem; }
.projects__year {
  font-family: var(--serif); font-style: italic;
  color: var(--rose); font-size: 1rem;
}
.projects__list strong {
  display: block;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.25;
}
.projects__list p { font-size: 0.88rem; color: var(--chocolate); opacity: 0.8; }
.projects__tag {
  font-style: normal;
  font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--burgundy);
  border: 1px solid var(--burgundy);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  white-space: nowrap;
}

/* Experience & education cards */
.xp { margin-top: clamp(3rem, 7vh, 4.5rem); }
.xp__head {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 500; color: var(--burgundy);
  margin-bottom: 1.4rem;
}
.xp__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.xp__card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: #fff;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.xp__card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--rose);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.xp__card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(41, 36, 38, 0.4); }
.xp__card:hover::before { transform: scaleX(1); }
.xp__year {
  display: block;
  font-family: var(--serif); font-style: italic;
  color: var(--rose); font-size: 1rem;
  margin-bottom: 0.5rem;
}
.xp__card strong {
  display: block;
  font-family: var(--serif); font-weight: 500;
  font-size: 1.22rem; line-height: 1.25;
  margin-bottom: 0.3rem;
}
.xp__card p { font-size: 0.85rem; color: var(--chocolate); opacity: 0.8; }

/* ── Contact ── */
.contact {
  max-width: none;
  background: var(--plum);
  color: var(--cream);
  text-align: center;
  border-radius: 2.5rem 2.5rem 0 0;
}
.contact__inner { max-width: 900px; margin: 0 auto; }
.contact__eyebrow {
  font-size: 0.74rem; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 1.8rem;
}
.contact__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.8rem); line-height: 1.02;
  margin-bottom: 3rem;
}
.contact__title em { color: var(--rose); }
.contact__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 3.5rem; }
.contact__links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  padding-top: 2.6rem;
  border-top: 1px solid rgba(237, 219, 225, 0.2);
}
.contact__links a {
  font-family: var(--serif); font-size: 1.3rem;
  display: flex; flex-direction: column; gap: 0.15rem;
  transition: color 0.35s;
}
.contact__links a:hover { color: var(--rose); }
.contact__links small {
  font-family: var(--sans); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--blush);
}

/* ── Footer ── */
.footer {
  background: var(--plum); color: rgba(250, 250, 248, 0.72);
  text-align: center;
  padding: 0 1.5rem 3rem;
  font-size: 0.78rem; letter-spacing: 0.12em;
}
/* ── Reveal on scroll ── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Contact link inside the mobile overlay — hidden on desktop */
.nav__contact { display: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .interiors__grid { grid-template-columns: 1fr; }
  .interiors__panel { position: static; max-width: 460px; margin: 0 auto; width: 100%; }
  .xp__grid { grid-template-columns: 1fr; }

  .header { grid-template-columns: 1fr auto; }
  .header__cta { display: none; }
  .header__nav {
    position: fixed; inset: 0;
    background: var(--cream);
    flex-direction: column; justify-content: center;
    gap: 2.2rem;
    clip-path: circle(0% at calc(100% - 2.6rem) 2.4rem);
    transition: clip-path 0.7s var(--ease);
    color: var(--chocolate);
  }
  .header__nav.is-open { clip-path: circle(150% at calc(100% - 2.6rem) 2.4rem); }
  .header__nav a { font-size: 1rem; }
  .nav__contact { display: block; }
  .header__burger {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer;
    justify-self: end;
    z-index: 10; padding: 0.4rem;
    color: inherit; /* buttons don't inherit color by default */
  }
  .header__burger span {
    width: 26px; height: 1.5px; background: currentColor;
    transition: transform 0.4s var(--ease);
  }
  .header__burger.is-open span { background: var(--chocolate); }
  .header__burger.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .header__burger.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .model__cards { grid-template-columns: 1fr; max-width: 420px; }
  .card3d--offset { margin-top: 0; }
  .contact { border-radius: 1.6rem 1.6rem 0 0; }

  /* Hero tuned for phones */
  .hero { min-height: 560px; }
  .hero__focus {
    top: clamp(5rem, 12vh, 7rem);
    width: min(62vw, 250px);
  }
  .hero__side {
    top: auto; bottom: 34%;
    font-size: 0.6rem; letter-spacing: 0.2em;
  }
  .hero__name {
    bottom: clamp(3.5rem, 10vh, 6rem);
    gap: 0.7rem;
  }
  .hero__name-en, .hero__name-ar { font-size: clamp(2.5rem, 13vw, 4rem); }

  /* Carousel tuned for phones */
  .carousel__stage { height: 380px; }
  .ccard { width: min(64vw, 250px); }
  .carousel__btn { width: 42px; height: 42px; }

  /* Interiors */
  .interiors__panel { padding: 0.8rem; }
  .xp__card { padding: 1.3rem 1.2rem 1.1rem; }
  .projects__list li {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 0.4rem;
  }
  .projects__year { grid-column: 1; }
  .projects__tag { grid-column: 2; grid-row: 1; }
  .projects__list li > div { grid-column: 1 / -1; }

  /* Type rhythm */
  .section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .section__sub { font-size: 0.88rem; }
  .btn--lg { padding: 1.05rem 2.2rem; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__name-en, .hero__name-ar { transform: none; }
  .hero__focus, .hero__side { opacity: 1; }
}
