/* Scent finder v3, "The Blend". Night water, bone type, one accent per scent family. */
:root {
  --ink: #070a0d;
  --bone: #efe8dc;
  --mute: rgba(239, 232, 220, .62);
  --faint: rgba(239, 232, 220, .16);
  --line: rgba(239, 232, 220, .14);
  --blend: rgb(209, 199, 184);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 5vw, 72px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 0; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.no-webgl body { background: radial-gradient(120% 80% at 50% 0%, #13202a 0%, var(--ink) 60%); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--bone); color: var(--ink); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }

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


/* Buttons: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .5s var(--ease), background .3s, color .3s; }
.btn--light { background: var(--bone); color: var(--ink); }
.btn--light:hover { transform: translateY(-2px) scale(1.02); background: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); }

/* Bar */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar__logo img { filter: invert(1); width: 140px; height: auto; }
.bar__right { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--mute); }
.demo-pill { position: relative; display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 14px; font: 600 12px/1 var(--sans); color: #0b0b0b;
  background: linear-gradient(90deg, #ff5f6d, #ffc371, #f9f871, #6ee7b7, #60a5fa, #a78bfa, #f472b6, #ff5f6d); background-size: 300% 100%;
  animation: rainbow 6s linear infinite; box-shadow: 0 0 18px rgba(167, 139, 250, .45); cursor: help; }
@keyframes rainbow { to { background-position: 300% 0; } }
.presented__slot { color: var(--bone); font-weight: 500; }
@media (max-width: 640px) { .demo-pill { padding: 6px 10px; font-size: 11px; } .bar__logo img { width: 104px; } .presented { font-size: 11px; } .bar__right { gap: 8px; } }

/* Split text */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .c { display: inline-block; transform: translateY(105%) rotate(6deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 22ms); }

/* 01 Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px var(--pad) 140px; overflow: hidden; }
.hero > :not(.drift) { position: relative; z-index: 2; transform: translateY(calc(var(--hp, 0) * -80px)); opacity: calc(1 - var(--hp, 0) * 1.4); }
.hero__name { font: italic 300 clamp(1.1rem, 1.8vw, 1.5rem) var(--serif); color: var(--mute); margin: 22px 0 0; opacity: 0; transition: opacity 1.2s .7s; }
.hero__title { font: 300 clamp(3.2rem, 11.5vw, 12rem)/.9 var(--serif); letter-spacing: -.035em; margin: 0; max-width: 12ch; font-variation-settings: 'opsz' 144; }
.hero__title em { font-weight: 300; }
.hero__lede { max-width: 34ch; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--mute); margin: 34px auto 34px; opacity: 0; transform: translateY(16px); transition: opacity 1.2s .9s, transform 1.2s .9s var(--ease); }
.hero .btn { opacity: 0; transition: opacity 1.2s 1.1s, transform .5s var(--ease); }
.is-ready .hero__name, .is-ready .hero__lede, .is-ready .hero .btn { opacity: 1; transform: none; }
.is-ready .hero__title .c { transform: none; }
.hero__scroll { position: absolute !important; bottom: 34px; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font: italic 300 15px var(--serif); color: var(--mute); }
.hero__scroll i { width: 1px; height: 44px; background: linear-gradient(var(--bone), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero__hint { position: absolute !important; bottom: 40px; right: var(--pad); margin: 0; font-size: 12px; color: var(--mute); }
@media (pointer: coarse) { .hero__hint { display: none; } }

.drift { position: absolute; inset: 0; z-index: 1; }
.drift__i { position: absolute; left: var(--x); top: var(--y); width: var(--w); translate: -50% -50%; will-change: transform; }
.drift__i img { width: 100%; rotate: var(--r); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) saturate(.9) brightness(.92); animation: bob var(--bob) ease-in-out infinite alternate; opacity: 0; scale: .6; transition: opacity 1.4s var(--delay), scale 1.6s var(--delay) var(--ease), filter .4s; }
.is-ready .drift__i img { opacity: .9; scale: 1; }
.drift__i.is-hot img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) saturate(1.15) brightness(1.08); scale: 1.12; }
.drift__i::after { content: attr(data-name); position: absolute; left: 50%; top: 100%; translate: -50% 6px; font: italic 300 15px var(--serif); white-space: nowrap; opacity: 0; transition: opacity .3s, translate .4s var(--ease); }
.drift__i.is-hot::after { opacity: 1; translate: -50% 14px; }
@keyframes bob { from { transform: translateY(-10px) rotate(-4deg); } to { transform: translateY(12px) rotate(5deg); } }
@media (max-width: 700px) { .drift__i { width: calc(var(--w) * .6); } .drift__i:nth-child(n+7) { display: none; } }

/* 02 Manifesto */
.manifesto { position: relative; height: 200vh; padding: 0 var(--pad); }
.manifesto__text { position: sticky; top: 16vh; max-width: 26ch; margin: 0 auto; font: 300 clamp(1.8rem, min(4.4vw, 6vh), 4.4rem)/1.12 var(--serif); letter-spacing: -.02em; }
.mw { opacity: .14; transition: opacity .5s, color .5s; }
.mw.lit { opacity: 1; }

/* 03 Quiz chapters */
.quiz { position: relative; }
.chap { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--pad); }
.chap__inner { width: 100%; max-width: 1180px; margin: 0 auto; position: relative; }
.chap__q { font: 300 clamp(2.4rem, 6.4vw, 6rem)/.98 var(--serif); letter-spacing: -.03em; margin: 0 0 clamp(36px, 6vh, 64px); max-width: 15ch; position: relative; }
.chap.in .chap__q .c { transform: none; }
.opts { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 920px; }
.opt { position: relative; display: grid; grid-template-columns: 48px 1fr 24px; align-items: center; gap: 12px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: clamp(16px, 2.6vh, 26px) 6px; cursor: pointer; overflow: hidden; opacity: 0; transform: translateY(30px); transition: opacity .9s var(--d), transform 1.1s var(--d) var(--ease); }
.chap.in .opt { opacity: 1; transform: none; }
.opt::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--fam) 28%, transparent), transparent 85%); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); z-index: -1; }
.opt:hover::before, .opt:focus-visible::before, .opt.is-picked::before { transform: scaleX(1); }
.opt__key { font: italic 300 18px var(--serif); color: var(--mute); }
.opt__text { font: 300 clamp(1.25rem, 2.5vw, 2.1rem)/1.15 var(--serif); letter-spacing: -.01em; transition: transform .6s var(--ease), color .3s; }
.opt:hover .opt__text, .opt:focus-visible .opt__text { transform: translateX(12px); }
.opt__dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); justify-self: end; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.opt.is-picked .opt__dot { background: var(--fam); border-color: var(--fam); transform: scale(1.3); box-shadow: 0 0 18px var(--fam); }
.opt.is-picked .opt__text { color: #fff; transform: translateX(12px); }
.opt:focus-visible { outline-offset: -2px; }

/* Ingredient that trails the cursor */
.peek { position: fixed; left: 0; top: 0; width: 160px; z-index: 40; pointer-events: none; opacity: 0; scale: .5; transition: opacity .35s, scale .5s var(--ease); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .6)); }
.peek.is-on { opacity: 1; scale: 1; }

