/* HauteRenovation page CSS: only what sits inside a visual or the kit lacks (taste-skill system.css stays the system). */


/* page transitions between pages (cross-document View Transitions; browsers without it simply navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms cubic-bezier(.2,.8,.2,1) both vt-out; }
::view-transition-new(root) { animation: 280ms cubic-bezier(.22,1,.36,1) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the client's logo */
.nav__logo { display: inline-flex; align-items: center; }
.logo-svg { height: 34px; width: auto; display: block; overflow: visible; }
.lg-t { fill: var(--ink); }
.lg-haute { fill: var(--p-accent); }
.lg-ring { fill: none; stroke: var(--p-accent); stroke-width: 4.5px; }
.lg-house { fill: var(--ink); }
@media (max-width: 639px) { .logo-svg { height: 28px; } }

/* the phone number in the bar */
.ic-phone { width: 16px; height: 16px; flex: none; }
.nav__tel { display: inline-flex; align-items: center; gap: var(--s-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav__tel .ic-phone { color: var(--p-accent); }
.nav__tel-label { color: var(--muted); }
@media (max-width: 1279px) { .nav__tel-label { display: none; } }
@media (max-width: 1023px) { .nav__tel { display: none; } }
.btn .ic-phone { margin-right: var(--s-2); }

/* the hero's phone, holding the client's film: every size from its width, so it keeps an iPhone's shape at any size */
.hero__media--phone { background: var(--surface); container-type: size; --ph: min(660px, calc(100cqh - 56px)); --pw: calc(var(--ph) * .485); }
.phone {
  --ph: min(660px, calc(100cqh - 56px)); --pw: calc(var(--ph) * .485);
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: var(--ph); width: var(--pw);
  padding: calc(var(--pw) * .036); border-radius: calc(var(--pw) * .16); background: #0b0f13;
  box-shadow: inset 0 0 0 1.5px #4a525a, inset 0 0 0 calc(var(--pw) * .012) #1b2127, 0 40px 80px -36px rgb(20 33 43 / .55), 0 16px 32px -20px rgb(20 33 43 / .35);
}
.phone::before { /* the side button */
  content: ""; position: absolute; right: -3px; top: 24%; width: 3px; height: 11%; border-radius: 0 2px 2px 0; background: #2a3036;
}
.phone::after { /* the action button and the volume keys */
  content: ""; position: absolute; left: -3px; top: 16%; width: 3px; height: 4%; border-radius: 2px 0 0 2px; background: #2a3036;
  box-shadow: 0 calc(var(--ph) * .07) 0 #2a3036, 0 calc(var(--ph) * .07) 0 0 #2a3036, 0 calc(var(--ph) * .14) 0 #2a3036;
}
.phone__screen { position: relative; height: 100%; border-radius: calc(var(--pw) * .124); overflow: hidden; background: #0f1d26; isolation: isolate; }
.phone__screen::after { /* the camera island */
  content: ""; position: absolute; top: calc(var(--pw) * .03); left: 50%; width: 31%; height: calc(var(--pw) * .088); translate: -50% 0; border-radius: 999px; background: #000; z-index: 2;
}
.phone__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone__controls { position: absolute; left: calc(100% + 18px); bottom: max(118px, 20%); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.phone__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); padding: 0;
  background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.phone__btn:hover { border-color: var(--ink); }
.phone__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.phone__btn .i-play { fill: currentColor; stroke: none; }
.phone__btn .i-play, .phone__btn .i-on { display: none; }
.phone__btn[aria-pressed="true"] .i-play, .phone__btn[aria-pressed="true"] .i-on { display: block; }
.phone__btn[aria-pressed="true"] .i-pause, .phone__btn[aria-pressed="true"] .i-off { display: none; }
.phone__sound[aria-pressed="false"] { background: var(--p-action); border-color: var(--p-action); color: var(--p-action-ink); }
@media (max-width: 1023px) { .phone { --ph: calc(100cqh - 24px); } }

/* list rows that link to a page */
.rows .rows__name a { color: inherit; text-decoration: none; }
.rows .rows__name a:hover { color: var(--action); }
.rows--compact > li { padding-block: var(--s-3); }
.rows--steps { counter-reset: step; }
.rows--steps > li { counter-increment: step; }
.rows--steps .rows__name::before { content: counter(step) ". "; color: var(--muted); font-variant-numeric: tabular-nums; }
.stack-list { display: flex; flex-direction: column; gap: var(--s-6); }
.stack-list > .section-head { margin-bottom: 0; }
.stack-list .btn-row { margin-top: 0; }

/* work cards: one height a row, the photograph at 4:3 */
.card--work { display: flex; flex-direction: column; gap: var(--s-3); text-decoration: none; color: inherit; }
.card--work .work__frame { aspect-ratio: 16 / 9; height: auto; overflow: hidden; border-radius: var(--r-lg); }

.card--work .frame__img { width: 100%; height: 100%; object-fit: cover; }
.card--work p { margin: 0; color: var(--muted); }

/* reviews from AlloVoisins (the client's real profile) */

/* picture-develops frame */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(600px, var(--ly-fit, 600px)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }

.faq__after { margin-top: var(--s-6); }

/* communes */
.communes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--gutter); }
.communes h3 { margin: 0 0 var(--s-2); color: var(--muted); }

/* the quote form */
.form--devis .form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-5); }
.form--devis .field--wide { grid-column: 1 / -1; }
.form--devis select, .form--devis textarea, .form--devis input[type="file"] { width: 100%; font: inherit; }
.form--devis textarea { min-height: 112px; resize: vertical; }
.form--devis .field--check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; }
.form--devis .field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--p-accent); }
.form--devis .field--check label { font-size: var(--t-small); line-height: 1.5; }
.form--devis .field--check .field__error { grid-column: 2; }
.form--devis .btn-row { margin-top: var(--s-6); }
@media (max-width: 639px) { .form--devis .form__grid { grid-template-columns: 1fr; } }
.contact__urgent { padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-inv-bg); color: var(--p-inv-ink); display: grid; gap: var(--s-3); }
.contact__urgent .t-label { color: var(--p-inv-muted); margin: 0; }
.contact__urgent p { margin: 0; }
.contact__urgent .btn { justify-self: start; }

