/* ============================================================
   SOLIS — Eyewear, distilled
   Gallery-white, precise, airy. Signature: the lens circle.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-raise: #f5f5f7;     /* Apple light-gray tile */
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --hairline: #d2d2d7;
  --accent: #0071e3;       /* Apple blue */
  --accent-soft: #d1e3f8;
  --dark: #000000;
  --dark-ink: #f5f5f7;
  --radius: 18px;
  --radius-lg: 28px;

  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-display: "Anton", "Archivo", "Arial Narrow", sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;
  --space-7: 11rem;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; user-select: none; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* display type: heavy condensed poster face for the big moments */
.footer__title, .section-title,
.chapter__step h2, .chapter__word span,
.lenslab__title, .lenslab__word span,
.craft__title, .index__name,
.pview__name, .checkout__title, .bag__head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-stretch: normal;
  letter-spacing: 0.015em;
}
/* serif for reading text */
.chapter__step p, .craft__lead, .craft__row p,
.lenslab__label p, .hero__meta-item, .pview__desc,
.footer__col p, .bag-item__meta {
  font-family: var(--font-serif);
}

::selection { background: var(--accent); color: var(--bg); }

/* ============ INTRO ============ */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  clip-path: circle(141% at 50% 50%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-2);
}
.intro__word {
  display: flex;
  align-items: center;
  font-family: "Unbounded", var(--font-sans);
  font-size: clamp(2.6rem, 9vw, 7rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.intro__letter {
  display: inline-block;
  will-change: transform, filter, opacity;
}
.intro__letter--o {
  display: inline-grid;
  place-items: center;
  margin: 0 0.05em;
}
.intro__oring {
  width: 0.82em;
  height: 0.82em;
  display: block;
  overflow: visible;
  transform: rotate(-90deg); /* stroke draw starts at 12 o'clock */
}
.intro__ringmain {
  fill: none;
  stroke: #2c4632; /* the original SOLIS lens green — logo mark only */
  stroke-width: 17; /* matches Unbounded's stems */
  stroke-linecap: round;
}
.intro__ripple {
  fill: none;
  stroke: #2c4632;
  stroke-width: 3;
  opacity: 0;
  transform-origin: 50% 50%;
}
::selection { background: var(--accent); color: #fff; }
.intro__tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(12px);
}

/* ============ AMASI DEMO BAR ============ */
.demo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 95;
  height: 46px;
  background: #fff;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2);
  padding: 0 clamp(1rem, 3vw, 2rem);
  font-family: "IBM Plex Sans Arabic", var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink);
}
.demo-bar__status { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.demo-bar__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: demoPulse 2s ease-in-out infinite;
}
@keyframes demoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}
.demo-bar__badge {
  background: var(--ink); color: #fff;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.35em 0.95em;
  border-radius: 999px;
  flex-shrink: 0;
}
.demo-bar__text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink-2, var(--ink));
}
.demo-bar__text strong { font-weight: 700; }
.demo-bar__actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.demo-bar__cta {
  background: var(--ink); color: #fff;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.5em 1.3em;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.demo-bar__cta:hover { transform: scale(1.04); background: #000; }
.demo-bar__link {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-bar__link:hover { color: var(--ink); }
@media (max-width: 760px) {
  .demo-bar__text { display: none; }
  .demo-bar__link { display: none; }
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 46px; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
  opacity: 0; /* revealed after intro */
}
.nav__brand {
  font-weight: 680; font-stretch: 118%;
  letter-spacing: 0.08em; font-size: 1.05rem;
}
.nav__links { display: flex; gap: var(--space-4); }
.nav__links a {
  font-family: var(--font-serif);
  font-size: 1.02rem; font-weight: 450;
  letter-spacing: 0.01em;
  position: relative;
}
.nav__cta {
  font-size: 0.82rem; font-weight: 650;
  letter-spacing: 0.12em; text-transform: uppercase;
  position: relative;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 0.5em 1.1em;
}
.nav__links a::after, .nav__cta::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover::after, .nav__cta:hover::after {
  transform: scaleX(1); transform-origin: left;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero__title {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  z-index: 1;
  font-weight: 660;
  font-stretch: 125%;
  font-size: clamp(4.5rem, 17.5vw, 16.5rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  user-select: none;
}
.hero__line { display: block; overflow: hidden; }
.hero__word { display: inline-block; transform: translateY(110%); }
.hero__product {
  position: absolute;
  top: 47%; left: 50%;
  z-index: 2;
  width: clamp(280px, 44vw, 640px);
  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: multiply; /* single small blended layer: weaves the title through the product */
}
.hero__product img { filter: brightness(1.045) contrast(1.02); }
.hero__meta {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--space-3);
  padding: 0 var(--gutter) var(--space-4);
}
.hero__meta-item {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 260px;
  opacity: 0;
  transform: translateY(16px);
}
.hero__meta-item--serif { font-size: 1.05rem; color: var(--ink); }
.hero__meta-item--scroll {
  display: flex; align-items: center; gap: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem;
}
.hero__scroll-line {
  display: inline-block; width: 56px; height: 1px;
  background: var(--ink-soft);
  transform-origin: left;
  animation: scrollPulse 2.2s var(--ease-out) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(1); }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ============ MARQUEE ============ */
.marquee {
  background: var(--bg-raise);
  border-radius: var(--radius);
  margin: 0 var(--gutter);
  padding: var(--space-2) 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: var(--space-4);
  will-change: transform;
}
.marquee__track span {
  font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--ink-soft);
}
.marquee__track i { color: var(--accent); font-style: normal; font-size: 0.7rem; }

/* ============ CHAPTER ============ */
.chapter { position: relative; }
.chapter__pin {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--gutter);
  min-height: 100svh;
  padding: var(--space-6) var(--gutter);
  overflow: hidden;
}
.chapter__word {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 2; /* above the opaque product photo, below the copy column */
  pointer-events: none;
  white-space: nowrap;
}
.chapter__word span {
  grid-area: 1 / 1;
  font-size: min(11.5vw, 10rem);
  font-weight: 700; font-stretch: 125%;
  letter-spacing: 0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(29, 29, 31, 0.14);
  opacity: 0;
  will-change: transform, opacity;
}
.chapter__stage {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  max-height: 72svh;
  margin: 0 auto;
  width: min(100%, 72svh);
}
.chapter__figure {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0;
  will-change: clip-path, opacity;
}
.chapter__figure img { will-change: transform; }
.chapter__figure.is-active { opacity: 1; }
.chapter__copy { position: relative; z-index: 3; }
.chapter__copy { max-width: 460px; }
.chapter__kicker,
.lenslab__kicker {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--accent);
  margin-bottom: var(--space-3);
}
.chapter__steps { position: relative; min-height: 14rem; }
.chapter__step {
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.chapter__step.is-active { opacity: 1; }
.chapter__step h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 560; font-stretch: 108%;
  line-height: 1.05;
  margin-bottom: var(--space-2);
}
.chapter__step p { color: var(--ink-soft); max-width: 36ch; }
.chapter__foot {
  margin-top: var(--space-5);
  display: flex; align-items: center; gap: var(--space-3);
}
.chapter__counter {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.chapter__counter span { color: var(--accent); font-weight: 600; }
.chapter__progress {
  width: 180px; height: 1px;
  background: var(--hairline);
}
.chapter__progress span {
  display: block; height: 100%; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}

/* ============ SECTION TITLES ============ */
.section-title {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 620; font-stretch: 116%;
  line-height: 1;
  overflow: hidden;
}
.section-title__line { display: inline-block; transform: translateY(110%); }

/* ============ COLLECTION ============ */
.collection { padding: var(--space-7) var(--gutter); }
.collection__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.collection__count { color: var(--ink-soft); font-size: 1.05rem; }

/* ---- index list ---- */
.index { border-top: 1px solid var(--hairline); }
.index__row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-3);
  padding: 1.7rem 0.5rem;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  position: relative;
}
.index__num {
  font-size: 0.8rem; letter-spacing: 0.16em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s var(--ease-out);
}
.index__name {
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  font-weight: 640; font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  display: flex; align-items: center; gap: 1rem;
  transition: transform 0.55s var(--ease-out), color 0.55s var(--ease-out);
}
.index__dot {
  width: 0.32em; height: 0.32em; border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(19, 20, 18, 0.15);
  transition: transform 0.4s var(--ease-out);
}
.index__tag {
  font-family: var(--font-serif); font-style: italic;
  color: var(--ink-soft); font-size: 1rem;
  transition: opacity 0.4s var(--ease-out);
}
.index__price {
  font-size: 0.95rem; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s var(--ease-out);
}
.index__thumb { display: none; }
@media (hover: hover) {
  .index__row:hover .index__name { transform: translateX(1.4rem); color: var(--accent); }
  .index__row:hover .index__num { color: var(--accent); }
  .index__row:hover .index__dot { transform: scale(1.8); }
  .index__row:hover .index__price { color: var(--ink); }
}

