:root {
  --bg: #F0F0F0;
  --ink: #141414;
  --mute: #767676;
  --line: #DCDCDC;
  --accent: #E6323E;
  --card: #FFFFFF;
  --font-display: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; letter-spacing: 0; }

.bidi {
  display: inline-block;
  unicode-bidi: isolate;
}

/* Single-Screen 100vw x 100dvh Editorial Frame */
.el-stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

/* Overlaid Minimal Gallery Navbar */
.el-nav {
  position: absolute;
  top: 4.2vh;
  inset-inline: 5vw;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.el-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.el-brand-en {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--mute);
}

.el-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--mute);
  white-space: nowrap;
}

.el-links a:hover,
.el-links a.active {
  color: var(--ink);
}

.el-utils {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.el-bag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  border: 0;
}

.el-dir-link {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 12px;
  font-weight: 600;
}

/* Center Tall Feathered Lookbook Visual */
.el-center-art {
  position: absolute;
  top: 13vh;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(33vw, 430px);
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.el-look-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
  transition: filter 0.45s var(--ease), transform 0.45s var(--ease);
}

.el-look-frame.glitch {
  filter: contrast(1.25) saturate(1.4) hue-rotate(18deg);
  transform: scale(0.985) skewX(-1.5deg);
}

.el-look-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: radial-gradient(ellipse 88% 92% at 50% 50%, #000 72%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 88% 92% at 50% 50%, #000 72%, transparent 100%);
}

/* Right Editorial Column (RTL Start) */
.el-editorial {
  position: absolute;
  inset-inline-start: 4vw;
  top: 22vh;
  bottom: 7vh;
  width: min(24vw, 325px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.el-vid-teaser {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  width: fit-content;
  cursor: pointer;
}

.el-play-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: background 0.35s;
}

.el-look-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 8px;
  transition: color 0.35s;
}

.el-look-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.4vw, 5.2rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 10px;
  transition: opacity 0.25s, transform 0.25s;
}

.el-look-sub {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.65;
}

.el-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.el-pager {
  display: flex;
  align-items: center;
  gap: 7px;
}

.el-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #C4C4C4;
  border: 0;
  padding: 0;
  transition: width 0.25s var(--ease), background 0.25s;
}

.el-dot.active {
  width: 22px;
  background: var(--accent);
}

.el-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #FFFFFF;
}

.el-arrow.prev { background: var(--ink); }
.el-arrow.next { background: var(--accent); transition: background 0.35s; }

/* Left Product Flip Cards + Dark Next-Collection Tile (RTL End) */
.el-left-rail {
  position: absolute;
  inset-inline-end: 4vw;
  top: 20vh;
  bottom: 6vh;
  width: min(27vw, 365px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.el-flip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  perspective: 900px;
}

.el-card {
  height: 220px;
  cursor: pointer;
}

.el-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease);
}

.el-card:hover .el-card-inner,
.el-card.flipped .el-card-inner {
  transform: rotateY(180deg);
}

.el-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.el-face-back {
  transform: rotateY(180deg);
  background: #FAFAFA;
}

.el-swatches {
  display: flex;
  gap: 6px;
}

.el-sw {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
}

.el-hex-btn {
  width: 32px;
  height: 32px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  background: var(--accent);
  color: #FFFFFF;
  border: 0;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: transform 0.25s, background 0.35s;
}

.el-hex-btn:hover { transform: rotate(30deg); }

.el-sizes {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.el-sz {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: #FFFFFF;
}

.el-sz.on {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

/* Dark Teaser + Showcase Nav */
.el-nextc {
  border-radius: 8px;
  background: #111111;
  color: #FFFFFF;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.el-showcase-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11.5px;
}

.el-showcase-mini a {
  color: rgba(255, 255, 255, 0.82);
}

.el-showcase-mini a:hover { color: #FFFFFF; }

/* Atelier Film Modal */
.el-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.72);
  z-index: 90;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.el-modal.open {
  opacity: 1;
  visibility: visible;
}

.el-modal-box {
  width: min(520px, calc(100% - 32px));
  background: var(--card);
  border-radius: 12px;
  padding: 28px;
}

@media (max-width: 720px) {
  body { overflow-y: auto; }
  .el-stage { height: auto; min-height: 100dvh; padding: 92px 20px 32px; display: grid; gap: 24px; }
  .el-links { display: none; }
  .el-editorial, .el-center-art, .el-left-rail {
    position: static;
    width: 100%;
    transform: none;
  }
  .el-center-art { height: 360px; }
}