/* Vial */
.vial { position: fixed; right: calc(var(--pad) * .6); top: 50%; z-index: 45; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translate(40px, -50%); opacity: 0; transition: opacity .8s, transform 1s var(--ease); pointer-events: none; }
.vial.is-shown { opacity: 1; transform: translate(0, -50%); }
.vial__glass { position: relative; width: 38px; height: 200px; border: 1px solid rgba(239, 232, 220, .45); border-radius: 19px 19px 19px 19px; overflow: hidden; background: rgba(239, 232, 220, .04); backdrop-filter: blur(6px); box-shadow: inset 6px 0 10px rgba(255, 255, 255, .06); }
.vial__glass::after { content: ''; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.vial__liquid { position: absolute; inset: 0; width: 100%; height: 100%; }
.vial__ticks { position: absolute; inset: 0; display: flex; flex-direction: column-reverse; justify-content: space-evenly; padding: 0 0 0 26px; }
.vial__ticks i { display: block; width: 8px; height: 1px; background: rgba(239, 232, 220, .4); }
.vial__label { margin: 0; font: 500 12px/1 var(--sans); color: var(--mute); }
.vial__label em { font: italic 300 13px var(--serif); }
.vial__lean { margin: 0; font: italic 300 14px var(--serif); writing-mode: vertical-rl; transform: rotate(180deg); color: var(--blend); transition: color 1s; max-height: 200px; }
.vial.is-bump .vial__glass { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.08, .94); } 60% { transform: scale(.97, 1.04); } }
@media (max-width: 760px) {
  .vial { top: auto; bottom: 18px; right: 14px; transform: translateY(30px) scale(.62); transform-origin: bottom right; }
  .vial.is-shown { transform: translateY(0) scale(.62); }
  .vial__lean { display: none; }
}

