/* HaneiRoom landing page: the hero and Hanei's steps, HaneiRoom, then HaneiAI, drawn in cut paper.
   Builds on design-system/tokens.css. Every "before" state lives under
   .motion, so without JavaScript or with reduced motion each scene shows
   finished. Under motion the gallery is a sticky scene; .pin (large screens)
   gives it its side-by-side layout. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.motion { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream-50);
  color: var(--text-primary);
  font: 400 16px/24px var(--font-body);
}
/* Clip sideways overflow here, not on body: body's overflow would pass to the viewport. */
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--navy-700); color: var(--white); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
.anchor-top { position: absolute; top: 0; }

/* ------------------------------------------------------------ cut-paper art
   Shapes ("s") are paint; lines ("l") are pencil. Both use pathLength=1. */
.art { display: block; width: 100%; height: auto; overflow: visible; }
.art .s { stroke: var(--doodle-ink); stroke-width: 0; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.art .l { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.art .t { font-family: var(--font-hand); font-weight: 700; }

@keyframes rise { from { opacity: 0; translate: 0 24px; } }

/* ------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: var(--space-8);
  height: 72px; padding: 0 var(--space-6);
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(250, 244, 234, .82); box-shadow: 0 1px 0 rgba(37, 58, 130, .08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav__logo img { width: auto; height: 50px; }
.nav__links { display: flex; gap: var(--space-6); margin-left: auto; padding: 8px 24px; border-radius: var(--radius-pill); }
.nav__links a { font: 600 15px/20px var(--font-body); color: var(--navy-700); text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav__links a:hover { border-color: var(--orange-500); }
.nav__cta { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ------------------------------------------------------------ swoosh word */
.swoosh { position: relative; display: inline-block; z-index: 0; }
.swoosh img { position: absolute; left: -6%; bottom: .02em; width: 112%; height: .34em; z-index: -1; }

/* ============================================================ 01 HERO
   The title on a linen band, furniture stuck round it as die-cut stickers,
   a yellow measuring tape swooping over the band's edge (it unrolls on load), a
   stamp where it crosses, then Hanei's three steps with the flower doing each one. */
:root { --tape: #ffd447; --tape-edge: #e0ac17; }
.hero { position: relative; overflow: clip; background: var(--cream-50); padding-bottom: var(--space-16); }
/* linen: a seamless tile of the cloth's weave, its big folds flattened out */
.hero__band { position: relative; padding: 150px var(--space-6) 210px; background: var(--cream-50); text-align: center; }
.hero__band::before { content: ""; position: absolute; inset: 0; background: url("../img/linen.webp") 0 0 / 520px; opacity: .5; pointer-events: none; }
.hero__copy { position: relative; z-index: 5; }
.hero__t { max-width: 11.5em; margin: 0 auto; font: 400 clamp(46px, 6.6vw, 104px)/.98 var(--font-heading); color: var(--navy-700); text-shadow: 3px 3px 0 #fffdf8; text-wrap: balance; }
.hero__lede { max-width: 520px; margin: var(--space-6) auto 0; font: 500 18px/27px var(--font-body); color: var(--ink-900); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-8); }
.btn.btn--line { background: rgba(255, 255, 255, .6); border: 1.5px solid var(--white); color: var(--navy-700); box-shadow: none; }
.btn.btn--line:hover { background: rgba(255, 255, 255, .85); }
.motion .hero__copy { animation: rise .7s ease both .1s; }

/* the stickers run off the band's edges, like the reference's food photos */
.hs { position: absolute; z-index: 4; width: var(--w); rotate: var(--r); filter: drop-shadow(0 10px 14px rgba(30, 30, 60, .18)); pointer-events: none; }
/* every sticker stays clear of the title, the line under it and the buttons; the plant
   hangs over the band's edge, above the tape but under the step cards */
/* big and running off the edges, like the reference's food photos */
.hs--sofa { --w: clamp(240px, 29vw, 470px); --r: -7deg; left: -8%; top: 92px; }
.hs--lamp { --w: clamp(84px, 9.4vw, 150px); --r: 6deg; right: 7%; top: 70px; }
.hs--table { --w: clamp(140px, 14.5vw, 230px); --r: -5deg; left: -2%; bottom: 40px; }
.hs--plant { --w: clamp(190px, 21vw, 340px); --r: 4deg; right: -1.5%; bottom: -130px; z-index: 3; }
@keyframes stick { from { opacity: 0; scale: .6; } 70% { scale: 1.06; } }
.motion .hs { animation: stick .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.motion .hs--lamp { animation-delay: .12s; }
.motion .hs--table { animation-delay: .24s; }
.motion .hs--plant { animation-delay: .36s; }

/* the tape: the wide one is drawn at 1440 wide and its top sits 300 units above the
   band's edge; the narrow one, for phones, is 390 wide with the edge 220 units down.
   Both scale with the page. */
.ruler { position: absolute; z-index: 2; left: 0; top: calc(100% - 20.833vw); width: 100%; height: auto; overflow: visible; pointer-events: none; }
.ruler--narrow { display: none; top: calc(100% - 56.41vw); }
.ruler__edge, .ruler__tape { fill: none; stroke-linecap: butt; }
.ruler__edge { stroke: var(--tape-edge); stroke-width: 50; }
.ruler__tape { stroke: var(--tape); stroke-width: 44; }
.ruler__unroll { fill: none; stroke: #fff; stroke-width: 70; stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion .ruler__unroll { animation: unroll 1.8s cubic-bezier(.5, 0, .2, 1) .25s both; }
@keyframes unroll { from { stroke-dashoffset: 1; } }
.ruler__ticks path { stroke: var(--brown-900); stroke-width: 2; stroke-linecap: round; }
.ruler__ticks text { font: 700 13px/1 var(--font-body); fill: var(--brown-900); }
.ruler--narrow .ruler__edge { stroke-width: 34; }
.ruler--narrow .ruler__tape { stroke-width: 30; }
.ruler--narrow .ruler__unroll { stroke-width: 50; }
.ruler--narrow .ruler__ticks path { stroke-width: 1.4; }
.ruler--narrow .ruler__ticks text { font-size: 9px; }

.stamp { position: absolute; z-index: 5; left: 50%; top: calc(100% + 1.7vw); width: clamp(86px, 9vw, 124px); translate: -50% -50%; filter: drop-shadow(0 8px 12px rgba(30, 30, 60, .18)); }
.stamp svg { display: block; width: 100%; }
.stamp__ring { font: 800 10.4px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; fill: var(--navy-700); }
.motion .stamp__ring { animation: spin 18s linear infinite; transform-origin: 60px 60px; }
@keyframes spin { to { rotate: 360deg; } }

/* three steps */
.steps { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); max-width: 1220px; margin: 104px auto 0; padding: 0 var(--space-6); list-style: none; }
.step { display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: center; gap: var(--space-4); padding: 12px 18px 12px 12px; border-radius: 22px; background: #fff7ee; box-shadow: var(--shadow-sm); }
.step__art { display: block; aspect-ratio: 1; border-radius: 16px; background: var(--lavender-100); }
.step__art--place { background: var(--peach-100); }
.step__art--choose { background: #e3efe0; }
.step__art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.step__t { display: flex; align-items: baseline; gap: 8px; font: 800 15px/1.2 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--navy-700); }
.step__t i { font-style: normal; font-size: 12px; color: var(--rust-600); }
.step__p { margin-top: 6px; font: 400 14px/20px var(--font-body); color: var(--grey-600); }
/* the flowers keep sketching: a wobbling line, a bob, their props busy */
.step .bub__body, .step .bub__device, .step__chair, .step__bag { transform-box: fill-box; }
.motion .step .bub__body, .motion .step .bub__device { filter: url(#hc-boil); }
.motion .step .bub__body { animation: hc-bob 1.8s ease-in-out infinite; transform-origin: 50% 90%; }
.motion .step:nth-child(2) .bub__body { animation-delay: -.6s; }
.motion .step:nth-child(3) .bub__body { animation-delay: -1.2s; }
.motion .step .bub__device { animation: hc-swing 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.motion .step__chair { animation: drop-in 2.4s cubic-bezier(.5, 0, .3, 1) infinite; }
.motion .step__drop { animation: drop-in 2.4s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes drop-in { 0% { translate: 0 -10px; opacity: .3; } 45%, 100% { translate: 0 0; opacity: 1; } }
.motion .step__bag { animation: hc-hop 1.6s ease-in-out infinite; transform-origin: 50% 100%; }

/* ------------------------------------------------------------ the demo's opening line */
.intro { position: relative; max-width: 1180px; margin: 0 auto; padding: var(--space-24) var(--space-6) var(--space-16); text-align: center; }
.intro__burst { position: absolute; left: calc(50% - 230px); top: 60px; width: 54px; rotate: -20deg; }
.intro__pill { display: inline-block; padding: 6px 16px; border-radius: var(--radius-pill); background: var(--lavender-200); font: 700 12px/16px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--navy-700); }
.intro__t { max-width: 10em; margin: var(--space-4) auto 0; font: 400 clamp(44px, 6vw, 92px)/1 var(--font-heading); color: var(--text-heading); text-wrap: balance; }
.intro__s { margin-top: var(--space-4); font: 500 18px/26px var(--font-body); color: var(--ink-900); }
.badge {
  position: absolute; display: grid; place-content: center; width: clamp(84px, 9vw, 122px); aspect-ratio: 1; border-radius: 50%;
  background: var(--bg); color: var(--fg); box-shadow: 0 0 0 5px #fffdf8, var(--shadow-md); rotate: var(--r);
  font: 700 12px/1.1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; text-align: center;
}
.badge b { display: block; font: 400 clamp(20px, 2.2vw, 28px)/1 var(--font-heading); letter-spacing: 0; text-transform: none; }
.badge--size { --bg: var(--tape); --fg: var(--brown-900); --r: -10deg; left: 4%; top: 46%; }
.badge--poster { --bg: var(--orange-500); --fg: var(--brown-900); --r: 9deg; right: 6%; top: 18%; }
.badge--swap { --bg: var(--palm-300); --fg: #173a22; --r: -6deg; right: 12%; bottom: 10%; }

/* ============================================================ 02 HANEIROOM, THEN HANEIAI */
.show { z-index: 2;
  --grid: rgba(147, 164, 222, .26);
  position: relative;
  background-color: var(--cream-50);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

.gallery { position: relative; }
.gallery__stage { position: relative; }
/* the HaneiAI link lands here; landing.js moves it to where the three screens sit */
.gallery__mark { position: absolute; left: 0; top: 0; }

/* the hand-off ("Love what you see?") and HaneiAI's title over its screens */
.bridge, .ai-head { position: relative; z-index: 6; text-align: center; pointer-events: none; }
.bridge__t { font: 400 clamp(40px, 4.6vw, 68px)/1 var(--font-heading); color: var(--text-heading); }
.bridge__s { margin-top: 12px; font: 700 18px/26px var(--font-body); color: var(--rust-600); }
.ai-head__k { font: 700 12px/16px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--rust-600); }
.ai-head__t { margin-top: 6px; font: 400 clamp(30px, 3vw, 44px)/1.05 var(--font-heading); color: var(--text-heading); }
.ai-head__s { margin-top: 6px; font: 400 17px/24px var(--font-body); color: var(--ink-900); }

/* HaneiAI's desktop window: grows out of the phone, then holds the three screens */
.deskwin { display: none; }
.pin .deskwin, .motion:not(.pin) .deskwin {
  display: block; position: absolute; z-index: 4; left: 0; top: 0; overflow: hidden;
  width: calc(var(--w, 0) * 1px); height: calc(var(--h, 0) * 1px); translate: calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px);
  border-radius: calc(var(--rad, 22) * 1px); opacity: var(--o, 0);
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .6));
  border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow), var(--shadow-lg);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
}
.deskwin__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid rgba(147, 164, 222, .3); opacity: var(--bo, 1); }
.deskwin__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159; }
.deskwin__bar i:nth-child(2) { background: #ffbd2e; }
.deskwin__bar i:nth-child(3) { background: #28c941; }
.deskwin__bar span { margin: 0 auto; padding: 3px 16px; border-radius: var(--radius-pill); background: var(--lavender-100); font: 600 12px/16px var(--font-body); color: var(--navy-700); }

/* the phone: a bezel ring drawn over the camera view, which is clipped to its screen */
.frame { --b: 7px; position: relative; z-index: 5; border: var(--b) solid #16171d; border-radius: 47px; box-shadow: 0 0 0 1.5px #3b3d47, 0 30px 60px rgba(30, 30, 60, .3); pointer-events: none; }
.frame::before { content: ""; position: absolute; left: calc(var(--b) * -1 - 4px); top: 22%; width: 3px; height: 12%; border-radius: 2px; background: #2b2d36; }
.frame__island { position: absolute; left: 50%; top: 9px; width: 30%; max-width: 110px; height: 26px; translate: -50% 0; border-radius: 20px; background: #000; }

/* HaneiAI: the phone breaks into three screens, one per feature (Idea Input,
   Idea Brief, Product sort out). Each is a small HaneiAI window whose UI is drawn
   on a fixed 440 × 400 stage; reels.js scales it with --s and loops a cursor demo
   while the screen is live. Without motion they sit in a row, finished. */
.reels { order: 4; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; width: min(1320px, 100%); margin-top: var(--space-8); }
.reel { margin: 0; }
.reel__win { overflow: hidden; border-radius: 22px; padding: 0 10px 10px; background: linear-gradient(150deg, #5b6fb6 0%, #93a4de 50%, #d9d6e6 100%); box-shadow: var(--shadow-lg); }
.reel__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 6px; }
.reel__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.reel__bar span { margin-left: auto; padding: 2px 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .25); font: 600 12px/18px var(--font-body); color: var(--white); }
.reel__view { position: relative; aspect-ratio: 440 / 400; overflow: hidden; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(236, 238, 250, .92)); }
.reel__cap { display: grid; gap: 4px; padding: 18px 6px 0; font: 400 15px/22px var(--font-body); color: var(--grey-600); }
.reel__cap b { display: flex; align-items: center; gap: 10px; font: 400 28px/1.1 var(--font-heading); color: var(--navy-700); }
.reel__cap i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange-500); font: 700 12px/1 var(--font-body); font-style: normal; color: var(--brown-900); }

.reel__cursor { position: absolute; z-index: 9; left: 0; top: 0; width: 26px; opacity: 0; translate: calc(var(--cx, 380) * var(--s, .8) * 1px) calc(var(--cy, 360) * var(--s, .8) * 1px); transition: translate .7s cubic-bezier(.45, .05, .25, 1), opacity .3s, scale .12s; pointer-events: none; }
.reel__cursor svg { display: block; width: 100%; fill: var(--ink-900); stroke: var(--white); stroke-width: 1.5; stroke-linejoin: round; }
.reel.is-playing .reel__cursor { opacity: 1; }
.reel__cursor.is-down { scale: .82; }

/* the stage: drawn at 440 × 400, scaled by --s */
.st { position: absolute; left: 0; top: 0; width: 440px; height: 400px; padding: 22px 24px; transform: scale(var(--s, .8)); transform-origin: 0 0; font-family: var(--font-body); color: var(--ink-900); }
.st--center { display: grid; align-content: center; justify-items: center; gap: 18px; text-align: center; }
.st__h { font: 700 24px/30px var(--font-body); letter-spacing: -.01em; color: var(--navy-700); }
.st__h--sm { font-size: 19px; line-height: 24px; }
.st__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.st__row--end { grid-template-columns: 1fr auto; align-items: end; margin-top: 16px; }
.st__f { display: grid; gap: 4px; font: 700 11px/14px var(--font-body); color: var(--navy-700); }
.st__f > span { display: flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(147, 164, 222, .45); background: var(--white); font: 400 13px/16px var(--font-body); color: var(--ink-900); }
.st__f > span.is-typing::after { content: ""; width: 1.5px; height: 15px; margin-left: 1px; background: var(--navy-700); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.st__usd { gap: 8px; padding-left: 4px !important; }
.st__usd b { padding: 3px 8px; border-radius: 6px; background: var(--orange-500); font-size: 11px; color: var(--white); }
.st__usd em { font-style: normal; display: flex; align-items: center; }
.st__usd em.is-typing::after { content: ""; width: 1.5px; height: 15px; margin-left: 1px; background: var(--navy-700); animation: caret .8s steps(1) infinite; }
.st__k { margin-top: 16px; font: 700 13px/18px var(--font-body); color: var(--navy-700); }
.st--center .st__k { margin: 0; }
.st__k small { margin-left: 4px; font-size: 10px; font-weight: 500; color: var(--grey-600); }
.st__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 12px; background: rgba(147, 164, 222, .14); }
.st__chips span { padding: 5px 11px; border-radius: var(--radius-pill); border: 1px solid rgba(147, 164, 222, .6); background: var(--white); font: 500 11px/14px var(--font-body); color: var(--navy-700); transition: background .2s, color .2s, scale .15s; }
.st__chips span.on { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.st__pal { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.st__pal i, .st__sw i { width: 30px; height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); scale: 0; transition: scale .35s cubic-bezier(.3, 1.6, .5, 1); }
.st__pal i.on, .st__sw i.on { scale: 1; }
.st__add { margin-left: 4px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--white); box-shadow: var(--shadow-sm); font: 600 11px/14px var(--font-body); color: var(--navy-700); }
.st__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--lg-edge); background: var(--lg-fill); box-shadow: var(--lg-shadow); font: 600 12px/16px var(--font-body); color: var(--navy-700); white-space: nowrap; transition: scale .12s; }
.st__btn--warm { background: linear-gradient(180deg, rgba(255, 196, 140, .95), rgba(255, 145, 44, .9)); color: var(--white); }
.st__btn--ghost { background: rgba(255, 255, 255, .8); }
.st__btns { display: flex; gap: 10px; }
.st__btns--end { justify-content: flex-end; margin-top: 10px; }
.is-press { scale: .9; }

.st__card { max-width: 330px; padding: 22px 22px 18px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-md); font: 400 14px/21px var(--font-body); color: var(--navy-700); }
.st__card p { min-height: 84px; }
.st__card .st__sw { display: flex; justify-content: center; gap: 6px; min-height: 0; margin-top: 12px; }
.st__sw i { width: 20px; height: 20px; border-radius: 5px; }
.st__search { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 10px; background: rgba(238, 240, 252, .9); opacity: 0; scale: .96; transition: opacity .3s, scale .3s; }
.st__search.show { opacity: 1; scale: 1; }
.st__search > * { position: relative; }
.st__search::before { content: ""; position: absolute; left: 50%; top: 50%; width: 230px; height: 250px; translate: -50% -50%; border-radius: 34px; background: var(--white); box-shadow: var(--shadow-lg); }
.st__track { width: 150px; height: 6px; margin-bottom: 18px; border-radius: 6px; background: var(--grey-100); overflow: hidden; }
.st__track i { display: block; width: 100%; height: 100%; background: var(--orange-500); transition: width .3s linear; }
.st__search img { width: 40px; height: 40px; }
.motion .st__search.show img { animation: hop .6s ease-in-out infinite alternate; }
@keyframes hop { to { translate: 0 -6px; rotate: 6deg; } }
.st__search b { font: 700 17px/22px var(--font-body); color: var(--navy-700); }
.st__search small { min-height: 16px; font: 400 12px/16px var(--font-body); color: var(--navy-700); }

.st__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st__count { padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(93, 184, 91, .16); border: 1px solid rgba(93, 184, 91, .5); font: 600 11px/14px var(--font-body); color: var(--palm-600); }
.st__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 12px 0 0; padding: 0; list-style: none; border-radius: 12px; overflow: hidden; background: rgba(147, 164, 222, .35); }
.st__grid li { position: relative; background: var(--white); transition: opacity .3s; }
.st__grid img { width: 100%; height: 92px; padding: 8px; object-fit: contain; background: #ececec; mix-blend-mode: multiply; }
.st__grid p { display: flex; justify-content: space-between; gap: 4px; padding: 6px 8px 8px; font: 600 10px/13px var(--font-body); }
.st__grid p span { font-weight: 500; color: var(--grey-600); }
.st__marks { position: absolute; left: 6px; top: 6px; display: flex; gap: 3px; }
.st__marks i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--white); background: rgba(255, 255, 255, .9); font: 700 10px/1 var(--font-body); font-style: normal; transition: background .2s, color .2s, scale .15s; }
.st__marks .y { color: var(--palm-600); }
.st__marks .n { color: var(--red-500); }
.st__grid li.kept { box-shadow: inset 0 0 0 2.5px var(--green-500); }
.st__grid li.kept .y { background: var(--green-500); color: var(--white); }
.st__grid li.dropped { opacity: .4; }
.st__grid li.dropped .n { background: var(--red-500); color: var(--white); }
.st__ask { position: absolute; right: 6px; top: 6px; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--navy-700); font: 600 9px/12px var(--font-body); color: var(--white); transition: scale .12s; }
.st__bubble { position: absolute; left: 24px; top: 306px; z-index: 3; width: 250px; padding: 10px 12px; border-radius: 14px 4px 14px 14px; background: #4a4458; box-shadow: var(--shadow-md); font: 400 11px/15px var(--font-body); color: var(--white); opacity: 0; translate: 0 8px; transition: opacity .3s, translate .3s; }
.st__bubble.show { opacity: 1; translate: 0 0; }
.st__done { position: absolute; inset: 0; z-index: 4; display: grid; align-content: center; justify-items: center; gap: 10px; background: linear-gradient(180deg, rgba(252, 196, 144, .97), rgba(251, 227, 204, .95)); opacity: 0; transition: opacity .35s; }
.st__done.show { opacity: 1; }
.st__done b { font: 800 34px/1 var(--font-body); letter-spacing: -.02em; text-align: center; color: var(--navy-700); }
.st__done b span { display: block; color: var(--orange-500); }
.st__done small { font: 500 13px/18px var(--font-body); color: var(--brown-900); }


/* HaneiRoom's AR scan, driven by scroll (landing.js sets the vars on .scan).
   The room fills the screen like the camera view. Every var falls back to the
   finished state, so without motion the chair is already placed. */
.scan { position: relative; z-index: 4; margin: 0; --scan-top: 92px; }
.scan__view { position: relative; height: 100%; overflow: hidden; background: #ead9c4; container-type: size; }
.scan__world {
  --u: calc(max(100cqw, 150cqh) / 100); /* 1% of the room photo's width */
  position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 100); aspect-ratio: 1264 / 843;
  transform: translate(-50%, -50%) translateX(calc(var(--pan, 0) * 1%)) scale(var(--zoom, 1));
}
.scan__room, .scan__floor { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
/* everything standing on the floor; scaled down around the plane when a narrow screen would cut it off */
.scan__anchor { position: absolute; inset: 0; transform-origin: 47.7% 83.9%; scale: var(--fit, 1); }
.scan__plane { clip-path: circle(calc(var(--floor, 1) * 25%) at 47.7% 83.9%) view-box; }
.scan__fill { fill: rgba(160, 150, 235, .46); opacity: calc(1 - var(--foot, 1) * .45); }
.scan__grid { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.5; opacity: calc(1 - var(--foot, 1) * .75); }
.scan__edge { fill: none; stroke: var(--white); stroke-width: 3; stroke-dasharray: 12 9; stroke-linecap: round; stroke-linejoin: round; opacity: calc(1 - var(--foot, 1) * .3); }
.scan__draw { fill: none; stroke: var(--white); stroke-width: 16; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--outline, 1)); }
.scan__arrows { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: var(--dims, 1); }

