/* HMJ Photography v2: one print, one word, a lot of paper. No italics anywhere. */
:root {
  --paper: #f4f1ea;
  --print: #fbfaf6;
  --ink: #1d1c19;
  --ink-2: #5e584f;
  --ghost: #e4ddd0;
  --line: #d6cfc2;
  --green: #4b5a37;
  --shadow: 0 1px 2px rgba(40, 32, 20, .1), 0 18px 40px -18px rgba(40, 32, 20, .35);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "Inter Tight", system-ui, sans-serif;
  --g: clamp(16px, 3.4vw, 48px);
  --ease: cubic-bezier(.22, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; overflow-x: clip; }
em, i, cite, address { font-style: normal; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
.mono { font-family: var(--mono); font-size: 14px; font-weight: 400; letter-spacing: .01em; }

/* a link that is just words with a hairline that draws */
.u { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.u::after { content: ""; position: absolute; left: 0; right: 0; bottom: 11px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.u:hover::after, .u:focus-visible::after, .u[aria-pressed="true"]::after { transform: scaleX(1); transform-origin: left; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; height: 64px; padding: 0 var(--g); display: flex; align-items: center; justify-content: space-between; transition: color .4s; }
.nav .name { min-height: 44px; display: inline-flex; align-items: center; }
.nav .logo { display: block; height: 21px; aspect-ratio: 5112.52 / 574.611; background: currentColor; -webkit-mask: url(../img/hmj-wordmark.svg) center / contain no-repeat; mask: url(../img/hmj-wordmark.svg) center / contain no-repeat; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 2.6vw, 36px); }
.nav.over { color: #fff; }
/* the way back from a gallery: a drawn arrow that stretches on hover, words that shorten on a phone */
.nav-back { gap: 10px; }
.nav-back svg { width: 22px; height: 10px; flex: none; transition: transform .5s var(--ease); }
.nav-back:hover svg, .nav-back:focus-visible svg { transform: translateX(-5px); }
.nav-back .nb-short { display: none; }
@media (max-width: 600px) { .nav-back .nb-long { display: none; } .nav-back .nb-short { display: inline; } }
.nav.solid { background: var(--nav-bg, rgba(244, 241, 234, .92)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (max-width: 520px) { .nav .hide-sm { display: none; } .nav .logo { height: 16px; } }

/* ---------- the one move: a print in front of a word, which you walk into ---------- */
.intro { height: 250vh; position: relative; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.word { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; pointer-events: none;
  font-family: "Fraunces", var(--serif); font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 30; text-transform: uppercase;
  font-size: min(17vw, 34svh); letter-spacing: -.02em; line-height: 1; color: var(--ghost); white-space: nowrap; }
.word span { display: inline-block; transition: opacity .7s var(--ease); }
.word.swap span { opacity: 0; }
.print { position: absolute; left: 50%; top: 50%; width: var(--zw, 300px); height: var(--zh, 450px); transform: translate(-50%, -50%) scale(var(--s, 1)); background: var(--print); box-shadow: var(--shadow); overflow: hidden; }
.print img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.print::after { content: ""; position: absolute; inset: 0; border: var(--bw, 9px) solid var(--print); opacity: var(--frame, 1); pointer-events: none; }
.print img.develop { animation: develop 1.3s var(--ease) both; }
@keyframes develop {
  0% { opacity: 0; filter: grayscale(1) brightness(1.6) contrast(.4); }
  35% { opacity: 1; filter: grayscale(1) brightness(1.35) contrast(.6); }
  100% { opacity: 1; filter: none; }
}
.moments { position: absolute; left: 0; right: 0; top: calc(50% + var(--ph, 225px) / 2 + 18px); display: flex; justify-content: center; gap: 0 clamp(14px, 2.4vw, 30px); opacity: var(--ui, 1); flex-wrap: wrap; padding: 0 var(--g); }
.moments button { color: var(--ink-2); transition: color .4s; }
.moments button[aria-pressed="true"] { color: var(--ink); }
.foot { position: absolute; left: var(--g); right: var(--g); bottom: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; opacity: var(--ui, 1); }
.foot { justify-content: flex-end; }
/* read by search engines and screen readers, not shown */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.end { position: absolute; left: var(--g); right: var(--g); bottom: 26px; color: #fff; opacity: var(--cap, 0); visibility: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.end p { margin: 0; font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 50; font-size: clamp(34.5px, 5.06vw, 73.6px); line-height: 1.05; max-width: 15ch; }
.scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 16, 10, .45), transparent 42%); opacity: var(--cap, 0); pointer-events: none; }
@media (max-width: 600px) { .foot .u { display: none; } }

/* sections: a small label, then the thing */
.sec { padding: clamp(90px, 13vw, 180px) var(--g) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px clamp(20px, 4vw, 60px); }
.sec > .label { color: var(--ink-2); padding-top: 10px; margin: 0; font-weight: 400; }
@media (max-width: 760px) { .sec { grid-template-columns: 1fr; } }

/* stories: a real room (assets/room/bake-scene.py). Five piles stand in it, one per shoot; her photos sit
   live in their windows (masked to the exact window, shaded by the room's light) and you flick through the one
   in front. main.js scales the room to the section and lays the windows onto their corners. */
.table { position: relative; margin-top: clamp(40px, 6vw, 90px); scroll-margin-top: 64px; }
.tb-label { position: absolute; left: var(--g); top: 22px; margin: 0; font-weight: 400; color: var(--ink-2); z-index: 2; }
.scene { position: relative; overflow: hidden; height: 56vw; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 10%, #000 84%, transparent), linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in; mask: linear-gradient(to bottom, transparent, #000 10%, #000 84%, transparent), linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }
.sc-world { position: absolute; left: 0; top: 0; width: 5504px; height: 3072px; transform-origin: 0 0; isolation: isolate; } /* ios-mem-ok: room pixels, shrunk with zoom (not scale) in main.js fit(); see the crash note there */
.sc-room { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; -webkit-user-drag: none; }
.sc-live { position: absolute; inset: 0; -webkit-mask: url(../img/stories-light-1600.png) 0 0 / 100% 100%; mask: url(../img/stories-light-1600.png) 0 0 / 100% 100%; }
.sc-light { position: absolute; inset: 0; background: url(../img/stories-light-1600.png) 0 0 / 100% 100%; mix-blend-mode: multiply; pointer-events: none; }
@media (min-width: 1100px), (min-resolution: 2dppx) {
  .sc-live { -webkit-mask-image: url(../img/stories-light-2752.png); mask-image: url(../img/stories-light-2752.png); }
  .sc-light { background-image: url(../img/stories-light-2752.png); }
}
.win { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; cursor: pointer; background: none; }
.win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(.94) brightness(1.01); transition: opacity .55s var(--ease); pointer-events: none; -webkit-user-drag: none; }
.win img.out { opacity: 0; }
.win[data-slot="c"] { cursor: grab; }
.win[data-slot="c"]:active { cursor: grabbing; }
.win:focus-visible { outline: 6px solid rgba(255, 255, 255, .8); outline-offset: -6px; }
/* the back of the last print, in the front window: where to go next */
.win .wend { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px; text-align: center; padding: 60px;
  background: #ebe6dc; color: #1d1c19; opacity: 0; transition: opacity .55s var(--ease); pointer-events: none; }
.win .wend.on { opacity: 1; pointer-events: auto; }
.win .wend h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 120px; line-height: 1; }
.win .wend span { font-family: var(--mono); font-size: 46px; color: #5e584f; }
/* the front print, lifted off the pile: a piece of the room itself, with its own live window and light */
.lift { position: absolute; transform-origin: 50% 100%; cursor: grab; touch-action: pan-y; }
.lift:active { cursor: grabbing; }
.lift.cover { visibility: hidden; pointer-events: none; }
.lift.cover.on { visibility: visible; }
.lift-paper { position: absolute; inset: 0; overflow: hidden; isolation: isolate; background: var(--room) var(--ox) var(--oy) / 5504px 3072px no-repeat; } /* ios-mem-ok: inside the zoomed room */
.lift-live { position: absolute; inset: 0; -webkit-mask: url(../img/stories-light-2752.png) var(--ox) var(--oy) / 5504px 3072px no-repeat; mask: url(../img/stories-light-2752.png) var(--ox) var(--oy) / 5504px 3072px no-repeat; } /* ios-mem-ok: inside the zoomed room */
.lift-light { position: absolute; inset: 0; background: url(../img/stories-light-2752.png) var(--ox) var(--oy) / 5504px 3072px no-repeat; mix-blend-mode: multiply; pointer-events: none; } /* ios-mem-ok: inside the zoomed room */
/* pressed into the plaster: wall-coloured letters, a shadow on the upper inside edge, a catch of light on the lower */
.sc-ghost { position: absolute; left: 0; right: 0; top: 330px; display: flex; justify-content: center; pointer-events: none;
  font-family: "Fraunces", var(--serif); font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 30; text-transform: uppercase;
  font-size: 600px; letter-spacing: -.02em; line-height: 1; white-space: nowrap;
  color: rgba(150, 128, 96, .06); text-shadow: 0 -4px 4px rgba(90, 70, 40, .22), 0 6px 4px rgba(255, 255, 255, .7), 4px 12px 16px rgba(255, 252, 245, .4); }
.sc-ghost span { transition: opacity .45s var(--ease), transform .6s var(--ease); }
.sc-ghost.swap span { opacity: 0; transform: translateY(40px); }
/* labels under the side piles and the caption under the front one, placed by main.js in section pixels */
.sc-ui { position: absolute; inset: 0; pointer-events: none; }
.sc-tag { clip: rect(0 0 0 0); overflow: hidden; width: 1px; height: 1px; padding: 0; }
.sc-tag:focus-visible { clip: auto; width: auto; height: auto; }
.sc-tag { position: absolute; transform: translate(-50%, 0); font-size: 15px; color: var(--ink-2); white-space: nowrap; text-transform: capitalize; pointer-events: auto; cursor: pointer;
  background: none; border: 0; padding: 12px 8px; min-height: 44px; transition: color .3s, opacity .5s var(--ease); }
.sc-tag:hover, .sc-tag:focus-visible { color: var(--ink); }
.tb-cap { position: absolute; left: 0; width: 100%; text-align: center; z-index: 2; }
.tb-cap p { margin: 0; }
/* captions handwritten on the prints' white strip, in the room's perspective (room pixels) */
.hand { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; pointer-events: none;
  font-family: "Caveat", "Reenie Beanie", cursive; font-weight: 500; color: #2a3045; line-height: 1; white-space: nowrap; opacity: 0; transition: opacity .6s var(--ease); }
.inked .hand { opacity: .86; }
.hand b { font-weight: 500; font-size: 92px; transform: rotate(-1.2deg); }
.hand i { font-style: normal; font-size: 66px; opacity: .8; transform: rotate(-.8deg); }
.hand i:empty { display: none; }
.hand.side b { font-size: 100px; }
.lift .hand { z-index: 1; }
.cap1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cap1 #cnt { opacity: .7; }
.cap2 { display: flex; justify-content: center; align-items: center; gap: 0 28px; margin-top: 2px !important; font-size: 14px; }
.tb-act { letter-spacing: .01em; font-size: 14px; opacity: .85; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .3s; }
.tb-act:hover, .tb-act:focus-visible { color: var(--ink); text-decoration-color: currentColor; }
@media (max-width: 760px) {
  .scene { -webkit-mask: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); -webkit-mask-composite: source-in;
    mask: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent), linear-gradient(to right, transparent, #000 9%, #000 91%, transparent); mask-composite: intersect; }
  .sc-tag { display: none; }
  .tb-cap { position: static; margin-top: -8px; padding: 0 var(--g); }
}

/* collections: rows of type */
/* prices: no panel of its own; the page tone drifts to eucalyptus as it arrives (tones.js), like every other section */
.prices { color: var(--ink);
  margin-top: clamp(90px, 13vw, 180px); padding: clamp(64px, 8vw, 120px) var(--g) clamp(56px, 7vw, 100px); }
.pr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(44px, 6vw, 84px); }
.pr-head h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 30; font-size: clamp(48px, 6vw, 88px); line-height: .9; letter-spacing: -.02em; }
.pr-head p { margin: 0; color: var(--ink-2); padding-bottom: 6px; }
.pr-group + .pr-group { margin-top: clamp(56px, 7vw, 96px); }
.pr-group h3 { margin: 0 0 18px; font-weight: 500; color: var(--ink-2); }
.pks { display: grid; gap: 14px; }
.pks-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pks-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pk { display: flex; flex-direction: column; padding: 26px 24px 24px; background: rgba(255, 255, 255, .42); border-radius: 2px; }
.pk .n { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3vw, 44px); line-height: 1; }
.pk .t { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.pk .p { margin: 22px 0 0; font-size: 20px; font-weight: 500; letter-spacing: .01em; }
.pk .d { list-style: none; margin: 12px 0 0; padding: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.pk .d li + li { margin-top: 2px; }
.pr-end { display: flex; justify-content: flex-end; margin-top: clamp(40px, 5vw, 64px); }
.fine { color: var(--ink-2); font-size: 14px; margin: 16px 0 0; }
@media (max-width: 1100px) { .pks-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pr-end { justify-content: flex-start; } }
@media (max-width: 640px) { .pks-4, .pks-3 { grid-template-columns: minmax(0, 1fr); } .pk { padding: 22px 20px 20px; } }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.about figure { margin: 0; background: var(--print); padding: 9px; box-shadow: var(--shadow); max-width: 360px; }
.about figure img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.about h2 { margin: 0 0 20px; font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 50; font-size: clamp(46px, 5.75vw, 87.4px); line-height: 1; }
.about p { margin: 0 0 14px; max-width: 46ch; font-size: 17px; }
.about .bits { color: var(--ink-2); margin-top: 22px; line-height: 2; }
.draft { display: inline-block; color: #7d5718; margin-bottom: 16px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about figure { max-width: 240px; } }

/* good to know */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 60px; padding: 12px 0;
  font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 48; font-size: clamp(21.85px, 2.07vw, 26.45px); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 11px; height: 11px; flex: none; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform .45s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; max-width: 64ch; color: var(--ink-2); }

/* enquire */
.ask h2:not(.label) { margin: 0 0 30px; font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 50; font-size: clamp(46px, 6.9vw, 105.8px); line-height: 1; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; max-width: 860px; }
.f { grid-column: span 2; display: grid; }
.f.h { grid-column: span 1; }
.f label { color: var(--ink-2); padding-top: 18px; }
.f input, .f select, .f textarea { font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 6px 0 10px; min-height: 44px; width: 100%; -webkit-appearance: none; appearance: none; transition: border-color .3s; }
.f select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d1c19'/%3E%3C/svg%3E") right 2px center no-repeat; }
.f textarea { min-height: 96px; resize: vertical; }
.f :is(input, select, textarea):focus { outline: none; border-bottom-color: var(--ink); }
.send { grid-column: span 2; justify-self: start; margin-top: 30px; display: inline-flex; align-items: center; gap: 16px; min-height: 48px; font-family: var(--serif); font-weight: 400; font-size: 23px; font-variation-settings: "opsz" 48; }
.send .ln { width: 46px; height: 1px; background: var(--ink); transition: width .6s var(--ease); }
.send:hover .ln, .send:focus-visible .ln { width: 92px; }
.send[aria-disabled="true"] { cursor: progress; color: var(--ink-2); }
.send.busy .ln { animation: sendLn 1.2s var(--ease) infinite alternate; }
@keyframes sendLn { from { width: 46px; } to { width: 92px; } }
@media (prefers-reduced-motion: reduce) { .send.busy .ln { animation: none; width: 92px; } }
.ok { grid-column: span 2; color: var(--green); min-height: 1.6em; margin: 10px 0 0; }
.ok.err { color: #8a3b1d; }
.ok a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ask .alt { margin-top: 30px; color: var(--ink-2); display: flex; gap: 0 28px; flex-wrap: wrap; }
@media (max-width: 520px) { .f.h { grid-column: span 2; } }

/* footer: her wordmark large, then where she is, how to reach her, where to follow her */
footer { margin-top: clamp(100px, 14vw, 180px); padding: clamp(56px, 7vw, 96px) var(--g) 18px; color: var(--ink); }
.fx-mark { display: block; color: var(--ink); }
.fx-mark .logo { display: block; width: 100%; aspect-ratio: 5112.52 / 574.611; background: currentColor; -webkit-mask: url(../img/hmj-wordmark.svg) center / contain no-repeat; mask: url(../img/hmj-wordmark.svg) center / contain no-repeat; }
.fx-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 48px); margin-top: clamp(48px, 6vw, 84px); }
.fx-cols h2 { margin: 0 0 12px; font-weight: 400; color: var(--ink-2); font-size: 14px; }
.fx-cols p { margin: 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.fx-cols p + p { margin-top: 6px; }
.fx-cols .u { position: relative; display: inline-block; min-height: 0; padding: 10px 0; margin: -10px 0; }
.fx-cols .u::after { bottom: 7px; }
.fx-sub { color: var(--ink-2); }
.fx-base { display: flex; justify-content: space-between; align-items: center; gap: 4px 24px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 96px); color: var(--ink-2); font-size: 13px; }
.fx-base a { min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.fx-base a.u::after { bottom: 13px; }
@media (max-width: 900px) { .fx-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fx-cols { grid-template-columns: minmax(0, 1fr); } .fx-base { justify-content: flex-start; } }

/* story pages: a day passing in the colour of the paper */
.story-body { transition: background-color .3s linear; }
.story-top { min-height: 62svh; padding: 120px var(--g) 60px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.story-top h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144, "SOFT" 50; font-size: clamp(59.8px, 11.5vw, 184px); line-height: .95; }
.story-top .meta { color: var(--ink-2); display: flex; gap: 8px 24px; flex-wrap: wrap; }
.frames { display: grid; gap: clamp(90px, 16vh, 180px); padding: 20px var(--g) 140px; }
.frame { margin: 0; display: grid; justify-items: center; gap: 16px; }
.frame .ph { height: min(84svh, 1080px, calc((100vw - 2 * var(--g)) * 1.5)); aspect-ratio: 2 / 3; background: var(--print); padding: 8px; box-shadow: var(--shadow); }
.frame .ph img { width: 100%; height: 100%; object-fit: cover; }
.frame figcaption { color: var(--ink-2); text-align: center; }
.frame .duo { display: flex; gap: clamp(14px, 3vw, 40px); align-items: flex-start; }
.frame .duo .ph { height: min(66svh, 840px, calc((100vw - 2 * var(--g) - 40px) * .75)); }
.frame .duo .ph:nth-child(2) { margin-top: 14vh; }
@media (max-width: 760px) {
  .frame .ph { height: auto; width: 100%; }
  .frame .duo { width: 100%; }
  .frame .duo .ph { height: auto; width: 50%; padding: 5px; }
  .frame .duo .ph:nth-child(2) { margin-top: 70px; }
}
.after { padding: 0 var(--g); display: flex; justify-content: space-between; gap: 0 16px; flex-wrap: wrap; }
.note { color: #7d5718; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .intro { height: 100svh; }
}
.story-body .nav { background: inherit; }
@media (max-width: 599px) { .word { color: #dcd3c3; } }

/* kind words: thank-you notes on the table, each in its own hand, a print of the day tucked behind */
#words { grid-template-columns: 1fr; }
@media (min-width: 761px) { #about > .about { grid-column: 2; } }
.notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); align-items: start; padding-top: clamp(60px, 7vw, 100px); }
/* one real note for now: on its own, centred, in an easy hand (it's a long one) */
.notes.one { grid-template-columns: minmax(0, 470px); justify-content: center; max-width: none; }
.notes.one .nc1 { margin-top: 0; transform: rotate(-1.4deg); }
.notes.one .nc1 .card { font-family: "Caveat", var(--serif); font-size: clamp(23px, 2vw, 28px); color: #26324d; }
.nc { margin: 0; position: relative; transition: transform .7s var(--ease); }
.nc1 { transform: rotate(-2.6deg); margin-top: 24px; }
.nc2 { transform: rotate(1.8deg); margin-top: 90px; }
.nc3 { transform: rotate(-1.2deg); }
.nc4 { transform: rotate(2.2deg); margin-top: 56px; }
.nc:hover { transform: rotate(0deg) translateY(-6px); }
.nc .card { position: relative; isolation: isolate; padding: clamp(26px, 2.6vw, 38px) clamp(22px, 2.2vw, 32px) clamp(22px, 2.2vw, 30px); min-height: 220px;
  background: #fcf9f1; color: #2b2a33; box-shadow: 0 1px 1px rgba(40, 32, 20, .12), 0 14px 30px -14px rgba(40, 32, 20, .4);
  background-image: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .7), transparent 45%), radial-gradient(circle at 85% 90%, rgba(120, 100, 70, .06), transparent 50%); }
.nc .card::after { content: ""; position: absolute; inset: 0; background: #fcf9f1; z-index: -1; }
.nc blockquote { margin: 0; }
.nc p { margin: 0 0 .5em; line-height: 1.25; }
.nc .sig { margin: .7em 0 0; text-align: right; }
.nc1 .card { font-family: "Reenie Beanie", var(--serif); font-size: clamp(25px, 2.2vw, 31px); color: #26324d; }
.nc2 .card { font-family: "Shadows Into Light", var(--serif); font-size: clamp(20px, 1.8vw, 25px); color: #2f2c2a; }
.nc3 .card { font-family: "Kalam", var(--serif); font-size: clamp(18px, 1.55vw, 22px); color: #3a2e2a; line-height: 1.35; }
.nc3 .card p { line-height: 1.35; }
.nc4 .card { font-family: "Caveat", var(--serif); font-size: clamp(22px, 1.9vw, 27px); color: #2c3a33; }
/* a small print of the day taped to the top corner of the card, half off the edge */
.nc .card { padding-top: clamp(64px, 6vw, 84px); }
.nc .pin { position: absolute; z-index: 1; top: 0; width: min(30%, 104px); aspect-ratio: 2 / 3; }
.nc .pin img { display: block; width: 100%; height: 100%; object-fit: cover; border: 4px solid var(--print); box-shadow: 0 1px 1px rgba(40, 32, 20, .15), 0 8px 18px -8px rgba(40, 32, 20, .45); }
.nc1 .pin { right: 7%; transform: translateY(-58%) rotate(6deg); }
.nc2 .pin { left: 9%; transform: translateY(-62%) rotate(-5deg); }
.nc3 .pin { right: 11%; transform: translateY(-55%) rotate(3deg); }
.nc4 .pin { left: 12%; transform: translateY(-60%) rotate(-4deg); }
/* tape across the top edge of the print, holding it to the card */
.nc .tape { position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; margin-left: -32px; background: rgba(231, 220, 192, .8); box-shadow: 0 1px 1px rgba(0, 0, 0, .06); transform: rotate(-7deg); }
.nc2 .tape { transform: rotate(5deg); }
.nc figcaption { margin-top: 16px; color: var(--ink-2); font-size: 13px; letter-spacing: .01em; }
@media (max-width: 1240px) and (min-width: 901px) {
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 140px; max-width: 900px; margin-inline: auto; }
  .nc3 { margin-top: 0; } .nc4 { margin-top: 50px; }
}
@media (max-width: 900px) {
  .notes { grid-template-columns: 1fr; gap: 120px; max-width: 420px; padding-top: 100px; }
  .nc1, .nc2, .nc3, .nc4 { margin-top: 0; }
  .nc2, .nc4 { justify-self: end; width: 92%; }
  .nc .pin { width: 26%; }
  .nc .card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .nc { transition: none; } }

/* the foot of every page: one strip of her film, drawn to the 35mm standard (js/film.js) */
.film { margin-top: clamp(100px, 14vw, 180px); height: clamp(84px, 8.4vw, 128px); overflow: hidden; background: #1a1714; }
.film { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.film.held { cursor: grabbing; }
.film-track { display: flex; width: max-content; height: 100%; will-change: transform; }
.film svg { display: block; height: 100%; width: auto; aspect-ratio: 988 / 35; flex: none; }
.film .fe { font-family: var(--mono); font-size: 1.3px; letter-spacing: .06px; fill: #e6dcc4; opacity: .78; }
.film + footer { margin-top: 0; }

/* evening: the enquiry end of the page (js/tones.js); only what is not already a variable */
.evening .f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f1ebde'/%3E%3C/svg%3E"); }
.f select option { color: #1d1c19; background: #fbfaf6; }
.evening .ok.err { color: #f0a77f; }
.evening ::selection { background: #f1ebde; color: #1f1d1a; }
.evening .f input, .evening .f textarea { color-scheme: dark; }
.evening .draft, .evening .note { color: #e2b872; }

/* real paper round every photo: one Gemini-made blank print (assets/print/make-print.py) worn over the photo.
   The sheet carries the paper, its shadow and the light across the picture, so it sits right on any section colour.
   Paper is 0.7277 wide to tall; the picture sits 4.6% in each side, 3.6% top, 5.4% bottom (assets/print/make-clean-print.py). */
.paper { position: relative; background: none; padding: 0; box-shadow: none; aspect-ratio: .7277; }
/* !important: older card rules (.frame .ph img, .about figure img) stretch the photo to the full box */
.paper > img { position: absolute !important; left: 4.6% !important; top: 3.6% !important; width: 90.8% !important; height: 91% !important; object-fit: cover; display: block; border: 0 !important; box-shadow: none !important; aspect-ratio: auto !important; }
.paper::after { content: ""; position: absolute; left: -6.93%; right: -6.93%; top: -5.04%; bottom: -5.04%; background: url(../img/print-clean-1.webp) 0 0 / 100% 100% no-repeat; pointer-events: none; z-index: 1; }
.about figure.paper { padding: 0; background: none; box-shadow: none; }
.frame .ph.paper { padding: 0; background: none; box-shadow: none; aspect-ratio: .7277; }
/* the paper print is wider than 2:3 and its edge hangs 7% past each side, so cap the height by the screen width (761-900px cut the pair off) */
@media (min-width: 761px) {
  .frame .ph.paper { height: min(84svh, 1080px, calc((100vw - 2 * var(--g)) * 1.2)); }
  .frame .duo .ph.paper { height: min(66svh, 840px, calc((100vw - 2 * var(--g) - 48px) * .6)); }
}
.nc .pin.paper { aspect-ratio: .7277; }
.nc .pin.paper img { border: 0; box-shadow: none; position: absolute; left: 4.6%; top: 3.6%; width: 90.8%; height: 91%; }
.nc .pin.paper .tape { z-index: 2; }
/* the intro print: the same paper, over the photo's edges, fading as you walk into it */
.print::after { border: 0; inset: -5.04% -6.93%; background: url(../img/print-clean-1.webp) 0 0 / 100% 100% no-repeat; }

/* Ellie's note: a real handwritten card (Gemini, assets/print/ellie-t1.png), her photo taped to its corner */
.note-real { position: relative; }
.note-real { container-type: inline-size; }
.note-real .note-img { display: block; width: 100%; height: auto; }
/* Ellie's words, in the same pen and ink as the captions on the Stories prints (.hand) */
.note-hand { position: absolute; left: 6.2%; top: 4.6%; width: 87.5%; height: 90.7%; margin: 0; box-sizing: border-box; padding: 14% 11% 6% 12%;
  font-family: "Caveat", "Reenie Beanie", cursive; font-weight: 500; font-size: 5.2cqw; line-height: 1.14; color: #2a3045; opacity: .86; transform: rotate(-.5deg); }
.note-hand p { margin: 0 0 .75em; line-height: inherit; }
.note-hand p:nth-child(2) { transform: rotate(.35deg); }
.note-hand .thx { margin: -.35em 0 0; }
.note-hand .heart { width: .72em; height: .66em; vertical-align: -.02em; margin-left: .12em; transform: rotate(-8deg); }
.note-hand .sig { margin: .2em 0 0; text-align: right; padding-right: 6%; font-size: 1.15em; transform: rotate(-1.5deg); }
.note-real .pin { top: 4.2%; right: 1%; width: 23%; max-width: none; transform: translateY(-72%) rotate(7deg); }

/* three real notes (11 Nov): Ellie's in the middle, Lucy's and April's either side, same card, same pen.
   The long ones write smaller, the way you would to fit it on */
.notes.three { grid-template-columns: repeat(3, minmax(0, 420px)); justify-content: center; max-width: none; gap: clamp(28px, 3.4vw, 56px); }
.notes.three .nc { margin-top: 0; }
.notes.three .n-lucy { transform: rotate(-2deg); margin-top: 70px; }
.notes.three .n-ellie { transform: rotate(-.8deg); }
.notes.three .n-april { transform: rotate(1.6deg); margin-top: 40px; }
.notes.three .nc:hover { transform: rotate(0deg) translateY(-6px); }
.n-lucy .note-hand { font-size: 3.85cqw; line-height: 1.12; padding-top: 13%; }
.n-april .note-hand { font-size: 4.75cqw; }
.n-lucy .pin { right: auto; left: 2%; transform: translateY(-70%) rotate(-6deg); }
@media (max-width: 1240px) and (min-width: 761px) {
  .notes.three { grid-template-columns: repeat(2, minmax(0, 420px)); row-gap: 110px; }
  .notes.three .n-ellie { grid-column: 1 / -1; justify-self: center; width: min(100%, 420px); order: -1; }
  .notes.three .n-lucy, .notes.three .n-april { margin-top: 0; }
}
@media (max-width: 760px) {
  .notes.three { grid-template-columns: minmax(0, 420px); gap: 110px; }
  .notes.three .n-ellie { order: -1; }
  .notes.three .n-lucy, .notes.three .n-april { margin-top: 0; justify-self: stretch; width: auto; }
}

/* ---- prices (11 Nov, v3): a print per collection, lying on the table ----
   The print is paper, not a panel: off-white with a soft two-rung shadow, a little crooked, straightened when
   you go to pick it up. The name is written on its white strip in the same pen as the Stories prints. */
.pps { display: grid; gap: clamp(28px, 3.4vw, 56px) clamp(22px, 3vw, 48px); align-items: start; }
.pps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pps-3 { grid-template-columns: repeat(3, minmax(0, 300px)); }
.pp { display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.pp-print { position: relative; display: block; padding: 5.5% 5.5% 0; background: #f8f5ee;
  box-shadow: 0 1px 1px rgba(40, 34, 24, .14), 0 16px 28px -16px rgba(40, 34, 24, .42);
  transform: rotate(var(--r, 0deg)); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.pp-print img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pp-name { display: block; text-align: center; padding: 12px 0 16px; font-family: "Caveat", var(--serif); font-weight: 500; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; color: #2a3045; opacity: .88; transform: rotate(-1.4deg); }
.pp1 { --r: -1.8deg; } .pp2 { --r: 1.2deg; } .pp3 { --r: -.8deg; } .pp4 { --r: 1.9deg; }
.pps-3 .pp2 { --r: -1.3deg; } .pps-3 .pp3 { --r: 1.5deg; }
.pp:hover .pp-print, .pp:focus-visible .pp-print { transform: rotate(0deg) translateY(-6px); box-shadow: 0 1px 1px rgba(40, 34, 24, .12), 0 26px 38px -18px rgba(40, 34, 24, .45); }
.pp:focus-visible { outline: none; }
.pp:focus-visible .pp-name { text-decoration: underline; text-underline-offset: 6px; }
.pp-t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 22px 2px 0; font-size: 14px; color: var(--ink-2); }
.pp-t em { font-style: normal; font-size: 20px; font-weight: 500; color: var(--ink); }
.pp ul { list-style: none; margin: 8px 2px 0; padding: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pr-group .fine { margin-top: clamp(26px, 3vw, 40px); }
@media (max-width: 1100px) { .pps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pps-4, .pps-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 18px; } .pp-t { flex-direction: column; gap: 2px; } .pp-t em { font-size: 18px; } .pp-name { font-size: 26px; padding: 8px 0 11px; } }
@media (prefers-reduced-motion: reduce) { .pp-print { transition: none; } }
.f label .opt { color: var(--ink-2); font-weight: 400; }

/* ---- Stories on a phone (Jay picked option A, 12 Nov): one pile from the same room, cropped tight (assets/room/bake-phone.py).
   The room needs the screen to be wide; on a phone it never loads (picture source in index.html) and main.js never builds it.
   Everything here is sized in % and cqw of the pile, never room pixels, so nothing can draw at desktop size on a phone. */
#pp { display: none; }   /* the phone pile; an id, because .pp is also the price prints (class clash hid every price on desktop, fixed 16 Nov) */
@media (max-width: 760px) {
  .table .scene, .table .tb-cap { display: none; }
  #pp { display: block; padding-top: 58px; }
  .pp-pile { position: relative; aspect-ratio: 1760 / 1800; container-type: inline-size; touch-action: pan-y; user-select: none; -webkit-user-select: none;
    -webkit-mask: linear-gradient(to bottom, transparent, #000 8%, #000 86%, transparent), linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-composite: source-in; mask: linear-gradient(to bottom, transparent, #000 8%, #000 86%, transparent), linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; }
  .pp-full { position: absolute; inset: 0; }
  .pp-base { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; -webkit-user-drag: none; }
  .pp-live { position: absolute; inset: 0; -webkit-mask: url(../img/stories-phone-1-light.png) 0 0 / 100% 100%; mask: url(../img/stories-phone-1-light.png) 0 0 / 100% 100%; }
  .pp-live img { position: absolute; left: 24.5%; top: 24.4%; width: 50.1%; height: 49.2%; object-fit: cover; display: block; filter: brightness(.94) contrast(.95); transition: opacity .5s var(--ease); }
  .pp-live img.out { opacity: 0; }
  .pp-light { position: absolute; inset: 0; background: url(../img/stories-phone-1-light.png) 0 0 / 100% 100%; mix-blend-mode: multiply; pointer-events: none; }
  .pp-hand { position: absolute; left: 24.8%; width: 49.5%; top: 73.6%; height: 14%; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none;
    font-family: "Caveat", "Reenie Beanie", cursive; font-weight: 500; color: #2a3045; line-height: 1; white-space: nowrap; transform: rotate(-1deg); }
  .pp-hand b { font-weight: 500; font-size: 6.3cqw; }
  .pp-hand i { font-style: normal; font-size: 4.6cqw; opacity: .8; margin-top: .4cqw; }
  /* the front print: the card cut out of the pile (CARD in bake-phone.py), carrying a full copy of the pile so it lines up exactly */
  .pp-lift { position: absolute; left: 21.08%; top: 21%; width: 56.82%; height: 66.72%; overflow: hidden; cursor: pointer; outline-offset: 4px; }
  .pp-lift > .pp-full { left: -37.1%; top: -31.48%; width: 176%; height: 149.88%; right: auto; bottom: auto; }
  .pp-end { position: absolute; left: 24.5%; top: 24.4%; width: 50.1%; height: 49.2%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; background: #ece6da; color: var(--ink); text-decoration: none; text-align: center; padding: 4cqw; }
  .pp-end strong { font-family: var(--serif); font-weight: 400; font-size: 7cqw; line-height: 1.05; }
  .pp-end span { font-size: 3.6cqw; color: var(--ink-2); }
  .pp-cap { display: flex; justify-content: center; gap: 0 28px; margin: 4px 0 0; }
  .pp-pick { display: flex; gap: 14px; overflow-x: auto; padding: 22px var(--g) 18px; scroll-padding: 0 var(--g); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pp-pick::-webkit-scrollbar { display: none; }
  .pp-pick button { flex: 0 0 74px; scroll-snap-align: start; text-align: center; color: var(--ink-2); font-size: 13px; line-height: 1.25; transition: color .3s; }
  .pp-pick button:not([aria-pressed="true"]) .p { opacity: .78; }
  .pp-pick button .p { display: block; background: #f7f4ee; padding: 5px 5px 14px; margin-bottom: 9px; transform: rotate(var(--r)); transition: transform .35s var(--ease);
    box-shadow: 0 1px 2px rgba(60, 50, 35, .18), 0 6px 14px -6px rgba(60, 50, 35, .25); }
  .pp-pick button img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
  .pp-pick button[aria-pressed="true"] { color: var(--ink); }
  .pp-pick button[aria-pressed="true"] .p { transform: rotate(0) translateY(-6px); }
}
