/* Misha Media: On Film.
   Brand palette (from mishamedia.com): bone #ecebe8, stone #cbc4ba,
   charcoal #32302d, ink #19191a, slate #6c6f79. Butler + Questrial.
   The site plays like a projected reel. scrollcraft.css supplies the reset
   and scroll mechanism; everything visual lives here. */

@font-face {
  font-family: "Butler";
  src: url("../fonts/butler-light.woff2") format("woff2");
  font-weight: 300 400;
  font-display: swap;
}
@font-face {
  font-family: "Questrial";
  src: url("../fonts/questrial-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bone: #ecebe8;
  --stone: #cbc4ba;
  --charcoal: #32302d;
  --ink: #19191a;
  --slate: #6c6f79;

  --ground: var(--ink);
  --panel: var(--charcoal);
  --text: var(--bone);
  --text-soft: #c9c3ba;          /* stone lifted toward bone, 10:1 on ink */
  --code: #a59e94;               /* edge-code lettering, 6.6:1 on ink */
  --hair: color-mix(in oklab, var(--bone) 14%, transparent);
  --hair-strong: color-mix(in oklab, var(--bone) 28%, transparent);
  --leader: #0e0e0f;             /* film base between frames */
  --leak: 34 70% 78%;            /* warm light leak, used only as light over photographs */

  --display: "Butler", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Questrial", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --rail: 0px;
  --maxw: 94rem;
  --nav-h: 4.5rem;
  --r: 10px;                     /* the film frame's corner; film-base strips use 4px */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --sc-canvas: var(--ink);
  --sc-surface: var(--charcoal);
  --sc-ink: var(--bone);
  --sc-ink-soft: var(--text-soft);
  --sc-accent: var(--bone);
  --sc-accent-ink: var(--ink);
  --sc-font-display: var(--display);
  --sc-font-text: var(--sans);

  color-scheme: dark;
}


/* ------------------------------------------------------------ base -- */
html { background: var(--ground); scroll-padding-top: calc(var(--nav-h) + 1rem); scrollbar-color: var(--charcoal) var(--ink); }
body {
  background: var(--ground); color: var(--text); font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0875rem); line-height: 1.65; letter-spacing: 0.005em;
}
::selection { background: var(--bone); color: var(--ink); }
:root { caret-color: var(--bone); accent-color: var(--bone); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
a { color: inherit; text-underline-offset: 0.24em; text-decoration-thickness: 1px; }
img { height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--bone); color: var(--ink); padding: 0.75rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }

.page { padding-left: var(--rail); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(5rem, 10vw, 9rem); }


/* ------------------------------------------------------------ type -- */
.title-xl { font-size: clamp(2.8rem, 1.2rem + 5vw, 6rem); line-height: 1; letter-spacing: -0.024em; }
.title-lg { font-size: clamp(2.3rem, 1.2rem + 3.4vw, 4.6rem); line-height: 1.03; letter-spacing: -0.02em; }
.title-md { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.012em; }
.lede { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem); line-height: 1.6; color: var(--text-soft); max-width: 40ch; }
.body { color: var(--text-soft); max-width: 60ch; }
.body + .body { margin-top: 1rem; }
/* edge code: the lettering printed along the film's margin */
.code { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--code); }

/* ------------------------------------------------------------ controls -- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0.8rem 1.6rem;
  background: var(--bone); color: var(--ink); border: 1px solid var(--bone); border-radius: 0;
  font: inherit; font-size: 0.95rem; letter-spacing: 0.03em; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 140ms var(--ease);
}
.btn:hover { background: transparent; color: var(--bone); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--hair-strong); }
.btn--ghost:hover { border-color: var(--bone); background: color-mix(in oklab, var(--bone) 8%, transparent); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.55; cursor: progress; }
.link {
  display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--bone); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.55rem) / 100% 1px no-repeat;
  transition: background-size 260ms var(--ease);
}
.link:hover { background-size: 0% 1px; background-position: 100% calc(100% - 0.55rem); }
.textbtn { border: 0; background: none; color: var(--bone); font: inherit; cursor: pointer; }

/* ------------------------------------------------------------ nav -- */
.nav {
  position: fixed; top: 0; right: 0; left: var(--rail); z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem; padding-inline: var(--gutter);
  background: linear-gradient(180deg, color-mix(in oklab, var(--ink) 70%, transparent), transparent);
  transition: background-color 260ms var(--ease);
}
.nav.is-scrolled { background: var(--ink); box-shadow: 0 1px 0 var(--hair); }
.nav__mark { display: block; width: 9.5rem; height: 1.55rem; flex: none; }
.nav__mark > span:not(.nav__dust), .credits__mark > span {
  display: block; width: 100%; height: 100%; background: var(--bone);
  -webkit-mask: url("../img/logo-white.png") left center / contain no-repeat; mask: url("../img/logo-white.png") left center / contain no-repeat;
}
.nav__rooms { display: flex; gap: clamp(1.1rem, 1.6vw, 1.6rem); margin: 0 auto; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__top { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2.75rem; text-decoration: none; font-size: 0.92rem; white-space: nowrap; color: var(--text-soft); transition: color 160ms var(--ease); }
.nav__top::after { content: ""; position: absolute; left: 0; right: 1rem; bottom: 0.55rem; height: 1px; background: var(--bone); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease); }
.nav__caret { width: 0.7rem; height: 0.7rem; opacity: 0.6; transition: transform 260ms var(--ease), opacity 160ms var(--ease); }
.nav__item:hover .nav__top, .nav__item:focus-within .nav__top, .nav__item.is-open .nav__top, .nav__top[aria-current] { color: var(--bone); }
.nav__top[aria-current]::after { transform: scaleX(1); }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret, .nav__item.is-open .nav__caret { transform: rotate(180deg); opacity: 1; }
/* the dropdown: a short length of film base hung under the menu word.
   The transparent top padding bridges the gap so the pointer can travel into it. */
