/* DIS design: night gallery.
   A warm near-black (or stone, by day), a bronze glow, fine grain, and the clients' sites as the only bright things.
   Every value lives in :root; no rule below it types a colour, a duration or a curve. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Palette, by day: stone and ivory. Contrast, computed: ink 15.05 on ground, quiet 5.82, bronze 4.79 (text at body size and up only). */
  --ground: #ebe7e0;
  --surface: #f6f4f0;               /* cards, tiles, the footer */
  --ink: #15130f;
  --ink-quiet: #5c574e;             /* secondary text; also every control border, which needs 3:1 (it gets 5.82) */
  --accent: #7d5f33;                /* the one warm accent, bronze: the medium line on a work, hover on the main button */
  --accent-fill: var(--ink);        /* the filled button, the selection, the guide's step numbers: ink, in either theme */
  --fill-hover: var(--accent);      /* what the filled button turns to on hover and press: the accent by day, ink by night (the fill is the accent there) */
  --on-accent: var(--ground);       /* text on that fill */
  --line: rgb(21 19 15 / 0.12);     /* decorative hairlines and card edges only: never the edge of a control */
  --glow: rgb(201 164 108 / 0.42);  /* the lamp behind the hero */
  --glow-2: rgb(196 140 118 / 0.24); /* the aurora's second light, a dusk rose; kept off the copy, so text contrast holds (a sea green for an hour on 2026-11-24, taken back out at the owner's word) */
  --accent-soft: rgb(125 95 51 / 0.1); /* behind the feature icons */
  /* The second colour (2026-11-24, owner: "a little more colour, the elegant kind, not bright"): a deep sea green, kept at
     low saturation because that reads as status (Zhou et al. on luxury brands; Labrecque and Milne 2012: saturation reads
     as excitement). It ticks what a package has and tints the cards (it also lit the page heads for an hour; the owner had that removed); the bronze stays the one
     colour of actions. Contrast, computed: 6.05 on ground, 6.79 on surface by day; 9.22 and 8.45 by night. */
  --tint: #2c5d59;
  --tint-soft: rgb(44 93 89 / 0.1);
  /* The package cards fade from a colour of their own (owner, 2026-11-24: "another colour for the recommended one and
     the e-shop, premium"): Start the sea green, Firemní web the gold, E-shop a deep wine. Backgrounds only, never text. */
  --fade-gold: rgb(176 136 70 / 0.2);
  --fade-wine: rgb(122 52 78 / 0.13);
  --glass: rgb(246 244 240 / 0.86); /* the floating nav: opaque enough that its text holds 4.5:1 over any screenshot */
  --cast: 21 19 15;                 /* rgb of shadows */
  --grain: 0.05;

  /* Semantic colours, each 5.1:1 or better on ground and surface (computed). They mean the same thing everywhere:
     success = good as it is, warning = needs attention or is missing, danger = needs a redesign or failed, info = a pointer. */
  --success: #2c6a3f;
  --warning: #8a5300;
  --danger: #a3302a;
  --info: #2f5f8f;
  --success-soft: rgb(44 106 63 / 0.1);
  --warning-soft: rgb(138 83 0 / 0.1);
  --danger-soft: rgb(163 48 42 / 0.1);
  --info-soft: rgb(47 95 143 / 0.1);

  /* Skeleton: the placeholder a screenshot shows until it has loaded. */
  --skeleton: rgb(21 19 15 / 0.07);
  --skeleton-shine: rgb(255 255 255 / 0.55);

  /* Type. Geist, one family, roman + italic. */
  --face: "Geist", system-ui, sans-serif;
  --t-note: 0.875rem;
  --t-body: 1.125rem;
  --t-lead: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  --t-title: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);          /* a work, a tile, a step */
  --t-heading: clamp(2.25rem, 1.4rem + 3.2vw, 4.5rem);       /* section titles and page titles */
  --t-display: clamp(2.4rem, 0.9rem + 4vw, 4.5rem);          /* the h1: 38 on phones, 45 on tablets, 72 from 1440 up; capped so it stays at two lines */
  --t-mega: clamp(2.75rem, 1rem + 6.5vw, 7.5rem);            /* the contact page's call */
  --t-numeral: clamp(3rem, 2rem + 3vw, 4.5rem);              /* step numbers */
  --lead-body: 1.6;
  --lead-title: 1.15;
  --lead-display: 0.98;
  --track-display: -0.045em;
  --track-heading: -0.035em;
  --track-title: -0.025em;
  --w-body: 400;
  --w-strong: 500;
  --w-mark: 600;

  /* Spacing. Sections are chapters: 8rem apart on phones, 12rem on desktop. */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --section: clamp(6rem, 4rem + 5vw, 9rem); /* was 8 to 12rem: a customer's walk on 2026-11-10 found the gaps read as empty */
  --page: 84rem;
  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --nav-h: 5rem;                    /* the bar (4rem) plus air */
  --stick: 6.5rem;                  /* where stacked cards stop: just under the nav */

  /* Shape */
  /* 2026-11-13, owner: "it still looks like AI". The 2rem cards, pill buttons and floating glass pill were the look
     of every generated site. Now print-shop corners: a sheet 10px, a tile 8, a screenshot and a control 6.
     Round stays for what is a circle or a dot. To go back: 2rem, 1.5rem, 0.875rem and --r-control: 999px. */
  --r-card: 0.625rem;
  --r-tile: 0.5rem;
  --r-shot: 0.375rem;
  --r-control: 0.375rem;            /* buttons, the bar's links, tags, chips */
  --r-pill: 999px;                  /* circles and dots only */
  --hairline: 1px;
  --control-border: 1.5px;          /* checkbox and ghost-button edges: visible, at 3:1 or better */
  --tick: polygon(12% 52%, 0 64%, 38% 100%, 100% 22%, 88% 10%, 38% 76%); /* one checkmark shape, filled, for the service ticks and the check boxes */
  --shadow-float: 0 2.5rem 5rem -2rem rgb(var(--cast) / 0.45), 0 0.75rem 1.5rem -1rem rgb(var(--cast) / 0.3);
  --shadow-lift: 0 1.25rem 2rem -1.25rem rgb(var(--cast) / 0.45); /* a card or button lifted under the pointer */
  --lift: -0.25rem;

  /* Motion. One curve for CSS; GSAP uses its power3.out, the same shape. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --press: 120ms;
  --hover-slow: 700ms;              /* images drifting up to 1.05 under the pointer */
  --hover: 240ms;                   /* colour and border answers */
  --slice: 700ms;                   /* a process slice widening */
  --reveal: 400ms;                  /* a loaded screenshot replacing its skeleton */
  --shimmer: 1.4s;
  --flow-step: 6s;                  /* how long each process step stays before the next */
  --drift: 900ms;                   /* the hero layers easing after the pointer */
  --bloom: 2.4s;                    /* the hero's light coming up, once */
  --arrive: 900ms;                  /* a section rising into place as it scrolls in */
  --stagger: 80ms;                  /* between siblings arriving together */
  --rise: 1.5rem;                   /* how far they travel */
  --page-turn: 420ms;               /* the cross-fade between pages */
  --late: 2.5s;                     /* if GSAP never arrives, the hero lands anyway (GSAP is done by 2.2 s) */
  --lean: 3deg;                     /* how far a work's frame tilts toward the pointer: felt, not seen as a trick */
  --depth: 75rem;                   /* the perspective it tilts in: far enough that the frame stays a rectangle */
  /* The works' halo (home): every screenshot on one ring, seen from a little above and leaning, turning once a lap.
     site.js reads --halo-lap and --halo-cards. */
  --halo-r: clamp(9rem, 34vw, 34rem);         /* the ring's radius: a third of the screen, so it nearly spans the page */
  --halo-card: clamp(3.5rem, 1.5rem + 6vw, 8.5rem); /* a card's height; its width is its screenshot's own shape */
  --halo-h: calc(var(--halo-r) * 0.8 + var(--halo-card) * 1.7); /* the room it takes, fitted to the ring measured over a full turn at 375, 768, 1440 and 1920 */
  --halo-tilt: -20deg;                        /* how far above the ring the eye is: at -14 it read as a flat band */
  --halo-roll: -10deg;                        /* the lean, lower left to upper right, as in the recording */
  --halo-depth: 100rem;                       /* perspective: the front of the ring a little larger than the back */
  --halo-lap: 50s;                            /* one turn; still slow enough to read a card as it passes (80 s read as standing still) */
  --halo-cards: 28;                           /* the screenshots repeat until the ring is this full */
  /* Phones: the same cards as orbs coming out of a tunnel (after a WebGL mobile gallery the owner sent). */
  --orb: 4.5rem;                              /* an orb's size at the tunnel's mouth; far ones are drawn smaller */
  --tunnel-depth: 31.25rem;                   /* perspective: short, so an orb grows fast as it nears */
  --tunnel-lap: 16s;                          /* one orb's journey from the depth to past the edge; read by site.js */
  /* The black hole behind the footer's call and the 404 (after "Black Hole" typography the owner sent). */
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; /* its text only: an old site's page, typed */
  --hole-lap: 18s;                            /* one turn at the ring; read by site.js (owner: 40 s was too slow; no mouse since 2026-11-09) */
  --radar-lap: 9s;                            /* the Website check's radar: one sweep (after the DeepSec hero the owner sent); read by site.js */

  --focus: 2px solid var(--ink);
  --focus-gap: 3px;
  --target: 2.75rem;
}
/* Wide screens: at 1920 the 84rem page left 344px of nothing on each side (owner: "a lot of space wasted on the left
   and right"). The page grows in two steps, and from 110rem the section index (.toc) lives in what is left. */
@media (max-width: 47.99rem) { :root { --halo-cards: 18; --halo-h: 26rem; } } /* phones: 18 orbs in a tunnel as tall as most of the screen */
@media (min-width: 100rem) { :root { --page: 88rem; } }
@media (min-width: 120rem) { :root { --page: 96rem; } }

/* By night. Neutral graphite, one gold (owner picked "G3", 2026-11-23), the work stays lit. Contrast: ink 17.55, quiet 7.45, gold 9.39; semantic 9.1 to 11.0. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0f0f10;
    --surface: #19191b;
    --ink: #f5f5f3;
    --ink-quiet: #a1a1a6;
    --accent: #d0b272;
    --accent-fill: var(--accent);   /* by night the filled button is the gold itself (owner, 2026-11-23): the one coloured thing on the page */
    --fill-hover: var(--ink);
    --line: rgb(245 245 243 / 0.1);
    --glow: rgb(200 165 95 / 0.22);
    --glow-2: rgb(110 115 135 / 0.12);
    --tint: #8fbdb4;
    --tint-soft: rgb(143 189 180 / 0.1);
    --fade-gold: rgb(208 178 114 / 0.17);
    --fade-wine: rgb(168 92 124 / 0.2);
    --accent-soft: rgb(208 178 114 / 0.1);
    --glass: rgb(25 25 27 / 0.84);
    --cast: 0 0 0;
    --grain: 0.07;
    --success: #8ccf9c;
    --warning: #e6bd6b;
    --danger: #f19b92;
    --info: #9cc3ea;
    --success-soft: rgb(140 207 156 / 0.1);
    --warning-soft: rgb(230 189 107 / 0.1);
    --danger-soft: rgb(241 155 146 / 0.1);
    --info-soft: rgb(156 195 234 / 0.12);
    --skeleton: rgb(245 245 243 / 0.06);
    --skeleton-shine: rgb(245 245 243 / 0.08);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0f0f10;
  --surface: #19191b;
  --ink: #f5f5f3;
  --ink-quiet: #a1a1a6;
  --accent: #d0b272;
    --accent-fill: var(--accent);   /* by night the filled button is the gold itself (owner, 2026-11-23): the one coloured thing on the page */
    --fill-hover: var(--ink);
  --line: rgb(245 245 243 / 0.1);
  --glow: rgb(200 165 95 / 0.22);
  --glow-2: rgb(110 115 135 / 0.12);
    --tint: #8fbdb4;
    --tint-soft: rgb(143 189 180 / 0.1);
    --fade-gold: rgb(208 178 114 / 0.17);
    --fade-wine: rgb(168 92 124 / 0.2);
  --accent-soft: rgb(208 178 114 / 0.1);
  --glass: rgb(25 25 27 / 0.84);
  --cast: 0 0 0;
  --grain: 0.07;
  --success: #8ccf9c;
  --warning: #e6bd6b;
  --danger: #f19b92;
  --info: #9cc3ea;
  --success-soft: rgb(140 207 156 / 0.1);
  --warning-soft: rgb(230 189 107 / 0.1);
  --danger-soft: rgb(241 155 146 / 0.1);
  --info-soft: rgb(156 195 234 / 0.12);
  --skeleton: rgb(245 245 243 / 0.06);
  --skeleton-shine: rgb(245 245 243 / 0.08);
}

/* Base. Breakpoints are literals because media queries can't read custom properties: 48rem and 62.5rem. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h);
  /* the parts the browser draws take the palette too: the typing caret, ticks and sliders, the scrollbar */
  caret-color: var(--accent); accent-color: var(--accent); scrollbar-color: var(--ink-quiet) var(--ground); }
body {
  margin: 0;
  display: flex; flex-direction: column; min-height: 100dvh;
  background: var(--ground);
  color: var(--ink);
  font: var(--w-body) var(--t-body) / var(--lead-body) var(--face);
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}
/* Grain over everything, so the dark never reads as a flat fill. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; }
h1, h2, h3 { font-weight: var(--w-strong); text-wrap: balance; }
summary { text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: var(--hairline); text-underline-offset: 0.2em; transition: text-underline-offset var(--hover) var(--ease); }
@media (hover: hover) { a:hover { text-underline-offset: 0.32em; } }
::selection { background: var(--accent-fill); color: var(--on-accent); }
:focus-visible { outline: var(--focus); outline-offset: var(--focus-gap); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Between pages: the nav and the page title stay put while the rest cross-fades (same-origin links only, and only
   when the visitor allows motion). Browsers without cross-document view transitions just load the page. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.nav-pill { view-transition-name: nav; }
.page-head h1, .reading h1 { view-transition-name: title; }
::view-transition-group(*) { animation-duration: var(--page-turn); animation-timing-function: var(--ease); }
::view-transition-old(root) { animation: page-out var(--page-turn) var(--ease) both; }
::view-transition-new(root) { animation: page-in var(--page-turn) var(--ease) both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(0.75rem); } }

/* Reading progress: a bronze hairline under the top edge, driven by the scroll itself (no script). Where scroll
   timelines aren't supported it stays at zero width, which is to say absent. */
.progress { position: fixed; top: env(safe-area-inset-top); left: 0; right: 0; z-index: 45; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { to { transform: scaleX(1); } }

/* The section index in the left margin, from 110rem where the margin is wide enough to hold it (176px and up beside
   the 88rem page): the home page's sections on a hairline that fills with the scroll, the one in view marked
   (site.js). Below that width the margin is too thin and it stays out; the nav and the page order do the job. */
.toc { display: none; }
@media (min-width: 110rem) {
  .toc { position: fixed; left: var(--s-5); top: 50%; z-index: 30; display: block; translate: 0 -50%; }
  .toc.is-off { visibility: hidden; }
  .toc ol { position: relative; display: grid; margin: 0; padding: 0 0 0 var(--s-3); list-style: none; font-size: var(--t-note); }
  .toc ol::before, .toc ol::after { content: ""; position: absolute; left: 0.1875rem; top: calc(var(--target) / 2); bottom: calc(var(--target) / 2); width: var(--hairline); background: var(--line); }
  .toc ol::after { background: var(--accent); transform: scaleY(0); transform-origin: 50% 0; }
  .toc a { position: relative; display: flex; align-items: center; min-height: var(--target); color: var(--ink-quiet); text-decoration: none; transition: color var(--hover) var(--ease); }
  .toc a::before { content: ""; position: absolute; left: calc(var(--s-3) * -1); width: 0.4375rem; height: 0.4375rem; border: var(--hairline) solid var(--ink-quiet); border-radius: var(--r-pill); background: var(--ground); transition: background-color var(--hover) var(--ease), border-color var(--hover) var(--ease); }
  .toc a[aria-current="true"] { color: var(--ink); font-weight: var(--w-strong); }
  .toc a[aria-current="true"]::before { border-color: var(--accent); background: var(--accent); }
  .toc a:active { color: var(--ink); }
  @media (hover: hover) { .toc a:hover { color: var(--ink); } }
}
@supports (animation-timeline: scroll()) {
  @media (min-width: 110rem) { .toc ol::after { animation: toc-fill linear both; animation-timeline: scroll(root); } }
}
@keyframes toc-fill { to { transform: scaleY(1); } }

/* Sections rise in as they reach the viewport. Hidden only under html.reveal, which site.js sets before first paint
   when motion is allowed and the page is visible, so without JS, in print or with reduced motion everything is simply
   there. The animation fills backwards only, so once it ends the element's own hover states take over again. */
@media screen and (prefers-reduced-motion: no-preference) {
  /* 2026-11-13: the fade-and-rise of every section is gone (the same entrance on every block is what generated pages
     do). site.js still marks .is-in, which the map's sweep and the titles' sharpening use. */
}
@keyframes rise { from { opacity: 0; translate: 0 var(--rise); } } /* the viewer's work arriving still uses it */

main { flex: 1; overflow-x: clip; } /* clip, not hidden: hidden would make main a scroller and break the sticky stack */
.wrap { max-width: var(--page); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.count { color: var(--ink-quiet); font-variant-numeric: tabular-nums; font-weight: var(--w-body); }
.skip { position: fixed; left: var(--gutter); top: var(--s-2); z-index: 60; padding: var(--s-1) var(--s-3); border-radius: var(--r-control); background: var(--ink); color: var(--ground); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* Buttons: one filled, one ghost. Filled: ground on ink (15.05 / 17.06); on hover and press ground on bronze (4.79 / 10.95).
   The ghost's edge is a control boundary, so it takes --ink-quiet (3:1 or better), not the decorative hairline. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  min-height: 3.5rem; padding-inline: var(--s-4);
  border: var(--control-border) solid var(--accent-fill); border-radius: var(--r-control);
  background: var(--accent-fill); color: var(--on-accent);
  font-family: inherit; font-size: inherit; font-weight: var(--w-strong); text-decoration: none; /* a <button> doesn't inherit the face on its own */
  transition: transform var(--press) var(--ease), background-color var(--hover) var(--ease), border-color var(--hover) var(--ease), color var(--hover) var(--ease), translate var(--hover) var(--ease), box-shadow var(--hover) var(--ease);
}
.button > [aria-hidden="true"], .more > [aria-hidden="true"], .go { transition: translate var(--hover) var(--ease); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--ink-quiet); }
.button:active { transform: scale(0.97); }
.button:active:not(.ghost) { background: var(--fill-hover); border-color: var(--fill-hover); color: var(--ground); }
.button.ghost:active { border-color: var(--ink); }
@media (hover: hover) {
  .button:not(.ghost):hover { background: var(--fill-hover); border-color: var(--fill-hover); color: var(--ground); translate: 0 -1px; box-shadow: var(--shadow-lift); }
  .button.ghost:hover { border-color: var(--ink); }
  .button:hover > [aria-hidden="true"], .more:hover > [aria-hidden="true"], a:hover > .go { translate: 0.25rem 0; }
}
.actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
/* On a phone the long calls ("Pošlete nám odkaz na web") keep to one line down to 360px; narrower still, they wrap centred. */
.button { text-align: center; text-wrap: balance; }
@media (max-width: 29.99rem) { .button { padding-inline: var(--s-3); } }

/* Navigation: a plain bar across the top, the page's own ground, one hairline under it. Until 2026-11-13 it was a
   floating glass pill (git 5d68117 has it). */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; justify-content: center; background: var(--ground); border-bottom: var(--hairline) solid var(--line);
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); padding-top: env(safe-area-inset-top); }
.nav-pill {
  position: relative;
  display: flex; align-items: center; gap: var(--s-3);
  width: min(100%, var(--page)); min-height: 4rem;
}
.wordmark { display: inline-flex; align-items: center; min-height: var(--target); margin-right: auto; text-decoration: none; font-size: 1.125rem; }
.wordmark b { font-weight: var(--w-mark); letter-spacing: 0.06em; margin-right: 0.28em; } /* flex items drop the space between them, so the word gap is a margin */
.wordmark .logo { flex: none; width: 1.4em; height: 1.4em; margin-right: 0.45em; fill: currentColor; } /* the Vír symbol, from the logo session's lockup */
.nav-links { display: flex; gap: 0.25rem; padding: 0; list-style: none; font-size: var(--t-note); }
.nav-links a { display: inline-flex; align-items: center; min-height: var(--target); padding-inline: 0.875rem; border-radius: var(--r-control); text-decoration: none; transition: background-color var(--hover) var(--ease); }
.nav-links a[aria-current="page"], .pop-links a[aria-current="page"] { background: var(--line); font-weight: var(--w-strong); }
/* The admin's top bar keeps a one-click theme button; the public site moved its toggle into the settings below. */
.theme { display: grid; place-items: center; flex: none; width: var(--target); height: var(--target); padding: 0; border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--ground); cursor: pointer; }
.theme[hidden] { display: none; } /* the grid above outranks the browser's [hidden]; without JS the toggle can't work, so it stays out */
.theme svg { width: 1.1rem; height: 1.1rem; }
.nav-links a:active, .pop-links a:active { background: var(--line); }
@media (hover: hover) { .nav-links a:hover, .pop-links a:hover { background: var(--line); } }