/* the close: address and hours under the head row */
.close__visit { margin-top: auto; }
.footer__contact { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer__contact a { overflow-wrap: anywhere; }
.hours { display: grid; grid-template-columns: auto auto; gap: var(--s-2) var(--s-6); margin: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 500; }
@media (max-width: 639px) { .hours { grid-template-columns: 1fr; gap: 0; } .hours dd { margin-bottom: var(--s-3); } }

/* legal and short text pages */
.section--text .legal { max-width: 68ch; }
.section--text .legal h2 { font-size: var(--t-lead); margin: var(--s-7) 0 var(--s-3); }
.t-h2 { font: var(--display-weight) var(--t-h2)/1.08 var(--font-display); letter-spacing: var(--display-tracking); }

/* the phone bar: two buttons */
.actionbar { display: none; }
@media (max-width: 639px) { .actionbar { display: flex; gap: var(--s-3); } .actionbar .btn { flex: 1 1 0; } }

/* hero facts at the foot of the words column (home page) */
.hero__text { display: flex; flex-direction: column; height: 100%; }
.hero__text > .hero-facts { margin-top: auto; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s-6); border-top: 1px solid var(--line); padding-top: var(--s-5); }
.hero-facts > div { display: grid; gap: var(--s-1); }
.hero-facts dt { font-size: var(--t-small); color: var(--muted); }
.hero-facts dd { margin: 0; font-weight: 500; }
@media (max-width: 1023px) { .hero-facts { display: none; } .hero__text { height: auto; } }

/* phone: the peek lists' photograph shorter, so each section stays one screen */
@media (max-width: 639px) { .grid.fill[data-peek] > .frame--fill { aspect-ratio: 2 / 1; height: auto; flex: none; min-height: 0; } #services .section-head p { display: none; } }

/* reviews under the works (merged: a quote row is never a section of its own) */
.reviews { margin-top: var(--s-8); }
.reviews__head { margin: 0 0 var(--s-5); }
.review { margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--line); display: grid; gap: var(--s-3); }
.review blockquote { margin: 0; font-size: var(--t-lead); line-height: 1.45; }
.review figcaption { font-size: var(--t-small); color: var(--muted); }
@media (min-width: 640px) and (max-width: 1023px) { .work-grid > .span-4, .reviews .grid > .review { grid-column: auto / span 4; } .card--work .work__frame { aspect-ratio: 3 / 4; } .review blockquote { font-size: var(--t-body); } }
@media (max-width: 639px) { .reviews .grid > .review { grid-column: 1 / -1; } }

