/* ============================================================
   vaclavmudra.com — návrh v5.1 „Modrotisk"
   Technický bright: studená běloba, inkoust, kobalt, kyselina.
   Archivo (display) · Instrument Sans (text) · Spline Sans Mono (meta)
   ============================================================ */

/* ---------- Fonty (self-hosted, latin + latin-ext) ---------- */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-normal-100-900-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-normal-100-900-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-normal-400-700-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-normal-400-700-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("../fonts/spline-sans-mono-normal-400-600-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("../fonts/spline-sans-mono-normal-400-600-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokeny ---------- */

:root {
  --bg: #f5f7f6;
  --bg-2: #eceeec;
  --ink: #101413;
  --ink-2: #4c5551;
  --ink-3: #68726e; /* 4.62:1 na --bg (bylo 3.35:1) — nese datumy a labely */
  --line: rgba(16, 20, 19, 0.13);
  --line-strong: rgba(16, 20, 19, 0.38);
  --blue: #2547f0;
  --blue-deep: #1c36bd;
  --acid: #d7f94b;

  --font-display: "Archivo", -apple-system, "Segoe UI", sans-serif;
  --font-text: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 56px;
  --ease-out: cubic-bezier(0.2, 0.7, 0, 1);
}

/* ---------- Reset & základ ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.section--ink a:focus-visible, .section--ink button:focus-visible {
  outline-color: var(--acid);
}

::selection { background: var(--acid); color: var(--ink); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ast { color: var(--blue); font-style: normal; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
  transition: top 160ms var(--ease-out);
}
.skip-link:focus-visible { top: 12px; }

/* Textové odkazy: podtržení roste zleva */
.u-link, .contact__links a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 280ms var(--ease-out), color 160ms ease;
  padding-bottom: 2px;
}
.u-link:hover, .contact__links a:hover {
  background-size: 100% 1px;
}

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.wordmark {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .ast { margin-right: 8px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.nav__list a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 3px;
  transition: background-size 240ms var(--ease-out), color 160ms ease;
}
.nav__list a:hover { color: var(--ink); background-size: 100% 2px; }

.lang {
  display: inline-flex;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.lang a {
  padding: 3px 8px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}
.lang a:hover { color: var(--ink); border-color: var(--line-strong); }
.lang a.is-active {
  background: var(--ink);
  color: var(--acid);
  border-color: var(--ink);
}

@media (max-width: 760px) {
  /* Projekty + Kontakt zůstávají na všech šířkách — stránka je ~9000 px
     vysoká a jinak se k projektům nedá dostat jinak než scrollováním. */
  .nav__list li:not(:nth-child(3)):not(:nth-child(5)) { display: none; }
  .nav { gap: 14px; }
  .nav__list { gap: 16px; }
  /* Jazykový přepínač měl 33×26 px, což je pod hranicí pro palec. */
  .lang { gap: 6px; }
  .lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 6vh, 72px) 0 clamp(48px, 7vh, 88px);
  /* rýsovací grid */
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}
.hero::after {
  /* grid se ke spodu vytrácí */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--bg) 96%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 640;
  font-stretch: 115%;
  font-size: clamp(38px, 6.8vw, 96px);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero__name .ast { color: var(--blue); }
.js .hero__name {
  animation: hero-rise 800ms var(--ease-out) backwards;
}
@keyframes hero-rise {
  from { transform: translateY(0.3em); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.hero__role {
  margin-top: 22px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.hero__role .hl {
  background: var(--acid);
  padding: 2px 6px;
  /* Na ≤390 px se „Solution Architect" lámal na dva řádky a acidové
     zvýraznění se roztrhlo na dva kusy. Je to Brand Commitment string. */
  white-space: nowrap;
}
.hero__lede {
  margin-top: 18px;
  max-width: 56ch;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
}

/* Schéma (canvas) + razítko */
.hero__viz {
  position: relative;
  min-height: 320px;
}
.hero__viz canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 13 / 10;
}
.stamp {
  position: absolute;
  right: -12px;
  bottom: -28px;
  width: clamp(104px, 9.5vw, 136px);
  aspect-ratio: 1;
  color: var(--blue);
  z-index: 2;
  border-radius: 50%;
  transform: rotate(calc(-8deg + var(--boost, 0deg)));
  transition: color 200ms ease;
}
.stamp:hover { color: var(--blue-deep); }
.stamp__spin { width: 100%; height: 100%; }
.js .stamp__spin { animation: spin 48s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stamp__text {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  fill: currentColor;
}
.stamp__center {
  font-size: 44px;
  fill: currentColor;
}
@media (max-width: 920px) {
  .hero__viz { min-height: 0; margin-top: 8px; }
  .stamp { right: 0; bottom: -16px; width: 104px; }
}

/* ---------- Marquee pásy ---------- */

.band {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;
}
.band__row {
  padding: 14px 0;
  white-space: nowrap;
  overflow: hidden;
}
.band__row--b {
  border-top: 1px solid var(--ink);
  background: var(--acid);
}
.band__track {
  display: inline-flex;
  will-change: transform;
}
.band__seq {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.band__row--b .band__seq { color: var(--ink); }
.band__seq > span { padding: 0 22px; }
.band__seq > i { color: var(--blue); font-style: normal; }
.band__row--b .band__seq > i { color: var(--ink); }

/* ---------- Sekce ---------- */

.section {
  position: relative;
  padding: clamp(80px, 11vh, 128px) 0;
  border-top: 1px solid var(--line-strong);
}
.section:first-of-type, .band + .section { border-top: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: clamp(32px, 5vh, 56px);
}
.section-head__index {
  color: var(--blue);
  flex-shrink: 0;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 620;
  font-stretch: 108%;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-head__note {
  margin-left: auto;
  color: var(--ink-3);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .section-head { flex-wrap: wrap; gap: 10px 24px; }
  /* Glosa zůstává i na mobilu. U sekce 03 je to jediná nápověda, že se
     karty skládají — a byla schovaná přesně tam, kde je to chování
     nejpřekvapivější. Zalomí se na vlastní řádek. */
  .section-head__note { margin-left: 0; flex-basis: 100%; }
}

/* ---------- 01 Rejstřík kompetencí ---------- */

.index-list__row {
  display: grid;
  grid-template-columns: 72px 1.1fr 1.3fr;
  gap: 12px 40px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.index-list__row:first-child { padding-top: 4px; }
.index-list__num {
  color: var(--ink-3);
  transition: color 200ms ease;
}
.index-list__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 105%;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  position: relative;
  transition: transform 320ms var(--ease-out);
}
.index-list__title::before {
  content: "✳";
  position: absolute;
  left: -1em;
  color: var(--blue);
  opacity: 0;
  font-size: 0.7em;
  top: 0.25em;
  transition: opacity 240ms ease;
}
.index-list__row:hover .index-list__title { transform: translateX(14px); }
.index-list__row:hover .index-list__title::before { opacity: 1; }
.index-list__row:hover .index-list__num { color: var(--blue); }
.index-list__desc {
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 58ch;
}
@media (max-width: 860px) {
  /* Číslice je aria-hidden dekorace — na mobilu brala 12 % šířky textu. */
  .index-list__row { grid-template-columns: 32px 1fr; gap: 10px 16px; }
  .index-list__desc { grid-column: 2; }
}

/* ---------- 02 Pro koho ---------- */

.sectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 5vw, 80px);
}
.sectors__col + .sectors__col {
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(32px, 5vw, 80px);
}
.tag {
  display: inline-block;
  color: var(--ink);
  background: var(--acid);
  padding: 3px 9px;
  margin-bottom: 18px;
}
.sectors__col h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 105%;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
  max-width: 22ch;
}
.sectors__col p { color: var(--ink-2); max-width: 52ch; }
@media (max-width: 760px) {
  .sectors { grid-template-columns: 1fr; gap: 40px; }
  .sectors__col + .sectors__col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line-strong);
    padding-top: 40px;
  }
}

/* ---------- 03 Balíček projektů ---------- */

.section--deck { padding-bottom: 0; }
.deck { margin-top: -1px; }
.deck__card {
  position: sticky;
  top: calc(var(--header-h) + var(--i) * 15px);
  min-height: min(64vh, 600px);
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border-top: 1.5px solid var(--ink);
}
.deck__card--alt { background: var(--bg-2); }
.deck__card--ink {
  background: var(--ink);
  color: var(--bg);
  border-top-color: var(--bg);
}
.deck__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-top: 28px;
  padding-bottom: 40px;
}
.deck__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  color: var(--ink-3);
}
.deck__card--ink .deck__head { color: rgba(245, 247, 246, 0.6); }