.droplet { position: fixed; left: 0; top: 0; z-index: 46; width: 16px; height: 20px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 35% 35%, #fff 0 8%, var(--c) 30%, color-mix(in srgb, var(--c) 60%, #000)); box-shadow: 0 0 22px var(--c); pointer-events: none; }

/* 04 The drop */
.drop { position: relative; height: 230vh; }
.drop__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.tank { position: absolute; inset: 0; --surf: 44vh; }
.bottle { position: absolute; left: 50%; top: 0; height: clamp(200px, 34vh, 330px); aspect-ratio: 2 / 3; opacity: 0; z-index: 2; will-change: transform; transform-origin: 50% 50%; }
.bottle.is-photo { aspect-ratio: 439 / 640; }
.bottle__dry, .bottle__wet { position: absolute; inset: 0; }
.bottle__dry svg, .bottle__wet svg, .bottle__dry img, .bottle__wet img { width: 100%; height: 100%; object-fit: contain; }
.bottle__dry { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }
.bottle__wet { filter: url(#refract) brightness(.82) saturate(1.1); transform: translateX(3px) scale(1.025); }
.veil { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to bottom, rgba(40, 80, 140, .14) 0%, rgba(4, 10, 24, .42) 100%); }
.bubbles { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.bubble { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .8) 0 14%, rgba(255, 255, 255, .06) 40%, transparent 70%); animation: rise var(--t) cubic-bezier(.4, 0, .9, .6) forwards; }
@keyframes rise { to { transform: translate(var(--dx), var(--dy)); opacity: .2; } }
.spray { position: fixed; z-index: 30; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%; background: rgba(239, 232, 220, .85); pointer-events: none; animation: spray 1.05s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes spray { 45% { transform: translate(calc(var(--dx) * .55), var(--dy)); } 100% { transform: translate(var(--dx), calc(var(--dy) * -.15)); opacity: 0; } }

.depths { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.depth { position: absolute; left: var(--pad); width: min(30vw, 340px); top: calc(var(--surf) + (100% - var(--surf)) * var(--f)); opacity: 0; transform: translateX(-20px); transition: opacity 1s var(--d), transform 1.2s var(--d) var(--ease); }
.depth::after { content: ''; position: absolute; left: 100%; top: 12px; width: calc(50vw - var(--pad) - min(30vw, 340px) - 9vh); height: 1px; background: linear-gradient(90deg, var(--line), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.4s calc(var(--d) + .2s) var(--ease); }
.depth__layer { display: block; font: 500 13px/1 var(--sans); color: var(--mute); margin-bottom: 8px; }
.depth__notes { display: block; font: italic 300 clamp(1.1rem, 1.8vw, 1.6rem)/1.2 var(--serif); }
.drop.is-revealed .depth { opacity: 1; transform: none; }
.drop.is-revealed .depth::after { transform: scaleX(1); }

.drop__reveal { position: absolute; left: 0; right: 0; top: 0; height: var(--surf, 44vh); z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px var(--pad) 0; pointer-events: none; }
.drop__brand { margin: 10px 0 0; font: 500 14px var(--sans); color: var(--mute); opacity: 0; transition: opacity 1s .7s; }
.drop__title { font: 300 clamp(2.6rem, 8vw, 8rem)/.95 var(--serif); letter-spacing: -.035em; margin: 0; opacity: 0; transform: translateY(40px); filter: blur(10px); transition: opacity 1.2s, transform 1.4s var(--ease), filter 1.2s; }
.drop__family { margin: 14px 0 0; font: italic 300 clamp(1rem, 1.6vw, 1.35rem) var(--serif); color: #c9d4e2; opacity: 0; transition: opacity 1s .5s; }
.drop.is-revealed .drop__title { opacity: 1; transform: none; filter: none; }
.drop.is-revealed .drop__brand, .drop.is-revealed .drop__family { opacity: 1; }
.drop__locked { position: absolute; left: 0; right: 0; top: 0; height: 44vh; z-index: 6; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px var(--pad) 0; }
.drop[data-locked] .drop__locked { display: flex; }
.drop[data-locked] .drop__reveal { display: none; }
.drop__wait { font: 300 clamp(2rem, 5vw, 4.6rem)/1 var(--serif); letter-spacing: -.02em; margin: 0 0 16px; }
.drop__missing { color: var(--mute); margin: 0; }
.drop__missing a { color: var(--bone); }
@media (max-width: 760px) {
  .depth { width: 46vw; }
  .depth::after { display: none; }
  .bottle { left: 72%; height: clamp(180px, 32vh, 280px); }
  .drop__title { font-size: clamp(2.4rem, 11vw, 4rem); }
}

/* Scroll cue under the bottle */
.drop__next { position: absolute; left: 50%; bottom: 26px; z-index: 7; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font: italic 300 17px var(--serif); color: var(--bone); opacity: 0; transition: opacity 1s 1.4s; pointer-events: none; }
.drop__next i { width: 1px; height: 40px; background: linear-gradient(#e7edf5, transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
.drop.is-revealed .drop__next { opacity: 1; pointer-events: auto; }

/* 05 Result: the match rises back out of the water */
.result { position: relative; padding: 12vh var(--pad) 12vh; background: linear-gradient(to bottom, rgba(5, 12, 26, .0), rgba(7, 10, 13, .92) 22%); }
.match { max-width: 1240px; margin: 0 auto 12vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.emerge { position: relative; height: clamp(380px, 76vh, 720px); overflow: hidden; border-radius: 16px; background: radial-gradient(80% 60% at 50% 70%, rgba(60, 100, 160, .22), transparent 70%); }
.emerge__bottle { position: absolute; left: 50%; bottom: 9%; height: 82%; aspect-ratio: 2 / 3; translate: -50% 0; transform: translateY(70%); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)) brightness(.7) saturate(.8); transition: transform 2.2s var(--ease), filter 2.6s .6s; }
.emerge.is-photo .emerge__bottle { aspect-ratio: 439 / 640; }
.emerge__bottle img, .emerge__bottle svg { width: 100%; height: 100%; object-fit: contain; }
.emerge__bottle::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 45%, transparent 60%); background-size: 260% 100%; background-position: 120% 0; mix-blend-mode: soft-light; opacity: 0; transition: opacity .6s 1s; pointer-events: none; -webkit-mask: var(--mask, none); }
.emerge__pool { position: absolute; left: 0; right: 0; bottom: 0; height: 13%; background: linear-gradient(to bottom, rgba(36, 72, 130, .55), rgba(5, 12, 26, .95)); border-top: 1px solid rgba(225, 233, 244, .7); box-shadow: 0 -1px 18px rgba(200, 220, 245, .25); }
.emerge__pool::before { content: ''; position: absolute; left: 20%; right: 20%; top: -1px; height: 1px; background: #fff; opacity: 0; filter: blur(1px); }
.emerge__drips { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.emerge__drips i { position: absolute; left: var(--x); top: var(--y); width: 5px; height: 8px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 35% 30%, #fff, rgba(190, 210, 235, .7) 45%, rgba(120, 160, 210, .2)); opacity: 0; animation: drop-off var(--t) var(--d) cubic-bezier(.55, 0, .9, .5) forwards; }
@keyframes drop-off { 0% { opacity: 0; transform: translateY(0) scale(.6); } 12% { opacity: 1; transform: translateY(4px) scale(1); } 100% { opacity: 0; transform: translateY(46vh) scale(1, 1.4); } }
.result.in .emerge__bottle { transform: translateY(0); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)) brightness(1) saturate(1); }
.result.in .emerge__bottle::after { opacity: 1; animation: sheen 3.2s 1.2s var(--ease) forwards; }
@keyframes sheen { to { background-position: -40% 0; } }
.result.in .emerge__pool::before { animation: splash-line 1.4s .3s ease-out; }
@keyframes splash-line { 0% { opacity: 0; transform: scaleX(.2); } 30% { opacity: 1; } 100% { opacity: 0; transform: scaleX(1.6); } }

.match__copy { opacity: 0; transform: translateX(30px); transition: opacity 1.2s .5s, transform 1.4s .5s var(--ease); }
.result.in .match__copy { opacity: 1; transform: none; }
.match__title { font: 300 clamp(3rem, 7vw, 7rem)/.92 var(--serif); letter-spacing: -.035em; margin: 0 0 12px; }
.match__brand { font: italic 300 clamp(1.1rem, 1.6vw, 1.4rem) var(--serif); color: #c9d4e2; margin: 0 0 26px; }
.match__line { font: 300 clamp(1.15rem, 1.6vw, 1.4rem)/1.4 var(--serif); margin: 0 0 14px; max-width: 36ch; }
.match__wear { color: var(--mute); margin: 0 0 28px; max-width: 46ch; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0 0 30px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; max-width: 560px; }
.specs dt { color: var(--mute); }
.specs dd { margin: 0; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.buy__price { margin: 0; font: 300 clamp(1.8rem, 2.6vw, 2.4rem)/1 var(--serif); }
.buy__size { font: 400 14px var(--sans); color: var(--mute); }
.buy__src { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--mute); }

.result__grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.mix__title { font: 300 clamp(1.7rem, 2.6vw, 2.4rem)/1.05 var(--serif); margin: 0 0 8px; }
.mix__sub { color: var(--mute); margin: 0 0 22px; max-width: 48ch; }
.mix__row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.mix__row:last-child { border-bottom: 1px solid var(--line); }
.mix__thumb { width: 64px; height: 80px; display: grid; place-items: center; }
.mix__thumb img { max-height: 80px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); transition: transform .6s var(--ease); }
.mix__row:hover .mix__thumb img { transform: translateY(-4px) rotate(-3deg); }
.mix__swatch { width: 30px; height: 44px; border-radius: 8px; background: linear-gradient(var(--c), color-mix(in srgb, var(--c) 50%, #000)); }
.mix__name { margin: 0 0 2px; font: 300 clamp(1.1rem, 1.6vw, 1.35rem) var(--serif); }
.mix__meta { margin: 0 0 10px; font-size: 13px; color: var(--mute); }
.mix__row.is-top .mix__meta { color: var(--bone); }
.mix__bar { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; max-width: 320px; }
.mix__bar i { display: block; height: 100%; width: var(--p); background: var(--c); border-radius: 4px; transform: scaleX(0); transform-origin: left; transition: transform 1.6s .4s var(--ease); }
.result.in .mix__bar i { transform: none; }
.mix__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mix__pct { font: 300 22px var(--serif); font-variant-numeric: tabular-nums; }
.mix__link { font-size: 13px; color: var(--bone); text-underline-offset: 3px; }
.capture { border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3vw, 40px); background: rgba(239, 232, 220, .03); backdrop-filter: blur(14px); }
.capture__title { font: 300 clamp(1.6rem, 2.4vw, 2.2rem)/1.05 var(--serif); margin: 0 0 10px; }
.capture__copy { color: var(--mute); margin: 0 0 24px; }
.field__label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.field__input { width: 100%; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(239, 232, 220, .3); background: rgba(0, 0, 0, .25); color: var(--bone); font: 16px var(--sans); }
.field__input:focus { outline: none; border-color: var(--bone); }
.field__input[aria-invalid="true"] { border-color: #f08a6c; }
.field__help { font-size: 13px; color: var(--mute); margin: 8px 0 16px; }
.field__error { font-size: 13px; color: #f4a28a; margin: -8px 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mute); margin: 0 0 22px; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--bone); width: 18px; height: 18px; flex: none; }
.capture-done:focus { outline: none; }
.retake { display: flex; margin: 64px auto 0; }
@media (max-width: 860px) {
  .match, .result__grid { grid-template-columns: 1fr; }
  .emerge { height: 60vh; }
  .mix__row { grid-template-columns: 48px 1fr auto; gap: 12px; }
  .mix__thumb { width: 48px; height: 64px; } .mix__thumb img { max-height: 64px; }
}

/* 06 Families */
.families { position: relative; padding: 14vh 0; }
.families__head { padding: 0 var(--pad); max-width: 1180px; margin: 0 auto 6vh; opacity: 0; transform: translateY(30px); transition: opacity 1s, transform 1.2s var(--ease); }
.families__head.in { opacity: 1; transform: none; }
.families__head h2 { font: 300 clamp(2.2rem, 5vw, 4.8rem)/1 var(--serif); letter-spacing: -.03em; margin: 0; max-width: 17ch; }
.families__track { list-style: none; margin: 0; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 1180px; margin: 0 auto; }
.families.is-horiz { padding: 0; }
.families.is-horiz .families__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.families.is-horiz .families__head { margin: 0 0 4vh; width: 100%; max-width: none; padding-top: 70px; }
.families.is-horiz .families__head h2 { font-size: clamp(2rem, 4vw, 3.6rem); max-width: 22ch; }
.families.is-horiz .families__track { display: flex; gap: 2vw; max-width: none; padding: 0 var(--pad); margin: 0; will-change: transform; width: max-content; }
.families.is-horiz .fam { width: min(440px, 34vw); height: min(56vh, 500px); min-height: 0; flex: none; }
.fam { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 30px; background: rgba(239, 232, 220, .025); backdrop-filter: blur(10px); overflow: hidden; display: flex; flex-direction: column; min-height: 420px; transition: border-color .5s, background .5s, transform .8s var(--ease); }
.fam::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); transform: scaleX(.12); transform-origin: left; transition: transform 1s var(--ease); }
.fam:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 7%, transparent); }
.fam:hover::before { transform: scaleX(1); }
.fam__ings { position: absolute; right: -10px; top: 14px; width: 55%; height: 45%; pointer-events: none; }
.fam__ings img { position: absolute; width: 46%; right: calc(var(--n) * 26%); top: calc(var(--n) * 16%); rotate: calc(var(--n) * 28deg - 20deg); filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .5)); transition: transform 1s var(--ease); }
.fam:hover .fam__ings img { transform: translateY(-10px) rotate(8deg) scale(1.08); }
.fam__name { font: 300 clamp(1.8rem, 2.6vw, 2.6rem)/1 var(--serif); letter-spacing: -.02em; margin: auto 0 6px; padding-top: 40%; }
.fam__family { margin: 0 0 14px; font: italic 300 16px var(--serif); color: var(--c); }
.fam__line { margin: 0 0 18px; color: var(--mute); font-size: 15px; }
.fam__notes { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; }
.fam__notes dt { color: var(--mute); }
.fam__notes dd { margin: 0; }

/* 07 Brands */
.brands { max-width: 1180px; margin: 0 auto; padding: 16vh var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); opacity: 0; transform: translateY(30px); transition: opacity 1s, transform 1.2s var(--ease); }
.brands.in { opacity: 1; transform: none; }
.brands h2 { font: 300 clamp(2rem, 4vw, 3.8rem)/1.02 var(--serif); letter-spacing: -.025em; margin: 0 0 20px; }
.brands__copy p { color: var(--mute); max-width: 42ch; margin: 0 0 28px; }
.brands__points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.brands__points li { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--mute); }
.brands__points strong { color: var(--bone); font-weight: 500; }
@media (max-width: 860px) { .brands { grid-template-columns: 1fr; } }

.foot { padding: 40px var(--pad) 60px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; max-width: 1180px; margin: 0 auto; }

/* Reduced motion: keep the story, drop the movement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .split .c { transform: none; }
  .manifesto { height: auto; padding: 16vh var(--pad); }
  .manifesto__text { position: static; }
  .mw { opacity: 1; }
  .grain { display: none; }
}