/* glass, iPhone style */
.scan__pill, .scan__dim, .scan__close, .scan__rail, .scan__sheet, .scan__swap {
  background: var(--lg-fill); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); color: var(--navy-700);
}
.scan__pill svg, .scan__rail svg, .scan__marker svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.scan__dim {
  position: absolute; translate: -50% -50%; padding: 3px 12px; border-radius: var(--radius-pill);
  font: 700 15px/20px var(--font-body); white-space: nowrap; opacity: var(--dims, 1); scale: calc((.6 + var(--dims, 1) * .4) / var(--fit, 1));
}
.scan__dim--d { left: 40.1%; top: 75.8%; }
.scan__dim--w { left: 61.7%; top: 73.6%; }
.scan__marker {
  position: absolute; left: 54.3%; top: 80%; display: flex; align-items: center; color: var(--white);
  translate: -50% -50%; opacity: var(--marker, 0); scale: calc(.7 + var(--marker, 0) * .3);
}
.scan__marker svg { width: calc(var(--u) * 4.4); stroke-width: 1.4; filter: drop-shadow(0 1px 2px rgba(30, 30, 60, .3)); }
.scan__marker svg + svg { width: calc(var(--u) * 3); }
/* the framed print, cut from the same wall it hangs back on; placing it fades it in */
.scan__poster {
  position: absolute; left: 34.98%; top: 23.7%; width: 16.06%; max-width: none;
  opacity: var(--poster, 1); scale: calc(.94 + var(--poster, 1) * .06); filter: drop-shadow(0 6px 10px rgba(52, 32, 12, .22));
}

