/* The system (website-builder kit). Every colour, face and size comes from the tokens in brand.css.
   Model: driftless-softwash.com. Dark page, separate bands, outlined blocks with solid offset shadows, the brand's
   display face for headings only, a floating glass menu, a scroll-played hero, rise-ins, wipes. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip; background: var(--page); color: var(--text);
  font: 400 var(--body-size)/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: var(--display-lh); letter-spacing: var(--display-track); margin: 0; color: var(--head); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(44px, 6.4vw, 92px); }
h2 { font-size: clamp(34px, 4.2vw, 58px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
p { margin: 0; text-wrap: pretty; overflow-wrap: break-word; }
p + p { margin-top: var(--s2); }
.lead { font-size: calc(var(--body-size) + 3px); color: var(--text); max-width: 60ch; }
.mute { color: var(--mute); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--s3)); margin: 0 auto; padding: 0 var(--s3); }
.section { position: relative; padding: var(--s6) 0; }
.band-page { background: var(--page); }
.band-card { background: var(--band); }
.band-light { background: var(--light); color: var(--light-text); --head: var(--light-head); --mute: var(--light-mute); --card: var(--light-card); --line: var(--light-line); --shadow: var(--light-shadow); }
.band-accent { background: var(--accent); color: var(--on-accent); --head: var(--on-accent); --mute: var(--on-accent); --shadow: var(--on-accent); }

/* section heading with the slanted accent bar under it */
.section-head { margin-bottom: var(--s5); max-width: 760px; }
.section-head h2 { display: inline-block; position: relative; padding-bottom: 18px; }
.section-head h2::after { content: ""; position: absolute; left: 2px; bottom: 0; width: min(150px, 60%); height: 7px; background: var(--accent); transform: skewX(-18deg); transform-origin: left; }
.band-accent .section-head h2::after { background: var(--on-accent); }
.section-head p { margin-top: var(--s3); color: var(--mute); font-size: calc(var(--body-size) + 1px); max-width: 62ch; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: var(--btn-pad);
  font: var(--btn-weight) var(--btn-size)/1 var(--btn-face); letter-spacing: var(--btn-track); text-decoration: none; white-space: nowrap;
  background: var(--accent); color: var(--on-accent); border: var(--edge-w) solid var(--edge-c); border-radius: var(--r-s);
  box-shadow: 4px 4px 0 var(--shadow); cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.btn.alt { background: transparent; color: var(--head); border-color: var(--line-strong); }
.band-accent .btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); box-shadow: 4px 4px 0 rgba(0,0,0,0.35); }
.band-accent .btn.alt { background: transparent; color: var(--on-accent); }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* ---------- header: a solid bar at the top, a floating glass bar after the first scroll ---------- */
.hdr { position: sticky; top: 0; z-index: 50; height: 92px; pointer-events: none; }
.hdr-bar {
  pointer-events: auto; position: relative; top: 0; margin: 0 auto; height: 92px; max-width: 100%;
  display: flex; align-items: center; gap: 22px;
  padding: 0 max(var(--s3), calc((100% - var(--wrap)) / 2 + var(--s3)));
  background: var(--bar); border: 0 solid transparent; border-bottom: 3px solid var(--accent);
  transition: height 0.3s ease, max-width 0.35s ease, top 0.3s ease, padding 0.3s ease, border-radius 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.hdr-brand { flex: none; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--head); }
