/* KATTEYES landing. Built from the PM's desktop mockup (2000 x 1288); the
   mobile layout is our own. On desktop every block is placed as a percentage of
   the hero, so the composition scales with the artwork. No container queries on
   purpose: they would make the hero the containing block of the widget's fixed
   modal. */

:root {
  --negro: #1b1b1b;
  --blanco: #fff;
}

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

html {
  background: var(--negro);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--negro);
  color: var(--blanco);
  font-family:
    'Poppins',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   Eventrid top bar. Same height, logo and link style as the main site's
   navigation (and the Maraton landings), on the event's black. Sticky, so the
   page needs no offset.
   ------------------------------------------------------------ */
.eventrid-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 71px;
  padding-inline: 1rem;
  background: var(--negro);
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.eventrid-nav__brand {
  display: block;
}

.eventrid-nav__logo {
  width: clamp(140px, 40vw, 224px);
}

.eventrid-nav__link {
  padding: 0.75rem 0;
  border: 0;
  background: none;
  color: var(--blanco);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.eventrid-nav__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eventrid-nav a:focus-visible {
  outline: 3px solid var(--blanco);
  outline-offset: 3px;
}

@media (min-width: 48rem) {
  .eventrid-nav {
    height: 72.5px;
  }
}

@media (min-width: 64rem) {
  .eventrid-nav {
    height: 77px;
    padding-inline: 125px;
  }
}

/* ------------------------------------------------------------
   Mobile first: artwork on top, content stacked below it.
   ------------------------------------------------------------ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2.5rem;
}

.hero picture {
  width: 100%;
}

.hero__art {
  width: 100%;
  /* The crop ends right under the head: the rest of the artwork is empty rain. */
  aspect-ratio: 900 / 620;
  object-fit: cover;
  object-position: top;
}

.hero__content {
  width: min(100% - 2rem, 22rem);
  margin-top: -0.5rem;
  position: relative;
}

.hero__logo {
  width: 100%;
}

.hero__info {
  width: 82%;
  margin-top: 1.5rem;
}

.hero__cta {
  margin-top: 1.75rem;
}

/* The widget's trigger is a shadow-DOM button; `::part(button)` is the only
   way in. Sizes here are the mobile ones, the desktop block scales them. */
eventrid-widget {
  display: block;
}

eventrid-widget::part(button) {
  width: 100%;
  min-height: 3.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sponsors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem 2rem;
  width: min(100% - 2rem, 30rem);
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.sponsors__item img {
  width: auto;
  height: 3rem;
}

/* ------------------------------------------------------------
   Desktop: the mockup, positioned as percentages of the hero.
   Left edge 445/2000, logo 535 wide, button 475 wide, strip 1147 wide.
   ------------------------------------------------------------ */
@media (min-width: 48rem) {
  .hero {
    display: block;
    position: relative;
    padding-bottom: 0;
    aspect-ratio: 2000 / 1288;
    overflow: hidden;
  }

  .hero picture,
  .hero__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .hero__content {
    position: absolute;
    left: 22.25%;
    top: 10.9%;
    width: 26.75%;
    margin-top: 0;
  }

  .hero__info {
    width: 76.1%;
    margin-top: 27.9%;
    margin-left: -0.9%;
  }

  .hero__cta {
    width: 88.8%;
    margin-top: 17.9%;
  }

  eventrid-widget::part(button) {
    min-height: 0;
    height: 3.95vw;
    font-size: 1.55vw;
  }

  .sponsors {
    position: absolute;
    left: 22.35%;
    top: 76.4%;
    width: 57.35%;
    margin: 0;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
  }

  /* Heights follow the strip: 69px of 2000 → 3.45% of the hero's width. Each
     width is its share of the 1147px strip. */
  .sponsors__item img {
    height: auto;
  }

  .sponsors__item--top-floor {
    width: 10.4%;
  }
  .sponsors__item--los40 {
    width: 6.5%;
  }
  .sponsors__item--santander {
    width: 16.6%;
  }
  .sponsors__item--eventrid {
    width: 16.7%;
  }
  .sponsors__item--producen {
    width: 22%;
  }

  .sponsors__item img {
    width: 100%;
  }
}
