:root {
  --bg: #f5f1ea;          /* limestone */
  --bg-2: #ece6dc;        /* deeper stone */
  --surface: #fffdf9;
  --ink: #1f1d1a;
  --ink-2: #57524b;
  --ink-3: #6f6960;
  --line: #ddd5c8;
  --timber: #7a5436;      /* oiled cedar */
  --timber-2: #5f4029;
  --sage: #3f5a4a;        /* signed */
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --section-py: clamp(76px, 11vh, 128px);
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 180ms;
  --shadow: 0 1px 2px rgba(48, 36, 24, .08), 0 24px 60px -24px rgba(48, 36, 24, .28);
  --shadow-sm: 0 1px 2px rgba(48, 36, 24, .08), 0 8px 20px -12px rgba(48, 36, 24, .24);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-snap-type: y proximity; scroll-padding-top: 0; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #e3cdb6; color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--timber); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 10px 14px; border-radius: 10px; }
[hidden] { display: none !important; }

/* ── progress bar ───────────────────────────── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 12px) var(--gutter) 14px;
  background: linear-gradient(var(--bg) 70%, rgba(245, 241, 234, 0));
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.bar__who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 12px; }
.bar__count { font-variant-numeric: tabular-nums; letter-spacing: .08em; flex: none; }
.bar__count b { color: var(--ink); font-weight: 600; }
.bar__track {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 6px;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none;
}
.bar__track li { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; position: relative; }
.bar__track li::after { content: ''; position: absolute; inset: 0; background: var(--timber); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease); }
.bar__track li.is-done::after { transform: scaleX(1); }

/* ── cards ──────────────────────────────────── */
.card {
  min-height: 100vh; min-height: 100svh; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--section-py) * .7 + 24px) var(--gutter) var(--section-py);
  border-top: 1px solid rgba(221, 213, 200, .7); position: relative;
}
.card:first-child { border-top: 0; }
.card--stone { background: var(--bg-2); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; }

.eyebrow { margin: 0 0 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--timber); text-wrap: balance; }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; line-height: 1.02; margin: 0; text-wrap: balance; font-size: clamp(46px, 8.4vw, 104px); }
.display--md { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.04; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 36ch; margin: 22px 0 0; text-wrap: pretty; }
.body { color: var(--ink-2); max-width: 60ch; margin: 22px 0 0; text-wrap: pretty; }
.body b { color: var(--ink); font-weight: 600; }
.fine { font-size: 13.5px; color: var(--ink-3); margin: 14px 0 0; }

/* ── 1 opening ── */
.open { display: grid; gap: 34px; }
.open__copy { animation: rise 900ms var(--ease) both; }
@keyframes rise { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.film { margin: 0; }
.film__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden;
  background: var(--bg-2); box-shadow: var(--shadow);
}
.film__poster, .film__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__frame video { background: #000; }
.film__play {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 253, 249, .94); color: var(--ink); box-shadow: var(--shadow-sm);
  font-weight: 600; font-size: 15px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.film__play:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.film__glyph { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--timber); color: #fff; padding-left: 2px; }
.film__cap { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; }
.next {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2); font-size: 15px;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.next:hover { color: var(--timber); transform: translateY(-2px); }

/* ── 2 / 7 split ── */
.split { display: grid; gap: 40px; }
.stat { margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); max-width: 46ch; }
.stat__big { font-family: var(--serif); font-size: 30px; color: var(--ink); line-height: 1; margin-right: 4px; }
.src { display: inline-block; margin-left: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--timber); font-weight: 600; }
.quotes { display: grid; gap: 18px; align-content: start; }
.quote { margin: 0; padding: 26px 26px 22px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.quote p { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 27px); line-height: 1.22; text-wrap: pretty; }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }
.bounds .body:first-child { margin-top: 0; }
.honest { margin: 30px 0 0; padding: 18px 20px; border-left: 2px solid var(--timber); background: rgba(255, 253, 249, .6); border-radius: 0 12px 12px 0; color: var(--ink); max-width: 52ch; }