/* floating preview that follows the cursor over the list */
.index__preview {
  position: fixed; top: 0; left: 0; z-index: 40;
  width: min(24vw, 340px);
  aspect-ratio: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  opacity: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.14);
}
.index__preview img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--zoom, 1.12));
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.index__preview img.is-active { opacity: 1; }

/* ============ LENS LAB ============ */
.lenslab {
  background: var(--dark);
  color: var(--dark-ink);
}
.lenslab__pin {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  padding: var(--space-6) var(--gutter);
}
.lenslab__pin::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(58% 52% at 50% 44%, #222224 0%, #0a0a0b 62%, #000 100%);
}
.lenslab__word {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  white-space: nowrap;
}
.lenslab__word span {
  grid-area: 1 / 1;
  font-size: min(15vw, 13rem);
  font-weight: 700; font-stretch: 125%;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 245, 247, 0.14);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.lenslab__word span.is-active { opacity: 1; transform: scale(1); }
.lenslab__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.lenslab__intro { position: relative; z-index: 1; }
.lenslab__title {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 600; font-stretch: 114%;
  line-height: 1;
}
.lenslab__labels {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  align-items: end;
}
.lenslab__label {
  position: relative;
  opacity: 0.38;
  transition: opacity 0.5s var(--ease-out);
  padding-top: var(--space-2);
}
.lenslab__label::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(245, 245, 247, 0.16);
}
.lenslab__label::after {
  content: "";
  position: absolute; top: -1px; left: 0;
  height: 3px; width: 100%;
  background: var(--tc, #fff);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}
.lenslab__label.is-active { opacity: 1; }
.lenslab__label.is-active::after { transform: scaleX(1); }
.lenslab__label h3 {
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(245, 245, 247, 0.6);
  transition: color 0.5s var(--ease-out);
  margin-bottom: 0.35rem;
}
.lenslab__label.is-active h3 { color: #fff; }
.lenslab__label p { font-size: 0.85rem; color: rgba(245, 245, 247, 0.5); max-width: 26ch; }

/* ============ CRAFT (full-bleed campaign image + materials) ============ */
.craft {
  padding: var(--space-6) var(--gutter);
  background: #fff; /* matches the photo's own background — no visible edges */
}
.craft__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-5);
}
.craft__head .craft__lead { margin-left: auto; margin-right: auto; }
.craft__body {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 38vw) 1fr;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
}
.craft__center { display: grid; place-items: center; }
.craft__center img {
  width: 100%; height: auto;
  object-fit: contain; /* whole photo, centered, no crop or zoom */
}
.craft__kicker {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.24em; color: var(--accent);
  margin-bottom: var(--space-2);
}
.craft__title {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 640; font-stretch: 116%;
  line-height: 1.02;
  margin-bottom: var(--space-2);
}
.craft__lead {
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: var(--space-4);
}
.craft__row {
  display: grid;
  grid-template-columns: 2.7rem 1fr;
  gap: var(--space-2);
  align-items: start;
  background: var(--bg-raise);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  will-change: transform, filter, opacity;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.craft__row + .craft__row { margin-top: 1rem; }
.craft__row:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}
.craft__num {
  font-size: 0.8rem;
  font-weight: 640;
  color: var(--accent);
  letter-spacing: 0.14em;
  padding-top: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.craft__row h3 {
  font-size: 1.08rem; font-weight: 650; font-stretch: 112%;
  margin-bottom: 0.35rem;
}
.craft__row p { font-size: 0.92rem; color: var(--ink-soft); max-width: 52ch; }
.craft__stats {
  display: flex;
  justify-content: center;
  gap: clamp(2.5rem, 8vw, 7rem);
  text-align: center;
  margin-top: var(--space-5);
}
.craft__stats strong {
  display: block;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 680; font-stretch: 120%;
}
.craft__stats span { font-size: 0.8rem; color: var(--ink-soft); }

/* ============ LOOKBOOK ============ */
.lookbook { position: relative; }
.lookbook__pin {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--space-5);
  overflow: hidden;
  padding: var(--space-6) 0;
}
.lookbook__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 var(--gutter);
}
.lookbook__hint {
  font-family: var(--font-serif); font-style: italic;
  color: var(--ink-soft);
}
.lookbook__track {
  display: flex; gap: var(--space-3);
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.look {
  width: clamp(240px, 26vw, 400px);
  flex-shrink: 0;
  cursor: pointer;
}
.look__media {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  aspect-ratio: 1;
}
.look__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--zoom, 1.12));
}
.look:nth-child(even) { transform: translateY(var(--space-4)); }
.look__row {
  display: flex; justify-content: space-between;
  padding-top: var(--space-1);
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.look__row span:last-child { color: var(--ink-soft); }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: var(--space-6) var(--gutter) var(--space-4);
  text-align: center;
}
.footer__serif {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}
.footer__title {
  display: block;
  font-size: clamp(5rem, 19vw, 19rem);
  font-weight: 680; font-stretch: 125%;
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-6);
  transition: color 0.5s var(--ease-out);
}
.footer__title:hover { color: var(--accent); }
.footer__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  text-align: left;
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-4);
}
.footer__col h4 {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-1);
  font-weight: 600;
}
.footer__col p { font-size: 0.9rem; line-height: 1.7; }
.footer__col--right { text-align: right; }

