/* =====================================================================
   NOVIRA — brand system
   Mint #CAE5CB · Charcoal #222 · Ivory #FBF7EE
   ===================================================================== */
:root {
  --mint: #CAE5CB;
  --mint-2: #B7DBB9;
  --mint-3: #E4F2E4;
  --sage: #8DBF95;
  --forest: #3F7A57;
  --ink: #222222;
  --ink-2: #4A4A4A;
  --ink-3: #6E6E6E;
  --ivory: #FBF7EE;
  --paper: #FFFDF8;
  --blush: #F4C9C4;
  --gold: #E3C27A;
  --wa: #1FAF5A;
  --line: rgba(34, 34, 34, .14);
  --shadow-1: 0 1px 2px rgba(34, 34, 34, .06), 0 8px 24px -8px rgba(34, 34, 34, .18);
  --shadow-2: 0 2px 4px rgba(34, 34, 34, .06), 0 24px 60px -20px rgba(34, 34, 34, .35);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --leaf: 44px 8px 44px 8px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
main, .footer { overflow-x: clip; }
body {
  margin: 0; background: var(--mint); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--mint); }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ---------- Type ---------- */
.display, .h2, .h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; line-height: .98; margin: 0; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.display { font-size: clamp(46px, 7.6vw, 112px); font-weight: 450; }
.h2 { font-size: clamp(38px, 5.6vw, 80px); }
.h3 { font-size: clamp(30px, 3.6vw, 48px); }
.display em, .h2 em, .h3 em { font-style: italic; font-weight: 400; color: var(--forest); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; color: var(--ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 4px rgba(63, 122, 87, .18); animation: pulse 2.4s var(--ease) infinite; }
.eyebrow .num { font-family: var(--display); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none; padding: 2px 10px; border: 1.5px solid var(--ink); border-radius: 99px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(63, 122, 87, 0); } }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 34em; margin: 26px 0 0; }
.sub { color: var(--ink-2); max-width: 36em; font-size: 17px; margin: 18px 0 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--mint);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: .01em;
  background: var(--bg); color: var(--fg); text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .3s;
  position: relative; isolation: isolate; overflow: hidden;
}
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .14); transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit; }
.btn:hover::after { transform: none; }
.btn:active { transform: scale(.97); }
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-dark { --bg: var(--ink); --fg: var(--mint); box-shadow: 0 10px 30px -12px rgba(34, 34, 34, .6); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost::after { background: rgba(34, 34, 34, .07); }
.btn-soft { --bg: var(--ivory); --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-mint { --bg: var(--mint); --fg: var(--ink); }
.btn-mint::after { background: rgba(255, 255, 255, .35); }
.btn-wa { --bg: var(--wa); --fg: #fff; box-shadow: 0 14px 30px -12px rgba(31, 175, 90, .7); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-size: 14px; }
.link:hover { color: var(--forest); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; transition: background .2s, transform .3s var(--ease); }
.icon-btn:hover { background: rgba(34, 34, 34, .08); transform: rotate(90deg); }
.icon-btn.sm { width: 30px; height: 30px; font-size: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter); transition: padding .35s var(--ease), background .35s, box-shadow .35s;
}
.nav.scrolled { padding-top: 10px; padding-bottom: 10px; background: rgba(202, 229, 203, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand img { height: 38px; width: auto; transition: height .35s var(--ease); }
.nav.scrolled .brand img { height: 32px; }
.nav-links { display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: rgba(251, 247, 238, .55); box-shadow: inset 0 0 0 1px var(--line); }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 16px; border-radius: 99px; transition: background .25s, color .25s; }
.nav-links a:hover { background: var(--ink); color: var(--mint); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); box-shadow: inset 0 0 0 1.5px var(--ink); transition: transform .3s var(--ease), background .2s; }
.cart-btn:hover { background: #fff; transform: translateY(-2px); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; border-radius: 99px; background: var(--ink); color: var(--mint); font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; transform: scale(0); transition: transform .4s var(--spring); }
.cart-count.show { transform: scale(1); }
.bump { animation: bump .55s var(--spring); }
@keyframes bump { 30% { transform: scale(1.18) rotate(-4deg); } 60% { transform: scale(.95) rotate(2deg); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px;
  padding: 120px var(--gutter) 80px; max-width: 1480px; margin: 0 auto;
}
.hero-mark { position: absolute; right: -6vw; top: 8vh; width: min(58vw, 820px); opacity: .06; pointer-events: none; z-index: 0; will-change: transform; }
.hero-copy { position: relative; z-index: 2; }
.split-lines .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-lines .line > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); }
.split-lines.in .line > span, .ready .split-lines .line > span { transform: none; }
.split-lines .line:nth-child(2) > span { transition-delay: .12s; }
.split-lines .line:nth-child(3) > span { transition-delay: .24s; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; align-items: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; line-height: 1.1; }
.hero-meta strong { font-family: var(--display); font-size: 34px; font-weight: 500; letter-spacing: -.02em; }
.hero-meta span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta .plus { font-family: var(--display); font-size: 28px; color: var(--ink-3); }
.hero-meta .sep { width: 1.5px; height: 40px; background: var(--line); }

.hero-stage { position: relative; z-index: 1; display: grid; place-items: center; min-height: 560px; }
.hero-blob {
  position: absolute; width: min(92%, 600px); aspect-ratio: 1; background: var(--ivory);
  border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; box-shadow: inset 0 0 0 1.5px rgba(34, 34, 34, .08);
  animation: morph 14s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; transform: rotate(0); }
  33% { border-radius: 42% 58% 38% 62% / 60% 40% 60% 40%; transform: rotate(8deg); }
  66% { border-radius: 64% 36% 58% 42% / 40% 56% 44% 60%; transform: rotate(-6deg); }
}
.hero-label {
  position: absolute; left: 4%; bottom: 10%; z-index: 3; display: flex; flex-direction: column; padding: 12px 18px;
  background: var(--ink); color: var(--mint); border-radius: 18px 18px 18px 4px; box-shadow: var(--shadow-2);
  transform: translateY(12px) scale(.94); opacity: 0; transition: transform .5s var(--spring), opacity .35s;
}
.hero-label.show { transform: none; opacity: 1; }
.hl-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.hl-name { font-family: var(--display); font-size: 22px; font-style: italic; }
.hero-fly { position: absolute; left: 0; top: 0; width: 46px; color: var(--ink); z-index: 4; pointer-events: none; will-change: transform; }
.hero-fly svg, .mq-fly svg, .done-fly svg { width: 100%; height: auto; overflow: visible; }
.hero-fly .wing, .done-fly .wing { transform-box: fill-box; animation: flap .22s ease-in-out infinite alternate; }
.hero-fly .wing-l, .done-fly .wing-l { transform-origin: right center; }
.hero-fly .wing-r, .done-fly .wing-r { transform-origin: left center; }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.25); } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; border: 1.5px solid var(--ink); border-radius: 99px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--ink); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--mint); overflow: hidden; padding: 22px 0; transform: rotate(-1.6deg) scale(1.04); margin: 20px 0 40px; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.mq-run { display: flex; align-items: center; }
.mq-item { font-family: var(--display); font-style: italic; font-size: clamp(26px, 3.2vw, 44px); padding: 0 28px; white-space: nowrap; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.mq-fly { width: 38px; color: var(--mint); display: inline-block; }
.mq-fly:nth-child(4n) { transform: rotate(18deg); } .mq-fly:nth-child(4n+2) { transform: rotate(-14deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 780px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Occasions ---------- */
.occ-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.occ-card {
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 22px; min-height: 250px;
  background: var(--ivory); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1.5px rgba(34, 34, 34, .1);
  transition: transform .5s var(--ease), box-shadow .4s, background .4s, opacity .9s var(--ease) var(--d, 0s); overflow: hidden; isolation: isolate;
}
.occ-card::before {
  content: ''; position: absolute; z-index: -1; right: -40%; top: -40%; width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: var(--acc); opacity: .22; transition: transform .7s var(--ease), opacity .4s;
}
.occ-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow-2); }
.occ-card:hover::before { transform: scale(2.6); opacity: .28; }
.occ-ic { width: 76px; height: 76px; display: grid; place-items: center; background: #fff; border-radius: var(--leaf); box-shadow: inset 0 0 0 1.5px var(--ink); margin-bottom: 18px; transition: transform .6s var(--spring), border-radius .6s var(--ease); }
.occ-ic svg { width: 52px; }
.occ-card:hover .occ-ic { transform: rotate(-8deg) scale(1.06); border-radius: 8px 44px 8px 44px; }
.occ-name { font-family: var(--display); font-size: 27px; font-weight: 500; letter-spacing: -.01em; line-height: 1.05; }
.occ-tag { font-size: 14px; color: var(--ink-3); }
.occ-picks { display: flex; margin-top: auto; padding-top: 18px; }
.occ-picks span { width: 38px; height: 38px; margin-right: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ivory), inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: transform .45s var(--spring); }
.occ-picks span svg { width: 26px; }
.occ-card:hover .occ-picks span { transform: translateY(-4px); }
.occ-card:hover .occ-picks span:nth-child(2) { transition-delay: .04s; } .occ-card:hover .occ-picks span:nth-child(3) { transition-delay: .08s; } .occ-card:hover .occ-picks span:nth-child(4) { transition-delay: .12s; }
.occ-go { position: absolute; right: 20px; bottom: 26px; font-weight: 700; font-size: 13.5px; opacity: 0; transform: translateX(-10px); transition: .4s var(--ease); }
.occ-card:hover .occ-go, .occ-card:focus-visible .occ-go { opacity: 1; transform: none; }

/* ---------- How ---------- */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.how-step { position: relative; padding: 28px 24px 30px; background: rgba(251, 247, 238, .6); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1.5px var(--line); }
.how-n { position: absolute; top: 18px; right: 22px; font-family: var(--display); font-style: italic; font-size: 54px; line-height: 1; color: rgba(34, 34, 34, .12); }
.how-ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--leaf); background: var(--ivory); box-shadow: inset 0 0 0 1.5px var(--ink); margin-bottom: 22px; }
.how-ic svg { width: 44px; }
.how-step h3 { font-family: var(--display); font-weight: 500; font-size: 24px; margin: 0 0 8px; letter-spacing: -.01em; }
.how-step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.how-step:hover .how-ic { animation: wiggle .7s var(--ease); }
@keyframes wiggle { 25% { transform: rotate(-9deg); } 50% { transform: rotate(7deg); } 75% { transform: rotate(-3deg); } }

