/* ============================================================
   ONDŘEJ ČIERNÝ — ondrejcierny.cz · 2026
   Deep-space dark · aurora gradients · frosted glass panels
   Bricolage Grotesque + Archivo · no framework
   Styl vychází z alessykora.cz (Redesign 2026), akcent modrý.
   ============================================================ */

/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/bricolage-normal-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/bricolage-normal-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: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-normal-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-display: swap;
  src: url('../fonts/archivo-normal-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: 'Archivo';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-italic-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: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-italic-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;
}

/* ---------- Design tokens ----------
   --paper = pozadí, --ink = text. Akcent: ocelová modrá (z loga),
   sekundární akcent: jantarová (barva kontrolky motoru). */
:root {
  --paper: #0E0E10;
  --paper-2: #16161A;
  --ink: #F4F4EF;
  --ink-soft: rgba(238, 238, 228, 0.64);
  --accent: #4DA3FF;
  --accent-2: #7CC3FF;
  --accent-3: #2E7CD6;
  --grad: linear-gradient(100deg, #4DA3FF 0%, #7CC3FF 100%);
  --amber: #FFB454;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.26);

  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(255, 255, 255, 0.09);
  --glass-brd: rgba(255, 255, 255, 0.13);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --blur: blur(22px) saturate(1.5);
  --radius: 20px;
  --radius-sm: 12px;

  --serif: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --size-hero: clamp(2.7rem, 8vw, 9rem);
  --size-h2: clamp(2.3rem, 3vw + 1rem, 5rem);
  --size-h3: clamp(1.35rem, 0.8vw + 1.1rem, 1.8rem);
  --size-body: clamp(1rem, 0.2vw + 0.95rem, 1.125rem);
  --size-eyebrow: 0.78rem;

  --space: clamp(4.5rem, 9vw, 9rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
/* Malé telefony: menší titulek bez odsazení, ať nic nepřetéká */
@media (max-width: 26em) {
  :root { --size-hero: clamp(1.8rem, 8.4vw, 2.4rem); }
  .hero__title-line--indent { margin-left: 0; }
}
/* Velké monitory: web roste s obrazovkou, žádná úzká nudle */
@media (min-width: 1800px) {
  html { font-size: 18px; }
}
@media (min-width: 2300px) {
  html { font-size: 21px; }
}

html { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--size-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

::selection { background: var(--accent); color: #0E0E10; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2 * var(--gutter), 84rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 400;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora__blob {
  position: absolute;
  width: 65vmax;
  height: 65vmax;
  border-radius: 50%;
  will-change: transform;
}
.aurora__blob--1 {
  top: -28%; left: -15%;
  background: radial-gradient(circle at center, rgba(77, 163, 255, 0.13) 0%, transparent 62%);
  animation: aurora-a 46s ease-in-out infinite alternate;
}
.aurora__blob--2 {
  top: -20%; right: -25%;
  background: radial-gradient(circle at center, rgba(124, 195, 255, 0.08) 0%, transparent 62%);
  animation: aurora-b 58s ease-in-out infinite alternate;
}
.aurora__blob--3 {
  bottom: -35%; left: -20%;
  width: 55vmax; height: 55vmax;
  background: radial-gradient(circle at center, rgba(46, 124, 214, 0.09) 0%, transparent 62%);
  animation: aurora-b 64s ease-in-out infinite alternate-reverse;
}
.aurora__blob--4 {
  bottom: -30%; right: -12%;
  background: radial-gradient(circle at center, rgba(77, 163, 255, 0.08) 0%, transparent 62%);
  animation: aurora-a 52s ease-in-out infinite alternate-reverse;
}
@keyframes aurora-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(9vw, 7vh) scale(1.18); }
}
@keyframes aurora-b {
  from { transform: translate(0, 0) scale(1.1) rotate(0deg); }
  to   { transform: translate(-7vw, 5vh) scale(0.95) rotate(20deg); }
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 130;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background-color: var(--accent);
  background-image: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  height: var(--header-h);
  transition: background 0.35s, box-shadow 0.35s;
}
.header.is-scrolled {
  background: rgba(14, 14, 16, 0.82);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
}
.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
  user-select: none;
}
.header__logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: transform 0.3s var(--ease-out), filter 0.3s;
}
.header__logo:hover .header__logo-img {
  filter: drop-shadow(0 0 14px rgba(77, 163, 255, 0.45));
}
.header__logo:hover .header__logo-img { transform: scale(1.04); }
.header__nav { display: none; }
.header .header__cta { display: none; }

