/* =====================================================================
   FASOSKI — landing page stylesheet

   Design tokens first: palette, a single type scale, tracking rhythm,
   a radii scale and a layered shadow system. Every size and spacing
   value in the page resolves to one of these, so the page reads as
   deliberate rather than ad hoc.

   Mobile-first: base styles target ~375px, breakpoints widen upward.
   ===================================================================== */

/* ------------------------------ tokens ------------------------------ */
:root {
  /* --- palette (unchanged) --- */
  --black: #0d0d0d;
  --ink: #141414;
  --white: #ffffff;
  --off: #ececec;
  --mist: #f1f0f2;

  --canvas: #c2bdd3;      /* lilac page canvas behind the panels */
  --lilac: #b9a2e6;
  --violet: #bda4de;
  --lavender: #e8e6f1;
  --lime: #b7ef6a;
  --acid: #e9fe57;        /* acid / marigold family */
  --marigold: #f7c948;
  --orange: #f2621b;

  --muted: #6b6b74;
  --muted-strong: #56565e;

  /* --- type scale ---------------------------------------------------
     Four steps, used everywhere:
       1.0625rem  lead / prices
       0.875rem   body copy, footer links
       0.78125rem functional UI floor (12.5px) — nav, cart, buttons, chips
       0.6875rem  micro caps — badges, stickers, eyebrows, kickers
     Nothing renders below 11px.                                              */
  --fs-micro: .6875rem;
  --fs-ui: .78125rem;
  --fs-body: .875rem;
  --fs-lead: 1.0625rem;

  --fs-h-card: clamp(1.0625rem, 1.35vw, 1.5rem);      /* product names       */
  --fs-h-sub: clamp(1.5rem, 2.6vw, 2.6rem);           /* collage title       */
  --fs-h-section: clamp(2.15rem, 5.4vw, 4.75rem);     /* section headings    */
  --fs-h-festival: clamp(2.1rem, 6.4vw, 5.6rem);      /* festival headline   */

  /* --- tracking rhythm --------------------------------------------- */
  --tr-display: -.015em;   /* display type      */
  --tr-snug: -.005em;
  --tr-chip: .06em;        /* filter chips      */
  --tr-ui: .1em;           /* nav, cart         */
  --tr-btn: .09em;         /* buttons           */
  --tr-micro: .14em;       /* micro caps        */

  /* --- radii scale -------------------------------------------------- */
  --r-2xs: 8px;
  --r-xs: 12px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 28px;
  --pill: 999px;

  /* --- hairlines ---------------------------------------------------- */
  --hair: 1px solid rgba(13, 13, 13, .09);
  --hair-strong: 1px solid rgba(13, 13, 13, .16);
  --hair-light: 1px solid rgba(255, 255, 255, .16);

  /* --- layered shadows: soft, multi-stop, low opacity --------------- */
  --sh-1: 0 1px 1px rgba(24, 12, 46, .03), 0 3px 8px rgba(24, 12, 46, .045);
  --sh-2: 0 1px 1px rgba(24, 12, 46, .03), 0 6px 16px rgba(24, 12, 46, .06),
          0 16px 34px rgba(24, 12, 46, .055);
  --sh-3: 0 2px 2px rgba(24, 12, 46, .03), 0 10px 24px rgba(24, 12, 46, .07),
          0 30px 60px rgba(24, 12, 46, .09);
  --sh-fig: 0 30px 46px rgba(46, 24, 88, .17), 0 10px 20px rgba(46, 24, 88, .07);

  /* --- layout ------------------------------------------------------- */
  --gutter: 10px;
  --gap: 10px;
  --maxw: 1440px;
  --pad-x: clamp(16px, 3.6vw, 56px);

  --font-display: "Anton", "Archivo Black", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --font-body: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* the hero figure's ground line — the light pool the figure stands in */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ------------------------------ base -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

/* A fine grain over the whole page: material quality, one flat layer,
   no blend mode, no animation — it costs a single paint. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--ink); color: var(--white); padding: 10px 16px;
  border-radius: 10px; text-decoration: none; font-weight: 700; font-size: var(--fs-ui);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------ panels ------------------------------ */
.page { padding: var(--gutter); }

.panel {
  position: relative;
  background: var(--white);
  border-radius: var(--r-xl);
  margin-bottom: var(--gap);
  overflow: hidden;
}
.panel--white  { background: var(--white); }
.panel--violet { background: var(--violet); }
.panel--acid   { background: var(--acid); }
.panel--mist   { background: var(--off); }
.panel--black  { background: var(--black); }

.panel--hero {
  background:
    radial-gradient(120% 78% at 50% -14%, #ffffff 0%, #fbfaff 38%, #f2eefb 72%, #ebe4f7 100%),
    linear-gradient(180deg, #ffffff 0%, #f4f1fa 100%);
  padding-bottom: clamp(4px, 1vw, 12px);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(38px, 5.4vw, 84px) var(--pad-x);
}
.panel--hero > .wrap, .panel--footer > .wrap { padding-top: 0; }

/* --------------------------- type helpers --------------------------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  font-size: var(--fs-h-section);
  line-height: .92;
  letter-spacing: var(--tr-snug);
}
.section-title--light { color: var(--white); }
.section-title--left {
  text-align: left;
  /* optical margin: pull the caps' side bearing back onto the grid line */
  margin-left: -.022em;
}

/* ------------------------------ buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: var(--pill); cursor: pointer;
  padding: 14px 20px;
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-ui);
  letter-spacing: var(--tr-btn); text-transform: uppercase; text-decoration: none;
  transition: transform .24s var(--ease-out), background-color .24s var(--ease-soft),
              color .24s var(--ease-soft), box-shadow .24s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-1); }
.btn:active { transform: translateY(0); transition-duration: .08s; }
.btn--dark  { background: var(--ink); color: var(--white); }
.btn--dark:hover  { box-shadow: var(--sh-2); }
.btn--acid  { background: var(--acid); color: var(--ink); }
.btn--ghost { background: #f4f3f5; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: 10px 15px; font-size: var(--fs-ui); gap: 8px; }

.btn__dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--ink); color: var(--white);
  transition: transform .3s var(--ease-out), background-color .24s var(--ease-soft);
}
.btn__dot svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__dot { transform: rotate(45deg); }
.btn--acid .btn__dot { background: var(--ink); color: var(--white); }
.btn--dark .btn__dot { background: var(--white); color: var(--ink); }
.btn--ghost .btn__dot { background: var(--ink); color: var(--white); }

.btn-circle {
  width: clamp(94px, 9.6vw, 126px); aspect-ratio: 1; border-radius: 50%;
  background: var(--marigold); color: var(--ink);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-display); text-transform: uppercase; text-align: center;
  font-size: clamp(.86rem, 1.05vw, 1.06rem); line-height: .95; letter-spacing: .02em;
  text-decoration: none; box-shadow: var(--sh-2);
  transition: transform .3s var(--ease-out), background-color .24s var(--ease-soft),
              box-shadow .3s var(--ease-out);
}
.btn-circle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.btn-circle:hover { transform: scale(1.07) rotate(-4deg); background: var(--acid); box-shadow: var(--sh-3); }
.btn-circle:hover svg { transform: rotate(45deg); }

.circle-btn {
  width: clamp(42px, 4vw, 52px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--white);
  display: grid; place-items: center; flex: none;
}
.circle-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.cta-row { display: flex; justify-content: center; margin-top: clamp(24px, 3.2vw, 46px); }

/* ------------------------------- tags ------------------------------- */
.tag {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--fs-micro); letter-spacing: var(--tr-ui); text-transform: uppercase;
  padding: 6px 11px; border-radius: var(--pill); white-space: nowrap;
}
.tag--new { background: var(--acid); color: var(--ink); }
.tag--sticker {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  width: 42px; height: 42px; padding: 0; border-radius: 50%;
  background: var(--marigold); color: var(--ink);
  box-shadow: 0 1px 1px rgba(24, 12, 46, .04), 0 6px 14px rgba(24, 12, 46, .16);
  font-size: var(--fs-micro);
}

/* ============================== 1. HEADER =========================== */
.panel--header {
  position: sticky; top: var(--gutter); z-index: 120;
  overflow: visible;                      /* keeps sticky + drawer working */
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(13, 13, 13, .04);
  transition: background-color .35s var(--ease-soft), box-shadow .35s var(--ease-out),
              border-radius .35s var(--ease-out);
}
.panel--header.is-stuck {
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--sh-2);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: clamp(9px, 1.1vw, 12px) clamp(14px, 2.4vw, 34px);
  transition: padding .35s var(--ease-out);
}
.panel--header.is-stuck .header__inner { padding-block: clamp(6px, .8vw, 8px); }

