/* FlashDrop — Lavender Haze (Pinterest-style redesign) */
:root {
  /* Lavender Haze — lavender + peach on soft mist, aubergine ink. No blue. */
  --paper: #F6F0FF; --silver: #EFE6FB; --mist: #E6DAF6; --card: #FFFFFF;
  --ink: #2A1430; --ink-soft: #4A3557; --muted: #7A6886; --line: #E2D5F1;
  --accent: #8E5BD6; --accent-deep: #7443BE; --aqua: #FFC2A1;
  --navy: #1E0F24; --navy-card: #2A1730; --navy-raised: #35203D; --navy-line: #43294C; --navy-muted: #B9A3C9; --navy-soft: #E3D5EE;
  --sky: #E9DFFB; --mint: #FFDCC9; --lilac: #E9DFFB; --steel: #CDBDE0; --sun: #FFC2A1; --peach: #FFC2A1;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
  --shadow: 0 18px 50px -22px rgba(42, 20, 48, .35);
  --glow: 0 12px 34px -10px rgba(142, 91, 214, .65);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
body.night { background: var(--navy); color: #fff; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.hidden { display: none !important; }

/* ── Type ──────────────────────────────────────────────────────────────────── */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.02; margin: 0; }
.serif em, .serif i { font-style: italic; color: var(--accent); }
.night .serif em, .on-dark .serif em { color: var(--aqua); }
.serif.xl { font-size: clamp(54px, 8vw, 112px); }
.serif.lg { font-size: clamp(40px, 5.2vw, 68px); }
.serif.md { font-size: clamp(30px, 3.4vw, 42px); }
.serif.sm { font-size: 26px; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.night .mono, .on-dark .mono { color: var(--navy-muted); }
.lede { color: var(--ink-soft); font-size: 16px; max-width: 46ch; margin: 0; }
.night .lede { color: var(--navy-soft); }

/* ── Buttons / pills ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px;
  border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease; box-shadow: var(--glow);
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: scale(.97); }
.btn .arr { font-family: var(--serif); font-size: 22px; line-height: 0; transform: translateY(1px); }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--silver); }
.btn.ghost.dark { color: #fff; border-color: var(--navy-line); }
.btn.ghost.dark:hover { background: var(--navy-raised); }
.btn.ink { background: var(--ink); box-shadow: none; }
.btn.white { background: #fff; color: var(--ink); box-shadow: none; }
.btn.small { height: 40px; padding: 0 16px; font-size: 13px; }
.btn.block { width: 100%; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 13px; transition: .15s;
}
.pill:hover { border-color: var(--ink-soft); }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.accent.on { background: var(--accent); border-color: var(--accent); }
.on-dark .pill { background: var(--navy-card); border-color: var(--navy-line); color: var(--navy-soft); }
.on-dark .pill.on { background: #fff; color: var(--ink); border-color: #fff; }
.circle {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--card);
  border: 1px solid var(--line); color: var(--ink); flex: none; transition: .15s;
}
.circle:hover { background: var(--silver); }
.circle.dark { background: rgba(42, 23, 48, .72); border-color: var(--navy-line); color: #fff; backdrop-filter: blur(10px); }
.circle.dark:hover { background: var(--navy-raised); }
.circle.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.circle svg { width: 20px; height: 20px; }
.link { color: var(--accent); font-weight: 700; }
.hair { height: 1px; background: var(--line); border: 0; margin: 0; }
.night .hair { background: var(--navy-line); }
.row { display: flex; align-items: center; gap: 12px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scroll-x { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 2px; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { scroll-snap-align: start; flex: none; }

/* ── Shell ─────────────────────────────────────────────────────────────────── */
#app { min-height: 100%; }
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 28px; height: 72px; padding: 0 var(--gutter);
  background: rgba(246, 240, 255, .82); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line);
}
.wordmark { font-family: var(--serif); font-size: 30px; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 2px; }
.wordmark i { color: var(--accent); }
.night .wordmark i { color: var(--aqua); }
.topnav { display: flex; gap: 26px; margin-left: 12px; }
.topnav a { font-weight: 600; color: var(--muted); position: relative; padding: 6px 0; font-size: 14px; }
.topnav a.on { color: var(--ink); }
.topnav a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px; }
.topbar .grow { flex: 1; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff;
  font-family: var(--serif); font-size: 20px; font-style: italic;
}
.page { padding: 28px var(--gutter) 120px; max-width: 1240px; margin: 0 auto; animation: rise .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tabbar {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); height: 66px;
  display: none; align-items: center; justify-content: space-around; border-radius: 24px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tabbar a { font-weight: 700; font-size: 12.5px; color: var(--muted); padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tabbar a.on { color: var(--ink); }
.tabbar a.on::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.tabbar .fab {
  width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: var(--glow); transform: translateY(-16px); border: 4px solid var(--paper); padding: 0;
}
.tabbar .fab::after { display: none; }
.tabbar .fab svg { width: 24px; height: 24px; }
@media (max-width: 820px) {
  .topnav, .topbar .open-booth { display: none; }
  .topbar { height: 60px; }
  .tabbar { display: flex; }
  .page { padding-top: 18px; padding-bottom: 110px; }
}

/* ── Landing (Night cover) ─────────────────────────────────────────────────── */
.cover { min-height: 100vh; min-height: 100dvh; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--navy); }
.cover .wall { position: absolute; inset: -12% -10% -12% 38%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; transform: rotate(-9deg); opacity: .95; }
.cover .wall .col { display: flex; flex-direction: column; gap: 18px; animation: drift 38s linear infinite; }
.cover .wall .col:nth-child(2n) { animation-direction: reverse; margin-top: -120px; }
.cover .wall img { border-radius: 14px; width: 100%; box-shadow: 0 30px 60px -30px #000; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 30%, rgba(30, 15, 36, .82) 52%, rgba(30, 15, 36, .1) 80%), linear-gradient(0deg, var(--navy) 0%, transparent 28%); pointer-events: none; }
.cover .copy { position: relative; z-index: 2; padding: 40px var(--gutter); display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; min-height: 100dvh; }
.cover .copy .mid { display: flex; flex-direction: column; gap: 24px; }
.cover .stats { display: flex; gap: 36px; }
.cover .stats b { display: block; font-family: var(--serif); font-size: 40px; font-weight: 400; }
.feature-band { background: var(--paper); color: var(--ink); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.features > div { padding: 30px 26px; border-right: 1px solid var(--line); }
.features > div:last-child { border-right: 0; }
.features .n { font-family: var(--serif); font-size: 46px; color: var(--accent); line-height: 1; }
@media (max-width: 820px) {
  .cover { grid-template-columns: 1fr; }
  .cover .wall { inset: -20% -30% 30% -10%; grid-template-columns: repeat(3, 1fr); }
  .cover::after { background: linear-gradient(0deg, var(--navy) 42%, rgba(30, 15, 36, .6) 70%, rgba(30, 15, 36, .2)); }
  .cover .copy .mid { margin-top: auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .features > div:nth-child(2) { border-right: 0; }
  .features > div { border-bottom: 1px solid var(--line); }
}

/* ── Welcome (Quick start) ─────────────────────────────────────────────────── */
.welcome { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.welcome .art { background: var(--ink); position: relative; overflow: hidden; display: grid; place-items: center; }
.welcome .art .stack { position: relative; height: min(70vh, 620px); aspect-ratio: 520/1410; }
.welcome .art .stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: 0 40px 80px -30px #000; }
.welcome .art .stack img:nth-child(1) { transform: rotate(-12deg) translateX(-38%); opacity: .7; }
.welcome .art .stack img:nth-child(2) { transform: rotate(9deg) translateX(36%); opacity: .8; }
.welcome .art .stack img:nth-child(3) { transform: rotate(-1deg); }
.welcome .form { padding: 48px var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 22px; max-width: 620px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field input {
  height: 66px; border: 0; border-bottom: 2px solid var(--line); background: transparent; font-family: var(--serif); font-size: 40px;
  padding: 0 2px; outline: none; transition: border-color .2s; color: var(--ink);
}
.field input:focus { border-color: var(--accent); }
.field input::placeholder { color: var(--steel); font-style: italic; }
.steps-dots { display: flex; gap: 6px; }
.steps-dots i { width: 26px; height: 4px; border-radius: 4px; background: var(--line); }
.steps-dots i.on { background: var(--accent); }
@media (max-width: 820px) { .welcome { grid-template-columns: 1fr; grid-template-rows: 38vh 1fr; } .welcome .art .stack { height: 30vh; } }

/* ── Home (Stories) ────────────────────────────────────────────────────────── */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.stories { margin: 6px 0 30px; }
.story { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 82px; }
.story .ring { width: 76px; height: 76px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--accent), var(--aqua), var(--lilac), var(--accent)); }
.story .ring.seen { background: var(--line); }
.story .ring > div { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--paper); overflow: hidden; background: var(--silver); display: grid; place-items: center; }
.story .ring img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.story span { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; }
.formats { position: relative; }
.format-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 420px; padding: 28px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
}
.format-card .bgimg { position: absolute; inset: 0; z-index: -1; display: flex; justify-content: flex-end; align-items: center; padding-right: 7%; }
.format-card .bgimg img { height: 112%; width: auto; border-radius: 12px; transform: rotate(6deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.format-card .num { font-family: var(--serif); font-size: 130px; line-height: .8; }
.format-dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.format-dots button { width: 8px; height: 8px; border-radius: 8px; background: var(--line); transition: .2s; }
.format-dots button.on { width: 26px; background: var(--ink); }
.latest { border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); padding: 20px; display: flex; gap: 18px; }
.latest .thumb { width: 116px; flex: none; border-radius: 10px; overflow: hidden; background: var(--silver); box-shadow: var(--shadow); align-self: flex-start; }
.latest .thumb img { width: 100%; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick button { text-align: left; border-radius: var(--r-md); padding: 16px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 22px; transition: .15s; min-height: 132px; }
.quick button:hover { border-color: var(--ink); transform: translateY(-2px); }
.quick .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.quick .ic img { width: 100%; height: 100%; object-fit: cover; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; gap: 10px; }
@media (max-width: 960px) { .home-grid { grid-template-columns: 1fr; } .format-card { min-height: 360px; } }

/* ── Frames (Spotlight) ────────────────────────────────────────────────────── */
.spot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.spot > * { min-width: 0; }
.spot-stage {
  position: relative; border-radius: 32px; background: radial-gradient(circle at 50% 35%, #fff, var(--mist)); min-height: 600px;
  display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line);
}
.spot-stage img.main { position: relative; z-index: 2; max-height: 540px; width: auto; max-width: 74%; border-radius: 8px; box-shadow: 0 40px 70px -30px rgba(42, 20, 48, .55); transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.spot-stage .ghost-l, .spot-stage .ghost-r { position: absolute; z-index: 0; max-height: 380px; max-width: 34%; opacity: .3; filter: blur(1px); border-radius: 8px; }
.spot-stage .ghost-l { left: -8%; transform: rotate(-8deg); }
.spot-stage .ghost-r { right: -8%; transform: rotate(8deg); }
.spot-stage .nav, .spot-stage .count { z-index: 3; }
.spot-stage .nav { position: absolute; top: 50%; transform: translateY(-50%); }
.spot-stage .nav.l { left: 16px; } .spot-stage .nav.r { right: 16px; }
.spot-stage .count { position: absolute; top: 18px; left: 20px; }
.rail { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 10px; scrollbar-width: thin; }
.rail button { flex: none; width: 68px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: .15s; background: var(--silver); }
.rail button img { width: 100%; aspect-ratio: 520/1410; object-fit: cover; object-position: top; }
.rail button.on { border-color: var(--accent); opacity: 1; }
.rail button:hover { opacity: 1; }
.meta-table { width: 100%; border-collapse: collapse; }
.meta-table td { padding: 14px 0; border-top: 1px solid var(--line); }
.meta-table td:last-child { text-align: right; font-weight: 700; }
.pose-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pose-mini figure { margin: 0; }
.pose-mini img { border-radius: 8px; aspect-ratio: 361/238; object-fit: cover; width: 100%; }
.pose-mini figcaption { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 600; }
@media (max-width: 960px) { .spot { grid-template-columns: 1fr; } .spot-stage { min-height: 460px; } .spot-stage img.main { max-height: 420px; } }

/* ── Booth ─────────────────────────────────────────────────────────────────── */
.booth { position: fixed; inset: 0; background: var(--navy); color: #fff; display: grid; grid-template-columns: 1fr auto; overflow: hidden; }
.booth .stagewrap { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.booth .top { position: absolute; z-index: 6; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 16px; pointer-events: none; }
.booth .top > * { pointer-events: auto; }
.booth .stage { position: relative; flex: 1; min-height: 0; overflow: hidden; display: grid; place-items: center; }
.booth .stage canvas.live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.booth .stage.fit canvas.live { object-fit: contain; }
.booth .gridlines { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px) calc(33.33% + .5px), transparent 0, transparent calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px) calc(66.66% + .5px), transparent 0),
  linear-gradient(0deg, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px) calc(33.33% + .5px), transparent 0, transparent calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px) calc(66.66% + .5px), transparent 0); }
.chip-status { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(42, 23, 48, .72); border: 1px solid var(--navy-line); backdrop-filter: blur(10px); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-soft); }
.chip-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 10px var(--aqua); }
.chip-status.warn i { background: var(--sun); box-shadow: 0 0 10px var(--sun); }
.livestrip { position: absolute; z-index: 5; left: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .95); box-shadow: 0 20px 40px -20px #000; }
.livestrip div { width: 64px; aspect-ratio: 4/3; border-radius: 6px; background: var(--mist); overflow: hidden; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.livestrip div.now { outline: 2px solid var(--accent); outline-offset: 1px; }
.livestrip canvas, .livestrip img { width: 100%; height: 100%; object-fit: cover; }
.toolrail { position: absolute; z-index: 5; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.toolrail .circle { position: relative; }
.toolrail .circle b { position: absolute; bottom: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); font: 600 10px var(--mono); display: grid; place-items: center; padding: 0 4px; }
.toolrail .tip { position: absolute; right: 56px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 600 12px var(--sans); background: rgba(42,23,48,.9); padding: 5px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: .15s; }
.toolrail .circle:hover .tip { opacity: 1; }
.posecard { position: absolute; z-index: 5; top: 74px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; padding: 8px 16px 8px 8px; border-radius: 18px; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 20px 40px -20px #000; }
.posecard img { width: 92px; border-radius: 10px; }
.shotbars { position: absolute; z-index: 6; top: 64px; left: 16px; right: 16px; display: flex; gap: 6px; }
.shotbars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.shotbars i.done { background: #fff; }
.shotbars i.now { background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255, 255, 255, .28) 0); }
.countdown { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; pointer-events: none; }
.countdown .ring { width: min(46vh, 300px); aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.countdown svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.countdown .n { font-family: var(--serif); font-size: min(30vh, 200px); line-height: 1; text-shadow: 0 10px 40px rgba(0, 0, 0, .4); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.flash { position: absolute; inset: 0; z-index: 8; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.capbar { position: relative; z-index: 6; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 22px 18px; background: var(--navy); border-top: 1px solid var(--navy-line); gap: 12px; }
.modes { grid-column: 1 / -1; display: flex; justify-content: center; gap: 22px; margin-bottom: 4px; }
.modes button { font: 500 11px var(--mono); letter-spacing: .16em; color: var(--navy-muted); padding: 4px 0; text-transform: uppercase; }
.modes button.on { color: #fff; border-bottom: 2px solid var(--aqua); }
.shutter { width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; transition: transform .15s; }
.shutter span { width: 62px; height: 62px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); transition: .2s; }
.shutter:active { transform: scale(.94); }
.shutter.busy span { width: 28px; height: 28px; border-radius: 8px; background: #fff; }
.capbar .lastshot { width: 50px; height: 50px; border-radius: 12px; overflow: hidden; background: var(--navy-raised); border: 1px solid var(--navy-line); }
.capbar .lastshot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Setup step sheet */
.sheet { width: 440px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--navy-line); transition: margin .35s cubic-bezier(.2, .7, .2, 1); }
.sheet.closed { margin-right: -440px; }
.sheet .bars { display: flex; gap: 5px; padding: 22px 22px 0; }
.sheet .bars i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: .3s; }
.sheet .bars i.on { background: var(--accent); }
.sheet .head { padding: 16px 22px 4px; display: flex; align-items: flex-end; gap: 10px; }
.sheet .head .num { font-family: var(--serif); font-size: 40px; color: var(--accent); line-height: 1; }
.sheet .head h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; margin: 0; flex: 1; }
.sheet .sub { padding: 0 22px 14px; color: var(--ink-soft); font-size: 14px; font-weight: 500; margin: 0; }
.sheet .body { flex: 1; overflow-y: auto; padding: 4px 22px 18px; min-height: 0; }
.sheet .foot { display: flex; gap: 10px; padding: 14px 22px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.sheet .foot .btn.primary { flex: 1; }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.countchip { height: 128px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; transition: .15s; position: relative; overflow: hidden; }
.countchip b { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1; }
.countchip .mini { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 3px; }
.countchip .mini i { width: 26px; height: 16px; border-radius: 3px; background: var(--mist); }
.countchip.on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--glow); }
.countchip.on .mono { color: #fff; }
.countchip.on .mini i { background: rgba(255, 255, 255, .35); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swatch { border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 5px; display: flex; flex-direction: column; gap: 6px; text-align: center; transition: .15s; }
.swatch .pic { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--silver); display: grid; place-items: center; }
.swatch .pic img, .swatch .pic canvas { width: 100%; height: 100%; object-fit: cover; }
.swatch .pic img.fit { object-fit: contain; padding: 10%; }
.swatch span { font-family: var(--serif); font-size: 16px; padding-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swatch:hover { border-color: var(--ink-soft); }
.swatch.on { background: var(--ink); border: 2px solid var(--accent); color: #fff; }
.swatch.on span { font-style: italic; }
.framepick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.framepick button { border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: var(--silver); position: relative; }
.framepick img { width: 100%; aspect-ratio: 520/900; object-fit: cover; object-position: top; }
.framepick span { position: absolute; left: 6px; right: 6px; bottom: 6px; background: rgba(255, 255, 255, .94); border-radius: 8px; font-size: 11px; font-weight: 700; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.framepick button.on { border-color: var(--accent); box-shadow: var(--glow); }
.bgmodes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.bgcats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 10px 0 12px; }
.bggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bggrid button { border-radius: 14px; overflow: hidden; border: 2px solid transparent; position: relative; background: var(--silver); aspect-ratio: 3/4; }
.bggrid button img { width: 100%; height: 100%; object-fit: cover; }
.bggrid button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 6px 5px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(30, 15, 36, .75)); text-align: left; }
.bggrid button.on { border-color: var(--accent); box-shadow: var(--glow); }
.bggrid .upload { display: grid; place-items: center; border: 1.5px dashed var(--line); background: var(--card); color: var(--muted); font-weight: 700; font-size: 12px; }
.angle { margin-top: 16px; padding: 16px; border-radius: 18px; background: var(--silver); display: grid; gap: 12px; }
.slider { display: grid; grid-template-columns: 54px 1fr 40px; align-items: center; gap: 10px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--line); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(42, 20, 48, .3); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; cursor: pointer; }
.empty-note { padding: 18px; border-radius: 16px; background: var(--silver); color: var(--ink-soft); font-size: 13px; }

@media (max-width: 900px) {
  .booth { grid-template-columns: 1fr; }
  .sheet { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; width: auto; max-height: 72%; border-left: 0; border-radius: 28px 28px 0 0; box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .6); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .sheet.closed { margin: 0; transform: translateY(105%); }
  .sheet .head .num, .sheet .head h2 { font-size: 32px; }
  .swatches, .framepick { grid-template-columns: repeat(4, 1fr); }
  .counts { grid-template-columns: repeat(4, 1fr); }
  .countchip { height: 104px; } .countchip b { font-size: 42px; } .countchip .mini { display: none; }
  .livestrip { left: 10px; } .livestrip div { width: 46px; }
  .toolrail { right: 10px; }
  .posecard img { width: 64px; }
}

/* ── Adjust (Full crop) ────────────────────────────────────────────────────── */
.adjust { position: fixed; inset: 0; background: var(--navy); color: #fff; display: flex; flex-direction: column; }
.adjust .bar { display: flex; align-items: center; gap: 12px; padding: 16px var(--gutter); }
.adjust .tabs { display: flex; gap: 8px; justify-content: center; padding: 0 16px 10px; flex-wrap: wrap; }
.adjust .tabs button { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .55; position: relative; }
.adjust .tabs button img { width: 100%; height: 100%; object-fit: cover; }
.adjust .tabs button.on { border-color: var(--aqua); opacity: 1; }
.adjust .tabs button em { position: absolute; left: 3px; top: 2px; font: 600 9px var(--mono); color: #fff; text-shadow: 0 1px 3px #000; font-style: normal; }
.cropstage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 10px 16px; }
.cropbox { position: relative; touch-action: none; cursor: grab; box-shadow: 0 0 0 9999px rgba(30, 15, 36, .55); border: 2px solid #fff; border-radius: 4px; overflow: hidden; background: #000; }
.cropbox canvas { width: 100%; height: 100%; display: block; }
.cropbox .g { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% - .5px) calc(33.33% + .5px), transparent 0, transparent calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% - .5px) calc(66.66% + .5px), transparent 0),
  linear-gradient(0deg, transparent calc(33.33% - .5px), rgba(255,255,255,.55) calc(33.33% - .5px) calc(33.33% + .5px), transparent 0, transparent calc(66.66% - .5px), rgba(255,255,255,.55) calc(66.66% - .5px) calc(66.66% + .5px), transparent 0); }