/* The three-line button (owner: "make this together to like three lines ... a lil animation when you open them").
   It takes the filled circle the theme button had, so the pill keeps its one solid mark on the right. Open, the
   lines fold into a cross and the panel unfolds from under the button; the details element anchors to the pill. */
[data-pop] summary { display: grid; place-items: center; width: var(--target); height: var(--target); border-radius: var(--r-pill); background: var(--ink); color: var(--ground); cursor: pointer; list-style: none; touch-action: manipulation; transition: background-color var(--hover) var(--ease), transform var(--press) var(--ease); }
[data-pop] summary::-webkit-details-marker { display: none; }
[data-pop] summary:active { transform: scale(0.94); }
@media (hover: hover) { [data-pop] summary:hover { background: var(--accent); } } /* bronze under ground-coloured lines: 4.79 / 10.95 */
.burger { position: relative; width: 1.125rem; height: 0.75rem; }
.burger i { position: absolute; left: 0; width: 100%; height: var(--control-border); border-radius: var(--r-pill); background: currentColor; transition: transform var(--hover) var(--ease), opacity var(--hover) var(--ease); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: calc(50% - var(--control-border) / 2); }
.burger i:nth-child(3) { bottom: 0; }
[open] > summary .burger i:nth-child(1) { transform: translateY(calc(0.375rem - var(--control-border) / 2)) rotate(45deg); }
[open] > summary .burger i:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
[open] > summary .burger i:nth-child(3) { transform: translateY(calc(var(--control-border) / 2 - 0.375rem)) rotate(-45deg); }
.pop {
  position: absolute; right: 0; top: calc(100% + var(--s-1));
  width: min(20rem, calc(100vw - 2 * var(--gutter))); padding: var(--s-2);
  border: var(--hairline) solid var(--line); border-radius: var(--r-tile);
  background: var(--surface); box-shadow: var(--shadow-float);
  transform-origin: calc(100% - var(--target) / 2) 0; /* it grows out of the button */
  max-height: calc(100dvh - var(--nav-h) - var(--s-2)); overflow-y: auto; overscroll-behavior: contain; /* a phone on its side still reaches the last item */
}
@media (prefers-reduced-motion: no-preference) {
  [data-pop][open] > .pop { animation: pop-in var(--hover) var(--ease); }
  [data-pop][open] :is(.pop-links li, .prefs > *) { animation: pop-item var(--reveal) var(--ease) backwards; animation-delay: calc(var(--n, 0) * var(--stagger) / 2); } /* half the section stagger: a menu is read faster */
  .pop-links li:nth-child(2), .prefs > :nth-child(2) { --n: 1; }
  .pop-links li:nth-child(3), .prefs > :nth-child(3) { --n: 2; }
  .pop-links li:nth-child(4) { --n: 3; }
  .pop-links li:nth-child(5) { --n: 4; }
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-0.375rem) scale(0.96); } }
@keyframes pop-item { from { opacity: 0; translate: 0 -0.25rem; } }
.pop-links { margin: 0 0 var(--s-2); padding: 0 0 var(--s-2); list-style: none; border-bottom: var(--hairline) solid var(--line); }
.pop-links a { display: flex; align-items: center; min-height: 3rem; padding-inline: var(--s-2); border-radius: var(--r-shot); font-size: var(--t-lead); text-decoration: none; }
@media (max-height: 30rem) { .pop-links a { min-height: var(--target); font-size: var(--t-body); } }
.pop-label { margin: 0 0 var(--s-1); font-size: var(--t-note); color: var(--ink-quiet); }
.pop-look .pop-label { margin-top: var(--s-2); }
.pop-seg { display: flex; gap: 0.25rem; padding: 0.25rem; border: var(--hairline) solid var(--line); border-radius: var(--r-control); background: var(--ground); }
.pop-seg :is(a, button) {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: var(--target); padding-inline: var(--s-1);
  border: 0; border-radius: var(--r-control); background: none; color: inherit; font: inherit; font-size: var(--t-note); text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--hover) var(--ease), color var(--hover) var(--ease);
}
.pop-seg :is([aria-current="true"], [aria-pressed="true"]) { background: var(--ink); color: var(--ground); font-weight: var(--w-strong); }
.pop-seg :is(a, button):not([aria-current="true"], [aria-pressed="true"]):active { background: var(--line); }
@media (hover: hover) { .pop-seg :is(a, button):not([aria-current="true"], [aria-pressed="true"]):hover { background: var(--line); } }
.nav-menu { display: none; }
@media (max-width: 62.49rem) {
  .nav-desktop, .nav-prefs { display: none; }
  .nav-menu { display: block; }
  .nav-pill { gap: var(--s-1); }
}

/* Screenshots: a rounded plate with a hairline edge. Images drift to 1.05 under the pointer, inside the plate. */
.shot { position: relative; overflow: hidden; border-radius: var(--r-shot); border: var(--hairline) solid var(--line); background: var(--skeleton); box-shadow: var(--shadow-float); }
.shot img { width: 100%; transition: transform var(--hover-slow) var(--ease), opacity var(--reveal) var(--ease); }
@media (hover: hover) {
  .work-card a:hover .card-desk img, .case:hover .shot img, .tile:hover .tile-media img { transform: scale(1.05); }
}

/* Skeleton loaders. Until a screenshot has loaded, its plate shows the placeholder with a slow sweep of light;
   site.js marks it loaded (or failed). Without JS the image simply paints over the placeholder. */
/* Only lazy images get it: the hero's eager screenshot is the largest paint and must never wait for a script. */
.js .shot:not(.is-loaded) img[loading="lazy"], .js .tile-media:not(.is-loaded) img[loading="lazy"] { opacity: 0; }
.js .shot:has(img[loading="lazy"]):not(.is-loaded):not(.is-error)::after, .js .tile-media:has(img[loading="lazy"]):not(.is-loaded):not(.is-error)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, var(--skeleton-shine) 50%, transparent 80%);
  transform: translateX(-100%);
}
@media (prefers-reduced-motion: no-preference) { .js .shot::after, .js .tile-media::after { animation: shimmer var(--shimmer) ease-in-out infinite; } } /* under reduced motion the plate just waits, no sweep */
.shot.is-error img, .tile-media.is-error img { opacity: 1; color: var(--danger); font-size: var(--t-note); } /* a failed image shows its alt text */
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .shot img, .tile-media img { transition: none; } }

/* Attention: editorial split. Copy left, a layered hang of the real work right, the lamp behind as a quiet aurora. */
/* The opening story (home.php, site.js). Four frames of text beside a deck of browser windows, one per site.
   Default (no JS, reduced motion): the frames are blocks in a column, the first site's window beside them.
   .is-live (site.js): the section is pinned for --frames short stretches of scrolling (45% of a screen each, so
   the whole story is under two screens of scroll), the frames stacked in one cell and cross-faded.
   Scroll drives two numbers, set by site.js as the page moves: --p (0 to 1 over the story: the deck turns to face
   the reader) and --w (0 to 1 while frame one hands over to frame two: the empty page is wiped off the site).
   [data-step] is the frame in view; from frame three the deck fans out (--fan) and [data-pos] orders it.
   The deck is the page's one loud element here; the text frames stay plain. */
/* Colour comes from the work, not from us: each client's site has its own (the joinery's brass, the ski centre's
   ice blue, the farm's terracotta), and the story takes the colour of the site at the front of the deck (--tint).
   Used for light only (the glow, the pointer's lamp, the marks), never for text, so no contrast pairing depends on it. */
@property --tint { syntax: "<color>"; inherits: true; initial-value: #d0b272; }
.opener { position: relative; isolation: isolate; --frames: 4; --p: 1; --w: 1; --fan: 0;
  --work-truhlarstvi: #d9a85a; --work-ski: #4cc3dc; --work-farma: #d2643c; --tint: var(--accent); transition: --tint var(--drift) var(--ease); }
.opener[data-tint="truhlarstvi"] { --tint: var(--work-truhlarstvi); }
.opener[data-tint="ski"] { --tint: var(--work-ski); }
.opener[data-tint="farma"] { --tint: var(--work-farma); }
.opener-pin { position: relative; padding-block: calc(var(--nav-h) + var(--s-4)) var(--s-5); }
.opener-grid { display: grid; gap: var(--s-5); align-items: center; }
.opener-frames { display: grid; gap: var(--s-5); }
.opener-frame h1, .opener-title { max-width: 16ch; font-size: var(--t-display); line-height: var(--lead-display); letter-spacing: var(--track-display); text-wrap: balance; }
.opener-frame .hero-lead { margin-top: var(--s-3); }
.opener-frame .actions { margin-top: var(--s-4); }
.opener-free { margin-top: var(--s-2); font-size: var(--t-note); color: var(--ink-quiet); }
.tile .more { align-self: flex-start; margin-top: auto; }
/* Packages (/packages/): three cards. Since 2026-11-24 (owner: "still mid, make it luxury and clearer") the price sits
   right under the name as a numeral, the list is ruled, the actions stand on one line at the foot, and the card most
   often chosen has the lamp behind it. Before: price at the foot, ticks without rules (commit 95f3ac7). */
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.pack { position: relative; display: flex; flex-direction: column; padding: var(--s-5) var(--s-4) var(--s-4); border: var(--hairline) solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.pack-top { border-color: var(--accent); background: radial-gradient(closest-side at 70% 0, var(--glow), transparent), var(--surface); }
.pack-flag { position: absolute; top: var(--s-2); left: var(--s-4); font-size: var(--t-note); font-weight: var(--w-strong); color: var(--accent); }
.pack h2 { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); }
.pack h2 a { text-decoration: none; }
.pack-for { min-height: 3.2em; margin-top: var(--s-1); color: var(--ink-quiet); text-wrap: pretty; } /* two lines kept, so the three prices stand on one line */
.pack-price { margin-top: var(--s-3); padding-bottom: var(--s-3); border-bottom: var(--hairline) solid var(--line); color: var(--ink-quiet); }
.pack-price b { font-size: var(--t-numeral); font-weight: var(--w-strong); line-height: 1; letter-spacing: var(--track-display); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.page-head .pack-price { margin-top: var(--s-3); font-size: var(--t-lead); color: var(--ink); }
.pack-price small { display: block; margin-top: var(--s-1); font-size: var(--t-note); font-weight: var(--w-body); color: var(--ink-quiet); }
.pack-list { display: grid; gap: 0.5rem; margin: var(--s-2) 0; padding: 0; list-style: none; }
.pack-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: baseline; }
.pack-list li::before { content: ""; width: 0.8em; height: 0.8em; background: var(--accent); clip-path: var(--tick); }
.pack > .pack-list { gap: 0; margin: 0 0 var(--s-4); }
.pack > .pack-list li { padding-block: 0.7rem; border-bottom: var(--hairline) solid var(--line); }
.pack .button { justify-content: center; margin-top: auto; }
.pack .more { align-self: center; margin-top: var(--s-1); }
@media (max-width: 62.49rem) { .pack-for { min-height: 0; } }
/* A package's costs: one-off, by the month, by the year (the cheaper one edged in the accent). */
.costs { margin-top: var(--s-4); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); padding: 0; list-style: none; }
.cost { display: grid; align-content: start; gap: var(--s-1); padding: var(--s-4); border: var(--hairline) solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.cost span { font-size: var(--t-note); font-weight: var(--w-strong); color: var(--ink-quiet); }
.cost b { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); font-variant-numeric: tabular-nums; }
.cost small { font-size: var(--t-note); color: var(--ink-quiet); }
.cost-best { border-color: var(--accent); } .cost-best small { font-weight: var(--w-strong); color: var(--accent); }
@media (max-width: 47.99rem) { .costs { grid-template-columns: minmax(0, 1fr); } }
.pack-back { margin-bottom: var(--s-2); }
.pack-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--s-4); margin-top: var(--s-5); padding: 0; list-style: none; }
.pack-works a { display: grid; gap: 0.3rem; text-decoration: none; }
.pack-works .shot { margin-bottom: var(--s-2); }
.pack-works a > span:last-child { color: var(--ink-quiet); }
/* The demo site's two screenshots on a package's page. */
.demo-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--s-3); margin-block: var(--s-4); }
.demo-shots .shot { display: block; border: var(--hairline) solid var(--line); }
.demo-shots img { width: 100%; height: auto; }
@media (max-width: 62.49rem) { .packs { grid-template-columns: minmax(0, 1fr); } }
/* Clients' words (home). Empty until the owner has real ones: then one bordered note says so. */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--s-4); margin-top: var(--s-5); }
.review { display: grid; align-content: start; gap: var(--s-2); margin: 0; padding: var(--s-4); border: var(--hairline) solid var(--line); border-radius: var(--r-card); }
.review blockquote { margin: 0; font-size: var(--t-lead); text-wrap: pretty; }
.review figcaption, .review-none p { color: var(--ink-quiet); }
.review-none { max-width: var(--measure); border-style: dashed; }
/* Narrow screens: the idle pill ("Posuňte dolů") sits above the dots, so the first frame must end above it. The frame
   keeps the promise and drops its button (the last frame and the floating button carry the call) and its cue (the pill
   says the same). A short screen has no room for the promise either. */
@media (max-width: 62.49rem) {
  .opener.is-live .opener-frame:first-child .actions, .opener.is-live .opener-frame .opener-cue { display: none; }
  .opener.is-live .opener-free { margin-top: var(--s-2); }
}
@media (max-width: 62.49rem) and (max-height: 43.75rem) { .opener.is-live .opener-free { display: none; } }
.opener-count { display: grid; gap: var(--s-1); max-width: 22ch; font-size: var(--t-title); line-height: 1.2; letter-spacing: var(--track-title); text-wrap: balance; }
.opener-count b { font-size: var(--t-mega); font-weight: var(--w-strong); line-height: 0.9; letter-spacing: var(--track-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.opener-clients { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-3); }
/* .browser and .chip are placed absolutely for the hangs elsewhere; here the chips sit in the flow. */
.opener .opener-client { position: static; min-height: var(--target); padding-inline: var(--s-2); font: inherit; font-size: var(--t-note); color: var(--ink); background: transparent; cursor: pointer; transition: background-color var(--hover) var(--ease), color var(--hover) var(--ease), border-color var(--hover) var(--ease); }
.opener .opener-client[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
@media (hover: hover) { .opener-client:hover { border-color: var(--accent); } }
.opener-cue { display: none; }
.opener-dots { display: none; }
/* The nudge: a visitor who has not scrolled for four seconds gets a marked pill above the dots (site.js sets is-idle);
   the first scroll takes it away for good. */
.opener-nudge { display: none; }
.opener.is-live .opener-nudge { position: absolute; left: 50%; bottom: calc(var(--s-2) + var(--target)); z-index: 3; display: flex; align-items: center; gap: var(--s-2); margin: 0; padding: var(--s-2) var(--s-3);
  border: 1px solid var(--accent); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: var(--t-note); font-weight: 600; pointer-events: none;
  translate: -50% var(--s-2); opacity: 0; transition: opacity var(--drift) var(--ease), translate var(--drift) var(--ease); }
.opener.is-live.is-idle .opener-nudge { translate: -50% 0; opacity: 1; }
.opener-nudge span { color: var(--accent); }
.opener.is-idle .opener-nudge span { animation: nudge-drop 1.4s var(--ease) infinite; }
@keyframes nudge-drop { 0%, 100% { translate: 0 -0.2em; } 50% { translate: 0 0.3em; } }

.opener-stage { position: relative; perspective: 75rem; }
/* The glow behind the deck: one soft light in the front site's colour; in the last frame, one per client. */
.opener-glow { position: absolute; inset: -18% -12%; z-index: -1; pointer-events: none; filter: blur(3.5rem); opacity: 0.5;
  translate: calc(var(--px, 0) * 1.5rem) calc(var(--py, 0) * 1rem); transition: translate var(--drift) var(--ease); }
.opener-glow i { position: absolute; border-radius: 50%; transition: opacity var(--drift) var(--ease), background-color var(--drift) var(--ease); }
.opener-glow i:nth-child(1) { inset: 18% 22% 16% 14%; background: var(--tint); }
.opener-glow i:nth-child(2) { inset: 4% 4% 52% 52%; background: var(--work-ski); opacity: 0; }
.opener-glow i:nth-child(3) { inset: 52% 50% 2% 2%; background: var(--work-farma); opacity: 0; }
.opener.is-live[data-step="3"] .opener-glow i { opacity: 1; }
.opener.is-live[data-step="3"] .opener-glow i:nth-child(1) { background: var(--work-truhlarstvi); }
.opener-hint { display: none; }
/* The deck: every window in the same place; the room above and beside it is where the fan opens into. */
.opener-deck { position: relative; aspect-ratio: 16 / 11.4; margin: 16% 18% 0 0; transform-style: preserve-3d;
  transform: rotateX(calc(var(--py, 0) * -3deg)) rotateY(calc(var(--px, 0) * 4deg + (1 - var(--p)) * -14deg)); transition: transform var(--drift) var(--ease); }
.opener .opener-card { left: 0; right: 0; top: 0; --pos: 0;
  translate: calc(var(--fan) * var(--pos) * 10%) calc(var(--fan) * var(--pos) * -11%); scale: calc(1 - var(--fan) * var(--pos) * 0.06);
  opacity: calc(1 - var(--pos) * (1 - var(--fan) * 0.88)); transition: translate var(--drift) var(--ease), scale var(--drift) var(--ease), opacity var(--drift) var(--ease); }
.opener-card[data-pos="0"] { z-index: 3; }
.opener-card[data-pos="1"] { --pos: 1; z-index: 2; }
.opener-card[data-pos="2"] { --pos: 2; z-index: 1; }
.opener-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.opener-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
/* The empty page of frame one: a few grey bars and a caret, drawn, not a picture. Only while the story is live. */
.opener-blank { display: none; }
.opener-phone { position: absolute; right: 4%; bottom: -8%; z-index: 4; width: 18%; }

.opener.is-live { height: calc(var(--frames) * 45svh + 100svh); }
.opener.is-live[data-step="2"], .opener.is-live[data-step="3"] { --fan: 1; }
.opener.is-live .opener-pin { position: sticky; top: 0; display: flex; align-items: center; height: 100svh; padding-block: calc(var(--nav-h) + var(--s-3)) var(--s-4); overflow: clip; }
.opener.is-live .opener-grid { width: 100%; }
/* The bottom edge: the glow and the deck fade into the page's ground, so the colour does not end in a straight cut. */
.opener.is-live .opener-pin::after { content: ""; position: absolute; inset: auto 0 0; height: 10rem; z-index: 2; pointer-events: none; background: linear-gradient(transparent, var(--ground)); }
.opener.is-live .opener-dots { z-index: 3; }
/* A lamp under the pointer, in the same colour (mouse and pen; site.js sets --mx / --my). */
.opener.is-live .opener-pin::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--lamp, 0);
  background: radial-gradient(28rem circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--tint) 16%, transparent), transparent 70%); transition: opacity var(--drift) var(--ease); }