.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo__mark { width: 20px; height: 20px; fill: var(--ink); flex: none; transition: transform .5s var(--ease-out); }
.logo:hover .logo__mark { transform: rotate(72deg); }
.logo__word {
  font-family: var(--font-display); font-size: clamp(1.12rem, 1.9vw, 1.5rem);
  letter-spacing: .01em; text-transform: uppercase; line-height: 1;
  transition: font-size .35s var(--ease-out);
}
.panel--header.is-stuck .logo__word { font-size: clamp(1.02rem, 1.6vw, 1.28rem); }
.logo__word sup { font-family: var(--font-body); font-size: .5em; font-weight: 700; top: -.5em; }

/* scroll progress hairline — the header reads as a live app chrome */
.header__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: linear-gradient(90deg, var(--lilac), var(--ink));
  transform: scaleX(var(--scroll-p, 0));
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity .35s var(--ease-soft);
}
.panel--header.is-stuck .header__progress { opacity: 1; }

.nav { display: none; }
.header__actions { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); justify-self: end; }

.link-quiet {
  display: none; font-size: var(--fs-ui); font-weight: 700; letter-spacing: var(--tr-ui);
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  transition: color .2s var(--ease-soft);
}
.link-quiet:hover { color: var(--ink); }

.cart {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: var(--fs-ui); font-weight: 700;
  letter-spacing: var(--tr-ui); text-transform: uppercase;
}
.cart__icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart.is-bump .cart__icon { animation: cartBump .44s var(--ease-out); }