.spec { margin-top: 28px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; background: var(--ink); color: var(--ivory); border-radius: 40px; padding: clamp(28px, 5vw, 64px); overflow: hidden; position: relative; }
.spec .eyebrow { color: var(--mint); }
.spec .h3 em { color: var(--mint); }
.spec-copy > p { color: rgba(251, 247, 238, .75); margin: 20px 0 26px; font-size: 16.5px; }
.spec-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(202, 229, 203, .2); }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(202, 229, 203, .2); }
.spec-list b { font-family: var(--display); font-weight: 500; font-size: 20px; color: var(--mint); white-space: nowrap; }
.spec-visual { display: grid; place-items: center; padding: 40px 30px 30px 50px; }
.spec-box { position: relative; width: min(100%, 300px); aspect-ratio: 1; }
.spec-face { position: absolute; inset: 0; background: var(--mint); border-radius: 10px; display: grid; place-items: center; box-shadow: 14px 14px 0 var(--sage); animation: floaty 6s ease-in-out infinite; }
.spec-face img { width: 38%; }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.dim { position: absolute; display: flex; align-items: center; justify-content: center; color: var(--mint); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.dim i { position: absolute; background: var(--mint); }
.dim b { background: var(--ink); padding: 2px 8px; position: relative; }
.dim-w { left: 0; right: 0; top: -30px; height: 16px; }
.dim-w i { left: 0; right: 0; height: 1.5px; top: 50%; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) .3s; }
.dim-w::before, .dim-w::after, .dim-h::before, .dim-h::after { content: ''; position: absolute; background: var(--mint); }
.dim-w::before, .dim-w::after { width: 1.5px; height: 12px; top: 2px; } .dim-w::before { left: 0; } .dim-w::after { right: 0; }
.dim-h { top: 0; bottom: 0; left: -38px; width: 16px; }
.dim-h b { transform: rotate(-90deg); white-space: nowrap; }
.dim-h i { top: 0; bottom: 0; width: 1.5px; left: 50%; transform-origin: top; transform: scaleY(0); transition: transform 1.2s var(--ease) .5s; }
.dim-h::before, .dim-h::after { height: 1.5px; width: 12px; left: 2px; } .dim-h::before { top: 0; } .dim-h::after { bottom: 0; }
.spec.in .dim i { transform: none; }