.opener.is-live .opener-hint { display: flex; align-items: center; gap: var(--s-1); margin-top: var(--s-3); font-size: var(--t-note); color: var(--ink-quiet); }
@media (hover: none) { .opener.is-live .opener-hint { display: none; } }
.opener.is-live .opener-frames { display: grid; gap: 0; }
.opener.is-live .opener-frame { grid-area: 1 / 1; align-self: center; opacity: 0; translate: 0 var(--s-3); pointer-events: none; }
.opener.is-live.is-set .opener-frame { transition: opacity var(--drift) var(--ease), translate var(--drift) var(--ease); }
.opener.is-live .opener-frame.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.opener.is-live .opener-cue { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--t-note); color: var(--ink-quiet); }
/* Wiped off from the left as the reader scrolls, a bronze line at the wipe's edge. */
.opener.is-live .opener-blank { position: absolute; inset: 0; z-index: 1; display: grid; align-content: start; gap: var(--s-2); padding: 8% 10%; background: var(--surface); clip-path: inset(0 0 0 calc(var(--w) * 100%)); }
.opener.is-live .opener-blank::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--w) * 100%); width: 2px; background: var(--tint); }
/* The line's handle: it shows in frame two, where the line rests part-way and can be dragged (site.js). */
.opener-handle { display: none; }
.opener.is-live .opener-handle { position: absolute; z-index: 2; top: 50%; left: calc(var(--w) * 100%); display: grid; place-items: center; width: var(--target); height: var(--target); margin: calc(var(--target) / -2) 0 0 calc(var(--target) / -2);
  border-radius: 50%; background: var(--tint); color: #15130f; font-size: var(--t-note); cursor: ew-resize; opacity: 0; scale: 0.6; transition: opacity var(--hover) var(--ease), scale var(--hover) var(--ease); touch-action: none; }
.opener.is-live[data-step="1"] .opener-handle { opacity: 1; scale: 1; }
.opener.is-live.is-dragging .opener-handle { scale: 1.15; }
.opener.is-live .opener-blank i { height: 0.75rem; border-radius: var(--r-pill); background: var(--line); }
.opener.is-live .opener-blank i:nth-child(1) { width: 46%; height: 1.5rem; }
.opener.is-live .opener-blank i:nth-child(2) { width: 82%; }
.opener.is-live .opener-blank i:nth-child(3) { width: 68%; }
.opener.is-live .opener-blank i:nth-child(4) { width: 30%; }
.opener.is-live .opener-blank b { width: 2px; height: 1.5rem; background: var(--accent); animation: opener-caret 1.1s steps(1) infinite; }
.opener.is-live .opener-card { cursor: pointer; }
.opener.is-live .opener-card[data-pos="0"] { border-color: color-mix(in oklab, var(--tint) 45%, var(--line)); transition: translate var(--drift) var(--ease), scale var(--drift) var(--ease), opacity var(--drift) var(--ease), border-color var(--drift) var(--ease); }
.opener.is-live .opener-phone { opacity: 0; translate: 0 12%; transition: opacity var(--drift) var(--ease), translate var(--drift) var(--ease); }
.opener.is-live[data-step="1"] .opener-phone, .opener.is-live[data-step="3"] .opener-phone { opacity: 1; translate: 0 0; }
/* The four marks under the story: where the reader is, and a way to jump (mouse and touch; the keyboard walks the frames). */
.opener.is-live .opener-dots { position: absolute; left: 50%; bottom: var(--s-2); display: flex; margin: 0; padding: 0; list-style: none; translate: -50% 0; }
.opener-dots li { padding: var(--s-2) calc(var(--s-1) / 2); cursor: pointer; }
.opener-dots li::before { content: ""; display: block; width: var(--s-3); height: 2px; background: var(--line); transition: background-color var(--drift) var(--ease); }
.opener-dots li.is-on::before { background: var(--tint); }
@keyframes opener-caret { 50% { opacity: 0; } }

.opener:not(.is-live) .opener-card:not([data-pos="0"]) { display: none; }

@media (min-width: 62.5rem) {
  .opener-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .opener-stage { grid-column: 2; grid-row: 1; align-self: center; }
  .opener.is-live .opener-stage { margin-right: calc(var(--gutter) * -1 - 4vw); }
  .opener:not(.is-live) .opener-stage { align-self: start; position: sticky; top: calc(var(--nav-h) + var(--s-4)); }
}
@media (max-width: 62.49rem) {
  .opener.is-live .opener-grid { gap: var(--s-3); }
  .opener.is-live .opener-stage { order: -1; width: min(100%, 26rem); margin-inline: auto; }
  .opener-frame h1, .opener-title { font-size: var(--t-heading); }
  .opener.is-live .opener-frame { align-self: start; }
}

.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 100svh; padding-block: calc(var(--nav-h) + var(--s-4)) var(--s-5); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: var(--s-5); width: 100%; }
/* The meta comes after the hang in the markup (a phone sees the work first); here it sits back under the copy. */
@media (min-width: 62.5rem) {
  .hero-grid { grid-template-areas: "copy media" "meta media"; row-gap: var(--s-4); }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-meta { grid-area: meta; align-self: start; }
  .hero-media { grid-area: media; }
}
.hero h1 { max-width: 72rem; font-size: var(--t-display); line-height: var(--lead-display); letter-spacing: var(--track-display); }
.hero-lead { max-width: var(--measure); margin-top: var(--s-4); font-size: var(--t-lead); color: var(--ink-quiet); }
.hero .actions { margin-top: var(--s-5); }
/* The way on, in the band that used to be empty under the hero: "Práce (3)" and a line drawn down toward it.
   Only where the hero has that band (wide and tall enough); on phones the work follows straight on. */
.hero-cue { display: none; }
@media (min-width: 62.5rem) and (min-height: 50rem) {
  .hero-cue { position: absolute; left: 50%; bottom: var(--s-2); display: grid; justify-items: center; gap: var(--s-1); min-height: var(--target); padding: var(--s-1) var(--s-2); translate: -50% 0; font-size: var(--t-note); font-weight: var(--w-strong); color: var(--ink-quiet); text-decoration: none; transition: color var(--hover) var(--ease); }
  .cue-line { width: var(--hairline); height: var(--s-4); background: linear-gradient(var(--ink-quiet), transparent); transform-origin: 50% 0; transition: transform var(--hover) var(--ease); }
  .hero-cue:active { color: var(--ink); }
  @media (hover: hover) { .hero-cue:hover { color: var(--ink); } .hero-cue:hover .cue-line { transform: scaleY(1.3); } }
}
@media (prefers-reduced-motion: no-preference) { .cue-line { animation: cue-draw var(--bloom) var(--ease) backwards; } } /* drawn once, with the hero's light */
@keyframes cue-draw { from { transform: scaleY(0); } }
.section.works { padding-top: var(--s-4); } /* straight after the hero and its cue: the gap the owner saw is gone */

/* The aurora: three soft lights behind the work, never behind the copy (text contrast is computed without them).
   It blooms in once, leans away from the pointer (site.js sets --px / --py from -1 to 1) and drifts with the scroll.
   It never moves on its own after the first 2.4 s. */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; mask-image: linear-gradient(var(--ink) 60%, transparent); translate: calc(var(--px, 0) * -1.5rem) calc(var(--py, 0) * -1rem); transition: translate var(--drift) var(--ease); }
.aurora i { position: absolute; border-radius: var(--r-pill); }
.aurora i:nth-child(1) { left: 73%; top: 50%; width: 62vmax; height: 62vmax; margin: -31vmax 0 0 -31vmax; background: radial-gradient(closest-side, var(--glow), transparent); }
.aurora i:nth-child(2) { left: 96%; top: 92%; width: 44vmax; height: 44vmax; margin: -22vmax 0 0 -22vmax; background: radial-gradient(closest-side, var(--glow-2), transparent); }
.aurora i:nth-child(3) { left: 56%; top: 2%; width: 30vmax; height: 30vmax; margin: -15vmax 0 0 -15vmax; background: radial-gradient(closest-side, var(--glow-2), transparent); }
.motion .aurora { animation: bloom var(--bloom) var(--ease) both; }
@keyframes bloom { from { opacity: 0; scale: 0.8; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .aurora i { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .aurora i:nth-child(2) { animation-name: drift-2; }
  }
}
@keyframes drift { to { transform: translate(-10%, 14%) scale(1.15); opacity: 0.55; } }
@keyframes drift-2 { to { transform: translate(-30%, -12%) scale(0.85); } }

/* Under the buttons: the three clients by name, and a small door to the website check. */
.hero-meta { display: grid; justify-items: start; gap: var(--s-3); max-width: 34rem; padding-top: var(--s-3); border-top: var(--hairline) solid var(--line); }
.clients { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-note); line-height: 1.5; color: var(--ink-quiet); }
.clients a { color: var(--ink); font-weight: var(--w-strong); text-decoration-color: var(--line); white-space: nowrap; } /* a client's name never splits */
.faces { display: flex; flex: none; }
.faces img { width: 2.25rem; height: 2.25rem; border: 2px solid var(--ground); border-radius: var(--r-pill); }
.faces img + img { margin-left: -0.7rem; }
.hero-check {
  display: inline-flex; align-items: center; gap: var(--s-1);
  min-height: var(--target); padding: 0.3rem var(--s-2) 0.3rem 0.3rem;
  border: var(--hairline) solid var(--line); border-radius: var(--r-control);
  background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: var(--t-note); text-decoration: none;
  transition: border-color var(--hover) var(--ease), translate var(--hover) var(--ease);
}
.hero-check .ico { flex: none; width: 2.25rem; height: 2.25rem; padding: 0.45rem; border-radius: var(--r-pill); background: var(--ink); color: var(--ground); }
.hero-check b { font-weight: var(--w-strong); white-space: nowrap; }
.hero-check:active { border-color: var(--ink-quiet); }
@media (hover: hover) { .hero-check:hover { border-color: var(--ink-quiet); } }

/* The hang: Farma and Skicentrum behind, Truhlářství in front (the one content image, and the largest paint), the
   Skicentrum phone nearest, glass chips naming what each site really has. Each layer leans by its own depth. */
.hero-media { position: relative; }
.hero-stage { position: relative; aspect-ratio: 6 / 5; }
@media (min-width: 62.5rem) { .hero-stage { width: calc(100% + min(var(--s-5) * 1.5, max(0px, (100vw - var(--page)) / 2) + var(--gutter) - var(--s-3))); } } /* on desktop the hang runs on into the right margin, stopping short of the edge */
.hero-stage .layer { position: absolute; margin: 0; --depth: 0; translate: calc(var(--px, 0) * var(--depth) * 1px) calc(var(--py, 0) * var(--depth) * 1px); transition: translate var(--drift) var(--ease); }
.hero-stage .browser { left: auto; right: auto; top: auto; }
.hero-stage .layer-back { left: 0; top: 8%; width: 56%; --depth: 6; }
.hero-stage .layer-mid { right: 0; top: 0; width: 52%; --depth: 11; }
.hero-stage .layer-front { left: 5%; top: 33%; z-index: 2; width: 75%; --depth: 17; }
.hero-stage .layer-front img { width: 100%; }
.hero-stage .layer-phone { right: 1%; bottom: 0; z-index: 3; width: 21%; border-radius: var(--r-tile); --depth: 26; }
.hero-stage .hero-chip { z-index: 4; --depth: 34; }
.hero-chip::before { content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-right: 0.5em; vertical-align: 0.12em; border-radius: var(--r-pill); background: var(--accent); }
.hero-stage .hero-chip-0 { left: 0; bottom: 4%; }
.hero-stage .hero-chip-1 { left: 3%; top: 2%; }
.hero-stage .hero-chip-2 { right: 2%; top: 30%; }
.hero-stage .hero-chip-3 { right: 17%; bottom: 14%; } /* beside the phone, over the front screenshot, clear of chip 2 */
@media (prefers-reduced-motion: reduce) { .hero-stage .layer, .aurora { translate: none; } }

/* Hero start states, only when motion.js will animate them (html.motion, set in <head> for visible pages).
   If GSAP never arrives, the fallback lands everything at 2.5s; GSAP finishes by 2.2s, so it never fights.
   The front screenshot is the largest paint: it moves, never fades. */
.motion .hero-copy > *, .motion .hero-meta, .motion .hero-stage .layer:not(.layer-front) { opacity: 0; transform: translateY(2.25rem); animation: arrive 0s var(--late) forwards; }
.motion .hero-stage .layer-front { transform: translateY(3rem) scale(0.96); animation: arrive 0s var(--late) forwards; }
@keyframes arrive { to { opacity: 1; transform: none; } }
@media (max-width: 62.49rem) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .aurora i:nth-child(1) { left: 60%; top: 78%; }
  .aurora i:nth-child(3) { left: 90%; top: 50%; }
}
@media (max-width: 29.99rem) {
  .hero-stage .hero-chip-1, .hero-stage .hero-chip-2 { display: none; } /* two chips are enough on a phone */
  .hero-stage .hero-chip-3 { right: 4%; bottom: 57%; }
}

/* Inner pages open with a title and one sentence, under the same lamp, quieter. */
.page-head { position: relative; padding-block: calc(var(--nav-h) + var(--s-5)) var(--s-5); }
.page-head::before, .reading::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(closest-side at 78% 30%, var(--glow), transparent); opacity: 0.6; }
.page-head h1 { max-width: 20ch; font-size: var(--t-heading); line-height: var(--lead-display); letter-spacing: var(--track-heading); }
.page-head p { max-width: var(--measure); margin-top: var(--s-3); font-size: var(--t-lead); color: var(--ink-quiet); }

.section { padding-top: var(--section); }
.page-head + .section, .page-head + * > .section:first-child { padding-top: 0; }
.section-title { margin-bottom: var(--s-5); font-size: var(--t-heading); line-height: var(--lead-display); letter-spacing: var(--track-heading); }
.section-foot { margin-top: var(--s-4); }
/* Inline flow, not flex: a long label wraps as text with the arrow after its last word, never stranded at the far edge. */
.more { display: inline-block; justify-self: start; padding-block: 0.6rem; font-weight: var(--w-strong); text-wrap: balance; }
.more > [aria-hidden="true"] { display: inline-block; margin-inline-start: 0.1em; } /* inline-block, so it can nudge on hover */

/* A photograph set into the line of a heading, the height of a capital. */
.pill { display: inline-block; width: 2.4em; height: 0.82em; margin-inline: 0.06em; overflow: hidden; vertical-align: -0.04em; border-radius: var(--r-pill); }
.pill img { width: 100%; height: 100%; object-fit: cover; }

/* The works on the home page, after fallengrey.com (owner, 2026-10-23): by default a halo, every screenshot on a slowly
   turning ring, with the works' names under it as the way in; a gallery row to scroll instead; and a viewer showing one
   work at a time, full screen. The list (.works-row) is the content in both modes; site.js draws the halo from it.
   Without JS there is only the row, each card a link to its chapter on /work/. Replaces the Lovable list and stage. */
.works-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-3); }
.works .section-title { margin-bottom: var(--s-2); }
.works-lead { max-width: var(--measure); font-size: var(--t-lead); color: var(--ink-quiet); }
.works-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.works-modes button {
  min-height: var(--target); padding: 0 var(--s-2); border: 0; border-radius: var(--r-control); background: none;
  color: var(--ink-quiet); font: inherit; font-size: var(--t-note); cursor: pointer; touch-action: manipulation;
  transition: color var(--hover) var(--ease), background-color var(--hover) var(--ease);
}
.works-modes button > span { padding-inline: 0.35em; } /* the brackets of the recording's "[ halo mode ]" */
.works-modes [aria-pressed="true"] { color: var(--ink); font-weight: var(--w-strong); }
.works-modes .works-pause { margin-left: var(--s-1); box-shadow: inset 0 0 0 var(--control-border) var(--ink-quiet); } /* a control edge: quiet ink, 5.82 / 7.64 */
.works-modes .works-pause[aria-pressed="true"] { background: var(--line); }
@media (hover: hover) { .works-modes button:hover { color: var(--ink); background: var(--line); } }
.works-modes button:active { color: var(--ink); background: var(--line); }
.works-show { margin-top: var(--s-4); }