@media (min-width: 56em) {
  .header__nav { display: block; }
  .header .header__cta { display: inline-flex; }
  .header__burger { display: none; }
}

.header__list {
  display: flex;
  gap: 2rem;
}
.header__link {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding-block: 0.4rem;
  transition: color 0.3s;
}
.header__link:hover { color: var(--ink); }
.header__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background-color: var(--accent);
  background-image: var(--grad);
  transition: right 0.3s var(--ease-out);
}
.header__link:hover::after,
.header__link:focus-visible::after { right: 0; }

.header__burger {
  display: grid;
  gap: 6px;
  padding: 0.75rem 0.25rem;
}
.header__burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.header__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 56em) {
  .header__burger { display: none; }
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(14, 14, 16, 0.88);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu:not([hidden]) .menu__link,
.menu:not([hidden]) .menu__foot a {
  animation: menu-in 0.5s var(--ease-out) both;
}
.menu:not([hidden]) .menu__list li:nth-child(2) .menu__link { animation-delay: 0.05s; }
.menu:not([hidden]) .menu__list li:nth-child(3) .menu__link { animation-delay: 0.1s; }
.menu:not([hidden]) .menu__list li:nth-child(4) .menu__link { animation-delay: 0.15s; }
.menu:not([hidden]) .menu__list li:nth-child(5) .menu__link { animation-delay: 0.2s; }
.menu:not([hidden]) .menu__foot a { animation-delay: 0.25s; }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.menu__list { display: grid; gap: 0.25rem; }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu__link:active { color: var(--accent); }
.menu__num {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}
.menu__foot {
  display: grid;
  gap: 0.5rem;
  font-size: 1.1rem;
}
.menu__foot a { text-decoration: none; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background-color: var(--accent);
  background-image: var(--grad);
  color: #0E0E10;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  box-shadow: 0 8px 30px rgba(77, 163, 255, 0.35), var(--glass-hi);
  transition: box-shadow 0.35s, filter 0.35s;
}
.btn:hover {
  box-shadow: 0 10px 44px rgba(77, 163, 255, 0.6);
  filter: brightness(1.08);
}
.btn--ghost {
  background: rgba(22, 22, 26, 0.6);
  color: var(--ink);
  border-color: var(--glass-brd);
  box-shadow: var(--glass-hi);
}
.btn--ghost:hover {
  background: var(--glass-2);
  border-color: var(--line-strong);
  box-shadow: 0 8px 30px rgba(77, 163, 255, 0.08);
  filter: none;
}
.btn--small { padding: 0.65rem 1.4rem; font-size: 0.88rem; }

/* Button label roll */
.btn__label {
  display: inline-block;
  overflow: hidden;
}
.btn__text {
  position: relative;
  display: inline-block;
  transition: transform 0.45s var(--ease-out);
}
.btn__text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 108%;
}
.btn:hover .btn__text,
.btn:focus-visible .btn__text { transform: translateY(-108%); }

