:root {
  --bg: oklch(0.932 0.004 90);
  --ink: oklch(0.19 0.005 270);
  --rule: oklch(0.19 0.005 270 / 0.42);
  --muted: oklch(0.19 0.005 270 / 0.68); /* ≥ 4.5:1 on the page tint */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pad: clamp(16px, 2.2vw, 32px);
  --from: left; /* where growing bars start: the reading edge */
}

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

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 40;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(3) infinite;
}
@keyframes grain {
  33% { transform: translate(-2%, 1.5%); }
  66% { transform: translate(1.5%, -2%); }
}

/* ------------------------------------------------------------------ type */

.nav-links { font-size: 15px; font-weight: 500; }
.eyebrow, .specs dt, .hud-count .count-total, .engrave-form label, .nav-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mask { display: block; overflow: hidden; }
.mask > span { display: block; }

.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll > span { display: block; white-space: nowrap; }

.ph { color: var(--muted); font-style: italic; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 2px var(--pad);
  pointer-events: none;
}
.nav-mark { display: inline-block; padding: 12px 8px 12px 0; }
.nav > * { pointer-events: auto; }
.nav-mark svg { display: block; height: 20px; width: auto; color: var(--ink); }
.nav-links { display: flex; gap: 28px; }
/* 44px tall hit areas without growing the type */
.nav-links a { display: inline-block; padding: 16px 2px; text-decoration: none; position: relative; opacity: 0.55; transition: opacity 0.3s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { opacity: 1; }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}
.nav-tag { justify-self: end; color: var(--muted); }
.nav-more { display: none; }
.nav-menu {
  position: absolute;
  top: 56px;
  inset-inline-end: var(--pad);
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 16px;
  pointer-events: auto;
}
.nav-menu[hidden] { display: none; }
.nav-menu a { padding: 12px 14px; font-size: 16px; font-weight: 500; text-decoration: none; border-radius: 10px; }
.nav-menu a:hover { background: color-mix(in oklch, var(--ink) 6%, transparent); }

/* -------------------------------------------------------------- sections */

main { position: relative; }
section { position: relative; z-index: 2; }

.pinned { height: calc(var(--len) * 100vh); }
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 80px var(--pad) 28px;
  pointer-events: none;
}
.stage a, .stage button, .stage input, .stage label, .stage li { pointer-events: auto; }

/* hero: the headline sits behind the cup, the CTA in front of it */
.hero {
  z-index: auto;
  height: 100vh;
  height: 100svh;
  padding: 80px var(--pad) 28px;
  display: grid;
  grid-template-rows: 1fr auto;
}
.hero-title {
  align-self: center;
  font-weight: 700;
  font-size: clamp(64px, 15.5vw, 260px);
  line-height: 1.12;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.hero-l2 { text-align: start; }
.hero-foot { display: flex; align-items: center; gap: 28px; align-self: end; }
.hero-sub { font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; }
.hero-title { position: relative; z-index: 0; }
.hero-foot { position: relative; z-index: 2; }

/* shared spec table */
.specs { width: min(300px, 100%); }
.specs div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0 6px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}