.hdr-brand img { height: 58px; width: auto; max-width: none; transition: height 0.3s ease; }
.hdr-brand .word { font: var(--display-weight) 26px/1 var(--display); letter-spacing: var(--display-track); white-space: nowrap; transition: font-size 0.3s ease; }
.hdr-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr-link { display: inline-flex; align-items: center; height: 44px; padding: 2px 14px 0; font: var(--nav-weight) var(--nav-size)/1 var(--nav-face); letter-spacing: var(--btn-track); color: var(--head); text-decoration: none; white-space: nowrap; border-radius: var(--r-s); }
.hdr-link:hover { background: rgba(255,255,255,0.09); }
.hdr-phone { font: 600 18px/1 var(--body); color: var(--head); text-decoration: none; white-space: nowrap; }
.hdr-phone:hover { color: var(--accent); }
.hdr-cta { min-height: 46px; padding: 2px 18px 0; flex: none; }
.hdr-menu-btn { display: none; }
.hdr.scrolled .hdr-bar {
  top: 14px; height: 64px; max-width: min(1080px, calc(100% - 32px)); padding: 0 10px 0 20px;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 20px;
  background: var(--glass); box-shadow: 0 12px 34px rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
.hdr.scrolled .hdr-brand img { height: 42px; }
.hdr.scrolled .hdr-brand .word { font-size: 21px; }
.hdr.scrolled .hdr-extra, .hdr.scrolled .hdr-phone { display: none; }
.hdr.scrolled .hdr-cta { min-height: 44px; box-shadow: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hdr.scrolled .hdr-bar { background: var(--bar); } }
@media (max-width: 1320px) { .hdr-phone { display: none; } .hdr-link { padding: 2px 10px 0; } }
@media (max-width: 1100px) {
  .hdr-nav { display: none; }
  .hdr-cta { margin-left: auto; }
  .hdr-menu-btn { display: inline-flex; align-items: center; height: 46px; padding: 2px 18px 0; background: var(--card); color: var(--head); border: 2px solid var(--line-strong); border-radius: var(--r-s); font: var(--nav-weight) var(--nav-size) var(--nav-face); cursor: pointer; flex: none; }
  .hdr-nav.open { display: grid; gap: 2px; position: absolute; left: 10px; right: 10px; top: calc(100% + 8px); padding: 10px; max-height: calc(100vh - 120px); overflow-y: auto; background: var(--bar); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,0.6); }
  .hdr-nav.open .hdr-link { height: auto; padding: 15px 12px 12px; font-size: 20px; }
  .hdr-nav.open .hdr-extra { display: flex; }
}
@media (max-width: 980px) {
  .hdr, .hdr-bar { height: 74px; }
  .hdr-bar { padding: 0 var(--s2); gap: 10px; }
  .hdr-brand img { height: 48px; }
  .hdr-brand .word { font-size: 22px; }
  .hdr.scrolled .hdr-bar { top: 10px; height: 58px; max-width: calc(100% - 20px); padding: 0 8px 0 14px; border-radius: 16px; }
  .hdr.scrolled .hdr-brand img { height: 38px; }
  .hdr.scrolled .hdr-brand .word { font-size: 19px; }
  .hdr.scrolled .hdr-menu-btn { height: 42px; }
  .hdr.scrolled .hdr-cta { min-height: 42px; padding: 2px 12px 0; }
}
@media (max-width: 640px) { .hdr-cta { display: none; } .hdr-menu-btn { margin-left: auto; } }
@media (max-height: 520px) and (orientation: landscape) { .hdr, .hdr-bar { height: 60px; } .hdr.scrolled .hdr-bar { top: 6px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .hdr-bar, .hdr-brand img, .hdr-brand .word { transition: none; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--hero-bg); color: #fff; --p: 0; margin-top: -92px; }
.hero-pin { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-poster, .scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 60% 50%); z-index: -3; }
.scene-canvas { z-index: -2; opacity: 0; transition: opacity 0.4s ease; }
.hero.ready .scene-canvas { opacity: 1; }
.hero-pin::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--hero-shade) 0%, var(--hero-shade-mid) 42%, transparent 72%), linear-gradient(0deg, var(--hero-shade) 0%, transparent 38%); }
.hero-copy { position: relative; padding: calc(92px + var(--s5)) 0 var(--s6); max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(46px, 6.6vw, 104px); text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.hero .kicker { display: inline-block; font: 600 16px/1.2 var(--body); color: #fff; background: rgba(0,0,0,0.42); padding: 8px 12px; border-left: 4px solid var(--accent); margin-bottom: var(--s3); border-radius: 2px; }
.hero .lead { color: rgba(255,255,255,0.92); margin-top: var(--s3); max-width: 52ch; }
.hero .facts-line { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: 6px 22px; font: 500 16px/1.3 var(--body); color: rgba(255,255,255,0.85); }
.hero .facts-line b { color: #fff; font-weight: 600; }
.hero .btn.alt { color: #fff; border-color: rgba(255,255,255,0.7); box-shadow: 4px 4px 0 rgba(0,0,0,0.5); }
/* the scrubbed hero is taller than the screen; its inner box stays put while the first scroll plays the clip */
.hero.scrub, .hero.push { min-height: 190svh; }
.hero.scrub .hero-pin, .hero.push .hero-pin { position: sticky; top: 0; height: 100svh; }
.hero.push .hero-poster { transform: scale(calc(1.02 + var(--p) * 0.12)) translateY(calc(var(--p) * -3%)); will-change: transform; }
.hero .hero-copy { transform: translateY(calc(var(--p) * -30px)); }
@media (max-width: 980px) { .hero.scrub, .hero.push { min-height: 160svh; } .hero { margin-top: -74px; } .hero-copy { padding-top: calc(74px + var(--s4)); padding-bottom: var(--s5); }
  .hero-pin::after { background: linear-gradient(0deg, var(--hero-shade) 0%, var(--hero-shade-mid) 45%, transparent 80%); } }
@media (max-height: 520px) and (orientation: landscape) { .hero.scrub, .hero.push { min-height: 0; } .hero.scrub .hero-pin, .hero.push .hero-pin { position: relative; height: auto; min-height: 100svh; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.07s; } .hero-copy > :nth-child(3) { animation-delay: 0.13s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.19s; } .hero-copy > :nth-child(5) { animation-delay: 0.25s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

/* inner page hero: a photo band that zooms and drifts a little with scroll */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--hero-bg); color: #fff; --sy: 0; margin-top: -92px; padding: calc(92px + var(--s6)) 0 var(--s5); }
.page-hero .ph-img { position: absolute; inset: -4% 0; z-index: -2; background: center / cover no-repeat; transform: scale(calc(1.02 + var(--sy) * 0.1)) translateY(calc(var(--sy) * 4%)); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--hero-shade), var(--hero-shade-mid) 60%, transparent); }
.page-hero h1 { color: #fff; }
@media (max-width: 980px) { .page-hero { margin-top: -74px; padding-top: calc(74px + var(--s5)); } }

/* ---------- blocks ---------- */
.block { background: var(--card); border: var(--edge-w) solid var(--line); border-radius: var(--r-l); box-shadow: 6px 6px 0 var(--shadow); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--s3); }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: var(--card); border: var(--edge-w) solid var(--line); border-radius: var(--r-l); box-shadow: 6px 6px 0 var(--shadow); text-decoration: none; color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease; }
a.card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--shadow); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: var(--edge-w) solid var(--line); }
.card-body { padding: var(--s3) var(--s3) calc(var(--s3) + 10px); display: grid; align-content: start; gap: 10px; }
.card .fact { font: 600 15px/1.35 var(--body); color: var(--accent-text); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: center; }
.split.flip > :first-child { order: 2; }
.frame { border: var(--edge-w) solid var(--line); border-radius: var(--r-l); box-shadow: -8px 8px 0 var(--accent); overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s2); }
.gallery figure { margin: 0; grid-column: span 4; border: var(--edge-w) solid var(--line); border-radius: var(--r-l); overflow: hidden; position: relative; }
.gallery figure.wide { grid-column: span 8; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption, .cap { font: 500 15px/1.35 var(--body); color: var(--mute); padding: 10px 14px; background: var(--card); }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--edge-w) solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--card); box-shadow: 6px 6px 0 var(--shadow); }
.reasons > div { padding: var(--s4) var(--s3); border-left: var(--edge-w) solid var(--line); }
.reasons > div:first-child { border-left: 0; }
.reasons h3 { margin-bottom: 10px; }