.nav__drop {
  position: absolute; top: 100%; left: -1.1rem; z-index: 2; padding-top: 0.6rem;
  visibility: hidden; opacity: 0; transform: translateY(-0.35rem);
  transition: opacity 180ms var(--ease), transform 260ms var(--ease), visibility 0s linear 180ms;
}
.nav__item:last-child .nav__drop { left: auto; right: -1.1rem; }
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop, .nav__item.is-open .nav__drop { visibility: visible; opacity: 1; transform: none; transition: opacity 180ms var(--ease), transform 260ms var(--ease); }
.nav__item.is-shut .nav__drop { visibility: hidden; opacity: 0; transform: translateY(-0.35rem); }
.nav__drop ul {
  position: relative; min-width: 13.5rem; margin: 0; padding: 1.35rem 0.45rem 0.5rem; list-style: none;
  background: var(--leader); border: 1px solid #2a2927; border-radius: 4px;
}
.nav__drop ul::before { content: ""; position: absolute; left: 0.65rem; right: 0.65rem; top: 0.45rem; height: 0.42rem; background: repeating-linear-gradient(90deg, transparent 0 0.4rem, var(--perf, #2b2a28) 0.4rem 1.05rem, transparent 1.05rem 1.45rem); border-radius: 1px; }
.nav__drop a { display: flex; align-items: center; min-height: 2.6rem; padding: 0 0.7rem; border-radius: 2px; font-size: 0.92rem; white-space: nowrap; color: var(--text-soft); text-decoration: none; transition: color 140ms var(--ease), background-color 140ms var(--ease); }
.nav__drop a:hover, .nav__drop a:focus-visible { color: var(--bone); background: color-mix(in oklab, var(--bone) 7%, transparent); }
.nav__drop a:focus-visible { outline-offset: -2px; }
.nav__cta { min-height: 2.6rem; padding: 0.55rem 1.15rem; font-size: 0.88rem; }
.nav__menu { display: none; }
.sheet { display: none; }
@media (max-width: 1439px) {
  /* seven menu words need the room: the sound switch keeps only its level bars */
  .nav .sound [data-sound-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav { gap: 1.25rem; }
}
@media (max-width: 1279px) {
  .nav { gap: 0.75rem; }
  .nav__rooms { display: none; }
  .nav__mark { width: 8rem; margin-right: auto; }
  .nav__menu { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; min-width: 2.75rem; padding: 0 0.25rem; background: none; border: 0; color: var(--bone); cursor: pointer; font: inherit; font-size: 0.92rem; }
  .nav__menu svg { width: 1.5rem; height: 1.5rem; }
  .sheet { display: flex; flex-direction: column; position: fixed; inset: 0; left: var(--rail); z-index: 80; padding: calc(var(--nav-h) + 0.5rem) var(--gutter) 1.5rem; overflow-y: auto; overscroll-behavior: contain; background: var(--ink); visibility: hidden; opacity: 0; transition: opacity 260ms var(--ease), visibility 0s linear 260ms; }
  .sheet.is-open { visibility: visible; opacity: 1; transition: opacity 260ms var(--ease); }
  .sheet__close { position: absolute; top: 0.75rem; right: var(--gutter); }
  .sheet ul { list-style: none; margin: 0; padding: 0; }
  .sheet__groups { display: grid; grid-template-columns: minmax(0, 1fr); }
  .sheet__groups > li { padding: 0.45rem 0 0.6rem; border-bottom: 1px solid var(--hair); }
  .sheet__top { display: block; font-family: var(--display); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.3rem); line-height: 1.2; text-decoration: none; }
  .sheet__subs { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
  .sheet__subs a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.95rem; color: var(--text-soft); text-decoration: none; }
  .sheet__subs a:hover { color: var(--bone); }
  .sheet > .btn { margin-top: 1.5rem; width: 100%; flex: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .sheet__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
}
@media (max-width: 1023px) {
  .nav__cta { display: none; }
  .dock { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--ink) 94%, transparent); border-top: 1px solid var(--hair); transform: translateY(105%); transition: transform 320ms var(--ease); }
  .dock.is-on { transform: none; }
  .dock .btn { width: 100%; }
  html { scroll-padding-bottom: 5.5rem; }
}
@media (min-width: 1024px) { .dock { display: none; } }

/* ------------------------------------------------------------ the film rail (signature) -- */
/* A strip of film down the left edge for the whole page: every section is a
   small frame, the one on screen lights up, and a playhead runs down with
   the scroll. */
.rail { display: none; }
@media (min-width: 1024px) {
  :root { --rail: 5.5rem; }
  .rail { display: block; position: fixed; z-index: 65; inset: 0 auto 0 0; width: var(--rail); background: var(--leader); border-right: 1px solid #262524; }
  .rail__perfs { position: absolute; top: 0; bottom: 0; left: 0.3rem; width: 0.6rem; background: repeating-linear-gradient(180deg, transparent 0 0.45rem, #2f2d2b 0.45rem 1.15rem, transparent 1.15rem 1.6rem); }
  .rail__head { position: absolute; left: 0; width: 2px; height: 3.5rem; top: 0; background: var(--bone); }
  .rail ol { position: absolute; inset: calc(var(--nav-h) + 0.75rem) 0.45rem 1rem 1.15rem; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; justify-content: space-between; }
  .rail a { display: grid; justify-items: center; gap: 0.3rem; min-height: 2.75rem; text-decoration: none; font-size: 0.72rem; letter-spacing: 0.08em; color: #a8a299; transition: color 220ms var(--ease); }
  .rail img { width: 3.6rem; height: 2.4rem; object-fit: cover; border-radius: 3px; outline: 1px solid transparent; outline-offset: 2px; filter: grayscale(0.7) brightness(0.78); transition: filter 400ms var(--ease), outline-color 300ms var(--ease), transform 400ms var(--ease), box-shadow 500ms var(--ease); }
  .rail a:hover { color: var(--bone); }
  .rail a:hover img { filter: grayscale(0.2) brightness(0.9); }
  .rail a[aria-current] { color: var(--bone); }
  .rail a[aria-current] img { filter: none; outline-color: var(--bone); transform: scale(1.06); }
  .rail a[aria-current].is-lit img { box-shadow: 0 0 14px 2px rgb(255 255 255 / 0.28), 0 0 32px 4px rgb(255 248 236 / 0.12); }
  .rail a.is-landing img { animation: land 1.8s var(--ease); }
  .rail__star { position: absolute; z-index: 3; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; opacity: 0; pointer-events: none; box-shadow: 0 0 6px 2px rgb(255 255 255 / 0.9), 0 0 18px 5px rgb(255 248 236 / 0.45); }
  .rail__star::after { content: ""; position: absolute; left: 50%; width: 2px; height: 4.5rem; translate: -50% 0; bottom: 50%; background: linear-gradient(0deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0)); border-radius: 2px; }
  .rail__star:not(.is-down)::after { bottom: auto; top: 50%; background: linear-gradient(180deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0)); }
}

/* ------------------------------------------------------------ frames (clickable photographs) -- */
.frame {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--leader); color: inherit; cursor: zoom-in;
  border-radius: var(--r); overflow: hidden; isolation: isolate;
}
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.frame::after { /* light leak that sweeps in on hover */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(60% 90% at 105% 40%, hsl(var(--leak) / 0.75), transparent 70%);
  transition: opacity 500ms var(--ease);
}
.frame:hover img { transform: scale(1.03); }
.frame:hover::after, .frame:focus-visible::after { opacity: 1; }
.frame.is-away { visibility: hidden; }
.cap { margin-top: 0.75rem; }
.cap__title { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; }
.cap__meta { margin-top: 0.15rem; font-size: 0.8rem; color: var(--code); letter-spacing: 0.02em; }

/* ------------------------------------------------------------ opening: the loop (hero) -- */
/* Michele's photographs on a continuous loop of film, built in CSS 3D.
   It spins up like a projector reel on arrival, then turns slowly; the
   pointer steers it, a drag spins it, scroll tilts it toward the visitor. */
.loop { --fw: clamp(8rem, 10vw, 11.5rem); --n: 14; --S: calc(var(--fw) * 1.8); }
/* the globe sits a little low, in the band between the headline and the words */
@media (min-width: 761px) { .loop .loop__ring { top: 52.5%; } }
.loop [data-sc-stage] { height: 100dvh; overflow: hidden; background: radial-gradient(90% 70% at 50% 45%, #101218 0%, #07080b 75%); }
.loop [data-sc-stage]::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgb(8 8 9 / 0.75) 100%); }
/* deep space: a faint band of the galaxy and soft nebula haze, with stars drawn by site.js */
.loop__nebula {
  position: absolute; z-index: 0; inset: -12%; pointer-events: none; opacity: calc(1 - var(--sc-p, 0) * 0.6);
  background:
    radial-gradient(34% 20% at 28% 34%, hsl(222 34% 32% / 0.55), transparent 70%),
    radial-gradient(28% 18% at 74% 26%, hsl(265 20% 32% / 0.45), transparent 70%),
    radial-gradient(30% 16% at 62% 64%, hsl(var(--leak) / 0.12), transparent 70%),
    radial-gradient(22% 14% at 16% 70%, hsl(200 26% 28% / 0.35), transparent 70%);
}
.loop__nebula::before { /* the galaxy's band, lying across the sky */
  content: ""; position: absolute; left: -10%; right: -10%; top: 22%; height: 34%; rotate: -16deg;
  background: radial-gradient(50% 50% at 50% 50%, hsl(36 32% 82% / 0.16), hsl(220 32% 62% / 0.08) 45%, transparent 75%);
  filter: blur(18px);
}
@media (prefers-reduced-motion: no-preference) { .loop__nebula { animation: drift 90s ease-in-out infinite alternate; } }
@keyframes drift { from { transform: translate3d(-1.5%, 0, 0) rotate(-1deg); } to { transform: translate3d(1.5%, -1%, 0) rotate(1deg); } }
.loop__stars { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.loop__floor { position: absolute; z-index: 0; left: 0; right: 0; top: 53%; height: 34%; pointer-events: none; background: radial-gradient(60% 40% at 50% 26%, rgb(0 0 0 / 0.45), transparent 70%); }
/* shooting-star tail that follows the pointer (drawn by site.js) */
.comet { position: fixed; inset: 0; z-index: 95; width: 100%; height: 100%; pointer-events: none; }
.loop__title { position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + 4vh); transform: translate3d(0, calc(var(--sc-p, 0) * -10vh), 0); opacity: calc(1 - var(--sc-p, 0) * 3); }
.loop__title h1 { font-size: clamp(2.8rem, 1.1rem + 5.4vw, 6.6rem); line-height: 1; letter-spacing: -0.026em; max-width: 18ch; }
.loop__wish { margin: 0 0 0.6rem; font-family: var(--display); font-size: clamp(1.2rem, 0.9rem + 1.2vw, 2.1rem); line-height: 1.2; color: var(--text-soft); }
.loop__beat { display: inline-block; }
.loop__line { display: inline-block; }
.loop__scene { position: absolute; inset: 0; z-index: 1; perspective: 2100px; perspective-origin: 50% 46%; }
.loop__ring {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d;
  transform: translate3d(0, calc(var(--sc-p, 0) * -8vh), calc(var(--sc-p, 0) * 22rem)) rotateZ(var(--tilt, -4deg)) rotateX(calc(-6deg - var(--sc-p, 0) * 18deg)) rotateY(var(--spin, 0deg));
}
.loop__cell {
  position: absolute; width: var(--fw); height: calc(var(--fw) / 1.5 + 2.2rem); left: calc(var(--fw) / -2); top: calc((var(--fw) / 1.5 + 2.2rem) / -2);
  padding: 1.1rem 0.55rem; border-radius: 0; cursor: grab; backface-visibility: visible;
  transform: rotateY(var(--lon, 0deg)) rotateX(var(--lat, 0deg)) translateZ(var(--S));
  background:
    repeating-linear-gradient(90deg, transparent 0 0.5rem, #2b2a28 0.5rem 1.35rem, transparent 1.35rem 1.85rem) 0 0.3rem / 100% 0.55rem no-repeat,
    repeating-linear-gradient(90deg, transparent 0 0.5rem, #2b2a28 0.5rem 1.35rem, transparent 1.35rem 1.85rem) 0 calc(100% - 0.3rem) / 100% 0.55rem no-repeat,
    var(--leader);
}
.loop__cell img { border-radius: 4px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.55); }
.loop__cell::before, .loop__cell::after { inset: 1.1rem 0.55rem; }
.loop__cell:hover img { transform: none; }
.loop__shade { position: absolute; inset: 0; z-index: 2; background: var(--ink); opacity: var(--dim, 0); pointer-events: none; }
.loop.is-dragging .loop__cell { cursor: grabbing; }
.loop__foot { position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: clamp(1.5rem, 5vh, 3.5rem); display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; opacity: calc(1 - var(--sc-p, 0) * 4); }
/* solid ground under the intro words: photos turning behind them dim into the dark */
.loop__copy { position: relative; }
.loop__copy::before { content: ""; position: absolute; z-index: -1; inset: -4rem -9rem -2.5rem -4rem; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(25 25 26 / 0.92) 58%, rgb(25 25 26 / 0) 100%); pointer-events: none; }
.loop__foot::before { content: ""; position: absolute; z-index: -1; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); bottom: calc(clamp(1.5rem, 5vh, 3.5rem) * -1); height: 9rem; background: linear-gradient(0deg, var(--ink) 35%, transparent); pointer-events: none; }
.loop__copy .lede { color: var(--text-soft); max-width: 38ch; }
.loop__copy .actions { margin-top: 1.25rem; }
.loop__now { text-align: right; display: grid; gap: 0.35rem; }
.loop__now-title { font-family: var(--display); font-size: clamp(1.3rem, 1rem + 0.9vw, 2rem); line-height: 1.1; }

/* arrival: the stage flickers on like a lamp, the title rises line by line */
.js .loop [data-sc-stage] { animation: projector 1.4s linear both; }
.js .loop__beat { animation: rise 1s var(--ease) 0.4s both; }
.js .loop__beat + .loop__beat { animation-delay: 0.55s; }
.js .loop__line { animation: rise 1.1s var(--ease) 0.75s both; }
.js .loop__line + .loop__line { animation-delay: 0.9s; }
.js .loop__foot .lede { animation: rise 1s var(--ease) 1.15s both; }
.js .loop__foot .actions, .js .loop__now { animation: rise 1s var(--ease) 1.3s both; }
/* the wish, first visit only: each line arrives with its moment, the photographs
   stay hidden until the comet bursts, the reflection waits for the landing */
.wish .loop [data-sc-stage] { animation: none; }
.wish .loop__beat, .wish .loop__line, .wish .loop__foot .lede, .wish .loop__foot .actions, .wish .loop__now { animation: none; opacity: 0; }
.wish.wish-1 .loop__beat:first-child { animation: rise 1s var(--ease) both; }
.wish.wish-2 .loop__beat + .loop__beat { animation: rise 1s var(--ease) both; }
.wish.wish-3 .loop__line { animation: rise 1.1s var(--ease) both; }
.wish.wish-3 .loop__line + .loop__line { animation-delay: 0.15s; }
.wish.wish-3 .loop__foot .lede { animation: rise 1s var(--ease) 0.35s both; }
.wish.wish-3 .loop__foot .actions, .wish.wish-3 .loop__now { animation: rise 1s var(--ease) 0.5s both; }
.wish:not(.wish-2) .loop__ring .loop__cell { opacity: 0; }
.wish:not(.wish-3) .loop__scene--mirror, .loop.is-bursting .loop__scene--mirror { visibility: hidden; }
.loop.is-bursting .loop__cell img { box-shadow: 0 0 34px 2px rgb(255 244 228 / 0.5); }
@keyframes projector { 0% { opacity: 0; } 14% { opacity: 0.55; } 20% { opacity: 0.05; } 30% { opacity: 0.8; } 36% { opacity: 0.25; } 48%, 100% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .loop { --fw: 25vw; }
  .loop__scene { perspective: 1100px; perspective-origin: 50% 46%; }
  .loop__ring { top: 46%; }
  .loop__title h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .loop__foot { flex-direction: column; align-items: stretch; gap: 1rem; }
  /* Andy's four-line intro needs solid ground under all of it, not just the buttons */
  .loop__foot::before { height: calc(100% + clamp(1.5rem, 5vh, 3.5rem) + 3.5rem); background: linear-gradient(0deg, var(--ink) 72%, transparent); }
  .loop__now { display: none; }
  .loop__copy .lede { font-size: 1rem; }
}

/* ------------------------------------------------------------ the reel (peak) -- */
/* Scroll pulls the film down frame by frame, like a projector's claw:
   hold, then a quick pull, with a warm flash at each cut. */
.reel [data-sc-stage] { height: 100dvh; overflow: hidden; background: var(--leader); }
.reel__gate { position: absolute; inset: calc(var(--nav-h) + 0.25rem) calc(var(--gutter) + 1.5rem) 1.25rem; overflow: hidden; border-radius: var(--r); background: #000; }
.reel__strip { position: absolute; inset: 0; transform: translate3d(0, calc(var(--pull, 0) * -100%), 0); }
.reel__frame { position: absolute; left: 0; right: 0; height: 100%; overflow: hidden; }
.reel__frame:nth-child(1) { top: 0; }
.reel__frame:nth-child(2) { top: 100%; }
.reel__frame:nth-child(3) { top: 200%; }
.reel__frame:nth-child(4) { top: 300%; }
.reel__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(28% 22% at 100% 0%, rgb(25 25 26 / 0.7), transparent 100%), linear-gradient(0deg, rgb(25 25 26 / 0.88), rgb(25 25 26 / 0.15) 55%, transparent), linear-gradient(90deg, rgb(25 25 26 / 0.6), transparent 55%); }
.reel__frame + .reel__frame { border-top: 0.9rem solid var(--leader); }
.reel__title { display: grid; place-items: center; text-align: center; background: var(--leader); padding: 1.5rem; }
.reel__title::before { display: none; }
.reel__title h2 { font-size: clamp(3rem, 1.4rem + 6vw, 7.2rem); line-height: 1; letter-spacing: -0.026em; }
.reel__title p { margin-top: 1.25rem; color: var(--text-soft); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); }
.reel__copy { position: absolute; z-index: 2; left: clamp(1.25rem, 4vw, 3.5rem); right: clamp(1.25rem, 4vw, 3.5rem); bottom: clamp(1.5rem, 6vh, 4rem); max-width: 40rem; }
.reel__copy h3 { font-size: clamp(3rem, 1.4rem + 6vw, 7rem); line-height: 0.95; letter-spacing: -0.026em; }
.reel__copy p { margin-top: 1rem; color: #ddd7cf; max-width: 40ch; }
.reel__copy .actions { margin-top: 1.5rem; }
.reel__num { position: absolute; z-index: 2; color: var(--stone); text-shadow: 0 1px 8px rgb(0 0 0 / 0.6); top: clamp(1.25rem, 4vh, 2.5rem); right: clamp(1.25rem, 4vw, 3.5rem); text-align: right; }
.reel__flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: #000; opacity: calc(var(--flash, 0) * 0.5); }
.reel__perfs { position: absolute; top: 0; bottom: 0; width: 0.85rem; z-index: 4; pointer-events: none; background: repeating-linear-gradient(180deg, transparent 0 0.6rem, #2b2a28 0.6rem 1.6rem, transparent 1.6rem 2.2rem); background-position: 0 calc(var(--pull, 0) * -26rem); }
.reel__perfs--l { left: calc(var(--gutter) * 0.5); }
.reel__perfs--r { right: calc(var(--gutter) * 0.5); }
@media (max-width: 760px) {
  .reel__gate { inset: calc(var(--nav-h) + 0.25rem) 1.5rem 1rem; }
  .reel__perfs--l { left: 0.3rem; } .reel__perfs--r { right: 0.3rem; }
  .reel__perfs { width: 0.7rem; }
}

/* ------------------------------------------------------------ wedding strip (pan) -- */
.strip [data-sc-stage] { height: 100dvh; overflow: hidden; display: flex; align-items: center; background: var(--ground); }
.strip__rail { align-items: center; gap: clamp(2.5rem, 5vw, 5rem); padding: calc(var(--nav-h) + 1rem) var(--gutter) 2rem; width: max-content; }
.strip__rail > * { flex: none; }
.strip__intro { width: min(28rem, 80vw); }
.strip__intro h2 { margin-bottom: 1.25rem; }
.strip__intro .actions { margin-top: 1.5rem; }
.strip__film { display: flex; gap: 0.6rem; padding: 3.1rem 0.6rem 4.4rem; background: var(--leader); border-radius: 4px; position: relative; box-shadow: 0 30px 60px -30px #000; }
.strip__film::before, .strip__film::after {
  content: ""; position: absolute; left: 0.6rem; right: 0.6rem; height: 0.85rem;
  background: repeating-linear-gradient(90deg, transparent 0 0.6rem, #2b2a28 0.6rem 1.6rem, transparent 1.6rem 2.2rem);
}
.strip__film::before { top: 0.7rem; }
.strip__film::after { bottom: 0.7rem; }
.strip__cell { position: relative; }
.strip__num { position: absolute; top: -1.45rem; left: 0.15rem; }
.strip__edge { position: absolute; right: 1rem; bottom: 1.75rem; white-space: nowrap; }
@media (max-width: 760px) { .strip__edge { display: none; } }
.strip__cell .frame::after { opacity: 0.32; }
.strip__cell .frame:hover::after { opacity: 1; }
.strip__cell .frame { height: var(--h, 56vh); width: calc(var(--h, 56vh) * var(--arn, 1.5)); }
.strip__cell .cap { position: absolute; left: 0.2rem; right: 0.2rem; bottom: -2.5rem; margin: 0; display: flex; gap: 0.75rem; align-items: baseline; white-space: nowrap; overflow: hidden; }
.strip__cell .cap__title { font-size: 0.95rem; }
.strip__cell .cap__meta { margin: 0; }
.strip__outro { width: min(24rem, 80vw); }
.strip__outro p { margin: 1rem 0 1.75rem; }
@media (max-width: 760px) {
  .strip__cell .frame { width: 80vw; height: calc(80vw / var(--arn, 1.5)); }
  .strip__cell--tall .frame { height: 52vh; width: calc(52vh * var(--arn)); }
  .strip__cell .cap__meta { display: none; }
}

/* ------------------------------------------------------------ films -- */
.films__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.film { display: block; text-decoration: none; color: inherit; }
.film__poster { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--leader); }
.film__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 500ms var(--ease); filter: saturate(0.85) brightness(0.86); }
.film__poster::after { content: ""; position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0; background: radial-gradient(70% 80% at 100% 20%, hsl(var(--leak) / 0.8), transparent 70%); transition: opacity 600ms var(--ease); }
.film__play { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem; background: rgb(25 25 26 / 0.78); font-size: 0.85rem; }
.film__play svg { width: 0.95rem; height: 0.95rem; }
.film:hover .film__poster img, .film:focus-visible .film__poster img { transform: scale(1.04); filter: none; animation: flicker 0.5s steps(2) 1; }
.film:hover .film__poster::after, .film:focus-visible .film__poster::after { opacity: 1; }
.film .cap { margin-top: 1rem; }
.film .cap__title { font-size: clamp(1.25rem, 1rem + 0.6vw, 1.6rem); }
@keyframes flicker { 0% { opacity: 1; } 30% { opacity: 0.72; } 60% { opacity: 1; } 80% { opacity: 0.88; } 100% { opacity: 1; } }
.films__foot { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 2.5rem; }
@media (max-width: 860px) { .films__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ Michele -- */
.note__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.note__frame { grid-column: 1 / 6; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: end; }
.note__edge { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.note__portrait { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--leader); }
.note__portrait img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.note__text { grid-column: 7 / 13; }
.note__text h2 { margin-bottom: 0.6rem; }
/* the full letter is long: the portrait stays in the gate while it scrolls past */
.note .note__grid { align-items: start; }
.note .note__frame { position: sticky; top: calc(var(--nav-h) + 2rem); }
.note .note__text .body + .body { margin-top: 1.15rem; }
.note__role { margin-bottom: 1.75rem; font-size: 0.95rem; font-style: italic; letter-spacing: 0.02em; color: var(--code); }
.letter__creed strong { font-weight: inherit; }
.letter__creed--lines { text-align: left; text-wrap: wrap; }
.letter__creed--lines span { display: block; }
.letter__creed--lines span:last-child { margin-top: 0.45em; }
.note__text .note__more { margin-top: 2.25rem; }
.note__hello { margin-bottom: 1rem; font-family: var(--display); font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); line-height: 1.2; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--hair); }
.facts dt { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--code); }
.facts dd { margin: 0.4rem 0 0; font-family: var(--display); font-size: clamp(1.3rem, 1rem + 0.9vw, 1.9rem); line-height: 1.2; }
.note__text .link { margin-top: 1.75rem; }
@media (max-width: 860px) { .note__frame, .note__text { grid-column: 1 / -1; } .note__frame { grid-template-columns: 1fr; max-width: 30rem; } .note .note__frame { position: relative; top: 0; } .note__edge { writing-mode: horizontal-tb; transform: none; white-space: normal; order: 2; } }

/* ------------------------------------------------------------ contact sheets -- */
.sheets { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(4rem, 8vw, 7rem); }
.sheet-head { display: grid; gap: 0.75rem; max-width: 46rem; margin-bottom: 1.75rem; }
.sheet-head .links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.contact { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 1.6rem 0.6rem; padding: 1.4rem 0.8rem 1.4rem; background: var(--leader); border-radius: 4px; }
.contact figure { margin: 0; position: relative; }
.contact .frame { aspect-ratio: var(--cell, 2 / 3); }
.contact .code { display: block; margin: 0 0 0.45rem 0.15rem; }
.contact .cap { margin-top: 0.55rem; }
.contact .cap__title { font-size: 1rem; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (max-width: 860px) { .contact { --cols: 2 !important; } }

/* ------------------------------------------------------------ kind words -- */
.words { position: relative; overflow: hidden; }
.words__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
.words h2 { grid-column: 1 / -1; }
.quote { margin: 0; grid-column: span 6; }
.quote + .quote { padding-top: clamp(0rem, 8vw, 7rem); }
.quote p { font-family: var(--display); font-size: clamp(1.45rem, 1.05rem + 1.2vw, 2.15rem); line-height: 1.3; max-width: 30ch; }
.quote footer { margin-top: 1.25rem; font-size: 0.9rem; color: var(--code); }
.quote footer strong { color: var(--bone); font-weight: 400; }
.words__more { grid-column: 1 / -1; }
@media (max-width: 760px) { .quote { grid-column: 1 / -1; } .quote + .quote { padding-top: 0; } }

/* ------------------------------------------------------------ rate card -- */
.rates { background: var(--panel); }
.rates__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.process-wrap { grid-column: 1 / 5; }
.process-title { font-size: 1.5rem; line-height: 1.2; margin-bottom: 1.25rem; }
.process { margin: 0; padding: 0; list-style: none; counter-reset: f; }
.process li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0 0.75rem; padding: 0.85rem 0; border-top: 1px solid var(--hair); counter-increment: f; }
.process li::before { content: counter(f, decimal-leading-zero); grid-row: 1 / 3; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--code); padding-top: 0.35rem; }
.process h3 { font-size: 1.2rem; line-height: 1.3; }
.process p { font-size: 0.9rem; color: var(--text-soft); margin-top: 0.15rem; }
.prices { grid-column: 6 / 13; display: grid; gap: 2.25rem; }
.price-group h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); padding-bottom: 0.75rem; border-bottom: 1px solid var(--hair-strong); }
.price-group dl { margin: 0; }
.price-row { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.7rem 0; }
.price-row dt { flex: 0 1 auto; }
.price-row::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--hair-strong); transform: translateY(-0.3rem); }
.price-row dd { order: 2; margin: 0; flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-soft); }
.extras { border-top: 1px solid var(--hair); padding-top: 0.5rem; }
.extras summary { display: flex; align-items: center; justify-content: space-between; min-height: 3rem; cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.3rem; }
.extras summary::-webkit-details-marker { display: none; }
.extras summary span { font-family: var(--sans); font-size: 0.85rem; color: var(--code); }
.extras ul { list-style: none; margin: 0.5rem 0 0; padding: 0; columns: 2; column-gap: 2.5rem; font-size: 0.92rem; color: var(--text-soft); }
.extras li { padding: 0.35rem 0; break-inside: avoid; }
@media (max-width: 860px) { .rates__grid { grid-template-columns: minmax(0, 1fr); } .process-wrap, .prices { grid-column: auto; } .extras ul { columns: 1; } }