/* collection HUD */
.hud-info { position: absolute; top: 80px; inset-inline-start: var(--pad); width: min(300px, calc(100vw - 2 * var(--pad))); }
.hud-name {
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.hud-count {
  position: absolute;
  inset-inline-start: var(--pad);
  bottom: 28px;
  display: flex;
  align-items: baseline;
  font-weight: 700;
  font-size: clamp(48px, 6vw, 96px);
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.hud-count .count-total { letter-spacing: 0.12em; color: var(--muted); }
.hud-tagline {
  position: absolute;
  inset-inline-end: var(--pad);
  bottom: 30px;
  max-width: 260px;
  text-align: end;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hud-tagline .roll > span { white-space: normal; }
.hud-actions {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
/* progress dashes sit beside the counter; they grow with transform, not width */
.hud-ticks { list-style: none; display: flex; gap: 6px; margin-inline-start: 18px; align-self: center; }
.hud-ticks li {
  width: 28px;
  height: 2px;
  background: var(--rule);
  transform: scaleX(0.5);
  transform-origin: var(--from);
  transition: transform 0.6s var(--ease), background 0.6s var(--ease);
}
.hud-ticks li.is-active { transform: scaleX(1); background: var(--ink); }

.size-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
}
.size-toggle button {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.size-toggle button:hover { color: var(--ink); }
.size-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.explore, .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 20px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.explore:hover, .cta:hover { background: var(--ink); color: var(--bg); }
.cta-solid { background: var(--ink); color: var(--bg); }
.cta-solid:hover { background: transparent; color: var(--ink); }

/* product */
.product-stage { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.product-title {
  font-weight: 700;
  font-size: clamp(72px, 13vw, 220px);
  line-height: 1.1;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}
.product-title .roll { display: block; }
.product-specs { width: min(340px, 100%); }
.product-specs .size-toggle { font-size: 14px; }
.product-specs .size-toggle button { min-height: 36px; padding: 0 14px; }
.product-stage .cta { align-self: flex-start; }

/* inside */
.inside-stage { display: flex; align-items: center; }
.inside-title { display: flex; flex-direction: column; font-size: clamp(56px, 8vw, 140px); font-weight: 700; line-height: 1.12; }
.inside-title .word { opacity: 0; transform: translateY(0.35em); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.inside-title .word.is-on { opacity: 1; transform: none; }

/* details */
.details-stage { display: flex; align-items: flex-end; }
.detail-list { list-style: none; position: relative; width: min(420px, 100%); height: 180px; }
.detail {
  position: absolute;
  inset: auto 0 0 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.detail.is-active { opacity: 1; transform: none; }
.detail h3 {
  font-weight: 700;
  font-size: clamp(48px, 6.5vw, 104px);
  line-height: 1.15;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.detail p { margin-top: 12px; font-size: 16px; font-weight: 500; max-width: 300px; }
.detail-bar { position: absolute; inset-inline-end: var(--pad); bottom: 34px; width: 120px; height: 2px; background: var(--rule); }
.detail-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: var(--from); transform: scaleX(0); }

/* engrave */
.engrave-stage { display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.engrave-title {
  font-weight: 700;
  font-size: clamp(56px, 8vw, 140px);
  line-height: 1.12;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.engrave-copy { font-size: 16px; font-weight: 500; max-width: 320px; }
.engrave-form { width: min(380px, 100%); }
.engrave-form label { display: block; color: var(--muted); margin-bottom: 4px; }
.engrave-row { display: flex; align-items: center; gap: 16px; }
.engrave-row input { border-bottom: 1px solid var(--ink) !important; }
.engrave-row input:focus { border-bottom-width: 2px !important; }
.note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.save-block { display: flex; flex-direction: column; align-items: flex-start; }
.engrave-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 10px 0;
}
.engrave-row input::placeholder { color: var(--muted); font-weight: 500; }
.save-half { align-self: flex-start; }
.engrave-row .cta { flex: none; font-size: 15px; padding: 12px 26px; }

/* lineup */
.lineup-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.lineup-stage .lineup-list { margin-top: auto; }
.lineup-title {
  font-weight: 700;
  font-size: clamp(56px, 9vw, 160px);
  line-height: 1.12;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.lineup-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.lineup-list button {
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: opacity 0.4s var(--ease);
}
.lineup-list.has-hover button { opacity: 0.3; }
.lineup-list.has-hover button.is-hover { opacity: 1; }
.lineup-list li:not(:last-child)::after { content: "/"; margin-inline-start: 22px; color: var(--muted); }

/* footer */
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 40px var(--pad);
  border-top: 1px solid var(--rule);
  background: var(--bg);
  font-size: 13px;
}
.footer-mark { height: 18px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-inline-start: auto; }
.footer-links a { text-decoration: none; opacity: 0.6; transition: opacity 0.3s var(--ease); }
.footer-links a:hover { opacity: 1; }
.credit { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.credit a { color: var(--ink); text-underline-offset: 3px; }

/* --------------------------------------------------------- transitions */

.wipe {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  clip-path: circle(0% at 50% 50%);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--bg);
}
.loader svg { height: 30px; width: auto; color: var(--ink); }
.loader-n { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; color: var(--muted); }

/* ------------------------------------------------------------- mobile */

@media (max-width: 760px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav-links { justify-self: end; gap: 14px; align-items: center; }
  .nav-links .nav-secondary { display: none; }
  .nav-more { display: inline-block; font-size: 15px; font-weight: 500; padding: 14px 2px; opacity: 0.55; }
  .nav-more[aria-expanded="true"] { opacity: 1; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-cta { justify-content: center; min-height: 54px; font-size: 16px; }
  /* phones: the headline reads first, the cup stands below it */
  .hero { grid-template-rows: auto 1fr auto; padding-top: 72px; }
  .hero-title { align-self: start; font-size: 17.5vw; }
  .hero-l2 { text-align: start; }
  .nav-tag { display: none; }
  .hud-ticks { display: none; }
  .inside-stage { align-items: flex-start; padding-top: 84px; }
  .inside-title { flex-direction: row; gap: 0.3em; font-size: 40px; }
  .hud-tagline { bottom: 146px; max-width: 200px; }
  .hud-count { bottom: 138px; }
  .hud-actions { bottom: 24px; width: calc(100% - 2 * var(--pad)); }
  .product-stage { justify-content: flex-start; padding-top: 80px; }
  .product-specs { margin-top: auto; }
  .product-stage .cta { display: none; }
  .detail-bar { display: none; }
  .lineup-list li:not(:last-child)::after { display: none; }
  .size-toggle button, .lineup-list button { min-height: 44px; padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain,   .detail { transition: none; }
}

/* ------------------------------------------------------------- arabic */

[dir="rtl"] { --from: right; }
/* Tracking breaks Arabic letter joins, so all spacing returns to the font's own. */
[lang="ar"] body, [lang="ar"] body * { letter-spacing: 0 !important; }
[lang="ar"] .hero-title { font-size: clamp(56px, 12.5vw, 210px); }
[lang="ar"] .product-title { font-size: clamp(64px, 11vw, 190px); }
[lang="ar"] .hud-name { font-size: clamp(30px, 3.6vw, 56px); }
[lang="ar"] .detail h3 { font-size: clamp(44px, 5.6vw, 92px); }
[lang="ar"] .engrave-title { font-size: clamp(60px, 9vw, 156px); }
[lang="ar"] .lineup-title { font-size: clamp(52px, 7.5vw, 128px); }
[lang="ar"] .hud-count { font-family: "Inter Tight", "IBM Plex Sans Arabic", sans-serif; }
@media (max-width: 760px) {
  [lang="ar"] .hero-title { font-size: 15vw; }
}