/* footer links on the grid */
.footer__nav.grid { display: grid; gap: var(--s-3) var(--gutter, 24px); }
.footer__group { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
@media (max-width: 639px) { .footer__nav.grid > .footer__group { grid-column: 1 / -1; } }

/* phone: row links and their tap size; the emergency section on two screens */
@media (max-width: 639px) {
  .rows .rows__name a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__group a { display: inline-flex; align-items: center; min-height: 44px; }
  #urgences .section-head p, #urgences .btn-row { display: none; }
  #urgences .grid.fill, #services .grid.fill { height: auto; flex: none; min-height: auto; }
  .reviews .review:nth-child(n+2) { display: none; }
  .work-grid > .card--work { grid-column: auto / span 6; }
  .work-grid--home > .card--work:nth-child(3) { display: none; }
  .card--work .work__frame { aspect-ratio: 1 / 1; }
  .card--work .t-card { font-size: var(--t-body); }
  .close__visit > [class*="span-"], .footer__nav.grid > .footer__group { grid-column: 1 / -1; }
  .footer__address { font-size: var(--t-h3); }
  .closing__cta .section-head--split { flex-direction: column; align-items: stretch; gap: var(--s-5); }
  .closing__cta .section-head--split > .btn { width: 100%; justify-content: center; }
}
@media (max-width: 639px) { #etapes:not(.is-live) .mo-pc__step:nth-child(n+2) .mo-pc__visual { display: none; } }

/* phone: the home hero gives the film more room */
@media (max-width: 639px) {
  .hide-phone { display: none; }
  .hero:has(.hero__media--phone) .hero__kicker { display: none; }
  .hero:has(.hero__media--phone) .hero__media--phone { min-height: 272px; }
}

/* the call card beside the questions */
.call-card { padding: var(--s-7) var(--s-6); border-radius: var(--r-lg); background: var(--p-inv-bg); color: var(--p-inv-ink); display: grid; gap: var(--s-3); align-content: start;
  --ink: var(--p-inv-ink); --muted: var(--p-inv-muted); --line: color-mix(in oklab, var(--p-inv-ink) 16%, transparent); }
.call-card p { margin: 0; }
.call-card .t-label { color: var(--p-inv-muted); }
.call-card__tel a { font: var(--display-weight) var(--t-h3)/1.1 var(--font-display); color: var(--p-inv-ink); text-decoration: none; letter-spacing: -0.01em; }
.call-card__tel a:hover { color: #f0a67c; }
.call-card hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-3) 0; width: 100%; }
.call-card .btn { justify-self: start; margin-top: var(--s-2); }
@media (max-width: 1023px) { .call-card { margin-top: var(--s-7); } }
/* the works page: six photographs, 3 x 2 */
.work-grid--all .work__frame { aspect-ratio: 16 / 9; }
@media (max-width: 639px) { .work-grid--all > .card--work { grid-column: auto / span 6; } .work-grid--all .work__frame { aspect-ratio: 1 / 1; } }
/* inner pages: long lists on small screens */
@media (min-width: 1024px) and (max-width: 1279px) { #chantier .rows--compact li p, #chantier .t-small.measure { display: none; } }
@media (max-width: 639px) { #questions, #chantier:has(.rows--compact) { --hm: 2; } .work-grid--all .work__frame { aspect-ratio: 4 / 3; } }
@media (min-width: 640px) and (max-width: 1023px) { .work-grid--all > .card--work { grid-column: auto / span 4; } .work-grid--all .work__frame { aspect-ratio: 3 / 4; } }
@media (min-width: 800px) and (max-width: 1023px) and (min-height: 1100px) { .work-grid--all .work__frame { aspect-ratio: 9 / 14; } }
@media (min-width: 1024px) and (max-width: 1279px) { .section--list:not(:has([data-peek])) .section-head p { display: none; } }
@media (max-width: 639px) { .section--list:not(:has([data-peek])):has(.rows > li:nth-child(5)) { --hm: 2; } }
@media (min-width: 1024px) and (max-width: 1279px) { .section--list .rows > li { padding-block: var(--s-2); } .section--list .rows > li p { margin-top: 0; } }

/* never overlap: on a window shorter than the content, a section grows instead of spilling into the next one
   (the kit sizes every section at exactly one or two screens; a short laptop window or a zoomed page cannot hold that) */
@media (min-width: 640px) {
  main > :is(section, .section):not(.hero, [data-moment]), footer.closing { display: flex; flex-direction: column; height: auto; min-height: calc(var(--h, 1) * 100svh); }
  main > :is(section, .section):not(.hero, [data-moment]) > :is(.wrap, .container), footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
  main > :is(section, .section) > .wrap > .fill { flex: 1 0 auto; min-height: auto; }
  main > .hero { height: auto; min-height: 100svh; }
  main > .hero > .wrap { height: auto; }
  .grid.fill > .frame--fill { height: auto; min-height: 320px; align-self: stretch; }
  .hero__media--phone { min-height: 520px; }
}
@media (min-width: 1024px) { .hero--split .hero__media { min-height: max(420px, calc(100svh - 184px)); } }
@media (min-width: 640px) and (max-width: 1023px) { .hero--split .hero__media { min-height: 360px; } }

/* 404 */
.page404__links { display: grid; gap: var(--s-3); align-content: start; }
.page404__links .t-label { color: var(--muted); margin: var(--s-4) 0 0; }
.page404__links .t-label:first-child { margin-top: 0; }

/* ================================================================ premium motion layer (client request)
   Everything here is added by site.js only when JavaScript runs and the visitor has not asked for reduced motion:
   without it, every word and picture stands where it is. */

/* scroll progress, a hairline in the accent under the bar */
.scroll-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--p-accent); z-index: 20; pointer-events: none; }
/* the bar lifts off the page once it scrolls */
.nav { transition: box-shadow .3s ease, background-color .3s ease; }
html.is-scrolled .nav { box-shadow: 0 10px 30px -18px rgb(20 33 43 / .35); }

/* headings rise word by word as they come in */
html.fx .fx-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
html.fx .fx-words .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--i) * 45ms); }
html.fx .fx-words.is-in .w > span { transform: none; }

