/* Foldsie: an editorial fashion page with Pip's warmth. Terracotta, sage and champagne from the app. */
:root {
  --canvas: #F6F2EC;
  --ivory: #FBF7F0;
  --paper: #FFFFFF;
  --ink: #16130F;
  --ink-2: rgba(22, 19, 15, .72);
  --ink-3: rgba(22, 19, 15, .62);
  --hair: rgba(22, 19, 15, .1);
  --clay: #B0532F;
  --clay-bright: #DB7C52;
  --clay-deep: #7E3319;
  --sage: #5B6D45;
  --sage-light: #ADC08F;
  --champagne: #F1DEB6;
  --blush: #ECC5B6;
  --espresso: #15110E;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 44px);
  --section: clamp(88px, 12vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--espresso); }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(44px, 6.6vw, 96px); line-height: .96; letter-spacing: -.035em; }
h2 em, h1 em { font-style: italic; font-weight: 500; }
h1, h2, h3, .kicker, .weather-note, .pip-says p { text-wrap: balance; }
.lede, .tile p, .faq-list p, .privacy-list span { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--clay-bright); outline-offset: 3px; }
[data-tone="dark"] :focus-visible, .footer :focus-visible { outline-color: var(--champagne); }
::selection { background: var(--champagne); color: var(--ink); }