/* ---------- Reveal on scroll (IntersectionObserver) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
html.js [data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 10vh, 7rem));
  padding-bottom: clamp(3rem, 8vh, 6rem);
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--size-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}
.hero__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background-color: var(--accent);
  background-image: var(--grad);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77, 163, 255, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(77, 163, 255, 0); }
}
.hero__title {
  font-family: var(--serif);
  font-size: var(--size-hero);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 40px rgba(14, 14, 16, 0.6);
}
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.hero__title-line { display: inline-block; }
html.js .hero__title-line {
  transform: translateY(112%);
  transition: transform 1.05s var(--ease-out);
}
html.js .hero__line:nth-child(1) .hero__title-line { transition-delay: 0.15s; }
html.js .hero__line:nth-child(2) .hero__title-line { transition-delay: 0.3s; }
html.js.loader-done .hero__title-line { transform: none; }
.hero__title-line--indent {
  margin-left: clamp(0px, 6vw, 6.5rem);
}
.hero__spark {
  display: inline-block;
  margin-left: 0.12em;
  font-size: 0.34em;
  vertical-align: 0.9em;
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(77, 163, 255, 0.7);
  animation: spark-spin 14s linear infinite;
}
@keyframes spark-spin {
  to { transform: rotate(360deg); }
}
.hero__row {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
}
@media (min-width: 62em) {
  .hero__row {
    grid-template-columns: minmax(0, 26rem) minmax(0, 33rem);
    justify-content: space-between;
    align-items: start;
  }
}
.hero__left {
  display: grid;
  gap: 1.75rem;
  align-content: start;
}
.hero__lead {
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: clamp(3rem, 8vh, 5rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 48em) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
}
.hero__stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.2rem;
  padding: 1.25rem 1rem 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 48em) {
  .hero__stat { border-bottom: 0; }
  .hero__stat + .hero__stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
.hero__stat dd {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 550;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  order: -1;
}
.hero__stat dt {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- Scroll hint ---------- */
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  text-decoration: none;
  width: fit-content;
}
.hero__scroll-text {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}
.hero__scroll-track {
  position: relative;
  width: 3.2rem;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll-dot {
  position: absolute;
  top: -2.5px;
  left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(77, 163, 255, 0.8);
  animation: scroll-dot 2.2s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes scroll-dot {
  0% { transform: translateX(-8px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(3.4rem); opacity: 0; }
}

/* ---------- Rotating word (swap) ---------- */
.swap {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}
.swap__list {
  display: inline-block;
  position: relative;
  transition: width 0.45s var(--ease-out);
}
.swap__word { display: inline-block; }
.swap__word:not(:first-child) {
  position: absolute;
  left: 0;
  top: 0;
}
html.js .swap__word {
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
html.js .swap__word.is-on {
  opacity: 1;
  transform: none;
}
html.js .swap__word.is-out {
  opacity: 0;
  transform: translateY(-0.5em);
}
.swap__ink {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(77, 163, 255, 0.3);
}

/* blikající caret za titulkem */
.hero__caret {
  display: inline-block;
  width: 0.05em;
  height: 0.68em;
  margin-left: 0.08em;
  background: var(--accent);
  vertical-align: baseline;
  animation: caret-blink 1.1s steps(2, start) infinite;
}
@keyframes caret-blink {
  50% { opacity: 0; }
}

/* ---------- OBD terminál v heru ---------- */
.hero__terminal { display: grid; gap: 0.6rem; }
.term {
  background: rgba(11, 11, 14, 0.92);
  border: 1px solid var(--glass-brd);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 180, 84, 0.07);
  font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  font-size: clamp(0.72rem, 0.75vw, 0.85rem);
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--line);
}
.term__bar i { width: 10px; height: 10px; border-radius: 50%; }
.term__bar i:nth-child(1) { background: #FF5F57; }
.term__bar i:nth-child(2) { background: #FEBC2E; }
.term__bar i:nth-child(3) { background: #28C840; }
.term__bar span {
  flex: 1;
  margin-left: 8px;
  color: var(--ink-soft);
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.term__bar b {
  color: var(--amber);
  font-weight: 700;
  font-size: 0.9em;
  white-space: nowrap;
}
.term__body {
  padding: 1rem 1.1rem 1.1rem;
  display: grid;
  gap: 0.45rem;
  min-height: 16.5rem;
  align-content: start;
  line-height: 1.55;
}
.term__line { margin: 0; white-space: pre-wrap; }
.term__line--user { color: var(--ink); font-weight: 600; }
.term__line--think { color: var(--ink-soft); }
.term__line--tool { color: var(--accent); }
.term__line--sub { color: var(--ink-soft); padding-left: 1.35em; }
.term__line--ok { color: var(--accent); }
.term__line--done { color: var(--amber); font-weight: 600; }
.term__spin {
  display: inline-block;
  color: var(--amber);
  font-style: normal;
  animation: spin2 1.8s linear infinite;
}
@keyframes spin2 { to { transform: rotate(360deg); } }
.term__meta { color: rgba(238, 238, 228, 0.4); font-size: 0.9em; }
.term__meta b { color: var(--amber); font-weight: 700; }
html.js .term__line { opacity: 0; transform: translateY(4px); transition: opacity 0.3s, transform 0.3s; }
html.js .term__line.on { opacity: 1; transform: none; }
.term__caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: var(--accent);
  vertical-align: -0.15em;
  animation: caret-blink 1.1s steps(2, start) infinite;
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  padding: 1.1rem 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee__track--long { animation-duration: 60s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  white-space: nowrap;
}
.marquee__list li {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.marquee__list li:nth-child(even) {
  font-size: 0.8rem;
  color: var(--accent);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Manifest ---------- */
.manifest {
  padding-block: clamp(5rem, 12vw, 11rem);
}
.manifest__text {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.6vw + 1.1rem, 3.3rem);
  font-weight: 440;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 62rem;
  text-wrap: balance;
}
.manifest__text em {
  font-style: normal;
  color: var(--accent);
}

/* ---------- Kinetický pás (obrysová typografie) ---------- */
.strip {
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  border-block: 1px solid var(--line);
}
.strip__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.strip--reverse .strip__track { animation-direction: reverse; }
.strip__list {
  display: flex;
  align-items: center;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  padding-right: clamp(1.8rem, 4vw, 3.5rem);
  white-space: nowrap;
}
.strip__list li {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.8rem, 7.5vw, 7.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 244, 239, 0.38);
}
.strip__list li.strip__glyph {
  color: var(--accent);
  -webkit-text-stroke: 0;
  font-size: 0.45em;
  text-shadow: 0 0 24px rgba(77, 163, 255, 0.6);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space); }
.section__head {
  position: relative;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section__head::after {
  content: '';
  display: block;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out) 0.2s;
}
.section__head.is-inview::after { transform: scaleX(1); }
.section__num {
  position: absolute;
  right: 0;
  top: -0.18em;
  z-index: -1;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(3.6rem, 8vw, 8.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 244, 239, 0.13);
  pointer-events: none;
  user-select: none;
}
.section__eyebrow {
  font-size: var(--size-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  width: fit-content;
  margin-bottom: 0.9rem;
}
.section__eyebrow::before { content: '✳ '; }
.section__title {
  font-family: var(--serif);
  font-size: var(--size-h2);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.section__title em {
  font-style: normal;
  background-color: var(--accent);
  background-image: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(77, 163, 255, 0.35));
}

/* ---------- Glass card base ----------
   Bez backdrop-filteru: velké plochy s blur filtrem nad animovanou
   aurorou nutí prohlížeč přerenderovávat pozadí každý frame. */
.service, .price, .form {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 60%),
    rgba(22, 22, 26, 0.55);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--glass-hi), 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 48em) {
  .services__grid { grid-template-columns: 1fr 1fr; }
}
.service {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3rem);
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.service:hover {
  background: var(--glass-2);
  border-color: rgba(77, 163, 255, 0.4);
  box-shadow: var(--glass-hi), 0 24px 60px rgba(77, 163, 255, 0.16);
}
.service__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
}
.service__title {
  font-family: var(--serif);
  font-size: var(--size-h3);
  font-weight: 550;
  line-height: 1.2;
  margin: 0.9rem 0 1rem;
}
.service__text { color: var(--ink-soft); }
.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.service__tags li {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* ---------- Jak to probíhá (kroky jako index list) ---------- */
.steps__list { border-top: 1px solid var(--line); }
.steps__item { border-bottom: 1px solid var(--line); }
.steps__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.35rem 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0.75rem;
  border-radius: var(--radius-sm);
  transition: padding-left 0.35s var(--ease-out), background 0.35s;
}
@media (min-width: 48em) {
  .steps__row { grid-template-columns: minmax(16rem, 1fr) 2fr auto; }
}
.steps__item:hover .steps__row {
  padding-left: 1.5rem;
  background: var(--glass);
}
.steps__name {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.steps__name b {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}
.steps__item:hover .steps__name {
  background-color: var(--accent);
  background-image: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steps__item:hover .steps__name b {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--accent);
}
.steps__desc {
  grid-column: 1;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
@media (min-width: 48em) {
  .steps__desc { grid-column: auto; }
}
.steps__arrow {
  grid-row: 1;
  grid-column: 2;
  font-size: 1.4rem;
  color: var(--ink-soft);
  transition: transform 0.35s var(--ease-out), color 0.35s;
}
@media (min-width: 48em) {
  .steps__arrow { grid-column: 3; }
}
.steps__item:hover .steps__arrow {
  transform: translateX(0.5rem);
  color: var(--accent);
}

/* ---------- Ceny ---------- */
.pricing__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48em) {
  .pricing__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.price {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 4vw, 3rem);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.price:hover { border-color: rgba(77, 163, 255, 0.35); }
.price--accent {
  position: relative;
  background:
    linear-gradient(160deg, rgba(77, 163, 255, 0.08) 0%, rgba(124, 195, 255, 0.08) 100%),
    rgba(22, 22, 26, 0.55);
  border-color: rgba(77, 163, 255, 0.45);
  box-shadow: var(--glass-hi), 0 24px 70px rgba(77, 163, 255, 0.22);
}
.price__name {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.price--accent .price__name { color: var(--ink); }
.price__value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 1.75rem;
  cursor: default;
  user-select: none;
}
.price__num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.02em;
}
.price--accent .price__num {
  background-color: var(--accent);
  background-image: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(77, 163, 255, 0.4));
}
.price__unit {
  font-size: 1rem;
  color: var(--ink-soft);
}
.price__list {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex: 1;
}
.price__list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
}
.price__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.price__btn { align-self: flex-start; }
.pricing__note {
  margin-top: 2.5rem;
  color: var(--ink-soft);
  max-width: 46rem;
}
.pricing__joke {
  font-style: italic;
  font-family: var(--sans);
  color: var(--ink);
}

/* ---------- O mně (profilová karta) ---------- */
.about {
  background: radial-gradient(50% 70% at 20% 50%, rgba(77, 163, 255, 0.05) 0%, transparent 70%);
  border-block: 1px solid var(--line);
}
.gh {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 56em) {
  .gh { grid-template-columns: minmax(14rem, 18rem) 1fr; gap: clamp(2.5rem, 5vw, 5rem); }
}
.gh__side { min-width: 0; }
.gh__avatar {
  width: min(100%, 15rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--glass-brd);
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.6s var(--ease-out), border-color 0.6s;
}
.gh__avatar:hover { filter: none; border-color: var(--accent); }
.gh__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 750;
  margin-top: 1.2rem;
}
.gh__login { color: var(--ink-soft); }
.gh__meta {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.gh__meta a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.gh__meta a:hover { color: var(--accent); }
.gh__main { display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
.gh__main > * { min-width: 0; }
.gh__readme {
  background: rgba(22, 22, 26, 0.55);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.gh__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  width: 100%;
}
.gh__body {
  padding: 1.3rem 1.4rem;
  display: grid;
  gap: 1rem;
  color: var(--ink-soft);
}
.gh__body p:first-child { color: var(--ink); }
.gh__sign {
  background: rgba(22, 22, 26, 0.55);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
}
.gh__sign-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.gh__sign-img {
  max-width: 20rem;
  opacity: 0.92;
}

/* ---------- FAQ jako nástěnka ---------- */
.faq__board {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-sm);
  outline: 1.5px solid rgba(255, 180, 84, 0.5);
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.4px);
  background-size: 24px 24px;
}
.faq__board::before,
.faq__board::after {
  content: '';
  position: absolute;
  width: 9px; height: 9px;
  background: #0E0E10;
  border: 1.5px solid rgba(255, 180, 84, 0.9);
}
.faq__board::before { top: -5px; left: -5px; }
.faq__board::after { bottom: -5px; right: -5px; }

.faq__list {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  counter-reset: faq;
}
@media (min-width: 48em) {
  .faq__list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 72em) {
  .faq__list { grid-template-columns: 1fr 1fr 1fr; }
}

/* sticky note */
.faq__item {
  position: relative;
  counter-increment: faq;
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(77, 163, 255, 0.14) 0%, rgba(77, 163, 255, 0.09) 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(-1.3deg);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.faq__item:nth-child(2n) {
  transform: rotate(1.2deg);
  background: linear-gradient(180deg, rgba(124, 195, 255, 0.13) 0%, rgba(124, 195, 255, 0.08) 100%);
}
.faq__item:nth-child(3n) {
  background: linear-gradient(180deg, rgba(255, 180, 84, 0.13) 0%, rgba(255, 180, 84, 0.07) 100%);
}
.faq__item:nth-child(4n) {
  transform: rotate(-0.8deg);
  background: linear-gradient(180deg, rgba(244, 244, 239, 0.10) 0%, rgba(244, 244, 239, 0.06) 100%);
}
.faq__item:hover,
.faq__item[open] {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 2;
}
/* číslovaný pin */
.faq__item::before {
  content: counter(faq);
  position: absolute;
  top: -13px; left: -13px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  background-color: var(--accent);
  background-image: var(--grad);
  color: #0E0E10;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50% 50% 50% 4px;
  box-shadow: 0 4px 14px rgba(77, 163, 255, 0.45);
}
.faq__q {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.3rem);
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  transition: color 0.3s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.3s var(--ease-out);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--accent); }
.faq__a {
  padding-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.faq__a a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.faq__a a:hover { color: var(--accent); }

/* multiplayer kurzory */
.faq__cursor {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  pointer-events: none;
}
.faq__cursor svg { width: 20px; height: 20px; }
.faq__cursor i {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-top: 12px;
  white-space: nowrap;
}
.faq__cursor--ondrej { top: 12%; right: 8%; }
.faq__cursor--ondrej svg { fill: #4DA3FF; }
.faq__cursor--ondrej i { background: #4DA3FF; color: #0E0E10; }
.faq__cursor--zakaznik { bottom: 10%; left: 6%; }
.faq__cursor--zakaznik svg { fill: #FFB454; }
.faq__cursor--zakaznik i { background: #FFB454; color: #0E0E10; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  gap: 3.5rem;
}
@media (min-width: 56em) {
  .contact__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(3rem, 6vw, 6rem);
  }
}
.contact__text { color: var(--ink-soft); max-width: 30rem; margin-bottom: 2rem; }
.contact__channels { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.contact__mail {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  width: fit-content;
  transition: color 0.3s;
  font-variant-numeric: tabular-nums;
}
.contact__mail:hover { color: var(--accent); }
.contact__phone {
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  width: fit-content;
  color: var(--ink-soft);
}
.contact__phone:hover { color: var(--accent); }
.contact__clock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.contact__clock strong {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.contact__clock [data-status] { color: var(--ink-soft); }
.contact__clock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  animation: pulse-green 2.4s infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.form__honey { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form__field { display: grid; gap: 0.45rem; }
.form__label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.form__label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.form__input {
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--glass-brd);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  width: 100%;
}
.form__input::placeholder { color: rgba(238, 238, 228, 0.35); }
.form__input:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.22);
}
.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F4F2FF' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.form__select option { background: var(--paper-2); color: var(--ink); }
.form__textarea { resize: vertical; min-height: 8rem; }
.form__submit { justify-self: start; }
.form__status { min-height: 1.5em; font-weight: 500; }
.form__status.is-ok { color: #4ADE80; }
.form__status.is-err { color: #FF7B72; }
.form__status a { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.footer__inner { position: relative; }
.footer__cols {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 48em) {
  .footer__cols { grid-template-columns: 1.2fr 1.2fr 1fr 1fr; }
}
.footer__name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 550;
  margin-bottom: 0.75rem;
}
.footer__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.footer__list { display: grid; gap: 0.5rem; }
.footer__list a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.footer__list a:hover { color: var(--accent); }
.footer__meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.5rem 0 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}
.footer__made a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.footer__made a:hover { color: var(--accent); }
.footer__watermark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(4.5rem, 16vw, 15rem);
  line-height: 0.78;
  letter-spacing: 0.02em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 244, 239, 0.10);
  user-select: none;
  pointer-events: none;
  margin-top: 1rem;
  transform: translateY(0.15em);
}

/* ---------- Preloader ---------- */
.loader { display: none; }
html.js .loader {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--paper);
  align-items: center;
  justify-content: center;
}
html.loader-done .loader { display: none !important; }
.loader__inner {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
}
.loader__logo {
  height: 52px;
  width: auto;
}
html.js:not(.loader-done) .loader__logo {
  animation: loader-logo-in 0.7s 0.05s var(--ease-out) both;
}
@keyframes loader-logo-in {
  from { opacity: 0; transform: scale(0.94) translateY(6px); }
  to { opacity: 1; transform: none; }
}
.loader__line {
  position: relative;
  width: 8rem;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--accent);
  background-image: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}
html.js:not(.loader-done) .loader__line::after {
  animation: loader-fill 1.6s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}
@keyframes loader-fill {
  to { transform: scaleX(1); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track, .strip__track { animation: none; }
  .loader { display: none !important; }
  .aurora__blob { animation: none; }
  .hero__scroll-dot { animation: none; opacity: 1; left: 50%; }
  html.js [data-reveal], html.js .term__line { opacity: 1; transform: none; }
  html.js .hero__title-line { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .header, .menu, .grain, .progress, .marquee, .strip,
  .footer__watermark, .aurora, .loader { display: none !important; }
  body { background: #fff; color: #000; }
}
