/* Al Khaleej Ceramics · white & graphite, product-page style */
:root {
  --white: #ffffff;
  --grey: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --black: #000000;
  --graphite: #161617;
  --graphite-2: #2a2a2d;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --cream: #f5f0e8;
  --cream-2: #ece3d3;
  --cream-3: #e2d5bf;
  --gold: #b8924a;
  --brown: #1a1410;
  --blue: var(--cream-2);       /* button fill (kept name for older rules) */
  --blue-hover: var(--cream-3);
  --link: #8a6a32;
  --link-dark: #c9a96e;

  /* The logo is set in ITC Panache. Marcellus is the closest free match; a licensed Panache webfont takes over automatically. */
  --font: "ITC Panache", "Marcellus", "Palatino Linotype", Georgia, serif;
  --font-ar: "Vazirmatn", "Marcellus", sans-serif;
  --nav-h: 52px;
  --radius: 28px;
  --max: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 19px; line-height: 1.5; letter-spacing: 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(184, 146, 74, .3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; background: var(--brown); color: #fff; padding: 10px 16px; border-radius: 99px; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); }

.container { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding-inline: var(--pad); }
.center { text-align: center; }
.grey { background: var(--grey); }
.dark { background: var(--black); color: var(--on-dark); }

/* type */
.h-hero { font-size: clamp(48px, 8vw, 96px); font-weight: 400; line-height: 1.03; letter-spacing: -0.015em; }
.h-section { font-size: clamp(40px, 5.6vw, 72px); font-weight: 400; line-height: 1.05; letter-spacing: -0.012em; }
.lead-grey { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; color: var(--ink-2); font-weight: 400; margin-top: 16px; letter-spacing: -0.015em; }
.dark .lead-grey { color: var(--on-dark-2); }

/* buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border-radius: 980px; background: var(--cream-2); color: var(--brown); font-size: 17px; letter-spacing: .01em;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.pill:hover { background: var(--gold); color: #fff; }
.dark .pill, .nav.on-dark .pill { background: var(--cream); color: var(--brown); }
.dark .pill:hover, .nav.on-dark .pill:hover { background: var(--gold); color: #fff; }
.pill-ink { background: var(--brown); color: var(--cream); }
.pill-ink:hover { background: var(--gold); color: #fff; }
.pill:active { transform: scale(.96); }
.pill-sm { min-height: 30px; padding: 0 14px; font-size: 14px; }
.pill-lg { min-height: 56px; padding: 0 32px; font-size: 19px; }
.more { color: var(--link); font-size: 17px; display: inline-flex; align-items: center; gap: 4px; }
.more::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform .25s var(--ease); }
.more:hover { text-decoration: underline; }
.more:hover::after { transform: translateX(3px); }
.more-light { color: var(--link-dark); }
.center-block { display: flex; justify-content: center; margin-top: 36px; }

/* ================= NAV ================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .45s var(--ease-out);
}
.nav-inner { max-width: calc(var(--max) + 2 * var(--pad)); height: 100%; margin: 0 auto; padding-inline: var(--pad); display: flex; align-items: center; gap: 32px; }
.nav-logo img { height: 26px; width: auto; transition: filter .4s var(--ease); }
.nav-links { display: flex; gap: 30px; margin: 0 auto; font-size: 14px; letter-spacing: .02em; }
.nav-links a, .nav-text { color: inherit; opacity: .82; transition: opacity .2s; position: relative; }
.nav-links a:hover, .nav-text:hover, .nav-links a.is-on { opacity: 1; }
.nav-links a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: currentColor; }
.nav-actions { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav-lang { font-family: var(--font-ar); font-size: 15px; opacity: .85; padding: 4px 2px; }
.nav-lang:hover { opacity: 1; color: var(--gold); }
.nav-burger { display: none; width: 32px; height: 32px; position: relative; }
.nav-burger span { position: absolute; left: 7px; right: 7px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.nav-burger span:first-child { top: 12px; }
.nav-burger span:last-child { top: 19px; }
.nav-burger[aria-expanded="true"] span:first-child { top: 15.5px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { top: 15.5px; transform: rotate(-45deg); }
.nav-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.nav-progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.nav.on-dark { background: rgba(22, 22, 23, .8); color: var(--on-dark); }
.nav.on-dark .nav-logo img { filter: invert(1); }
.nav.is-hidden { transform: translateY(-100%); }
.nav:has(~ .menu:not([hidden])) { background: var(--white); color: var(--ink); }
.nav:has(~ .menu:not([hidden])) .nav-logo img { filter: none; }

.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: var(--white);
  padding: 24px var(--pad);
}
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu a { font-size: 28px; font-weight: 400; letter-spacing: -0.01em; padding: 6px 0; display: block; }

/* ================= HERO ================= */
.hero { padding-top: calc(var(--nav-h) + clamp(56px, 9vh, 110px)); }
.hero-copy { text-align: center; padding-inline: var(--pad); }
.hero-kicker { font-size: clamp(19px, 1.8vw, 24px); font-weight: 400; color: var(--link); letter-spacing: -0.015em; }
.hero-title { font-size: clamp(52px, 9.4vw, 136px); font-weight: 400; line-height: 1; letter-spacing: -0.01em; margin-top: 10px; }
.hero-title .line { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { font-size: clamp(19px, 2vw, 28px); font-weight: 400; color: var(--ink); margin-top: 18px; letter-spacing: -0.01em; }
.hero-cta { display: flex; gap: 28px; align-items: center; justify-content: center; margin-top: 30px; }

.hero-pin { height: 100vh; margin-top: clamp(48px, 7vh, 80px); position: relative; }
.hero-media { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 7vw 10vh 7vw round var(--radius)); will-change: clip-path; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.12); transform-origin: 50% 60%; will-change: transform; display: block; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 45%); opacity: 0; }
.hero-over { position: absolute; left: var(--pad); bottom: clamp(32px, 7vh, 72px); color: #fff; font-size: clamp(32px, 4.6vw, 64px); font-weight: 400; line-height: 1.05; letter-spacing: -0.012em; opacity: 0; }

/* ================= STATEMENT ================= */
.statement { padding: clamp(120px, 18vh, 200px) var(--pad) clamp(100px, 14vh, 160px); max-width: calc(1000px + 2 * var(--pad)); margin: 0 auto; }
.scrub-text { font-size: clamp(30px, 4.2vw, 56px); font-weight: 400; line-height: 1.12; letter-spacing: -0.012em; }
.scrub-text .w { opacity: .14; }
.royal { margin-top: clamp(80px, 12vh, 140px); }
.royal-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.royal-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transform-origin: 50% 0%; }
.royal figcaption { margin-top: 16px; color: var(--ink-2); font-size: 15px; max-width: 60ch; }