/* ============ SHOP: bag button, product view, bag drawer, checkout ============ */
.nav__cta--bag {
  background: none; cursor: pointer;
  color: inherit; font-family: inherit;
  display: inline-flex; align-items: center; gap: 0.55rem;
  transition: transform 0.3s var(--ease-out);
}
.nav__cta--bag:hover { transform: scale(1.05); }
.nav__bagcount {
  display: inline-grid; place-items: center;
  min-width: 1.7em; height: 1.7em;
  padding: 0 0.35em;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 0.85em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.btn-pill {
  background: var(--accent); color: #fff;
  border: 0; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.95em 2em;
  border-radius: 980px;
  transition: transform 0.3s var(--ease-out), filter 0.3s var(--ease-out);
}
.btn-pill:hover { filter: brightness(1.12); transform: scale(1.03); }
.btn-pill:active { transform: scale(0.98); }
.btn-pill--wide { width: 100%; }

.oclose {
  position: absolute; top: calc(var(--space-3) + 46px); right: var(--gutter); z-index: 5;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--bg-raise); color: var(--ink);
  border: 0; border-radius: 50%;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.oclose:hover { transform: rotate(90deg); background: var(--hairline); }

.shade {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0; visibility: hidden;
}

/* product view */
.pview {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: var(--gutter);
  padding: var(--space-5) var(--gutter);
  overflow-y: auto;
  visibility: hidden;
}
.pview__media {
  align-self: center;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 82svh;
  aspect-ratio: 1;
}
.pview__media img { width: 100%; height: 100%; object-fit: cover; }
.pview__info { max-width: 480px; padding-right: var(--space-4); }
.pview__kicker {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--accent);
  margin-bottom: var(--space-2);
}
.pview__name {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 660; font-stretch: 118%;
  text-transform: uppercase; line-height: 1;
}
.pview__tagline {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.2rem; color: var(--ink-soft);
  margin: 0.4rem 0 var(--space-3);
}
.pview__desc { color: var(--ink-soft); max-width: 42ch; margin-bottom: var(--space-4); }
.pview__buy { display: flex; align-items: center; gap: var(--space-3); }
.pview__price { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pview__ship { font-size: 0.8rem; color: var(--ink-soft); margin-top: var(--space-2); }
.pview__specs { margin-top: var(--space-4); border-top: 1px solid var(--hairline); }
.pview__specs > div {
  display: flex; justify-content: space-between; gap: var(--space-3);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9rem;
}
.pview__specs dt { color: var(--ink-soft); }
.pview__specs dd { font-weight: 500; text-align: right; }

/* bag drawer */
.bag {
  position: fixed; top: 46px; right: 0; bottom: 0; z-index: 85;
  width: min(440px, 100vw);
  background: var(--bg);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.15);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  visibility: hidden;
}
.bag__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--hairline);
}
.bag__head h3 { font-size: 1.2rem; font-weight: 650; font-stretch: 112%; text-transform: uppercase; }
.bag__head .oclose { position: static; }
.bag__items { flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-4); }
.bag__empty { color: var(--ink-soft); font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; padding: var(--space-4) 0; }
.bag-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--hairline);
}
.bag-item__thumb {
  width: 76px; aspect-ratio: 1; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--hairline);
}
.bag-item__name { font-weight: 600; font-stretch: 112%; text-transform: uppercase; font-size: 0.95rem; }
.bag-item__meta { font-size: 0.8rem; color: var(--ink-soft); }
.bag-item__qty {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-top: 0.35rem;
}
.bag-item__qty button {
  width: 26px; height: 26px;
  border: 1px solid var(--hairline); background: none; border-radius: 50%;
  cursor: pointer; font-size: 0.95rem; line-height: 1; color: var(--ink);
  transition: background 0.25s;
}
.bag-item__qty button:hover { background: var(--bg-raise); }
.bag-item__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.bag-item__remove {
  background: none; border: 0; cursor: pointer;
  font-size: 0.75rem; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 3px;
  margin-top: 0.3rem; padding: 0;
}
.bag__foot { padding: var(--space-3) var(--space-4) var(--space-4); border-top: 1px solid var(--hairline); }
.bag__total {
  display: flex; justify-content: space-between;
  font-size: 1.15rem; font-weight: 650;
  margin-bottom: 0.4rem;
}
.bag__note { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: var(--space-2); }

