/* =========================================================
   janamachova.cz – styles
   Layout: full-bleed photo hero, then editorial sections in a
   1440px column. Two surfaces (1 = base, 2 = deeper) alternate;
   photo sections are always dark. Light/dark follows the OS,
   the header toggle overrides it via html[data-theme].
   Type: IBM Plex Sans (text, headings) + IBM Plex Mono (labels,
   numbers, accent words).
   ========================================================= */

:root {
  /* light palette (default) */
  --s1: #ece8e1;             /* stone */
  --s2: #ddd8ce;             /* deeper stone */
  --fg: #141416;
  --muted: #605b53;
  --line: rgba(20, 20, 22, .16);
  --accent: #2f63c7;         /* blue, per the owner's wish */
  --accent-text: #1a4a94;    /* readable blue on light ground (>= 5:1 on both stones) */
  --accent-ink: #ffffff;     /* text on an accent background */
  --card: #f6f4ef;
  --header-bg: rgba(236, 232, 225, .86);

  /* photo surfaces are always dark */
  --photo-bg: #121214;
  --photo-fg: #f1eee8;

  --font-sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1440px;
  --section: clamp(72px, 10vw, 140px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --header-h: 72px;
  --eyebrow-gap: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --s1: #121214;
    --s2: #1a1a1d;
    --fg: #f1eee8;
    --muted: #a7a197;
    --line: rgba(241, 238, 232, .16);
    --accent: #8db1f0;
    --accent-text: #8db1f0;
    --accent-ink: #121214;
    --card: #0e0e10;
    --header-bg: rgba(18, 18, 20, .84);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --s1: #121214;
  --s2: #1a1a1d;
  --fg: #f1eee8;
  --muted: #a7a197;
  --line: rgba(241, 238, 232, .16);
  --accent: #8db1f0;
  --accent-text: #8db1f0;
  --accent-ink: #121214;
  --card: #0e0e10;
  --header-bg: rgba(18, 18, 20, .84);
  color-scheme: dark;
}

/* surfaces */
.surface-1 { --bg: var(--s1); }
.surface-2 { --bg: var(--s2); }
.surface-photo {
  --bg: var(--photo-bg);
  --fg: var(--photo-fg);
  --muted: #a7a197;
  --line: rgba(241, 238, 232, .18);
  --accent: #8db1f0;
  --accent-text: #8db1f0;
  --accent-ink: #121214;
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  background: var(--s1);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--s1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, picture, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 2px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
section, footer {
  background: var(--bg);
  color: var(--fg);
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.h2 {
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
  margin-top: var(--eyebrow-gap);
}
.h2 em, .hero__title em {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 1em;
  letter-spacing: -.02em;
  color: var(--accent-text);
}
.nw { white-space: nowrap; }
.arrow { display: inline-block; width: .68em; height: .68em; vertical-align: -.02em; flex: none; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head__text {
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
}
.prose { max-width: 62ch; display: grid; gap: 1rem; }
.prose p { color: var(--fg); }

/* ---------- skip link ---------- */
.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 14px; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; border-radius: 4px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--s1); color: var(--fg);
  display: none;
  align-items: center; justify-content: center;
}
.js .loader { display: flex; }
.loader__inner { display: grid; gap: 10px; text-align: center; }
.loader__name {
  font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1;
  opacity: 0; transform: translateY(14px);
  animation: loader-in .9s var(--ease-out) .05s forwards;
}
.loader__sub {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: loader-in .9s var(--ease-out) .25s forwards;
}
@keyframes loader-in { to { opacity: 1; transform: none; } }
.is-ready .loader {
  transform: translateY(-101%);
  transition: transform .8s var(--ease-out);
  pointer-events: none;
}
.is-done .loader { display: none; }
@media (prefers-reduced-motion: reduce) {
  .js .loader { display: none; }
}

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--photo-fg);             /* over the photo hero */
  transition: transform .45s var(--ease), color .35s var(--ease);
}
.header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.header.is-scrolled, .menu-open .header { color: var(--fg); }
.header.is-scrolled::after, .menu-open .header::after { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
.header:focus-within { transform: none; }
/* over the hero photo the dark light-scheme accent would vanish; the open menu sits on a light surface, so it keeps the default */
body:not(.menu-open) .header:not(.is-scrolled) :focus-visible { outline-color: #8db1f0; }
.header__inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; padding-block: 4px; }
.brand__name { font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand__role { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #b7cdf7; margin-top: 3px; }
.header.is-scrolled .brand__role, .menu-open .header .brand__role { color: var(--accent-text); }
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); margin-left: auto; }
.nav a {
  font-size: .95rem; font-weight: 500; padding-block: 6px;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.header__cta {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  border: 1px solid currentColor; border-radius: 999px;
  padding: 9px 16px; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.header__cta { border-color: color-mix(in srgb, currentColor 40%, transparent); }
.header__cta:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.theme-toggle { border-color: color-mix(in srgb, currentColor 40%, transparent); }
.theme-toggle:hover { background: var(--accent); color: var(--accent-ink); }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.burger {
  display: none; width: 44px; height: 44px; margin-right: -8px; flex: none;
  position: relative; z-index: 70;
}
.burger__line {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.burger__line:nth-child(1) { top: 18px; }
.burger__line:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 899px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .theme-toggle { margin-left: auto; }
}
html:not(.js) .burger { display: none; }
html:not(.js) .nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* ---------- mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--s1); color: var(--fg);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .6s var(--ease-out), visibility 0s linear .6s;
  overflow-y: auto;
}
.menu.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease-out), visibility 0s; }
.menu__nav { display: grid; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .6s var(--ease-out);
}
.menu__nav a small { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; color: var(--accent-text); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .15s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .2s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .25s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .3s; }
.menu__contact { display: grid; gap: 6px; font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.menu__contact a { color: var(--fg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 500; font-size: .98rem; line-height: 1;
  border: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn--light { background: #f1eee8; color: #121214; border-color: #f1eee8; }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--ghost { color: #f1eee8; border-color: rgba(241, 238, 232, .4); }
.btn--ghost:hover { border-color: #f1eee8; }
.btn__num { font-family: var(--font-mono); font-size: .86rem; letter-spacing: .02em; }

/* ---------- hero (always on the photo) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--header-h) + 48px) var(--gutter) 0;
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
}
.hero__media picture, .hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
}
.js .hero__media img { transform: scale(1.08); transition: transform 2.4s var(--ease-out), opacity .6s var(--ease); }
.js.is-ready .hero__media img { transform: scale(1); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 18, 20, .55) 0%, rgba(18, 18, 20, .15) 35%, rgba(18, 18, 20, .55) 75%, rgba(18, 18, 20, .92) 100%),
    linear-gradient(90deg, rgba(18, 18, 20, .55) 0%, rgba(18, 18, 20, 0) 60%);
}
.hero__caption {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 24px);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 238, 232, .9);
  background: rgba(18, 18, 20, .5); padding: 6px 10px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero .eyebrow { color: rgba(241, 238, 232, .8); }
.hero__content {
  width: min(100%, var(--max)); margin-inline: auto;
  align-self: end;
  padding-bottom: clamp(32px, 6vh, 72px);
}
.hero__title {
  font-size: clamp(2.6rem, 7.4vw, 6.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
  max-width: 14ch;
  margin-top: var(--eyebrow-gap);
  text-wrap: balance;
}
.hero__lead {
  max-width: 54ch; margin-top: 26px;
  font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(241, 238, 232, .85);
}
.hero__name { color: #f1eee8; font-weight: 600; letter-spacing: -.01em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__foot {
  width: min(100%, var(--max)); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 20px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(241, 238, 232, .22);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(241, 238, 232, .72);
}
.hero__scroll { display: inline-flex; gap: 8px; color: #f1eee8; padding-block: 11px; margin-block: -11px; }
@media (max-width: 720px) {
  .hero__foot-mid { display: none; }
  .hero__foot > span:first-child { display: none; }
  .hero__foot { justify-content: flex-end; }
  .hero__caption { display: none; }
  .hero__title { max-width: none; }
  .band { height: clamp(320px, 52vh, 480px); }
  .band__media img { object-position: 68% 60%; }
}

/* ---------- intro ---------- */
.intro { padding-block: var(--section); }
.intro__grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(28px, 5vw, 80px); align-items: center;
}
.intro__text { min-width: 0; }
.intro__portrait {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px;
  background-size: cover; background-position: center; max-width: 400px; justify-self: end; width: 100%;
}
.intro__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.intro__portrait figcaption {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 238, 232, .9);
  background: rgba(18, 18, 20, .5); padding: 6px 10px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@media (max-width: 860px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__portrait { justify-self: start; max-width: 360px; }
}
.statement {
  margin-top: var(--eyebrow-gap);
  font-size: clamp(1.45rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.02em;
  max-width: 30ch;
  text-wrap: pretty;
}
.statement__muted { color: var(--muted); }
.stats {
  margin-top: clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px clamp(20px, 3vw, 48px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.stats { grid-auto-rows: auto; }
.stat { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 10px; min-width: 0; }
.stat dd { grid-row: 1; align-self: end; }
.stat dt { grid-row: 2; font-size: .85rem; color: var(--muted); line-height: 1.4; }
.stat dd {
  font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat dd.stat__accent { color: var(--accent-text); }
.stat dd.stat__mono { font-family: var(--font-mono); font-size: clamp(1.2rem, 2.2vw, 1.8rem); letter-spacing: 0; font-weight: 500; padding-bottom: .22em; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- services ---------- */
.services { padding-block: var(--section) 0; }
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc summary {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 44px;
  align-items: center; gap: 16px;
  padding: clamp(18px, 2.4vw, 28px) 0;
  transition: padding-left .4s var(--ease-out);
}
.svc summary:hover { padding-left: 8px; }
.svc__index { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; color: var(--accent-text); }
.svc__title { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.svc__icon { position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; justify-self: end; }
.svc__icon::before, .svc__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .4s var(--ease-out);
}
.svc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc[open] .svc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.svc__body { padding: 0 0 clamp(20px, 2.4vw, 30px) calc(3.5rem + 16px); }
.svc__body p { max-width: 58ch; color: var(--muted); animation: fade-in .5s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .svc summary { grid-template-columns: 2.4rem minmax(0, 1fr) 36px; gap: 12px; }
  .svc__icon { width: 36px; height: 36px; }
  .svc__body { padding-left: 0; }
}

.marquee {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 16px;
}
.marquee__viewport {
  /* the right fade is wide enough to sit under the pause button */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 calc(100% - 150px), transparent calc(100% - 16px));
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 calc(100% - 150px), transparent calc(100% - 16px));
}
.marquee__toggle {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 12px; color: var(--muted); background: var(--bg);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.marquee__toggle:hover { color: var(--fg); border-color: var(--fg); }
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee__group {
  white-space: nowrap; padding-right: .6em;
  font-family: var(--font-mono); font-weight: 400;
  text-transform: uppercase; letter-spacing: .1em;
  font-size: clamp(1rem, 2.2vw, 1.6rem); line-height: 1.2;
  color: var(--muted);
}
.marquee__group i { font-style: normal; color: var(--accent-text); padding-inline: .3em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

.audience {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  padding-block: clamp(40px, 6vw, 80px) var(--section);
}
.audience__list { display: flex; flex-wrap: wrap; gap: 10px; }
.audience__list li {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  font-size: .95rem; white-space: nowrap;
}
@media (max-width: 900px) { .audience { grid-template-columns: 1fr; } .audience__list li { white-space: normal; } }

/* ---------- image band (always on the photo) ---------- */
.band { position: relative; height: clamp(380px, 62vh, 680px); overflow: hidden; isolation: isolate; display: grid; place-items: end start; }
.band__media { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.js .band__media img { height: 120%; position: absolute; top: -10%; left: 0; will-change: transform; }
.band__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 20, .25) 0%, rgba(18, 18, 20, .1) 40%, rgba(18, 18, 20, .85) 100%);
}
.band__caption {
  position: absolute; right: var(--gutter); top: 24px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 238, 232, .9);
  background: rgba(18, 18, 20, .5); padding: 6px 10px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.band__quote {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  padding-block: clamp(28px, 5vw, 56px);
}
  .band__quote em { font-style: normal; font-weight: 600; color: var(--accent-text); }
.band__quote p {
  font-size: clamp(1.3rem, 2.5vw, 2.3rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.22;
  max-width: 32ch; text-wrap: pretty;
}

/* ---------- process ---------- */
.process { padding-block: var(--section); }
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.step { border-top: 1px solid var(--line); padding-top: 20px; min-width: 0; }
.js .step[data-reveal] { transition-delay: calc(var(--s, 0) * 380ms); }
.js .step .step__index { color: var(--muted); opacity: .55; transition: color .6s var(--ease), opacity .6s var(--ease); transition-delay: calc(var(--s, 0) * 380ms + 420ms); }
.js .step.is-visible .step__index { color: var(--accent-text); opacity: 1; }
.step__index { font-family: var(--font-mono); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1; color: var(--muted); display: block; letter-spacing: -.04em; }
.step__title { font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.docs {
  margin-top: clamp(56px, 8vw, 100px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 48px;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.docs__title { font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; }
.docs__list { columns: 2; column-gap: 40px; }
.docs__list li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 560px) { .docs__list { columns: 1; } }

/* ---------- profile ---------- */
.profile { padding-block: var(--section); }
.profile__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.profile__media {
  position: sticky; top: calc(var(--header-h) + 24px);
  aspect-ratio: 4 / 3; overflow: hidden; background-size: cover; background-position: center;
  border-radius: 4px;
}
.profile__media img { width: 100%; height: 100%; object-fit: cover; }
.js .profile__media img { height: 118%; position: absolute; top: -9%; left: 0; will-change: transform; }
.profile__media figcaption {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 238, 232, .85);
  background: rgba(18, 18, 20, .45); padding: 6px 10px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.profile__text { min-width: 0; }
.profile__text .prose { margin-top: 28px; }
.timeline { margin-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
.tl {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 6px 20px;
  padding-block: 18px; border-bottom: 1px solid var(--line);
}
.tl time { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; color: var(--accent-text); padding-top: 4px; white-space: nowrap; }
.tl__title { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.tl p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
@media (max-width: 900px) {
  .profile__grid { grid-template-columns: 1fr; }
  .profile__media { position: relative; top: auto; aspect-ratio: 3 / 2; }
}
@supports not (aspect-ratio: 1) {
  .profile__media { height: 0; padding-top: 75%; }
  @media (max-width: 900px) { .profile__media { padding-top: 66.67%; } }
}
@media (max-width: 460px) { .tl { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { padding-block: var(--section); }
.contact__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--line);
}
.contact__item { position: relative; display: grid; gap: 10px; padding: clamp(24px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line); min-width: 0; align-content: start; }
.contact__item--wide { grid-column: 1 / -1; }
.contact__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact__value {
  font-size: clamp(2.1rem, 10.5vw, 5.8rem); font-weight: 600; letter-spacing: -.035em; line-height: 1;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
  transition: color .3s var(--ease);
}
.contact__value--sm { font-size: clamp(1.3rem, 2.5vw, 2.1rem); letter-spacing: -.02em; line-height: 1.15; padding-block: 8px; margin-block: -8px; }
a.contact__value:hover { color: var(--accent-text); }
.js .contact__item--wide .contact__value { color: var(--muted); opacity: .55; transition: color 1.1s var(--ease) .35s, opacity .9s var(--ease) .3s, transform .9s var(--ease-out) .25s; transform: translateX(-10px); display: inline-block; }
.js .contact__item--wide.is-visible .contact__value { color: var(--fg); opacity: 1; transform: none; }
.js .contact__item--wide.is-visible a.contact__value:hover { color: var(--accent-text); }
.contact__note { color: var(--muted); font-size: .95rem; }
.footer__top { padding-block: 11px; margin-block: -11px; }
.copy {
  justify-self: start; margin-top: 4px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: var(--muted);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.copy:hover { color: var(--fg); border-color: var(--fg); }
@media (max-width: 800px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- payment (QR) ---------- */
.pay { margin-top: clamp(36px, 5vw, 64px); }
.pay__card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px clamp(32px, 5vw, 72px); align-items: center;
  border: 1px solid var(--line); border-radius: 4px; background: var(--card);
  padding: clamp(22px, 3.4vw, 40px);
}
.pay__title { font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; margin-top: var(--eyebrow-gap); }
.pay__text { color: var(--muted); max-width: 52ch; margin-top: 10px; font-size: .98rem; }
.pay__account { margin-top: 18px; display: grid; gap: 6px; }
.pay__account dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pay__account dd { font-family: var(--font-mono); font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 500; letter-spacing: .02em; overflow-wrap: anywhere; }
@media (max-width: 380px) { .pay__account dd { letter-spacing: 0; font-size: .92rem; } }
.pay__copy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pay__copy .copy { margin-top: 0; }
.pay__qr {
  /* light mode: ink modules on stone. dark mode: inverted (stone modules on near-black) */
  --qr-tile: #ece8e1; --qr-dark: #121214; --qr-finder: #1a4a94; --qr-line: rgba(20, 20, 22, .14);
  position: relative; background: var(--qr-tile); padding: 20px 20px 26px; border-radius: 3px;
  width: clamp(176px, 20vw, 240px); height: auto; justify-self: end;
  box-shadow: inset 0 0 0 1px var(--qr-line);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pay__qr { --qr-tile: #0e0e10; --qr-dark: #ece8e1; --qr-finder: #8db1f0; --qr-line: rgba(241, 238, 232, .14); }
}
:root[data-theme="dark"] .pay__qr { --qr-tile: #0e0e10; --qr-dark: #ece8e1; --qr-finder: #8db1f0; --qr-line: rgba(241, 238, 232, .14); }
/* hover or a click switches the tile to the light version, which every scanner reads */
:root .pay__qr:hover, :root .pay__qr.is-light { --qr-tile: #ece8e1; --qr-dark: #121214; --qr-finder: #1a4a94; --qr-line: rgba(20, 20, 22, .14); }
.pay__qr { transition: background-color .35s var(--ease); }
.pay__qr path { transition: stroke .35s var(--ease); }
/* the hint and the click only matter in dark mode, where the code is inverted */
.pay__qr::before {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  /* .66rem is the smallest size used elsewhere; the strings are kept short enough for the 176px tile */
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; color: var(--qr-finder); opacity: 0; transition: opacity .3s var(--ease); white-space: nowrap;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pay__qr { cursor: pointer; }
  :root:not([data-theme="light"]) .pay__qr::before { content: "klepnutím zůstane světlý"; }
  :root:not([data-theme="light"]) .pay__qr:hover::before, :root:not([data-theme="light"]) .pay__qr.is-light::before { opacity: .8; }
  :root:not([data-theme="light"]) .pay__qr.is-light::before { content: "klepnutím zpět"; }
}
:root[data-theme="dark"] .pay__qr { cursor: pointer; }
:root[data-theme="dark"] .pay__qr::before { content: "klepnutím zůstane světlý"; }
:root[data-theme="dark"] .pay__qr:hover::before, :root[data-theme="dark"] .pay__qr.is-light::before { opacity: .8; }
:root[data-theme="dark"] .pay__qr.is-light::before { content: "klepnutím zpět"; }
@media (hover: none) {
  :root[data-theme="dark"] .pay__qr::before { content: "klepnutím zesvětlíte kód"; opacity: .7; }
  :root[data-theme="dark"] .pay__qr.is-light::before { content: "klepnutím zpět"; }
}
@media (hover: none) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pay__qr::before { content: "klepnutím zesvětlíte kód"; opacity: .7; }
  :root:not([data-theme="light"]) .pay__qr.is-light::before { content: "klepnutím zpět"; }
}
.pay__qr::after {
  content: "QR PLATBA · CZK";
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; color: var(--qr-finder); white-space: nowrap; opacity: .85;
}
.pay__qr img, .pay__qr svg { width: 100%; height: auto; display: block; }
.pay__qr svg { width: 100%; height: auto; display: block; }
.pay__billing { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(13ch, 1fr)); gap: 12px 20px; }
.pay__billing dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pay__billing dd { font-size: .95rem; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pay__billing > div:not(:first-child) dd { overflow-wrap: normal; }
@media (max-width: 900px) {
  .pay__billing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay__billing > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .pay__billing { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pay__card { grid-template-columns: 1fr; }
  .pay__qr { justify-self: start; }
}

/* ---------- footer ---------- */
.footer { background: var(--bg); color: var(--muted); border-top: 1px solid var(--line); }
.footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding-block: 22px calc(26px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em;
}
.footer__top { color: var(--fg); }

/* ---------- light sweeps: a soft beam crosses the photos every ~14 s ---------- */
.hero__media::before, .band__media::before, .profile__media::before, .intro__portrait::before {
  content: ""; position: absolute; inset: -20% -40%; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(225, 235, 255, .10) 49%, rgba(225, 235, 255, .16) 50%, rgba(225, 235, 255, .10) 51%, transparent 58%);
  transform: translateX(-70%);
  animation: sweep 14s linear infinite;
}
.band__media::before { animation-delay: 4s; }
.profile__media::before { animation-delay: 7s; }
.intro__portrait::before { animation-delay: 9s; }
@keyframes sweep {
  0% { transform: translateX(-70%); }
  14% { transform: translateX(70%); }
  100% { transform: translateX(70%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media::before, .band__media::before, .profile__media::before, .intro__portrait::before { animation: none; display: none; }
}

/* ---------- reveal / media fades ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js:not(.is-ready) .hero [data-reveal].is-visible { opacity: 0; transform: translateY(26px); }
.js .hero [data-reveal] { transition-duration: .6s, .7s; }
.js img[data-fade] { opacity: 0; transition: opacity .7s var(--ease); }
.js img[data-fade].is-loaded { opacity: 1; }
.js .hero__media img[data-fade] { transition: opacity .7s var(--ease), transform 2.4s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js:not(.is-ready) .hero [data-reveal].is-visible { opacity: 1; transform: none; }
  .js .hero__media img { transform: none; }
  .js .band__media img, .js .profile__media img { transform: none !important; }
}