/* =====================================================================
   BUILDER
   ===================================================================== */
.builder { padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(60px, 8vw, 110px); background: var(--ivory); border-radius: 48px 48px 0 0; position: relative; }
.builder::before { content: ''; position: absolute; left: 50%; top: 14px; width: 60px; height: 5px; border-radius: 9px; background: var(--line); transform: translateX(-50%); }
.builder-head { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.builder-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
.builder-main { min-width: 0; scroll-margin-top: 90px; }

.stepper { list-style: none; margin: 0 0 22px; padding: 6px; display: flex; gap: 4px; background: #fff; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: 74px; z-index: 5; }
.stepper::-webkit-scrollbar { display: none; }
.stepper li { flex: 1; min-width: max-content; }
.step-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; color: var(--ink-3); transition: background .35s var(--ease), color .3s; }
.step-btn .sn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; box-shadow: inset 0 0 0 1.5px currentColor; transition: .3s; flex: none; }
.step-btn:hover { color: var(--ink); }
.step-btn.done { color: var(--ink); }
.step-btn.done .sn { background: var(--mint); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 0; }
.step-btn.done .sn::after { content: '✓'; font-size: 12px; }
.step-btn.active { background: var(--ink); color: var(--mint); }
.step-btn.active .sn { background: var(--mint); color: var(--ink); box-shadow: none; }

.panels { position: relative; min-height: 420px; }
.panel { animation: panelIn .6s var(--ease) both; }
.panel.from-left { animation-name: panelInL; }
@keyframes panelIn { from { opacity: 0; transform: translateX(34px); } }
@keyframes panelInL { from { opacity: 0; transform: translateX(-34px); } }
.panel-head { margin-bottom: 22px; }
.panel-head h3 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3vw, 40px); margin: 0 0 6px; letter-spacing: -.015em; line-height: 1.05; }
.panel-head p { margin: 0; color: var(--ink-2); }

/* occasion picker */
.occ-pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.occ-pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px 16px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .4s var(--spring), box-shadow .25s, background .3s; }
.occ-pick:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.op-ic { width: 60px; height: 60px; border-radius: var(--leaf); display: grid; place-items: center; background: color-mix(in srgb, var(--acc) 26%, #fff); transition: transform .5s var(--spring); }
.op-ic svg { width: 44px; }
.op-name { font-weight: 700; font-size: 14.5px; text-align: center; }
.op-tick { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--mint); font-size: 12px; display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--spring); }
.occ-pick.on { background: var(--mint-3); box-shadow: inset 0 0 0 2px var(--ink); }
.occ-pick.on .op-tick { transform: scale(1); }
.occ-pick.on .op-ic { transform: rotate(-8deg) scale(1.08); }

