/* So She Boutique · Designed & engineered by Borangi — https://borangi.com */
/* Layout concept: "The Loom". Faint warp threads run down the whole page;
   every section is a weft woven across them. Noir silk ground, the boutique's
   own crimson as the signal colour, zari gold as the precious metal. */
:root {
  --ink: #0e0809;          /* page ground, warm noir with a red bias */
  --silk: #170e10;         /* raised surface */
  --panel: #21151a;        /* cards, drawers */
  --crimson: #d3141c;      /* So She brand red */
  --crimson-deep: #7a0d14; /* poster maroon */
  --zari: #c9a55a;         /* gold thread */
  --zari-lite: #ead39b;
  --ivory: #f4ece1;        /* primary text */
  --mute: #b6a59d;         /* secondary text */
  --line: rgba(234, 211, 155, 0.14);
  --glass: rgba(23, 14, 16, 0.62);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
  --step-4: clamp(3.2rem, 2rem + 6vw, 7.5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--zari); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--zari); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Loom background ---------- */
#loom { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
main, footer, .nav { position: relative; z-index: 2; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 40%, #2a0b0f 0%, var(--ink) 60%);
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 22px; padding-inline: 16px; }
.loader svg { width: min(340px, 80vw); height: auto; overflow: visible; }
.loader .thread { fill: none; stroke: var(--zari); stroke-width: 1.4; stroke-linecap: round; }
.loader .thread--red { stroke: var(--crimson); stroke-width: 2; }
.loader__word { font-family: var(--f-display); font-size: clamp(2.6rem, 9vw, 4.2rem); letter-spacing: .06em; line-height: 1; }
.loader__word span { display: inline-block; opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.loader__meta { display: flex; gap: 18px; font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .14em; color: var(--mute); text-transform: uppercase; }
.loader__pct { color: var(--zari-lite); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }
.loader__bar { width: min(260px, 70vw); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--crimson), var(--zari)); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Cursor (fine pointers only) ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 90; border-radius: 50%; opacity: 0; }
@media (pointer: fine) {
  .cursor { width: 38px; height: 38px; border: 1px solid var(--zari); margin: -19px 0 0 -19px; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, opacity .3s; mix-blend-mode: difference; }
  .cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--crimson); }
  body.has-cursor .cursor, body.has-cursor .cursor-dot { opacity: 1; }
  .cursor.is-hover { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: rgba(234, 211, 155, .12); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: var(--glass); border-bottom: 1px solid var(--line);
}
.nav__row { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: auto; height: 48px; border-radius: 7px; box-shadow: 0 6px 22px -8px rgba(211, 20, 28, .75); transition: transform .4s var(--ease); }
.brand:hover img { transform: scale(1.05) rotate(-2deg); }
.brand__text { display: grid; line-height: 1.1; }
.brand__text b { font-family: var(--f-display); font-weight: 500; font-style: italic; font-size: 1.2rem; }
.brand__text small { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--zari); }
@media (max-width: 420px) { .brand__text { display: none; } }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: .92rem; color: var(--mute); position: relative; padding-block: 6px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--zari); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__tools { display: flex; align-items: center; gap: 10px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 14px; font-size: .86rem; transition: border-color .3s, background .3s; }
.chip-btn:hover { border-color: var(--zari); background: rgba(201, 165, 90, .08); }
.chip-btn .count { font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--zari-lite); }
.threads-meter { display: inline-flex; gap: 3px; }
.threads-meter i { width: 6px; height: 14px; border-radius: 2px; background: var(--line); transition: background .4s, box-shadow .4s; }
.threads-meter i.on { background: var(--zari); box-shadow: 0 0 10px rgba(201, 165, 90, .7); }
.cart-btn { position: relative; }
.cart-btn .count { background: var(--crimson); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: .72rem; padding-inline: 5px; }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__tools { margin-left: auto; }
  .chip-btn .label-wide { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 9vw, 120px) clamp(40px, 6vw, 80px); position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: var(--step-4); letter-spacing: .02em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em { font-style: italic; color: var(--zari-lite); font-weight: 400; }
