/* IMPACT أثر — Drop 01 site. Black / bone / sand, the statue print's red. */
:root {
  --ink: #0d0b0a;
  --ink-2: #1a1614;
  --bone: #f4f1ec;
  --paper: #faf9f7;
  --sand: #e6d2a6;
  --red: #b3121b;
  --mute: #8a8580;
  --line: rgba(13, 11, 10, 0.12);
  --display: "Anton", "Impact", sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --arabic: "Cairo", "Inter", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: var(--arabic); }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Film grain over everything, very light. */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-4%, 3%); } 66% { transform: translate(3%, -2%); } 100% { transform: translate(0, 0); } }

/* Logo: white-on-clear PNG used as a mask, so it prints in any colour. */
.logo-mask, .foot-logo {
  display: block; background: currentColor;
  -webkit-mask: url(assets/logo.png) center / contain no-repeat;
  mask: url(assets/logo.png) center / contain no-repeat;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; padding: 0 clamp(16px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
  mix-blend-mode: difference; color: #fff;
}
.nav-logo .logo-mask { width: 118px; height: 64px; }
.nav-links { display: flex; gap: clamp(16px, 3vw, 40px); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
html[dir="rtl"] .nav-links { letter-spacing: 0; font-size: 16px; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; inset: auto 0 -6px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform 0.4s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; gap: 14px; align-items: center; }
.lang { width: 40px; height: 40px; border: 1.5px solid currentColor; border-radius: 50%; font-family: var(--arabic); font-weight: 700; font-size: 16px; }
.bag { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.bag-count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 12px; transition: transform 0.4s var(--ease); }
.bag-count.bump { transform: scale(1.4); }

/* ---------- Hero / the rack ---------- */
.hero {
  position: relative; min-height: 100svh; padding-top: 110px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--paper) 55%, #efece6 100%);
  display: flex; flex-direction: column;
}
.trace { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-word {
  position: absolute; z-index: 0; left: 50%; top: 52%; transform: translate(-50%, -50%);
  font-family: var(--arabic); font-weight: 900; font-size: clamp(260px, 42vw, 640px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(13, 11, 10, 0.07); user-select: none; pointer-events: none;
}
.hero-label {
  position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mute);
}
html[dir="rtl"] .hero-label { letter-spacing: 0; font-size: 15px; }
.hero-label i { width: 36px; height: 1px; background: currentColor; }

.rack { position: relative; z-index: 2; height: clamp(360px, 52vh, 520px); margin-top: 28px; cursor: grab; touch-action: pan-y; }
.rack.dragging { cursor: grabbing; }
.rail {
  position: absolute; left: 0; right: 0; top: 22px; height: 7px; border-radius: 4px;
  background: linear-gradient(180deg, #d9d6d1, #a9a49d 60%, #8d8880);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.track { position: absolute; left: 0; top: 0; height: 100%; display: flex; will-change: transform; }

/* Buttons centre their content: pin each hanger to the top so its hook sits on the rail. */
.hanger { position: relative; align-self: flex-start; width: var(--w, clamp(190px, 15vw, 250px)); flex: none; margin: 15px 6px 0; transform-origin: 50% 8px; }
.hanger-inner { position: relative; transition: transform 0.5s var(--ease), filter 0.5s var(--ease); transform-origin: 50% 0; }
.hanger svg { position: relative; display: block; width: 62%; margin: 0 auto; z-index: 1; }
.hanger img.tee {
  position: relative; z-index: 2; width: 100%; margin-top: -34px; pointer-events: none; user-select: none;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.18));
}
.hanger .tag {
  position: absolute; z-index: 3; top: 64px; right: 4%; transform: rotate(8deg);
  background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; padding: 4px 7px;
}
.hanger .tag.red { background: var(--red); }
.hanger:hover .hanger-inner, .hanger.active .hanger-inner { transform: translateY(-6px) scale(1.07); }
.rack:hover .hanger:not(:hover) .hanger-inner { filter: saturate(0.6) brightness(1.02) opacity(0.75); }

.caption { position: relative; z-index: 2; text-align: center; margin-top: auto; padding: 0 16px 64px; }
.cap-kicker { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
html[dir="rtl"] .cap-kicker { letter-spacing: 0; font-size: 14px; }
.cap-name { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 84px); line-height: 1; text-transform: uppercase; margin: 10px 0 8px; }
.cap-name.swap { animation: swap 0.5s var(--ease); }
@keyframes swap { from { opacity: 0; filter: blur(10px); transform: translateY(12px); } }
.cap-sub { color: var(--mute); font-size: 15px; margin-bottom: 22px; }
.hint { position: absolute; z-index: 2; bottom: 22px; left: clamp(16px, 4vw, 48px); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
html[dir="rtl"] .hint { left: auto; right: clamp(16px, 4vw, 48px); letter-spacing: 0; font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 30px;
  border: 1.5px solid var(--ink); border-radius: 30px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
html[dir="rtl"] .btn { letter-spacing: 0; font-size: 16px; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(0.97); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: var(--ink); border-color: var(--ink); }
.btn.wide { width: 100%; }

/* ---------- Reel ---------- */
.reel { position: relative; background: var(--ink); color: var(--bone); padding: 120px 0; overflow: hidden; display: grid; place-items: center; }
.marquee { position: absolute; left: 0; display: flex; white-space: nowrap; font-family: var(--display); font-size: clamp(80px, 13vw, 200px); line-height: 1; }
.marquee span { padding-right: 0.3em; animation: marquee 28s linear infinite; }
.m1 { top: 12%; color: transparent; -webkit-text-stroke: 1.5px rgba(244, 241, 236, 0.35); }
.m2 { bottom: 10%; font-family: var(--arabic); font-weight: 900; color: var(--red); direction: ltr; }
.m2 span { animation-direction: reverse; animation-duration: 34s; }
@keyframes marquee { to { transform: translateX(-100%); } }
.phone {
  position: relative; z-index: 2; width: min(300px, 70vw); aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 12px;
  background: #050505; box-shadow: 0 0 0 2px #2a2624, 0 50px 100px rgba(0, 0, 0, 0.6);
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone-notch { position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; border-radius: 14px; background: #050505; transform: translateX(-50%); }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(100px, 16vw, 200px) clamp(16px, 8vw, 120px); text-align: center; background: var(--bone); }
.calli {
  width: min(560px, 80vw); aspect-ratio: 1140 / 855; margin: 0 auto 48px; background: var(--ink);
  -webkit-mask: url(assets/calli.png) center / contain no-repeat; mask: url(assets/calli.png) center / contain no-repeat;
}
.manifesto h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5.4vw, 76px); line-height: 1.05; text-transform: uppercase; max-width: 15ch; margin: 0 auto 28px; }
html[dir="rtl"] .manifesto h2 { font-family: var(--arabic); font-weight: 900; text-transform: none; max-width: 18ch; line-height: 1.3; }
.manifesto p { max-width: 560px; margin: 0 auto; font-size: 18px; line-height: 1.65; color: #4a4542; }

/* ---------- Artefacts ---------- */
.artefacts { padding: 120px clamp(16px, 4vw, 48px); background: var(--paper); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px solid var(--ink); padding-bottom: 16px; margin-bottom: 40px; }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 7vw, 110px); line-height: 0.95; text-transform: uppercase; }
html[dir="rtl"] .sec-head h2 { font-family: var(--arabic); font-weight: 900; }
.sec-head span { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.card { cursor: pointer; perspective: 900px; }
.card-img {
  aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink); border-radius: 6px; display: grid; place-items: center;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card-img { box-shadow: 0 40px 70px rgba(0, 0, 0, 0.22); }
.card:hover .card-img img { transform: scale(1.06); }
.card-img.sand { background: var(--sand); }
.card-calli, .card-finger { width: 78%; aspect-ratio: 1140 / 855; background: var(--bone); -webkit-mask: url(assets/calli.png) center / contain no-repeat; mask: url(assets/calli.png) center / contain no-repeat; }
.card-finger { width: 62%; aspect-ratio: 784 / 1048; background: var(--maroon, #6e0f14); -webkit-mask-image: url(assets/finger.png); mask-image: url(assets/finger.png); }
.card-label { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding-top: 16px; font-size: 14px; }
.card-label b { font-family: var(--display); font-weight: 400; font-size: 28px; grid-row: span 2; line-height: 1; }
.card-label span { font-weight: 700; letter-spacing: 0.12em; }
.card-label em { font-style: normal; color: var(--mute); }

/* ---------- Lookbook (scroll-driven sideways) ---------- */
.lookbook { position: relative; height: 320vh; background: var(--ink); color: var(--bone); }
.lb-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.lb-word { position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--display); font-size: 30vh; color: transparent; -webkit-text-stroke: 1.5px rgba(244, 241, 236, 0.18); }
.lb-track { position: relative; display: flex; gap: 4vw; padding: 0 10vw; will-change: transform; }
.lb-track figure { flex: none; width: min(36vh, 70vw); }
.lb-track figure:nth-child(even) { margin-top: 14vh; }
.lb-track img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; }
.lb-track figcaption { margin-top: 12px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244, 241, 236, 0.6); }

/* ---------- Join ---------- */
.join { padding: clamp(100px, 14vw, 180px) 16px; text-align: center; background: var(--red); color: #fff; }
.join h2 { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 10vw, 150px); line-height: 0.95; text-transform: uppercase; }
html[dir="rtl"] .join h2 { font-family: var(--arabic); font-weight: 900; line-height: 1.2; }
.join p { margin: 18px 0 36px; font-size: 18px; opacity: 0.85; }
.join-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.join-form input { flex: 1; height: 52px; border-radius: 30px; border: 1.5px solid rgba(255, 255, 255, 0.6); background: transparent; color: #fff; padding: 0 22px; font: inherit; font-size: 16px; outline: none; }
.join-form input::placeholder { color: rgba(255, 255, 255, 0.7); }
.join-form input:focus { border-color: #fff; }
.join .btn.red { background: var(--ink); border-color: var(--ink); }
.join .btn.red:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--bone); padding: 80px clamp(16px, 4vw, 48px) 32px; }
.foot-logo { width: min(100%, 760px); margin: 0 auto; aspect-ratio: 1264 / 680; color: var(--bone); }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 241, 236, 0.6); }

/* ---------- Product view ---------- */
.product { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; pointer-events: none; }
.product.open { pointer-events: auto; }
.product-bg { position: absolute; inset: 0; background: var(--paper); opacity: 0; transition: opacity 0.5s var(--ease); }
.product.open .product-bg { opacity: 1; }
.product-stage { position: relative; height: 100svh; display: grid; place-items: center; perspective: 1400px; }
.product-stage img { width: min(560px, 80%); filter: drop-shadow(0 40px 40px rgba(0, 0, 0, 0.2)); opacity: 0; transition: transform 0.6s var(--ease); }
.product.open .product-stage img.shown { opacity: 1; }
.product-stage img.flip { transform: rotateY(90deg); transition-duration: 0.22s; transition-timing-function: ease-in; }
.product-info { position: relative; padding: 0 clamp(20px, 6vw, 80px) 0 0; opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease) 0.15s, transform 0.6s var(--ease) 0.15s; }
html[dir="rtl"] .product-info { padding: 0 0 0 clamp(20px, 6vw, 80px); }
.product.open .product-info { opacity: 1; transform: none; }
.product-info h2 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 6vw, 92px); line-height: 0.95; text-transform: uppercase; margin: 10px 0 6px; }
.p-ar { font-family: var(--arabic); font-weight: 900; font-size: 28px; color: var(--red); }
.p-price { margin: 14px 0 24px; font-size: 18px; font-weight: 600; }
.views { display: flex; gap: 8px; margin-bottom: 26px; }
.views button, .sizes button { height: 44px; min-width: 56px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 22px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; transition: all 0.25s; }
.views button.on, .sizes button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.p-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.p-note { margin-top: 18px; font-size: 13px; color: var(--mute); }
.close { position: absolute; z-index: 3; top: 18px; right: clamp(16px, 4vw, 48px); width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 26px; line-height: 1; opacity: 0; transition: opacity 0.3s; }
html[dir="rtl"] .close { right: auto; left: clamp(16px, 4vw, 48px); }
.product.open .close { opacity: 1; }
.flyer { position: fixed; z-index: 75; pointer-events: none; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.2)); }

