/* مصنع المجدوب v2 — "the gantry": cool yard concrete, graphite steel and the crane's safety orange.
   Motion is opt-in: html.js turns on hidden-before-reveal states, html.rm (or the media query) turns them off. */
:root {
  --concrete: #e6e4df;
  --concrete-2: #d6d3cc;
  --white: #f7f6f3;
  --graphite: #1d2125;
  --graphite-2: #4b5158;
  --steel: #8d939a;
  --orange: #c84b16;
  --orange-hi: #e2652b;
  --bronze: #5a3a24;
  --line: #c9c5bd;
  --display: "El Messiri", "Noto Naskh Arabic", serif;
  --text: "Mada", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 44px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--white); color: var(--graphite);
  font: 400 1.0625rem/1.75 var(--text); letter-spacing: normal; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: normal; }
p { margin: 0; }
figure { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--graphite); color: var(--white); padding: 8px 14px; z-index: 60; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Buttons: lift on hover, press down on click */
.btn {
  --bg: var(--orange); --fg: #fff;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .6em; min-height: 50px; padding: .6em 1.4em;
  font: 700 1rem/1.2 var(--text); text-decoration: none; cursor: pointer;
  color: var(--fg); background: var(--bg); border: 1.5px solid var(--bg); border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn::after { /* polishing glint that crosses the button on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-130%);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(200, 75, 22, .9); }
.btn:hover::after { transform: translateX(130%); transition: transform .7s var(--ease); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .08s; }
.btn--ghost { --bg: transparent; --fg: var(--graphite); border-color: var(--graphite); }
.btn--ghost:hover { box-shadow: 0 10px 22px -14px rgba(29, 33, 37, .7); background: var(--graphite); color: var(--white); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(-4px); }
[dir="ltr"] .btn:hover .arr { transform: translateX(4px); }

/* Header: slides away on scroll down, back on scroll up */
.top {
  position: fixed; inset-inline: 0; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--white) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: transform .35s var(--ease), border-color .2s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top.is-away { transform: translateY(-100%); }
.top__in { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; }
.brand img { width: 40px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand b { display: block; font: 700 1.45rem/1.15 var(--display); }
.brand small { display: block; font-size: .8rem; color: var(--graphite-2); line-height: 1.3; }
.nav { display: flex; gap: 26px; }
.nav a { position: relative; text-decoration: none; font-weight: 500; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
[dir="ltr"] .nav a::after { transform-origin: left; }
.nav a:hover::after, .nav a.is-here::after { transform: scaleX(1); }
.lang { font-weight: 700; font-size: .9rem; text-decoration: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; transition: background-color .2s; }
.lang:hover { background: var(--concrete); }
.top .btn { min-height: 42px; padding-inline: 1.1em; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; color: var(--graphite); }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }
@media (max-width: 920px) {
  .nav { position: absolute; inset-inline: 0; top: 100%; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 6px var(--gut) 14px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav a { padding-block: 12px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .menu-btn { display: grid; }
  .top .btn span { display: none; }
  .top .btn { padding-inline: .85em; }
}
@media (max-width: 560px) {
  .top__in { gap: 10px; min-height: 62px; }
  .brand img { width: 34px; }
  .brand b { font-size: 1.25rem; white-space: nowrap; }
  .brand small { display: none; }
  .lang { padding: 6px 9px; font-size: .85rem; }
}
@media (max-width: 400px) { .brand b { font-size: 1.12rem; } .brand { gap: 7px; } }

/* ===== Hero: the gantry crane lowers a slab as you scroll ===== */
.lift { position: relative; background: linear-gradient(var(--white), var(--concrete) 70%); }
.lift__stage {
  --beam: 15%; --ground: 87%; --px: 9%; --pw: 38%;
  position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden;
}
html.js .lift { height: 230vh; }
html.js .lift__stage { position: sticky; top: 0; }
[dir="ltr"] .lift__stage { --px: 53%; }
.lift__text { position: absolute; z-index: 3; inset-inline-start: max(var(--gut), (100% - var(--wrap)) / 2); top: 42%; width: min(520px, 46%); }
.lift h1 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); line-height: 1.2; }
.lift h1 span { display: block; font-size: .5em; font-weight: 600; color: var(--graphite-2); }
.motto { margin-top: 14px; font: 600 clamp(1.25rem, 2.2vw, 1.6rem)/1.45 var(--display); color: var(--orange); }
.lift__lead { margin-top: 10px; color: var(--graphite-2); }
.lift__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.lift__hint { position: absolute; z-index: 3; bottom: 3%; inset-inline-start: 50%; transform: translateX(50%); font-size: .85rem; color: var(--graphite-2); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
[dir="ltr"] .lift__hint { transform: translateX(-50%); }
.lift__hint i { width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; }
.lift__hint i::after { content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--orange); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(10px); opacity: 0; } }
html:not(.js) .lift__hint { display: none; }

/* The crane is built in LTR physical coordinates; text inside stays RTL. */
.crane { position: absolute; inset: 0; direction: ltr; pointer-events: none; }
.crane__beam {
  position: absolute; left: 3%; right: 3%; top: var(--beam); height: 26px;
  background:
    repeating-linear-gradient(60deg, transparent 0 11px, var(--orange) 11px 14px, transparent 14px 26px),
    linear-gradient(var(--orange) 0 4px, transparent 4px calc(100% - 4px), var(--orange) calc(100% - 4px));
}
.crane__leg {
  position: absolute; top: var(--beam); bottom: calc(100% - var(--ground)); width: 22px;
  background:
    repeating-linear-gradient(150deg, transparent 0 10px, var(--orange) 10px 13px, transparent 13px 24px),
    linear-gradient(90deg, var(--orange) 0 4px, transparent 4px calc(100% - 4px), var(--orange) calc(100% - 4px));
}
.crane__leg--a { left: 5%; }
.crane__leg--b { right: 5%; }
.crane__foot { position: absolute; top: var(--ground); width: 70px; height: 12px; margin-left: -24px; background: var(--graphite); border-radius: 3px; }
.crane__foot--a { left: 5%; }
.crane__foot--b { right: 5%; margin-left: 0; margin-right: -24px; }
.crane__ground { position: absolute; left: 0; right: 0; top: var(--ground); bottom: 0; background: var(--concrete-2); border-top: 2px solid var(--graphite); }
.crane__ground::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 2px; background: repeating-linear-gradient(90deg, var(--steel) 0 30px, transparent 30px 46px); }

/* Pile of slabs on the ground, and the slab that lands on top of it */
.pile { position: absolute; left: var(--px); width: var(--pw); bottom: calc(100% - var(--ground)); display: flex; flex-direction: column; align-items: center; }
.pile__slab { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; box-shadow: 0 12px 18px -14px rgba(0, 0, 0, .6); border-bottom: 5px solid #b9b4aa; }
.pile__slab + .pile__slab { margin-top: -6%; }
.pile__slab:nth-child(3) { width: 96%; }
.pile__slab:nth-child(4) { width: 92%; }
.hoist { position: relative; width: 100%; will-change: transform; }
.hoist__clamp { position: absolute; bottom: 100%; left: 50%; width: 44%; height: 16px; margin-left: -22%; border: 3px solid var(--graphite); border-bottom: 0; }
.hoist__face { position: relative; overflow: hidden; border-bottom: 5px solid #b9b4aa; box-shadow: 0 20px 26px -18px rgba(0, 0, 0, .7); }
.hoist__face img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }
.sheen { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.trolley { position: absolute; top: calc(var(--beam) - 8px); left: calc(var(--px) + var(--pw) / 2 - 34px); width: 68px; height: 40px; background: var(--graphite); border-radius: 4px; will-change: transform; }
.trolley::before, .trolley::after { content: ""; position: absolute; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--steel); border: 3px solid var(--graphite); }
.trolley::before { left: 8px; } .trolley::after { right: 8px; }
.cable { position: absolute; left: calc(var(--px) + var(--pw) / 2 - 1px); width: 2px; top: calc(var(--beam) + 32px); height: 0; background: var(--graphite); transform-origin: top; will-change: transform; }
.lift__tag { position: absolute; z-index: 2; left: var(--px); width: var(--pw); bottom: calc(100% - var(--ground) - 44px); text-align: center; font-size: .82rem; color: var(--graphite-2); direction: rtl; }
[dir="ltr"] .lift__tag { direction: ltr; }

@media (max-width: 760px) {
  .lift__stage, [dir="ltr"] .lift__stage { --beam: 49%; --ground: 92%; --px: 14%; --pw: 72%; min-height: 560px; }
  html.js .lift { height: 210vh; }
  .lift__text { top: 13%; width: auto; inset-inline: var(--gut); }
  .lift h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .lift__lead { display: none; }
  .lift__cta { margin-top: 16px; }
  .lift__cta .btn { min-height: 46px; padding-inline: 1.1em; }
  .crane__beam { left: 0; right: 0; height: 20px; }
  .crane__leg { width: 16px; }
  .crane__leg--a { left: 3%; } .crane__leg--b { right: 3%; }
  .crane__foot { display: none; }
  .trolley { left: calc(var(--px) + var(--pw) / 2 - 30px); width: 60px; height: 34px; }
  .cable { top: calc(var(--beam) + 26px); }
  .lift__hint { display: none; }
}

/* ===== Real-number strip with counters ===== */
.facts { background: var(--graphite); color: var(--white); }
.facts__in { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 34px 20px; display: flex; align-items: baseline; gap: 14px; justify-content: center; border-inline-start: 1px solid #3a4046; }
.fact:first-child { border-inline-start: 0; }
.fact b { font: 700 clamp(2.6rem, 5vw, 3.6rem)/1 var(--display); color: var(--orange-hi); font-variant-numeric: tabular-nums; }
.fact span { font-weight: 500; color: #d5d8db; }
@media (max-width: 600px) { .facts__in { grid-template-columns: 1fr; } .fact { border-inline-start: 0; border-top: 1px solid #3a4046; padding: 18px; justify-content: flex-start; } .fact:first-child { border-top: 0; } }

/* ===== Section heads with a saw cut that runs across ===== */
.sec { padding: clamp(72px, 11vw, 140px) 0; }
.head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.head p { margin-top: 12px; color: var(--graphite-2); font-size: 1.1rem; }
.cut { position: relative; height: 30px; margin-bottom: 18px; direction: ltr; overflow: hidden; }
main { overflow-x: clip; }
.cut__line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--graphite); transform-origin: right; }
[dir="ltr"] .cut__line { transform-origin: left; }
.cut__run { position: absolute; inset: 0; }
.cut__blade { position: absolute; right: 0; top: 0; width: 30px; height: 30px; color: var(--orange); }
[dir="ltr"] .cut__blade { right: auto; left: 0; }
.cut__blade svg { width: 100%; height: 100%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
html.js .cut__line { transform: scaleX(0); }
html.js .cut__blade { opacity: 0; }
html.js .cut.is-in .cut__line { transform: scaleX(1); transition: transform 1.1s var(--ease); }
html.js .cut.is-in .cut__run { transform: translateX(-100%); transition: transform 1.1s var(--ease); }
[dir="ltr"] .cut.is-in .cut__run { transform: translateX(100%) !important; }
html.js .cut.is-in .cut__blade { animation: blade 1.1s var(--ease) forwards; }
@keyframes blade { 0% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
html:not(.js) .cut__blade { display: none; }

/* Generic reveal with stagger (--i) */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); }
html.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }

/* ===== Materials: rows that slide in from alternate sides, tied to scroll ===== */
.mats { overflow: hidden; }
.mat { display: grid; grid-template-columns: 240px 1fr 1fr; gap: 24px 48px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); will-change: transform; }
.mat:last-child { border-bottom: 1px solid var(--line); }
.mat__swatch { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 6px var(--white), 0 18px 30px -18px rgba(0, 0, 0, .55); }
.mat__swatch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mat:hover .mat__swatch img { transform: scale(1.12) rotate(8deg); }
.mat__swatch .sheen { transform: translateX(-140%); }
.mat:hover .mat__swatch .sheen { transform: translateX(140%); transition: transform .9s var(--ease); }
.mat__swatch--quartz { background: radial-gradient(circle at 22% 30%, #c9c5bd 0 2px, transparent 3px), radial-gradient(circle at 68% 62%, #b9b3a8 0 1.5px, transparent 2.5px), radial-gradient(circle at 44% 82%, #a8a196 0 1.5px, transparent 2.5px), #f1efea; background-size: 21px 21px, 29px 29px, 35px 35px, auto; display: grid; place-items: center; text-align: center; font-size: .85rem; font-weight: 700; color: var(--graphite-2); padding: 18%; }
.mat h3 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.15; }
.mat__en { font-weight: 500; color: var(--orange); }
.mat__desc { color: var(--graphite-2); }
.mat ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mat li { font-size: .92rem; font-weight: 500; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.mat__use { margin-top: 12px; font-size: .95rem; }
@media (max-width: 860px) {
  .mat { grid-template-columns: 110px 1fr; gap: 16px 22px; }
  .mat__more { grid-column: 1 / -1; }
}

/* ===== Polishing: a light sweep travels across a real slab ===== */
.polish { background: var(--concrete); }
.polish__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.polish__frame { position: relative; overflow: hidden; border-radius: 4px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .55); aspect-ratio: 16 / 10; }
.polish__frame img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.polish__frame .sheen { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%); }
.polish__frame.is-on .sheen { animation: sweep 4.8s var(--ease) infinite; }
@keyframes sweep { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.polish__tag { position: absolute; bottom: 12px; inset-inline-start: 12px; background: var(--white); padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.svc { list-style: none; margin: 0; padding: 0; }
.svc li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; }
.svc li:first-child { border-top: 1px solid var(--line); }
.svc__ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--orange); transition: transform .4s var(--ease), background-color .3s, color .3s; }
.svc li:hover .svc__ico { transform: rotate(-20deg) scale(1.08); background: var(--orange); color: #fff; }
.svc__ico svg { width: 24px; height: 24px; }
.svc b { font: 700 1.4rem/1.35 var(--display); }
.svc span { color: var(--graphite-2); }
@media (max-width: 860px) { .polish__grid { grid-template-columns: 1fr; } }

/* ===== Origins conveyor ===== */
.belt { background: var(--orange); color: #fff; overflow: hidden; padding: 16px 0; direction: ltr; }
.belt__track { display: flex; width: max-content; animation: belt 28s linear infinite; }
.belt:hover .belt__track { animation-play-state: paused; }
.belt__set { display: flex; gap: 0; flex: none; }
.belt__set span { font: 700 clamp(1.4rem, 3vw, 2rem)/1.3 var(--display); padding-inline: 28px; white-space: nowrap; display: flex; align-items: center; gap: 28px; direction: rtl; }
.belt__set span::after { content: ""; width: 12px; height: 12px; border: 2px solid #fff; transform: rotate(45deg); }
@keyframes belt { to { transform: translateX(-50%); } }
.belt__label { text-align: center; font-size: .9rem; margin-bottom: 6px; opacity: .85; direction: rtl; }
[dir="ltr"] .belt__label, [dir="ltr"] .belt__set span { direction: ltr; }

/* ===== Yard: vertical scroll drives a horizontal track ===== */
.yard { position: relative; background: var(--graphite); color: var(--white); }
.yard .head p { color: #c3c7cb; }
.yard .cut__line { background: #e6e4df; }
.yard__pin { padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
html.js .yard.is-pinned .yard__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 70px 0 30px; overflow: hidden; }
.yard__track { display: flex; gap: 22px; padding-inline: max(var(--gut), (100% - var(--wrap)) / 2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.yard__track::-webkit-scrollbar { display: none; }
html.js .yard.is-pinned .yard__track { overflow: visible; will-change: transform; }
.shot { flex: 0 0 min(400px, 78vw); scroll-snap-align: start; }
.shot__img { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; }
.shot__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.shot:hover .shot__img img { transform: scale(1.06); }
.shot figcaption { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.shot figcaption b { grid-row: span 2; font: 700 2rem/1 var(--display); color: var(--orange-hi); }
.shot figcaption strong { font: 700 1.25rem/1.4 var(--display); }
.shot figcaption span { color: #c3c7cb; font-size: .95rem; }
.yard__bar { margin: 26px auto 0; height: 3px; background: #3a4046; width: min(var(--wrap), 100% - 2 * var(--gut)); direction: ltr; }
.yard__bar i { display: block; height: 100%; background: var(--orange-hi); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .yard__bar i { transform-origin: left; }
html:not(.js) .yard__bar { display: none; }

/* ===== Slab wall: staggered, tilts toward the pointer ===== */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; perspective: 900px; }
.wall button {
  position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 4px; overflow: hidden;
  background: var(--concrete-2); cursor: zoom-in; color: inherit;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.wall button:hover { box-shadow: 0 22px 34px -20px rgba(0, 0, 0, .55); }
.wall img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wall button .sheen { opacity: 0; transition: opacity .3s; }
.wall button:hover .sheen { opacity: 1; transform: translateX(var(--sx, -120%)); }
.wall button span { position: absolute; top: 8px; inset-inline-start: 8px; min-width: 30px; text-align: center; font: 700 .85rem/1 var(--text); background: var(--white); padding: 7px 8px 6px; border-radius: 999px; }
.wall__ask { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--graphite-2); }
@media (max-width: 520px) { .wall { grid-template-columns: 1fr 1fr; gap: 8px; } }

.viewer { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; color: var(--white); overflow: visible; }
.viewer::backdrop { background: rgba(18, 20, 22, .92); }
.viewer[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.viewer img { max-height: 76vh; width: auto; margin-inline: auto; border-radius: 4px; }
.viewer__bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 12px; }
.viewer__bar p { font-weight: 700; }
.viewer__nav { display: flex; flex-wrap: wrap; gap: 8px; }
.viewer button.icon { width: 46px; height: 46px; border: 1px solid #5d646b; background: transparent; color: var(--white); border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1; transition: background-color .2s, transform .15s; }
.viewer button.icon:hover { background: #2f353a; }
.viewer button.icon:active { transform: scale(.92); }

/* ===== Order ===== */
.order { background: var(--concrete); }
.order__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { background: var(--white); border-radius: 6px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 50px -40px rgba(0, 0, 0, .6); }
.form h3 { font-size: 1.9rem; }
.form > p { color: var(--graphite-2); margin: 4px 0 18px; }
.field { position: relative; display: grid; gap: 4px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: .95rem; }
.field label small { font-weight: 400; color: var(--graphite-2); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.5 var(--text); color: var(--graphite); letter-spacing: normal;
  background: transparent; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; padding: 10px 2px; width: 100%; min-height: 46px;
}
.field select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--graphite) 50%) left 8px center / 7px 7px no-repeat, linear-gradient(-45deg, transparent 50%, var(--graphite) 50%) left 15px center / 7px 7px no-repeat; }
[dir="ltr"] .field select { background-position: right 15px center, right 8px center; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
[dir="ltr"] .field::after { transform-origin: left; }
.field:focus-within::after { transform: scaleX(1); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form__send { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.form__err { color: var(--orange); font-weight: 700; margin-top: 10px; min-height: 1.5em; }
.form.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(6px); } 50% { transform: translateX(-6px); } 75% { transform: translateX(3px); } }
@media (max-width: 860px) { .order__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

.reach { display: grid; border-top: 2px solid var(--graphite); }
.reach a { display: grid; grid-template-columns: 1fr auto; gap: 0 14px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: center; }
.reach small { color: var(--graphite-2); font-size: .88rem; grid-column: 1; }
.reach strong { font: 700 1.2rem/1.4 var(--text); grid-column: 1; justify-self: start; overflow-wrap: anywhere; }
.reach a::after { content: "←"; grid-column: 2; grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--orange); transition: transform .3s var(--ease), background-color .3s, color .3s; }
[dir="ltr"] .reach a::after { content: "→"; }
.reach a:hover::after { transform: translateX(-6px); background: var(--orange); color: #fff; }
[dir="ltr"] .reach a:hover::after { transform: translateX(6px); }
.map { margin-top: 20px; aspect-ratio: 4 / 3; background: var(--concrete-2); border-radius: 6px; overflow: hidden; display: grid; place-items: center; text-align: center; padding: 16px; }
.map.is-live { padding: 0; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map p { color: var(--graphite-2); margin-bottom: 12px; font-size: .95rem; }

/* ===== Footer ===== */
.foot { background: var(--graphite); color: #d5d8db; padding: 52px 0 28px; font-size: .95rem; }
.foot .brand b { color: var(--white); }
.foot .brand small { color: #aeb3b8; display: block; }
.foot__in { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
.foot .brand img { width: 52px; background: var(--white); border-radius: 50%; padding: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 32px; padding-top: 18px; border-top: 1px solid #3a4046; color: #aeb3b8; font-size: .88rem; }
.nivo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; color: #d5d8db; }
.nivo img { width: 48px; height: auto; transform-origin: 50% 90%; transition: transform .45s var(--ease); }
.nivo:hover { color: var(--white); }
.nivo:hover img { transform: translateY(-4px) rotate(-8deg) scale(1.08); }
.nivo:active img { transform: scale(.94); }
html.rm .nivo:hover img { transform: none; }

.wa-float { display: none; }
@media (max-width: 760px) {
  .wa-float {
    position: fixed; bottom: 16px; inset-inline-end: 16px; z-index: 30;
    display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 999px;
    background: var(--orange); color: #fff; text-decoration: none; font-weight: 700;
    box-shadow: 0 12px 24px -10px rgba(200, 75, 22, .8); transition: opacity .3s, transform .3s var(--ease);
  }
  .wa-float.is-hidden { opacity: 0; transform: translateY(24px); pointer-events: none; }
  .wa-float svg { width: 22px; height: 22px; }
  .foot { padding-bottom: 90px; }
}

/* 404 */
.lost { min-height: 72vh; display: grid; align-content: center; gap: 18px; padding: 110px 0 64px; }
.lost h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.lost p { color: var(--graphite-2); max-width: 540px; }

/* ===== Reduced motion: everything static and fully visible ===== */
html.rm .lift { height: auto; }
html.rm .lift__stage { position: relative; }
html.rm .lift__hint { display: none; }
html.rm [data-reveal] { opacity: 1; transform: none; }
html.rm .cut__line { transform: none; }
html.rm .cut__blade, html.rm .yard__bar { display: none; }
html.rm .yard__pin { position: static; height: auto; }
html.rm .yard__track { overflow-x: auto; }
html.rm .belt__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
html.rm .belt__set + .belt__set { display: none; }
html.rm .polish__frame .sheen, html.rm .sheen { animation: none; display: none; }
html.rm .wall button { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Hero text is the first thing people read: it slides up but is never invisible. */
html.js .lift__text [data-reveal] { opacity: 1; transform: translateY(18px); }
html.js .lift__text [data-reveal].is-in { transform: none; transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.rm .lift__text [data-reveal] { transform: none; }
