/* MENKHET — Plan A: THE RAIL. Cold metal: aluminum, black, white. */
:root {
  --bg: #eef0f1; --panel: #ffffff; --line: #d2d5d8; --muted: #5d6267;
  --wall-1: #f2f3f4; --wall-2: #dcdfe2; --wall-3: #c9cdd1;
}
.site-header { background: color-mix(in srgb, var(--wall-1) 82%, transparent); }

/* ---------- the room ---------- */
.room { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.9), transparent 60%),
    linear-gradient(180deg, var(--wall-1) 0%, var(--wall-2) 82%, #cfd2d6 82.2%, #d9dcdf 100%); }
.room::after { content: ""; position: absolute; left: 0; right: 0; top: 82%; height: 28px; background: linear-gradient(180deg, rgba(0,0,0,.08), transparent); pointer-events: none; }
.rail-scroll { flex: 1; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; position: relative; z-index: 1; }
.rail-scroll::-webkit-scrollbar { display: none; }
.rail-track { position: relative; min-width: 100%; width: max(100%, calc(var(--n) * 380px + 40vw)); height: 100%; min-height: 600px; padding-top: 9vh; }
.rail { position: absolute; top: 9vh; left: 0; right: 0; height: 18px; display: block; }
.rail .tube { position: absolute; top: 2px; left: 3vw; right: 3vw; height: 14px; border-radius: 7px; display: block; overflow: hidden;
  background: linear-gradient(180deg, #fbfcfc 0%, #e8eaec 14%, #c5c8cb 34%, #8f959b 55%, #b8bcc0 68%, #eef0f2 82%, #9aa0a5 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 12px 18px -10px rgba(0,0,0,.45), 0 2px 3px rgba(0,0,0,.25); }
.rail .sheen { position: absolute; top: 0; bottom: 0; width: 28%; left: -30%; display: block;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85) 45%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.85) 55%, transparent);
  mix-blend-mode: screen; animation: sheen 9s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes sheen { 0% { left: -30%; } 55%, 100% { left: 110%; } }
.rail .mount { position: absolute; top: -26px; width: 22px; height: 52px; display: block; border-radius: 3px;
  background: linear-gradient(90deg, #8d9399, #e9ebed 40%, #b9bdc1 60%, #7b8187); box-shadow: 0 6px 12px -6px rgba(0,0,0,.5); }
.rail .mount.s { inset-inline-start: calc(3vw - 6px); } .rail .mount.e { inset-inline-end: calc(3vw - 6px); }
.rail .mount::after { content: ""; position: absolute; left: 7px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #7b8187); }

.hangers { list-style: none; margin: 0; padding: 0; display: flex; gap: 60px; padding-inline-start: 18vw; position: relative; }
.hanger { width: clamp(260px, 30vw, 430px); flex: none; scroll-snap-align: center; margin-top: -1px; }
.hanger a { display: block; text-decoration: none; color: inherit; }
.swing { position: relative; transform-origin: 50% 2px; transition: transform .6s cubic-bezier(.3,.7,.3,1); }
.hanger-wire { width: 78%; margin: 0 auto; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 3px 2px rgba(0,0,0,.18)); }
.on-hanger { position: relative; z-index: 2; margin-top: -28.5%; padding: 0 2%; filter: drop-shadow(0 24px 22px rgba(0,0,0,.22)) drop-shadow(0 4px 4px rgba(0,0,0,.12)); }
.on-hanger .pimg, .on-hanger img { width: 100%; height: auto; }
.hanger a:hover .swing, .hanger a:focus-visible .swing { animation: sway 2.4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(1.8deg); } 75% { transform: rotate(-1.6deg); } }
.tag { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 0 auto; width: 78%; padding-top: 12px; border-top: 1px solid rgba(11,12,13,.5); font-size: 14px; }
.tag-no { grid-column: 1 / -1; font-size: 28px; font-weight: 600; letter-spacing: .06em; line-height: 1.1; }
html[dir=rtl] .tag-no { text-align: right; }
.tag b { font-weight: 500; } .tag span:last-child { color: var(--muted); }
.room-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 3vw 26px; }
.room-foot .eyebrow { margin: 0; color: #2b2e31; }
.room-note { margin: 0; font-size: 13px; color: var(--muted); max-width: 36ch; text-align: end; }

/* ---------- under the rail ---------- */
.under { background: #0b0c0d; color: #e9ebed; padding: 56px 0 64px; }
.under-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #26292c; border: 1px solid #26292c; }
.under-grid > div { background: #0b0c0d; padding: 24px 22px; display: grid; gap: 6px; }
.under-grid .idx { color: #7d8288; font-size: 12px; }
.under-grid b { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.under-grid b small { font-size: 14px; font-weight: 400; color: #9ea3a8; margin-inline-start: 6px; letter-spacing: .06em; }
.under-grid span:last-child { color: #c5c8cb; font-size: 14px; }
.under-cta { display: flex; gap: 12px; margin-top: 28px; }
.under .btn.primary { background: #e9ebed; color: #0b0c0d; border-color: #e9ebed; }
.under .btn.ghost { color: #e9ebed; border-color: #5d6267; }
.main-home + .site-footer { margin-top: 0; }

/* ---------- product ---------- */
.back-link { display: inline-block; margin: 24px 0 8px; font-size: 14px; color: var(--muted); text-decoration: none; }
html[dir=rtl] .back-link { direction: ltr; }
.pd-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.stage { background: linear-gradient(180deg, #f6f7f8, #dfe2e5); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.stage .pimg { width: 86%; height: auto; }
.stage[data-view=stitch] .pimg { width: 100%; height: 100%; object-fit: cover; }
.stage[data-view=stitch] .pimg svg { width: 100%; height: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 10px; margin-top: 10px; }
.thumb { background: #e4e6e8; border: 1px solid transparent; border-radius: var(--radius); padding: 8px; cursor: pointer; display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.thumb .pimg { aspect-ratio: 1.2; width: 100%; height: auto; object-fit: contain; overflow: hidden; }
.thumb .pimg.stitch { object-fit: cover; }
.thumb.on { border-color: var(--fg); color: var(--fg); }
.pd-info h1 { font-size: clamp(30px, 3.6vw, 44px); }
.mono-eyebrow { font-family: var(--mono); }
.blurb { font-size: 17px; color: #2d3034; max-width: 52ch; }
.small-h { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 26px 0 8px; }
html[lang=ar] .small-h { letter-spacing: 0; font-size: 14px; }
.specs { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--fg); }
.specs li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.specs .mono { font-size: 12px; color: var(--muted); }
.specs b { font-weight: 600; text-align: end; }
.macro-sec { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; margin: 96px 0 72px; }
.macro-img .pimg { width: 100%; height: auto; border-radius: var(--radius); overflow: hidden; }
.macro-sec h2 { font-size: 30px; }
.dash { padding: 0; list-style: none; } .dash li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); font-weight: 400; font-size: 14px; }

/* ---------- make it yours ---------- */
.cz-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.cz-preview { background: linear-gradient(180deg, #f6f7f8, #d9dce0); border-radius: var(--radius); padding: 28px 24px 24px; position: sticky; top: calc(var(--header-h) + 16px); overflow: hidden; }
.mini-rail { position: relative; height: 14px; margin: 6px -24px 0; }
.mini-rail .tube { position: absolute; inset: 0 0; display: block; overflow: hidden; border-radius: 7px;
  background: linear-gradient(180deg, #fbfcfc 0%, #e8eaec 14%, #c5c8cb 34%, #8f959b 55%, #b8bcc0 68%, #eef0f2 82%, #9aa0a5 100%); box-shadow: 0 10px 14px -8px rgba(0,0,0,.4); }
.mini-rail .sheen { position: absolute; top: 0; bottom: 0; width: 28%; left: -30%; display: block; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9) 50%, transparent); animation: sheen 9s ease-in-out infinite; }
.cz-hang { width: min(360px, 78%); margin: -4px auto 0; }
.cz-hang .on-hanger { margin-top: -28.5%; }
.cz-hang .on-hanger svg { width: 100%; height: auto; }
.cz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.cz-row figure { margin: 0; } .cz-row figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.cz-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--line); font-size: 15px; }
.cz-total b { font-size: 22px; font-weight: 600; }
.cz-form .buy-actions { margin-top: 18px; }

/* ---------- story ---------- */
.story-head { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 40px; }
.big-glyph { font-size: clamp(110px, 16vw, 200px); line-height: 1; color: #0b0c0d; }
.story-head h1 { font-size: clamp(34px, 5vw, 60px); }
.story-head .lead { font-size: 19px; color: #2d3034; max-width: 56ch; }
.story-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); padding: 0; }
.story-list li { background: var(--panel); padding: 28px 26px 30px; }
.story-list .idx { font-size: 12px; color: var(--muted); }
.story-list h2 { font-size: 22px; margin: 18px 0 10px; }
.story-list p { color: #3a3e42; margin: 0; }
.story-close { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 40px; }
.story-close p { font-size: 20px; margin: 0; max-width: 40ch; }

@media (max-width: 960px) {
  .pd-grid, .cz-grid, .macro-sec { grid-template-columns: 1fr; gap: 28px; }
  .gallery, .cz-preview { position: static; }
  .story-list { grid-template-columns: 1fr 1fr; }
  .under-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .rail-track { width: max(100%, calc(var(--n) * 78vw + 22vw)); min-height: 0; padding-top: 7vh; }
  .rail { top: 7vh; }
  .hangers { padding-inline-start: 0; justify-content: flex-start; gap: 24px; padding-inline-start: 11vw; }
  .hanger { width: 78vw; }
  .tag-no { font-size: 24px; }
  .room { min-height: calc(100svh - var(--header-h)); }
  .room-foot { flex-direction: column; align-items: start; gap: 6px; padding-bottom: 20px; }
  .room-note { text-align: start; }
  .story-head { grid-template-columns: 1fr; gap: 8px; padding-top: 40px; }
  .story-list { grid-template-columns: 1fr; }
  .story-close { flex-direction: column; align-items: start; }
  .under-grid b { font-size: 34px; }
  .cz-row { grid-template-columns: 1fr; }
}
