/* Daybook: wedding photography and film (design concept)
   tokens → base → buttons and fields → header and menu → hero → approach → work → film → collections → plan →
   questions → final → footer → dock → dialog → smooth scroll → motion → responsive */

/* ---------- tokens: a day's light, from morning linen to night plum ---------- */
:root {
  --bg: #F5F1EA;
  --alt: #EEE7DD;
  --paper: #FCFAF6;
  --golden: #F2E5D3;
  --night: #221D25;
  --night-2: #2D2730;
  --ink: #26211D;
  --muted: #655C54;
  --soft: #877D73;              /* large text only: 3.25 on the golden band */
  --line: #E3DACD;
  --line-2: #D2C7B7;
  --ember: #C0653A;
  --ember-t: #9E4F28;           /* ember as text, 4.9 on the page */
  --on-night: #F3EEE8;
  --muted-night: #B9AFB6;
  --shadow: 0 34px 70px -44px rgb(70 45 25 / .45);

  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;   /* headlines, logo, prices */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;   /* text, labels, buttons */
  --pad: clamp(20px, 3.6vw, 56px);
  --maxw: 1400px;
  --nav-h: 68px;
  --sec: clamp(96px, 10vw, 160px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* both variable, latin only: Playfair Display (Medium to ExtraBold) for headlines, Inter (Regular to Bold) for text */
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/playfair-display.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: #EFD3BD; }
.i { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; vertical-align: -0.16em; }
.sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.label { font-size: 13.5px; font-weight: 500; letter-spacing: .01em; color: var(--muted); margin-bottom: 18px; }
.h2 { font: 600 clamp(40px, 4.7vw, 76px)/1.04 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.tone { color: var(--soft); }
.lead { font-size: 17.5px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; }
.sec-head .lead { justify-self: start; }
.frame { position: relative; overflow: hidden; overflow: clip; border-radius: 4px; background: #E2D8CA; }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- buttons, links and fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 500 15.5px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .25s, color .25s, box-shadow .25s, transform .25s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #3A322C; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-light { background: var(--on-night); color: var(--night); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link .i { transition: transform .35s var(--ease); }
.link:hover .i { transform: translateX(3px); }
.input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 16px; transition: border-color .2s; }
.input:hover { border-color: #B9AD9C; }
.input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
textarea.input { padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%2326211D' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 14px; background-position: right 14px center; }
input[type="date"].input { font-variant-numeric: tabular-nums; }
/* a date field is several stops (day, month, year, calendar): keep the ring on for all of them */
input[type="date"].input:focus, input[type="date"].input:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
input[type="date"].input::-webkit-calendar-picker-indicator { border-radius: 4px; cursor: pointer; }
input[type="date"].input::-webkit-calendar-picker-indicator:focus { outline: 2px solid currentColor; outline-offset: 2px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend { display: flex; justify-content: space-between; gap: 12px; padding: 0; font-size: 14px; font-weight: 500; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.opt { font-weight: 400; color: var(--muted); }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); margin: 0; min-width: 0; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background-color .25s, color .25s; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- header ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .4s, background-color .6s; }
.nav[data-scrolled="false"] { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav[data-scrolled="true"] { border-bottom-color: var(--line); }
.nav-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; height: var(--nav-h); max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.logo { font: 600 26px/1 var(--display); letter-spacing: -.01em; text-decoration: none; }
.links { position: relative; display: flex; justify-content: center; align-items: center; gap: clamp(18px, 2.3vw, 36px); height: var(--nav-h); }
.links a { font-size: 15px; text-decoration: none; color: var(--muted); transition: color .2s; }
.links a:hover, .links a[aria-current] { color: var(--ink); }
.nav-line { position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: var(--ink); opacity: 0; transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; min-height: 40px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font-size: 14.5px; font-weight: 500; }
.menu { position: fixed; inset: var(--nav-h) 0 0; z-index: 49; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 24px var(--pad) calc(28px + env(safe-area-inset-bottom)); background: var(--bg); overflow-y: auto; }
.menu nav { display: grid; }
.menu nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 32px/1.15 var(--display); letter-spacing: -.01em; text-decoration: none; }

/* ---------- hero: the couple in front of the headline, cut out of the same photograph ---------- */
.hero { position: relative; background: #CDBB9F; }
.hero-stage { position: relative; height: 100svh; min-height: 680px; max-height: 1080px; overflow: hidden; overflow: clip; }
.hero-stage picture { position: absolute; inset: 0; }
.hero-bg, .hero-cut { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% 34%; }
.hero-front { z-index: 3; pointer-events: none; }
.hero-stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(rgb(22 17 14 / 0) 55%, rgb(22 17 14 / .55)); }
/* main.js sets --hero-top so the couple's heads cover the foot of the last line */
.hero-t { position: absolute; z-index: 2; left: 0; right: 0; top: var(--hero-top, 24%); margin: 0; padding: 0 var(--pad); text-align: center; font: 600 clamp(56px, min(9.6vw, 15vh), 176px)/.96 var(--display); letter-spacing: -.02em; color: var(--ink); }
/* a soft golden haze behind the headline lifts the dark trees it crosses; the couple stays crisp in front */
.hero-t::before { content: ""; position: absolute; z-index: -1; inset: -14% -6% -90% -6%; background: radial-gradient(closest-side at 50% 42%, rgb(247 236 218 / .66), rgb(247 236 218 / .46) 34%, rgb(247 236 218 / .2) 64%, rgb(247 236 218 / 0) 100%); pointer-events: none; }
.hero-t .line { display: block; overflow: hidden; overflow: clip; padding: 0 .04em .1em; margin: 0 -.04em -.1em; }
.hero-t .line > span { display: block; }
.hero-t .l-a, .hero-t .l-b { display: inline-block; }
.hero-cap { position: absolute; right: var(--pad); bottom: 28px; z-index: 4; margin: 0; font-size: 14px; color: rgb(251 248 243 / .92); }
.hero-cap b { margin-right: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* the words and the date check keep left of the groom: he starts at about 37% of the width */
.hero-in { --left: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad))); position: absolute; z-index: 4; left: var(--left); bottom: clamp(28px, 4.4vh, 52px); width: clamp(340px, calc(37vw - 24px - var(--left)), 470px); color: #FBF8F3; }
.hero-lead { font-size: 17px; line-height: 1.5; color: rgb(251 248 243 / .94); text-shadow: 0 1px 18px rgb(22 17 14 / .35); }
.check { margin-top: 20px; }
.check-l { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.check-row { display: flex; gap: 8px; }
.check-row .input { flex: 1 1 auto; min-width: 0; border-radius: 999px; padding: 0 18px; }
.check-r { min-height: 0; font-size: 15px; line-height: 1.5; }
.check-r:not(:empty) { margin-top: 12px; }
.check-r .i { margin-right: 6px; }
.check-r b { font-weight: 500; }
.check-r .ok { color: var(--ink); }
.check-r .alt { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.check-r .alt button { min-height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font-size: 14px; font-variant-numeric: tabular-nums; }
.check-r .alt button:hover { border-color: var(--ink); }
.check-r a { font-weight: 500; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .i { width: 15px; height: 15px; color: var(--ember-t); }
.facts b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

.hero-check { width: min(500px, 100%); margin-top: 18px; }
.hero .facts { color: rgb(251 248 243 / .92); }
.hero .facts .i { color: #F2C9A2; }
.hero .facts b { color: #fff; }
/* phones and portrait tablets: a portrait crop of the same photograph, the form below it */
@media (max-width: 760px), (max-width: 999px) and (orientation: portrait) {
  .hero { background: var(--bg); }
  .hero-stage { height: min(128vw, 82svh); min-height: 0; max-height: none; }
  .hero-bg, .hero-cut { object-position: 50% 30%; }
  .hero-t { font-size: clamp(40px, 12.4vw, 88px); line-height: .98; }
  .hero-t .l-a, .hero-t .l-b { display: block; }
  .hero-cap { bottom: 14px; font-size: 12.5px; }
  .hero-in { position: static; width: auto; max-width: 640px; padding: 26px var(--pad) 8px; color: var(--ink); }
  .hero-lead { color: var(--muted); text-shadow: none; font-size: 16.5px; }
  .hero-check .check-row { box-shadow: inset 0 0 0 1px var(--line-2); }
  .hero .facts { color: var(--muted); }
  .hero .facts .i { color: var(--ember-t); }
  .hero .facts b { color: var(--ink); }
}

/* ---------- the date check: a pill with the date field and a round-arrow button ---------- */
/* its own layer above what follows, so the open calendar is never painted under the next section */
.check-pill { position: relative; z-index: 20; color: var(--ink); }
.check-pill .check-row { align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--paper); box-shadow: 0 26px 60px -30px rgb(20 14 10 / .6), inset 0 0 0 1px rgb(38 33 29 / .06); }
.check-pill .check-r { padding: 12px 16px; border-radius: 16px; background: var(--paper); color: var(--ink); text-align: left; box-shadow: 0 18px 40px -28px rgb(20 14 10 / .5); }
.check-pill .check-r:empty { display: none; }
.check-pill .check-r .alt button { background: var(--paper); border-color: var(--line-2); color: var(--ink); }
.btn-go { min-height: 56px; padding: 0 6px 0 22px; gap: 14px; font-size: 15.5px; }
.btn-go .go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ink); }
.btn-go .go .i { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn-go:hover .go .i { transform: translateX(3px); }
/* the pill decides its own button: a short pill (a phone, or the hero beside the couple on a wide screen) gets just the arrow */
.check-pill { container-type: inline-size; }
@container (max-width: 420px) {
  .btn-go { width: 56px; padding: 0; justify-content: center; }
  .btn-go .go-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .btn-go .go { width: auto; height: auto; background: none; color: var(--paper); }
  .btn-go .go .i { width: 20px; height: 20px; }
}

/* the date field: the native date input stays underneath (and is what you get without JavaScript); a calendar that
   shows which days are free replaces its look */
.df { position: relative; flex: 1 1 auto; min-width: 0; }
.df.is-on .df-native { position: absolute !important; left: 0; top: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.df-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px 0 6px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); text-align: left; transition: background-color .2s; }
.df-btn:hover { background: rgb(38 33 29 / .045); }
.df-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.df-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--golden); color: var(--ember-t); }
.df-ico .i { width: 21px; height: 21px; }
.df-txt { display: grid; gap: 1px; min-width: 0; }
.df-l { font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--muted); }
.df-v { overflow: hidden; font-size: 16.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.df-v.is-empty { font-weight: 500; color: var(--muted); }
.df-car { flex: none; width: 16px; height: 16px; margin-left: auto; color: var(--muted); transition: transform .35s var(--ease); }
.df-btn[aria-expanded="true"] .df-car { transform: rotate(180deg); }

/* the calendar */
.df-pop { position: absolute; left: 0; top: calc(100% + 12px); z-index: 30; width: 344px; max-width: calc(100vw - 2 * var(--pad)); padding: 16px 14px 12px; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 34px 80px -30px rgb(20 14 10 / .55), 0 0 0 1px rgb(38 33 29 / .07); transform-origin: 30px 0; animation: df-in .35s var(--ease); }
.df.is-up .df-pop { top: auto; bottom: calc(100% + 12px); transform-origin: 30px 100%; }
@keyframes df-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.df.is-up .df-pop { animation-name: df-in-up; }
@keyframes df-in-up { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.df-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; }
.df-month { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.df-nav { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--alt); color: var(--ink); transition: background-color .2s; }
.df-nav:hover { background: var(--line); }
.df-nav:disabled { opacity: .35; cursor: default; }
.df-nav .i { width: 16px; height: 16px; }
.df-wk, .df-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.df-wk span { padding: 6px 0; font-size: 12px; font-weight: 500; text-align: center; color: var(--muted); }
.df-wk span:nth-child(n+5) { color: var(--ink); }
.df-day { position: relative; justify-self: center; width: min(42px, calc(100% - 2px)); height: auto; aspect-ratio: 1; margin: 1px 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 14.5px; font-variant-numeric: tabular-nums; transition: background-color .15s; }
.df-day:hover:not(:disabled) { background: var(--alt); }
.df-day:disabled { color: #CDC4B7; cursor: default; }
.df-day.is-booked { color: var(--soft); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.df-day.is-partly::after { content: ""; position: absolute; left: 34%; right: 34%; bottom: 7px; height: 2px; border-radius: 2px; background: var(--ember); }
.df-day.is-today { box-shadow: inset 0 0 0 1px var(--line-2); }
.df-day[aria-pressed="true"] { background: var(--ink); color: var(--paper); text-decoration: none; }
.df-day[aria-pressed="true"]::after { background: var(--paper); }
.df-day:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.df-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; padding: 10px 4px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.df-key span { display: inline-flex; align-items: center; gap: 6px; }
.df-key b { position: relative; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.df-key .kx-booked { color: var(--soft); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.df-key .kx-partly::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -3px; height: 2px; border-radius: 2px; background: var(--ember); }

/* ---------- approach ---------- */
.approach { padding: var(--sec) 0; }
.ap-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px); align-items: start; }
.ap-tall { grid-column: 1 / 6; grid-row: 1; aspect-ratio: 4 / 5; }
.ap-small { grid-column: 5 / 8; grid-row: 1; align-self: end; z-index: 1; margin-bottom: -12%; }
.ap-small .frame { aspect-ratio: 4 / 5; box-shadow: 0 0 0 10px var(--bg); }
.ap-small figcaption, .g figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.ap-small figcaption b, .g figcaption b { margin-right: 8px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.ap-copy { grid-column: 8 / 13; grid-row: 1; padding-top: clamp(0px, 3vw, 48px); }
.ap-copy .lead { margin-top: 28px; }
.principles { margin-top: 44px; border-top: 1px solid var(--line-2); }
.principles li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.principles .i { width: 26px; height: 26px; color: var(--ember-t); margin-top: 2px; }
.principles h3 { font: 600 20px/1.25 var(--display); }
.principles p { margin-top: 4px; font-size: 15.5px; color: var(--muted); }

/* ---------- work ---------- */
.work { padding: 0 0 var(--sec); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(44px, 6vw, 96px) clamp(16px, 2vw, 32px); align-items: start; margin-top: clamp(52px, 6vw, 96px); }
.g .frame { aspect-ratio: 4 / 5; }
.g-field { grid-column: 1 / 9; }
.g-field .frame, .g-sunset .frame { aspect-ratio: 3 / 2; }
.g-garden { grid-column: 9 / 13; margin-top: 16%; }
.g-ready { grid-column: 1 / 5; }
.g-sunset { grid-column: 5 / 13; align-self: end; }
.g-table { grid-column: 2 / 6; }
.g-dance { grid-column: 6 / 10; margin-top: 22%; }
.g-walk { grid-column: 10 / 13; }
.g-confetti { grid-column: 1 / 5; }
.g-more { grid-column: 6 / 12; align-self: end; padding-bottom: 8%; }
.g-more-t { font: 600 clamp(28px, 2.6vw, 40px)/1.1 var(--display); letter-spacing: -.01em; max-width: 16ch; margin-bottom: 22px; }

/* ---------- film: five chapters as panels; the open one is the part of the film that's playing ---------- */
.film { padding: var(--sec) 0; background: var(--alt); }
.pan { position: relative; display: flex; gap: 10px; height: clamp(420px, 42vw, 620px); margin-top: clamp(48px, 5vw, 80px); }
.pan-p { position: relative; flex: 1 1 0; min-width: 0; padding: 0; overflow: hidden; overflow: clip; border: 0; border-radius: 10px; background: #2A2422; color: #FBF8F3; text-align: left; cursor: pointer; transition: flex-grow .9s var(--ease); }
.pan-p.on { flex-grow: 4.2; }
.pan-p img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) brightness(.78); transition: filter .8s var(--ease); }
.pan-p.on img { filter: none; }
.pan-p::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(rgb(20 15 12 / 0), rgb(20 15 12 / .72)); pointer-events: none; }
/* a soft shade under the timecode, for bright skies */
.pan-p::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 90px; background: linear-gradient(rgb(20 15 12 / .4), rgb(20 15 12 / 0)); pointer-events: none; }
.pan-tc { position: absolute; top: 16px; left: 18px; z-index: 2; font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; text-shadow: 0 1px 10px rgb(0 0 0 / .35); }
.pan-txt { position: absolute; left: 18px; right: 18px; bottom: 22px; z-index: 1; display: grid; gap: 8px; }
.pan-t { font: 600 clamp(18px, 1.5vw, 22px)/1.12 var(--display); }
.pan-p.on .pan-t { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.01em; }
.pan-d { display: none; max-width: 34ch; font-size: 15px; color: rgb(251 248 243 / .9); }
.pan-p.on .pan-d { display: block; animation: fadeup .7s var(--ease) .25s both; }
.pan-bar { position: absolute; left: 0; bottom: 0; z-index: 2; height: 3px; width: 0; background: #FBF8F3; }
.pan-p.on .pan-bar { width: calc(var(--p, 0) * 100%); }
.pan-p:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* the chapters play through on their own while in view; hovering holds them, Pause stops them */
.pan-pause { position: absolute; top: calc(100% + 10px); right: 0; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 500; }
.pan-pause:hover { color: var(--ink); }
.pan-pause .i { width: 15px; height: 15px; }
.pan-pause:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* what the film includes, as four plain facts */
.film-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; margin: clamp(44px, 4.6vw, 68px) 0 0; padding-top: 24px; border-top: 1px solid var(--line-2); }
.film-facts dt { font: 600 clamp(28px, 2.6vw, 38px)/1.05 var(--display); letter-spacing: -.015em; }
.film-facts dd { max-width: 24ch; margin: 8px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- collections ---------- */
.coll { padding: var(--sec) 0; }
.every .i { width: 22px; height: 22px; margin-right: 8px; color: var(--ember-t); vertical-align: -6px; }
.coll-side { display: grid; gap: 24px; justify-items: start; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 5vw, 72px); border-top: 1px solid var(--line-2); }
.tier { display: flex; flex-direction: column; padding: 34px clamp(20px, 2.6vw, 40px) 38px 0; }
.tier + .tier { padding-left: clamp(20px, 2.6vw, 40px); border-left: 1px solid var(--line); }
.tier-n { font: 600 29px/1.1 var(--display); }
.tier-for { margin-top: 6px; font-size: 15.5px; color: var(--muted); }
.tier-p { margin: 26px 0 22px; font: 600 clamp(42px, 3.9vw, 58px)/1 var(--display); letter-spacing: -.015em; font-variant-numeric: lining-nums proportional-nums; }
.tier-l { margin-bottom: 28px; border-top: 1px solid var(--line); }
.tier-l li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.tier .link { margin-top: auto; align-self: flex-start; }
.every { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 44px; font-size: 15.5px; color: var(--muted); }

/* ---------- plan your day: the date, then the hours and the coverage by picture; the price follows ---------- */
.plan { padding: var(--sec) 0; background: var(--golden); }
.plan-card { margin-top: clamp(48px, 5vw, 72px); padding: clamp(28px, 4.2vw, 64px); border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.pl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
/* the date as a pill on paper */
.df--pill { position: relative; z-index: 20; flex: none; width: min(380px, 100%); }
.df--pill .df-btn { min-height: 62px; padding: 0 18px 0 8px; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 12px 26px -20px rgb(38 33 29 / .4); }
.df--pill .df-btn:hover { border-color: #B9AD9C; background: #fff; }
.pl-avail { display: flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--muted); }
.pl-avail b { font-weight: 600; color: var(--ink); }
.pl-avail .i { width: 20px; height: 20px; color: var(--ink); }
.pl-avail.is-booked .i, .pl-avail.is-partly .i, .pl-avail.is-soon .i { color: var(--ember-t); }
.link-btn { padding: 0; border: 0; background: none; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-variant-numeric: tabular-nums; }
.pl-q { min-width: 0; margin: clamp(32px, 3.4vw, 44px) 0 0; padding: 0; border: 0; }
.pl-h { float: left; width: 100%; margin: 0 0 16px; padding: 0; font: 600 clamp(23px, 2.1vw, 30px)/1.2 var(--display); letter-spacing: -.01em; }
.pl-h + * { clear: both; }
/* the choices as photographs: a price on each, a check and a ring on the chosen one */
.tiles { display: grid; gap: 14px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; isolation: isolate; display: block; aspect-ratio: 4 / 5; overflow: hidden; overflow: clip; border-radius: 18px; background: #D8CDBE; cursor: pointer; box-shadow: 0 0 0 1px rgb(38 33 29 / .08); transition: box-shadow .3s, transform .4s var(--ease); }
.tile-wide { aspect-ratio: 16 / 8; }
.tile input { position: absolute; inset: 0; z-index: 4; margin: 0; opacity: 0; cursor: pointer; }
.tile-img, .tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-img img { filter: saturate(.5) brightness(.96); transition: filter .5s, transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 30% 0 0; z-index: 1; background: linear-gradient(rgb(24 18 14 / 0), rgb(24 18 14 / .34) 48%, rgb(24 18 14 / .8)); pointer-events: none; }
.tile-t { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: grid; gap: 3px; color: #FBF8F3; text-shadow: 0 1px 14px rgb(24 18 14 / .35); }
.tile-t b { font: 600 clamp(24px, 2.2vw, 31px)/1.08 var(--display); }
.tile-t span { font-size: 14px; color: rgb(251 248 243 / .88); }
.tile-p { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: rgb(252 250 246 / .94); color: var(--ink); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile-ck { position: absolute; top: 14px; left: 14px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease); }
.tile-ck .i { width: 16px; height: 16px; }
.tile:hover .tile-img img { filter: saturate(.85); }
.tile input:checked ~ .tile-img img { filter: none; transform: scale(1.03); }
.tile input:checked ~ .tile-ck { opacity: 1; transform: none; }
.tile:has(input:checked) { box-shadow: 0 0 0 3px var(--ink), 0 24px 44px -28px rgb(38 33 29 / .65); }
.tile:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 5px; }
/* the answer: the day, the total and the deposit, and the way to hold the date */
.pl-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px 34px; margin-top: 34px; padding: 20px 22px 20px 28px; border-radius: 22px; background: var(--alt); }
.pl-bar-k { font-size: 13.5px; color: var(--muted); }
.pl-bar-v { margin-top: 2px; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pl-price { text-align: right; }
.pl-total-v { font: 600 clamp(36px, 3vw, 46px)/1 var(--display); letter-spacing: -.015em; font-variant-numeric: lining-nums proportional-nums; }
.pl-dep { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.inq { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.inq-1, .inq-2 { display: grid; gap: 16px; }
.inq-step { font-size: 13.5px; color: var(--muted); }
.inq-step b { font-weight: 500; color: var(--ink); }
.inq-err { min-height: 0; font-size: 14px; color: #A3361F; }
.inq-err:empty { display: none; }
.inq-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.inq .btn { justify-self: start; }
.input[aria-invalid="true"] { border-color: #A3361F; }
.next { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: clamp(56px, 6vw, 88px); padding-top: 28px; border-top: 1px solid var(--line-2); }
.next .i { width: 28px; height: 28px; color: var(--ember-t); }
.next h3 { margin-top: 14px; font: 600 19px/1.25 var(--display); }
.next p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- questions ---------- */
.qs { padding: var(--sec) 0; }
.qs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 40px 64px; align-items: start; }
.qa { border-top: 1px solid var(--line-2); }
.qa details { border-bottom: 1px solid var(--line-2); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 600 clamp(19px, 1.6vw, 22px)/1.3 var(--display); cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.qa details[open] summary .i { transform: rotate(45deg); }
.qa p { padding: 0 48px 24px 0; font-size: 16px; color: var(--muted); max-width: 640px; }

/* ---------- final, at dusk ---------- */
.final { position: relative; display: grid; align-items: end; min-height: min(100svh, 900px); overflow: hidden; overflow: clip; background: var(--night); color: var(--on-night); }
.final-bg { position: absolute; inset: 0; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.final::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgb(34 29 37 / 0) 42%, rgb(34 29 37 / .72) 74%, var(--night)); pointer-events: none; }
.final-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 28px 64px; align-items: end; width: 100%; padding-top: 45vh; padding-bottom: clamp(56px, 7vw, 96px); }
.final-t { max-width: 13ch; color: var(--on-night); }
.final-t .tone { color: var(--muted-night); }
.check-dark { width: 100%; margin-top: 0; }
.check-dark .check-r .alt button { background: var(--paper); }
/* without JavaScript the plain date input shows on the dark band */
.check-dark .df-native { background: var(--paper); }

/* ---------- footer ---------- */
.foot { padding: 64px 0 calc(24px + env(safe-area-inset-bottom)); background: var(--night); color: var(--on-night); overflow: hidden; overflow: clip; }
.foot .wrap { container-type: inline-size; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 32px; padding-top: 32px; border-top: 1px solid rgb(243 238 232 / .14); }
.foot-k { margin-bottom: 14px; font-size: 13.5px; color: var(--muted-night); }
.foot ul { display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-note p:last-child { max-width: 440px; font-size: 15px; color: var(--muted-night); }
/* the wordmark fills the content width: in Playfair Display SemiBold at -0.02em, "Daybook" inks 3.8696em wide from .036em in */
.foot-word { margin: 64px 0 0 -.036em; padding-bottom: .17em; font: 600 25.84cqi/.98 var(--display); letter-spacing: -.02em; white-space: nowrap; }   /* room for the y */

/* ---------- dock (phones) ---------- */
.dock { display: none; }

/* ---------- dialog ---------- */
.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 48px); padding: clamp(26px, 4vw, 40px); border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px -30px rgb(30 20 15 / .5); }
.modal::backdrop { background: rgb(34 29 37 / .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-x { position: absolute; top: 14px; right: 14px; }
.x-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--alt); }
.modal-t { font: 600 34px/1.1 var(--display); letter-spacing: -.015em; margin-bottom: 12px; }
.modal p { color: var(--muted); }
.sent-sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.sent-sum dt { color: var(--muted); }
.sent-sum dd { font-variant-numeric: tabular-nums; }
.measure { margin-bottom: 24px; font-size: 14.5px; }
.measure summary { cursor: pointer; font-weight: 500; }
.measure-l { margin-top: 10px; display: grid; gap: 6px; color: var(--muted); }
.measure-l b { font-weight: 500; color: var(--ink); }

/* ---------- smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- motion ---------- */
@keyframes rise { to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { scale: 1.05; } to { scale: 1; } }
@keyframes word-up { from { transform: translateY(26%); } to { transform: none; } }
.js .hero-t .line > span { transform: translateY(108%); animation: rise 1.15s var(--ease) forwards; }
.js .hero-t .line + .line > span { animation-delay: .1s; }
.js .hero [data-fade] { opacity: 0; animation: fadeup .9s var(--ease) .4s forwards; }
.js .hero-t .line + .line + .line > span { animation-delay: .18s; }
/* the photograph and the cut-out settle together, so the couple never parts from the picture */
.js .hero-bg, .js .hero-cut { animation: settle 2.4s var(--ease) both; }
.io [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.io [data-reveal].in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; overflow: clip; padding-bottom: .12em; margin-bottom: -.12em; vertical-align: top; }
.split .w > span { display: inline-block; }
.io .split .w > span { transform: translateY(105%); transition: transform 1s var(--ease) calc(var(--wi, 0) * 45ms); }
.io .split.in .w > span { transform: none; }
/* photos unveil: the clip sits on the image, never on the frame the observer watches */
.io .frame.unveil img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); }
.io .frame.unveil.in img { clip-path: inset(0 0 0 0); }
@supports (animation-timeline: view()) {
  .final-bg img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .foot-word { animation: word-up linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  @keyframes drift { from { transform: translateY(-6%) scale(1.08); } to { transform: translateY(0) scale(1.08); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .hero-t .line > span, .io [data-reveal], .io .split .w > span { transform: none; opacity: 1; }
  .js .hero [data-fade] { opacity: 1; }
  .io .frame.unveil img { clip-path: none; }
  .final-bg img, .foot-word { animation: none !important; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav-end { grid-column: 3; }
  .next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .film-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the chapters stack; the open one grows tall */
  .pan { flex-direction: column; height: auto; gap: 8px; }
  .pan-p { flex: none; height: 76px; transition: height .8s var(--ease); }
  .pan-p.on { height: min(112vw, 520px); }
  .pan-tc { top: 50%; left: auto; right: 18px; transform: translateY(-50%); }
  .pan-p.on .pan-tc { top: 16px; left: 18px; right: auto; transform: none; }
  .pan-p:not(.on) .pan-txt { top: 50%; bottom: auto; transform: translateY(-50%); }
  .pan-p:not(.on)::after { inset: 0; background: rgb(20 15 12 / .45); }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .ap-tall { grid-column: 1 / 8; }
  .ap-small { grid-column: 6 / 10; }
  .ap-copy { grid-column: 1 / 13; grid-row: 2; padding-top: clamp(64px, 12vw, 120px); }
  .qs-grid { grid-template-columns: minmax(0, 1fr); }
  .final-in { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-left: 0; }
}
@media (max-width: 860px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier, .tier + .tier { padding: 30px 0 34px; border-left: 0; }
  .tier + .tier { border-top: 1px solid var(--line-2); }
}
@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .logo { font-size: 25px; }
  .h2 { font-size: clamp(38px, 10.4vw, 54px); }
  .lead { font-size: 16.5px; }
  .check-pill .check-row { flex-direction: row; }
  .df-pop { width: calc(100vw - 2 * var(--pad)); }
  .check-pill .df-pop { left: -6px; }
  .df--pill .df-pop { width: 100%; }
  .ap-tall { grid-column: 1 / 10; }
  .ap-small { grid-column: 8 / 13; margin-bottom: -18%; }
  .grid { gap: 40px 14px; }
  .g-field, .g-sunset, .g-more { grid-column: 1 / -1; }
  .g-garden, .g-table, .g-walk { grid-column: 1 / 8; margin-top: 0; }
  .g-ready, .g-dance, .g-confetti { grid-column: 6 / 13; margin-top: 0; }
  .g-dance { grid-column: 4 / 13; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .film-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .film-facts dt { font-size: 26px; }
  .film-facts dd { font-size: 14px; }
  .plan-card { padding: 24px 20px 26px; border-radius: 20px; }
  .tiles-3, .tiles-2 { grid-template-columns: minmax(0, 1fr); }
  .tile { aspect-ratio: 16 / 8; }
  .pl-bar { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .pl-price { text-align: left; }
  .pl-bar .btn { width: 100%; }
  .next { grid-template-columns: minmax(0, 1fr); }
  /* phones: the photo sits on top, the words below it on the night colour */
  .final { min-height: 0; }
  .final-bg, .final::before { inset: 0 0 auto; height: 128vw; }
  .final::before { background: linear-gradient(rgb(34 29 37 / 0) 52%, var(--night)); }
  .final-bg img { object-position: 46% 50%; }
  .final-in { grid-template-columns: minmax(0, 1fr); padding-top: 112vw; padding-bottom: 56px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-note { grid-column: 1 / -1; }
  /* the dock: the date check within thumb reach once the hero's form has gone */
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .5s var(--ease); }
  .dock.on { transform: none; }
  .dock .btn { min-height: 50px; font-size: 15.5px; }
  .dock-p { font-weight: 400; opacity: .7; margin-left: 2px; }
  body.has-dock .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
