/* Mini-web formion.art – prezentace (AD-770 M1). Vzhled podle prototypu 5 (apps/prototype/mini-web-prezentace):
   měřená mřížka s vlasovými linkami, Archivo a JetBrains Mono, barvy Color Book V2 z e-shopu.
   Písma u nás (SIL OFL 1.1, fonts/OFL-*.txt), žádný požadavek na třetí strany (AD-650).
   Kontrast WCAG AA v obou motivech: text v akcentní barvě používá --accent-text. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/archivo-variable-latin-ext.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: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/archivo-variable-latin.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-variable-latin-ext.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-variable-latin.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 {
  --paper: #f2f0e6;
  --paper-raised: #f8f6ee;
  --paper-sink: #e7e3d5;
  --ink: #10152b;
  --ink-soft: #2e3450;
  --ink-muted: #565d72;
  --ink-faint: #9a9eaa; /* AD-946: web-app app.css:14 (titulek a nadpisy postranního menu) */
  --line: rgba(16, 21, 43, 0.14);
  --line-soft: rgba(16, 21, 43, 0.06);
  --accent: #b87333;
  --accent-text: #8c5220;
  --night: #1a1a1a;
  --night-ink: #ece8df;
  --night-muted: #a7a398;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1a1a1a; --paper-raised: #232422; --paper-sink: #121212;
    --ink: #ece8df; --ink-soft: #c4c0b5; --ink-muted: #8d8a80; --ink-faint: #55564f;
    --line: rgba(236, 232, 223, 0.14); --line-soft: rgba(236, 232, 223, 0.06);
    --accent: #b8860b; --accent-text: #b8860b; --night: #121212;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1a1a1a; --paper-raised: #232422; --paper-sink: #121212;
  --ink: #ece8df; --ink-soft: #c4c0b5; --ink-muted: #8d8a80; --ink-faint: #55564f;
  --line: rgba(236, 232, 223, 0.14); --line-soft: rgba(236, 232, 223, 0.06);
  --accent: #b8860b; --accent-text: #b8860b; --night: #121212;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; scroll-padding-bottom: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; /* AD-946: jako body web-appu app.css:56 (dřív 1.55) */ overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