.hero h1 .red { color: var(--crimson); text-shadow: 0 0 40px rgba(211, 20, 28, .45); }
.hero__lede { margin-top: 26px; max-width: 46ch; color: var(--mute); font-size: var(--step-1); line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  --bg: var(--crimson);
  position: relative; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px;
  padding: 15px 26px; background: var(--bg); color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .02em;
  overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s;
  box-shadow: 0 10px 30px -10px rgba(211, 20, 28, .7);
}
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); z-index: -1; }
.btn:hover::before { transform: translateX(120%); }
.btn:hover { box-shadow: 0 16px 40px -10px rgba(211, 20, 28, .9); }
.btn--ghost { --bg: transparent; color: var(--ivory); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--zari); box-shadow: none; }
.btn--gold { --bg: var(--zari); color: #1a0f08; box-shadow: 0 10px 30px -12px rgba(201, 165, 90, .8); }
.btn svg { width: 18px; height: 18px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-display); font-size: var(--step-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; color: var(--mute); text-transform: uppercase; }

.drape-stack { position: relative; aspect-ratio: 4 / 5; max-width: 520px; width: 100%; justify-self: center; perspective: 1200px; }
.drape-card {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; transform-style: preserve-3d;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--line);
  transition: transform .9s var(--ease);
}
.drape-card img { width: 100%; height: 100%; object-fit: cover; }
.drape-card:nth-of-type(1) { transform: translate(-14%, 6%) rotate(-9deg) scale(.82); filter: brightness(.6); }
.drape-card:nth-of-type(2) { transform: translate(14%, 4%) rotate(8deg) scale(.84); filter: brightness(.7); }
.drape-card:nth-of-type(3) { transform: none; }
.drape-card:nth-of-type(3)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(234, 211, 155, .28) 48%, transparent 60%); mix-blend-mode: screen; transform: translateX(-100%); animation: sheen 5.5s var(--ease) 2.4s infinite; }
@keyframes sheen { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }
.drape-stack:hover .drape-card:nth-of-type(1) { transform: translate(-30%, 4%) rotate(-14deg) scale(.82); }
.drape-stack:hover .drape-card:nth-of-type(2) { transform: translate(30%, 2%) rotate(13deg) scale(.84); }
.drape-label { position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; justify-content: space-between; align-items: end; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); z-index: 2; }
.drape-label b { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; }
.drape-label span { font-family: var(--f-mono); font-size: .72rem; color: var(--zari-lite); letter-spacing: .1em; white-space: nowrap; }
.orbit { position: absolute; inset: -7%; border: 1px dashed rgba(201, 165, 90, .25); border-radius: 50%; animation: spin 40s linear infinite; pointer-events: none; }
.orbit::before { content: ""; position: absolute; top: 12%; left: 8%; width: 10px; height: 10px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 18px var(--crimson); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .drape-stack { max-width: 360px; margin-top: 10px; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: linear-gradient(90deg, rgba(122, 13, 20, .35), rgba(23, 14, 16, .2), rgba(122, 13, 20, .35)); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-style: italic; font-size: var(--step-2); padding: 16px 28px; white-space: nowrap; color: var(--ivory); }
.marquee__track span i { font-style: normal; color: var(--zari); padding-left: 28px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; overflow-x: clip; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head h2 { font-size: var(--step-3); max-width: 16ch; }
.section__head h2 em { font-style: italic; color: var(--zari-lite); font-weight: 400; }
.section__head p { color: var(--mute); max-width: 48ch; }
.title-stack { display: grid; gap: 14px; }

/* ---------- Store ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 16px; font-size: .88rem; color: var(--mute); transition: all .3s var(--ease); }
.filter:hover { color: var(--ivory); border-color: rgba(234, 211, 155, .4); }
.filter[aria-pressed="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.sample-note { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--zari-lite); border: 1px dashed rgba(201, 165, 90, .4); padding: 6px 10px; border-radius: 6px; }
.store-bar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 28px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); background: var(--silk); border: 1px solid var(--line);
  overflow: hidden; transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
  display: flex; flex-direction: column; min-width: 0;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(234, 211, 155, .16), transparent 45%); }
.card:hover { border-color: rgba(201, 165, 90, .45); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 40px -18px rgba(211, 20, 28, .55); }
.card:hover::before { opacity: 1; }
.card.is-hidden { display: none; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.92); }
.card:hover .card__media img { transform: scale(1.08); filter: saturate(1.1); }
.card__tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(14, 8, 9, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); }
.card__quick {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; gap: 8px;
  transform: translateY(calc(100% + 20px)); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
}
.card:hover .card__quick, .card:focus-within .card__quick { transform: none; opacity: 1; }
@media (hover: none) { .card__quick { transform: none; opacity: 1; } }
.card__quick button { flex: 1; border: 0; border-radius: 10px; padding: 11px 12px; font-size: .86rem; font-weight: 600; }
.q-view { background: rgba(244, 236, 225, .92); color: var(--ink); }
.q-add { background: var(--crimson); color: #fff; }
.card__body { padding: 18px 18px 20px; display: grid; gap: 6px; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__body h3 { font-size: 1.32rem; }
.price { font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--zari-lite); white-space: nowrap; }
.card__meta { font-size: .86rem; color: var(--mute); }
.card__sku { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; color: rgba(182, 165, 157, .7); }

.card--custom { justify-content: center; align-items: flex-start; padding: 28px; gap: 16px; background: radial-gradient(120% 90% at 0% 0%, rgba(122, 13, 20, .65), var(--silk) 60%); min-height: 420px; }
.card--custom h3 { font-size: var(--step-2); }
.card--custom p { color: var(--mute); }

/* ---------- Quiz ---------- */
.quiz { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .quiz { grid-template-columns: minmax(0, 1fr); } }
.quiz__panel { background: var(--silk); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 36px); min-height: 380px; position: relative; overflow: hidden; }
.quiz__progress { display: flex; gap: 6px; margin-bottom: 24px; }
.quiz__progress i { height: 3px; flex: 1; border-radius: 3px; background: var(--line); transition: background .4s; }
.quiz__progress i.on { background: linear-gradient(90deg, var(--crimson), var(--zari)); }
.quiz__q { font-family: var(--f-display); font-size: var(--step-2); margin-bottom: 22px; }
.quiz__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) { .quiz__opts { grid-template-columns: minmax(0, 1fr); } }
.opt { text-align: left; border: 1px solid var(--line); background: rgba(244, 236, 225, .02); border-radius: 14px; padding: 16px; display: grid; gap: 4px; transition: border-color .3s, transform .3s var(--ease), background .3s; }
.opt b { font-weight: 600; }
.opt span { font-size: .84rem; color: var(--mute); }
.opt:hover { border-color: var(--zari); transform: translateY(-3px); background: rgba(201, 165, 90, .07); }
.quiz__result { display: grid; gap: 18px; }
.match { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(244, 236, 225, .02); }
.match img { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; }
.match h4 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; }
.match .meter { height: 4px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.match .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--crimson), var(--zari)); }
.match small { font-family: var(--f-mono); font-size: .72rem; color: var(--zari-lite); letter-spacing: .08em; }
.quiz__aside { display: grid; gap: 18px; }
.quiz__aside p { color: var(--mute); max-width: 42ch; }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 860px) { .studio { grid-template-columns: minmax(0, 1fr); } }
.studio__img { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 480px; width: 100%; border: 1px solid var(--line); }
.studio__img img { width: 100%; height: 100%; object-fit: cover; }
.studio__img figcaption { position: absolute; left: 16px; bottom: 16px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; background: var(--glass); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); }
.quote { font-family: var(--f-display); font-style: italic; font-size: var(--step-3); line-height: 1.08; color: var(--ivory); }
.quote span { color: var(--crimson); }
.services { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .4s var(--ease), color .3s; }
.service:hover { padding-left: 10px; }
.service h3 { font-size: 1.4rem; }
.service p { grid-column: 1 / -1; color: var(--mute); font-size: .92rem; }
.service span { font-family: var(--f-mono); font-size: .72rem; color: var(--zari); letter-spacing: .12em; text-transform: uppercase; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(44px, 6vw, 80px); counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(23, 14, 16, .6); display: grid; gap: 8px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--f-mono); color: var(--crimson); font-size: .8rem; letter-spacing: .14em; }
.step b { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; }
.step p { font-size: .88rem; color: var(--mute); }