/* The row: the cards run off the right edge and scroll sideways, starting in line with the page. */
.works-row {
  display: flex; gap: var(--s-4); margin: 0; list-style: none;
  padding: var(--s-2) max(var(--gutter), (100% - var(--page)) / 2 + var(--gutter)) var(--s-3);
  scroll-padding-inline: max(var(--gutter), (100% - var(--page)) / 2 + var(--gutter));
  overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.work-card { flex: none; width: clamp(16rem, 40vw, 34rem); scroll-snap-align: start; }
.work-card a { display: grid; text-decoration: none; touch-action: manipulation; }
.card-shots { position: relative; display: block; padding: 0 var(--s-3) var(--s-3) 0; }
.card-shots.no-phone { padding: 0; }
.card-desk { display: block; }
.card-phone { position: absolute; right: 0; bottom: 0; display: block; width: 22%; border-radius: var(--r-tile); }
.card-name { margin-top: var(--s-2); font-size: var(--t-lead); font-weight: var(--w-strong); line-height: var(--lead-title); text-wrap: balance; }
.card-medium { margin-top: 0.25rem; color: var(--accent); }
.work-card a:active .card-desk img { transform: scale(1.02); }

/* The halo. The ring sits at the middle of its room; each card goes round it to its angle (--k of --n), out to the
   radius, and turns back to face the eye (so it is never seen mirrored), leaning only with the ring's tilt and roll.
   site.js turns the ring by --a. The back of the ring dims, as in a room lit from the front (cos(), where supported).
   The ring sits above the middle (40%): the front, nearer, is drawn larger and reaches further down (measured at
   1440: 77 px spare above, 56 px over below, when centred). */
.halo { display: none; }
.works-show[data-mode="halo"] .halo {
  position: relative; display: block; height: var(--halo-h); perspective: var(--halo-depth);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.works-show[data-mode="halo"] .halo.is-dragging { cursor: grabbing; }
.halo::before { content: ""; position: absolute; inset: 5% 12%; pointer-events: none; background: radial-gradient(closest-side, var(--glow), transparent); } /* the lamp behind the work, as everywhere on the site */
.halo-ring { position: absolute; left: 50%; top: 40%; transform-style: preserve-3d; transform: rotateX(calc(var(--halo-tilt) + var(--ty, 0deg))) rotateZ(var(--halo-roll)) rotateY(var(--a, 0deg)); } /* --ty: the lean with the pointer */
.halo-card {
  --at: calc(var(--k) * 360deg / var(--n));
  position: absolute; left: 0; top: 0; height: var(--halo-card); aspect-ratio: 16 / 10; overflow: hidden; transform-origin: 0 0; /* turn round the ring's centre, not the card's */
  border: var(--hairline) solid var(--line); border-radius: calc(var(--r-shot) / 2); background: var(--skeleton); box-shadow: var(--shadow-lift);
  transform: rotateY(var(--at)) translateZ(var(--halo-r)) rotateY(calc(-1 * (var(--at) + var(--a, 0deg)))) translate(-50%, -50%);
  opacity: calc(0.3 + 0.35 * (1 + cos(var(--at) + var(--a, 0deg))));
  cursor: pointer;
}
.halo-card.is-phone { aspect-ratio: 780 / 1688; }
.halo-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.halo-card.is-lit { border-color: var(--accent); opacity: 1; }
/* Phones: the cards are orbs streaming out of a tunnel, each on its own turn of a spiral (site.js places them). An
   orb's edge splits into the colours a lens makes. Departure from the palette: the fringe is optics, not a colour of
   the brand, and in bronze it would read as a border. */
.halo.is-tunnel { perspective: var(--tunnel-depth); overflow: hidden; } /* the near orbs leave at its edges, never over the text */
.halo.is-tunnel .halo-ring { top: 50%; transform: none; }
.halo.is-tunnel .halo-card {
  height: var(--orb); aspect-ratio: 1; border: 0; border-radius: 50%;
  box-shadow: -0.2rem 0 0.4rem -0.05rem rgb(70 140 255 / 0.5), 0.2rem 0 0.4rem -0.05rem rgb(255 150 70 / 0.45);
}
.halo.is-tunnel .halo-card img { object-position: center; }
.halo.is-tunnel .halo-card.is-lit { box-shadow: 0 0 0 0.15rem var(--accent); }
/* Beside the halo the list is the works' names, as chips: the way in for the keyboard and for screen readers. */
.works-show[data-mode="halo"] .works-row { flex-wrap: wrap; justify-content: center; gap: var(--s-1); padding-block: 0; overflow: visible; }
.works-show[data-mode="halo"] .work-card { width: auto; }
.works-show[data-mode="halo"] :is(.card-shots, .card-medium) { display: none; }
.works-show[data-mode="halo"] .work-card a {
  display: flex; align-items: center; min-height: var(--target); padding: 0 var(--s-2);
  border: var(--hairline) solid var(--line); border-radius: var(--r-control); color: var(--ink-quiet);
  transition: color var(--hover) var(--ease), border-color var(--hover) var(--ease);
}
.works-show[data-mode="halo"] .card-name { margin: 0; font-size: var(--t-note); }
.works-show[data-mode="halo"] .work-card a:is(.is-lit, :active) { color: var(--ink); border-color: var(--ink-quiet); }

/* The viewer: one work full screen, the count and the way out on top, previous and next below (also ← and →). */
html:has(.viewer[open]) { overflow: hidden; } /* the page behind stays where it was */
.viewer {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: var(--s-2) var(--gutter);
  border: 0; background: var(--ground); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
}
.viewer::backdrop { background: var(--ground); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; gap: var(--s-3); }
.viewer-bar, .viewer-nav, .viewer-work { width: 100%; max-width: var(--page); margin-inline: auto; }
.viewer-bar, .viewer-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.viewer-nav { justify-content: flex-end; }
.viewer-count { font-size: var(--t-note); font-variant-numeric: tabular-nums; color: var(--ink-quiet); }
.viewer-work { display: grid; align-content: center; gap: var(--s-4); }
.viewer-work[hidden] { display: none; }
@media (min-width: 62.5rem) { .viewer-work { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: var(--s-5); } }
.viewer-media { position: relative; margin: 0; padding: 0 var(--s-4) var(--s-4) 0; perspective: var(--depth); }
.viewer-phone { position: absolute; right: 0; bottom: 0; width: 19%; border-radius: var(--r-tile); }
.viewer-copy h3 { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); }
.viewer-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-3); margin-top: var(--s-2); }
.viewer { touch-action: pan-y pinch-zoom; } /* sideways swipes are the viewer's; zoom stays the visitor's */
.viewer-work { transition: translate var(--hover) var(--ease); }
.viewer-work.is-dragged { transition: none; }
/* Phones: the facts are a sheet over the bottom of the screen, its grabber saying it can be swiped down. */
@media (max-width: 62.49rem) {
  .viewer-copy { position: relative; margin-inline: calc(var(--gutter) * -1); padding: var(--s-4) var(--gutter) var(--s-3); border-top: var(--hairline) solid var(--line); border-radius: var(--r-card) var(--r-card) 0 0; background: var(--surface); }
  .viewer-copy::before { content: ""; position: absolute; left: 50%; top: var(--s-1); width: 2.5rem; height: 0.25rem; margin-left: -1.25rem; border-radius: var(--r-pill); background: var(--ink-quiet); }
}
@media (prefers-reduced-motion: no-preference) {
  .viewer[open] { animation: viewer-in var(--reveal) var(--ease); }
  .viewer-work:not([hidden]) { animation: rise var(--reveal) var(--ease) backwards; }
}
@keyframes viewer-in { from { opacity: 0; } }

/* The site in a browser frame with its real address; it leans toward the pointer (--lx / --ly, site.js). */
.panel-frame { position: relative; overflow: hidden; border: var(--hairline) solid var(--line); border-radius: var(--r-shot); background: var(--surface); box-shadow: var(--shadow-float); transform: rotateX(calc(var(--ly, 0) * var(--lean) * -1)) rotateY(calc(var(--lx, 0) * var(--lean))); transition: transform var(--drift) var(--ease); }
.panel-frame .browser-bar { font-size: var(--t-note); }
.panel-url { display: inline-flex; align-items: center; gap: 0.35rem; margin-inline: auto !important; padding: 0.15rem 0.8rem; }
.panel-url .ico { width: 0.8rem; height: 0.8rem; }
.panel-desk { border: 0; border-radius: 0; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .panel-frame { transform: none; transition: none; } }

.work-about { margin-top: var(--s-2); font-size: var(--t-lead); color: var(--ink-quiet); }
.work-medium { margin-top: var(--s-4); color: var(--accent); }
.work-detail { margin-top: var(--s-1); color: var(--ink-quiet); }
/* What a site has, as small tags. The list comes from WORKS in lower case; the first letter is raised here. */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--s-2); padding: 0; list-style: none; }
.tags li { padding: 0.3rem 0.8rem; border: var(--hairline) solid var(--line); border-radius: var(--r-control); background: var(--ground); font-size: var(--t-note); }
.tags li::first-letter { text-transform: uppercase; }
.work-media { position: relative; padding: 0 var(--s-4) var(--s-4) 0; }
.work-media .shot-phone { position: absolute; right: 0; bottom: 0; width: 24%; border-radius: var(--r-tile); }
@media (max-width: 62.49rem) {
  .work-media { order: -1; padding: 0 var(--s-3) var(--s-3) 0; }
}

/* The work page: one project per chapter, the screenshots at full width. */
.case { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: var(--s-5); align-items: start; padding-top: var(--section); }
.case:first-child { padding-top: 0; }
.case-copy { position: sticky; top: var(--stick); }
.case :is(h2, h3) { font-size: var(--t-heading); line-height: var(--lead-display); letter-spacing: var(--track-heading); }
@media (max-width: 62.49rem) {
  .case { grid-template-columns: 1fr; gap: var(--s-4); }
  .case-copy { position: static; }
}

/* The services as a bento. 4 x 2 cells: Web 2x2, E-shop 2x1, Brand 1x1, Cards 1x1 = 8 of 8, no holes.
   Each tile is one link to its section on the services page. */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(15rem, auto); grid-auto-flow: dense; gap: var(--s-2); }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-1);
  padding: var(--s-4);
  border: var(--hairline) solid var(--line); border-radius: var(--r-tile);
  background: var(--surface); color: inherit; text-decoration: none;
  transition: border-color var(--hover) var(--ease), translate var(--hover) var(--ease), box-shadow var(--hover) var(--ease);
}
.tile h3 { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); }
.tile p { max-width: 30rem; color: var(--ink-quiet); }
.tile:active { border-color: var(--ink-quiet); }
@media (hover: hover) { .tile:hover { border-color: var(--ink-quiet); translate: 0 var(--lift); box-shadow: var(--shadow-lift); } }
.tile-web { grid-column: span 2; grid-row: span 2; }
.tile-pic .vis { margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) auto; } /* small tiles lead with their picture too */
.tile-shop { grid-column: span 2; }
.tile-media { position: relative; overflow: hidden; margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) auto; border-bottom: var(--hairline) solid var(--line); background: var(--skeleton); }
.tile-media img { width: 100%; transition: transform var(--hover-slow) var(--ease), opacity var(--reveal) var(--ease); }
@media (min-width: 62.5rem) { /* the tall web tile: the screenshot fills down to the copy, no empty band */
  .tile-web .tile-media { flex: 1; min-height: 0; }
  .tile-web .tile-media img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 0 0; }
}
.tile-shop { flex-direction: row; align-items: stretch; justify-content: flex-start; gap: var(--s-4); }
.tile-shop .tile-media { flex: 1.2; margin: calc(var(--s-4) * -1) 0 calc(var(--s-4) * -1) calc(var(--s-4) * -1); border-bottom: 0; border-right: var(--hairline) solid var(--line); }
.tile-shop .tile-media img { height: 100%; object-fit: cover; object-position: 0 0; }
.tile-shop .tile-text { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-1); }
@media (max-width: 62.49rem) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(13rem, auto); }
  .tile-web, .tile-shop { grid-column: span 2; grid-row: auto; }
  .tile-shop { flex-direction: column; justify-content: flex-end; gap: var(--s-1); }
  .tile-shop .tile-media { flex: none; margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) auto; border-right: 0; border-bottom: var(--hairline) solid var(--line); }
  .tile-shop .tile-media img { height: auto; }
}
@media (max-width: 29.99rem) {
  .bento { grid-template-columns: 1fr; }
  .tile-web, .tile-shop { grid-column: auto; }
  .tile { padding: var(--s-3); }
  .tile-media, .tile-shop .tile-media, .tile-pic .vis { margin: calc(var(--s-3) * -1) calc(var(--s-3) * -1) auto; }
}

/* A header row: title and one sentence on the left, one action on the right. */
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-5); }
.head-row h1, .head-row h2 { font-size: var(--t-heading); line-height: var(--lead-display); letter-spacing: var(--track-heading); }
.head-row p { max-width: var(--measure); margin-top: var(--s-3); font-size: var(--t-lead); color: var(--ink-quiet); }
.head-row .button { flex: none; }

/* Spotlight: a soft lamp follows the pointer across a card (site.js sets --mx and --my). Pointer devices only. */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(28rem circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 60%); opacity: 0; transition: opacity var(--hover) var(--ease); pointer-events: none; }
@media (hover: hover) { .spot:hover::before { opacity: 1; } }

/* Services: four cards, each led by a picture of the thing itself, then a title, a sentence and an example. */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.svc { display: flex; flex-direction: column; overflow: hidden; border: var(--hairline) solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.svc-body { display: grid; gap: var(--s-1); padding: var(--s-4); }
.svc-body h2 { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); }
.svc-body p { max-width: 32rem; color: var(--ink-quiet); }
.aside-note { margin-top: var(--s-4); color: var(--ink-quiet); }
@media (max-width: 62.49rem) { .svc-grid { grid-template-columns: 1fr; } }

/* The pictures: a small stage with the lamp behind it. Decorative; the markup hides them from assistive tech. */
.vis { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(closest-side at 50% 62%, var(--glow), transparent), var(--ground); border-bottom: var(--hairline) solid var(--line); }
.browser { position: absolute; left: 9%; right: 9%; top: 12%; overflow: hidden; border: var(--hairline) solid var(--line); border-radius: var(--r-shot); background: var(--surface); box-shadow: var(--shadow-float); transition: transform var(--hover-slow) var(--ease); }
.browser-bar { display: flex; align-items: center; gap: 0.3rem; padding: 0.45rem 0.6rem; border-bottom: var(--hairline) solid var(--line); font-size: 0.6875rem; color: var(--ink-quiet); }
.browser-bar i { width: 0.45rem; height: 0.45rem; border-radius: var(--r-pill); background: var(--line); }
.browser-bar span { margin-left: var(--s-1); padding: 0.1rem 0.6rem; border-radius: var(--r-pill); background: var(--ground); white-space: nowrap; }
.browser img { width: 100%; }
.vis-phone { position: absolute; right: 6%; bottom: -10%; width: 19%; overflow: hidden; border: var(--hairline) solid var(--line); border-radius: var(--r-tile); box-shadow: var(--shadow-float); transition: transform var(--hover-slow) var(--ease); }
.vis-phone img { width: 100%; }
.chip { position: absolute; z-index: 1; padding: 0.35rem 0.8rem; border: var(--hairline) solid var(--line); border-radius: var(--r-control); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-float); font-size: var(--t-note); font-weight: var(--w-strong); white-space: nowrap; }
.chip-0 { left: 5%; bottom: 16%; }
.chip-1 { left: 28%; bottom: 6%; }
.chip-2 { right: 5%; top: 5%; }
.vis-brand .chip-0, .vis-cards .chip-0 { left: 5%; bottom: 6%; } /* the drawings fill the middle: their chips keep to the corners */
.vis-brand .chip-1, .vis-cards .chip-1 { left: auto; right: 5%; bottom: 6%; }
.chip-ok { right: 6%; top: 7%; color: var(--success); }
.chip-ok::before { content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.4em; vertical-align: -0.05em; background: currentColor; clip-path: var(--tick); }
@media (hover: hover) {
  .spot:hover .browser { transform: translateY(-0.4rem); }
  .spot:hover .vis-phone { transform: translateY(-0.8rem) rotate(-2deg); }
}
@media (max-width: 29.99rem) { .chip { font-size: 0.75rem; padding: 0.25rem 0.6rem; } }

/* Logo: the Vír symbol over its own construction circles, beside the palette it lives in. */
.vis-brand .construct { position: absolute; left: 0; top: 8%; width: 100%; height: 84%; }
.construct .guides { fill: none; stroke: var(--ink-quiet); stroke-width: 0.25; stroke-dasharray: 1.2 1.2; }
.construct .mark path { fill: var(--ink); }
.construct .mark circle { fill: var(--accent); }
.construct .mark { transform-box: fill-box; transform-origin: center; transition: transform var(--hover-slow) var(--ease); }
.swatches { position: absolute; left: 6%; top: 8%; display: flex; gap: 0.4rem; }
.swatches i { width: 1.6rem; height: 1.6rem; border: var(--hairline) solid var(--line); border-radius: var(--r-pill); }
.sw-ink { background: var(--ink); }
.sw-bronze { background: var(--accent); }
.sw-ground { background: var(--ground); border-color: var(--ink-quiet); } /* the edge keeps it visible on a tile of the same colour */
@media (hover: hover) { .spot:hover .construct .mark { transform: rotate(-12deg); } }

/* Business cards: a front and a back, fanned. 85 x 55 mm, the Czech standard. */
.vis-cards { perspective: 60rem; container-type: inline-size; } /* the card text is sized by the picture, so "DIS design" fits a small tile too */
.bcard { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 85 / 55; border: var(--hairline) solid var(--line); border-radius: 0.6rem; box-shadow: var(--shadow-float); transition: transform var(--hover-slow) var(--ease); }
.bcard-back { display: grid; align-content: end; gap: 0.35rem; padding: 7%; background: var(--ink); transform: translate(-30%, -62%) rotate(8deg); }
.bcard-back span { height: 0.3rem; border-radius: var(--r-pill); background: var(--ground); opacity: 0.35; }
.bcard-back span:nth-child(1) { width: 60%; }
.bcard-back span:nth-child(2) { width: 40%; }
.bcard-back span:nth-child(3) { width: 50%; }
/* The front card turns in 3D (site.js): --tx / --ty tilt it toward the pointer, --flip turns it over, and a sheen
   (--sx / --sy, --shine) follows the pointer like light on a printed card. The sheen's white is the light's colour,
   so it is the same in both themes. */
