/* Brand headline: Astronoma. Satoshi supports navigation and body copy. */
@font-face {
  font-family: Satoshi;
  src: url('./assets/satoshi-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Satoshi;
  src: url('./assets/satoshi-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Satoshi;
  src: url('./assets/satoshi-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.hero,
.hero-caption {
  font-family: Satoshi, Arial, sans-serif;
}
.hero { min-height: 690px; }
.hero-media { z-index: 0; animation-duration: 32s; object-position: center 48%; translate: 0 var(--hero-parallax, 0px); }
.hero::before {
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, #00000008 0%, #09100b08 25%, #0c130e35 52%, #101411b3 100%);
}
.hero-blur {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(transparent 48%, #000 100%);
  mask-image: linear-gradient(transparent 48%, #000 100%);
}
.hero-blur .hero-media { filter: blur(35px); }
.hero::after {
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(0deg, #13141535, transparent 25%), linear-gradient(90deg, #00000012, transparent 75%);
}
.hero-inner {
  position: relative;
  z-index: 4;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, .95fr);
  gap: 4vw;
  padding-bottom: 66px;
}
.hero h1:focus { outline: none; }
/* The longest line ("PRO VÁŠ PROSTOR.") is ~9.8 em wide, so the size follows the column width. */
.hero-title { container-type: inline-size; }
.hero h1 {
  font-family: Astronoma, Arial, sans-serif;
  font-size: min(calc(100cqi / 10), 136px);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.16;
}
.hero h1 > span {
  display: block;
  padding: .17em .03em .07em 0;
  margin: -.17em -.03em -.07em 0;
  animation: none;
  white-space: nowrap;
}
.hero h1 .hero-character {
  display: inline-block;
  /* Astronoma accents extend above its nominal ascender. Give each animated
     layer its own ink allowance, while retaining the original text spacing. */
  padding: .35em .08em .15em;
  margin: -.35em -.08em -.15em;
  overflow: visible;
  animation: none;
  transform-origin: 50% 80%;
  will-change: auto;
}
.hero.is-entering .hero-character { will-change: transform, opacity; }
.hero-side { animation: none; padding-bottom: 0; }
.hero-description {
  font-size: clamp(16px, 1.2vw, 21px);
  letter-spacing: -.015em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 390px;
}
.hero-actions { gap: 12px; }

/* A small dot instead of an arrow; on hover it grows smoothly until it fills the whole button. Labels stay in place. */
.motion-cta {
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --cta-fill: var(--blue);
  --cta-hover-ink: #fff;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 7px 21px 7px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.015em;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color .65s var(--motion-ease), color .45s;
}
.motion-cta.pill:hover { transform: none; }
.motion-cta::before {
  content: '';
  position: absolute;
  right: 21px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 100px;
  background: var(--cta-fill);
  transform: translateY(-50%);
  transition: width .65s var(--motion-ease), height .65s var(--motion-ease), right .65s var(--motion-ease);
  z-index: 0;
}
.motion-cta:is(:hover, :focus-visible)::before {
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  right: -1px;
}
.motion-label {
  display: block;
  position: relative;
  line-height: 1.5;
  padding: .25em 0;
  z-index: 1;
  transition: color .45s;
}
.motion-label > span { display: block; }
.motion-cta:is(:hover, :focus-visible) .motion-label { color: var(--cta-hover-ink); }
.motion-cta .arrow { width: 10px; height: 10px; flex: none; background: none; }
.hero .motion-cta {
  --cta-fill: #f5f5f0;
  --cta-hover-ink: #131415;
  color: #fafaf7;
  border: 1px solid #ffffff8c;
  background: #161b1620;
}
.hero .motion-cta:is(:hover, :focus-visible) { background: #161b1620; border-color: #f5f5f0; }
.hero .motion-cta--secondary { border-color: #ffffff38; }
/* The secondary action starts as an empty ring, so the primary one keeps the stronger mark. */
.hero .motion-cta--secondary::before { background: transparent; box-shadow: inset 0 0 0 1px #f5f5f0; transition: width .65s var(--motion-ease), height .65s var(--motion-ease), right .65s var(--motion-ease), background .3s; }
.hero .motion-cta--secondary:is(:hover, :focus-visible)::before { background: #f5f5f0; }
.site-header .motion-cta { min-height: 52px; font-size: 14px; gap: 24px; background: #f5f5f0; color: #131415; }
.replay-intro {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #ffffff55;
  border-radius: 100px;
  background: transparent;
  padding: 12px 18px;
  font-size: 12px;
  margin-top: 25px;
}
.replay-intro:hover { background: #ffffff10; }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); gap: 30px; }
  .hero-description { font-size: 15px; }
  .hero .motion-cta { font-size: 12px; gap: 12px; padding-left: 17px; }
  .hero-actions { gap: 10px; }
}
@media (max-width: 760px) {
  .hero { min-height: 660px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 110px var(--pad) 40px; }
  .hero h1 { letter-spacing: -.03em; line-height: 1.15; }
  .hero-description { font-size: 15px; line-height: 1.55; margin-bottom: 22px; max-width: 340px; }
  .hero-media { object-position: 53% 45%; }
  .hero-blur { -webkit-mask-image: linear-gradient(transparent 42%, #000 100%); mask-image: linear-gradient(transparent 42%, #000 100%); }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .hero .motion-cta { gap: 12px; font-size: 12px; min-height: 48px; padding: 6px 17px 6px 15px; }
  .hero .motion-cta::before { right: 17px; }
  .hero .motion-cta--secondary { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .hero-character { transform: none !important; filter: none !important; opacity: 1 !important; }
  .motion-cta::before,
  .hero .motion-cta--secondary::before { transition: none; }
  .replay-intro { display: none; }
}
