body { margin: 0; }
/* Layout: an album opened on a sage table. Sage-lit bands alternate with paper bands; gold appears only where the leaf would. */
:root {
  --sage-bg: url("images/sage-bg.webp");   /* the branded sage background */
  --bg: #E8E7D4;          /* paper */
  --surface: #D5DAC2;     /* sage band */
  --surface-2: #F1F0E2;   /* lifted paper */
  --heading: #2C4129;     /* forest wordmark green */
  --fg: #33432F;
  --fg-muted: #5E6C57;
  --accent: #B3924F;      /* leaf gold, large marks */
  --accent-ink: #80652C;  /* gold for small text */
  --rule: rgba(44, 65, 41, .18);
  --btn-bg: #2C4129;
  --btn-fg: #F1F0E2;
  --hero-img-opacity: 1;
  --hero-veil: rgba(232, 231, 212, 0);
  /* the album itself is a physical object: same paper in both themes */
  --page: #FFFFFF;
  --page-ink: #3B4A36;
  --page-shadow: rgba(30, 44, 28, .28);
  --sepia-1: #C9B48E; --sepia-2: #8E7553; --sepia-3: #5A4935;

  --font-display: "Libre Caslon Display", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Jost", "Futura", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-caption: "Cormorant Garamond", "Garamond", Georgia, serif;

  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.3rem; --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem); --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --measure: 62ch;
  --wrap: 1180px;
}
/* one look only: the approved light brand, whatever the device is set to */
:root { color-scheme: only light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; }}
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-weight: 300; font-size: var(--step-0); line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--heading); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.band { padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wrap { max-width: var(--wrap); margin-inline: auto; }
.eyebrow { font-family: var(--font-body); font-weight: 500; font-size: .75rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent-ink); }
.lede { font-size: var(--step-1); line-height: 1.55; max-width: 34ch; color: var(--fg); }
.section-head { display: grid; gap: 1rem; max-width: 46rem; }
.section-head p:not(.eyebrow) { max-width: var(--measure); color: var(--fg-muted); }

.btn {
  display: inline-flex; align-items: center; gap: .6rem; justify-content: center;
  font: 500 .8125rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  padding: 1.05rem 1.6rem; border-radius: 999px; border: 1px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--heading); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--heading); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand-word { display: grid; line-height: 1; }
.brand-word b { font: 400 1.55rem/1 var(--font-display); color: var(--heading); }
.brand-word small { font: 400 .55rem/1 var(--font-body); letter-spacing: .55em; color: var(--accent-ink); margin-top: .3rem; padding-left: .1em; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { text-decoration: none; font-size: .9rem; font-weight: 400; color: var(--fg-muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--heading); }
.nav .btn { padding: .8rem 1.2rem; font-size: .72rem; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; }}
/* Phone menu: a menu button opens the links as a panel under the header (desktop never sees either) */
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px -6px 0; padding: 0; background: none; border: 0; color: var(--heading); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .nav-toggle i, .nav-toggle i::before, .nav-toggle i::after { display: block; width: 22px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .3s ease, background-color .2s; }
  .nav-toggle i { position: relative; }
  .nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; }
  .nav-toggle i::before { top: -7px; } .nav-toggle i::after { top: 7px; }
  .site-header.menu-open .nav-toggle i { background-color: transparent; }
  .site-header.menu-open .nav-toggle i::before { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .nav-toggle i::after { transform: translateY(-7px) rotate(-45deg); }
  .site-header .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: .25rem 1.5rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .35);
    max-height: calc(100dvh - 100%); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease, visibility 0s .25s; }
  .site-header.menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .site-header .nav a:not(.btn) { display: block; padding: 1rem 0; font-size: 1.05rem; color: var(--heading); border-bottom: 1px solid var(--rule); }
  .site-header .nav a[href="#album/build"] { color: var(--accent-ink); }
  .site-header .nav a.nav-login { border-bottom: 0; }}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--sage-bg) center / cover no-repeat;
  opacity: var(--hero-img-opacity);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-veil); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: center; padding-block: clamp(3.5rem, 8vw, 7rem);
}
.hero-copy { display: grid; gap: 1.6rem; min-width: 0; }
.hero h1 { font-size: var(--step-4); }
.hero h1 em { font-family: var(--font-caption); font-style: italic; font-weight: 400; color: var(--accent-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; padding-top: .4rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; }}

/* The open album */
.album { position: relative; perspective: 1600px; min-width: 0; }
.spread {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 1.55; max-width: 100%;
  background: var(--page); border-radius: 4px 4px 6px 6px;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 30px 60px -20px var(--page-shadow), 0 12px 24px -12px var(--page-shadow);
  transform: rotateX(14deg) rotateZ(-2deg); transform-origin: center bottom;
  animation: settle 1.4s cubic-bezier(.2,.7,.2,1) backwards;
}
.spread::after { /* the gutter */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 16%; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(60,50,30,.10) 42%, rgba(60,50,30,.22) 50%, rgba(60,50,30,.10) 58%, transparent);
}
.print {
  position: relative; background: #FFFFFF; padding: 5% 5% 14%; box-shadow: 0 2px 6px rgba(40,30,15,.18);
  animation: drop .9s cubic-bezier(.2,.7,.2,1) backwards;
}
.print .img {
  aspect-ratio: var(--ar, 4/5); max-width: 100%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2 0 0 0 0 .15 0 0 0 0 .1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    var(--scene);
  filter: sepia(.35) contrast(.95);
}
.print figcaption { position: absolute; left: 0; right: 0; bottom: 2%; text-align: center; font: italic 400 clamp(.6rem, .9vw, .85rem)/1.2 var(--font-caption); color: var(--page-ink); }
.print::before, .print::after { /* photo corners */
  content: ""; position: absolute; width: 14%; aspect-ratio: 1; background: linear-gradient(135deg, var(--sepia-3) 50%, transparent 50%); opacity: .75;
}
.print::before { top: -2%; left: -2%; }
.print::after { bottom: -2%; right: -2%; transform: rotate(180deg); }
.p1 { --scene: radial-gradient(60% 45% at 50% 38%, #E4D3AF 0 30%, transparent 70%), linear-gradient(180deg, var(--sepia-1) 0 55%, var(--sepia-2) 55% 75%, var(--sepia-3)); transform: rotate(-3deg) translateZ(28px); animation-delay: .5s; }
@keyframes settle { from { transform: rotateX(32deg) rotateZ(-4deg) translateY(30px); opacity: .6; } }
@keyframes drop { from { translate: 0 -10px; opacity: .4; } }

/* ---------- Promise strip ---------- */
.promise { background: var(--surface); border-block: 1px solid var(--rule); }
.promise ul { list-style: none; margin: 0 auto; padding: 1.4rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.promise li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--fg); }
.promise li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Sections ---------- */
section.block { padding-block: clamp(4.5rem, 9vw, 8rem); }
section.block.sage { background: var(--surface); }
.block h2, #col-title { font-size: var(--step-3); }

/* Occasions */
.occasions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 3.5rem; border-top: 1px solid var(--rule); }
.occasion { padding: 2rem 2rem 2.2rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: .6rem; align-content: start; min-width: 0; }
.occasion:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid var(--rule); }
.occasion h3 { font-size: var(--step-2); }
.occasion p { color: var(--fg-muted); font-size: .98rem; }
.occasion .ex { font: italic 400 1.05rem/1.3 var(--font-caption); color: var(--accent-ink); }
.occasion .pages { justify-self: start; margin-top: .3rem; font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-muted); border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .75rem; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .occasions { grid-template-columns: 1fr; }
  .occasion, .occasion:not(:nth-child(3n+1)) { padding: 1.6rem 0; border-left: 0; }}

/* Process */
.process { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.process .section-head { position: sticky; top: 6.5rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1rem; padding: 1.8rem 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step, upper-roman) "."; font: 400 1.6rem/1.1 var(--font-display); color: var(--accent-ink); }
.steps h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 500; letter-spacing: .01em; margin-bottom: .45rem; }
.steps p { color: var(--fg-muted); max-width: 54ch; }
.steps .meta { margin-top: .6rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } .process .section-head { position: static; } .steps li { grid-template-columns: 3rem minmax(0, 1fr); }}

/* Craft / specification sheet */
.craft { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.spec { background: var(--surface-2); border: 1px solid var(--rule); padding: clamp(1.4rem, 3vw, 2.5rem); min-width: 0; }
.spec header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--heading); flex-wrap: wrap; }
.spec header h3 { font-size: var(--step-2); }
.spec header span { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-muted); }
.spec-group { padding-top: 1.4rem; display: grid; gap: .3rem; }
.spec-group h4 { margin: 0; font: italic 400 1.35rem/1.2 var(--font-caption); color: var(--accent-ink); }
.spec dl { margin: 0; display: grid; }
.spec dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; padding: .65rem 0; border-bottom: 1px dotted var(--rule); align-items: baseline; }
.spec dt { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); }
.spec dd { margin: 0; color: var(--heading); font-variant-numeric: tabular-nums; }
.spec dd + dd { color: var(--fg-muted); text-align: right; }
.binding { list-style: none; margin: 0; padding: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.binding li { border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .95rem; color: var(--heading); font-size: .95rem; }
.craft-copy { display: grid; gap: 1.4rem; }
.craft-copy p:not(.eyebrow) { color: var(--fg-muted); max-width: var(--measure); }
.quote { font: italic 400 var(--step-2)/1.3 var(--font-caption); color: var(--heading); border-left: 1px solid var(--accent); padding-left: 1.4rem; max-width: 30ch; }
@media (max-width: 860px) { .craft { grid-template-columns: 1fr; }}

/* Collections */
.collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 3.5rem; align-items: stretch; }
.tier { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 1rem; padding: 2.2rem 2rem; border: 1px solid var(--rule); background: var(--bg); min-width: 0; }
.tier h3 { font-size: var(--step-3); }
.price { font: 400 var(--step-1)/1 var(--font-display); color: var(--heading); font-variant-numeric: tabular-nums; }
.price small { font: 300 .85rem var(--font-body); color: inherit; opacity: .75; }
.tier p { color: var(--fg-muted); font-size: .96rem; }
.tier ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .55rem; align-content: start; }
.tier li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); font-size: .95rem; color: var(--fg); }
.tier li::before { content: "—"; color: var(--accent-ink); }
.tier .btn { margin-top: 1rem; width: 100%; }
.fine { margin-top: 1.6rem; font-size: var(--step--1); color: var(--fg-muted); max-width: var(--measure); }
@media (max-width: 960px) { .collections { grid-template-columns: 1fr; max-width: 34rem; }}

/* Safekeeping */
.care { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; }
.care div { display: grid; gap: .5rem; align-content: start; padding-top: 1.2rem; border-top: 1px solid var(--accent); min-width: 0; }
.care h3 { font: 500 1rem/1.3 var(--font-body); color: var(--heading); }
.care p { font-size: .95rem; color: var(--fg-muted); }
@media (max-width: 960px) { .care { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 560px) { .care { grid-template-columns: 1fr; }}

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); }
.faq details { border-top: 1px solid var(--rule); padding: 1.3rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq .faq-more { margin-top: clamp(1.4rem, 3vh, 2rem); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font: 400 var(--step-1)/1.3 var(--font-display); color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; color: var(--accent-ink); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .8rem; color: var(--fg-muted); max-width: 60ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; }}
form.card { background: var(--surface-2); border: 1px solid var(--rule); padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; box-shadow: 0 30px 60px -40px var(--page-shadow); min-width: 0; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 300 1rem/1.4 var(--font-body); color: var(--heading);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule); padding: .55rem 0; border-radius: 0;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%), linear-gradient(-45deg, transparent 50%, var(--fg-muted) 50%); background-position: right 6px center, right 0 center; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--surface-2); color: var(--heading); }
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form-done { grid-column: 1 / -1; padding: 1rem 1.2rem; border-left: 2px solid var(--accent); background: var(--bg); color: var(--heading); }
@media (max-width: 520px) { form.card { grid-template-columns: 1fr; }}

/* Footer */
footer { background: var(--surface); border-top: 1px solid var(--rule); }
footer .wrap { padding-block: 3.5rem 2.5rem; display: grid; gap: 2.5rem; }
footer .foot-bar { background: var(--btn-bg); color: var(--btn-fg); }
footer .foot-bar .wrap { padding-block: 1.6rem; display: flex; align-items: center; gap: 1.2rem clamp(1.5rem, 4vw, 3rem); font-size: .71rem; }
.foot-co { display: grid; gap: .3rem; line-height: 1.45; font-style: normal; }
.foot-co b { font-weight: 500; letter-spacing: .02em; margin-bottom: .3rem; }
.foot-bar a { color: inherit; }
.foot-map { position: relative; display: block; flex: 0 0 auto; width: 320px; height: 160px; border-radius: 10px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--btn-fg) 30%, transparent); }
.foot-map img { display: block; width: 100%; height: 100%; object-fit: cover; }
.foot-map svg { position: absolute; left: 50%; top: 50%; width: 26px; height: 34px; translate: -50% -100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.foot-map small { position: absolute; right: 0; bottom: 0; padding: 1px 5px; font-size: .62rem; line-height: 1.4; color: #333; background: rgba(255,255,255,.8); }
.foot-copy { margin-left: auto; text-align: right; }
.foot-area { display: block; max-width: 22rem; margin-bottom: .5rem; }
@media (max-width: 760px) {
  footer .foot-bar .wrap { flex-direction: column; align-items: flex-start; }
  .foot-map { width: 100%; height: auto; aspect-ratio: 2 / 1; }
  .foot-copy { margin-left: 0; text-align: left; }}
.foot-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: end; }
.foot-top .brand svg { width: 34px; height: 34px; }
.foot-top .brand-word b { font-size: 2rem; }
.foot-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.foot-links a { text-decoration: none; font-size: .83rem; color: var(--fg-muted); }
.foot-links a:hover { color: var(--heading); }

/* ---------- Motion ---------- */
:root { --cover-veil: #1B261A; }

.site-header .wrap { transition: padding .35s ease; }
.site-header { transition: box-shadow .35s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px -22px var(--page-shadow); }
.site-header.scrolled .wrap { padding-block: .5rem; }

/* The opening stays pinned; everything after it is an opaque sheet that slides over */
.hero-stage { position: sticky; top: var(--stage-top, 0px); z-index: 0; }
.hero-stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--cover-veil); opacity: calc(var(--p, 0) * .45); }
.hero .wrap { transform-origin: 50% 35%; transform: scale(calc(1 - var(--p, 0) * .06)); opacity: calc(1 - var(--p, 0) * .5); }
.hero::before { inset: -14% 0; transform: translate3d(0, var(--hy, 0px), 0); }
main > section.block { position: relative; z-index: 1; background: var(--bg); }
main > section.block.sage { background: var(--surface); }
footer { position: relative; z-index: 1; }
.sheet { border-radius: 28px 28px 0 0; box-shadow: 0 -28px 60px -30px var(--page-shadow); }

/* Floating leaves at different depths */
.hero-leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fl { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); opacity: var(--o); filter: blur(var(--blur, 0px)); will-change: transform; }
.fl svg { width: 100%; height: 100%; display: block; transform: rotate(var(--r)); animation: sway 9s ease-in-out var(--ad, 0s) infinite alternate; }
@keyframes sway { to { transform: rotate(calc(var(--r) + 12deg)) translateY(-10px); } }
.hero-copy, .album { will-change: transform; }

/* The album tilts toward the pointer, prints float above the page */
.spread {
  transform-style: preserve-3d;
  transform: rotateX(calc(14deg - var(--ty, 0) * 5deg)) rotateY(calc(var(--tx, 0) * 7deg)) rotateZ(-2deg);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

/* Sections ease in as they arrive */
.reveal-on .rv { transition: opacity .9s ease var(--d, 0ms), translate 1.1s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.reveal-on .rv:not(.in) { opacity: 0; translate: 0 34px; }

/* Process: a gold thread fills as you read the steps */
.steps { position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; left: -2rem; top: 0; bottom: 0; width: 1px; }
.steps::before { background: var(--rule); }
.steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--prog, 0)); }
@media (max-width: 860px) { .steps::before, .steps::after { display: none; }}

/* Large drifting leaves behind Craft and Collections */
#craft, #collections, #testimonials { overflow: clip; }
.block > .wrap { position: relative; z-index: 1; }
.deco-leaf { position: absolute; width: clamp(180px, 28vw, 380px); aspect-ratio: 1; opacity: .12; pointer-events: none; z-index: 0; will-change: transform; }
.deco-leaf svg { width: 100%; height: 100%; display: block; }
#craft .deco-leaf { right: -5%; top: 6%; }
#collections .deco-leaf { left: -7%; bottom: -6%; }
#collections .deco-leaf svg { transform: rotate(-35deg) scaleX(-1); }
/* What we do testimonials: each one is a deep green card (like the album pages' order summary) that sweeps in
   from the left to the centre of the page, holds, then sweeps out to the right */
.testi { margin: clamp(2.5rem, 7vh, 5rem) auto 0; max-width: 48rem; text-align: center; }
.testi-track { display: grid; }
.testi-slide { grid-area: 1 / 1; margin: 0; padding: clamp(2rem, 4vw, 3rem) clamp(1.4rem, 5vw, 3.6rem); border-radius: 20px; background: var(--heading); color: var(--bg); box-shadow: 0 30px 60px -36px var(--page-shadow);
  opacity: 0; visibility: hidden; translate: -75vw 0; rotate: -5deg; scale: .9;
  transition: translate 1.3s cubic-bezier(.65,0,.3,1), rotate 1.3s cubic-bezier(.65,0,.3,1), scale 1.3s cubic-bezier(.65,0,.3,1), opacity .7s ease .3s, visibility 0s linear 1.3s; }
.testi-slide::before { content: "\201C"; display: block; font: 400 4.5rem/.6 var(--font-display); color: #E3C48C; margin-bottom: .6rem; }
.testi-slide.on { opacity: 1; visibility: visible; translate: 0 0; rotate: 0deg; scale: 1; transition-delay: 0s; }
.testi-slide.out { translate: 75vw 0; rotate: 5deg; scale: .9; opacity: 0; transition: translate 1.3s cubic-bezier(.65,0,.3,1), rotate 1.3s cubic-bezier(.65,0,.3,1), scale 1.3s cubic-bezier(.65,0,.3,1), opacity .7s ease .2s, visibility 0s linear 1.3s; }
/* What we do: the headline rises in word by word (accent italic for the second half), then the copy and the
   testimonials slide in from the left, once the section has settled under the menu */
#collections .section-head h2 em, #col-title em { font-family: var(--font-caption); font-style: italic; font-weight: 400; color: var(--accent-ink); }
#collections .wwd-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .1em 0; margin: 0 -.08em -.1em 0; }
#collections .wwd-wi { display: inline-block; }
#collections.tier-anim .wwd-wi { translate: 0 108%; transition: translate .45s ease; }
#collections.tier-anim.tiers-in .wwd-wi { translate: 0 0; transition: translate .95s cubic-bezier(.2,.7,.2,1) calc(.25s + var(--wi, 0) * 75ms); }
/* the second half of the headline comes in right behind the first half */
#collections.tier-anim.tiers-in .wwd-wi.wwd-late { transition-delay: calc(.8s + var(--wl, 0) * 75ms); }
#collections.tier-anim .section-head .eyebrow, #collections.tier-anim .section-head > p:not(.eyebrow) { opacity: 0; translate: -70px 0; transition: opacity .4s ease, translate .4s ease; }
#testimonials .section-head h2 em { font-family: var(--font-caption); font-style: italic; font-weight: 400; color: var(--accent-ink); }
#process .section-head h2 em { font-family: var(--font-caption); font-style: italic; font-weight: 400; color: var(--accent-ink); }
#testimonials.tier-anim .section-head > * { opacity: 0; translate: -70px 0; transition: opacity .4s ease, translate .4s ease; }
#testimonials.tier-anim.tiers-in .section-head > * { opacity: 1; translate: 0 0; transition: opacity .8s ease .1s, translate .9s cubic-bezier(.2,.7,.2,1) .1s; }
/* What we do's label stays hidden (no fade, so it never shows at the bottom of the screen) until the section has locked under the menu */
#collections.tier-anim:not(.tiers-in) .section-head .eyebrow { opacity: 0; transition: none; }
#collections.tier-anim.tiers-in .section-head .eyebrow { opacity: 1; translate: 0 0; transition: opacity .8s ease .1s, translate .9s cubic-bezier(.2,.7,.2,1) .1s; }
#collections.tier-anim.tiers-in .section-head > p:not(.eyebrow) { opacity: 1; translate: 0 0; transition: opacity 1s ease 1.9s, translate 1.1s cubic-bezier(.2,.7,.2,1) 1.9s; }
.testi-slide p:not(.testi-by) { margin: 0; font: italic 400 clamp(1.25rem, 2.2vw, 1.7rem)/1.45 var(--font-display); color: var(--bg); text-wrap: balance; }
.testi-slide .testi-by { margin-top: 1.2rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #E3C48C; }
[data-speed] { will-change: transform; }


@media (prefers-reduced-motion: reduce) {
  .steps::after { transform: none; }
  .hero .wrap { transform: none; opacity: 1; }
  .hero-stage::after { display: none; }}

/* ---------- What we make: album showcase ---------- */
#occasions { padding-bottom: 0; }
.occ-scroller { margin-top: clamp(2.5rem, 5vw, 4rem); }
.occ-tabs { display: none; }
.occ-progress { display: none; }

/* Stacked layout (phones, reduced motion, no script): each album is its own colored band */
.occ-track { display: grid; }
.occ-panel { background: color-mix(in srgb, var(--cover) 16%, var(--bg)); padding-left: var(--gutter); padding-right: var(--gutter-r); padding-block: clamp(3rem, 7vw, 5rem); }
.occ-panel:nth-child(even) .occ-visual { order: 2; }
.occ-inner { max-width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
@media (max-width: 820px) {
  .occ-inner { grid-template-columns: 1fr; }
  .occ-panel:nth-child(even) .occ-visual { order: 0; }}

.occ-visual { container-type: inline-size; display: flex; justify-content: center; padding-block: 1rem; min-width: 0; }
.occ-text { display: grid; gap: 1.1rem; align-content: center; min-width: 0; }
.occ-text h3 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); }
/* What we make: one headline over the book and copy; each album's name sits small, centred under its book */
.occ-banner { margin: clamp(1rem, 2.6vh, 1.8rem) auto 0; text-align: center; font: 400 clamp(1.5rem, 1rem + 1.6vw, 2.3rem)/1.15 var(--font-display); color: var(--heading); text-wrap: balance; }
.occ-visual { flex-direction: column; align-items: center; }
.occ-banner em { font-family: var(--font-caption); font-style: italic; color: var(--accent-ink); }   /* the highlight, in the secondary colour */
.occ-banner { transition: opacity .35s ease; }
.occ-banner.swap { opacity: 0; }
/* the copy sits low, level with the book: title, body copy, the gold line, then the button along the book's bottom edge */
.occ-text .occ-name { margin: 0; font: 400 clamp(1.6rem, 1.1rem + 1.2vw, 2.2rem)/1.15 var(--font-display); color: var(--heading); }
/* the copy column spans exactly the book's height (set by script): the title level with the book's top edge, the button's
   bottom level with its bottom edge, and the copy spaced out between them */
#occasions.occ-pin .occ-text { align-self: start; display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; padding-top: 0; }
#occasions.occ-pin .occ-text > * { margin-top: 0; margin-bottom: 0; }
#occasions.occ-pin .occ-text .occ-name { line-height: 1; }
#occasions.occ-pin .occ-text .occ-start { align-self: flex-start; }
.occ-text p { color: var(--fg); max-width: 42ch; font-size: 1.08rem; }
.occ-text .ex { font: italic 400 1.3rem/1.3 var(--font-caption); color: var(--accent-ink); }

/* Page count drawn on a 0 to 100 page ruler */
.pages-scale { display: grid; gap: .5rem; max-width: 22rem; padding-top: .4rem; }
.pages-scale .pages { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-muted); font-variant-numeric: tabular-nums; }

/* The album: a cloth cover on a hinge over the first page */
.book { position: relative; container-type: inline-size; width: clamp(130px, 45cqw, 320px); aspect-ratio: 4 / 5; perspective: 2000px;
  transition: translate 1.3s cubic-bezier(.6,.05,.2,1); }
.book { translate: 50% 0; }
.occ-anim .occ-panel:not(.open) .book { translate: 0 0; }
/* the open spread is two albums wide, so each album takes under half its column */

/* Sample first pages */
.ph { display: block; border: 4px solid #FBFAF3; box-shadow: 0 2px 5px rgba(40,30,15,.2); aspect-ratio: 4 / 5; filter: sepia(.25);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2 0 0 0 0 .15 0 0 0 0 .1 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    var(--scene); }
.ph.wide { aspect-ratio: 3 / 2; }
.ph.tall { aspect-ratio: auto; }
.lines { display: grid; gap: 7px; align-content: center; }
.lay { height: 100%; display: grid; gap: 7%; }
.pol { margin: 0; background: #FBFAF3; padding: 6% 6% 4%; display: grid; gap: 6px; transform: rotate(var(--rot)); box-shadow: 0 3px 8px rgba(40,30,15,.18); }
.pol .ph { border: 0; box-shadow: none; aspect-ratio: 1; }
.sig { display: block; height: 12px; border-bottom: 1px solid rgba(90,73,53,.4); }

/* Pinned horizontal mode on larger screens */
.occ-pin .occ-scroller { height: calc(var(--stick-h, 85vh) + (var(--n) - 1) * 80vh); }
.occ-pin .occ-sticky {
  position: sticky; top: var(--hdr, 64px); height: var(--stick-h, 85vh); overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: color-mix(in srgb, var(--active-cover, #C08A75) 16%, var(--bg));
  transition: background-color .9s ease;
}
.occ-pin .occ-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; padding: 1.2rem var(--gutter-r) .4rem var(--gutter); }
.occ-tab { display: inline-flex; align-items: center; gap: .5rem; font: 400 .82rem/1 var(--font-body); color: var(--fg-muted); background: transparent; border: 1px solid transparent; border-radius: 999px; padding: .55rem .9rem; cursor: pointer; transition: color .3s, border-color .3s, background-color .3s; }
.occ-tab i { width: 10px; height: 10px; border-radius: 50%; background: var(--cover); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.occ-tab:hover { color: var(--heading); }
.occ-tab[aria-current="true"] { color: var(--heading); border-color: var(--rule); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.occ-pin .occ-viewport { overflow: hidden; min-height: 0; }
.occ-pin .occ-track { display: flex; height: 100%; will-change: transform; }
.occ-pin .occ-panel { flex: 0 0 100%; background: none; padding-block: 1rem; display: grid; align-items: center; }
.occ-pin .occ-panel:nth-child(even) .occ-visual { order: 0; }
.occ-pin .occ-text > * { transition: opacity .7s ease, translate .9s cubic-bezier(.2,.7,.2,1); }
.occ-pin .occ-panel:not(.open) .occ-text > * { opacity: .15; translate: 0 18px; }
.occ-pin .occ-text > :nth-child(2) { transition-delay: .08s; }
.occ-pin .occ-text > :nth-child(3) { transition-delay: .16s; }
.occ-pin .occ-text > :nth-child(4) { transition-delay: .24s; }
.occ-pin .occ-panel:not(.open) .book { scale: .9; }
.occ-pin .book { transition: translate 1.3s cubic-bezier(.6,.05,.2,1), scale 1s ease; }
.occ-pin .occ-progress { display: block; height: 2px; margin: 0 var(--gutter-r) 1.2rem var(--gutter); background: var(--rule); }
.occ-pin .occ-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--op, 0)); }

/* ---------- Opening slides ---------- */
.hero .wrap { display: block; }
.slides { display: grid; touch-action: pan-y; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; min-width: 0;
  transition: opacity .9s ease, visibility 0s linear .9s; }
.slide.is-active { transition: opacity .9s ease, visibility 0s; }
.slide:not(.is-active) { opacity: 0; visibility: hidden; }
@media (max-width: 900px) { .slide { grid-template-columns: 1fr; }}
.hero .hero-title { font-size: var(--step-4); }
.hero .hero-title.long { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.9rem); }
.hero .hero-title em { font-family: var(--font-caption); font-style: italic; font-weight: 400; color: var(--accent-ink); }
.slide .hero-copy > * { transition: opacity .8s ease, translate 1s cubic-bezier(.2,.7,.2,1); }
.slide.is-active .hero-copy > :nth-child(2) { transition-delay: .08s; }
.slide.is-active .hero-copy > :nth-child(3) { transition-delay: .16s; }
.slide.is-active .hero-copy > :nth-child(4) { transition-delay: .24s; }
.slide.is-active .hero-copy > :nth-child(5) { transition-delay: .32s; }
.slide:not(.is-active) .hero-copy > * { opacity: 0; translate: 0 22px; }
.slide .album { transition: translate 1.2s cubic-bezier(.2,.7,.2,1), opacity .9s ease; }
.slide:not(.is-active) .album { translate: 48px 0; opacity: 0; }
.slide:not(.is-active) .spread, .slide:not(.is-active) .print { animation: none; }

.slide-controls { display: flex; align-items: center; gap: .75rem; margin-top: clamp(1.8rem, 3.5vw, 2.8rem); flex-wrap: wrap; }
.slide-arrow { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--rule); background: color-mix(in srgb, var(--bg) 55%, transparent); color: var(--heading); cursor: pointer; display: grid; place-items: center; transition: border-color .25s, background-color .25s; }
.slide-arrow:hover { border-color: var(--heading); }
.slide-arrow svg { width: 16px; height: 16px; }
.slide-tabs { display: flex; gap: 1.2rem; }
.slide-tab { position: relative; background: none; border: 0; padding: .7rem 0 .9rem; min-width: 9.5rem; text-align: left; font: 400 .85rem/1 var(--font-body); color: var(--fg-muted); cursor: pointer; }
.slide-tab::before, .slide-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 2px; }
.slide-tab::before { background: var(--rule); }
.slide-tab::after { background: var(--accent); transform-origin: left; transform: scaleX(0); }
.slide-tab[aria-selected="true"] { color: var(--heading); }
.slide-tab[aria-selected="true"]::after { transform: scaleX(1); }
.slide-tab.running::after { animation: slide-fill 8s linear forwards; }
.slides-paused .slide-tab.running::after { animation-play-state: paused; }
@keyframes slide-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 520px) { .slide-tabs { gap: .8rem; } .slide-tab { min-width: 0; flex: 1; } .slide-controls { flex-wrap: nowrap; }}