.burger {
  width: 40px; height: 34px; border: 0; background: none; cursor: pointer;
  display: grid; place-content: center; gap: 5px; padding: 0;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  border-top: var(--hair);
  background: var(--white);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  animation: drawerIn .26s var(--ease-out);
}
.drawer__nav { display: flex; flex-direction: column; padding: 6px clamp(16px, 4vw, 34px) 18px; }
.drawer__nav a {
  padding: 14px 0; text-decoration: none; font-weight: 700; font-size: var(--fs-body);
  letter-spacing: var(--tr-ui); text-transform: uppercase; border-bottom: var(--hair);
}
.drawer__nav a:last-child { border-bottom: 0; }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes cartBump { 50% { transform: translateY(-4px) scale(1.15); } }

/* =============================== 2. HERO ============================ */
.hero {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(14px, 2.4vw, 30px) var(--pad-x) clamp(6px, 1.4vw, 14px);
}

.hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 6px;
}

/* The headline is sized to the layout measure so its longest line aligns
   to the grid: (viewport − scrollbar − page gutter − 2 · pad-x) · 0.1268.
   0.1268 = 0.975 ÷ 7.687em, the measured width of "FASHION TRANSITIONS"
   in Anton at the display tracking below. The 0.975 keeps a hair of
   optical inset so the type never literally collides with the margin. */
.hero__title {
  z-index: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, calc((100vw - 35px - 2 * clamp(16px, 3.6vw, 56px)) * .1268), 10.5rem);
  line-height: .82;
  letter-spacing: var(--tr-display);
  text-wrap: balance;
}
/* optical centring: tracking adds a trailing space after the last glyph,
   which biases centred caps to the left; give half of it back */
.hero__title span { display: block; padding-left: calc(var(--tr-display) * -.5); }

