/* ==========================================================
   Silai Ghar — styles
   ========================================================== */
:root {
  --bg: #f6f1ea;
  --bg-2: #efe6da;
  --surface: #fffaf3;
  --ink: #1d1a17;
  --ink-2: #4f4740;
  --muted: #8a7f74;
  --line: #e2d7c8;
  --accent: #b4532a;
  --accent-ink: #8f3d1b;
  --gold: #d49a3a;
  --dark: #17130f;
  --dark-2: #231d17;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(40, 25, 15, .05), 0 12px 32px -12px rgba(40, 25, 15, .18);
  --shadow-lg: 0 30px 80px -30px rgba(40, 25, 15, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow.light { color: var(--gold); }
.section-title {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.04; margin: 0;
}
.section-title em { color: var(--accent); font-weight: 400; }
.section-sub { color: var(--ink-2); font-size: 1.08rem; max-width: 520px; margin: 18px 0 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head.split .section-sub { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 520px; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1;
  transition: background .3s, color .3s, box-shadow .3s, border-color .3s, transform .4s var(--ease);
  transform: translate(var(--bx), var(--by));
  white-space: nowrap; isolation: isolate; overflow: hidden;
}
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease);
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn:disabled { opacity: .4; pointer-events: none; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--dark); color: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 18px;
  transition: transform 1s var(--ease-in-out);
}
.pre-thread { width: 240px; }
.pre-thread path {
  fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 6 6;
  stroke-dashoffset: 0; animation: thread 1.3s var(--ease) forwards;
}
.pre-needle { fill: var(--bg); opacity: 0; animation: fadein .3s 1s forwards; }
@keyframes thread { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.pre-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; overflow: hidden; }
.pre-brand .pre-mark { width: 64px; height: 64px; animation: popin .8s var(--ease) both; }
.pre-word { font-family: var(--serif); font-size: 34px; letter-spacing: -.01em; overflow: hidden; display: block; }
.pre-word span, .pre-word em { display: inline-block; animation: rise .9s var(--ease) both; }
.pre-word em { color: var(--gold); animation-delay: .12s; }
@keyframes rise { from { transform: translateY(110%); } }
@keyframes fadein { to { opacity: 1; } }
body.loaded .preloader { transform: translateY(-100%); }
body.loaded .preloader > * { opacity: 0; transition: opacity .3s; }

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { display: none; }
@media (pointer: fine) {
  .has-cursor .cursor, .has-cursor .cursor-dot { display: block; }
  .cursor {
    position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none;
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
    border: 1.5px solid rgba(29, 26, 23, .45);
    display: grid; place-items: center;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s, opacity .3s;
  }
  .cursor-dot {
    position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none;
    width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent);
  }
  .cursor.hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(180, 83, 42, .1); border-color: var(--accent); }
  .cursor.label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); border-color: var(--ink); }
  .cursor-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .2s; }
  .cursor.label .cursor-label { opacity: 1; }
  .cursor.hidden, .cursor-dot.hidden { opacity: 0; }
}

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: 32px; padding: 0 max(24px, (100vw - 1200px) / 2);
  transition: background .4s, box-shadow .4s, transform .5s var(--ease), height .4s;
}
.nav.scrolled { background: rgba(246, 241, 234, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); --nav-h: 66px; }
.nav.hide { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { width: 36px; height: 36px; overflow: visible; }
.lm-roof { fill: var(--accent); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; transition: transform .5s var(--ease); }
.lm-spool { fill: var(--gold); }
.lm-wraps { stroke: #9c6a22; stroke-width: 1.1; opacity: .7; }
.lm-door { fill: var(--accent); }
.lm-base { fill: var(--ink); }
.lm-thread { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 30; stroke-dashoffset: 0; transform-origin: 48px 36px; transition: transform .6s var(--ease); }
.logo:hover .lm-roof { transform: translateY(-3px); }
.logo:hover .lm-thread { transform: rotate(14deg); }
.logo-word { font-family: var(--serif); font-size: 23px; letter-spacing: -.01em; line-height: 1; color: var(--ink); }
.logo-word em { color: var(--accent); }
.logo.light .logo-word, .pre-word { color: var(--bg); }
.logo.light .logo-word em { color: var(--gold); }
.logo.light .lm-base, .pre-mark .lm-base { fill: var(--bg); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { position: relative; padding: 8px 14px; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta-mobile { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 520px; height: 520px; background: #f2c7a8; right: -120px; top: -80px; animation: drift 14s ease-in-out infinite alternate; }
.b2 { width: 420px; height: 420px; background: #e9d6b0; left: -160px; bottom: -120px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.12); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(180, 83, 42, .5); animation: pulse 2s infinite; }
.hero-eyebrow::before { display: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(180, 83, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(180, 83, 42, 0); } }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.2rem, 7.4vw, 6.6rem); line-height: .98; letter-spacing: -.035em; margin: 0 0 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero-title em { color: var(--accent); }
.hero-title .line:nth-child(2) > span { transition-delay: .1s; }
.hero-title .line:nth-child(3) > span { transition-delay: .2s; }
body.loaded .hero-title .line > span { transform: none; }
.hero-eyebrow, .hero-lead, .hero-ctas, .hero-perks { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
body.loaded .hero-eyebrow { opacity: 1; transform: none; }
body.loaded .hero-lead { opacity: 1; transform: none; transition-delay: .35s; }
body.loaded .hero-ctas { opacity: 1; transform: none; transition-delay: .45s; }
body.loaded .hero-perks { opacity: 1; transform: none; transition-delay: .55s; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 36px 0 32px; }
.hero-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.hero-perks li { display: flex; align-items: center; gap: 8px; }
.hero-perks svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 3 / 4; opacity: 0; transform: translateY(40px) scale(.96); transition: opacity 1.2s var(--ease) .2s, transform 1.4s var(--ease) .2s; }
body.loaded .hero-visual { opacity: 1; transform: none; }
.arch {
  position: absolute; inset: 0; border-radius: 210px 210px 28px 28px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 30%, #fffaf2 0%, #f1e3cf 60%, #e7d3b8 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.arch-stitch { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.arch-stitch path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 7 7; opacity: .55; animation: march 30s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes march { to { stroke-dashoffset: -600; } }
.hero-stage { position: absolute; inset: 0; }
.hg-layer:not(.photo) { inset: 9% 9% 15%; }
.hg-layer { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(18px) scale(.94) rotate(-2deg); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.hg-layer.in { opacity: 1; transform: none; }
.hg-layer.out { opacity: 0; transform: translateY(-14px) scale(1.04) rotate(2deg); }
.hg-layer svg { width: 100%; height: 100%; animation: sway 6s ease-in-out infinite; transform-origin: 50% 3%; }
.hg-layer.photo { transform: scale(1.04); }
.hg-layer.photo.in { transform: none; }
.hg-back { opacity: 0; }
.arch.show-back .hg-back { opacity: 1; }
.arch.show-back .hg-front { opacity: 0; }
.arch { cursor: pointer; }
@keyframes sway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
.ph { position: absolute; inset: 0; display: block; overflow: hidden; transition: opacity .7s var(--ease); }
.ph-bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(26px) saturate(1.05); opacity: .9; }
.ph-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-tag {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, -38%); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 20px; border-radius: 16px; background: rgba(255, 250, 243, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow); white-space: nowrap; min-width: 200px;
}
.ht-name { font-family: var(--serif); font-size: 18px; }
.ht-fabric { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hero-tag.swap span { animation: tagswap .7s var(--ease); }
@keyframes tagswap { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
.float-swatch {
  --mx: 0px; --my: 0px;
  position: absolute; width: 74px; height: 74px; border-radius: 18px; overflow: hidden; z-index: 4;
  box-shadow: 0 14px 30px -10px rgba(40, 25, 15, .4), inset 0 0 0 3px rgba(255, 255, 255, .8);
  translate: var(--mx) var(--my); transition: translate .6s var(--ease);
  animation: bob 6s ease-in-out infinite;
}
.float-swatch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 4px #fffaf3; background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 50%); }
.float-swatch svg { width: 100%; height: 100%; }
.fs1 { top: 14%; left: -9%; rotate: -10deg; }
.fs2 { top: 6%; right: -6%; width: 58px; height: 58px; rotate: 12deg; animation-delay: -2s; }
.fs3 { bottom: 38%; right: -11%; width: 86px; height: 86px; rotate: 8deg; animation-delay: -4s; }
.fs4 { bottom: 9%; left: -7%; width: 56px; height: 56px; rotate: -6deg; animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.badge-rotate { position: absolute; z-index: 5; width: 112px; height: 112px; right: -9%; bottom: 3%; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; box-shadow: var(--shadow); }
.badge-rotate svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.badge-rotate text { fill: var(--bg); font-size: 10.5px; font-weight: 700; letter-spacing: .22em; font-family: var(--sans); }
.badge-core { font-size: 24px; color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 1.5px solid var(--ink-2); border-radius: 20px; transform: translateX(-50%); opacity: .6; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink-2); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--bg); padding: 22px 0; transform: rotate(-1.2deg); margin: 0 -20px; position: relative; z-index: 2; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: scrollx 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 2.2rem); font-style: italic; white-space: nowrap; }
.marquee i { color: var(--gold); font-style: normal; font-size: 1.1rem; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: revealIn 1.1s var(--ease) backwards; }
@keyframes revealIn { from { opacity: 0; transform: translateY(40px); } }

/* ---------- Paths ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.path-card {
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s, opacity 1s var(--ease);
}
.path-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(400px circle at var(--x, 50%) var(--y, 0%), rgba(212, 154, 58, .16), transparent 60%);
}
.path-card > * { position: relative; z-index: 1; }
.path-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.path-card:hover::before { opacity: 1; }
.path-card.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.path-card.featured p, .path-card.featured li { color: rgba(246, 241, 234, .72); }
.path-card.featured .path-icon { background: rgba(255, 255, 255, .08); color: var(--gold); }
.path-card.featured .path-btn { color: var(--gold); }
.path-num { position: absolute; top: 22px; right: 26px; font-family: var(--serif); font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line); }
.path-card.featured .path-num { -webkit-text-stroke-color: rgba(255, 255, 255, .18); }
.path-icon { width: 60px; height: 60px; border-radius: 18px; background: #f4e3d6; color: var(--accent); display: grid; place-items: center; margin-bottom: 28px; transition: transform .6s var(--ease); }
.path-card:hover .path-icon { transform: rotate(-8deg) scale(1.06); }
.path-icon svg, .choice-ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.path-card h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -.01em; }
.path-card p { margin: 0 0 18px; color: var(--ink-2); }
.path-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.path-card li { display: flex; align-items: center; gap: 10px; }
.path-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.path-card.featured li::before { background: var(--gold); }
.path-btn { margin-top: auto; align-self: flex-start; font-weight: 700; color: var(--accent); display: inline-flex; gap: 8px; padding: 6px 0; }
.path-btn span { transition: transform .4s var(--ease); }
.path-btn:hover span { transform: translateX(6px); }

/* ---------- Catalogue ---------- */
.catalogue { background: var(--bg-2); }
.cat-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .35s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips.small .chip { padding: 7px 14px; font-size: 13px; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 46px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); min-width: 280px; transition: border-color .3s, box-shadow .3s; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(29, 26, 23, .06); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { border: 0; outline: 0; background: none; width: 100%; font-size: 15px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { cursor: pointer; animation: pop .7s var(--ease) both; animation-delay: var(--d, 0ms); }
.card[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.card-media {
  --rx: 0deg; --ry: 0deg;
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(90% 70% at 50% 35%, #fffaf3, color-mix(in srgb, var(--tint) 22%, #efe3d2));
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.card:hover .card-media { box-shadow: var(--shadow-lg); }
.card-garment { position: absolute; inset: 7% 10% 9%; transition: transform .8s var(--ease); }
.card-garment svg { width: 100%; height: 100%; }
.card:hover .card-garment { transform: translateY(-8px) scale(1.04); }
.card-photos { position: absolute; inset: 0; }
.cp-back { opacity: 0; }
.card:hover .cp-back { opacity: 1; }
.card:hover .cp-front { opacity: 0; }
.card-flip { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: rgba(255, 250, 243, .9); font-size: 11.5px; font-weight: 700; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s var(--ease); }
.card:hover .card-flip { opacity: 1; transform: none; }
.card-tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card-quick {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; padding: 12px; border-radius: 14px;
  background: rgba(255, 250, 243, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-weight: 700; font-size: 14px; transform: translateY(130%); transition: transform .5s var(--ease), background .3s;
}
.card:hover .card-quick, .card:focus-within .card-quick { transform: none; }
.card-quick:hover { background: var(--ink); color: var(--bg); }
.card-body { padding: 16px 4px 0; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; margin: 0; line-height: 1.25; }
.card .price { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.card-meta { margin: 2px 0 10px; font-size: 13.5px; color: var(--muted); }
.card-swatches { display: flex; align-items: center; gap: 4px; }
.card-swatches .sw-dot { width: 18px; height: 18px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3px var(--line); }
.card-swatches .sw-dot svg { width: 100%; height: 100%; }
.card-swatches small { margin-left: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.card-need { margin: 0; font-size: 13px; font-weight: 600; color: var(--accent); }
.cat-empty { text-align: center; padding: 60px 0; color: var(--ink-2); }
.cat-empty p { font-family: var(--serif); font-size: 24px; margin: 0 0 20px; }

/* ---------- Studio ---------- */
.studio-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.studio-preview {
  position: sticky; top: calc(var(--nav-h) + 20px);
  border-radius: 28px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow);
}
.preview-stage { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(80% 70% at 50% 40%, #fffdf8, #efe2cf); overflow: hidden; }
.preview-spot { position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(212, 154, 58, .22), transparent 65%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.15); opacity: .7; } }
.preview-garment { position: absolute; inset: 0; }
.preview-garment .pv-layer:not(.photo) { inset: 8% 14% 6%; }
.pv-layer { position: absolute; inset: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.pv-layer.photo { overflow: hidden; }
.pv-layer svg { width: 100%; height: 100%; }
.pv-layer.enter { opacity: 0; transform: scale(.9) translateY(14px); }
.pv-layer.leave { opacity: 0; transform: scale(1.06) translateY(-10px); }
.preview-badge { position: absolute; top: 16px; left: 16px; padding: 6px 12px 6px 22px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); }
.preview-badge::before { content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #3aa66b; animation: pulse-g 2s infinite; }
@keyframes pulse-g { 50% { opacity: .3; } }
.preview-polaroids { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: row-reverse; }
.polaroid { width: 74px; padding: 5px 5px 14px; background: #fff; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .3); margin-left: -30px; animation: drop .6s var(--ease) both; }
.polaroid:nth-child(odd) { rotate: 6deg; } .polaroid:nth-child(even) { rotate: -5deg; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@keyframes drop { from { opacity: 0; transform: translateY(-30px) rotate(-20deg); } }
.preview-info { padding: 22px 24px 24px; }
.pv-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.preview-info h4 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 4px 0 2px; line-height: 1.2; }
.pv-fabric { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.price-list { margin: 0; display: grid; gap: 8px; padding-top: 16px; border-top: 1px dashed var(--line); }
.price-list div { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink-2); }
.price-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.price-list .total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink); font-weight: 700; }
.price-list .total dd { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--accent); }
.eta { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--bg); font-size: 14px; color: var(--ink-2); }
.eta svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }

.studio-panel { position: relative; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); padding: 30px clamp(20px, 3vw, 36px) 28px; box-shadow: var(--shadow); min-height: 620px; display: flex; flex-direction: column; }
.stepper { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 0 0 14px; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .3s; }
.stepper .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; border: 1.5px solid var(--line); background: var(--surface); transition: all .4s var(--ease); }
.stepper li.done .dot { background: var(--accent); border-color: var(--accent); color: #fff; font-size: 0; }
.stepper li.done .dot::after { content: "✓"; font-size: 13px; }
.stepper li.current { color: var(--ink); }
.stepper li.current .dot { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: scale(1.12); }
.stepper-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 30px; }
.stepper-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width .7s var(--ease); }
.steps { position: relative; flex: 1; }
.step { display: none; }
.step.active { display: block; animation: stepin .6s var(--ease) both; }
.step.active.back { animation-name: stepin-back; }
@keyframes stepin { from { opacity: 0; transform: translateX(40px); } }
@keyframes stepin-back { from { opacity: 0; transform: translateX(-40px); } }
.step.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.step-title { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 20px; letter-spacing: -.01em; }

.choice-list { display: grid; gap: 12px; }
.choice { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1.5px solid var(--line); cursor: pointer; transition: all .35s var(--ease); background: var(--surface); }
.choice:hover { border-color: var(--ink-2); transform: translateX(4px); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; color: var(--accent); flex: none; transition: all .35s var(--ease); }
.choice-txt { display: grid; gap: 2px; flex: 1; }
.choice-txt strong { font-weight: 700; font-size: 16px; }
.choice-txt small { color: var(--muted); font-size: 14px; }
.choice-check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; transition: all .35s var(--ease); position: relative; }
.choice:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: 0 10px 30px -14px rgba(40, 25, 15, .3); }
.choice:has(input:checked) .choice-ic { background: var(--ink); color: var(--gold); }
.choice:has(input:checked) .choice-check { background: var(--accent); border-color: var(--accent); }
.choice:has(input:checked) .choice-check::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; max-height: 420px; overflow-y: auto; padding: 4px; margin-inline: -4px; scrollbar-width: thin; }
.pick { position: relative; border-radius: 16px; border: 1.5px solid var(--line); padding: 8px 8px 10px; background: var(--surface); text-align: left; transition: all .3s var(--ease); }
.pick:hover { border-color: var(--ink-2); transform: translateY(-3px); }
.pick.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180, 83, 42, .15); }
.pick.selected::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; display: grid; place-items: center; animation: popin .4s var(--ease); }
@keyframes popin { from { transform: scale(0); } }
.pick-media { aspect-ratio: 1 / 1.1; border-radius: 11px; background: radial-gradient(circle at 50% 40%, #fffaf3, #efe3d2); padding: 6px; }
.pick-media svg { width: 100%; height: 100%; }
.pick-media.has-photo { position: relative; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; }
.pick strong { display: block; font-size: 13px; line-height: 1.25; margin-top: 8px; }
.pick small { color: var(--muted); font-size: 12px; font-weight: 600; }

.dropzone {
  display: grid; justify-items: center; gap: 4px; text-align: center; padding: 30px 20px; border-radius: 18px;
  border: 2px dashed var(--line); background: var(--bg); cursor: pointer; transition: all .3s var(--ease);
}
.dropzone svg { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; transition: transform .4s var(--ease); }
.dropzone strong { font-size: 15.5px; }
.dropzone span { font-size: 13.5px; color: var(--muted); }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #fbefe5; }
.dropzone:hover svg, .dropzone.drag svg { transform: translateY(-4px); }
.dropzone.small { padding: 22px 18px; }
.dropzone.has-image { background-size: cover; background-position: center; border-style: solid; border-color: var(--accent); min-height: 150px; position: relative; overflow: hidden; }
.dropzone.has-image > * { position: relative; z-index: 1; color: #fff; }
.dropzone.has-image svg { stroke: #fff; }
.dropzone.has-image::before { content: ""; position: absolute; inset: 0; background: rgba(23, 19, 15, .45); }
.dropzone.has-image span { color: rgba(255, 255, 255, .85); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumb { position: relative; width: 74px; height: 74px; border-radius: 12px; overflow: hidden; animation: popin .4s var(--ease); box-shadow: var(--shadow); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; display: grid; place-items: center; }
.field-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 22px 0 10px; }
.field { display: grid; gap: 6px; margin-top: 18px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field > span em { font-style: normal; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .measure-grid input {
  width: 100%; padding: 13px 15px; border-radius: 13px; border: 1.5px solid var(--line); background: #fff;
  outline: 0; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field input:focus, .field textarea:focus, .measure-grid input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(29, 26, 23, .06); }
.field.invalid input, .field.invalid textarea, .measure-grid label.invalid input { border-color: #c2412d; box-shadow: 0 0 0 4px rgba(194, 65, 45, .1); }
.hint { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }

.segmented { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 5px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 20px; }
.segmented button { position: relative; z-index: 1; padding: 11px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color .35s; }
.segmented button.active { color: var(--bg); }
.seg-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / var(--n)); border-radius: 999px; background: var(--ink); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .5s var(--ease); }

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.swatch-btn { text-align: left; border-radius: 16px; padding: 6px 6px 10px; border: 1.5px solid var(--line); background: var(--surface); transition: all .3s var(--ease); position: relative; }
.swatch-btn:hover { transform: translateY(-3px); border-color: var(--ink-2); }
.swatch-btn.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180, 83, 42, .15); }
.swatch-btn .sw-img { aspect-ratio: 1.6; border-radius: 11px; overflow: hidden; position: relative; }
.swatch-btn .sw-img svg { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.swatch-btn:hover .sw-img svg { transform: scale(1.15); }
.swatch-btn .sw-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .3), transparent 45%, rgba(0, 0, 0, .12)); }
.swatch-btn strong { display: block; font-size: 13px; line-height: 1.25; margin: 8px 4px 0; }
.swatch-btn small { display: block; font-size: 12px; color: var(--muted); margin: 0 4px; font-weight: 600; }
.swatch-btn.selected::before { content: "✓"; position: absolute; z-index: 2; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; animation: popin .4s var(--ease); }

.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-radio { cursor: pointer; }
.pill-radio input { position: absolute; opacity: 0; }
.pill-radio span { display: inline-block; padding: 12px 18px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14.5px; transition: all .3s var(--ease); }
.pill-radio input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.pill-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.size-row { display: flex; gap: 10px; flex-wrap: wrap; }
.size-btn { width: 62px; height: 62px; border-radius: 16px; border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; transition: all .3s var(--ease); background: var(--surface); }
.size-btn:hover { border-color: var(--ink); transform: translateY(-3px); }
.size-btn.selected { background: var(--accent); color: #fff; border-color: var(--accent); transform: scale(1.06); }
.measure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.measure-grid label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.measure-grid .unit { position: relative; }
.measure-grid .unit::after { content: "in"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--muted); pointer-events: none; }
.measure-grid input { padding-right: 34px; }

.toggles { display: grid; gap: 10px; }
.toggle { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; transition: all .3s var(--ease); }
.toggle:hover { border-color: var(--ink-2); }
.toggle input { position: absolute; opacity: 0; }
.toggle .sw { width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .35s; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .45s var(--ease); }
.toggle input:checked ~ .sw { background: var(--accent); }
.toggle input:checked ~ .sw::after { transform: translateX(18px); }
.toggle:has(input:checked) { border-color: var(--accent); background: #fdf3ec; }
.toggle input:focus-visible ~ .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.t-txt { display: grid; flex: 1; }
.t-txt strong { font-size: 15px; }
.t-txt small { font-size: 13px; color: var(--muted); }
.t-price { font-weight: 700; font-size: 14px; color: var(--ink-2); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .field { margin-top: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.orders-paused { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: #fdf3ec; border: 1.5px solid var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14.5px; }
.summary { margin-top: 24px; padding: 18px 20px; border-radius: 18px; background: var(--bg); }
.summary .field-label { margin-top: 0; }
.summary dl { margin: 0; display: grid; gap: 8px; }
.summary dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 14.5px; }
.summary dt { color: var(--muted); font-weight: 600; }
.summary dd { margin: 0; font-weight: 600; }

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.step-nav .btn-ghost { border-color: var(--line); }
.step-nav .btn-ghost:hover { border-color: var(--ink); }

.success { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 40px 10px; animation: stepin .7s var(--ease) both; }
.success[hidden] { display: none; }
.success h3 { font-family: var(--serif); font-weight: 500; font-size: 34px; margin: 10px 0 0; }
.success p { max-width: 420px; color: var(--ink-2); margin: 0; }
.success-check { width: 92px; height: 92px; }
.success-check circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 230; stroke-dashoffset: 230; animation: draw .9s var(--ease) forwards; }
.success-check path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 18px 0 6px; }

/* ---------- Process ---------- */
.process { background: var(--dark); color: var(--bg); overflow: hidden; }
.process .section-title em { color: var(--gold); }
.timeline { position: relative; display: grid; gap: 0; max-width: 820px; margin-inline: auto; }
.tl-line { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .1); }
.tl-line span { display: block; width: 100%; height: 100%; background: linear-gradient(var(--gold), var(--accent)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; padding: 26px 0; }
.tl-item > div { grid-column: 3; padding-left: 28px; opacity: .25; transform: translateX(30px); transition: all .8s var(--ease); }
.tl-item:nth-of-type(odd) > div { grid-column: 1; grid-row: 1; padding: 0 28px 0 0; text-align: right; transform: translateX(-30px); }
.tl-dot { grid-column: 2; grid-row: 1; justify-self: center; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; background: var(--dark-2); border: 1.5px solid rgba(255, 255, 255, .15); transition: all .6s var(--ease); position: relative; z-index: 1; }
.tl-item.on .tl-dot { background: var(--gold); color: var(--dark); border-color: var(--gold); box-shadow: 0 0 0 8px rgba(212, 154, 58, .15); }
.tl-item.on > div { opacity: 1; transform: none; }
.tl-item h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 0 0 4px; }
.tl-item p { margin: 0; color: rgba(246, 241, 234, .65); }

/* ---------- Stats ---------- */
.stats { padding: 70px 0; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; }

/* ---------- Testimonials ---------- */
.testimonials { overflow: hidden; }
.t-marquee { display: grid; gap: 20px; }
.t-row { display: flex; gap: 20px; width: max-content; animation: scrollx 60s linear infinite; }
.t-row.rev { animation-direction: reverse; }
.t-marquee:hover .t-row { animation-play-state: paused; }
.t-card { width: 380px; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.t-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.t-stars { color: var(--gold); letter-spacing: 3px; font-size: 14px; }
.t-card p { font-family: var(--serif); font-size: 18px; line-height: 1.5; margin: 10px 0 18px; }
.t-who { display: flex; align-items: center; gap: 12px; }
.t-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 15px; }
.t-who strong { display: block; font-size: 14.5px; }
.t-who small { color: var(--muted); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 30px); }
.faq-grid .btn { margin-top: 26px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .4s, border-color .4s; }
.faq-item.open { box-shadow: var(--shadow); border-color: transparent; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; text-align: left; font-weight: 700; font-size: 16.5px; }
.faq-ic { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); flex: none; transition: background .4s, transform .5s var(--ease); }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease); }
.faq-ic::after { transform: rotate(90deg); }
.faq-item.open .faq-ic { background: var(--accent); transform: rotate(180deg); }
.faq-item.open .faq-ic::before, .faq-item.open .faq-ic::after { background: #fff; }
.faq-item.open .faq-ic::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta-band { background: var(--accent); color: #fff; padding: clamp(80px, 10vw, 130px) 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -50%; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 22px); animation: stripes 20s linear infinite; }
@keyframes stripes { to { transform: translate(62px, 0); } }
.cta-band .container { position: relative; }
.cta-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 36px; }
.cta-title em { color: #ffe2b8; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(246, 241, 234, .7); padding: 80px 0 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--bg); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 16px; }
.footer p { margin: 0 0 8px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--gold); }
.footer-about { max-width: 320px; margin-top: 18px !important; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.modal.open { visibility: visible; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(23, 19, 15, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s var(--ease); }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative; width: min(980px, 100%); max-height: calc(100svh - 40px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: var(--bg); font-size: 15px; transition: transform .4s var(--ease), background .3s; }
.modal-close:hover { transform: rotate(90deg); background: var(--ink); color: var(--bg); }
.qv-media { position: relative; min-height: 460px; background: radial-gradient(80% 70% at 50% 40%, #fffaf3, color-mix(in srgb, var(--tint, #e9d7bf) 28%, #efe3d2)); transition: background .6s; }
.qv-garment { position: absolute; inset: 0; overflow: hidden; }
.qv-garment .pv-layer:not(.photo) { inset: 8% 12%; }
.qv-views { position: absolute; left: 50%; bottom: 16px; z-index: 3; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 250, 243, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.qv-views button { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); transition: background .3s, color .3s; white-space: nowrap; }
.qv-views button.active { background: var(--ink); color: var(--bg); }
.qv-garment .pv-layer svg { animation: sway 6s ease-in-out infinite; transform-origin: 50% 3%; }
.qv-body { padding: 44px 40px 36px; }
.qv-body h3 { font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1.1; margin: 0 0 12px; letter-spacing: -.01em; }
.qv-desc { color: var(--ink-2); margin: 0 0 22px; }
.qv-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 0; border-block: 1px solid var(--line); }
.qv-meta small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.qv-meta b { font-size: 17px; font-variant-numeric: tabular-nums; }
.qv-fabric-name { color: var(--accent); text-transform: none; letter-spacing: 0; }
.qv-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.qv-sw { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.qv-sw svg { width: 100%; height: 100%; }
.qv-sw:hover { transform: translateY(-3px) scale(1.06); }
.qv-sw.selected { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); transform: scale(1.06); }
.qv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- Toast & confetti ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 120px); padding: 14px 22px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 400; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-preview { position: relative; top: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .preview-stage { aspect-ratio: auto; min-height: 340px; }
  .nav-links a { padding: 8px 10px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 8px; margin: 0;
    background: var(--bg); clip-path: circle(0 at calc(100% - 46px) 33px); transition: clip-path .8s var(--ease-in-out);
  }
  .menu-open .nav-links { clip-path: circle(150% at calc(100% - 46px) 33px); }
  .nav-links a { font-family: var(--serif); font-size: 34px; color: var(--ink); opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
  .menu-open .nav-links a { opacity: 1; transform: none; }
  .menu-open .nav-links a:nth-child(2) { transition-delay: .05s; } .menu-open .nav-links a:nth-child(3) { transition-delay: .1s; }
  .menu-open .nav-links a:nth-child(4) { transition-delay: .15s; } .menu-open .nav-links a:nth-child(5) { transition-delay: .2s; }
  .menu-open .nav-links a:nth-child(6) { transition-delay: .25s; }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta-mobile { display: inline-flex; font-family: var(--sans); font-size: 16px; color: var(--bg); margin-top: 20px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav.menu-open { background: transparent; box-shadow: none; backdrop-filter: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { width: min(340px, 78%); margin-bottom: 56px; }
  .scroll-hint { display: none; }
  .paths { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 20px; }
  .faq-grid .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .tl-line { left: 28px; }
  .tl-item { grid-template-columns: 56px 1fr; }
  .tl-item > div, .tl-item:nth-of-type(odd) > div { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 0 22px; transform: translateX(30px); }
  .tl-dot { grid-column: 1; }
  .qv-media { min-height: 320px; }
  .modal-card { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card h3 { font-size: 16px; }
  .card-row { flex-direction: column; gap: 0; }
  .card .price { font-size: 13px; }
  .search { min-width: 0; width: 100%; }
  .studio-preview { grid-template-columns: 128px 1fr; border-radius: 22px; }
  .preview-stage { min-height: 0; height: 100%; }
  .preview-garment .pv-layer:not(.photo) { inset: 10% 6% 4%; }
  .preview-badge, .preview-polaroids { display: none; }
  .preview-info { padding: 14px 16px; }
  .preview-info h4 { font-size: 19px; }
  .pv-kicker { font-size: 10.5px; }
  .pv-fabric { font-size: 13px; margin-bottom: 8px; }
  .price-list { padding-top: 8px; gap: 2px; }
  .price-list div:not(.total) { display: none; }
  .price-list .total { margin: 0; padding: 0; border: 0; align-items: baseline; font-size: 13.5px; }
  .price-list .total dd { font-size: 22px; }
  .eta { margin-top: 6px; padding: 6px 10px; font-size: 13px; }
  .pick-grid { grid-template-columns: repeat(3, 1fr); }
  .measure-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .stepper .lbl { display: none; }
  .studio-panel { min-height: 0; }
  .segmented button { font-size: 12.5px; padding: 10px 4px; }
  .t-card { width: 300px; }
  .float-swatch { width: 54px; height: 54px; }
  .fs3 { width: 62px; height: 62px; }
  .badge-rotate { width: 88px; height: 88px; right: -6%; top: 1%; bottom: auto; }
  .fs2 { display: none; }
  .hero-tag { min-width: 0; width: max-content; max-width: 84%; white-space: normal; text-align: center; padding: 8px 14px; }
  .ht-name { font-size: 16px; }
  .ht-fabric { font-size: 11.5px; }
  .badge-rotate text { font-size: 9px; }
  .summary dl div { grid-template-columns: 1fr; gap: 0; }
  .qv-body { padding: 30px 22px 26px; }
  .qv-body h3 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .marquee-track, .t-row { animation: none !important; }
}