/* checkout */
.checkout {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  overflow-y: auto;
  display: grid; place-items: center;
  padding: var(--space-5) var(--gutter);
  visibility: hidden;
}
.checkout__inner { width: min(560px, 100%); }
.checkout__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 660; font-stretch: 116%;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.checkout__summary { border-top: 1px solid var(--hairline); margin-bottom: var(--space-3); }
.checkout__line {
  display: flex; justify-content: space-between; gap: var(--space-2);
  padding: 0.7rem 0; border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
}
.checkout__line--total { font-weight: 650; font-size: 1.1rem; }
.checkout__form { display: grid; gap: 0.8rem; }
.checkout__form input {
  font-family: inherit; font-size: 1rem;
  padding: 0.9em 1.1em;
  border: 1px solid var(--hairline); border-radius: 12px;
  background: var(--bg); color: var(--ink);
  width: 100%;
}
.checkout__form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.checkout__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.checkout__note { font-size: 0.78rem; color: var(--ink-soft); text-align: center; }
.checkout__done { text-align: center; padding: var(--space-5) 0; }
.checkout__done h2 {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: var(--space-2);
}
.checkout__done p { color: var(--ink-soft); margin-bottom: var(--space-3); }
.checkout__done .order-no { font-weight: 650; color: var(--ink); letter-spacing: 0.06em; }

