/* Paper transitions, the ad strip and viewer, questions, the dusk ending and the footer. */

/* ---- the light: the page is one day at the corner ----
   The paper is the hero's afternoon under the tear and warms a step with every section, until it is the paper under a
   lamp just before the corner at evening. Each step is small enough that no two neighbours look different; only the ends do. */
:root {
  --light-afternoon: #f8eedd;             /* the hero's torn edge */
  --light-1: #f8ecd9;
  --light-2: #f7ead4;
  --light-3: #f6e7cf;
  --light-4: #f5e4c9;
  --light-5: #f4e0c3;
  --light-6: #f2dcbc;
  --light-7: #f0d7b4;
  --light-lamp: #edd1ab;                  /* the last paper before the corner at evening */
}
/* Each section carries its own stretch of the day, from the colour the section above ends on to the next step, so the
   light changes continuously down the page with no scroll listener and no seam. The grain dithers the gradient. */
.section { --light-top: var(--paper); --light-bottom: var(--paper); background-color: var(--light-bottom); background-image: var(--grain), linear-gradient(var(--light-top), var(--light-bottom)); background-size: 220px 220px, 100% 100%; background-blend-mode: soft-light, normal; }
.problem { --light-top: var(--light-afternoon); --light-bottom: var(--light-1); }
.how { --light-top: var(--light-1); --light-bottom: var(--light-2); }
.proof { --light-top: var(--light-2); --light-bottom: var(--light-3); --ink-proof-caption: #6b5743; }
.work { --light-top: var(--light-2); --light-bottom: var(--light-lamp); }
.proof--summary { --light-top: var(--light-afternoon); --light-bottom: var(--light-2); }
.details-page .guarantee { --light-top: var(--light-3); }
.details-call { --light-top: var(--light-7); --light-bottom: var(--light-lamp); }
.guarantee { --light-top: var(--light-4); --light-bottom: var(--light-5); }
.math { --light-top: var(--light-5); --light-bottom: var(--light-6); --ink-math-caption: #644f3c; }
.questions { --light-top: var(--light-6); --light-bottom: var(--light-7); }
/* Under the lamp the quiet ink and the error red darken a step, so captions and messages keep 4.5:1 on the warmest paper. */
.questions { --ink-quiet: #5f4a38; --error: #9c2713; }
/* No heading or question ends on a single word alone, at any width. */
.section h2, .section h3, .call h2, .question summary { text-wrap: balance; }

/* ---- Client ads ---- */
.work__heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.work__heading h2 { max-width: 22ch; }
.work__playback { flex: 0 0 44px; min-height: 44px; padding: 0; }
@media (min-width: 760px) {
  .work__heading { align-items: center; justify-content: flex-start; gap: 24px; }
  .work__heading h2 { max-width: 11.2em; }
}
.work__playback[hidden], .work__playback[data-paused] .work__pause-icon, .work__playback:not([data-paused]) .work__play-icon { display: none; }
.work__strip { overflow-x: auto; margin-top: var(--space-heading); }
@media (min-width: 1440px) {
  .work { container-type: inline-size; }
  .work__strip {
    --scrollbar-inset: max(var(--gutter), calc((100cqw - var(--frame)) / 2 + var(--gutter)));
    --scrollbar-thumb: color-mix(in srgb, var(--ink-soft) 72%, var(--paper-warm));
    --scrollbar-track: var(--paper-warm);
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width: thin;
  }
  /* Standard scrollbar styling has no track margins. Use the native track parts where they are available. */
  @supports selector(::-webkit-scrollbar) {
    .work__strip { scrollbar-color: auto; scrollbar-width: auto; }
    .work__strip::-webkit-scrollbar { height: 8px; background: transparent; }
    .work__strip::-webkit-scrollbar-track { margin-inline: var(--scrollbar-inset); background: var(--scrollbar-track); border-radius: 4px; }
    .work__strip::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
  }
}
.work__list {
  display: flex;
  gap: clamp(14px, 2.4vw, 32px);
  width: max-content;
  margin: 0;
  padding: 6px max(var(--gutter), calc((100% - var(--frame)) / 2 + var(--gutter))) 14px;
  list-style: none;
}
.work__piece { flex: none; width: min(72vw, 280px, calc(68svh * 9 / 16)); }
.work__clip { position: relative; display: block; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 14px; background: var(--ink); color: var(--slip); -webkit-tap-highlight-color: transparent; transition: scale .16s var(--ease-out); }
.work__clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .work__clip { background-image: var(--work-poster, none); background-size: cover; background-position: center; }
  .work__clip video[src] { opacity: 0; }
}
.work__clip:active { scale: .98; }
.work__clip:focus-visible { outline: 2px solid var(--sky); outline-offset: -4px; border-radius: 14px; }

.work__clip::after { content: ''; position: absolute; right: 8px; bottom: 8px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 250 241 / .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 5.6v8.8c0 .6.6.9 1.1.6l6.6-4.4c.4-.3.4-.9 0-1.2L8.3 5c-.5-.3-1.1 0-1.1.6Z' fill='%232b1a0c'/%3E%3C/svg%3E") 55% 50% / 18px 18px no-repeat; box-shadow: 0 4px 10px -4px rgb(28 17 8 / .5); transition: opacity .2s ease, scale .2s var(--ease-out); }
.work__clip[data-preview-playing]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232b1a0c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.5 4.5h4v4M8.5 15.5h-4v-4M15.5 4.5l-4.5 4.5M4.5 15.5 9 11'/%3E%3C/svg%3E"); background-position: 50% 50%; background-size: 16px 16px; }
@media (hover: hover) and (pointer: fine) {
  .work__clip:hover::after { scale: 1.08; }
}
.section .work__name { max-width: none; margin-top: 12px; font: 400 var(--type-small)/1.15 var(--serif); letter-spacing: -.008em; }
.section .work__line { max-width: none; margin-top: 4px; color: var(--ink-soft); font-size: var(--type-caption); line-height: 1.38; }

/* ---- Clip viewer ---- */
html:has(.viewer[open]) { overflow: hidden; }
.viewer { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: none; color: var(--slip); overscroll-behavior: contain; }
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: rgb(24 15 7 / .94); }
.viewer[open]::backdrop { animation: viewer-dim .32s ease both; }
.viewer.is-closing::backdrop { opacity: 0; transition: opacity .26s ease; }
@keyframes viewer-dim { from { opacity: 0; } }
.viewer__frame { --stage-height: min(calc(100svh - 168px), calc((100vw - 32px) * 16 / 9), 820px); display: grid; justify-items: center; gap: 14px; padding: 16px; }
.viewer__stage { position: relative; width: calc(var(--stage-height) * 9 / 16); height: var(--stage-height); margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: #000; box-shadow: 0 30px 60px -24px rgb(0 0 0 / .7); cursor: pointer; transform-origin: 0 0; }
.viewer__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.viewer__caption { display: flex; align-items: baseline; justify-content: center; gap: 12px; max-width: none; text-align: center; }
.viewer__name { font: 400 clamp(1.375rem, 1.2rem + .8vw, 1.75rem)/1.15 var(--serif); letter-spacing: -.01em; }
.viewer__count { color: rgb(255 250 241 / .72); font-size: var(--type-caption); font-variant-numeric: tabular-nums; white-space: nowrap; }
.viewer__controls { display: flex; gap: 14px; }
.viewer__button { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 250 241 / .14); color: var(--slip); cursor: pointer; box-shadow: inset 0 0 0 1.5px rgb(255 250 241 / .32); -webkit-tap-highlight-color: transparent; transition: background-color .16s ease, scale .16s var(--ease-out); }
.viewer__button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.viewer__button:active { scale: .94; }
.viewer__button:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .viewer__button:hover { background: rgb(255 250 241 / .26); } }
.viewer.is-opening .viewer__caption, .viewer.is-opening .viewer__controls { opacity: 0; }
.viewer__caption, .viewer__controls { transition: opacity .2s ease .12s; }
.viewer.is-closing .viewer__caption, .viewer.is-closing .viewer__controls { opacity: 0; transition-delay: 0s; transition-duration: .12s; }
/* On a wide screen the steps sit either side of the film and the close button in the corner, where a pointer looks for them. */
@media (min-width: 760px) and (hover: hover) {
  .viewer__frame { --stage-height: min(calc(100svh - 120px), 820px); grid-template-columns: 52px auto 52px; column-gap: clamp(24px, 4vw, 56px); align-items: center; }
  .viewer__stage { grid-column: 2; grid-row: 1; }
  .viewer__caption { grid-column: 2; grid-row: 2; }
  .viewer__controls { display: contents; }
  .viewer__button--previous { grid-column: 1; grid-row: 1; }
  .viewer__button--next { grid-column: 3; grid-row: 1; }
  .viewer__button--close { position: fixed; top: 24px; right: 24px; }
}

/* ---- #questions ----
   Each question is a row on a rule, like the terms in #guarantee, and opens in place. The mark is a plus whose upright
   folds away when the answer shows. Browsers that can animate a details element's height do; the rest open at once. */
.questions h2 { font-size: var(--type-heading); }
.questions__list { margin-top: var(--space-heading); border-top: 2px solid var(--ink); }
.question { border-bottom: 1px solid var(--rule); interpolate-size: allow-keywords; }
.question summary { position: relative; display: block; padding: 20px 52px 20px 0; font: 400 var(--type-subheading)/1.2 var(--serif); letter-spacing: -.01em; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.question summary::-webkit-details-marker { display: none; }
.question summary::after { content: ''; position: absolute; right: 6px; top: calc(20px + .6em - 10px); width: 20px; height: 20px; background: linear-gradient(currentColor 0 0) center / 18px 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 18px no-repeat; transition: background-size .3s var(--ease-out), rotate .3s var(--ease-out); }
.question[open] summary::after { background-size: 18px 2px, 2px 0; rotate: 180deg; }
.question summary:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .question summary:hover { color: var(--ink-soft); } }
.section .question p { padding-bottom: 24px; color: var(--ink-soft); }
.question::details-content { block-size: 0; overflow: clip; transition: block-size .34s var(--ease-out), content-visibility .34s allow-discrete; }
.question[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) {
  .question::details-content, .question summary::after { transition: none; }
}
@media (min-width: 960px) {
  .questions__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--column-gap); align-items: start; }
  .questions h2 { grid-column: 1 / 5; }
  /* The list's first rule sits level with the top of the heading's capitals. */
  .section .questions__list { grid-column: 6 / 13; margin-top: .62rem; }
  .question summary { padding-block: 24px; }
  .question summary::after { top: calc(24px + .6em - 10px); }
}

