:root {
  --bg: #0b0b0c;
  --fg: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #c8f31d; /* SVJ-style verde */
}

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

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* Portrait (phones, tablets): square-ish crop centered on the car,
   text stacked underneath. */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 11; /* portrait crop centered on the car */
  object-fit: cover;
  background: radial-gradient(ellipse at center, #1f1f22, var(--bg) 70%);
}

.hero__text {
  padding: 2rem max(1.25rem, env(safe-area-inset-left)) max(2rem, env(safe-area-inset-bottom));
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.topbar {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto 0;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-left));
}

.brand {
  color: var(--fg);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer {
  padding: 2.5rem 1.25rem max(2.5rem, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

/* Landscape (desktop, phones turned sideways): full-bleed photo filling the viewport,
   text overlaid bottom-left on a gradient for legibility. */
@media (min-aspect-ratio: 4/3) {
  .hero {
    position: relative;
    height: 100svh;
    justify-content: flex-end;
    overflow: hidden;
  }

  .hero__media,
  .hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .hero__media img {
    object-fit: cover;
    object-position: center 60%;
  }

  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(11 11 12 / 0.85), transparent 45%);
  }

  .hero__text {
    position: relative;
    padding: 0 5vw 6vh;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__text {
    animation: rise 0.8s ease-out both;
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
  }
}
