/* self-hosted, latin subset only: no request to Google, so no visitor IP sent there */
@font-face { font-family: "Red Hat Display"; font-weight: 900; font-display: swap; src: url("../fonts/red-hat-display-900-latin.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-weight: 400 500; font-display: swap; src: url("../fonts/red-hat-text-latin.woff2") format("woff2"); }
/* the fictional client sites' own faces (fonts/README.md) */
@font-face { font-family: "EB Garamond"; font-weight: 400; font-display: swap; src: url("../fonts/fictifs/eb-garamond-400.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/fictifs/eb-garamond-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Erode"; font-weight: 500; font-display: swap; src: url("../fonts/fictifs/erode-500.woff2") format("woff2"); }
@font-face { font-family: "Clash Grotesk"; font-weight: 400; font-display: swap; src: url("../fonts/fictifs/clash-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders"; font-weight: 800; font-display: swap; src: url("../fonts/fictifs/big-shoulders-800.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("../fonts/fictifs/public-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("../fonts/fictifs/archivo-400.woff2") format("woff2"); }
@font-face { font-family: "Switzer"; font-weight: 400; font-display: swap; src: url("../fonts/fictifs/switzer-400.woff2") format("woff2"); }
@font-face { font-family: "Roundo"; font-weight: 400; font-display: swap; src: url("../fonts/fictifs/roundo-400.woff2") format("woff2"); }
@font-face { font-family: "Roundo"; font-weight: 700; font-display: swap; src: url("../fonts/fictifs/roundo-700.woff2") format("woff2"); }

/* Colour chapters: every section is one flat field. Black text on every colour, off-white on black. */
:root {
  --bg: #ffffff;
  --surface: #f6f6f6;
  --ink: #000000;
  --ink-on-dark: #f4f4f4;
  --muted: #5f5f5f;
  --accent: #fe7141;
  --sage: #d1ddd3;
  --yellow: #ffcf33;

  --display: "Red Hat Display", "Arial Black", system-ui, sans-serif;
  --text-font: "Red Hat Text", system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(3.25rem, 8.3vw, 8rem);

  --m: clamp(16px, 2.5vw, 40px);   /* the one pair of page margins */
  --g: clamp(12px, 1.6vw, 24px);   /* grid gap */
  --pad: clamp(4.5rem, 10vw, 8rem); /* chapter padding */
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* the "paper": white sections and their text */
  --page: #ffffff;
  --text: #000000;
  --text-soft: #3d3d3d;
  --glass-hover: rgba(255, 255, 255, .6);
  --glass-button: rgba(255, 255, 255, .55);

  /* "Liquid glass", only on what floats over moving content (phone action bar, comparison tags and handle) */
  --glass-light: rgba(255, 255, 255, .5);
  --glass-dark: rgba(20, 20, 20, .35);
  --glass-edge: rgba(255, 255, 255, .55);
  --glass-blur: blur(18px) saturate(1.8);
  --glass-depth: 0 10px 30px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(0, 0, 0, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0, 0, 0, .12); }
a, button, label, input, textarea { touch-action: manipulation; }
/* the phone action bar and the sticky total must never hide the field in focus */
@media (max-width: 760px) { html { scroll-padding-bottom: 6rem; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 var(--step-body)/1.5 var(--text-font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 900; line-height: .92; letter-spacing: -.03em; text-transform: uppercase; }
h2 { font-size: var(--step-head); }
h3 { font-weight: 500; font-size: var(--step-lead); line-height: 1.2; }
p { text-wrap: pretty; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.estimate :focus-visible, .projects :focus-visible, .redo :focus-visible, .contact :focus-visible, .footer :focus-visible { outline-color: currentColor; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--m); top: 1rem; z-index: 100; padding: .5rem 1rem; background: var(--ink); color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* colour fields: always black text */
.offers, .ticket-stub, .projects, .papers, .stages-text, .stages-ui, .faq-title, .band:nth-of-type(even), .coupon,
.ft-nav, .ft-call, .trade-needs, .trade-example, .trade-cta, .nav-tab, .hl-sage, .hl-yellow, .hl-orange { color: var(--ink); }
/* paper documents and cards drawn inside colour fields stay white, as printed paper would */
.sheet, .fragment { --surface: #f6f6f6; --muted: #5f5f5f; --page: #ffffff; --text: #000000; color: var(--ink); }

/* ---------- controls: one button shape on the whole site ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .8rem 1.6rem;
  border: 0;
  background: var(--accent);
  color: var(--ink);
  font: 500 var(--step-body)/1.2 var(--text-font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { translate: 0 1px; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--line { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.btn--line:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
.link { font-weight: 500; text-decoration: underline; }
.link:hover { text-decoration-thickness: 4px; }

/* ---------- header: wordmark block, accent tab, one action ---------- */

.nav {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: max-content minmax(max-content, 1fr) 58%;
  align-items: stretch;
  min-height: 56px;
  font-weight: 500;
}
.home .nav { position: absolute; inset: 0 0 auto; }
.logo {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  background: var(--text);
  color: var(--page);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-decoration: none;
}
/* the tab runs from the wordmark to 42% of the width */
.nav-tab { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); padding: 0 1.25rem; background: var(--accent); }
.nav-tab a, .nav-action { text-decoration: none; }
.nav-tab a:hover, .nav-action:hover { text-decoration: underline; }
.nav-action { justify-self: end; display: flex; align-items: center; padding: 0 var(--m); background: var(--page); }
@media (max-width: 1100px) {
  .nav { grid-template-columns: max-content max-content 1fr; }
}
@media (max-width: 640px) {
  .nav-tab a:not([href$="#tarifs"]) { display: none; }
  .nav { grid-template-columns: max-content 1fr auto; font-size: 1rem; white-space: nowrap; }
  .home .nav { position: relative; }
  /* on a phone the orange tab would be a lone scrap of colour: plain links on white instead */
  .nav-tab { justify-content: flex-end; padding-inline: .6rem; background: var(--page); color: var(--text); }
  .logo { padding: 0 .6rem 0 16px; }
  .nav-action { padding: 0 16px 0 .6rem; }
  .logo { font-size: 1.125rem; }
}

/* floating glass menu, wide screens only, shown once the header is out of view */
.float-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-depth);
  font-weight: 500;
  white-space: nowrap;
  translate: -50% calc(-100% - 24px);
  opacity: 0;
  transition: translate .45s var(--ease), opacity .3s;
}
.float-nav.is-on { translate: -50% 0; opacity: 1; }
.float-nav a { padding: .5rem .8rem; border-radius: 999px; text-decoration: none; transition: background-color .15s; }
.float-nav a:hover { background: var(--glass-hover); }
.float-nav .float-logo { margin-right: .5rem; padding-left: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.float-nav .float-logo:hover { background: none; }
.float-nav .float-cta { margin-left: .5rem; padding-inline: 1.1rem; background: var(--text); color: var(--page); }
.float-nav .float-cta:hover { background: var(--accent); color: var(--ink); }
@media (max-width: 760px) { .float-nav { display: none; } }

/* ---------- hero: mosaic masthead, title on the 42% axis ---------- */

.hero { display: flex; flex-direction: column; min-height: 100svh; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas: "a a b c d e" "f g h i d j";
  height: 52svh;
  min-height: 300px;
}
.mosaic img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.m-boutique { grid-area: a; }
.m-orange { grid-area: b; background: var(--accent); }
.m-musique { grid-area: c; }
.m-sage { grid-area: d; background: var(--sage); }
.m-yellow { grid-area: e; background: var(--yellow); }
.m-ink { grid-area: f; background: var(--ink); }
.m-photo { grid-area: g; }
.m-vigne { grid-area: h; }
.m-yellow2 { grid-area: i; background: var(--yellow); }
.m-orange2 { grid-area: j; background: var(--accent); }

.hero-text {
  flex: 1;
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: start;
  align-content: center;
  padding: clamp(2rem, 5vh, 4rem) var(--m) clamp(2.5rem, 6vh, 4rem);
}
.hero-lead { max-width: 30ch; margin: 0; padding-right: var(--g); font-size: var(--step-lead); line-height: 1.35; }
.hero-title { font-size: var(--step-display); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: clamp(1.75rem, 4vh, 2.5rem); }

/* masked lines: each rises from behind its own baseline, once, on load */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; animation: rise .9s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 100ms); }
.load { animation: fade-up .7s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 350ms); }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .mosaic { grid-template-columns: repeat(3, 1fr); grid-template-areas: "a a b" "f g d"; height: 38svh; min-height: 220px; }
  .mosaic .m-musique, .mosaic .m-vigne, .m-yellow, .m-yellow2, .m-orange2 { display: none; }
  .hero-text { display: flex; flex-direction: column-reverse; gap: 1.25rem; padding-top: 1.75rem; }
  .hero-title { font-size: 13vw; }
  .hero-lead { font-size: 1.0625rem; }
}

/* ---------- offers: specimens on colour tiles ---------- */

.offers {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--g);
  padding: var(--pad) var(--m);
  background: var(--sage);
}
.offers-head { grid-column: 1 / 4; }
.offers-head h2 { font-size: clamp(2.5rem, 1.6rem + 2vw, 3.25rem); }
.offers-head p { max-width: 30ch; margin: 1.25rem 0 0; }
.specimens {
  grid-column: 4 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.specimen--wide { grid-column: span 2; }
.specimen-tile { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; }
.specimen--wide .specimen-tile { aspect-ratio: 8 / 5; }
.specimen-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.specimen h3 { margin: 1rem 0 .35rem; font-size: 1.25rem; }
.specimen p { margin: 0; font-size: 1rem; }
.offer-price { font-weight: 500; white-space: nowrap; }

@media (max-width: 1100px) {
  .offers-head { grid-column: 1 / -1; }
  .specimens { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .specimens { grid-template-columns: 1fr 1fr; gap: 1.75rem 8px; }
  .specimen--wide { grid-column: 1 / -1; }
  .specimen--wide { order: -1; }
  .specimen h3 { font-size: 1.0625rem; }
  .specimen p { font-size: .9375rem; }
}

/* ---------- pricing: the simulator printed as a ticket ---------- */

.estimate { padding: var(--pad) var(--m); background: var(--ink); }
.ticket {
  --notch: 28px;
  position: relative;
  display: grid;
  grid-template-columns: 7fr 3fr;
  max-width: 1280px;
  margin: 0 auto;
}
/* half-round bites at the top and bottom of the tear line */
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  left: 70%;
  width: var(--notch);
  height: var(--notch);
  margin-left: calc(var(--notch) / -2);
  border-radius: 50%;
  background: var(--ink);
  z-index: 1;
}
.ticket::before { top: calc(var(--notch) / -2); }
.ticket::after { bottom: calc(var(--notch) / -2); }

.ticket-main { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--page); }
.ticket-main h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
.estimate-intro { max-width: 52ch; margin: 1rem 0 2rem; }
.estimate-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.5rem, 3vw, 2.5rem); }
.estimate-form fieldset { margin: 0 0 1.75rem; padding: 0; border: 0; min-width: 0; }
.fs-type { grid-column: 1; grid-row: 1 / span 2; }
.fs-option { grid-column: 2; grid-row: 1 / span 2; }
.fs-monthly { grid-column: 1; }
.estimate-form legend { margin-bottom: .5rem; padding: 0; font-family: var(--display); font-weight: 900; font-size: 1.25rem; text-transform: uppercase; letter-spacing: -.01em; }