/* ------------------------------------------------------------ call sheet (the one action) -- */
.call__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); }
.call__intro { grid-column: 1 / 6; }
.call__intro .lede { margin-top: 1.25rem; }
.call__contact { margin-top: 2rem; display: grid; gap: 0.2rem; font-size: 0.95rem; }
.call__contact a { text-decoration: none; min-height: 2.5rem; display: inline-flex; align-items: center; }
.call__contact a:hover { text-decoration: underline; }
.call__form { grid-column: 7 / 13; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--panel); border-radius: var(--r); }
.steps { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.steps span { flex: 1; padding-top: 0.6rem; border-top: 2px solid var(--hair); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--code); transition: border-color 300ms var(--ease), color 300ms var(--ease); }
.steps span.is-done, .steps span.is-now { border-top-color: var(--bone); color: var(--bone); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step[hidden] { display: none; }
.step legend { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.15; margin-bottom: 1.5rem; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; justify-content: flex-end; min-height: 7.5rem; padding: 1rem; border: 1px solid var(--hair-strong); border-radius: var(--r); background: var(--ink); transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease); }
.choice b { font-family: var(--display); font-weight: 300; font-size: 1.35rem; line-height: 1.15; }
.choice small { font-size: 0.8rem; color: var(--text-soft); margin-top: 0.25rem; }
.choice input:hover + span { border-color: var(--bone); }
.choice input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.choice input:checked + span small { color: var(--charcoal); }
.choice input:focus-visible + span { outline: 2px solid var(--bone); outline-offset: 3px; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.4rem; }
.field label { font-size: 0.88rem; }
.field .hint { font-size: 0.8rem; color: var(--code); }
.field input, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.1rem; border: 0; border-bottom: 1px solid var(--hair-strong); background: transparent; border-radius: 0; color: var(--bone); font-size: 1.05rem;
  transition: border-color 160ms var(--ease);
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-bottom-color: var(--text-soft); }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--bone); }
.field input::placeholder, .field textarea::placeholder { color: var(--code); }
.field input:disabled { opacity: 0.45; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #f0a28f; }
.error { font-size: 0.82rem; color: #f0a28f; margin-top: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.check { display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; font-size: 0.9rem; color: var(--text-soft); cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; }
.for[hidden] { display: none; }
.pick { border: 0; margin: 0 0 1.4rem; padding: 0; min-width: 0; }
.step .pick legend { font-family: inherit; font-size: 0.88rem; line-height: 1.4; margin-bottom: 0.6rem; }
.pick__opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1.1rem; border: 1px solid var(--hair-strong); border-radius: var(--r); font-size: 0.92rem; transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease); }
.pill input:hover + span { border-color: var(--bone); }
.pill input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.pill input:focus-visible + span { outline: 2px solid var(--bone); outline-offset: 3px; }
.step__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.form-status { margin-top: 1.25rem; font-size: 0.95rem; }
.form-status[data-state="error"] { color: #f0a28f; }
.thanks h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); margin-bottom: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .call__intro, .call__form { grid-column: 1 / -1; } .choices { grid-template-columns: 1fr; } .choice span { min-height: 0; } .field-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ end credits -- */
.credits { padding: clamp(5rem, 9vw, 8rem) 0 calc(2.5rem + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--hair); }
.credits__mark { width: 12rem; height: 2rem; margin: 0 auto 2.5rem; }
.credits__mark span { -webkit-mask-position: center; mask-position: center; }
.credits__line { font-family: var(--display); font-size: clamp(1.4rem, 1rem + 1.2vw, 2.1rem); max-width: 28ch; margin: 0 auto 1rem; line-height: 1.3; }
.credits__travel { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin: 0 0 3rem; }
.credits__roll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; max-width: 56rem; margin: 0 auto; }
.credits h2 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--code); margin-bottom: 0.75rem; }
.credits ul { list-style: none; margin: 0; padding: 0; }
.credits li a { display: inline-flex; min-height: 2.4rem; align-items: center; text-decoration: none; color: var(--text-soft); }
.credits li a:hover { color: var(--bone); text-decoration: underline; }
.credits__base { margin-top: 3.5rem; font-size: 0.82rem; color: var(--code); }
@media (max-width: 760px) { .credits__roll { grid-template-columns: 1fr; gap: 1.75rem; } .credits { padding-bottom: 6rem; } }

