/* Kodelig — Håndverk
   Native CSS, no build step. Colours and fonts come from theme.json
   (--wp--preset--*); the scale and layout are defined here.

   The look: one dark surface, everything ruled with hairlines, mono caps for
   labels, Schibsted Grotesk (Profil's typeface) for headings and text with
   one word in Instrument Serif italic. Motion is scroll-led: blocks rise into place as they enter,
   the chapter rail and ruler on the right track the story,
   and the pixel hero runs along it (assets/js/main.js).

   Reset and base sit in cascade layers, so WordPress' and the shared
   mu-plugins' own unlayered styles (style switcher, privacy and demo
   modals) still win for their widgets. */

@layer reset, base;

/* ---------------------------------------------------------------- tokens */
:root {
	--bg: var(--wp--preset--color--natt, #0a1119);
	--bg-sunken: var(--wp--preset--color--dypt, #060a10);
	--bg-raised: var(--wp--preset--color--flate, #0e1620);
	--fg: var(--wp--preset--color--tekst, #eef2f4);
	--fg-2: var(--wp--preset--color--tekst-2, #a3b1bd);
	--fg-3: var(--wp--preset--color--tekst-3, #71818e);
	--amber: var(--wp--preset--color--amber, #e8a855);
	--aurora: var(--wp--preset--color--nordlys, #2fd38c);
	--ice: var(--wp--preset--color--is, #6aaefc);
	--line: rgb(214 226 236 / .11);
	--line-strong: rgb(214 226 236 / .24);

	--font: var(--wp--preset--font-family--grotesk, "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif);
	--serif: var(--wp--preset--font-family--serif, "Instrument Serif", Georgia, serif);
	--mono: var(--wp--preset--font-family--mono, "Geist Mono", ui-monospace, monospace);
	--pixel: var(--wp--preset--font-family--piksel, "Press Start 2P", monospace);

	--step-0: 1.0625rem;
	--step-1: 1.1875rem;
	--step-2: clamp(1.3rem, 1.15rem + .55vw, 1.6rem);
	--step-3: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
	--step-4: clamp(2.2rem, 1.35rem + 3vw, 4rem);
	--step-5: clamp(2.6rem, 1.4rem + 4.4vw, 5.4rem);

	--header-h: 3.25rem;
	--side: clamp(.75rem, 7vw, 7.5rem);
	/* The frame every page's content sits in. With the chapter rail (wide
	   screens) it moves left and leaves the rail its own column. */
	--frame-w: min(100% - 2 * var(--side), 82rem);
	--frame-ml: auto;
	--pad: clamp(1.1rem, 3vw, 2.5rem);
	--ease: cubic-bezier(.22, 1, .36, 1);
	color-scheme: dark;
}

/* ----------------------------------------------------------------- reset */
@layer reset {
	*, *::before, *::after { box-sizing: border-box; }
	* { margin: 0; }
	html { -webkit-text-size-adjust: none; text-size-adjust: none; }
	img, picture, svg, video, canvas { display: block; max-width: 100%; }
	img { height: auto; }
	input, button, textarea, select { font: inherit; color: inherit; }
	button { cursor: pointer; }
	ul[class], ol[class] { list-style: none; padding: 0; }
	table { border-collapse: collapse; }
}

/* ------------------------------------------------------------------ base */
@layer base {
	html {
		scroll-padding-top: calc(var(--header-h) + 3.5rem);
		background: var(--bg);
	}
	@media (prefers-reduced-motion: no-preference) {
		html { scroll-behavior: smooth; }
	}
	body {
		background: var(--bg);
		color: var(--fg);
		font-family: var(--font);
		font-size: var(--step-0);
		line-height: 1.6;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}
	h1, h2, h3, h4 {
		font-weight: 650;
		
		line-height: 1.08;
		letter-spacing: -.02em;
		text-wrap: balance;
	}
	h1 em, h2 em, h3 em, .takeaway em {
		font-family: var(--serif);
		font-style: italic;
		font-weight: 400;
		
		letter-spacing: -.01em;
		font-size: 1.08em;
	}
	p, li, dd { text-wrap: pretty; }
	a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
	strong { font-weight: 650; }
	:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
	::selection { background: var(--amber); color: var(--bg); }
}

/* ------------------------------------------------------------ utilities */
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; top: -4rem; left: 1rem; z-index: 100;
	padding: .7rem 1rem; background: var(--fg); color: var(--bg);
	font: 600 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.icon { width: 1.1rem; height: 1.1rem; flex: none; }
.empty { color: var(--fg-2); padding: var(--pad); }
.eyebrow, .mono {
	font: 500 .75rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow { color: var(--amber); }

/* --------------------------------------------------------------- buttons */
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
	min-height: 3rem; padding: .85rem 1.35rem;
	border: 1px solid transparent;
	font: 600 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
	transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.button .icon { width: 1rem; height: 1rem; transition: transform .25s var(--ease); }
.button:hover .icon { transform: translateX(3px); }
.button:disabled { opacity: .6; cursor: progress; }
.button--solid { background: var(--fg); color: var(--bg); }
.button--solid:hover { background: var(--amber); }
.button--line { border-color: var(--line-strong); color: var(--fg); background: rgb(10 17 25 / .35); }
.button--line:hover { border-color: var(--fg); }

.link {
	display: inline-flex; align-items: center; gap: .45rem;
	color: var(--fg); font-weight: 500; text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size .3s var(--ease);
}
.link:hover { background-size: 100% 1px; }
.link .icon { width: 1rem; height: 1rem; color: var(--amber); transition: transform .25s var(--ease); }
.link:hover .icon { transform: translateX(3px); }
.chapter__head .link, .offering .link, .plan__more, .lost-links .link {
	font: 500 .75rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}

/* ---------------------------------------------------------------- header */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	display: flex; align-items: stretch;
	height: var(--header-h);
	border-bottom: 1px solid var(--line);
	background: color-mix(in oklab, var(--bg) 90%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
.site-header__brand {
	display: grid; place-items: center; flex: none;
	width: var(--header-h);
	border-right: 1px solid var(--line);
	color: var(--fg);
	transition: color .2s var(--ease);
}
.site-header__brand:hover { color: var(--amber); }
.site-header__brand .brand__mark { width: 1.65rem; height: 1.65rem; }
.site-nav { display: flex; align-items: center; padding-inline: .75rem; }
.site-nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; padding: 0; }
.site-nav a {
	display: block; padding: .5rem .6rem;
	color: var(--fg-2); text-decoration: none;
	font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
	transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav a:hover { color: var(--fg); }
.site-nav > ul > li > a[aria-current] { background: var(--fg); color: var(--bg); }
.site-header__demo, .site-header__cta {
	display: flex; align-items: center; padding-inline: 1.35rem;
	font: 600 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.site-header__demo { margin-left: auto; border-left: 1px solid var(--line); color: var(--fg-2); }
.site-header__demo:hover { color: var(--fg); }
.site-header__cta { background: var(--fg); color: var(--bg); transition: background-color .25s var(--ease); }
.site-header__cta:hover { background: var(--amber); }

.site-nav .has-sub { position: relative; }
.site-nav .subnav {
	position: absolute; top: calc(100% + .7rem); left: 0; min-width: 15rem;
	display: grid; padding: .35rem;
	border: 1px solid var(--line-strong);
	background: var(--bg-raised);
	opacity: 0; visibility: hidden; translate: 0 -4px;
	transition: opacity .2s var(--ease), translate .2s var(--ease), visibility 0s .2s;
}
.site-nav .subnav::before { content: ""; position: absolute; inset: -.8rem 0 auto; height: .8rem; }
.site-nav .has-sub:hover > .subnav, .site-nav .has-sub:focus-within > .subnav {
	opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s;
}
.site-nav .subnav a { padding: .7rem .75rem; }
.site-nav .subnav a:hover, .site-nav .subnav a:focus-visible { background: rgb(238 242 244 / .06); }
.site-nav .subnav a[aria-current] { color: var(--amber); }

.menu-toggle, .menu-close {
	display: none; place-items: center;
	border: 0; background: none; color: var(--fg);
}
.menu-toggle { width: var(--header-h); border-left: 1px solid var(--line); }
.menu-toggle .icon, .menu-close .icon { width: 1.35rem; height: 1.35rem; }

.mobile-nav {
	inset: 0 0 auto auto; margin: 0; width: min(100%, 26rem); height: 100dvh; max-height: none;
	padding: 1rem 1.25rem 2rem; border: 0; border-left: 1px solid var(--line-strong);
	background: var(--bg); color: var(--fg); overflow-y: auto;
	opacity: 0; translate: 1.5rem 0;
	transition: opacity .25s var(--ease), translate .25s var(--ease), overlay .25s allow-discrete, display .25s allow-discrete;
}
.mobile-nav:popover-open { opacity: 1; translate: 0 0; }
@starting-style { .mobile-nav:popover-open { opacity: 0; translate: 1.5rem 0; } }
.mobile-nav::backdrop { background: rgb(4 8 12 / .6); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.mobile-nav__title { font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.mobile-nav .menu-close { display: grid; width: 2.75rem; height: 2.75rem; }
.mobile-nav > ul { margin-bottom: 1.5rem; list-style: none; padding: 0; }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-nav ul a { display: block; padding: .85rem 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.mobile-nav ul a[aria-current] { color: var(--amber); }
.mobile-nav .subnav { margin: -.35rem 0 .6rem; padding-left: 1rem; border-left: 1px solid var(--line-strong); list-style: none; }
.mobile-nav .subnav li + li { border-top: 0; }
.mobile-nav .subnav a { padding: .4rem 0; font-size: 1rem; font-weight: 500; color: var(--fg-2); }
.mobile-nav__cta { width: 100%; }
.mobile-nav__demo { display: block; margin-top: 1rem; text-align: center; color: var(--fg-2); font: 500 .75rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 78rem) {
	.site-nav, .site-header__demo { display: none; }
	.site-header__cta { margin-left: auto; }
	.menu-toggle { display: grid; }
}
@media (max-width: 26rem) {
	.site-header__cta { padding-inline: .9rem; }
}

/* ------------------------------------------------------------------ hero */
.hero {
	position: relative; isolation: isolate; overflow: clip;
	display: grid; place-items: center;
	min-height: max(40rem, 100svh);
	padding: calc(var(--header-h) + 3rem) var(--pad) 5rem;
	text-align: center;
}
/* Full width, so the wide wordmark centres like the lines under it (a
   narrower column let it overflow to the right and pushed everything off
   centre). The text blocks carry their own measure. */
.hero__inner { position: relative; z-index: 2; display: grid; justify-items: center; width: 100%; }
/* A dark pool behind the text, so passing clips never fight the words. */
.hero__inner::before {
	content: ""; position: absolute; top: -14%; bottom: -14%; left: 50%; z-index: -1;
	width: min(64rem, 125%); translate: -50% 0;
	background: radial-gradient(closest-side, rgb(10 17 25 / .92), rgb(10 17 25 / .7) 55%, transparent);
	pointer-events: none;
}

.wordmark {
	display: inline-flex; align-items: center; gap: .16em;
	font-weight: 700; line-height: .9; letter-spacing: -.025em;
	white-space: nowrap; color: var(--fg);
}
.wordmark .brand__mark { width: .86em; height: .86em; color: var(--amber); flex: none; translate: 0 -.02em; }
.wordmark__letters { display: inline-flex; align-items: baseline; }
.wordmark__letters > span { display: inline-block; }
.wordmark__caret {
	display: inline-block; width: .5em; height: .1em; margin-left: .06em;
	background: var(--amber); opacity: 0;
}
.wordmark--hero { font-size: clamp(2.9rem, 1rem + 8.2vw, 7.6rem); }
.wordmark--hero .brand__mark, .wordmark--hero .wordmark__letters > span { transform-origin: 0 0; }
.wordmark--hero.is-docking { position: relative; z-index: 40; }
.wordmark--hero.is-docked { visibility: hidden; }

.hero__title {
	max-width: 40rem;
	margin-top: clamp(1.4rem, 3vh, 2.2rem);
	font-size: var(--step-3); font-weight: 600; line-height: 1.12;
}
.hero__title em { display: inline; }
.hero__lede { max-width: 42ch; margin-top: 1.15rem; color: var(--fg-2); font-size: var(--step-1); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 2rem; }
.hero__note { margin-top: 1.1rem; color: var(--fg-3); font-size: .9375rem; }
.hero__note a { color: var(--fg-2); text-decoration-color: rgb(232 168 85 / .7); }
.hero__note a:hover { color: var(--amber); }

.motion-toggle {
	position: absolute; z-index: 3; left: var(--pad); bottom: 1.25rem;
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .45rem .6rem; border: 1px solid var(--line); background: rgb(10 17 25 / .6);
	color: var(--fg-3); font: 500 .625rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
	transition: color .2s var(--ease), border-color .2s var(--ease);
}
.motion-toggle:hover { color: var(--fg); border-color: var(--line-strong); }
.motion-toggle__icon { width: 8px; height: 9px; border-inline: 3px solid currentColor; }
.is-paused .motion-toggle__icon { border: 0; border-left: 8px solid currentColor; border-block: 4.5px solid transparent; width: 0; height: 0; }
html:not(.js) .motion-toggle { display: none; }

/* The ground: Senja around Silsand as live contour lines over the whole
   hero, fading into the page at the top and bottom. terrain.js paints the
   canvas and places the real place names; the poster is the same map. */
.hero-map {
	position: absolute; inset: 0; z-index: -1;
	-webkit-mask: linear-gradient(180deg, transparent 0, #000 24%, #000 72%, transparent 100%);
	mask: linear-gradient(180deg, transparent 0, #000 24%, #000 72%, transparent 100%);
}
/* Wide screens see a landscape: the sky stays clear, the land runs to the bottom. */
@media (min-aspect-ratio: 1/1) {
	.hero-map {
		-webkit-mask: linear-gradient(180deg, transparent 0, #000 34%, #000 90%, transparent 100%);
		mask: linear-gradient(180deg, transparent 0, #000 34%, #000 90%, transparent 100%);
	}
}
.hero-map__poster, .hero-map .terrain-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-map__poster img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
/* On arrival the contours rise from the sea, so the finished poster waits
   (and shows after a few seconds if the live map never starts). */
.hero-intro .hero-map__poster { opacity: 0; animation: map-poster-in .8s var(--ease) 3.5s forwards; }
@keyframes map-poster-in { to { opacity: 1; } }
.hero-map.is-live .hero-map__poster { visibility: hidden; transition: visibility 0s 1s; }
.hero-map .terrain-canvas { opacity: 0; transition: opacity 1s var(--ease); }
.hero-map .terrain-canvas.is-ready { opacity: 1; }
.terrain-labels { position: absolute; inset: 0; pointer-events: none; }
.terrain-label {
	position: absolute; left: 0; top: 0; margin-top: -.6em; padding-left: .9rem; white-space: nowrap;
	color: var(--fg-2); font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
	opacity: 0; transition: opacity .8s var(--ease);
}
.terrain-label::before {
	content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
	border-radius: 50%; background: currentColor;
}
.terrain-label.is-on { opacity: .85; }
.terrain-label--home { color: var(--amber); padding-left: 1.1rem; }
.terrain-label--home::before { width: 8px; height: 8px; margin-top: -4px; box-shadow: 0 0 0 4px rgb(232 168 85 / .18); }
.terrain-label--home::after {
	content: ""; position: absolute; left: -6px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
	border: 1px solid var(--amber); border-radius: 50%; opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
	.terrain-label--home.is-on::after { animation: map-ping 2.6s var(--ease) infinite; }
	.is-paused .terrain-label--home::after { animation-play-state: paused; }
}
@keyframes map-ping { 0% { opacity: .7; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.8); } }
@media (max-width: 60rem) {
	.hero-map__poster img { object-position: 50% 100%; }
	.terrain-label:not(.terrain-label--home) { display: none; }
}

/* The orbit: clips riding out of the wordmark on a slow spiral, drawn on
   one canvas by orbit-gl.js (or as the cards themselves without WebGL2).
   Positions are set per frame by main.js; until it runs (or without JS) the
   orbit stays empty and the hero is just type. */
.orbit {
	position: absolute; inset: 0; z-index: 0; pointer-events: none;
	perspective: 1300px;
	/* Clips dim behind the words (and fade out behind the rail's list). */
	-webkit-mask: radial-gradient(ellipse 34% 40% at 50% 54%, rgb(0 0 0 / .3) 35%, #000 92%);
	mask: radial-gradient(ellipse 34% 40% at 50% 54%, rgb(0 0 0 / .3) 35%, #000 92%);
}
.has-rail .orbit {
	-webkit-mask: radial-gradient(ellipse 34% 40% at 50% 54%, rgb(0 0 0 / .3) 35%, #000 92%), radial-gradient(ellipse 24% 26% at 94% 92%, transparent 40%, #000 100%);
	-webkit-mask-composite: source-in;
	mask: radial-gradient(ellipse 34% 40% at 50% 54%, rgb(0 0 0 / .3) 35%, #000 92%) intersect, radial-gradient(ellipse 24% 26% at 94% 92%, transparent 40%, #000 100%);
}
@media (max-width: 78rem), (max-height: 35.99rem) {
	.has-rail .orbit {
		-webkit-mask: radial-gradient(ellipse 34% 40% at 50% 54%, rgb(0 0 0 / .3) 35%, #000 92%);
		mask: radial-gradient(ellipse 34% 40% at 50% 54%, rgb(0 0 0 / .3) 35%, #000 92%);
	}
}
.orbit__dial {
	position: absolute; left: 50%; top: 50%;
	width: min(92vmin, 60rem); height: auto; translate: -50% -50%;
	stroke: rgb(214 226 236 / .07); stroke-width: 1.4;
}
.orbit__arcs { position: absolute; inset: 0; transform-style: preserve-3d; }
.arc {
	--d: min(118vmin, 78rem);
	position: absolute; left: 50%; top: 50%;
	width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
	transform-style: preserve-3d;
	opacity: 0; transition: opacity 1.4s var(--ease);
}
.arc b {
	position: absolute; inset: 0; border-radius: 50%;
	border: 1.5px solid currentColor;
	-webkit-mask: conic-gradient(from 0deg, transparent 0 58%, rgb(0 0 0 / .25) 70%, #000 92%, transparent 93%);
	mask: conic-gradient(from 0deg, transparent 0 58%, rgb(0 0 0 / .25) 70%, #000 92%, transparent 93%);
	animation: arc-spin 16s linear infinite;
}
.arc--a { color: var(--amber); transform: rotateX(74deg) rotateZ(10deg); }
.arc--b { color: var(--aurora); transform: rotateY(68deg) rotateX(12deg); --d: min(104vmin, 70rem); }
.arc--b b { animation-duration: 12s; animation-direction: reverse; }
.arc--c { color: var(--ice); transform: rotateX(58deg) rotateY(-42deg); --d: min(132vmin, 86rem); }
.arc--c b { animation-duration: 21s; }
@keyframes arc-spin { to { rotate: 1turn; } }
.orbit.is-live .arc { opacity: .9; }

.orbit__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The canvas draws every card from one video. It lies under the canvas, all
   but invisible: browsers (Safari on iPhone above all) stop decoding videos
   they consider hidden. The plain cards sit out. */
.orbit__atlas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .01; pointer-events: none; }
.orbit.is-gl .orbit__stage { visibility: hidden; }
/* A sideways swipe turns the field; the page still scrolls and zooms. */
.hero { touch-action: pan-y pinch-zoom; }
.hero.is-pointing { cursor: pointer; }
/* The name over the card under the pointer (main.js places it). */
.orbit-label {
	position: absolute; left: 50%; top: 50%; z-index: 1;
	display: grid; gap: .35rem; white-space: nowrap; pointer-events: none;
	color: var(--fg-3); font: 500 .625rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
	opacity: 0; transition: opacity .25s var(--ease);
}
.orbit-label [data-title] { color: var(--fg); font: 600 1rem/1.1 var(--font); letter-spacing: 0; text-transform: none; }
.orbit-label.is-on { opacity: 1; }

/* The peek: a clicked card, large. The media flies in from the card's place
   (main.js); the backdrop only blurs. */
.peek {
	width: min(100% - 2 * var(--pad), 60rem, (100svh - 13rem) * 16 / 9); max-width: none; max-height: none;
	margin: auto; padding: 0; border: 0; background: none; color: var(--fg); overflow: visible;
}
.peek--small { width: min(100% - 2 * var(--pad), 42rem, (100svh - 13rem) * 16 / 9); }
.peek::backdrop {
	background: transparent;
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	opacity: 0; transition: opacity .4s var(--ease);
}
.peek[open]::backdrop { opacity: 1; }
@starting-style { .peek[open]::backdrop { opacity: 0; } }
.peek.is-closing::backdrop { opacity: 0; }
.peek__inner { position: relative; display: grid; gap: .6rem; }
.peek__media {
	position: relative; aspect-ratio: 16 / 9; overflow: hidden; transform-origin: 0 0;
	border-radius: 12px; background: #05080c;
	box-shadow: 0 0 0 1px rgb(214 226 236 / .2), 0 40px 120px -24px rgb(0 0 0 / .75);
}
.peek__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.peek__body {
	display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem 1.5rem;
	padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-raised);
}
.peek__kind { color: var(--fg-3); font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.peek__title { margin-top: .5rem; font-size: var(--step-2); font-weight: 600; line-height: 1.15; }
.peek__close {
	position: absolute; top: .75rem; right: .75rem;
	display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
	border: 1px solid var(--line-strong); border-radius: 50%; background: rgb(10 17 25 / .75); color: var(--fg);
	transition: color .2s var(--ease), border-color .2s var(--ease);
}
.peek__close svg { width: 1.1rem; height: 1.1rem; }
.peek__close:hover, .peek__close:focus-visible { color: var(--amber); border-color: var(--amber); }
.peek [hidden] { display: none !important; }
.peek.is-closing .peek__body, .peek.is-closing .peek__close { opacity: 0; transition: opacity .15s; }
/* --cw: the full-grown card width, set by main.js. */
.orbit__stage { --cw: clamp(6.25rem, 3.6rem + 7.4vw, 12rem); position: absolute; left: 50%; top: 50%; }
.orbit-card {
	position: absolute; left: 0; top: 0;
	width: var(--cw); aspect-ratio: 16 / 9;
	margin: calc(var(--cw) * -.28125) 0 0 calc(var(--cw) * -.5);
	background: #05080c;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' preserveAspectRatio='none'%3E%3Cpath d='M9 2.5Q80 -1 151 2.5Q158 3 158.5 10Q161 45 158.5 80Q158 87 151 87.5Q80 91 9 87.5Q2 87 1.5 80Q-1 45 1.5 10Q2 3 9 2.5Z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' preserveAspectRatio='none'%3E%3Cpath d='M9 2.5Q80 -1 151 2.5Q158 3 158.5 10Q161 45 158.5 80Q158 87 151 87.5Q80 91 9 87.5Q2 87 1.5 80Q-1 45 1.5 10Q2 3 9 2.5Z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
	opacity: 0;
	will-change: transform, opacity;
	backface-visibility: hidden;
}
.orbit-card video, .orbit-card picture, .orbit-card img, .orbit-card canvas {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* Arrival intro: the wordmark types itself out, the words come into focus. */
@media (prefers-reduced-motion: no-preference) {
	.hero-intro .wordmark--hero .wordmark__letters > span { animation: type-in .55s var(--ease) both; animation-delay: calc(.12s + var(--i) * .075s); }
	.hero-intro .wordmark--hero .wordmark__caret { animation: caret 1.5s steps(1) .1s both; }
	.hero-intro .wordmark--hero .brand__mark { animation: focus-in .8s var(--ease) both; }
	.hero-intro .hero__title { animation: focus-in .9s var(--ease) .62s both; }
	.hero-intro .hero__lede { animation: focus-in .9s var(--ease) .74s both; }
	.hero-intro .hero__actions { animation: focus-in .9s var(--ease) .84s both; }
	.hero-intro .hero__note, .hero-intro .motion-toggle { animation: focus-in .9s var(--ease) .94s both; }
}
/* No animated filter (blur) anywhere: it crashed WebKit, see AGENTS.md. */
@keyframes type-in { from { opacity: 0; translate: 0 .12em; } }
@keyframes caret { 0%, 20%, 40%, 60%, 80% { opacity: 1; } 10%, 30%, 50%, 70% { opacity: .15; } 100% { opacity: 0; } }
/* Starts faint, not invisible: the heading is painted (and counted) at once. */
@keyframes focus-in { from { opacity: .18; translate: 0 10px; } }

@media (max-width: 40rem) {
	/* On phones the words fill the width: let the clips show above and below them. */
	.orbit {
		-webkit-mask: radial-gradient(ellipse 70% 27% at 50% 52%, rgb(0 0 0 / .25) 45%, #000 100%);
		mask: radial-gradient(ellipse 70% 27% at 50% 52%, rgb(0 0 0 / .25) 45%, #000 100%);
	}
	.hero { text-align: center; }
	.hero__title { font-size: 1.6rem; }
	.hero__lede { font-size: 1.0625rem; }
	.orbit__stage { --cw: 5.6rem; }
	.orbit-card--extra { display: none; }
	.orbit__dial { width: 120vw; }
}

/* ----------------------------------------------------------------- frame */
.trust {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
	border-top: 1px solid var(--line);
	background: var(--line);
}
.trust li { padding: 1.15rem var(--pad) 1.3rem; background: var(--bg); color: var(--fg-3); font: 500 .6875rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.trust strong { display: block; margin-bottom: .3rem; color: var(--fg); font-weight: 600; }
.trust + .chapter { border-top: 1px solid var(--line); }
@container frame (max-width: 52rem) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container frame (max-width: 26rem) { .trust { grid-template-columns: 1fr; } }

.frame {
	position: relative;
	container: frame / inline-size;
	width: var(--frame-w);
	margin-left: var(--frame-ml);
	margin-right: auto;
	border-inline: 1px solid var(--line);
}
.chapter { position: relative; border-top: 1px solid var(--line); }
.frame > .chapter:first-child { border-top: 0; }
/* Crosshairs where the chapter rule meets the frame lines. */
.chapter::before, .chapter::after {
	content: ""; position: absolute; top: -6px; z-index: 6; width: 11px; height: 11px;
	background: linear-gradient(var(--line-strong), var(--line-strong)) 50% 0 / 1px 100% no-repeat,
		linear-gradient(var(--line-strong), var(--line-strong)) 0 50% / 100% 1px no-repeat;
}
.chapter::before { left: -6px; }
.chapter::after { right: -6px; }
.frame > .chapter:first-child::before, .frame > .chapter:first-child::after { display: none; }

.bar {
	position: sticky; top: var(--header-h); z-index: 5;
	display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
	padding: .8rem var(--pad);
	border-bottom: 1px solid var(--line);
	background: color-mix(in oklab, var(--bg) 88%, transparent);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font: 500 .6875rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase;
	color: var(--fg-3);
}
.bar__label { color: var(--fg-2); }
.bar__num { color: var(--fg-3); }
.bar__meta { text-align: right; }
@media (max-width: 40rem) { .bar__meta { display: none; } }

.chapter__head {
	display: grid; gap: 1.4rem; justify-items: start;
	padding: clamp(3rem, 7vw, 6.5rem) var(--pad) clamp(2.5rem, 5vw, 4.5rem);
}
.chapter__body { padding: clamp(3rem, 6vw, 5.5rem) var(--pad); }
.section-title { max-width: 18ch; font-size: var(--step-4); line-height: 1.02; letter-spacing: -.035em; }
.section-intro { max-width: 52ch; color: var(--fg-2); font-size: var(--step-1); line-height: 1.55; }

/* Blocks rise into place as they enter, once: main.js adds .is-in when a
   block reaches the viewport, so nothing is left faded after the visitor
   scrolls back up. Without JS (no .js class) everything shows. Opacity and
   movement only; an animated blur here crashed WebKit. */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: .15; translate: 0 22px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
	.js .reveal.is-in { opacity: 1; translate: 0 0; }
}
@media (max-width: 64rem) {
	.hero-sprite { filter: none !important; }
	/* Solid bars instead of frosted glass: cheaper on phones. */
	.site-header, .bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}

/* ----------------------------------------------------------------- about */
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.lead { max-width: 32ch; margin-top: 1.75rem; font-size: var(--step-2); line-height: 1.4; letter-spacing: -.01em; color: var(--fg); }
.about__text > p:not(.lead) { max-width: 52ch; margin-top: 1.25rem; color: var(--fg-2); }
.about__text .link { margin-top: 1.75rem; }
.about__portrait { margin-bottom: 1.75rem; }
.about__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.facts { border-top: 1px solid var(--line-strong); }
.facts > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.facts dt { padding-top: .2rem; color: var(--fg-3); font: 500 .6875rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.facts dd { line-height: 1.45; }
.facts__muted { color: var(--fg-2); }
.facts a { text-decoration-color: var(--amber); }
.facts a:hover { color: var(--amber); }
@container frame (max-width: 46rem) {
	.about__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------- cells (offerings, plans …)
   Hairline grids: a 1px gap over the rule colour, cells in the page colour. */
.offerings, .projects, .process, .pricing {
	display: grid; gap: 1px;
	border-top: 1px solid var(--line);
	background: var(--line);
}
.offerings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offering { display: flex; flex-direction: column; background: var(--bg); }
.cell-bar {
	display: flex; justify-content: space-between; gap: 1rem;
	padding: .7rem var(--pad);
	border-bottom: 1px solid var(--line);
	color: var(--fg-3); font: 500 .625rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.offering__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #05080c; }
.offering__media .clip { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
	.offering:hover .clip { scale: 1.03; }
}
.offering__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1.6rem var(--pad) 2.1rem; }
.offering__title { font-size: var(--step-2); line-height: 1.18; }
.offering__title a { text-decoration: none; }
.offering__title a:hover { color: var(--amber); }
.offering p { max-width: 50ch; color: var(--fg-2); }
.offering .link { margin-top: auto; padding-top: .6rem; }
.service-cards__price { color: var(--amber) !important; font: 500 .75rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
@container frame (max-width: 44rem) { .offerings { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- marquee */
.marquee {
	display: flex; overflow: hidden;
	border-top: 1px solid var(--line);
	margin-inline: calc(-1 * var(--side) - 1px);
	-webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
	display: flex; flex: none; gap: 0;
	animation: marquee 48s linear infinite;
}
.marquee__track li {
	display: flex; align-items: center; gap: 2.2rem; padding: .95rem 1.1rem;
	color: var(--fg-2); font: 500 .6875rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
}
.marquee__track li::after { content: ""; width: 5px; height: 5px; background: var(--amber); margin-left: 1.1rem; }
.marquee:hover .marquee__track, .is-paused .marquee__track, .is-paused .arc b { animation-play-state: paused; }
@keyframes marquee { to { translate: -100% 0; } }

/* -------------------------------------------------------------- projects */
.projects { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.project { position: relative; display: flex; flex-direction: column; background: var(--bg); }
.project__media { padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 2.5vw, 2rem) clamp(1.75rem, 3vw, 2.5rem); background: var(--bg-sunken); border-bottom: 1px solid var(--line); }
.project__body { flex: 1; display: flex; flex-direction: column; gap: .55rem; padding: 1.5rem var(--pad) 2rem; }
.project__tag { color: var(--amber); font: 500 .6875rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.project__title { font-size: var(--step-2); }
.project__title a { text-decoration: none; }
.project__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.project__summary { color: var(--fg-2); }
.project__host {
	display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .6rem;
	color: var(--fg); font: 500 .6875rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.project__host .icon { width: .95rem; height: .95rem; color: var(--amber); transition: transform .25s var(--ease); }
.project:hover .project__host .icon { transform: translate(2px, -2px); }
.project:has(a:focus-visible) { outline: 2px solid var(--amber); outline-offset: -2px; }
.project:has(a:focus-visible) a:focus-visible { outline: none; }

.shot { position: relative; margin-right: 7%; transition: translate .6s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
	.project:hover .shot { translate: 0 -5px; }
}
.shot__browser { overflow: hidden; border-radius: 6px; background: #0d1822; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 24px 48px -24px rgb(0 0 0 / .7); }
.shot__bar { display: flex; align-items: center; gap: 5px; height: 22px; padding-inline: 10px; background: #131f2b; }
.shot__bar i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .16); }
.shot__bar span { margin-left: 8px; color: var(--fg-3); font: 500 .5625rem/1 var(--mono); letter-spacing: .06em; }
.shot__browser img, .shot__video { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 750; object-fit: cover; object-position: top; }
.shot__phone {
	position: absolute; right: -8%; bottom: -9%; width: 24%;
	padding: 3px; border-radius: 13px; background: #0d1822;
	box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 18px 32px -14px rgb(0 0 0 / .8);
}
.shot__phone img { width: 100%; aspect-ratio: 390 / 780; object-fit: cover; object-position: top; border-radius: 10px; }
.shot--plain { margin-right: 0; }
.shot--plain .shot__browser img { aspect-ratio: auto; }

/* --------------------------------------------------------------- process */
.process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process__step { position: relative; display: grid; align-content: start; gap: .5rem; padding: 2rem var(--pad) 2.4rem; background: var(--bg); }
/* A varde (cairn with a fire) per step: dark until the step scrolls in, then lit. */
.process__varde {
	position: relative; width: 22px; height: 26px; margin-bottom: 1rem;
	background:
		linear-gradient(var(--fg-3), var(--fg-3)) 3px 22px / 16px 4px no-repeat,
		linear-gradient(var(--fg-3), var(--fg-3)) 5px 17px / 12px 4px no-repeat,
		linear-gradient(var(--fg-3), var(--fg-3)) 7px 12px / 8px 4px no-repeat;
}
.process__varde::before {
	content: ""; position: absolute; left: 7px; top: 0; width: 8px; height: 10px;
	background: var(--amber);
	clip-path: polygon(50% 0, 100% 60%, 75% 100%, 25% 100%, 0 60%);
	opacity: .15;
	transition: opacity .6s var(--ease);
}
.process__step.is-lit .process__varde::before { opacity: 1; }
/* The glow is a second layer that fades in, so no filter is ever animated
   (WebKit crashed animating a drop-shadow on this clipped shape). */
.process__varde::after {
	content: ""; position: absolute; left: 1px; top: -5px; width: 20px; height: 20px; border-radius: 50%;
	background: radial-gradient(closest-side, rgb(232 168 85 / .45), transparent);
	opacity: 0; transition: opacity .6s var(--ease);
}
.process__step.is-lit .process__varde::after { opacity: 1; }
html:not(.js) .process__varde::before { opacity: 1; }
.process__num { color: var(--fg-3); font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; }
.process__title { font-size: var(--step-2); }
.process__text { color: var(--fg-2); }
@container frame (max-width: 58rem) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container frame (max-width: 32rem) { .process { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- pricing */
.pricing { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.75rem var(--pad) 2rem; background: var(--bg); }
.plan--featured { background: var(--bg-raised); box-shadow: inset 0 2px 0 var(--amber); }
.plan__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; min-height: 1.5rem; }
.plan__label { color: var(--fg-3); font: 500 .625rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.plan__badge { padding: .3rem .5rem; background: var(--amber); color: var(--bg); font: 600 .625rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.plan__title { margin-top: .9rem; font-size: var(--step-2); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; margin-top: 1rem; }
.plan__price strong { font-size: clamp(2rem, 1.5rem + 1.3vw, 2.7rem); font-weight: 650; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan__from, .plan__unit { color: var(--fg-3); font: 500 .6875rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.plan__body { flex: 1; margin-top: 1.35rem; padding-top: 1.35rem; border-top: 1px solid var(--line); color: var(--fg-2); font-size: .96875rem; }
.plan__body ul { display: grid; gap: .55rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.plan__body li { position: relative; padding-left: 1.5rem; color: var(--fg); }
.plan__body li::before {
	content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem;
	border: 1px solid var(--amber);
}
.plan__body ul + p { margin-top: 1.1rem; font-size: .875rem; }
.plan__cta { margin-top: 1.75rem; width: 100%; }
.plan__more { align-self: center; margin-top: 1rem; }
@container frame (max-width: 64rem) { .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container frame (max-width: 34rem) { .pricing { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ facebook teaser */
.fb-teaser__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.fb-teaser .section-intro { margin-top: 1.5rem; }
.fb-teaser .link { margin-top: 1.75rem; }
.takeaway {
	padding-left: clamp(1.25rem, 2.5vw, 2rem);
	border-left: 1px solid var(--amber);
	font-size: var(--step-3); font-weight: 650; line-height: 1.12; letter-spacing: -.025em;
	text-wrap: balance;
}
.takeaway span { display: block; margin-top: .2em; color: var(--fg-2); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -.01em; }
.takeaway--center { max-width: 26ch; margin: clamp(3.5rem, 6vw, 6rem) auto 0; }
@container frame (max-width: 46rem) { .fb-teaser__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------- facebook guide */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; }
.compare caption { margin-bottom: 1.5rem; text-align: left; font-size: var(--step-2); font-weight: 650; letter-spacing: -.02em; text-wrap: balance; }
.compare th, .compare td { padding: 1.1rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { color: var(--fg-3); font: 500 .6875rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.compare thead th:last-child { color: var(--amber); }
.compare tbody th { width: 22%; font-weight: 600; }
.compare td:nth-of-type(1) { color: var(--fg-2); }
.compare td:nth-of-type(2) { background: rgb(232 168 85 / .06); }
.compare__label { display: none; }
.fb-guide__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3.5rem, 6vw, 6rem); }
.fb-guide__details h2 { font-size: var(--step-2); max-width: 22ch; }
.fb-guide__details p { margin-top: 1rem; color: var(--fg-2); max-width: 52ch; }
@container frame (max-width: 40rem) {
	.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.compare tr { display: block; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
	.compare th, .compare td { display: block; width: auto; padding: 0; border: 0; }
	.compare tbody th { width: auto; margin-bottom: .75rem; font-size: 1.125rem; }
	.compare td { padding: .75rem 1rem; }
	.compare td + td { margin-top: .5rem; }
	.compare__label { display: block; margin-bottom: .25rem; color: var(--fg-3); font: 500 .625rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
	.fb-guide__details { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- contact */
.contact__panel {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; place-items: center;
	min-height: clamp(22rem, 46vw, 34rem);
	padding: clamp(3rem, 7vw, 6rem) var(--pad);
	border-bottom: 1px solid var(--line);
	background: #04070b;
	text-align: center;
}
.contact__film {
	position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .62;
}
.contact__panel::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(ellipse 60% 70% at 50% 50%, rgb(4 7 11 / .72), rgb(4 7 11 / .25) 70%, rgb(4 7 11 / .55));
}
.contact__panel-inner { display: grid; justify-items: center; gap: 1.1rem; }
.contact__panel .section-title { max-width: 16ch; }
.contact__lede { max-width: 40ch; color: var(--fg-2); font-size: var(--step-1); line-height: 1.55; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__alt { display: grid; gap: .9rem; margin-top: 2rem; }
.contact__alt .link { font-size: .96875rem; }
.form-card { padding: clamp(1.4rem, 3vw, 2.4rem); border: 1px solid var(--line-strong); background: var(--bg-raised); }
@container frame (max-width: 50rem) { .contact__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ form */
.contact-form { display: grid; gap: 1.25rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: .5rem; min-width: 0; }
.field label, .field legend { color: var(--fg-2); font: 500 .6875rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.field__optional { color: var(--fg-3); text-transform: none; letter-spacing: .04em; }
.field input, .field textarea {
	width: 100%; padding: .8rem .9rem;
	border: 1px solid var(--line-strong); border-radius: 0;
	background: var(--bg-sunken); color: var(--fg);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:hover, .field textarea:hover { border-color: rgb(214 226 236 / .4); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgb(232 168 85 / .25); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ef6b5f; }
.choices { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.choices legend { margin-bottom: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
	display: inline-block; padding: .55rem .8rem;
	border: 1px solid var(--line-strong);
	font: 500 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
	transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.choice:hover span { border-color: var(--fg-2); }
.choice:has(input:checked) span { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.choice:has(input:focus-visible) span { outline: 2px solid var(--amber); outline-offset: 2px; }
.contact-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: .25rem; }
.contact-form__footer .button { background: var(--fg); color: var(--bg); }
.contact-form__footer .button:hover { background: var(--amber); }
.contact-form__status { font-size: .9375rem; color: var(--fg-2); }
.contact-form__status[data-state="ok"] { color: var(--aurora); font-weight: 600; }
.contact-form__status[data-state="error"] { color: #ef6b5f; font-weight: 600; }
.contact-form__noscript { color: var(--fg-2); font-size: .9375rem; }
@media (max-width: 34rem) {
	.field-row { grid-template-columns: 1fr; }
	.contact-form__footer .button { width: 100%; }
}

/* ------------------------------------------------------------- page head */
.page-hero { padding-top: var(--header-h); }
.page-hero__frame { position: relative; container: frame / inline-size; width: var(--frame-w); margin-left: var(--frame-ml); margin-right: auto; border-inline: 1px solid var(--line); }
.page-hero .bar { position: static; backdrop-filter: none; background: none; }
.breadcrumb .bar__label { display: flex; flex-wrap: wrap; gap: .55rem; }
.breadcrumb a { color: var(--fg-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb [aria-current] { color: var(--fg); }
.page-hero__inner { padding: clamp(3.5rem, 9vw, 8rem) var(--pad) clamp(3rem, 6vw, 5rem); }
.page-hero__title { max-width: 16ch; font-size: var(--step-5); line-height: 1; letter-spacing: -.035em; }
@media (prefers-reduced-motion: no-preference) {
	.page-hero__title, .page-hero__lede { animation: focus-in .9s var(--ease) both; }
	.page-hero__lede { animation-delay: .12s; }
}
.page-hero__lede { max-width: 56ch; margin-top: 1.6rem; color: var(--fg-2); font-size: var(--step-1); line-height: 1.55; }
.page-hero__lede p + p { margin-top: 1rem; }
.page-hero + .frame { border-top: 1px solid var(--line); }

/* ----------------------------------------------------------------- prose */
.prose { max-width: calc(44rem + 2 * var(--pad)); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.75rem; font-size: var(--step-2); }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--amber); }
.prose a { color: var(--amber); font-weight: 500; }
.prose a:hover { color: var(--fg); }
.prose em { color: var(--fg-2); }
.prose table { width: 100%; hyphens: auto; overflow-wrap: anywhere; }
.prose th, .prose td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
@media (max-width: 40rem) { .prose th, .prose td { padding: .55rem .5rem; } }
.lost-links { display: grid; gap: 1rem; }

/* ------------------------------------------------------------- footer */
.site-footer {
	margin-top: 0;
	border-top: 1px solid var(--line);
	background: var(--bg-sunken); color: var(--fg-2);
	font-size: .9375rem;
}
.site-footer .wrap { width: var(--frame-w); margin-left: var(--frame-ml); margin-right: auto; padding-inline: var(--pad); border-inline: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.site-footer .brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--fg); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.site-footer .brand__mark { width: 1.6rem; height: 1.6rem; color: var(--amber); }
.site-footer__tagline { margin-top: 1.1rem; color: var(--fg); font-family: var(--serif); font-style: italic; font-size: 1.25rem; }
.site-footer__brand p + p { margin-top: .35rem; color: var(--fg-3); }
.site-footer__heading { margin-bottom: 1rem; color: var(--fg-3); font: 500 .6875rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: .55rem; list-style: none; padding: 0; }
.site-footer .subnav { display: none; }
.site-footer a { text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover, .site-footer a[aria-current] { color: var(--fg); }
.site-footer__base {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
	padding-block: 1.25rem 1.5rem;
	border-top: 1px solid var(--line);
	color: var(--fg-3); font: 500 .625rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
@media (max-width: 60rem) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .site-footer__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------- chapter rail, ruler, hero
   Built by main.js on wide screens. The rail lists the page's chapters
   (data-chapter): passed ones small at the top under the wordmark, the
   current one large, the rest waiting at the bottom. */
.rail {
	/* Starts below the shared style switcher (top 130px), with room for the hero to stand on the wordmark. */
	position: fixed; z-index: 30; right: 4.6rem; top: calc(var(--header-h) + 11.6rem); bottom: 1.25rem;
	width: min(32rem, 44vw);
	pointer-events: none;
}
.rail__head, .rail__item {
	position: absolute; top: 0; right: 0;
	transform-origin: 100% 0;
	color: var(--fg); text-decoration: none; white-space: nowrap;
	pointer-events: auto;
}
.rail__head { display: flex; font-size: 1.05rem; opacity: 0; transition: opacity .25s linear; }
.rail.is-docked .rail__head { opacity: 1; }
.rail__head .wordmark__caret { display: none; }
.rail__item {
	font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
	color: var(--fg-3);
	transition: transform .75s var(--ease), color .4s var(--ease);
}
.rail__item:hover { color: var(--fg); }
.rail__item.is-current { color: var(--fg); }
.rail__item > span { display: inline-block; }
.rail__item > span > span { display: inline-block; transform-origin: 0 0; white-space: pre; }
.rail__item:focus-visible { outline-offset: 6px; }

.ruler {
	position: fixed; z-index: 30; right: 0; top: calc(var(--header-h) + 8.5rem); bottom: 0; width: 3.4rem;
	overflow: hidden; pointer-events: none;
	border-left: 1px solid var(--line);
	-webkit-mask: linear-gradient(transparent, #000 6%, #000 94%, transparent);
	mask: linear-gradient(transparent, #000 6%, #000 94%, transparent);
}
.ruler__scale {
	position: absolute; left: 0; right: 0; top: 0;
	height: calc(100 * var(--u, 60px) + 1px);
	background:
		repeating-linear-gradient(var(--line-strong) 0 1px, transparent 1px var(--u, 60px)) 100% 0 / 8px 100% no-repeat,
		repeating-linear-gradient(rgb(214 226 236 / .45) 0 1px, transparent 1px calc(5 * var(--u, 60px))) 100% 0 / 20px 100% no-repeat;
	will-change: transform;
}
.ruler__scale span {
	position: absolute; right: 24px; translate: 0 -50%;
	color: var(--fg-3); font: 500 .5625rem/1 var(--mono); letter-spacing: .06em;
}
.ruler__mark {
	position: absolute; left: 0; right: 0; top: 0;
	border-top: 1px solid var(--amber);
	color: var(--amber); font: 600 .5625rem/1 var(--mono); letter-spacing: .06em;
	will-change: transform;
}
.ruler__mark span { position: absolute; right: 4px; top: 4px; }
.rail, .ruler { display: none; }
@media (min-width: 78.01rem) and (min-height: 36rem) {
	.has-rail {
		--rail-col: clamp(17rem, 22vw, 25rem);
		--frame-w: min(100% - var(--side) - var(--rail-col), 82rem);
		--frame-ml: max(var(--side), (100% - var(--rail-col) - 82rem) / 2);
	}
	.has-rail .rail, .has-rail .ruler { display: block; }
	.has-rail .rail { width: calc(var(--rail-col) - 3.4rem); }
	.has-rail .marquee { margin-inline: 0; }
}

.hero-sprite {
	position: fixed; left: 0; top: 0; z-index: 31;
	width: 61px; height: 56px;
	background: var(--sprite) 0 0 / 427px 56px no-repeat;
	pointer-events: none;
	/* A dark pixel outline keeps him readable over busy clips. */
	filter: drop-shadow(1px 0 0 var(--bg)) drop-shadow(-1px 0 0 var(--bg)) drop-shadow(0 1px 0 var(--bg)) drop-shadow(0 -1px 0 var(--bg));
	opacity: 0; transition: opacity .35s var(--ease);
	will-change: transform;
}
.hero-sprite.is-on { opacity: 1; }
.hero-bubble {
	position: fixed; left: 0; top: 0; z-index: 32;
	max-width: 15.5rem; padding: .7rem .8rem .65rem;
	background: var(--fg); color: var(--bg);
	font: 400 .5625rem/1.75 var(--pixel); letter-spacing: 0;
	box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg), 6px 6px 0 4px rgb(0 0 0 / .35);
	pointer-events: none;
	opacity: 0; scale: .9; transition: opacity .2s var(--ease), scale .2s var(--ease);
}
.hero-bubble.is-on { opacity: 1; scale: 1; }
.hero-bubble::after {
	content: ""; position: absolute; width: 8px; height: 8px; background: var(--fg);
	box-shadow: 0 0 0 2px var(--bg);
	clip-path: inset(0 -3px -3px 0);
}
.hero-bubble[data-side="left"]::after { right: -6px; top: calc(50% - 4px); rotate: -45deg; }
.hero-bubble[data-side="up"]::after { left: calc(50% - 4px); bottom: -6px; rotate: 45deg; }
@media (max-width: 78rem) {
	.hero-sprite { width: 42px; height: 38.5px; background-size: 293.5px 38.5px; }
}

/* Nettsidesjekk (shared mu-plugin shortcode) in this design's form language. */
.kodelig-handverk .kdlg-ns { margin: 2.25rem 0 3rem; }
.kodelig-handverk .kdlg-ns label { color: var(--fg-2); font-size: .9375rem; }
.kodelig-handverk .kdlg-ns input, .kodelig-handverk .kdlg-ns textarea {
	background: var(--bg-sunken); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 0; padding: .8rem .9rem;
}
.kodelig-handverk .kdlg-ns input:focus-visible, .kodelig-handverk .kdlg-ns textarea:focus-visible { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgb(232 168 85 / .25); }
.kodelig-handverk .kdlg-ns-consent input { width: auto; accent-color: var(--amber); box-shadow: none; }
.kodelig-handverk .kdlg-ns button {
	min-height: 3rem; padding: .75rem 1.35rem; border: 0; border-radius: 0;
	background: var(--fg); color: var(--bg); font: 600 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.kodelig-handverk .kdlg-ns button:hover { background: var(--amber); }
.kodelig-handverk .kdlg-ns-score { border: 1px solid var(--line-strong); border-radius: 0; background: var(--bg-raised); color: var(--fg); padding: 1.5rem 1.75rem; }
.kodelig-handverk .kdlg-ns-score strong { color: var(--amber); font-size: 3rem; letter-spacing: -.04em; }
.kodelig-handverk .kdlg-ns-bar { background: var(--line-strong); }
.kodelig-handverk .kdlg-ns-bar i { background: var(--amber); }
.kodelig-handverk .kdlg-ns-findings li { background: var(--bg-raised); color: var(--fg); border: 1px solid var(--line); border-left-width: 3px; }
.kodelig-handverk .kdlg-ns-findings b { text-transform: none; letter-spacing: 0; font-size: .875rem; opacity: 1; color: var(--fg-2); }
.kodelig-handverk .kdlg-ns-contact { border: 1px solid var(--line-strong); border-radius: 0; background: var(--bg-raised); padding: clamp(1.5rem, 3vw, 2.25rem); }
.kodelig-handverk .kdlg-ns-contact h2 { margin: 0; font-size: var(--step-2); }

/* ------------------------------------------- shared widgets (mu-plugins) */
/* The style switcher's "11 designs" teaser does not belong on this design. */
#kdlg-swx-intro { display: none !important; }

/* --------------------------------------------------- page transitions */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
	.marquee__track { animation: none; }
	.marquee { overflow-x: auto; }
	.process__varde::before { opacity: 1; }
}

/* ----------------------------------------------------------------- print */
@media print {
	.site-header, .hero-map, .orbit, .rail, .ruler, .hero-sprite, .hero-bubble, .motion-toggle, .marquee, .contact__film, .form-card, .bar { display: none !important; }
	body, .hero, .contact__panel { background: none !important; color: #000 !important; }
}