.toast { position: fixed; z-index: 95; left: 50%; bottom: 28px; transform: translate(-50%, 120px); background: var(--ink); color: var(--paper); padding: 14px 22px; border-radius: 30px; font-size: 14px; font-weight: 600; transition: transform 0.5s var(--ease); }
.toast.show { transform: translate(-50%, 0); }

/* Scroll reveals */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero-label { font-size: 10px; letter-spacing: 0.2em; gap: 8px; white-space: nowrap; }
  .hero-label i { width: 16px; }
  .hanger { --w: 160px; }
  .rack { height: 380px; }
  .cards { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; align-content: start; overflow-y: auto; }
  .product-stage { height: 52svh; }
  .product-info, html[dir="rtl"] .product-info { padding: 0 20px 40px; }
  .join-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .marquee span { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Arabic headlines: Anton has no Arabic, so switch to Cairo Black. */
html[dir="rtl"] .cap-name { font-family: var(--arabic); font-weight: 900; line-height: 1.2; }

/* ---------- Bag drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer.open { pointer-events: auto; }
.drawer-bg { position: absolute; inset: 0; background: rgba(13, 11, 10, 0.45); opacity: 0; transition: opacity 0.4s var(--ease); }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper);
  display: flex; flex-direction: column; gap: 18px; padding: 24px clamp(18px, 3vw, 28px);
  transform: translateX(100%); transition: transform 0.55s var(--ease); overflow-y: auto;
}
html[dir="rtl"] .drawer-panel { right: auto; left: 0; transform: translateX(-100%); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1.5px solid var(--ink); padding-bottom: 14px; }
.drawer-head h2 { font-family: var(--display); font-weight: 400; font-size: 40px; text-transform: uppercase; line-height: 1; }
html[dir="rtl"] .drawer-head h2 { font-family: var(--arabic); font-weight: 900; font-size: 32px; }
.close-sm { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 22px; line-height: 1; }
.bag-items { display: flex; flex-direction: column; gap: 14px; }
.bag-empty { color: var(--mute); padding: 30px 0; }
.bag-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; }
.bag-line img { width: 72px; height: 86px; object-fit: contain; background: #eeece8; border-radius: 6px; padding: 4px; }
.bag-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; }
.bag-info span { color: var(--mute); }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); font-weight: 700; }
.bag-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.rm { font-size: 12px; color: var(--mute); text-decoration: underline; }
.bag-sum { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 15px; font-variant-numeric: tabular-nums; }
.bag-sum:empty { display: none; }
.bag-sum div { display: flex; justify-content: space-between; }
.bag-sum .sum-total { font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.hint-free { font-size: 12px; color: var(--red); }
.pay { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.btn.wa { border-color: #1f9d55; color: #1f9d55; }
.btn.wa:hover { background: #1f9d55; color: #fff; }
.btn:disabled { opacity: 0.35; pointer-events: none; }
