/* Centered Halftone Wordmark and its supporting copy. */
.hero.hero--halftone {
  --hero-night: var(--bg, #0a0a0b);
  --hero-ink: #ececea;
  --hero-accent: var(--accent, #a7c7e7);
  --hero-muted: var(--text-2, #bdbdc1);
  --hero-print-face: 'Geist', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --hero-print-mono: 'Geist Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --hero-mark-height: clamp(5rem, 17vw, 22rem);
  --hero-nav-clearance: calc(var(--nav-top) + var(--nav-height) + var(--space-4));
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(var(--hero-nav-clearance), 1fr) auto 1fr;
  min-block-size: 100vh;
  min-block-size: 100svh;
  overflow: hidden;
  overflow: clip;
  color: var(--hero-ink);
  background: var(--hero-night);
}

.hero.hero--halftone::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: '';
  pointer-events: none;
  background-image: var(--halftone-grain-image, none);
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: .045;
}

.hero.hero--halftone .hero__content {
  position: relative;
  z-index: 2;
  grid-area: 3 / 1;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-block: var(--space-4) clamp(1.25rem, 4vh, 2.5rem);
  text-align: center;
}

.hero.hero--halftone .hero__tagline {
  max-width: 21ch;
  margin: 0;
  color: var(--hero-ink);
  font-family: var(--font-display, var(--hero-print-face));
  font-size: clamp(2rem, min(3.9vw, 5.6vh), 3.75rem);
  font-stretch: 110%;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.hero.hero--halftone .hero__tagline em {
  color: var(--hero-ink);
  font: inherit;
  font-style: italic;
}

.hero.hero--halftone .hero__intro {
  max-width: 34rem;
  margin: var(--space-5) 0 0;
  color: var(--hero-muted);
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.55;
  animation: none;
}

.hero.hero--halftone .hero__wordmark {
  position: relative;
  z-index: 1;
  grid-area: 2 / 1;
  justify-self: center;
  inline-size: min(var(--wrap-width), var(--wrap-max));
  block-size: var(--hero-mark-height);
  min-inline-size: 0;
  container-type: inline-size;
  overflow: hidden;
  overflow: clip;
}

.hero.hero--halftone .hero__wordmark-text {
  position: absolute;
  inset: 50% auto auto 50%;
  width: max-content;
  max-width: none;
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--hero-ink);
  font-family: var(--hero-print-face);
  font-size: clamp(2rem, 13.8vw, 17rem);
  font-size: clamp(2rem, 16cqi, 17rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.06em;
  white-space: nowrap;
  pointer-events: none;
}

.hero.hero--halftone .hero__wordmark-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
  opacity: 0;
}

.hero.hero--halftone .hero__wordmark.is-ready .hero__wordmark-canvas { opacity: 1; }
/* Opacity preserves the real H1 in the accessibility tree. */
.hero.hero--halftone .hero__wordmark.is-ready .hero__wordmark-text { opacity: 0; }

@media (max-width: 700px) {
  .hero.hero--halftone .hero__tagline { font-size: clamp(2.1rem, 9.6vw, 3.6rem); font-stretch: 104%; }
  /* Telefonon a szójel és a szöveg egy csoportként áll középen, köztük levegővel,
     így nem marad óriási üres tér a szójel fölött. */
  .hero.hero--halftone { grid-template-rows: var(--hero-nav-clearance) 1fr auto auto 1fr; }
  .hero.hero--halftone .hero__wordmark { grid-area: 3 / 1; }
  .hero.hero--halftone .hero__content { grid-area: 4 / 1; padding-block-start: clamp(1.75rem, 7vw, 3rem); }
}

@media (min-width: 701px) and (max-height: 800px) {
  .hero.hero--halftone { grid-template-rows: minmax(var(--hero-nav-clearance), 1fr) auto auto; }
}

@media (min-width: 701px) and (max-height: 680px) {
  .hero.hero--halftone { --hero-mark-height: min(17vw, 34vh); }
  .hero.hero--halftone .hero__content { padding-block-end: 1rem; }
}

@media (forced-colors: active) {
  .hero.hero--halftone::after,
  .hero.hero--halftone .hero__wordmark-canvas { display: none; }
  .hero.hero--halftone .hero__wordmark.is-ready .hero__wordmark-text { opacity: 1; }
}
