/* MyCabina — site stylesheet
   Palette comes from the brand (cream, browns, tan). Type: Bricolage Grotesque
   (one variable family, condensed for display) + Caveat for guestbook handwriting. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/caveat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/caveat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --cream: #f6f1e8;
  --sand: #ebe1cf;
  --paper: #ffffff;
  --ink: #1a140e;
  --ink-2: #4b3a2a;
  --ink-3: #756350;
  --brown: #6b3e1d;
  --tan: #d8b98a;
  --error: #a3261a;

  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --hand: 'Caveat', 'Segoe Script', cursive;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section: clamp(5.5rem, 13vw, 12rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow-print: 0 1px 1px rgb(26 20 14 / .08), 0 10px 24px -6px rgb(26 20 14 / .22), 0 28px 60px -20px rgb(26 20 14 / .28);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* Soft cross-fade between the home page and the booking page. */
  @view-transition { navigation: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
a[href^='tel:'] { white-space: nowrap; }
::selection { background: var(--brown); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--tan); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  text-decoration: none;
  translate: 0 -200%;
}
.skip:focus-visible { translate: 0 0; outline-color: var(--tan); }

/* ---------- Type ---------- */
.display {
  font-stretch: 75%;
  font-weight: 520;
  letter-spacing: -0.012em;
  line-height: .94;
  text-wrap: balance;
}
.h1 { font-size: clamp(3.5rem, 17vw, 7.5rem); }
.h2 { font-size: clamp(2.6rem, 11.5vw, 5rem); }
@media (min-width: 62rem) {
  .h1 { font-size: clamp(5.5rem, 9.8vw, 9.75rem); }
  .h2 { font-size: clamp(4rem, 6.6vw, 6.25rem); }
}
.h3 {
  font-stretch: 82%;
  font-weight: 560;
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}
.muted { color: var(--ink-3); }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: 100rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  background: var(--brown);
  color: var(--cream);
  font-weight: 560;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), scale .25s var(--ease);
}
.btn:hover { background: var(--ink); }
.btn:active { scale: .97; }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--tan); }
.btn--ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-dark .btn--ghost:hover { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--cream); }
.btn--small { min-height: 2.75rem; padding: .55rem 1.25rem; font-size: 1rem; }

.link {
  font-weight: 560;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .28em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color .25s var(--ease);
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  transition: translate .45s var(--ease);
}
.site-header.is-hidden { translate: 0 -110%; }
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem var(--gutter);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-stretch: 100%;
  font-weight: 640;
  font-size: 1.5rem;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  view-transition-name: logo;
}
.logo img { width: auto; height: 2.5rem; }
.logo span { color: #a7773f; }
.logo b { font-weight: inherit; color: var(--ink); }
.on-dark .logo { color: var(--cream); view-transition-name: none; }
.on-dark .logo span { color: var(--tan); }
.on-dark .logo b { color: var(--cream); }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.site-nav a {
  text-decoration: none;
  font-weight: 480;
  color: var(--ink-2);
  padding-block: .5rem;
  transition: color .2s;
}
.site-nav a:hover { color: var(--ink); }

.site-header__actions { display: flex; align-items: center; gap: .5rem; }
.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
}
.menu-btn svg { width: 1.5rem; height: 1.5rem; }

@media (min-width: 62rem) {
  .site-nav { display: block; }
  .menu-btn { display: none; }
}

/* Full-screen menu (small screens) */
.menu {
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--cream);
}
.menu::backdrop { background: var(--ink); }
.menu__inner {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: .7rem var(--gutter) 2rem;
}
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__links { align-self: center; display: grid; gap: .35rem; padding-block: 2rem; }
.menu__links a {
  display: block;
  font-stretch: 75%;
  font-weight: 560;
  font-size: clamp(2.6rem, 13vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-decoration: none;
}
.menu__links a:hover { color: var(--tan); }
.menu__foot { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] { animation: menu-in .45s var(--ease); }
  .menu[open] .menu__links li { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 80ms); }
}
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; translate: 0 1.2em; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: clamp(6.5rem, 12vh, 9rem) clamp(3rem, 7vh, 5rem);
}
.hero__grid {
  display: grid;
  gap: clamp(3rem, 8vw, 4rem);
  align-items: center;
}
.hero__copy { display: grid; gap: clamp(1.5rem, 2.6vw, 2.25rem); justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* Headline lines rise out of a mask on load */
.line { display: block; overflow: clip; overflow-clip-margin: .12em; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero .line > span { animation: line-up 1.1s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
  .hero__fade { animation: fade-up .9s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 420ms); }
}
@keyframes line-up { from { translate: 0 108%; } }
@keyframes fade-up { from { opacity: 0; translate: 0 1rem; } }

@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
}

