/* Stilles Digital: the whole site's look (theme A, chosen by Frans 2026-11-26; rebuilt as one clean file
   2026-11-27, see Övrigt/Backup/2026-11-27 före ombyggnad for the version before).
   Calm dark: navy ground, off-white text, one lime accent. Apple-style parts: system font, squircle corners,
   liquid glass, squircle buttons. The hero enters once on load and its ChatGPT window floats in 3D; small
   visuals play once as they come into view (on the way down only) and again on hover; the rest answers
   the pointer. Everything holds still under reduced motion. */

:root {
  --bg: #0e141f; --surface: #161e2c; --ink: #eef0ea; --muted: #909aac; --faint: #6b7588;
  --line: rgb(255 255 255 / .08); --line-strong: rgb(255 255 255 / .14);
  --accent: #dbff00; --accent-ink: #0e141f; --red: #ff6b6b;
  --glass: rgb(255 255 255 / .06); --glass-edge: rgb(255 255 255 / .22);
  --lead: #b4bccb; --nav-bg: rgb(22 30 44 / .62); --card-bg: rgb(255 255 255 / .04); --card-hover: rgb(255 255 255 / .06);
  --mini-bg: rgb(14 20 31 / .7); --chip-bg: rgb(255 255 255 / .05); --doc-text: #c7ccd6;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.45, .5, 1);
  --r-btn: 14px; --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
  --wrap: 1200px;
  color-scheme: dark;
}
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: clip; }   /* in-page links glide (stilles.js); Tab jumps at once */
body { margin: 0; font: 17px/1.55 var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: clip;
  min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg) linear-gradient(180deg, #0e141f 0%, #111b2d 45%, #0e141f 100%) fixed; }
/* the ground: our navy with a few lighter blues, fixed behind the page */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(60% 50% at 82% 4%, rgb(47 111 176 / .30), transparent 70%),
  radial-gradient(55% 45% at 0% 38%, rgb(32 64 120 / .34), transparent 72%),
  radial-gradient(50% 45% at 78% 96%, rgb(40 90 160 / .22), transparent 72%),
  radial-gradient(35% 30% at 18% 88%, rgb(219 255 0 / .05), transparent 70%); }
main { flex: 1; }
a { color: inherit; }
img, svg { display: block; }
p { text-wrap: pretty; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 11px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
@supports (corner-shape: squircle) { .skip { corner-shape: squircle; border-radius: 19px; } }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* one focus ring everywhere: lime, outside the box, drawn at once (no fade) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* a small light where the mouse is (only with a real mouse; stilles.js moves it) */
/* a soft light that sits exactly under the mouse: a small fixed box moved with transform in the pointer event itself
   (no lag, nothing repainted), two soft layers fading out gently */
.spot { position: fixed; left: 0; top: 0; width: 190px; height: 190px; margin: -95px 0 0 -95px; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .6s ease; mix-blend-mode: screen; will-change: transform; transform: translate3d(-400px, -400px, 0);
  background:
    radial-gradient(45px circle at 50% 50%, rgb(255 255 250 / .075), rgb(255 255 250 / .03) 40%, rgb(255 255 250 / 0) 100%),
    radial-gradient(95px circle at 50% 50%, rgb(150 185 230 / .03), rgb(150 185 230 / .01) 55%, rgb(150 185 230 / 0) 100%); }
html.has-pointer .spot { opacity: 1; }

/* ---------- squircle corners (Apple's continuous curve). Where the browser has corner-shape it draws them;
   stilles.js also cuts the cards, the glass boxes and the ChatGPT window to a superellipse (.is-sq, its radius
   from --sq-r), which works in every browser ---------- */
.sq { --sq-r: 72; border-radius: var(--r-lg); }
@supports (corner-shape: squircle) { .sq { corner-shape: squircle; border-radius: calc(var(--r-lg) * 1.6); } }
.is-sq { clip-path: var(--sq-clip); }
/* the edge of a squircle box is a ring cut from the very same curve as its clip (stilles.js), so the line never
   breaks at the corners (Frans 2026-11-27: "gaps i hörnen"); the box's own border is hidden */
.has-ring { border-color: transparent !important; }
.ring { position: absolute; inset: 0; z-index: 8; pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.ring--line { background: var(--ring-c, var(--line)); }
/* liquid glass: an iridescent rim whose colours turn, and two bright glints that slide along the top and bottom
   edges as the box moves up the screen (and after the mouse on the ChatGPT window), like light on glass */
.ring--glass { background:
    radial-gradient(30% 40% at calc(var(--gx, 30%) + var(--pg, 0%)) 0%, rgb(255 255 255 / .95), rgb(255 255 255 / 0) 72%),
    radial-gradient(30% 40% at calc(100% - var(--gx, 30%) - var(--pg, 0%)) 100%, rgb(255 255 255 / .6), rgb(255 255 255 / 0) 72%),
    conic-gradient(from calc(200deg + var(--ra, 0deg) + var(--pa, 0deg)), rgb(255 255 255 / .5), rgb(120 200 255 / .5), rgb(219 255 0 / .38), rgb(255 160 220 / .42), rgb(255 255 255 / .5)); }

/* ---------- liquid glass ---------- */
.glass { position: relative; background-color: var(--glass); isolation: isolate;
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 rgb(0 0 0 / .15), 0 30px 80px -24px rgb(0 0 0 / .65); }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 45% at var(--gx, 18%) 0%, rgb(255 255 255 / .12), transparent 60%); }
/* a glass box with a squircle clip carries its light in its ring (above), not in an inset line that the clip would cut */
.glass.is-sq { box-shadow: none; }