.wrap { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--ivory); text-decoration: none; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.eyebrow { font: 600 12.5px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; }
.num {
  display: inline-grid; place-items: center; height: 24px; padding: 0 9px; margin-right: 12px; border-radius: 999px;
  border: 1px solid currentColor; font-size: 11px; letter-spacing: .1em;
}
.lede { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.fine { font-size: 14px; opacity: .72; margin-top: 16px; }

/* Entrances: only once scripts are on, so nothing stays hidden without them. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .95s var(--ease) both; animation-delay: calc(80ms + var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* Film grain over the coloured sections */
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--spring), box-shadow .3s, background .3s;
}
.btn img { border-radius: 6px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-light { background: var(--ivory); color: var(--ink); box-shadow: 0 16px 34px rgba(60, 20, 6, .28); }
.btn-ghost { color: var(--ivory); border: 1px solid rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .07); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-static { cursor: default; }
.btn-static:hover { transform: none; }

/* Navigation: a glass pill that turns light over light sections */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1140px, 100% - 24px); display: flex; align-items: center; gap: 16px;
  padding: 7px 7px 7px 14px; border-radius: 999px; color: var(--ivory);
  background: rgba(52, 18, 6, .5); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  transition: background .45s, color .45s, border-color .45s, box-shadow .45s;
}
.nav[data-tone="light"] { color: var(--ink); background: rgba(251, 247, 240, .76); border-color: rgba(22, 19, 15, .08); box-shadow: 0 12px 34px rgba(40, 25, 10, .08); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 23px/1 var(--serif); letter-spacing: -.02em; }
.brand img { border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.nav nav { display: flex; gap: 2px; margin-left: auto; }
.nav nav a { padding: 9px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background .2s; }
.nav nav a:hover { background: rgba(255, 255, 255, .14); }
.nav[data-tone="light"] nav a:hover { background: rgba(22, 19, 15, .06); }
.nav-cta { padding: 10px 17px; border-radius: 999px; font-size: 14.5px; font-weight: 600; text-decoration: none; background: var(--ivory); color: var(--ink); transition: background .45s, color .45s; }
.nav[data-tone="light"] .nav-cta { background: var(--ink); color: var(--ivory); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--ivory); min-height: 100vh; min-height: 100svh;
  background: radial-gradient(120% 90% at 74% 30%, #DC8559 0%, #B0532F 38%, #8C3B1D 68%, #58210E 100%);
}
.aurora { position: absolute; inset: -20%; z-index: -1; pointer-events: none; }
.aurora span { position: absolute; width: 58vmax; height: 58vmax; border-radius: 50%; animation: drift 26s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { left: 44%; top: -12%; background: radial-gradient(closest-side, rgba(241, 222, 182, .62), rgba(241, 222, 182, 0)); }
.aurora span:nth-child(2) { left: -12%; top: 34%; background: radial-gradient(closest-side, rgba(236, 197, 182, .5), rgba(236, 197, 182, 0)); animation-duration: 32s; animation-delay: -9s; }
.aurora span:nth-child(3) { left: 48%; top: 48%; background: radial-gradient(closest-side, rgba(173, 192, 143, .42), rgba(173, 192, 143, 0)); animation-duration: 36s; animation-delay: -17s; }
@keyframes drift { from { transform: translate3d(-7%, -5%, 0) scale(1); } to { transform: translate3d(8%, 7%, 0) scale(1.2); } }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(70% 80% at 16% 46%, rgba(72, 22, 6, .34), rgba(72, 22, 6, 0) 72%);
}
.hero-inner {
  position: relative; z-index: 2; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(10px, 3vw, 40px);
  padding-block: 120px 90px;
}
.hero .eyebrow { color: rgba(251, 247, 240, .92); text-shadow: 0 1px 14px rgba(60, 18, 4, .3); }
.hero h1 { font-size: clamp(64px, 10.2vw, 172px); line-height: .84; letter-spacing: -.045em; margin: 20px 0 28px; text-shadow: 0 4px 40px rgba(70, 20, 4, .2); }
.hero h1 em { color: var(--champagne); }
.scribble { position: relative; display: inline-block; }
.scribble svg { position: absolute; left: 2%; bottom: -.07em; width: 96%; height: .17em; overflow: visible; }
.scribble path { fill: none; stroke: var(--champagne); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: scribble .8s 1.05s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes scribble { to { stroke-dashoffset: 0; } }
.hero .lede { color: var(--ivory); text-shadow: 0 1px 18px rgba(60, 18, 4, .25); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14.5px; color: var(--ivory); text-shadow: 0 1px 14px rgba(60, 18, 4, .3); }
.facts li { display: flex; align-items: center; gap: 9px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); box-shadow: 0 0 12px var(--champagne); }
.facts b { color: var(--ivory); }

.stage { position: relative; width: min(640px, 100%); aspect-ratio: 1; justify-self: center; perspective: 1400px; }
.stage-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.spot { position: absolute; left: 50%; top: 50%; width: 92%; height: 92%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 228, 196, .34), rgba(255, 228, 196, 0) 72%); }
.floor { position: absolute; left: 50%; top: 74%; width: 46%; height: 8%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(50, 14, 2, .45), rgba(50, 14, 2, 0)); }
.orbit { position: absolute; inset: 0; }
.orbit-item { position: absolute; left: 50%; top: 50%; height: auto; filter: drop-shadow(0 18px 16px rgba(50, 14, 2, .32)); will-change: transform; transform: translate(-50%, -50%); }
.pip { position: absolute; left: 50%; top: 47%; width: 56%; transform: translate(-50%, -50%); z-index: 20; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pip-video { width: 100%; height: auto; aspect-ratio: 538 / 420; object-fit: contain; filter: drop-shadow(0 26px 24px rgba(50, 14, 2, .36)); transition: transform .5s var(--spring); }
.pip:hover .pip-video { transform: translateY(-6px) rotate(-1.5deg); }
.pip.hop .pip-video { animation: hop .7s var(--spring); }
@keyframes hop { 30% { transform: translateY(-26px) scale(1.04, .97); } 60% { transform: translateY(0) scale(.97, 1.03); } }
.badge { position: absolute; right: 0; top: 2%; width: 27%; z-index: 25; overflow: visible; }
.badge-spin { transform-origin: 100px 100px; animation: spin 28s linear infinite; }
.badge-ring { fill: rgba(251, 247, 240, .9); font: 700 12px var(--sans); }
.badge-core { fill: var(--ivory); }
.badge-word { fill: var(--clay); font: italic 600 30px var(--serif); }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border-radius: 999px; border: 2px solid rgba(251, 247, 240, .6); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ivory); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Marquee */
.marquee { overflow: hidden; background: var(--espresso); color: var(--ivory); padding: 26px 0; }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 40s linear infinite; font: italic 500 clamp(40px, 6vw, 86px)/1.1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.marquee .outline { color: transparent; -webkit-text-stroke: 1.4px rgba(241, 222, 182, .9); font-style: normal; }
.marquee i { color: var(--clay-bright); font-style: normal; font-size: .46em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* The problem: a rail of clothes that swing when you brush through them */
.rail-section { position: relative; overflow: hidden; padding: var(--section) 0 clamp(60px, 8vw, 110px); background: linear-gradient(180deg, #F3ECE2, var(--canvas)); }
.rail-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 20px clamp(30px, 5vw, 80px); align-items: end; }
.rail-head h2 { white-space: nowrap; }
.rail-head h2 em { color: var(--clay); }
.hangers { position: relative; height: 300px; margin-top: clamp(36px, 5vw, 64px); touch-action: pan-y; cursor: grab; }
.rod { position: absolute; left: -2%; right: -2%; top: 10px; height: 9px; border-radius: 9px; background: linear-gradient(180deg, #E8D3A6, #B8955A 55%, #8C6E3E); box-shadow: 0 6px 14px rgba(60, 40, 15, .25); }
.hanger { position: absolute; top: 0; transform-origin: 50% 12px; will-change: transform; }
.hanger .hook { position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 2; overflow: visible; }
.hanger .hook-wire { fill: none; stroke: #8E8579; stroke-width: 3; stroke-linecap: round; }
.hanger .hook-wood { fill: none; stroke: #B98C5A; stroke-width: 7; stroke-linecap: round; }
.hanger .hook-bar { fill: none; stroke: #A47A4B; stroke-width: 3; stroke-linecap: round; }
.hanger .g { position: absolute; left: 0; filter: drop-shadow(0 14px 14px rgba(40, 25, 10, .16)); }
.rail-hint { display: flex; justify-content: center; margin-top: 10px; font: italic 500 20px var(--serif); color: var(--ink-3); }
.rail-hint span::before, .rail-hint span::after { content: "⟵"; margin-right: 10px; font-style: normal; opacity: .55; }
.rail-hint span::after { content: "⟶"; margin: 0 0 0 10px; }

/* 01 Capture: the photo is scrubbed by scrolling */
.magic { position: relative; height: 290vh; background: var(--canvas); }
.magic-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.magic-inner { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.magic h2 { margin: 18px 0 30px; }
.magic h2 em, .bento-title em, .faq h2 em { color: var(--clay); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 30em; }
.steps li { position: relative; padding: 15px 18px 15px 58px; border-radius: 20px; color: var(--ink-3); transition: background .45s, color .45s, box-shadow .45s, transform .45s var(--ease); }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 700 13px var(--sans); background: rgba(22, 19, 15, .07); color: var(--ink-2); transition: background .45s, color .45s;
}
.steps li.on { background: var(--paper); color: var(--ink-2); box-shadow: 0 16px 40px rgba(40, 25, 10, .08); transform: translateX(8px); }
.steps li.on::before { background: var(--clay); color: var(--ivory); }
.steps b { color: var(--ink); }

.magic-stage { position: relative; justify-self: center; width: min(470px, 100%); }
.magic-caption { display: none; margin-top: 18px; text-align: center; font: italic 500 20px/1.3 var(--serif); color: var(--clay); }
.photo { position: relative; aspect-ratio: 4 / 5; border-radius: 34px; overflow: hidden; background: #EFE7DA; box-shadow: 0 50px 90px rgba(40, 25, 10, .2), 0 0 0 1px rgba(22, 19, 15, .05); }
.photo-bg {
  position: absolute; inset: 0; opacity: calc(1 - var(--cut, 0));
  background:
    radial-gradient(70% 55% at 30% 25%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0)),
    radial-gradient(120% 90% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(60, 30, 10, .28)),
    repeating-linear-gradient(90deg, rgba(176, 83, 47, .22) 0 16px, transparent 16px 52px),
    repeating-linear-gradient(0deg, rgba(176, 83, 47, .22) 0 16px, transparent 16px 52px),
    repeating-linear-gradient(90deg, rgba(91, 109, 69, .18) 0 3px, transparent 3px 26px),
    repeating-linear-gradient(0deg, rgba(91, 109, 69, .18) 0 3px, transparent 3px 26px),
    linear-gradient(160deg, #EADCC6, #D6C2A4);
}
.photo-checker { position: absolute; inset: 0; opacity: var(--checker, 0); background: conic-gradient(#E9E4DC 25%, #F8F5F0 0 50%, #E9E4DC 0 75%, #F8F5F0 0) 0 0 / 24px 24px; }
.photo-clean { position: absolute; inset: 0; opacity: var(--clean, 0); background: radial-gradient(110% 80% at 50% 25%, #FFFFFF, #F2ECE3); }
.lift-shadow { position: absolute; left: 50%; top: 84%; width: 58%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 25, 10, .38), rgba(40, 25, 10, 0)); transform: translateX(-50%) scale(calc(.85 + var(--lift, 0) * .3)); opacity: calc(.12 + var(--lift, 0) * .7); }
.magic-shirt {
  position: absolute; left: 50%; top: 50%; width: 68%; aspect-ratio: 200 / 240;
  transform: translate(-50%, -50%) translateY(calc(var(--lift, 0) * -20px)) rotate(calc(-8deg + var(--lift, 0) * 8deg)) scale(calc(1 + var(--lift, 0) * .06));
  filter: drop-shadow(0 6px 6px rgba(40, 25, 10, .18));
}
.scanline { position: absolute; left: -10%; right: -10%; height: 110px; top: calc(var(--scan, 0) * 100% - 55px); opacity: var(--scanO, 0); background: linear-gradient(180deg, rgba(255, 236, 200, 0), rgba(255, 236, 200, .5) 50%, rgba(255, 236, 200, 0)); }
.scanline::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #FFF6E3; box-shadow: 0 0 22px 5px rgba(255, 226, 170, .85); }
.ring { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(176, 83, 47, .55); transform: translate(-50%, -50%) scale(var(--ringS, .6)); opacity: var(--ringO, 0); }
.photo-label { position: absolute; left: 18px; top: 16px; padding: 5px 10px; border-radius: 999px; background: rgba(22, 19, 15, .45); color: #fff; font: 600 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; opacity: calc(1 - var(--cut, 0)); }
.tags { list-style: none; margin: 0; padding: 0; }
.tag {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 14.5px; font-weight: 600; white-space: nowrap;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 34px rgba(40, 25, 10, .16);
  opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 16px)) scale(calc(.88 + var(--o, 0) * .12));
}
.tag:nth-child(1) { left: -9%; top: 11%; background: var(--ink); color: var(--ivory); font: italic 600 18px var(--serif); padding: 11px 18px; }
.tag:nth-child(2) { right: -7%; top: 23%; }
.tag:nth-child(3) { left: -11%; top: 47%; }
.tag:nth-child(4) { right: -9%; top: 55%; }
.tag:nth-child(5) { left: 5%; bottom: 7%; }
.tag:nth-child(6) { right: 3%; bottom: 13%; }
.dot { width: 13px; height: 13px; border-radius: 50%; background: linear-gradient(90deg, var(--c) 50%, #fff 50%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

/* 02 Today */
.today { background: linear-gradient(180deg, var(--canvas), #F0E7DA); padding-block: var(--section); overflow: hidden; }
.today-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(30px, 7vw, 110px); align-items: center; }
.today h2 { margin: 18px 0 26px; }
.today h2 em { color: var(--sage); }
.story { margin: 4px 0 22px; font: 600 clamp(26px, 2.6vw, 34px)/1.25 var(--serif); letter-spacing: -.02em; }
.story p { display: flex; align-items: baseline; gap: 14px; }
.story time { min-width: 3.2em; font: 600 .5em var(--sans); letter-spacing: .12em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.story s { color: var(--ink-3); text-decoration-color: var(--clay); text-decoration-thickness: 2px; }
.story span { color: var(--sage); font-style: italic; }
.weather { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.weather button {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 18px; border: 1px solid var(--hair);
  background: var(--paper); color: var(--ink-2); font-size: 15px; cursor: pointer; transition: transform .35s var(--spring), background .3s, color .3s, box-shadow .3s;
}
.weather button:hover { transform: translateY(-2px); }
.weather svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.weather button[aria-checked="true"] { background: var(--ink); color: var(--ivory); box-shadow: 0 16px 32px rgba(22, 19, 15, .22); transform: translateY(-2px); }
.weather-note { margin-top: 20px; min-height: 1.4em; font: italic 500 23px/1.35 var(--serif); color: var(--clay); }

.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  position: relative; width: 360px; height: 744px; padding: 12px; border-radius: 60px;
  background: linear-gradient(150deg, #34302C, #0D0B0A 60%, #26221F);
  box-shadow: inset 0 0 0 2px #4A453F, inset 0 0 0 6px #121010, 0 60px 110px rgba(40, 25, 10, .3), 0 20px 44px rgba(40, 25, 10, .18);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 4px; background: #2A2623; }
.phone::before { left: -3px; top: 150px; height: 60px; box-shadow: 0 80px 0 #2A2623; }
.phone::after { right: -3px; top: 190px; height: 92px; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 48px; overflow: hidden; background: var(--canvas); display: flex; flex-direction: column; }
.ph-status { position: relative; display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 14px 30px 0 34px; font: 600 15px var(--sans); }
.ph-island { position: absolute; left: 50%; top: 11px; width: 116px; height: 33px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.ph-icons { display: flex; gap: 6px; align-items: center; }
.ph-icons svg { height: 11px; width: auto; fill: currentColor; }
.ph-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 22px 0; }
.ph-eyebrow { font: 700 10.5px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.ph-hello { margin-top: 6px; font: 600 31px/1 var(--serif); letter-spacing: -.02em; }
.ph-pip { width: 56px; height: 56px; margin: -6px -4px 0 0; animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-4px) rotate(2deg); } }
.ph-meta { display: flex; gap: 8px; padding: 12px 22px 0; }
.ph-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--hair); font-size: 12.5px; color: var(--ink-2); }
.ph-chip svg { width: 14px; height: 14px; fill: var(--clay); }
.ph-chip b { color: var(--ink); }
.ph-card { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 14px 14px 0; padding: 14px 14px 12px; border-radius: 30px; background: var(--paper); box-shadow: 0 22px 44px rgba(40, 25, 10, .08); }
.ph-lay { position: relative; flex: 1; min-height: 0; margin: 10px -4px 8px; border-radius: 22px; overflow: hidden; background: radial-gradient(110% 80% at 50% 25%, #FCF9F4, #EFE7DB); }
.lay-item { position: absolute; height: auto; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 9px 8px rgba(40, 25, 10, .17)); transition: transform .75s var(--spring), opacity .5s var(--ease); }
.lay-item.enter { opacity: 0; transform: translateY(26px) scale(.78) rotate(var(--r, 0deg)); }
.lay-item.leave { opacity: 0; transform: translateY(-16px) scale(.86) rotate(var(--r, 0deg)); transition-duration: .35s; }
.ph-pieces { display: flex; gap: 6px; overflow: hidden; padding-bottom: 10px; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.ph-pieces span { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--canvas); color: var(--ink-2); font-size: 11.5px; font-weight: 500; animation: fadein .5s var(--ease) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.ph-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.ph-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--hair); background: var(--canvas); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: transform .25s var(--spring), background .3s, opacity .3s;
}
.ph-btn:active { transform: scale(.95); }
.ph-btn:disabled { opacity: .45; cursor: default; }
.ph-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-btn.spin svg { animation: turn .6s var(--ease); }
@keyframes turn { to { transform: rotate(360deg); } }
.ph-primary { background: var(--ink); color: var(--ivory); border-color: transparent; }
.ph-primary.worn { background: var(--sage); }
.ph-tabbar { display: flex; justify-content: space-around; align-items: center; margin: 12px 14px 14px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: 0 10px 30px rgba(40, 25, 10, .1); font-size: 10px; font-weight: 600; color: var(--ink-3); }
.ph-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ph-tabbar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ph-tabbar .on { color: var(--ink); }
.ph-tabbar .ph-capture { width: 46px; height: 46px; border-radius: 50%; justify-content: center; background: var(--ink); color: var(--ivory); }
.ph-toast {
  position: absolute; left: 14px; right: 14px; top: 56px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px;
  border-radius: 24px; background: rgba(22, 19, 15, .93); color: var(--ivory); font-size: 13.5px; font-weight: 600;
  transform: translateY(-160%); opacity: 0; transition: transform .55s var(--spring), opacity .3s;
}
.ph-toast img { width: 34px; height: 34px; }
.ph-toast.show { transform: none; opacity: 1; }
.phone-hint { font-size: 14.5px; color: var(--ink-3); }

/* 03 Studio photos */
.studio { position: relative; overflow: hidden; color: var(--ivory); padding-block: var(--section); background: radial-gradient(120% 120% at 15% 0%, #2E2620, var(--espresso) 62%); }
.studio-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 96px); align-items: center; }
.studio .eyebrow, .stylist .eyebrow, .pricing .eyebrow, .pip-section .eyebrow { color: rgba(251, 247, 240, .93); }
.studio h2 { margin: 18px 0 26px; }
.studio h2 em, .stylist h2 em, .pricing h2 em, .pip-section h2 em, .cta h2 em { color: var(--champagne); }
.studio .lede, .stylist .lede, .pricing .lede, .pip-section .lede, .cta .lede { color: rgba(251, 247, 240, .94); }
.backdrops { display: flex; gap: 10px; margin-top: 32px; }
.backdrops button { display: flex; align-items: center; gap: 10px; padding: 9px 17px 9px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); color: var(--ivory); font-weight: 600; font-size: 15px; cursor: pointer; transition: background .3s, color .3s; }
.backdrops i { width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.backdrops [data-backdrop="charcoal"] i { background: #3E3C39; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.backdrops button[aria-checked="true"] { background: var(--ivory); color: var(--ink); }
.compare { position: relative; aspect-ratio: 1; border-radius: 38px; overflow: hidden; --x: 50%; box-shadow: 0 50px 100px rgba(0, 0, 0, .5); cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.compare:has(.compare-range:focus-visible) { outline: 3px solid var(--clay-bright); outline-offset: 4px; }
.compare-side { position: absolute; inset: 0; display: grid; place-items: center; }
.compare-before { background: radial-gradient(100% 90% at 70% 20%, #E9DFCF, #CBB99D); }
.compare-before::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(40, 20, 8, .22), rgba(40, 20, 8, 0) 45%, rgba(255, 255, 255, .12)); }
.compare-after { background: radial-gradient(90% 80% at 50% 30%, #FFFFFF, #ECE8E2); clip-path: inset(0 0 0 var(--x)); transition: background .5s; }
.compare[data-bg="charcoal"] .compare-after { background: radial-gradient(90% 80% at 50% 30%, #4B4845, #2A2826); }
.compare-garment { width: 60%; aspect-ratio: 200 / 260; }
.compare-before .compare-garment { transform: rotate(-9deg) translate(-4%, 6%) scale(.94) skewX(-3deg); filter: url(#wrinkle) saturate(.72) brightness(.86) contrast(.92) drop-shadow(5px 4px 2px rgba(30, 15, 5, .38)); }
.compare-before::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(40% 32% at 64% 28%, rgba(255, 250, 235, .55), rgba(255, 250, 235, 0)), radial-gradient(120% 100% at 50% 50%, rgba(0, 0, 0, 0) 52%, rgba(40, 20, 6, .35)); mix-blend-mode: soft-light; }
.compare-after .compare-garment { filter: drop-shadow(0 30px 26px rgba(40, 25, 10, .24)); }
.compare[data-bg="charcoal"] .compare-after .compare-garment { filter: drop-shadow(0 30px 26px rgba(0, 0, 0, .45)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--ivory); box-shadow: 0 0 24px rgba(0, 0, 0, .35); pointer-events: none; }
.compare-handle span { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; border-radius: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; background: var(--ivory); color: var(--ink); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.compare-handle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.compare-range { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.compare-label { position: absolute; top: 20px; z-index: 2; padding: 7px 12px; border-radius: 999px; background: rgba(22, 19, 15, .58); color: var(--ivory); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.compare-label.left { left: 20px; }
.compare-label.right { right: 20px; }

/* 04 Stylist */
.stylist { position: relative; overflow: hidden; color: var(--ivory); padding-block: var(--section); background: radial-gradient(110% 100% at 0% 0%, #63764A, #4E6038 48%, #354229 100%); }
.stylist-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 96px); align-items: center; }
.stylist h2 { margin: 18px 0 26px; }
.occasions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.occasions button { padding: 11px 17px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .34); background: rgba(20, 28, 12, .2); color: var(--ivory); font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .3s var(--spring), background .3s, color .3s; }
.occasions button:hover { transform: translateY(-2px); background: rgba(20, 28, 12, .34); }
.occasions button[aria-pressed="true"] { background: var(--ivory); color: #34412A; }
.chat { display: flex; flex-direction: column; height: 580px; border-radius: 36px; overflow: hidden; background: rgba(251, 247, 240, .97); color: var(--ink); box-shadow: 0 50px 100px rgba(20, 30, 10, .38); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--hair); }
.chat-head img { width: 46px; height: 46px; }
.chat-head b { display: block; font: 600 19px/1.1 var(--serif); }
.chat-head span { font-size: 13px; color: var(--ink-3); }
.chat-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 18px; }
.msg { max-width: 84%; padding: 12px 16px; border-radius: 22px; font-size: 15.5px; line-height: 1.45; animation: pop .5s var(--spring) both; }
.msg-me { align-self: flex-end; background: var(--ink); color: var(--ivory); border-bottom-right-radius: 7px; }
.msg-ai { align-self: flex-start; background: var(--paper); border: 1px solid var(--hair); border-bottom-left-radius: 7px; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.95); } }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 15px 17px; border-radius: 22px; background: var(--paper); border: 1px solid var(--hair); animation: pop .4s var(--spring) both; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.look { align-self: flex-start; width: 88%; padding: 12px; border-radius: 24px; background: var(--paper); border: 1px solid var(--hair); box-shadow: 0 14px 30px rgba(40, 25, 10, .08); animation: pop .55s var(--spring) both; }
.look-title { margin: 2px 6px 10px; font: italic 600 18px var(--serif); }
.look-lay { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.look-lay span { display: grid; place-items: center; aspect-ratio: .82; padding: 7px; border-radius: 14px; background: var(--canvas); animation: pop .5s var(--spring) both; }
.look-lay span:nth-child(2) { animation-delay: .08s; }
.look-lay span:nth-child(3) { animation-delay: .16s; }
.look-lay span:nth-child(4) { animation-delay: .24s; }
.look-lay svg { width: 100%; height: 100%; filter: drop-shadow(0 5px 5px rgba(40, 25, 10, .14)); }
.chat-compose { display: flex; align-items: center; justify-content: space-between; margin: 0 14px 14px; padding: 7px 7px 7px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--hair); color: var(--ink-3); font-size: 15px; }
.chat-compose i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); }
.chat-compose svg { width: 18px; height: 18px; fill: none; stroke: var(--ivory); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 05 Try-on */
.tryon { padding-block: var(--section); background: radial-gradient(90% 70% at 82% 30%, #F7E6C8, #F3EADC 58%, var(--canvas)); overflow: hidden; }
.tryon-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "copy mirror" "pick mirror"; grid-template-rows: auto 1fr; column-gap: clamp(30px, 6vw, 96px); align-items: center; }
.tryon-copy { grid-area: copy; align-self: end; }
.tryon-pick { grid-area: pick; align-self: start; }
.tryon .mirror-wrap { grid-area: mirror; }
.tryon h2 { margin: 18px 0 26px; }
.tryon h2 em { color: var(--clay); }
.rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
.piece {
  position: relative; aspect-ratio: .84; padding: 10px 8px 24px; border-radius: 18px; border: 1.5px solid transparent;
  background: var(--paper); box-shadow: 0 8px 18px rgba(40, 25, 10, .07); cursor: pointer; transition: transform .3s var(--spring), border-color .2s, box-shadow .2s;
}
.piece:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(40, 25, 10, .11); }
.piece svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 4px rgba(40, 25, 10, .12)); }
.piece span { position: absolute; left: 6px; right: 6px; bottom: 7px; overflow: hidden; font-size: 10.5px; font-weight: 600; text-align: center; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-3); }
.piece[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 14px 28px rgba(40, 25, 10, .15); }
.piece[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--ink); color: var(--ivory); font-size: 12px; font-weight: 700; }
.rail-note { margin-top: 16px; min-height: 3em; font-size: 15px; color: var(--ink-3); }
.mirror-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mode { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(22, 19, 15, .07); }
.mode button { padding: 9px 17px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.mode button[aria-checked="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 4px 14px rgba(40, 25, 10, .12); }
.mirror { width: min(400px, 100%); }
.mirror-glass {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 999px 999px 30px 30px;
  background: radial-gradient(100% 70% at 50% 30%, #FFFEFB, #EFE6D9);
  box-shadow: 0 0 0 10px #DDC28C, 0 0 0 12px #B8955A, 0 0 0 13px rgba(0, 0, 0, .1), 0 50px 90px rgba(40, 25, 10, .2);
}
.doll { position: absolute; left: 50%; top: 7%; height: 88%; aspect-ratio: 2 / 5; transform: translateX(-50%); }
.doll-body { position: absolute; inset: 0; width: 100%; height: 100%; }
.wear { position: absolute; animation: dropin .6s var(--spring) both; filter: drop-shadow(0 6px 6px rgba(40, 25, 10, .14)); }
.wear.flip { transform: scaleX(-1); }
.wear.settled { animation: none; }
@keyframes dropin { from { opacity: 0; translate: 0 -16px; } }
.mirror-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 48%, transparent 66%); transform: translateX(-130%); }
.mirror.shine .mirror-shine { animation: shine 1s var(--ease); }
@keyframes shine { to { transform: translateX(130%); } }
.you-badge { position: absolute; left: 50%; top: 9%; z-index: 4; display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: var(--ivory); font-size: 12px; font-weight: 600; white-space: nowrap; transform: translate(-50%, -8px); opacity: 0; transition: opacity .35s, transform .45s var(--spring); }
.you-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mirror[data-mode="you"] .you-badge { opacity: 1; transform: translate(-50%, 0); }
.mirror-caption { margin-top: 18px; text-align: center; font-size: 14.5px; color: var(--ink-3); text-wrap: balance; }
.pip-says { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.pip-says img { width: 64px; height: 64px; flex: none; animation: float 4s ease-in-out infinite; }
.pip-says p { position: relative; padding: 11px 16px; border-radius: 20px 20px 20px 6px; background: var(--paper); box-shadow: 0 12px 28px rgba(40, 25, 10, .1); font: italic 600 17px/1.3 var(--serif); }
.pip-says p.pop { animation: pop .5s var(--spring); }

/* 06 Cost per wear */
.cpw { padding-block: var(--section); background: var(--canvas); }
.cpw-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 6vw, 96px); align-items: center; }
.cpw-figure { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 30px; border-radius: 38px; background: var(--paper); box-shadow: 0 40px 80px rgba(40, 25, 10, .1); }
.cpw-coat { width: 52%; aspect-ratio: 200 / 260; filter: drop-shadow(0 20px 18px rgba(40, 25, 10, .2)); }
.cpw-dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 330px; }
.cpw-dots i { aspect-ratio: 1; border-radius: 50%; background: rgba(22, 19, 15, .08); transition: background .3s, transform .4s var(--spring); }
.cpw-dots i.on { background: var(--sage); transform: scale(1.1); }
.cpw-worn { font-size: 15.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cpw-big { margin: 18px 0 28px; font: 600 clamp(50px, 6.6vw, 104px)/.95 var(--serif); letter-spacing: -.04em; }
.cpw-big span { display: block; }
.cpw-per { color: var(--clay); font-style: italic; font-size: 1.55em; line-height: .95; font-variant-numeric: tabular-nums; }
.kicker { margin-top: 26px; padding-left: 18px; border-left: 3px solid var(--sage); font: italic 600 clamp(20px, 1.9vw, 25px)/1.35 var(--serif); color: var(--sage); max-width: 26em; }

/* Everything else */
.bento-section { padding-block: var(--section); background: linear-gradient(180deg, var(--canvas), #EFE6D8); }
.bento-title { margin-bottom: 44px; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; padding: 20px 22px 24px; border-radius: 32px; background: var(--paper); box-shadow: 0 22px 50px rgba(40, 25, 10, .07); overflow: hidden; }
.tile h3 { margin: 20px 0 8px; font-size: 27px; line-height: 1.05; }
.tile p { color: var(--ink-2); font-size: 15.5px; }
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }
.tile-art { position: relative; display: grid; place-items: center; min-height: 200px; border-radius: 22px; background: var(--canvas); overflow: hidden; }
.tile-tall .tile-art { flex: 1; }

.tile-art.bulk { grid-template-columns: repeat(6, minmax(0, 1fr)); place-items: stretch; align-content: center; gap: 10px; padding: 22px; }
.bulk span { position: relative; aspect-ratio: .82; border-radius: 14px; overflow: hidden; background: conic-gradient(#E7E2DA 25%, #F7F4EF 0 50%, #E7E2DA 0 75%, #F7F4EF 0) 0 0 / 12px 12px; box-shadow: 0 6px 14px rgba(40, 25, 10, .08); }
.bulk span::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, #E4D5BE, #CDB797); animation: cutaway 7s var(--ease) infinite; animation-delay: calc(var(--k, 0) * .45s); }
.bulk svg { position: absolute; inset: 12%; width: 76%; height: 76%; animation: popup 7s var(--spring) infinite; animation-delay: calc(var(--k, 0) * .45s); }
.bulk span:nth-child(2) { --k: 1; } .bulk span:nth-child(3) { --k: 2; } .bulk span:nth-child(4) { --k: 3; } .bulk span:nth-child(5) { --k: 4; } .bulk span:nth-child(6) { --k: 5; }
@keyframes cutaway { 0%, 12% { opacity: 1; } 22%, 86% { opacity: 0; } 100% { opacity: 1; } }
@keyframes popup { 0%, 14% { transform: scale(.92); filter: saturate(.7); } 24% { transform: scale(1.08); filter: none; } 30%, 86% { transform: scale(1); } 100% { transform: scale(.92); } }

.scan { background: linear-gradient(180deg, #F3EDE4, #E9DFD1); }
.mini-doll { position: relative; height: 380px; aspect-ratio: 2 / 5; margin-top: 26px; }
.mini-doll svg { position: absolute; }
.mini-doll .doll-body { inset: 0; width: 100%; height: 100%; }
.md-bottom { left: 0; top: 44.4%; width: 100%; height: 48%; }
.md-top { left: 0; top: 16%; width: 100%; height: 48%; }
.md-shoe { top: 89.6%; width: 29%; height: 5.6%; }
.md-left { left: 19%; transform: scaleX(-1); }
.md-right { left: 52%; }
.box { position: absolute; border: 2px dashed var(--clay); border-radius: 12px; opacity: 0; animation: boxin 6s var(--ease) infinite; }
.box em { position: absolute; left: 50%; bottom: calc(100% + 6px); padding: 4px 9px; border-radius: 999px; background: var(--ink); color: var(--ivory); font-size: 11px; font-style: normal; font-weight: 600; white-space: nowrap; transform: translateX(-50%); }
.b1 { left: 6%; top: 17%; width: 88%; height: 34%; }
.b2 { left: 18%; top: 47%; width: 64%; height: 42%; animation-delay: .7s; }
.b2 em { bottom: auto; top: 40%; }
.b3 { left: 12%; top: 88%; width: 76%; height: 9%; animation-delay: 1.4s; }
.b3 em { bottom: auto; top: calc(100% + 6px); }
@keyframes boxin { 0%, 8% { opacity: 0; transform: scale(1.12); } 16%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }

.devices { display: flex; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(160deg, #EEF1E7, #DFE6D3); }
.dev-phone, .dev-pad { position: relative; border-radius: 16px; background: var(--paper); border: 5px solid var(--ink); box-shadow: 0 16px 30px rgba(40, 50, 20, .18); overflow: hidden; }
.dev-phone { width: 62px; height: 124px; border-radius: 18px; }
.dev-pad { width: 132px; height: 100px; }
.mini { position: absolute; inset: 7px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 4px; }
.dev-pad .mini { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.mini svg { width: 100%; height: 100%; min-height: 0; padding: 2px; border-radius: 5px; background: #F4EFE7; }
.mini .arrives { animation: arrive 4.2s var(--spring) infinite; }
@keyframes arrive { 0%, 30% { opacity: 0; transform: scale(.5); } 45%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.link { display: flex; gap: 6px; }
.link i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: blink 1.4s infinite; }
.link i:nth-child(2) { animation-delay: .2s; }
.link i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1.15); } }

.nudge { place-items: stretch; align-content: center; gap: 10px; padding: 18px; background: linear-gradient(160deg, #F6E9D8, #EBD8C2); }
.notif { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, .86); box-shadow: 0 10px 24px rgba(40, 25, 10, .1); font-size: 12px; animation: slidein 6s var(--ease) infinite; }
.notif img { border-radius: 7px; flex: none; }
.notif div { flex: 1; min-width: 0; }
.notif b { display: block; font-size: 12.5px; }
.notif span { color: var(--ink-3); }
.notif time { align-self: flex-start; color: var(--ink-3); font-size: 11px; }
.notif-2 { animation-delay: .5s; }
@keyframes slidein { 0% { opacity: 0; transform: translateY(-18px) scale(.96); } 10%, 82% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-8px); } }

.kept { background: linear-gradient(160deg, #F3E3DE, #E8D2CA); }
.kept-strip { display: flex; gap: 12px; width: max-content; animation: marquee 18s linear infinite; padding: 0 6px; }
.kept-strip span { display: grid; place-items: center; width: 92px; aspect-ratio: .78; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .85); box-shadow: 0 10px 22px rgba(60, 25, 15, .12); }
.kept-strip svg { width: 100%; height: 100%; }
.kept-strip span:nth-child(odd) { transform: rotate(-3deg); }
.kept-strip span:nth-child(even) { transform: rotate(3deg) translateY(6px); }

.turn { background: linear-gradient(160deg, #F7EEDD, #EDDCC0); }
.turn-card { display: flex; align-items: center; gap: 18px; padding: 16px 22px 16px 16px; border-radius: 24px; background: rgba(255, 255, 255, .92); box-shadow: 0 18px 36px rgba(40, 25, 10, .12); }
.turn-card svg { width: 96px; height: 116px; }
.turn-card div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.turn-card b { font: 600 21px var(--serif); }
.turn-badge { padding: 4px 9px; border-radius: 999px; background: #F4E1D8; color: var(--clay-deep); font-size: 11.5px; font-weight: 700; }
.turn-btn { padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--ivory); font-size: 13px; font-weight: 600; animation: nudge 2.6s var(--ease) infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 78% { transform: translateX(-3px) rotate(-2deg); } 86% { transform: translateX(3px) rotate(2deg); } }

/* Pip */
.pip-section { position: relative; overflow: hidden; color: var(--ivory); padding-block: var(--section); background: radial-gradient(90% 90% at 84% 6%, #D47A51, #A94F2B 50%, #6E2A13); }
.pip-inner { position: relative; z-index: 1; }
.pip-copy { max-width: 660px; }
.pip-section h2 { margin: 18px 0 26px; }
.poses { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.pose { margin: 0; padding: 12px 12px 18px; border-radius: 28px; text-align: center; background: rgba(70, 22, 6, .22); border: 1px solid rgba(255, 255, 255, .14); transition: transform .45s var(--spring), background .3s; }
.pose:hover { transform: translateY(-10px) rotate(-2deg); background: rgba(70, 22, 6, .32); }
.pose:nth-child(even):hover { transform: translateY(-10px) rotate(2deg); }
.pose img { width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 16px 14px rgba(60, 18, 4, .32)); }
.pose figcaption { margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--ivory); }

/* Privacy */
.privacy { padding-block: var(--section); background: var(--canvas); }
.privacy-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 96px); align-items: center; }
.privacy-pip { width: 210px; margin: 0 0 -8px -14px; }
.privacy h2 em { color: var(--sage); }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.privacy-list li { display: flex; gap: 14px; padding: 22px; border-radius: 26px; background: var(--paper); box-shadow: 0 18px 40px rgba(40, 25, 10, .06); }
.privacy-list svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--clay); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.privacy-list b { display: block; margin-bottom: 4px; font: 600 19.5px/1.2 var(--serif); }
.privacy-list span { font-size: 15px; color: var(--ink-2); }

/* Pricing */
.pricing { position: relative; overflow: hidden; color: var(--ivory); padding-block: var(--section); background: radial-gradient(90% 90% at 85% 10%, #2D251F, var(--espresso) 60%); }
.pricing-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px clamp(30px, 6vw, 96px); align-items: start; }
.pricing-head { grid-row: span 3; }
.pricing h2 { margin: 18px 0 26px; }
.free-three { display: flex; gap: 14px; margin-top: 40px; }
.free-three span { position: relative; display: grid; place-items: center; width: 108px; height: 128px; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.free-three span:nth-child(1) { transform: rotate(-5deg); }
.free-three span:nth-child(2) { transform: translateY(-8px); }
.free-three span:nth-child(3) { transform: rotate(5deg); }
.free-three svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .35)); }
.free-three i { position: absolute; top: -10px; right: -8px; padding: 4px 9px; border-radius: 999px; background: var(--champagne); color: var(--ink); font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.beta-note { margin-top: 30px; max-width: 30em; font-size: 16.5px; color: rgba(251, 247, 240, .86); }
.beta-note a { color: var(--champagne); font-weight: 700; text-underline-offset: 3px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 12px; }
.plan { position: relative; padding: 28px 24px 24px; border-radius: 30px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .13); }
.plan-best { color: var(--ink); background: linear-gradient(155deg, #F7E7C4, #E2C287); border: 0; box-shadow: 0 34px 70px rgba(0, 0, 0, .4); }
.plan-flag { position: absolute; top: -13px; left: 22px; padding: 6px 12px; border-radius: 999px; background: var(--clay); color: var(--ivory); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.plan h3 { font-size: 23px; }
.plan-price { margin-top: 16px; font-size: 16px; }
.plan-price b { margin-right: 4px; font: 600 48px/1 var(--serif); letter-spacing: -.03em; }
.plan-sub { margin-top: 4px; font-size: 14.5px; opacity: .74; }
.plan-trial { display: inline-block; margin-top: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 600; }
.plan-best .plan-trial { background: var(--ink); color: var(--champagne); }
.plan-best .plan-trial::before { content: "✦"; margin-right: 7px; }
.plan-save {
  position: absolute; top: -20px; right: -8px; display: grid; place-content: center; width: 80px; height: 80px; border-radius: 50%;
  background: var(--clay); color: var(--ivory); text-align: center; font: 700 10.5px/1.15 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(12deg); box-shadow: 0 14px 28px rgba(0, 0, 0, .35), inset 0 0 0 3px rgba(251, 247, 240, .22);
}
.plan-save b { display: block; font: italic 600 27px/1 var(--serif); letter-spacing: -.02em; text-transform: none; }
.included { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.included li { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .17); font-size: 14px; }
.included li::before { content: "✓"; margin-right: 7px; color: var(--sage-light); font-weight: 700; }
.pricing .fine { margin-top: 0; }

/* Questions */
.faq { padding-block: var(--section); background: var(--canvas); }
.faq-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px clamp(30px, 6vw, 96px); }
.faq-list details { padding: 20px 0; border-bottom: 1px solid var(--hair); }
.faq-list details:first-child { border-top: 1px solid var(--hair); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; list-style: none; cursor: pointer; font: 600 22px/1.3 var(--serif); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; color: var(--clay); font: 400 30px/1 var(--sans); transition: transform .35s var(--spring); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { max-width: 58ch; margin-top: 10px; color: var(--ink-2); }

/* Last word */
.cta { position: relative; isolation: isolate; overflow: hidden; color: var(--ivory); text-align: center; padding-block: clamp(80px, 10vw, 130px); background: radial-gradient(120% 100% at 50% 0%, #D67E55, #A64C2A 42%, #622310); }
.cta .aurora { opacity: .55; }
.cta .lede { color: var(--ivory); text-shadow: 0 1px 18px rgba(60, 18, 4, .3); }
.cta-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.pip-small { position: relative; left: auto; top: auto; width: min(320px, 72vw); transform: none; }
.cta h2 { margin-top: 8px; font-size: clamp(42px, 6.4vw, 96px); }
.cta .lede { margin: 20px auto 32px; }
.cta-note { margin-top: 16px; font-size: 14.5px; color: rgba(251, 247, 240, .92); }
.qr { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 641px) {
  .qr { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 10px 22px 10px 10px; border-radius: 24px; background: rgba(60, 18, 4, .3); border: 1px solid rgba(255, 255, 255, .16); text-align: left; }
  .qr img { width: 96px; height: 96px; padding: 7px; border-radius: 14px; background: var(--ivory); }
  .qr p { max-width: 14em; font-size: 15px; line-height: 1.4; }
}

.footer { background: var(--espresso); color: rgba(251, 247, 240, .7); padding: 38px 0 calc(38px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer .brand { color: var(--ivory); }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer nav a:hover { color: var(--ivory); }
.sign { display: flex; justify-content: center; overflow: hidden; margin-top: clamp(30px, 5vw, 60px); margin-bottom: calc(-38px - env(safe-area-inset-bottom)); }
.sign-word {
  padding-top: .5em; font: 600 clamp(96px, 27vw, 380px)/.8 var(--serif); letter-spacing: -.05em; white-space: nowrap;
  background: linear-gradient(180deg, rgba(241, 222, 182, .3), rgba(241, 222, 182, .04) 88%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Pip hangs from a zero-width perch just before the l, so the l stays part of the word's own text (Safari leaves
   positioned children out of background-clip: text). */
.sign-perch { position: relative; display: inline-block; width: 0; height: 0; }
.sign-perch img { position: absolute; left: .13em; bottom: .62em; width: .5em; height: auto; max-width: none; transform: translateX(-50%) rotate(-4deg); filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .4)); }

.confetti { position: fixed; inset: 0; z-index: 70; width: 100%; height: 100%; pointer-events: none; }

/* Smaller screens */
@media (max-width: 1080px) {
  .poses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav nav a { padding: 9px 10px; }
}
@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 76px 70px; text-align: left; gap: 0; }
  .stage { order: -1; width: min(380px, 84vw); margin: 0 auto -6px; }
  .hero h1 { margin-top: 12px; }
  .hero { background: radial-gradient(130% 70% at 62% 14%, #DC8559 0%, #B0532F 44%, #8C3B1D 72%, #58210E 100%); }
  .hero::before { background: linear-gradient(180deg, rgba(72, 22, 6, 0) 20%, rgba(72, 22, 6, .34) 40%, rgba(72, 22, 6, .38) 100%); }
  .rail-head { grid-template-columns: 1fr; }
  .rail-head h2 { white-space: normal; }
  .magic { height: 260vh; }
  .magic-inner { grid-template-columns: 1fr; gap: 18px; align-content: center; }
  .magic h2 { margin: 10px 0 14px; font-size: clamp(38px, 8vw, 64px); }
  .steps { display: none; }
  .magic-caption { display: block; }
  .tryon-inner { grid-template-areas: "copy" "mirror" "pick"; row-gap: 26px; }
  .mirror { width: min(320px, 84vw); }
  .magic-stage { width: min(360px, 74vw); }
  .today-inner, .studio-inner, .stylist-inner, .tryon-inner, .cpw-inner, .privacy-inner, .pricing-inner, .faq-inner { grid-template-columns: minmax(0, 1fr); }
  .pricing-head { grid-row: auto; }
  .today-inner { row-gap: 0; }
  .today-copy { display: contents; }
  .phone-wrap { order: 1; margin-top: 34px; }
  .today .weather { order: 2; justify-content: center; margin-top: 26px; }
  .today .weather-note { order: 3; text-align: center; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-tall { grid-row: span 1; }
  .tile-scan { grid-column: span 2; }
  .bento .tile-turn { grid-column: auto; }
  .turn-card { padding: 12px 16px 12px 12px; }
  .turn-card svg { width: 72px; height: 88px; }
  .compare { width: min(100%, 600px); justify-self: center; }
  .cpw-figure { order: 2; }
  .pip-section { background: radial-gradient(130% 50% at 80% 72%, #CC7249, #A94F2B 55%, #742D15); }
}
@media (min-width: 641px) and (max-width: 960px) {
  .stage { width: min(540px, 70vw); }
  .hero h1 { font-size: clamp(84px, 12.6vw, 116px); }
  .tryon-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); grid-template-areas: "copy mirror" "pick mirror"; row-gap: 0; }
  .tryon h2 { font-size: clamp(44px, 6.6vw, 60px); }
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mirror { width: min(300px, 100%); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .btn { padding: 14px 18px; font-size: 15px; }
  .hero h1 { font-size: clamp(58px, 17vw, 96px); }
  .facts { gap: 8px 16px; font-size: 13.5px; }
  .badge { width: 30%; }
  .tag { font-size: 12.5px; padding: 8px 12px; }
  .tag:nth-child(1) { font-size: 15px; left: -4%; }
  .tag:nth-child(3) { left: -5%; }
  .tag:nth-child(2), .tag:nth-child(4) { right: -4%; }
  .phone { zoom: .86; }
  .chat { height: 540px; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide, .tile-scan { grid-column: auto; }
  .tile-art.bulk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tryon-inner { row-gap: 18px; }
  .mirror { width: min(280px, 72vw); }
  .rail {
    display: flex; gap: 10px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent);
  }
  .rail::-webkit-scrollbar { display: none; }
  .piece { flex: 0 0 84px; scroll-snap-align: start; }
  .rail-note { margin-top: 6px; }
  .free-three span { width: 92px; height: 110px; }
  .privacy-list, .plans { grid-template-columns: 1fr; }
  .poses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .phone { zoom: .78; }
}

/* Calm motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .bulk span::before { opacity: 0; }
  .box, .notif { opacity: 1; }
  .scribble path { stroke-dashoffset: 0; }
}

/* Not found */
.lost { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.lost .cta-inner { gap: 6px; }
.lost-pip { width: min(240px, 60vw); height: auto; filter: drop-shadow(0 24px 22px rgba(50, 14, 2, .35)); }
.lost h1 { font-size: clamp(40px, 6vw, 84px); line-height: .98; letter-spacing: -.035em; margin-top: 8px; }
.lost h1 em { color: var(--champagne); }
.lost .lede { margin: 18px auto 28px; }
