@font-face {
  font-family: "Bebas Neue";
  src: url("assets/fonts/bebas-neue-latin.woff2") format("woff2");
  font-weight: 400; 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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; 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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%;
}

:root {
  --bg: #161616;
  --cream: #eadfc8;
  --pad: clamp(20px, 5.5vw, 68px);

  --fs: min(25.5vw, 62svh);
  --stroke: max(1px, 0.004em);
  --word-y: 2svh;
  --photo-size: auto 82%;
  --photo-pos: center bottom;
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--cream);
  font-family: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.hero {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 45%, #232323 0%, transparent 70%),
    var(--bg);
}

.word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
  font-family: "Bebas Neue", "Anton", Impact, sans-serif;
  font-size: var(--fs);
  line-height: 0.84;
  letter-spacing: 0.005em;
  white-space: nowrap;
  text-align: center;
}
.word__inner { transform: translateY(var(--word-y)); }

.word--fill {
  z-index: 1;
  color: var(--cream);
}

.word--outline {
  z-index: 4;
  color: transparent;
  -webkit-text-stroke: var(--stroke) var(--cream);

  -webkit-mask: url("assets/foto.webp") no-repeat var(--photo-pos) / var(--photo-size);
          mask: url("assets/foto.webp") no-repeat var(--photo-pos) / var(--photo-size);
}

.photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("assets/foto.webp") no-repeat var(--photo-pos) / var(--photo-size);
  filter: brightness(0.9) contrast(1.06) saturate(0.92);
}

.shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, rgba(22, 22, 22, 0.75) 12%, transparent 32%);
}

.top, .bottom {
  position: absolute;
  left: 0; right: 0;
  z-index: 5;
  padding-inline: max(var(--pad), env(safe-area-inset-left));
}
.top {
  top: 0;
  padding-top: max(var(--pad), env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bottom {
  bottom: 0;
  padding-bottom: max(var(--pad), env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.tag {
  margin: 0;
  font-size: clamp(14px, 1.35vw, 19px);
  letter-spacing: 0.01em;
}

.arrow {
  display: block;
  width: clamp(56px, 7.5vw, 90px);
  color: var(--cream);
  padding: 12px 0;
  transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
.arrow svg { display: block; width: 100%; overflow: visible; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px 0 30px;
  border: 1.5px solid var(--cream);
  border-radius: 999px;
  background: var(--cream);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.cta svg {
  width: 20px; height: 20px;
  transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
.cta:active { transform: scale(0.97); }

.cta:focus-visible,
.arrow:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .cta:hover { background: transparent; color: var(--cream); }
  .cta:hover svg { transform: translateX(4px); }
  .arrow:hover { transform: translateX(6px); }
}

@media (max-width: 1024px) and (orientation: portrait) {
  :root {
    --fs: 25.5vw;
    --word-y: -1svh;
    --photo-size: auto 66%;
    --photo-pos: center bottom 11%;
  }
  .bottom {
    grid-template-columns: 1fr 1fr;
    row-gap: 22px;
  }
  .cta { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
}

@media (max-width: 600px) and (orientation: portrait) {
  :root {
    --fs: 47vw;
    --stroke: 1.25px;
    --word-y: -3svh;
    --photo-size: auto 58%;
    --photo-pos: center bottom 16%;
  }
  .word__inner span { display: block; }
  .cta { justify-self: stretch; justify-content: center; }
  .tag { font-size: 13px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root { --pad: 18px; --fs: min(25.5vw, 70svh); }
  .hero { min-height: 320px; }
  .cta { min-height: 44px; font-size: 13px; padding: 0 18px 0 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  .word--fill .word__inner { animation: rise 900ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  .photo, .word--outline   { animation: fade 900ms ease-out 150ms both; }
  .top, .bottom            { animation: fade 600ms ease-out 500ms both; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(calc(var(--word-y) + 0.08em)); }
    to   { opacity: 1; transform: translateY(var(--word-y)); }
  }
  @keyframes fade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}
