:root {
	--bg: #f6f4ee;
	--ink: #14231c;
	--muted: #4a5b52;
	--green: #1f6f43;          /* the base hue (about 147 degrees): contours, drawings, the studio name */
	--accent: #ec3f7c;         /* rose-pink (hue about 339, close to the green's complement at 327): the one bold accent, for the button, the route and its dots, the Posted stamp; 3.4:1 on the paper */
	--accent-ink: #ffffff;     /* text on the accent: 3.8:1, which passes for large text, so the button's label is set large and bold (below) */
	--accent-text: #d4144f;    /* the same hue, a touch darker, for small text and focus rings on the paper (4.8:1) */
	--card: #ffffff;
	--line: #d9d6cb;
	--contour: #1f6f43; --contour-alpha: 0.2; --layer-alpha: 0.16; --contour-index: #17583a; --flow-alpha: 0.2;
	--error: #a32020;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f1a14; --ink: #e8efe9; --muted: #a8b8ae; --green: #6cc28f; --accent: #e0195d; --accent-ink: #ffffff; --accent-text: #ff5c93;
		--card: #16261d; --line: #2a3d32; --contour: #6cc28f; --contour-alpha: 0.19; --layer-alpha: 0.17; --contour-index: #8fe0b0; --flow-alpha: 0.13; --error: #ff8a8a;
		color-scheme: dark;
	}
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: clamp(16px, 0.3vw + 14.4px, 21px); } /* (everything is in rem, so the whole page scales gently from a phone to a large monitor) */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.05rem/1.6 'Quicksand', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;}
h1, h2, h3 { font-family: 'Zilla Slab', Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); margin-bottom: 0.8rem; }
.eyebrow { font: 700 0.85rem/1 'Quicksand', system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); margin-bottom: 0.4rem; text-align: center; }
@media (min-width: 761px) { .eyebrow { text-align: center; margin-bottom: clamp(1.6rem, 3.2vw, 3rem); } } /* (wide: centred, with the route's first dot on its left and room underneath; one column: left-aligned beside the route) */
h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
p { margin: 0 0 1rem; max-width: 60ch;  text-wrap:pretty;}
.wrap { max-width: 76rem; margin: 0 auto; padding-inline: clamp(1.75rem, 8vw, 8rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* The page sits on an animated contour map: #gl (the GPU draws the contours and layers) with #flow (drifting specks) over it, and the walking route
   (#route, built by js/route.js) over those; all fixed or absolute behind the content. See js/main.js. */
#gl, #flow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 2.4s ease; }
#gl { z-index: -6; }
#flow { z-index: -5; } /* (one column: the route at -4 runs behind the blurred section panels at -3) */
#gl.ready, #flow.ready { opacity: 1; }
html:not(.atmosphere) body, html.no-gl body { background-image: radial-gradient(60rem 40rem at 80% 0%, color-mix(in srgb, var(--green) 10%, transparent), transparent); } /* (no WebGL: a plain wash, the drifting lines still show) */
#route { position: absolute; left: 0; top: 0; z-index: -4; pointer-events: none; overflow: visible; }
#route-walker-layer { position: absolute; left: 0; top: 0; z-index: -3; pointer-events: none; overflow: visible; } /* (the progress dot: above the grain, below the panels on phones) */
.route-base { stroke: var(--contour-index); stroke-opacity: 0.4; stroke-width: 4.8; stroke-linecap: round; stroke-dasharray: 0.1 9; }
.route-walked { stroke: var(--accent); stroke-width: 5.8; stroke-linecap: round; stroke-dasharray: 0.1 9; }
.route-stop { fill: var(--bg); stroke: var(--contour-index); stroke-opacity: 0.45; stroke-width: 2; transition: fill 0.4s, stroke 0.4s, stroke-opacity 0.4s, opacity 0.15s; }
.route-stop.shown { animation: stopAppear 0.85s cubic-bezier(0.25, 2.4, 0.4, 1); } /* (the empty dot pops, overshooting its size, as the line reaches it) */
@keyframes stopAppear { from { r: 0px; } }
.route-stop.on { fill: var(--accent); stroke: var(--accent); stroke-opacity: 1; animation: stopPop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes stopPop { 0% { r: 3px; } 60% { r: 9.5px; } 100% { r: 6.5px; } }
.route-dot { fill: var(--accent); }
.route-halo { fill: var(--accent); opacity: 0.22; animation: halo 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0%, 100% { transform: scale(0.8); opacity: 0.28; } 50% { transform: scale(1.5); opacity: 0.06; } }
.route-walker { transition: opacity 0.5s; }
.hero .wrap { container-type: inline-size; display: flex; flex-direction: column; min-height: min(60svh, 40rem); padding-top: 1.4rem; padding-bottom: 1.2rem; }
.mark svg { width: 1.5em; height: 1.5em; flex: none; }
.mark { display: flex; align-items: center; justify-content: center; gap: 0.45rem; font-weight: 700; font-size: clamp(1.05rem, 1.2vw + 0.7rem, 1.5rem); color: var(--green); margin: 0 0 1.6rem; }
.hero-main { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; padding-block: 1rem; }
.hero h1 { font-size: clamp(2.7rem, 11cqw, 4rem); line-height: 1.08; margin: 0 0 1.8rem; text-wrap: balance; }
.hero .line { display: inline; }
@media (min-width: 761px) {
	.hero h1 { font-size: clamp(2.7rem, 7.6cqw, 6rem); line-height: 1.05; } /* (sized so the longer line always fits the width) */
	.hero .line { display: block; }
}
.cta { margin: 0; }

.button { display: inline-block; min-height: 44px; padding: 0.6rem 1.6rem; border: 0; border-radius: 0.7rem; background: var(--accent); color: var(--accent-ink); font: 700 1.2rem 'Quicksand', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.button { transition: filter 0.2s ease; box-shadow: 0 0.2rem 0.8rem color-mix(in srgb, var(--accent) 30%, transparent); }
.button:hover { filter: brightness(1.08); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }

section.wrap { padding-top: 3.2rem; padding-bottom: 0.5rem; }
.what { padding-top: clamp(0.4rem, 1.5vw, 1.2rem); }
.what > .wrap > h2 { margin-bottom: 0.9rem; }
/* The three services are full-width bands, each tall enough that scrolling through them is the interaction: the map behind switches layer as each one
   crosses the middle of the screen (js/main.js). */
.service { display: flex; align-items: center; min-height: 34svh; padding: 3.4rem 0; } /* (no fill and no rules: the map behind is the point) */
.service .wrap { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem clamp(2rem, 6vw, 6rem); align-items: center; }
.service .copy { min-width: 0; }
.art { width: 100%; max-width: 24rem; justify-self: center; fill: none; stroke: color-mix(in srgb, var(--green) 72%, var(--ink)); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.art .dots { stroke-dasharray: 0.5 6.5; stroke-width: 2.2; }
.art .sheetfill { fill: color-mix(in srgb, var(--bg) 92%, transparent); stroke: none; }
.art .hl { fill: color-mix(in srgb, var(--accent) 24%, transparent); }
@media (min-width: 761px) { .service:nth-of-type(even) .copy { order: 2; } } /* (the drawing swaps sides each band, so the page doesn't lean one way) */
@media (max-width: 760px) { .service .wrap { grid-template-columns: 1fr; } .service .art { max-width: none; justify-self: stretch; } /*.service .copy p { max-width: none; }*/ } /* (one column: text and drawing use the full width) */
.service h3 { font-size: clamp(2rem, 4.6vw, 3.8rem); margin-bottom: 0.4rem; }
.service p { font-size: clamp(1.02rem, 1.2vw + 0.6rem, 1.3rem); color: var(--muted); max-width: 40ch; margin: 0 auto; }
@media (max-width: 600px) { .service { min-height: 28svh; padding: 2.8rem 0; } .service .copy p { font-size: 1.32rem; line-height: 1.3; } .contact-main > .intro { font-size: 1.18rem; } }

.contact { padding-block: 1rem 3rem; }
.intro { color: var(--muted); }
.contact-grid { display: block; }
.contact-main { position: relative; width: 100%; max-width: 40rem; margin: 0 auto; padding: clamp(2.2rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem); } /* (the blurred panel: its look is the ::before further down) */
.contact-main > h2, .contact-main > .intro { text-align: center; } .contact-main > .intro { margin-inline: auto; } /* (centred at every width) */
.submit-row { text-align: center; }
form { max-width: 36rem; }
.field { margin-bottom: 1rem; }
label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: color-mix(in srgb, var(--card) 96%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 26%, var(--line)); border-radius: 0.6rem; padding: 0.65rem 0.8rem; }
textarea { resize: vertical; min-height: 8rem; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.small { font-size: 0.9rem; color: var(--muted); }
/* The form is a card with two faces: the form, and a "Posted" thank-you it flips over to on a successful send (the same card as on danson.co). js/form.js adds .is-sent. */
.contact-flip { position: relative; perspective: 1800px; }
.contact-flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1); }
.contact-flip.is-sent .contact-flip-inner { transform: rotateY(180deg); }
.contact-flip-front, .contact-flip-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 1rem; }
.contact-flip-front { padding: 0; }
.contact-flip-back { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.4em; padding: 1.5rem; background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); border: 1px solid color-mix(in srgb, var(--ink) 14%, var(--line)); box-shadow: 0 1.6rem 3rem -1rem rgb(0 0 0 / 22%); }
.contact-flip-back p { color: var(--muted); max-width: 30ch; margin: 0; }
.postmark { display: inline-flex; align-items: center; justify-content: center; width: 5.4rem; height: 5.4rem; border: 3px dashed var(--accent); border-radius: 50%; color: var(--accent-text); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; transform: rotate(-12deg) scale(0); margin-bottom: 0.2em; }
.contact-flip.is-sent .postmark { animation: postmark-stamp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s forwards; }
@keyframes postmark-stamp { to { transform: rotate(-12deg) scale(1); } }
.flip-thanks { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0; }
.flip-thanks .letter { display: inline-block; opacity: 0; transform: translateY(14px); }
.contact-flip.is-sent .flip-thanks .letter { animation: letter-rise 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: calc(0.75s + var(--i, 0) * 45ms); }
@keyframes letter-rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .contact-flip-inner { transition: none; } .postmark { transform: rotate(-12deg) scale(1); animation: none !important; } .flip-thanks .letter { opacity: 1; transform: none; animation: none !important; } }
.field-error { display: block; min-height: 0; margin-top: 0.25rem; font-size: 0.88rem; font-weight: 700; color: var(--error); }
.field-error:empty { display: none; }
input.is-invalid, textarea.is-invalid { border-color: var(--error); }
.form-status { margin: 0.4rem 0 0; font-weight: 700; color: var(--error); }
footer { padding-top: 1.5rem; padding-bottom: 2.5rem; color: var(--muted); font-size: 0.9rem; text-align: center; }
footer p { margin: 0 auto; } /* (auto: p is capped at 60ch, which would otherwise sit at the left) */

/* Entrance (only when the script runs: html.js; and not for reduced motion). Order: the pin drops (.intro), then the headline's words rise (.go), then the rest of the
   headline block, then sections ease in as they scroll into view (js/main.js adds .reveal / .in). With no script, everything is simply there. */
@media (prefers-reduced-motion: no-preference) {
	html.js.intro:not(.split) .hero h1 { visibility: hidden; } /* (until the script has split the headline into words: no flash of the plain text) */
	html.js .mark { opacity: 0; } /* (invisible from the first paint, until js/main.js has laid the first section out and adds "placed") */
	html.js.placed .mark { animation: markFade 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; } /* (then it simply fades up) */
	@keyframes markFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
	html.js .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
	html.js .hero h1 .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.95s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i) * 70ms); }
	html.js.go .hero h1 .w > span, html.js:not(.intro) .hero h1 .w > span { transform: none; }
	html.js .cta { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
	html.js.go .cta { transition-delay: 0.5s; }
	html.js.go .cta, html.js:not(.intro) .cta { opacity: 1; transform: none; }
	html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
	html.js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { #gl, #flow { transition: none; } .service h3, .route-stop, .route-walker { transition: none; } }

/* Smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* The line drawings beside each service draw themselves as the band comes into view (only with the script; otherwise they are simply there). */
@media (prefers-reduced-motion: no-preference) {
	html.js .art .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
	html.js .art .fadein { opacity: 0; }
	html.js .in .art .d { animation: draw 1.5s cubic-bezier(0.3, 0.7, 0.2, 1) both; animation-delay: calc(var(--d, 0) * 1s); }
	html.js .in .art .fadein { animation: appear 0.9s ease both; animation-delay: calc(var(--d, 0) * 1s + 0.2s); }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* Everything below the hero starts from nothing and arrives in order. These rules key off the html.js class that the page head sets before the first paint (not
   off classes the script adds later, which left a flash of text). Until the opening has started (html.go) nothing shows; then each section's heading is a ghost until
   its dot is reached, and reaching the dot (js/main.js adds .in) brings the rest in. */
@media (prefers-reduced-motion: no-preference) {
	html.js .eyebrow, html.js .service .copy h3, html.js .service .copy p, html.js .service .art, html.js .contact h2, html.js .contact .intro, html.js .contact-flip {
		transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
	html.js .service .wrap.reveal { opacity: 1; transform: none; transition: none; } /* (the wrapper itself is always there; what is inside it arrives) */
	html.js .contact h2.reveal.in, html.js .contact .intro.reveal.in, html.js .contact-flip.reveal.in, html.js .eyebrow.reveal.in { opacity: 1; transform: none; }
	html.js .eyebrow:not(.in), html.js .contact .intro:not(.in), html.js .contact-flip:not(.in),
	html.js .service .wrap:not(.in) .copy p, html.js .service .wrap:not(.in) .art { opacity: 0; transform: translateY(18px); }
	html.js .service .wrap:not(.in) .copy h3, html.js .contact h2:not(.in) { opacity: 0; transform: translateY(8px); }
}
.art text { fill: color-mix(in srgb, var(--green) 85%, var(--ink)); stroke: none; font: 700 10.5px 'Quicksand', system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; }
.service[data-layer=maps] .art { max-width: 29rem; justify-self: center; } /* (the layer stack is the tallest drawing: give it room so its three layers read clearly) */

/* phones: fainter contour pattern (the drifting specks are not drawn there at all) */
@media (pointer: coarse) {
	:root { --contour-alpha: 0.2; --layer-alpha: 0.2; }
	@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --contour-alpha: 0.26; --layer-alpha: 0.3; } }
	:root[data-theme="dark"] { --contour-alpha: 0.26; --layer-alpha: 0.3; }
}
@media (pointer: coarse) { #gl.ready { opacity: 1; } } /* phones: the whole background sits further back behind the text */

/* A soft, translucent, very rounded panel behind each section, blurring the map a little (the route line passes over it). It arrives with the section (.in).
   TWEAK HERE: --panel-tint (how dark), --panel-blur, --panel-radius, and --panel-gap (how far in from the browser edge: 0.5 = halfway between the edge and the text,
   0 = at the edge, 1 = right up to the text). */
:root { --panel-tint: rgba(30, 45, 35, 0.05); --panel-blur: 10px; --panel-radius: 40px; --panel-gap: 0.5; --panel-saturate: 0.8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --panel-tint: rgba(0, 0, 0, 0.08); } }
:root[data-theme="dark"] { --panel-tint: rgba(0, 0, 0, 0.08); }
.service .wrap { position: relative; --pad: clamp(1.75rem, 8vw, 8rem); --m: max(0px, calc((100vw - 76rem) / 2)); }
.service .wrap { padding-block: clamp(1.8rem, 4vw, 3.2rem); }
.service .wrap::before { content: ""; position: absolute; top: 0; bottom: 0; z-index: -3; pointer-events: none;
	left: calc((var(--pad) + var(--m)) * var(--panel-gap) - var(--m)); right: calc((var(--pad) + var(--m)) * var(--panel-gap) - var(--m));
	border: 2px solid transparent; border-radius: var(--panel-radius); background: var(--panel-tint); -webkit-backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate)); backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate)); }
