/* BONEWATER No. 01, round 9 iteration 1.
   Type (round 10, iteration 3): Bodoni Moda (display, OFL, variable optical size): a high-contrast didone whose
   hairlines behave like glass edges catching light; at large optical size it is the perfume-house voice without the
   letterpress roughness the judges read as a glitch. Hanken Grotesk (text): plain, open, readable at 13 px on a phone.
   Two families, no mono.
   Scale (px, desk / phone): 72/48 display, 44/34 headline, 28/24 note, 20/17 lede, 16/15 body, 13 label. */
@font-face { font-family: 'Bodoni'; src: url(fonts/bodoni.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Bodoni'; font-style: italic; src: url(fonts/bodoni-i.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Hanken'; src: url(fonts/hanken.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #0b0a09; --ink2: #171412; --bone: #ece4d3; --bone2: #c9bfad; --amber: #d9892c; --amber2: #e9a24b; --red: #c8261b;
  --pad: clamp(18px, 3.2vw, 44px);
  --f-d: 'Bodoni', 'Didot', 'Bodoni 72', Georgia, serif; --f-t: 'Hanken', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--bone); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--f-t); overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-d); font-weight: 400; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; background: var(--bone); color: var(--ink); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- header: a normal readable menu ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: max(18px, env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) 18px max(var(--pad), env(safe-area-inset-left)); transition: background .3s; }
.top.solid { background: rgba(11, 10, 9, .92); }
.brand { font: 400 26px/1 var(--f-d); text-decoration: none; letter-spacing: -.005em; margin-right: auto; min-height: 44px; display: inline-flex; align-items: center; }
.nav { display: flex; gap: 26px; font-size: 14px; font-weight: 500; letter-spacing: .01em; }
.nav a { text-decoration: none; opacity: .82; padding: 12px 0; border-bottom: 1px solid transparent; transition: opacity .2s, border-color .2s; }
.nav a:hover { opacity: 1; border-color: currentColor; }
.nav-buy { opacity: 1 !important; }
.ctl { display: flex; gap: 10px; align-items: center; }
.sound { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; border-radius: 22px;
  background: transparent; color: var(--bone); border: 1px solid rgba(236, 228, 211, .42); font: 500 13px/1 var(--f-t);
  letter-spacing: .02em; cursor: pointer; transition: border-color .2s, background .2s; }