.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: baseline;
  padding: .7rem .6rem;
  border-top: 2px solid var(--ink);
  cursor: pointer;
  transition: background-color .15s;
}
.choice:hover { background: var(--surface); }
.choice:has(:checked) { background: var(--yellow); color: var(--ink); }
.choice:has(:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; }
.choice input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: currentColor; translate: 0 .15em; }
.choice-text strong { display: block; font-weight: 500; }
.choice-text small { display: block; color: var(--muted); font-size: var(--step-small); line-height: 1.4; }
.choice:has(:checked) small { color: var(--ink); }

.promises { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 2rem; margin: .5rem 0 0; padding: 0; list-style: none; font-size: 1.0625rem; }

/* the stub: dotted perforation in the ground colour, the total, the action bar */
.ticket-stub {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 6px dotted var(--ink);
  background: var(--accent);
  text-align: left;
}
.stub-inner { position: sticky; top: 2rem; }
.sheet .blur { filter: blur(5px); user-select: none; }
.total-label { margin: 0; font-weight: 500; }
.pick-summary { margin: .75rem 0 2rem; text-align: left; }
.pick-type { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.pick-count { margin: .75rem 0 .35rem; font-weight: 500; }
.pick-options { margin: 0; padding: 0; list-style: none; }
.pick-options li { padding: .3rem 0; border-top: 2px solid currentColor; font-size: 1rem; }
.total-cta { width: 100%; min-height: 56px; background: var(--ink); color: var(--bg); }
.total-cta:hover { background: var(--bg); color: var(--ink); }

@media (max-width: 900px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { top: auto; bottom: var(--stub-h, 0); left: auto; margin: 0 0 calc(var(--notch) / -2); }
  .ticket::before { left: calc(var(--notch) / -2); }
  .ticket::after { right: calc(var(--notch) / -2); }
  .estimate-form { grid-template-columns: 1fr; }
  .fs-type, .fs-option, .fs-monthly { grid-column: 1; grid-row: auto; }
  .promises { grid-template-columns: 1fr; }
  /* the stub sticks to the bottom of the screen while choices scroll past */
  /* on a phone the stub floats over the choices as a glass capsule */
  .ticket-stub { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 2; margin: 0 8px; padding: .6rem .6rem .6rem 1.1rem; border: 1px solid var(--glass-edge); border-radius: 28px; background: var(--glass-light); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-depth); text-align: left; }
  .ticket-stub .total-cta { border-radius: 999px; padding-inline: 1.1rem; background: var(--text); color: var(--page); font-size: .9375rem; }
  .ticket-stub .total-label { display: none; }
  .ticket-stub { color: var(--text); } /* glass over the paper here, not the orange field */
  /* at the end of the ticket it rests on the black ground: half-clear glass turns muddy grey there, so this one is denser */
  .ticket-stub { background: rgba(255, 255, 255, .86); }
  .stub-inner { position: static; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .25rem 1rem; }
  .ticket::before, .ticket::after { display: none; }
  .total-label { grid-column: 1; font-size: var(--step-small); }
  .pick-count { white-space: nowrap; }
  .pick-summary { grid-column: 1; margin: 0; }
  .pick-type { font-size: 1.25rem; }
  .pick-count { margin: .2rem 0 0; font-size: var(--step-small); }
  .pick-options { display: none; }
  .total-cta { grid-column: 2; grid-row: 1 / span 2; width: auto; padding-inline: 1rem; }
}

/* ---------- work: giant title, uneven wall ---------- */

