@font-face{font-family:'Tenor Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/tenor-sans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113}
@font-face{font-family:'Tenor Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/tenor-sans-latin.woff2) format('woff2');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+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/hanken-grotesk-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/hanken-grotesk-latin.woff2) format('woff2');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+2215,U+FEFF,U+FFFD}
/* AMANI World — rozcestník značiek
   Layout: anthracite brand band (logo, thesis, quick index) → Cloud Dancer directory of
   seven photo cards in a three-column grid → anthracite contact tile and footer.
   The shell keeps the brand manual's anthracite and pearl; one warm horizon line (the
   "one world") lights the dark panels, the footer closes in white. Colour otherwise
   comes from the projects' own imagery. One deliberate look, no dark/light switching. */
:root {
  /* brand manual: Vulcanized, Cloud Dancer, Black, White */
  --vulc: #434343;
  --vulc-deep: #2c2c2c;
  --cloud: #f2eee9;
  --cloud-shade: #e6e0d8;
  --ink: #1c1c1c;
  --stone: #66615b;
  --white: #ffffff;
  --pearl-soft: rgba(242, 238, 233, 0.66);
  --pearl-line: rgba(242, 238, 233, 0.22);
  --ink-line: rgba(28, 28, 28, 0.16);
  --glow: 214, 170, 112; /* warm light on the horizon line */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Tenor Sans", Optima, Candara, "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.3rem + 2.2vw, 2.875rem);
  --step-4: clamp(2.5rem, 0.9rem + 5vw, 5.75rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 82rem;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--vulc); color: var(--cloud); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -6rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.skip:focus { top: calc(0.75rem + env(safe-area-inset-top, 0px)); }

.label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.arrow { width: 0.7em; height: 0.7em; flex: none; transition: transform 0.3s ease; }

/* ───────────── Brand band ───────────── */
.band {
  position: relative;
  isolation: isolate;
  background: linear-gradient(118deg, #4b4b4b 0%, var(--vulc) 38%, var(--vulc-deep) 100%);
  color: var(--cloud);
  overflow: hidden;
  /* geometry of the world, shared by the disc and the points that travel around it */
  --world: max(260rem, 300vw);
  --world-x: 74%;
  --world-top: calc(100% - clamp(3.25rem, 6vw, 5.75rem));
  --orbit-gap: 2.5rem;
  --sat-rest: -7deg;
  --sat-from: -22deg;
  --sat-to: 13deg;
  --sat-time: 30s;
}
.band::before {
  /* one world: a wide horizon with a warm, lit rim, resting on the lower edge */
  content: "";
  position: absolute;
  z-index: -1;
  width: var(--world);
  aspect-ratio: 1;
  left: var(--world-x);
  top: var(--world-top);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, #1c1c1c 0%, #1e1e1e 98.6%, #2b2620 99.6%, #3d3428 100%);
  box-shadow:
    0 0 0 1px rgba(var(--glow), 0.6),
    0 0 22px 2px rgba(var(--glow), 0.36),
    0 0 120px 18px rgba(var(--glow), 0.2);
}

/* small points travelling round the world: one along the lit rim, one on a faint orbit above it */
.band__sat {
  position: absolute;
  z-index: -1;
  width: var(--world);
  aspect-ratio: 1;
  left: var(--world-x);
  top: var(--world-top);
  translate: -50% 0;
  rotate: var(--sat-rest);
  border-radius: 50%;
  pointer-events: none;
}
.band__sat::before {
  /* the point itself sits at twelve o'clock; turning the ring carries it along the arc */
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 0.4375rem;
  height: 0.4375rem;
  translate: -50% -50%;
  border-radius: 50%;
  background: #f3dfbd;
  box-shadow: 0 0 10px 3px rgba(var(--glow), 0.55), 0 0 28px 8px rgba(var(--glow), 0.22);
}
.band__sat--rim::after {
  /* a short trail behind the rim point */
  content: "";
  position: absolute;
  right: 50%;
  top: -0.5px;
  width: 5.5rem;
  height: 1px;
  background: linear-gradient(to left, rgba(243, 223, 189, 0.85), rgba(243, 223, 189, 0));
}
.band__sat--outer {
  width: calc(var(--world) + 2 * var(--orbit-gap));
  top: calc(var(--world-top) - var(--orbit-gap));
  rotate: calc(var(--sat-rest) * -0.6);
  border: 1px solid rgba(242, 238, 233, 0.1);
}
.band__sat--outer::before {
  width: 0.3125rem;
  height: 0.3125rem;
  background: var(--cloud);
  box-shadow: 0 0 8px 2px rgba(242, 238, 233, 0.4);
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 1.5rem 1.25rem;
}
.masthead__nav { display: flex; gap: 1.75rem; }
.masthead__nav a,
.lang a {
  padding-block: 0.6rem;
  color: var(--pearl-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.masthead__nav a:hover,
.lang a:hover { color: var(--cloud); }
.masthead__logo { display: block; color: var(--cloud); line-height: 0; }
.masthead__logo svg { width: auto; height: 5.5rem; }
.lang { display: flex; justify-content: flex-end; gap: 1.1rem; }
.lang a[aria-current="true"] { color: var(--cloud); box-shadow: 0 1px 0 0 currentColor; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(5.5rem, 10.5vw, 9.5rem);
}
.hero__thesis { display: grid; gap: 1.5rem; min-width: 0; }
.hero .label { color: var(--pearl-soft); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero h1 .line { display: block; padding-block: 0.14em; margin-block: -0.14em; }
.hero h1 .line > span { display: block; }
.hero h1 .line--soft { color: var(--pearl-soft); }
.hero__lead { max-width: 34rem; color: var(--pearl-soft); font-size: var(--step-1); }

.index { min-width: 0; }
.index .label { color: var(--pearl-soft); padding-bottom: 0.9rem; }
.index li { border-top: 1px solid var(--pearl-line); }
.index li:last-child { border-bottom: 1px solid var(--pearl-line); }
.index a {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.72rem;
  text-decoration: none;
  transition: padding 0.3s ease;
}
.index__name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; white-space: nowrap; }
.index__tag { color: var(--pearl-soft); font-size: var(--step--1); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.index a .arrow { color: var(--pearl-soft); }
.index a:hover { padding-left: 0.5rem; }
.index a:hover .arrow { color: var(--cloud); transform: translate(2px, -2px); }

/* ───────────── Directory ───────────── */
.directory { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.directory__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.directory__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters button {
  font: inherit;
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1;
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: transparent;
  color: var(--stone);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--vulc); border-color: var(--vulc); color: var(--cloud); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.25rem, 3.5vw, 3.25rem) clamp(1.25rem, 2.4vw, 2.25rem);
}

.card { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.card__media { aspect-ratio: 3 / 2; max-width: 100%; overflow: hidden; background: var(--cloud-shade); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1); }
.card__body { display: flex; flex-direction: column; flex: 1; gap: 0.6rem; padding-top: 1.15rem; }
.card .label { color: var(--stone); }
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.005em; }
.card__text { color: var(--stone); max-width: 36rem; }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ink-line);
  font-size: var(--step--1);
}
.card__go { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; min-width: 0; }
.card__go span { overflow-wrap: anywhere; }
.card__langs { color: var(--stone); letter-spacing: 0.08em; white-space: nowrap; }
.card:hover .card__media img { transform: scale(1.035); }
.card:hover .arrow { transform: translate(2px, -2px); }
.card:hover .card__go span { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }

.contact {
  position: relative;
  isolation: isolate;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background: linear-gradient(118deg, #4b4b4b 0%, var(--vulc) 45%, var(--vulc-deep) 100%);
  color: var(--cloud);
  overflow: hidden;
}
.contact::before {
  /* the same world seen from further out: orbits around it, one point marked */
  content: "";
  position: absolute;
  z-index: -1;
  width: 58rem;
  aspect-ratio: 1;
  right: -24.5rem;
  bottom: -30.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 1200' fill='none'%3E%3Cdefs%3E%3Cfilter id='b1' x='-50%' y='-50%' width='200%' height='200%'%3E%3CfeGaussianBlur stdDeviation='16'/%3E%3C/filter%3E%3Cfilter id='b2' x='-50%' y='-50%' width='200%' height='200%'%3E%3CfeGaussianBlur stdDeviation='4'/%3E%3C/filter%3E%3CradialGradient id='w' cx='50%' cy='50%' r='50%'%3E%3Cstop offset='0' stop-color='%231b1b1b'/%3E%3Cstop offset='.94' stop-color='%231f1f1f'/%3E%3Cstop offset='1' stop-color='%233a3228'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg stroke='%23F2EEE9' stroke-width='1.5'%3E%3Ccircle cx='600' cy='600' r='290' opacity='.2'/%3E%3Ccircle cx='600' cy='600' r='390' opacity='.15'/%3E%3Ccircle cx='600' cy='600' r='490' opacity='.11'/%3E%3Ccircle cx='600' cy='600' r='590' opacity='.07'/%3E%3C/g%3E%3Ccircle cx='600' cy='600' r='180' stroke='%23D6AA70' stroke-width='26' opacity='.3' filter='url(%23b1)'/%3E%3Ccircle cx='600' cy='600' r='180' fill='url(%23w)'/%3E%3Ccircle cx='600' cy='600' r='180' stroke='%23D6AA70' stroke-width='5' opacity='.5' filter='url(%23b2)'/%3E%3Ccircle cx='600' cy='600' r='180' stroke='%23D6AA70' stroke-width='1.6' opacity='.85'/%3E%3Ccircle cx='362' cy='434' r='16' fill='%23D6AA70' opacity='.35' filter='url(%23b2)'/%3E%3Ccircle cx='362' cy='434' r='5.5' fill='%23F0D9B4'/%3E%3Ccircle cx='566' cy='988' r='16' fill='%23D6AA70' opacity='.35' filter='url(%23b2)'/%3E%3Ccircle cx='566' cy='988' r='5.5' fill='%23F0D9B4'/%3E%3Ccircle cx='1044' cy='393' r='16' fill='%23D6AA70' opacity='.35' filter='url(%23b2)'/%3E%3Ccircle cx='1044' cy='393' r='5.5' fill='%23F0D9B4'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.grid[data-rem3="2"] .contact { grid-column: span 1; }
.grid[data-rem3="2"] .contact { padding-bottom: 4.75rem; }
.grid[data-rem3="2"] .contact::before { width: 40rem; right: -18.5rem; bottom: -23rem; }
.grid[data-rem3="0"] .contact { grid-column: 1 / -1; }
.contact .label { color: var(--pearl-soft); }
.contact h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.contact p { max-width: 30rem; color: var(--pearl-soft); }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; padding-top: 0.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--cloud);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.button:hover { background: var(--white); }
.button:hover .arrow { transform: translate(2px, -2px); }
.contact__phone { color: var(--cloud); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; text-decoration: none; }
a.contact__phone:hover { text-decoration: underline; text-underline-offset: 0.25em; }

.count { padding-top: clamp(1.5rem, 3vw, 2.25rem); color: var(--stone); font-size: var(--step--1); }

/* ───────────── Footer ───────────── */
.foot { background: var(--white); color: var(--stone); font-size: var(--step--1); }
.foot__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
}
.foot__logo { color: var(--vulc); line-height: 0; }
.foot__logo svg { width: auto; height: 6.5rem; }
.foot .label { color: var(--ink); padding-bottom: 0.75rem; }
.foot address { font-style: normal; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }
.foot__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem 1.5rem; }
.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid var(--ink-line);
}