/* ---------- Slide intro sequence ---------- */
/* Slides wait off to the left, slide in, and leave to the right */
.hero .slide { translate: -7% 0; transition: opacity .9s ease, translate 1.1s cubic-bezier(.2,.7,.2,1), visibility 0s linear 1.1s; }
.hero .slide.is-leaving { translate: 7% 0; }
.hero .slide.is-active { translate: 0 0; transition: opacity .9s ease, translate 1.1s cubic-bezier(.2,.7,.2,1), visibility 0s; }

/* 1. A gold rule draws in beside the label */
.hero .slide .eyebrow { display: flex; align-items: center; gap: .8rem; }
.hero .slide .eyebrow::before { content: ""; width: 48px; height: 1px; flex: none; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .7s cubic-bezier(.2,.7,.2,1) .15s; }
.hero .slide.is-active .eyebrow::before { transform: scaleX(1); }

/* 2. The headline rises word by word */
.hero .slide .hero-copy > .hero-title { opacity: 1; translate: none; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .1em 0; margin: 0 -.08em -.1em 0; }
.hero-title .wi { display: inline-block; translate: 0 108%; transition: translate .95s cubic-bezier(.2,.7,.2,1) calc(.35s + var(--wi, 0) * 75ms); }
.hero .slide.is-active .hero-title .wi { translate: 0 0; }
.hero .slide:not(.is-active) .hero-title .wi { transition: translate .45s ease; }

/* 3. A gold swash underlines it */
.hero .slide .hero-copy > .swash { opacity: 1; translate: none; }
.swash { display: block; width: clamp(140px, 18vw, 240px); height: auto; overflow: visible; margin-top: -.5rem; }
.swash path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s cubic-bezier(.6,.05,.3,1) var(--swash-delay, 1.1s); }
.hero .slide.is-active .swash path { stroke-dashoffset: 0; }
.hero .slide:not(.is-active) .swash path { transition: stroke-dashoffset .3s ease; }

/* 4. The rest of the copy follows */
.hero .slide.is-active .hero-copy > .lede { transition-delay: var(--after, 1.6s); }
.hero .slide.is-active .hero-copy > .hero-actions { transition-delay: calc(var(--after, 1.6s) + .12s); }
.hero .slide:not(.is-active) .hero-copy > * { transition-delay: 0s; }

/* 5. Then the album arrives from the left and settles */
.hero .slide .album { translate: -64px 0; opacity: 0; transition: translate 1.3s cubic-bezier(.2,.7,.2,1) var(--album-delay, 1.7s), opacity 1s ease var(--album-delay, 1.7s); }
.hero .slide.is-active .album { translate: 0 0; opacity: 1; }
.hero .slide:not(.is-active) .album { translate: 40px 0; opacity: 0; transition: translate .6s ease, opacity .5s ease; }
.hero .slide.is-active .spread { animation-delay: var(--album-delay, 1.7s); }
.hero .slide.is-active .p1 { animation-delay: calc(var(--album-delay, 1.7s) + .5s); }
.slide-tab.running::after { animation-duration: 9s; }
.hero.slides-prep .slide, .hero.slides-prep .slide * { transition: none !important; }
.hero.slides-prep .slide *::before { transition: none !important; }

/* Real client photo on slide 1 */
.print.photo .img { background: #CFC6B0 var(--src) center 40% / cover no-repeat; filter: none; }
/* No photo corners: prints sit directly on white pages */
.print::before, .print::after { display: none; }
.print.photo { width: 90%; }

/* Slide 2: the phone */
.album.phone { display: flex; justify-content: center; perspective: 1400px; }
.phone-img { display: block; width: min(300px, 62%); height: auto; filter: drop-shadow(0 34px 40px var(--page-shadow));
  transform: rotateY(calc(var(--tx, 0) * 9deg)) rotateX(calc(var(--ty, 0) * -6deg)) rotateZ(3deg); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hero .slide.is-active .phone-img { animation: phone-in 1.3s cubic-bezier(.2,.7,.2,1) var(--album-delay, 1.7s) backwards; }
@keyframes phone-in { from { translate: 0 40px; rotate: -8deg; } }
.flip { position: relative; transform-style: preserve-3d; transform: rotateY(-180deg); }
.flip img { display: block; width: 100%; height: auto; border-radius: 3px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px -20px var(--page-shadow), 0 12px 24px -12px var(--page-shadow); }
.hero .slide.is-active .flip { animation: book-turn 1.5s cubic-bezier(.6,.05,.25,1) calc(var(--album-delay, 1.7s) + 2.6s) backwards; }
.hero .slide:not(.is-active) .flip { animation: none; }
@keyframes book-turn { from { transform: rotateY(0deg); } }
.slide-tab[data-i="0"].running::after { animation-duration: 11s; }

/* ---------- Slide 1: the 6-second book ---------- */
.book-stage { perspective: 2400px; padding-block: 4% 2%; }
.book-tilt { transform-style: preserve-3d; transform: rotateX(calc(16deg - var(--ty, 0) * 4deg)) rotateY(calc(var(--tx, 0) * 6deg)) rotateZ(-1.5deg); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
/* Closed, the front cover sits on the right half; the whole book is shifted so it stays centered */
.book3d { position: relative; width: 100%; aspect-ratio: 2 / 1; transform-style: preserve-3d; translate: calc(var(--cs, 1.35) * -25%) 0; scale: var(--cs, 1.35); }
.leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transform: rotateY(0deg) translateZ(var(--z)); }
.face { position: absolute; inset: 0; display: block; background: #FFFFFF var(--img) no-repeat; background-size: var(--bs); background-position: var(--bp);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 0; }
/* Only the covers cast a shadow, so the 20 stacked pages don't build up a dark edge */
.leaf.cover .face { box-shadow: 12px 14px 18px -4px rgba(20,28,18,.2); }
.face.back { transform: rotateY(180deg); }
/* Spine shading on each page */
.face::after { content: none; }
.face.front::after { left: 0; background: linear-gradient(90deg, rgba(0,0,0,.06), transparent); }
.face.back::after { right: 0; background: linear-gradient(270deg, rgba(0,0,0,.06), transparent); }
.leaf.cover .face::after { display: none; }
.leaf.cover .face { border-radius: 0; }
.leaf.cover .face.back { border-radius: 0; }

.hero .slide.is-active .book3d { animation: book-shift 7.71s calc(var(--album-delay, 1.7s) + .2s) both; }
.hero .slide.is-active .leaf { animation: leaf-turn var(--dur) cubic-bezier(.5,.05,.3,1) calc(var(--album-delay, 1.7s) + .2s + var(--start)) both; }
.hero .slide:not(.is-active) .book3d, .hero .slide:not(.is-active) .leaf { animation: none; }
@keyframes leaf-turn {
  from { transform: rotateY(0deg) translateZ(var(--z)); }
  to   { transform: rotateY(-180deg) translateZ(var(--z)); }
}
@keyframes book-shift {
  0.00%, 11.68%      { translate: calc(var(--cs, 1.35) * 25% * -1.0000) 0; scale: var(--cs, 1.35); rotate: y 0deg; animation-timing-function: cubic-bezier(.5,.05,.3,1); }
  22.05%, 68.87%  { translate: 0 0; scale: 1; rotate: y 0deg; animation-timing-function: cubic-bezier(.5,.05,.3,1); }
  79.24%, 79.90%  { translate: calc(var(--cs, 1.35) * 25% * 1.0000) 0; scale: var(--cs, 1.35); rotate: y 0deg; animation-timing-function: linear; }
  /* closed on its back, it turns over on its own centre, like the Occasions books (same easing as their bk-flip):
     the slide keeps the closed book's centre still while it rotates (translate follows 33.75% x cos of the angle) */
  80.13%          { translate: calc(var(--cs, 1.35) * 25% * 1.0000) 0; scale: var(--cs, 1.35); rotate: y -0.6deg; animation-timing-function: linear; }
  80.36%          { translate: calc(var(--cs, 1.35) * 25% * 0.9991) 0; scale: var(--cs, 1.35); rotate: y -2.3deg; animation-timing-function: linear; }
  80.59%          { translate: calc(var(--cs, 1.35) * 25% * 0.9961) 0; scale: var(--cs, 1.35); rotate: y -5.1deg; animation-timing-function: linear; }
  80.82%          { translate: calc(var(--cs, 1.35) * 25% * 0.9879) 0; scale: var(--cs, 1.35); rotate: y -8.9deg; animation-timing-function: linear; }
  81.05%          { translate: calc(var(--cs, 1.35) * 25% * 0.9713) 0; scale: var(--cs, 1.35); rotate: y -13.8deg; animation-timing-function: linear; }
  81.29%          { translate: calc(var(--cs, 1.35) * 25% * 0.9419) 0; scale: var(--cs, 1.35); rotate: y -19.6deg; animation-timing-function: linear; }
  81.52%          { translate: calc(var(--cs, 1.35) * 25% * 0.8960) 0; scale: var(--cs, 1.35); rotate: y -26.4deg; animation-timing-function: linear; }
  81.75%          { translate: calc(var(--cs, 1.35) * 25% * 0.8302) 0; scale: var(--cs, 1.35); rotate: y -33.9deg; animation-timing-function: linear; }
  81.98%          { translate: calc(var(--cs, 1.35) * 25% * 0.7416) 0; scale: var(--cs, 1.35); rotate: y -42.1deg; animation-timing-function: linear; }
  82.21%          { translate: calc(var(--cs, 1.35) * 25% * 0.6299) 0; scale: var(--cs, 1.35); rotate: y -51.0deg; animation-timing-function: linear; }
  82.45%          { translate: calc(var(--cs, 1.35) * 25% * 0.4957) 0; scale: var(--cs, 1.35); rotate: y -60.3deg; animation-timing-function: linear; }
  82.68%          { translate: calc(var(--cs, 1.35) * 25% * 0.3425) 0; scale: var(--cs, 1.35); rotate: y -70.0deg; animation-timing-function: linear; }
  82.90%          { translate: calc(var(--cs, 1.35) * 25% * 0.1751) 0; scale: var(--cs, 1.35); rotate: y -79.9deg; animation-timing-function: linear; }
  83.14%          { translate: calc(var(--cs, 1.35) * 25% * 0.0000) 0; scale: var(--cs, 1.35); rotate: y -90.0deg; animation-timing-function: linear; }
  83.37%          { translate: calc(var(--cs, 1.35) * 25% * -0.1751) 0; scale: var(--cs, 1.35); rotate: y -100.1deg; animation-timing-function: linear; }
  83.60%          { translate: calc(var(--cs, 1.35) * 25% * -0.3425) 0; scale: var(--cs, 1.35); rotate: y -110.0deg; animation-timing-function: linear; }
  83.84%          { translate: calc(var(--cs, 1.35) * 25% * -0.4957) 0; scale: var(--cs, 1.35); rotate: y -119.7deg; animation-timing-function: linear; }
  84.06%          { translate: calc(var(--cs, 1.35) * 25% * -0.6299) 0; scale: var(--cs, 1.35); rotate: y -129.0deg; animation-timing-function: linear; }
  84.29%          { translate: calc(var(--cs, 1.35) * 25% * -0.7416) 0; scale: var(--cs, 1.35); rotate: y -137.9deg; animation-timing-function: linear; }
  84.53%          { translate: calc(var(--cs, 1.35) * 25% * -0.8302) 0; scale: var(--cs, 1.35); rotate: y -146.1deg; animation-timing-function: linear; }
  84.76%          { translate: calc(var(--cs, 1.35) * 25% * -0.8960) 0; scale: var(--cs, 1.35); rotate: y -153.6deg; animation-timing-function: linear; }
  84.99%          { translate: calc(var(--cs, 1.35) * 25% * -0.9419) 0; scale: var(--cs, 1.35); rotate: y -160.4deg; animation-timing-function: linear; }
  85.22%          { translate: calc(var(--cs, 1.35) * 25% * -0.9713) 0; scale: var(--cs, 1.35); rotate: y -166.2deg; animation-timing-function: linear; }
  85.45%          { translate: calc(var(--cs, 1.35) * 25% * -0.9879) 0; scale: var(--cs, 1.35); rotate: y -171.1deg; animation-timing-function: linear; }
  85.69%          { translate: calc(var(--cs, 1.35) * 25% * -0.9961) 0; scale: var(--cs, 1.35); rotate: y -174.9deg; animation-timing-function: linear; }
  85.92%          { translate: calc(var(--cs, 1.35) * 25% * -0.9991) 0; scale: var(--cs, 1.35); rotate: y -177.7deg; animation-timing-function: linear; }
  86.15%          { translate: calc(var(--cs, 1.35) * 25% * -1.0000) 0; scale: var(--cs, 1.35); rotate: y -179.4deg; animation-timing-function: linear; }
  86.38%          { translate: calc(var(--cs, 1.35) * 25% * -1.0000) 0; scale: var(--cs, 1.35); rotate: y -180.0deg; animation-timing-function: linear; }
  100.00%         { translate: calc(var(--cs, 1.35) * 25% * -1.0000) 0; scale: var(--cs, 1.35); rotate: y -180.0deg; animation-timing-function: linear; }
}
.slide-tab[data-i="0"].running::after { animation-duration: 10.51s; }
/* Legacy book: straight on, no tilt, with a soft shadow beneath */
#slide-1 .book-tilt { transform: none; }
.hero #slide-1.is-active .book-tilt { animation: book-near 2.25s cubic-bezier(.3,0,.6,1) calc(var(--album-delay, 1.7s) + .2s + 6.66s) both; }
@keyframes book-near { from { scale: 1; } to { scale: 1.05; } }
.hero #slide-2.is-active .scene { transform-origin: 50% 47%; animation: book-near 4.1s cubic-bezier(.3,0,.6,1) calc(var(--p) + 5.7s) both; }
@media (min-width: 901px) { .hero .slide .album { left: max(-5rem, -5vw); }}
.hero .slide.is-leaving { translate: none; opacity: 1; visibility: visible; transition: none; }
.hero #hero-slides .slide.is-leaving .album { translate: 100vw 0; opacity: 0; transition: translate .7s cubic-bezier(.45,0,.8,.6), opacity .7s linear; }
.hero .slide.is-leaving .scene, .hero .slide.is-leaving .book-tilt { scale: 1.05; }
.slide-tab.running::after { animation-delay: var(--hand, 0s); }
#slide-1 .leaf.cover .face { box-shadow: 0 24px 26px -20px rgba(20,28,18,.35); }

/* ---------- Slide 2: trip photos around the phone ---------- */
.phone-scene { display: block; perspective: none; }
.scene { position: relative; width: 100%; aspect-ratio: 1 / .9; max-width: 560px; margin-inline: auto; }
.phone-wrap { position: absolute; left: 27%; top: 11%; width: 46%; aspect-ratio: 656 / 1000; z-index: 2;
  transform: rotateZ(2deg); }
.hero .slide.is-active .phone-wrap { animation: phone-in 1.3s cubic-bezier(.2,.7,.2,1) var(--album-delay, 1.7s) backwards; }
.hero .slide:not(.is-active) .phone-wrap { animation: none; }
.phone-scene .phone-img { position: relative; z-index: 2; width: 100%; height: auto; display: block; transform: none; filter: drop-shadow(5px 9px 10px rgba(20,28,18,.2)); }
.hero .slide.is-active .phone-scene .phone-img { animation: none; }
/* The screen sits under the phone frame so the bezel and notch overlap the photos */
.screen { position: absolute; z-index: 1; left: 18.4%; top: 5.3%; width: 63.1%; height: 89.4%; border-radius: 10.5% / 4.8%; overflow: hidden; background: #0E1410; }
.screen-track { display: flex; height: 100%; transition: transform .75s cubic-bezier(.6,.05,.25,1); will-change: transform; }
.screen-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; }

.pc { position: absolute; left: var(--x); top: var(--y); width: var(--w); margin: 0; z-index: 3; rotate: var(--r); }
.pc.behind { z-index: 1; }
.pc img { display: block; width: 100%; height: auto; border: 3px solid #FFFFFF; box-shadow: 5px 7px 8px -2px rgba(20,28,18,.18); background: #FFFFFF; }
.hero .slide.is-active .pc { animation: pc-in 1s cubic-bezier(.2,.8,.2,1) calc(var(--album-delay, 1.7s) + .5s + var(--i) * .13s) backwards; }
.hero .slide:not(.is-active) .pc { animation: none; }
@keyframes pc-in { from { translate: var(--fx) var(--fy); scale: .55; opacity: 0; rotate: calc(var(--r) * 3); } }
.pc-float { animation: pc-float 6s ease-in-out var(--fl) infinite alternate; }
@keyframes pc-float { from { translate: 0 0; } to { translate: 0 -7px; } }
.slide-tab[data-i="1"].running::after { animation-duration: 12s; }

/* ---------- Slide 2: photos circle the phone ---------- */
@property --k { syntax: '<number>'; inherits: true; initial-value: 1; }
.scene { container-type: inline-size; }




/* Slide 2: scattered photos slide out from behind the phone */
.pc { z-index: 1; }
@keyframes pc-out { from { translate: var(--fx) var(--fy); scale: .45; rotate: 0deg; opacity: 0; } 20% { opacity: 1; } }
.hero .slide.is-active .pc { animation: pc-out 1.3s cubic-bezier(.2,.8,.2,1) calc(var(--album-delay, 1.7s) + .5s + var(--i) * .14s) backwards; }

/* Slide 2 sequence: emerge, float, return into the phone, phone spins, cover revealed */
.scene { perspective: 1400px; }
.pc-float { animation: pc-drift 3.4s ease-in-out var(--fl) infinite alternate; }
@keyframes pc-drift { from { translate: 0 0; rotate: -1.5deg; } to { translate: 0 -13px; rotate: 1.5deg; } }
.hero .slide.is-active .pc {
  animation: pc-out 1.3s cubic-bezier(.2,.8,.2,1) calc(var(--album-delay, 1.7s) + .5s + var(--i) * .14s) backwards,
             pc-back 2.3s ease-in-out calc(var(--album-delay, 1.7s) + 6.3s + var(--i) * .03s) forwards; }
@keyframes pc-back { 0% { z-index: 1; } 38% { translate: calc(var(--fx) * -.3) calc(var(--fy) * -.3); scale: 1.08; z-index: 1; } 52% { translate: calc(var(--fx) * -.3) calc(var(--fy) * -.3); scale: 1.08; z-index: 1; } 90% { opacity: 1; } 100% { translate: var(--fx) calc(var(--fy) - 2cqw); scale: .35; rotate: 0deg; opacity: 0; z-index: 1; } }
.hero .slide.is-active .phone-wrap {
  animation: phone-in 1.3s cubic-bezier(.2,.7,.2,1) var(--album-delay, 1.7s) backwards,
             phone-pan 1s cubic-bezier(.55,0,.75,.2) calc(var(--album-delay, 1.7s) + 5.8s) forwards; }
@keyframes phone-pan { 70% { opacity: 1; } to { translate: 0 -320%; opacity: 0; } }
.reveal-cover { position: absolute; left: 50%; top: 47%; width: 66%; height: auto; translate: -50% -50%; opacity: 0; z-index: 4;
  box-shadow: 12px 14px 18px -4px rgba(20,28,18,.2); }
.hero .slide.is-active .reveal-cover { animation: cover-reveal 1.2s cubic-bezier(.2,.8,.25,1) calc(var(--album-delay, 1.7s) + 6.3s) both, cover-catch .6s ease-in-out calc(var(--album-delay, 1.7s) + 8.5s); }
@keyframes cover-reveal { 0% { translate: -50% 40%; opacity: 0; } 35% { opacity: 1; } 100% { translate: -50% -50%; opacity: 1; } }
@keyframes cover-catch { 50% { scale: 1.035; } }
.slide-tab[data-i="1"].running::after { animation-duration: 12.5s; }
@media (prefers-reduced-motion: reduce) { .reveal-cover { display: none; }}

/* Slide 2: photos wander gently around the phone while they float */
.pc-float { animation: pc-wander 7s ease-in-out var(--fl) infinite alternate; }
@keyframes pc-wander {
  0%   { translate: 0 0;       rotate: -2deg; }
  25%  { translate: 10px -14px; rotate: 1deg; }
  50%  { translate: -6px -22px; rotate: 2.5deg; }
  75%  { translate: -14px -8px; rotate: -1deg; }
  100% { translate: 6px 6px;    rotate: -2.5deg; }
}


/* Slide 2 leaving: hold the final frame (the album and its caption) instead of flashing back to the phone */
.hero .slide.is-leaving .phone-wrap, .hero .slide.is-leaving .pc { opacity: 0; }
.hero .slide.is-leaving .reveal-cover { opacity: 1; }

/* Slide 2, quicker: the phone is on screen for a shorter time with faster swipes; the photos sit further out around it;
   once the phone has gone they gather into the centre, then the album rises in over them */
.pc { left: calc(var(--x) + var(--fx) * .14); top: calc(var(--y) + var(--fy) * .14); }
@keyframes pc-out2 { from { translate: calc(var(--fx) * .86) calc(var(--fy) * .86); scale: .45; rotate: 0deg; opacity: 0; } 20% { opacity: 1; } }
@keyframes pc-gather {
  to { translate: calc(var(--fx) * .86) calc(var(--fy) * .86); scale: 0; }
}
/* timed from the start of the slide (--p): the phone rises in with the headline, swipes quickly, leaves; the photos then
   gather in the centre and the album grows up out of them */
.hero #slide-2 { --p: calc(.4s + var(--hand, 0s)); }
.hero #slide-2 .album { transition: translate 1s cubic-bezier(.2,.7,.2,1) var(--p), opacity .8s ease var(--p); }
.hero .slide.is-active .pc {
  animation: pc-out2 .9s cubic-bezier(.2,.8,.2,1) calc(var(--p) + .3s + var(--i) * .08s) backwards,
             pc-gather .8s cubic-bezier(.55,0,1,.45) calc(var(--p) + 3.4s) forwards; }
/* Only the phone's frame flies past the viewer; as it starts, the photo begins re-cropping for the cover and the album comes up from behind it, landing together.
   .land-photo starts exactly over the phone's screen (both are centred on the scene and tilted 2deg) and ends on the cover's photo area (x 54-952, y 208-740 of 1006x1000) */
.hero #slide-2 .phone-wrap { z-index: 6; }
.hero .slide.is-active .phone-wrap {
  animation: phone-in 1s cubic-bezier(.2,.7,.2,1) var(--p) backwards; }
.hero #slide-2.is-active .phone-wrap { animation: phone-in 1s cubic-bezier(.2,.7,.2,1) var(--p) backwards, phone-back .8s cubic-bezier(.55,0,1,.45) calc(var(--p) + 4.1s) forwards; }
@keyframes phone-back { to { scale: 0; } }
/* the photo sits on the cover's photo area (x 54-952, y 208-740 of 1006x1000) and grows with the cover, from the same centre point */
.land-photo { position: absolute; z-index: 5; left: 20.543%; top: 14.52%; width: 58.915%; height: 57.27%; transform-origin: 50% 56.71%; opacity: 0; overflow: hidden; pointer-events: none; }
.land-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 11.7%; }
.hero .slide.is-active .land-photo { animation: land-on .01s linear calc(var(--p) + 4.9s) forwards, album-up .8s cubic-bezier(0,.55,.45,1) calc(var(--p) + 4.9s) both; }
@keyframes land-on { to { opacity: 1; } }
@keyframes album-up { from { scale: 0; } to { scale: 1; } }
.hero .slide.is-leaving .land-photo { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .land-photo { display: none; }}
.screen-track { transition-duration: .4s; }
@keyframes cover-grow { 0% { translate: -50% -50%; scale: 0; opacity: 1; } 100% { translate: -50% -50%; scale: 1; opacity: 1; } }
.hero .slide.is-active .reveal-cover { animation: cover-grow .8s cubic-bezier(0,.55,.45,1) calc(var(--p) + 4.9s) both; }
.slide-tab[data-i="1"].running::after { animation-duration: 10.2s; }

/* Real album covers in What we make */
.book.real, .occ-anim .occ-panel .book.real { aspect-ratio: auto; translate: 0 0; perspective: none; }
.book.real img { display: block; width: 100%; height: auto; box-shadow: 12px 14px 18px -4px rgba(20,28,18,.2); }
.occ-anim .occ-panel .book.real { transition: scale 1s ease, rotate 1.1s cubic-bezier(.2,.7,.2,1), opacity .8s ease; rotate: -2deg; }
.occ-anim .occ-panel:not(.open) .book.real { rotate: -9deg; opacity: .55; }

/* Places & journeys: a real 3D book built from the Banff wraparound cover (back | spine | front) */
.bk-stage { --W: min(clamp(240px, 40vw, 520px), 92cqw, calc((100vh - 260px) / var(--hr))); --H: calc(var(--W) * var(--hr)); --T: calc(var(--W) * var(--tr));
  position: relative; width: var(--W); height: var(--H); perspective: 3600px; perspective-origin: 50% 50%; margin-block: 1rem 2rem; }
.bk-spin { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-4deg) rotateY(12deg); }
.bk-face { position: absolute; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: #FFFFFF var(--src) no-repeat; }
.bk-front, .bk-back { left: 0; top: 0; width: 100%; height: 100%; background-size: var(--fb) var(--fbh, 100%); }
.bk-front { background-position: 100% var(--by, 0); transform: translateZ(calc(var(--T) / 2)); }
.bk-back { background-position: 0 var(--by, 0); transform: rotateY(180deg) translateZ(calc(var(--T) / 2)); }
.bk-spine { top: 0; height: 100%; width: var(--T); left: calc(50% - var(--T) / 2); background-size: var(--ss); background-position: 50% var(--by, 0);
  transform: rotateY(-90deg) translateZ(calc(var(--W) / 2)); }
.bk-pages { top: 1%; height: 98%; width: var(--T); left: calc(50% - var(--T) / 2);
  background: repeating-linear-gradient(90deg, #FBFAF4 0 2px, #E6E1D2 2px 3px);
  transform: rotateY(90deg) translateZ(calc(var(--W) / 2 - 2px)); }
.bk-top, .bk-bottom { left: 0; width: 100%; height: var(--T); top: calc(50% - var(--T) / 2);
  background: repeating-linear-gradient(0deg, #FBFAF4 0 2px, #E6E1D2 2px 3px); }
.bk-top { transform: rotateX(90deg) translateZ(calc(var(--H) / 2)); }
.bk-bottom { transform: rotateX(-90deg) translateZ(calc(var(--H) / 2)); }
.bk-ground { position: absolute; left: 12%; right: 6%; bottom: -9%; height: 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20,28,18,.22), transparent); filter: blur(4px); }
/* Spins three full turns when the panel comes into focus, then settles on the front cover */
.occ-anim .occ-panel.open .bk-spin { animation: bk-spin 2.6s linear .15s both; }
@keyframes bk-spin {
  0%   { transform: translateX(-140%) rotateX(-4deg) rotateY(-528deg); animation-timing-function: cubic-bezier(.2,.8,.25,1); }
  40%  { transform: translateX(0) rotateX(-4deg) rotateY(-528deg); }
  52%  { transform: translateX(0) rotateX(-4deg) rotateY(-528deg); animation-timing-function: cubic-bezier(.35,0,.15,1); }
  100% { transform: translateX(0) rotateX(-4deg) rotateY(12deg); }
}
/* Fade the whole stage, not the 3D book, so the covers keep hiding their backs */
.occ-anim .occ-panel.open .bk-stage { animation: bk-fade .5s ease .15s both; }
@keyframes bk-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .occ-anim .occ-panel.open .bk-spin { animation: none; }}

/* Softened book corners: rounded on the outer edges, nearly square along the spine */
.bk-front { border-radius: 2px 10px 10px 2px; }
.bk-back { border-radius: 10px 2px 2px 10px; }
.bk-top, .bk-bottom { border-radius: 2px; }
.bk-ground { border-radius: 50%; }
.leaf.cover .face.front { border-radius: 2px 8px 8px 2px; }
.leaf.cover .face.back { border-radius: 8px 2px 2px 8px; }
.leaf.page .face.front { border-radius: 0 6px 6px 0; }
.leaf.page .face.back { border-radius: 6px 0 0 6px; }
.reveal-cover { border-radius: 9px; }

/* What we make lifts away to reveal The Process, which waits underneath */
main > #occasions { z-index: 2; box-shadow: 0 36px 60px -34px var(--page-shadow); }
main > #collections { will-change: transform; min-height: calc(100vh - var(--hdr-h, 64px)); }
main > #testimonials { min-height: calc(100vh - var(--hdr-h, 64px)); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(1.6rem, 5vh, 3.2rem); }
main > #testimonials > .wrap { width: 100%; }  /* fills the screen so The Process stays below it */
/* What we do stands on screen by itself: its content is sized to fit one screen, centred top to bottom */
main > #collections { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(1.6rem, 5vh, 3.2rem); }
main > #collections > .wrap { width: 100%; }
/* What we do: title and copy sit in the upper part of the screen like the other sections; a photo fills the space below */
main > #collections { justify-content: flex-start; padding-block: clamp(2.4rem, 7.3vh, 4rem) clamp(1.6rem, 5vh, 3.2rem); }
main > #collections > .wrap { flex: 1; display: flex; flex-direction: column; }
/* a beige band past the bottom of the screen, so a small scroll never lifts page 2 into view under the photo */
main > #collections { --below: 160px; min-height: calc(100vh - var(--hdr-h, 64px) + var(--below)); padding-bottom: calc(clamp(1.6rem, 5vh, 3.2rem) + var(--below)); }
#collections .wwd-photos { position: relative; flex: 1 1 0; width: 100%; min-height: 14rem; margin-top: clamp(1.6rem, 4vh, 2.6rem); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 50px -36px var(--page-shadow); }
#collections .wwd-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; display: block; }
/* four photos in rotation: each holds 2 s, then the next slides in from the left over it */
#collections .wwd-photo { translate: -100% 0; }
#collections .wwd-photo.on { translate: 0 0; z-index: 1; }
#collections .wwd-photo-2 { object-position: 50% 55%; }
#collections .wwd-photo.in { translate: 0 0; z-index: 2; transition: translate 1.2s cubic-bezier(.65,0,.25,1); box-shadow: 24px 0 40px -20px rgba(0,0,0,.35); }
#collections .wwd-ph { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, var(--bg)); border: 1.5px dashed var(--rule); border-radius: 14px; color: var(--accent-ink); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
/* Occasions is its own page (#occasions, from the menu or See examples); the home page shows the condensed Examples instead */
html:not(.occ-page) main > #occasions { display: none; }
html.occ-page main > :not(#occasions) { display: none; }
/* Examples: one screen; four albums in a 2 x 2 grid, one box at a time flips to the next album, going clockwise */
main > #examples { min-height: calc(100vh - var(--hdr-h, 64px)); display: flex; flex-direction: column; padding-block: clamp(2.4rem, 7.3vh, 4rem) clamp(1.6rem, 5vh, 3.2rem); }
main > #examples > .wrap { width: 100%; flex: 1; display: flex; flex-direction: column; }
#examples .section-head h2 em { font-family: var(--font-caption); font-style: italic; font-weight: 400; color: var(--accent-ink); }
/* each front cover at its true proportions (--hr = height / width), as large as the box allows */
#albums .ex-cover { --w: min(100cqw, calc(100cqh / var(--hr))); width: var(--w); height: calc(var(--w) * var(--hr)); background-image: var(--src); background-size: var(--fb) 100%; background-position: 100% 0; border-radius: 2px 8px 8px 2px; box-shadow: 0 18px 28px -16px var(--page-shadow), 0 2px 6px -2px var(--page-shadow); }
#albums .ex-more { margin-top: clamp(1rem, 2.6vh, 1.8rem); display: flex; justify-content: center; }
#collections.tier-anim .wwd-photos { opacity: 0; translate: 0 40px; transition: opacity .4s ease, translate .4s ease; }
#collections.tier-anim.tiers-in .wwd-photos { opacity: 1; translate: 0 0; transition: opacity 1s ease 1.5s, translate 1.1s cubic-bezier(.2,.7,.2,1) 1.5s; }
#testimonials .testi { margin-top: clamp(1.4rem, 4vh, 2.6rem); }
#testimonials .testi-slide { padding-block: clamp(1.4rem, 3.4vh, 2.4rem); }
main > #process { z-index: 0; }

/* ---------- The Process: animated step illustrations ---------- */
.steps li { grid-template-columns: 4.2rem 128px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.bar { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.draw { stroke-dasharray: 1; }

/* Play when the step arrives */
.stage-art.on .draw { animation: sa-draw 1.1s ease calc(.2s + var(--d, 0s)) both; }
.stage-art.on .rise { animation: sa-rise .9s cubic-bezier(.2,.8,.2,1) calc(.5s + var(--d, 0s)) both, sa-bob 3.2s ease-in-out calc(1.6s + var(--d, 0s)) infinite alternate; }
.stage-art.on .sort { animation: sa-sort 1s cubic-bezier(.2,.8,.2,1) calc(.2s + var(--d, 0s)) both; }
.stage-art.on .pop { animation: sa-pop .6s cubic-bezier(.3,1.6,.5,1) var(--d, 0s) both; }
.stage-art.on .drop { animation: sa-drop .7s cubic-bezier(.2,.8,.2,1) var(--d, 0s) both; }
.stage-art.on .bar { animation: sa-sweep 2.6s ease-in-out .6s infinite alternate both; }
.stage-art.on .restore { transform-origin: left center; animation: sa-restore 2.6s ease-in-out .6s infinite alternate both; }
@keyframes sa-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sa-rise { from { translate: 0 28px; opacity: 0; } }
@keyframes sa-bob { to { translate: 0 -3px; } }
@keyframes sa-sort { from { translate: var(--fx) var(--fy); rotate: var(--fr); opacity: 0; } 30% { opacity: 1; } }
@keyframes sa-pop { from { scale: 0; opacity: 0; } }
@keyframes sa-drop { from { translate: 0 -16px; opacity: 0; } }
@keyframes sa-sweep { from { translate: 0 0; } to { translate: 68px 0; } }
@keyframes sa-restore { from { scale: 0 1; } to { scale: 1 1; } }


@media (max-width: 860px) {
  .steps li { grid-template-columns: 3rem minmax(0, 1fr); }
  .steps li > div { grid-column: 2; }}

/* The Process: a radial glow centred on the headline and copy, deepening to sage outward.
   Fixed to the screen so it stays behind the pinned headline while the steps scroll. */
main > #process {
  background: radial-gradient(circle farthest-corner at 21% 42%,
      var(--surface-2) 0%,
      var(--surface-2) 9%,
      color-mix(in srgb, var(--surface) 45%, var(--surface-2)) 22%,
      var(--surface) 42%,
      color-mix(in srgb, var(--surface) 80%, var(--heading)) 100%) fixed;
}
@media (max-width: 860px) {
  main > #process { background: radial-gradient(circle farthest-corner at 50% 8%, var(--surface-2) 0%, var(--surface) 45%, color-mix(in srgb, var(--surface) 85%, var(--heading)) 100%) scroll; }}

/* ---------- The Process: pinned stage ---------- */
.proc-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem 4rem; align-items: end; max-width: none; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.proc-head .eyebrow, .proc-head h2 { grid-column: 1; }
.proc-head > p:not(.eyebrow), .proc-head > div { grid-column: 2; }
.proc-head h2 { grid-row: 2; }
.proc-head > p:not(.eyebrow) { grid-row: 2; align-self: end; }
.proc-head > div { grid-row: 3; }
.proc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }

.proc-stage { position: sticky; top: calc(var(--hdr-h, 64px) + 2rem); display: grid; gap: 1.1rem; }
.stage-card { position: relative; aspect-ratio: 1; max-height: 62vh; width: 100%; margin-inline: auto;
  background: radial-gradient(circle at 50% 42%, var(--surface-2) 0 45%, color-mix(in srgb, var(--surface) 55%, var(--surface-2)) 100%);
  border: 1px solid var(--rule); border-radius: 28px; box-shadow: 10px 14px 30px -18px var(--page-shadow); overflow: hidden; }
.stage-art { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; scale: .96;
  transition: opacity .55s ease, scale .7s cubic-bezier(.2,.7,.2,1); }
.stage-art.on { opacity: 1; scale: 1; }
.stage-art svg { width: 68%; height: 68%; overflow: visible; }
.stage-art * { transform-box: fill-box; transform-origin: center; }
.stage-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.stage-count { font: 400 1.6rem/1 var(--font-display); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.stage-count span { font: 500 .72rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-muted); margin-left: .4rem; }
.stage-title { font: italic 400 1.25rem/1.2 var(--font-caption); color: var(--heading); text-align: right; }
.stage-bar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.stage-bar i { height: 3px; border-radius: 2px; background: var(--rule); transition: background-color .4s ease; }
.stage-bar i.done { background: var(--accent); }

/* Step text scrolls up past the stage; the one being read is in full colour */
.proc-steps::before, .proc-steps::after { display: none; }
.proc-steps li { min-height: 46vh; display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); align-content: center; border-top: 0;
  opacity: .32; transition: opacity .45s ease; }
.proc-steps li:last-child { border-bottom: 0; min-height: 52vh; }
.proc-steps li.active { opacity: 1; }
.proc-steps li::before { font-size: 2rem; }
.proc-steps h3 { font: 400 var(--step-2)/1.15 var(--font-display); margin-bottom: .7rem; }
.proc-steps p { font-size: 1.05rem; }

@media (max-width: 860px) {
  .proc-head { grid-template-columns: 1fr; }
  .proc-head > * { grid-column: 1 !important; grid-row: auto !important; }
  .proc-grid { grid-template-columns: 1fr; gap: 1rem; }
  .proc-stage { top: calc(var(--hdr-h, 64px) + .5rem); z-index: 2; grid-template-columns: 120px minmax(0, 1fr); align-items: center;
    background: color-mix(in srgb, var(--surface-2) 92%, transparent); padding: .6rem; border-radius: 18px; border: 1px solid var(--rule); }
  .stage-card { aspect-ratio: 1; max-height: none; border-radius: 14px; box-shadow: none; }
  .stage-meta { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .stage-title { text-align: left; font-size: 1.05rem; }
  .stage-bar { grid-column: 1 / -1; }
  .proc-steps li { min-height: 0; padding: 2rem 0; grid-template-columns: 3rem minmax(0, 1fr); }}
@media (prefers-reduced-motion: reduce) { .proc-steps li { opacity: 1; }}

/* Stage at half size; larger step text */
.proc-stage { width: 50%; justify-self: center; }
.stage-card { max-height: 31vh; }
.stage-title { font-size: 1.05rem; }
.stage-count { font-size: 1.35rem; }
.proc-steps li::before { font-size: 2.6rem; }
.proc-steps h3 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.7rem); margin-bottom: .9rem; }
.proc-steps p { font-size: 1.22rem; line-height: 1.6; }
.proc-steps .meta { font-size: .9rem; }
.proc-steps li { grid-template-columns: 5rem minmax(0, 1fr); }
@media (max-width: 860px) {
  .proc-stage { width: auto; justify-self: stretch; }
  .proc-steps li { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .proc-steps h3 { font-size: 1.7rem; }
  .proc-steps p { font-size: 1.1rem; }}

/* Process stage: real photos fill the card with a slow zoom */
.stage-art.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; scale: 1; transition: scale .6s ease-out; }
/* each step's photo slowly pushes in (a gentle zoom forward) while it is showing, drawing the viewer in */
.stage-art.photo.on img { scale: 1.08; transition: scale 7s cubic-bezier(.25,.1,.25,1); }

/* Landscape stage card so whole photos show */
.stage-card { aspect-ratio: 3 / 2; max-height: none; }
.proc-stage { width: 72%; }
.stage-art.photo img { object-position: center; }
 (max-width: 860px) { .proc-stage { width: auto; } .stage-card { aspect-ratio: 3 / 2; } }

/* ---------- The Process: locked section ---------- */
#process.proc-pin { padding-block: 0; }
#process.proc-pin > .wrap { position: sticky; top: var(--hdr-h, 64px); height: calc(100vh - var(--hdr-h, 64px));
  display: grid; grid-template-rows: auto minmax(0, 1fr); padding-block: clamp(1.2rem, 4vh, 2.6rem); }
#process.proc-pin .proc-head { margin-bottom: clamp(.8rem, 3vh, 2rem); }
#process.proc-pin .proc-grid { min-height: 0; height: 100%; align-items: center; }
#process.proc-pin .proc-stage { position: relative; top: auto; }
#process.proc-pin .proc-steps-view { height: 100%; overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
#process.proc-pin .proc-steps { will-change: transform; }
#process.proc-pin .proc-steps li { min-height: 0; padding-block: 7vh; }
#process.proc-pin .proc-steps li:last-child { min-height: 0; }
/* Pictures sit side by side and slide left / right */
#process.proc-pin .stage-art { opacity: 1; scale: 1; transition: none; will-change: transform; }

/* Process header: intro copy under the headline on the left, button on the right */
.proc-head > p:not(.eyebrow) { grid-column: 1; grid-row: 3; align-self: start; max-width: 52ch; }
.proc-head > div { grid-column: 2; grid-row: 2 / 4; align-self: end; justify-self: end; }

/* Process: tighter header, content tucked up under it, staged entrance */
#process.proc-pin .proc-head { margin-bottom: clamp(1rem, 2.5vh, 1.6rem); }
#process.proc-pin .proc-grid { align-items: start; }
#process.proc-pin .proc-stage { align-self: start; margin-top: 24px; }
#process.proc-pin .proc-steps li { padding-block: 0 9vh; }
#process.proc-pin .proc-steps-view { -webkit-mask-image: linear-gradient(transparent, #000 4%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 4%, #000 80%, transparent); }
#process.proc-pin .proc-grid { transition: opacity .8s ease .55s, translate 1s cubic-bezier(.2,.7,.2,1) .55s; }
#process.proc-pin:not(.proc-in) .proc-grid { opacity: 0; translate: 0 40px; transition-delay: 0s; }

/* Process: one step at a time, centred on the picture, column pulled left */
#process.proc-pin .proc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1rem, 2.5vw, 2.5rem); }
#process.proc-pin .proc-stage { justify-self: end; }
#process.proc-pin .proc-steps li { padding-block: 12vh; transition: none; grid-template-columns: 3.6rem minmax(0, 1fr); }
#process.proc-pin .proc-steps-view { -webkit-mask-image: none; mask-image: none; }

/* Process photo centred under the headline */
#process.proc-pin .proc-stage { justify-self: center; }
/* Bigger photos, smaller step text: the photo column takes more of the width and the photo fills it (kept short enough
   to fit the screen height); step headlines and copy step down a size */
@media (min-width: 861px) {
  #process.proc-pin .proc-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); }
  #process.proc-pin .proc-stage { width: min(100%, calc((100vh - 360px) * 1.5)); }
  #process .proc-steps h3 { font-size: clamp(1.45rem, 1rem + 1.2vw, 2rem); margin-bottom: .6rem; }
  #process .proc-steps p { font-size: 1.02rem; line-height: 1.6; }
  #process .proc-steps li::before { font-size: 2rem; }
  #process.proc-pin .proc-steps li { grid-template-columns: 3rem minmax(0, 1fr); }}

/* Until a book's entrance starts, keep it hidden in its starting pose (back facing, off to the left) */
.occ-anim .occ-panel:not(.open) .bk-stage { opacity: 0; }
.occ-anim .occ-panel:not(.open) .bk-spin { transform: translateX(-140%) rotateX(-4deg) rotateY(-528deg); }

/* The Process -> The Craft: The Craft rises over The Process like a page, its layers moving at different speeds */
#craft[hidden] { display: none !important; }   /* kept only as the source of the order form's size chart */
main > #testimonials { z-index: 2; border-radius: 28px 28px 0 0; box-shadow: 0 -30px 60px -30px var(--page-shadow); }
#process > .wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--cover-veil); opacity: calc(var(--t3, 0) * .5); border-radius: inherit; }
#process > .wrap { transform-origin: 50% 0; }
#testimonials .section-head > *, #testimonials .testi { will-change: translate; }

/* Parallax layers in The Craft follow the scroll directly (no easing lag) */
.reveal-on #craft .craft-copy > .rv { transition: opacity .9s ease var(--d, 0ms); }

/* Slide 1 book: a bound hinge along the spine edge of the front and back covers */
.leaf.cover:first-child .face.front::before, .leaf.cover:last-child .face.back::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 6%; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.05) 38%, rgba(255,255,255,.32) 58%, rgba(0,0,0,.06) 70%, rgba(0,0,0,0) 100%);
}
.leaf.cover:first-child .face.front::before { left: 0; border-radius: 2px 0 0 2px; }
.leaf.cover:last-child .face.back::before { right: 0; transform: scaleX(-1); border-radius: 0 2px 2px 0; }
/* Spine edge thickness on the closed book */
.leaf.cover:first-child .face.front { box-shadow: inset 2px 0 0 rgba(0,0,0,.08), 12px 14px 18px -4px rgba(20,28,18,.2); }
.leaf.cover:last-child .face.back { box-shadow: inset -2px 0 0 rgba(0,0,0,.08), 12px 14px 18px -4px rgba(20,28,18,.2); }