/* ---- the lead forms after #math ----
   Two fields share a row on a wide screen; when one of them shows an error, its neighbour stays where it was. */
.lead__fields { align-items: start; }
.lead .entry { justify-content: flex-start; }

/* The founder’s print beside the call introduction. */
.founder__print { position: relative; flex: 0 0 clamp(48px, 12vw, 60px); aspect-ratio: 4 / 5; overflow: hidden; border: 4px solid var(--slip); background: var(--slip); rotate: -2.2deg; box-shadow: 0 12px 18px -10px rgb(58 36 16 / .55), 0 1px 2px rgb(58 36 16 / .25); }
.founder__photo { position: absolute; left: -38%; top: -9%; width: 176%; max-width: none; height: auto; filter: grayscale(1) contrast(1.12) brightness(1.06); }
.founder__print::after { content: ''; position: absolute; inset: 0; background: #b8875a; mix-blend-mode: multiply; opacity: .32; }

/* ---- #call: the corner at evening ----
   The page ends at the building it opens on. The paper ends in a torn edge over the hero's own painting, now at evening:
   there the painting lies on the paper, here the paper lies on the painting, and both cast their shadow down.
   The stills are honest frames of the live hero (tools/build_ending_scene.mjs). As the corner comes into view it is late
   afternoon with the room empty, then the lights come on, then the tables fill one group at a time, each a crossfade
   between frames of the same painting in exact register. The form is a register slip lying on the evening sky. */
.call { --dusk: #0d123c; --street-dark: #17131d; --slip-dusk: #fcf2e0; --tear-above: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='18' viewBox='0 0 640 18'%3E%3Cpolygon points='0,0 0,7.4 4,6.6 8,8.8 12,6.2 16,8.3 20,5.9 24,7.5 28,6.1 32,6 36,7 40,4.1 44,3.9 48,6.1 52,4.5 56,3 60,5.4 64,5 68,2.4 72,3.2 76,2.3 80,2.9 84,3.9 88,2.7 92,4.5 96,2.9 100,3.6 104,5.9 108,5.1 112,5.6 116,6.6 120,6.7 124,6.9 128,6.3 132,8.8 136,9.9 140,10.3 144,9.6 148,9 152,9.2 156,10.3 160,10.4 164,8.8 168,9.2 172,9.6 176,10 180,10.8 184,9.8 188,8.3 192,10.6 196,9.4 200,9.6 204,8.6 208,9.2 212,9.1 216,10.2 220,8.2 224,9.5 228,8.4 232,9.9 236,7.9 240,8.5 244,8.7 248,9.4 252,7.5 256,8.5 260,7.6 264,7.5 268,7.8 272,8.9 276,7 280,8 284,5.2 288,7 292,4.8 296,3.8 300,5 304,5.1 308,2 312,2.4 316,3.6 320,2.1 324,1.6 328,1.2 332,1.2 336,2.7 340,4 344,4.2 348,3 352,1.9 356,3.2 360,5 364,5.6 368,5.6 372,4.8 376,6.2 380,6.5 384,7.4 388,6.7 392,9.1 396,9.3 400,7.4 404,8 408,9.8 412,8.1 416,10.2 420,8.9 424,9.4 428,9.3 432,7.7 436,7.8 440,7.6 444,8.8 448,8.7 452,6.9 456,9 460,7.6 464,7 468,7.6 472,9.2 476,8 480,8.3 484,9.3 488,9.5 492,9 496,8.1 500,8.7 504,9.8 508,9.5 512,9 516,8.3 520,8.3 524,9.4 528,8.8 532,7 536,9 540,9.4 544,8.8 548,8.9 552,8.7 556,7.3 560,7.9 564,6.4 568,5.4 572,6 576,5.7 580,7.4 584,6.6 588,6.2 592,6.4 596,5 600,6.3 604,6.9 608,6.2 612,5.9 616,6.6 620,6.5 624,7.8 628,6.3 632,6.3 636,7 640,7.4 640,0'/%3E%3C/svg%3E");
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); overflow: clip; background: var(--dusk); color: var(--white); }
.call > *, .call__inner > * { grid-column: 1; }
.call::before { content: ''; position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 18px; background-color: var(--light-lamp); background-image: var(--grain); background-size: 220px 220px; background-blend-mode: soft-light; -webkit-mask: var(--tear-above) repeat-x left top / 640px 18px; mask: var(--tear-above) repeat-x left top / 640px 18px; pointer-events: none; }
.call::after { content: ''; position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 34px; background: var(--tear-shadow) repeat-x left top / 640px 34px; opacity: .9; pointer-events: none; }
.ending { position: relative; min-width: 0; overflow: hidden; }
.ending__painting { position: relative; aspect-ratio: 2508 / 1568; }
.ending__still { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
/* The band of windows, placed with the numbers tools/build_ending_scene.mjs cuts it with. */
.ending__band { position: absolute; left: 52%; top: 76%; width: 42%; height: auto; max-width: none; }

/* Evening arrives once a third of the corner is on screen: the light first, then the tables. */
.ending__still--lit { transition: opacity 2.2s var(--ease-out) .2s; }
.ending__band { transition: opacity .9s var(--ease-out) var(--seated); }
.ending__band--1 { --seated: 2.1s; }
.ending__band--2 { --seated: 3.1s; }
.ending__band--3 { --seated: 4.1s; }
.ending__painting.is-waiting .ending__still--lit, .ending__painting.is-waiting .ending__band { opacity: 0; transition: none; }

/* When the layout stacks, the painting and slip each keep their own row. */
.call__inner { display: contents; }
.call__heading { grid-row: 1; position: relative; z-index: 1; padding: calc(var(--space-section) * .8) var(--gutter) 0; }
.call h2 { max-width: 11ch; font-size: var(--type-statement); line-height: 1; letter-spacing: -.022em; text-shadow: 0 2px 14px rgb(6 12 40 / .45); }
.call__lede { max-width: 33ch; margin-top: 16px; font-size: clamp(1.1rem, 1.5vw, 1.36rem); line-height: 1.4; text-shadow: 0 1px 3px rgb(6 12 40 / .85); }
.call__lede strong { font-weight: 500; }
.call__lede a { white-space: nowrap; }
.ending { grid-row: 2; margin-top: -32px; }
.ending__painting { width: 195vw; margin-left: -95vw; -webkit-mask: linear-gradient(transparent, #000 18%, #000 88%, transparent); mask: linear-gradient(transparent, #000 18%, #000 88%, transparent); }
.call__founder, .call__form { margin-inline: var(--gutter); }
.call h2 { scroll-margin-block-start: 16px; }
.call h2:focus { box-shadow: none !important; }
.call__founder { display: flex; align-items: center; gap: 16px; grid-row: 3; position: relative; z-index: 1; max-width: 31rem; margin-top: 4px; color: rgb(255 250 241 / .9); font-size: var(--type-lede); line-height: 1.5; }
.call__form { grid-row: 4; margin-bottom: calc(var(--space-section) * .7); }
.call { background: linear-gradient(var(--dusk), var(--dusk) 40%, var(--street-dark) 62%); }

/* Every layout that stacks the call section puts the painting first, so a jump to the
   call lands on the heading with the form under it. Only the wide landscape layout, where
   the form sits beside the restaurant, keeps the heading on top. */
@media (max-width: 959.98px), (orientation: portrait) {
  .call { background: var(--street-dark); }
  .ending { grid-row: 1; margin-top: 0; }
  .ending__painting { mask: linear-gradient(#000 90%, transparent); }
  .call__heading { grid-row: 2; padding-top: 24px; }
  .call__founder { margin-top: 24px; }
}

@media (min-width: 960px) and (orientation: landscape) {
  /* A wide screen: the corner fills the section, the shop on the right, and the copy and the slip stand on the sky to its
     left, where the lit still has no stars. The painting covers the section the way the hero's covers the hero. */
  .call { min-height: max(100svh, 760px); background: var(--dusk); }
  .ending { grid-row: 1; grid-column: 1; align-self: stretch; margin: 0; container-type: size; }
  .ending__painting { position: absolute; right: 0; bottom: 0; width: max(100cqw, 100cqh * 1.6); margin: 0; -webkit-mask: none; mask: none; }
  .call__inner { position: relative; z-index: 1; display: block; grid-row: 1; grid-column: 1; width: 100%; max-width: var(--frame); margin-inline: auto; padding: calc(var(--space-section) * .9) var(--gutter) clamp(56px, 6vw, 96px); }
  /* Never narrower than 27rem: below that the two-up fields cut off the sales range's label. */
  .call__inner > :is(.call__founder, .call__form) { max-width: min(30rem, max(36vw, 27rem)); }
  .call__heading { padding: 0; }
  .call__founder, .call__form { margin-inline: 0; }
  .call__founder { margin-top: clamp(16px, 2vw, 26px); text-shadow: 0 1px 3px rgb(6 12 40 / .6); }
  .call__form { margin-bottom: 0; }
}

/* The slip. Its paper and its toothed foot are one masked layer and its shadow is a second layer under it, so the
   shadow is never cut off by the mask and typing never repaints a filter. */
.call__form { --tooth: 7px; position: relative; isolation: isolate; max-width: 30rem; margin-top: clamp(26px, 3.4vw, 40px); padding: 22px 20px calc(24px + var(--tooth)); color: var(--ink); }
.call__form::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--slip-dusk);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x; }
.call__form::after { content: ''; position: absolute; inset: 6px 4px calc(var(--tooth) + 2px); z-index: -2; border-radius: 2px; box-shadow: 0 22px 34px -12px rgb(3 6 24 / .75), 0 2px 6px rgb(3 6 24 / .4); }
.call__form .lead__fields { gap: 14px; margin-top: 0; }
.call__form .entry > label { color: var(--ink-soft); }
.call__form .entry select {
  appearance: none;
  padding-inline-end: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' stroke='%232b1a0c' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
}
.call__form .consent { min-height: 44px; gap: 10px; margin-top: 14px; padding-block: 10px 0; border-top: 1px solid var(--rule); font-size: .8125rem; line-height: 1.5; }
.call__form .consent input:not(:checked) { border-color: rgb(43 26 12 / .50); }
.call__form .consent a { white-space: nowrap; }
.call__form a { color: var(--sky-deep); }
.call__form :focus-visible { outline-color: var(--sky); }
/* The one red button on the page below the hero. It is the awning's red taken one step deeper, the least that gives its
   label 4.5:1; the awning's own red gives 4.3. */
.lead__send.call__send { width: 100%; min-height: 56px; margin-top: 14px; background: #cf3c29; color: var(--white); font-size: 1.0625rem; box-shadow: 0 14px 20px -14px rgb(120 30 12 / .9); }
.lead__send.call__send:focus-visible { outline-color: var(--sky); }
@media (hover: hover) and (pointer: fine) { .lead__send.call__send:hover:not(:disabled) { background: #b52f1b; } }
.call__send svg { width: 18px; height: 18px; }
.call__form .lead__status { margin-top: 12px; }
.call__form[data-state='sent'] .lead__status { margin-top: 0; }

@media (min-width: 600px) {
  .call__form { padding: 26px 26px calc(28px + var(--tooth)); }
  .call__form .lead__fields { column-gap: 16px; }
}

/* ---- the footer, on the street at evening ---- */
.site-footer { position: relative; background: var(--street-dark, #150f17); color: rgb(255 250 241 / .72); font-size: var(--type-caption); line-height: 1.5; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; max-width: var(--frame); margin-inline: auto; padding: 8px var(--gutter) calc(36px + env(safe-area-inset-bottom)); }
.site-footer__wordmark { color: var(--white); font-size: 1.5rem; }
.site-footer p { max-width: 46rem; }
/* The legal name and the links are separate runs, and the links are spaced, not dotted, so no separator can end a line. */
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 28px; }
.site-footer__links { display: inline-flex; flex-wrap: wrap; column-gap: 20px; }
.site-footer a:not(.wordmark) { display: inline-block; padding-block: 10px; color: var(--white); text-decoration-color: rgb(255 250 241 / .35); }
.site-footer a:not(.wordmark) { min-width: 44px; min-height: 44px; }
@media (hover: hover) and (pointer: fine) { .site-footer a:not(.wordmark):hover { text-decoration-color: currentColor; } }
.site-footer :focus-visible { outline-color: var(--lamp); }

/* Preserve horizontal swipes while allowing vertical browser gestures. */
.viewer__stage { touch-action: pan-y; }

/* ---- Homepage summaries and paper header ---- */
.section__detail-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--space-heading); }
.proof--summary { padding-block: clamp(32px, 4.5vw, 72px); }
.section.proof--summary h2 { font-size: var(--type-heading); }
.offer-case { display: grid; align-items: center; gap: var(--space-block); }
.offer-case h2 + p { margin-top: 12px; }
.offer-case__flyer { max-width: min(64vw, 280px); margin: var(--space-heading) 0 0; }
.offer-case__flyer img { display: block; width: 100%; height: auto; box-shadow: 0 8px 18px -10px #543918; }
.offer-case .slip { max-width: 27rem; }
.offer-case .proof__quote { margin-top: var(--space-block); padding-inline-start: .6rem; }
.offer-case .proof__quote footer { margin-top: 12px; }
.offer-case .section__detail-link { margin-top: 8px; }
.booking p { margin: 0 0 14px; line-height: 1.45; }
.booking .button { color: var(--white); }
@media (min-width: 680px) {
  .offer-case { grid-template-columns: 1fr 1fr; gap: var(--column-gap); }
}
.details-header .section__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.details-header .wordmark, .site-footer .wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.details-header .button { min-height: 44px; }
.details-page main::before { content: none; }
.details-heading { padding-top: var(--space-section); }
.details-heading h1 { font-size: var(--type-statement); line-height: 1; letter-spacing: -.022em; }
.details-call { padding-top: 0; }
.site-footer a:not(.wordmark) { min-height: 44px; }