.status { letter-spacing: 0.1em; }
.status--live { color: var(--ink); background: var(--acid); padding: 2px 8px; }
.status--beta { color: var(--ink-2); border: 1px solid var(--line-strong); padding: 2px 8px; }
.status--wip { color: var(--ink-2); border: 1px dashed var(--line-strong); padding: 2px 8px; }
.deck__card--ink .status--wip { color: var(--bg); border-color: rgba(245, 247, 246, 0.5); }

.deck__name {
  font-family: var(--font-display);
  font-weight: 680;
  font-stretch: 110%;
  font-size: clamp(36px, 6.2vw, 84px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-top: clamp(16px, 5vh, 56px);
  transition: color 240ms ease;
}
.deck__card:hover .deck__name { color: var(--blue); }
.deck__card--ink:hover .deck__name { color: var(--acid); }

.deck__desc {
  margin-top: auto;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink-2);
  max-width: 54ch;
}
.deck__card--ink .deck__desc { color: rgba(245, 247, 246, 0.75); }

.deck__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.deck__card--ink .deck__foot {
  color: rgba(245, 247, 246, 0.6);
  border-top-color: rgba(245, 247, 246, 0.25);
}
.deck__url span {
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}
.deck__card:hover .deck__url span { transform: translate(3px, -3px); }
.deck__card:focus-within { outline: 2px solid var(--blue); outline-offset: -2px; }
.cover { position: absolute; inset: 0; z-index: 2; }
/* vedlejší odkazy (GitHub, Marketplace) leží nad odkazem přes celou kartu */
.deck__links { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.deck__more { position: relative; z-index: 3; }
.cover:focus-visible { outline: none; }

@media (max-width: 720px) {
  .deck__card { min-height: 70vh; }
}

/* ---------- 04 O mně ---------- */

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 880px) { .about { grid-template-columns: 1fr; } }