/* ---------- Booth: a print comes out in 14 real seconds ---------- */
.booth {
  --print-w: min(100%, 27rem);
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}
.booth__machine { width: var(--print-w); }
.booth__readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 .35rem .6rem;
  font-size: .95rem;
  color: var(--ink-2);
}
.booth__status { display: inline-flex; align-items: center; gap: .55rem; }
.booth__led {
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--brown);
}
.booth.is-printing .booth__led { animation: led 1s steps(2, jump-none) infinite; }
@keyframes led { 50% { opacity: .25; } }
.booth__count {
  font-variant-numeric: tabular-nums;
  font-weight: 560;
  color: var(--ink);
}
.booth__slot {
  position: relative;
  z-index: 3;
  height: 1.125rem;
  border-radius: 999px;
  background: linear-gradient(#2a2118, var(--ink) 55%);
  box-shadow: 0 6px 14px -4px rgb(26 20 14 / .45);
}
.booth__mouth {
  position: relative;
  z-index: 2;
  margin: -.55rem 6% 0;
  aspect-ratio: 1.42;
  /* Clip only the top edge so the print appears from inside the slot,
     while its shadow can spill out at the sides and bottom. */
  clip-path: inset(0 -4rem -6rem -4rem);
}
.booth__pile {
  position: relative;
  z-index: 1;
  margin: -14% 6% 16%;
  aspect-ratio: 1.42;
}

.print {
  display: block;
  width: 100%;
  padding: 3.2%;
  background: var(--paper);
  box-shadow: var(--shadow-print);
  border-radius: 2px;
}
.print img { width: 100%; height: auto; background: var(--sand); }
.booth__mouth .print { position: absolute; inset: 0 0 auto 0; }
.booth__pile .print {
  position: absolute;
  inset: 0 0 auto 0;
  translate: var(--x, 0%) var(--y, 0%);
  rotate: var(--r, 0deg);
  transition: opacity .5s;
}
.booth__pile .print.is-leaving { opacity: 0; }

.booth__controls { display: flex; align-items: center; gap: .9rem; }
.shutter {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: .35rem 1.35rem .35rem .35rem;
  border-radius: 999px;
  background: var(--paper);
  font-weight: 560;
  box-shadow: 0 1px 0 rgb(26 20 14 / .06), 0 8px 20px -10px rgb(26 20 14 / .35);
  transition: scale .2s var(--ease);
}
.shutter:active { scale: .96; }
.shutter__ring {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.shutter__ring::after {
  content: '';
  width: 1.85rem; height: 1.85rem;
  border-radius: 50%;
  background: var(--brown);
  transition: scale .15s var(--ease), background-color .2s;
}
.shutter:hover .shutter__ring::after { background: var(--ink); }
.shutter:active .shutter__ring::after { scale: .82; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent);
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--ink); color: var(--cream); }
.icon-btn svg { width: 1rem; height: 1rem; }
.icon-btn .icon-play, .icon-btn[aria-pressed='true'] .icon-pause { display: none; }
.icon-btn[aria-pressed='true'] .icon-play { display: block; }

.flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Film ---------- */
.film {
  background: var(--ink);
  color: var(--cream);
  padding-block: var(--section) 0;
}
.film__head {
  display: grid;
  gap: 1.5rem;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.film__head .lead { color: color-mix(in srgb, var(--cream) 72%, transparent); }
@media (min-width: 62rem) {
  .film__head { grid-template-columns: 1.4fr 1fr; align-items: end; }
}
.film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 100svh;
  width: 100%;
  background: #0d0a07;
}
.film__frame video { width: 100%; height: 100%; object-fit: cover; }
.film__toggle {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(1rem, 3vw, 2.25rem);
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cream);
  box-shadow: none;
}
.film__toggle:hover { background: var(--cream); color: var(--ink); }

/* ---------- Included ---------- */
.included__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.included__intro { display: grid; gap: 1.75rem; align-content: start; }
.included__list > div {
  display: grid;
  gap: .5rem 2rem;
  padding-block: clamp(1.35rem, 2.4vw, 2rem);
  border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
.included__list > div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.included__list dd { color: var(--ink-2); max-width: 32em; text-wrap: pretty; }
@media (min-width: 46rem) {
  .included__list > div { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: baseline; }
}
@media (min-width: 72rem) {
  .included__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .included__intro { position: sticky; top: 7rem; }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--sand); }