/* a soft light that follows the pointer across a card (stilles.js writes --px/--py; it fades in on hover) */
@property --sheen { syntax: "<number>"; inherits: false; initial-value: 0; }
.has-sheen { --sheen: 0;
  background-image: radial-gradient(380px circle at var(--px, 50%) var(--py, 0%), rgb(255 255 255 / calc(var(--sheen) * .055)), transparent 70%); }
@media (hover: hover) and (pointer: fine) { .has-sheen:hover { --sheen: 1; } }

/* ---------- nav: a floating glass bar that slides away on the way down and back on the way up ---------- */
.nav { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 0; right: 0; z-index: 20; view-transition-name: nav;
  transition: transform var(--nav-dur, .4s) cubic-bezier(.22, .9, .3, 1); will-change: transform; }
.nav.is-hidden { transform: translateY(calc(-100% - 16px - env(safe-area-inset-top))); visibility: hidden;
  transition: transform var(--nav-dur, .4s) cubic-bezier(.22, .9, .3, 1), visibility 0s linear var(--nav-dur, .4s); }
/* hidden for real once it has slid away: iPhone Safari otherwise paints a blurred copy of it into the status bar */
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 7px 7px 18px; border-radius: 20px;
  background: var(--nav-bg); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .2), inset 0 -1.5px 0 rgb(0 0 0 / .35), 0 2px 0 rgb(5 9 16 / .8), 0 14px 30px -12px rgb(0 0 0 / .7); }
@supports (corner-shape: squircle) { .nav__bar { corner-shape: squircle; border-radius: 32px; } }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 16px; letter-spacing: -0.01em; text-decoration: none;
  white-space: nowrap; min-height: 44px; border-radius: 10px; }
.logo i { width: 20px; height: 20px; background: currentColor; flex: none; transition: transform .6s var(--spring);
  -webkit-mask: url(assets/logo-mark.svg) center / contain no-repeat; mask: url(assets/logo-mark.svg) center / contain no-repeat; }
@media (hover: hover) and (pointer: fine) { .logo:hover i { transform: rotate(-12deg) scale(1.08); } }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 15px;
  color: var(--muted); text-decoration: none; transition: background-color .2s, color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { background: var(--line); color: var(--ink); }
/* FAQ and Kontakt stay in the bar on phones too (Frans 2026-11-26: easy navigation); on the narrowest
   screens the logo keeps its mark and drops the words so everything fits on one line */
.nav__bar .btn { flex: none; }
@media (max-width: 760px) { .nav__links a { padding: 0 10px; font-size: 14px; } }
@media (max-width: 470px) { .logo { min-width: 44px; justify-content: center; } .logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav__links { gap: 0; } .nav__links a { padding: 0 9px; } }
@media (max-width: 360px) { .nav__bar .btn--sm { padding: 0 14px; font-size: 14px; } .nav__links a { padding: 0 7px; } }

/* ---------- buttons: squircles. On hover a button settles inward a few percent and a glossy layer fades
   in (Frans 2026-11-26: "samma animering o look som innan"); a press goes a little deeper ---------- */
.btn { --h: 52px; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 26px; border: 0; border-radius: var(--r-btn); cursor: pointer;
  font: 600 16px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  backface-visibility: hidden; transform: translateZ(0) scale(1); will-change: transform;
  transition: transform 420ms ease, background-color 320ms ease, box-shadow 420ms ease, color 320ms ease; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; opacity: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / .38) 0%, rgb(255 255 255 / .07) 46%, rgb(255 255 255 / 0) 54%),
              radial-gradient(120% 90% at 50% 120%, rgb(255 255 255 / .12), rgb(255 255 255 / 0) 60%);
  transition: opacity 420ms ease; }