/* the figure group: the cut-out and the light pool it stands in travel
   together, so the figure never floats free of its own shadow */
.hero__figure {
  position: relative;
  display: block;
  align-self: end;
  z-index: 2;
  translate: 0 var(--fig-y, 0px);
}
.hero__model {
  position: relative;
  z-index: 2;
  width: clamp(212px, 29vw, 392px);
  filter: drop-shadow(0 22px 30px rgba(46, 24, 88, .16));
}
.hero__ground {
  position: absolute;
  z-index: 1;
  left: -34%; right: -34%; bottom: -2%;
  height: 26%;
  pointer-events: none;
  background:
    radial-gradient(46% 40% at 50% 44%, rgba(46, 24, 88, .20), rgba(46, 24, 88, .06) 52%, rgba(46, 24, 88, 0) 74%),
    radial-gradient(74% 62% at 50% 40%, rgba(255, 255, 255, .96), rgba(255, 255, 255, .5) 54%, rgba(255, 255, 255, 0) 78%);
}
/* a single hairline at the ground line, fading at both ends, ties the
   figure to the layout instead of leaving it hanging over the gutter */
.hero__ground::after {
  content: "";
  position: absolute; left: 12%; right: 12%; top: 42%;
  height: 1px;
  background: linear-gradient(90deg, rgba(46, 24, 88, 0), rgba(46, 24, 88, .16) 22%, rgba(46, 24, 88, .16) 78%, rgba(46, 24, 88, 0));
}

.hero__decor {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; width: 100%; z-index: 3;
}
.hero__decor > * { position: relative; }

.hero__badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--lilac); color: var(--ink);
  border-radius: var(--r-md); padding: 12px 16px 12px 12px;
  box-shadow: var(--sh-1); max-width: 190px;
  transform: rotate(-6deg);
}
.hero__badge-icon { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .55); display: grid; place-items: center; flex: none; }
.hero__badge-icon svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero__badge-text { font-weight: 700; font-size: var(--fs-micro); line-height: 1.2; letter-spacing: var(--tr-btn); text-transform: uppercase; }

/* the lower-left lockup: marker + label + rule that runs to the block
   edge, so no element reads as a clipped fragment, over a display line */
.hero__meta {
  order: 5; width: 100%;
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 10px;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: var(--tr-micro); text-transform: uppercase; color: var(--muted-strong);
}
.hero__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; }
.hero__rule { flex: 1 1 auto; height: 1px; background: currentColor; opacity: .3; }
.hero__since {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: .9rem; letter-spacing: var(--tr-ui); color: var(--ink); line-height: 1;
}

.hero__sale {
  width: clamp(72px, 15vw, 132px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.hero__sale-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero__sale-text {
  fill: var(--ink); font-family: var(--font-body); font-weight: 700;
  /* sized so the repeated string fills the 465-unit circle without clipping */
  font-size: 17px; letter-spacing: 2px; text-transform: uppercase;
}
.hero__sale-glyph { width: 26%; fill: var(--ink); position: relative; }
.hero__sale::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: var(--acid); box-shadow: var(--sh-1);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__card {
  position: relative;
  z-index: 4;                 /* above headline (1), figure (2) and decor (3) */
  width: min(232px, 64%);
  margin-top: 18px;
  background: var(--white); border-radius: var(--r-md); padding: 9px;
  box-shadow: var(--sh-2); text-align: center;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.hero__card img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-xs); }
/* the badge must sit above the photo it overlaps */
.hero__card .tag--new { position: absolute; top: 17px; left: 17px; z-index: 2; }
.hero__card-name { font-weight: 700; font-size: var(--fs-micro); letter-spacing: var(--tr-btn); text-transform: uppercase; margin: 9px 0 8px; }
.hero__card .btn { width: 100%; }

/* ====================== 3. CATEGORY FILTER BAR ====================== */
.filterbar {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--pad-x) clamp(20px, 2.6vw, 34px);
}
.filterbar__list {
  display: flex; align-items: center; gap: 4px;
  max-width: 1080px; margin: 0 auto; padding: 8px;
  background: var(--ink); border-radius: var(--pill);
  box-shadow: var(--sh-2);
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.filterbar__list::-webkit-scrollbar { display: none; }
.filterbar__item {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  color: var(--tint, var(--white)); text-decoration: none;
  font-weight: 700; font-size: var(--fs-ui); letter-spacing: var(--tr-chip); text-transform: uppercase;
  padding: 6px 14px 6px 7px; border-radius: var(--pill); white-space: nowrap;
  transition: background-color .22s var(--ease-soft), color .22s var(--ease-soft);
}
.filterbar__item:hover { background: rgba(255, 255, 255, .12); }
.filterbar__chip {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .13);
  display: grid; place-items: center;
  transition: background-color .22s var(--ease-soft), transform .3s var(--ease-out);
}
.filterbar__item:hover .filterbar__chip { background: rgba(255, 255, 255, .22); transform: rotate(-8deg); }
.filterbar__chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ============================== 4. GRIDS =========================== */
.grid { display: grid; gap: clamp(12px, 1.5vw, 22px); }
.grid--4 { grid-template-columns: minmax(0, 1fr); margin-top: clamp(24px, 3vw, 46px); }
.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(24px, 3vw, 46px); }