/* ── 3 / 4 / 6 stages ── */
.stage { display: grid; gap: 30px; position: relative; }
.stage__no {
  margin: 0; font-family: var(--serif); font-size: clamp(88px, 16vw, 200px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px #c4b29e; letter-spacing: -.02em;
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ticks li { display: grid; gap: 4px; padding: 18px 0 18px 34px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 25px; width: 14px; height: 8px; border-left: 1.6px solid var(--timber); border-bottom: 1.6px solid var(--timber); transform: rotate(-45deg); }
.ticks b { font-weight: 600; }
.ticks span { color: var(--ink-3); font-size: 15.5px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: f; }
.flow li { counter-increment: f; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-sm); font-weight: 500; }
.flow li::before { content: counter(f); font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--timber); width: 22px; }
.flow li:last-child { background: var(--sage); color: #fff; }
.flow li:last-child::before { color: #cfe0d4; }

/* ── 5 signature ── */
.card--sig { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.sig { display: grid; gap: 34px; }
.steps { list-style: none; margin: 26px 0 24px; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; color: var(--ink-3); font-size: 15.5px; transition: color var(--dur) var(--ease); }
.steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12.5px; font-variant-numeric: tabular-nums; transform: translateY(5px); transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.steps li.is-on { color: var(--ink); }
.steps li.is-on::before { border-color: var(--timber); color: var(--timber); }
.steps li.is-done { color: var(--ink-2); }
.steps li.is-done::before { content: '\2713'; background: var(--sage); border-color: var(--sage); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 15.5px; text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active:not(:disabled) { transform: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--dark { background: var(--ink); color: var(--surface); }
.btn--accent { background: var(--timber); color: #fff; }
.btn--accent:hover:not(:disabled) { background: var(--timber-2); }
.btn--quiet { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--wide { width: 100%; }

.phone {
  justify-self: center; width: min(100%, 380px); padding: 10px; border-radius: 38px;
  background: linear-gradient(160deg, #2a2723, #12110f); box-shadow: 0 2px 4px rgba(20, 14, 8, .25), 0 40px 80px -30px rgba(40, 28, 16, .55);
}
.phone__in { background: var(--surface); border-radius: 29px; padding: 22px 18px 20px; font-size: 14.5px; line-height: 1.45; }
.hv__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hv__builder { font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.chip { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: #f1e6d9; color: var(--timber-2); }
.hv__title { font-family: var(--serif); font-size: 26px; line-height: 1.08; margin: 16px 0 2px; }
.hv__hi { margin: 0 0 14px; color: var(--ink-3); font-size: 13.5px; }
.hv__block { padding: 14px 0; border-top: 1px solid #eee7dc; }
.hv__label { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hv__label--accent { color: var(--timber); }
.hv__update { margin: 0; }
.hv__progress { height: 4px; border-radius: 4px; background: #eee7dc; margin: 12px 0 8px; overflow: hidden; }
.hv__progress i { display: block; height: 100%; width: var(--p); background: var(--sage); border-radius: 4px; }
.hv__next { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.hv__next b { color: var(--ink); font-weight: 600; }
.hv__waiting { padding: 14px 0; border-top: 1px solid #eee7dc; }
.hv__waiting.is-in { animation: land 620ms var(--ease) both; }
@keyframes land { from { opacity: .2; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
.change { border: 1px solid #e6d6c4; border-radius: 14px; background: #fcf7f1; overflow: hidden; }
.change__head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; background: none; border: 0; cursor: pointer; text-align: left; font-weight: 600; }
.change__head small { display: block; font-weight: 500; font-size: 12px; color: var(--timber); }
.change__open { font-size: 13px; color: var(--timber); padding: 6px 12px; border: 1px solid #e0c9b2; border-radius: 999px; flex: none; }
.change__body { padding: 0 14px 14px; }
.change__rows { margin: 0; display: grid; gap: 8px; }
.change__rows div { display: grid; gap: 1px; }
.change__rows dt { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.change__rows dd { margin: 0; }
.change__rows em { color: var(--ink-3); font-style: normal; font-size: 12.5px; }
.change__total { padding-top: 8px; border-top: 1px dashed #e0cfbc; font-variant-numeric: tabular-nums; }
.change__total s { color: var(--ink-3); }
.sign { display: grid; gap: 8px; margin-top: 14px; }
.sign label, .booker label { font-size: 13px; font-weight: 600; }
.sign input, .booker input {
  font: inherit; font-size: 16px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.sign input { font-family: var(--serif); font-size: 21px; }
.sign input:focus-visible, .booker input:focus-visible { outline: 2px solid var(--timber); outline-offset: 1px; }
.signed { margin: 12px 0 0; font-weight: 600; color: var(--sage); }
.record { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.record li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-radius: 10px; }
.record li b { display: block; font-weight: 600; }
.record li span:last-child { color: var(--ink-2); font-size: 13.5px; }
.record li b { color: var(--ink); font-size: 14px; }
.record .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); margin-top: 7px; }
.record .dot--doc { background: #c9b8a4; }
.record li.is-new { background: #eef4ef; }
.record time { display: block; font-size: 12px; color: var(--sage); font-weight: 600; margin-top: 2px; }
.ghost { position: fixed; z-index: 30; pointer-events: none; margin: 0; border-radius: 12px; background: #eef4ef; box-shadow: var(--shadow); padding: 8px 10px; font-size: 14px; overflow: hidden; }

/* ── 8 book ── */
.card--book { justify-content: space-between; padding-bottom: 28px; }
.book { display: grid; gap: 34px; margin-block: auto; }
.booker { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 12px; align-content: start; }
.booker__times { display: grid; gap: 10px; }
.booker__loading { margin: 0; color: var(--ink-3); }
.slot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; text-align: left;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.slot:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #cdb79f; }
.slot b { display: block; font-weight: 600; font-size: 16.5px; }
.slot small { color: var(--ink-3); font-size: 13px; }
.slot__go { flex: none; color: var(--timber); font-weight: 600; font-size: 14px; }
.slot:disabled { opacity: .5; cursor: progress; }
.booker__other { justify-self: center; min-height: 44px; display: inline-flex; align-items: center; color: var(--timber); font-weight: 600; text-underline-offset: 4px; }
.booker__form { display: grid; gap: 8px; }
.booker__chosen { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: #f6efe6; border-radius: 12px; }
.booker__chosen span { color: var(--ink-3); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.booker__form .btn { margin-top: 6px; }
.err { margin: 4px 0 0; color: #8a3b34; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booker__done { text-align: center; padding: 6px 0; }
.booker__tick { margin: 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; font-size: 24px; }
.booker__doneh { font-family: var(--serif); font-size: 32px; margin: 12px 0 0; }
.booker__done .body { margin: 8px auto 0; }
.booker__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.sign-off { margin: 0; font-family: var(--serif); font-size: 24px; color: var(--ink-2); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; max-width: 1180px; width: 100%; margin: 48px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }

/* ── wider screens ── */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .open { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 56px; }
  .open .next { grid-column: 1 / -1; }
  .split { grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: start; }
  .stage { grid-template-columns: auto 1fr; column-gap: 56px; row-gap: 40px; }
  .stage__no { grid-row: span 2; }
  .stage .ticks, .stage .flow { grid-column: 2; max-width: 720px; }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow li { flex-direction: column; align-items: flex-start; gap: 18px; padding: 18px; min-height: 130px; }
  .sig { grid-template-columns: 1fr auto; gap: 72px; align-items: center; }
  .book { grid-template-columns: 1fr minmax(360px, 440px); gap: 72px; align-items: center; }
  .sign-off { grid-column: 1; grid-row: 2; }
  .booker { grid-row: span 2; }
}
@media (max-width: 380px) { .bar__who { font-size: 11px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── stage one concept + chips ── */
.film__label small { white-space: nowrap; font-weight: 500; color: var(--ink-3); margin-left: 4px; font-size: 13.5px; }
.film__teaser { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ticks .chip--concept { margin: 0 6px 0 0; vertical-align: 1px; }
.chip--concept { background: transparent; border: 1px dashed #c4ad95; color: var(--timber); font-size: 10.5px; padding: 2px 8px; vertical-align: 2px; margin-left: 6px; }
.s1 { display: grid; gap: 26px; }
.concept { position: relative; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 20px; max-width: 420px; }
.concept > .chip--concept { position: absolute; top: 16px; right: 16px; margin: 0; }
.concept__row { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding-right: 80px; }
.concept__mic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--timber); color: #fff; flex: none; }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; flex: 1; }
.wave i { flex: 1; max-width: 4px; border-radius: 2px; background: #c9b39b; height: 30%; }
.wave i:nth-child(3n) { height: 80%; } .wave i:nth-child(4n+1) { height: 55%; } .wave i:nth-child(5n+2) { height: 95%; } .wave i:nth-child(7n) { height: 40%; }
.concept__len { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.concept__photos { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.concept__draft { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f6efe6; font-size: 15px; }
.concept__draft p:last-child { margin: 0; }
.concept__send { display: inline-flex; align-items: center; min-height: 40px; margin-top: 12px; padding: 8px 16px; border-radius: 999px; background: var(--sage); color: #fff; font-weight: 600; font-size: 14px; }
@media (min-width: 900px) {
  .s1 { grid-column: 2; grid-template-columns: minmax(300px, 400px) 1fr; gap: 40px; align-items: start; max-width: 900px; }
}