/* ------------------------------------------------------------ projector viewer (signature) -- */
.viewing { position: fixed; inset: 0; z-index: 90; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--bone); overflow: hidden; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.viewing::backdrop { background: transparent; }
.viewing__dim { position: absolute; inset: 0; background: #070707; opacity: 0; }
.viewing__stage { position: absolute; inset: 4.5rem clamp(1rem, 7vw, 7rem) 7.5rem; display: grid; place-items: center; }
.viewing__frame { position: relative; border-radius: var(--r); overflow: hidden; max-width: 100%; max-height: 100%; will-change: transform; box-shadow: 0 40px 100px -30px rgb(0 0 0 / 0.85); }
.viewing__frame img { display: block; max-width: calc(100vw - 2 * clamp(1rem, 7vw, 7rem)); max-height: calc(100dvh - 12rem); width: auto; height: auto; }
.viewing__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(60% 90% at 104% 40%, hsl(var(--leak) / 0.35), transparent 70%); opacity: 0; }
.viewing.is-ready .viewing__frame::after { animation: leak-pass 1.6s var(--ease) both; }
@keyframes leak-pass { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0.2; } }
.viewing__caption { position: absolute; left: clamp(1rem, 7vw, 7rem); right: clamp(1rem, 7vw, 7rem); bottom: 1.75rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; opacity: 0; }
.viewing__caption .cap__title { font-size: 1.35rem; }
.viewing__count { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--code); white-space: nowrap; font-variant-numeric: tabular-nums; }
.viewing__btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 3rem; height: 3rem; background: transparent; color: var(--bone); border: 1px solid var(--hair-strong); border-radius: 0; cursor: pointer; opacity: 0; transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.viewing__btn:hover { border-color: var(--bone); background: rgb(236 235 232 / 0.08); }
.viewing__btn svg { width: 1.25rem; height: 1.25rem; }
.viewing__close { top: 1rem; right: clamp(1rem, 3vw, 2rem); }
.viewing__prev { left: clamp(0.5rem, 2vw, 2rem); top: 50%; translate: 0 -50%; }
.viewing__next { right: clamp(0.5rem, 2vw, 2rem); top: 50%; translate: 0 -50%; }
.viewing.is-ready .viewing__btn, .viewing.is-ready .viewing__caption { opacity: 1; transition: opacity 360ms var(--ease) 120ms; }
@media (max-width: 760px) {
  .viewing__stage { inset: 4rem 0.75rem 8rem; }
  .viewing__frame img { max-width: calc(100vw - 1.5rem); }
  .viewing__prev, .viewing__next { top: auto; bottom: 1.25rem; translate: none; }
  .viewing__prev { left: auto; right: 4.25rem; }
  .viewing__next { right: 0.75rem; }
  .viewing__caption { left: 0.75rem; right: 8.5rem; bottom: 1.25rem; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
}
html.is-viewing { overflow: hidden; }

/* ------------------------------------------------------------ inner page (weddings) -- */
.page-hero { position: relative; min-height: 88dvh; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgb(25 25 26 / 0.92), rgb(25 25 26 / 0.25) 55%, rgb(25 25 26 / 0.45)); }
.page-hero .wrap { position: relative; z-index: 2; padding-block: calc(var(--nav-h) + 2rem) clamp(3rem, 8vh, 5rem); }
.page-hero .lede { margin-top: 1.25rem; color: #ddd7cf; }
.crumbs { margin-bottom: 1.25rem; font-size: 0.9rem; color: var(--text-soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--bone); }
.wall-filter { display: flex; flex-wrap: wrap; margin-bottom: 2.25rem; }
.wall-filter button { min-height: 2.75rem; background: transparent; font: inherit; cursor: pointer; transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.hang { display: flex; flex-wrap: wrap; gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.hang figure { margin: 0; flex-grow: calc(var(--arn) * 100); flex-basis: calc(var(--arn) * clamp(12rem, 22vw, 20rem)); display: flex; flex-direction: column; transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.hang .frame { aspect-ratio: var(--ar); }
.hang figure.is-hidden { display: none; }
.hang figure.is-entering { opacity: 0; transform: translateY(14px); }
.hang::after { content: ""; flex-grow: 999; }
.room-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.room-head .links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }

/* ------------------------------------------------------------ reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .js .loop [data-sc-stage], .js .loop__line, .js .loop__beat, .js .loop__foot .lede, .js .loop__foot .actions, .js .loop__now { animation: none; }
  .frame img, .film__poster img, .btn, .link { transition: none; }
  .frame:hover img, .film:hover .film__poster img { transform: none; animation: none; }
  .reel__flash { display: none; }
}

/* rail perforations travel with the page (scroll-driven, no script) */
@supports (animation-timeline: scroll()) {
  @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .rail__perfs { animation: perfs linear both; animation-timeline: scroll(root); }
    @keyframes perfs { to { background-position: 0 -2400px; } }
    .rail__head { animation: head linear both; animation-timeline: scroll(root); }
    @keyframes head { to { top: calc(100% - 3.5rem); } }
  }
}

/* reduced motion: the reel becomes a plain stack of frames */
.reel--static [data-sc-stage] { height: auto; position: relative; }
.reel--static .reel__gate { position: relative; inset: auto; margin: 0 var(--gutter); border-radius: 0; background: none; }
.reel--static .reel__strip { position: relative; transform: none; display: grid; gap: 1rem; }
.reel--static .reel__frame { position: relative; top: auto !important; height: 80vh; border-top: 0 !important; border-radius: var(--r); }
.reel--static .reel__perfs, .reel--static .reel__flash { display: none; }

/* ------------------------------------------------------------ film material -- */
/* Grain, dust and scratches printed over every photograph (a real raster,
   tiled), jittering on the frames that move like projected film. */
.frame::before, .film__poster::before, .reel__frame::after, .viewing__frame::before, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("../img/film-scratches.png") var(--sx, -320px) var(--sy, 0px) / 2048px 1600px no-repeat, url("../img/film-grain.png") 0 0 / 256px 256px;
  mix-blend-mode: overlay; opacity: 0.55;
}
.page-hero::after { z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reel__frame::after, .viewing__frame::before { animation: gate 0.5s steps(4) infinite; }
}
.reel:not(.is-live) .reel__frame::after { animation-play-state: paused; }
@keyframes gate { 0%, 100% { background-position: var(--sx, -320px) var(--sy, 0px), 0 0; } 25% { background-position: calc(var(--sx, -320px) + 2px) var(--sy, 0px), -71px 113px; } 50% { background-position: var(--sx, -320px) calc(var(--sy, 0px) - 3px), 133px -47px; } 75% { background-position: calc(var(--sx, -320px) - 1px) var(--sy, 0px), -29px -151px; } }

/* brand edge copy printed along the reel gate */
.reel__edge { position: absolute; z-index: 4; top: 50%; right: calc(var(--gutter) * 0.5 + 1.15rem); writing-mode: vertical-rl; transform: translateY(-50%); white-space: nowrap; }
@media (max-width: 1023px) { .reel__edge { display: none; } }

/* a length of film leader under the wedding films */
.leader { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); padding: 3rem clamp(0.75rem, 1.5vw, 1.25rem) 2.4rem; background: var(--leader); border-radius: 4px; }
.leader::before, .leader::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; height: 0.85rem; background: repeating-linear-gradient(90deg, transparent 0 0.6rem, #2b2a28 0.6rem 1.6rem, transparent 1.6rem 2.2rem); }
.leader::before { top: 0.75rem; }
.leader::after { bottom: 0.75rem; }
.leader .films__grid { margin-top: 0; }
.film__code { display: block; margin: 0 0 0.5rem 0.1rem; }
.film__play { border-radius: 0; background: rgb(14 14 15 / 0.82); color: var(--bone); padding: 0.5rem 0.75rem; }

/* lab ticket: the rate card and the call sheet */
.ticket { position: relative; margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem) clamp(2.75rem, 4vw, 3.5rem); border: 1px solid var(--hair-strong); }
.ticket::before { content: ""; position: absolute; left: 0.65rem; top: 0.8rem; bottom: 0.8rem; width: 1.1rem; background: radial-gradient(circle, var(--ink) 0.3rem, transparent 0.33rem) 0 0 / 1.1rem 1.5rem repeat-y; }
.ticket .rates__grid { margin-top: 0; }
.ticket__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-bottom: 0.9rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--hair-strong); color: var(--stone); }
.call__form .ticket__head { margin-bottom: 1.5rem; }

