/* ==========================================================================
   Winter 001 — the campaign page, the home page's campaign strip and the
   campaign film (campaign-video.js). The shop's own tokens (store.css) only:
   one black, one lime, Archivo Black for display, Inter for reading.
   Claude Design's approved visuals replace the treatment here, not the markup.
   ========================================================================== */

/* --- the hero ------------------------------------------------------------- */
.cmp-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92vh, 900px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 0 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, hsl(0 0% 12%) 0%, var(--bg) 70%);
}
.cmp-media { position: absolute; inset: 0; z-index: -2; }
/* As the home hero's two scrims (handoff): a dark centre behind the words,
   and the page's black at the foot, so white and lime stay readable on any film. */
.cmp-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 68%, rgba(7, 7, 7, 0.78) 0%, rgba(7, 7, 7, 0.45) 72%, rgba(7, 7, 7, 0.7) 100%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.55) 0%, transparent 35%, rgba(7, 7, 7, 0.4) 70%, var(--bg) 100%);
}
.cmp-copy { padding: 0 24px 64px; text-align: center; max-width: 980px; margin: 0 auto; width: 100%; }
.cmp-eyebrow { margin: 0 0 14px; }
/* The brand's hero headline (handoff: h1 clamp(40px, 7.4vw, 96px), second line lime). */
.cmp-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 7.4vw, 96px); line-height: 0.96; letter-spacing: -1.5px; margin: 0;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
}
/* The campaign's headline: its name in Arabic only, as the owner drew it. */
.cmp-title-hayah { display: flex; flex-direction: column; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; }
/* The word as the owner drew it (public/assets/campaign/hayah, scripts/hayah-wordmark.mjs). */
.cmp-title-ar { display: block; line-height: 0; }
.cmp-wordmark {
  display: block; width: clamp(200px, 52vw, 400px); height: auto; margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.75));
}
/* The early-access page's promise, under its hero. */
.cmp-perk {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center;
  margin: 0; padding: 16px 24px; border-bottom: 1px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--fg);
}
/* The collection's page: early access is by invitation, through Instagram. */
.cmp-invite { text-align: center; }
.cmp-invite .cmp-lead { margin-left: auto; margin-right: auto; }
/* The comment word, in Arabic: Amiri sits small beside Latin, so it is set up a size. */
.cmp-invite .amiri { font-size: 1.3em; line-height: 1; }
.cmp-invite .btn { margin-top: 22px; }
.cmp-sub { color: var(--hero-sub); font-size: 16px; line-height: 1.6; margin: 18px auto 0; max-width: 560px; }

/* The countdown: four fixed-width cells, so the line never jumps as digits change. */
.cmp-count { display: flex; justify-content: center; gap: 10px; margin: 30px auto 0; }
/* Glass cells, as the shop's chips and Cart pill (.liquid-glass). */
.cmp-unit {
  min-width: 74px; padding: 12px 8px 10px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.cmp-num {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 44px); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cmp-lab { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.cmp-hero[data-cmp-state='open'] .cmp-count { display: none; }

.cmp-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.cmp-ctas .btn { min-height: 50px; padding: 17px 42px; }

/* Staff preview (#preview-…): a plain bar under the nav. */
.cmp-preview {
  margin: 0; padding: 10px 16px; text-align: center; font-size: 13px; font-weight: 600;
  background: var(--lime); color: #070707;
}

/* --- early access ---------------------------------------------------------- */
.cmp-early { text-align: center; }
.cmp-lead { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 560px; margin: 14px auto 0; }
.cmp-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 26px auto 0; text-align: left; }
.cmp-switch { display: flex; gap: 8px; justify-content: center; }
.cmp-switch .filter-pill {
  border-radius: 9999px; padding: 8px 18px; min-height: 40px;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  font: inherit; font-size: 13px; cursor: pointer; transition: all 0.18s ease;
}
.cmp-switch .filter-pill:hover { color: var(--fg); }
.cmp-switch .filter-pill[aria-pressed='true'] { background: var(--lime); border-color: var(--lime); color: #070707; }
.cmp-consent { font-size: 13px; line-height: 1.55; color: var(--muted); align-items: flex-start; }
.cmp-consent input { margin-top: 3px; }
.cmp-form .btn { width: 100%; }
.cmp-code {
  max-width: 420px; margin: 26px auto 0; padding: 22px; border-radius: 20px;
  border: 1px solid var(--lime-ring); background: var(--lime-fill-soft);
}
.cmp-code-label { margin: 0; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.cmp-code-value {
  margin: 8px 0 0; font-family: var(--font-display); font-size: 34px; letter-spacing: 1px; color: var(--lime);
  user-select: all;
}
.cmp-code-note { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cmp-empty { color: var(--muted); font-size: 15px; text-align: center; margin: 24px 0 0; }
.cmp-early[data-state='open'] .cmp-form, .cmp-early[data-state='open'] .cmp-code { display: none; }

/* A campaign piece that cannot be bought yet: the card stays fully legible. */
.card.is-locked .btn-add { opacity: 0.75; }

/* --- the story: stills, the designer's words, the way to each piece -------- */
.cmp-story .section-head { margin-bottom: 40px; }
.cmp-row {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  margin: 0 0 clamp(48px, 7vw, 96px);
}
.cmp-row-flip .cmp-still { order: 2; }
.cmp-still { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); aspect-ratio: 16 / 9; }
.cmp-still img, .cmp-band img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmp-row-k { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--lime); margin: 0 0 14px; }
.cmp-quote {
  font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 42px); line-height: 1.08;
  text-transform: uppercase; margin: 0 0 6px; text-wrap: balance;
}
.cmp-quote[lang='ar'] { font-family: 'IBM Plex Sans Arabic', var(--font-display); font-weight: 500; text-transform: none; line-height: 1.3; text-align: left; }
.cmp-quote-en { font-family: inherit; font-size: 17px; text-transform: none; color: var(--muted); margin: 0 0 10px; }
/* What the sentence says and who wears it: a short paragraph under each. */
.cmp-quote-about { font-size: 15px; line-height: 1.7; color: var(--fg); opacity: 0.82; max-width: 46ch; margin: 0 0 24px; text-wrap: pretty; }
.cmp-quote-hand + .cmp-quote-about { margin-top: 12px; }
.cmp-band-about { max-width: 40ch; opacity: 0.9; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8); margin-bottom: 14px; }
.cmp-quote-hand { text-transform: none; }
.cmp-row-meta { color: var(--muted); font-size: 14px; margin: 4px 0 22px; }
.cmp-row-meta [data-story-price] { color: var(--lime); font-weight: 600; }
.cmp-row-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
/* A full-width still with the words over it. */
.cmp-band {
  position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--border);
  aspect-ratio: 21 / 9; min-height: 360px; margin: 0 0 clamp(48px, 7vw, 96px); background: var(--surface);
}
.cmp-band picture { position: absolute; inset: 0; }
.cmp-band::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,7,7,0.82) 0%, rgba(7,7,7,0.45) 45%, rgba(7,7,7,0) 75%);
}
.cmp-band-body { position: absolute; left: clamp(20px, 4vw, 56px); bottom: clamp(20px, 4vw, 48px); z-index: 1; max-width: 520px; }
.cmp-band-quote {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 68px); line-height: 0.98;
  text-transform: uppercase; margin: 0 0 10px; text-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}