/* Slide 2 album: same soft bound hinge as slide 1 */
span.reveal-cover { display: block; overflow: hidden; }
span.reveal-cover img { display: block; width: 100%; height: auto; }
span.reveal-cover::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 6%; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.05) 38%, rgba(255,255,255,.32) 58%, rgba(0,0,0,.06) 70%, rgba(0,0,0,0) 100%);
  box-shadow: inset 2px 0 0 rgba(0,0,0,.08); }

/* What we make books: the same soft bound hinge along the spine edge of each cover */
.bk-front::before, .bk-back::before { content: ""; position: absolute; top: 0; bottom: 0; width: 6%; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.05) 38%, rgba(255,255,255,.32) 58%, rgba(0,0,0,.06) 70%, rgba(0,0,0,0) 100%);
  box-shadow: inset 2px 0 0 rgba(0,0,0,.08); }
.bk-front::before { left: 0; }
.bk-back::before { right: 0; transform: scaleX(-1); }

/* What we make: heading, headline and intro stay pinned above the albums */
.occ-pin .occ-sticky { grid-template-rows: auto auto auto minmax(0, 1fr) auto; }   /* head, tabs, headline, albums, rail */
.occ-head { width: 100%; padding-top: clamp(1rem, 2.4vh, 1.8rem); }
.occ-head .section-head { gap: .5rem; max-width: 60rem; }
.occ-pin .occ-head h2 { font-size: clamp(1.7rem, 1.1rem + 1.7vw, 2.5rem); }
.occ-pin .occ-head .section-head > p:not(.eyebrow) { font-size: .98rem; }
.occ-pin .occ-tabs { padding-top: .8rem; }
#occasions { padding-top: 0; }
.bk-stage { --W: min(clamp(240px, 40vw, 520px), 92cqw, calc((100vh - 470px) / var(--hr))); }

/* What we make: intro copy runs the width of the headline, no single-word lines; albums sit closer under it */
.occ-head .section-head { width: fit-content; max-width: 100%; }
.occ-head .section-head > p:not(.eyebrow) { width: 0; min-width: 100%; max-width: none; text-wrap: pretty; }
.occ-head h2 { text-wrap: balance; }
.occ-pin .occ-panel { align-items: start; padding-block: clamp(.8rem, 2.5vh, 1.6rem) 0; }
.occ-pin .occ-tabs { padding-top: .5rem; padding-bottom: 0; }
.occ-pin .occ-inner { align-items: start; }
.occ-pin .occ-text { padding-top: clamp(.5rem, 3vh, 2rem); }
.occ-pin .occ-visual { padding-block: .5rem; }
.occ-text p, .occ-text .ex { text-wrap: pretty; }