@supports (corner-shape: squircle) { .btn, .btn::before { corner-shape: squircle; } .btn { border-radius: calc(var(--r-btn) * 1.7); } }
.btn--sm { --h: 44px; --r-btn: 11px; padding: 0 18px; font-size: 15px; }
.btn--primary { background-color: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 10px 26px -12px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn--glass { background-color: var(--glass); color: var(--ink); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateZ(0) scale(.965); }
  .btn:hover::before { opacity: 1; }
  .btn--primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 -1px 0 rgb(0 0 0 / .12), 0 10px 30px -12px rgb(219 255 0 / .45); }
  .btn--glass:hover { background-color: rgb(255 255 255 / .1); }
}
.btn:active { transform: translateZ(0) scale(.94); transition-duration: 160ms; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.0; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; color: var(--lead); letter-spacing: -0.005em; max-width: 34ch; margin: 22px 0 0; }

/* ---------- sections: one idea per screen ---------- */
.section { padding-block: clamp(72px, 11vh, 130px); }
@media (min-width: 900px) and (min-height: 640px) { .section { min-height: 100svh; display: flex; align-items: center; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: clamp(32px, 6vw, 56px); } }
@media (max-width: 600px) { .section { padding-block: 56px; } }

/* ---------- forms: one field style for every page ---------- */
.field { display: grid; gap: 7px; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.input, .field input, .field textarea { width: 100%; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--chip-bg);
  color: var(--ink); font: 17px var(--font); outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s; }