/* ============ FLOATING WHATSAPP (same as Amasi) ============ */
.wa-float {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(18, 140, 75, 0.6);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 34px -8px rgba(18, 140, 75, 0.7); }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ============ LANGUAGE TOGGLE + ARABIC MODE ============ */
.nav__lang {
  background: none; border: 1.5px solid currentColor; color: inherit;
  cursor: pointer;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-family: "IBM Plex Sans Arabic", var(--font-sans);
  font-size: 1rem; font-weight: 700;
  line-height: 1;
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease-out);
}
.nav__lang:hover { transform: scale(1.1); }
/* Arabic nav: bolder, bigger — thin Latin tracking doesn't suit Plex */
body.lang-ar .nav__links a { font-size: 1.12rem; font-weight: 600; }
body.lang-ar .nav__cta {
  font-family: "IBM Plex Sans Arabic", var(--font-sans);
  font-size: 0.98rem; font-weight: 700;
  letter-spacing: 0; text-transform: none;
}
body.lang-ar .nav__bagcount { font-size: 0.9em; }

body.lang-ar { --font-serif: "IBM Plex Sans Arabic", "Source Serif 4", sans-serif; }
body.lang-ar [data-i18n], body.lang-ar [data-i18n-html] { font-style: normal; }
/* Arabic display: Anton has no Arabic — translated headlines fall back to bold Plex */
body.lang-ar .section-title,
body.lang-ar .chapter__step h2,
body.lang-ar .lenslab__title,
body.lang-ar .craft__title,
body.lang-ar .checkout__title,
body.lang-ar .bag__head h3 {
  font-family: "IBM Plex Sans Arabic", var(--font-sans);
  font-weight: 700;
  letter-spacing: 0;
}
body.lang-ar .nav__links a { font-family: "IBM Plex Sans Arabic", var(--font-sans); font-weight: 500; }
body.lang-ar em { font-style: normal; }
/* RTL only on text blocks — layout/animation containers stay LTR */
body.lang-ar :is(.hero__meta, .chapter__copy, .collection__head, .index__row,
  .lenslab__intro, .lenslab__labels, .craft__head, .craft__col, .craft__stats,
  .lookbook__head, .footer, .pview__info, .bag, .checkout__inner) {
  direction: rtl;
}