/* shared media treatment: a hairline inset keeps every photo feeling
   framed, and the image lifts fractionally on hover */
.pcard__img, .ccard__media img, .tcard__media img, .collage__item img {
  transition: transform .7s var(--ease-out);
}

/* --- arrivals: landscape product cards --- */
.pcard {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 12px; padding: 10px;
  background: var(--white); border: var(--hair); border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.pcard__img {
  width: 100%; height: 100%; min-height: 176px;
  object-fit: cover; border-radius: var(--r-sm); background: var(--lavender);
  box-shadow: inset 0 0 0 1px rgba(13, 13, 13, .05);
}
.pcard:hover .pcard__img { transform: scale(1.025); }
.pcard__body { display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 2px 0; }
.pcard__name {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: var(--fs-h-card); line-height: .98; letter-spacing: var(--tr-snug);
}
.pcard__copy { font-size: var(--fs-body); line-height: 1.42; color: var(--muted); }
.pcard__price { font-weight: 800; font-size: var(--fs-lead); margin-top: auto; font-variant-numeric: tabular-nums; }
.pcard .btn { align-self: flex-start; }

/* --- collection: category cards --- */
.ccard {
  position: relative; display: flex; flex-direction: column; gap: 11px;
  padding: 11px; text-decoration: none;
  background: rgba(255, 255, 255, .58);
  border: var(--hair-light);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 1px rgba(24, 12, 46, .02);
  transition: transform .4s var(--ease-out), background-color .4s var(--ease-soft),
              box-shadow .4s var(--ease-out);
}
.ccard:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .88); box-shadow: var(--sh-2); }
.ccard__media { display: block; border-radius: var(--r-sm); overflow: hidden; background: var(--white); aspect-ratio: 4 / 4.3; box-shadow: inset 0 0 0 1px rgba(13, 13, 13, .05); }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; }
.ccard:hover .ccard__media img { transform: scale(1.045); }
.ccard__label {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(.9rem, 1.15vw, 1.18rem); letter-spacing: .02em; color: var(--ink);
  margin-top: auto; padding-top: 2px;
}
.ccard__tag { position: absolute; top: 20px; right: 20px; z-index: 3; box-shadow: none; }