@media (prefers-reduced-motion: no-preference) {
	/* Before its dot is reached a section is only a very blurry ghost of its panel (the whole box, outlined), drifting up as you scroll (a parallax: js/main.js sets
	   --par); reaching the dot sharpens it into the real panel and brings the content in. */
	/* Two layers, so nothing flashes: ::before is the real panel (with its backdrop blur), ::after is the ghost (a plain, blurred outline of the same box: no backdrop
	   blur on it, since a blur filter on top of a backdrop blur renders oddly). They cross-fade. */
	html.js .service .wrap::before, html.js .contact-main::before, html.js .service .wrap::after, html.js .contact-main::after { transition: opacity 1s ease; }
	html.js .service .wrap:not(.in)::before, html.js .contact-main:not(:has(.contact-flip.in))::before { opacity: 0; }
	html.js.go .service .wrap:not(.in)::after, html.js.go .contact-main:not(:has(.contact-flip.in))::after { opacity: 0.8; transform: translateY(var(--par, 0px)); transition-delay: 1.2s; }
}

/* one column (phones): centred section titles in dark green, and a much smaller panel radius */
@media (max-width: 760px) { .service h3, .service .copy h3 { text-align: center; color: var(--contour-index); margin-bottom: 1.3rem; } :root { --panel-radius: 12px; } }
@media (max-width: 760px) { .service[data-layer="engagement"] .art { width: auto; margin-inline: calc(var(--pad) * (var(--panel-gap) - 1)); } } /* (the Engagement ground lines run out to the edges of the panel, clipped there) */