/* ================= PORCELAIN ================= */
.porcelain { padding-bottom: clamp(100px, 14vh, 160px); }
.porcelain-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 40px) var(--pad) 40px; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.porcelain-head { text-align: center; }
.porcelain-body { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; margin-top: 24px; }
.tile3d-stage { height: min(56vh, 520px); display: grid; place-items: center; perspective: 1800px; }
.tile3d { position: relative; width: min(24vw, 300px); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(0deg) rotateZ(0deg); will-change: transform; }
.tile3d-spin { position: absolute; inset: 0; transform-style: preserve-3d; }
.layer { position: absolute; inset: 0; transform-style: preserve-3d; --t: 14px; }
.layer i { position: absolute; display: block; }
.layer .e1 { left: 0; bottom: 0; width: 100%; height: var(--t); transform-origin: 50% 100%; transform: rotateX(90deg); }
.layer .e2 { right: 0; top: 0; width: var(--t); height: 100%; transform-origin: 100% 50%; transform: rotateY(-90deg); }
.layer-top { background: url("../assets/img/marble.jpg") 50% 78% / 240% no-repeat; --t: 8px; }
.layer-top .e1 { background: #e7e1d6; } .layer-top .e2 { background: #cfc8bb; }
.gloss { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); background-size: 250% 100%; background-position: 120% 0; mix-blend-mode: screen; }
.layer-body { background: #d9d3c8; --t: 26px; }
.layer-body .e1 { background: #c4bdb0; } .layer-body .e2 { background: #b1aa9d; }
.layer-back { background: repeating-linear-gradient(90deg, #8f8a82 0 18px, #7c7770 18px 24px); --t: 10px; }
.layer-back .e1 { background: #6e6a63; } .layer-back .e2 { background: #615d57; }
.layer-notes { display: flex; flex-direction: column; gap: 36px; }
.layer-notes li { opacity: .25; transition: opacity .5s var(--ease); }
.layer-notes li.is-on { opacity: 1; }
.layer-notes h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; }
.layer-notes p { color: var(--on-dark-2); margin-top: 6px; max-width: 34ch; font-size: 17px; }

/* ================= GRANNITTO ================= */
.grannitto { background: var(--cream); color: var(--brown); padding-block: clamp(110px, 16vh, 180px); overflow: hidden; }
.grannitto .lead-grey { color: #5b5048; max-width: 34ch; }
.grannitto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.grannitto-logo { width: min(320px, 70%); margin-bottom: 28px; clip-path: inset(0 0 0 0); }
.grannitto-logo img { width: 100%; height: auto; mix-blend-mode: multiply; }
.grannitto-facts { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 36px 0 40px; }
.grannitto-facts li { display: flex; flex-direction: column; }
.grannitto-facts strong { font-size: clamp(24px, 2.2vw, 30px); font-weight: 400; }
.grannitto-facts span { font-size: 15px; color: #5b5048; }
.grannitto-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.grannitto-img img { width: 100%; height: 115%; object-fit: cover; }

/* ================= SURFACES ================= */
.surfaces { padding-block: clamp(110px, 16vh, 180px); }
.picker-info { margin-top: 24px !important; }
.picker { margin-top: clamp(40px, 6vh, 64px); }
.picker-view { position: relative; aspect-ratio: 16 / 9; max-height: 56vh; width: 100%; border-radius: var(--radius); overflow: hidden; background: #e8e8ed; }
.picker-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
.picker-info { text-align: center; margin-top: 32px; min-height: 64px; }
.picker-name { font-size: 28px; font-weight: 400; letter-spacing: -0.01em; }
.picker-meta { color: var(--ink-2); font-size: 17px; margin-top: 2px; }
.swatches { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 24px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); width: 76px; }
.sw img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 80%; box-shadow: 0 0 0 2px var(--grey), 0 0 0 3px transparent; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.sw:hover img { transform: scale(1.08); }
.sw.is-on { color: var(--ink); font-weight: 400; }
.sw.is-on img { box-shadow: 0 0 0 3px var(--grey), 0 0 0 5px var(--gold); }

/* ================= NUMBERS ================= */
.numbers { padding-block: clamp(110px, 16vh, 180px); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: clamp(48px, 7vh, 80px); }
.b { background: var(--graphite); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 36px); grid-column: span 2; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.b-num { font-size: clamp(56px, 6vw, 96px); font-weight: 400; letter-spacing: -0.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.b-label { color: var(--on-dark-2); font-size: 17px; margin-top: 10px; max-width: 30ch; }
.b-title { font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; letter-spacing: -0.01em; }
.b-years { min-height: 380px; }
.b-photo { grid-column: span 4; padding: 0; min-height: 380px; }
.b-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.b-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0) 60%); }
.b-over { position: relative; z-index: 1; padding: clamp(24px, 2.6vw, 36px); }
.b-over .b-label { color: rgba(255,255,255,.82); }
.b-grannitto { background: #ffffff; color: var(--ink); justify-content: space-between; transition: transform .5s var(--ease-out); }
.b-grannitto:hover { transform: scale(1.02); }
.b-grannitto img { width: 72%; height: auto; margin: 8px 0 24px; }
.b-grannitto .b-label { color: var(--ink-2); }
.b-link { color: var(--link); white-space: nowrap; }
.b-link::after { content: " ›"; }
.b-certs { grid-column: span 4; justify-content: space-between; gap: 28px; }
.b-certs ul { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.b-certs li { font-size: clamp(22px, 2vw, 28px); font-weight: 400; letter-spacing: -0.01em; display: flex; flex-direction: column; }
.b-certs li span { font-size: 14px; font-weight: 400; color: var(--on-dark-2); letter-spacing: 0; margin-top: 2px; }
.b-award { justify-content: space-between; }
.b-made { background: var(--cream); color: var(--brown); justify-content: flex-end; }
.b-made .b-label { color: #5b5048; }
.b-award .b-num { margin-top: auto; padding-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(56px, 8vh, 96px); }
.stats dt { font-size: clamp(56px, 7vw, 104px); font-weight: 400; letter-spacing: -0.01em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--on-dark); }
.stats dd { color: var(--on-dark-2); margin-top: 12px; font-size: 17px; }

/* ================= SPACES ================= */
.spaces { background: var(--white); }
.spaces-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--nav-h); }
.spaces-head { width: 100%; }
.track { display: flex; gap: 20px; padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2)); margin-top: clamp(28px, 4vh, 48px); width: max-content; will-change: transform; }
.track-bar { margin-top: 28px; width: 100%; }
.track-bar span { display: block; width: 240px; height: 4px; border-radius: 4px; background: #e8e8ed; overflow: hidden; position: relative; }
.track-bar span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); }
.card { position: relative; width: min(62vw, 760px); aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; flex: none; background: #e8e8ed; }
.card-img { position: absolute; inset: 0; overflow: hidden; }
.card-img img { width: 120%; max-width: none; height: 100%; object-fit: cover; margin-left: -10%; will-change: transform; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); }
.card-text { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; color: #fff; }
.card h3 { font-size: clamp(28px, 2.6vw, 40px); font-weight: 400; letter-spacing: -0.01em; }
.card p { font-size: 17px; max-width: 40ch; margin-top: 4px; }
.card span { display: block; font-size: 14px; color: rgba(255,255,255,.75); margin-top: 10px; }

/* ================= STORY ================= */
.story { padding-block: clamp(110px, 16vh, 180px); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vh, 72px); }
.story-frame { position: sticky; top: calc(var(--nav-h) + 12vh); align-self: start; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #fff; }
.story-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); }
.story-frame img[data-contain] { object-fit: contain; padding: 18%; background: #fff; }
.story-frame img.is-on { clip-path: inset(0 0 0 0); }
.steps { display: flex; flex-direction: column; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s var(--ease); }
.step.is-on { opacity: 1; }
.step-img { display: none; }
.step h3 { font-size: clamp(56px, 7vw, 104px); font-weight: 400; letter-spacing: -0.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.step p { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink-2); margin-top: 16px; max-width: 30ch; font-weight: 400; }
.step.is-on p { color: var(--ink); }

/* ================= CLIENTS ================= */
.clients { padding-block: clamp(110px, 16vh, 180px); overflow: hidden; }
.ticker { margin-top: clamp(48px, 7vh, 80px); display: flex; flex-direction: column; gap: 12px; }
.ticker-row { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker-row.rev { animation-direction: reverse; animation-duration: 70s; }
.ticker-row span { font-size: clamp(32px, 4vw, 56px); font-weight: 400; letter-spacing: -0.012em; white-space: nowrap; color: #8e8e93; }
.ticker:hover .ticker-row { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ================= SHOWROOMS ================= */
.showrooms { padding-block: clamp(110px, 16vh, 180px); }
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 6vh, 64px); }
.room { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease-out); }
.room:hover { transform: translateY(-6px); }
.room-img { aspect-ratio: 16 / 10; overflow: hidden; }
.room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.room:hover .room-img img { transform: scale(1.05); }
.room-text { padding: 28px 32px 32px; }
.room h3 { font-size: 32px; font-weight: 400; letter-spacing: -0.01em; }
.room p { font-size: 17px; color: var(--ink-2); margin-top: 6px; }
.room p a:hover { color: var(--link); }
.room-links { display: flex; align-items: center; gap: 22px; margin-top: 22px; }

/* ================= CTA ================= */
.cta { padding-block: clamp(130px, 22vh, 240px); position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; transform: scale(1.15); }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,.85) 75%); }
.cta-inner { position: relative; z-index: 1; }
.cta .lead-grey { color: #d2d2d7; }
.cta .lead-grey { max-width: 36ch; margin-inline: auto; }
.cta-actions { display: flex; gap: 28px; justify-content: center; align-items: center; margin-top: 40px; flex-wrap: wrap; }

/* ================= FOOTER ================= */
.footer { background: var(--grey); color: var(--ink-2); font-size: 13px; padding-block: 48px 28px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer h3 { color: var(--ink); font-size: 13px; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 10px; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: 1px solid #d2d2d7; }

/* reveal: only hidden when JS + GSAP are running */
html.js.motion .reveal { opacity: 0; transform: translateY(40px); }
html.js.motion [data-hero] { opacity: 0; }

/* ================= TABLET ================= */
@media (max-width: 1024px) {
  .nav-links { gap: 20px; }
  .certs { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b, .b-photo, .b-certs { grid-column: span 1; }
  .b-photo, .b-certs { grid-column: span 2; }
}

/* ================= PHONE ================= */
@media (max-width: 820px) {
  .nav-links, .nav-text { display: none; }
  .nav-burger { display: block; }
  .nav-inner { justify-content: space-between; }
  .nav-actions { gap: 10px; }

  .hero-cta { flex-direction: column; gap: 16px; }
  .hero-pin { height: 70vh; }
  .hero-media { clip-path: inset(0 var(--pad) 0 var(--pad) round 22px); }

  .porcelain-pin { min-height: 0; padding-top: 110px; }
  .porcelain-body { grid-template-columns: 1fr; gap: 16px; }
  .tile3d-stage { height: 46vh; }
  .tile3d { width: 58vw; }
  .layer-notes { gap: 18px; }
  .layer-notes li { opacity: 1; }
  .layer-notes p { font-size: 15px; }
  .certs { grid-template-columns: repeat(2, 1fr); }

  .picker-view { aspect-ratio: 4 / 3; border-radius: 22px; }
  .sw { width: 64px; }
  .sw img { width: 44px; height: 44px; }

  .spaces-pin { height: auto; padding-block: 110px 0; overflow: visible; }
  .track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; }
  .track::-webkit-scrollbar { display: none; }
  .card { width: 84vw; aspect-ratio: 3 / 4; scroll-snap-align: center; border-radius: 22px; }
  .card-img img { width: 100%; margin-left: 0; }

  .story-grid { display: block; }
  .story-frame { display: none; }
  .step { min-height: 0; opacity: 1; margin-bottom: 64px; }
  .step-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 22px; margin-bottom: 20px; }
  .step-img[data-contain] { object-fit: contain; background: #fff; padding: 12% 16%; }
  .step p { color: var(--ink); }

  .rooms { grid-template-columns: 1fr; }
  .grannitto-grid { grid-template-columns: 1fr; }
  .grannitto-img { aspect-ratio: 4 / 3; }
  .nav-lang { display: none; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .b, .b-photo, .b-certs { grid-column: span 1; min-height: 200px; }
  .b-years { min-height: 200px; }
  .b-photo { min-height: 300px; }
  .track-bar { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
  .hero-media { clip-path: none; }
  .hero-media img, .hero-media video { transform: none; }
  .hero-shade, .hero-over { opacity: 1; }
  .scrub-text .w { opacity: 1; }
  .ticker-row { animation: none; }
  .layer-notes li { opacity: 1; }
  .story-frame img { clip-path: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ================= RIGHT-TO-LEFT (Arabic) ================= */
[dir="rtl"] body { font-family: var(--font-ar); letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .h-hero, [dir="rtl"] .h-section, [dir="rtl"] .b-num, [dir="rtl"] .step h3,
[dir="rtl"] .scrub-text, [dir="rtl"] .hero-title, [dir="rtl"] .hero-over, [dir="rtl"] .ticker-row span { font-weight: 700; letter-spacing: 0; line-height: 1.25; }
[dir="rtl"] .hero-title { line-height: 1.2; }
[dir="rtl"] .scrub-text { line-height: 1.45; }
[dir="rtl"] .nav-lang { font-family: var(--font); font-size: 14px; }
[dir="rtl"] .more::after { content: "‹"; }
[dir="rtl"] .more:hover::after { transform: translateX(-3px); }
[dir="rtl"] .b-link::after { content: " ‹"; }
[dir="rtl"] .nav-progress span, [dir="rtl"] .track-bar span::after { transform-origin: right; }
[dir="rtl"] .hero-over { left: auto; right: var(--pad); }
[dir="rtl"] .nav-links a.is-on::after { left: 0; right: 0; }
[dir="rtl"] .ticker-row { animation-name: tick-rtl; }
@keyframes tick-rtl { to { transform: translateX(50%); } }
[dir="rtl"] .b-num, [dir="rtl"] .step h3, [dir="rtl"] .grannitto-facts strong { font-family: var(--font); font-weight: 400; }
[dir="rtl"] .layer-notes p, [dir="rtl"] .lead-grey { line-height: 1.6; }