.bcard-front { border: 0; background: none; box-shadow: none; color: var(--ink); font-size: clamp(0.75rem, 1.3vw, 1rem); font-size: min(1rem, 4.6cqi); transform-style: preserve-3d; transform: translate(-70%, -38%) rotate(-6deg) rotateX(var(--tx, 0deg)) rotateY(calc(var(--ty, 0deg) + var(--flip, 0deg))); }
.bcard-face { position: absolute; inset: 0; display: flex; align-items: center; padding: 7%; overflow: hidden; border: var(--hairline) solid var(--line); border-radius: inherit; background: var(--surface); box-shadow: var(--shadow-float); backface-visibility: hidden; }
.bcard-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--sx, 30%) var(--sy, 20%), rgb(255 255 255 / 0.55), transparent 45%), linear-gradient(115deg, transparent 35%, var(--glow) 50%, transparent 65%); mix-blend-mode: soft-light; opacity: var(--shine, 0); transition: opacity var(--hover) var(--ease); }
.bcard-rear { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0.15em; background: var(--ink); color: var(--ground); transform: rotateY(180deg); }
.bcard-rear small { font-size: 0.72em; opacity: 0.8; }
.vis-cards.is-tilting .bcard-front { transition: transform var(--press) linear; } /* follows the pointer closely; settles back slowly */
.svc .vis-cards[data-vcard] { cursor: pointer; } /* turns over on a click there; on the home page the tile is a link */
.bcard-front .logo { flex: none; width: 1.6em; height: 1.6em; margin-right: 0.4em; fill: currentColor; }
.bcard-front b { margin-right: 0.28em; font-weight: var(--w-mark); letter-spacing: 0.06em; }
.bcard-face > span { position: absolute; left: 7%; bottom: 12%; width: 35%; height: 0.25rem; border-radius: var(--r-pill); background: var(--accent); }
@media (hover: hover) {
  .spot:hover .bcard-back { transform: translate(-25%, -66%) rotate(12deg); }
  .spot:hover .bcard-front { transform: translate(-75%, -34%) rotate(-9deg) rotateX(var(--tx, 0deg)) rotateY(calc(var(--ty, 0deg) + var(--flip, 0deg))); }
}

@media (prefers-reduced-motion: reduce) { .bcard-front { transition: none; } }

/* Section titles sharpen word by word as they arrive (site.js splits them; after DesignCode 5). */
@media (prefers-reduced-motion: no-preference) {
  .reveal .blur-words .w { display: inline-block; opacity: 0; filter: blur(0.3em); translate: 0 0.2em; transition: opacity var(--arrive) var(--ease), filter var(--arrive) var(--ease), translate var(--arrive) var(--ease); transition-delay: calc(var(--wi, 0) * var(--stagger)); }
  .reveal .blur-words.is-sharp .w { opacity: 1; filter: none; translate: none; }
}

/* The Labe valley (home; after DesignCode 5's dot globe and city list): the list is the content, the map beside it
   decoration. Dots faint everywhere, brighter along the rivers once the sweep from Litoměřice has passed (it runs
   when the section arrives, under .reveal); towns in quiet ink, the clients' sites as bronze pins whose ring pulses
   twice (4.8 s, under the 5 s after which moving content needs a pause control). The rivers take --info: water. */
.map-grid { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 62.5rem) { .map-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-5); } }
.map-copy .section-title { margin-bottom: var(--s-2); }
.map-lead { max-width: var(--measure); font-size: var(--t-lead); color: var(--ink-quiet); }
.places { display: grid; margin: var(--s-4) 0 0; padding: 0; list-style: none; border-top: var(--hairline) solid var(--line); }
.places a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--s-2); min-height: var(--target); padding: var(--s-2) 0; border-bottom: var(--hairline) solid var(--line); text-decoration: none; }
.places b { font-size: var(--t-lead); font-weight: var(--w-strong); transition: translate var(--hover) var(--ease), color var(--hover) var(--ease); }
.places span { color: var(--ink-quiet); }
.places a:is(.is-lit, :active) b { translate: var(--s-1) 0; } /* the name steps in; a transform, so nothing reflows */
.places a.is-lit b { color: var(--accent); }
.map-note { margin-top: var(--s-2); font-size: var(--t-note); color: var(--ink-quiet); }
.map { justify-self: center; width: 100%; max-width: 36rem; height: auto; overflow: visible; }
.map pattern circle { fill: var(--ink); }
.map-field { opacity: 0.12; }
.map-lit { opacity: 0.6; }
.map-sweep { transform-box: fill-box; transform-origin: center; }
.map-river { fill: none; stroke: var(--info); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
.map-town circle { fill: var(--ink-quiet); }
.map-town text { font: var(--w-body) 22px var(--face); fill: var(--ink-quiet); }
.map-pin circle { fill: var(--accent); }
.map-pin .map-ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0.5; transform-box: fill-box; transform-origin: center; }
.map-pin text { font: var(--w-strong) 30px var(--face); fill: var(--ink); paint-order: stroke; stroke: var(--ground); stroke-width: 8px; stroke-linejoin: round; } /* a ground-coloured edge keeps the name readable over the dots */
.map-pin.is-lit .map-ring { opacity: 1; stroke-width: 3; }
.map-pin.is-lit text { fill: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .reveal .map-sweep { transform: scale(0); transition: transform 2.4s var(--ease); }
  .reveal .is-in .map-sweep { transform: none; }
  .is-in .map-ring { animation: map-pulse 2.4s var(--ease) 0.8s 2 backwards; }
  .map-pin.is-lit .map-ring { animation: map-pulse 1.2s var(--ease) infinite; } /* while pointed at: the visitor is holding it */
}
@keyframes map-pulse { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }
@media (max-width: 29.99rem) { .map-town text { display: none; } } /* at phone width the town names would be 8 px */

/* Průvodce (/guide/), in Elementor's section order: a centred hero over the product, eight chapters
   told as you scroll, and the questions as large rows. */
.guide-hero { position: relative; isolation: isolate; padding-block: calc(var(--nav-h) + var(--s-5)) var(--s-4); text-align: center; }
.guide-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(closest-side at 50% 62%, var(--glow), transparent); }
.guide-hero h1 { max-width: 16ch; margin-inline: auto; font-size: var(--t-display); line-height: var(--lead-display); letter-spacing: var(--track-display); }
.guide-lead { max-width: var(--measure); margin: var(--s-3) auto 0; font-size: var(--t-lead); color: var(--ink-quiet); }
.guide-hero .actions { justify-content: center; margin-top: var(--s-4); }
.guide-shot { position: relative; max-width: 60rem; margin: var(--s-5) auto 0; padding: 0 var(--s-4) var(--s-4); text-align: start; }
.guide-phone { position: absolute; right: 0; bottom: 0; width: 18%; border-radius: var(--r-tile); }
.guide-chip { display: inline-flex; align-items: center; gap: 0.45em; }
.guide-chip .ico { width: 1.1em; height: 1.1em; color: var(--accent); }
.guide-chip-0 { left: -1%; top: 16%; }
.guide-chip-1 { left: 6%; bottom: 14%; }
.guide-chip-2 { right: 12%; top: -3%; }
/* The chips drift past the product as it scrolls by, each at its own pace, where the browser can tie an animation to
   the scroll; elsewhere they simply stay. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .guide-chip { animation: chip-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .guide-chip-1 { --drift: 3rem; }
    .guide-chip-2 { --drift: 1.5rem; }
  }
}
@keyframes chip-drift { from { translate: 0 var(--drift, 2rem); } to { translate: 0 calc(var(--drift, 2rem) * -1); } }
@media (max-width: 47.99rem) { .guide-chip { display: none; } } /* on a phone they would cover the screenshot */

/* The chapters (after Elementor's scrolling features): the list on the left stays and marks the chapter in view, a
   line under it filling as that chapter passes (site.js: aria-current, --p); each chapter's picture builds itself up
   as it scrolls in, where the browser ties animation to the scroll. Phones and no JS: chapter after chapter. */
.story-lead { max-width: var(--measure); font-size: var(--t-lead); color: var(--ink-quiet); }
.story-grid { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.story-rail { display: none; }
@media (min-width: 62.5rem) {
  .story-grid { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
  .story-rail { position: sticky; top: var(--stick); display: block; }
}
.story-rail ol { margin: 0; padding: 0; list-style: none; border-top: var(--hairline) solid var(--line); }
.story-rail a { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: center; min-height: var(--target); padding-block: 0.65rem; border-bottom: var(--hairline) solid var(--line); color: var(--ink-quiet); font-weight: var(--w-strong); line-height: var(--lead-title); text-decoration: none; transition: color var(--hover) var(--ease); }
.story-rail a[aria-current="true"], .story-rail a:active { color: var(--ink); }
@media (hover: hover) { .story-rail a:hover { color: var(--ink); } }
.rail-num { font-size: var(--t-note); color: var(--accent); font-variant-numeric: tabular-nums; }
.rail-bar { position: absolute; left: 0; right: 0; bottom: calc(var(--hairline) * -1); height: 2px; background: var(--accent); opacity: 0; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; transition: opacity var(--hover) var(--ease); }
.story-rail a[aria-current="true"] .rail-bar { opacity: 1; }

.story-chapters { display: grid; gap: var(--s-4); }
.chapter { display: grid; gap: var(--s-4); align-items: center; padding: clamp(var(--s-3), 3vw, var(--s-5)); border: var(--hairline) solid var(--line); border-radius: var(--r-card); background: var(--surface); scroll-margin-top: var(--stick); }
@media (min-width: 75rem) { .chapter:not(.chapter-wide) { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); min-height: 32rem; } }
.chapter-num { font-size: var(--t-note); font-weight: var(--w-strong); color: var(--accent); font-variant-numeric: tabular-nums; }
.chapter h3 { margin: var(--s-1) 0 var(--s-2); font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); text-wrap: balance; }
.chapter-text > p + p { margin-top: var(--s-1); }
.chapter-text .more { margin-top: var(--s-2); }
.chapter-sub { margin-top: var(--s-3) !important; font-weight: var(--w-strong); }
.chapter-note { margin-top: var(--s-2); font-size: var(--t-note); color: var(--ink-quiet); }
.chapter-list { margin: var(--s-2) 0 0; padding-left: 1.2em; }
.chapter-list li + li { margin-top: 0.4em; }
.chapter-terms { margin: var(--s-1) 0 0; }
.chapter-terms dt { font-weight: var(--w-strong); }
.chapter-terms dd { margin: 0.15em 0 var(--s-2); color: var(--ink-quiet); }
.chapter-steps { display: grid; gap: var(--s-2); margin: var(--s-1) 0 0; padding: 0; list-style: none; counter-reset: step; }
.chapter-steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: var(--s-1); counter-increment: step; }
.chapter-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--r-pill); background: var(--accent-fill); color: var(--on-accent); font-weight: var(--w-strong); }
.chapter-steps span { color: var(--ink-quiet); }
.chapter-gets, .chapter-glossary { display: grid; gap: var(--s-2); margin: var(--s-2) 0 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .chapter-gets, .chapter-glossary { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }
.chapter-gets li, .chapter-glossary > div { display: grid; align-content: start; gap: 0.3rem; padding: var(--s-3); border: var(--hairline) solid var(--line); border-radius: var(--r-tile); background: var(--ground); }
.chapter-gets .ico { width: 1.75rem; height: 1.75rem; margin-bottom: var(--s-1); color: var(--accent); }
.chapter-gets span { color: var(--ink-quiet); }
.chapter-glossary dd { margin: 0; color: var(--ink-quiet); }

/* The pictures: what each chapter says, drawn small. Decoration (aria-hidden). */
.chapter-pic .vis { border: var(--hairline) solid var(--line); border-radius: var(--r-tile); }
.pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: var(--hairline) solid var(--line); border-radius: var(--r-tile); background: radial-gradient(closest-side at 50% 55%, var(--glow), transparent), var(--ground); }
.pic-old { display: grid; align-content: start; gap: var(--s-2); padding: 0 0 var(--s-4); aspect-ratio: auto; } /* as tall as its three flags need */
.pic-old .browser-bar { background: var(--surface); }
.pic-line { height: 0.6rem; margin-inline: var(--s-3); border-radius: var(--r-pill); background: var(--line); }
.pic-line.w60 { width: 60%; } .pic-line.w80 { width: 80%; } .pic-line.w40 { width: 40%; }
.pic-flag { justify-self: start; display: inline-flex; align-items: center; gap: 0.45em; margin-left: var(--off, 8%); padding: 0.45rem 0.9rem; border: var(--hairline) solid var(--danger); border-radius: var(--r-pill); background: var(--surface); color: var(--danger); font-size: var(--t-note); font-weight: var(--w-strong); box-shadow: var(--shadow-lift); }
.pic-flag::before { content: "×"; font-size: 1.2em; line-height: 1; }
.pic-flag-0 { margin-top: var(--s-2); } .pic-flag-1 { --off: 30%; } .pic-flag-2 { --off: 16%; } /* a stack, staggered */
.pic-steps { display: grid; align-content: center; gap: var(--s-2); padding: var(--s-4); }
.pic-step { display: inline-flex; align-items: center; gap: var(--s-1); justify-self: start; padding: 0.55rem 1rem 0.55rem 0.55rem; border: var(--hairline) solid var(--line); border-radius: var(--r-pill); background: var(--surface); font-weight: var(--w-strong); box-shadow: var(--shadow-lift); }
.pic-step b { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--r-pill); background: var(--accent-fill); color: var(--on-accent); }
.pic-step-1 { margin-left: 18%; } .pic-step-2 { margin-left: 36%; }
.pic-files { padding: var(--s-4); }
.pic-file { position: absolute; padding: 0.6rem 1rem; border: var(--hairline) solid var(--line); border-radius: var(--r-shot); background: var(--surface); font-family: var(--mono); font-size: var(--t-note); box-shadow: var(--shadow-lift); }
.pic-file-0 { left: 10%; top: 16%; rotate: -4deg; } .pic-file-1 { right: 12%; top: 30%; rotate: 3deg; }
.pic-file-2 { left: 20%; bottom: 24%; rotate: 2deg; } .pic-file-3 { right: 16%; bottom: 10%; rotate: -3deg; background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.pic-price { display: grid; align-content: center; gap: 0; padding: var(--s-4); }
.pic-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); padding-block: 0.7rem; border-bottom: var(--hairline) dashed var(--line); }
.pic-row em { font-style: normal; font-size: var(--t-note); color: var(--accent); white-space: nowrap; }
.pic-law { display: grid; place-content: center; justify-items: center; gap: var(--s-1); text-align: center; }
.pic-law b { font-size: var(--t-heading); line-height: var(--lead-display); letter-spacing: var(--track-heading); }
.pic-law span { padding: 0.35rem 0.9rem; border-radius: var(--r-pill); background: var(--danger-soft); color: var(--danger); font-weight: var(--w-strong); }
/* Built up by the scroll: each piece rises in over the first part of its chapter's way through the screen. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .chapter-pic > *, .pic > :is(.pic-flag, .pic-step, .pic-file, .pic-row, b, span) { animation: pic-in linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .pic-flag-1, .pic-step-1, .pic-file-1, .pic-row:nth-child(2) { animation-range: entry 10% cover 42%; }
    .pic-flag-2, .pic-step-2, .pic-file-2, .pic-row:nth-child(3) { animation-range: entry 20% cover 48%; }
    .pic-file-3, .pic-row:nth-child(4) { animation-range: entry 30% cover 55%; }
  }
}
@keyframes pic-in { from { opacity: 0; translate: 0 1.5rem; scale: 0.94; } }

/* The questions as large rows (Elementor's FAQ): native <details>, a plus that turns into a cross. */
.rows { border-top: var(--hairline) solid var(--line); }
.row { border-bottom: var(--hairline) solid var(--line); }
.row summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--target); padding-block: var(--s-3); font-size: var(--t-title); font-weight: var(--w-strong); line-height: var(--lead-title); letter-spacing: var(--track-title); cursor: pointer; list-style: none; transition: color var(--hover) var(--ease); }
.row summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .row summary:hover { color: var(--accent); } }
.row summary:active { color: var(--accent); }
.row-plus { position: relative; flex: none; width: 1.25rem; height: 1.25rem; transition: rotate var(--hover) var(--ease); }
.row-plus::before, .row-plus::after { content: ""; position: absolute; left: 0; top: calc(50% - 1px); width: 100%; height: 2px; border-radius: var(--r-pill); background: currentColor; }
.row-plus::after { rotate: 90deg; }
.row[open] .row-plus { rotate: 45deg; }
.row p { max-width: var(--measure); padding-bottom: var(--s-3); font-size: var(--t-lead); color: var(--ink-quiet); }
@media (prefers-reduced-motion: reduce) { .row-plus { transition: none; } }

/* Process: the steps on the left, a stage on the right that follows the active step. The bar under the active step
   fills over --flow-step, then site.js moves on; hovering or focusing the band pauses it, a click hands it to the reader. */
.flow { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: var(--s-5); padding: clamp(var(--s-3), 4vw, var(--s-5)); border: var(--hairline) solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.flow-steps { display: grid; padding: 0; list-style: none; }
.flow-step { position: relative; display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-1); padding-block: var(--s-3); border-bottom: var(--hairline) solid var(--line); }
.js .flow-step { cursor: pointer; }
.flow-num { font-size: var(--t-lead); font-weight: var(--w-strong); color: var(--ink-quiet); font-variant-numeric: tabular-nums; transition: color var(--hover) var(--ease); }
.flow-title { font-size: var(--t-lead); line-height: var(--lead-title); }
.flow-title button { display: block; width: 100%; padding: 0.75rem 0; margin-block: -0.75rem; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; } /* the padding makes its own box 44px tall without moving the text */
.flow-title button::after { content: ""; position: absolute; inset: 0; } /* the whole step is the target */
.flow-step:has(button:focus-visible) { outline: var(--focus); outline-offset: var(--focus-gap); border-radius: var(--r-shot); }
.flow-title button:focus-visible { outline: none; }
.flow-text { margin-top: 0.25rem; color: var(--ink-quiet); }
.flow-step.is-active .flow-num { color: var(--accent); }
.flow-bar { position: absolute; left: 0; right: 0; bottom: calc(var(--hairline) * -1); height: 2px; overflow: hidden; }
.flow-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.flow-step.is-active .flow-bar::after { transform: scaleX(1); }
.js .flow:not(.is-manual) .flow-step.is-active .flow-bar::after { animation: flow-fill var(--flow-step) linear; }
.flow:hover .flow-bar::after, .flow:focus-within .flow-bar::after { animation-play-state: paused; }
@keyframes flow-fill { from { transform: scaleX(0); } }
.flow-panel { display: none; }
.flow-panel.is-active { display: block; animation: panel-in var(--reveal) var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(0.75rem); } }
.flow-stage .vis { border: var(--hairline) solid var(--line); border-radius: var(--r-tile); }
.vis-mail .mail { position: absolute; left: 12%; right: 12%; top: 50%; translate: 0 -50%; padding: var(--s-3); border: var(--hairline) solid var(--line); border-radius: var(--r-tile); background: var(--surface); box-shadow: var(--shadow-float); font-size: var(--t-note); } /* centred, so a short phone stage never cuts it */
.mail p { display: flex; gap: var(--s-2); padding-block: 0.4rem; border-bottom: var(--hairline) solid var(--line); }
.mail b { width: 4.5rem; font-weight: var(--w-body); color: var(--ink-quiet); }
.mail-body { display: grid; gap: var(--s-1); padding-top: var(--s-2); }
.link-pill { justify-self: start; padding: 0.25rem 0.75rem; border-radius: var(--r-control); background: var(--info-soft); color: var(--info); font-weight: var(--w-strong); }
.faq-wrap .faq { margin-inline: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .flow:not(.is-manual) .flow-step.is-active .flow-bar::after, .flow-panel.is-active { animation: none; } /* same weight as the rule that starts it, so this wins: no timer, no auto-advance */
}
@media (max-width: 62.49rem) {
  .flow { grid-template-columns: 1fr; }
  .flow-stage { order: -1; }
}
@media (max-width: 35.99rem) { .flow-stage .vis { aspect-ratio: 4 / 3; } } /* the mail card needs the height on a narrow stage */