/* ---------- Story / proof ---------- */
.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 860px) { .story { grid-template-columns: minmax(0, 1fr); } }
.story__item { padding: 26px; border-top: 1px solid var(--zari); display: grid; gap: 10px; align-content: start; }
.story__item b { font-family: var(--f-display); font-size: var(--step-3); font-weight: 500; line-height: 1; }
.story__item b small { font-size: .45em; color: var(--zari-lite); }
.story__item p { color: var(--mute); }
.big-quote { margin-top: clamp(48px, 6vw, 88px); font-family: var(--f-display); font-size: var(--step-3); max-width: 22ch; line-height: 1.1; }
.big-quote em { color: var(--zari-lite); }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 60px); padding: clamp(24px, 4vw, 56px); border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(90% 120% at 100% 0%, rgba(211, 20, 28, .32), transparent 55%), var(--silk); }
@media (max-width: 860px) { .visit { grid-template-columns: minmax(0, 1fr); } }
.visit h2 { font-size: var(--step-3); }
.visit dl { display: grid; gap: 16px; margin: 0; }
.visit dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--zari); }
.visit dd { margin: 4px 0 0; word-break: break-word; }
.copy { border: 1px solid var(--line); background: transparent; border-radius: 6px; padding: 2px 8px; font-size: .74rem; margin-left: 8px; color: var(--mute); }
.copy:hover { color: var(--ivory); border-color: var(--zari); }
.visit__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Footer ---------- */
footer { padding-block: 56px 40px; border-top: 1px solid var(--line); margin-top: clamp(60px, 8vw, 120px); }
.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: end; }
.foot__word { font-family: var(--f-display); font-size: clamp(3rem, 14vw, 10rem); line-height: .85; letter-spacing: .04em; color: transparent; -webkit-text-stroke: 1px rgba(234, 211, 155, .35); }
.foot__links { display: flex; flex-wrap: wrap; gap: 18px; font-size: .9rem; color: var(--mute); }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--ivory); }
.foot__fine { margin-top: 26px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; color: rgba(182, 165, 157, .7); text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 8px 22px; }