/* options */
.opt-group { margin-bottom: 26px; }
.opt-group h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--ink-2); }
.opt-group h4 em, .card-form h4 em { font-style: normal; text-transform: none; letter-spacing: 0; background: var(--mint); color: var(--ink); padding: 2px 8px; border-radius: 99px; font-size: 12px; margin-left: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 10px 8px; min-width: 88px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 13px; font-weight: 600; transition: transform .35s var(--spring), box-shadow .2s; }
.swatch:hover { transform: translateY(-2px); }
.swatch.on { box-shadow: inset 0 0 0 2px var(--ink); background: var(--mint-3); }
.sw-box { width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, var(--c) 55%, var(--c2) 55%); box-shadow: inset 0 0 0 1.5px rgba(34, 34, 34, .25); }
.sw-rib { width: 44px; height: 44px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(34, 34, 34, .25); position: relative; }
.sw-rib::after { content: ''; position: absolute; inset: 40% -2px; background: rgba(255, 255, 255, .35); }
.sw-rib.none { background: repeating-linear-gradient(45deg, #fff 0 5px, #eee 5px 10px); }
.sw-rib.none::after { inset: 50% 4px auto; height: 1.5px; background: var(--ink); transform: rotate(-45deg); }
.sw-fill { width: 44px; height: 44px; border-radius: 50%; background-size: 90px; box-shadow: inset 0 0 0 1.5px rgba(34, 34, 34, .25); }

.field { position: relative; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); outline: none; transition: box-shadow .2s; font-size: 16px; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.field.err input, .field.err select { box-shadow: inset 0 0 0 2px #C0463F; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.field.inline { flex-direction: row; align-items: center; max-width: 420px; }
.field .counter { position: absolute; right: 14px; bottom: 13px; font-size: 12px; color: var(--ink-3); pointer-events: none; }
.field.inline .counter { bottom: auto; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* fill tools */
.fill-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 15px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 13.5px; transition: background .25s, color .25s, box-shadow .25s, transform .3s var(--spring); }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.on { background: var(--ink); color: var(--mint); box-shadow: none; }
.chip:active { transform: scale(.94); }
.fill-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-3); }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.search input { flex: 1; border: 0; outline: none; background: none; padding: 11px 0; font-size: 15px; color: var(--ink); }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.item-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 14px 14px 12px;
  background: #fff; border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform .4s var(--spring), box-shadow .25s, background .3s; animation: cardIn .5s var(--ease) both;
}
.item-card:nth-child(2) { animation-delay: .03s; } .item-card:nth-child(3) { animation-delay: .06s; } .item-card:nth-child(4) { animation-delay: .09s; } .item-card:nth-child(5) { animation-delay: .12s; } .item-card:nth-child(6) { animation-delay: .15s; } .item-card:nth-child(n+7) { animation-delay: .18s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.item-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow-1); }
.item-card:active { transform: scale(.97); }
.ic-art { width: 100%; aspect-ratio: 1.25; display: grid; place-items: center; border-radius: 14px; background: var(--ivory); margin-bottom: 10px; transition: background .3s; overflow: hidden; }
.ic-art svg { width: 58%; transition: transform .5s var(--spring); }
.item-card:hover .ic-art svg { transform: scale(1.1) rotate(-5deg); }
.ic-name { font-weight: 800; font-size: 14.5px; line-height: 1.2; }
.ic-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.3; min-height: 2.6em; }
.ic-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 8px; }
.ic-price { font-weight: 800; font-size: 13px; }
.ic-toggle { position: relative; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background .3s, transform .45s var(--spring); }
.ic-toggle i::before, .ic-toggle i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .4s var(--spring), width .3s, background .3s; }
.ic-toggle i::after { transform: translate(-50%, -50%) rotate(90deg); }
.item-card.on { background: var(--mint-3); box-shadow: inset 0 0 0 2px var(--ink); }
.item-card.on .ic-art { background: var(--mint); }
.item-card.on .ic-toggle { background: var(--ink); transform: rotate(360deg); }
.item-card.on .ic-toggle i::before { width: 6px; background: var(--mint); transform: translate(-95%, 10%) rotate(45deg); }
.item-card.on .ic-toggle i::after { width: 11px; background: var(--mint); transform: translate(-30%, -30%) rotate(-50deg); }
.ic-rec { position: absolute; top: 20px; left: 20px; z-index: 1; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 99px; background: var(--ink); color: var(--gold); }
.item-grid.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 30px; }
.no-results { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--ink-3); background: #fff; border-radius: 20px; }