/* the placed pieces: positions and widths are % of the room photo, spread out from
   the middle of the floor by --chair-k just as the pieces are scaled up, so a phone
   keeps the same arrangement */
.scan__piece {
  position: absolute; display: block;
  left: calc(47.7% + (var(--px) - 47.7) * var(--chair-k, 1) * 1%); top: calc(83.9% + (var(--py) - 83.9) * var(--chair-k, 1) * 1%);
  width: calc(var(--pw) * var(--chair-k, 1) * 1%); transform-origin: 50% 100%;
  translate: -50% calc(-97% - (1 - var(--v, 1)) * 30%); scale: calc(.7 + var(--v, 1) * .3);
  opacity: clamp(0, var(--v, 1) * 3, 1);
}
/* grounded in the room's warm light: a tight contact shadow, and a soft one cast
   left, away from the cove light on the right */
.scan__piece img { width: 100%; max-width: none; filter: drop-shadow(0 3px 3px rgba(59, 36, 14, .38)) drop-shadow(-8px 10px 14px rgba(59, 36, 14, .24)); }
.scan__piece .scan__main { opacity: calc(1 - var(--sw, 0)); }
.scan__piece .scan__alt { position: absolute; left: 0; bottom: 0; opacity: var(--sw, 0); }
/* turned to face the room, as the piece would stand there */
/* the shadows flip with the picture, so they are drawn mirrored to land the same way */
.scan__piece--flip img { scale: -1 1; filter: drop-shadow(0 3px 3px rgba(59, 36, 14, .38)) drop-shadow(8px 10px 14px rgba(59, 36, 14, .24)); }
.scan__shadow {
  position: absolute; left: 50%; bottom: 0; width: 110%; aspect-ratio: 4.4; translate: -50% 50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(52, 32, 12, .5), rgba(52, 32, 12, 0));
}