/* --- top products: t-shirt cards --- */
.tcard {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 10px; border-radius: var(--r-lg);
  border: 1px solid rgba(13, 13, 13, .07);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.tcard--1 { background: #d9ecf6; }
.tcard--2 { background: #e3dbf7; }
.tcard--3 { background: #e6e6e3; }
.tcard--4 { background: #f9dbE7; }
.tcard:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.tcard__media { display: block; border-radius: var(--r-sm); overflow: hidden; background: var(--white); aspect-ratio: 4 / 4.6; box-shadow: inset 0 0 0 1px rgba(13, 13, 13, .05); }
.tcard__media img { width: 100%; height: 100%; object-fit: cover; }
.tcard:hover .tcard__media img { transform: scale(1.045); }
.tcard__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px 2px; }
.tcard__label { font-family: var(--font-display); text-transform: uppercase; font-size: 1rem; }
.tcard__price { font-weight: 800; font-size: var(--fs-body); font-variant-numeric: tabular-nums; }
.tcard__add {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 1px 2px rgba(13, 13, 13, .18);
  transition: transform .3s var(--ease-out), background-color .24s var(--ease-soft), color .24s var(--ease-soft);
}
.tcard__add svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tcard__add:hover { background: var(--acid); color: var(--ink); transform: rotate(90deg); }

/* ============================= 6. GALLERY ========================== */
.gallery__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: clamp(14px, 2.4vw, 34px); }
.gallery__note { display: flex; align-items: center; gap: 14px; max-width: 22rem; }
.gallery__note p { font-size: var(--fs-ui); font-weight: 600; letter-spacing: var(--tr-ui); text-transform: uppercase; line-height: 1.55; }

.collage {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  align-items: center;
  margin-top: clamp(24px, 3vw, 48px);
}
.collage__item { overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.collage__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.collage__item:hover img { transform: scale(1.035); }
.collage__text { text-align: center; padding: 6px; }
.collage__kicker { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.collage__title { font-family: var(--font-display); text-transform: uppercase; font-size: var(--fs-h-sub); line-height: .95; margin: 12px 0 14px; }

.collage__copy { font-size: var(--fs-body); line-height: 1.55; color: var(--muted); max-width: 32ch; margin-inline: auto; }

.readmore {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(22px, 2.6vw, 40px);
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1rem, 1.4vw, 1.3rem); letter-spacing: .02em;
  text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 4px;
}
.readmore svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.readmore:hover svg { transform: translate(3px, -3px); }

/* ============================ 7. MARQUEE =========================== */
.marquee-panel { padding: 0; }
.marquee { overflow: hidden; padding: clamp(15px, 1.7vw, 24px) 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent); mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent); }
/* Each list travels its own width, so the loop stays seamless no matter
   how many copies are needed to fill the viewport. */
.marquee__inner { display: flex; width: max-content; }
.marquee__list { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); padding: 0 clamp(8px, 1.2vw, 20px); animation: marqueeScroll var(--marquee-dur, 26s) linear infinite; }
.marquee__list li {
  font-family: var(--font-display); text-transform: uppercase; color: var(--white);
  font-size: clamp(1.1rem, 2.4vw, 2.05rem); white-space: nowrap; letter-spacing: var(--tr-snug);
}
.marquee__star { display: flex; }
.marquee__star svg { width: clamp(.9rem, 1.3vw, 1.25rem); height: clamp(.9rem, 1.3vw, 1.25rem); fill: var(--acid); }
.marquee:hover .marquee__list { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ============================ 8. FESTIVAL ========================== */
.festival { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 34px); justify-items: center; text-align: center; }
.festival__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: var(--fs-h-festival); line-height: .9; letter-spacing: var(--tr-snug);
  z-index: 1;
}
.festival__title span { display: block; }

/* the figure is a bust cut-out, so it is presented as one: it rises out
   of the panel floor inside its own light pool rather than pretending to
   be a whole body */
.festival__figure {
  position: relative;
  z-index: 2;
  width: clamp(190px, 24vw, 306px);
  margin-bottom: -2px;
  translate: 0 var(--fig-y, 0px);
}
.festival__figure img { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 22px 30px rgba(40, 20, 80, .2)); }
.festival__ground {
  position: absolute;
  z-index: 1;
  left: -30%; right: -30%; bottom: -3%;
  height: 24%;
  background:
    radial-gradient(46% 40% at 50% 44%, rgba(46, 24, 88, .16), rgba(46, 24, 88, .05) 52%, rgba(46, 24, 88, 0) 74%),
    radial-gradient(72% 60% at 50% 40%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4) 54%, rgba(255, 255, 255, 0) 78%);
}
.festival__ground::after {
  content: "";
  position: absolute; left: 14%; right: 14%; top: 42%;
  height: 1px;
  background: linear-gradient(90deg, rgba(46, 24, 88, 0), rgba(46, 24, 88, .14) 22%, rgba(46, 24, 88, .14) 78%, rgba(46, 24, 88, 0));
}