/* blocks fade up, one after the other */
html.fx [data-reveal="up"] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--d, 0) * 90ms); }
html.fx [data-reveal="up"].is-in { opacity: 1; transform: none; }

/* photographs are uncovered by a wipe, then settle */
html.fx [data-reveal="wipe"] { clip-path: inset(0 0 100% 0 round var(--r-lg)); transition: clip-path 1.2s cubic-bezier(.77,0,.18,1); }
html.fx [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
html.fx [data-reveal="wipe"] img { transform: scale(1.18); transition: transform 1.6s cubic-bezier(.22,1,.36,1); }
html.fx [data-reveal="wipe"].is-in img { transform: scale(1.06); }

/* photographs drift inside their frame while the page scrolls (set by site.js as --py) */
html.fx [data-parallax] img { translate: 0 var(--py, 0px); scale: 1.08; }

/* hover: photographs follow the pointer a little, cards lift */
@media (hover: hover) and (pointer: fine) {
  .card--work { transition: transform .5s cubic-bezier(.22,1,.36,1); }
  .card--work:hover { transform: translateY(-6px); }
  .card--work .frame__img { transition: transform .9s cubic-bezier(.22,1,.36,1) !important; }
  .card--work:hover .frame__img { transform: scale(1.07) !important; }
  .card--work .t-card { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s cubic-bezier(.22,1,.36,1); justify-self: start; }
  .card--work:hover .t-card { background-size: 100% 1px; }
  [data-tilt] { transition: transform .6s cubic-bezier(.22,1,.36,1); transform: perspective(1200px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); will-change: transform; }
  .btn--primary[data-magnet] { transition: translate .4s cubic-bezier(.22,1,.36,1); translate: var(--mx, 0) var(--my, 0); }
  .rows > li { transition: padding-left .35s cubic-bezier(.22,1,.36,1); }
  .rows > li:hover { padding-left: var(--s-3); }
  .review { transition: transform .5s cubic-bezier(.22,1,.36,1); }
  .review:hover { transform: translateY(-4px); }
}

/* the communes running across the page */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: var(--s-5); margin-top: var(--s-8); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: var(--s-7); animation: marquee 40s linear infinite; }
.marquee__track span { font: var(--display-weight) var(--t-h3)/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; color: var(--muted); }
.marquee__track span::after { content: "·"; margin-left: var(--s-7); color: var(--p-accent); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; } }

/* the phone floats softly */


@media (prefers-reduced-motion: reduce) {
  html.fx [data-reveal], html.fx .fx-words .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  html.fx [data-parallax] img { translate: none; }
}