.scan__bracket {
  position: absolute; width: clamp(44px, 7cqw, 92px); aspect-ratio: 1; border: 4px solid var(--white);
  opacity: var(--ui, 1); filter: drop-shadow(0 1px 3px rgba(30, 30, 60, .2));
}
.scan__bracket--tl { left: 13%; top: calc(var(--scan-top) + 72px); border-right: 0; border-bottom: 0; border-radius: 22px 0 0 0; }
.scan__bracket--tr { right: 13%; top: calc(var(--scan-top) + 72px); border-left: 0; border-bottom: 0; border-radius: 0 22px 0 0; }
.scan__bracket--bl { left: 13%; bottom: 20%; border-right: 0; border-top: 0; border-radius: 0 0 0 22px; }
.scan__bracket--br { right: 13%; bottom: 20%; border-left: 0; border-top: 0; border-radius: 0 0 22px 0; }
.scan__close {
  position: absolute; left: 24px; top: var(--scan-top); display: grid; place-items: center; width: 52px; height: 40px;
  border-radius: var(--radius-pill); opacity: var(--ui, 1);
}
.scan__pill {
  position: absolute; left: 50%; display: flex; align-items: center; gap: 10px; padding: 10px 22px; translate: -50% 0;
  border-radius: var(--radius-pill); font: 600 17px/22px var(--font-body); white-space: nowrap;
}
.scan__pill svg { width: 24px; flex: none; }
.scan__pill--top { top: var(--scan-top); opacity: var(--ui, 1); }
.scan__pill--place { bottom: 8%; padding-left: 16px; opacity: var(--place, 0); translate: -50% calc((1 - var(--place, 0)) * 12px); }
.scan__pill--buy {
  bottom: 8%; padding: 12px 26px; opacity: calc(var(--buy, 1) * (1 - var(--deal, 1))); translate: -50% calc((1 - var(--buy, 1)) * 12px);
  scale: calc(1 - var(--btap, 0) * .05);
  background: linear-gradient(180deg, rgba(255, 196, 140, .95), rgba(255, 145, 44, .82)); color: var(--brown-900); font-weight: 700;
}
.scan__rail {
  position: absolute; right: 24px; top: 50%; display: grid; gap: 20px; padding: 18px 12px; translate: 0 -50%;
  border-radius: var(--radius-pill); opacity: var(--ui, 1);
}
.scan__rail svg { width: 26px; }
.scan__rec { fill: currentColor; }

