:root {
  color-scheme: dark;
  --paper: #f4f5f2;
  --ink: #111311;
  --muted: #aeb3ad;
  --labs: #b8ec25;
  --webs: #ff6900;
  --line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.landing {
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 3vw, 3rem);
  overflow: hidden;
}

.background,
.background__video,
.background__shade,
.background__grain {
  position: fixed;
  inset: 0;
}

.background {
  z-index: -1;
  background: #111 url("assets/oficina-synodia.png") center / cover no-repeat;
}

.background__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.background__shade {
  background:
    linear-gradient(180deg, rgba(8, 10, 8, 0.55) 0%, rgba(8, 10, 8, 0.12) 33%, rgba(8, 10, 8, 0.4) 66%, rgba(8, 10, 8, 0.9) 100%),
    linear-gradient(90deg, rgba(8, 10, 8, 0.54), transparent 65%);
}

.background__grain {
  opacity: 0.16;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.header,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: block;
  width: clamp(11rem, 20vw, 17rem);
  line-height: 0;
}

.brand img {
  width: 100%;
  height: auto;
  filter: invert(1);
  mix-blend-mode: screen;
}

.moment,
.eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.moment::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--labs);
  box-shadow: 0 0 0 0.3rem rgba(168, 213, 42, 0.15);
}

.hero {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(32rem, 1.15fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(4rem, 10vh, 8rem) 0 clamp(2rem, 6vh, 5rem);
}

.eyebrow {
  margin-bottom: 1.3rem;
  color: rgba(255, 255, 255, 0.72);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.4rem, 6.7vw, 7.3rem);
  font-weight: 380;
  line-height: 0.92;
  letter-spacing: -0.052em;
}

.hero__copy {
  max-width: 36rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  line-height: 1.55;
}

.destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.destination {
  position: relative;
  min-height: clamp(14rem, 27vh, 19rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 2vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.25rem;
  color: var(--ink);
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.destination::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.94;
  transition: opacity 220ms ease;
}

.destination--labs::before {
  background: var(--labs);
}

.destination--webs::before {
  background: var(--webs);
}

.destination:hover,
.destination:focus-visible {
  transform: translateY(-0.45rem);
  border-color: white;
  outline: none;
}

.destination:hover::before,
.destination:focus-visible::before {
  opacity: 1;
}

.destination__number {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  opacity: 0.72;
}

.destination__content {
  display: grid;
  gap: 0.8rem;
  padding-right: 2rem;
}

.destination__content strong {
  font-size: clamp(1.6rem, 2.5vw, 2.7rem);
  font-weight: 520;
  letter-spacing: -0.04em;
}

.destination__content span {
  max-width: 22rem;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.82;
}

.destination__arrow {
  position: absolute;
  right: clamp(1.25rem, 2vw, 2rem);
  bottom: clamp(1.25rem, 2vw, 2rem);
  font-size: 1.55rem;
  transition: transform 260ms ease;
}

.destination:hover .destination__arrow,
.destination:focus-visible .destination__arrow {
  transform: translate(0.25rem, -0.25rem);
}

.footer {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.footer a {
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: white;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__copy {
    max-width: 30rem;
  }
}

@media (max-width: 620px) {
  .landing {
    min-height: auto;
  }

  .header {
    align-items: flex-start;
  }

  .moment {
    max-width: 9rem;
    text-align: right;
    line-height: 1.45;
  }

  .hero {
    padding-top: 14vh;
  }

  .destinations {
    grid-template-columns: 1fr;
  }

  .destination {
    min-height: 11.5rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .footer__links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .background__video {
    display: none;
  }

  .destination,
  .destination__arrow {
    transition: none;
  }
}