/* ============ REVEAL HELPERS ============ */
.reveal-y { opacity: 0; transform: translateY(40px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__product { width: min(78vw, 480px); }
  .hero__meta { flex-wrap: wrap; }
  .hero__meta-item--scroll { display: none; }
  .chapter__pin { grid-template-columns: 1fr; gap: var(--space-4); padding-top: var(--space-5); }
  .chapter__stage { max-height: 46svh; width: min(100%, 46svh); }
  .chapter__steps { min-height: 16rem; }
  .collection__head { flex-direction: column; align-items: flex-start; }
  .index__row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "thumb name price" "thumb tag tag";
    row-gap: 0.3rem;
  }
  .index__num { display: none; }
  .index__thumb {
    display: block; grid-area: thumb;
    width: 72px; aspect-ratio: 1;
    object-fit: cover; border-radius: 2px;
  }
  .index__name { grid-area: name; font-size: 1.5rem; }
  .index__tag { grid-area: tag; font-size: 0.9rem; }
  .index__price { grid-area: price; }
  .index__preview { display: none; }
  .lenslab__labels { grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-3); }
  .chapter__word span { font-size: clamp(4rem, 20vw, 8rem); }
  .craft { padding: var(--space-5) var(--gutter); }
  .craft__body { grid-template-columns: 1fr; }
  .craft__center { order: -1; }
  .craft__stats { flex-wrap: wrap; gap: var(--space-4); }
  .pview { grid-template-columns: 1fr; align-items: start; gap: var(--space-3); padding-top: var(--space-6); }
  .pview__media { max-height: none; width: 100%; }
  .pview__info { max-width: none; padding-right: 0; padding-bottom: var(--space-5); }
  .checkout { align-items: start; padding-top: var(--space-6); }
  .lookbook__pin { min-height: auto; }
  .lookbook__track {
    width: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .look { scroll-snap-align: center; }
  .footer__row { grid-template-columns: 1fr 1fr; }
  .footer__col--right { text-align: left; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .nav { opacity: 1; }
  .hero__word, .section-title__line { transform: none; }
  .hero__product, .hero__meta-item { opacity: 1; transform: none; }
  .reveal-y { opacity: 1; transform: none; }
  .hero__scroll-line { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