.gallery__sticky { padding-block: var(--section); }
.gallery__head {
  display: grid;
  gap: 1.25rem;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 62rem) {
  .gallery__head { grid-template-columns: 1.4fr 1fr; align-items: end; }
}
.strip {
  display: flex;
  gap: clamp(1rem, 3vw, 2.75rem);
  padding: 1.5rem var(--gutter) 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li {
  flex: none;
  width: min(78vw, 30rem);
  scroll-snap-align: center;
  rotate: var(--r, 0deg);
  translate: 0 var(--y, 0);
}
.strip li:nth-child(4n + 1) { --r: -2.2deg; --y: .4rem; }
.strip li:nth-child(4n + 2) { --r: 1.4deg; --y: -.5rem; }
.strip li:nth-child(4n + 3) { --r: -1deg; --y: .8rem; }
.strip li:nth-child(4n + 4) { --r: 2.4deg; --y: -.2rem; }
.strip .print {
  cursor: zoom-in;
  transition: scale .45s var(--ease), rotate .45s var(--ease);
}
.strip .print:hover { scale: 1.035; rotate: calc(var(--r, 0deg) * -1); }
.gallery__progress { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
}
.lightbox::backdrop { background: rgb(18 13 9 / .92); }
.lightbox__inner {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox__print {
  max-width: min(100%, calc((100svh - 11rem) * 1.5));
  padding: clamp(.5rem, 1.4vw, 1rem);
  background: var(--paper);
  box-shadow: 0 40px 90px -30px #000;
}
.lightbox__print img { width: 100%; height: auto; }
.lightbox__bar { display: flex; align-items: center; gap: .75rem; }
.lightbox__bar .icon-btn { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgb(246 241 232 / .35); }
.lightbox__bar .icon-btn:hover { background: var(--cream); color: var(--ink); }
.lightbox__count { min-width: 4.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.lightbox :focus-visible { outline-color: var(--tan); }
::view-transition-group(print) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }
::view-transition-old(print), ::view-transition-new(print) { height: 100%; object-fit: cover; }

/* ---------- Album ---------- */
.album__grid { display: grid; gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.album__visual { position: relative; }
.album__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.album__page {
  position: absolute;
  right: -3%;
  bottom: -9%;
  width: min(58%, 21rem);
  padding: 5% 5% 4%;
  background: #fbf6ec;
  box-shadow: var(--shadow-print);
  rotate: -4deg;
}
.album__page .print { box-shadow: 0 1px 2px rgb(26 20 14 / .18); }
.album__tape {
  position: absolute;
  top: 3.5%;
  left: 50%;
  width: 26%;
  height: 5.5%;
  translate: -50% 0;
  rotate: -3deg;
  background: color-mix(in srgb, var(--tan) 62%, transparent);
  z-index: 1;
}
.album__note {
  display: block;
  margin-top: .5rem;
  font-family: var(--hand);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.15;
  color: var(--brown);
  text-align: center;
}
.album__copy { display: grid; gap: 1.75rem; }
.album__quote {
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-stretch: 82%;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--brown);
}
.steps { display: grid; counter-reset: step; margin-top: .5rem; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: .25rem 0;
  padding-block: 1.35rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-stretch: 75%;
  font-weight: 560;
  font-size: 2.4rem;
  line-height: .95;
  color: var(--brown);
}
.steps p { color: var(--ink-2); grid-column: 2; }
@media (min-width: 62rem) {
  .album__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .album__visual { position: sticky; top: 7rem; margin-bottom: 4rem; }
}

/* ---------- Pricing ---------- */
.pricing { background: var(--sand); }
.pricing__head { display: grid; gap: 1.5rem; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 62rem) {
  .pricing__head { grid-template-columns: 1.4fr 1fr; align-items: end; }
}
.pricing__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.durations { display: grid; gap: .6rem; }
.duration { position: relative; display: block; }
.duration input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.duration__body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.1rem 1.5rem;
  border-radius: 1.25rem;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 16%, transparent);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.duration__time {
  font-stretch: 75%;
  font-weight: 560;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1;
  min-width: 3.2em;
}
.duration__name { color: var(--ink-2); transition: color .3s var(--ease); }
@media (max-width: 30rem) {
  .pricing .duration__body { grid-template-columns: 1fr auto; gap: .2rem 1rem; }
  .pricing .duration__name { grid-row: 2; grid-column: 1 / -1; }
}
.duration__price { font-weight: 560; font-variant-numeric: tabular-nums; }
.duration:hover .duration__body { box-shadow: inset 0 0 0 1.5px var(--ink); }
.duration input:checked + .duration__body {
  background: var(--ink);
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.duration input:checked + .duration__body .duration__name { color: var(--tan); }
.duration input:focus-visible + .duration__body { outline: 2px solid var(--brown); outline-offset: 3px; }
.pricing__extra { margin-top: 1.25rem; color: var(--ink-2); font-size: 1rem; }

.quote { display: grid; gap: 1.5rem; align-content: start; justify-items: start; }
.quote__price {
  display: flex;
  align-items: flex-start;
  font-stretch: 75%;
  font-weight: 560;
  font-size: clamp(6.5rem, 21vw, 15rem);
  letter-spacing: -0.045em;
  line-height: .8;
  font-variant-numeric: tabular-nums;
}
.quote__currency { font-size: .34em; line-height: 1; margin: .12em 0 0 .12em; letter-spacing: 0; }
.roll { display: inline-flex; overflow: clip; height: .8em; }
.roll__col { display: flex; flex-direction: column; transition: translate .9s cubic-bezier(.16, .84, .2, 1); translate: 0 calc(var(--d) * -.8em); }
.roll__col:nth-child(2) { transition-delay: 60ms; }
.roll__col:nth-child(3) { transition-delay: 120ms; }
.roll__col span { height: .8em; }
.quote__meta { color: var(--ink-2); }
.quote__includes {
  display: grid;
  gap: .45rem 2rem;
  width: 100%;
  padding-block: 1.5rem;
  border-block: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
.quote__includes li { display: flex; gap: .7rem; align-items: baseline; }
.quote__includes li::before {
  content: '';
  flex: none;
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--brown);
  translate: 0 -.08em;
}
@media (min-width: 34rem) { .quote__includes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) {
  .pricing__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 62rem) {
  .faq__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .faq__grid > .h2 { position: sticky; top: 7rem; align-self: start; }
}
.faq details { border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.faq details:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: clamp(1.2rem, 2.2vw, 1.75rem);
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: '';
  flex: none;
  width: 1.1rem; height: 1.1rem;
  background:
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 2px 100% no-repeat;
  color: var(--brown);
  transition: rotate .35s var(--ease);
}
.faq details[open] summary::before { rotate: 45deg; }
.faq summary:hover { color: var(--brown); }
.faq__answer { padding: 0 0 clamp(1.2rem, 2.2vw, 1.75rem) 2.1rem; color: var(--ink-2); max-width: 36em; }
.faq details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.faq details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content {
    transition: block-size .4s var(--ease), content-visibility .4s, display .4s;
    transition-behavior: allow-discrete;
  }
}

/* ---------- Contact + footer ---------- */
.contact { background: var(--ink); color: var(--cream); padding-block: var(--section) 2rem; }
.contact__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.contact__grid .lead { color: color-mix(in srgb, var(--cream) 72%, transparent); }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.contact__phone {
  display: inline-block;
  font-stretch: 75%;
  font-weight: 560;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  color: var(--tan);
  transition: color .25s;
}
.contact__phone:hover { color: var(--cream); }
.contact__aside { display: grid; gap: 1.75rem; align-content: end; justify-items: start; }
@media (min-width: 62rem) {
  .contact__grid { grid-template-columns: 1.3fr 1fr; align-items: end; }
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: var(--section);
  padding-top: 1.5rem;
  border-top: 1px solid rgb(246 241 232 / .16);
  font-size: .95rem;
  color: color-mix(in srgb, var(--cream) 62%, transparent);
}

/* ---------- Booking page ---------- */
.booking { padding-block: clamp(7rem, 14vh, 10rem) var(--section); }
.booking__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.booking__intro { display: grid; gap: 1.5rem; align-content: start; justify-items: start; }
.booking__intro .h1 { font-size: clamp(3.2rem, 13vw, 7rem); }
@media (min-width: 62rem) { .booking__intro .h1 { font-size: clamp(4.5rem, 7.4vw, 7rem); } }
.booking__alt { display: grid; gap: .35rem; color: var(--ink-2); }
@media (min-width: 62rem) {
  .booking__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .booking__intro { position: sticky; top: 7rem; }
}
.form { display: grid; gap: 1.75rem; }
.form__row { display: grid; gap: 1.75rem; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; align-content: start; }
.field label, .field legend { font-weight: 560; padding: 0; }
.field .optional { font-weight: 400; color: var(--ink-3); }
.input {
  width: 100%;
  min-height: 3.25rem;
  padding: .6rem 0;
  border: 0;
  border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
}
textarea.input { min-height: 7rem; resize: vertical; line-height: 1.5; }
select.input {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%231a140e' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right .25rem center / .75rem no-repeat;
  padding-right: 1.75rem;
}
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover { border-bottom-color: var(--ink); }
.input:focus-visible { outline: none; border-bottom-color: var(--brown); box-shadow: 0 1.5px 0 var(--brown); }
.input[aria-invalid='true'] { border-bottom-color: var(--error); }
.field__error { color: var(--error); font-size: .95rem; min-height: 0; }
.field__error:empty { display: none; }
.form .durations { margin-top: .5rem; }
@media (min-width: 40rem) { .form .durations { grid-template-columns: 1fr 1fr; } }
.form .duration__body { grid-template-columns: 1fr auto; padding: 1rem 1.25rem; }
.form .duration__time { font-size: 1.6rem; min-width: 0; }
.form__foot { display: grid; gap: 1rem; justify-items: start; }
.form__status { color: var(--error); }
.form__status:empty { display: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.success { display: grid; gap: 1.5rem; justify-items: start; }
.success[hidden] { display: none; }
.booking__prints { position: relative; width: min(100%, 20rem); aspect-ratio: 1.3; margin-top: 2rem; display: none; }
.booking__prints .print { position: absolute; inset: 0 auto auto 0; width: 82%; }
.booking__prints .print:nth-child(1) { rotate: -6deg; }
.booking__prints .print:nth-child(2) { rotate: 4deg; translate: 20% 12%; }
@media (min-width: 62rem) { .booking__prints { display: block; } }

/* ---------- Scroll-driven motion (progressive enhancement) ---------- */
@supports ((animation-timeline: view()) and (animation-range: 0% 100%)) {
  @media (prefers-reduced-motion: no-preference) {
    /* Headings pull into focus, like a lens finding its subject. */
    .focus-pull {
      transform-origin: 0 60%;
      animation: focus-pull linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    @keyframes focus-pull {
      from { filter: blur(.22em); opacity: 0; scale: 1.05; }
      60% { opacity: 1; }
      to { filter: blur(0); opacity: 1; scale: 1; }
    }

    /* The film opens from a framed card to full bleed. */
    .film__frame {
      animation: film-open linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 48%;
    }
    @keyframes film-open {
      from { clip-path: inset(9% 13% 9% 13% round 1.75rem); }
      to { clip-path: inset(0 0 0 0 round 0rem); }
    }

    /* The guestbook page is laid onto the album and the note gets written. */
    .album__page {
      animation: page-in linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 45%;
    }
    @keyframes page-in {
      from { translate: 22% 34%; rotate: 13deg; opacity: 0; }
      30% { opacity: 1; }
      to { translate: 0 0; rotate: -4deg; opacity: 1; }
    }
    .album__note {
      animation: write linear both;
      animation-timeline: view();
      animation-range: cover 30% cover 48%;
    }
    @keyframes write {
      from { clip-path: inset(-10% 100% -10% 0); }
      to { clip-path: inset(-10% 0 -10% 0); }
    }

    /* Small screens: prints straighten as they pass the centre of the strip. */
    .strip .print {
      animation: pass linear both;
      animation-timeline: view(inline);
    }
    @keyframes pass {
      from { scale: .9; opacity: .55; }
      35%, 65% { scale: 1; opacity: 1; }
      to { scale: .9; opacity: .55; }
    }
  }

  /* Wide screens with a mouse: the strip is pinned and vertical scroll moves it sideways. */
  @media (prefers-reduced-motion: no-preference) and (min-width: 62rem) and (hover: hover) {
    .gallery { view-timeline: --gallery block; height: 380vh; }
    .gallery__sticky {
      position: sticky;
      top: 0;
      height: 100vh;
      padding-block: 5.5rem 2rem;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: auto 1fr auto;
      overflow: clip;
    }
    .gallery__head { padding-bottom: 0; }
    .strip {
      align-items: center;
      width: max-content;
      overflow: visible;
      padding-block: 0;
      animation: strip-x linear both;
      animation-timeline: --gallery;
      animation-range: contain 0% contain 100%;
    }
    @keyframes strip-x { to { translate: calc(-100% + 100vw) 0; } }
    .strip li { width: auto; height: min(52vh, 30rem); aspect-ratio: 1.42; }
    .strip .print { animation: none; }
    .gallery__progress {
      display: block;
      height: 2px;
      margin-inline: var(--gutter);
      background: color-mix(in srgb, var(--ink) 14%, transparent);
    }
    .gallery__progress::after {
      content: '';
      display: block;
      height: 100%;
      background: var(--brown);
      transform-origin: 0 50%;
      animation: grow-x linear both;
      animation-timeline: --gallery;
      animation-range: contain 0% contain 100%;
    }
    @keyframes grow-x { from { scale: 0 1; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