/* the product sheet slides up so Try in AR can be tapped */
.scan__sheet {
  position: absolute; left: 50%; bottom: 16px; width: min(380px, calc(100% - 32px)); padding: 10px 16px 16px; border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .7));
  translate: -50% calc((1 - var(--sheet, 0)) * 120%); opacity: min(1, calc(var(--sheet, 0) * 4));
}
.scan__grab { display: block; width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: rgba(30, 30, 60, .2); }
.scan__head { display: grid; gap: 2px; margin-bottom: 12px; }
.scan__head b { font: 700 18px/24px var(--font-body); color: var(--ink-900); }
.scan__head small { font: 400 13px/18px var(--font-body); color: var(--grey-600, #6b6b6b); }
.scan__thumb { display: block; aspect-ratio: 1; padding: 8px; border-radius: 20px; background: var(--peach-100); }
.scan__thumb img { width: 100%; height: 100%; object-fit: contain; }
/* the tray: each pick lights up with a ring and a check */
/* equal columns that never grow to a photo's own width, each a square tile the photo is fitted inside */
.scan__tray { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.scan__tray li { position: relative; min-width: 0; aspect-ratio: 1; border-radius: 16px; background: var(--peach-100); box-shadow: inset 0 0 0 calc(var(--on) * 2.5px) var(--orange-500); }
.scan__tray img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.scan__tray i { position: absolute; right: -4px; top: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange-500); font: 800 12px/1 var(--font-body); font-style: normal; color: var(--white); scale: var(--on); }
.scan__try {
  position: relative; display: block; margin-top: 14px; padding: 12px; border-radius: var(--radius-pill); text-align: center;
  background: linear-gradient(180deg, rgba(255, 196, 140, .95), rgba(255, 145, 44, .82)); border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-shadow); color: var(--brown-900); font: 700 16px/22px var(--font-body); scale: calc(1 - var(--tap, 0) * .05);
}
.scan__tap {
  position: absolute; left: 50%; top: 50%; width: 46px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: rgba(255, 255, 255, .55); opacity: var(--tap, 0); scale: calc(.4 + var(--tap, 0) * .8);
}
.scan__tap--buy { opacity: var(--btap, 0); scale: calc(.4 + var(--btap, 0) * .8); }

/* swap the seat in place to compare; it sits up top so the pieces on the floor stay in view */
.scan__swap {
  position: absolute; left: 50%; top: calc(var(--scan-top) + 60px); display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 20px;
  translate: -50% calc((1 - var(--swp, 0)) * 12px); opacity: var(--swp, 0); border-radius: var(--radius-pill);
  font: 600 16px/22px var(--font-body); white-space: nowrap;
}
.scan__swap i { display: block; width: 46px; height: 46px; padding: 4px; border-radius: 14px; background: var(--peach-100); box-shadow: inset 0 0 0 calc(var(--on) * 2.5px) var(--orange-500); scale: calc(.9 + var(--on) * .1); }
.scan__swap img { width: 100%; height: 100%; object-fit: contain; }

/* Buy opens the shop card: everything placed, and the total */
.scan__deal {
  position: absolute; left: 50%; bottom: 16px; width: min(400px, calc(100% - 32px)); padding: 10px 18px 18px; border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .8));
  border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  translate: -50% calc((1 - var(--deal, 1)) * 120%); opacity: min(1, calc(var(--deal, 1) * 4));
}
.scan__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.scan__list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.scan__list .scan__thumb { padding: 5px; border-radius: 14px; }
.scan__list b { display: block; font: 700 15px/20px var(--font-body); color: var(--ink-900); }
.scan__list small { display: block; font: 400 12px/16px var(--font-body); color: var(--grey-600, #6b6b6b); }
.scan__list em { font: 700 15px/20px var(--font-body); font-style: normal; color: var(--navy-700); }
.scan__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(30, 30, 60, .15); }
.scan__price b { display: block; font: 800 26px/30px var(--font-body); color: var(--navy-700); }
.scan__price small { display: block; font: 500 12px/16px var(--font-body); color: var(--palm-600); }
.scan__cta {
  flex: none; padding: 12px 26px; border-radius: var(--radius-pill); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow);
  background: linear-gradient(180deg, rgba(255, 196, 140, .95), rgba(255, 145, 44, .82)); color: var(--brown-900); font: 700 16px/22px var(--font-body);
}
.gallery__bg { display: none; }
@media (max-width: 767px) {
  .scan { --scan-top: 84px; }
  .scan__pill { gap: 8px; padding: 8px 16px; font-size: 15px; line-height: 20px; }
  .scan__pill svg { width: 20px; }
  .scan__close { left: 12px; width: 44px; height: 36px; }
  .scan__close img { width: 20px; height: 20px; }
  .scan__rail { right: 12px; gap: 14px; padding: 14px 9px; }
  .scan__rail svg { width: 22px; }
  .scan__bracket { width: 48px; border-width: 3px; }
  .scan__bracket--tl, .scan__bracket--bl { left: 9%; }
  .scan__bracket--tr, .scan__bracket--br { right: 9%; }
  .scan__bracket--tl, .scan__bracket--tr { top: calc(var(--scan-top) + 60px); }
  .scan__dim { padding: 2px 10px; font-size: 13px; line-height: 18px; }
  /* the floor shrinks to fit a phone; the pieces are what people look at, so they shrink less */
  .scan { --chair-k: 1.4; }
  .scan__deal { padding: 8px 16px 16px; }
  .scan__head b { font-size: 17px; line-height: 22px; }
  .scan__swap { font-size: 14px; gap: 8px; padding-left: 16px; }
  .scan__swap i { width: 40px; height: 40px; }
  .scan__buy { margin-top: 12px; padding-top: 12px; }
  .scan__price b { font-size: 22px; line-height: 26px; }
}

/* the HaneiRoom pitch beside the phone: what it does, then the App Store */
.pitch { position: relative; z-index: 6; width: min(340px, 100%); padding: 22px 24px 24px; border-radius: 22px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-lg); }
.pitch__k { font: 700 12px/16px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--rust-600); }
.pitch__t { margin: 8px 0 14px; font: 400 32px/1.05 var(--font-heading); color: var(--navy-700); }
.pitch__steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.pitch__steps li { position: relative; padding-left: 34px; font: 400 15px/22px var(--font-body); color: var(--ink-900); counter-increment: step; }
.pitch__steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--orange-500); font: 700 12px/1 var(--font-body); color: var(--brown-900); }
.pitch .appstore { margin-top: 18px; }

.collage { position: absolute; z-index: 1; display: none; }
.collage--palette { display: none; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 150px; padding: 12px; background: var(--white); box-shadow: var(--shadow-md); }
.collage--palette i { aspect-ratio: 1.3; }

/* large screens: the scan fills the screen, shrinks into a phone, and the phone
   breaks into three HaneiAI screens over the blurred room */
.pin .gallery { height: 1000vh; }
.pin .gallery__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.pin .frame, .pin .collage { position: absolute; left: 50%; top: var(--cy, 50%); opacity: calc(var(--fo, 1) * (1 - var(--sp, 0))); }
.pin .gallery__bg { display: block; position: absolute; inset: -40px; filter: blur(calc(var(--bgb, 16) * 1px)) saturate(1.1); }
.pin .gallery__bg::after { content: ""; position: absolute; inset: 0; background: rgba(250, 244, 234, var(--veil, .4)); }
.gallery__bg img { width: 100%; height: 100%; object-fit: cover; }
.pin .scan { position: absolute; inset: 0; opacity: var(--so, 1); }
/* the camera view's own box shrinks into the phone's screen (landing.js sets
   --scx/--scy/--scw/--sch, a scale and a corner), so the app's controls and shop
   card reflow into a phone layout instead of being cropped */
.pin .scan__view, .motion:not(.pin) .scan__view {
  position: absolute; left: 0; top: 0; width: var(--scw, 100%); height: var(--sch, 100%);
  transform-origin: 0 0; translate: var(--scx, 0) var(--scy, 0); scale: var(--scs, 1); border-radius: var(--scr, 0);
}
.pin .frame { width: calc(var(--fw, 300) * 1px + var(--b) * 2); height: calc(var(--fh, 560) * 1px + var(--b) * 2); translate: -50% -50%; }
.pin .pitch { position: absolute; top: var(--cy, 50%); opacity: var(--o, 1); translate: calc((1 - var(--o, 1)) * -40px) -50%; }
/* "Love what you see?" takes the pitch's place beside the phone */
.pin .bridge { position: absolute; top: var(--cy, 50%); text-align: left; opacity: var(--o, 0); translate: calc((1 - var(--o, 0)) * 40px) -50%; }
.pin .ai-head { position: absolute; left: 0; right: 0; top: 84px; opacity: var(--o, 0); translate: 0 calc((1 - var(--o, 0)) * 16px); }
.pin .collage { display: block; }
.pin .collage--palette { display: grid; }
.pin .collage--palette { translate: calc(var(--fw, 300) * -.5px - 130px) calc(var(--fh, 560) * -.5px - 86px); rotate: -8deg; }
.pin .collage--card { width: 150px; translate: calc(var(--fw, 300) * .5px - 50px) calc(var(--fh, 560) * .5px - 210px); rotate: 7deg; }
.pin .collage--sheet { width: 230px; translate: calc(var(--fw, 300) * .5px - 40px) calc(var(--fh, 560) * -.5px - 70px); rotate: 8deg; }

/* the three screens: landing.js moves each from the phone's rect (--x, --y, --w, --h)
   to its own place, and back again when you scroll up */