.gutter { padding-inline: clamp(16px, 3vw, 40px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 14px; background: var(--ink); color: var(--paper); font: 600 0.8rem/1 var(--font); text-decoration: none; }
.skip-link:focus { top: 12px; }
.chip { display: inline-block; margin: 0; padding: 5px 10px; border: 1px solid var(--line); font: 500 0.68rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; }
h3 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 14px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 0.75rem/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:hover { border-color: var(--accent); }
/* Odkazy do e-shopu, když není dostupný (připomínka vlastníka 18. 10., bod 4): bez href, tlumené a neklikatelné.
   Neaktivní prvky nemají požadavek na kontrast (WCAG 1.4.3); proč nejdou otevřít, říká pruh pod hlavičkou. */
a[data-shop][aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* Hlavička – stejná jako na e-shopu shop.formion.art (AD-946, #829): bloky pravidel převzaté z web-appu
   resources/css/app.css (.nav, .brand, .nav-links, .nav-tools, .nav-hamburger, .nav-burger), u každého řádky zdroje.
   Mini-web navíc (označeno „mini-web“): logo z vlastní domény, line-height 1.5 a odkazy bez podtržení (web-app je má
   v body a v a {}), výběr jazyka bez inline stylu (CSP), nástroje vpravo i na telefonu (bez košíku a účtu, R4).
   Tmavý režim: tokeny --paper, --ink… z :root (prefers-color-scheme), hodnoty jako web-app. */
/* z web-appu app.css:74-91 */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: var(--paper); /* mini-web: záloha bez color-mix */
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a { text-decoration: none; } /* mini-web: web-app app.css:68 */
/* z web-appu app.css:92-98 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
/* z web-appu app.css:103-113 (logo z vlastní domény, ne /storage/brand) */
.brand-logo {
  display: inline-block;
  width: 26px;
  height: 26px;
  background-color: currentColor;
  -webkit-mask: url('/assets/img/formion-logo.svg') center / contain no-repeat;
          mask: url('/assets/img/formion-logo.svg') center / contain no-repeat;
  flex: 0 0 auto;
}
/* z web-appu app.css:144-150 */
.nav-links { display: flex; gap: 32px; justify-content: center; }
.nav-links a { color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ink);
}
/* z web-appu app.css:151 a 157 */
.nav-tools { display: inline-flex; align-items: center; gap: 18px; color: var(--ink-soft); }
.nav-tools .lang { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
/* mini-web: inline styl výběru jazyka z app.blade.php:82 jako pravidlo (CSP bez inline stylů) */
.nav-tools .lang select { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.nav-tools .lang select:hover { color: var(--ink); }
/* mini-web: bez JavaScriptu odkazy na jazyky (<noscript>) */
.lang-links { display: inline-flex; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
.lang-links a[aria-current="page"] { color: var(--ink); }
/* z web-appu app.css:182-184 */
.nav-hamburger { position: relative; background: none; border: 1px solid var(--line); color: var(--ink-soft); width: 32px; height: 32px; display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.nav-hamburger:hover { color: var(--ink); border-color: var(--ink); }
.nav-hamburger svg { width: 16px; height: 16px; }
/* z web-appu app.css:243 */
.nav-burger { display: none; }
/* z web-appu app.css:828-834 (jen hlavička; patička v bloku Patička) */
@media (max-width: 900px) {
  .nav { grid-template-columns: auto auto; gap: 12px; padding: 14px 18px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-grid; }
  .nav-tools { justify-self: end; } /* mini-web: bez košíku a účtu by nástroje začínaly uprostřed (R4) */
}
/* mini-web: výška lepivé hlavičky pro ukotvený příběh výroby (ten se zastaví pod ní, ne za ní). Desktop 18 + 29 (odkaz
   menu s odsazením 4 px) + 18 + 1 px linka; do 900 px 14 + 32 (tlačítko menu) + 14 + 1 px. */
:root { --nav-h: 66px; }
@media (max-width: 900px) { :root { --nav-h: 61px; } }

/* Postranní menu na telefonu – stejné jako na e-shopu (AD-946 úkol 3, nahrazuje rozbalovací panel AD-945): pravidla
   z web-appu app.css:244-298 (bez části účtu .nav-drawer__account a odkazu přihlášení, mini-web účet nemá, R4).
   Otevírá ho tlačítko .nav-burger (do 900 px, viz výš) přes assets/js/presentation.js. */
/* z web-appu app.css:244-263 */
.nav-drawer { position: fixed; inset: 0; z-index: 1000; }
.nav-drawer[hidden] { display: none; }
.nav-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 20px 28px;
  background: var(--paper-raised);
  border-left: 1px solid var(--line);
  box-shadow: -14px 0 40px rgba(0, 0, 0, 0.18);
  animation: nav-drawer-in 0.2s ease-out;
}
@keyframes nav-drawer-in { from { transform: translateX(100%); } to { transform: none; } }
/* z web-appu app.css:264-276 */
.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.nav-drawer__title, .nav-drawer .nav-heading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.nav-drawer__close { background: none; border: 1px solid var(--line); color: var(--ink-soft); width: 32px; height: 32px; display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.nav-drawer__close:hover { color: var(--ink); border-color: var(--ink); }
.nav-drawer__links { display: grid; gap: 2px; padding: 12px 0; }
.nav-drawer .nav-heading { padding: 14px 4px 4px; }
/* z web-appu app.css:277-292 */
.nav-drawer__links a {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-size: 16px;
  color: var(--ink-soft);
  padding: 12px 4px;
  cursor: pointer;
  text-decoration: none; /* mini-web: web-app app.css:68 */
}
.nav-drawer__links a:hover { color: var(--ink); background: var(--paper-sink); }
.nav-drawer__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
html.nav-drawer-open { overflow: hidden; }
/* z web-appu app.css:293-298 */
@media (min-width: 901px) {
  .nav-drawer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-drawer__panel { animation: none; }
}
/* mini-web: plovoucí ikona cookies by u otevřeného menu ležela pod pozadím (z-index 45). */
html.nav-drawer-open .cookie-fab { display: none; }
/* mini-web: bez JavaScriptu nejde postranní menu otevřít ani výběr jazyka přepnout – tlačítko i <select> jsou skryté,
   jazyk přepínají odkazy v <noscript> a navigace zůstává v patičce. Media feature scripting (ne třída nastavená skriptem):
   se skriptem je stav jasný od prvního vykreslení, hlavička se po načtení skriptu neposune. */
@media (scripting: none) {
  .nav-tools .lang, .nav-burger { display: none; }
}

/* Pruh: e-shop v údržbě nebo nedostupný (kap. 4.1, připomínka vlastníka 18. 10., bod 4); obal .shop-status je role=status */
.notice { padding-block: 10px; border-bottom: 1px solid var(--line); background: var(--paper-sink); color: var(--ink-soft); font: 400 0.8rem/1.4 var(--mono); letter-spacing: 0.04em; }

/* Úvod */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(36px, 7vw, 96px) clamp(36px, 6vw, 80px); align-items: center; }
.marks { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 0.72rem/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-muted); }
.claim { margin-top: 22px; font: italic 400 1.15rem/1.35 var(--font); color: var(--ink-muted); }
.hero h1 { margin-top: 8px; font-size: clamp(2.4rem, 5.4vw, 4.9rem); line-height: 0.98; letter-spacing: -0.035em; }
.hero h1 em { display: block; font-style: italic; font-weight: 400; color: var(--ink-muted); }
.hero h1 .h-rot { display: grid; }
.hero h1 .h-v { grid-area: 1 / 1; }
.hero h1 .h-v[aria-hidden="true"] { visibility: hidden; }
.hero h1 .w { display: inline-block; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease; transition-delay: calc(var(--i, 0) * 55ms); }
.hero h1 .h-v.is-in .w { opacity: 0; transform: translateY(0.42em); filter: blur(5px); }
.hero h1 .h-v.is-out .w { opacity: 0; transform: translateY(-0.32em); filter: blur(5px); }
.hero .lede { margin-top: 24px; max-width: 46ch; color: var(--ink-soft); font-size: 1.05rem; }
.ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.showcase { position: relative; width: 100%; aspect-ratio: 1; max-height: 76vh; background: var(--paper-sink); border: 1px solid var(--line); overflow: hidden; }
.show-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.show-photo[hidden] { display: none; }
/* 3D ukázka (M2, assets/js/3d/hero.js): prolne se přes fotku, až je hotový první snímek. */
.show-view { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 0.6s ease; }
.show-view[hidden] { display: none; }
.showcase.is-3d .show-view { opacity: 1; }
.show-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.show-view canvas[hidden] { display: none; }
#heroSnap { pointer-events: none; }
.show-pause { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); background: var(--paper); background: color-mix(in srgb, var(--paper) 82%, transparent); color: var(--ink); cursor: pointer; opacity: 0.72; transition: opacity 0.2s ease; }
.show-pause:hover, .show-pause:focus-visible { opacity: 1; }
.show-pause:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.show-pause svg { width: 14px; height: 14px; fill: currentColor; }
.show-pause .i-play, .show-pause.is-paused .i-pause { display: none; }
.show-pause.is-paused .i-play { display: block; }
.show-pause[hidden] { display: none; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } .showcase { aspect-ratio: 4 / 3.4; } }

/* Objevování textů (kap. 4.4 bod 8): jen se skriptem a bez omezeného pohybu; bez skriptu je vše vidět hned. */
.js-rv .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-rv .rv.is-in { opacity: 1; transform: none; }
.js-rv .rv.d1 { transition-delay: 100ms; }
.js-rv .rv.d2 { transition-delay: 200ms; }
.js-rv .rv.d3 { transition-delay: 300ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 .w { transition: none; }
  .js-rv .rv { opacity: 1; transform: none; transition: none; }
  .show-view { transition: none; }
}

/* Myšlenka */
.idea { border-top: 1px solid var(--line); }
.idea-head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px 48px; padding-block: clamp(40px, 6vw, 80px); align-items: start; }
.idea-head h2 { margin-top: 18px; }
.idea-head > p { color: var(--ink-soft); font-size: 1.1rem; max-width: 56ch; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--line); }
.flow li { list-style: none; padding: 26px clamp(16px, 2vw, 28px) 34px; border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.flow li:last-child { border-right: 0; }
.flow .n { font: 400 0.7rem/1 var(--mono); color: var(--ink-muted); letter-spacing: 0.1em; }
.flow h3 { font-size: 1.6rem; }
.flow p { color: var(--ink-muted); font-size: 0.95rem; }
@media (max-width: 860px) {
  .idea-head { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:nth-child(2) { border-right: 0; }
  .flow li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Příběh výroby. Bez 3D (bez skriptu, bez WebGL 2, při chybě scény) číslovaný seznam kroků, čitelný
   i bez 3D (kap. 4.8). S 3D (.is-live, presentation.js) ukotvená scéna při posunu: text vlevo, scéna
   vpravo, na telefonu scéna nahoře. Přepíná se, jen když sekce ještě není vidět (bez posunu obsahu). */
.story { border-top: 1px solid var(--line); }
.story-pin { padding: clamp(40px, 6vw, 80px) clamp(16px, 3vw, 40px); }
.story-text { display: grid; gap: clamp(24px, 4vw, 40px); }
.story-stage, .skip[hidden] { display: none; }
.story-head { display: grid; gap: 16px; justify-items: start; max-width: 60ch; }
.story-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.story-intro { color: var(--ink-soft); font-size: 1.05rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.step { display: grid; gap: 12px; align-content: start; padding: 22px clamp(16px, 2vw, 24px) 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step .no { font: 500 0.7rem/1.4 var(--mono); letter-spacing: 0.12em; color: var(--accent-text); }
.step .soon { margin-left: 8px; padding: 2px 6px; border: 1px solid var(--line); color: var(--ink-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.step h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.step .txt { color: var(--ink-soft); max-width: 46ch; }
.step .meta { font: 400 0.75rem/1.4 var(--mono); color: var(--ink-muted); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.step .btn { justify-self: start; margin-top: 6px; }
.step .meter { height: 2px; max-width: 260px; background: var(--line); }
.step .meter span { display: block; height: 100%; width: 0; background: var(--accent); }

.story.is-live { height: calc(var(--steps, 7) * 100vh + 60vh); height: calc(var(--steps, 7) * 100svh + 60svh); }
.is-live .story-pin { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); padding: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.is-live .story-text { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding-block: clamp(22px, 5vh, 56px); padding-inline: clamp(16px, 3vw, 40px); border-right: 1px solid var(--line); }
.is-live .story-intro { max-width: 46ch; font-size: 0.95rem; }
.is-live .steps-wrap { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 18px; margin-top: 8px; }
.rail { position: relative; list-style: none; margin: 0; padding: 4px 0; max-height: 320px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.rail::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%; width: 1px; background: var(--line); }
.rail li { position: relative; width: 9px; height: 9px; border: 1px solid var(--ink-muted); border-radius: 50%; background: var(--paper); }
.rail li.done { background: var(--ink-muted); }
.rail li.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
.is-live .steps { display: block; position: relative; min-width: 0; border: 0; }
/* Neaktivní kroky jsou jen průhledné (čtečka obrazovky přečte všech sedm v pořadí); fokus krok ukáže. */
.is-live .step { position: absolute; top: 0; left: 0; right: 0; padding: 0; border: 0; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 0.35s ease, transform 0.35s ease; }
.is-live .step.is-active, .is-live .step:focus-within { opacity: 1; transform: none; pointer-events: auto; }
.is-live .step h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.skip { align-self: flex-start; padding-block: 8px; font: 400 0.72rem/1 var(--mono); color: var(--ink-muted); }
.is-live .story-stage { display: block; position: relative; min-width: 0; overflow: hidden; background: var(--paper-sink); }
.story-stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; }
.story-stage.is-ready canvas { opacity: 1; }
.labels { position: absolute; inset: 0; pointer-events: none; }
.label { position: absolute; left: 0; top: 0; padding: 4px 7px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 400 0.68rem/1 var(--mono); white-space: nowrap; opacity: 0; transform: translate(-50%, -140%); transition: opacity 0.25s; }
.label.is-on { opacity: 1; }
.stage-coords { position: absolute; right: 14px; bottom: 12px; font: 400 0.68rem/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-muted); }
@media (max-width: 860px) {
  .is-live .story-pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: calc(52vh - var(--nav-h)) minmax(0, 1fr); grid-template-rows: calc(52svh - var(--nav-h)) minmax(0, 1fr); } /* AD-946: scéna menší o lepivou hlavičku, text má místo jako dřív */
  .is-live .story-stage { order: -1; border-bottom: 1px solid var(--line); }
  .is-live .story-text { padding-block: 18px; gap: 10px; border-right: 0; }
  /* Nadpis sekce zůstane pro čtečky obrazovky, na telefonu se kvůli místu neukazuje. */
  .is-live .story-head { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .is-live .steps-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: 14px minmax(0, 1fr); gap: 14px; margin-top: 0; }
  .rail { flex-direction: row; width: 100%; max-height: none; padding: 0 4px; }
  .rail::before { top: 50%; bottom: auto; left: 6px; right: 6px; width: auto; height: 1px; }
  .is-live .step .txt { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .is-live .step, .label, .story-stage canvas { transition: none; }
}

/* Po výrobě */
.proof { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof div { padding: 26px clamp(16px, 2vw, 28px); border-right: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.proof div:last-of-type { border-right: 0; }
.proof strong { font-weight: 500; font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.02em; line-height: 1; }
.proof span { font: 400 0.68rem/1.45 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
@media (max-width: 860px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof div:nth-of-type(2) { border-right: 0; }
  .proof div:nth-of-type(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Kolekce */
.collection { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(40px, 6vw, 80px); align-items: start; }
.collection-text { display: grid; gap: 18px; align-content: start; justify-items: start; }
.collection-text p { color: var(--ink-soft); max-width: 46ch; }
.collection-text dl { margin: 6px 0 0; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; font-size: 0.92rem; border-top: 1px solid var(--line); padding-top: 14px; }
.collection-text dt { font: 400 0.68rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.collection-text dd { margin: 0; color: var(--ink-soft); }
.photos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.photos figure { margin: 0; display: grid; gap: 8px; }
.photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-sink); }
.photos figcaption { font: 400 0.68rem/1.4 var(--mono); color: var(--ink-muted); letter-spacing: 0.06em; }
@media (max-width: 860px) { .collection { grid-template-columns: minmax(0, 1fr); } }

/* Na míru: tmavá sekce s měděnými vrstevnicemi */
.bespoke { position: relative; background: var(--night); color: var(--night-ink); overflow: hidden; }
.bespoke-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; pointer-events: none; }
.bespoke-inner { position: relative; padding-block: clamp(56px, 9vw, 120px); display: grid; gap: 22px; justify-items: start; }
.bespoke .chip { color: var(--night-muted); border-color: rgba(236, 232, 223, 0.22); }
.bespoke h2 { max-width: 16ch; font-size: clamp(2.2rem, 6vw, 4.6rem); }
.bespoke p { max-width: 50ch; color: var(--night-muted); }
.bespoke .ctas { margin-top: 0; }
.bespoke .btn { background: var(--night-ink); color: #1a1a1a; border-color: var(--night-ink); }
.bespoke .btn.ghost { background: transparent; color: var(--night-ink); border-color: rgba(236, 232, 223, 0.35); }
.bespoke :focus-visible { outline-color: #d0a26a; }

/* Patička – stejná jako na e-shopu shop.formion.art (připomínka vlastníka 18. 10., bod 3). AD-946: hodnoty a třídy
   z web-appu resources/css/app.css:736-852 (řádky u pravidel): sloupce .foot-cols / .foot-col, právní lišta ve sloupcích
   .foot-legal-cols / .foot-legal-col, copyright .foot-widget-copyright, právní řádek .foot-base. Odchylky mini-webu jsou
   označené „mini-web“: značka .foot-brand (hodnoty .foot-widget-brand app.css:782-795), odkazy v seznamu <ul class="foot-list">,
   šířky a zarovnání sekcí z e-shopu se nepřebírají (CSP bez inline stylů, R7 = a). */
/* z web-appu app.css:736-746 */
.foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 60px; padding: 60px clamp(20px, 4vw, 56px) 28px; border-top: 1px solid var(--line); background: var(--paper); }
.foot p { margin: 0; }
/* z web-appu app.css:750 a 757-759 (výchozí 3 sloupce; minmax(0, …) = mini-web, dlouhé slovo nepřeteče na 360 px) */
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-cols--1 { grid-template-columns: minmax(0, 1fr); } /* mini-web: e-shop nabízí 2-4, cache AD-943 připouští 1-6 */
.foot-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.foot-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.foot-cols--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.foot-cols--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
/* z web-appu app.css:760-763 */
.foot-col { display: flex; flex-direction: column; gap: 2px; flex: 1 1 0; min-width: 0; overflow-wrap: break-word; }
.foot-col .foot-h { margin-bottom: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-muted); text-transform: uppercase; }
.foot-col a { color: var(--ink-soft); font-size: 14px; line-height: 1.9; text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
.foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; } /* mini-web: seznam, mezera jako .foot-cols ul app.css:751 */
/* z web-appu app.css:769 */
.foot-col-group { display: flex; flex-direction: row; flex-wrap: wrap; align-items: start; gap: 16px; min-width: 0; }
/* z web-appu app.css:782-795 (.foot-widget-brand; mini-web: značka stojí ve skupině přímo, proto flex jako .foot-col) */
.foot-brand { display: flex; flex-direction: column; gap: 14px; flex: 1 1 0; max-width: 320px; min-width: 0; }
.foot-brand__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.08em; }
.foot-brand__text { font-size: 13px; line-height: 1.6; color: var(--ink-muted); }
.foot-brand__signature img { display: block; width: 200px; height: 50px; margin-block: 7px; }
.foot-brand__divider { width: 100%; margin: 0; border: 0; border-top: 1px solid var(--line-soft); }
.foot-brand__email { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; align-self: flex-start; font-size: 13px; color: var(--ink-soft); text-decoration: none; }
.foot-brand__email:hover { color: var(--ink); }
.foot-brand__email svg { width: 16px; height: 16px; flex-shrink: 0; }
.foot-brand__socials { display: flex; gap: 10px; }
.foot-brand__social { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-muted); }
.foot-brand__social:hover { color: var(--ink); border-color: var(--ink); }
.foot-brand__social svg { width: 16px; height: 16px; }
/* Právní lišta ve sloupcích, z web-appu app.css:771-779 */
.foot-legal-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; grid-column: 1 / -1; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.foot-legal-cols--1 { grid-template-columns: minmax(0, 1fr); }
.foot-legal-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-legal-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.foot-legal-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.foot-legal-cols--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.foot-legal-cols--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.foot-legal-col { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-muted); flex: 1 1 0; min-width: 0; overflow-wrap: break-word; }
.foot-legal-col .foot-h { margin-bottom: 4px; color: var(--ink); text-transform: uppercase; }
.foot-legal-col .foot-list { gap: 6px; } /* mini-web: seznam, mezera jako odkazy přímo v .foot-legal-col */
.foot-legal-col a { color: var(--ink-muted); text-decoration: none; }
.foot-legal-col a:hover { color: var(--ink); }
.foot-legal-col-group { display: flex; flex-direction: row; flex-wrap: wrap; align-items: start; gap: 16px; min-width: 0; }
/* Copyright, z web-appu app.css:798 (+ .mono app.css:1860) */
.foot-widget-copyright { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-muted); }
/* Právní řádek (režim „lišta“ e-shopu), z web-appu app.css:812-826 */
.foot-base { grid-column: 1 / -1; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-muted); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1ch; } /* mini-web: seznam, mezera = mezera mezi odkazy na e-shopu */
.foot-links a { color: var(--ink-muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
/* z web-appu app.css:836-851 */
@media (max-width: 900px) {
  .foot-cols, .foot-legal-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-base { flex-direction: column; gap: 12px; }
}
@media (max-width: 640px) {
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot-legal-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .foot-col-group, .foot-legal-col-group { flex-direction: column; gap: 12px; }
}

/* Nastavení souhlasu: plovoucí ikona vpravo dole (logika v /script.js; skrytá bez JS a při otevřené liště). */
.cookie-fab { position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 46px; height: 46px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14); cursor: pointer; }
.cookie-fab:hover { color: var(--accent-text); border-color: currentColor; }
.cookie-fab svg { width: 24px; height: 24px; }
.cookie-fab[hidden] { display: none; }

/* Lišta souhlasu (AD-650, logika v /script.js) */
.consent-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; max-width: 56rem; margin: 0 auto; padding: 14px 18px; background: var(--paper-raised); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.consent-bar[hidden] { display: none; }
/* WCAG 2.4.11 (technika C43): otevřená lišta nezakryje prvek s fokusem. /script.js nastaví --consent-space podle
   výšky lišty: posun při fokusu si nechá místo nad lištou a konec stránky (patička) jde odsunout nad ni.
   Co posun neodkryje (ukotvený příběh výroby), odkryje lišta přesunutá k hornímu okraji (.is-top). */
html.consent-open { scroll-padding-bottom: var(--consent-space, 0px); }
html.consent-open body { padding-bottom: var(--consent-space, 0px); }
.consent-bar.is-top { top: 12px; bottom: auto; z-index: 55; } /* AD-946: nad lepivou hlavičkou */
.consent-text { flex: 1 1 22rem; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }
.consent-text a { color: var(--accent-text); }
.consent-actions { display: flex; gap: 10px; }
.consent-btn { min-height: 44px; padding: 10px 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 0.75rem/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.consent-btn--primary { background: var(--ink); color: var(--paper); }