/* card studio */
.card-studio { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; padding: 24px; background: #fff; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1.5px var(--line); }
.card-form h4 { margin: 0 0 12px; font-family: var(--display); font-weight: 500; font-size: 24px; }
.card-form .chips { margin-bottom: 16px; }
.card-form .field input, .card-form .field textarea { background: var(--ivory); }
.prompts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; }
.prompts > span { font-weight: 700; color: var(--ink-3); margin-right: 4px; }
.prompt { padding: 6px 11px; border-radius: 99px; background: var(--ivory); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; text-align: left; transition: background .2s; }
.prompt:hover { background: var(--mint); }
.card-preview-wrap { perspective: 1000px; position: sticky; top: 150px; }
.card-preview {
  position: relative; aspect-ratio: 3 / 2; border-radius: 6px; background: #FFFDF6; overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 22px 40px -18px rgba(34, 34, 34, .45); transform: rotate(-2.5deg); transition: transform .6s var(--ease), background .4s;
  animation: cardFloat 7s ease-in-out infinite;
}
@keyframes cardFloat { 50% { transform: rotate(-1deg) translateY(-6px); } }
.cp-deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.cp-body { position: absolute; inset: 14% 12%; display: flex; flex-direction: column; font-family: var(--hand); color: #2B2B2B; }
.cp-to { font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.cp-msg { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.15; margin-top: 6px; overflow: hidden; flex: 1; }
.cp-from { font-size: clamp(20px, 2vw, 26px); font-weight: 700; text-align: right; }
.cp-body .ph { opacity: .35; }
.cp-arabesque { background: #F7F3E6; }
.cp-classic .cp-body { text-align: center; }
.cp-classic .cp-from { text-align: center; }
.cp-minimal { background: #fff; }
.cp-mark { position: absolute; right: 7%; bottom: 9%; width: 7%; opacity: .85; }

/* review */
.review { display: grid; gap: 12px; }
.rv-block { padding: 18px 20px; background: #fff; border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--line); }
.rv-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rv-h h4 { margin: 0; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.rv-occ { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.rv-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ivory); display: grid; place-items: center; }
.rv-ic svg { width: 32px; }
.rv-wrap { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-weight: 600; }
.rv-dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(34, 34, 34, .3); display: inline-block; margin-left: 6px; }
.rv-dot:first-child { margin-left: 0; }
.rv-lid { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.rv-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rv-items li { display: grid; grid-template-columns: 36px 1fr auto 28px; gap: 10px; align-items: center; padding: 4px 0; font-weight: 600; font-size: 14.5px; }
.rv-art { width: 36px; height: 36px; border-radius: 10px; background: var(--ivory); display: grid; place-items: center; }
.rv-art svg { width: 26px; }
.rv-items b { font-size: 13px; color: var(--ink-3); }
.rv-x { width: 28px; height: 28px; border-radius: 50%; font-size: 11px; transition: background .2s; }
.rv-x:hover { background: #F6DEDC; }
.rv-msg { margin: 0; } .rv-msg small { display: block; color: var(--ink-3); margin-top: 4px; }
.rv-empty { margin: 0; color: var(--ink-3); }
.rv-qty { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: var(--mint-3); border-radius: 20px; }
.rv-qty h4 { margin: 0; font-size: 16px; } .rv-qty p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.rv-total { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px; }
.rv-total span { color: var(--ink-3); font-weight: 600; }
.rv-total strong { font-family: var(--display); font-size: 36px; font-weight: 500; }
.stepper-qty { display: inline-flex; align-items: center; background: #fff; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.stepper-qty button { width: 42px; height: 42px; font-size: 20px; border-radius: 50%; transition: background .2s; }
.stepper-qty button:hover { background: var(--mint); }
.stepper-qty span { min-width: 28px; text-align: center; font-weight: 800; }
.stepper-qty.sm button { width: 32px; height: 32px; font-size: 16px; }

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1.5px dashed var(--line); }

/* studio (preview) */
.studio { position: sticky; top: 86px; }
.studio-card { background: var(--mint); border-radius: 36px; padding: 20px; box-shadow: inset 0 0 0 1.5px rgba(34, 34, 34, .12), var(--shadow-2); position: relative; overflow: hidden; }
.studio-card::before { content: ''; position: absolute; inset: auto -30% -40% auto; width: 80%; aspect-ratio: 1; background: url('/assets/mark-dark.png') center / contain no-repeat; opacity: .05; transform: rotate(-12deg); pointer-events: none; }
.studio-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; z-index: 2; }
.occ-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--ivory); font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.oc-ic { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.oc-ic svg { width: 22px; }
.lid-toggle { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background .2s, color .2s; }
.lid-toggle:hover { background: var(--ink); color: var(--mint); }
.lid-toggle .lt-close { display: none; }
.lid-toggle[aria-pressed="true"] .lt-open { display: none; }
.lid-toggle[aria-pressed="true"] .lt-close { display: inline; }
.stage-wrap { position: relative; }
.empty-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -30%); text-align: center; font-family: var(--display); font-style: italic; font-size: 20px; line-height: 1.2; pointer-events: none; opacity: 0; transition: opacity .4s; z-index: 3; text-shadow: 0 1px 0 rgba(255, 255, 255, .4); }
.empty-hint small { font-family: var(--sans); font-style: normal; font-size: 12.5px; color: var(--ink-2); }
.empty-hint.show { opacity: 1; }
.capacity { display: flex; align-items: center; gap: 12px; margin: 4px 4px 16px; position: relative; z-index: 2; }
.cap-bar { flex: 1; height: 8px; border-radius: 9px; background: rgba(34, 34, 34, .12); overflow: hidden; }
.cap-bar span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; transition: width .6s var(--spring); }
.cap-text { font-size: 13px; font-weight: 700; white-space: nowrap; }
.capacity.full .cap-bar span { background: var(--forest); }
.price { background: var(--ivory); border-radius: 22px; padding: 16px 18px; margin-bottom: 12px; position: relative; z-index: 2; }
.price-rows div { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); padding: 2px 0; }
.price-rows b { color: var(--ink); }
.price-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px dashed var(--line); margin-top: 10px; padding-top: 10px; }
.price-total > span { font-weight: 700; }
.price-total strong { font-family: var(--display); font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.price-total small { font-family: var(--sans); font-size: 14px; font-weight: 700; }
.studio-note { text-align: center; font-size: 13px; margin: 10px 0 0; font-weight: 600; color: var(--forest); position: relative; z-index: 2; }
.studio .btn { position: relative; z-index: 2; }

/* =====================================================================
   3D BOX
   ===================================================================== */
.stage { --S: 300px; --H: calc(var(--S) * .3); --rx: 58deg; --rz: -40deg; --is: 1; }
.stage[data-size="hero"] { --S: min(390px, 32vw); }
.stage[data-size="studio"] { --S: min(270px, 70vw); }
.stage[data-size="sheet"] { --S: min(260px, 56vw); }
.b3-host { width: 100%; height: calc(var(--S) * 1.32); display: grid; place-items: center; perspective: 2000px; perspective-origin: 50% 30%; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; position: relative; z-index: 1; }
.b3-host.dragging { cursor: grabbing; }
.b3-scene { width: var(--S); height: var(--S); transform-style: preserve-3d; transform: translateY(calc(var(--S) * .16)); }
.b3-box { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateZ(var(--rz)); }
.b3-host:not(.dragging) .b3-box { transition: transform .8s var(--ease); }
.b3-ground { position: absolute; inset: -18%; background: radial-gradient(closest-side, rgba(20, 40, 25, .32), rgba(20, 40, 25, .12) 60%, transparent); transform: translateZ(-1px); }
.b3-floor { position: absolute; inset: 0; background-color: var(--b-side); background-size: calc(var(--S) * .5); box-shadow: inset 0 0 calc(var(--S) * .06) rgba(0, 0, 0, .3); transform: translateZ(calc(var(--H) * .22)); transition: background-image .3s; }
.b3-wall { position: absolute; transition: background-color .5s; outline: 1px solid rgba(0, 0, 0, .05); }
.b3-wall-s { left: 0; top: 100%; width: 100%; height: var(--H); transform-origin: top; transform: rotateX(90deg); background: linear-gradient(to bottom, var(--b-dark), var(--b-side) 85%, var(--b-top)); }
.b3-wall-n { left: 0; bottom: 100%; width: 100%; height: var(--H); transform-origin: bottom; transform: rotateX(-90deg); background: linear-gradient(to bottom, var(--b-top), var(--b-side) 15%, var(--b-dark)); }
.b3-wall-w { top: 0; right: 100%; width: var(--H); height: 100%; transform-origin: right; transform: rotateY(90deg); background: linear-gradient(to right, var(--b-top), var(--b-side) 15%, var(--b-dark)); filter: brightness(1.05); }
.b3-wall-e { top: 0; left: 100%; width: var(--H); height: 100%; transform-origin: left; transform: rotateY(-90deg); background: linear-gradient(to right, var(--b-dark), var(--b-side) 85%, var(--b-top)); filter: brightness(.92); }
.b3-items { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--H) * .22)); }
.b3-item { position: absolute; width: 0; height: 0; transform-style: preserve-3d; transition: left .6s var(--ease), top .6s var(--ease); }
.b3-shadow { position: absolute; width: calc(var(--S) * .24 * var(--is)); height: calc(var(--S) * .24 * var(--is)); left: 0; top: 0; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(0, 0, 0, .32), transparent); animation: shIn .7s var(--ease) both; transition: width .5s, height .5s; }
@keyframes shIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.3); } }
.b3-bill { position: absolute; left: 0; top: 0; width: calc(var(--S) * .31 * var(--is)); height: calc(var(--S) * .31 * var(--is)); transform-origin: 50% 100%; transform: translate(-50%, -100%) rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1)); transition: width .5s var(--ease), height .5s var(--ease); }
.b3-art { width: 100%; height: 100%; animation: drop .85s var(--spring) both; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .15)); }
.b3-art svg { width: 100%; height: 100%; }
@keyframes drop {
  0% { transform: translateY(-190%) scale(.55) rotate(-14deg); opacity: 0; }
  45% { opacity: 1; }
  70% { transform: translateY(4%) scale(1.06, .92) rotate(2deg); }
  85% { transform: translateY(-4%) scale(.98, 1.03); }
  100% { transform: none; }
}
.b3-item.leaving .b3-art { animation: popOut .38s var(--ease) forwards; }
.b3-item.leaving .b3-shadow { opacity: 0; transition: opacity .3s; }
@keyframes popOut { to { transform: translateY(-50%) scale(.2) rotate(18deg); opacity: 0; } }