/* ================================================================ the phone's entrance on the home page
   It rises from below, lying back and turned like a phone picked up from a table, straightens in 3D, its screen
   lights up behind a sweep of light, then it floats. Pure CSS, from the first paint; at rest under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero__media--phone { perspective: 1600px; animation: panel-in 1.1s cubic-bezier(.77,0,.18,1) both; }
  .hero__media--phone .phone {
    transform-style: preserve-3d; transform-origin: 50% 80%;
    animation: phone-in 1.7s cubic-bezier(.16,1,.3,1) .25s both, phone-float 6s ease-in-out 2.2s infinite;
  }
  .hero__media--phone .phone__screen::before { /* the screen off, then a sweep of light as it wakes */
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / .55) 50%, transparent 65%) no-repeat, #05080b;
    background-size: 250% 100%, 100% 100%; background-position: 120% 0, 0 0;
    animation: screen-on 1.3s cubic-bezier(.65,0,.35,1) 1.05s both;
  }
  .hero__media--phone .phone__controls { animation: controls-in .6s cubic-bezier(.22,1,.36,1) 1.9s both; }
}
@keyframes panel-in { from { clip-path: inset(100% 0 0 0 round var(--r-lg)); } to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }
@keyframes phone-in {
  0%   { opacity: 0; transform: translateY(70%) rotateX(58deg) rotateZ(-14deg) scale(.82); filter: blur(6px) brightness(.6); }
  45%  { opacity: 1; filter: blur(0) brightness(.9); }
  70%  { transform: translateY(-3%) rotateX(-6deg) rotateZ(2deg) scale(1.02); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes screen-on {
  0%   { background-position: 120% 0, 0 0; opacity: 1; }
  55%  { background-position: -20% 0, 0 0; opacity: 1; }
  100% { background-position: -20% 0, 0 0; opacity: 0; }
}
@keyframes phone-float { 50% { translate: -50% calc(-50% - 8px); } }
@keyframes controls-in { from { opacity: 0; transform: translateX(-8px); } }

/* the cue that points at the phone: neon lettering in the accent, lit once the phone has landed */
.hero__media--phone { background: #101b23; }
.phone-cue { position: absolute; z-index: 2; right: calc(50% + var(--pw) / 2 - 6px); top: 18%; margin: 0; display: grid; justify-items: end; gap: var(--s-1); pointer-events: none; }
.phone-cue__text {
  position: relative;
  font: 400 clamp(20px, 1.9vw, 28px)/1.02 "Instrument Serif", Georgia, serif; letter-spacing: -0.01em; text-align: right; white-space: nowrap;
  color: #fff3ea;
  text-shadow: 0 0 2px #fff, 0 0 8px #ff8a4c, 0 0 18px #ff6a1f, 0 0 36px #e2541a, 0 0 64px rgb(226 84 26 / .7);
}
.phone-cue__text em { font-style: italic; color: #ffd2b8; }
.phone-cue__arrow {
  width: clamp(90px, 10vw, 150px); height: auto; margin-right: -46px; overflow: visible;
  stroke: #ffb38a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 3px #ff8a4c) drop-shadow(0 0 10px #ff6a1f) drop-shadow(0 0 22px rgb(226 84 26 / .8));
}
@media (prefers-reduced-motion: no-preference) {
  .phone-cue__text { animation: neon-hum 5s ease-in-out 3.8s infinite; }
  .phone-cue__text .l { display: inline-block; animation: letter-in .75s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(2s + var(--i) * 55ms); }
  .phone-cue__text::after { /* a flash of light across the word once it is whole */
    content: ""; position: absolute; inset: -10% -6%; pointer-events: none; mix-blend-mode: screen;
    background: linear-gradient(100deg, transparent 30%, rgb(255 236 220 / .9) 50%, transparent 70%) no-repeat;
    background-size: 220% 100%; background-position: 130% 0; animation: cue-flash .9s cubic-bezier(.65,0,.35,1) 3.15s both;
  }
  .phone-cue__line { stroke-dasharray: 190; stroke-dashoffset: 190; animation: cue-draw .9s cubic-bezier(.65,0,.35,1) 2.7s forwards; }
  .phone-cue__head { stroke-dasharray: 50; stroke-dashoffset: 50; animation: cue-draw .35s ease-out 3.5s forwards; }
  .phone-cue__arrow { animation: cue-nudge 2.4s ease-in-out 4s infinite; }
}
/* a neon tube starting up: off, flickers, then holds */
@keyframes neon-on {
  0% { opacity: 0; } 12% { opacity: .9; } 16% { opacity: .15; } 24% { opacity: 1; } 30% { opacity: .3; } 36% { opacity: 1; } 100% { opacity: 1; }
}
@keyframes neon-hum { 50% { text-shadow: 0 0 2px #fff, 0 0 10px #ff8a4c, 0 0 22px #ff6a1f, 0 0 44px #e2541a, 0 0 80px rgb(226 84 26 / .75); } }
@keyframes cue-draw { to { stroke-dashoffset: 0; } }
@keyframes cue-nudge { 50% { transform: translate(6px, 5px); } }
@media (max-width: 1023px) { .phone-cue { top: 12%; } .phone-cue__arrow { margin-right: -30px; } }
@media (max-width: 639px) {
  .hero__media--phone { background: #101b23; border-radius: var(--r-lg); }
  .phone-cue__text { font-size: 20px; }
  .phone-cue__arrow { width: 60px; margin-right: -16px; }
}

/* the little neon character watching the phone with big eyes */
.buddy { position: absolute; z-index: 3; left: calc(50% + var(--pw) / 2 - 34px); bottom: 0; width: clamp(130px, 13vw, 190px); scale: -1 1; height: auto; overflow: visible; pointer-events: none; }
.buddy__pupil { transform: translate(var(--px, 4px), var(--py, 6px)); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.buddy__glint { transform: translate(var(--px, 4px), var(--py, 6px)); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.buddy__eye { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .buddy { animation: buddy-in .9s cubic-bezier(.16,1,.3,1) 2.4s both; }
  .buddy__eye { animation: blink 4.8s ease-in-out 4s infinite; }
}
@keyframes buddy-in { from { opacity: 0; transform: translateY(40%); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@media (max-width: 639px) { .buddy { width: 72px; right: calc(50% + var(--pw) / 2 + 8px); } }

@keyframes letter-in {
  0%   { opacity: 0; transform: translateY(.55em) rotate(-10deg) scale(.6); filter: blur(8px); color: #6b3a22; text-shadow: none; }
  55%  { opacity: 1; filter: blur(0); color: #fff; text-shadow: 0 0 4px #fff, 0 0 16px #ffb38a, 0 0 40px #ff6a1f, 0 0 80px #e2541a; }
  70%  { opacity: .55; }
  80%  { opacity: 1; }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes cue-flash { from { background-position: 130% 0; opacity: 1; } 70% { opacity: 1; } to { background-position: -30% 0; opacity: 0; } }

/* the artisan: proud, hat in the accent, sparks twinkling */
.buddy__head { transform-box: fill-box; transform-origin: 50% 90%; }
.buddy__spark path { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .buddy__head { animation: proud 3.2s ease-in-out 3.4s infinite; }
  .buddy__spark path { animation: twinkle 1.8s ease-in-out infinite; }
  .buddy__spark path:nth-child(2) { animation-delay: .6s; }
  .buddy__spark path:nth-child(3) { animation-delay: 1.2s; }
}
@keyframes proud { 50% { transform: rotate(4deg) translateY(-2px); } }
@keyframes twinkle { 0%, 100% { opacity: .2; scale: .6; } 50% { opacity: 1; scale: 1.15; } }
@media (max-width: 639px) { .buddy { width: 92px; left: calc(50% + var(--pw) / 2 - 16px); } }

/* the sound button the artisan points at: a neon ring pulses until the sound is on */
.phone__sound { position: relative; }
.phone__sound[aria-pressed="false"]::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #ff8a4c; box-shadow: 0 0 10px #ff6a1f, 0 0 22px rgb(226 84 26 / .7); pointer-events: none; }
.sound-hint {
  font: italic 400 clamp(17px, 1.5vw, 22px)/1 "Instrument Serif", Georgia, serif; white-space: nowrap; color: #fff3ea;
  text-shadow: 0 0 2px #fff, 0 0 8px #ff8a4c, 0 0 18px #ff6a1f, 0 0 34px #e2541a;
}
.phone__controls:has(.phone__sound[aria-pressed="true"]) .sound-hint { opacity: 0; transition: opacity .4s; }
@media (prefers-reduced-motion: no-preference) {
  .phone__sound[aria-pressed="false"]::after { animation: ring 1.6s cubic-bezier(.22,1,.36,1) 3.6s infinite both; }
  .sound-hint { animation: letter-in .8s cubic-bezier(.16,1,.3,1) 3.3s both; }
}
@keyframes ring { 0% { opacity: 0; transform: scale(.8); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
@media (max-width: 639px) { .phone__controls { left: calc(100% + 10px); bottom: 96px; } .sound-hint { font-size: 15px; } }

.buddy { filter: drop-shadow(0 14px 18px rgb(0 0 0 / .35)); }

/* the artisan's little scene: he works, looks at the phone, then at us, asks for the sound, goes back to work */
.buddy__arm { transform-box: view-box; transform-origin: 140px 162px; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.buddy__head { transition: transform .45s cubic-bezier(.22,1,.36,1); }
.buddy[data-state="work"] .buddy__head { transform: rotate(8deg) translateY(3px); }
.buddy[data-state="phone"] .buddy__head { transform: rotate(-4deg); }
.buddy[data-state="us"] .buddy__head, .buddy[data-state="talk"] .buddy__head { transform: none; animation: none; }
.buddy[data-state="talk"] .buddy__arm { transform: rotate(-8deg); }
.buddy[data-state="phone"] .buddy__arm, .buddy[data-state="us"] .buddy__arm { transform: rotate(40deg); }
@media (prefers-reduced-motion: no-preference) {
  .buddy[data-state="work"] .buddy__arm { animation: hammer .55s cubic-bezier(.5,0,.75,0) infinite alternate; }
  .buddy[data-state="work"] .buddy__head { animation: none; }
  .buddy[data-state="talk"] .buddy__arm { animation: wave .5s ease-in-out 2 alternate; }
}
@keyframes hammer { from { transform: rotate(20deg); } to { transform: rotate(78deg); } }
@keyframes wave { to { transform: rotate(-20deg); } }

/* his speech bubble, comic style */
.buddy-bubble {
  position: absolute; z-index: 4; margin: 0; left: calc(50% + var(--pw) / 2 + 10px); bottom: clamp(200px, 21vw, 290px);
  padding: 10px 16px; border-radius: 18px; background: #fff; color: #14212b; border: 2.5px solid #14212b;
  font: 700 clamp(15px, 1.25vw, 19px)/1.1 var(--font-text); white-space: nowrap; box-shadow: 0 8px 18px rgb(0 0 0 / .3);
  opacity: 0; transform: translateY(10px) scale(.6); transform-origin: 30% 100%; pointer-events: none;
  transition: opacity .25s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.buddy-bubble::after { content: ""; position: absolute; left: 34%; bottom: -12px; width: 18px; height: 18px; background: #fff; border-right: 2.5px solid #14212b; border-bottom: 2.5px solid #14212b; transform: rotate(45deg); border-radius: 0 0 4px 0; }
.buddy-bubble.is-on { opacity: 1; transform: none; }
@media (max-width: 639px) { .buddy-bubble { left: auto; right: 4px; bottom: 120px; font-size: 13px; padding: 7px 11px; } }

/* ================================================================ the artisan (client's film, green screen keyed out)
   He stands left of the phone: he works, looks at the phone when it lands, then at us, and asks for the sound. */
.artisan {
  --aw: clamp(96px, calc(var(--ph) * .3), 190px);
  position: absolute; z-index: 6; width: var(--aw); aspect-ratio: 360 / 510; bottom: 6px;
  left: max(2px, calc(50% - var(--pw) / 2 - var(--aw) * .78));
  pointer-events: none; filter: drop-shadow(0 14px 18px rgb(0 0 0 / .5));
}
.artisan > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero__media--phone .phone { z-index: 1; }
@media (prefers-reduced-motion: no-preference) { .artisan { animation: buddy-in .9s cubic-bezier(.16,1,.3,1) .6s both; } }

/* the bubble above his head, and the controls on his side */
.hero__media--phone .buddy-bubble { z-index: 7; left: max(4px, calc(50% - var(--pw) / 2 - var(--aw, 150px) * .9)); bottom: calc(var(--aw, 150px) * 1.417 + 4px); --aw: clamp(96px, calc(var(--ph) * .3), 190px); }
.hero__media--phone .phone__controls { left: auto; right: calc(100% + 18px); bottom: auto; top: 6%; }
/* the neon cue moves to the right of the phone, its arrow pointing back at it */
.hero__media--phone .phone-cue { right: auto; left: calc(50% + var(--pw) / 2 + 6px); justify-items: start; top: 22%; }
.hero__media--phone .phone-cue__text { text-align: left; }
.hero__media--phone .phone-cue__arrow { scale: -1 1; margin-right: 0; margin-left: -46px; }
@media (max-width: 639px) {
  .hero__media--phone .buddy-bubble { left: 4px; right: auto; bottom: 128px; }
  .hero__media--phone .phone__controls { right: auto; left: calc(100% + 8px); top: auto; bottom: 8px; }
  .hero__media--phone .phone-cue { display: none; }
}

/* ---------------------------------------------------------------- compact page (client: less scrolling)
   Every section is as tall as its content, never a forced full screen; tighter padding and type. */
:root { --padt: 80px; --padb: 56px; --head-gap: 32px; --hgap: 40px; --hpadb: 40px;
        --t-h1: clamp(34px, 2.6vw + 24px, 60px); --t-h2: clamp(26px, 1.3vw + 21px, 40px); }
@media (min-width: 1024px) { :root { --t-lead: 18px; --t-card: 18px; --t-h3: 24px; } }
@media (max-width: 639px) { :root { --padt: 56px; --padb: 40px; --head-gap: 24px; --hgap: 32px; --hpadb: 24px; } }
main > :is(section, .section):not([data-moment]), main > .hero, footer.closing { min-height: 0 !important; height: auto !important; }
main > :is(section, .section):not([data-moment]) > :is(.wrap, .container) { min-height: 0 !important; }
/* the hero: the phone gets a set height instead of the rest of the screen */
.hero--split .hero__media { min-height: 0 !important; }
.hero--split .hero__media:not(.hero__media--phone) { height: clamp(320px, 56svh, 520px); flex: none; }
@media (max-width: 1023px) { .hero--split .hero__media:not(.hero__media--phone) { height: clamp(220px, 30svh, 340px); } }
@media (max-width: 639px) { .hero--split .hero__media:not(.hero__media--phone) { height: clamp(180px, 24svh, 220px); } }
main > .hero.hero--split .hero__media.hero__media--phone { height: clamp(460px, calc(100svh - 220px), 600px) !important; flex: none; align-self: start; }
/* below 1024 the hero stacks in a flex column: the panel must stretch across it, or (container-type: size) it has no width */
@media (max-width: 1023px) { main > .hero.hero--split .hero__media.hero__media--phone { align-self: stretch; width: 100%; height: clamp(440px, calc(100svh - 600px), 560px) !important; } }
@media (max-width: 1023px) { main > .hero.hero--split .hero-text { gap: var(--s-5); } main > .hero.hero--split .hero__media { margin-top: 0; } main > .hero.hero--split .hero__text .btn-row { margin-top: var(--s-5); } }
@media (max-width: 639px) { main > .hero.hero--split .hero__media.hero__media--phone { height: clamp(320px, calc(100svh - 500px), 420px) !important; } }
/* photographs beside a list: a set height, or as tall as the list */
@media (min-width: 1024px) { .grid.fill > .frame--fill { min-height: clamp(300px, 48svh, 460px) !important; } }
/* stacked under their list (tablet, phone): a short band, not a second screen */
@media (max-width: 1023px) {
  .grid.fill > .frame--fill { height: clamp(220px, 30svh, 340px) !important; min-height: 0 !important; aspect-ratio: auto !important; flex: none !important; }
  figure.develop { aspect-ratio: auto; width: 100%; height: clamp(200px, 30svh, 340px); overflow: hidden; }
  figure.develop img { width: 100%; height: 100%; object-fit: cover; }
}
.rows > li { padding-block: var(--s-4); }
.rows > li > p { margin: 0; }
@media (max-width: 1023px) { .rows > li { padding-block: var(--s-3); } .stack-list { gap: var(--s-5); } }
/* the three steps: a shorter hold */
/* (moment.js sets --mo-hold: 1 inline, so the live height is set here: a hold of .6 screen) */
[data-moment="pinned-chapters"].is-live { height: 160svh !important; min-height: 0 !important; }
/* a page that opens on a plain section (contact form, legal text, works): its first words clear the fixed bar */
main > :is(section, .section):first-child:not(.hero) { padding-top: calc(var(--nav) + var(--s-8, 64px)) !important; }
@media (max-width: 639px) { main > :is(section, .section):first-child:not(.hero) { padding-top: calc(var(--nav) + var(--s-7, 40px)) !important; } }
/* a narrow laptop: the bar keeps its links clear (the number is in the hero and the menu), the tagline stays on two lines */
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav__tel { display: none; }
  .hero--split h1 { font-size: clamp(34px, 4.4vw, 52px); }
}