/* ---------- Full-width headlines and intro copy for every section after the opening ---------- */
main > section.block .section-head { max-width: none; width: 100%; }
main > section.block .section-head h2, #col-title { max-width: none; text-wrap: balance; }
main > section.block .section-head > p:not(.eyebrow) { max-width: none; text-wrap: pretty; }
/* What we make */
.occ-head .section-head { width: 100%; }
.occ-head .section-head > p:not(.eyebrow) { width: auto; min-width: 0; }
/* The Process: label and button on one line, headline and copy across the full width */
.proc-head { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 2rem; align-items: end; }
.proc-head .eyebrow { grid-column: 1; grid-row: 1; }
.proc-head > div { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; }
.proc-head h2 { grid-column: 1 / -1; grid-row: 2; }
.proc-head > p:not(.eyebrow) { grid-column: 1 / -1; grid-row: 3; max-width: none; }
/* The Craft: label and headline across the top, then copy beside the size sheet */
.craft-copy { display: contents; }
.craft > .craft-copy > .eyebrow { grid-column: 1 / -1; grid-row: 1; margin-bottom: -1rem; }
.craft > .craft-copy > h2 { grid-column: 1 / -1; grid-row: 2; max-width: none; text-wrap: balance; }
.craft > .craft-copy > p:not(.eyebrow):not(.quote) { grid-column: 1; grid-row: 3; }
.craft > .craft-copy > .quote { grid-column: 1; grid-row: 4; align-self: start; }
.craft > .spec { grid-column: 2; grid-row: 3 / span 2; }
.craft { row-gap: 1.4rem; }
/* Questions: heading across the top, questions underneath */
.faq { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (max-width: 860px) {
  .craft > .craft-copy > *, .craft > .spec { grid-column: 1 / -1; grid-row: auto; }
  .proc-head > div { grid-column: 1 / -1; grid-row: 4; justify-self: start; }}

.craft { grid-template-rows: auto auto auto 1fr; }
/* Album sizes chart: size, dimensions, pages (with the maximum it can grow to) and price */
.craft { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.spec dl > div { display: grid; grid-template-columns: minmax(3.6rem, .8fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr); gap: 1rem; }
.spec dd.cost { text-align: right; }
.spec dd.dim small, .spec dd.pg small { display: block; font-size: .8rem; color: var(--fg-muted); }
.spec dd + dd { color: var(--heading); text-align: left; }
.spec dd.cost { color: var(--heading); font-weight: 500; }
.spec-note { margin: 1rem 0 0; font-size: .85rem; color: var(--fg-muted); }
@media (max-width: 860px) { .craft { grid-template-columns: minmax(0, 1fr); }}
@media (max-width: 520px) { .spec dl > div { gap: .6rem; } .spec dt { letter-spacing: .08em; }}
/* Album sizes chart, full width: size, dimensions, pages, price, add pages in twos, new total */
.craft > .craft-copy > .quote { grid-column: 2; grid-row: 3; align-self: center; }
.craft > .spec { grid-column: 1 / -1; grid-row: 4; }
.craft { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
.spec dl > div { grid-template-columns: minmax(3.6rem, .7fr) minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
.spec dd.cost, .spec dd.total { text-align: right; }
.spec dd.add { text-align: center; }
.spec dd.add small, .spec dd.total small { display: block; font-size: .78rem; color: var(--fg-muted); font-weight: 400; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.stepper button { width: 2rem; height: 2rem; border: 0; background: transparent; color: var(--heading); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--surface); }
.stepper button:disabled { color: var(--rule); cursor: default; }
.stepper output { min-width: 2.4rem; text-align: center; font-variant-numeric: tabular-nums; color: var(--heading); }
.spec dd.total { color: var(--heading); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .craft > .craft-copy > .quote, .craft > .spec { grid-column: 1 / -1; grid-row: auto; }}
@media (max-width: 640px) {
  .spec dl > div { grid-template-columns: auto 1fr auto; grid-template-areas: "sz dim cost" "pg add total"; row-gap: .7rem; }
  .spec dt { grid-area: sz; } .spec dd.dim { grid-area: dim; } .spec dd.cost { grid-area: cost; }
  .spec dd.pg { grid-area: pg; } .spec dd.add { grid-area: add; } .spec dd.total { grid-area: total; }}
/* Album sizes as three shape cards: Square, Landscape, Portrait */
.spec.spec-shapes { background: none; border: 0; padding: 0; }
.shape-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.4rem; padding-top: 1.6rem; align-items: start; }
.shape-card { background: var(--surface-2); border: 1px solid var(--rule); border-radius: 18px; padding: 1.5rem 1.5rem .6rem; box-shadow: 6px 8px 22px -16px var(--page-shadow); }
.shape-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--heading); }
.shape-head h4 { margin: 0; font: italic 400 1.6rem/1.1 var(--font-caption); color: var(--accent-ink); }
.shape-head p { margin: .25rem 0 0; font-size: .85rem; color: var(--fg-muted); }
.shape-icon { flex: none; display: block; border: 1.5px solid var(--accent); border-radius: 3px; background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 4px 0 0 -2px var(--accent); }
.shape-icon.square { width: 40px; height: 40px; }
.shape-icon.landscape { width: 48px; height: 36px; }
.shape-icon.portrait { width: 34px; height: 45px; }
.spec .shape-card dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "sz cost" "add total"; gap: .9rem 1rem; padding: 1.1rem 0; border-bottom: 1px dotted var(--rule); align-items: center; }
.spec .shape-card dl > div:last-child { border-bottom: 0; }
.spec .shape-card dt { grid-area: sz; font-size: .8rem; letter-spacing: .16em; }
.spec .shape-card dt small { display: block; margin-top: .3rem; letter-spacing: 0; text-transform: none; font-size: .95rem; color: var(--heading); }
.spec .shape-card dd.cost { grid-area: cost; text-align: right; font-weight: 500; color: var(--heading); }
.spec .shape-card dd.add { grid-area: add; text-align: left; }
.spec .shape-card dd.total { grid-area: total; text-align: right; }
.spec .shape-card dd.cost small, .spec .shape-card dd.total small:first-child { display: block; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-muted); font-weight: 400; }
.spec .shape-card dt small.in { margin-top: .1rem; font-size: .8rem; color: var(--fg-muted); }
.spec .shape-card dd.add small { display: block; margin-top: .4rem; font-size: .76rem; color: var(--fg-muted); }
@media (max-width: 640px) { .spec .shape-card dl > div { grid-template-areas: "sz cost" "add total"; } .shape-card { padding: 1.2rem 1.1rem .4rem; }}
/* Shape cards: each shape has its own colour (Square sage, Landscape gold, Portrait teal) with stronger keylines */
.shape-card:has(.shape-icon.square) { --c: #5F8A4C; --c-ink: #3F6630; }
.shape-card:has(.shape-icon.landscape) { --c: #C29A45; --c-ink: #80652C; }
.shape-card:has(.shape-icon.portrait) { --c: #4E8378; --c-ink: #2F5F55; }
.shape-card { background: color-mix(in srgb, var(--c) 13%, var(--surface-2)); border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent); border-top: 6px solid var(--c); overflow: hidden; }
.shape-head { margin: -1.5rem -1.5rem 0; padding: 1.3rem 1.5rem 1.1rem; background: color-mix(in srgb, var(--c) 24%, var(--surface-2)); border-bottom: 2px solid var(--c); }
.shape-head h4 { color: var(--c-ink); font-weight: 500; }
.shape-icon { border-color: var(--c); border-width: 2px; background: color-mix(in srgb, var(--c) 30%, transparent); box-shadow: inset 5px 0 0 -2px var(--c); }
.spec .shape-card dl > div { border-bottom: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); }
.spec .shape-card dt { color: var(--c-ink); font-weight: 500; }
.spec .shape-card dt small { font-weight: 400; }
.spec .shape-card dd.cost, .spec .shape-card dd.total { color: var(--c-ink); }
.shape-card .stepper { border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 8%, var(--surface-2)); }
.shape-card .stepper button:hover:not(:disabled) { background: color-mix(in srgb, var(--c) 22%, transparent); }
.shape-card .stepper button:disabled { color: color-mix(in srgb, var(--c) 35%, transparent); }
@media (max-width: 640px) { .shape-head { margin: -1.2rem -1.1rem 0; padding: 1.1rem 1.1rem 1rem; }}
/* Album sizes quote: two lines in two colours, like the landing headline */
.craft .quote span, .craft .quote em { display: block; }
.craft .quote span { color: var(--heading); }
.craft .quote em { font-style: italic; color: var(--accent-ink); margin-top: .2rem; }
.craft .quote { max-width: none; }
/* Shape cards laid out horizontally: one row per shape, sizes running across in Small / Medium / Large columns */
.shape-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.shape-card { display: grid; grid-template-columns: 15rem minmax(0, 1fr); padding: 0; border-top-width: 1.5px; border-left: 6px solid var(--c); }
.shape-head { margin: 0; padding: 1.4rem 1.4rem; flex-direction: column; align-items: flex-start; justify-content: center; gap: .8rem; border-bottom: 0; border-right: 2px solid var(--c); }
.shape-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec .shape-card dl > div { padding: 1.2rem 1.3rem; border-bottom: 0; border-left: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); }
.spec .shape-card dl > div:first-child { border-left: 0; }
.shape-card:has(.shape-icon.portrait) dl > div { grid-column: 3; border-left: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); }
@media (max-width: 1100px) {
  .shape-card { grid-template-columns: minmax(0, 1fr); border-left-width: 1.5px; border-top-width: 6px; }
  .shape-head { flex-direction: row; align-items: center; border-right: 0; border-bottom: 2px solid var(--c); padding: 1.1rem 1.3rem; }
  .shape-card:has(.shape-icon.portrait) dl > div { grid-column: 3; }}
@media (max-width: 760px) {
  .shape-card dl { grid-template-columns: minmax(0, 1fr); }
  .spec .shape-card dl > div, .shape-card:has(.shape-icon.portrait) dl > div { grid-column: auto; border-left: 0; border-top: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); }
  .spec .shape-card dl > div:first-child { border-top: 0; }}
/* Portrait comes in Large only: say so in the empty Small and Medium columns */
.shape-card:has(.shape-icon.portrait) dl::before { content: "Portrait albums come in Large only"; grid-column: 1 / 3; grid-row: 1; align-self: center; justify-self: center; font: italic 400 1.15rem/1.3 var(--font-caption); color: var(--fg-muted); }
@media (max-width: 760px) { .shape-card:has(.shape-icon.portrait) dl::before { content: none; }}
/* Size names larger; inches tucked right under the metric size */
.spec .shape-card dt { font-size: .95rem; letter-spacing: .14em; }
.spec .shape-card dt small { margin-top: .35rem; line-height: 1.2; }
.spec .shape-card dt small.in { margin-top: 0; line-height: 1.2; }
/* What we make: quick-scroll rail on the right (a dot per album, a draggable handle) */
.occ-rail { display: none; }
.occ-pin .occ-rail { display: block; position: absolute; right: max(18px, var(--gutter-r)); top: 50%; transform: translateY(-50%); width: 30px; height: min(52%, 340px); z-index: 6; touch-action: none; cursor: pointer; }
.occ-rail-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); border-radius: 2px; background: var(--rule); }
.occ-rail-fill { position: absolute; left: 50%; top: 0; width: 2px; height: calc(var(--rail, 0) * 100%); transform: translateX(-50%); border-radius: 2px; background: var(--accent); }
.occ-rail-dot { position: absolute; left: 50%; top: calc(var(--k) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; padding: 0; border-radius: 50%; border: 2px solid var(--bg); background: var(--cover); box-shadow: 0 0 0 1px var(--rule); cursor: pointer; transition: transform .2s; }
.occ-rail-dot:hover { transform: scale(1.35); }
.occ-rail-thumb { position: absolute; left: 50%; top: calc(var(--rail, 0) * 100%); width: 24px; height: 36px; margin: -18px 0 0 -12px; border-radius: 999px; border: 2px solid var(--accent); background: color-mix(in srgb, var(--bg) 55%, transparent); box-shadow: 0 4px 14px -4px var(--page-shadow); cursor: grab; }
.occ-rail-thumb:focus-visible { outline: 2px solid var(--heading); outline-offset: 3px; }
.occ-rail.dragging .occ-rail-thumb { cursor: grabbing; background: color-mix(in srgb, var(--accent) 25%, var(--bg)); }
@media (max-width: 640px) { .occ-pin .occ-rail { right: 8px; width: 22px; height: min(44%, 260px); } .occ-rail-thumb { width: 18px; height: 30px; margin: -15px 0 0 -9px; }}
/* Landing slide 1: copy set as an even two-line block, with "photographs" on the top line */
.hero #slide-1 .hero-copy > .lede { max-width: 24em; }
/* What we make: more room between the headline and the tabs and albums */
.occ-pin .occ-tabs { padding-top: clamp(1.2rem, 3.5vh, 2.4rem); }
.occ-pin .occ-panel { padding-block: clamp(1.2rem, 3.5vh, 2.2rem) 0; }
.bk-stage { --W: min(clamp(240px, 40vw, 520px), 92cqw, calc((100vh - 510px) / var(--hr))); }
#occasions .bk-stage { --W: min(clamp(240px, 40vw, 520px), 92cqw, calc((100vh - 545px) / var(--hr))); }   /* room for the headline above and the name below */
/* The Process: the same quick-scroll rail on the right; photo and steps move left to make room */
#process.proc-pin > .wrap { position: sticky; }
#process.proc-pin .occ-rail { display: block; position: absolute; right: 0; top: 58%; transform: translateY(-50%); width: 30px; height: min(56%, 380px); z-index: 6; touch-action: none; cursor: pointer; }
#process.proc-pin .proc-grid { padding-right: 3.5rem; }
#process .occ-rail-dot { --cover: var(--accent); }
@media (max-width: 860px) { #process.proc-pin .occ-rail { width: 22px; } #process.proc-pin .proc-grid { padding-right: 2.2rem; }}
/* Opening logo: light moving like sunlight under water, the wordmark comes in and the leaf blossoms, then cut to the landing page */
#intro { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; overflow: hidden; background: #D9DDC8 var(--sage-bg) center / cover no-repeat; transition: opacity .45s ease, visibility 0s linear .45s; }
#intro.done { opacity: 0; visibility: hidden; }
html.intro-lock, html.intro-lock body { overflow: hidden; }
#intro.quiet > * { visibility: hidden; }
/* the logo waits, still and hidden, until its font and the sage backdrop have arrived, so the opening always plays in full */
#intro.wait .intro-logo { visibility: hidden; }
#intro.wait .intro-logo, #intro.wait .intro-logo * { animation-play-state: paused; }
.intro-water { position: absolute; inset: 0; pointer-events: none; }
.intro-rays { position: absolute; inset: -30%; background: repeating-linear-gradient(115deg, transparent 0 7%, rgba(255, 252, 235, .22) 9%, transparent 12% 19%, rgba(255, 252, 235, .14) 21%, transparent 25%); filter: blur(18px); mix-blend-mode: screen; animation: intro-rays 6s ease-in-out infinite alternate; }

@keyframes intro-rays { from { transform: translateX(-3%) skewX(-2deg); opacity: .65; } to { transform: translateX(3%) skewX(3deg); opacity: 1; } }
.intro-logo { position: relative; display: grid; justify-items: center; text-align: center; }
.intro-logo b { position: relative; font: 400 clamp(3.6rem, 15vw, 11.5rem)/1 var(--font-display); color: var(--heading); letter-spacing: -.005em; animation: intro-word 1.3s cubic-bezier(.2,.7,.2,1) .15s both; }
.intro-logo small { font: 400 clamp(.85rem, 2.3vw, 1.8rem)/1 var(--font-body); letter-spacing: .62em; padding-left: .62em; margin-top: .55em; color: var(--accent); animation: intro-fade 1s ease .75s both; }
.intro-sprig { position: absolute; width: 1.12em; height: auto; top: -.72em; left: calc(50% - .56em); overflow: visible; }
.intro-sprig .st { stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw .7s cubic-bezier(.4,0,.2,1) 1.05s forwards; }
.intro-sprig .st2 { animation-delay: 1.45s; animation-duration: .45s; }
.intro-sprig .st3 { animation-delay: 1.6s; animation-duration: .45s; }
.intro-sprig .lf { transform-box: fill-box; opacity: 0; animation: intro-bloom .9s cubic-bezier(.2,.8,.25,1.15) forwards; }
.intro-sprig .lf-l { transform-origin: 100% 100%; animation-delay: 1.75s; }
.intro-sprig .lf-t { transform-origin: 0% 100%; animation-delay: 1.55s; }
.intro-sprig .lf-r { transform-origin: 0% 100%; animation-delay: 1.95s; }
@keyframes intro-word { from { opacity: 0; transform: translateY(.12em); filter: blur(8px); letter-spacing: .05em; } to { opacity: 1; transform: none; filter: none; letter-spacing: -.005em; } }
@keyframes intro-fade { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-bloom { 0% { opacity: 0; transform: scale(.05) rotate(-18deg); } 35% { opacity: 1; } 100% { opacity: 1; transform: none; } }
/* Opening: drifting caustic light (replaces the live SVG filter) */
.intro-c { position: absolute; inset: -30%; background-image: var(--caustic); background-repeat: repeat; mix-blend-mode: soft-light; will-change: transform; }
.intro-c1 { background-size: 420px; opacity: .9; filter: blur(1.2px); animation: intro-c1 8s ease-in-out infinite alternate; }
.intro-c2 { background-size: 610px; opacity: .6; filter: blur(2.5px); animation: intro-c2 11s ease-in-out infinite alternate; }
@keyframes intro-c1 { from { transform: translate3d(-3%, -2%, 0) rotate(-2deg) scale(1.02); } to { transform: translate3d(3%, 2.5%, 0) rotate(2deg) scale(1.08); } }
@keyframes intro-c2 { from { transform: translate3d(3%, 1%, 0) rotate(3deg) scale(1.1); } to { transform: translate3d(-3%, -2%, 0) rotate(-1deg) scale(1.03); } }
.intro-logo small { font-size: clamp(1.1rem, 3.3vw, 2.7rem); letter-spacing: .6em; padding-left: .6em; }
.intro-sprig { width: 1.22em; top: -.8em; left: calc(50% - .6em); }
/* Collections: equal cards; The Heirloom in the deep teal used for Portrait albums */
.collections { align-items: stretch; }
.tier { height: 100%; }
/* Opening: softer caustics, calmer behind the logo */
.intro-water { -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 48%, rgba(0,0,0,.35), #000 75%); mask-image: radial-gradient(ellipse 60% 50% at 50% 48%, rgba(0,0,0,.35), #000 75%); }
.intro-c1 { opacity: .55; filter: blur(1.8px); }
.intro-c2 { opacity: .4; filter: blur(3px); }
/* Opening: larger logo on phones */
@media (max-width: 640px) { .intro-logo b { font-size: 21vw; } .intro-logo small { font-size: 4.6vw; }}
/* Opening v2: background as in the logo artwork (sage, pale centre, light from the upper right) with only subtle movement;
   "Memento" draws in as an outline, then fills; timings leave room for the outline before the leaf grows */
#intro { background: radial-gradient(ellipse 55% 45% at 48% 47%, rgba(240, 238, 222, .75), rgba(240, 238, 222, 0) 70%), var(--sage-bg) center / cover no-repeat, #C9D0B8; }
.intro-c1 { opacity: .16; filter: blur(3px); }
.intro-c2 { opacity: .1; filter: blur(4px); }
.intro-water { -webkit-mask-image: none; mask-image: none; }
.intro-rays { inset: -40%; background: repeating-linear-gradient(118deg, transparent 0 9%, rgba(255, 253, 240, .26) 12%, transparent 16% 24%, rgba(255, 253, 240, .16) 27%, transparent 31% 40%); filter: blur(26px); opacity: .85; animation: intro-rays 7s ease-in-out infinite alternate; }
.intro-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 40% 34% at 52% 46%, rgba(255, 252, 238, .35), transparent 70%); animation: intro-glow 5s ease-in-out infinite alternate; }
@keyframes intro-glow { from { opacity: .6; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }
@keyframes intro-rays { from { transform: translateX(-2%) skewX(-1.5deg); opacity: .7; } to { transform: translateX(2.5%) skewX(2deg); opacity: 1; } }
.intro-logo b { font-size: clamp(3.6rem, 14vw, 10.5rem); }
.intro-word { color: transparent; -webkit-text-stroke: max(1px, .008em) var(--heading); animation: intro-fill 1s ease .6s forwards; }
@keyframes intro-fill { to { color: var(--heading); -webkit-text-stroke-color: rgba(44, 65, 41, 0); } }
.intro-bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.intro-sprig { width: auto; top: auto; left: auto; }
.intro-logo small { animation-delay: 1.5s; }
/* 2026-11-05: one second tighter; the leaves open the moment "Memento" is fully filled in (1.6 s), the stems lead into them */
.intro-sprig .st { animation-delay: 1.15s; }
.intro-sprig .st2 { animation-delay: 1.45s; }
.intro-sprig .st3 { animation-delay: 1.55s; }
.intro-sprig .lf { animation-duration: .8s; }
.intro-sprig .lf-t { animation-delay: 1.6s; }
.intro-sprig .lf-l { animation-delay: 1.72s; }
.intro-sprig .lf-r { animation-delay: 1.84s; }
@media (max-width: 640px) { .intro-logo b { font-size: 20vw; }}
























/* Collections: once the section has locked in under the menu, the three cards come in one at a time
   (The Keepsake, The Legacy, The Heirloom), rising and tilting up into place */
.tier-anim .collections { perspective: 1400px; }
.tier-anim .tier, .tier-anim .tier.rv { opacity: 0; transform: translateY(70px) rotateX(-14deg) scale(.96); transform-origin: 50% 100%; transition: none; }
.tier-anim.tiers-in .tier { animation: tier-in .9s cubic-bezier(.2,.8,.25,1) both; }
.tier-anim.tiers-in .tier:nth-child(1) { animation-delay: .15s; }
.tier-anim.tiers-in .tier:nth-child(2) { animation-delay: .55s; }
.tier-anim.tiers-in .tier:nth-child(3) { animation-delay: .95s; }
@keyframes tier-in { 0% { opacity: 0; transform: translateY(70px) rotateX(-14deg) scale(.96); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }
/* Collections: all three Inquire buttons share the same keyline outline */
.tier .btn { background: transparent; border: 1px solid color-mix(in srgb, var(--bg) 70%, transparent); color: var(--bg); }
.tier .btn:hover { background: color-mix(in srgb, var(--bg) 14%, transparent); border-color: var(--bg); }
/* What we make: "Start your album" opens an album page (copy, the 3D book, and the size/pages chart to choose from) */
.occ-start { justify-self: start; margin-top: 1.1rem; }
html.ap-open, html.ap-open body { overflow: hidden; }
.album-page { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--bg); }
html.ap-open .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 61; }   /* the main menu stays on top; the page starts under it (top set when it opens) */
.album-page[hidden] { display: none; }
.album-page.ap-in { animation: ap-in .45s cubic-bezier(.2,.8,.25,1) both; }
@keyframes ap-in { from { opacity: 0; transform: translateY(24px); } }
.ap-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem max(var(--gutter), calc((100vw - var(--wrap)) / 2)); border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.ap-top .brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.ap-top .brand svg { width: 28px; height: 28px; }
.ap-back { font: 500 .78rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--heading); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: .75rem 1.1rem; cursor: pointer; }
.ap-back:hover { border-color: var(--heading); }
.ap-body { overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.5rem, 4vh, 3rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 3rem; }
.ap-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.album-page.ap-build .ap-hero { grid-template-columns: minmax(0, 1fr); }
.album-page.ap-build .ap-book { display: none; }
.ap-book { display: grid; place-items: center; min-height: 0; }
.ap-book .bk-stage { --W: min(380px, 70vw, calc((100vh - 280px) / var(--hr))); container-type: normal; }
.ap-book .bk-spin { animation: ap-sway 7s ease-in-out infinite alternate; }
@keyframes ap-sway { from { transform: rotateX(-4deg) rotateY(18deg); } to { transform: rotateX(-3deg) rotateY(-10deg); } }
.ap-copy #ap-title { font: 400 var(--step-4)/1.05 var(--font-display); color: var(--heading); margin: .4rem 0 1rem; }
.ap-build .ap-copy #ap-title { font-size: clamp(2.3rem, 1.5rem + 2.4vw, 3.6rem); }   /* Album build: a smaller heading than an album's own name */
.ap-text p { color: var(--fg-muted); font-size: 1.08rem; max-width: 46ch; }
.ap-text .ex { display: block; margin-top: .8rem; font: italic 400 1.35rem/1.3 var(--font-caption); color: var(--accent-ink); }
.ap-text .pages-scale { margin-top: 1.2rem; }
.ap-chart .shape-grid { padding-top: 1.4rem; }
.ap-chart dl > div { cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; }
.ap-chart dl > div:hover { background: color-mix(in srgb, var(--c) 10%, transparent); }
.ap-chart dl > div.ap-picked { background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: inset 0 0 0 2px var(--c); border-radius: 10px; }
.ap-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem max(var(--gutter), calc((100vw - var(--wrap)) / 2)); background: var(--heading); color: var(--bg); }
.ap-sum { display: grid; gap: .25rem; }
.ap-sum-label { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: #E3C48C; }
.ap-sum-text { font: 400 1.25rem/1.25 var(--font-display); }
.ap-cta { background: #E3C48C; border-color: #E3C48C; color: #1E2A1D; }
.ap-cta:disabled { opacity: .45; cursor: default; transform: none; }
@media (max-width: 860px) {
  .ap-hero { grid-template-columns: minmax(0, 1fr); }
  .ap-bar { flex-direction: column; align-items: stretch; text-align: center; }}
/* album page: the book arrives (slides in, spins to its front); Childhood memoir builds its covers as it does */
.ap-book { --ap: 1; }
.ap-book .ap-panel { background: none; padding: 0; display: grid; place-items: center; }
/* What we make, clean introduction (rotation paused at the user's request; delete this block to bring the spin back):
   each album's book rises gently into place already facing front, with a soft fade (fade on the stage, movement on the
   3D book, so the covers keep hiding their backs) */
#occasions.occ-anim .occ-panel:not(.open) .bk-spin { transform: translateY(34px) rotateX(-4deg) rotateY(12deg) scale(.95); }
#occasions.occ-anim .occ-panel.open .bk-spin { animation: bk-intro 1.1s cubic-bezier(.2,.8,.25,1) .1s both; }
#occasions.occ-anim .occ-panel.open .bk-stage { animation: bk-fade .8s ease .1s both; }
@keyframes bk-intro { from { transform: translateY(34px) rotateX(-4deg) rotateY(12deg) scale(.95); } to { transform: rotateX(-4deg) rotateY(12deg); } }
/* What we make spin: the book rises in on its front and turns 1 s after it appears, 180° to the back, holds 2 s, keeps turning the
   same way round to the front and stays there (1.2 s turn, 2 s hold, 1.2 s turn = 4.4 s, played once) */
#occasions.occ-anim .occ-panel.open .bk-spin { animation: bk-intro .8s cubic-bezier(.2,.8,.25,1) .1s both, bk-flip 4.4s linear 1.1s 1 forwards; }
@keyframes bk-flip {
  0% { transform: rotateX(-4deg) rotateY(12deg); animation-timing-function: cubic-bezier(.45,0,.25,1); }
  27.27% { transform: rotateX(-4deg) rotateY(192deg); }
  72.73% { transform: rotateX(-4deg) rotateY(192deg); animation-timing-function: cubic-bezier(.45,0,.25,1); }
  100% { transform: rotateX(-4deg) rotateY(372deg); }
}
@media (prefers-reduced-motion: reduce) { #occasions.occ-anim .occ-panel.open .bk-spin { animation: none; }}
/* Menu: "Album Sizes" opens a list of the six albums, each going straight to its album page */
.nav-drop { position: relative; display: inline-flex; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: .3rem; font: 400 .9rem/1.4 var(--font-body); color: var(--fg-muted); transition: color .2s; background: none; border: 0; padding: 0; cursor: pointer; }
.nav-drop-btn svg { width: 12px; height: 12px; transition: transform .25s ease; }
.nav-drop-menu { position: absolute; top: calc(100% + .9rem); left: 50%; translate: -50% 0; z-index: 30; min-width: 270px; display: grid; gap: .1rem; padding: .7rem; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface-2); box-shadow: 0 22px 44px -24px var(--page-shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu, .nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-drop:hover .nav-drop-btn svg, .nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav .nav-drop-menu a { display: flex; align-items: center; gap: .7rem; padding: .62rem .7rem; border-radius: 10px; color: var(--heading); text-decoration: none; white-space: nowrap; }
.nav .nav-drop-menu a:hover, .nav .nav-drop-menu a:focus-visible { background: color-mix(in srgb, var(--heading) 8%, transparent); }
.nav-drop-menu a i { width: 11px; height: 11px; border-radius: 50%; background: var(--cover); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex: none; }
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { color: var(--heading); }
.nav .nav-drop-menu a:not(.btn) { font-size: .92rem; color: var(--heading); }
/* Album page order builder: six numbered steps on the left, a running order summary on the right */
.ap-order { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(2.5rem, 6vh, 4.5rem); }
.ap-form { display: grid; gap: 1.2rem; min-width: 0; }
.ap-step { border: 1px solid var(--rule); border-radius: 20px; background: color-mix(in srgb, var(--surface-2) 70%, var(--bg)); padding: clamp(1.2rem, 2.6vw, 2rem); scroll-margin-top: 1rem; }
.ap-step > header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.ap-num { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--heading); color: var(--bg); font: 500 .95rem/1 var(--font-body); }
.ap-step h2 { font-size: var(--step-2); margin: .1rem 0 .25rem; }
.ap-step header p { color: var(--fg-muted); font-size: .95rem; margin: 0; }
.ap-step .ap-chart .shape-grid { padding-top: .2rem; }
/* each step folds down to its number and title; ap-fold opens it on mouse-over, tap or keyboard (see the script) */
.ap-fold .ap-step { padding-block: clamp(.7rem, 1.4vw, 1rem); transition: padding-block .4s ease; }
.ap-fold .ap-step.open { padding-block: clamp(1.2rem, 2.6vw, 2rem); }
.ap-fold .ap-step > header { align-items: center; margin-bottom: 0; cursor: pointer; }
.ap-fold .ap-step > header h2 { margin: 0; }
.ap-fold .ap-step > header > div { flex: 1 1 auto; min-width: 0; }
.ap-chosen { flex: none; font: 500 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.ap-opt.confirmed::after { content: "\2713"; position: absolute; top: .7rem; right: .8rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--heading); color: var(--bg); font: 500 .8rem/1 var(--font-body); }
.ap-fold .ap-step > header:focus-visible { outline: 2px solid var(--heading); outline-offset: 4px; border-radius: 8px; }
.ap-step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.ap-step.open > .ap-step-body { grid-template-rows: 1fr; }
.ap-step-in { min-height: 0; overflow: hidden; }
.ap-step.settled .ap-step-in { overflow: visible; }
.ap-step-lede { padding: 1rem 0 1.2rem calc(2.2rem + 1rem); color: var(--fg-muted); font-size: .95rem; }
.ap-step-lede p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .ap-step-body, .ap-fold .ap-step { transition: none; }}
.ap-q { margin: 1.2rem 0 .6rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.ap-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.ap-opt { position: relative; display: grid; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface-2); cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.ap-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ap-opt b { font-weight: 500; color: var(--heading); }
.ap-opt small { color: var(--fg-muted); font-size: .85rem; line-height: 1.45; }
.ap-opt:hover { border-color: color-mix(in srgb, var(--heading) 45%, transparent); }
.ap-opt:has(input:checked) { border-color: var(--heading); box-shadow: inset 0 0 0 1px var(--heading); background: color-mix(in srgb, var(--heading) 7%, var(--surface-2)); }
.ap-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem 1rem; }
.ap-field { display: grid; gap: .35rem; }
.ap-field.full { grid-column: 1 / -1; }
.ap-field > span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-muted); }
.ap-field input, .ap-field select, .ap-field textarea { font: inherit; color: var(--heading); background: var(--surface-2); border: 1px solid var(--rule); border-radius: 10px; padding: .75rem .85rem; width: 100%; }
.ap-field textarea { resize: vertical; }
.ap-field input:focus, .ap-field select:focus, .ap-field textarea:focus { outline: none; border-color: var(--heading); box-shadow: 0 0 0 3px color-mix(in srgb, var(--heading) 12%, transparent); }
.ap-copies { display: flex; align-items: center; gap: .8rem; }
.ap-copies .stepper { border: 1px solid var(--heading); }
.ap-copies .stepper button { width: 2.4rem; height: 2.4rem; }
.ap-copies output { min-width: 2.6rem; font-size: 1.1rem; }
.ap-c-label { color: var(--fg-muted); }
.ap-done { margin-top: 1rem; }
/* the buttons under the order sheet always stay in view: on a short screen the sheet scrolls by itself above them */
.ap-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: .8rem; min-width: 0; max-height: calc(100vh - 67px - 4vh - 2rem); max-height: calc(100dvh - 67px - 4vh - 2rem); }   /* it sticks under the page's own top padding, about 4vh */
.ap-side > .ap-summary { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.ap-side > .ap-summary::-webkit-scrollbar { display: none; }
.ap-start-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.8rem); margin-top: clamp(1rem, 2.6vh, 1.6rem); height: max(23rem, calc(100vh - 25rem)); height: max(23rem, calc(100dvh - 25rem)); }
/* the two choices: a photo above, title and arrow below; they rise in one after the other, and lift on hover */
.ap-card { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0; overflow: hidden; border: 0; border-radius: 22px; font: inherit; text-align: left; text-decoration: none; cursor: pointer; box-shadow: 0 24px 44px -26px rgba(20, 28, 18, .6); transition: translate .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, background-color .35s ease, color .35s ease; background: var(--bg); color: var(--heading); animation: ap-card-in .8s cubic-bezier(.2,.8,.25,1) .1s backwards; }
.ap-card-saved { animation-delay: .24s; }
@keyframes ap-card-in { from { opacity: 0; translate: 0 30px; } }
.ap-card:hover, .ap-card:focus-visible { translate: 0 -6px; box-shadow: 0 34px 54px -26px rgba(20, 28, 18, .72); }
.ap-card:focus-visible { outline: 2px solid var(--heading); outline-offset: 3px; }
.ap-card:hover, .ap-card:focus-visible { background: var(--heading); color: var(--bg); }
.ap-card-img { flex: 1 1 0; min-height: 0; display: block; overflow: hidden; }
.ap-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 1.1s cubic-bezier(.2,.7,.2,1); }
.ap-card:hover .ap-card-img img, .ap-card:focus-visible .ap-card-img img { scale: 1.05; }
.ap-card-txt { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1.2rem; padding: clamp(1rem, 2.4vh, 1.6rem) clamp(1.1rem, 2vw, 1.8rem); }
.ap-card-txt b { grid-column: 1; font: 400 clamp(1.5rem, 1.1rem + 1.1vw, 2.2rem)/1.15 var(--font-display); }
.ap-card-txt em { grid-column: 1; margin-top: .3rem; font: italic 400 clamp(1rem, .95rem + .2vw, 1.15rem)/1.35 var(--font-caption); opacity: .86; }
.ap-card-txt i { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; font: 400 1.25rem/1 var(--font-body); background: var(--heading); color: var(--bg); transition: translate .4s cubic-bezier(.2,.7,.2,1), background-color .35s ease, color .35s ease; }
.ap-card:hover i, .ap-card:focus-visible i { translate: 5px 0; background: var(--bg); color: var(--heading); }
/* both cards' text panels are the same height (room for the title and two caption lines), so the photos above match too */
.ap-card-txt { align-content: center; min-height: calc(2 * clamp(1rem, 2.4vh, 1.6rem) + 1.15 * clamp(1.5rem, 1.1rem + 1.1vw, 2.2rem) + .3rem + 2 * 1.35 * clamp(1rem, .95rem + .2vw, 1.15rem)); }
@media (max-width: 760px) {
  .ap-start-acts { grid-template-columns: minmax(0, 1fr); height: auto; }
  .ap-card-img { flex: none; height: clamp(8rem, 22vh, 13rem); }}
