/* base.css - M.Thorne Carpentry, "The Joint" (_notes/DIRECTIONS.md). Phone first; every section is complete with
   JavaScript off (html.js gates the interactive states, html.rv-on the scroll reveals, html.hero-anim the opening,
   html.rm = reduced motion). Colours only from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; padding-top: var(--hdr); background: var(--paper); color: var(--ink); font: 400 15px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
@media (min-width: 1100px) { body { font-size: 17px; } }
img, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.3vw, 3rem); }
h3 { font-size: 1.12rem; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
@media (min-width: 700px) { .wrap { width: min(100% - 80px, var(--wrap)); } }
@media (min-width: 1100px) { .wrap { width: min(100% - 96px, var(--wrap)); } }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--esp); color: #fff; }
.skip-link:focus { top: 12px; }

/* the trap field: hidden by the stylesheet, never inline (the CSP drops style="") */
.md-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important;
         overflow: hidden !important; opacity: 0 !important; clip-path: inset(50%) !important;
         pointer-events: none !important; }

/* ---------- the cut corner and the tooth: the mark's 45-degree slab, used everywhere a corner shows ---------- */
.btn, .chip, .town, .badge, .about__chips li, .sf__chip span, .rail { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c, var(--cut))), calc(100% - var(--c, var(--cut))) 100%, 0 100%); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 .84rem/1.3 var(--font-text); letter-spacing: .01em; color: var(--bronze); }
.eyebrow::before { content: ""; flex: none; width: 18px; height: 10px; background: currentColor; transform: skewX(var(--slant)); }
.eyebrow--lt { color: var(--bronze-lt); }
.eyebrow--paper { color: var(--paper-2); }
.eyebrow--paper::before { background: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px 0 22px; border: 0; background: var(--bronze); color: #fff; font: 700 1rem/1.1 var(--font-text); text-decoration: none; cursor: pointer; transition: background-color .2s, transform .2s; }
.btn:hover { background: var(--bronze-dk); }
.btn:active { transform: translateY(1px); }
.btn--glass { background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn--glass:hover { background: rgba(255, 255, 255, .24); }
.btn--ink { background: var(--esp); }
.btn--ink:hover { background: #000; }
.fig { font-variant-numeric: tabular-nums; }
.fig.is-counting { display: inline-block; min-width: var(--fw); }

/* the dovetail edge: where a section meets one of another colour, its tails bite up into the one above and slide
   home as it arrives (data-reveal="edge") */
.joint-edge { position: relative; }
.joint-edge::before, .foot::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px; z-index: 2; background: inherit; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='16'%3E%3Cpath d='M10 0h24l-6 16H16z'/%3E%3C/svg%3E") center bottom / 44px 16px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='16'%3E%3Cpath d='M10 0h24l-6 16H16z'/%3E%3C/svg%3E") center bottom / 44px 16px repeat-x;
  transition: transform .9s var(--ease); }
@media (min-width: 1100px) { .joint-edge::before, .foot::before { top: -21px; height: 22px; -webkit-mask-size: 60px 22px; mask-size: 60px 22px; } }
html.rv-on .joint-edge:not(.is-in)::before { transform: translateY(100%); }

/* ---------- header: the mark as sent on its own white bar ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); background: var(--paper); transition: box-shadow .3s; }
.hdr.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(33, 27, 22, .08); }
.hdr__bar { position: relative; height: 100%; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand img { height: 40px; width: auto; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name b { font: 800 1.16rem/1 var(--font-display); letter-spacing: -.01em; }
.brand__name small { margin-top: 4px; font: 700 .6rem/1.1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.hdr__num, .hdr__nav, .hdr__cta { display: none; }
.callbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--esp); color: #fff; }
.burger { position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; transition: transform .25s, top .25s, opacity .2s; }
.burger span { top: 21px; }
.burger span::before, .burger span::after { content: ""; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); background: var(--ink); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); background: var(--ink); }
.menu { position: absolute; top: var(--hdr); left: 0; right: 0; background: var(--esp); color: #fff; padding: 12px 0 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.menu ul { list-style: none; }
.menu li a, .menu li span { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--esp-3); font: 800 1.35rem/1 var(--font-display); text-decoration: none; color: #fff; }
.menu__num { margin-top: 18px; width: 100%; }
@media (min-width: 1100px) {
  .brand img { height: 48px; }
  .brand__name b { font-size: 1.32rem; }
  .hdr__bar { gap: 28px; }
  .hdr__num { display: inline-flex; align-items: center; gap: 8px; order: 3; min-height: 44px; font: 800 1.12rem/1 var(--font-display); color: var(--ink); text-decoration: none; white-space: nowrap; }
  .hdr__nav { order: 2; }
  .hdr__cta { order: 4; }
  .hdr__num svg { color: var(--bronze); }
  .hdr__nav { display: block; }
  .hdr__nav ul { list-style: none; display: flex; gap: 22px; }
  .hdr__nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink-2); background: linear-gradient(var(--bronze), var(--bronze)) left calc(100% - 8px) / 0 2px no-repeat; transition: background-size .3s var(--ease), color .2s; }
  .hdr__nav a:hover { color: var(--ink); background-size: 100% 2px; }
  .hdr__cta { display: inline-flex; min-height: 46px; padding: 0 20px 0 18px; font-size: .95rem; --c: 11px; }
  .callbtn, .burger, .menu { display: none !important; }
}
@media (min-width: 1100px) and (max-width: 1279px) { .hdr__nav { display: none; } }

/* ---------- S1 hero: his film over his photo, the words over the top ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: max(520px, calc(100vh - var(--hdr) - 104px)); min-height: max(520px, calc(100svh - var(--hdr) - 104px)); background: var(--esp); color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -2; transform: translate3d(0, var(--hy, 0px), 0) scale(var(--hs, 1)); transform-origin: 50% 0; will-change: transform; }
.hero__pic, .hero__film { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__pic img, .hero__film { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__film { opacity: 0; transition: opacity .8s ease; }
.hero__film.is-playing { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(var(--scrim) / .94) 0%, rgba(var(--scrim) / .84) 40%, rgba(var(--scrim) / .3) 64%, rgba(var(--scrim) / .06) 84%); }
.hero__wrap { padding: 36px 0 30px; }
/* the eyebrow carries its own espresso plate: it reads the same over the bright end of the wood and the dark */
.hero__eyebrow { --c: 9px; display: table; margin-bottom: 14px; padding: 6px 12px 7px 10px; background: rgba(var(--scrim) / .9); font: 700 .8rem/1.45 var(--font-text); color: var(--bronze-lt); max-width: 40ch; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
.hero__h1 { font-size: clamp(1.75rem, .55rem + 4.4vw, 4.2rem); line-height: 1.03; max-width: 12.5ch; }
.hero__h1 .w { display: inline-block; }
.nb { white-space: nowrap; }
.hero__lede { margin-top: 16px; max-width: 38ch; font-size: 1rem; color: rgba(255, 255, 255, .9); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__ctas .btn { flex: 1 1 auto; padding: 0 18px 0 16px; white-space: nowrap; }
.hero__proof { position: relative; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; padding-top: 16px; font-size: .84rem; color: rgba(255, 255, 255, .86); }
.hero__proof::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--bronze-lt), rgba(255, 255, 255, .2) 60%); transform-origin: left; }
.hero__proof .fig { margin-right: 3px; font: 800 1.3rem/1 var(--font-display); color: #fff; }
/* a portrait screen: the photo fills the top of the hero, so the lit pins show above the words, not the dark wall */
@media (max-width: 1099px) and (orientation: portrait) {
  .hero__media { bottom: 36%; }
  .hero__pic img, .hero__film { object-position: 44% 58%; }
  .hero__scrim { background: linear-gradient(to top, rgba(var(--scrim) / .96) 0%, rgba(var(--scrim) / .9) 46%, rgba(var(--scrim) / .78) 58%, rgba(var(--scrim) / .36) 70%, rgba(var(--scrim) / .06) 86%); }
}
@media (min-width: 700px) {
  .hero__wrap { padding: 64px 0 56px; }
  .hero__ctas .btn { flex: 0 0 auto; padding: 0 26px 0 22px; }
}
@media (min-width: 1100px) {
  .hero { align-items: center; min-height: min(calc(100vh - var(--hdr)), 860px); }
  .hero__media { left: -6%; right: -26%; }
  .hero__scrim { background: linear-gradient(90deg, rgba(var(--scrim) / .86) 0%, rgba(var(--scrim) / .74) 36%, rgba(var(--scrim) / .22) 58%, rgba(var(--scrim) / .06) 74%), linear-gradient(to top, rgba(var(--scrim) / .5), transparent 30%); }
  .hero__wrap { padding: 80px 0; }
  .hero__lede { font-size: 1.12rem; }
  .hero__eyebrow { max-width: none; font-size: .88rem; }
  .hero__proof { gap: 10px 36px; font-size: .92rem; max-width: 640px; }
  .hero__proof .fig { font-size: 1.7rem; }
}
/* the opening: the words come in sideways, the photo settles, the rule draws, the proof lands */
@keyframes hSide { from { opacity: 0; transform: translate3d(-26px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes hFade { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes hSettle { from { transform: scale(1.14); } to { transform: none; } }
@keyframes hRule { from { transform: scaleX(0); } to { transform: none; } }
.hero-anim .hero__pic { animation: hSettle 2.4s var(--ease) both; }
.hero-anim .hero__eyebrow { animation: hSide .55s .05s var(--ease) both; }
/* line by line: motion.js measures where the headline wraps and sets --l per word; the defaults are the 390 px wrap */
.hero__h1 .w:nth-child(3), .hero__h1 .w:nth-child(4) { --l: 1; }
.hero__h1 .w:nth-child(5), .hero__h1 .w:nth-child(6) { --l: 2; }
.hero__h1 .w:nth-child(7) { --l: 3; }
.hero-anim .hero__h1 .w { animation: hSide .65s var(--ease) both; animation-delay: calc(.12s + var(--l, 0) * .13s); }
.hero-anim .hero__lede { animation: hFade .5s .62s var(--ease) both; }
.hero-anim .hero__ctas { animation: hSide .55s .72s var(--ease) both; }
.hero-anim .hero__proof::before { animation: hRule 1s .7s var(--ease) both; }
.hero-anim .hero__proof li { animation: hFade .5s var(--ease) both; }
.hero-anim .hero__proof li:nth-child(1) { animation-delay: .75s; }
.hero-anim .hero__proof li:nth-child(2) { animation-delay: .85s; }
.hero-anim .hero__proof li:nth-child(3) { animation-delay: .95s; }

/* ---------- S2 trust strip ---------- */
.trust { background: var(--paper); padding: 26px 0 4px; }
.trust__in { display: grid; gap: 14px; }
.trust__line { font: 700 1.1rem/1.4 var(--font-display); max-width: 30ch; }
.trust__line .fig { color: var(--bronze); }
.trust__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.badge { --c: 9px; display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 14px 0 12px; background: var(--ash); font-weight: 700; font-size: .86rem; }
.badge::before { content: ""; width: 12px; height: 8px; background: var(--bronze); transform: skewX(var(--slant)); }
@media (min-width: 900px) {
  .trust { padding: 44px 0 8px; }
  .trust__in { grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
  .trust__line { font-size: 1.4rem; max-width: 36ch; }
}

/* ---------- S3 services: tiles that open in place ---------- */
.svc { padding: 30px 0 var(--pad); }
.svc__lede { margin-top: 12px; color: var(--ink-2); max-width: 54ch; }
.svc__tiles { margin-top: 14px; }
.tile { border-top: 1px solid var(--line); }
.tile__btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; margin: 0; padding: 7px 0; border: 0; background: none; color: var(--ink); text-align: left; font: 800 1.08rem/1.2 var(--font-display); letter-spacing: -.01em; cursor: pointer; }
.tile__thumb { --c: 10px; flex: none; width: 48px; height: 48px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); background: var(--ash); }
.tile__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tile__t { flex: 1; }
.tile__ic { position: relative; flex: none; width: 36px; height: 36px; border: 1.5px solid var(--line-2); transition: background-color .25s, border-color .25s; }
.tile__ic::before, .tile__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); transition: transform .3s var(--ease), background-color .25s; }
.tile__ic::after { transform: rotate(90deg); }
.tile.is-open .tile__ic { background: var(--bronze); border-color: var(--bronze); }
.tile.is-open .tile__ic::before, .tile.is-open .tile__ic::after { background: #fff; }
.tile.is-open .tile__ic::after { transform: rotate(0); }
html:not(.js) .tile__ic { display: none; }
.tile__panel { padding: 2px 0 20px; }
.tile__fig { margin: 0 0 12px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ash); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.tile__fig picture, .tile__fig img { width: 100%; height: 100%; }
.tile__fig img { object-fit: cover; }
.tile__p { color: var(--ink-2); max-width: 56ch; }
html.js .tile:not(.is-open) .tile__panel { display: none; }
/* before site.js settles them: closed on a phone, the first one open beside the list on a wide screen */
@media (min-width: 700px) { html.js .svc__tiles:not(.is-live) .tile:first-child .tile__panel { display: block; } }
@keyframes wipeIn { from { clip-path: inset(0 100% 0 0); transform: scale(1.1); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes sideIn { from { opacity: 0; transform: translate3d(-16px, 0, 0); } to { opacity: 1; transform: none; } }
html.js .tile.is-open .tile__fig picture { animation: wipeIn .8s var(--ease) both; }
html.js .tile.is-open .tile__p { animation: sideIn .5s .18s var(--ease) both; }
.tile--all { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; margin-top: 4px; padding: 12px 0 0; border-top: 2px solid var(--esp); }
.tile__n { grid-row: 1; font: 800 1.08rem/1.2 var(--font-display); color: var(--bronze); font-variant-numeric: tabular-nums; }
.tile__allh { font-size: 1.08rem; }
.tile__allp { grid-column: 1 / -1; margin-top: 6px; color: var(--ink-2); font-size: .92rem; max-width: 52ch; }
@media (min-width: 700px) {
  .svc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 36px; align-items: start; }
  .svc__head { grid-column: 1; grid-row: 1; }
  .svc__tiles { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  html.js .svc__grid { grid-template-rows: repeat(6, auto) 1fr; }
  html.js .svc__tiles { display: contents; }
  html.js .tile { display: contents; }
  html.js .tile__h { grid-column: 1; border-top: 1px solid var(--line); }
  html.js .svc__head { margin-bottom: 26px; }
  html.js .tile__btn { min-height: 72px; transition: padding .3s var(--ease), color .2s; }
  html.js .tile__btn:hover { padding-left: 8px; }
  html.js .tile.is-open .tile__btn { padding-left: 8px; color: var(--bronze); }
  html.js .tile__panel { grid-column: 2; grid-row: 1 / span 7; align-self: start; padding: 0; }
  html.js .tile__fig { aspect-ratio: 4 / 3; margin-bottom: 18px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }
  html.js .tile__p { font-size: 1.08rem; max-width: 52ch; }
  html.js .tile--all { display: grid; grid-column: 1; align-self: start; margin-top: 20px; }
}
@media (min-width: 700px) and (max-width: 899px) { html.js .tile__btn { min-height: 62px; } html.js .svc__head { margin-bottom: 18px; } }
@media (min-width: 1100px) { .svc__grid { column-gap: 64px; } }

/* ---------- S4 work: four in a swipe row, his chips filter it, See all opens the fourteen ---------- */
.work { background: var(--esp); color: #fff; padding: var(--pad) 0 calc(var(--pad) - 6px); overflow-x: clip; }
.work__head { display: grid; gap: 14px; }
.work__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 4px; }
.work__chips::-webkit-scrollbar { display: none; }
.chip { --c: 9px; flex: none; min-height: 44px; padding: 0 16px; border: 0; background: var(--esp-2); box-shadow: inset 0 0 0 1px var(--esp-3); color: #fff; font: 600 .9rem/1 var(--font-text); cursor: pointer; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--esp-3); }
.chip.is-on { background: var(--bronze-lt); box-shadow: none; color: var(--esp); }
.work__row { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 18px var(--gut) 12px; scroll-padding-inline: var(--gut); }
.work__row::-webkit-scrollbar { display: none; }
.card { flex: 0 0 64%; max-width: 340px; margin: 0; scroll-snap-align: start; cursor: zoom-in; translate: 0 calc(var(--wy, 0) * var(--d, 0) * var(--wamp, 9px)); }
.card picture img { scale: 1.1; translate: 0 calc(var(--wy, 0) * var(--d, 0) * -4%); }
.card picture { aspect-ratio: 4 / 5; overflow: hidden; background: var(--esp-2); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card figcaption, .gallery__item figcaption { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .86rem; font-weight: 600; color: var(--on-dark-2); }
.card figcaption::before, .gallery__item figcaption::before { content: ""; width: 12px; height: 8px; background: var(--bronze-lt); transform: skewX(var(--slant)); }
html.js .card.is-out { display: none; }
@keyframes cardIn { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }
html.js .card.is-new { animation: cardIn .55s var(--ease) both; }
html.js .card.is-new:nth-child(n) { animation-delay: calc(var(--k, 0) * 70ms); }
.work__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.work__swipe { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--on-dark-2); }
.work__swipe::after { content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, var(--bronze-lt) 50%, var(--esp-3) 50%) 0 0 / 200% 100%; animation: swipeHint 2.4s var(--ease) 3; }
@keyframes swipeHint { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }
.gallery { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 72px var(--gut) 40px; border: 0; background: var(--esp); color: #fff; overflow-y: auto; }
.gallery::backdrop { background: rgba(20, 15, 11, .85); }
.gallery__close { position: fixed; top: 14px; right: 14px; z-index: 2; min-height: 46px; padding: 0 18px; border: 0; background: var(--paper); color: var(--ink); font: 700 .95rem var(--font-text); cursor: pointer; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; max-width: var(--wrap); margin: 0 auto; }
.gallery__item { margin: 0; }
.gallery__item picture { aspect-ratio: 4 / 5; overflow: hidden; background: var(--esp-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery[open] .gallery__item { animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--k, 0) * 40ms); }
html.gal-open { overflow: hidden; }
@media (min-width: 700px) {
  .card { flex-basis: 40%; }
  .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
}
@media (min-width: 1100px) {
  .work__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 48px; }
  .work__chips { flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; overflow: visible; }
  .work__row { --wamp: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; width: min(100% - 96px, var(--wrap)); margin: 0 auto; padding: 36px 0 0; overflow: visible; }
  .card { max-width: none; }
  .work__foot { width: min(100% - 96px, var(--wrap)); margin: 28px auto 0; }
  .work__swipe { display: none; }
  .gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- S5 why: the signature. The card locks under the header; each point lights, a bronze tail slides into
   the espresso comb and the photo changes, 01 to 04. Unlocked (no JavaScript, reduced motion, a short screen) it is
   the heading, the four photos and the four points, all open. ---------- */
.why { background: var(--paper); }
.why__stage { display: grid; gap: 16px; padding: var(--pad) 0; }
.why__lede { margin-top: 10px; color: var(--ink-2); max-width: 46ch; }
.why__photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.why__ph { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ash); }
.why__ph picture, .why__ph img { width: 100%; height: 100%; }
.why__ph img { object-fit: cover; }
.why__meta { display: none; align-items: center; gap: 16px; margin-bottom: 10px; }
.why__n { flex: none; font: 800 1rem/1 var(--font-display); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.why__n b { font-size: 2.3rem; color: var(--bronze); letter-spacing: -.02em; }
.joint { flex: 1; display: flex; height: 24px; overflow: hidden; padding: 0 10px; }
.j__pin, .j__tail { flex: 1; margin: 0 -1px; transform: skewX(var(--slant)); }
.j__pin { background: var(--esp); }
.j__tail { background: var(--bronze); transform: skewX(var(--slant)) translate3d(0, 110%, 0); transition: transform .55s var(--ease); }
.j__tail.is-lit { transform: skewX(var(--slant)); }
.why__list { list-style: none; }
.pt { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line); }
.pt__tick { position: absolute; left: 2px; top: 16px; width: 15px; height: 10px; background: var(--bronze); transform: skewX(var(--slant)); transition: background-color .3s; }
.pt h3 { transition: color .3s; }
.pt__body p { margin-top: 6px; color: var(--ink-2); }
@media (min-width: 900px) {
  .why__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 64px; row-gap: 22px; }
  .why__photos { grid-column: 1; grid-row: 1 / span 2; grid-template-columns: 1fr 1fr; align-self: start; }
  .why__head { grid-column: 2; grid-row: 1; align-self: end; }
  .why__side { grid-column: 2; grid-row: 2; }
  .why__lede { font-size: 1.08rem; }
  .why__n b { font-size: 3.2rem; }
  .joint { height: 32px; }
  .pt { padding: 16px 0 16px 36px; }
  .pt h3 { font-size: 1.36rem; }
  .pt__tick { top: 24px; }
  .pt__body p { font-size: 1.04rem; max-width: 46ch; }
}
/* the lock: JavaScript, full motion and a screen tall enough to hold it. A run of 2.5 screens, a point every 0.62 */
@media (min-height: 700px) {
  html.js:not(.rm) .why__track { height: calc(100vh - var(--hdr) + 250vh); height: calc(100svh - var(--hdr) + 250svh); }
  html.js:not(.rm) .why__pin { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); height: calc(100svh - var(--hdr)); overflow: hidden; }
  html.js:not(.rm) .why__stage { height: 100%; align-content: center; gap: 12px; padding: 4px 0 80px; }
  html.js:not(.rm) .why__photos { display: block; position: relative; height: clamp(150px, calc(100vh - var(--hdr) - 600px), 360px); height: clamp(150px, calc(100svh - var(--hdr) - 600px), 360px); }
  html.js:not(.rm) .why__ph { position: absolute; inset: 0; aspect-ratio: auto; opacity: 0; clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); transition: opacity .4s, clip-path .75s var(--ease); }
  html.js:not(.rm) .why__ph.is-on { opacity: 1; z-index: 1; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
  html.js:not(.rm) .why__ph img { transform: scale(1.1); transition: transform 1.4s var(--ease); }
  html.js:not(.rm) .why__ph.is-on img { transform: none; }
  html.js:not(.rm) .why__meta { display: flex; }
  html.js:not(.rm) .pt:not(.is-on):not(.is-done) .pt__tick { background: var(--line-2); }
  html.js:not(.rm) .pt:not(.is-on) h3 { color: var(--ink-2); }
  html.js:not(.rm) .pt__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
  html.js:not(.rm) .pt__body > p { overflow: hidden; min-height: 0; }
  html.js:not(.rm) .pt.is-on .pt__body { grid-template-rows: 1fr; }
}
@media (min-height: 700px) and (min-width: 900px) {
  html.js:not(.rm) .why__stage { padding: 28px 0; row-gap: 22px; }
  html.js:not(.rm) .why__photos { height: min(calc(100vh - var(--hdr) - 56px), 640px); height: min(calc(100svh - var(--hdr) - 56px), 640px); }
}

/* ---------- S6 reviews: a swipe row on his bronze ---------- */
.rev { background: var(--bronze); color: #fff; padding: var(--pad) 0; overflow-x: clip; }
.rev__row { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 18px var(--gut) 6px; scroll-padding-inline: var(--gut); }
.rev__row::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 86%; max-width: 440px; margin: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 20px 16px; background: var(--paper); color: var(--ink); scroll-snap-align: center; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); transition: transform .45s var(--ease); }
.quote blockquote { margin: 0; }
.quote blockquote p { font: 600 1rem/1.5 var(--font-display); }
@media (min-width: 1100px) { .quote blockquote p { font-size: 1.08rem; } }
.quote figcaption { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.quote figcaption b { color: var(--ink); }
.quote__on { font-weight: 700; color: var(--bronze); }
html.js .quote.is-side { transform: scale(.95); }
.rev__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; margin-top: 6px; }
.dots { display: flex; margin-left: -10px; }
html:not(.js) .dots { display: none; }
.dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.dot::after { content: ""; width: 18px; height: 6px; background: rgba(255, 255, 255, .45); transform: skewX(var(--slant)); transition: width .3s var(--ease), background-color .3s; }
.dot[aria-current="true"]::after { width: 32px; background: #fff; }
.rev__more { font-size: .9rem; color: var(--paper-2); }
.rev__more.is-live { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: #fff; cursor: pointer; }
@media (min-width: 1100px) {
  .rev__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: min(100% - 96px, var(--wrap)); margin: 0 auto; padding: 36px 0 0; overflow: visible; }
  .quote { max-width: none; padding: 30px 28px 24px; }
  html.js .quote.is-side { transform: none; }
  .dots { display: none; }
  .rev__foot { width: min(100% - 96px, var(--wrap)); margin: 24px auto 0; justify-content: flex-end; }
}

/* ---------- S7 areas: his button opens the check; his towns are taps ---------- */
.area { background: var(--paper); padding: var(--pad) 0; }
.area__p { margin-top: 12px; color: var(--ink-2); max-width: 48ch; }
.area__open[aria-expanded="true"] { display: none; }
.area__check { --c: 18px; flex-basis: 100%; margin-top: 4px; padding: 16px 16px 18px; background: var(--ash); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.area__check[hidden] { display: none; }
@keyframes openDown { from { opacity: 0; transform: translate3d(-18px, 0, 0); } to { opacity: 1; transform: none; } }
.area__check.is-opening { animation: openDown .45s var(--ease) both; }
.area__label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .92rem; }
.area__row { display: flex; gap: 8px; }
.area__in { flex: 1; min-width: 0; min-height: 52px; padding: 0 14px; border: 2px solid var(--esp); border-radius: 0; background: #fff; color: var(--ink); font: 500 16px var(--font-text); }
.area__go { flex: none; padding: 0 20px; }
.area__say:empty { display: none; }
.area__say { margin-top: 12px; font-weight: 600; }
.say { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.say__t { display: flex; align-items: baseline; gap: 10px; }
.say__t::before { content: ""; flex: none; width: 14px; height: 10px; background: var(--bronze); transform: skewX(var(--slant)); }
.say--no .say__t::before { background: var(--ink-2); }
.say a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--bronze); }
/* on a phone his button joins the end of the row of towns; the check opens under them */
.area__pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.area__towns { list-style: none; display: contents; }
.area__pick .area__open { min-height: 44px; padding: 0 18px 0 16px; font-size: .94rem; --c: 10px; }
.town { --c: 9px; min-height: 44px; padding: 0 14px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font: 600 .92rem/1 var(--font-text); cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.town:hover { box-shadow: inset 0 0 0 1.5px var(--bronze); }
.town.is-hit { background: var(--esp); box-shadow: none; color: #fff; }
@media (min-width: 900px) {
  .area__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 72px; align-items: center; }
  .area__pick { display: block; margin: 0; }
  .area__towns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
  .area__pick .area__open { min-height: 52px; margin-top: 24px; padding: 0 26px 0 22px; font-size: 1rem; --c: var(--cut); }
  .area__check { margin-top: 20px; }
  .area__towns li { border-top: 1px solid var(--line); }
  .town { --c: 0px; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 0 12px; box-shadow: none; text-align: left; font: 800 1.2rem/1.1 var(--font-display); }
  .town::before { content: ""; flex: none; width: 14px; height: 10px; background: var(--line-2); transform: skewX(var(--slant)); transition: background-color .25s; }
  .town:hover { box-shadow: none; background: var(--ash); }
  .town:hover::before { background: var(--bronze); }
  .town.is-hit::before { background: var(--bronze-lt); }
}

/* ---------- S8 about: his photo moves slower than his words ---------- */
.about { background: var(--esp); color: #fff; padding: var(--pad) 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) 40%; column-gap: 16px; }
.about__words { display: contents; }
.about__words .eyebrow { grid-column: 1; grid-row: 1; align-self: end; }
.about h2 { grid-column: 1; grid-row: 2; align-self: start; }
.about__p, .about__chips { grid-column: 1 / -1; }
.about__photo { grid-column: 2; grid-row: 1 / span 2; margin: 0 0 14px; aspect-ratio: 1; overflow: hidden; background: var(--esp-2); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.about__photo picture { height: 100%; }
.about__photo img { position: relative; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 50% 12%; scale: 1.45; transform-origin: 50% 8%; transform: translate3d(0, var(--py, 0%), 0); will-change: transform; }
.about h2 { margin-bottom: 14px; }
.about__p { color: var(--on-dark-2); }
.about__p + .about__p { margin-top: 12px; }
.about__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.about__chips li { --c: 9px; padding: 9px 13px; background: var(--esp-2); box-shadow: inset 0 0 0 1px var(--esp-3); font-weight: 700; font-size: .88rem; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; align-items: center; }
  .about__words { display: block; grid-column: 2; grid-row: 1; }
  .about__photo { grid-column: 1; grid-row: 1; margin: 0; aspect-ratio: 4 / 5; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%); }
  .about__p { font-size: 1.06rem; max-width: 58ch; }
  .about__photo img { object-position: 50% 22%; scale: none; }
}

/* ---------- S9 the ask: his contact list beside the smart form ---------- */
.ask { background: var(--paper); padding: var(--pad) 0 calc(var(--pad) + 8px); }
.ask__grid { display: grid; gap: 14px; }
.ask__p { margin-top: 12px; color: var(--ink-2); max-width: 50ch; }
.ask__card { order: 2; padding: 18px 16px 12px; background: var(--esp); color: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); }
.ask__list { order: 3; list-style: none; }
.ask__list li { display: flex; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.ask__list li:last-child { border-bottom: 1px solid var(--line); }
.ask__list .k { flex: none; width: 54px; font-weight: 700; color: var(--bronze); }
.ask__list a.v { font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .ask__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; row-gap: 28px; align-items: start; }
  .ask__words { grid-column: 1; grid-row: 1; }
  .ask__list { grid-column: 1; grid-row: 2; order: 0; }
  .ask__card { grid-column: 2; grid-row: 1 / span 2; order: 0; padding: 32px 32px 24px; }
}
.sf { margin: 0; }
.sf__prog { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; font-size: .84rem; color: var(--on-dark-2); }
.sf__prog[hidden] { display: none; }
.sf__count b { color: #fff; }
.sf__bar { position: relative; flex: 1; height: 4px; overflow: hidden; background: var(--esp-3); }
.sf__bar i { position: absolute; inset: 0; background: var(--bronze-lt); transform-origin: left; transform: scaleX(var(--sfp, .1667)); transition: transform .45s var(--ease); }
.sf__step:focus { outline: none; }
.sf__step { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
html.js .sf.is-smart .sf__step { display: none; margin: 0; }
html.js .sf.is-smart .sf__step.is-on { display: block; animation: stepIn .4s var(--ease) both; }
html.js .sf.is-smart .sf__step.is-on.from-left { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translate3d(24px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translate3d(-24px, 0, 0); } to { opacity: 1; transform: none; } }
.sf__q { display: block; padding: 0; margin-bottom: 12px; font: 800 1.26rem/1.2 var(--font-display); color: #fff; }
.sf__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 560px) { .sf__chips { display: flex; flex-wrap: wrap; } }
.sf__chip { position: relative; display: block; cursor: pointer; }
html:not(.js) .sf__towns { display: none; }
.sf__towns + .sf__other { margin-top: 12px; }
.sf__size { margin: 16px 0 0; }
.sf__in::placeholder { color: #776A5E; }
.sf__more { margin: 2px 0 6px; }
.sf__more summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: .92rem; color: var(--bronze-lt); cursor: pointer; list-style: none; }
.sf__more summary::-webkit-details-marker { display: none; }
.sf__more summary::before { content: ""; width: 12px; height: 8px; background: currentColor; transform: skewX(var(--slant)); transition: transform .25s var(--ease); }
.sf__more[open] summary::before { transform: skewX(var(--slant)) rotate(90deg); }
.sf__more[open] > .sf__field { margin-top: 4px; }
.sf__chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sf__chip span { --c: 9px; display: flex; align-items: center; height: 100%; min-height: 44px; padding: 6px 12px; background: var(--esp-2); box-shadow: inset 0 0 0 1px var(--esp-3); color: #fff; font: 600 .92rem/1.2 var(--font-text); transition: background-color .2s, color .2s; }
.sf__chip:hover span { box-shadow: inset 0 0 0 1px var(--bronze-lt); }
.sf__chip input:checked + span { background: var(--bronze-lt); box-shadow: none; color: var(--esp); }
.sf__chip input:focus-visible + span { box-shadow: inset 0 0 0 3px #fff; }
.sf__label { display: block; margin: 0 0 6px; font-size: .88rem; color: var(--on-dark-2); }
.sf__in { width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-radius: 0; background: #fff; color: var(--ink); font: 500 16px var(--font-text); }
.sf__in:focus-visible, .area__in:focus-visible { outline: 3px solid var(--bronze-lt); outline-offset: 0; }
.sf__file { width: 100%; font-size: .9rem; color: var(--on-dark-2); }
.sf__file::file-selector-button { min-height: 44px; margin-right: 12px; padding: 0 14px; border: 0; background: var(--esp-2); box-shadow: inset 0 0 0 1px var(--esp-3); color: #fff; font: 600 .9rem var(--font-text); cursor: pointer; }
.sf__field { margin-bottom: 12px; }
.sf__pair { display: grid; column-gap: 12px; }
@media (min-width: 560px) { .sf__pair { grid-template-columns: 1fr 1fr; } }
.sf__err { margin-top: 10px; font-weight: 600; font-size: .92rem; color: #FFD9A8; }
.sf__err[hidden] { display: none; }
.sf__say:empty { display: none; }
.sf__say { margin-top: 12px; font-weight: 600; }
.sf__say .say__t::before { background: var(--bronze-lt); }
.sf__say .say--no .say__t::before { background: var(--on-dark-2); }
.sf__say a { color: var(--bronze-lt); }
.sf__nav { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.sf__nav[hidden] { display: none; }
.sf__nav .btn { flex: 1; }
.sf__back { min-height: 52px; padding: 0 18px; border: 0; background: none; box-shadow: inset 0 0 0 1px var(--esp-3); color: #fff; font: 600 .95rem var(--font-text); cursor: pointer; }
.sf__back:hover { box-shadow: inset 0 0 0 1px var(--on-dark-2); }
html:not(.js) .sf__back { display: none; }
.sf__done:empty, .sf__done[hidden] { display: none; }
.sf__done { padding: 6px 0 10px; }
.sf__done h3 { font-size: 1.4rem; margin-bottom: 8px; }
.sf__done p { color: var(--on-dark-2); }
.sf__done a { color: var(--bronze-lt); font-weight: 700; }
.sf__call { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--esp-3); font-size: .92rem; color: var(--on-dark-2); }
.sf__call a { display: inline-flex; align-items: center; min-height: 44px; font: 800 1.08rem/1 var(--font-display); color: #fff; text-decoration: none; }

/* ---------- footer, rail, consent ---------- */
.foot { position: relative; background: var(--esp); color: var(--on-dark-2); padding: 32px 0 calc(30px + env(safe-area-inset-bottom)); font-size: .92rem; }
.foot__cols { display: grid; gap: 6px; }
.foot__brand { margin-bottom: 4px; }
.foot__call { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; }
.foot__call .num { flex-basis: 100%; }
.foot__brand { display: inline-flex; justify-self: start; align-items: center; gap: 12px; padding: 12px 22px 12px 14px; background: var(--paper); color: var(--ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.foot__plate { display: inline-flex; }
.foot__plate img { height: 44px; width: auto; }
.foot__brand .brand__name small { color: var(--bronze); }
.foot .num { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 800 1.4rem/1 var(--font-display); color: #fff; text-decoration: none; }
.foot .num svg { color: var(--bronze-lt); }
.foot__social a, .foot__nav a, .foot__legal a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; }
.foot__social { display: flex; gap: 18px; }
.foot__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot__legal { font-size: .84rem; }
.foot__legal p + p { margin-top: 2px; }
@media (min-width: 900px) {
  .foot { padding: 52px 0 54px; }
  .foot__cols { gap: 22px; }
  .foot__cols { grid-template-columns: 1.2fr 1fr 1.2fr; align-items: start; column-gap: 48px; }
  .foot__legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--esp-3); display: flex; justify-content: space-between; }
}
.rail { --c: 14px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; background: var(--bronze); color: #fff; text-decoration: none; font: 700 1rem/1 var(--font-text); transform: translate3d(0, 150%, 0); transition: transform .4s var(--ease); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.rail.show { transform: none; }
.rail[hidden] { display: none; }
.rail b { font: 800 1.1rem/1 var(--font-display); }
html.menu-open .rail, html.gal-open .rail { visibility: hidden; }
/* a wide screen keeps the number and the quote button in the fixed header, so the rail is a phone and tablet thing */
@media (min-width: 1100px) { .rail { display: none !important; } }
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 45; max-width: 440px; padding: 14px 16px; background: var(--paper); color: var(--ink); font-size: .86rem; line-height: 1.5; box-shadow: 0 14px 40px rgba(0, 0, 0, .28); border-top: 4px solid var(--bronze); }
.consent[hidden] { display: none; }
.consent__actions { display: flex; gap: 8px; margin-top: 10px; }
.consent__actions button { flex: 1; min-height: 44px; border: 0; background: var(--esp); color: #fff; font: 700 .9rem var(--font-text); cursor: pointer; }
.consent__actions button + button { background: var(--ash); color: var(--ink); }
@media (min-width: 1100px) { .consent { left: 28px; right: auto; bottom: 28px; } }

/* ---------- legal pages and 404 share the sheet ---------- */
.legal-page, .page-404 main section { padding: 48px 0 72px; }
.legal-page .wrap, .page-404 .wrap { max-width: 760px; }
.legal-page h1, .page-404 h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: 18px; }
.legal-page h2 { font-size: 1.3rem; margin: 30px 0 8px; }
.legal-page p, .legal-page li { color: var(--ink-2); }
.legal-page p + p { margin-top: 12px; }
.legal-page ul { padding-left: 20px; margin: 10px 0; }
.legal-page a { color: var(--bronze); font-weight: 600; }
.page-404 .num { display: inline-flex; min-height: 44px; align-items: center; margin-top: 16px; font: 800 1.4rem var(--font-display); color: var(--bronze); }

/* ---------- scroll reveals: each kind of content arrives its own way (armed by head.js as html.rv-on) ---------- */
[data-reveal="tag"] { transition: clip-path .5s var(--ease); clip-path: inset(0 0 0 0); }
html.rv-on [data-reveal="tag"]:not(.is-in) { clip-path: inset(0 100% 0 0); }
[data-reveal="mask"] .mw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
[data-reveal="mask"] .mw__i { display: inline-block; transition: transform .6s var(--ease); transition-delay: calc(.04s + var(--l, 0) * .09s); }
html.rv-on [data-reveal="mask"]:not(.is-in) .mw__i { transform: translate3d(0, 108%, 0); }
[data-reveal="deal"] > * { position: relative; transition: transform .85s var(--ease), opacity .35s var(--ease); }
[data-reveal="deal"] > :nth-child(1) { z-index: 3; }
[data-reveal="deal"] > :nth-child(2) { z-index: 2; transition-delay: .12s; }
[data-reveal="deal"] > :nth-child(3) { z-index: 1; transition-delay: .24s; }
html.rv-on [data-reveal="deal"]:not(.is-in) > :nth-child(1) { opacity: 0; transform: translate3d(0, 26px, 0) rotate(-2.5deg); }
html.rv-on [data-reveal="deal"]:not(.is-in) > :nth-child(2) { transform: translate3d(calc(-100% - 12px), 14px, 0) rotate(3deg); }
html.rv-on [data-reveal="deal"]:not(.is-in) > :nth-child(3) { transform: translate3d(calc(-200% - 24px), 20px, 0) rotate(-4deg); }
@media (min-width: 1100px) {
  html.rv-on [data-reveal="deal"]:not(.is-in) > :nth-child(2) { transform: translate3d(calc(-100% - 20px), 14px, 0) rotate(3deg); }
  html.rv-on [data-reveal="deal"]:not(.is-in) > :nth-child(3) { transform: translate3d(calc(-200% - 40px), 20px, 0) rotate(-4deg); }
}
[data-reveal="side"] { transition: opacity .5s var(--ease), transform .6s var(--ease); }
html.rv-on [data-reveal="side"]:not(.is-in) { opacity: 0; transform: translate3d(-30px, 0, 0); }
[data-reveal="rise"] { transition: opacity .45s .06s var(--ease), transform .55s .06s var(--ease); }
html.rv-on [data-reveal="rise"]:not(.is-in) { opacity: 0; transform: translate3d(0, 16px, 0); }
[data-reveal="list"] > * { transition: opacity .4s var(--ease), transform .55s var(--ease); }
html.rv-on [data-reveal="list"]:not(.is-in) > * { opacity: 0; transform: translate3d(-16px, 0, 0); }
[data-reveal="list"] > :nth-child(2) { transition-delay: .06s; }
[data-reveal="list"] > :nth-child(3) { transition-delay: .12s; }
[data-reveal="list"] > :nth-child(4) { transition-delay: .18s; }
[data-reveal="list"] > :nth-child(5) { transition-delay: .24s; }
[data-reveal="list"] > :nth-child(6) { transition-delay: .3s; }
[data-reveal="list"] > :nth-child(7) { transition-delay: .36s; }
[data-reveal="list"] > :nth-child(8) { transition-delay: .42s; }
[data-reveal="cards"] { perspective: 1400px; }
[data-reveal="cards"] > * { transition: opacity .5s var(--ease), transform .9s var(--ease); transform-origin: 0 50%; }
html.rv-on [data-reveal="cards"]:not(.is-in) > * { opacity: 0; transform: translate3d(48px, 0, 0) rotateY(-14deg); }
[data-reveal="cards"] > :nth-child(2) { transition-delay: .08s; }
[data-reveal="cards"] > :nth-child(3) { transition-delay: .16s; }
[data-reveal="cards"] > :nth-child(4) { transition-delay: .24s; }
[data-reveal="wipe"] > picture { transition: clip-path 1s var(--ease); clip-path: inset(0 0 0 0); }
[data-reveal="wipe"] > picture img { transition: transform 1.4s var(--ease), scale 1.4s var(--ease); }
html.rv-on [data-reveal="wipe"]:not(.is-in) > picture { clip-path: inset(0 100% 0 0); }
html.rv-on [data-reveal="wipe"]:not(.is-in) > picture img { scale: 1.15; }
@media (max-width: 899px) { html.rv-on .about__photo[data-reveal="wipe"]:not(.is-in) > picture img { scale: 1.65; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero__media, .about__photo img { transform: none !important; }
  .card, .card picture img { translate: none !important; }
}