.photo {
  position: relative;
  max-width: 360px;
  margin-bottom: 44px;
}
.photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  filter: grayscale(1) contrast(1.05);
}
/* kobaltový soutisk */
.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(12px, 12px);
  border: 1px solid var(--blue);
  z-index: -1;
}
/* popisek jako štítek uvnitř fotky */
.photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--acid);
  color: var(--ink);
  padding: 3px 8px;
  font-size: 11px;
}

.about-meta h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 32px 0 14px;
}
.about-meta h3:first-child { margin-top: 0; }
.about-meta dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  font-size: 15px;
}
.about-meta dt { color: var(--ink-3); padding-top: 3px; }
.about-meta dd { color: var(--ink-2); line-height: 1.55; }
.about-meta dd strong { color: var(--ink); font-weight: 600; }

/* Timeline */
.timeline { position: relative; }
.timeline__list { padding-left: 36px; }
.timeline__rail, .timeline__line {
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
}
.timeline__rail { background: var(--line); }
.timeline__line {
  background: var(--blue);
  width: 2px;
  left: 3.5px;
  transform-origin: top;
  transform: scaleY(0);
  will-change: transform;
}
html:not(.js) .timeline__line { transform: scaleY(1); }

.timeline li {
  position: relative;
  padding-bottom: 36px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1px solid var(--ink);
}
.timeline li.is-current::before {
  background: var(--acid);
  border-color: var(--ink);
}
.tl__period { color: var(--ink-3); display: block; margin-bottom: 6px; }
.tl__role {
  font-family: var(--font-display);
  font-weight: 620;
  font-stretch: 105%;
  font-size: 19px;
  line-height: 1.3;
}
.tl__via { color: var(--ink-2); margin: 5px 0 8px; text-transform: none; letter-spacing: 0.04em; }
.tl__via .label { color: var(--ink-3); margin-right: 8px; text-transform: uppercase; }
.tl__desc { color: var(--ink-2); font-size: 15.5px; max-width: 58ch; }

/* ---------- 05 Kontakt (inkoustový blok) ---------- */

.section--ink {
  background: var(--ink);
  color: var(--bg);
  border-top: 0;
  /* Rezerva pro fixní ✳ vpravo dole (48 px + 22 px odsazení). Bez ní
     tlačítko sedělo na odkazu „English" (58 % na 390 px, 60 % na 1000 px). */
  padding-bottom: clamp(88px, 12vh, 112px);
}
.contact__index { display: block; color: rgba(245, 247, 246, 0.6); margin-bottom: 28px; }
.contact__index .ast { color: var(--acid); }
.contact__title {
  font-family: var(--font-display);
  font-weight: 680;
  font-stretch: 112%;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: clamp(32px, 6vh, 56px);
}
.contact__email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-stretch: 100%;
  font-size: clamp(22px, 4vw, 50px);
  letter-spacing: -0.01em;
  color: var(--bg);
  text-decoration: none;
  background-image: linear-gradient(var(--acid), var(--acid));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 6px;
  transition: color 240ms ease, background-size 320ms var(--ease-out);
}
.contact__email:hover { color: var(--acid); background-size: 100% 6px; }

.contact__links {
  display: flex;
  align-items: baseline;
  gap: 36px;
  margin-top: clamp(36px, 6vh, 64px);
  color: rgba(245, 247, 246, 0.75);
}
.contact__links a { color: var(--bg); }
.contact__links a span { display: inline-block; transition: transform 200ms var(--ease-out); }
.contact__links a:hover span { transform: translate(3px, -3px); }
.contact__loc { margin-left: auto; color: rgba(245, 247, 246, 0.5); }

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: clamp(48px, 8vh, 88px);
  padding-top: 20px;
  border-top: 1px solid rgba(245, 247, 246, 0.25);
  color: rgba(245, 247, 246, 0.5);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.05em;
}

/* ---------- Zpět nahoru — rotující ✳ ---------- */

.topstar {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease, background 200ms ease;
}
.topstar.is-visible { opacity: 1; visibility: visible; }
.topstar span { display: block; will-change: transform; }
.topstar:hover { background: var(--acid); color: var(--ink); }

/* ---------- Reveal choreografie ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 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;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .stamp__spin { animation: none; }
  .timeline__line { transform: scaleY(1); }
  .band__track, .topstar span { transform: none !important; }
}