.ruler { padding: 4px var(--gutter) 6px; max-width: 560px; width: 100%; margin: 0 auto; }
.ruler .ticks { height: 18px; background: repeating-linear-gradient(90deg, var(--navy-line) 0 1px, transparent 1px 10px); margin-bottom: 6px; border-radius: 2px; }
.ruler input[type=range] { background: var(--navy-line); }
.adjust .actions { display: flex; gap: 10px; padding: 12px var(--gutter) 22px; max-width: 700px; width: 100%; margin: 0 auto; }
.adjust .actions .btn.primary { flex: 1; }

/* ── Processing (Darkroom) ─────────────────────────────────────────────────── */
.darkroom { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 40px var(--gutter); background: radial-gradient(circle at 50% 30%, #3a1630 0%, var(--navy) 62%); text-align: center; }
.devring { width: 220px; height: 220px; position: relative; display: grid; place-items: center; }
.devring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.devring b { font-family: var(--mono); font-weight: 500; font-size: 34px; letter-spacing: .04em; }
.developing { display: flex; gap: 12px; }
.developing div { width: 84px; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: #1b0a0d; position: relative; }
.developing canvas { width: 100%; height: 100%; object-fit: cover; filter: sepia(1) saturate(2.2) hue-rotate(-30deg) brightness(.25); transition: filter 1.4s ease; }
.developing div.dev canvas { filter: none; }
.tipcard { max-width: 420px; border: 1px solid var(--navy-line); border-radius: 18px; padding: 16px 18px; background: rgba(42, 23, 48, .6); color: var(--navy-soft); font-size: 14px; text-align: left; }

/* ── Done (Story preview) ──────────────────────────────────────────────────── */
.done { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
.storybox { position: relative; border-radius: 32px; aspect-ratio: 9/14; max-height: 82vh; overflow: hidden; display: grid; place-items: center; transition: background .4s; box-shadow: var(--shadow); width: 100%; }
.storybox .s-top { position: absolute; top: 22px; left: 24px; right: 24px; display: flex; justify-content: space-between; }
.storybox .s-top .mono { color: currentColor; opacity: .7; }
.storybox img.strip { max-height: 64%; max-width: 58%; margin-top: 22%; width: auto; transform: rotate(-2.2deg); box-shadow: 0 34px 60px -24px rgba(30, 15, 36, .6); border-radius: 3px; background: #fff; }
.storybox .s-bot { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; }
.storybox .s-bot .mono { color: currentColor; opacity: .75; }
.storybox .s-head { position: absolute; top: 56px; left: 24px; font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1; }
.backdrops { display: flex; gap: 10px; }
.backdrops button { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); transition: .15s; }
.backdrops button.on { box-shadow: 0 0 0 2px var(--accent); transform: scale(1.08); }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.act { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); text-align: left; font-weight: 700; transition: .15s; }
.act:hover { border-color: var(--ink); }
.act .i { width: 38px; height: 38px; border-radius: 12px; background: var(--silver); display: grid; place-items: center; flex: none; }
.act .i svg { width: 18px; height: 18px; }
.act small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .done { grid-template-columns: 1fr; } .storybox { max-height: 70vh; } }

/* ── Sticker editor (Sticker drawer) ───────────────────────────────────────── */
.editor { position: fixed; inset: 0; background: var(--silver); display: flex; flex-direction: column; }
.editor .bar { display: flex; align-items: center; gap: 12px; padding: 14px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.editor .canvaswrap { flex: 1; min-height: 0; display: grid; place-items: center; padding: 16px; position: relative; }
.editor .art { position: relative; box-shadow: var(--shadow); background: #fff; touch-action: none; user-select: none; }
.editor .art > canvas { display: block; width: 100%; height: 100%; }
.layerbox { position: absolute; border: 1.5px dashed var(--accent); border-radius: 6px; pointer-events: none; }
.layerbox .h { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; pointer-events: auto; cursor: nwse-resize; right: -14px; bottom: -14px; box-shadow: 0 3px 10px rgba(42, 20, 48, .3); }
.layerbox .x { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; border: 3px solid #fff; pointer-events: auto; left: -14px; top: -14px; display: grid; place-items: center; font-size: 12px; line-height: 1; }
.drawer { background: var(--paper); border-top: 1px solid var(--line); border-radius: 26px 26px 0 0; padding: 12px 0 18px; max-height: 42vh; display: flex; flex-direction: column; }
.drawer .grip { width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 10px; }
.drawer .tabs { display: flex; gap: 20px; overflow-x: auto; padding: 0 var(--gutter); scrollbar-width: none; border-bottom: 1px solid var(--line); }
.drawer .tabs button { padding: 8px 0 10px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.drawer .tabs button.on { color: var(--ink); border-color: var(--accent); }
.drawer .grid { overflow-y: auto; padding: 14px var(--gutter) 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.drawer .grid.words { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.drawer .grid button { height: 84px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-size: 40px; transition: .12s; padding: 6px; }
.drawer .grid button:hover { border-color: var(--ink); transform: translateY(-2px); }
.drawer .grid button img { max-height: 100%; max-width: 100%; }
.drawer .grid button canvas { max-width: 100%; max-height: 100%; }
.rail { scroll-behavior: smooth; }
@media (min-width: 900px) {
  .editor { display: grid; grid-template-columns: minmax(0, 1fr) 440px; grid-template-rows: auto minmax(0, 1fr) auto; }
  .editor .bar { grid-column: 1 / -1; }
  .editor .canvaswrap { grid-column: 1; grid-row: 2; }
  .editor .layertools { grid-column: 1; grid-row: 3; }
  .editor .drawer { grid-column: 2; grid-row: 2 / 4; max-height: none; border-radius: 0; border-top: 0; border-left: 1px solid var(--line); padding-top: 18px; }
  .editor .drawer .grip { display: none; }
  .editor .drawer.hidden { display: flex !important; }
}
.layertools { display: flex; gap: 8px; justify-content: center; padding: 12px; background: var(--paper); border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ── Gallery (Contact sheet) ───────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.contact .cell { position: relative; padding: 14px 14px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; background: var(--paper); transition: background .15s; cursor: pointer; text-align: left; }
.contact .cell:hover { background: var(--card); }
.contact .cell .ph { height: 250px; display: grid; place-items: center; background: var(--silver); border-radius: 6px; overflow: hidden; }
.contact .cell .ph img { max-height: 92%; max-width: 92%; box-shadow: 0 14px 30px -16px rgba(42, 20, 48, .6); }
.contact .cell .chk { position: absolute; top: 22px; right: 22px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(42, 20, 48, .3); display: grid; place-items: center; color: #fff; }
.contact .cell.sel .chk { background: var(--accent); }
.contact .cell.sel .ph { outline: 3px solid var(--accent); outline-offset: -3px; }
.selbar { position: fixed; z-index: 55; left: 50%; transform: translateX(-50%); bottom: 96px; display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
@media (min-width: 821px) { .selbar { bottom: 28px; } }
@media (max-width: 600px) { .contact { grid-template-columns: repeat(3, 1fr); } .contact .cell { padding: 8px; } .contact .cell .ph { height: 150px; } .contact .cell .chk { top: 14px; right: 14px; } }
.emptystate { text-align: center; padding: 70px 20px; border: 1px dashed var(--line); border-radius: 28px; display: grid; justify-items: center; gap: 14px; }

/* ── Profile (Year in booth) ───────────────────────────────────────────────── */
.recap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { border-radius: 24px; padding: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; min-height: 160px; gap: 14px; }
.tile b { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: .9; }
.tile.big { grid-column: span 2; background: var(--ink); color: #fff; border-color: var(--ink); }
.tile.big .mono { color: var(--navy-muted); }
.tile.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.tile.accent .mono { color: rgba(255, 255, 255, .75); }
.tile.mint { background: var(--mint); border-color: var(--mint); }
.bars6 { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.bars6 div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars6 i { width: 100%; border-radius: 8px 8px 3px 3px; background: var(--navy-raised); min-height: 4px; }
.bars6 div.cur i { background: var(--aqua); }
.bars6 span { font: 500 10px var(--mono); color: var(--navy-muted); }
.settings { margin-top: 10px; }
.setrow { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.setrow .t { flex: 1; }
.setrow .t b { display: block; font-weight: 700; }
.setrow .t small { color: var(--muted); }
.switch { width: 50px; height: 30px; border-radius: 30px; background: var(--line); position: relative; transition: .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(42, 20, 48, .25); transition: .2s; }
.switch.on { background: var(--accent); }
.switch.on::after { left: 23px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--silver); border: 1px solid var(--line); }
.seg button { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--ink); color: #fff; }
@media (max-width: 900px) { .recap { grid-template-columns: 1fr 1fr; } .tile b { font-size: 50px; } }

/* ── Toast / modal ─────────────────────────────────────────────────────────── */
.toast { position: fixed; z-index: 100; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(30, 15, 36, .55); display: grid; place-items: center; padding: 16px; animation: fade .2s; backdrop-filter: blur(4px); }
.modal .box { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 26px; max-width: 420px; width: 100%; display: grid; gap: 16px; box-shadow: var(--shadow); }
@keyframes fade { from { opacity: 0; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* mobile polish */
.chip-status { white-space: nowrap; }
@media (max-width: 600px) {
  .chip-status { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
  .cover .copy > .spread .mono { display: none; }
  .format-card .bgimg { opacity: .45; padding-right: 0; }
  .format-card > div:last-child { max-width: 100% !important; }
  .cover .stats { gap: 22px; }
}


/* ══ Lavender Haze · Pinterest layer ═══════════════════════════════════════ */
body { background: radial-gradient(900px 520px at 8% -6%, rgba(255, 194, 161, .35), transparent 60%), radial-gradient(1000px 600px at 100% 0%, rgba(142, 91, 214, .18), transparent 60%), var(--paper); background-attachment: fixed; }
body.night { background: var(--navy); }
/* floating pill nav with search */
.topbar { top: 12px; margin: 12px var(--gutter) 0; height: 66px; padding: 0 12px 0 24px; border-radius: 33px; border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .72); box-shadow: 0 16px 40px -22px rgba(42, 20, 48, .45); gap: 18px; }
.topnav { gap: 4px; margin-left: 4px; }
.topnav a { padding: 8px 14px; border-radius: 999px; }
.topnav a.on { background: var(--ink); color: #fff; }
.topnav a.on::after { display: none; }
.topsearch { flex: 1; max-width: 460px; height: 44px; border-radius: 22px; background: var(--silver); display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--muted); }
.topsearch input { flex: 1; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--ink); min-width: 0; }
.topsearch:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--accent); }
.avatar { background: linear-gradient(135deg, var(--accent), var(--peach)); }
.tabbar { border-radius: 33px; }
@media (max-width: 820px) { .topbar { margin: 8px 10px 0; top: 8px; height: 58px; padding: 0 8px 0 18px; } .topsearch { display: none; } }
.homesearch { display: none; height: 48px; border-radius: 24px; background: #fff; border: 1px solid var(--line); align-items: center; gap: 10px; padding: 0 16px; color: var(--muted); margin-bottom: 18px; }
.homesearch input { flex: 1; border: 0; outline: none; background: transparent; font-size: 15px; min-width: 0; color: var(--ink); }
@media (max-width: 820px) { .homesearch { display: flex; } }

/* pins + masonry */
.pins { column-count: 5; column-gap: 16px; }
@media (max-width: 1200px) { .pins { column-count: 4; } }
@media (max-width: 900px) { .pins { column-count: 3; } }
@media (max-width: 600px) { .pins { column-count: 2; column-gap: 12px; } }
.pin { break-inside: avoid; display: block; margin: 0 0 18px; position: relative; text-align: left; width: 100%; cursor: pointer; }
.pin .pm { border-radius: 22px; overflow: hidden; background: var(--mist); position: relative; box-shadow: 0 14px 30px -20px rgba(42, 20, 48, .5); transition: transform .2s ease, box-shadow .2s ease; }
.pin .pm.frame { background: linear-gradient(160deg, #fff, var(--lilac)); padding: 16px 22%; }
.pin .pm img { width: 100%; display: block; }
.pin .pm.frame img { border-radius: 4px; box-shadow: 0 16px 26px -16px rgba(42, 20, 48, .55); }
.pin:hover .pm { transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(42, 20, 48, .6); }
.pin .save { position: absolute; right: 10px; top: 10px; height: 36px; padding: 0 15px; border-radius: 18px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; gap: 6px; opacity: 0; transition: .15s; z-index: 2; box-shadow: 0 8px 18px -8px rgba(142, 91, 214, .8); }
.pin:hover .save, .pin .save.on { opacity: 1; }
.pin .save.on { background: var(--ink); }
@media (hover: none) { .pin .save { opacity: 1; } }
.pin .cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 6px 0; font-weight: 700; font-size: 13.5px; }
.pin .cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin .cap i { font-style: normal; color: var(--muted); letter-spacing: 1px; flex: none; }
.pin .by { padding: 2px 6px 0; font-size: 12px; color: var(--muted); font-weight: 600; }

/* landing · floating collage */
.hz-top { display: flex; align-items: center; gap: 22px; padding: 18px var(--gutter); max-width: 1320px; margin: 0 auto; }
.hz-top .grow { flex: 1; }
.hz-top nav { display: flex; gap: 22px; font-weight: 600; font-size: 14px; color: var(--muted); }
.hz-hero { position: relative; max-width: 1320px; margin: 0 auto; height: 640px; }
.hz-fl { position: absolute; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 44px -24px rgba(42, 20, 48, .55); animation: bob 7s ease-in-out infinite; background: var(--mist); transform: rotate(var(--r, 0deg)); }
.hz-fl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hz-fl.frame { background: linear-gradient(160deg, #fff, var(--lilac)); padding: 12px; }
.hz-fl.frame img { object-fit: contain; }
.hz-fl:nth-child(2n) { animation-delay: -2.5s; animation-duration: 8s; }
.hz-fl:nth-child(3n) { animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--r, 0deg)); } }
.hz-copy { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); width: min(540px, 92vw); text-align: center; display: grid; justify-items: center; gap: 18px; z-index: 3; }
.kick { font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.hz-copy h1 { font-size: clamp(56px, 7vw, 92px); }
.hz-copy .lede { text-align: center; }
.spark { position: absolute; z-index: 4; pointer-events: none; color: var(--accent); }
.spark.p { color: var(--peach); }
.word-st { position: absolute; z-index: 4; font-family: var(--serif); font-style: italic; font-size: 26px; padding: 4px 18px 6px; border-radius: 24px; background: var(--peach); color: var(--ink); border: 2px solid #fff; box-shadow: 0 10px 22px -10px rgba(42, 20, 48, .45); white-space: nowrap; }
.hz-stats { display: flex; gap: 34px; justify-content: center; }
.hz-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; color: var(--ink); }
.hz-stats span { font-size: 12px; font-weight: 700; color: var(--muted); }
.hz-sec { max-width: 1320px; margin: 0 auto; padding: 26px var(--gutter) 10px; }
.hz-sec .section-h { margin-top: 0; }
.hz-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hz-how > div { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.hz-how .n { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent); }
.hz-foot { text-align: center; padding: 50px var(--gutter) 70px; color: var(--muted); font-size: 13px; }
.hz-strip { display: none; gap: 10px; overflow-x: auto; padding: 18px var(--gutter) 4px; scrollbar-width: none; }
.hz-strip img { height: 190px; border-radius: 18px; flex: none; box-shadow: 0 14px 30px -18px rgba(42, 20, 48, .5); }
@media (max-width: 960px) {
  .hz-hero { height: auto; padding: 30px 0 10px; }
  .hz-copy { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; }
  .hz-fl, .hz-hero .spark, .hz-hero .word-st { display: none; }
  .hz-top nav { display: none; }
  .hz-how { grid-template-columns: 1fr 1fr; }
  .hz-strip { display: flex; }
}

/* home + frames + gallery polish */
.format-card { border-radius: 30px; }
.latest, .quick button, .tile, .act, .countchip, .swatch { border-radius: 22px; }
.spot-stage { background: radial-gradient(circle at 50% 35%, #fff, var(--lilac)); border-radius: 30px; }
.contact { display: block; column-count: 5; column-gap: 16px; border: 0; }
@media (max-width: 1200px) { .contact { column-count: 4; } }
@media (max-width: 900px) { .contact { column-count: 3; } }
@media (max-width: 600px) { .contact { column-count: 2; column-gap: 12px; } }
.contact .cell { break-inside: avoid; width: 100%; margin: 0 0 18px; padding: 0; border: 0; background: transparent; }
.contact .cell:hover { background: transparent; }
.contact .cell .ph { height: auto; padding: 18px 20%; border-radius: 22px; background: linear-gradient(160deg, #fff, var(--lilac)); box-shadow: 0 14px 30px -20px rgba(42, 20, 48, .5); }
.contact .cell .ph img { max-height: none; max-width: 100%; width: 100%; border-radius: 3px; }
.contact .cell .chk { top: 12px; right: 12px; }
.contact .cell > .spread, .contact .cell > div:last-child { padding: 0 6px; }
@media (max-width: 600px) { .contact .cell { padding: 0; } .contact .cell .ph { height: auto; padding: 12px 16%; } }
.emptystate { background: rgba(255, 255, 255, .6); }
.tile.big { background: linear-gradient(150deg, var(--ink), #4A2A63); }
.tile.accent { background: linear-gradient(150deg, var(--accent), #B48AE8); }
.format-card .mono { color: rgba(255, 255, 255, .78); }
@media (max-width: 960px) { .hz-top .btn.ghost { display: none; } }


@keyframes aura { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.12); } }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .35; } 50% { transform: scale(1.1) rotate(20deg); opacity: .95; } }
@keyframes sheen { to { transform: translateX(120%); } }

/* ── Landing · arranged collage ───────────────────────────────────────────── */
.hz-pstrip { width: 132px; height: auto; background: #fff; padding: 8px 8px 0; border-radius: 6px; overflow: visible; display: flex; flex-direction: column; gap: 6px; }
.hz-pstrip i { display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; border-radius: 2px; }
.hz-pstrip b { display: block; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); font-size: 17px; padding: 2px 0 7px; }
.word-st.lav { background: var(--lilac); color: var(--accent-deep); }
.hz-copy { top: 70px; }
.hz-band { overflow: hidden; margin: 6px 0 18px; padding: 14px 0; background: linear-gradient(90deg, #8E5BD6, #B07CD8 55%, #F2A98C); transform: rotate(-1.2deg); box-shadow: 0 18px 40px -26px rgba(42, 20, 48, .6); }
.hz-band-in { display: flex; gap: 34px; white-space: nowrap; width: max-content; animation: band 36s linear infinite; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.hz-band-in span { opacity: .95; }
@keyframes band { to { transform: translateX(-50%); } }
@media (max-width: 960px) { .hz-band { margin-top: 18px; } }

/* ── Sticker sheet drawer ─────────────────────────────────────────────────── */
.drawer .grid.kawaii { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); background: #F3E8DC; border-radius: 22px; margin: 12px var(--gutter) 0; padding: 14px; gap: 8px; }
.drawer .grid.kawaii button { height: 100px; background: transparent; border: 0; padding: 2px; }
.drawer .grid.kawaii button:hover { background: rgba(255, 255, 255, .55); transform: translateY(-2px) rotate(-3deg); }
.drawer .grid.kawaii button img { width: 100%; height: 100%; object-fit: contain; }


/* ── Landing · phone fixes ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hz-hero .hz-fl, .hz-hero .hz-pstrip, .hz-hero .spark, .hz-hero .word-st { display: none !important; }
  .hz-hero { height: auto; padding: 24px 0 8px; }
  .hz-copy { position: relative; top: auto; left: auto; transform: none; margin: 0 auto; gap: 16px; }
  .hz-copy h1 { font-size: clamp(48px, 13vw, 72px); }
  .hz-stats { gap: 22px; flex-wrap: wrap; }
  .hz-band { margin: 26px 0 10px; }
  .hz-top { padding: 14px 18px; }
}
@media (max-width: 420px) { .hz-copy .row .btn { padding: 0 18px; height: 50px; } }

/* ── Pure white pages (no tinted page backgrounds) ───────────────────────── */
:root { --paper: #FFFFFF; }
html, body, body.night { background: #FFFFFF; }
.topbar { background: rgba(255, 255, 255, .92); }
.editor, .editor .bar, .drawer, .layertools, .sheet, .sheet .foot { background: #FFFFFF; }
.story .ring > div { border-color: #FFFFFF; }

/* Booth + crop screens on white too */
.booth, .adjust { background: #FFFFFF; color: var(--ink); }
.capbar { background: #FFFFFF; border-top: 1px solid var(--line); }
.modes button { color: var(--muted); }
.modes button.on { color: var(--ink); border-bottom-color: var(--accent); }
.shutter { border-color: var(--accent); }
.capbar .lastshot { background: var(--silver); border-color: var(--line); }
.capbar .btn.ghost.dark, .booth .btn.ghost.dark { color: var(--ink); border-color: var(--line); }
.sheet { border-left-color: var(--line); }
.adjust .bar .serif, .adjust .bar { color: var(--ink); }
.adjust .tabs button.on { border-color: var(--accent); }
.adjust .tabs button em { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.cropbox { box-shadow: 0 24px 60px -24px rgba(42, 20, 48, .45); border-color: var(--accent); }
.ruler .ticks { background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10px); }
.ruler input[type=range] { background: var(--line); }
.adjust.on-dark .mono, .booth .capbar .mono { color: var(--muted); }
.adjust.on-dark .serif em { color: var(--accent); }
.adjust.on-dark .pill { background: #FFFFFF; border-color: var(--line); color: var(--ink); }
.adjust.on-dark .pill.on { background: var(--ink); color: #FFFFFF; }
.adjust .circle.dark { background: #FFFFFF; border-color: var(--line); color: var(--ink); }
.adjust .btn.ghost.dark { color: var(--ink); border-color: var(--line); }
.adjust .btn.ghost.dark:hover { background: var(--silver); }

/* Booth: in-view "getting ready" + toast placement */
.prep { position: absolute; z-index: 9; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: 0 18px 40px -18px rgba(42, 20, 48, .5); }
.prep .spinner { border-color: rgba(142, 91, 214, .25); border-top-color: var(--accent); }
.shutter.waiting span { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.82); opacity: .6; } }
.toast { bottom: auto; top: 92px; transform: translateX(-50%) translateY(-12px); }
.toast.show { transform: translateX(-50%); }
.booth .stage { background: #F4EFFA; }

/* All done: keep the strip inside the story card, caption always visible */
.storybox img.strip { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%) rotate(-2.2deg); height: 62%; max-height: 62%; width: auto; max-width: 64%; margin: 0; object-fit: contain; }
.storybox .s-bot { z-index: 2; }
.welcome .art { background: #FFFFFF; border-right: 1px solid var(--line); }
.welcome .art .stack img { box-shadow: 0 30px 60px -26px rgba(42, 20, 48, .45); }

/* ── Developing · Print slot ──────────────────────────────────────────────── */
.printslot { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #FFFFFF; color: var(--ink); animation: rise .45s cubic-bezier(.2, .7, .2, 1); }
.ps-top { display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); flex: none; }
.ps-top .wordmark { font-size: 26px; }
.ps-wrap { flex: 1; display: grid; grid-template-columns: auto minmax(0, 440px); justify-content: center; align-items: center; gap: clamp(36px, 5vw, 72px); padding: 24px var(--gutter); }
.ps-machine { display: flex; flex-direction: column; align-items: center; width: 360px; }
.ps-printer { position: relative; width: 100%; height: 92px; border-radius: 24px; background: linear-gradient(180deg, #FFFFFF, #F1E9FB); border: 1px solid var(--line);
  box-shadow: 0 22px 40px -26px rgba(42, 20, 48, .45), inset 0 1px 0 #fff; z-index: 2; }
.ps-printer .mono { position: absolute; left: 22px; top: 18px; font-size: 10px; }
.ps-lcd { position: absolute; right: 44px; top: 13px; font: 600 12px var(--mono); letter-spacing: .12em; color: var(--accent-deep); background: var(--silver); border-radius: 7px; padding: 4px 8px; }
.ps-led { position: absolute; right: 20px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: #7BD88F; box-shadow: 0 0 10px #7BD88F; animation: blink 1.1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.ps-slot { position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); width: 252px; height: 10px; border-radius: 6px; background: var(--ink); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5); }
.ps-out { width: 252px; display: flex; justify-content: center; overflow: hidden; margin-top: 0; padding: 0 14px 34px; box-sizing: content-box; z-index: 1; }
.ps-paper { position: relative; width: 196px; background: #fff; padding: 10px 10px 0; border-radius: 0 0 4px 4px; display: flex; flex-direction: column; gap: 8px; transform: translateY(-100%); will-change: transform;
  box-shadow: 0 26px 44px -22px rgba(42, 20, 48, .45), 0 0 0 1px rgba(42, 20, 48, .06); }
.ps-paper.pol { width: 236px; }
.ps-cell { aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; position: relative; background: #EFE6FB; }
.ps-cell canvas { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) brightness(1.3) contrast(.55) blur(2.5px); transition: filter 1.3s ease; }
.ps-cell::before { content: ''; position: absolute; inset: 0; z-index: 1; background: #CDB6F0; mix-blend-mode: multiply; opacity: .55; transition: opacity 1.3s ease; }
.ps-cell.dev::before { opacity: 0; }
.ps-cell.dev canvas { filter: none; }
.ps-cell::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); }
.ps-cell.dev::after { animation: sheen 1.2s ease 1; }
@keyframes sheen { to { transform: translateX(120%); } }
.ps-cap { text-align: center; font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 19px; padding: 2px 0 9px; }
.ps-info { display: grid; gap: 20px; }
.ps-info .serif.lg { margin: 0; font-size: clamp(44px, 5.4vw, 76px); line-height: .95; }
.ps-prog { display: flex; align-items: center; gap: 14px; }
.ps-prog b { font: 600 14px var(--mono); color: var(--accent-deep); min-width: 44px; text-align: right; }
.ps-bar { flex: 1; height: 8px; border-radius: 8px; background: var(--silver); overflow: hidden; }
.ps-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--accent), #E37FB0, var(--peach)); }
.ps-row { display: flex; align-items: center; gap: 14px; }
.ps-dots { display: flex; gap: 6px; }
.ps-dots i { width: 22px; height: 6px; border-radius: 3px; background: var(--silver); transition: background .3s; }
.ps-dots i.ok { background: var(--accent); }
.ps-dots i.now { background: linear-gradient(90deg, var(--accent) 0 50%, var(--silver) 50%); background-size: 200% 100%; animation: feed 1s linear infinite; }
@keyframes feed { from { background-position: 100% 0; } to { background-position: 0 0; } }
.ps-tip { margin: 4px 0 0; padding: 14px 16px; border-radius: 16px; background: #FAF7FD; border: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.ps-tip b { color: var(--accent); }
@media (max-width: 860px) {
  .ps-top { height: 56px; }
  .ps-top .wordmark { font-size: 22px; }
  .ps-wrap { grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 18px; padding: 16px var(--gutter) 22px; }
  .ps-machine { width: 260px; }
  .ps-printer { height: 70px; border-radius: 20px; }
  .ps-printer .mono { left: 16px; top: 14px; font-size: 9px; }
  .ps-lcd { right: 36px; top: 10px; font-size: 11px; }
  .ps-led { right: 16px; top: 15px; }
  .ps-slot { width: 176px; bottom: -4px; height: 8px; }
  .ps-out { width: 176px; margin-top: 0; padding: 0 10px 26px; }
  .ps-paper { width: 128px; padding: 7px 7px 0; gap: 6px; }
  .ps-paper.pol { width: 168px; }
  .ps-cap { font-size: 15px; padding-bottom: 6px; }
  .ps-info { width: 100%; max-width: 420px; gap: 14px; text-align: center; }
  .ps-info .serif.lg { font-size: 40px; }
  .ps-row { justify-content: center; }
  .ps-tip { font-size: 13px; padding: 12px 14px; }
}
@media (max-width: 860px) and (max-height: 700px) { .ps-tip { display: none; } .ps-paper { width: 104px; } }

/* ── Booth curtains (fill the space beside the camera) ────────────────────── */
.curtains { position: absolute; inset: 0; pointer-events: none; display: none; }
.curtains.show { display: block; }
.booth .stage canvas.live { z-index: 1; }
.curtains .drape { position: absolute; top: 0; bottom: 0; width: calc(var(--side) + 24px);
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 32%, rgba(42,20,48,.10)),
    repeating-linear-gradient(90deg, #CDB6F0 0 16px, #B99DE6 16px 27px, #DCCBF5 27px 42px, #BFA4E8 42px 56px); }
.curtains .drape.l { left: 0; clip-path: polygon(0 0, 100% 0, 100% 26%, 58% 56%, 74% 100%, 0 100%); }
.curtains .drape.r { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 26% 100%, 42% 56%, 0 26%); }
.curtains .valance { position: absolute; top: 0; height: 58px; width: var(--side); border-radius: 0 0 28px 28px;
  background: repeating-linear-gradient(90deg, #B18FE2 0 36px, #C3A8EB 36px 72px); box-shadow: 0 14px 22px -14px rgba(42, 20, 48, .45); }
.curtains .valance.l { left: 0; border-bottom-left-radius: 0; }
.curtains .valance.r { right: 0; border-bottom-right-radius: 0; }
.curtains .bulbs { position: absolute; left: 10px; right: 10px; top: 66px; height: 16px;
  background: radial-gradient(circle at 8px 8px, #FFE6C2 0 5px, rgba(255, 214, 160, .55) 6px, transparent 9px) 0 0 / 34px 16px repeat-x; filter: drop-shadow(0 0 6px rgba(255, 205, 150, .9)); }
.curtains .bulbs.b2 { background-position: 17px 0; animation: bulbs 1.4s ease-in-out infinite alternate; }
.curtains .bulbs:not(.b2) { animation: bulbs 1.4s ease-in-out -.7s infinite alternate; }
@keyframes bulbs { from { opacity: 1; } to { opacity: .35; } }
.curtains .tie { position: absolute; top: 54%; width: 62px; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #FFB08A, #FFD6BF, #FFB08A); box-shadow: 0 4px 8px rgba(42, 20, 48, .22); }
.curtains .tie em { position: absolute; left: 22px; top: 10px; width: 16px; height: 40px; border-radius: 4px 4px 9px 9px; background: linear-gradient(#FFC2A1, #F39A74); }
.curtains .tie.l { left: calc(var(--side) * .58 - 31px); transform: rotate(-18deg); }
.curtains .tie.r { right: calc(var(--side) * .58 - 31px); transform: rotate(18deg); }
.curtains .cheese { position: absolute; left: calc(var(--side) * .5 - 70px); bottom: 36px; width: 140px; text-align: center; padding: 8px 0; border-radius: 14px; background: #fff;
  font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--accent); box-shadow: 0 14px 30px -16px rgba(42, 20, 48, .5); transform: rotate(-4deg); }
@media (max-width: 860px) { .curtains { display: none !important; } }

/* ── Landing v2: glow, bento, how-it-works, CTA ───────────────────────────── */
.hz-glow { position: absolute; left: 50%; top: 40px; width: 640px; height: 520px; transform: translateX(-50%); border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(203, 181, 245, .45), rgba(255, 194, 161, .18) 60%, transparent); filter: blur(20px); }
.hz-copy { z-index: 3; }
.hz-bento { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 16px; }
.hz-bento .bt { width: 100%; height: 100%; min-width: 0; position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line); background: #FAF7FD; text-align: left; padding: 24px; color: var(--ink); cursor: pointer; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; justify-content: space-between; }
.hz-bento .bt:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(42, 20, 48, .45); }
.bt-copy h3 { margin: 6px 0 6px; } .bt-copy h3 em { font-style: italic; color: var(--accent); }
.bt-copy p { margin: 0; color: var(--ink-soft); font-size: 14px; max-width: 320px; }
.bt-copy .mono { color: var(--accent); }
.bt.ar { grid-row: span 2; background: linear-gradient(160deg, #F3EAFE 0%, #E9DCFB 55%, #FFE7DA 100%); border: 0; }
.bt.ar .bt-copy h3 { font-size: clamp(34px, 3.2vw, 46px); line-height: 1; }
.bt-props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bt-props span { aspect-ratio: 1; border-radius: 22px; background: rgba(255, 255, 255, .75); display: grid; place-items: center; box-shadow: 0 14px 26px -20px rgba(42, 20, 48, .5);
  animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
.bt-props img { width: 76%; height: 76%; object-fit: contain; }
.bt.rooms { flex-direction: row; gap: 18px; align-items: stretch; padding: 16px; }
.bt-mosaic { flex: none; width: 46%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bt-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.bt.rooms .bt-copy { align-self: flex-end; padding-bottom: 6px; }
.bt.frames { background: #fff; }
.bt-fan { position: relative; height: 118px; }
.bt-fan img { position: absolute; left: 50%; top: -4px; height: 132px; transform: translateX(calc(-50% + var(--x, 0px))) rotate(var(--r)); border-radius: 6px; box-shadow: 0 14px 24px -14px rgba(42, 20, 48, .5); }
.bt.story { grid-column: span 2; flex-direction: row; align-items: center; background: linear-gradient(120deg, #FFF3EC, #FCE9F1 50%, #F1E8FC); border: 0; }
.bt-phone { flex: none; width: 128px; height: 222px; border-radius: 24px; background: var(--accent); padding: 12px; box-shadow: 0 22px 40px -22px rgba(42, 20, 48, .6); transform: rotate(4deg); margin-right: 18px; }
.bt-phone > div { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; }
.bt-phone small { font-family: var(--serif); font-style: italic; font-size: 13px; text-align: center; line-height: 1.1; }
.bt-phone img { height: 150px; transform: rotate(-3deg); border-radius: 3px; }
.hz-how { position: relative; }
.hz-how > div { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; transition: transform .25s, box-shadow .25s; }
.hz-how > div:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(42, 20, 48, .45); }
.how-top { display: flex; align-items: center; justify-content: space-between; }
.how-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--silver); color: var(--accent); }
.hz-how .n { font-size: 40px; color: #D9C8F2; }
.hz-cta { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 30px; border-radius: 34px; padding: 44px 52px; overflow: hidden; margin-top: 10px;
  background: radial-gradient(500px 300px at 90% 10%, rgba(255, 194, 161, .55), transparent 60%), linear-gradient(135deg, #8E5BD6, #A877E0 55%, #C99BE6); color: #fff; box-shadow: 0 40px 70px -40px rgba(80, 40, 120, .7); }
.hz-cta .kick { color: #FFE2D2; }
.hz-cta h2 { color: #fff; margin: 10px 0 12px; } .hz-cta h2 em { color: #FFD4BE; }
.hz-cta p { margin: 0 0 22px; color: rgba(255, 255, 255, .88); max-width: 440px; }
.hz-cta .btn { background: #fff; color: var(--accent-deep); }
.hz-cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hz-cta-art { position: relative; height: 280px; }
.hz-cta-art img { position: absolute; left: 50%; top: 0; height: 290px; transform: translateX(calc(-50% + var(--x, 0px))) rotate(var(--r)); border-radius: 6px; box-shadow: 0 26px 40px -20px rgba(30, 10, 50, .6); }
/* standard footer */
.site-foot { margin-top: 60px; border-top: 1px solid var(--line); background: #FBF9FE; padding: 0 var(--gutter); }
.ft-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 32px; padding: 46px 0 30px; }
.ft-brand p { color: var(--muted); font-size: 14px; max-width: 300px; margin: 10px 0 16px; }
.ft-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ft-col b { font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ft-col a { color: var(--ink-soft); } .ft-col a:hover { color: var(--accent); }
.ft-col span { color: var(--ink-soft); }
.ft-bot { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (max-width: 960px) {
  .hz-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bt.ar { grid-row: auto; grid-column: span 2; gap: 20px; }
  .bt.story { grid-column: span 2; }
  .bt.rooms, .bt.frames { min-height: 230px; }
  .hz-cta { grid-template-columns: 1fr; padding: 32px 26px; }
  .hz-cta-art { height: 220px; } .hz-cta-art img { height: 220px; }
  .ft-in { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: span 2; }
  .site-foot { padding-bottom: 90px; }
  .hz-glow { width: 90vw; }
}
@media (max-width: 600px) {
  .hz-bento { grid-template-columns: 1fr; }
  .bt.ar, .bt.story { grid-column: auto; }
  .bt.rooms { flex-direction: column; } .bt-mosaic { width: 100%; height: 150px; }
  .bt.story { flex-direction: column; align-items: flex-start; gap: 18px; } .bt-phone { align-self: center; }
  .ft-bot { flex-direction: column; }
}
.page + .site-foot { margin-top: 0; }

.haze { overflow-x: clip; }
@media (max-width: 600px) {
  .hz-bento .bt.rooms { height: auto; }
  .bt-mosaic { height: auto; grid-template-rows: 84px 84px; }
  .bt-mosaic img { height: 84px; }
}
.hz-hero .hz-fl, .hz-hero .hz-pstrip { animation: none; }

/* Background step: picture cards for each mode */
.bgcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.bgcard { display: grid; gap: 6px; padding: 5px 5px 8px; border-radius: 16px; border: 2px solid transparent; background: #FAF7FD; text-align: center; font-weight: 700; font-size: 12.5px; color: var(--ink); cursor: pointer; transition: .15s; }
.bgcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 11px; display: block; }
.bgcard:hover { border-color: var(--line); }
.bgcard.on { border-color: var(--accent); background: #fff; box-shadow: 0 10px 22px -14px rgba(142, 91, 214, .8); }
.bgpick-h { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 0 10px; }
.bgpick-h b { font-size: 15px; }

/* ── Logo: stamp monogram + serif wordmark ─────────────────────────────── */
.wordmark { align-items: center; gap: .32em; font-family: 'DM Serif Display', var(--serif); letter-spacing: -.01em; line-height: 1; color: var(--ink); }
.wordmark .stamp { width: 1.5em; height: 1.5em; flex: none; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.wordmark:hover .stamp { transform: rotate(-30deg); }
.wordmark .wm-text { display: inline-flex; align-items: baseline; }
.wordmark i { font-style: italic; color: var(--accent); }
.topbar .wordmark, .hz-top .wordmark { font-size: 27px; }
.site-foot .wordmark { font-size: 30px; }