/* the wedding wall as a contact sheet */
.sheetwall { position: relative; padding: 3rem clamp(0.75rem, 1.5vw, 1.25rem) 2.4rem; background: var(--leader); border-radius: 4px; }
.sheetwall::before, .sheetwall::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; height: 0.85rem; background: repeating-linear-gradient(90deg, transparent 0 0.6rem, #2b2a28 0.6rem 1.6rem, transparent 1.6rem 2.2rem); }
.sheetwall::before { top: 0.75rem; }
.sheetwall::after { bottom: 0.75rem; }
.hang figure { position: relative; }
.hang .code { display: block; margin: 0 0 0.4rem 0.1rem; }
.wall-filter { gap: 0 1.75rem; border-bottom: 1px solid var(--hair); }
.wall-filter button { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0.5rem 0; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--code); }
.wall-filter button:hover { color: var(--bone); border-color: transparent; }
.wall-filter button[aria-pressed="true"] { background: transparent; color: var(--bone); border-bottom-color: var(--bone); }
.page-hero { min-height: 100svh; }

/* ------------------------------------------------------------ more motion -- */
/* headings rise out of a mask as they arrive */
.rise { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.rise > .rise__in { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease); }
.rise.is-risen > .rise__in { transform: none; }

/* contact sheets develop like prints in the tray: overexposed, then the image comes up */
.contact .frame img { transition: filter 1.6s var(--ease), transform 900ms var(--ease); }
.contact:not(.sc-in) .frame img { filter: brightness(2.4) contrast(0.55) saturate(0) blur(1px); }
.contact.sc-in figure:nth-child(2) .frame img { transition-delay: 0.08s; }
.contact.sc-in figure:nth-child(3) .frame img { transition-delay: 0.16s; }
.contact.sc-in figure:nth-child(4) .frame img { transition-delay: 0.24s; }
.contact.sc-in figure:nth-child(5) .frame img { transition-delay: 0.32s; }
.contact.sc-in figure:nth-child(6) .frame img { transition-delay: 0.40s; }
.contact.sc-in figure:nth-child(7) .frame img { transition-delay: 0.48s; }
.contact.sc-in figure:nth-child(8) .frame img { transition-delay: 0.56s; }
.contact.sc-in figure:nth-child(9) .frame img { transition-delay: 0.64s; }
.contact.sc-in figure:nth-child(10) .frame img { transition-delay: 0.72s; }