.sound:hover { border-color: var(--bone); }
.sound:active { background: rgba(236, 228, 211, .12); }
.sound[aria-pressed=true] { border-color: var(--amber); }
.sound svg { width: 22px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.menu-btn { display: none; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 0; background: var(--bone); color: var(--ink);
  font: 600 13px/1 var(--f-t); letter-spacing: .02em; cursor: pointer; }

/* ---------- the film ---------- */
.film { position: relative; height: 420vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #050404 url(frames/d/poster.avif) center/cover no-repeat; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s; }
.grain { position: absolute; inset: 0; background: url(img/grain.png); opacity: .07; pointer-events: none; mix-blend-mode: overlay; }
.ch { position: absolute; z-index: 3; opacity: 0; visibility: hidden; transition: opacity .35s linear, visibility 0s .35s; }
.ch.on { opacity: 1; visibility: visible; transition: opacity .35s linear; }
.ch::before { content: ''; position: absolute; z-index: -1; inset: -70px -110px -60px -90px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(6, 5, 4, .62), rgba(6, 5, 4, 0)); }
/* the intro: small, exact, bottom left; the bottle owns the frame */
.intro { left: var(--pad); bottom: clamp(30px, 7vh, 72px); max-width: 30rem; }
.intro::before { display: none; }
.intro h1 { font-size: 44px; line-height: 1; letter-spacing: -.012em; margin-bottom: 18px; }
.h-no { font-style: italic; color: var(--bone2); }
.lede { font: italic 400 24px/1.25 var(--f-d); color: var(--bone); letter-spacing: -.005em; }
.lede span { display: block; font: 400 13px/1.5 var(--f-t); letter-spacing: .02em; color: var(--bone2); margin-top: 6px; font-style: normal; }
.lede em { font: italic 400 22px/1.2 var(--f-d); color: var(--bone); display: block; margin-bottom: 6px; letter-spacing: 0; }
.hint { position: absolute; z-index: 3; right: var(--pad); bottom: clamp(36px, 9vh, 96px); font-size: 13px; letter-spacing: .04em; color: var(--bone2); transition: opacity .3s; }
.hint::after { content: ''; display: inline-block; width: 1px; height: 26px; background: currentColor; margin-left: 12px; vertical-align: middle; transform-origin: top; animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
/* the notes: each one placed where the frame leaves room, never the same corner twice in a row */
.note { max-width: 22rem; }
.note h2 { font-size: 44px; line-height: 1; letter-spacing: -.012em; margin-bottom: 14px; }
.note p { font-size: 16px; line-height: 1.55; max-width: 32ch; color: var(--bone); }
.n-salt { left: 9vw; top: 24vh; }
.n-salt h2 { font-size: 64px; letter-spacing: -.025em; }
.n-pepper { right: calc(var(--pad) + 9rem); top: 22vh; }
.n-cedar { left: var(--pad); top: 24vh; }
.n-amber { left: var(--pad); top: 24vh; }
.outro { right: var(--pad); bottom: clamp(36px, 10vh, 100px); text-align: right; }
.out-l { font: italic 400 34px/1.1 var(--f-d); margin-bottom: 20px; }
.buy-pill { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 24px; background: var(--bone); color: var(--ink);
  text-decoration: none; font: 600 14px/1 var(--f-t); letter-spacing: .02em; transition: background .2s; }
.buy-pill:hover { background: #f6f1e6; }
.index { position: absolute; z-index: 3; right: var(--pad); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0;
  font-size: 13px; letter-spacing: .02em; transition: opacity .3s; }
.index li { margin: 0; }
.index a { display: block; padding: 7px 0 7px 22px; text-decoration: none; color: var(--bone); opacity: .72; text-shadow: 0 0 12px rgba(0,0,0,.6); position: relative; transition: opacity .2s, color .2s; }
.index a::before { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: currentColor; transition: width .25s; }
.index a:hover { opacity: 1; }
.index a.cur { opacity: 1; color: var(--bone); }
.index a.cur::before { width: 18px; left: -6px; }
.loadbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 4; transition: opacity .6s; }
.loadbar i { display: block; height: 100%; width: 0; background: var(--amber); }

/* ---------- the notes: a light room after the dark one ---------- */
.notes { background: var(--bone); color: var(--ink); padding: clamp(80px, 12vw, 160px) var(--pad) clamp(80px, 10vw, 140px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(12px, 2vw, 28px); row-gap: clamp(40px, 6vw, 88px); }
.notes-head { grid-column: 1 / span 6; }
.notes-head h2 { font-size: clamp(34px, 4.4vw, 72px); line-height: 1.02; letter-spacing: -.015em; margin-bottom: 26px; }
.notes-head h2 em { font-style: italic; }
.notes-head p { font-size: 17px; max-width: 46ch; color: #3b342c; }
.nf { margin: 0; }
.nf img { display: block; width: 100%; height: auto; background: #1a120a; }
.nf figcaption { margin-top: 12px; font-size: 14px; color: #3b342c; }
.nf figcaption b { font: 400 20px/1 var(--f-d); color: var(--ink); margin-right: 4px; }
.nf-salt { grid-column: 1 / span 7; }
.nf-pepper { grid-column: 9 / span 4; grid-row: span 2; align-self: start; margin-top: -18vw; }
.nf-pepper img { aspect-ratio: 9 / 13; object-fit: cover; }
.nf-cedar { grid-column: 2 / span 5; }
.nf-amber { grid-column: 7 / span 6; margin-top: 8vw; }

/* ---------- the bottle: one full-bleed photograph, the copy set in its dark half ---------- */
.bottle { position: relative; background: #050404; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.b-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.b-copy { position: relative; z-index: 1; width: min(28rem, 100%); margin: 0 var(--pad) clamp(48px, 9vh, 110px) auto; }
.bottle::after { content: ''; position: absolute; inset: 0 0 0 45%; background: linear-gradient(to right, rgba(5,4,4,0), rgba(5,4,4,.72) 45%); pointer-events: none; }
.b-copy h2 { font-size: clamp(64px, 7.4vw, 112px); line-height: .9; letter-spacing: -.03em; margin-bottom: 22px; }
.b-lead { font-size: 17px; color: var(--bone2); max-width: 36ch; margin-bottom: 30px; }
.price { font: 400 15px/1 var(--f-t); letter-spacing: .02em; color: var(--bone2); margin-bottom: 18px; display: flex; gap: 14px; align-items: baseline; }
.price span { font: 400 40px/1 var(--f-d); color: var(--bone); font-variant-numeric: lining-nums; }
.cta { min-height: 52px; width: 100%; border: 0; border-radius: 26px; background: var(--bone); color: var(--ink); font: 600 15px/1 var(--f-t);
  letter-spacing: .02em; cursor: pointer; transition: background .2s, transform .1s; }
.cta:hover { background: var(--amber2); }
.cta:active { transform: scale(.985); }
.cta-note { margin-top: 12px; font-size: 13px; color: var(--bone2); opacity: 0; transition: opacity .3s; }
.cta-note.on { opacity: 1; }
.foot { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; padding: 28px var(--pad) 36px;
  border-top: 1px solid rgba(236, 228, 211, .14); font-size: 13px; color: var(--bone2); }
.f-brand { font: 400 22px/1 var(--f-d); color: var(--bone); }

/* ---------- phone: redrawn, not squeezed ---------- */
@media (max-width: 760px) {
  .top { padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); gap: 10px; }
  .brand { font-size: 22px; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px; padding: 0 24px;
    background: var(--ink); font: 400 40px/1.1 var(--f-d); letter-spacing: -.01em; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
  .nav a { opacity: 1; padding: 10px 0; border: 0; }
  .menu-open .nav { opacity: 1; visibility: visible; transition: opacity .25s; }
  .menu-btn { display: inline-flex; align-items: center; }
  .sound { padding: 0 12px; }
  .sound span { font-size: 12px; }
  .film { height: 400vh; }
  .stage { background-image: url(frames/p/poster.avif); }
  .intro { left: 18px; right: 18px; bottom: 34px; }
  .lede { font-size: 21px; }
  .hint { display: none; }
  .note, .outro { left: 18px !important; right: 18px !important; top: auto !important; bottom: 30px !important; max-width: none; text-align: left; }
  .note::before, .intro::before, .outro::before { content: ''; position: absolute; z-index: -1; left: -18px; right: -18px; bottom: -30px; height: 150%;
    background: linear-gradient(to top, rgba(8, 6, 5, .78), rgba(8, 6, 5, 0)); }
  .note h2 { font-size: 34px; margin-bottom: 10px; }
  .note p { font-size: 15px; }
  .out-l { font-size: 28px; }
  .index { display: none; }
  .notes { grid-template-columns: repeat(6, 1fr); }
  .notes-head { grid-column: 1 / -1; }
  .nf-salt { grid-column: 1 / -1; }
  .nf-pepper { grid-column: 3 / -1; grid-row: auto; margin-top: 0; }
  .nf-cedar { grid-column: 1 / span 5; }
  .nf-amber { grid-column: 2 / -1; margin-top: 0; }
  /* phone: the photograph on top at its own crop, the copy below it on black (not squeezed over the bottle) */
  .bottle { display: block; min-height: 0; padding-bottom: 56px; }
  .b-img { position: relative; height: 70svh; object-position: 50% 50%; }
  .b-copy { margin: 28px 0 0; padding: 0 18px; width: auto; }
  .bottle::after { display: none; }
  .b-copy h2 { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ch, .ch.on { transition: none; }
  .hint::after { animation: none; }
}

/* ---------- the signature type moment: the name diffuses like cream dropped in the juice (round 10) ----------
   Motion personality (see directions/I.md): slow and sensual. Nothing snaps: every value is a continuous function of
   the scroll, the letters rise like a plume from the centre outward, and the scroll back re-forms them exactly. */
.fx { position: absolute; width: 0; height: 0; overflow: hidden; }
.inkword { position: absolute; z-index: 2; left: 9vw; top: 50%; margin: 0; transform: translateY(-58%);
  font: 400 clamp(76px, 15.5vw, 236px)/.9 var(--f-d); letter-spacing: -.028em; color: var(--bone); white-space: nowrap;
  pointer-events: none; opacity: 0; will-change: opacity; }
.inkword.live { filter: url(#ink); }
.inkword span { display: inline-block; will-change: transform; }
.note h2.inking { filter: url(#ink2); }
@media (max-aspect-ratio: 1/1) { .inkword { left: 6vw; top: 44%; font-size: clamp(64px, 19vw, 150px); } }
@media (prefers-reduced-motion: reduce) { .inkword { filter: none; } .note h2.inking { filter: none; } }
/* prices and the phone menu: a lower optical size so the hairlines (the 4's crossbar) survive at a glance */
.price span, .nav-buy { font-variation-settings: 'opsz' 14; font-weight: 500; }
@media (max-width: 820px) { .nav { font-variation-settings: 'opsz' 18; font-weight: 450; } }
@media (max-width: 820px) { .grain { mix-blend-mode: normal; opacity: .045; inset: 0; } }

/* ---------- the formula sheet: a hairline ring pinned to each note in the juice (positions from the real camera,
   tools/i_track.py), a leader, and the note's place in the formula; drawn on by the scroll as the chapter opens ---------- */
.anno { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.anno circle, .anno path { fill: none; stroke: var(--bone); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .9; }
.anno-t { position: absolute; z-index: 2; left: 0; top: 0; margin: 0; pointer-events: none; white-space: nowrap; opacity: 0;
  font: italic 400 19px/1.1 var(--f-d); color: var(--bone); text-shadow: 0 0 14px rgba(0,0,0,.5); will-change: transform, opacity; }
.anno-t b { display: block; font: 500 11px/1.4 var(--f-t); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--bone2); margin-top: 4px; }
@media (max-width: 820px) { .anno-t { font-size: 17px; } }

/* ---------- the closer: a three-question scent finder that ends in a sample set ----------
   Amber is the one colour that means "tap this" (the buy and send buttons); everything else is bone on off-black. */
.cta, .buy-pill, .nav-buy { --tap: 1; }
.cta { background: var(--amber); color: #120d08; }
.buy-pill { background: var(--amber); color: #120d08; }
.finder { background: #0f0d0b; padding: clamp(80px, 11vw, 150px) var(--pad); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(12px, 2vw, 28px); row-gap: 48px; }
.f-head { grid-column: 1 / span 5; }
.f-head h2 { font-size: clamp(38px, 4.6vw, 72px); line-height: 1; letter-spacing: -.02em; margin-bottom: 22px; }
.f-head p { color: var(--bone2); max-width: 40ch; font-size: 17px; }
.f-q, .f-res { grid-column: 7 / -1; align-self: end; }
.f-q { position: relative; min-height: 300px; }
.f-step { border: 0; margin: 0; padding: 0; position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1), visibility 0s .6s; }
.f-step.on { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }
.f-step legend { font: 400 clamp(26px, 2.6vw, 38px)/1.15 var(--f-d); letter-spacing: -.01em; margin-bottom: 26px; padding: 0; }
.f-n { display: block; font: 500 13px/1.4 var(--f-t); letter-spacing: .04em; color: var(--bone2); margin-bottom: 12px; }
.f-opts { display: grid; gap: 10px; }
.f-opts button { min-height: 58px; text-align: left; padding: 0 22px; border-radius: 29px; border: 1px solid rgba(236,228,211,.32); background: transparent;
  color: var(--bone); font: 400 17px/1.2 var(--f-t); cursor: pointer; transition: border-color .25s, background .25s; }
.f-opts button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.f-opts button:active { background: rgba(236,228,211,.08); }
@media (hover: hover) { .f-opts button:hover { border-color: var(--bone); background: rgba(236,228,211,.05); } }
.f-res-k { font: 500 13px/1.4 var(--f-t); letter-spacing: .04em; color: var(--bone2); margin-bottom: 18px; }
.vials { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 26px); }
.vial { text-align: center; }
.vial-g { position: relative; width: 58px; height: 168px; margin: 0 auto 18px; border-radius: 10px 10px 16px 16px;
  background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.03) 30%, rgba(255,255,255,.02) 70%, rgba(255,255,255,.14));
  box-shadow: inset 0 0 0 1px rgba(236,228,211,.35), 0 18px 40px rgba(0,0,0,.45); overflow: hidden; }
.vial-g::before { content: ''; position: absolute; left: 50%; top: -1px; width: 30px; height: 26px; transform: translateX(-50%); background: #16120f;
  border-radius: 4px 4px 2px 2px; box-shadow: inset 0 0 0 1px rgba(236,228,211,.25); z-index: 2; }
.vial-l { position: absolute; left: 3px; right: 3px; bottom: 3px; height: 0; border-radius: 4px 4px 13px 13px; background: var(--c);
  box-shadow: inset 6px 0 10px rgba(255,255,255,.18), inset -4px 0 8px rgba(0,0,0,.25); transition: height 1.6s cubic-bezier(.22,.61,.36,1); }
.f-res.on .vial-l { height: 78%; }
.vial:nth-child(2) .vial-l { transition-delay: .25s; } .vial:nth-child(3) .vial-l { transition-delay: .5s; }
.vial h3 { font-size: 24px; line-height: 1.05; letter-spacing: -.01em; margin-bottom: 6px; }
.vial h3 small { display: block; font: 500 12px/1.4 var(--f-t); color: var(--bone2); letter-spacing: .04em; margin-bottom: 4px; }
.vial p { font-size: 14px; line-height: 1.45; color: var(--bone2); }
.f-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.f-price { margin: 0; font-size: 15px; color: var(--bone2); display: flex; gap: 12px; align-items: baseline; }
.f-price span { font: 500 34px/1 var(--f-d); color: var(--bone); font-variation-settings: 'opsz' 14; }
.f-send { width: auto; padding: 0 30px; }
.f-again { min-height: 48px; padding: 0 6px; background: none; border: 0; color: var(--bone2); font: 500 14px/1 var(--f-t); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.f-done { margin-top: 26px; font: italic 400 22px/1.3 var(--f-d); }
.f-done small { display: block; margin-top: 8px; font: 400 13px/1.5 var(--f-t); font-style: normal; color: var(--bone2); }
@media (max-width: 1100px) { .f-head { grid-column: 1 / span 6; } .f-q, .f-res { grid-column: 7 / -1; } }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; } .f-head, .f-q, .f-res { grid-column: 1; } .f-q { min-height: 290px; } }
@media (max-width: 420px) { .vial-g { width: 50px; height: 146px; } .vial h3 { font-size: 20px; } .vial p { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .f-step, .vial-l { transition: none !important; } }
@media (min-width: 901px) { .vial-g { width: 78px; height: 228px; } .vial-g::before { width: 38px; height: 32px; } .vial h3 { font-size: 30px; } }

/* ---------- iPad portrait (761 to 1100 wide, portrait): its own layout, not a stretched phone or a squeezed desk ---------- */
@media (max-aspect-ratio: 1/1) { .stage { background-image: url(frames/p/poster.avif); } }
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .top { padding: max(20px, env(safe-area-inset-top)) 32px 20px; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 6px; padding: 0 64px;
    background: var(--ink); font: 400 64px/1.05 var(--f-d); letter-spacing: -.015em; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
  .nav a { opacity: 1; padding: 12px 0; border: 0; }
  .menu-open .nav { opacity: 1; visibility: visible; transition: opacity .25s; }
  .menu-btn { display: inline-flex; align-items: center; }
  .intro { left: 40px; bottom: 56px; }
  .lede { font-size: 30px; }
  .note { max-width: 30rem; }
  .n-salt, .n-pepper, .n-cedar, .n-amber { left: 40px !important; right: auto !important; top: auto !important; bottom: 7svh !important; }
  .note h2, .n-salt h2 { font-size: 56px; }
  .note p { font-size: 18px; }
  .index { right: 32px; }
  .inkword { font-size: 17vw; left: 7vw; top: 40%; }
  .bottle { display: block; min-height: 0; padding-bottom: 80px; }
  .b-img { position: relative; height: 70svh; object-position: 40% 50%; }
  .bottle::after { display: none; }
  .b-copy { margin: 40px 0 0 40px; width: min(36rem, calc(100% - 80px)); }
  .f-head h2 { font-size: 64px; }
  .vial-g { width: 84px; height: 240px; }
}
.index { display: none !important; }

/* touch: native snapping onto the film's beats (markers placed by the script), proximity so the rest of the page scrolls freely */
.snapm { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: normal; }
html.snapy { scroll-snap-type: y proximity; }
@media (prefers-reduced-motion: reduce) { html.snapy { scroll-behavior: auto; } }
@media (max-aspect-ratio: 1/1) { .stage { background-image: url(frames/p/poster.avif); } }

/* iteration 5: the first line clear of the bottom edge, on a soft scrim; the ink word above the subject, not over it;
   the bottle photograph framed so the label is whole; a different glass for each scent */
.intro { bottom: clamp(56px, 13vh, 130px); }
.stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(10,9,8,.62), rgba(10,9,8,0)); opacity: var(--scrim, 1); transition: opacity .4s; }
.lede span { color: #d9d0bf; font-size: 14px; }
.inkword { top: 27%; }
@media (max-aspect-ratio: 1/1) { .inkword { top: 20%; } }
.b-img { object-position: 12% 50%; }
@media (max-width: 760px), (max-aspect-ratio: 1/1) { .b-img { object-position: 50% 60%; } }
.vial:nth-child(1) .vial-g { border-radius: 6px 6px 10px 10px; }
.vial:nth-child(2) .vial-g { border-radius: 30px 30px 14px 14px; width: 66px; }
.vial:nth-child(3) .vial-g { border-radius: 2px; width: 50px; height: 184px; }
@media (min-width: 901px) { .vial:nth-child(2) .vial-g { width: 88px; } .vial:nth-child(3) .vial-g { width: 68px; height: 248px; } }
.vial:nth-child(2) .vial-g::before { border-radius: 50% 50% 3px 3px; }
.vial:nth-child(3) .vial-g::before { width: 22px; height: 34px; }
@media (min-aspect-ratio: 1/1) and (min-width: 761px) { .b-img { transform: translateX(-20%); } }
@media (min-aspect-ratio: 1/1) and (min-width: 761px) { .b-img { -webkit-mask-image: linear-gradient(to right, #000 62%, transparent 79%); mask-image: linear-gradient(to right, #000 62%, transparent 79%); } }
@media (max-aspect-ratio: 1/1) { .stage { background-image: url(frames/p/poster.avif); } }

/* ================= smooth pass (2026-11-22): nothing costly paints over the moving film on touch screens ================= */
@media (pointer: coarse), (max-width: 820px) {
  .grain { mix-blend-mode: normal; opacity: .045; }
  .inkword.live, .note h2.inking { filter: none; }
}