.pin .reels, .motion:not(.pin) .reels { position: absolute; inset: 0; z-index: 5; display: block; width: auto; margin: 0; pointer-events: none; }
.pin .reel, .motion:not(.pin) .reel {
  position: absolute; left: 0; top: 0; width: calc(var(--w, 300) * 1px); opacity: var(--o, 0);
  translate: calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px); rotate: calc(var(--r, 0) * 1deg);
}
.pin .reel__win, .motion:not(.pin) .reel__win { display: flex; flex-direction: column; height: calc(var(--h, 400) * 1px); }
.pin .reel__view, .motion:not(.pin) .reel__view { flex: 1; aspect-ratio: auto; }
.pin .reel__cap { opacity: var(--co, 1); translate: 0 calc((1 - var(--co, 1)) * 10px); }
.motion:not(.pin) .reel__cap { display: none; }

/* every other screen: the scan pins on its own, then the three screens follow */
html:not(.pin) .gallery__stage { display: flex; flex-direction: column; align-items: center; gap: var(--space-8); padding: 0 var(--space-4); }
html:not(.pin) .scan { align-self: stretch; margin: 0 calc(var(--space-4) * -1); height: 320vh; height: 320svh; }
html:not(.pin) .scan__view { position: sticky; top: 0; height: 100vh; height: 100svh; }
html.rm .scan { height: auto; }
html.rm .scan__view { position: relative; height: min(88vh, 780px); }
html:not(.pin) .pitch { order: 1; margin-top: -8px; }
html:not(.pin) .bridge { order: 2; margin-top: var(--space-8); }
html:not(.pin) .ai-head { order: 3; }
html:not(.pin):not(.motion) .frame { display: none; }

/* with motion, the stack pins too: the scan plays, shrinks into a phone, and the
   phone breaks into three small screens on the same screen */