/* lid */
.b3-lid { position: absolute; inset: -2.5%; transform-style: preserve-3d; transform: translate3d(8%, -26%, calc(var(--H) * 2.6)) rotateX(-6deg) rotateY(8deg); transition: transform .95s cubic-bezier(.65, 0, .25, 1); pointer-events: none; }
.b3-lid > * { opacity: 0; transition: opacity .45s .1s; }
.lid-closed .b3-lid { transform: translateZ(calc(var(--H) + 2px)); }
.lid-closed .b3-lid > * { opacity: 1; transition-delay: 0s; }
.b3-lid-top { position: absolute; inset: 0; background: var(--b-top); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), inset 0 0 calc(var(--S) * .08) rgba(255, 255, 255, .25); overflow: hidden; }
.b3-rib { position: absolute; background: var(--rib); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.b3-rib-h { left: 0; right: 0; top: 66%; height: 9%; }
.b3-rib-v { top: 0; bottom: 0; left: 66%; width: 9%; }
.no-ribbon .b3-rib { display: none; }
.b3-lid-logo { position: absolute; left: 33%; top: 33%; width: 22%; transform: translate(-50%, -50%) rotate(0deg); opacity: .9; transition: top .4s var(--ease), width .4s; }
.has-name .b3-lid-logo { top: 22%; width: 13%; }
.b3-lid-name { position: absolute; left: 3%; width: 60%; top: 38%; text-align: center; font-family: var(--display); font-style: italic; font-weight: 500; font-size: calc(var(--S) * .075); line-height: 1.05; color: var(--ink); overflow-wrap: anywhere; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.dark-box .b3-lid-name { color: var(--mint); }
.b3-lwall { position: absolute; background: var(--b-side); }
.b3-lwall-s { left: 0; top: 100%; width: 100%; height: calc(var(--S) * .09); transform-origin: top; transform: rotateX(-90deg); background: linear-gradient(to right, transparent 66%, var(--rib) 66% 75%, transparent 75%), var(--b-side); }
.b3-lwall-n { left: 0; bottom: 100%; width: 100%; height: calc(var(--S) * .09); transform-origin: bottom; transform: rotateX(90deg); background: linear-gradient(to right, transparent 66%, var(--rib) 66% 75%, transparent 75%), var(--b-dark); }
.b3-lwall-w { top: 0; right: 100%; width: calc(var(--S) * .09); height: 100%; transform-origin: right; transform: rotateY(-90deg); background: linear-gradient(to bottom, transparent 66%, var(--rib) 66% 75%, transparent 75%), var(--b-top); filter: brightness(.97); }
.b3-lwall-e { top: 0; left: 100%; width: calc(var(--S) * .09); height: 100%; transform-origin: left; transform: rotateY(90deg); background: linear-gradient(to bottom, transparent 66%, var(--rib) 66% 75%, transparent 75%), var(--b-dark); }
.b3-bow { position: absolute; left: 70.5%; top: 70.5%; width: 0; height: 0; transform-style: preserve-3d; }
.b3-bow svg { position: absolute; left: 0; top: 0; width: calc(var(--S) * .36); max-width: none; height: auto; transform-origin: 50% 60%; transform: translate(-50%, -60%) rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1)) translateY(-18%); }
.lid-closed .b3-bow svg { animation: bowIn .8s var(--spring) .45s both; }
@keyframes bowIn { from { transform: translate(-50%, -60%) rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1)) translateY(-18%) scale(.2); } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: rgba(251, 247, 238, .65); border-radius: 22px; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .3s; }
.faq details[open] { background: var(--ivory); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 700; font-size: 17.5px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); transition: transform .45s var(--spring), background .3s; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(135deg); background: var(--mint); }
.faq details p { margin: 0; padding: 0 26px 24px; color: var(--ink-2); max-width: 60em; animation: panelIn .5s var(--ease); }