/* the wedding strip leans with the speed of the scroll, like film under tension */
.strip__film { transform: skewX(var(--lean, 0deg)); }

@media (prefers-reduced-motion: reduce) {
  .rise > .rise__in { transform: none; transition: none; }
  .contact:not(.sc-in) .frame img { filter: none; }
  .strip__film { transform: none; }
}

/* ------------------------------------------------------------ sound switch -- */
.sound { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.25rem; border: 0; background: none; color: var(--text-soft); font: inherit; font-size: 0.85rem; cursor: pointer; transition: color 160ms var(--ease); }
.sound:hover { color: var(--bone); }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 0.8rem; }
.sound__bars i { display: block; width: 2px; height: 30%; background: currentColor; transform-origin: bottom; }
.sound[aria-pressed="true"] { color: var(--bone); }
.sound[aria-pressed="true"] .sound__bars i { height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .sound[aria-pressed="true"] .sound__bars i { animation: level 0.9s ease-in-out infinite alternate; }
  .sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -0.3s; }
  .sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -0.6s; }
}
@keyframes level { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
@media (max-width: 1023px) { .sound [data-sound-label] { font-size: 0.8rem; } }

@keyframes land {
  0% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0); }
  25% { box-shadow: 0 0 22px 6px rgb(255 255 255 / 0.75), 0 0 48px 10px rgb(255 248 236 / 0.35); filter: brightness(1.35); }
  100% { box-shadow: 0 0 14px 2px rgb(255 255 255 / 0.28), 0 0 32px 4px rgb(255 248 236 / 0.12); }
}