/* Questions */
.faq { max-width: 60rem; border-bottom: var(--hairline) solid var(--line); }
.faq details { border-top: var(--hairline) solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: var(--target); padding-block: var(--s-3);
  font-size: var(--t-lead); font-weight: var(--w-strong); line-height: var(--lead-title);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* The plus is drawn, not typed, so a screen reader says only the question (and its expanded state). */
.faq summary::after {
  content: ""; flex: none; width: var(--target); height: var(--target);
  border: var(--control-border) solid var(--ink-quiet); border-radius: var(--r-pill);
  background: linear-gradient(var(--ink), var(--ink)) center / 0.875rem 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 0.875rem no-repeat;
  transition: transform var(--hover) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: var(--measure); padding-bottom: var(--s-3); color: var(--ink-quiet); }

/* The website check. Checkboxes are drawn at 1.5rem inside a full-row label, so the whole row is the target. */
.check-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--s-5); align-items: start; }
.check-form legend { padding: 0; margin-bottom: var(--s-3); font-size: var(--t-lead); font-weight: var(--w-strong); }
.check-form fieldset { padding: 0; border: 0; min-width: 0; }
.check-item {
  display: flex; align-items: flex-start; gap: var(--s-2);
  min-height: var(--target); padding: var(--s-2) var(--s-3);
  border: var(--hairline) solid var(--line); border-radius: var(--r-shot);
  background: var(--surface); cursor: pointer;
  transition: border-color var(--hover) var(--ease), background-color var(--hover) var(--ease);
}
.check-item + .check-item { margin-top: var(--s-1); }
.check-item input {
  appearance: none; flex: none; width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0;
  border: var(--control-border) solid var(--ink-quiet); border-radius: 0.375rem; background: var(--ground);
  display: grid; place-items: center; cursor: pointer;
}
.check-item input::after { content: ""; width: 0.875rem; height: 0.875rem; background: var(--ground); clip-path: var(--tick); transform: scale(0); transition: transform var(--press) var(--ease); }
.check-item input:checked { background: var(--ink); border-color: var(--ink); }
.check-item input:checked::after { transform: none; }
.check-item:has(input:checked) { border-color: var(--ink-quiet); }
.check-item:has(input:focus-visible) { outline: var(--focus); outline-offset: var(--focus-gap); }
.check-item input:focus-visible { outline: none; }
@media (hover: hover) { .check-item:hover { border-color: var(--ink-quiet); } }
.check-result { position: sticky; top: var(--stick); padding: var(--s-4); border: var(--hairline) solid var(--line); border-radius: var(--r-tile); background: var(--surface); }
.check-result h2 { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); }
.check-result p { margin-top: var(--s-2); color: var(--ink-quiet); }
.check-result .actions { margin-top: var(--s-4); }
.check-score { font-size: var(--t-numeral); font-weight: var(--w-strong); line-height: 1; font-variant-numeric: tabular-nums; }
.check-scale { display: grid; gap: var(--s-1); margin-top: var(--s-3); padding: 0; list-style: none; font-size: var(--t-note); }
.check-scale li { padding: var(--s-1) var(--s-2); border-radius: var(--r-shot); }
.verdict-success { color: var(--success); background: var(--success-soft); }
.verdict-warning { color: var(--warning); background: var(--warning-soft); }
.verdict-danger { color: var(--danger); background: var(--danger-soft); }
.check-result[data-verdict="success"] { border-color: var(--success); }
.check-result[data-verdict="warning"] { border-color: var(--warning); }
.check-result[data-verdict="danger"] { border-color: var(--danger); }
.check-result[data-verdict] h2 { color: var(--verdict); }
.check-result[data-verdict="success"] { --verdict: var(--success); }
.check-result[data-verdict="warning"] { --verdict: var(--warning); }
.check-result[data-verdict="danger"] { --verdict: var(--danger); }
/* The row of the scale the visitor landed on gets an edge in its own colour; the others keep theirs (and their contrast). */
.check-result[data-verdict="success"] .verdict-success, .check-result[data-verdict="warning"] .verdict-warning, .check-result[data-verdict="danger"] .verdict-danger {
  outline: var(--control-border) solid currentColor; outline-offset: calc(var(--control-border) * -1); font-weight: var(--w-strong);
}
/* Under 62.5rem the result sits below the list; this pill rides the bottom of the screen while you tick, then rests
   at the end of the list. Left-aligned, so it never meets the floating contact button on the right. */
.check-tally {
  position: sticky; z-index: 2; bottom: max(var(--s-3), env(safe-area-inset-bottom) + var(--s-1));
  width: fit-content; margin-top: var(--s-3); padding: var(--s-1) var(--s-3); border-radius: var(--r-control);
  background: var(--ink); color: var(--ground); box-shadow: var(--shadow-float); font-weight: var(--w-strong); font-variant-numeric: tabular-nums;
}
@media (min-width: 62.5rem) { .check-tally { display: none; } }
.private { margin-top: var(--s-3); font-size: var(--t-note); color: var(--ink-quiet); }
@media (max-width: 29.99rem) { .check-result { padding: var(--s-3); } }
@media (max-width: 62.49rem) {
  .check-grid { grid-template-columns: 1fr; }
  .check-result { position: static; }
}

/* The accessibility test, under the website check: the form beside the facts, then the result. Everything is drawn from
   the check's own pieces (form-card, the verdict colours, the tile surface); only the finding's law line is new. */
.a11y-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; margin-top: var(--s-5); }
.a11y h3 { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); text-wrap: balance; }
.a11y-facts dl { display: grid; gap: var(--s-3); margin: var(--s-3) 0 0; }
.a11y-facts dt { font-weight: var(--w-strong); }
.a11y-facts dd { margin: 0.25rem 0 0; color: var(--ink-quiet); text-wrap: pretty; }
.a11y a:not(.button) { color: var(--ink); text-underline-offset: 0.2em; }
.a11y-result { margin-top: var(--s-5); padding: clamp(var(--s-3), 4vw, var(--s-4)); border: var(--hairline) solid var(--verdict); border-radius: var(--r-tile); background: var(--surface); scroll-margin-top: var(--stick); }
.a11y-result:focus-visible { outline: var(--focus); outline-offset: var(--focus-gap); }
.a11y-result[data-verdict="success"] { --verdict: var(--success); }
.a11y-result[data-verdict="warning"] { --verdict: var(--warning); }
.a11y-result[data-verdict="danger"] { --verdict: var(--danger); }
.a11y-verdict h3 { color: var(--verdict); }
.a11y-verdict p { max-width: var(--measure); margin-top: var(--s-2); color: var(--ink-quiet); text-wrap: pretty; }
.a11y-url span { overflow-wrap: anywhere; color: var(--ink); } /* a long product URL breaks instead of widening the page */
.a11y-findings { display: grid; gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.a11y-finding { padding: var(--s-3); border-left: calc(var(--control-border) * 2) solid var(--verdict); border-radius: var(--r-shot); background: var(--ground); }
.a11y-finding h4 { font-size: var(--t-lead); font-weight: var(--w-strong); }
.a11y-count { margin-left: var(--s-1); font-size: var(--t-note); font-weight: var(--w-body); color: var(--ink-quiet); white-space: nowrap; }
.a11y-finding p { max-width: var(--measure); margin-top: var(--s-1); color: var(--ink-quiet); text-wrap: pretty; }
.a11y-law { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin: var(--s-2) 0 0; font-size: var(--t-note); }
.a11y-law dt { color: var(--ink-quiet); }
.a11y-law dd { margin: 0; font-weight: var(--w-strong); }
.a11y-after { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); margin-top: var(--s-4); padding-top: var(--s-4); border-top: var(--hairline) solid var(--line); }
.a11y-after h4 { font-weight: var(--w-strong); }
.a11y-after ul { margin: var(--s-1) 0 0; padding-left: var(--s-3); color: var(--ink-quiet); }
.a11y-cta p { margin: var(--s-1) 0 var(--s-3); color: var(--ink-quiet); text-wrap: pretty; }
@media (max-width: 62.49rem) { .a11y-grid, .a11y-after { grid-template-columns: 1fr; } }

/* Contact: what happens next and other ways in on the left, the enquiry form on the right. */
.page-head .contact-title { max-width: 20ch; font-size: var(--t-mega); line-height: var(--lead-display); letter-spacing: var(--track-display); }
.contact-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: start; gap: var(--s-5); }
.contact-side h2 { margin-bottom: var(--s-2); font-size: var(--t-lead); }
.contact-side h2:not(:first-child) { margin-top: var(--s-5); }
.next-steps { display: grid; gap: var(--s-2); padding: 0; list-style: none; counter-reset: step; }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; align-items: start; gap: var(--s-2); color: var(--ink-quiet); }
.next-steps li::before { content: counter(step) / ""; display: grid; place-items: center; width: 2rem; height: 2rem; border: var(--hairline) solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: var(--t-note); font-weight: var(--w-strong); }
/* After a send, step 1 is ticked: the circle goes green and a tick (the --tick shape, as on .done-mark) replaces the number. */
.next-steps .is-done { position: relative; }
.next-steps .is-done::before { content: "" / ""; border-color: var(--success); background: var(--success-soft); }
.next-steps .is-done::after { content: ""; position: absolute; left: 0.55rem; top: 0.55rem; width: 0.9rem; height: 0.9rem; background: var(--success); clip-path: var(--tick); }
.contact-business { margin-top: var(--s-3); font-size: var(--t-note); color: var(--ink-quiet); }
.contact-side { position: sticky; top: var(--stick); padding-top: var(--s-3); } /* the form is first in the markup and on the left */
@media (max-width: 62.49rem) { .contact-split { grid-template-columns: 1fr; } .contact-side { position: static; } }

/* Forms: labels above fields, hints and errors under them, one alert above it all. Inputs are 18px, so iOS doesn't zoom. */
.form-card { display: grid; gap: var(--s-3); padding: clamp(var(--s-3), 4vw, var(--s-5)); border: var(--hairline) solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-float); }
.form-card h1, .form-card h2 { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); }
.form-card .button { justify-self: start; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: var(--w-strong); }
.opt { font-weight: var(--w-body); color: var(--ink-quiet); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.75rem 1rem;
  border: var(--control-border) solid var(--ink-quiet); border-radius: var(--r-shot);
  background: var(--ground); color: var(--ink); font: inherit;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field :is(input, select, textarea) { scroll-margin-top: var(--s-4); } /* a jump from the error list keeps the label clear of the nav */
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.hint { font-size: var(--t-note); color: var(--ink-quiet); }
.field-error { font-size: var(--t-note); font-weight: var(--w-strong); color: var(--danger); }
.form-alert { padding: var(--s-2) var(--s-3); border: var(--hairline) solid var(--danger); border-radius: var(--r-shot); background: var(--danger-soft); color: var(--danger); }
.form-alert ul { margin: 0.4rem 0 0; padding-left: var(--s-3); }
.form-alert a { color: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* the honeypot: people never see it, bots fill it */
.form-done { justify-items: start; }
.done-mark { position: relative; width: 3rem; height: 3rem; border-radius: var(--r-pill); background: var(--success-soft); }
.done-mark::after { content: ""; position: absolute; inset: 28%; background: var(--success); clip-path: var(--tick); }

/* What you get: six short promises as a ruled list, the same rule the three steps below use. Until 2026-11-13 these
   were six boxed cards, each with an icon in a soft circle: the card kit of every generated page. */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); margin-top: var(--s-5); padding: 0; list-style: none; }
.feature { display: grid; align-content: start; gap: var(--s-1); padding-top: var(--s-3); border-top: var(--hairline) solid var(--line); }
.ico { display: block; width: 1.5rem; height: 1.5rem; }
.feature h3 { font-size: var(--t-lead); line-height: var(--lead-title); letter-spacing: var(--track-title); }
.feature p { color: var(--ink-quiet); max-width: 32ch; }
@media (max-width: 62.49rem) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 47.99rem) { .features { grid-template-columns: 1fr; gap: var(--s-3); } }

/* Three steps in a row, for pages that point on to the process. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-5); padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; align-content: start; gap: var(--s-1); padding-top: var(--s-3); border-top: var(--hairline) solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero) / ""; font-size: var(--t-note); font-weight: var(--w-strong); color: var(--accent); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--t-lead); line-height: var(--lead-title); }
.steps p { color: var(--ink-quiet); }
@media (max-width: 47.99rem) { .steps { grid-template-columns: 1fr; gap: var(--s-3); } }

/* Reach us: a call on the left, the tiles on the right. The form leads, filled, because it always works; each set
   channel is a link that lifts; the ones the owner hasn't filled in yet share one dashed, quiet tile that names them. */
.reach { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: var(--s-5); padding: clamp(var(--s-3), 5vw, var(--s-5)); border: var(--hairline) solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.reach::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(closest-side at 0% 100%, var(--glow), transparent); }
.reach h2 { font-size: var(--t-heading); line-height: var(--lead-display); letter-spacing: var(--track-heading); }
.reach-copy p { max-width: 28rem; margin-top: var(--s-3); font-size: var(--t-lead); color: var(--ink-quiet); }
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1); padding: 0; list-style: none; }
.channels > li { display: grid; }
.channel {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--s-2);
  min-height: 4.5rem; padding: var(--s-2);
  border: var(--hairline) solid var(--line); border-radius: var(--r-tile);
  background: var(--ground); color: inherit; text-decoration: none;
  transition: border-color var(--hover) var(--ease), translate var(--hover) var(--ease), box-shadow var(--hover) var(--ease), scale var(--press) var(--ease);
}
.channel-ico { grid-row: span 2; display: grid; place-items: center; width: var(--target); height: var(--target); border-radius: var(--r-pill); background: var(--ink); color: var(--ground); }
.channel-ico .ico { width: 1.25rem; height: 1.25rem; }
.channel-name { align-self: end; font-weight: var(--w-strong); line-height: var(--lead-title); }
.channel-value { align-self: start; grid-column: 2; font-size: var(--t-note); color: var(--ink-quiet); overflow-wrap: anywhere; }
.channel-go { grid-column: 3; grid-row: 1 / span 2; transition: translate var(--hover) var(--ease); }
.channel.is-soon { border-style: dashed; background: none; }
.channel-lead, .channels-soon { grid-column: 1 / -1; }
.channel-lead .channel { border-color: var(--ink); background: var(--ink); color: var(--ground); } /* ground on ink: 15.05 / 17.06 */
.channel-lead .channel-ico { background: var(--ground); color: var(--ink); }
.channel-lead .channel-value { color: var(--ground); }
.channels-soon .channel { grid-template-columns: minmax(0, 1fr); row-gap: 0.4rem; }
.channels-soon .channel-value { grid-column: auto; }
.channels-soon .channel-name { font-weight: var(--w-body); text-wrap: balance; } /* names of what is still to come: quieter than a live channel */
.soon-icons { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-bottom: 0.25rem; color: var(--ink-quiet); }
.soon-icons .ico { width: 1.25rem; height: 1.25rem; }
a.channel:active { scale: 0.98; }
@media (hover: hover) {
  a.channel:hover { border-color: var(--ink-quiet); translate: 0 var(--lift); box-shadow: var(--shadow-lift); }
  a.channel:hover .channel-go { translate: 0.25rem 0; }
  .channel-lead a.channel:hover { border-color: var(--accent); background: var(--accent); } /* as the main button: ground on bronze, 4.79 / 10.95 */
}
@media (max-width: 62.49rem) { .reach { grid-template-columns: 1fr; } }
@media (max-width: 29.99rem) { .channels { grid-template-columns: minmax(0, 1fr); } } /* one tile per row on a phone, so no name ever breaks */

/* The footer's compact row: each channel the owner has set, as a round icon. */
.channel-icons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--s-2); padding: 0; list-style: none; }
.channel-icons a { display: grid; place-items: center; width: var(--target); height: var(--target); border: var(--hairline) solid var(--ink-quiet); border-radius: var(--r-pill); color: var(--ink); transition: background-color var(--hover) var(--ease), color var(--hover) var(--ease); }
.channel-icons .ico { width: 1.15rem; height: 1.15rem; }
.channel-icons a:active { background: var(--ink); color: var(--ground); }
@media (hover: hover) { .channel-icons a:hover { background: var(--ink); color: var(--ground); } }

/* The floating contact button: bottom right, clear of the home indicator. site.js shows it once the first screen is
   behind you and hides it again at the footer, where every channel is listed anyway. On phones only the icon shows;
   wherever it would cover the content column it shows only while you scroll back up, so it never sits on what you read. */