/* ───────────── Narrower screens ───────────── */
@media (max-width: 68rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact,
  .grid[data-rem3="2"] .contact,
  .grid[data-rem3="0"] .contact { grid-column: span 1; }
  .grid[data-rem2="0"] .contact { grid-column: 1 / -1; }
  .contact { padding-bottom: clamp(3.75rem, 8vw, 4.75rem); }
  .contact::before { width: 40rem; right: -18.5rem; bottom: -23rem; }
  .foot__grid { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); }
  .foot__grid > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .index { display: none; }
  .band { --world-x: 60%; --orbit-gap: 1.5rem; --sat-rest: -2.5deg; --sat-from: -11deg; --sat-to: 8deg; --sat-time: 22s; }
  .hero { padding-bottom: clamp(6.75rem, 10.5vw, 9.5rem); }
}

@media (max-width: 40rem) {
  .masthead { grid-template-columns: auto 1fr; padding-block: 1.1rem 0.5rem; }
  .masthead__nav { display: none; }
  .masthead__logo svg { height: 4.5rem; }
  .hero__lead { font-size: var(--step-0); }
  .directory__head { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .directory__head > * { min-width: 0; }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-block: 0.25rem;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .contact,
  .grid[data-rem2="0"] .contact,
  .grid[data-rem3="2"] .contact,
  .grid[data-rem3="0"] .contact { grid-column: auto; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__grid > :last-child { grid-column: auto; }
  .foot__logo svg { height: 5.5rem; }
}

/* ───────────── Motion ─────────────
   Everything below applies only when head.js has put .motion on <html>:
   scripts work and the visitor has not asked for reduced motion. */
@keyframes rise { from { opacity: 0; translate: 0 1.75rem; } }
@keyframes fade { from { opacity: 0; } }
@keyframes line-up { from { translate: 0 114%; } }
@keyframes slide-in { from { opacity: 0; translate: 2.25rem 0; } }
@keyframes planet-rise { from { opacity: 0; translate: 0 8rem; } }
@keyframes orbit { to { rotate: 360deg; } }
@keyframes glide { from { rotate: var(--sat-from); } to { rotate: var(--sat-to); } }

/* opening sequence */
.motion .masthead { animation: fade 1.1s ease-out 0.05s backwards; }
.motion .hero__thesis > .label { animation: rise 0.9s var(--ease) 0.2s backwards; }
.motion .hero h1 .line { overflow: hidden; }
.motion .hero h1 .line > span { animation: line-up 1.2s var(--ease) 0.3s backwards; }
.motion .hero h1 .line--soft > span { animation-delay: 0.43s; }
.motion .hero__lead { animation: rise 1s var(--ease) 0.72s backwards; }
.motion .index > .label { animation: fade 0.9s ease-out 0.6s backwards; }
.motion .index li { animation: slide-in 0.95s var(--ease) backwards; }
.motion .index li:nth-child(1) { animation-delay: 0.62s; }
.motion .index li:nth-child(2) { animation-delay: 0.69s; }
.motion .index li:nth-child(3) { animation-delay: 0.76s; }
.motion .index li:nth-child(4) { animation-delay: 0.83s; }
.motion .index li:nth-child(5) { animation-delay: 0.9s; }
.motion .index li:nth-child(6) { animation-delay: 0.97s; }
.motion .index li:nth-child(7) { animation-delay: 1.04s; }
.motion .index ol:hover a { opacity: 0.5; transition: opacity 0.3s ease, padding 0.3s ease; }
.motion .index ol:hover a:hover { opacity: 1; }

/* the world rises on load, then keeps rising as the page scrolls (--p runs 0 → 1 across the band) */
.motion .band::before {
  animation: planet-rise 2.2s var(--ease) 0.15s backwards;
  translate: 0 calc(var(--p, 0) * -5.5rem);
}
.motion .band__sat { translate: -50% calc(var(--p, 0) * -5.5rem); }
.motion .band__sat--rim { animation: glide var(--sat-time) linear infinite, fade 1.8s ease-out 1.5s backwards; }
.motion .band__sat--outer { animation: glide calc(var(--sat-time) * 1.7) linear -14s infinite reverse, fade 1.8s ease-out 1.9s backwards; }
.motion .band::after {
  /* warm light on the horizon; follows the pointer via --mx */
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--mx, var(--world-x));
  bottom: clamp(3.25rem, 6vw, 5.75rem);
  width: 48rem;
  height: 15rem;
  translate: -50% calc(50% + var(--p, 0) * -5.5rem);
  background: radial-gradient(closest-side, rgba(var(--glow), 0.22), rgba(var(--glow), 0));
  pointer-events: none;
  animation: fade 2.4s ease-out 0.6s backwards;
}
.motion .hero__thesis { translate: 0 calc(var(--p, 0) * 5.5rem); opacity: calc(1.5 - var(--p, 0) * 2); }
.motion .index { translate: 0 calc(var(--p, 0) * 2.75rem); opacity: calc(1.65 - var(--p, 0) * 2); }

/* sections arrive as they scroll into view */
.motion [data-reveal] {
  opacity: 0;
  translate: 0 2.25rem;
  transition: opacity 0.9s ease-out var(--d, 0s), translate 1.05s var(--ease) var(--d, 0s);
}
.motion [data-reveal].is-in { opacity: 1; translate: 0 0; }
.motion .card .card__media { clip-path: inset(0 0 100% 0); transition: clip-path 1.25s var(--ease) var(--d, 0s); }
.motion .card.is-in .card__media { clip-path: inset(0 0 0 0); }
/* pictures drift inside their frames while scrolling (--py runs −1 → 1 across the screen) */
.motion .card__media img { scale: 1.12; translate: 0 calc(var(--py, 0) * 3.6%); }
.motion .grid > :nth-child(3n + 2) { --d: 0.09s; }
.motion .grid > :nth-child(3n) { --d: 0.18s; }
.motion .filters[data-reveal] { --d: 0.12s; }
.motion .foot__grid > :nth-child(2) { --d: 0.07s; }
.motion .foot__grid > :nth-child(3) { --d: 0.14s; }
.motion .foot__grid > :nth-child(4) { --d: 0.21s; }

/* the orbits turn slowly; the system settles into place as the tile scrolls in (--cp 0 → 1) */
.motion .contact::before {
  animation: orbit 90s linear infinite;
  scale: calc(0.84 + var(--cp, 1) * 0.16);
}

/* filtered cards glide to their new places */
.motion #visual { view-transition-name: card-visual; }
.motion #invest { view-transition-name: card-invest; }
.motion #pobyty { view-transition-name: card-pobyty; }
.motion #journeys { view-transition-name: card-journeys; }
.motion #matchlens { view-transition-name: card-matchlens; }
.motion #munio { view-transition-name: card-munio; }
.motion #estate { view-transition-name: card-estate; }
.motion #kontakt { view-transition-name: contact-tile; }
::view-transition-group(*) { animation-duration: 0.6s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }

/* over a project picture the pointer becomes a small orbit: a glass ring, a label, one point circling */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  margin: -2.125rem 0 0 -2.125rem;
  border-radius: 50%;
  background: rgba(24, 24, 24, 0.38);
  -webkit-backdrop-filter: blur(9px) saturate(1.15);
  backdrop-filter: blur(9px) saturate(1.15);
  box-shadow: inset 0 0 0 1px rgba(242, 238, 233, 0.6);
  color: var(--cloud);
  pointer-events: none;
  opacity: 0;
  scale: 0.45;
  transition: scale 0.45s var(--ease), opacity 0.25s ease;
}
.cursor.is-on { opacity: 1; scale: 1; }
.cursor__label {
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-left: 0.16em;
}
.cursor__orbit { position: absolute; inset: 0; border-radius: 50%; animation: orbit 3.4s linear infinite; }
.cursor__orbit i {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0.375rem;
  height: 0.375rem;
  translate: -50% -50%;
  border-radius: 50%;
  background: #f3dfbd;
  box-shadow: 0 0 8px 2px rgba(var(--glow), 0.7);
}
@media (hover: hover) and (pointer: fine) {
  .motion .card__media { cursor: none; }
}

@media (max-width: 68rem) {
  .motion .grid > :nth-child(n) { --d: 0s; }
  .motion .grid > :nth-child(2n) { --d: 0.09s; }
}
@media (max-width: 40rem) {
  .motion .grid > :nth-child(n) { --d: 0s; }
  .motion .foot__grid > :nth-child(n) { --d: 0s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.notfound { background: var(--vulc-deep); }
.notfound__text { display: grid; gap: 0.9rem; max-width: 40rem; color: var(--pearl-soft); }
.notfound__text a { color: var(--cloud); }