.motion:not(.pin) .gallery { height: 960vh; height: 960svh; }
.motion:not(.pin) .gallery__stage { position: sticky; top: 0; display: block; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
.motion:not(.pin) .scan { position: absolute; inset: 0; height: auto; margin: 0; opacity: var(--so, 1); }
.motion:not(.pin) .pitch { position: absolute; left: 50%; top: 84px; width: min(360px, calc(100% - 32px)); margin: 0; padding: 18px 20px 20px; opacity: var(--o, 1); translate: -50% calc((1 - var(--o, 1)) * -24px); }
.motion:not(.pin) .pitch__t { font-size: 28px; }
.motion:not(.pin) .bridge { position: absolute; left: 50%; top: 96px; width: min(360px, calc(100% - 32px)); margin: 0; opacity: var(--o, 0); translate: -50% calc((1 - var(--o, 0)) * -24px); }
.motion:not(.pin) .bridge__t { font-size: 40px; }
.motion:not(.pin) .bridge__s { font-size: 16px; line-height: 22px; }
.motion:not(.pin) .ai-head { position: absolute; left: 0; right: 0; top: 72px; padding: 0 var(--space-4); opacity: var(--o, 0); }
.motion:not(.pin) .ai-head__t { font-size: 26px; }
.motion:not(.pin) .ai-head__s { font-size: 14px; line-height: 20px; }
/* the phone frame follows the screen the camera view shrank into */
.motion:not(.pin) .frame {
  position: absolute; left: calc(var(--px, 0) * 1px - var(--b)); top: calc(var(--py, 0) * 1px - var(--b));
  width: calc(var(--pw, 0) * 1px + var(--b) * 2); height: calc(var(--ph, 0) * 1px + var(--b) * 2);
  border-radius: 41px; opacity: calc(var(--fo, 0) * (1 - var(--sp, 0)));
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* App Store badge, drawn like Apple's: black, white logo, two lines */
.appstore {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 16px 7px 12px; border-radius: 11px;
  background: #000; border: 1px solid #a6a6a6; color: #fff; text-decoration: none; transition: translate .2s, box-shadow .2s;
}
.appstore:hover { translate: 0 -2px; box-shadow: 0 8px 18px rgba(30, 30, 60, .25); }
.appstore:focus-visible { outline: 2px solid var(--navy-700); outline-offset: 3px; }
.appstore svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.appstore span { display: grid; font: 600 20px/1.05 -apple-system, "SF Pro Display", "Helvetica Neue", Inter, sans-serif; letter-spacing: -.01em; }
.appstore small { font-size: 10.5px; font-weight: 500; letter-spacing: .01em; }
/* two products, two speech bubbles: each slides in from its own side as it scrolls in */
.compare { max-width: 1040px; margin: 0 auto; padding: var(--space-24) var(--space-6) var(--space-32); text-align: center; }
.compare__title { font: 400 clamp(36px, 4.4vw, 60px)/1.05 var(--font-heading); color: var(--text-heading); }
.compare__lede { max-width: 460px; margin: var(--space-3) auto var(--space-8); font: 400 17px/26px var(--font-body); color: var(--ink-900); }
.duo { --v: 1; position: relative; display: grid; gap: 28px; width: min(760px, 100%); margin: var(--space-4) auto 0; padding: var(--space-6) 0; text-align: left; }
.duo__swirl { position: absolute; left: 50%; top: 50%; width: min(620px, 110%); translate: -50% -50%; overflow: visible; pointer-events: none; }
.duo__swirl path { fill: none; stroke: var(--lavender-200); stroke-width: 54; stroke-linecap: round; opacity: .7; }
/* text takes a deep shade of its own bubble, so each reads as one colour */
.bub {
  --tail: 26px; position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 22px;
  width: min(640px, 100%); padding: 22px 36px 22px 22px; border-radius: 56px; box-shadow: 0 14px 30px rgba(30, 30, 60, .1);
  opacity: calc(var(--v) * 1.5 - .5);
}
.bub::before { content: ""; position: absolute; width: 44px; height: var(--tail); background: inherit; }
.bub--room { justify-self: start; background: var(--orange-500); color: #6a2c06; translate: calc((1 - var(--v)) * -80px) 0; rotate: calc((1 - var(--v)) * -3deg); }
.bub--room::before { left: 22%; top: calc(1px - var(--tail)); clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 8px 8px 0 0; }
.bub--web { justify-self: end; grid-template-columns: minmax(0, 1fr) 112px; padding: 22px 22px 22px 40px; background: var(--navy-300); color: #1b2a63; translate: calc((1 - var(--v)) * 80px) 0; rotate: calc((1 - var(--v)) * 3deg); }
.bub--web::before { right: 24%; bottom: calc(1px - var(--tail)); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.bub__face { display: block; aspect-ratio: 1; border-radius: 50%; background: #f6efe4; box-shadow: inset 0 -4px 0 rgba(30, 30, 60, .08); }
.bub__fig { display: block; width: 100%; height: 100%; overflow: visible; }
.bub__name { font: 400 clamp(30px, 3.6vw, 40px)/1 var(--font-heading); }
.bub__where { margin-top: 6px; font: 800 12px/16px var(--font-body); letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.bub ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.bub li { position: relative; padding-left: 14px; font: 600 16px/22px var(--font-body); }
.bub li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
.duo__both {
  position: relative; justify-self: center; max-width: 480px; margin-top: 6px; padding: 10px 20px; border-radius: var(--radius-pill); text-align: center;
  background: var(--white); border: 1.5px dashed var(--navy-300); color: var(--navy-700); font: 500 15px/21px var(--font-body); opacity: calc(var(--v) * 2 - 1);
}
.duo__both b { margin-right: 6px; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
/* the two flowers keep sketching: a wobbling line, a bob, eyes on their screens */
.bub__body, .bub__device { transform-box: fill-box; }
.motion .bub__body, .motion .bub__device { filter: url(#hc-boil); }
.motion .bub__body { animation: hc-bob 1.8s ease-in-out infinite; transform-origin: 50% 90%; }
.motion .bub--web .bub__body { animation-delay: -.9s; }
.motion .bub--room .bub__device { animation: hc-swing 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.motion .bub__scan { animation: bub-scan 1.6s ease-in-out infinite alternate; }
.motion .bub__cursor { animation: bub-cursor 3s ease-in-out infinite; }
@keyframes bub-scan { to { translate: 0 34px; } }
@keyframes bub-cursor { 0%, 100% { translate: 0 0; } 40% { translate: -22px -4px; } 55% { translate: -22px -4px; } 56% { scale: .85; } 60% { scale: 1; } }
/* a round sticker on HaneiAI's corner: who it's for */
.bub__sticker {
  position: absolute; z-index: 2; right: 150px; top: -46px; display: grid; place-content: center; gap: 2px;
  width: 124px; aspect-ratio: 1; border-radius: 50%; rotate: 9deg; text-align: center;
  background: var(--tape); color: var(--brown-900); box-shadow: 0 0 0 5px #fffdf8, 0 10px 18px rgba(30, 30, 60, .16);
  opacity: calc(var(--v) * 2 - 1); scale: calc(.6 + var(--v) * .4);
}
.bub__sticker small { font: 800 9.5px/1.15 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.bub__sticker b { font: 400 21px/.95 var(--font-heading); }
.motion .bub__sticker { animation: wiggle-sticker 5s ease-in-out infinite; }
@keyframes wiggle-sticker { 0%, 84%, 100% { rotate: 9deg; } 88% { rotate: 3deg; } 92% { rotate: 13deg; } 96% { rotate: 7deg; } }

/* HaneiAI's way in, under its list */
.bub__try { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; padding: 0 22px; border-radius: var(--radius-pill); font: 700 16px/20px var(--font-body); text-decoration: none; }
.bub__try span { font-size: 14px; }

/* ============================================================ CLOSING
   One chair, then the rest of the room slides in beside it as the line scrolls in. */
.close { position: relative; z-index: 2; overflow: clip; padding: var(--space-32) var(--space-6) var(--space-24); background: var(--cream-50); text-align: center; }
.close__row { display: flex; justify-content: center; align-items: flex-end; height: clamp(110px, 14vw, 190px); margin-bottom: var(--space-8); }
.close__row img { height: 100%; width: auto; margin: 0 -.5%; filter: drop-shadow(0 12px 12px rgba(59, 42, 20, .16)); }
.close__row img:nth-child(2) { height: 132%; }
.close__row img:nth-child(3) { height: 62%; }
.close__row img:nth-child(5) { height: 74%; }
.close__row img:not(.close__one) { opacity: var(--v, 1); translate: calc((1 - var(--v, 1)) * (var(--i) * 50px + 80px)) 0; }
.close__t { max-width: 940px; margin: 0 auto; font: 400 clamp(32px, 3.8vw, 56px)/1.12 var(--font-heading); color: var(--text-heading); text-wrap: balance; }
.close__hl { padding: 0 .06em; background: linear-gradient(transparent 60%, var(--orange-300) 60% 92%, transparent 92%); }
.close__hl--room { background: linear-gradient(transparent 60%, var(--lavender-200) 60% 92%, transparent 92%); }

/* ============================================================ BOOK A DEMO */
.demo { position: relative; z-index: 3; overflow: clip; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 128px 24px; background: var(--lavender-200); }
.demo__blur { position: absolute; inset: -10%; filter: blur(46px) saturate(1.2); container-type: inline-size; }
.demo__blur .bd { transform: translate(-50%, -50%) rotate(calc(var(--r) * 1deg)) scale(1.4); }
.demo__chair { position: absolute; left: 44%; top: 36%; width: 24%; }
.demo__box {
  position: relative; z-index: 1; width: min(920px, 100%);
  padding: var(--space-12) 0 var(--space-12); border-radius: 32px; text-align: center;
  background: rgba(250, 244, 234, .78); border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-glass), var(--shadow-lg);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.4); backdrop-filter: blur(var(--blur-glass)) saturate(1.4);
}
.demo__eyebrow { font: 700 12px/16px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-900); }
.demo__title { margin: var(--space-3) auto var(--space-4); padding: 0 var(--space-6); max-width: 680px; font: 400 clamp(40px, 5vw, 68px)/1.02 var(--font-heading); color: var(--text-heading); }
.demo__lede { max-width: 480px; margin: 0 auto; padding: 0 var(--space-6); font: 400 17px/26px var(--font-body); color: var(--grey-600); }
.demo__rows { display: grid; gap: 12px; margin: var(--space-8) 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.demo__row { display: flex; gap: 12px; width: max-content; list-style: none; margin: 0; padding: 0; translate: calc(var(--shift, 0) * 1px) 0; }
.demo__row[data-row="1"] { margin-left: -160px; }
.demo__row li { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); font: 600 15px/20px var(--font-body); color: var(--ink-900); white-space: nowrap; }
.demo__row li img, .demo__row li i { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: var(--lavender-100); flex: none; }
.demo__row li img.thumb { padding: 0; object-fit: cover; }
.demo__form { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0 var(--space-6); }
.demo__form input {
  width: min(360px, 100%); min-height: 56px; padding: 0 22px; border-radius: var(--radius-pill);
  border: 1px solid var(--lavender-200); background: var(--white); box-shadow: var(--shadow-sm);
  font: 500 16px/20px var(--font-body); color: var(--ink-900);
}
.demo__form input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.demo__form input[aria-invalid="true"] { border-color: var(--red-700); }
.demo__msg { flex-basis: 100%; min-height: 20px; font: 600 14px/20px var(--font-body); color: var(--navy-700); }
.demo__msg.is-error { color: var(--red-700); }
.demo__legal { flex-basis: 100%; font: 400 12px/18px var(--font-body); color: var(--grey-600); }

/* once sent, the pitch above the form makes way for the thank-you; both share
   one grid cell so the box keeps its height */
.demo__top { display: grid; grid-template-columns: minmax(0, 1fr); }
.demo__ask, .demo__done { grid-area: 1 / 1; transition: opacity .4s ease, translate .5s cubic-bezier(.3, 1.4, .5, 1); }
.demo__done { align-self: center; padding: 0 var(--space-6) var(--space-8); opacity: 0; translate: 0 16px; pointer-events: none; }
.is-sent .demo__ask { opacity: 0; translate: 0 -16px; pointer-events: none; }
.is-sent .demo__done { opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: .15s; }
.demo__done .demo__title { margin-top: var(--space-2); }

/* the Hanei flower on site: hard hat, ruler, a roll of plans */
.hc { display: block; width: clamp(150px, 22vw, 200px); margin: 0 auto 4px; overflow: visible; }
.hc__line { fill: #253a82; stroke: #253a82; stroke-width: 7; stroke-linejoin: round; }
.hc__fill { fill: #ff7a3c; }
.hc__ink { stroke: #253a82; stroke-width: 2.5; stroke-linejoin: round; }
.hc__shadow { fill: #253a82; opacity: .12; }
.hc__fig, .hc__body, .hc__hat, .hc__ruler, .hc__roll, .hc__eyes, .hc__pupils, .hc__shadow { transform-box: fill-box; }
.motion .is-sent .hc__fig { filter: url(#hc-boil); animation: hc-pop .8s cubic-bezier(.3, 1.6, .5, 1) .1s both; transform-origin: 50% 100%; }
.motion .is-sent .hc__body { animation: hc-bob 1.6s ease-in-out .9s infinite; transform-origin: 50% 90%; }
.motion .is-sent .hc__hat { animation: hc-tip 1.6s ease-in-out .9s infinite; transform-origin: 50% 100%; }
.motion .is-sent .hc__ruler { animation: hc-swing 1.6s ease-in-out 1s infinite; transform-origin: 50% 100%; }
.motion .is-sent .hc__roll { animation: hc-hop 1.6s ease-in-out 1.1s infinite; transform-origin: 50% 50%; }
.motion .is-sent .hc__eyes { animation: hc-blink 4s steps(1) 1.4s infinite; transform-origin: 50% 50%; }
.motion .is-sent .hc__pupils { animation: hc-look 5s ease-in-out 1.2s infinite; }
.motion .is-sent .hc__shadow { animation: hc-shadow 1.6s ease-in-out .9s infinite; transform-origin: 50% 50%; }
@keyframes hc-pop { from { scale: .4; rotate: -12deg; opacity: 0; } 60% { opacity: 1; } }
@keyframes hc-bob { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -7px; rotate: 3deg; } }
@keyframes hc-tip { 0%, 100% { rotate: 0deg; } 50% { rotate: -6deg; } }
@keyframes hc-swing { 0%, 100% { rotate: -5deg; } 50% { rotate: 7deg; } }
@keyframes hc-hop { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: -2px -5px; rotate: -4deg; } }
@keyframes hc-blink { 0%, 90%, 96% { scale: 1 1; } 92% { scale: 1 .12; } }
@keyframes hc-look { 0%, 100% { translate: 0 0; } 30% { translate: -6px 3px; } 55% { translate: -6px 3px; } 75% { translate: 2px -2px; } }
@keyframes hc-shadow { 0%, 100% { scale: 1; opacity: .12; } 50% { scale: .86; opacity: .08; } }

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

/* ------------------------------------------------------------ footer */
.foot { position: relative; z-index: 3; background: var(--cream-50); border-top: 2px solid var(--navy-700); }
.foot__banner { padding: 26px 24px; background: var(--lavender-200); text-align: center; font: 800 14px/20px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-900); }
.foot__banner em { font: 700 24px/1 var(--font-hand); letter-spacing: 0; text-transform: none; color: var(--rust-600); }
.foot__quilt { height: 72px; background: url("../img/quilt.svg") 0 0 / auto 100% repeat-x; border-block: 2px solid var(--navy-700); }
.foot__body { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-8); max-width: 1000px; margin: 0 auto; padding: var(--space-12) var(--space-6); overflow: hidden; }
.foot__col { display: grid; justify-items: center; align-self: center; }
.foot__col a { min-width: 170px; padding: 12px 0; text-align: center; border-bottom: 1px solid var(--palm-600); font: 800 13px/16px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-900); text-decoration: none; }
.foot__col a:last-child { border-bottom: 0; }
.foot__col a:hover { color: var(--rust-600); }
.foot__mid { display: grid; justify-items: center; gap: var(--space-3); text-align: center; }
.foot__logo img { width: auto; height: 84px; }
.foot__mid p { font: 500 14px/20px var(--font-body); color: var(--grey-600); }
.foot__sticker { position: absolute; left: -12px; bottom: -26px; width: 104px; rotate: -12deg; }
.foot__bar { padding: 14px 24px; background: var(--navy-700); text-align: center; font: 600 12px/16px var(--font-body); letter-spacing: .08em; color: var(--lavender-100); }
.foot__bar a { color: inherit; text-underline-offset: 3px; }
.foot__bar a:hover { color: var(--white); }

/* ------------------------------------------------------------ glass, iPhone style
   Hanei's buttons, pills and product frames are liquid glass: a light top-to-bottom
   fill, a bright rim, an inner highlight and a heavy blur of whatever sits behind. */
:root {
  --lg-fill: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .28));
  --lg-edge: rgba(255, 255, 255, .85);
  --lg-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .45),
    inset 0 10px 18px -10px rgba(255, 255, 255, .9), 0 10px 28px rgba(30, 30, 60, .14), 0 1px 2px rgba(30, 30, 60, .1);
  --lg-blur: blur(20px) saturate(1.8);
}
.btn, .pill, .demo__row li, .demo__form input, .nav__links {
  background: var(--lg-fill); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
}
.btn--warm { background: linear-gradient(180deg, rgba(255, 196, 140, .95), rgba(255, 145, 44, .82)); color: var(--brown-900); }
.btn--warm:hover { background: linear-gradient(180deg, rgba(255, 205, 155, 1), rgba(255, 145, 44, .95)); }
.demo__form input { border-color: var(--lg-edge); }
.nav.is-scrolled { background: linear-gradient(180deg, rgba(250, 244, 234, .78), rgba(250, 244, 234, .55)); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .7), 0 6px 20px rgba(30, 30, 60, .08); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); }

.demo__box { background: linear-gradient(180deg, rgba(255, 252, 246, .72), rgba(250, 244, 234, .45)); border-color: var(--lg-edge); box-shadow: var(--lg-shadow), var(--shadow-lg); -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8); }

/* ------------------------------------------------------------ narrower screens */
@media (max-width: 767px) {
  .nav { height: 64px; padding: 0 var(--space-4); }
  .nav__logo img { height: 42px; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; min-height: 40px; padding: 0 16px; font-size: 14px; }

  .hero__band { padding: 178px var(--space-4) 150px; }
  .hero__lede { font-size: 16px; line-height: 24px; }
  .hs--sofa { --w: 136px; left: -24px; top: 74px; }
  .hs--lamp { --w: 50px; right: 9%; top: 70px; }
  .hs--table { display: none; }
  .hs--plant { --w: 104px; right: -14px; bottom: -70px; }
  /* phones get their own tape, curled tighter */
  .ruler--wide { display: none; }
  .ruler--narrow { display: block; }
  .stamp { top: calc(100% + 6.67vw); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin-top: 80px; padding: 0 var(--space-4); }
  .step { grid-template-columns: 96px minmax(0, 1fr); }
  .intro { padding: var(--space-16) var(--space-4) var(--space-12); }
  .intro__burst { left: 8%; top: 40px; width: 40px; }
  .intro__s { font-size: 16px; line-height: 24px; }
  .badge { width: 74px; }
  .badge b { font-size: 18px; }
  .badge--size { left: -10px; top: 10px; }
  .badge--poster { right: -6px; top: 8px; }
  .badge--swap { display: none; }

  .compare { padding: var(--space-16) var(--space-4) var(--space-24); }
  .close { padding: var(--space-24) var(--space-4) var(--space-16); }

  .demo { padding: 96px var(--space-4); }
  .demo__box { padding: var(--space-12) 0 var(--space-8); }
  .demo__row li { font-size: 14px; padding: 8px 14px 8px 8px; }
  .demo__row li img, .demo__row li i { width: 36px; height: 36px; padding: 8px; }

  .foot__banner { font-size: 12px; line-height: 18px; padding: 20px 16px; }
  .foot__quilt { height: 52px; }
  .foot__body { grid-template-columns: 1fr 1fr; padding: var(--space-8) var(--space-4) var(--space-12); }
  .foot__mid { grid-column: 1 / -1; order: -1; }
  .foot__col a { min-width: 0; width: 100%; font-size: 12px; }
  .foot__sticker { width: 72px; bottom: -18px; }
}

/* phones: the bubbles stack tight, the avatars shrink and the lists run one per line */
@media (max-width: 767px) {
  .duo { gap: 26px; }
  .bub { --tail: 20px; width: calc(100% - 8px); grid-template-columns: 66px minmax(0, 1fr); gap: 12px; padding: 16px 18px 16px 12px; border-radius: 36px; }
  .bub--web { grid-template-columns: minmax(0, 1fr) 66px; padding: 16px 12px 16px 20px; }
  .bub::before { width: 34px; }
  .bub__name { font-size: 28px; }
  .bub__where { font-size: 11px; line-height: 14px; }
  .bub ul { flex-direction: column; gap: 2px; margin-top: 8px; }
  .bub li { font-size: 14px; line-height: 19px; }
  .bub li::before { top: 7px; }
  .duo__both { font-size: 14px; line-height: 20px; padding: 10px 16px; border-radius: 22px; }
  .bub__try { margin-top: 12px; min-height: 40px; font-size: 15px; }
  .bub__sticker { width: 92px; right: -2px; top: -40px; }
  .bub__sticker small { font-size: 7.5px; }
  .bub__sticker b { font-size: 16px; }
  .appstore { margin-top: 12px; padding: 6px 14px 6px 10px; }
  .appstore svg { width: 22px; height: 22px; }
  .appstore span { font-size: 17px; }
}