.fab {
  position: fixed; z-index: 40; right: max(var(--gutter), env(safe-area-inset-right)); bottom: max(var(--s-3), env(safe-area-inset-bottom) + var(--s-1));
  display: inline-flex; align-items: center; gap: var(--s-1); min-height: 3.5rem; padding: 0 var(--s-3) 0 1.1rem;
  border-radius: var(--r-control); background: var(--ink); color: var(--ground); box-shadow: var(--shadow-float);
  font-weight: var(--w-strong); text-decoration: none; view-transition-name: fab;
  transition: opacity var(--hover) var(--ease), visibility var(--hover), translate var(--reveal) var(--ease), background-color var(--hover) var(--ease), scale var(--press) var(--ease);
}
.js .fab:not(.is-on) { opacity: 0; visibility: hidden; translate: 0 1rem; }
.fab:active { scale: 0.96; background: var(--accent); }
@media (hover: hover) { .fab:hover { background: var(--accent); } }
@media (prefers-reduced-motion: reduce) { .js .fab:not(.is-on) { translate: none; } }
@media (max-width: 47.99rem) {
  .fab { justify-content: center; width: 3.5rem; padding: 0; }
  .fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
html:not(.js) .fab { display: none; } /* without JS it could never step aside and would sit on the content; the nav and the footer carry every way in */

/* The toast after a click copies the e-mail (site.js). Bottom right, in the floating button's column but above its
   place (3.5rem tall, plus air) wherever the page has one, so it never covers it; on a phone it spans the gutters.
   Under the nav (40), so the open phone menu stays on top. The region is as big as its box: empty, it is nothing. */
.toast { position: fixed; z-index: 39; right: max(var(--gutter), env(safe-area-inset-right)); bottom: max(var(--s-3), env(safe-area-inset-bottom) + var(--s-1)); width: min(26rem, 100vw - 2 * var(--gutter)); }
.fab ~ .toast { bottom: calc(max(var(--s-3), env(safe-area-inset-bottom) + var(--s-1)) + 3.5rem + var(--s-1)); }
.toast-box {
  display: grid; gap: 0.25rem; padding: var(--s-2) var(--s-3) var(--s-1);
  border: var(--hairline) solid var(--line); border-radius: var(--r-tile);
  background: var(--surface); box-shadow: var(--shadow-float);
  font-size: var(--t-note); overflow-wrap: anywhere;
  animation: toast-in var(--hover) var(--ease) both;
}
.toast-box.is-out { animation: toast-out var(--hover) var(--ease) both; }
.toast-go { display: flex; flex-wrap: wrap; column-gap: var(--s-3); }
.toast-go a { display: inline-flex; align-items: center; min-height: var(--target); font-weight: var(--w-strong); }
@keyframes toast-in { from { opacity: 0; translate: 0 var(--s-2); } }
@keyframes toast-out { to { opacity: 0; } }
@keyframes toast-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .toast-box:not(.is-out) { animation-name: toast-fade; } } /* no slide, the fade stays */

/* Work page: an index of the three, then one chapter each. */
.work-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-1); margin-top: var(--s-4); padding: 0; list-style: none; }
.work-index a {
  display: flex; align-items: center; gap: var(--s-2); min-height: 4.5rem; padding: var(--s-1) var(--s-3) var(--s-1) var(--s-1);
  border: var(--hairline) solid var(--line); border-radius: var(--r-control); background: var(--surface); text-decoration: none;
  transition: border-color var(--hover) var(--ease), translate var(--hover) var(--ease), box-shadow var(--hover) var(--ease);
}
.work-index img { flex: none; width: 3.25rem; height: 3.25rem; border-radius: var(--r-pill); object-fit: cover; object-position: top; } /* an added site's thumb is its phone shot */
.work-index b { display: block; font-weight: var(--w-strong); line-height: var(--lead-title); }
.work-index small { display: block; font-size: var(--t-note); color: var(--ink-quiet); text-wrap: pretty; } /* pretty, not balance: balance broke "e-shop" at its hyphen */
.work-index .go { margin-left: auto; }
@media (hover: hover) { .work-index a:hover { border-color: var(--ink-quiet); translate: 0 var(--lift); box-shadow: var(--shadow-lift); } .work-index a:hover .go { translate: 0 0.2rem; } }
@media (max-width: 62.49rem) { .work-index { grid-template-columns: 1fr; } }
@media (max-width: 47.99rem) { .work-index a { border-radius: var(--r-tile); } } /* a two-line label would pinch inside pill ends */
.case-num { margin-bottom: var(--s-2); font-size: var(--t-note); font-weight: var(--w-strong); color: var(--ink-quiet); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.case .more { margin-top: var(--s-3); }
.case .more + .more { margin-top: 0; } /* the live site and the service sit together as one pair of links */

/* A fact the owner hasn't supplied yet: a warning, small and inline, never invented. */
.gap { display: inline-flex; align-items: baseline; gap: 0.4em; max-width: var(--measure); color: var(--warning); font-size: var(--t-note); }
.gap::before { content: ""; flex: none; width: 0.5em; height: 0.5em; border-radius: var(--r-pill); background: var(--warning); }
.soon { color: var(--ink-quiet); } /* the public wording for a fact still to come ("Doplníme"): quiet, not a warning */
.pointer { color: var(--ink); font-weight: var(--w-strong); } /* a name in a sentence, not a link */

/* Footer: a call band, then three columns, then the small print. On every page. */
.foot { margin-top: var(--section); background: linear-gradient(var(--ground), var(--surface) var(--s-5)); padding-bottom: env(safe-area-inset-bottom); } /* the page eases into the footer, no hard edge */
.foot-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-5); border-bottom: var(--hairline) solid var(--line); }
.foot-band h2 { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); }
.foot-band p { margin-top: var(--s-1); color: var(--ink-quiet); }
/* The black hole (site.js draws it on a canvas): the old web's stock phrases pulled round one point and in. It fades
   out well before the copy (the mask), so the call keeps its contrast; the band grows to give it room. */
[data-hole] { position: relative; isolation: isolate; }
.foot-band[data-hole] { flex-direction: column; align-items: flex-start; justify-content: center; min-height: 22rem; padding-block: var(--s-5); } /* copy and buttons on the left, the hole on the right */
/* Phones (under 600 px): the hole goes under the copy, in room of its own, and its text fades out sooner. */
@media (max-width: 37.49rem) {
  .foot-band[data-hole], .reading[data-hole] { padding-bottom: 17rem; }
  .hole { -webkit-mask-image: radial-gradient(circle at var(--hx) var(--hy), black 3rem, transparent 11rem); mask-image: radial-gradient(circle at var(--hx) var(--hy), black 3rem, transparent 11rem); }
}
.hole {
  position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); z-index: -1;
  width: calc(100% + var(--gutter) * 2); height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at var(--hx) var(--hy), black 8rem, transparent 26rem);
  mask-image: radial-gradient(circle at var(--hx) var(--hy), black 8rem, transparent 26rem);
}
.reading > .hole { left: 0; right: 0; width: 100%; }
/* The radar behind the Website check's title (site.js): on the right beside the title, under it on phones. */
.page-head[data-radar] { isolation: isolate; }
.radar { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 37.49rem) { .page-head[data-radar] { padding-bottom: 11rem; } }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); padding-block: var(--s-5); }
.foot-cols h2 { margin-bottom: var(--s-3); font-size: var(--t-body); font-weight: var(--w-strong); }
.foot-links { display: grid; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: var(--target); text-decoration: none; }
.foot-links a:active { text-decoration: underline; }
@media (hover: hover) { .foot-links a:hover { text-decoration: underline; } }
.foot-services { display: grid; gap: var(--s-2); }
.foot-services h2 { margin-bottom: var(--s-1); }
.foot-services a { display: inline-flex; align-items: center; min-height: var(--target); font-weight: var(--w-strong); } /* 44px, as the page links beside them */
.foot-services p, .foot-contact p { color: var(--ink-quiet); font-size: var(--t-note); }
.foot-contact { display: grid; gap: var(--s-1); align-content: start; }
.foot-small { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-4); row-gap: var(--s-1); padding-block: var(--s-3); border-top: var(--hairline) solid var(--line); font-size: var(--t-note); color: var(--ink-quiet); }
.foot-small a:not(.wordmark) { display: inline-flex; align-items: center; min-height: var(--target); }
.foot-small .wordmark { margin-right: 0; color: var(--ink); }
@media (max-width: 62.49rem) { .foot-cols { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } .foot-cols > :last-child { grid-column: 1 / -1; } } /* the short page links take less, so the seven channel icons stay on one row */
@media (max-width: 47.99rem) { .foot-cols { grid-template-columns: 1fr; } }

/* Reading pages: privacy, 404. The same lamp as the other inner pages, kept to the top of the page. */
.reading { position: relative; padding-block: calc(var(--nav-h) + var(--s-5)) 0; }
.reading::before { bottom: auto; height: 40rem; }
.reading .actions { margin-top: var(--s-4); }
/* Privacy: the text on the left, the page at a glance on the right (on a phone, right under the title). */
.facts { margin-bottom: var(--s-5); padding: var(--s-4); border: var(--hairline) solid var(--line); border-radius: var(--r-tile); background: var(--surface); }
.reading .facts ul { display: grid; gap: var(--s-3); max-width: none; padding: 0; list-style: none; }
.reading .facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s-2); margin: 0; font-size: var(--t-lead); font-weight: var(--w-strong); line-height: var(--lead-title); }
.facts .feature-ico { margin-bottom: 0; }
@media (min-width: 62.5rem) {
  .reading-split .wrap { display: grid; grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); column-gap: var(--s-5); align-items: start; }
  .reading-split h1 { grid-column: 1 / -1; }
  .reading-split .facts { grid-column: 2; grid-row: 2; position: sticky; top: var(--stick); justify-self: end; width: min(100%, 26rem); margin-bottom: 0; }
  .reading-split .reading-body { grid-column: 1; grid-row: 2; }
}
.reading h1 { margin-bottom: var(--s-5); font-size: var(--t-heading); line-height: var(--lead-display); letter-spacing: var(--track-heading); }
.reading h2 { margin-top: var(--s-5); margin-bottom: var(--s-2); font-size: var(--t-lead); }
.reading p, .reading ul { max-width: var(--measure); }
.reading p + p, .reading ul + p { margin-top: var(--s-2); }
.reading ul { padding-left: var(--s-3); }
.reading li + li { margin-top: var(--s-2); }
.reading strong { font-weight: var(--w-strong); }
.reading .note { margin-bottom: var(--s-2); color: var(--ink-quiet); font-size: var(--t-note); }

/* Co děláme (/services/, 2026-11-24): the services as a list on the left, one service open on the right, the finished
   work under it. The list is a set of links to the panels, so without JS it is a contents list and every panel shows;
   site.js then shows one at a time ([data-offer]) and marks its link with aria-current. Pentagram, Webflow and
   Instrument put category filters above a grid of work; here the list is the filter and the price sits beside each name. */
.offer { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); align-items: start; gap: var(--s-5); }
.offer-nav { position: sticky; top: var(--stick); display: grid; gap: var(--s-4); }
.offer-nav h2 { margin-bottom: var(--s-1); font-size: var(--t-note); font-weight: var(--w-strong); color: var(--ink-quiet); }
.offer-nav ul { display: grid; margin: 0; padding: 0; list-style: none; border-top: var(--hairline) solid var(--line); }
.offer-nav a {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); min-height: var(--target); padding: 0.7rem var(--s-2);
  border-bottom: var(--hairline) solid var(--line); font-weight: var(--w-strong); text-decoration: none;
  transition: background-color var(--hover) var(--ease), box-shadow var(--hover) var(--ease);
}
.offer-nav small { font-size: var(--t-note); font-weight: var(--w-body); color: var(--ink-quiet); white-space: nowrap; }
.offer-nav a[aria-current] { background: var(--surface); box-shadow: inset calc(var(--control-border) * 2) 0 0 var(--accent); }
@media (hover: hover) { .offer-nav a:hover { background: var(--surface); } }
.offer-panels { display: grid; gap: var(--s-4); min-width: 0; }
.offer-panel { scroll-margin-top: var(--stick); }
.offer-panel[hidden] { display: none; } /* .svc is a flex box, which would outrank the attribute */
.offer-panel .svc-body { gap: var(--s-3); }
.offer-group { font-size: var(--t-note); font-weight: var(--w-strong); color: var(--accent); }
.offer-panel .offer-lead { max-width: var(--measure); font-size: var(--t-lead); text-wrap: pretty; }
.offer-panel h3 { margin-bottom: var(--s-1); font-size: var(--t-body); font-weight: var(--w-strong); }
.offer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); padding-top: var(--s-3); border-top: var(--hairline) solid var(--line); }
.offer-cols .pack-list { margin: 0 0 var(--s-2); }
.offer-price { display: grid; align-content: start; gap: var(--s-2); padding: var(--s-3); border: var(--hairline) solid var(--line); border-radius: var(--r-tile); background: var(--ground); }
.offer-price h3 { margin: 0; }
.offer-sums { display: grid; margin: 0; }
.offer-sums div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--s-2); padding-block: 0.5rem; border-bottom: var(--hairline) solid var(--line); }
.offer-sums dt { color: var(--ink-quiet); }
.offer-sums dd { margin: 0; font-size: var(--t-lead); font-weight: var(--w-strong); font-variant-numeric: tabular-nums; }
.offer-panel .offer-word { font-size: var(--t-lead); font-weight: var(--w-strong); color: var(--ink); }
.offer-go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); }
.tiers { width: 100%; border-collapse: collapse; font-size: var(--t-note); }
.tiers th, .tiers td { padding: 0.5rem 0; border-bottom: var(--hairline) solid var(--line); text-align: left; vertical-align: top; font-weight: var(--w-body); }
.tiers thead th { color: var(--ink-quiet); }
.tiers :is(td, thead th:not(:first-child)) { padding-left: var(--s-2); text-align: right; white-space: nowrap; }
.tiers td { font-weight: var(--w-strong); font-variant-numeric: tabular-nums; }
.offer-works { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.offer-works a { background: var(--ground); }
.cases { margin-top: var(--s-5); }
#prace { scroll-margin-top: var(--stick); }
@media (max-width: 62.49rem) {
  .offer { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  /* Phones and tablets: the list turns into one row of names that scrolls sideways and stays under the bar. */
  .offer-nav { top: calc(var(--nav-h) - var(--s-2)); z-index: 5; display: flex; gap: 0.4rem; margin-inline: calc(var(--gutter) * -1); padding: var(--s-1) var(--gutter); overflow-x: auto; background: var(--ground); border-bottom: var(--hairline) solid var(--line); scrollbar-width: none; }
  .offer-nav div, .offer-nav ul { display: contents; }
  .offer-nav h2, .offer-nav small { display: none; }
  .offer-nav a { flex: none; align-items: center; padding: 0 var(--s-2); border: var(--control-border) solid var(--ink-quiet); border-radius: var(--r-control); white-space: nowrap; }
  .offer-nav a[aria-current] { border-color: var(--accent-fill); background: var(--accent-fill); color: var(--on-accent); box-shadow: none; }
  .offer-panel { scroll-margin-top: calc(var(--stick) + var(--s-5)); }
  .offer-cols, .offer-works { grid-template-columns: minmax(0, 1fr); }
}

/* The chatbot shown working: a scripted talk with the demo garden firm. Without JS the whole talk reads top to bottom. */
.chat { display: grid; gap: var(--s-2); max-width: 32rem; padding: var(--s-3); border: var(--hairline) solid var(--line); border-radius: var(--r-tile); background: var(--ground); }
.chat-head { display: grid; }
.chat-head b { font-weight: var(--w-strong); color: var(--ink); }
.chat-head span { font-size: var(--t-note); }
.chat-log { display: grid; align-content: start; gap: 0.5rem; max-height: 17rem; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.chat-log li { max-width: 85%; padding: 0.6rem 0.9rem; border-radius: var(--r-tile); text-wrap: pretty; }
.chat-bot { justify-self: start; border: var(--hairline) solid var(--line); background: var(--surface); }
.chat-me { justify-self: end; background: var(--accent-fill); color: var(--on-accent); }
.chat-asks { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chat-asks[hidden] { display: none; }
.chat-asks button { min-height: var(--target); padding: 0 0.9rem; border: var(--control-border) solid var(--ink-quiet); border-radius: var(--r-control); background: transparent; color: var(--ink); font: inherit; font-size: var(--t-note); cursor: pointer; transition: border-color var(--hover) var(--ease); }
.chat-asks button:active { transform: scale(0.97); }
@media (hover: hover) { .chat-asks button:hover { border-color: var(--ink); } }
@media (prefers-reduced-motion: no-preference) { .chat.is-live .chat-log li { animation: chat-in var(--hover) var(--ease); } }
@keyframes chat-in { from { opacity: 0; translate: 0 0.4rem; } }

/* The e-mail helper as a picture: three sorted messages, two with a draft waiting. Decorative. */
.mailbox { max-width: 32rem; overflow: hidden; border: var(--hairline) solid var(--line); border-radius: var(--r-tile); background: var(--ground); }
.svc-body .mailbox p { padding: 0.6rem var(--s-2); border-bottom: var(--hairline) solid var(--line); font-size: var(--t-note); }
.mailbox ul { margin: 0; padding: 0; list-style: none; }
.mailbox li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem var(--s-2); padding: 0.7rem var(--s-2); border-bottom: var(--hairline) solid var(--line); }
.mailbox li:last-child { border-bottom: 0; }
.mailbox b { flex: 1 1 12rem; font-weight: var(--w-strong); }
.mail-tag { padding: 0.15rem 0.6rem; border-radius: var(--r-control); background: var(--accent-soft); font-size: var(--t-note); color: var(--accent); }
.mail-draft { flex-basis: 100%; font-size: var(--t-note); color: var(--success); }
.mail-draft::before { content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.4em; background: currentColor; clip-path: var(--tick); }

/* Contact (2026-11-24, owner: "ours looks terrible"): the e-mail and phone as large plain text under the title, then
   the form with the topic as chips to press (Linear, Vercel, Framer and Instrument pick the topic by a card, none by a
   select), name and e-mail side by side. What happens next stays beside the form. */
.contact-direct { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin-top: var(--s-4); padding: 0; list-style: none; }
.contact-direct a { display: grid; gap: 0.2rem; min-height: var(--target); text-decoration: none; }
.contact-direct span { display: flex; align-items: center; gap: 0.4rem; font-size: var(--t-note); color: var(--ink-quiet); }
.contact-direct .ico { width: 1rem; height: 1rem; }
.contact-direct b { font-size: var(--t-title); font-weight: var(--w-strong); line-height: var(--lead-title); letter-spacing: var(--track-title); overflow-wrap: anywhere; text-decoration: underline; text-decoration-thickness: var(--hairline); text-underline-offset: 0.2em; text-decoration-color: var(--ink-quiet); }
@media (hover: hover) { .contact-direct a:hover b { text-decoration-color: var(--ink); } }
.topic { min-width: 0; margin: 0; padding: 0; border: 0; }
.topic legend { margin-bottom: 0.5rem; padding: 0; font-weight: var(--w-strong); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.topic-chips label { position: relative; display: inline-flex; }
.topic-chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.topic-chips span { display: inline-flex; align-items: center; min-height: var(--target); padding: 0 1rem; border: var(--control-border) solid var(--ink-quiet); border-radius: var(--r-control); background: var(--ground); transition: border-color var(--hover) var(--ease), background-color var(--hover) var(--ease), color var(--hover) var(--ease); }
.topic-chips input:checked + span { border-color: var(--accent-fill); background: var(--accent-fill); color: var(--on-accent); } /* ground on ink: 15.05 / 17.06 */
.topic-chips input:focus-visible + span { outline: var(--focus); outline-offset: var(--focus-gap); }
@media (hover: hover) { .topic-chips label:hover span { border-color: var(--ink); } }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (max-width: 47.99rem) { .field-pair { grid-template-columns: minmax(0, 1fr); } }
.offer-cols:has(.tiers) { grid-template-columns: minmax(0, 1fr); } /* the chatbot's three sizes need the full width */

/* Co děláme, second pass (2026-11-24, owner: "let it rotate by itself", "luxury", "let me jump between the works").
   The services change by themselves every --flow-step while their start is on screen, a line filling under the
   current name; a pointer or focus on the panel holds it, a picked name or the button stops it, and reduced motion
   never starts it. The works show one at a time too: 20 of them would be 20 screens of scrolling. */
.offer-nav a { position: relative; }
.offer.is-auto .offer-nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 calc(var(--hairline) * -1); height: calc(var(--control-border) * 1.5); background: var(--accent); transform-origin: left; animation: flow-fill var(--flow-step) linear both; }
.offer-auto { justify-self: start; min-height: var(--target); padding: 0; border: 0; background: none; color: var(--ink-quiet); font: inherit; font-size: var(--t-note); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.offer-auto[hidden] { display: none; }
@media (hover: hover) { .offer-auto:hover { color: var(--ink); } }
.offer-panel .svc-body { padding: var(--s-5) var(--s-4) var(--s-4); }
.offer-panel h2 { font-size: var(--t-heading); line-height: var(--lead-display); letter-spacing: var(--track-heading); }
.offer-price { padding: var(--s-4) var(--s-3) var(--s-3); border-top-color: var(--accent); }
.offer-sums div { display: grid; justify-content: start; gap: 0; padding-block: var(--s-2); }
.offer-sums div:first-child { padding-top: 0; }
.offer-sums dt { font-size: var(--t-note); }
.offer-sums dd { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); }
.offer-panel .offer-word { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); }
.offer-go .button { flex: 1 1 auto; justify-content: center; }
@media (max-width: 62.49rem) { .offer-auto { flex: none; align-self: center; padding-inline: var(--s-1); white-space: nowrap; } .offer.is-auto .offer-nav a[aria-current]::after { inset: auto 0 0; } }

.case { scroll-margin-top: var(--stick); }
.case[hidden] { display: none; }
.cases.is-live .case { padding-top: 0; }
.work-index a[aria-current] { border-color: var(--accent); }
.case-pager { display: flex; gap: 0.4rem; }
.case-pager[hidden] { display: none; }
.case-pager button { width: var(--target); height: var(--target); border: var(--control-border) solid var(--ink-quiet); border-radius: var(--r-control); background: transparent; color: var(--ink); font: inherit; cursor: pointer; transition: border-color var(--hover) var(--ease); }
.case-pager button:active { transform: scale(0.97); }
@media (hover: hover) { .case-pager button:hover { border-color: var(--ink); } }

/* The second colour in use, and the package cards as a comparison (2026-11-24). To take the colour back out: delete
   this block and the --tint tokens. */
.pack, .offer-panel, .form-card, .cost { background-image: linear-gradient(to bottom, var(--tint-soft), transparent 45%); }
.pack { background-image: linear-gradient(to bottom, var(--tint-soft), transparent 60%); }
.pack-firm { background-image: linear-gradient(to bottom, var(--fade-gold), transparent 60%); }
.pack-shop { background-image: linear-gradient(to bottom, var(--fade-wine), transparent 60%); }
.pack-list li::before { background: var(--tint); }
.work-index a[aria-current] { border-color: var(--tint); }
/* A row the package lacks: a cross (two bars cut from one square) in the danger colour, the words quieter. */
.pack-rows .is-out { color: var(--ink-quiet); }
.pack-rows .is-out::before { background: var(--danger); clip-path: polygon(12% 0, 50% 38%, 88% 0, 100% 12%, 62% 50%, 100% 88%, 88% 100%, 50% 62%, 12% 100%, 0 88%, 38% 50%, 0 12%); }

/* One package's page (/packages/<id>/, rebuilt 2026-11-24 after Stripe, Linear, Vercel, Framer, Webflow and Shopify's
   pricing pages): the introduction and the sections in one column, the summary card with the price and both buttons
   in a second one that stays in view. Below 62.5rem the card sits right under the introduction. */
.pack-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); grid-template-areas: "intro sum" "body sum"; column-gap: var(--s-5); padding-top: calc(var(--nav-h) + var(--s-4)); }
.pack-intro { grid-area: intro; }
.pack-body { grid-area: body; }
.pack-sum { grid-area: sum; align-self: start; position: sticky; top: var(--stick); gap: var(--s-2); }
.pack-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: var(--s-4); }
.pack-switch a { display: inline-flex; align-items: center; min-height: var(--target); padding: 0 var(--s-2); border: var(--control-border) solid var(--ink-quiet); border-radius: var(--r-control); font-weight: var(--w-strong); text-decoration: none; transition: border-color var(--hover) var(--ease); }
.pack-switch a[aria-current] { border-color: var(--accent-fill); background: var(--accent-fill); color: var(--on-accent); }
.pack-switch .pack-switch-all { margin-left: auto; padding: 0; border: 0; text-decoration: underline; text-underline-offset: 0.2em; }
@media (hover: hover) { .pack-switch a:hover { border-color: var(--ink); } }
.pack-intro h1 { font-size: var(--t-display); line-height: var(--lead-display); letter-spacing: var(--track-display); view-transition-name: title; }
.pack-intro .pack-for { min-height: 0; margin-top: var(--s-2); font-weight: var(--w-strong); color: var(--accent); }
.pack-lead { max-width: var(--measure); margin-top: var(--s-2); font-size: var(--t-lead); color: var(--ink-quiet); text-wrap: pretty; }
.pack-jump { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin: var(--s-4) 0 0; padding: var(--s-2) 0 0; border-top: var(--hairline) solid var(--line); list-style: none; }
.pack-jump a { display: inline-flex; align-items: center; min-height: var(--target); color: var(--ink-quiet); text-underline-offset: 0.2em; }
@media (hover: hover) { .pack-jump a:hover { color: var(--ink); } }
.pack-sum-name { font-size: var(--t-lead); font-weight: var(--w-strong); }
.pack-sum .pack-price { margin-top: 0; }
.pack-sum .offer-sums div:first-child { padding-top: var(--s-2); }
.pack-sum .offer-sums dd { font-size: var(--t-lead); }
.pack-sum .button { margin-top: 0; }
.pack-sum .button:first-of-type { margin-top: var(--s-2); }
.pack-save { margin-left: 0.4em; font-weight: var(--w-strong); color: var(--accent); white-space: nowrap; }
.pack-body > section { padding-top: var(--s-5); margin-top: var(--s-5); border-top: var(--hairline) solid var(--line); }
.pack-body h2 { margin-bottom: var(--s-3); font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); scroll-margin-top: var(--stick); }
.pack-note { max-width: var(--measure); margin-bottom: var(--s-3); color: var(--ink-quiet); text-wrap: pretty; }
.pack-has { display: grid; margin: 0; padding: 0; list-style: none; }
.pack-has li { display: grid; grid-template-columns: auto minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-1) var(--s-2); align-items: baseline; padding-block: var(--s-2); border-bottom: var(--hairline) solid var(--line); }
.pack-has li:first-child { border-top: var(--hairline) solid var(--line); }
.pack-has li::before { content: ""; width: 0.8em; height: 0.8em; background: var(--tint); clip-path: var(--tick); }
.pack-has b { font-weight: var(--w-strong); }
.pack-has span { color: var(--ink-quiet); text-wrap: pretty; }
.pack-body .demo-shots { margin-top: 0; }
.pack-body .costs, .pack-body .steps, .pack-body .pack-works { margin-top: 0; }
.pack-body .cost { padding: var(--s-3); }
.pack-body .cost b { font-size: var(--t-lead); }
.pack-body .pack-list { margin-top: 0; }
@media (max-width: 62.49rem) {
  .pack-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "sum" "body"; }
  .pack-sum { position: static; margin-top: var(--s-4); }
  .pack-switch .pack-switch-all { margin-left: 0; flex-basis: 100%; }
  .pack-has li { grid-template-columns: auto minmax(0, 1fr); }
  .pack-has span { grid-column: 2; }
}