/* Each part rises in as it reaches the screen (page-campaign.js); still, with reduced motion. */
.cmp-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cmp-reveal.is-in { opacity: 1; transform: none; }
/* The piece a story link led to, for a moment. */
.card.is-picked { outline: 2px solid var(--lime); outline-offset: 4px; transition: outline-color 0.4s ease; }
@media (max-width: 860px) {
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-row-flip .cmp-still { order: 0; }
  .cmp-band { aspect-ratio: 4 / 5; min-height: 0; }
  .cmp-band::after { background: linear-gradient(0deg, rgba(7,7,7,0.88) 0%, rgba(7,7,7,0.4) 50%, rgba(7,7,7,0) 80%); }
}
@media (prefers-reduced-motion: reduce) {
  .cmp-reveal { opacity: 1; transform: none; transition: none; }
}

/* --- the veil: until it is revealed, the collection is a teaser ------------- */
/* Blurred and out of reach (inert) while page-campaign.js says "before"; the
   reveal is the opening, or the start of early access when the desk sets one. */
[data-veiled] { transition: filter 1.4s ease; }
.cmp-veil-note { display: none; }
.is-veiled .cmp-veil-note {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content;
  position: sticky; top: 46vh; z-index: 3; margin: 0 auto -48px; padding: 12px 20px;
  border-radius: 9999px; font-size: 14px; font-weight: 500; color: var(--fg);
}
.cmp-veil-short { display: none; }
@media (max-width: 640px) { .cmp-veil-long { display: none; } .cmp-veil-short { display: inline; } }
.cmp-veil-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(181, 211, 52, 0.18); }
.is-veiled [data-veiled] { pointer-events: none; user-select: none; }
#pieces.is-veiled [data-veiled] { filter: blur(20px) saturate(0.6); }
/* The story (the client, 27 October): the photos blurred but still there, the
   sentences readable as the teaser, only a short line under each; no price
   and no button until the reveal. */
.cmp-story.is-veiled .cmp-still img, .cmp-story.is-veiled .cmp-band img { filter: blur(14px) saturate(0.85); transform: scale(1.1); }
.cmp-story.is-veiled .cmp-row-meta, .cmp-story.is-veiled .btn, .cmp-story.is-veiled .cmp-row-ctas { display: none; }
/* Over readable words the note would be in the way: in the story it sits under the heading. */
.cmp-story.is-veiled .cmp-veil-note { position: static; margin: 0 0 36px; }
.cmp-still img, .cmp-band img { transition: filter 1.4s ease, transform 1.4s ease; }
@media (prefers-reduced-motion: reduce) {
  [data-veiled], .cmp-still img, .cmp-band img { transition: none; }
}