@media (prefers-reduced-motion: reduce) { .ap-card, .ap-card-img img, .ap-card-txt i { animation: none; transition: none; }}
/* before Start a new album is pressed, only the title and its two buttons show */
.album-page.ap-pick .ap-order, .album-page.ap-pick .ap-bar, .album-page:not(.ap-pick) .ap-foot-pick { display: none; }
.album-page:not(.ap-pick) .ap-start-acts { display: none; }
.ap-foot-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1.2rem; margin-top: clamp(1.2rem, 3vh, 2rem); }
.ap-foot-acts .btn, .ap-foot-acts .ap-back { justify-content: center; text-align: center; padding: .85rem 1.5rem; font: 500 .72rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; background: var(--heading); color: var(--bg); border: 1px solid var(--heading); border-radius: 999px; box-shadow: 0 10px 22px -14px var(--page-shadow); transition: background-color .25s ease, translate .25s ease; }
.ap-foot-acts .btn:hover, .ap-foot-acts .ap-back:hover { background: color-mix(in srgb, var(--heading) 82%, black); color: var(--bg); border-color: var(--heading); translate: 0 -1px; }
@media (min-width: 1001px) and (max-height: 960px) {
  .album-page .ap-summary { gap: .45rem; padding: 1rem 1.6rem; }
  .album-page .ap-summary dl { padding-block: .5rem; gap: .3rem; }
  .album-page .ap-summary dl > div, .album-page .ap-summary .ap-sum-lines > div { height: 1.3rem; }}