/* reviews: quoted word for word */
.reviews { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s3); }
.reviews blockquote { margin: 0; padding: var(--s4); background: var(--card); border: var(--edge-w) solid var(--line); border-radius: var(--r-l); box-shadow: 6px 6px 0 var(--shadow); position: relative; overflow: hidden; }
.reviews blockquote:first-child { grid-row: span 2; background: var(--accent); color: var(--on-accent); border-color: var(--edge-c); font-size: calc(var(--body-size) + 6px); display: grid; align-content: center; }
.reviews blockquote p { font-size: inherit; }
.reviews cite { display: block; margin-top: var(--s2); font: 600 16px/1.2 var(--body); font-style: normal; }
.rating-line { margin-top: var(--s3); font: 600 16px/1.3 var(--body); color: var(--mute); }

/* before / after: side by side, or a slider when the pair lines up exactly */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.pair figure { margin: 0; position: relative; border: var(--edge-w) solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.pair img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tag { position: absolute; left: -4px; top: 14px; padding: 8px 14px 6px 16px; background: var(--accent); color: var(--on-accent); font: var(--display-weight) 16px/1 var(--display); transform: skewX(-12deg); border: 2px solid var(--edge-c); }
.ba { position: relative; overflow: hidden; border: var(--edge-w) solid var(--line); border-radius: var(--r-l); --x: 50%; touch-action: pan-y; user-select: none; margin: 0 auto; }
.ba img { width: 100%; display: block; aspect-ratio: auto; pointer-events: none; }
.ba .ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba .ba-before img { height: 100%; object-fit: cover; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.3); }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .tag.after { left: auto; right: -4px; }