.foot__credit a { color: var(--zari); text-decoration: none; border-bottom: 1px solid rgba(201, 165, 90, .4); transition: color .3s, border-color .3s; }
.foot__credit a:hover { color: var(--ivory); border-color: var(--ivory); }

/* ---------- Hidden zari knots (Thread Hunt) ---------- */
.knot {
  position: absolute; z-index: 6; width: 34px; height: 34px; border: 0; padding: 0; background: transparent; border-radius: 50%;
  display: grid; place-items: center;
}
.knot svg { width: 26px; height: 26px; animation: knot 3.2s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(201, 165, 90, .8)); }
.knot.got { pointer-events: none; animation: collect .7s var(--ease) forwards; }
@keyframes knot { 50% { transform: rotate(18deg) scale(1.12); } }
@keyframes collect { to { transform: translateY(-40px) scale(.2); opacity: 0; } }

/* ---------- Floating wheel launcher ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; border: 1px solid rgba(201, 165, 90, .5);
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .9);
  transition: transform .4s var(--ease);
}
.fab:hover { transform: translateY(-3px); }
.fab__wheel { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--crimson) 0 60deg, var(--zari) 0 120deg, var(--crimson-deep) 0 180deg, var(--zari-lite) 0 240deg, var(--crimson) 0 300deg, var(--zari) 0 360deg); animation: spin 8s linear infinite; }
.fab b { font-size: .86rem; }

/* ---------- Overlays (drawer, modal) ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(5, 2, 3, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(440px, 100%);
  background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .55s var(--ease);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.6rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--zari); }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 22px; display: grid; align-content: start; gap: 14px; }
.line-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.line-item img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; }
.line-item h4 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; }
.line-item small { color: var(--mute); font-family: var(--f-mono); font-size: .72rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { background: transparent; border: 0; width: 28px; height: 28px; }
.qty span { min-width: 22px; text-align: center; font-family: var(--f-mono); font-size: .82rem; }
.remove { background: transparent; border: 0; color: var(--mute); font-size: .78rem; text-decoration: underline; }
.empty { text-align: center; color: var(--mute); padding-block: 40px; display: grid; gap: 14px; justify-items: center; }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.sum { display: flex; justify-content: space-between; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sum.total { font-size: 1.1rem; color: var(--zari-lite); }
.promo { display: flex; gap: 8px; }
.promo input { flex: 1; min-width: 0; background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ivory); font-family: var(--f-mono); text-transform: uppercase; }
.promo input:focus { outline: none; border-color: var(--zari); }
.promo button { border: 1px solid var(--line); background: transparent; border-radius: 10px; padding: 0 14px; }
.promo-msg { font-size: .8rem; color: var(--zari-lite); min-height: 1.2em; }
.pay-note { font-size: .78rem; color: var(--mute); text-align: center; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.modal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal__card {
  width: min(920px, 100%); max-height: calc(100% - 32px); overflow-y: auto; border-radius: 22px; background: var(--panel); border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .4s, transform .5s var(--ease);
  pointer-events: none;
}
.modal.open .modal__card { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 720px) { .modal__card { grid-template-columns: minmax(0, 1fr); } }
.modal__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--silk); cursor: zoom-in; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.modal__media.zoom img { transform: scale(2); }
.modal__info { padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; align-content: start; position: relative; }
.modal__info h3 { font-size: var(--step-2); }
.spec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; font-size: .9rem; margin: 0; }
.spec dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--zari); padding-top: 2px; }
.spec dd { margin: 0; color: var(--mute); }
.modal__close { position: absolute; top: 14px; right: 14px; }

/* Wheel modal */
.wheel-card { width: min(520px, 100%); background: var(--panel); border-radius: 26px; border: 1px solid var(--line); padding: clamp(20px, 4vw, 34px); text-align: center; display: grid; gap: 16px; justify-items: center; position: relative; opacity: 0; transform: scale(.94); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.modal.open .wheel-card { opacity: 1; transform: none; pointer-events: auto; }
.wheel-card h3 { font-size: var(--step-2); }
.wheel-card p { color: var(--mute); max-width: 36ch; }
.wheel-wrap { position: relative; width: min(320px, 76vw); aspect-ratio: 1; }
.wheel-wrap canvas { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 6px rgba(201, 165, 90, .25), 0 0 60px -10px rgba(211, 20, 28, .6); transition: transform 5.2s cubic-bezier(.12, .7, .08, 1); }
.wheel-pin { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid var(--ivory); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); z-index: 2; }
.wheel-hub { position: absolute; inset: 0; margin: auto; width: 66px; height: 66px; border-radius: 50%; background: var(--crimson); display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: .9rem; letter-spacing: .06em; color: #fff; box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px var(--zari); }
.reward { font-family: var(--f-mono); letter-spacing: .1em; background: rgba(201, 165, 90, .12); border: 1px dashed var(--zari); border-radius: 10px; padding: 10px 14px; color: var(--zari-lite); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 95; transform: translate(-50%, 20px); opacity: 0; background: var(--ivory); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: opacity .35s, transform .45s var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Confetti of zari */
.spark { position: fixed; z-index: 96; width: 6px; height: 14px; border-radius: 2px; pointer-events: none; }

/* Reveal: content is visible by default; JS adds motion only when allowed */
.reveal { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
}