.ap-summary { position: static; display: grid; gap: .9rem; padding: 1.6rem; border-radius: 20px; background: var(--heading); color: var(--bg); }
.ap-summary .eyebrow { color: #E3C48C; margin: 0; }
.ap-sum-album { font: 400 var(--step-2)/1.15 var(--font-display); color: var(--bg); margin: 0; }
.ap-summary dl { display: grid; gap: .55rem; margin: 0; padding: .9rem 0; border-block: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); }
.ap-summary dl > div { display: flex; justify-content: space-between; gap: 1rem; }
.ap-summary dt { font-size: .8rem; color: color-mix(in srgb, var(--bg) 70%, transparent); }
.ap-summary dd { margin: 0; text-align: right; font-size: .9rem; }
.ap-sum-price { display: flex; justify-content: space-between; align-items: baseline; }
.ap-sum-price span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #E3C48C; }
.ap-sum-price b { font: 400 1.9rem/1 var(--font-display); }
.ap-sum-note { margin: 0; font-size: .8rem; line-height: 1.5; color: color-mix(in srgb, var(--bg) 70%, transparent); }
.ap-sum-go { background: #E3C48C; border-color: #E3C48C; color: #1E2A1D; }
.ap-sum-send { background: var(--bg); border-color: var(--bg); }
.ap-sum-send:hover { background: #E3C48C; border-color: #E3C48C; color: #1E2A1D; }
/* step 1: Name your album */
.ap-name-row { display: flex; gap: .7rem; }
.ap-name-row input { flex: 1 1 auto; min-width: 0; font: inherit; color: var(--heading); background: var(--surface-2); border: 1px solid var(--rule); border-radius: 10px; padding: .75rem .85rem; }
.ap-name-row input:focus { outline: none; border-color: var(--heading); box-shadow: 0 0 0 3px color-mix(in srgb, var(--heading) 12%, transparent); }
.ap-name.ap-name-empty .ap-name-row input { border-color: #C98A80; background: #F6E3DF; box-shadow: 0 0 0 3px rgba(201, 138, 128, .18); }
.ap-name-save { flex: none; }
.ap-name-note { margin: .6rem 0 0; font-size: .9rem; color: var(--accent-ink); }
.ap-name-note:empty { display: none; }
.ap-sum-name { margin: 0; font: 400 var(--step-1)/1.2 var(--font-display); color: #E3C48C; overflow-wrap: anywhere; }
.ap-sum-name[hidden] { display: none; }
/* step 2: layout icons; the chosen layout's sizes drop down beneath */
.ap-layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.ap-layout { position: relative; display: grid; justify-items: center; text-align: center; gap: .45rem; padding: 1.3rem 1rem 1.1rem; border: 1.5px solid var(--rule); border-radius: 16px; background: var(--surface-2); cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s, transform .2s; }
.ap-layout input { position: absolute; opacity: 0; pointer-events: none; }
.ap-layout:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-2px); }
.ap-layout:has(input:checked) { border-color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface-2)); }
.ap-layout:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-layout b { font: italic 500 1.35rem/1.1 var(--font-caption); color: var(--heading); }
.ap-layout small { font-size: .8rem; line-height: 1.4; color: var(--fg-muted); }
.ap-shape { display: block; margin-bottom: .3rem; border: 2px solid var(--c); border-radius: 4px; background: color-mix(in srgb, var(--c) 28%, transparent); box-shadow: inset 6px 0 0 -2px var(--c), 4px 6px 12px -8px var(--page-shadow); }
.ap-shape.square { width: 64px; height: 64px; }
.ap-shape.landscape { width: 80px; height: 60px; }
.ap-shape.portrait { width: 54px; height: 72px; }
.ap-sizes { margin-top: 1.4rem; }
.ap-sizes .ap-q { margin-top: 0; }
.ap-sizes-help { margin: 0 0 .4rem; color: var(--fg-muted); font-size: .9rem; }
.ap-sizes.ap-drop { animation: ap-drop .5s cubic-bezier(.2,.8,.25,1) both; transform-origin: 50% 0; }
@keyframes ap-drop { from { opacity: 0; transform: translateY(-14px) scaleY(.96); } }
.ap-chart .shape-card[hidden] { display: none; }
@media (max-width: 560px) { .ap-layouts { grid-template-columns: minmax(0, 1fr); }}
@media (min-width: 1001px) { .album-page .ap-bar { display: none; }}
@media (max-width: 1000px) { .ap-order { grid-template-columns: minmax(0, 1fr); } .ap-side { position: static; max-height: none; } .ap-side > .ap-summary { overflow: visible; }}
/* album page: the layout icon already names the shape, so its sizes get the full width */
.ap-chart .spec .shape-card { grid-template-columns: minmax(0, 1fr); border-left-width: 1.5px; border-top-width: 6px; }
.ap-chart .spec .shape-head { display: none; }
.ap-opt em { font-style: normal; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-top: .2rem; }
/* binding cards: the option name in small spaced capitals, the price note in sentence case */
.ap-step#ap-s2 .ap-opt b { font: 500 .82rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
.ap-step#ap-s2 .ap-opt em { font: italic 400 1.02rem/1.35 var(--font-caption); letter-spacing: 0; text-transform: none; color: var(--accent-ink); }
/* the chosen option stays highlighted (Standard binding from the start) */
.ap-opt.is-on { border-color: var(--heading); box-shadow: inset 0 0 0 1px var(--heading); background: color-mix(in srgb, var(--heading) 7%, var(--surface-2)); }
/* Binding: Standard is the starting value, but neither box looks chosen until the customer picks one */
#ap-s2 .ap-opt:has(input:checked):not(.confirmed) { border-color: var(--rule); box-shadow: none; background: var(--surface-2); }
#ap-s2 .ap-opt:has(input:checked):not(.confirmed):hover { border-color: color-mix(in srgb, var(--heading) 45%, transparent); }
.ap-layout.is-on { border-color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface-2)); }
/* step 3 photo counts and the scanning line; summary price breakdown */
.ap-hint { font-size: .8rem; color: var(--fg-muted); }
.ap-scan { margin: .9rem 0 0; padding: .7rem 1rem; border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--heading); font-size: .95rem; }
.ap-sum-lines { display: grid; gap: .4rem; }
.ap-sum-lines > div { display: flex; justify-content: space-between; font-size: .9rem; }
.ap-sum-lines span { color: color-mix(in srgb, var(--bg) 70%, transparent); font-size: .8rem; }
/* Design & layout step */
.ap-design-body > p:first-child { color: var(--fg); font-size: 1.02rem; line-height: 1.65; max-width: 62ch; margin: 0; }
.ap-design-price { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); }
.ap-design-price span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.ap-design-price b { font-weight: 500; color: var(--heading); }
.ap-design-price { flex-wrap: wrap; align-items: center; }
.ap-hours { display: flex; align-items: center; gap: .8rem; }
.ap-hours .stepper { border: 1px solid var(--heading); }
.ap-hours .stepper button { width: 2.2rem; height: 2.2rem; }
.ap-h-total { font: 400 1.5rem/1 var(--font-display); color: var(--heading); min-width: 4ch; text-align: right; }
.ap-h-note { margin: .6rem 0 0; }
/* summary: long values (price ranges) wrap inside the panel */
.ap-summary { min-width: 0; }
.ap-summary dl > div, .ap-sum-lines > div { min-width: 0; }
.ap-summary dd, .ap-sum-lines b { overflow-wrap: anywhere; }
.ap-sum-lines > div { gap: .8rem; align-items: baseline; }
.ap-sum-lines b { white-space: nowrap; overflow-wrap: normal; flex: none; }   /* time and price stay on one line; a long label wraps instead */
.ap-sum-price { flex-wrap: wrap; gap: .35rem 1rem; }
.ap-sum-price b { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.9rem); margin-left: auto; white-space: nowrap; }
/* Album pages use the approved opening-logo background: sage, a pale glowing centre, light from the upper right */
.album-page { background: radial-gradient(ellipse 60% 50% at 48% 40%, rgba(240, 238, 222, .7), rgba(240, 238, 222, 0) 72%), var(--sage-bg) center / cover no-repeat, #C9D0B8; }
.album-page::before { content: ""; position: absolute; inset: -20%; pointer-events: none; background: repeating-linear-gradient(118deg, transparent 0 9%, rgba(255, 253, 240, .2) 12%, transparent 16% 24%, rgba(255, 253, 240, .12) 27%, transparent 31% 40%); filter: blur(26px); opacity: .8; }
.album-page > * { position: relative; }
.ap-top { background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ap-step { background: color-mix(in srgb, var(--surface-2) 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* missing details: a soft red overtone on the box until it is filled in */
.ap-field.ap-missing input, .ap-field.ap-missing select { border-color: #C98A80; background: #F6E3DF; box-shadow: 0 0 0 3px rgba(201, 138, 128, .18); }
.ap-layouts.ap-missing, .ap-sizes.ap-missing { position: relative; padding: .8rem; margin: -.8rem; border-radius: 18px; background: #F6E3DF; box-shadow: 0 0 0 2px rgba(201, 138, 128, .55); }
.ap-layouts.ap-missing { display: grid; }
.ap-miss-note { display: block; grid-column: 1 / -1; font-size: .8rem; color: #9E4F44; }
.ap-layouts.ap-missing .ap-miss-note, .ap-sizes.ap-missing .ap-miss-note { margin-top: .2rem; }
.ap-field { align-content: start; }
.ap-hours output.ap-h-out { min-width: 6.2rem; }
.ap-design-body > p:not(.ap-hint) { color: var(--fg); font-size: 1.02rem; line-height: 1.65; max-width: 62ch; margin: 0; }
/* Engagements & weddings: choose the album type first */
.ap-etypes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-bottom: .4rem; }
.ap-etype .ap-q:first-child { margin-top: 0; }
.ap-etype .ap-opt b { font: italic 500 1.3rem/1.1 var(--font-caption); color: var(--heading); }
.ap-etype-head { margin: 1.3rem 0 .9rem; font: 400 var(--step-2)/1.15 var(--font-display); color: var(--heading); }
.ap-layouts[hidden] { display: none; }
.ap-etypes.ap-missing { position: relative; padding: .8rem; margin: -.8rem -.8rem .4rem; border-radius: 18px; background: #F6E3DF; box-shadow: 0 0 0 2px rgba(201, 138, 128, .55); }
.ap-chart .spec dl > div.ap-off { display: none; }
/* album pages: the sizes on offer share the row evenly (e.g. Medium and Large in two halves) */
.ap-chart .spec .shape-card dl.ap-even { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.ap-chart .spec .shape-card dl.ap-even > div.ap-off + div { border-left: 0; }
.ap-done { text-align: center; }
/* personal touches: one field per line, full width */
.ap-fields.ap-fields-stack { grid-template-columns: minmax(0, 1fr); }
.ap-fields-stack input { font-size: 1.02rem; padding: .85rem 1rem; }
.ap-dp-review { border-top: 1px solid var(--rule); }
.ap-design-price + .ap-design-price { margin-top: .9rem; }
.ap-design-price > span:first-child { flex: 1 1 14rem; }
/* design items: matching time boxes and costs */
.ap-design-price .ap-hours .stepper { width: 9rem; justify-content: space-between; }
.ap-design-price .ap-hours output { flex: 1; min-width: 0; text-align: center; font: 500 .82rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--heading); }
.ap-design-price .ap-r-total, .ap-design-price .ap-h-total, .ap-design-price .ap-f-total { font: 400 1.5rem/1 var(--font-display); color: var(--heading); min-width: 4.5rem; text-align: right; }
.ap-design-price .ap-dp-sub { display: block; margin-top: .45rem; max-width: 30rem; font: 300 .85rem/1.5 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--fg); }
.ap-design-price .ap-hours { margin-left: auto; gap: .9rem; }
.ap-design-price .ap-hours .stepper button { width: 1.9rem; }
/* design times are worked out from the photos and pages only: shown, not adjustable */
.ap-design-price .ap-hours .stepper button { display: none; }
.ap-design-price .ap-hours .stepper { padding: .55rem .4rem; min-height: 2.2rem; }
.ap-design-price .ap-hours output .ap-min { display: block; margin-top: .2rem; font-size: .66rem; letter-spacing: .1em; color: var(--fg-muted); }
/* album pages, size chart: page count large, new total smaller (swapped) */
.ap-chart .spec dd.total { font-size: .8rem; font-weight: 500; color: var(--heading); }
.ap-chart .spec dd.total small:first-child { font-size: .66rem; }
.ap-chart .spec dd.total small:last-child { font-size: 1.06rem; font-weight: 600; color: var(--heading); }
/* size, From price; then a small stepper beside the total; then the page rate on its own line */
.ap-chart .spec .shape-card dl > div { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "sz cost" "add total" "note note"; gap: .7rem .6rem; padding: 1rem .9rem; align-items: start; }
.ap-chart .spec .shape-card dd.add { display: contents; }
.ap-chart .spec .shape-card dd.add .stepper { grid-area: add; justify-self: start; align-self: center; display: inline-flex; align-items: center; gap: 0; padding: 0; min-height: 0; }
.ap-chart .spec .shape-card dd.add .stepper button { width: 26px; height: 26px; min-width: 0; padding: 0; font-size: 1rem; line-height: 1; }
.ap-chart .spec .shape-card dd.add .stepper output { min-width: 1.7rem; padding: 0; text-align: center; font-size: .82rem; line-height: 1.2; }
.ap-chart .spec .shape-card dd.add > small { grid-area: note; margin: 0; padding-top: .55rem; border-top: 1px dotted color-mix(in srgb, var(--c) 45%, transparent); font-size: .74rem; line-height: 1.35; }
.ap-chart .spec .shape-card dd.total { align-self: center; }
@media (pointer: coarse) { .ap-chart .spec .shape-card dd.add .stepper button { width: 34px; height: 34px; }}
/* too narrow for sizes side by side: they stack, one row each */
.ap-chart .spec .shape-card { container-type: inline-size; }
@container (max-width: 580px) {
  .ap-chart .spec .shape-card dl, .ap-chart .spec .shape-card dl.ap-even { grid-template-columns: minmax(0, 1fr); }
  .ap-chart .spec .shape-card dl > div { border-left: 0; border-top: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); }
  .ap-chart .spec .shape-card dl > div:first-child, .ap-chart .spec .shape-card dl > div.ap-off + div { border-top: 0; }}
/* The Process, wide layout (desktop): one large photo across the frame, with the step's number, title and details over it
   in a soft see-through box. Each swipe slides the photo off to the left with its text, revealing the next step's photo. */
#process.proc-pin .proc-grid { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
#process.proc-pin .proc-stage { width: 100%; justify-self: stretch; align-self: stretch; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .9rem; }
#process.proc-pin .stage-card { width: 100%; height: 100%; aspect-ratio: auto; max-height: none; border-radius: 18px; background: var(--surface-2); }
#process.proc-pin .stage-meta { display: none; }
#process.proc-pin .proc-steps-view { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#process.proc-pin .stage-art.photo img { object-position: center; }
.stage-cap { display: none; }
#process.proc-pin .stage-cap { display: grid; position: absolute; left: clamp(1rem, 2.4vw, 2rem); bottom: clamp(1rem, 2.4vw, 2rem); z-index: 3; width: min(34rem, 70%); gap: .3rem; padding: clamp(1rem, 2.2vh, 1.5rem) clamp(1.1rem, 2vw, 1.7rem); border-radius: 14px; background: rgba(26, 36, 28, .5); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); color: #F4F1E6; text-align: left; opacity: 0; translate: 0 14px; transition: opacity .25s ease, translate .25s ease; }
/* the step box runs horizontally across the top of the photo: number, title and who on the left, the details beside them */
#process.proc-pin .stage-cap { top: clamp(1rem, 2.4vw, 2rem); right: clamp(1rem, 2.4vw, 2rem); bottom: auto; width: auto; grid-template-columns: max-content minmax(0, 1fr); column-gap: clamp(1.4rem, 3vw, 2.6rem); align-items: center; translate: 0 -14px; }
#process.proc-pin .stage-cap .cap-num { grid-column: 1; grid-row: 1; }
#process.proc-pin .stage-cap h3 { grid-column: 1; grid-row: 2; margin: 0; }
#process.proc-pin .stage-cap p:not(.meta) { grid-column: 2; grid-row: 1 / span 3; align-self: center; padding-left: clamp(1.4rem, 3vw, 2.6rem); border-left: 1px solid rgba(244, 241, 230, .25); }
#process.proc-pin .stage-cap .meta { grid-column: 1; grid-row: 3; margin-top: .1rem; }
#process.proc-pin .stage-art.cap-on .stage-cap { opacity: 1; translate: 0 0; transition: opacity .6s ease .15s, translate .7s cubic-bezier(.2,.7,.2,1) .15s; }
.stage-cap .cap-num { font: 400 1.9rem/1 var(--font-display); color: #E2C98F; }
.stage-cap h3 { font: 400 clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem)/1.15 var(--font-display); color: #FFFDF6; margin: .15rem 0 .2rem; }
.stage-cap p { font-size: clamp(.92rem, .85rem + .25vw, 1.05rem); line-height: 1.55; color: rgba(244, 241, 230, .92); max-width: none; }
.stage-cap .meta { margin-top: .35rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #E2C98F; }
/* Examples: a wide photo between the copy and the four album boxes; the boxes give up some height so it all fits one screen */
#examples .ex-photo { display: block; width: 100%; height: clamp(10rem, 26vh, 16rem); margin-top: clamp(1.2rem, 3vh, 2rem); border-radius: 14px; object-fit: cover; object-position: 50% 52%; box-shadow: 0 30px 50px -36px var(--page-shadow); }
/* the opening's slide controls (Legacy / Keepsake) sit just above the active slide's buttons; the buttons move down to make room */
.hero .wrap.ctl-up { position: relative; }
.hero .wrap.ctl-up .slide-controls { position: absolute; z-index: 3; margin: 0; transition: top .6s cubic-bezier(.2,.7,.2,1); }
.hero .wrap.ctl-up .hero-copy > .hero-actions { margin-top: calc(var(--ctl-h, 0px) + clamp(1rem, 2.4vh, 1.6rem)); }
/* Parallax into the opening: it slides up over Memento Albums as a sheet (above it), and the sections after it slide over the opening */
main > #hero-stage { z-index: 2; border-radius: 28px 28px 0 0; box-shadow: 0 -30px 60px -30px var(--page-shadow); }
main > #hero-stage .hero { border-radius: 28px 28px 0 0; min-height: calc(100vh - var(--hdr-h, 64px)); display: flex; align-items: center; }
main > #hero-stage .hero > .wrap { width: 100%; }
main > #hero-stage ~ section.block { z-index: 3; }
#collections > .wrap { transform-origin: 50% 30%; }
/* the opening: copy and buttons hold the same position on both slides (copy boxes stretch to one height, a spacer pushes the buttons to the bottom) */
.hero .slide { align-items: stretch; }
.hero .slide > .album { align-self: center; }
.hero .slide > .hero-copy { display: flex; flex-direction: column; justify-content: flex-start; }
.hero .slide > .hero-copy::before { content: ""; flex: 1 1 0; order: 1; }
.hero .slide > .hero-copy > .hero-actions { order: 2; }
/* Examples as two screens: headline + large photo, then the album boxes */
main > #examples { display: block; min-height: 0; padding-block: 0; overflow-x: clip; }
#examples .ex-screen { min-height: calc(100vh - var(--hdr-h, 64px)); display: flex; flex-direction: column; padding-block: clamp(2.4rem, 7.3vh, 4rem) clamp(1.6rem, 5vh, 3.2rem); }
#examples .ex-screen .ex-photo { flex: 1 1 0; height: auto; min-height: 14rem; margin-top: clamp(1.6rem, 4vh, 2.6rem); object-position: 50% 14%; will-change: translate, scale; }
#albums .ex-albums { min-height: calc(100vh - var(--hdr-h, 64px)); display: flex; flex-direction: column; padding-block: clamp(2rem, 6vh, 3.4rem) clamp(1.6rem, 5vh, 3.2rem); }
/* the shared buttons sit on their own row under the slide controls; the slides' own buttons only hold the space */
.hero .wrap.ctl-up .slide-controls { row-gap: clamp(1rem, 2.4vh, 1.6rem); }
.hero .wrap.ctl-up .slide-controls > .hero-actions-fixed { flex: 0 0 100%; order: 9; padding-top: .4rem; }
.hero .wrap.ctl-up .slide .hero-actions { visibility: hidden; }
/* Examples entrance: the photo sits above the opening while it rides in; the text waits for the section to lock */
#examples .ex-screen .ex-photo { position: relative; z-index: 2; }
#examples.ex-anim .ex-screen .section-head > * { opacity: 0; translate: 0 22px; transition: opacity .3s ease, translate .3s ease; }
#examples.ex-anim.ex-in .ex-screen .section-head > * { opacity: 1; translate: 0 0; transition: opacity .8s ease var(--exd, .1s), translate .9s cubic-bezier(.2,.7,.2,1) var(--exd, .1s); }
#examples.ex-anim.ex-in .ex-screen .section-head > :nth-child(2) { --exd: .3s; }
#examples.ex-anim.ex-in .ex-screen .section-head > :nth-child(3) { --exd: .55s; }
/* Examples entrance: the photo's full-screen stand-in, and the beige backdrop that takes its place behind it */
.ex-photo-fly { display: none; position: fixed; z-index: 2; margin: 0; object-fit: cover; object-position: 50% 14%; pointer-events: none; box-shadow: 0 30px 50px -36px var(--page-shadow); }
/* the headline sits above the beige backdrop (so it can show while the photo settles) and under the photo */
#examples .ex-screen .section-head { position: relative; z-index: 2; }
#examples .ex-photo-fly { z-index: 3; }
/* Life journey -> Examples: Life journey lifts away over Examples, which waits in place underneath */
main > #hero-stage ~ #examples.ex-lift { z-index: 6; }
/* the Life journey photo is laid out full bleed (width and margin set from the page gutters by script); a clip frames it,
   and the transitions open the clip out to the page edges (--exk: 0 framed .. 1 edge to edge) */
#examples .ex-screen .ex-photo { --exz: var(--exs, 1.3); --exi: calc(1 / var(--exz)); border-radius: 0; box-shadow: none; will-change: clip-path, translate, scale;
  scale: var(--exz); transform-origin: var(--exox, 50%) var(--exoy, 22%);
  clip-path: inset(calc(var(--exoy, 22%) * (1 - var(--exi))) calc((100% - var(--exox, 50%)) * (1 - var(--exi)) + var(--exR, 0px) * (1 - var(--exk, 0)) * var(--exi)) calc((100% - var(--exoy, 22%)) * (1 - var(--exi))) calc(var(--exox, 50%) * (1 - var(--exi)) + var(--exL, 0px) * (1 - var(--exk, 0)) * var(--exi)) round calc(14px * (1 - var(--exk, 0)) * var(--exi))); }
#albums .ex-wb .ex-refl .bk-face { filter: none; }
/* the album boxes page: one screen, title then the 2 x 2 boxes and See examples */
main > #albums { padding-block: 0; }
#albums .ex-albums .section-head { margin-bottom: clamp(1rem, 2.6vh, 1.6rem); }
/* EXAMPLES page: one large floating album with arrows either side and its name below */
#albums .ex-show { flex: 1 1 0; min-height: 18rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.8rem, 3vw, 2.4rem); }
#albums .ex-show-stage { position: relative; height: 100%; min-height: 0; container-type: size; }
#albums .ex-slide { --w: min(78cqw, calc(74cqh / var(--hr))); position: absolute; left: 50%; top: 45%; width: var(--w); height: calc(var(--w) * var(--hr)); translate: -50% -50%; transition: transform .65s cubic-bezier(.2,.7,.2,1), opacity .5s ease; }
#albums .ex-slide.enter { transform: translateX(calc(var(--dir, 1) * 14%)) scale(.96); opacity: 0; }
#albums .ex-slide.leave { transform: translateX(calc(var(--dir, 1) * -14%)) scale(.96); opacity: 0; }
#albums .ex-float { position: absolute; inset: 0; animation: ex-float 3.2s ease-in-out infinite; }
#albums .ex-slide .ex-cover { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background-image: var(--src); background-size: var(--fb) 100%; background-position: 100% 0; border-radius: 3px 10px 10px 3px; box-shadow: 0 2px 6px -2px rgba(0,0,0,.25), inset 6px 0 10px -6px rgba(0,0,0,.25); }
#albums .ex-shadow { position: absolute; left: 8%; right: 8%; bottom: calc(-1 * clamp(28px, 6cqh, 52px)); height: clamp(16px, 3.4cqh, 30px); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(30, 40, 30, .32), rgba(30, 40, 30, 0) 70%); animation: ex-shadow 3.2s ease-in-out infinite; }
@keyframes ex-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes ex-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.86); opacity: .65; } }
#albums .ex-name { margin: clamp(.4rem, 1.4vh, 1rem) 0 0; text-align: center; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); opacity: 0; transition: opacity .4s ease; }
#albums .ex-name.on { opacity: 1; transition: opacity .6s ease .25s; }
#albums .ex-more { margin-top: clamp(.8rem, 2vh, 1.4rem); }
@media (prefers-reduced-motion: reduce) { #albums .ex-float, #albums .ex-shadow { animation: none; } #albums .ex-slide { transition: none; }}
/* EXAMPLES carousel, refined: every album at one height (so the name and button hold still), the group centred on the
   page, the name right under the shadow, and larger dark arrows close to the album's edges */
#albums .ex-show { --h: min(46vh, 40vw); position: relative; display: block; flex: 0 0 auto; height: calc(var(--h) + 58px); min-height: 0; margin-top: auto; }
#albums .ex-show-stage { position: absolute; inset: 0; height: auto; container-type: normal; }
#albums .ex-slide { top: 0; height: var(--h); width: calc(var(--h) / var(--hr)); translate: -50% 0; }
#albums .ex-shadow { bottom: -44px; height: 24px; }
#albums .ex-name { margin: 2px 0 0; font-size: 1.56rem; letter-spacing: .16em; line-height: 1.2; }
#albums .ex-more { margin-top: clamp(.9rem, 2.2vh, 1.4rem); margin-bottom: auto; }
#albums .ex-show .ex-arrow { position: absolute; z-index: 3; top: calc(var(--h) / 2); translate: 0 -50%; width: 58px; height: 58px; border: 0; background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 10px 22px -12px rgba(0,0,0,.45); transition: left .5s cubic-bezier(.2,.7,.2,1), background-color .25s, transform .25s; }
#albums .ex-show .ex-arrow:hover { transform: scale(1.06); background: color-mix(in srgb, var(--btn-bg) 85%, #fff); }
#albums .ex-show .ex-arrow svg { width: 24px; height: 24px; }
#albums .ex-show .ex-arrow svg path { stroke-width: 2.4; }
#albums .ex-show .ex-arrow[data-dir="-1"] { left: calc(50% - var(--half, 30%) - 58px - clamp(20px, 3vw, 40px)); }
#albums .ex-show .ex-arrow[data-dir="1"] { left: calc(50% + var(--half, 30%) + clamp(20px, 3vw, 40px)); }
/* EXAMPLES carousel: photo-style swipe and fixed arrows */
#albums { overflow-x: clip; }
#albums .ex-slide { opacity: 1; transition: transform .75s cubic-bezier(.65,0,.35,1); }
#albums .ex-slide.enter { transform: translateX(calc(var(--dir, 1) * 100vw)); opacity: 1; }
#albums .ex-slide.leave { transform: translateX(calc(var(--dir, 1) * -100vw)); opacity: 1; }
#albums .ex-show .ex-arrow { transition: background-color .25s, transform .25s; }
/* the widest album (landscape) is about 1.32 x its height, so the arrows sit just beyond half of that, with room to spare */
#albums .ex-show .ex-arrow[data-dir="-1"] { left: max(8px, calc(50% - var(--h) * .66 - 58px - clamp(36px, 5vw, 72px))); }
#albums .ex-show .ex-arrow[data-dir="1"] { left: min(calc(100% - 66px), calc(50% + var(--h) * .66 + clamp(36px, 5vw, 72px))); }
/* EXAMPLES carousel: the albums sit still (no float); a soft resting shadow just under each one */
#albums .ex-float { animation: none; transform: none; }
#albums .ex-shadow { animation: none; transform: none; opacity: .9; bottom: -54px; left: 4%; right: 4%; height: 28px; }
/* EXAMPLES page on the branded sage background, the albums swiping inside a beige box, light keyline arrows beside it */
main > #albums { isolation: isolate; }
main > #albums::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--sage-bg) center / cover no-repeat; opacity: var(--hero-img-opacity); pointer-events: none; }
main > #albums::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-veil); pointer-events: none; }
#albums .ex-show { --h: min(50vh, 42vw); --bw: min(90%, calc(var(--h) * 1.32 + 340px)); height: calc(var(--h) + 112px); }
#albums .ex-show-stage { left: 50%; right: auto; top: 0; bottom: 0; width: var(--bw); translate: -50% 0; background: var(--bg); border-radius: 22px; overflow: hidden; box-shadow: 0 34px 60px -40px rgba(20, 30, 20, .45); }
#albums .ex-slide { top: 30px; }
#albums .ex-show .ex-arrow { background: var(--bg); color: var(--btn-bg); border: 2px solid var(--btn-bg); box-shadow: 0 8px 18px -12px rgba(0,0,0,.35); }
#albums .ex-show .ex-arrow:hover { background: #fff; transform: scale(1.06); }
#albums .ex-show .ex-arrow[data-dir="-1"] { left: max(8px, calc(50% - var(--bw) / 2 - 58px - clamp(18px, 2.4vw, 32px))); }
#albums .ex-show .ex-arrow[data-dir="1"] { left: min(calc(100% - 66px), calc(50% + var(--bw) / 2 + clamp(18px, 2.4vw, 32px))); }
#albums .ex-name { margin-top: clamp(.8rem, 2vh, 1.2rem); }
/* trial: the Memento Albums photos fill the screen from left to right */
#collections .wwd-photos { width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; box-shadow: none; }
/* trial: no beige box behind the albums (the swipe runs across the whole page, clipped at the screen edges) */
#albums .ex-show-stage { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
/* EXAMPLES depth burst: the 8 albums burst out from a dot and settle in depth, then a slow push forward */
#albums.ex-warp-on .ex-show, #albums.ex-warp-on .ex-name { display: none; }
#albums.ex-warp-on > .wrap { position: relative; z-index: 1; }
/* the Occasions Examples button holds still in the centre of the screen, over the albums */
#albums.ex-warp-on .ex-more { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; z-index: 2; }
#albums.ex-warp-on .ex-more .btn { padding: 1.05rem 1.9rem; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); }
/* EXAMPLES reverse dominoes: a row of albums standing on a floor, flipping up one after another as the camera pulls back */
#albums.ex-dom-on .ex-more { top: auto; bottom: clamp(.8rem, 2.6vh, 1.8rem); translate: -50% 0; }
/* Albums -> The Process: the text comes in once The Process has slid up */
#process.proc-text-anim .proc-head > * { opacity: 0; translate: 0 22px; transition: opacity .3s ease, translate .3s ease; }
#process.proc-text-anim.proc-text-in .proc-head > * { opacity: 1; translate: 0 0; transition: opacity .8s ease var(--ptd, .1s), translate .9s cubic-bezier(.2,.7,.2,1) var(--ptd, .1s); }
#process.proc-text-anim.proc-text-in .proc-head > :nth-child(2) { --ptd: .3s; }
#process.proc-text-anim.proc-text-in .proc-head > :nth-child(3) { --ptd: .55s; }
/* wide screens: the headline lands at the top; the steps follow, each .5 s after the one before */
#process.proc-box { padding-block: 0; overflow-x: clip; }
#process.proc-box > .wrap { position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); padding-block: clamp(2rem, 10vh, 6rem) clamp(1.5rem, 8.2vh, 5.7rem); }
#process.proc-box .proc-head { margin-bottom: clamp(.45rem, 1vh, .75rem); }
#process.proc-box .proc-grid { display: block; min-height: 0; height: 100%; container-type: size; }
#process.proc-box .proc-stage, #process.proc-box .proc-steps-view, #process.proc-box .occ-rail { display: none; }
/* the seven boxes, square: three centred on top, four on the bottom, sized so both rows fit the screen */
.proc-boxes { display: none; }
#process.proc-box .proc-boxes { --g: clamp(.6rem, 1.2vw, 1rem); --s: min((100cqw - 3 * var(--g)) / 4, (100cqh - var(--g)) / 2); display: grid; grid-template-columns: repeat(8, calc((var(--s) - var(--g)) / 2)); grid-auto-rows: var(--s); gap: var(--g); height: 100%; padding-top: calc((100cqh - 2 * var(--s) - var(--g)) * .25); justify-content: center; align-content: start; }
.pb { position: relative; grid-column: span 2; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface-2); color: inherit; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 16px 28px -22px var(--page-shadow); transition: opacity .6s ease calc(var(--i) * .5s), translate .8s cubic-bezier(.2,.7,.2,1) calc(var(--i) * .5s), box-shadow .3s ease; }
.pb:first-child { grid-column: 2 / span 2; }
#process.proc-box.proc-intro .pb { opacity: 0; translate: 0 44px; pointer-events: none; transition: opacity .3s ease, translate .4s ease; }
.pb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .6s ease; }
.pb:hover img, .pb:focus-visible img { scale: 1.05; }
.pb:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pb-cap, .pf-cap { position: absolute; left: clamp(.6rem, 1vw, .9rem); top: clamp(.6rem, 1vw, .9rem); display: grid; gap: .12rem; background: rgba(30, 38, 28, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #FFFDF6; border-radius: 10px; }
.pb-cap { right: clamp(.6rem, 1vw, .9rem); padding: .6rem .8rem .65rem; }
.pb-num, .pf-num { font: 400 1.25rem/1 var(--font-display); color: #E2C98F; }
.pb-title { font: 400 clamp(1.05rem, .8rem + .55vw, 1.4rem)/1.15 var(--font-display); color: #FFFDF6; }
.pb-who, .pf-who { margin: .1rem 0 0; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #E2C98F; }
/* a box opened: a large photo over the other boxes, which stay in view around it */
.proc-full { position: fixed; z-index: 66; overflow: hidden; border-radius: 14px; background: #222; cursor: zoom-out; box-shadow: 0 30px 70px -20px rgba(20, 28, 18, .65); transition: top .65s cubic-bezier(.4,0,.2,1), left .65s cubic-bezier(.4,0,.2,1), width .65s cubic-bezier(.4,0,.2,1), height .65s cubic-bezier(.4,0,.2,1), border-radius .65s ease; }
.proc-full[hidden] { display: none; }
.pb, .proc-full { -webkit-user-select: none; user-select: none; }
.proc-full { container-type: inline-size; }
.proc-full .pf-cap { background: rgba(26, 34, 24, .84); }
.proc-full.on { top: var(--pf-t) !important; left: var(--pf-l) !important; width: var(--pf-w) !important; height: var(--pf-h) !important; }
.proc-full img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-cap { left: clamp(1rem, 2.4vw, 2rem); top: clamp(1rem, 2.4vw, 2rem); right: calc(46px + clamp(1.6rem, 3.6vw, 3rem)); grid-template-columns: max-content minmax(0, 1fr); column-gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; padding: clamp(1rem, 2.2vh, 1.5rem) clamp(1.1rem, 2vw, 1.7rem); gap: .2rem clamp(1.4rem, 3vw, 2.6rem); cursor: auto; opacity: 0; translate: 0 18px; transition: opacity .25s ease, translate .25s ease; }
.proc-full.on .pf-cap { opacity: 1; translate: 0 0; transition: opacity .55s ease .4s, translate .65s cubic-bezier(.2,.7,.2,1) .4s; }
.pf-num { grid-column: 1; grid-row: 1; font-size: 1.9rem; }
.pf-title { grid-column: 1; grid-row: 2; margin: .1rem 0 .1rem; font: 400 clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem)/1.15 var(--font-display); color: #FFFDF6; }
.pf-body { grid-column: 2; grid-row: 1 / span 3; align-self: center; padding-left: clamp(1.4rem, 3vw, 2.6rem); border-left: 1px solid rgba(244, 241, 230, .25); margin: 0; font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); line-height: 1.5; color: #FFFDF6; max-width: none; }
.pf-who { grid-column: 1; grid-row: 3; margin-top: .1rem; font-size: .75rem; }
.pf-close { position: absolute; top: clamp(.9rem, 2.4vh, 1.6rem); right: clamp(.9rem, 2.4vw, 1.8rem); width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(30, 38, 28, .72); color: #FFFDF6; cursor: pointer; opacity: 0; transition: opacity .3s ease; }
.proc-full.on .pf-close { opacity: 1; transition: opacity .4s ease .4s; }
.pf-close svg { width: 18px; height: 18px; }
.pf-nav { position: absolute; bottom: clamp(.7rem, 2vh, 1.3rem); width: 52px; height: 52px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(30, 38, 28, .78); color: #FFFDF6; cursor: pointer; opacity: 0; transition: opacity .3s ease, background-color .2s ease; }
.pf-prev { left: clamp(.7rem, 1.6vw, 1.3rem); }
.pf-next { right: clamp(.7rem, 1.6vw, 1.3rem); }
.proc-full.on .pf-nav { opacity: 1; transition: opacity .4s ease .4s, background-color .2s ease; }
.pf-nav:hover { background: rgba(30, 38, 28, .95); }
.pf-nav svg { width: 20px; height: 20px; }
.proc-full .pf-nav { bottom: auto; top: 50%; translate: 0 -50%; }
/* a narrower large photo: number and title on one line, the copy across the full width under them */
@container (max-width: 800px) {
  .pf-cap { grid-template-columns: max-content minmax(0, 1fr); column-gap: .7rem; align-items: baseline; }
  .pf-title { grid-column: 2; grid-row: 1; margin: 0; }
  .pf-who { grid-column: 1 / -1; grid-row: 2; margin: 0 0 .35rem; }
  .pf-body { grid-column: 1 / -1; grid-row: 3; padding-left: 0; border-left: 0; }}
@container (max-width: 640px) {
  .pf-cap { left: .7rem; top: .7rem; right: calc(46px + 1.4rem); padding: .6rem .8rem; }
  .pf-num { font-size: 1.4rem; }
  .pf-title { font-size: 1.25rem; }
  .pf-who { font-size: .66rem; margin-bottom: .2rem; }
  .pf-body { font-size: .92rem; line-height: 1.38; }}
/* Testimonials: heading at the top like the other pages, then all four cards */
main > #testimonials { justify-content: flex-start; padding-block: clamp(2.8rem, 10vh, 6rem) clamp(1.2rem, 3.4vh, 2.2rem); }
#testimonials .testi { max-width: none; margin-top: clamp(1rem, 3vh, 2rem); }
#testimonials .testi-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.4rem); }
#testimonials .testi-slide { grid-area: auto; display: flex; flex-direction: column; justify-content: center; padding: clamp(.8rem, 2vh, 1.3rem) clamp(1rem, 2vw, 1.8rem); opacity: 1; visibility: visible; translate: 0 0; rotate: 0deg; scale: 1; transition: opacity .7s ease calc(var(--c, 0) * 130ms + .35s), translate .9s cubic-bezier(.2,.7,.2,1) calc(var(--c, 0) * 130ms + .35s); }
#testimonials .testi-slide:nth-child(2) { --c: 1; }
#testimonials .testi-slide:nth-child(3) { --c: 2; }
#testimonials .testi-slide:nth-child(4) { --c: 3; }
#testimonials.tier-anim:not(.tiers-in) .testi-slide { opacity: 0; translate: 0 44px; transition: opacity .3s ease, translate .3s ease; }
#testimonials .testi-slide { --qm: 4.6rem; --qg: .35rem; }
#testimonials .testi-slide::before { font-size: var(--qm); margin-bottom: var(--qg); }
#testimonials .testi-slide::after { content: ""; display: block; flex: none; height: calc(var(--qm) * .6 + var(--qg)); }
#testimonials .testi-slide p:not(.testi-by) { font-size: clamp(1rem, .85rem + .4vw, 1.18rem); line-height: 1.4; }
#testimonials .testi-slide .testi-by { margin-top: .8rem; }
@media (min-width: 761px) {
  main > #testimonials > .wrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  main > #testimonials { padding-bottom: 0; }
  #testimonials .testi { flex: 3.2 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; margin-top: 0; }
  /* the spare room: a little above the cards, then equal gaps either side of the Google badge, so it sits halfway to the page's foot */
  #testimonials .testi::before, #testimonials .testi::after { content: ""; flex: 1 1 0; }
  #testimonials .testi::after { flex-grow: 2.2; }
  main > #testimonials > .wrap::after { content: ""; flex: 2.2 1 0; }
  #testimonials .testi-google { margin-top: 0; }
  #testimonials .testi-track { width: min(72rem, 100%); }}
@media (max-width: 760px) { #testimonials .testi-track { grid-template-columns: 1fr; }}
/* Testimonials: the opening's sage green behind beige cards */
main > #testimonials { isolation: isolate; background: #C9D0B8; }
main > #testimonials::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--sage-bg) center / cover no-repeat; opacity: var(--hero-img-opacity); pointer-events: none; }
main > #testimonials::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-veil); pointer-events: none; }
#testimonials .testi-slide { background: var(--bg); color: var(--fg); }
#testimonials .testi-slide::before { color: var(--accent); }
#testimonials .testi-slide p:not(.testi-by) { color: var(--heading); }
#testimonials .testi-slide .testi-by { color: var(--accent-ink); }
/* the Google Reviews badge under the testimonial cards */
.testi-google { display: inline-flex; align-self: center; align-items: center; gap: .6rem; margin-top: clamp(.7rem, 1.8vh, 1.2rem); padding: .55rem 1.1rem .55rem .85rem; border-radius: 999px; background: var(--bg); color: var(--heading); font-size: .9rem; text-decoration: none; box-shadow: 0 12px 24px -16px var(--page-shadow); transition: opacity .7s ease .9s, translate .3s ease; }
a.testi-google:hover { translate: 0 -2px; }
/* a review card enlarged over the page; shares its close and arrow buttons with the Process's large view */
/* laptop heights, where the browser's bars take some room: a little tighter */
@media (min-width: 761px) and (max-height: 920px) {
  #testimonials .testi-slide { --qm: 3.8rem; --qg: .2rem; padding-block: .4rem; }}
/* shorter screens: tighter cards, so all four and the Google badge stay on one screen */
@media (min-width: 761px) and (max-height: 830px) {
  #testimonials .testi-slide { --qm: 3.2rem; --qg: .1rem; padding-block: .4rem; }
  #testimonials .testi-slide p:not(.testi-by) { font-size: 1rem; }
  #testimonials .testi-slide .testi-by { margin-top: .5rem; }}
#testimonials .testi-slide { cursor: zoom-in; -webkit-user-select: none; user-select: none; }
#testimonials .testi-slide:focus-visible { outline: 2px solid var(--heading); outline-offset: 3px; }
.testi-full { position: fixed; z-index: 66; overflow: hidden; border-radius: 20px; background: var(--bg); cursor: zoom-out; -webkit-user-select: none; user-select: none; box-shadow: 0 30px 70px -20px rgba(20, 28, 18, .65); transition: top .65s cubic-bezier(.4,0,.2,1), left .65s cubic-bezier(.4,0,.2,1), width .65s cubic-bezier(.4,0,.2,1), height .65s cubic-bezier(.4,0,.2,1); }
.testi-full[hidden] { display: none; }
#testimonials.tf-open .testi-track { opacity: 0; transition: opacity .25s ease .3s; }   /* on phones the stacked cards are taller than the screen */
.testi-full.on { top: var(--tf-t) !important; left: var(--tf-l) !important; width: var(--tf-w) !important; height: var(--tf-h) !important; }
.tf-text { position: absolute; left: 50%; top: 50%; translate: -50% -50%; box-sizing: border-box; width: var(--tf-w); height: var(--tf-h); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: clamp(2rem, 6vh, 3.4rem) calc(52px + clamp(1.6rem, 4vw, 3.2rem)); opacity: 0; transition: opacity .2s ease; }
.testi-full.on .tf-text { opacity: 1; transition: opacity .5s ease .35s; }
.tf-text { --qm: clamp(5.5rem, 4.4rem + 3vw, 8rem); }
.tf-text::before { content: "\201C"; display: block; font: 400 var(--qm)/.6 var(--font-display); color: var(--accent); margin-bottom: .7rem; }
.tf-text::after { content: ""; display: block; flex: none; height: calc(var(--qm) * .6 + .7rem); }
.tf-quote { margin: 0; font: italic 400 clamp(1.45rem, 1.05rem + 1.3vw, 2.2rem)/1.4 var(--font-display); color: var(--heading); text-wrap: balance; cursor: auto; }
.tf-by { margin: clamp(1rem, 3vh, 1.8rem) 0 0; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); cursor: auto; }
.testi-full .pf-nav { bottom: auto; top: 50%; translate: 0 -50%; }
.testi-full.on .pf-nav { opacity: 1; transition: opacity .4s ease .4s, background-color .2s ease; }
.testi-full.on .pf-close { opacity: 1; transition: opacity .4s ease .4s; }
@media (max-width: 760px) {
  .tf-text { padding: 3.6rem 1.4rem calc(52px + 1.8rem); }
  .tf-quote { font-size: 1.3rem; }
  .testi-full .pf-nav { top: auto; translate: none; bottom: .9rem; }}
.testi-google svg { width: 22px; height: 22px; flex: none; }
#testimonials.tier-anim:not(.tiers-in) .testi-google { opacity: 0; transition: opacity .3s ease; }
@media (max-width: 760px) { main > #testimonials > .wrap { display: flex; flex-direction: column; } .testi-google { margin-top: 1rem; }}
/* short screens: keep the four cards clear of the Google badge */
@media (min-width: 761px) and (max-height: 720px) {
  main > #testimonials { padding-top: 2rem; }
  #testimonials .testi-slide { --qm: 3.2rem; --qg: .1rem; }
  #testimonials .testi-slide .testi-by { margin-top: .5rem; }}
/* Safekeeping and Questions share one page, which holds still as Testimonials lifts away from over it */
main > #hero-stage ~ #testimonials { z-index: 4; box-shadow: 0 30px 60px -24px var(--page-shadow); }
main > #hero-stage ~ #testimonials.lifting { border-radius: 28px; }
main > #care { padding-block: clamp(2.4rem, 7.3vh, 4rem) clamp(1.2rem, 3.4vh, 2.2rem); }
.care-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
.faq-more { text-align: center; }
.care-col, .faq-col { min-width: 0; }
.care-page .care { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: clamp(1.2rem, 3vh, 2rem); }
.faq-col { gap: clamp(.8rem, 2vh, 1.4rem); }
@media (max-width: 960px) { .care-page { gap: 3rem; }}
@media (max-width: 560px) { .care-page .care { grid-template-columns: minmax(0, 1fr); }}
/* wide screens: the Safekeeping and Questions page and the footer share one screen */
@media (min-width: 961px) {
  main > #care { display: flex; flex-direction: column; padding-block: clamp(1.4rem, 8vh, 5rem) clamp(1rem, 3.4vh, 2.4rem); }
  .care-page { flex: 1 1 auto; width: 100%; gap: clamp(1rem, 4.6vh, 3.2rem); grid-template-rows: auto minmax(0, 1fr); }
  .faq-col { display: flex; flex-direction: column; }
  .care-page .section-head { max-width: none; }
  .care-page .section-head h2, .faq-col .section-head h2 { font-size: clamp(1.6rem, 1rem + 2.6vh, 2.5rem); line-height: 1.12; }
  .care-page .section-head { gap: .5rem; }
  .care-page .care { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8rem; margin-top: clamp(.7rem, 3vh, 2rem); }
  .care-page .care div { padding-top: clamp(.6rem, 1.4vh, 1rem); gap: .3rem; }
  .care-page .care p { font-size: .88rem; line-height: 1.45; }
  .faq-col { gap: clamp(.5rem, 1.4vh, 1rem); }
  .faq-col .section-head > p:not(.eyebrow) { font-size: .95rem; line-height: 1.45; }
  .faq-col > div:last-child { flex: 1 1 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 2.5rem; align-items: start; }
  .faq-col details { padding: clamp(.45rem, 1.2vh, .8rem) 0; border-bottom: 1px solid var(--rule); }
  .faq-col summary { font-size: clamp(1rem, .85rem + .5vh, 1.2rem); }
  .faq-col details p { margin-top: .4rem; font-size: .9rem; line-height: 1.45; }
  .faq-col .faq-more { grid-column: 1 / -1; align-self: end; margin-top: clamp(.6rem, 1.6vh, 1rem); }
  .faq-col .faq-more .btn { padding: .8rem 1.5rem; font-size: .72rem; white-space: nowrap; }
  footer .band > .wrap { padding-block: .55rem; gap: 0; }
  footer .foot-top .brand svg { width: 24px; height: 24px; }
  footer .foot-top .brand-word b { font-size: 1.3rem; }
  footer .foot-top .brand-word small { font-size: .46rem; margin-top: .18rem; }
  footer .foot-links a { font-size: .78rem; }
  footer .foot-top { align-items: center; }
  footer .foot-bar .wrap { min-height: min(325px, 35vh); padding-block: clamp(.7rem, 2.4vh, 1.7rem); font-size: clamp(.87rem, .58rem + .58vh, 1.06rem); }
  footer .foot-co { gap: .35rem; line-height: 1.45; }
  footer .foot-co b { margin-bottom: .2rem; font-size: 1.15em; }
  footer .foot-map { width: min(520px, 52.5vh); height: min(260px, 26.25vh); }
  footer .foot-bar .wrap { flex-wrap: nowrap; gap: clamp(2rem, 4vw, 4rem); justify-content: flex-start; }
  footer .foot-co { flex: 0 0 auto; }}
/* short laptop screens: a little less around the questions, so the page and footer still share the screen */
/* the doubled green bar takes room from the page above it: the Questions intro goes, as the button under them says the same */
@media (min-width: 961px) and (max-height: 960px) {
  main > #care { padding-block: clamp(1.2rem, 3.4vh, 2.2rem) clamp(.9rem, 2.4vh, 1.6rem); }
  .care-page { gap: clamp(.7rem, 1.8vh, 1.3rem); }
  .care-page .section-head h2, .faq-col .section-head h2 { font-size: clamp(1.5rem, .8rem + 2vh, 2rem); }
  .care-page .care { margin-top: clamp(.6rem, 1.8vh, 1.2rem); }
  .faq-col details { padding-block: clamp(.35rem, .8vh, .6rem); }
  .faq-col .section-head > p:not(.eyebrow) { display: none; }}
/* laptops around 800 tall: the green bar gives back a little so the page isn't pushed under the menu */
@media (min-width: 961px) and (max-height: 840px) {
  footer .foot-bar .wrap { min-height: 32vh; }
  footer .foot-map { width: 48vh; height: 24vh; }
  .care-page .section-head h2, .faq-col .section-head h2 { font-size: 1.5rem; }}
@media (min-width: 961px) and (max-height: 760px) {
  #process.proc-box > .wrap { padding-block: 1.8rem 1.6rem; }
  .faq-col .section-head > p:not(.eyebrow) { display: none; }
  .care-page .section-head h2, .faq-col .section-head h2 { font-size: 1.5rem; }
  .care-page .care p { font-size: .82rem; line-height: 1.35; }
  footer .foot-bar .wrap { min-height: 23vh; padding-block: .5rem; font-size: .74rem; }
  footer .foot-co { gap: .2rem; line-height: 1.35; }
  footer .foot-map { width: 38vh; height: 19vh; }
  main > #care { padding-block: 1.3rem .9rem; }}
/* the album page's Back button: always in reach, bottom left of the screen */
.occ-back { display: none; }
html.occ-page .occ-back { display: inline-flex; align-items: center; gap: .45rem; position: fixed; z-index: 30; bottom: clamp(1rem, 3vh, 1.6rem); left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding: .62rem 1.05rem; font-size: .72rem; box-shadow: 0 10px 22px -12px rgba(0,0,0,.5); }
.occ-back svg { width: 13px; height: 13px; }
/* the wheel's controls: a slider with an arrow either side, above Open this album */
#albums .ex-rot { position: absolute; left: 50%; bottom: clamp(4.4rem, 11vh, 7rem); translate: -50% 0; z-index: 2; width: min(34rem, calc(100% - 2 * var(--gutter))); display: flex; align-items: center; gap: .8rem; }
#albums .ex-rot-arrow { width: 42px; height: 42px; flex: none; padding: 0; border-radius: 50%; border: 1px solid var(--rule); background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--heading); cursor: pointer; display: grid; place-items: center; transition: border-color .2s; }
#albums .ex-rot-arrow:hover { border-color: var(--heading); }
#albums .ex-rot-arrow svg { width: 16px; height: 16px; }
#albums .ex-rot-slider { flex: 1 1 0; min-width: 0; height: 42px; margin: 0; background: transparent; cursor: pointer; touch-action: none; -webkit-appearance: none; appearance: none; }
#albums .ex-rot-slider::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--heading) 35%, transparent); }
#albums .ex-rot-slider::-moz-range-track { height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--heading) 35%, transparent); }
#albums .ex-rot-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10.5px; border-radius: 50%; border: 2px solid var(--btn-fg); background: var(--btn-bg); box-shadow: 0 4px 10px -4px rgba(0,0,0,.5); }
#albums .ex-rot-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--btn-fg); background: var(--btn-bg); box-shadow: 0 4px 10px -4px rgba(0,0,0,.5); }
/* EXAMPLES wheel: the 8 albums round a horizontal circle, backs out; the one at the front turns to show its front */
#albums .ex-wheel { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; perspective: 1000px; perspective-origin: 50% 47%; }
#albums .ex-wheel-field { position: absolute; inset: 0; transform-style: preserve-3d; }
#albums .ex-wb { --W: calc(50vh / var(--hr)); position: absolute; left: 50%; top: 47%; margin: calc(var(--H) / -2) 0 0 calc(var(--W) / -2); perspective: none; transform-style: preserve-3d; will-change: transform; }
#albums .ex-wb .bk-spin { transform: none; }
#albums .ex-wb .bk-face { filter: blur(var(--bl, 0px)); }
#albums .ex-wb .bk-front, #albums .ex-wb .bk-back { box-shadow: 0 30px 40px -26px rgba(0,0,0,.45); }
#albums .ex-wb .bk-ground { display: none; }
/* the mirror image: the same book flipped below its bottom edge (the floor), fading away from it */
#albums .ex-wb .bk-spin.ex-refl { transform: scaleY(-1); transform-origin: 50% 100%; pointer-events: none; }
#albums .ex-wb .ex-refl .bk-face { box-shadow: none; -webkit-mask-image: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,.38)); mask-image: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,.38)); }
#albums .ex-wb .ex-refl :is(.bk-top, .bk-bottom) { display: none; }
/* the shadow on the floor, lying flat under the book */
#albums .ex-wb .ex-shadow { position: absolute; left: -12%; right: -12%; top: calc(100% - 3.5vh); height: 7vh; transform: rotateX(90deg); background: radial-gradient(closest-side, rgba(20, 28, 18, .42), rgba(20, 28, 18, .14) 60%, transparent); pointer-events: none; filter: blur(var(--bl, 0px)); }
/* the memoir's layered cover animation belongs to Occasions; here it shows its finished wrap */
#albums .ex-wb .pc { display: none; }
/* Start your album, step 8: Sign up and Log in */
.ap-auth-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.ap-save-row { display: grid; justify-items: center; gap: .5rem; margin-bottom: .8rem; }
.ap-save-album { min-width: min(17rem, 100%); justify-content: center; }
.ap-save-msg { margin: 0; font-size: .92rem; text-align: center; color: var(--heading); }
.ap-save-msg:empty { display: none; }
.auth-page { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: auto minmax(0, 1fr); background: radial-gradient(ellipse 70% 60% at 50% 40%, color-mix(in srgb, var(--surface-2) 70%, transparent), transparent 75%), var(--bg); }
.auth-page[hidden] { display: none; }
.auth-page.auth-in { animation: ap-in .45s cubic-bezier(.2,.8,.25,1) both; }
.auth-page .brand { display: flex; align-items: center; gap: .6rem; }
.auth-page .brand svg { width: 28px; height: 28px; }
.auth-body { overflow-y: auto; display: grid; place-items: center; padding: clamp(1.5rem, 6vh, 4rem) var(--gutter); }
.auth-card { width: min(100%, 460px); display: grid; gap: 1rem; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 24px; border: 1px solid var(--rule); background: color-mix(in srgb, var(--surface-2) 80%, var(--bg)); box-shadow: 0 30px 60px -40px var(--page-shadow); }
.auth-card .eyebrow { margin: 0; }
#auth-title { font-size: var(--step-3); margin: 0; }
.auth-lede { margin: 0; color: var(--fg-muted); font-size: .95rem; line-height: 1.55; }
.auth-card[data-mode="login"] :is(.auth-signup-only, .auth-reset-only, .auth-sent-only), .auth-card[data-mode="signup"] :is(.auth-login-only, .auth-reset-only, .auth-sent-only), .auth-card[data-mode="reset"] :is(.auth-signup-only, .auth-login-only, .auth-sent-only, .auth-pw), .auth-card[data-mode="sent"] :is(.auth-signup-only, .auth-login-only, .auth-reset-only, .auth-pw, .auth-email, .auth-go) { display: none; }
.auth-card:not([data-mode="newpw"]) .auth-newpw-only { display: none; }
.auth-card[data-mode="newpw"] :is(.auth-signup-only, .auth-login-only, .auth-reset-only, .auth-sent-only, .auth-email) { display: none; }
.auth-sent-email { font-weight: 500; color: var(--heading); overflow-wrap: anywhere; }
.auth-back-login { width: 100%; }
.auth-forgot { justify-self: end; font-size: .85rem; color: var(--heading); }
.auth-go { width: 100%; }
.auth-switch { margin: 0; text-align: center; font-size: .9rem; color: var(--fg-muted); }
.auth-sw { font: inherit; color: var(--heading); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.auth-card .ap-field.ap-missing input { border-color: rgba(201, 138, 128, .9); background: #F6E3DF; }
.auth-err { font-size: .78rem; color: #A5524A; }
.auth-done { margin: 0; }
.auth-card .pw-wrap { position: relative; display: block; }
.auth-card .ap-field > .pw-wrap { font-size: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.auth-card .pw-wrap input { padding-right: 4.6rem; }
.auth-card .pw-toggle { position: absolute; top: 50%; right: .45rem; translate: 0 -50%; font: 500 .7rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--heading); background: transparent; border: 0; border-radius: 999px; padding: .55rem .7rem; cursor: pointer; }
.auth-card .pw-toggle:hover, .auth-card .pw-toggle:focus-visible { background: color-mix(in srgb, var(--heading) 8%, transparent); }
.auth-card .ap-field.ap-missing .pw-wrap input { border-color: rgba(201, 138, 128, .9); background: #F6E3DF; }
/* Start your album: the confirmation screen after saving, and the saved note in step 8 */
.ap-saved { margin: 1rem 0 0; text-align: center; color: var(--fg-muted); font-size: .92rem; }
.saved-card { width: min(100%, 860px); gap: 1.3rem; }
#saved-title { font-size: var(--step-3); }
.saved-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 780px) { .saved-grid { grid-template-columns: minmax(0, 1fr); }}
.saved-summary { position: static; }
.saved-next h2 { font-size: var(--step-1, 1.3rem); margin: 0 0 .8rem; }
.saved-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; counter-reset: sv; }
.saved-steps li { counter-increment: sv; display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: .8rem; row-gap: .15rem; }
.saved-steps li::before { content: counter(sv); grid-row: span 2; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--heading); color: var(--bg); font: 500 .85rem/1 var(--font-body); }
.saved-steps b { font-weight: 500; color: var(--heading); }
.saved-steps span { color: var(--fg-muted); font-size: .9rem; line-height: 1.5; }
.saved-steps .saved-contact { color: var(--heading); font-size: inherit; overflow-wrap: anywhere; }
.saved-device { margin: 1.1rem 0 0; padding: .9rem 1rem; border-left: 2px solid var(--accent); background: var(--bg); color: var(--heading); font-size: .9rem; line-height: 1.5; }
.saved-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.saved-preview { margin: 0; font-size: .75rem; color: var(--fg-muted); }
/* Print your order: a white letter-size order sheet in a viewer, printable on its own */
.pv { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto minmax(0, 1fr); background: rgba(24, 28, 22, .72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.pv[hidden] { display: none; }
.pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .8rem max(var(--gutter), 1.2rem); background: #2B2E29; color: #F4F2EA; }
.pv-title { margin: 0; font: 500 .8rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
.pv-title span { margin-left: .8rem; letter-spacing: .08em; text-transform: none; opacity: .65; }
.pv-actions { display: flex; align-items: center; gap: .6rem; }
.pv-status { margin: 0; font-size: .85rem; color: #F4F2EA; }
.pv-status:empty { display: none; }
.pv-bar .btn { padding: .8rem 1.3rem; }
.pv-print { background: #F4F2EA; border-color: #F4F2EA; color: #1E211C; }
.pv-bar .btn.ghost { color: #F4F2EA; border-color: rgba(244, 242, 234, .35); }
.pv.pv-sending { grid-template-rows: auto auto minmax(0, 1fr); }
.pv-sending .pv-print, .pv-sending .pv-download { display: none; }
.pv-send { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; padding: .9rem max(var(--gutter), 1.2rem); background: #E8E7D4; color: #2C4129; }
.pv-send[hidden] { display: none; }
.pv-contact { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.pv-contact[hidden], .pv-web { display: none; }
.pv-contact label { display: grid; gap: .2rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #55604F; }
.pv-contact input { width: 100%; font: 400 1rem/1.2 var(--font-body); color: #2C4129; background: #F1F0E2; border: 1px solid rgba(44, 65, 41, .3); border-radius: 8px; padding: .55rem .65rem; }
.pv-contact input.pv-miss { border-color: #B5574A; background: #F6E3DF; }
@media (max-width: 600px) { .pv-contact { grid-template-columns: minmax(0, 1fr); }}
.pv-send .pv-step-share { display: none; grid-column: 1 / -1; }
.pv-can-share .pv-step-share { display: flex; }
.pv-can-share .pv-step-save, .pv-can-share .pv-step-mail { display: none; }
.pv-step { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.pv-step > div { flex: 1 1 auto; min-width: 0; }
.pv-step b { display: block; font: 500 .95rem/1.25 var(--font-body); overflow-wrap: anywhere; }
.pv-step small { display: block; margin-top: .15rem; font-size: .82rem; line-height: 1.3; color: #55604F; }
.pv-step-num { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #2C4129; color: #F4F2EA; font: 500 .9rem/1 var(--font-body); }
.pv-step .btn { flex: none; padding: .8rem 1.2rem; white-space: nowrap; }
@media (max-width: 860px) { .pv-send { grid-template-columns: minmax(0, 1fr); }}
@media (max-width: 480px) { .pv-step { flex-wrap: wrap; } .pv-step .btn { width: 100%; justify-content: center; text-align: center; }}
.pv-stage { overflow: auto; display: grid; justify-content: center; padding: 2rem 1rem 3rem; }
.pv-fit { position: relative; }
.pv-page { position: absolute; left: 0; top: 0; transform-origin: 0 0; box-sizing: border-box; width: 8.5in; height: 11in; padding: .6in .65in; overflow: hidden;
  background: #fff; color: #111; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); font: 400 10.5pt/1.45 var(--font-body); display: flex; flex-direction: column; }
.pv-page * { color: #111; }
.pv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-bottom: .16in; border-bottom: 2pt solid #111; }
.pv-logo { display: flex; align-items: center; gap: .1in; }
.pv-logo svg { width: .5in; height: .5in; }
.pv-logo b { display: block; font: 400 22pt/1 var(--font-display); }
.pv-logo small { display: block; margin-top: 3pt; font: 500 6.5pt/1 var(--font-body); letter-spacing: .55em; }
.pv-doc { text-align: right; }
.pv-doc h2 { margin: 0 0 4pt; font: 500 9pt/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; }
.pv-doc p { margin: 0; font-size: 9pt; line-height: 1.5; }
.pv-row { display: grid; grid-template-columns: 1fr 1fr; gap: .35in; margin-top: .22in; }
.pv-sec h2 { margin: 0 0 6pt; padding-bottom: 4pt; border-bottom: .75pt solid #111; font: 500 7.5pt/1 var(--font-body); letter-spacing: .26em; text-transform: uppercase; }
.pv-sec + .pv-sec { margin-top: .2in; }
.pv-row .pv-sec + .pv-sec { margin-top: 0; }
.pv-big { margin: 0; font: 400 15pt/1.2 var(--font-display); }
.pv-plain { margin: 2pt 0 0; }
.pv-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3pt 12pt; }
.pv-dl dt { font-size: 9pt; letter-spacing: .04em; color: #444; }
.pv-dl dd { margin: 0; text-align: right; }
.pv-est { width: 100%; border-collapse: collapse; margin-top: 2pt; }
.pv-est th { text-align: left; font: 500 7pt/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; padding: 0 0 5pt; border-bottom: .75pt solid #111; }
.pv-est th:last-child, .pv-est td:last-child { text-align: right; }
.pv-est td { padding: 5pt 0; border-bottom: .5pt solid #BBB; vertical-align: top; }
.pv-est td:nth-child(2) { color: #444; font-size: 9pt; padding-left: 10pt; }
.pv-est tr.pv-tax td { border-bottom: 1.5pt solid #111; }
.pv-est tr.pv-sub td { font-weight: 600; border-bottom-color: #111; }
.pv-est td { font-size: 9.5pt; }
.pv-est td:nth-child(2) { font-size: 9pt; }
.pv-est tr.pv-spec td { padding-block: 1pt; }
.pv-est tr.pv-total td { font-size: 14pt; }
.pv-row-tight { margin-top: 0; }
.pv-est td { padding: 2.2pt 0; }
.pv-est tr.pv-est-head td { font: 500 7pt/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; padding: 6pt 0 3pt; border-bottom-color: #111; text-align: left; }
.pv-est tr.pv-total td { border-bottom: 0; padding-top: 8pt; font: 400 14pt/1.1 var(--font-display); }
.pv-note { margin: .14in 0 0; font-size: 8.5pt; line-height: 1.5; color: #333; }
.pv-next { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12pt; counter-reset: pv; }
.pv-next li { counter-increment: pv; font-size: 8.5pt; line-height: 1.45; }
.pv-next li::before { content: counter(pv) ". "; font-weight: 500; }
.pv-next b { font-weight: 500; }
.pv-foot { margin-top: auto; background: none; padding-top: .12in; border-top: .75pt solid #111; display: flex; justify-content: space-between; gap: 1rem; font-size: 8pt; letter-spacing: .04em; }
@media print {
  @page { size: letter; margin: 0; }
  html.pv-open, html.pv-open body { background: #fff !important; }
  html.pv-open body > *:not(#print-viewer) { display: none !important; }
  html.pv-open #print-viewer { position: static; display: block; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.pv-open .pv-bar, html.pv-open .pv-send { display: none; }
  html.pv-open .pv-stage { display: block; padding: 0; overflow: visible; }
  html.pv-open .pv-fit { width: auto !important; height: auto !important; }
  html.pv-open .pv-page { position: static; transform: none !important; box-shadow: none; }}
/* Your order sheet: fixed size and fixed rows; text shrinks to fit its slot rather than wrapping */
.ap-order { grid-template-columns: minmax(0, 1fr) 400px; }
.ap-summary .ap-sum-album { height: 1.2em; white-space: nowrap; overflow: hidden; }
.ap-summary dl > div, .ap-summary .ap-sum-lines > div { height: 1.45rem; align-items: center; flex-wrap: nowrap; }
.ap-summary dt, .ap-summary dd, .ap-summary .ap-sum-lines > div > span, .ap-summary .ap-sum-lines b { white-space: nowrap; overflow: hidden; overflow-wrap: normal; }
.ap-summary dt, .ap-summary .ap-sum-lines > div > span:first-child { flex: 0 1 auto; min-width: 0; }
.ap-summary dd, .ap-summary .ap-sum-lines b { flex: 1 0 auto; min-width: 0; max-width: 62%; text-align: right; }
.ap-summary .ap-sum-price { flex-wrap: nowrap; height: 2.4rem; align-items: center; }
.ap-summary .ap-sum-price span { flex: none; }
.ap-summary .ap-sum-price b { flex: 1 1 auto; min-width: 0; text-align: right; overflow: hidden; white-space: nowrap; font-size: 1.9rem; }
/* Your order: two titled groups, each compressed to its sub-total; a click drops down the full lines */
.ap-summary .ap-sum-album { display: none; }
.ap-sum-group { border-top: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); }
.ap-sum-group + .ap-sum-group { margin-top: -.45rem; }
.ap-sum-group:has(> .ap-sum-toggle[aria-expanded="true"]) + .ap-sum-group { border-top: 0; }
.ap-sum-toggle { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 2.9rem; cursor: pointer; color: var(--bg); }
.ap-sum-toggle:focus-visible { outline: 2px solid #E3C48C; outline-offset: 2px; border-radius: 4px; }
.ap-sum-gt { flex: 1 1 auto; font: 400 1.25rem/1.15 var(--font-display); color: var(--bg); }
.ap-sum-chev { flex: none; transition: transform .2s; color: #E3C48C; }
.ap-sum-toggle[aria-expanded="true"] .ap-sum-chev { transform: rotate(180deg); }
.ap-sum-drop { padding-bottom: .7rem; }
.ap-summary .ap-sum-drop dl { border: 0; padding: 0 0 .4rem; }
.ap-summary .ap-sum-lines .ap-sum-sub { border-top: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); height: 1.7rem; padding-top: .2rem; }
.ap-summary .ap-sum-lines .ap-sum-sub span { color: var(--bg); font-size: .85rem; }
.ap-sum-end { border-top: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); padding-top: .35rem; margin-top: -.45rem; }
.ap-sum-disc[hidden] { display: none !important; }
.ap-code { margin: .2rem 0 1rem; }
.ap-code label { display: block; margin-bottom: .4rem; font: 500 .7rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.ap-code-row { display: flex; gap: .5rem; }
.ap-code input { flex: 1; min-width: 0; height: 42px; padding: 0 .8rem; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 8px; background: transparent; color: inherit; font: 500 16px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.ap-code input::placeholder { color: inherit; opacity: .5; letter-spacing: .02em; text-transform: none; }
.ap-code input:focus { outline: none; border-color: #E3C48C; }
.ap-code-go { flex: none; height: 42px; padding: 0 1.1rem; border: 1px solid color-mix(in srgb, currentColor 55%, transparent); border-radius: 8px; background: transparent; color: inherit; font: 500 .72rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.ap-code-go:hover { border-color: currentColor; }
.ap-code-msg { margin: .45rem 0 0; min-height: 1.2em; font-size: .85rem; }
.ap-code-msg.ok { color: #E3C48C; }
.ap-summary .ap-sum-lines.ap-sum-end > .ap-sum-disc > span:first-child, .ap-summary .ap-sum-lines.ap-sum-end > .ap-sum-disc > b { color: #E3C48C; }
.ap-summary .ap-sum-end .ap-sum-sub { border-top: 0; padding-top: 0; }
.ap-sum-group:has(> .ap-sum-toggle[aria-expanded="true"]) + .ap-sum-end { border-top: 0; }
.ap-summary .ap-sum-lines.ap-sum-end > div > span:first-child, .ap-summary .ap-sum-lines.ap-sum-end > div > b { font-size: 1.05rem; }
.ap-summary .ap-sum-price b { font-size: 1.5rem; }
.ap-summary .ap-sum-end + .ap-sum-price { height: 1.9rem; margin-top: -.5rem; }
@media (min-width: 1001px) and (max-height: 960px) { .ap-summary .ap-sum-end + .ap-sum-price { margin-top: 0; }}
@media (min-width: 1001px) and (max-height: 1100px) {
  .album-page .ap-summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .album-page .ap-summary > * { grid-column: 1 / -1; }
  .album-page .ap-summary > .ap-sum-go { grid-column: auto; padding: .8rem .3rem; justify-content: center; margin: 0; white-space: nowrap; font-size: .66rem; letter-spacing: .12em; }
  .ap-summary .ap-sum-lines .ap-sum-sub { height: 1.5rem; padding-top: .1rem; }}
/* a heading that looks like an eyebrow label (Possibilities) */
section.block h2.eyebrow { font: 500 .75rem/1.65 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--accent-ink); text-wrap: initial; }
/* Log in / Sign up as a centred pop-up over the dimmed page */
#auth-page { grid-template-rows: minmax(0, 1fr); z-index: 75; background: rgba(22, 30, 20, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#auth-page > .ap-top { display: none; }
#auth-page .auth-body { padding: clamp(1rem, 4vh, 2.5rem) var(--gutter); }
#auth-page .auth-card { position: relative; background: var(--bg); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }
#auth-page.auth-in { animation: auth-fade .3s ease both; }
#auth-page.auth-in .auth-card { animation: auth-pop .4s cubic-bezier(.2, .8, .25, 1) both; }
@keyframes auth-fade { from { opacity: 0; } }
@keyframes auth-pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.auth-x { position: absolute; top: .9rem; right: .9rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); background: transparent; color: var(--heading); font: 300 1.4rem/1 var(--font-body); cursor: pointer; }
.auth-x:hover, .auth-x:focus-visible { border-color: var(--heading); }
/* Email us a question: the client details pop-up */
.ask-pop { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: clamp(1rem, 4vh, 3rem) var(--gutter); border: 0; background: transparent; overflow-y: auto; overscroll-behavior: contain; color: var(--fg); }
.ask-pop[open] { display: grid; place-items: center; }
.ask-pop::backdrop { background: rgba(22, 30, 20, .58); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ask-pop .auth-card { position: relative; width: min(100%, 640px); background: var(--bg); animation: auth-pop .4s cubic-bezier(.2, .8, .25, 1) both; }
.ask-pop h2 { margin: 0; padding-right: 2.4rem; font-size: clamp(1.6rem, 1rem + 2vh, 2.2rem); }
.ask-pop .auth-lede { margin: 0; }
.ask-pop .ap-field.ap-missing :is(input, textarea) { border-color: rgba(201, 138, 128, .9); background: #F6E3DF; }
.ask-pop .ap-miss-note { color: #9A4F43; font-size: .82rem; }
.ask-pop textarea { min-height: 5.4rem; }
.ask-pop .auth-go { justify-self: start; }
.ask-pop [hidden] { display: none !important; }
.offer-pop .auth-card { width: min(100%, 500px); justify-items: center; text-align: center; }
.offer-pop h2 { padding-inline: 2.4rem; }
.offer-pop .auth-lede { max-width: 26rem; }
.offer-acts { display: grid; gap: .7rem; width: min(100%, 22rem); margin-top: .4rem; }
.offer-acts .btn { width: 100%; }
.offer-pop .auth-switch { margin: 0; }
/* after sign-up: the 10% code, shown for 3 seconds, then it fades away on its own (a click or Esc closes it sooner) */
.welcome-pop .auth-card { overflow: hidden; }
.welcome-pop h2 { padding-inline: 0; }
.welcome-code { margin: .2rem 0; padding: .7rem 1.6rem; border: 1px solid var(--accent); border-radius: 10px; font: 500 1.35rem/1 var(--font-body); letter-spacing: .22em; padding-right: calc(1.6rem - .22em); color: var(--heading); }
.welcome-note { font-size: .95rem; opacity: .85; }
.welcome-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; }
.welcome-pop[open] .welcome-bar { animation: welcome-bar 3s linear forwards; }
@keyframes welcome-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.welcome-pop.leaving .auth-card, .welcome-pop.leaving::backdrop { opacity: 0; transition: opacity .4s ease; }
@media (max-width: 500px) { .offer-acts .btn { padding-inline: .8rem; font-size: .75rem; letter-spacing: .14em; white-space: nowrap; }}
@media (min-width: 861px) { .site-header .nav { gap: min(2rem, calc((100vw - 790px) / 8)); } .site-header .nav > a { white-space: nowrap; }}
.ask-sent { display: grid; gap: 1rem; justify-items: start; }
@media (min-width: 761px) and (max-height: 760px) {
  .ask-pop { padding-block: .8rem; }
  .ask-pop .auth-card { gap: .5rem; padding: 1.1rem 1.6rem; }
  .ask-pop .auth-lede { font-size: .9rem; }
  .ask-pop .ask-form { gap: .6rem !important; }
  .ask-pop .ap-fields { gap: .45rem 1rem; }
  .ask-pop .ap-field :is(input, select) { padding-block: .5rem; }
  .ask-pop textarea { min-height: 3.2rem; padding-block: .5rem; }
  .ask-pop .auth-go { padding-block: .7rem; }}
/* the welcome message after logging in from the menu */
.site-toast { position: fixed; left: 50%; top: calc(var(--hdr-h, 64px) + 14px); z-index: 80; translate: -50% -8px; opacity: 0; max-width: min(92vw, 560px); padding: .85rem 1.3rem; border-radius: 999px; background: var(--heading); color: var(--bg); font-size: .92rem; line-height: 1.4; text-align: center; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5); pointer-events: none; transition: opacity .3s ease, translate .3s ease; }
.site-toast.on { opacity: 1; translate: -50% 0; }

/* Logged in: initials in the menu and the Saved Albums page */
html.sa-open, html.sa-open body { overflow: hidden; }
.nav-login[hidden], .nav-account[hidden], .hdr-avatar[hidden], .albums-page[hidden], .album-confirm[hidden], .albums-empty[hidden], .album-name-edit[hidden] { display: none !important; }
html.is-logged-in .ap-auth-row, html.is-logged-in .lo-only, html:not(.is-logged-in) .li-only { display: none; }
.nav-account { position: relative; }
.nav-avatar { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--heading); color: var(--bg); font: 500 .78rem/1 var(--font-body); letter-spacing: .06em; cursor: pointer; }
.nav-avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #5E9E6A; border: 2px solid var(--bg); }
.nav-avatar:focus-visible { outline: 2px solid var(--heading); outline-offset: 2px; }
.hdr-avatar { display: none; }
.nav-acct-menu { position: absolute; top: calc(100% + .7rem); right: 0; z-index: 5; min-width: 13.5rem; padding: .4rem; border-radius: 14px; border: 1px solid var(--rule); background: var(--bg); box-shadow: 0 22px 44px -22px rgba(20, 30, 20, .5); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease, visibility 0s .18s; }
.nav-account.open .nav-acct-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
.nav-acct-who { margin: 0 0 .3rem; padding: .6rem .75rem .7rem; border-bottom: 1px solid var(--rule); display: grid; gap: .3rem; }
.nav-acct-who b { font-weight: 500; font-size: .95rem; color: var(--heading); overflow-wrap: anywhere; }
.nav-acct-who small, .albums-who { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--fg-muted); }
.nav-acct-who i, .albums-who i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #5E9E6A; }
.nav .nav-acct-menu a:not(.btn) { display: block; padding: .6rem .75rem; border-radius: 9px; color: var(--heading); }
.nav .nav-acct-menu a:not(.btn):hover, .nav .nav-acct-menu a:not(.btn):focus-visible { background: color-mix(in srgb, var(--heading) 8%, transparent); }
.albums-body { place-items: start center; }
.albums-wrap { width: min(100%, 860px); display: grid; gap: 1.3rem; }
.albums-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; }
#saved-albums-title { margin: 0 0 .5rem; font-size: var(--step-3); }
.albums-who { margin: 0; font-size: .9rem; }
.albums-who b { font-weight: 500; color: var(--heading); overflow-wrap: anywhere; }
.albums-back { justify-self: start; align-self: start; margin-top: 1.2rem; }
.albums-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.album-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem 1.2rem; padding: 1.1rem 1.3rem; border-radius: 18px; border: 1px solid var(--rule); background: color-mix(in srgb, var(--surface-2) 80%, var(--bg)); }
.album-mark { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 10px; background: var(--heading); }
.album-mark svg { width: 1.9rem; height: 1.9rem; filter: brightness(0) invert(.92); }
.album-info h3 { margin: 0 0 .25rem; font: 400 var(--step-1, 1.3rem)/1.2 var(--font-display); color: var(--heading); overflow-wrap: anywhere; }
.album-info p { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--fg-muted); }
.album-info .album-when { font-size: .8rem; margin-top: .15rem; }
.album-acts { display: flex; align-items: center; gap: 1rem; }
.album-acts .btn, .album-confirm .btn { padding: .75rem 1.2rem; font-size: .72rem; white-space: nowrap; }
.album-acts .auth-sw { font-size: .85rem; }
.album-confirm { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem .8rem; padding-top: .8rem; border-top: 1px solid var(--rule); color: var(--heading); font-size: .92rem; }
.album-confirm span { margin-right: auto; }
.album-row.confirming .album-acts, .album-row.editing .album-acts { visibility: hidden; }
.album-row.editing h3 { display: none; }
.album-name-edit { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-bottom: .5rem; }
.album-name-edit input { flex: 1 1 12rem; min-width: 0; padding: .65rem .9rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); color: var(--heading); font: 400 1rem/1.2 var(--font-body); }
.album-name-edit input:focus { outline: 2px solid var(--heading); outline-offset: 1px; }
.album-name-edit .btn { padding: .7rem 1.1rem; font-size: .72rem; }
.album-name-edit .auth-sw { font-size: .85rem; }
.albums-wrap .saved-device { margin: 0; }
.albums-out { margin: 0; text-align: center; font-size: .9rem; }
@media (max-width: 860px) {
  .site-header .wrap > .hdr-avatar { display: grid; margin-left: auto; margin-right: -.5rem; width: 34px; height: 34px; font-size: .7rem; }
  .nav-account .nav-avatar { display: none; }
  .nav-acct-menu { position: static; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; opacity: 1; visibility: inherit; transform: none; transition: none; }
  .nav-acct-who { margin: 0; padding: 1rem 0; }
  .site-header .nav .nav-acct-menu a:not(.btn) { padding: 1rem 0; border-radius: 0; }
  .site-header .nav .nav-acct-menu a[data-logout] { border-bottom: 0; }}
@media (max-width: 620px) {
  .albums-head .btn { width: 100%; }
  .album-row { grid-template-columns: auto minmax(0, 1fr); padding: 1rem; }
  .album-acts { grid-column: 1 / -1; justify-content: space-between; }
  .album-acts .btn { flex: 1; max-width: 60%; }
  .album-confirm span { flex: 0 0 100%; }
  .album-confirm .btn { flex: 1; }
  .album-row.confirming .album-acts, .album-row.editing .album-acts { display: none; }
  .album-row.editing { grid-template-columns: minmax(0, 1fr); }
  .album-row.editing .album-mark { display: none; }}
/* ================= PHONE + TABLET (portrait) — everything below only applies on narrower screens; desktop is untouched ================= */
@media (max-width: 860px) { body { margin: 0; }}
/* Tablets and phones */
@media (max-width: 1000px) {
  /* Possibilities: the wheel's albums sized to the screen width as well as the height; one-line button */
  #albums .ex-wb { --W: min(calc(50vh / var(--hr)), 62vw); }
  #albums.ex-warp-on .ex-more .btn { white-space: nowrap; }
  /* Start your album: one column (the steps, then the order sheet under them); the green bar at the foot keeps the total */
  .album-page .ap-order { grid-template-columns: minmax(0, 1fr); }
  .album-page .ap-side { position: static; max-height: none; }
  .album-page .ap-side > .ap-summary { overflow: visible; }}
/* Any portrait screen (large tablets too): the wheel's albums are also limited by the screen width */
@media (orientation: portrait) {
  #albums .ex-wb { --W: min(calc(50vh / var(--hr)), 62vw); }}
/* Opening (page 2), wherever it is one column: copy, then the album, then Legacy / Keepsake, then the buttons, all in the normal flow */
@media (max-width: 900px) {
  main > #hero-stage .hero { align-items: stretch; padding-block: 1.3rem 1.1rem; }
  main > #hero-stage .hero > .wrap { display: flex; flex-direction: column; padding-block: 0; }
  main > #hero-stage .hero > .wrap > .slides { flex: 1 1 auto; }
  .hero .slide { gap: 1rem; align-items: start; grid-template-rows: auto minmax(0, 1fr); }
  .hero .slide > .hero-copy { gap: .85rem; }
  .hero .slide > .hero-copy::before { content: none; }
  .hero .hero-title.long { font-size: clamp(1.85rem, 7.6vw, 2.3rem); }
  .hero .swash { width: 150px; height: auto; }
  .hero .hero-copy > .lede, .hero #slide-1 .hero-copy > .lede { font-size: 1rem; line-height: 1.55; max-width: none; }
  .hero .slide > .album { align-self: center; width: 100%; max-width: 26rem; margin-inline: auto; }
  /* Keepsake: a slightly smaller scene, nudged down clear of the text */
  .hero #slide-2 .album { max-width: 18.5rem; translate: 0 14px; }
  .hero .wrap.ctl-up .slide .hero-actions { display: none; }
  .hero .wrap.ctl-up .slide-controls { position: static; margin-top: 1.1rem; flex-wrap: wrap; row-gap: 1rem; transition: none; }
  .hero .slide-tabs { flex: 1; gap: .8rem; }
  .hero .slide-tab { min-width: 0; flex: 1; }
  .hero .wrap.ctl-up .slide-controls > .hero-actions-fixed { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding-top: 0; }
  .hero .hero-actions-fixed .btn { padding: .85rem .5rem; font-size: .66rem; letter-spacing: .14em; text-align: center; justify-content: center; white-space: nowrap; }}
/* Tablets in portrait: page 2 has more room, so larger type and albums */
@media (min-width: 761px) and (max-width: 900px) {
  .hero .hero-title.long { font-size: clamp(2.3rem, 5.4vw, 3rem); }
  .hero .hero-copy > .lede, .hero #slide-1 .hero-copy > .lede { font-size: 1.12rem; }
  .hero .slide > .album { max-width: 34rem; }
  .hero #slide-2 .album { max-width: 28rem; }
  .hero .hero-actions-fixed .btn { padding: 1rem .8rem; font-size: .72rem; }}
/* Tablets in landscape (short screens): page 2 keeps the desktop layout with less padding, so its buttons stay on screen */
@media (min-width: 901px) and (max-width: 1194px) and (max-height: 820px) {
  main > #hero-stage .hero > .wrap { padding-block: 2.2rem; }}
/* Process: wherever its step card rides under the menu, it is solid and full width, so the steps pass cleanly beneath it */
@media (max-width: 860px) {
  #process .proc-stage { justify-self: stretch; width: auto; background: var(--surface-2); box-shadow: 0 14px 24px -18px rgba(20, 30, 20, .45); }
  #process .proc-steps li { scroll-margin-top: 13rem; }}
/* Process on phones: headline on its own, then one step per swipe. The class is only set on portrait screens up to 860px. */
#process.proc-phone { height: calc(100vh - var(--hdr-h, 64px)); height: calc(100dvh - var(--hdr-h, 64px)); padding: 0; overflow: hidden; }
#process.proc-phone > .wrap { position: relative; height: 100%; max-width: none; padding: 0; }
#process.proc-phone .proc-head { position: absolute; inset: 0; margin: 0; padding: 0 var(--gutter) 8vh; display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; transition: translate .65s cubic-bezier(.4,0,.2,1); }
#process.proc-phone .proc-head > * { align-self: flex-start; justify-self: start; text-align: left; margin: 0; }
#process.proc-phone .proc-grid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; transition: translate .65s cubic-bezier(.4,0,.2,1); }
#process.proc-phone[data-pstep="intro"] .proc-grid { translate: 100% 0; }
#process.proc-phone[data-pstep="step"] .proc-head { translate: -100% 0; }
#process.proc-phone .proc-stage { position: relative; top: auto; flex: none; display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
#process.proc-phone .stage-card { width: 100%; aspect-ratio: 3 / 2; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
#process.proc-phone .stage-art { opacity: 1; scale: 1; translate: 100% 0; transition: translate .6s cubic-bezier(.4,0,.2,1); }
#process.proc-phone .stage-art.on { translate: 0 0; z-index: 1; }
#process.proc-phone .stage-art.past { translate: -100% 0; }
#process.proc-phone .stage-meta { display: none; }
#process.proc-phone .stage-bar { padding: .9rem var(--gutter) 0; }
#process.proc-phone .proc-steps-view { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; }
#process.proc-phone .proc-steps { position: absolute; inset: 0; margin: 0; padding: 0; transform: none; }
#process.proc-phone .proc-steps li { position: absolute; inset: 0; display: block; min-height: 0; padding: 1.2rem var(--gutter) 0; border: 0; opacity: 0; translate: 0 14px; transition: opacity .25s ease, translate .25s ease; pointer-events: none; }
#process.proc-phone .proc-steps li::before { display: block; margin-bottom: .4rem; font-size: 1.9rem; line-height: 1; }
#process.proc-phone .proc-steps li.active { opacity: 1; translate: 0 0; transition: opacity .55s ease .25s, translate .6s cubic-bezier(.2,.7,.2,1) .25s; }
#process.proc-phone .proc-steps h3 { font-size: 1.7rem; margin-bottom: .6rem; }
#process.proc-phone .proc-steps p { font-size: 1.02rem; line-height: 1.5; }
/* Phones */
@media (max-width: 760px) {
  /* Landing: a larger headline */
  #collections .section-head h1 { font-size: clamp(2.1rem, 8.6vw, 2.6rem); }
  /* the top "Back to your album" / "All albums" button stays on one line */
  .ap-top .ap-back { white-space: nowrap; letter-spacing: .1em; padding-inline: .9rem; }}
@media (max-width: 600px) {
  .pv-bar { flex-wrap: nowrap; gap: .8rem; padding: .7rem 1rem; }
  .pv-title { font-size: .72rem; letter-spacing: .16em; white-space: nowrap; }
  .pv-title { display: none; }
  .pv-bar { justify-content: center; }
  .pv-actions { gap: .5rem; }
  .pv-bar .btn { padding: .95rem 1rem; font-size: .66rem; }
  .pv-stage { padding: 1.2rem 1rem 2rem; }}

/* ---- Phone and tablet pass ---- */
/* tap targets: larger touch areas without moving anything */
.faq summary { padding-block: .55rem; margin-block: -.55rem; }
footer .foot-links a { display: inline-block; padding-block: .6rem; margin-block: -.6rem; }
@media (max-width: 960px) {
  html, body { overflow-x: clip; }
  footer .foot-co a { display: inline-block; padding-block: .55rem; margin-block: -.2rem; }}
@media (max-width: 860px) { .site-header .nav { max-height: calc(100vh - var(--hdr-h, 64px)); max-height: calc(100dvh - var(--hdr-h, 64px)); }}
@media (max-width: 760px) { #testimonials .testi-slide .testi-by { font-size: .78rem; }}
/* Life journey: the photo gives way so the page fits under the menu */
@media (max-width: 900px) { #examples .ex-screen .ex-photo { min-height: 9rem; }}
/* phones with less height: the opening fits on one screen, buttons included */
@media (max-width: 560px) and (max-height: 790px) {
  main > #hero-stage .hero { padding-block: .9rem .7rem; }
  .hero .slide { gap: .6rem; }
  .hero .slide > .hero-copy { gap: .55rem; }
  .hero .hero-title.long { font-size: clamp(1.6rem, 6.6vw, 1.95rem); }
  .hero .hero-copy > .lede, .hero #slide-1 .hero-copy > .lede { font-size: .93rem; line-height: 1.42; }
  .hero .slide > .album { max-width: min(26rem, 40vh); }
  .hero #slide-2 .album { max-width: min(18.5rem, 30vh); translate: 0 4px; }
  .hero .wrap.ctl-up .slide-controls { margin-top: .5rem; row-gap: .55rem; }
  #examples .ex-screen { padding-block: 1.3rem .9rem; }
  #examples .ex-screen .ex-photo { margin-top: .9rem; }
  #examples .ex-screen .section-head { gap: .45rem; }
  #examples .ex-screen .section-head h2 { font-size: 1.7rem; }
  #examples .ex-screen .section-head > p:not(.eyebrow) { font-size: .95rem; line-height: 1.45; }}
@media (max-width: 560px) and (max-height: 680px) {
  .hero .slide > .album { max-width: min(26rem, 36vh); }
  .hero #slide-2 .album { max-width: min(18.5rem, 27vh); }}
/* phones on their side */
@media (max-height: 500px) and (min-width: 561px) {
  #examples .ex-screen { padding-block: .8rem .6rem; }
  #examples .ex-screen .ex-photo { min-height: 6rem; margin-top: .6rem; }
  #examples .ex-screen .section-head { gap: .25rem; }
  #examples .ex-screen .section-head h2 { font-size: 1.4rem; }
  #examples .ex-screen .section-head > p:not(.eyebrow) { font-size: .86rem; line-height: 1.35; }}
/* tablets upright: larger type for The Process and Reviews */
@media (min-width: 600px) and (max-width: 860px) and (min-height: 700px) {
  #process.proc-phone .proc-head h2 { font-size: clamp(2.6rem, 6vw, 3.2rem); }
  #process.proc-phone .proc-head > p:not(.eyebrow) { font-size: 1.3rem; line-height: 1.55; max-width: 34em; }
  #process.proc-phone .proc-steps li { padding-top: 2.2rem; }
  #process.proc-phone .proc-steps li::before { font-size: 2.6rem; margin-bottom: .7rem; }
  #process.proc-phone .proc-steps h3 { font-size: 2.4rem; margin-bottom: 1rem; }
  #process.proc-phone .proc-steps p { font-size: 1.32rem; line-height: 1.55; max-width: 34em; }
  #process.proc-phone .proc-steps .meta { font-size: .95rem; margin-top: 1rem; }}
@media (min-width: 761px) and (max-width: 960px) and (min-height: 900px) {
  #testimonials .testi-track { width: 100%; gap: 1.2rem; }
  #testimonials .testi-slide { padding: 2.6rem 2rem; }
  #testimonials .testi-slide p:not(.testi-by) { font-size: 1.3rem; line-height: 1.45; }
  #testimonials .testi-slide .testi-by { font-size: .84rem; margin-top: 1.2rem; }}
/* log-in pop-up on touch screens: nothing moves or blurs behind the text cursor, and the form starts at the top, clear of the keyboard */
@media (pointer: coarse) {
  html.auth-open, html.auth-open body { overflow: hidden; }
  #auth-page { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(22, 30, 20, .82); }
  #auth-page.auth-in, #auth-page.auth-in .auth-card { animation: none; }
  #auth-page .auth-body { place-items: start center; overscroll-behavior: contain; }}
/* footer address: the lines sit close together (the phone and email links keep their larger tap areas) */
footer .foot-co { gap: .05rem; line-height: 1.3; }
footer .foot-co b { margin-bottom: .1rem; }
@media (max-width: 960px) { footer .foot-co a { margin-block: -.5rem; }}
/* ===== phones: larger page names and headlines, tighter body copy ===== */
@media (max-width: 760px) {
  main .eyebrow { font-size: .84rem; }
  main .section-head h2, #col-title, #collections .section-head h1 { font-size: clamp(2.05rem, 8.9vw, 2.5rem); line-height: 1.06; }
  main p:not(.eyebrow), main .lede, main .section-head > p:not(.eyebrow), .faq details p, .care p { line-height: 1.32; }
  #process.proc-phone .proc-head > p:not(.eyebrow), #examples .ex-screen .section-head > p:not(.eyebrow) { line-height: 1.32; }
  .hero .hero-title.long { font-size: clamp(1.7rem, 6.95vw, 2.15rem); line-height: 1.06; }
  .hero .hero-copy > .lede, .hero #slide-1 .hero-copy > .lede { line-height: 1.32; }
  /* Opening: the copy sits over the photos, the albums are larger, and the buttons clear the browser's bar */
  .hero .slide > .hero-copy { position: relative; z-index: 6; }
  .hero .hero-copy > .lede { text-shadow: 0 0 8px rgba(214, 221, 198, .95), 0 0 2px rgba(214, 221, 198, .9); }
  .hero .slide > .album { position: relative; z-index: 1; }
  .hero .slide > .album { max-width: min(26rem, 40svh); }
  .hero #slide-2 .album { max-width: min(100%, 52svh); translate: 0 0; margin-block: -2.5rem; }
  main > #hero-stage .hero { min-height: calc(100svh - 55px); padding-bottom: .8rem; }   /* the visible screen under the settled 55px menu, so the buttons sit just above the browser's bar */
  .hero .wrap.ctl-up .slide-controls { margin-top: auto; }
  .hero .wrap.ctl-up .slide-controls { position: relative; top: 0 !important; bottom: auto !important; z-index: 7; }   /* the wide layout's script sets a lift on it, which only matters once it is positioned */
  /* The Process, each step: number and title on one line, then the photo, the dots and the body copy */
  #process.proc-phone .proc-stage { display: flex; flex-direction: column; align-items: stretch; }
  #process.proc-phone .stage-meta { order: -1; display: flex; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: .5rem; padding: .85rem var(--gutter) .65rem; }
  #process.proc-phone .stage-count > span { display: none; }
  #process.proc-phone .stage-count b { font: 400 1.5rem/1.1 var(--font-display); color: var(--accent-ink); }
  #process.proc-phone .stage-count b::after { content: "."; }
  #process.proc-phone .stage-title { font: 400 clamp(1.3rem, 5.9vw, 1.6rem)/1.1 var(--font-display); color: var(--heading); text-align: left; white-space: nowrap; }
  #process.proc-phone .stage-card { aspect-ratio: 5 / 4; }
  #process.proc-phone .stage-bar { padding-top: .7rem; }
  #process.proc-phone .proc-steps li { padding-top: .7rem; align-content: start; }
  #process.proc-phone .proc-steps li::before, #process.proc-phone .proc-steps h3 { display: none; }
  #process.proc-phone .proc-steps p { font-size: .95rem; line-height: 1.32; }
  #process.proc-phone .proc-steps .meta { margin-top: .4rem; font-size: .72rem; }
  /* Albums: slider and button higher */
  #albums.ex-dom-on .ex-more { bottom: max(3.4rem, 9svh); }
  #albums .ex-rot { bottom: calc(max(3.4rem, 9svh) + 3.6rem); }}
/* the shortest phones: a smaller Keepsake scene, so Your Photos still fits one screen */
@media (max-width: 760px) and (max-height: 650px) { .hero #slide-2 .album { max-width: min(100%, 43svh); }}
/* phones: Reviews scrolls inside its own screen and stops at its foot */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  main > #testimonials { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
  main > #testimonials > .wrap { flex: none; }}
/* Upright phones: albums and iPhone as large as the screen allows */
@media (max-width: 760px) and (orientation: portrait) {
  .hero .slide { --H: min(85vw, 38svh); }}
@media (max-width: 760px) and (orientation: portrait) and (max-height: 650px) {
  .hero .slide { --H: min(85vw, 31svh); }}
@media (max-width: 760px) and (orientation: portrait) {
  .hero .slide > .hero-copy { padding-top: 1.1rem; }
  .hero-leaves .fl:first-child { display: none; }
  main > #hero-stage .hero { padding-bottom: 1.5rem; }
  .hero .slide-arrow { width: 38px; height: 38px; }
  .hero .slide-tab { font-size: .82rem; }
  .hero .hero-actions-fixed { display: none !important; }
  .hero .wrap.ctl-up .slide-controls { width: 100%; flex-wrap: nowrap; row-gap: 0; }
  .hero .slide { row-gap: .5rem; }
  .hero #slide-1 .album, .hero #slide-2 .album { width: 85vw; max-width: none; margin-inline: auto; }
  .hero #slide-1 .album { height: var(--H); margin-block: 0; }
  .hero #slide-1 .book-stage { position: absolute; inset: 0; padding: 0; display: flex; align-items: center; }
  .hero #slide-1 .book-tilt { width: 100%; }
  .hero #slide-2 .album { margin-block: calc((var(--H) - 76.5vw) / 2); }
  .hero #slide-2 .scene { width: 85vw; max-width: none; transform-origin: 50% 50%; }
  .hero #slide-2 .phone-wrap { height: var(--H); width: auto; left: calc(50% - var(--H) * .328); top: calc(50% - var(--H) / 2); }
  .hero #slide-2 .reveal-cover { width: var(--H); top: 50%; }
  .hero #slide-2 .land-photo { left: calc(50% - var(--H) * .4463); width: calc(var(--H) * .8926); top: calc(50% - var(--H) * .4428); height: calc(var(--H) * .7808); transform-origin: 50% 56.71%; }}

/* footer social links: Instagram under the email */
footer .foot-co .foot-social { display: flex; gap: .6rem; margin-top: .55rem; }
footer .foot-co .foot-social a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; margin: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--btn-fg) 35%, transparent); transition: background-color .25s, border-color .25s; }
footer .foot-co .foot-social a:hover, footer .foot-co .foot-social a:focus-visible { background: color-mix(in srgb, var(--btn-fg) 14%, transparent); border-color: color-mix(in srgb, var(--btn-fg) 70%, transparent); }
footer .foot-co .foot-social svg { width: 1.15rem; height: 1.15rem; }
/* Album build: the Design & layout step is not shown; its automatic design time still feeds the order sheet */
#ap-sd[hidden] { display: none !important; }
/* Album build: the arrow on each step opens it and closes it */
.ap-step-arrow { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid color-mix(in srgb, var(--heading) 55%, transparent); border-radius: 50%; background: transparent; color: var(--heading); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.ap-step-arrow:hover { border-color: var(--heading); background: var(--heading); color: var(--bg); }
.ap-step-arrow:focus-visible { outline: 2px solid var(--heading); outline-offset: 3px; }
.ap-step-arrow svg { width: 1rem; height: 1rem; transition: rotate .4s ease; }
.ap-step.open > header > .ap-step-arrow svg { rotate: 180deg; }
@media (pointer: coarse) { .ap-step-arrow { width: 2.75rem; height: 2.75rem; } }
@media (prefers-reduced-motion: reduce) { .ap-step-arrow svg { transition: none; } }
/* Album build, step 2: the Landscape card shows its sizes in a photo */
.ap-layout { grid-template-rows: auto 1fr; padding-top: .55rem; }
.ap-layout b { order: -1; font: 500 .82rem/1.2 var(--font-body); letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; }
.ap-layout .ap-shape { align-self: center; margin-bottom: 0; }
.ap-layout-fill { display: block; aspect-ratio: 1; padding: 0; overflow: hidden; }
.ap-layout-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-layout-fill b { position: absolute; left: 0; right: 0; top: .85rem; z-index: 1; }
.ap-layout-fill::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; }
.ap-layout-fill:has(input:checked)::after, .ap-layout-fill.is-on::after { box-shadow: inset 0 0 0 1.5px var(--c); }
/* Album build, step 3: each binding is a photo in a keyline box, with its copy underneath */
#ap-s2 .ap-opt { align-content: start; gap: .35rem; padding: 0; border: 0 !important; border-radius: 14px; background: none !important; box-shadow: none !important; }
.ap-opt-box { position: relative; display: block; aspect-ratio: 1672 / 941; margin-bottom: .45rem; overflow: hidden; border: 1.5px solid var(--rule); border-radius: 14px; transition: border-color .2s; }
.ap-opt-box img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-opt-box b { position: absolute; left: 0; right: 0; top: .75rem; z-index: 1; text-align: center; text-indent: .2em; }
.ap-opt-box::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; }
#ap-s2 .ap-opt:hover .ap-opt-box { border-color: color-mix(in srgb, var(--heading) 45%, transparent); }
#ap-s2 .ap-opt.confirmed .ap-opt-box, #ap-s2 .ap-opt.is-on .ap-opt-box { border-color: var(--heading); }
#ap-s2 .ap-opt.confirmed .ap-opt-box::after, #ap-s2 .ap-opt.is-on .ap-opt-box::after { box-shadow: inset 0 0 0 1px var(--heading); }
#ap-s2 .ap-opt.confirmed::after { z-index: 3; }
/* Album build, step 6: the album counter sits in the centre of the step */
#ap-s5 .ap-copies { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; width: 100%; }
#ap-s5 .ap-copies .stepper { grid-column: 2; }
#ap-s5 .ap-c-label { grid-column: 3; justify-self: start; }
/* Your Photos: the tab labels and the lines under them are not shown. They stay in the page, out of sight, because they time the slides. */
.slide-controls { position: relative; }
.slide-tabs, .hero .slide-tabs { position: absolute; width: 1px; height: 1px; flex: none; overflow: hidden; clip-path: inset(50%); white-space: nowrap; pointer-events: none; }

/* iPhone and iPad (html.lite, set by mobile-images.js): the albums wheel without depth blur */
html.lite #albums .ex-wb .bk-face { filter: none; }