/* sparkling glints around the lit rail frame: a burst on landing, then a slow twinkle */
.rail__glints { position: absolute; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 600ms var(--ease); }
.rail__glints.is-on { opacity: 1; }
.rail__glints i {
  position: absolute; left: var(--x); top: var(--y); width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  background: radial-gradient(circle, #fff 0 22%, rgb(255 246 230 / 0.9) 34%, rgb(255 246 230 / 0) 70%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 3px rgb(255 255 255 / 0.9));
  transform: scale(0); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .rail__glints.is-on i { animation: twinkle var(--d, 3s) ease-in-out var(--dl, 0s) infinite; }
  .rail__glints.is-burst i { animation: sparkburst 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both, twinkle var(--d, 3s) ease-in-out calc(1.4s + var(--dl, 0s)) infinite; }
}
@keyframes twinkle {
  0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
  45% { transform: scale(var(--s, 1)) rotate(45deg); opacity: 1; }
  60% { transform: scale(calc(var(--s, 1) * 0.6)) rotate(70deg); opacity: 0.7; }
}
@keyframes sparkburst {
  0% { transform: translate(calc(var(--bx) * -1), calc(var(--by) * -1)) scale(0) rotate(0deg); opacity: 0; }
  35% { transform: translate(0, 0) scale(calc(var(--s, 1) * 1.3)) rotate(60deg); opacity: 1; }
  100% { transform: translate(0, 0) scale(0) rotate(120deg); opacity: 0; }
}

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

/* ------------------------------------------------------------ the loop's room -- */
/* a faint mirror image of the reel on a glossy floor */
.loop__scene--mirror {
  z-index: 0; pointer-events: none; transform: translateY(var(--mirror-shift, 40vh)) scaleY(-1);
  opacity: calc(0.2 - var(--sc-p, 0) * 0.2); filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(180deg, transparent 48%, #000 70%); mask-image: linear-gradient(180deg, transparent 48%, #000 70%);
}
.loop__scene--mirror .loop__cell { cursor: default; }
/* the frame in the gate carries a bright edge; a comet strike flashes it */
.loop__cell.is-front img { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.4), 0 0 46px -8px hsl(var(--leak) / 0.55); }
.loop__cell.is-struck img { animation: struck 1s var(--ease); }
@keyframes struck { 0% { filter: brightness(1); } 14% { filter: brightness(1.9) saturate(1.15); } 100% { filter: brightness(1); } }
/* the logo's comet flies on this layer */
.skycomet { position: fixed; inset: 0; z-index: 62; width: 100%; height: 100%; pointer-events: none; }
/* star dust twinkling under the logo's name */
.nav__mark { position: relative; }
.nav__dust { position: absolute; left: 0; right: 0; top: calc(100% + 1px); height: 9px; pointer-events: none; }
.nav__dust i {
  position: absolute; left: var(--x); top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: radial-gradient(circle, #fff 0 22%, rgb(255 246 230 / 0.9) 34%, rgb(255 246 230 / 0) 70%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  transform: scale(0); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) { .nav__dust i { animation: twinkle var(--d, 3s) ease-in-out var(--dl, 0s) infinite; } }


/* ------------------------------------------------------------ About page -- */
/* the About page opens on the family print (the letter lives on the home page) */
.about-top { padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)); }
.letter__creed { margin: 2.5rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--hair); font-family: var(--display); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.012em; text-wrap: balance; }
.letter__sign { margin-top: 2rem; color: var(--text-soft); }
.letter__sign span { display: block; margin-top: 0.2rem; font-family: var(--display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; color: var(--bone); }

/* One vision: the family print, laid on the film base */
.team__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.team__text { grid-column: 7 / 13; grid-row: 1; }
.team__text h1, .team__text h2 { margin-bottom: 1.75rem; max-width: 14ch; }
.team__text .body + .body { margin-top: 1.15rem; }
.team__text .letter__creed { margin-bottom: 0; }
/* Framed print (Andy 2 Dec): dark moulding, bone mat, photo shown no wider than its 600px file at 2x, so it stays sharp */
.team__print { grid-column: 1 / 6; grid-row: 1; justify-self: center; width: min(100%, 25.5rem); margin: 0; padding: 2.75rem 2.75rem 1.6rem; background: var(--bone); border: 0.75rem solid #1f1d1b; border-radius: 2px; rotate: 1.2deg; /* `rotate`, not transform: scrollcraft resets transform on reveal */
  box-shadow: inset 0 3px 8px rgb(0 0 0 / 0.28), inset 0 0 0 1px rgb(0 0 0 / 0.18), 0 0 0 1px color-mix(in oklab, var(--bone) 12%, transparent), 0 34px 60px -26px rgb(0 0 0 / 0.85); }
.team__print img { display: block; width: 100%; aspect-ratio: 600 / 970; object-fit: cover; border-radius: 0; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12), 0 0 0 5px #f6f5f2, 0 0 0 6px rgb(0 0 0 / 0.1); /* bevelled mat cut */ }
.team__print .cap { margin-top: 1.25rem; text-align: center; color: var(--ink); }
.team__print .cap__title { font-size: 1.05rem; }
@media (max-width: 860px) { .team__text, .team__print { grid-column: 1 / -1; grid-row: auto; } .team__print { justify-self: start; width: min(100%, 20rem); padding: 2rem 2rem 1.25rem; border-width: 0.6rem; } }

/* Our photography style: one wide frame, a portrait laid over its corner */
.approach__head { display: grid; gap: 1rem; max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.approach__sub { font-family: var(--display); font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.1rem); line-height: 1.3; color: var(--text-soft); text-wrap: balance; }
.approach__wide { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-height: 78dvh; width: 100%; border-radius: var(--r); background: var(--leader); }
.approach__wide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.approach__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.approach__text { grid-column: 1 / 8; }
.approach__text .body { max-width: 60ch; }
.approach__text .body + .body { margin-top: 1.15rem; }
.approach__text strong { font-weight: 400; color: var(--bone); }
.approach__text .approach__last { margin-top: 2rem; font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); line-height: 1.32; color: var(--text-soft); max-width: 30ch; }
.approach__text .approach__last strong { color: var(--bone); }
.approach__walk { grid-column: 9 / 13; align-self: start; margin: calc(clamp(2.5rem, 5vw, 4rem) * -1 - 9vw) 0 0; position: relative; }
.approach__walk .note__portrait { aspect-ratio: 2 / 3; outline: 0.6rem solid var(--ink); }
.approach__walk .note__portrait img { inset: 0; height: 100%; }
@media (max-width: 860px) {
  .approach__text, .approach__walk { grid-column: 1 / -1; }
  .approach__walk { margin: 0; max-width: 22rem; }
  .approach__wide { aspect-ratio: 4 / 3; }
}