/* Test webu, the automatic check (2026-11-24): the address field in the page head, then the result: a ring with the
   score in the verdict's colour, what to improve as rows that open, what is fine folded away. */
.scan { margin-top: var(--s-4); max-width: 44rem; }
.scan label { display: block; margin-bottom: 0.4rem; font-weight: var(--w-strong); }
.scan-row { display: flex; gap: var(--s-1); }
.scan-row input { flex: 1 1 auto; min-width: 0; min-height: 3.5rem; padding: 0 1.1rem; border: var(--control-border) solid var(--ink-quiet); border-radius: var(--r-control); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-lead); }
.scan-row input::placeholder { color: var(--ink-quiet); }
.scan-row .button { flex: none; }
.scan-field.has-error input { border-color: var(--danger); }
.page-head .scan .private, .page-head .scan .field-error { max-width: none; margin-top: var(--s-1); font-size: var(--t-note); }
.page-head .scan .field-error { color: var(--danger); }
.scan-steps { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin: var(--s-2) 0 0; padding: 0; list-style: none; font-size: var(--t-note); color: var(--ink-quiet); }
.scan-steps[hidden] { display: none; }
.scan-steps li::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.5em; border-radius: var(--r-pill); background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .scan-steps li { opacity: 0.25; animation: scan-step 5s var(--ease) infinite; }
  .scan-steps li:nth-child(2) { animation-delay: 1s; } .scan-steps li:nth-child(3) { animation-delay: 2s; }
  .scan-steps li:nth-child(4) { animation-delay: 3s; } .scan-steps li:nth-child(5) { animation-delay: 4s; }
  .ring-value { animation: ring-fill 1.2s var(--ease) both; }
}
@keyframes scan-step { 0%, 100% { opacity: 0.25; } 10%, 30% { opacity: 1; } 45% { opacity: 0.25; } }
@keyframes ring-fill { from { stroke-dasharray: 0 340; } }
.scan-result { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-5); align-items: start; margin-bottom: var(--section); padding-block: var(--s-5); border-block: var(--hairline) solid var(--line); scroll-margin-top: var(--stick); }
.scan-result:focus-visible { outline: var(--focus); outline-offset: var(--focus-gap); }
.scan-result[data-verdict="success"] { --verdict: var(--success); }
.scan-result[data-verdict="warning"] { --verdict: var(--warning); }
.scan-result[data-verdict="danger"] { --verdict: var(--danger); }
.scan-score { position: sticky; top: var(--stick); display: grid; gap: var(--s-2); justify-items: start; }
.ring { position: relative; width: 11rem; height: 11rem; margin-bottom: var(--s-2); }
.ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ring circle { fill: none; stroke-width: 7; }
.ring-track { stroke: var(--line); }
.ring-value { stroke: var(--verdict); stroke-linecap: round; }
.ring p { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.ring b { font-size: var(--t-numeral); font-weight: var(--w-strong); line-height: 1; letter-spacing: var(--track-display); font-variant-numeric: tabular-nums; }
.ring span { max-width: 6rem; font-size: var(--t-note); color: var(--ink-quiet); }
.scan-score h2 { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); color: var(--verdict); }
.scan-score > p { max-width: var(--measure); color: var(--ink-quiet); text-wrap: pretty; }
.scan-score .tags { margin-top: 0; }
.scan-age { font-size: var(--t-note); }
.scan-score .actions { margin-top: var(--s-2); }
.scan-list h3 { margin-bottom: var(--s-2); font-size: var(--t-lead); font-weight: var(--w-strong); }
.scan-item, .scan-good { border-bottom: var(--hairline) solid var(--line); }
.scan-item:first-of-type { border-top: var(--hairline) solid var(--line); }
.scan-item summary, .scan-good summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: baseline; gap: var(--s-2); min-height: var(--target); padding-block: var(--s-2); cursor: pointer; list-style: none; }
.scan-item summary::-webkit-details-marker, .scan-good summary::-webkit-details-marker { display: none; }
.scan-item summary::before { content: ""; width: 0.8em; height: 0.8em; background: var(--danger); clip-path: polygon(12% 0, 50% 38%, 88% 0, 100% 12%, 62% 50%, 100% 88%, 88% 100%, 50% 62%, 12% 100%, 0 88%, 38% 50%, 0 12%); }
.scan-good summary::before { content: ""; width: 0.8em; height: 0.8em; background: var(--tint); clip-path: var(--tick); }
.scan-item summary::after, .scan-good summary::after { content: "+"; grid-column: 4; color: var(--ink-quiet); }
.scan-item[open] summary::after, .scan-good[open] summary::after { content: "−"; }
.scan-item b { font-weight: var(--w-strong); }
.scan-item small { font-size: var(--t-note); color: var(--ink-quiet); text-align: right; }
.scan-item p { max-width: var(--measure); padding: 0 0 var(--s-2) calc(0.8em + var(--s-2)); color: var(--ink-quiet); text-wrap: pretty; }
.scan-good { margin-top: var(--s-4); border-top: var(--hairline) solid var(--line); }
.scan-good summary { font-weight: var(--w-strong); }
.scan-good .pack-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 var(--s-3) calc(0.8em + var(--s-2)); }
.scan-none, .scan-a11y { color: var(--ink-quiet); }
.scan-a11y { margin-top: var(--s-3); font-size: var(--t-note); }
.check-own { margin-bottom: var(--s-4); }
.check-own h2 { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); }
.check-own p { margin-top: var(--s-1); color: var(--ink-quiet); }
@media (max-width: 62.49rem) { .scan-result { grid-template-columns: minmax(0, 1fr); } .scan-score { position: static; } }
@media (max-width: 47.99rem) { .scan-row { flex-direction: column; } .scan-good .pack-list { grid-template-columns: minmax(0, 1fr); } }

/* Ceník (/pricing/, 2026-11-24): every price in four groups, each a ruled table: the service and one line about it, the
   one-off price, the monthly one. Numbers in tabular figures, right-aligned, so they read down a column. Below 48rem a
   row stacks and each price says its column's name. The header row's second action (Ceník beside Napsat nám) is here too. */
.head-actions { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.prices { display: grid; gap: var(--s-5); }
.price-group { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: var(--s-3) var(--s-5); align-items: start; padding-top: var(--s-4); border-top: var(--hairline) solid var(--line); }
.price-head { position: sticky; top: var(--stick); }
.price-head h2 { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); scroll-margin-top: var(--stick); }
.price-head p { margin-top: var(--s-2); font-size: var(--t-note); color: var(--ink-quiet); text-wrap: pretty; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: var(--s-2) 0; border-bottom: var(--hairline) solid var(--line); text-align: left; vertical-align: top; font-weight: var(--w-body); }
.price-table thead th { padding-top: 0; font-size: var(--t-note); color: var(--ink-quiet); }
.price-table td, .price-table thead th:not(:first-child) { width: 24%; padding-left: var(--s-2); text-align: right; }
.price-table td { font-size: var(--t-lead); font-weight: var(--w-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table tbody th a { font-size: var(--t-lead); font-weight: var(--w-strong); text-underline-offset: 0.2em; }
.price-table small { display: block; margin-top: 0.2rem; font-size: var(--t-note); font-weight: var(--w-body); color: var(--ink-quiet); white-space: normal; }
.price-table .price-word, .price-table .price-none { font-size: var(--t-body); font-weight: var(--w-body); color: var(--ink-quiet); white-space: normal; }
.price-table .price-word { width: 48%; }
.price-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4); border: var(--hairline) solid var(--line); border-radius: var(--r-card); background: var(--surface); background-image: linear-gradient(to bottom, var(--fade-gold), transparent 70%); }
.price-end h2 { font-size: var(--t-title); line-height: var(--lead-title); letter-spacing: var(--track-title); }
.price-end p:not(.actions) { max-width: var(--measure); margin-top: var(--s-1); color: var(--ink-quiet); }
@media (max-width: 62.49rem) { .price-group { grid-template-columns: minmax(0, 1fr); } .price-head { position: static; } }
@media (max-width: 47.99rem) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .price-table, .price-table tbody { display: block; }
  .price-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-2); padding-block: var(--s-2); border-bottom: var(--hairline) solid var(--line); }
  .price-table tbody :is(th, td) { width: auto; padding: 0; border: 0; text-align: left; }
  .price-table tbody th { grid-column: 1 / -1; margin-bottom: var(--s-1); }
  .price-table td { font-size: var(--t-body); white-space: normal; }
  .price-table td[data-label]::before { content: attr(data-label); display: block; font-size: var(--t-note); font-weight: var(--w-body); color: var(--ink-quiet); }
  .price-table .price-word { grid-column: 1 / -1; width: auto; }
}

/* The demo on a package page (2026-11-24, owner: "the pictures are small, make the section better to look at"): one
   picture the width of the column in a browser frame, where two sat side by side at half the size. Web / Administrace
   are two radios; :has() shows the pane of the checked one, so nothing here needs script. Without :has() both show. */
.demo-view { margin-bottom: var(--s-3); border: var(--hairline) solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-float); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-1) var(--s-2); border-bottom: var(--hairline) solid var(--line); }
.demo-dots { flex: none; width: 2.6rem; height: 0.6rem; background: radial-gradient(circle at 0.3rem 50%, var(--line) 0.28rem, transparent 0.3rem) 0 0 / 1rem 100% repeat-x; }
.demo-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-note); color: var(--ink-quiet); }
.demo-tabs { display: flex; flex: none; gap: 0.25rem; margin-left: auto; }
.demo-tabs label { display: inline-flex; align-items: center; min-height: var(--target); padding: 0 var(--s-2); border: var(--control-border) solid transparent; border-radius: var(--r-control); font-size: var(--t-note); font-weight: var(--w-strong); cursor: pointer; }
.demo-tabs label:hover { border-color: var(--ink-quiet); }
.demo-view:has(#demo-web:checked) label[for="demo-web"], .demo-view:has(#demo-admin:checked) label[for="demo-admin"] { border-color: var(--accent-fill); background: var(--accent-fill); color: var(--on-accent); }
.demo-view:has(#demo-web:focus-visible) label[for="demo-web"], .demo-view:has(#demo-admin:focus-visible) label[for="demo-admin"] { outline: var(--focus); outline-offset: var(--focus-gap); }
.demo-view:has(#demo-web:checked) .demo-pane-admin, .demo-view:has(#demo-admin:checked) .demo-pane-web { display: none; }
.demo-view .shot { display: block; border: 0; border-radius: 0; box-shadow: none; }
.demo-view .shot img { width: 100%; height: auto; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .demo-view .shot:hover img { transform: scale(1.015); } }
@media (max-width: 47.99rem) { .demo-dots { display: none; } .demo-url { display: none; } .demo-tabs { margin-left: 0; } }