/* the contact panel: the same blurred rounded panel, but it is the form's own container (title and sub-heading inside it), filling that box exactly */
.contact-main::before { content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none; border: 2px solid transparent; border-radius: var(--panel-radius); background: var(--panel-tint); -webkit-backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate)); backdrop-filter: blur(var(--panel-blur)) saturate(var(--panel-saturate)); }

/* the ghost: the same box as the panel, only a blurred outline and a hint of fill; invisible once its section has been reached */
.service .wrap::after, .contact-main::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: -3; pointer-events: none; opacity: 0;
	border: 2px solid var(--ghost-edge); border-radius: var(--panel-radius); background: var(--ghost-fill); filter: blur(14px) sepia(1); } /* (darker than the page in both themes) */
:root { --ghost-edge: rgba(15, 30, 20, 0.22); --ghost-fill: rgba(15, 30, 20, 0.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ghost-edge: rgba(0, 0, 0, 0.5); --ghost-fill: rgba(0, 0, 0, 0.22); } }
:root[data-theme="dark"] { --ghost-edge: rgba(0, 0, 0, 0.5); --ghost-fill: rgba(0, 0, 0, 0.22); }
.service .wrap::after { left: calc((var(--pad) + var(--m)) * var(--panel-gap) - var(--m)); right: calc((var(--pad) + var(--m)) * var(--panel-gap) - var(--m)); }
.contact-main::after { left: 0; right: 0; }
/* wide screens: the route runs over the blurred panels, down the middle (this comes last so it wins over the one-column order above) */
@media (min-width: 761px) { #gl { z-index: -4; } #flow { z-index: -3; } #route { z-index: -2; } #route-walker-layer { z-index: -1; } }
/* phones: the contact panel is as wide as the other panels; section text is centred */
.contact { --pad: clamp(1.75rem, 8vw, 8rem); }
@media (max-width: 760px) {
	.contact-main { width: auto; max-width: none; margin-inline: calc(var(--pad) * (var(--panel-gap) - 1)); }
	.service .copy p { text-align: left; padding: 0 0.5em;}
}
/* phones: a soft halo in the page colour around "What we do", so the line behind it is hushed where it passes */
@media (max-width: 760px) { .eyebrow { text-shadow: 0 0 6px var(--bg), 0 0 12px var(--bg), 0 0 18px var(--bg), 0 0 26px var(--bg); } }
@media (max-width: 760px) { .hero-main { place-content: start center; } .hero .wrap { min-height: 0; padding-bottom: 0; } .hero-main { padding-bottom: 0; } .what { padding-top: 0.2rem; } } /* (js/main.js adds the top padding that puts the button mid-screen) */
/* a page refreshed part-way down skips the opening: everything is at its final state straight away */
html.js.skip-intro .mark, html.js.skip-intro .mark svg, html.js.skip-intro .mark .ch { animation: none !important; }
html.js.skip-intro .mark .ch { opacity: 1; max-width: none; transform: none; filter: none; }
html.js.skip-intro .hero h1 { visibility: visible; }
html.js.skip-intro .hero h1 .w > span { transform: none; transition: none; }
html.js.skip-intro .cta { opacity: 1; transform: none; transition: none; }
html.js.skip-intro .mark { opacity: 1; }

/* ===== GRAIN LAYER (for testing): <div id="grain"> sits above the drawn background (the canvases) and below the section panels, the route and all the content. =====
   --grain-size    how big the grain looks: the tile is 240px, so 240px = fine, 480px = twice as chunky (try 300-400px)
   --grain-blend   soft-light / overlay / multiply / screen / plus-lighter (additive) / normal
   --grain-opacity how strong
   --grain         the tile itself (opaque grey noise); swap in any image */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%' height='100%' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='2.4 0 0 0 -0.7  2.4 0 0 0 -0.7  2.4 0 0 0 -0.7  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E"); --grain-size: 330px; --grain-blend: overlay; --grain-opacity: 0.5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --grain-blend: soft-light; --grain-opacity: 0.2; } }
:root[data-theme="dark"] { --grain-blend: soft-light; --grain-opacity: 0.1; }
#grain { position: fixed; inset: 0; z-index: -3; pointer-events: none; background-image: var(--grain); background-size: var(--grain-size) var(--grain-size); mix-blend-mode: var(--grain-blend); opacity: var(--grain-opacity); }

/* Desktop scrollbar (mouse and trackpad): the browser's own bar, with its track and arrows, is hidden once js/main.js has set up #sbar (class "sbar"), so the background runs all the
   way to the window's edge. #sthumb is the draggable bar; the track is invisible (a click on it still jumps there). Without the script, the native scrollbar stays. */
html.sbar { scrollbar-width: none; }
html.sbar::-webkit-scrollbar { display: none; }
#sbar { position: fixed; top: 0; right: 0; bottom: 0; width: 18px; z-index: 1000; touch-action: none; }
#sbar:not(:where(.drag, :hover)) #sthumb { opacity: 0.85; }
#sthumb { position: absolute; top: 0; right: 4px; width: 6px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 38%, transparent); transition: width 0.15s ease, right 0.15s ease, background 0.15s ease; cursor: default; will-change: transform; }
#sbar:hover #sthumb, #sbar.drag #sthumb { width: 9px; right: 3px; background: color-mix(in srgb, var(--ink) 55%, transparent); }
html:not(.sbar) #sbar { display: none; }