.festival__side { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.festival__side p { font-size: var(--fs-body); letter-spacing: .04em; text-transform: uppercase; font-weight: 500; line-height: 1.65; max-width: 38ch; }

/* ============================= 9. FOOTER =========================== */
.panel--footer {
  position: relative;
  background: linear-gradient(180deg, #b9a2e6 0%, #c8b4ee 26%, #ded1f5 60%, #f4eefc 86%, #fdfcff 100%);
  padding: clamp(30px, 4vw, 56px) 0 clamp(16px, 1.8vw, 24px);
  overflow: hidden;
}
.footer__glow {
  position: absolute; left: 50%; top: -18%;
  width: 130%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .5), transparent 62%);
  pointer-events: none;
}
.footer__circle { position: absolute; top: clamp(18px, 3vw, 38px); right: clamp(16px, 3vw, 40px); display: none; z-index: 3; }

.footer__watermark {
  position: relative;
  display: block; width: 100%; height: auto;
  overflow: visible;
  margin-bottom: clamp(18px, 2.4vw, 36px);
  filter: drop-shadow(0 12px 26px rgba(60, 30, 120, .14));
}

.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 42px); position: relative; }
.footer__col h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1rem, 1.2vw, 1.2rem); letter-spacing: .04em; margin-bottom: 13px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; padding: 0; }
.footer__col a { display: inline-flex; align-items: center; gap: 9px; font-size: var(--fs-body); text-decoration: none; color: rgba(13, 13, 13, .72); transition: color .2s var(--ease-soft); }
.footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.soc { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .62); display: grid; place-items: center; flex: none; transition: background-color .24s var(--ease-soft); }
.soc svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer__col a:hover .soc { background: var(--acid); }
.footer__social li:first-child .soc { background: var(--marigold); }

.footer__bar {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  margin-top: clamp(24px, 3vw, 42px); padding-top: 18px;
  border-top: var(--hair-strong);
  font-size: var(--fs-ui); color: rgba(13, 13, 13, .66);
}
.footer__legal { display: inline-flex; gap: 10px; align-items: center; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }

/* ============================== toast ============================== */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 300;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: var(--white);
  padding: 13px 20px; border-radius: var(--pill);
  font-size: var(--fs-ui); font-weight: 600; letter-spacing: var(--tr-chip);
  box-shadow: var(--sh-3);
  opacity: 0; pointer-events: none;
  transition: opacity .26s var(--ease-soft), transform .26s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================== 10,000ft: hero entrance choreography =========== */
.hero__title span { animation: heroLine 1s var(--ease-out) .08s both; }
.hero__title span:nth-child(2) { animation-delay: .18s; }
.hero__figure { animation: heroFigure 1.2s var(--ease-out) .12s both; }
.hero__decor > * { animation: heroDecor .9s var(--ease-out) both; }
.hero__decor > *:nth-child(1) { animation-delay: .34s; }
.hero__decor > *:nth-child(2) { animation-delay: .42s; }
.hero__decor > *:nth-child(3) { animation-delay: .5s; }
.hero__card { animation: heroDecor .9s var(--ease-out) .46s both; }