/* ------------------------------------------------------------ FAQ: the cue sheet (faq/) -- */
.faq-top { padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.faq-top__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.faq-top__text { grid-column: 1 / 7; }
.faq-top__text h1 { max-width: 11ch; margin-bottom: 1.5rem; }
.faq-top__print { grid-column: 8 / 13; margin: 0; padding: 1rem 1rem 1.1rem; background: var(--leader); border-radius: 4px; rotate: -1deg; box-shadow: 0 30px 60px -28px rgb(0 0 0 / 0.9); }
.faq-top__print .frame { aspect-ratio: 1800 / 1202; border-radius: 2px; }
.faq-top__print .cap { margin-top: 0.85rem; }
.faq-jump { display: flex; flex-wrap: wrap; gap: 0.75rem 2.75rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hair); }
.faq-jump a { display: inline-flex; align-items: baseline; gap: 0.65rem; font-family: var(--display); font-weight: 300; font-size: clamp(1.45rem, 1.1rem + 0.9vw, 1.95rem); line-height: 1.2; color: var(--bone); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: transparent; text-underline-offset: 0.22em; transition: text-decoration-color 220ms var(--ease); }
.faq-jump a:hover { text-decoration-color: var(--hair-strong); }
.faq-jump .code { text-decoration: none; }

.faq { padding-top: 0; }
.faq__wrap { display: grid; gap: clamp(4.5rem, 9vw, 8rem); }
.faq__group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.faq__head {
  grid-column: 1 / 5; position: sticky; top: calc(var(--nav-h) + 2rem); padding: 2.1rem 1.5rem 2rem; border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, transparent 0 0.5rem, #2b2a28 0.5rem 1.35rem, transparent 1.35rem 1.85rem) 0 0.4rem / 100% 0.55rem no-repeat,
    repeating-linear-gradient(90deg, transparent 0 0.5rem, #2b2a28 0.5rem 1.35rem, transparent 1.35rem 1.85rem) 0 calc(100% - 0.4rem) / 100% 0.55rem no-repeat,
    var(--leader);
}
.faq__name { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.4rem); line-height: 1.04; letter-spacing: -0.018em; }
.faq__head .code { margin-top: 0.85rem; }
.faq__other { display: inline-flex; gap: 0.6rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--hair); color: var(--code); text-decoration: none; transition: color 180ms var(--ease); }
.faq__other:hover, .faq__other:focus-visible { color: var(--bone); }
.faq__other span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: var(--hair-strong); }
.faq__list { grid-column: 5 / 13; border-bottom: 1px solid var(--hair); }
.faq__item { border-top: 1px solid var(--hair); scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.faq__item summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.4rem 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
.faq__q { font-size: clamp(1.2rem, 1.02rem + 0.55vw, 1.55rem); line-height: 1.3; letter-spacing: -0.005em; color: var(--text-soft); text-wrap: pretty; transition: color 200ms var(--ease); }
.faq__item summary:hover .faq__q, .faq__item[open] .faq__q, .faq__item:target .faq__q { color: var(--bone); }
.faq__icon { position: relative; width: 1.1rem; height: 1.1rem; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--bone); transition: transform 340ms var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] > summary .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 3rem 1.9rem 0; }
.faq__a p { color: var(--text-soft); max-width: 62ch; }
.faq__a a { color: var(--bone); text-decoration-thickness: 1px; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__a { animation: faq-in 560ms var(--ease) both; }
  @keyframes faq-in { from { opacity: 0; transform: translateY(-0.4rem); filter: blur(3px); } }
  @supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .faq__item::details-content { block-size: 0; overflow: clip; transition: block-size 420ms var(--ease), content-visibility 420ms allow-discrete; }
    .faq__item[open]::details-content { block-size: auto; }
  }
}
.faq-words .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.faq-words .quote { grid-column: 5 / 13; }
@media (max-width: 860px) {
  .faq-top__text, .faq-top__print { grid-column: 1 / -1; }
  .faq-top__print { rotate: none; }
  .faq__group { gap: 1.25rem; }
  .faq__head { grid-column: 1 / -1; position: static; padding: 1.8rem 1.25rem 1.6rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
  .faq__head .code { margin-top: 0; }
  .faq__other { display: none; }
  .faq__list, .faq-words .quote { grid-column: 1 / -1; }
  .faq__a { padding-right: 0; }
}