.projects { padding: var(--pad) var(--m); background: var(--accent); }
.projects-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; }
.projects-head h2 { font-size: clamp(4.5rem, 9vw, 8.5rem); }
.projects-intro { max-width: 52ch; margin: 1.25rem 0 2rem; }
.wall { display: flex; flex-wrap: wrap; gap: 2rem 8px; }
/* each tile's width follows its picture's ratio, rows have different heights, so edges never line up */
.project { flex: var(--r) 1 calc(var(--h) * var(--r)); min-width: 0; --h: 320px; }
@media (min-width: 761px) { .wall { flex-wrap: nowrap; } }
.shot, .mock { display: block; width: 100%; height: var(--h); overflow: hidden; background: var(--ink); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.wall:has(.project:hover) .project:not(:hover) { opacity: .75; }
.project { transition: opacity .2s; }
.caption { display: flex; justify-content: space-between; gap: 1rem; margin: .6rem 0 0; font-size: var(--step-small); }
.caption strong { font-weight: 500; }

@media (max-width: 760px) {
  .projects-head h2 { font-size: 17vw; }
  .wall { display: grid; grid-template-columns: 62fr 38fr; gap: 1.5rem 6px; }
  .wall .project:first-child { grid-column: 1 / -1; --h: 220px; }
  .wall .project:nth-child(n) { --h: 150px; } /* beats the desktop nth-child heights */
  .caption { flex-direction: column; gap: 0; }
}

/* ---------- fictional client sites ----------
   Each is the first screen of an imagined client, in that client's own type and palette (someone else's brand,
   not ours). --device is the screen width it is drawn for and --dp one of its pixels: every size inside is a
   multiple of --dp, so the screen scales with its tile like a screenshot. cqi on the tile itself would measure
   the page, so only the tile's children use --dp; the tile's own spacing is in %. */
.mock { --dp: calc(100cqi / var(--device, 1440)); container-type: inline-size; position: relative; }
.mock img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mock span { display: block; }
.specimen-tile.mock { height: auto; place-items: initial; }

/* Maison Lefèvre, boulangerie: the shop's striped awning becomes the band of a paper card, beside the room */
.lf { display: grid; grid-template-columns: 1fr 1fr; gap: calc(12 * var(--dp)); height: 100%; padding: calc(12 * var(--dp)); background: #fff; color: #1f2b4d; font-family: "EB Garamond", Georgia, serif; }
.lf-card { display: flex !important; flex-direction: column; align-items: center; min-height: 0; padding: 0 calc(48 * var(--dp)) calc(28 * var(--dp)); background: #ebebe8; text-align: center; }
.lf-band { align-self: stretch; height: calc(56 * var(--dp)); margin: 0 calc(-48 * var(--dp)) calc(52 * var(--dp)); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='1'%3E%3Crect width='1' height='1' fill='%231f2b4d'/%3E%3C/svg%3E") 0 0 / calc(56 * var(--dp)) 100% repeat-x; }
.lf-card > * { flex-shrink: 0; }
.lf-mark { font-size: calc(46 * var(--dp)); font-style: italic; line-height: 1; }
.lf-since { margin-top: calc(10 * var(--dp)); color: #555c70; font-size: calc(15 * var(--dp)); }
.lf-title { max-width: 11em; text-wrap: balance; margin-top: calc(40 * var(--dp)); font-size: calc(52 * var(--dp)); line-height: 1.08; letter-spacing: -.01em; }
.lf-text { max-width: 34ch; margin-top: calc(20 * var(--dp)); font-size: calc(18 * var(--dp)); line-height: 1.5; }
.lf-btn { margin-top: calc(28 * var(--dp)); padding: calc(14 * var(--dp)) calc(26 * var(--dp)); background: #1f2b4d; color: #fff; font-size: calc(17 * var(--dp)); }
.lf-next { margin-top: calc(14 * var(--dp)); padding: calc(3 * var(--dp)) calc(12 * var(--dp)); background: #f7941d; font-size: calc(15 * var(--dp)); }
.lf-links { display: flex !important; gap: calc(28 * var(--dp)); margin-top: auto; font-size: calc(15 * var(--dp)); }
.lf-photo.lf-photo { min-height: 0; }
[data-size="tablet"] .lf-card { padding-inline: calc(28 * var(--dp)); }
[data-size="tablet"] .lf-band { margin-inline: calc(-28 * var(--dp)); margin-bottom: calc(40 * var(--dp)); }
[data-size="tablet"] .lf-mark { font-size: calc(36 * var(--dp)); }
[data-size="tablet"] .lf-title { margin-top: calc(28 * var(--dp)); font-size: calc(36 * var(--dp)); }
[data-size="tablet"] .lf-text { font-size: calc(16 * var(--dp)); }
[data-size="phone"] .lf { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0; }
[data-size="phone"] .lf-photo.lf-photo { flex: none; height: calc(280 * var(--dp)); }
[data-size="phone"] .lf-card { position: relative; z-index: 1; flex: none; margin-top: calc(-24 * var(--dp)); padding: 0 calc(20 * var(--dp)) calc(24 * var(--dp)); }
[data-size="phone"] .lf-band { height: calc(40 * var(--dp)); margin: 0 calc(-20 * var(--dp)) calc(28 * var(--dp)); }
[data-size="phone"] .lf-mark { font-size: calc(32 * var(--dp)); }
[data-size="phone"] .lf-since { font-size: calc(14 * var(--dp)); }
[data-size="phone"] .lf-title { margin-top: calc(22 * var(--dp)); font-size: calc(30 * var(--dp)); }
[data-size="phone"] .lf-text { font-size: calc(16 * var(--dp)); }
[data-size="phone"] .lf-btn { align-self: stretch; }
[data-size="phone"] .lf-links { flex-wrap: wrap; justify-content: center; gap: calc(8 * var(--dp)) calc(20 * var(--dp)); margin-top: calc(24 * var(--dp)); }

/* stretch: the frame stands for a --device px wide screen. The screen inside is not a container, so its --dp still
   measures the frame: text keeps its size while the screen narrows, and data-size swaps the layout. */
@property --w { syntax: "<percentage>"; inherits: true; initial-value: 100%; }
.stretch { margin: 2.5rem 0 0; }
.stretch-frame { --device: 1440; --w: 100%; height: auto; aspect-ratio: 2 / 1; background: var(--ink); user-select: none; }
.stretch-frame.is-hinting { transition: --w 1s var(--ease); }
.stretch-frame:has(:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }
.stretch-screen { width: var(--w); height: 100%; margin-inline: auto; overflow: hidden; }
.stretch-frame .stretch-handle { left: calc(50% + var(--w) / 2); }
.stretch-frame .stretch-range { inset: 0 0 0 50%; width: 50%; }
.stretch-frame .stretch-tag { left: 1rem; font-family: var(--text-font); }
@media (max-width: 760px) {
  .stretch-frame { --device: 1024; aspect-ratio: 3 / 4; }
  .stretch-frame .stretch-tag { left: .5rem; }
}

/* Léa Martin, céramiste: a series of twelve pieces, the vase held still on the left, her name crossing it */
.fx-lea { --device: 1440; background: #edccbe; color: #351a2b; font-family: "Erode", Georgia, serif; font-weight: 500; }
.lea-photo.lea-photo { position: absolute; top: calc(20 * var(--dp)); left: calc(20 * var(--dp)); width: 47%; height: calc(100% - 40 * var(--dp)); }
.lea-nav { position: absolute; top: calc(30 * var(--dp)); right: calc(32 * var(--dp)); display: flex !important; align-items: center; gap: calc(30 * var(--dp)); font-size: calc(16 * var(--dp)); }
.lea-cta { padding: calc(10 * var(--dp)) calc(18 * var(--dp)); background: #351a2b; color: #edccbe; }
.lea-copy { position: absolute; top: 34%; left: 58%; width: 32%; }
.lea-text { font-size: calc(30 * var(--dp)); line-height: 1.25; letter-spacing: -.01em; }
.lea-series { width: fit-content; margin-top: calc(28 * var(--dp)); padding: calc(10 * var(--dp)) calc(14 * var(--dp)); background: #e3b4a2; font-size: calc(16 * var(--dp)); }
.lea-name { position: absolute; right: calc(32 * var(--dp)); bottom: calc(36 * var(--dp)); font-size: calc(212 * var(--dp)); line-height: .8; letter-spacing: -.04em; white-space: nowrap; }

/* Jardins du Coin, association: the garden itself carries the page, the name runs under it like a fence */
.fx-jardins { --device: 1440; display: flex !important; flex-direction: column; background: #161c1a; color: #e3e2da; font-family: "Clash Grotesk", system-ui, sans-serif; }
.jd-photo.jd-photo { flex: none; height: 58%; }
.jd-nav { position: absolute; top: calc(22 * var(--dp)); right: calc(24 * var(--dp)); display: flex !important; gap: calc(28 * var(--dp)); padding: calc(9 * var(--dp)) calc(16 * var(--dp)); background: rgba(22, 28, 26, .6); font-size: calc(16 * var(--dp)); }
.jd-row { display: flex !important; justify-content: space-between; align-items: flex-start; gap: calc(40 * var(--dp)); padding: calc(24 * var(--dp)) calc(24 * var(--dp)) 0; }
.jd-text { max-width: 40ch; font-size: calc(19 * var(--dp)); line-height: 1.4; }
.jd-btn { flex: none; padding: calc(13 * var(--dp)) calc(22 * var(--dp)); background: #9fc7b8; color: #161c1a; font-size: calc(17 * var(--dp)); }
.jd-name { margin-top: auto; padding: 0 calc(20 * var(--dp)) calc(10 * var(--dp)); font-size: calc(232 * var(--dp)); line-height: .85; letter-spacing: -.05em; white-space: nowrap; }

/* Camille Roux, photographe (page unique, on a phone): a photograph set into her name */
.fx-camille { --device: 390; display: flex !important; flex-direction: column; align-items: center; padding: 0 4.1%; background: #ecebe7; color: #38450f; font-family: "Public Sans", system-ui, sans-serif; text-align: center; }
.cr-top { display: flex !important; justify-content: space-between; align-self: stretch; padding: calc(14 * var(--dp)) 0 calc(16 * var(--dp)); font-size: calc(15 * var(--dp)); }
.cr-mono { font-family: "Big Shoulders", sans-serif; font-weight: 800; font-size: calc(18 * var(--dp)); }
.cr-name { font-family: "Big Shoulders", sans-serif; font-weight: 800; font-size: calc(72 * var(--dp)); line-height: .88; text-transform: uppercase; }
.cr-photo.cr-photo { height: auto; aspect-ratio: 16 / 9; margin: calc(8 * var(--dp)) 0; }
.cr-text { margin-top: calc(14 * var(--dp)); font-size: calc(16 * var(--dp)); }
.cr-btn { margin-top: calc(14 * var(--dp)); padding: calc(13 * var(--dp)) calc(24 * var(--dp)); background: #38450f; color: #ecebe7; font-size: calc(15 * var(--dp)); }

/* Menuiserie Lenoir (site vitrine): the workshop's photographs pinned up as a contact sheet, one cell left for words */
.fx-lenoir { --device: 1440; display: grid !important; grid-template-columns: repeat(4, 1fr); align-items: start; column-gap: .83%; padding: 0 .83%; background: #0a0a0a; color: #efefef; font-family: "Archivo", system-ui, sans-serif; }
.ln-col { display: grid !important; gap: calc(12 * var(--dp)); }
.ln-col:nth-child(2) { margin-top: calc(-90 * var(--dp)); }
.ln-col:nth-child(3) { margin-top: calc(-40 * var(--dp)); }
.ln-col:nth-child(4) { margin-top: calc(-130 * var(--dp)); }
.ln-frame img { height: calc(var(--fh) * var(--dp)); }
.ln-cap { height: calc(28 * var(--dp)); padding: 0 calc(10 * var(--dp)); overflow: hidden; background: #b11226; color: #fff; font-size: calc(13 * var(--dp)); line-height: calc(28 * var(--dp)); white-space: nowrap; }
.ln-cap--2 { background: #efefef; color: #0a0a0a; }
.ln-cap--3 { background: #2a2a2a; }
.ln-cap--4 { background: #6e5844; }
.ln-panel { height: calc(410 * var(--dp)); display: flex !important; flex-direction: column; align-items: flex-start; padding: calc(24 * var(--dp)); background: #efefef; color: #0a0a0a; }
.ln-mark { font-size: calc(28 * var(--dp)); letter-spacing: -.02em; }
.ln-text { margin-top: calc(18 * var(--dp)); font-size: calc(20 * var(--dp)); line-height: 1.35; }
.ln-btn { margin-top: calc(24 * var(--dp)); padding: calc(14 * var(--dp)) calc(22 * var(--dp)); background: #b11226; color: #fff; font-size: calc(16 * var(--dp)); }
.ln-links { display: flex !important; gap: calc(22 * var(--dp)); margin-top: auto; font-size: calc(15 * var(--dp)); }

/* Gîte des Trois Chênes (sur mesure, on a phone): photographs hung at uneven sizes, the booking always at hand */
.fx-gite { --device: 390; background: #ddd6c6; color: #2a2a26; font-family: "Switzer", system-ui, sans-serif; }
.fx-gite > * { position: absolute; }
.gt-top { top: 0; left: 0; right: 0; display: flex !important; justify-content: space-between; padding: calc(16 * var(--dp)) calc(20 * var(--dp)); font-size: calc(15 * var(--dp)); }
.gt-tall.gt-tall { top: calc(54 * var(--dp)); left: calc(20 * var(--dp)); width: calc(281 * var(--dp)); height: calc(300 * var(--dp)); }
.gt-square.gt-square { top: calc(268 * var(--dp)); right: calc(20 * var(--dp)); width: calc(148 * var(--dp)); height: calc(148 * var(--dp)); }
.gt-title { top: calc(368 * var(--dp)); left: calc(20 * var(--dp)); width: calc(188 * var(--dp)); font-size: calc(22 * var(--dp)); line-height: 1.15; letter-spacing: -.02em; }
.gt-bar { left: 0; right: 0; bottom: 0; height: calc(56 * var(--dp)); display: flex !important; justify-content: space-between; align-items: center; padding: 0 calc(16 * var(--dp)); background: #3f5a2a; color: #fff; font-size: calc(14 * var(--dp)); }
.gt-go { padding: calc(9 * var(--dp)) calc(14 * var(--dp)); background: #ddd6c6; color: #2a2a26; }

/* Auto-école Mistral (refonte, on a phone): the new site, loud and flat; the 2009 one still showing in the corner */
.fx-mistral { --device: 390; --odp: calc(100cqi / 640); background: #2436ff; }
.ms-new { position: absolute; inset: 0; display: flex !important; flex-direction: column; padding: 0 calc(20 * var(--dp)); background: #2436ff; color: #fff; font-family: "Roundo", system-ui, sans-serif; }
.ms-top { display: flex !important; justify-content: space-between; align-items: baseline; padding: calc(18 * var(--dp)) 0; font-size: calc(15 * var(--dp)); }
.ms-mark { font-size: calc(21 * var(--dp)); font-weight: 700; }
.ms-title { margin-top: calc(10 * var(--dp)); font-size: calc(58 * var(--dp)); font-weight: 700; line-height: .86; letter-spacing: -.04em; }
.ms-text { margin-top: calc(18 * var(--dp)); font-size: calc(18 * var(--dp)); line-height: 1.35; }
.ms-btn { margin-top: calc(20 * var(--dp)); padding: calc(15 * var(--dp)); background: #0a0a0a; font-size: calc(16 * var(--dp)); text-align: center; }
.ms-pic { position: relative; flex: none; height: calc(260 * var(--dp)); margin: calc(44 * var(--dp)) calc(-20 * var(--dp)) 0; }
.ms-fact { position: absolute; top: calc(-30 * var(--dp)); left: calc(20 * var(--dp)); width: 60%; padding: calc(12 * var(--dp)) calc(14 * var(--dp)); background: #ff3b1f; color: #0a0a0a; font-size: calc(14 * var(--dp)); line-height: 1.3; }
.ms-fact b { display: block; font-size: calc(40 * var(--dp)); font-weight: 700; line-height: 1; }
.ms-old { position: absolute; inset: 0; background: #cdcdcd; color: #000; font: calc(13 * var(--odp)) / 1.35 Verdana, Tahoma, sans-serif; clip-path: polygon(100% 40%, 100% 100%, 24% 100%); }
/* the old page is pushed down and right, so its banner and its red promise land in the visible corner */
.ms-old-page { position: absolute; top: 50%; left: 30%; width: calc(780 * var(--odp)); height: calc(600 * var(--odp)); display: grid !important; grid-template: auto auto 1fr auto / calc(190 * var(--odp)) 1fr; background: #fffbe6; }
.ms-old-head { grid-column: 1 / -1; padding: calc(26 * var(--odp)); background: #1f3f99; color: #ffe600; font: bold calc(34 * var(--odp)) Arial, sans-serif; }
.ms-old-nav { grid-column: 1 / -1; padding: calc(6 * var(--odp)) calc(12 * var(--odp)); background: #9db0e8; }
.ms-old-nav u, .ms-old-side u { display: inline; color: #0000ee; }
.ms-old-side { padding: calc(14 * var(--odp)); background: #e8e8e8; line-height: 2; }
.ms-old-main { padding: calc(16 * var(--odp)) calc(22 * var(--odp)); }
.ms-old-main i { display: block; margin: calc(14 * var(--odp)) 0; color: #d40000; font: bold italic calc(22 * var(--odp)) "Comic Sans MS", cursive; }
.ms-old-main table { width: 100%; margin-top: calc(16 * var(--odp)); border-collapse: collapse; }
.ms-old-main td { padding: calc(6 * var(--odp)); border: calc(1 * var(--odp)) solid #999; }
.ms-old-foot { grid-column: 1 / -1; padding: calc(10 * var(--odp)); background: #1f3f99; color: #fff; font-size: calc(11 * var(--odp)); text-align: center; }

/* ---------- redo: before / after ---------- */

.redo { padding: var(--pad) var(--m); background: var(--ink); color: var(--ink-on-dark); }
.redo-head { display: grid; grid-template-columns: 5fr 7fr; gap: var(--g); align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.redo-head p { max-width: 52ch; margin: 0; }
.redo-figure { margin: 0; }
.redo-figure figcaption { padding-top: 1rem; font-size: var(--step-small); }
@media (max-width: 760px) { .redo-head { grid-template-columns: 1fr; } }

@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.compare {
  --pos: 50%;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  user-select: none;
}
.compare.is-hinting { transition: --pos 1s var(--ease); }
.compare:has(:focus-visible) { outline: 3px solid var(--ink-on-dark); outline-offset: 4px; }
.compare-old, .compare-new { position: absolute; inset: 0; }
.compare-new { clip-path: inset(0 0 0 var(--pos)); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .85); pointer-events: none; }
.compare-handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--glass-edge);
  border-radius: 50%;
  background: var(--glass-dark);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-depth);
  color: #fff;
  font-weight: 500;
  letter-spacing: .2em;
  translate: -50% -50%;
}
.compare-tag { position: absolute; bottom: 1rem; padding: .3rem .9rem; border: 1px solid var(--glass-edge); border-radius: 999px; background: var(--glass-dark); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-depth); color: #fff; font-size: var(--step-small); font-weight: 500; pointer-events: none; }
.compare-tag--old { left: 1rem; }
.compare-tag--new { right: 1rem; }
@media (max-width: 760px) {
  .compare { aspect-ratio: 4 / 3; }
  .compare-tag { bottom: .5rem; }
  .compare-tag--old { left: .5rem; }
  .compare-tag--new { right: .5rem; }
}

/* the "before": a typical 2013 small-business template, fixed width, Verdana, glossy nav */
.compare-old {
  display: flex;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #d9d9d9 0 2px, #cdcdcd 2px 6px);
  color: #333;
  font-family: Verdana, Tahoma, sans-serif;
  font-size: 1.2cqi;
}
.o-page { display: flex; flex-direction: column; width: 76%; height: 100%; background: #fff; box-shadow: 0 0 1cqi rgba(0, 0, 0, .4); }
.o-head { display: flex; align-items: baseline; gap: 2cqi; padding: 2.4cqi 2.5cqi; background: linear-gradient(#a8327a, #5e1546); color: #fff; }
.o-logo { font-family: Georgia, serif; font-style: italic; font-size: 4cqi; text-shadow: .2cqi .2cqi 0 rgba(0, 0, 0, .5); }
.o-tag { font-size: 1.1cqi; color: #f3c6e2; }
.o-nav { display: flex; background: linear-gradient(#f6f6f6, #cfcfcf); border-block: 1px solid #999; }
.o-nav span { padding: .8cqi 1.5cqi; border-right: 1px solid #aaa; font-size: 1.1cqi; font-weight: bold; color: #5e1546; }
.o-nav .is-on { background: linear-gradient(#a8327a, #5e1546); color: #fff; }
.o-cols { flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: 24% 1fr; gap: 2cqi; padding: 2cqi 2.5cqi; }
.o-box { margin: 0; padding: .5cqi 1cqi; background: #5e1546; color: #fff; font-weight: bold; }
.o-side table { width: 100%; margin-bottom: 1.5cqi; border-collapse: collapse; font-size: 1cqi; }
.o-side td { padding: .5cqi .8cqi; border: 1px solid #ccc; }
.o-side tr:nth-child(odd) { background: #f6eaf1; }
.o-fb { margin: 0; padding: 1cqi; background: #3b5998; color: #fff; font-size: 1cqi; }
.o-main p { margin: 0 0 1.2cqi; line-height: 1.4; text-align: justify; }
.o-main .o-h1 { padding-bottom: .6cqi; border-bottom: 1px dotted #a8327a; color: #a8327a; font-size: 2cqi; font-weight: bold; text-align: left; }
.o-promo { position: relative; margin-bottom: 1.5cqi; padding: 1cqi 1cqi 1cqi 6cqi; border: 1px dashed #c00; background: #fff6d6; color: #c00; font-size: 1cqi; font-weight: bold; }
.o-burst { position: absolute; left: .6cqi; top: 50%; display: grid; place-items: center; width: 4.6cqi; height: 4.6cqi; translate: 0 -50%; background: #ffd400; color: #c00; font-size: 1.1cqi; clip-path: polygon(50% 0, 61% 18%, 82% 10%, 80% 32%, 100% 40%, 85% 56%, 96% 76%, 74% 78%, 68% 100%, 50% 86%, 32% 100%, 26% 78%, 4% 76%, 15% 56%, 0 40%, 20% 32%, 18% 10%, 39% 18%); }
.o-photo { float: right; width: 38%; margin: 0 0 1cqi 1.5cqi; padding: .5cqi; border: 1px solid #ccc; background: #f4f4f4; box-shadow: .3cqi .3cqi .6cqi rgba(0, 0, 0, .3); }
.o-photo img { display: block; width: 100%; height: auto; filter: saturate(1.35) contrast(1.1); }
.o-photo figcaption { padding-top: .4cqi; font-size: .95cqi; font-style: italic; text-align: center; color: #666; }
.o-main .o-new { color: #c00; font-weight: bold; text-align: left; }
.o-main .o-tel { clear: both; color: #5e1546; font-weight: bold; text-align: left; }
.o-foot { padding: 1cqi; border-top: 1px solid #ccc; background: #eee; color: #888; font-size: .95cqi; text-align: center; }

/* the "after": the salon's own identity, nothing to do with ours (dark green, blush, condensed type) */
/* the "after": a real salon site, cream and deep green, serif headline, the booking right there */
.compare-new {
  display: flex;
  flex-direction: column;
  background: #f4eee6;
  color: #1f3a32;
  font: 1.3cqi/1.45 system-ui, sans-serif;
}
.n-bar { display: flex; align-items: center; gap: 3cqi; padding: 2cqi 4cqi; border-bottom: 1px solid rgba(31, 58, 50, .15); }
.n-logo { font: italic 2.4cqi Georgia, serif; }
.n-links { display: flex; gap: 2.6cqi; margin-left: auto; }
.n-cta { padding: 1cqi 2cqi; background: #1f3a32; color: #f4eee6; }
.n-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; }
.n-photo { position: relative; overflow: hidden; }
.n-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.n-team { position: absolute; left: 2.5cqi; bottom: 2.5cqi; display: flex; align-items: center; gap: 1.2cqi; padding: .8cqi 1.6cqi .8cqi .8cqi; background: #f4eee6; font-size: 1.15cqi; }
.n-team img { width: 4.4cqi; height: 4.4cqi; object-fit: cover; }
.n-team b { font-weight: 600; }
.n-copy { display: flex; flex-direction: column; justify-content: center; padding: 3cqi 5cqi; }
.n-open { display: flex; align-items: center; gap: .8cqi; margin: 0 0 2cqi; font-size: 1.25cqi; }
.n-open i { width: 1cqi; height: 1cqi; border-radius: 50%; background: #3f8f5f; }
.n-title { margin: 0 0 2cqi; font: 4.6cqi/1.02 Georgia, serif; letter-spacing: -.02em; }
.n-text { max-width: 34ch; margin: 0 0 3cqi; font-size: 1.45cqi; }
.n-book { display: flex; flex-wrap: wrap; gap: .8cqi; padding: 2cqi; background: #fff; }
.n-book p { flex-basis: 100%; margin: 0 0 .4cqi; font-weight: 600; }
.n-book span { padding: .9cqi 1.4cqi; border: 1px solid rgba(31, 58, 50, .3); font-variant-numeric: tabular-nums; }
.n-book .is-on { border-color: #1f3a32; background: #1f3a32; color: #f4eee6; }
.n-book .n-go { flex-basis: 100%; margin-top: .6cqi; border: 0; background: #e9b9a7; color: #1f3a32; font-weight: 600; text-align: center; }
.n-prices { display: flex; justify-content: space-between; padding: 1.8cqi 4cqi; background: #1f3a32; color: #f4eee6; font-size: 1.3cqi; }
.n-prices b { margin-left: .6cqi; color: #e9b9a7; font-weight: 600; }

/* ---------- papers: output index, live sheet ---------- */

.papers {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--g);
  padding: 0 0 0 var(--m);
  background: var(--yellow);
}
.papers-index { grid-column: 1 / 6; display: flex; flex-direction: column; justify-content: center; padding: var(--pad) 0; }
.papers-index h2 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.625rem); letter-spacing: 0; }
.papers-tabs { display: grid; justify-items: start; margin: 1.5rem 0 2rem; }
.papers-tabs button {
  padding: .1em 0;
  border: 0;
  background: none;
  color: rgba(0, 0, 0, .45);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .15s;
}
.papers-tabs button:hover, .papers-tabs [aria-selected="true"] { color: var(--ink); }
.papers-index > p { max-width: 40ch; margin: 0; }

.papers-stage { grid-column: 7 / -1; position: relative; height: 88svh; min-height: 560px; overflow: hidden; background: var(--sage); }
.sheet {
  position: absolute;
  top: 72px;
  left: 64px;
  width: 560px;
  min-height: 720px;
  padding: 40px 44px;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
  transition: opacity .2s;
}
.sheet:not(.is-on) { opacity: 0; visibility: hidden; }
.sheet-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 32px; }
.sheet-head strong { font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: -.02em; }
.sheet-head span { text-align: right; font-variant-numeric: tabular-nums; }
.sheet-to { margin: 0 0 24px; }
.sheet-to small, .sheet td small { display: block; color: var(--muted); font-size: 13px; }
.sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { padding: 10px 0; border-bottom: 1px solid #d6d6d6; text-align: left; vertical-align: top; }
.sheet thead th { font-weight: 500; font-size: 13px; border-bottom-color: var(--ink); }
.sheet td:last-child, .sheet th:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; }
.sheet tfoot th { font-weight: 400; }
.sheet tfoot tr:first-child > * { font-weight: 500; border-top: 2px solid var(--ink); }
.sheet-note { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.sheet-action { margin: 28px 0 0; }
.sheet-action span { display: block; padding: 14px; background: var(--accent); font-weight: 500; text-align: center; }
.sheet-stamp { display: inline-block; margin: 28px 0 0; padding: 6px 14px; border: 3px solid var(--ink); font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; rotate: -4deg; }
.sheet-bar { height: 10px; margin: 0 0 20px; background: var(--surface); }
.sheet-bar span { display: block; height: 100%; background: var(--accent); }
.sheet-checks, .fragment ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sheet-checks li, .fragment li { display: flex; gap: 10px; padding: 7px 10px; background: var(--surface); }
.sheet-checks li::before, .fragment li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; border: 2px solid var(--ink); }
.sheet-checks .is-done::before, .fragment .is-done::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E") center / 100% no-repeat; }
.sheet-checks .is-done, .fragment .is-done { color: var(--muted); }
.sheet-comment { margin: 20px 0 0; padding: 14px 16px; background: var(--sage); }
.sheet-comment strong { display: block; font-weight: 500; }

@media (max-width: 900px) {
  .papers { display: block; padding: 0; }
  .papers-index { padding: var(--pad) var(--m) 2rem; }
  .papers-tabs { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 1rem 0 1.5rem; }
  .papers-tabs button { font-size: 1.375rem; min-height: 44px; }
  .papers-stage { height: 70svh; min-height: 460px; }
  .sheet { top: 16px; left: 16px; }
}

/* ---------- stages: drag through the four steps ---------- */

.stages { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; min-height: 88svh; }
.stages-text { padding: var(--pad) var(--m) 2rem; background: var(--accent); }
.stages-text h2 { font-size: var(--step-lead); letter-spacing: 0; }
.clause-title { max-width: 14ch; margin: 1.5rem 0 1rem; font-family: var(--display); font-weight: 900; font-size: clamp(2.5rem, 4.6vw, 4.75rem); line-height: .92; letter-spacing: -.03em; text-transform: uppercase; text-wrap: balance; }
.clause p:last-child { max-width: 40ch; margin: 0; }
.clause:not(.is-on) { display: none; }
.clause.is-on { animation: swap .2s ease-out; }
@keyframes swap { from { opacity: 0; } }

.stages-ui { display: grid; place-items: center; padding: 3rem var(--m); background: var(--sage); }
.fragment { position: relative; width: min(440px, 100%); padding: 24px; background: var(--bg); font-size: 15px; }
.fragment-head { display: flex; justify-content: space-between; margin: 0 0 14px; }
.fragment-head strong { font-family: var(--display); font-weight: 900; font-size: 20px; text-transform: uppercase; }
.fragment li { transition: background-color .2s, color .2s; }
.fragment li.is-now { background: var(--yellow); }

.stages-control { grid-column: 1 / -1; padding: 1.5rem 28px 2rem; background: var(--ink); color: var(--ink-on-dark); }
.stage-range {
  --fill: 0%;
  display: block;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}
.stage-range::-webkit-slider-runnable-track { height: 8px; background: linear-gradient(to right, var(--ink-on-dark) var(--fill), #555 var(--fill)); }
.stage-range::-moz-range-track { height: 8px; background: linear-gradient(to right, var(--ink-on-dark) var(--fill), #555 var(--fill)); }
.stage-range::-webkit-slider-thumb { appearance: none; width: 32px; height: 32px; margin-top: -12px; border: 0; background: var(--accent); }
.stage-range::-moz-range-thumb { width: 32px; height: 32px; border: 0; border-radius: 0; background: var(--accent); }
.stage-range:focus-visible { outline: 3px solid var(--ink-on-dark); outline-offset: 4px; }
.stage-names { display: grid; grid-template-columns: repeat(4, 1fr); margin: .75rem 0 0; padding: 0; list-style: none; color: #9a9a9a; }
.stage-names li:nth-child(2) { text-align: center; translate: -16% 0; }
.stage-names li:nth-child(3) { text-align: center; translate: 16% 0; }
.stage-names li:last-child { text-align: right; }
.stage-names .is-on { color: var(--ink-on-dark); font-weight: 500; }

@media (max-width: 760px) {
  .stages { grid-template-columns: 1fr; grid-template-rows: auto; }
  .stages-ui { order: -1; min-height: 46svh; align-items: start; padding: 1.5rem 16px; overflow: hidden; }
  .stages-control { order: 0; padding: 1rem 20px 1.25rem; }
  .stage-range { height: 40px; }
  .stage-range::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: -16px; }
  .stage-range::-moz-range-thumb { width: 40px; height: 40px; }
  .stage-names { grid-template-columns: 1fr 1fr; gap: .25rem; font-size: .9375rem; }
  .stage-names li { text-align: left !important; translate: none !important; }
  .stages-text { order: 1; padding-top: 2.5rem; }
  .clause-title { font-size: 9vw; }
}

/* ---------- scrub: the section stays on screen while the scroll steps through it ---------- */

.scrub.is-on { height: calc(100svh + (var(--n) - 1) * 70svh); }
.scrub.is-on > section { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: hidden; }
.scrub.is-on .papers-stage { height: 100%; min-height: 0; }
.scrub.is-on .stages { grid-template-rows: minmax(0, 1fr) auto; }
.scrub.is-on .stages-ui { overflow: hidden; }
.fragment ul { transition: transform .3s var(--ease); }
@media (max-width: 900px) {
  .scrub.is-on .papers { display: flex; flex-direction: column; }
  .scrub.is-on .papers-index { padding: 1.25rem var(--m) .5rem; }
  .scrub.is-on .papers-tabs { flex-wrap: nowrap; gap: .75rem; margin: .25rem 0 0; }
  .scrub.is-on .papers-tabs button { font-size: clamp(.9375rem, 4.2vw, 1.375rem); white-space: nowrap; }
  .scrub.is-on .papers-index > p { display: none; }
  .scrub.is-on .papers-stage { flex: 1; height: auto; }
}
/* phones: the document reflows to the screen width instead of being cropped */
@media (max-width: 640px) {
  .scrub.is-on .sheet { top: 12px; left: 12px; right: 12px; width: auto; min-height: 0; padding: 18px 16px; font-size: 13px; }
  .scrub.is-on .sheet-head { margin-bottom: 14px; }
  .scrub.is-on .sheet-head strong { font-size: 17px; }
  .scrub.is-on .sheet-to { margin-bottom: 10px; }
  .scrub.is-on .sheet th, .scrub.is-on .sheet td { padding: 6px 0; }
  .scrub.is-on .sheet td small { font-size: 12px; }
  .scrub.is-on .sheet-note { margin-top: 10px; }
  .scrub.is-on .sheet-action, .scrub.is-on .sheet-stamp { margin-top: 14px; }
  .scrub.is-on .sheet-action span { padding: 10px; }
  .scrub.is-on .sheet-bar { margin-bottom: 10px; }
  .scrub.is-on .sheet-checks li { padding: 3px 8px; }
  .scrub.is-on .sheet-comment { margin-top: 10px; padding: 10px 12px; }
}
@media (max-width: 760px) {
  .scrub.is-on .stages { display: flex; flex-direction: column; }
  .scrub.is-on .stages-ui { flex: 1; min-height: 0; padding: 12px 16px 0; }
  .scrub.is-on .fragment { max-height: 100%; overflow: hidden; padding: 14px; font-size: 13px; }
  /* the list slides under the header, never over it */
  .scrub.is-on .fragment-head { position: relative; z-index: 1; margin: -14px -14px 0; padding: 14px 14px 8px; background: var(--bg); }
  .scrub.is-on .fragment-head strong { font-size: 16px; }
  .scrub.is-on .fragment li { padding: 4px 8px; }
  .scrub.is-on .fragment li::before { width: 14px; height: 14px; }
  .scrub.is-on .stages-control { padding: .75rem 20px 1rem; }
  .scrub.is-on .stages-text { padding: 1rem 20px 1.25rem; }
  .scrub.is-on .stages-text h2 { display: none; }
  .scrub.is-on .clause-title { margin: 0 0 .5rem; font-size: 7.5vw; }
  .scrub.is-on .clause p:last-child { font-size: 1rem; }
}

/* ---------- duo: two columns, highlighted words ---------- */

.duo { padding: var(--pad) var(--m); }
.duo h2 { margin-bottom: 2rem; }
.duo-text {
  margin: 0;
  columns: 2;
  column-gap: 32px;
  color: var(--text-soft);
  font-size: clamp(1.375rem, 2.1vw, 2rem);
  line-height: 1.18;
  hyphens: auto;
  text-wrap: pretty;
}
.duo-text strong { color: var(--text); font-weight: 500; }
.hero-lead mark, .duo-text mark { padding: 0 .1em; color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.duo-people { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)) 1fr; gap: var(--g); margin-top: clamp(2.5rem, 5vw, 4rem); }
/* the action fills the space beside the portraits; below 1100px it moves under them */
.duo-next { align-self: center; padding-left: clamp(1rem, 6vw, 6rem); }
@media (max-width: 1100px) {
  .duo-people { grid-template-columns: 1fr 1fr; }
  .duo-next { grid-column: 1 / -1; margin-top: clamp(1.5rem, 4vw, 2.5rem); padding-left: 0; }
}
.duo-next .duo-end { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); line-height: 1.1; }
.duo-next p { max-width: 38ch; margin: 1rem 0 0; }
.duo-person { margin: 0; }
.duo-person img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
/* stand-in until the real photo: a plain head-and-shoulders silhouette */
.duo-shadow { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.duo-shadow::before, .duo-shadow::after { content: ""; position: absolute; background: color-mix(in srgb, var(--text) 14%, var(--surface)); }
.duo-shadow::before { top: 20%; left: 33%; width: 34%; aspect-ratio: 1; border-radius: 50%; }
.duo-shadow::after { left: 12%; bottom: -10%; width: 76%; height: 45%; border-radius: 50% 50% 0 0 / 60% 60% 0 0; }
.duo-person figcaption { margin-top: .6rem; font-size: 1rem; }
.duo-person strong { display: block; font-weight: 500; }
.hl-sage { background: var(--sage); }
.hl-yellow { background: var(--yellow); }
.hl-orange { background: var(--accent); }
.duo-end { padding: 0 .1em; background: var(--text); color: var(--page); text-decoration: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.duo-end:hover { background: var(--accent); color: var(--ink); }
@media (max-width: 760px) {
  .duo-text { columns: 1; font-size: 1.25rem; line-height: 1.25; }
  .duo-end { display: block; width: fit-content; margin-top: 24px; padding: .5rem .25rem; }
}

/* ---------- reviews (only once real reviews are approved) ---------- */

.reviews { padding: var(--pad) var(--m); background: var(--surface); }
.reviews-average { margin: 1rem 0 2rem; font-size: var(--step-lead); font-weight: 500; }
.reviews-average small { font-size: var(--step-small); font-weight: 400; }
.review-grid { columns: 3 280px; column-gap: var(--g); }
.review { break-inside: avoid; margin: 0 0 var(--g); padding: 1.5rem; background: var(--page); }
.review-stars { margin: 0 0 .5rem; letter-spacing: .15em; }
.review blockquote { margin: 0 0 1rem; font-size: var(--step-lead); line-height: 1.3; }
.review figcaption { font-size: var(--step-small); }

/* ---------- faq: a band per question, answers always visible ---------- */

.faq-title {
  display: flex;
  align-items: flex-end;
  min-height: 40svh;
  padding: 2rem var(--m);
  background: var(--accent);
  font-size: clamp(3rem, 7vw, 7rem);
}
.band { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--g); padding: 56px var(--m); }
.band:nth-of-type(even) { background: var(--sage); }
.band h3 { grid-column: 1 / 6; font-weight: 500; font-size: clamp(1.375rem, 1.1rem + .8vw, 2rem); line-height: 1.2; }
.band p { grid-column: 7 / -1; max-width: 60ch; margin: 0; line-height: 1.5; }
@media (max-width: 760px) {
  .faq-title { min-height: 30svh; font-size: 13vw; }
  .band { display: block; padding: 32px 20px; }
  .band p { margin-top: .75rem; font-size: 1.0625rem; }
}

/* ---------- contact: the form as a coupon to cut out ---------- */

.contact { padding: var(--pad) var(--m); background: var(--ink); }
.coupon {
  --notch: 28px;
  position: relative;
  display: grid;
  grid-template-columns: 46fr 54fr;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--accent);
  /* notches bitten out of the top and bottom edges at the tear line */
  -webkit-mask: radial-gradient(circle at 46% 0, #0000 calc(var(--notch) / 2), #000 calc(var(--notch) / 2 + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at 46% 100%, #0000 calc(var(--notch) / 2), #000 calc(var(--notch) / 2 + .5px)) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 46% 0, #0000 calc(var(--notch) / 2), #000 calc(var(--notch) / 2 + .5px)) top / 100% 51% no-repeat, radial-gradient(circle at 46% 100%, #0000 calc(var(--notch) / 2), #000 calc(var(--notch) / 2 + .5px)) bottom / 100% 51% no-repeat;
}
.coupon-text { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 48px; }
.coupon-text h2 { font-size: clamp(2.25rem, 4vw, 3.75rem); }
.coupon-text p { max-width: 36ch; margin: 0; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.coupon .contact-form { padding: 48px; border-left: 5px dotted var(--ink); }
.field { display: grid; align-content: start; padding: .5rem .85rem .25rem; background: color-mix(in srgb, var(--accent) 45%, #fff); }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 500; }
.field label small { font-size: inherit; font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  min-height: 40px;
  padding: .25rem 0 .4rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: 400 1rem/1.4 var(--text-font);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; }
.field:focus-within { outline: 3px solid currentColor; outline-offset: -3px; background: var(--page); color: var(--text); }
.check { display: flex; gap: .65rem; align-items: baseline; margin-top: .25rem; font-size: .9375rem; cursor: pointer; }
.check input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--ink); translate: 0 .15em; }
.form-estimate { font-weight: 500; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: grid; gap: .75rem; margin-top: .5rem; }
.btn--bar { width: 100%; min-height: 56px; background: var(--ink); color: var(--bg); }
.btn--bar:hover { background: var(--bg); color: var(--ink); }
.form-status { margin: 0; font-weight: 500; }
.form-status:empty { display: none; }
.field-error { grid-column: 1 / -1; margin: -4px 0 4px; padding: .3rem .6rem; background: var(--ink); color: var(--ink-on-dark); font-size: var(--step-small); }
.field[aria-invalid="true"], .field:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 3px var(--ink); }

@media (max-width: 900px) {
  .contact { padding-inline: 12px; }
  .coupon {
    grid-template-columns: 1fr;
    -webkit-mask: radial-gradient(circle at 0 var(--tear, 50%), #0000 calc(var(--notch) / 2), #000 calc(var(--notch) / 2 + .5px)) left / 51% 100% no-repeat, radial-gradient(circle at 100% var(--tear, 50%), #0000 calc(var(--notch) / 2), #000 calc(var(--notch) / 2 + .5px)) right / 51% 100% no-repeat;
    mask: none;
  }
  .coupon-text { padding: 28px 20px; }
  .contact-form { grid-template-columns: 1fr; }
  .coupon .contact-form { padding: 24px 20px 28px; border-left: 0; border-top: 5px dotted var(--ink); }
  .field input { min-height: 44px; }
}

/* ---------- footer: the last two rows of a board ---------- */

.footer {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  padding: 8px;
  background: var(--ink);
}
.ft { margin: 0; padding: 20px; background: var(--page); min-height: 220px; }
.ft a { text-decoration-thickness: 1px; }
.ft-statement { grid-column: 1 / 5; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.ft-statement p:first-child { margin: 0; font-size: var(--step-lead); line-height: 1.25; }
.ft-legal { margin: 0; font-size: var(--step-small); }
.ft-nav { grid-column: 5 / 8; display: grid; align-content: start; gap: .35rem; background: var(--sage); }
.ft-nav a { text-decoration: none; }
.ft-nav a:hover { text-decoration: underline; }
.ft-mail { grid-column: 8 / -1; display: flex; align-items: flex-end; font-size: 1.25rem; overflow-wrap: anywhere; }
.ft-mark {
  grid-column: 1 / 9;
  display: grid;
  place-items: center;
  min-height: 320px;
  background: #1a1a1a;
  color: var(--ink-on-dark);
  font-family: var(--display);
  font-weight: 900;
  font-size: 9vw;
  line-height: .9;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-align: center;
}
.ft-call { grid-column: 9 / -1; position: relative; min-height: 320px; background: var(--accent); font-size: 1.75rem; font-weight: 500; line-height: 1.15; text-decoration: none; transition: background-color .15s; }
.ft-call:hover { background: var(--yellow); }
.ft-call svg { position: absolute; right: 20px; bottom: 20px; width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 4; }

@media (max-width: 760px) {
  .footer { grid-template-columns: 1fr 1fr; gap: 6px; }
  .ft { min-height: 0; }
  .ft-mark { grid-column: 1 / -1; order: -2; min-height: 160px; font-size: 15vw; }
  .ft-call { grid-column: 1 / -1; order: -1; min-height: 160px; font-size: 1.375rem; }
  .ft-nav, .ft-mail { grid-column: span 1; }
  .ft-mail { align-items: flex-start; font-size: 1rem; }
  .ft-statement { grid-column: 1 / -1; }
  body:has(.mobile-cta) .footer { padding-bottom: 5.5rem; }
}

/* ---------- sticky actions on phones ---------- */

.mobile-cta { display: none; }
@media (max-width: 760px) {
  /* a floating glass bar: the page shows through, blurred, as it scrolls underneath */
  .mobile-cta {
    position: fixed;
    inset: auto 10px calc(10px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--glass-edge);
    border-radius: 999px;
    background: var(--glass-light);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-depth);
    transition: transform .3s var(--ease);
  }
  .mobile-cta .btn { min-height: 48px; padding: .6rem .5rem; border-radius: 999px; background: var(--text); color: var(--page); font-size: .9375rem; }
  .mobile-cta .btn--line { box-shadow: none; background: var(--glass-button); color: var(--text); }
  .mobile-cta.is-hidden { transform: translateY(calc(100% + 20px)); }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-cta, .float-nav, .slot-bar, .toast { background: var(--page); }
  .compare-tag, .compare-handle::after { background: rgba(20, 20, 20, .8); }
  @media (max-width: 900px) { .ticket-stub { background: var(--page); } }
}

/* booking, phones: once a slot is picked, a glass capsule recalls it and leads to the form */
.slot-bar { display: none; }
@media (max-width: 760px) {
  .slot-bar {
    position: fixed;
    inset: auto 10px calc(10px + env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 6px 6px 6px 1.1rem;
    border: 1px solid var(--glass-edge);
    border-radius: 999px;
    background: var(--glass-light);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-depth);
    transition: transform .3s var(--ease);
  }
  .slot-bar[hidden], .slot-bar.is-hidden { display: flex; transform: translateY(calc(100% + 20px)); }
  .slot-bar p { flex: 1; margin: 0; font-weight: 500; line-height: 1.25; }
  .slot-bar .btn { min-height: 48px; border-radius: 999px; background: var(--text); color: var(--page); }
}

/* after the contact form is sent: a glass bubble that says it arrived */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100% - 32px);
  width: max-content;
  padding: .9rem 1.4rem;
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-depth);
  font-weight: 500;
  text-align: center;
  translate: -50% 0;
  transition: opacity .3s, translate .4s var(--ease);
}
.toast.is-out { opacity: 0; translate: -50% 20px; }
@media (max-width: 760px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } } /* above the action bar */

/* ---------- trade pages (metier.php), booking, 404 ---------- */

.trade-hero { padding: clamp(3rem, 10vh, 6rem) var(--m) var(--pad); }
.trade-hero:has(.trade-pic) { display: grid; grid-template-columns: 7fr 5fr; column-gap: clamp(1.5rem, 4vw, 4rem); align-content: start; }
.trade-hero > * { grid-column: 1; }
.trade-pic { grid-column: 2; grid-row: 1 / span 4; align-self: start; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.trade-hero .hero-ctas { margin-top: 2rem; }
.trade-kicker { margin: 0 0 1rem; font-size: var(--step-lead); }
.trade-title { max-width: 18ch; margin-bottom: 1.5rem; font-size: clamp(2.5rem, 5.5vw, 5.5rem); }
@media (max-width: 760px) {
  .trade-hero:has(.trade-pic) { grid-template-columns: 1fr; }
  .trade-pic { grid-column: 1; grid-row: auto; order: -1; aspect-ratio: 16 / 9; margin-bottom: 1.5rem; }
  .trade-title { font-size: 8vw; }
}
.trade-intro { max-width: 52ch; margin: 0; font-size: var(--step-lead); line-height: 1.35; }
.trade-needs { padding: var(--pad) var(--m); background: var(--sage); }
.trade-needs h2, .trade-offer h2 { margin-bottom: 2.5rem; }
.needs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.need { padding: 1.5rem; background: var(--page); color: var(--text); }
.need h3 { margin-bottom: .5rem; }
.need p { margin: 0; }
.trade-offer { padding: var(--pad) var(--m); background: var(--ink); color: var(--ink-on-dark); }
.offer-card { max-width: 820px; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--accent); color: var(--ink); }
.offer-card ul { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.offer-card li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .8rem 0; border-top: 2px solid var(--ink); }
.offer-card li small { display: block; font-size: var(--step-small); }
.offer-total { margin: 0 0 1.5rem; font-size: var(--step-lead); }
.offer-total strong { font-family: var(--display); font-weight: 900; font-size: clamp(2.5rem, 5vw, 3.5rem); }
.offer-total small { display: block; font-size: var(--step-small); }
.offer-card .btn { background: var(--ink); color: var(--bg); }
.offer-card .btn:hover { background: var(--bg); color: var(--ink); }
.trade-example { padding: var(--pad) var(--m); background: var(--yellow); }
.trade-example .shot { max-width: 900px; height: auto; }
.trade-example .shot img { height: auto; }
.trade-example p { max-width: 52ch; margin: 1rem 0 0; font-size: var(--step-lead); }
.trade-cta { display: grid; gap: 1.5rem; padding: var(--pad) var(--m); background: var(--accent); }
.trade-cta h2 { font-size: var(--step-display); }
.trade-cta .btn { background: var(--ink); color: var(--bg); }
.trade-cta .btn:hover { background: var(--bg); color: var(--ink); }

.booking-form { display: grid; gap: 1.5rem; padding: 0 var(--m) var(--pad); max-width: 1100px; }
.booking-hero { padding-bottom: 2.5rem; }
.booking-hero .trade-pic { aspect-ratio: 3 / 2; }
.booking-form .field { background: var(--surface); }
.slots { grid-column: 1 / -1; margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.slots legend { margin-bottom: 1rem; padding: 0; font-family: var(--display); font-weight: 900; font-size: var(--step-lead); text-transform: uppercase; }
.slot-day { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; align-items: baseline; padding: .9rem 0; border-top: 2px solid var(--ink); }
.slot-date { margin: 0; font-weight: 500; }
.slot-times { display: flex; flex-wrap: wrap; gap: 6px; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .9rem; background: var(--surface); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s; }
.slot:hover span { background: var(--sage); }
.slot input:checked + span { background: var(--text); color: var(--page); }
.slot input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.slot.is-taken span { color: var(--muted); text-decoration: line-through; cursor: default; background: transparent; }
.slot.is-taken small { text-decoration: none; }
.hint { margin: 0; color: var(--muted); font-size: var(--step-small); }
.booking .form-status { margin: 0; }
@media (max-width: 640px) {
  .slot-day { grid-template-columns: 1fr; gap: .5rem; }
}

/* ---------- legal pages ---------- */

.legal { max-width: 72ch; padding: clamp(3rem, 10vh, 6rem) var(--m) var(--pad); }
.legal h1 { margin-bottom: 2.5rem; font-size: clamp(2.6rem, 6vw, 4.5rem); }
.legal h2 { margin: 2.5rem 0 .75rem; font-size: var(--step-lead); letter-spacing: 0; }
.legal h3 { margin: 1.75rem 0 .5rem; font-size: 1.125rem; }
.legal p { margin: 0 0 1rem; }
.legal-form { margin: 1rem 0 0; padding: 1.25rem 1.5rem; background: var(--surface); }

/* ---------- page transitions ---------- */
/* Same-site links fade and slide instead of a hard reload (browsers that support cross-document view transitions;
   others just load the page). The wordmark and the page title morph from one page to the next. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .logo { view-transition-name: wordmark; }
  .hero-title, .trade-title, .legal h1 { view-transition-name: page-title; }
  ::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  ::view-transition-old(root) { animation: .25s ease-in both page-out; }
  ::view-transition-new(root) { animation: .45s cubic-bezier(.16, 1, .3, 1) both page-in; }
}
@keyframes page-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}

/* static pages (legal, CGV): one row of tiles */
.footer--short { display: flex; flex-wrap: wrap; }
.footer--short > * { flex: 1 1 200px; padding: 20px; background: var(--page); }