/* --- the home page's countdown, at the top of the hero --------------------- */
.hero-cmp {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  margin: 0 auto 18px; padding: 13px 24px 11px; border-radius: 20px;
  color: var(--fg); text-decoration: none;
}
/* With the countdown in it, the hero's words sit a little closer (the ticker stays on the first screen). */
.hero-copy:has(.hero-cmp) { padding-top: 32px; padding-bottom: 40px; }
.hero-copy:has(.hero-cmp) .hero-eyebrow { margin-bottom: 14px; }
.hero-copy:has(.hero-cmp) .hero-sub { margin-top: 18px; }
.hero-copy:has(.hero-cmp) .hero-ctas { margin-top: 24px; }
.hero-cmp-label { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--lime); }
.hero-cmp-count { display: flex; justify-content: center; gap: 14px; }
.hero-cmp-unit { display: flex; flex-direction: column; align-items: center; min-width: 88px; }
.hero-cmp-num {
  font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 52px); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.5px;
}
.hero-cmp-lab { margin-top: 6px; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.hero-cmp-go { font-size: 13px; color: var(--muted); transition: color 0.2s ease; }
.hero-cmp:hover .hero-cmp-go, .hero-cmp:focus-visible .hero-cmp-go { color: var(--lime); }
.hero-cmp:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.hero-cmp[data-state='open'] .hero-cmp-count { display: none; }

/* --- the strip (the shop's Winter 001 card) ------------------------------- */
.cmp-strip {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px;
  /* Under the ticker, which draws the line above. */
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  background: var(--surface); color: var(--fg); text-decoration: none; text-align: center;
}
.cmp-strip:hover .cmp-strip-go, .cmp-strip:focus-visible .cmp-strip-go { color: var(--lime); }
.cmp-strip-name { font-family: var(--font-display); text-transform: uppercase; font-size: 18px; letter-spacing: 0.5px; }
.cmp-strip-when { color: var(--muted); font-size: 14px; }
.cmp-strip-count { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--lime); font-size: 14px; }
.cmp-strip-go { font-size: 14px; font-weight: 600; transition: color 0.2s ease; }
/* On the shop: the collection's own section, as a card above the tees. */
.cmp-strip-card { border: 1px solid var(--border); border-radius: 20px; margin: 0 0 28px; padding: 18px 24px; }
.cmp-strip-card:hover { border-color: var(--border-2); }
.cmp-strip-what { font-size: 14px; }

/* --- the film -------------------------------------------------------------- */
.film { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }
.film-poster, .film-poster img, .film-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Not fully transparent before it plays: Safari may treat an invisible film as one not to start. */
.film-video { opacity: 0.01; transition: opacity 0.6s ease; }
.film.is-playing .film-video { opacity: 1; }
/* On the home page the film takes the place of the clothes photos, under a
   lighter veil than the photos had: enough for the words, not so much the
   sunset is lost. */
.hero.has-film .hero-tracks { display: none; }
.hero.has-film .hero-scrim-radial {
  background: radial-gradient(ellipse 62% 58% at 50% 48%,
    rgba(7,7,7,0.66) 0%, rgba(7,7,7,0.48) 55%, rgba(7,7,7,0.32) 78%, rgba(7,7,7,0.7) 100%);
}
.hero.has-film .hero-scrim-linear {
  background: linear-gradient(180deg,
    rgba(7,7,7,0.75) 0%, rgba(7,7,7,0) 24%, rgba(7,7,7,0) 66%, rgba(7,7,7,0.95) 100%);
}
.hero.has-film .hero-scrim-radial, .hero.has-film .hero-scrim-linear { z-index: 1; }
/* The film's Pause sits where the photos' note was. */
.hero.has-film .hero-foot .note { visibility: hidden; }
.hero .film { z-index: 0; }

@media (max-width: 640px) {
  .cmp-hero { min-height: 86vh; padding-top: 100px; }
  .cmp-copy { padding: 0 16px 48px; }
  .cmp-unit { min-width: 62px; padding: 10px 6px 8px; }
  .cmp-count { gap: 8px; }
  .cmp-strip { padding: 14px 16px; }
  .hero-cmp { margin-bottom: 20px; padding: 12px 14px 11px; gap: 8px; }
  .hero-cmp-unit { min-width: 58px; }
  .hero-cmp-count { gap: 6px; }
}
/* A short phone (an iPhone SE): both hero buttons stay on the first screen.
   The countdown panel is itself the link, so its small line can go. */
@media (max-width: 640px) and (max-height: 720px) {
  .hero-cmp-go { display: none; }
  .hero-cmp-num { font-size: 28px; }
  .hero-copy:has(.hero-cmp) { padding-top: 18px; }
  .hero-copy:has(.hero-cmp) .hero-sub { margin-top: 12px; }
  .hero-copy:has(.hero-cmp) .hero-ctas { margin-top: 16px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .film-video { transition: none; }
}