.input, .field input { height: 52px; }
.field textarea { min-height: 180px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
@supports (corner-shape: squircle) { .input, .field input, .field textarea { corner-shape: squircle; border-radius: 24px; } }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.input:focus, .field input:focus, .field textarea:focus { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: rgb(255 255 255 / .08);
  box-shadow: 0 0 0 4px rgb(219 255 0 / .1); }
.input:focus-visible, .field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.is-shaking { animation: shake 640ms cubic-bezier(.23, 1, .32, 1); }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
.field__error { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- hero ---------- */
.hero { padding-top: calc(76px + clamp(32px, 7vh, 80px)); }
@media (min-width: 900px) and (min-height: 640px) { .hero { min-height: 100svh; } }
@media (max-width: 600px) { .hero { padding-top: calc(76px + 28px); } }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
@media (max-width: 600px) { .cta .btn { flex: 1 1 100%; } }
/* the words drift up and fade as you scroll on (stilles.js writes --hp, 0 to 1 over the hero) */
.hero .enter { translate: 0 calc(var(--hp, 0) * -70px); opacity: calc(1 - var(--hp, 0) * .9); }

/* the hero enters once on load: the quote's two lines come into focus one after the other, then the line
   under it and the buttons, while the ChatGPT window flies in from the depth */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 > span, .hero h1 > em { display: inline-block; animation: line-in 1.1s var(--ease-out) both; }
  .hero h1 > em { animation-delay: .14s; }
  .enter > :not(h1) { animation: rise .9s var(--ease-out) both; }
  .enter > .lead { animation-delay: .32s; }
  .enter > .cta { animation-delay: .44s; }
  .enter-card { animation: card-in 1.7s var(--ease-out) .18s both; }
  /* every other page: its heading and first line rise in once */
  .page-head > h1, .page-head > p, .page-head > .doc { animation: rise .8s var(--ease-out) both; }
  .page-head > p { animation-delay: .1s; }
  .page-head + .wrap { animation: rise .9s var(--ease-out) .16s both; }
}
@keyframes line-in { from { opacity: 0; transform: translateY(.3em); filter: blur(12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
/* the window comes from the depth, turned, and settles into its pose (--enter runs 1 to 0, used in .stage-free) */
@property --enter { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes card-in { from { opacity: 0; --enter: 1; } }

/* ---------- the hero's ChatGPT window: a real object in 3D (Frans 2026-11-27: "ska agera som en riktig 3D-modell").
   A camera looks straight at it (perspective on .stage-wrap, centred on the window). The window turns as one body
   round its own centre: its pose, the scroll (--hp) and the mouse (--tx/--ty, eased by a spring in stilles.js) add
   up in one rotation, so it tilts and never twists. It has a thickness (.slab: thin layers behind the face), it lifts
   towards you when the mouse is on it (--lift), and its shadow lies on the page under it (.stage-shadow), sliding
   away and softening as the window turns and lifts. ---------- */
.stage-wrap { --rx0: 7deg; --ry0: -15deg; --rx-hp: -12deg; --ry-hp: 22deg;
  position: relative; width: 100%; justify-self: end; perspective: 1500px; perspective-origin: 50% 45%;
  translate: 0 calc(var(--hp, 0) * 40px); }
@media (max-width: 900px) { .stage-wrap { --rx0: 9deg; --ry0: 0deg; --rx-hp: -14deg; --ry-hp: 0deg; justify-self: stretch; max-width: none; } }
.stage-free { position: relative; display: grid; transform-style: preserve-3d;
  transform: translateZ(calc(var(--lift, 0) * 44px - var(--enter, 0) * 260px))
    rotateX(calc(var(--rx0) + var(--hp, 0) * var(--rx-hp) - var(--ty, 0) * 10deg + var(--enter, 0) * 14deg))
    rotateY(calc(var(--ry0) + var(--hp, 0) * var(--ry-hp) + var(--tx, 0) * 13deg - var(--enter, 0) * 30deg))
    scale(calc(1 - var(--hp, 0) * .05)); }
/* the thickness: seven thin layers behind the face (21px), from a lit graphite edge to a dark back. The back comes first in
   the page, so they paint in the right order even where a browser does not sort 3D layers */
.slab { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.slab i { position: absolute; inset: 0; clip-path: var(--sq-clip, inset(0 round 40px)); transform: translateZ(calc(var(--i) * -3px));
  background: color-mix(in srgb, #3d414b calc(100% - var(--i) * 13%), #0b0c0f); }
/* its shadow on the page under it */
.stage-shadow { position: absolute; inset: 14% 7% -3% 7%; border-radius: 64px; pointer-events: none;
  background: rgb(2 5 12 / .82); box-shadow: 0 0 80px 30px rgb(47 111 176 / .26); filter: blur(30px);
  transform: translate3d(calc(var(--tx, 0) * -30px), calc(36px + var(--lift, 0) * 30px - var(--ty, 0) * 18px), -90px) scale(calc(1 - var(--lift, 0) * .06));
  opacity: calc(.95 - var(--lift, 0) * .3); }
.gpt { --sq-r: 40; position: relative; overflow: hidden; background: #212121; color: #ececec; border-radius: 22px;
  font: 400 15px/1.55 var(--font); }
/* a faint reflection slides over the screen as it turns, and a soft light sits where the mouse is on it */
.gpt::after { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .05) 48%, transparent 58%) no-repeat;
  background-size: 300% 100%; background-position: calc(30% + var(--tx, 0) * 25% + var(--hp, 0) * 70%) 0; }
.gpt::before { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background: radial-gradient(320px circle at var(--wx, 50%) var(--wy, 0%), rgb(255 255 255 / calc(var(--lift, 0) * .07)), transparent 70%); }
.gpt__bar { padding: 14px 18px 16px; }
.gpt__model { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; }
.gpt__model svg { width: 12px; height: 12px; opacity: .6; }
.gpt__body { padding: 6px 18px 8px; display: grid; gap: 14px; }
.gpt__me { --sq-r: 32; justify-self: end; max-width: 82%; margin: 0; background: #303030; padding: 10px 14px; border-radius: 18px; }
.gpt__ai { position: relative; }
.gpt__ai p { margin: 0 0 8px; }
.gpt__ai ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 5px; color: #d6d6d6; }
.redact { display: inline-block; height: 11px; width: var(--w, 10ch); border-radius: 6px; flex: none; }
.gpt__ai .redact { background: rgb(236 236 236 / .3); margin-right: 6px; vertical-align: -1px; }
.gpt__src { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.gpt__src span { font-size: 12px; color: #b4b4b4; background: #2c2c2c; border-radius: 999px; padding: 3px 10px; }
.gpt__input { margin: 6px 14px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #303030;
  border-radius: 999px; padding: 8px 8px 8px 18px; color: #9b9b9b; }
.gpt__input span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpt__input span.is-typing { color: #ececec; }
.gpt__input span.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em;
  background: #ececec; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.gpt__input i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ececec; color: #212121; flex: none; transition: transform .16s ease; }
.gpt__input i.is-pressed { transform: scale(.85); }
.gpt__input svg { width: 14px; height: 14px; }
.gpt__think { position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #ececec; opacity: 0; }
.gpt__think.is-on { opacity: 1; animation: think 1s ease-in-out infinite; }
@keyframes think { 0%, 100% { transform: scale(.75); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }
/* the check, like find-in-page (Frans 2026-11-27: a new idea for "skannar svaren"): a search pill for "Ditt företag"
   slides in at the top of the window, a lime marker sweeps over each hidden name in turn as it is read, the counter
   goes 1 av 4 ... 4 av 4 and ends on "0 träffar" (stilles.js) */
.gpt__find { position: absolute; top: 13px; right: 14px; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px;
  border-radius: 999px; background: #2f2f2f; border: 1px solid rgb(255 255 255 / .08); font-size: 12.5px; line-height: 1.2; color: #cfcfcf;
  opacity: 0; translate: 0 -5px; transition: opacity .3s ease, translate .45s var(--ease); }
.gpt__find.is-on { opacity: 1; translate: none; }
.gpt__find svg { width: 12px; height: 12px; flex: none; }
.gpt__find b { font-weight: 600; color: #ececec; }
.gpt__find em { font-style: normal; color: #9b9b9b; font-variant-numeric: tabular-nums; transition: color .3s ease; }
.gpt__find.is-none em { color: var(--red); }
.gpt__ai .redact { position: relative; overflow: hidden; }
/* the marker: a lime fill with a soft leading edge that slides in, blurred while it moves (motion blur) and sharp
   when it lands */
.gpt__ai .redact::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 140%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 68%, rgb(219 255 0 / 0)); transform: translateX(-100%); }
.gpt__ai li.is-reading .redact::after { animation: mark-slide .3s cubic-bezier(.45, 0, .2, 1) forwards, mark-blur .3s linear forwards; }
.gpt__ai li.is-read .redact::after { transform: translateX(0); opacity: 0; transition: opacity .5s ease; }
@keyframes mark-slide { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes mark-blur { from { filter: blur(2.4px); } to { filter: blur(0); } }
/* while it plays every part waits invisible in its place, so nothing on the page shifts */
.gpt__me, .gpt__ai li, .gpt__src { transition: opacity .35s ease, translate .45s var(--ease); }
.gpt__ai .w { transition: opacity .3s ease; }
html.gpt-anim :is(.gpt__me, .gpt__ai li, .gpt__src) { opacity: 0; translate: 0 6px; }
html.gpt-anim .gpt__ai .w { opacity: 0; }
html.gpt-anim .gpt .is-shown { opacity: 1; translate: none; }
/* the point of it, in one line: the last thing in the window, under the answer (Frans 2026-11-27: it belongs to
   the window and moves with it) */
.verdict { display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 16px; border-radius: 14px; font-size: 15px; line-height: 1.35;
  color: #ececec; background: rgb(255 107 107 / .12); border: 1px solid rgb(255 107 107 / .34); }
@supports (corner-shape: squircle) { .verdict { corner-shape: squircle; border-radius: 22px; } }
.verdict b { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 0 4px rgb(255 107 107 / .18); }
.verdict b::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); opacity: 0; }
.verdict.is-shown b::after { animation: ping 1.3s ease-out .25s 2; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }
.verdict strong { font-weight: 650; }
html.gpt-anim .verdict { opacity: 0; translate: 0 10px; scale: .97; }
html.gpt-anim .gpt .verdict.is-shown { opacity: 1; translate: none; scale: none; }
.verdict { transition: opacity .35s ease, translate .6s var(--spring), scale .6s var(--spring); }

/* ---------- why: the fan-in diagram in a grainy liquid-glass frame (Frans 2026-11-26: Apple squircle,
   liquid glass, the grainy gradient behind it) ---------- */
.punch { margin: 26px 0 0; font-size: clamp(20px, 2vw, 24px); font-weight: 650; letter-spacing: -0.015em; color: var(--accent); }
/* both grainy frames (this one and the analysis page's) share one shape: a large squircle cut by stilles.js,
   with the liquid-glass ring on its edge and a soft light in the top-left corner */
.glass-frame { --sq-r: 72; position: relative; }
.glass-wrap { border-radius: 44px; box-shadow: 0 30px 80px -24px rgb(0 0 0 / .65); }
@media (max-width: 600px) { .glass-frame { --sq-r: 52; } .glass-wrap { border-radius: 32px; } }
.glass-frame::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: radial-gradient(70% 40% at var(--gx, 16%) 0%, rgb(255 255 255 / .1), transparent 62%); }
/* the diagram loops without a pause button (Frans 2026-11-26) */
.loop-pause { display: none !important; }

/* ---------- how it works: three cards, each with a small visual that plays once as it comes into view
   and again on hover (stilles.js adds .is-play) ---------- */
.how h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.2vw, 28px); background-color: var(--card-bg); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); transition: background-color .3s, translate .3s var(--ease), --sheen .45s ease; }
@media (hover: hover) and (pointer: fine) { .step:hover { translate: 0 -2px; background-color: var(--card-hover); } }
.step__n { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--line); }
@supports (corner-shape: squircle) { .step__n { corner-shape: squircle; border-radius: 17px; } }
.step:first-child .step__n { background: var(--accent); color: var(--accent-ink); }
.step h3 { margin-top: 18px; }
.step p { margin: 8px 0 22px; color: var(--muted); font-size: 16px; }
.mini { --sq-r: 26; position: relative; margin-top: auto; min-height: 128px; padding: 16px; border-radius: var(--r-sm); background: var(--mini-bg); border: 1px solid var(--line); font-size: 14px; }
/* 1. the score rolls into place like a counter while ten answers light up, four of them lime */
.mini--score { display: grid; align-content: space-between; gap: 18px; }
.mini__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mini--score b { font-size: 32px; line-height: 1.15; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini--score .mini__row > span { color: var(--muted); text-align: right; }
.answers { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.answers i { height: 8px; border-radius: 4px; background: rgb(255 255 255 / .1); }
.answers i.on { background: var(--accent); box-shadow: 0 0 10px rgb(219 255 0 / .3); }
/* 2. the list checks itself off, one row at a time */
.mini--list { margin: 0; list-style: none; display: grid; gap: 11px; align-content: center; }
.mini--list li { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.mini--list li i { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.mini--list li i svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 14; stroke-dashoffset: 0; }
.mini--list li.todo { color: var(--muted); }
.mini--list li.todo i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
.mini--list li.todo i svg { stroke-dashoffset: 14; }
/* 3. the months: the bars grow, the last one lime */
.mini--bars { display: flex; align-items: flex-end; gap: 10px; }
.mini--bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 94px; justify-content: flex-end; }
.mini--bars i { width: 100%; height: var(--k); border-radius: 6px 6px 3px 3px; background: var(--line-strong); transform-origin: 50% 100%; }
.mini--bars div:last-of-type i { background: var(--accent); box-shadow: 0 0 18px -4px rgb(219 255 0 / .45); }
.mini--bars span { font-size: 12px; color: var(--muted); }
/* the counter's reels (stilles.js): each digit is a strip one line tall that spins and eases to a stop */
.reel, .reel--static { display: inline-block; height: 1.15em; line-height: 1.15; overflow: hidden; vertical-align: bottom; }
.reel--static { white-space: pre; }
.reel__strip { display: flex; flex-direction: column; transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.reel__strip span { display: block; height: 1.15em; line-height: 1.15; }
@media (prefers-reduced-motion: no-preference) {
  /* waiting to be seen (only when the script runs; without it every card shows its finished picture) */
  html.motion .step:not(.is-play) .answers i.on { background: rgb(255 255 255 / .1); box-shadow: none; }
  html.motion .step:not(.is-play) .mini--list li i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
  html.motion .step:not(.is-play) .mini--list li i svg { stroke-dashoffset: 14; }
  html.motion .step:not(.is-play) .mini--list li { color: var(--muted); }
  html.motion .step:not(.is-play) .mini--bars i { scale: 1 0; }
  /* playing */
  html.motion .step.is-play .answers i.on { animation: answer-on .5s var(--spring) both; animation-delay: calc(.5s + var(--i) * .14s); }
  html.motion .step.is-play .mini--list li { animation: tick-text .3s ease both; animation-delay: calc(.25s + var(--i) * .38s); }
  html.motion .step.is-play .mini--list li i { animation: tick-dot .45s var(--spring) both; animation-delay: calc(.2s + var(--i) * .38s); }
  html.motion .step.is-play .mini--list li i svg { animation: tick-draw .3s ease-out both; animation-delay: calc(.32s + var(--i) * .38s); }
  html.motion .step.is-play .mini--bars i { animation: grow .9s var(--ease-out) both; animation-delay: calc(.15s + var(--n) * .16s); }
}
@keyframes answer-on { from { background: rgb(255 255 255 / .1); box-shadow: none; scale: .5 1; } }
@keyframes tick-text { from { color: var(--muted); } to { color: var(--ink); } }
@keyframes tick-dot { 0% { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); scale: 1; } 45% { scale: .78; }
  100% { background: var(--accent); box-shadow: inset 0 0 0 1.5px transparent; scale: 1; } }
@keyframes tick-draw { from { stroke-dashoffset: 14; } to { stroke-dashoffset: 0; } }
@keyframes grow { from { scale: 1 0; } }

/* ---------- about + close ---------- */
.about p { color: var(--lead); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; max-width: 34ch; margin: 22px 0 0; }
.about p strong { color: var(--ink); font-weight: 650; }
/* "Om Stilles Digital": the words light up one by one as the paragraph scrolls up the screen (stilles.js) */
.about p.lit { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.35; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); max-width: 30ch; }
.lit.is-lit-ready .lw { opacity: .2; transition: opacity .35s ease, color .35s ease; }
.lit.is-lit-ready .lw.is-on { opacity: 1; }
.lit strong .lw.is-on, .lit strong { color: var(--accent); }
.close { padding: clamp(28px, 4vw, 44px); transition: --sheen .45s ease; }
.close h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; }
/* the web address goes straight in here and on to the analysis page, filled in (analys.js) */
.close__label { display: block; color: var(--lead); margin: 10px 0 24px; max-width: 36ch; }
.close__row { display: flex; gap: 8px; }
.close__row .input { flex: 1; min-width: 0; }
@media (max-width: 600px) { .close__row { flex-direction: column; } .close__row .input { flex: none; } .close__row .btn { width: 100%; } }
/* what the free analysis gives, in three short lines with a lime tick */
.ticks { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.ticks li { display: inline-flex; align-items: center; gap: 7px; }
.ticks li::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- footer ---------- */
.foot { padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--ink); }

/* ---------- every other page: a heading block under the nav ---------- */
.page-head { padding: calc(76px + clamp(32px, 6vh, 64px)) 0 28px; }
.page-head p { margin: 14px 0 0; color: var(--muted); font-size: 19px; max-width: 46ch; }

/* ---------- the analysis page: the form and the result side by side on a grainy gradient ---------- */
.tool-wrap { margin-bottom: clamp(48px, 8vh, 96px); }
.tool { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; align-items: start; padding: clamp(14px, 2.4vw, 32px); }
@media (max-width: 960px) { .tool { grid-template-columns: 1fr; } }
.tool-card { --ring-c: rgb(255 255 255 / .06); position: relative; padding: clamp(22px, 3vw, 32px); background: rgb(22 25 32 / .92); border: 1px solid rgb(255 255 255 / .06); }
.tool-form { display: grid; gap: 18px; }
.tool-form .btn { width: 100%; }
.tool-note { margin: 0; font-size: 14px; color: var(--muted); }
.tool-note a { color: var(--ink); text-underline-offset: 3px; }
.tool-result__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; font-weight: 600; }
.tool-result__name { min-width: 0; overflow-wrap: anywhere; }
.tool-result__score { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tool-rows, .tool-bars { list-style: none; margin: 0; padding: 0; }
.tool-rows li, .tool-bars li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.tool-rows li span { flex: 1; min-width: 0; }
.tool-rows em, .tool-bars em { font-style: normal; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 14px; }
.tool-rows em.is-yes { color: var(--accent); }
.tool-rows em.an-by { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; }
.tool-rows em.an-by .is-yes { color: var(--accent); }
.tool-result__label { margin: 22px 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.tool-bars span { flex: 0 0 clamp(110px, 40%, 230px); font-weight: 600; line-height: 1.3; }
.tool-bars i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tool-bars b { display: block; height: 100%; width: calc(var(--k) * 100%); background: var(--accent); border-radius: 3px; transform-origin: 0 50%; }
@media (max-width: 639px) { .tool-bars li { flex-wrap: wrap; row-gap: 8px; } .tool-bars span { flex: 1 1 100%; }
  .tool-result__head { flex-direction: column-reverse; align-items: flex-start; gap: 4px; } .tool-result__score { font-size: 36px; } }
.an-engines { margin: -4px 0 10px; font-size: 14px; color: var(--muted); }
/* while it runs: which step, a bar that fills as the answers come in, and the two AI tools at work */
.an-step { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 15px; color: var(--ink); }
.an-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.an-progress { position: relative; height: 6px; margin: 0 0 16px; border-radius: 3px; background: var(--line); overflow: hidden; }
.an-progress i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: var(--accent);
  box-shadow: 0 0 12px rgb(219 255 0 / .5); transition: width .8s var(--ease-out); }
.an-progress.is-wait i { width: 28%; animation: wait-bar 1.5s ease-in-out infinite; }
@keyframes wait-bar { from { transform: translateX(-100%); } to { transform: translateX(360%); } }
.an-tools { display: flex; gap: 8px; margin: 0 0 14px; }
.an-tools span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 8px; border-radius: 999px; background: var(--chip-bg);
  border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.an-tools img { width: 16px; height: 16px; }
.an-tools img.is-ink { filter: invert(1) brightness(.94); }
.an-tools span.is-on { color: var(--ink); border-color: rgb(219 255 0 / .35); }
.an-tools span.is-on img { animation: pulse 1.4s ease-in-out infinite; }
.an-skel li { min-height: 44px; }
.an-bar { flex: 1; height: 10px; border-radius: 5px; max-width: 78%; background: linear-gradient(90deg, rgb(255 255 255 / .05), rgb(255 255 255 / .12), rgb(255 255 255 / .05));
  background-size: 200% 100%; animation: shimmer 1.6s linear infinite; animation-delay: var(--d, 0ms); }
.an-skel li:nth-child(2n) .an-bar { max-width: 62%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.an-foot { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.an-mock { margin-top: 6px; color: #e0a458; }
.an-error { margin: 0; font-size: 16px; line-height: 1.5; }
/* the result arrives: rows rise in one after another and the bars fill */
@media (prefers-reduced-motion: no-preference) {
  .is-arriving > *, .is-arriving .tool-rows li, .is-arriving .tool-bars li { animation: rise .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
  .is-arriving .tool-rows, .is-arriving .tool-bars { animation: none; }
  .is-arriving .tool-bars b { animation: grow-x 1s var(--ease-out) both; animation-delay: calc(.3s + var(--i, 0) * 45ms); }
}
@keyframes grow-x { from { scale: 0 1; } }
/* the next step after a result */
.an-next { margin-top: 22px; padding: 20px; border-radius: 18px; background: rgb(219 255 0 / .06); border: 1px solid rgb(219 255 0 / .22); }
@supports (corner-shape: squircle) { .an-next { corner-shape: squircle; border-radius: 30px; } }
.an-next h3 { font-size: 19px; }
.an-next p { margin: 6px 0 16px; color: var(--muted); font-size: 15px; }

/* ---------- the page for an address that does not exist (404.html) ---------- */
.lost { min-height: calc(100svh - 110px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 64px; }
.page-head .lost__code { margin: 0 0 6px; font-size: clamp(5.5rem, 17vw, 11rem); font-weight: 700; line-height: .9; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgb(219 255 0 / .6); }

/* ---------- privacy page ---------- */
.doc { padding: clamp(26px, 4vw, 48px); margin-bottom: clamp(48px, 8vh, 96px); max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.doc h2 { font-size: 21px; letter-spacing: -0.02em; margin: 34px 0 8px; }
.doc p { margin: 0; color: var(--doc-text); }
.doc p + p { margin-top: 12px; }
.doc .date { color: var(--muted); margin-top: 10px; font-size: 15px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- FAQ page: each answer slides open ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq__item { padding: 0; transition: --sheen .45s ease, background-color .3s; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px;
  padding: 18px clamp(20px, 3vw, 28px); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent; border-radius: inherit; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--spring), border-color .2s; }
.faq__item[open] summary::after { transform: translateY(2px) rotate(225deg); border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .faq__item summary:hover::after { border-color: var(--ink); } }
.faq__item summary:focus-visible { outline-offset: -2px; }
.faq__item p { margin: 0; padding: 0 clamp(20px, 3vw, 28px) 22px; color: var(--doc-text); max-width: 62ch; }
.faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: no-preference) { .faq__item[open] p { animation: rise .5s var(--ease-out) both; } }
.faq__item a, .faq__more a { color: var(--accent); text-underline-offset: 3px; }
.faq__more { margin: 22px 0 clamp(48px, 8vh, 96px); color: var(--muted); }

/* ---------- contact page ---------- */
.contact { max-width: 620px; padding: clamp(22px, 3vw, 32px); transition: --sheen .45s ease; }
.contact .tool-note:empty, .contact [hidden] { display: none; }
.contact-done h2 { font-size: 26px; margin: 0 0 8px; }
.contact-done p { margin: 0; color: var(--doc-text); }
.contact-done__mail { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.contact-done .ok { width: 52px; height: 52px; margin-bottom: 18px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .contact-done .ok circle { stroke-dasharray: 145; animation: ok-draw .8s var(--ease-out) both; }
  .contact-done .ok path { stroke-dasharray: 30; animation: ok-draw .45s ease-out .5s both; }
  .contact-done h2, .contact-done p { animation: rise .6s var(--ease-out) .35s both; }
}
@keyframes ok-draw { from { stroke-dashoffset: var(--len, 145); } to { stroke-dashoffset: 0; } }
.contact-done .ok path { --len: 30; }

/* ---------- moving between pages: the bar stays, the page fades across (browsers that support it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .2s ease both; }
  ::view-transition-new(root) { animation: vt-in .45s var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- comfort settings ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .btn:active { transform: none; }
  .stage-wrap { translate: none; }
  .stage-free { transform: rotateX(var(--rx0)) rotateY(var(--ry0)); }
  .stage-shadow { transform: translate3d(0, 36px, -90px); opacity: .9; }
  .hero .enter { translate: none; opacity: 1; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .nav__bar, .btn--glass { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: var(--surface); } }