@keyframes heroLine { from { opacity: 0; transform: translateY(.42em); } to { opacity: 1; transform: none; } }
@keyframes heroFigure { from { opacity: 0; transform: translateY(26px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes heroDecor { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =========================== scroll reveal ========================= */
/* Staggered: script.js sets --i per item within its grid, so a row of
   cards arrives as a sequence instead of a single block. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}
html.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-soft) calc(var(--i, 0) * 70ms),
              transform .85s var(--ease-out) calc(var(--i, 0) * 70ms);
}

/* ============================== ≥ 600px ============================ */
@media (min-width: 600px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__circle { display: inline-flex; }
}

/* ============================== ≥ 900px ============================ */
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .hero__stage { min-height: clamp(430px, 46vw, 690px); padding: 0; align-items: center; }
  .hero__title { grid-area: 1 / 1; }

  .hero__figure {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: center;
    margin-bottom: calc(-1 * clamp(4px, 1vw, 12px));
  }
  /* a slightly smaller figure than the mobile flow: it keeps the cut-out a
     strong presence while letting the grid-locked headline stay readable.
     The 260px floor matches the base rule at the 900px breakpoint, so the
     figure does not jump when the layout crosses over. */
  .hero__model { width: clamp(260px, 25vw, 330px); }

  .hero__decor { position: absolute; inset: 0; display: block; width: auto; margin: 0; pointer-events: none; }
  .hero__decor > * { position: absolute; pointer-events: auto; }
  .hero__badge { left: 0; top: 7%; }
  .hero__sale { right: 0; top: -1%; }
  .hero__meta { left: 0; bottom: 3%; width: min(300px, 24%); margin-top: 0; }
  .hero__card { position: absolute; right: 0; bottom: 0; width: clamp(158px, 15vw, 202px); margin-top: 0; }

  .collage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.05fr); }
  .collage__item--left { translate: 0 var(--par-y, -14px); }
  .collage__item--right { translate: 0 calc(var(--par-y, 14px) * -1); }

  /* festival: headline and copy in column one, the bust rising from the
     floor of column two — no more figure sitting on top of the words.
     The figure stretches to the grid area so it can never overflow the
     panel and get clipped at the top. */
  .festival {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    grid-template-rows: auto 1fr;
    min-height: clamp(430px, 33vw, 500px);
    text-align: left; justify-items: start; align-items: start;
  }
  .festival__title { grid-area: 1 / 1 / 2 / 2; align-self: start; }
  .festival__figure {
    grid-area: 1 / 2 / 3 / 3;
    justify-self: center;
    align-self: stretch;
    width: auto;
    margin-bottom: 0;
  }
  .festival__figure img { height: 100%; width: auto; margin-inline: auto; }
  .festival__side { grid-area: 2 / 1 / 3 / 2; align-items: flex-start; align-self: center; }

  .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__circle { top: clamp(24px, 3.6vw, 52px); }
}

/* ============================== ≥ 1000px =========================== */
@media (min-width: 1000px) {
  .nav {
    display: flex; gap: clamp(18px, 2.4vw, 40px);
    justify-self: center;
    font-size: var(--fs-ui); font-weight: 600; letter-spacing: var(--tr-ui); text-transform: uppercase;
  }
  .nav a { text-decoration: none; position: relative; padding: 4px 0; }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
    height: 2px; background: var(--ink);
    transition: right .32s var(--ease-out);
  }
  .nav a:hover::after { right: 0; }
  .link-quiet { display: inline-flex; }
  .burger { display: none; }
  .drawer { display: none !important; }
}

/* ============================== ≥ 1200px =========================== */
@media (min-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wrap { padding-top: clamp(56px, 5vw, 92px); padding-bottom: clamp(56px, 5vw, 92px); }
  .panel--hero > .wrap, .panel--footer > .wrap { padding-top: 0; }
}

/* ===================== motion preferences ========================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .marquee__list { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .hero__sale-ring { animation: none; }
  .marquee__star { display: flex; }
  /* every entrance and reveal resolves to its finished, visible state */
  .hero__title span, .hero__figure, .hero__decor > *, .hero__card { animation: none; opacity: 1; transform: none; }
  html.js .reveal { opacity: 1; transform: none; }
  .hero__figure, .festival__figure { translate: none; }
  .collage__item--left, .collage__item--right { translate: none; }
}

/* ===================== very narrow safety net ====================== */
@media (max-width: 380px) {
  :root { --gutter: 6px; --pad-x: 14px; }
  .hero__sale { width: 82px; }
  .marquee__list li { font-size: 1.05rem; }
}