/* visit / contact */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s4); align-items: stretch; }
.visit dl { margin: 0; display: grid; gap: var(--s3); }
.visit dt { font: var(--display-weight) 18px/1 var(--display); color: var(--accent-text); letter-spacing: var(--display-track); margin-bottom: 6px; }
.visit dd { margin: 0; font-size: calc(var(--body-size) + 1px); }
.map { min-height: 380px; border: var(--edge-w) solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--card); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-ph { display: grid; place-items: center; height: 100%; min-height: 380px; text-align: center; padding: var(--s3); color: var(--mute); }

/* FAQ */
.faq { display: grid; gap: var(--s2); max-width: 860px; }
details { background: var(--card); border: var(--edge-w) solid var(--line); border-radius: var(--r-s); }
summary { cursor: pointer; padding: 18px 22px; font: 600 calc(var(--body-size) + 1px)/1.35 var(--body); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-text); font-size: 26px; line-height: 0.8; }
details[open] summary::after { content: "–"; }
details[open] { box-shadow: 5px 5px 0 var(--accent); }
details > div { padding: 0 22px 20px; color: var(--mute); }

/* closing band and footer */
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--s4); align-items: center; }
.closing h2 { color: var(--on-accent); }
.foot { background: var(--foot); color: var(--mute); padding: var(--s5) 0 calc(var(--s4) + env(safe-area-inset-bottom)); font-size: 16px; }
.foot .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s4); }
.foot h3 { font-size: 18px; color: var(--accent-text); margin-bottom: 12px; }
.foot a { text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { color: var(--accent-text); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: var(--s3); font-size: 14px; }

/* phone action bar: slides up once the hero's actions have scrolled away */
.bar { display: none; }
@media (max-width: 980px) {
  body { padding-bottom: 78px; }
  .bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bar); border-top: 2px solid var(--accent);
    transform: translateY(110%); transition: transform 0.25s ease-out; }
  .bar.up { transform: none; }
  .bar .btn { min-height: 50px; padding: 2px 8px 0; font-size: 16px; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }

/* ---------- screen sizes ---------- */
@media (min-width: 1800px) { :root { --wrap: 1480px; --body-size: 19px; } }
@media (max-width: 980px) {
  .section { padding: var(--s5) 0; }
  .split, .visit, .reviews, .closing .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .split.flip > :first-child { order: 0; }
  .reviews blockquote:first-child { grid-row: auto; }
  .reasons { grid-template-columns: minmax(0, 1fr); }
  .reasons > div { border-left: 0; border-top: var(--edge-w) solid var(--line); }
  .reasons > div:first-child { border-top: 0; }
  .gallery figure, .gallery figure.wide { grid-column: span 6; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .section-head { margin-bottom: var(--s4); }
}
@media (max-width: 640px) {
  :root { --body-size: 17px; }
  .wrap { padding: 0 var(--s2); }
  .gallery figure, .gallery figure.wide { grid-column: span 12; }
  .pair { gap: 10px; }
  .foot .wrap { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .reviews blockquote { padding: var(--s3); }
}

/* ---------- scroll effects: switched on by js/site.js (html.fx), never for reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.fx .rv { opacity: 0; transform: translateY(26px); }
  html.fx .rv.in { opacity: 1; transform: none; transition: opacity 0.55s ease-out, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
  html.fx .section-head h2::after { transform: skewX(-18deg) scaleX(0); transition: transform 0.6s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
  html.fx .section-head.in h2::after { transform: skewX(-18deg) scaleX(1); }
  /* .wipe is for the AFTER photo of a side-by-side pair only (it uncovers the clean result on a slant); a single photo
     wiped against an empty band looks broken (seen in the Sweet Shop test, 2026-10-25) */
  html.fx .wipe img { clip-path: polygon(0 0, calc(var(--wipe, 1) * 114%) 0, calc(var(--wipe, 1) * 114% - 14%) 100%, 0 100%); }
}

/* ---------- small scroll motion (js/motion.js) ---------- */
.has-mark { position: relative; }
.side-track { position: absolute; top: var(--s6); bottom: var(--s6); left: max(8px, calc((100% - var(--wrap)) / 2 - 120px)); width: 84px; pointer-events: none; display: none; }
.side-mark { position: sticky; top: 42vh; width: 84px; height: 84px; }
.inline-mark { display: block; width: 64px; height: 64px; margin-bottom: 12px; }
.mk { width: 100%; height: 100%; overflow: visible; }
/* his choice (2026-10-25): the small pieces sit above the heading at every width. html.marks-side moves them to the
   margin on wide screens instead (the DRAFT 3 way) */
@media (min-width: 1500px) { .marks-side .side-track { display: block; } .marks-side .inline-mark { display: none; } .inline-mark { width: 72px; height: 72px; } }
.mk path, .mk circle, .mk ellipse, .mk rect, .mk line, .mk polyline { vector-effect: non-scaling-stroke; }
.mk-thin { fill: none; stroke: var(--mark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk-fat { fill: none; stroke: var(--mark); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.mk-hair { fill: none; stroke: var(--mark); stroke-width: 1.2; opacity: 0.45; }
.mk-acc { stroke: var(--accent); }
.mk-fill { fill: var(--accent); }
.mk-fill2 { fill: var(--mark-2); }
.mk-fill3 { fill: var(--mark-3, var(--mark-2)); }
.mk-solid { fill: var(--mark); stroke: none; }
.mk-dirt { stroke: var(--mark-2); stroke-width: 2.6; }
.mk-bg { fill: var(--page); }
.mk-dash { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 7; }
.band-light .mk-thin, .band-light .mk-fat, .band-light .mk-hair { stroke: var(--light-head); }
.band-accent .mk-thin, .band-accent .mk-fat, .band-accent .mk-hair, .band-accent .mk-acc { stroke: var(--on-accent); }
.has-drift { overflow: clip; }
.bg-drift { position: absolute; inset: -360px -400px; z-index: 0; pointer-events: none; background-image: var(--drift); background-size: 400px 360px; opacity: var(--drift-o, 0.08); will-change: transform; }
.has-drift > .wrap { position: relative; z-index: 1; }
.edge-line { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 14px; pointer-events: none; }
.edge-line path { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0.7; vector-effect: non-scaling-stroke; }
.edge-line path + path { opacity: 0.35; }
.pass-band { position: relative; height: 70px; background: var(--page); overflow: hidden; }
.pass-band svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 640px) { .pass-band { height: 48px; } }

/* inline grid spans on gallery items are for computers; phones and tablets stack them */
@media (max-width: 980px) { .gallery > * { grid-column: span 12 !important; grid-row: auto !important; max-width: none !important; } }

/* ---------- the showpiece: one big scroll-driven drawing about the business (js/motion.js, references/showpiece.md).
   It never locks the page (his ask 2026-10-25: "it never stops it never interrupts the natural scroll"): the section
   is an ordinary section about one screen tall; the drawing on the left half plays as the section scrolls past at
   normal speed, every step stays readable on the right and the current one is lit (html.show-live). Phones: drawing
   on top, the steps under it. Without script or with reduced motion: the finished drawing beside every step. ---------- */
.show { position: relative; background: var(--show-bg, var(--band)); }
.show-pin { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: var(--s5);
  padding: var(--s6) max(var(--s3), calc((100% - var(--wrap)) / 2 + var(--s3))); }
.show-stage { position: relative; height: min(72svh, 620px); width: 100%; }
.show-stage::before { content: ""; position: absolute; inset: 4% 2%; border-radius: 50%; background: radial-gradient(closest-side, var(--show-glow, rgba(255, 170, 90, 0.16)), transparent); pointer-events: none; }
.show-stage svg { width: 100%; height: 100%; overflow: visible; }
.show-text h2 { margin-bottom: var(--s4); }
.show-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--s3); }
.show-steps li { font-size: var(--body-size); max-width: 38ch; padding-left: 18px; border-left: 3px solid transparent; transition: opacity 0.3s ease, border-color 0.3s ease; }
.show-steps b { display: block; font: var(--display-weight) clamp(22px, 2vw, 30px)/1.05 var(--display); letter-spacing: var(--display-track); color: var(--head); margin-bottom: 6px; }
.show-count { display: none; }
html.show-live .show-steps li { opacity: 0.42; }
html.show-live .show-steps li.done { opacity: 0.7; }
html.show-live .show-steps li.on { opacity: 1; border-left-color: var(--accent); }
@media (max-width: 980px) {
  .show-pin { grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s5) var(--s2); }
  .show-stage { height: min(92vw, 56svh); }
  .show-text h2 { margin-bottom: var(--s3); font-size: clamp(28px, 7vw, 40px); }
  .show-steps { gap: var(--s2); }
  .show-steps b { font-size: 22px; }
  /* phones: the picture and the words stay in step: only the current step shows, as a caption under the picture */
  html.show-live .show-steps { min-height: 8.5em; display: block; }
  html.show-live .show-steps li { display: none; opacity: 1; }
  html.show-live .show-steps li.on { display: block; }
  html.show-live .show-count { display: flex; gap: 6px; margin-top: var(--s2); }
  html.show-live .show-count i { width: 26px; height: 4px; border-radius: 2px; background: var(--line); }
  html.show-live .show-count i.on { background: var(--accent); }
}