/* ---------- CTA ---------- */
.cta { padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }
.cta-inner { max-width: var(--maxw); margin: 0 auto; background: var(--ink); color: var(--ivory); border-radius: 48px; padding: clamp(50px, 8vw, 110px) clamp(24px, 6vw, 80px); position: relative; overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.cta-inner .h2 em { color: var(--mint); }
.cta-mark { position: absolute; width: 360px; left: -80px; bottom: -120px; opacity: .1; transform: rotate(-16deg); animation: floaty 9s ease-in-out infinite; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(251, 247, 238, .75); padding: 70px var(--gutter) 30px; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(202, 229, 203, .16); }
.footer-logo { width: min(340px, 70vw); }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer h4 { margin: 0 0 6px; color: var(--mint); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.footer a { text-decoration: none; } .footer a:hover { color: var(--mint); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }

/* ---------- Drawer / Sheet / Modal ---------- */
.drawer, .sheet, .modal { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(20, 24, 20, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s; }
.drawer.open, .sheet.open, .modal.open { pointer-events: auto; }
.drawer.open .drawer-scrim, .sheet.open .drawer-scrim, .modal.open .drawer-scrim { opacity: 1; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(500px, 100%); background: var(--ivory); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .6s cubic-bezier(.7, 0, .2, 1); border-radius: 32px 0 0 32px; box-shadow: var(--shadow-2); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 14px; }
.drawer-head h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 30px; }
.drawer-head h3 span { font-size: 20px; color: var(--ink-3); }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 24px 20px; overscroll-behavior: contain; }
.cart-list { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 14px; background: #fff; border-radius: 22px; box-shadow: inset 0 0 0 1.5px var(--line); animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms); transition: opacity .3s, transform .3s; }
.cart-item.removing { opacity: 0; transform: translateX(40px); }
.ci-art { background: var(--mint); border-radius: 16px; display: grid; place-items: center; padding: 8px; align-self: start; aspect-ratio: 1; }
.ci-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.ci-top h5 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.1; }
.ci-sub { margin: 2px 0 8px; font-size: 13px; color: var(--ink-3); }
.ci-items { display: flex; flex-wrap: wrap; gap: 4px; }
.ci-items span { width: 30px; height: 30px; border-radius: 9px; background: var(--ivory); display: grid; place-items: center; }
.ci-items svg { width: 22px; }
.ci-names { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 10px; line-height: 1.35; }
.ci-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ci-actions { display: flex; gap: 12px; }
.ci-price { font-family: var(--display); font-weight: 500; font-size: 21px; }
.cart-empty { text-align: center; padding: 40px 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cart-empty-art { width: 150px; animation: floaty 5s ease-in-out infinite; }
.cart-empty p { font-family: var(--display); font-style: italic; font-size: 22px; margin: 0; }
.checkout { margin-top: 26px; padding-top: 22px; border-top: 1.5px dashed var(--line); }
.checkout h4 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 24px; }
.checkout-note { margin: 4px 0 16px; font-size: 13.5px; color: var(--ink-3); }
.drawer-foot { padding: 16px 24px calc(18px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); border-radius: 0 0 0 32px; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.drawer-total span { font-weight: 700; }
.drawer-total strong { font-family: var(--display); font-weight: 500; font-size: 32px; }
.fine { font-size: 12.5px; color: var(--ink-3); text-align: center; margin: 10px 0 0; }

.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; background: var(--mint); border-radius: 32px 32px 0 0; padding: 22px 16px calc(24px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .55s cubic-bezier(.7, 0, .2, 1); max-height: 90vh; overflow-y: auto; }
.sheet.open .sheet-panel { transform: none; }
.sheet-x { position: absolute; right: 14px; top: 14px; z-index: 3; background: var(--ivory); }
.sheet-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sheet-list span { display: flex; align-items: center; gap: 6px; background: var(--ivory); padding: 4px 10px 4px 4px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
.sheet-list svg { width: 26px; }
.sheet-list p { margin: 0; color: var(--ink-2); }

.modal { display: grid; place-items: center; padding: 16px; }
.modal-card { position: relative; width: min(460px, 100%); background: var(--ivory); border-radius: 32px; padding: 34px 28px 28px; text-align: center; box-shadow: var(--shadow-2); transform: translateY(30px) scale(.94); opacity: 0; transition: transform .55s var(--spring), opacity .3s; }
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-card h3 { font-family: var(--display); font-weight: 500; font-size: 30px; margin: 8px 0 10px; line-height: 1.05; }
.modal-card p { color: var(--ink-2); margin: 0 0 8px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.done-art { position: relative; width: 160px; height: 140px; margin: 0 auto; }
.done-box { width: 140px; margin: 0 auto; }
.modal.open .done-box { animation: bump .8s var(--spring) .2s; }
.done-fly { position: absolute; width: 44px; left: 50%; top: 30%; color: var(--ink); }
.modal.open .done-fly { animation: flyAway 2.6s var(--ease) .5s both; }
@keyframes flyAway { 0% { transform: translate(-50%, 0) scale(.4); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(20px, -60px) rotate(18deg) scale(1); } 100% { transform: translate(-60px, -110px) rotate(-12deg) scale(.9); opacity: 1; } }

/* ---------- Toasts / flyer ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-radius: 99px; background: var(--ink); color: var(--ivory); box-shadow: var(--shadow-2); font-size: 14.5px; transform: translateY(20px) scale(.95); opacity: 0; transition: transform .45s var(--spring), opacity .3s; max-width: 100%; }
.toast.in { transform: none; opacity: 1; }
.toast-msg { flex: 1; }
.toast-btn { padding: 8px 14px; border-radius: 99px; background: var(--mint); color: var(--ink); font-weight: 700; font-size: 13px; white-space: nowrap; }
.flyer { position: fixed; left: 0; top: 0; z-index: 110; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .2)); }
.flyer svg { width: 100%; height: 100%; }

/* ---------- Mobile bar ---------- */
.mbar { display: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1180px) {
  .occ-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .builder-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .occ-pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-studio { grid-template-columns: 1fr; }
  .card-preview-wrap { position: static; max-width: 440px; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 10px; text-align: left; }
  .hero-stage { min-height: 340px; order: -1; margin-top: -20px; }
  .stage[data-size="hero"] { --S: min(300px, 56vw); }
  .hero-mark { width: 110vw; right: -30vw; top: 4vh; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .spec { grid-template-columns: 1fr; }
  .builder-grid { grid-template-columns: 1fr; }
  .studio { position: relative; top: 0; order: -1; }
  .studio .btn, .studio .price, .studio-note { display: none; }
  .studio-card { padding: 14px; border-radius: 28px; }
  .stage[data-size="studio"] { --S: min(230px, 54vw); }
  .stepper { top: 64px; }
  .step-nav { display: none; }
  .builder { padding-bottom: 120px; }
  .mbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; gap: 10px; align-items: center;
    padding: 8px; background: var(--ivory); border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--ink), var(--shadow-2);
    transform: translateY(160%); transition: transform .5s var(--spring);
  }
  .mbar.show { transform: none; }
  .mbar-box { flex: 1; display: flex; align-items: center; gap: 10px; text-align: left; padding-left: 4px; }
  .mbar-count { width: 42px; height: 42px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--ink); }
  .mbar-total { display: flex; flex-direction: column; line-height: 1.1; }
  .mbar-total small { font-size: 11.5px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
  .mbar-total b { font-family: var(--display); font-weight: 500; font-size: 22px; }
  .mbar .btn { padding: 13px 20px; }
  .toasts { bottom: 96px; }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .brand img { height: 30px; }
  .nav.scrolled .brand img { height: 28px; }
  .cart-btn { width: 44px; height: 44px; }
  .occ-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .occ-card { padding: 16px; min-height: 210px; border-radius: 22px; }
  .occ-ic { width: 60px; height: 60px; margin-bottom: 12px; }
  .occ-ic svg { width: 40px; }
  .occ-name { font-size: 21px; }
  .occ-tag { font-size: 12.5px; }
  .occ-picks span { width: 32px; height: 32px; }
  .occ-picks span svg { width: 22px; }
  .occ-go { display: none; }
  .how-steps { grid-template-columns: 1fr; }
  .occ-pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .occ-pick { padding: 14px 6px 12px; }
  .op-ic { width: 50px; height: 50px; } .op-ic svg { width: 36px; }
  .op-name { font-size: 13px; }
  .item-grid, .item-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .item-card { padding: 10px 10px 10px; border-radius: 18px; }
  .ic-rec { top: 14px; left: 14px; }
  .swatch { min-width: 76px; font-size: 12px; }
  .card-studio { padding: 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-meta { gap: 12px; } .hero-meta strong { font-size: 26px; }
  .hero-ctas .btn { flex: 1; }
  .marquee { padding: 16px 0; }
  .spec { border-radius: 30px; }
  .spec-visual { padding: 36px 10px 10px 44px; }
  .builder { border-radius: 32px 32px 0 0; }
  .cta-inner { border-radius: 32px; }
  .drawer-panel { border-radius: 0; }
  .drawer-foot { border-radius: 0; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .rv-block { padding: 16px; }
  .rv-qty { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* hint hides while the lid is on */
.stage.lid-closed + .empty-hint { opacity: 0; }
@media (max-width: 1180px) and (min-width: 981px) {
  .step-btn:not(.active) .sl { display: none; }
}
