@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0d3446;
  --ink: #16203b;
  --gold: #e0b453;
  --w: 560px;
  --brand: 146px;
  --brand-gap: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #fff;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

ul,
figure {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* darken the artwork itself so its sky-blue and yellow tones survive, then a light dark-celeste veil for legibility */
.bg img {
  filter: brightness(.58) saturate(1.1);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(6, 42, 58, .5), rgba(6, 42, 58, .2));
}

/* Layout */
.page {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: clamp(36px, 7vh, 64px) 0 clamp(48px, 8vh, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  width: 196px;
  height: 196px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(224, 180, 83, .35), 0 14px 44px rgba(0, 0, 0, .55);
}

.intro {
  margin: 28px 0 0;
  max-width: 46ch;
  font-size: clamp(.88rem, 3.3vw, .98rem);
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, .88);
  text-wrap: pretty;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

.title {
  margin: 16px 0 0;
  max-width: 26ch;
  font-size: clamp(1.2rem, 4.6vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.005em;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

.address {
  margin: 14px 0 32px;
  font-style: normal;
  font-size: clamp(.74rem, 2.9vw, .82rem);
  font-weight: 500;
  color: rgba(255, 255, 255, .72);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

/* Link buttons */
.links {
  display: grid;
  gap: 14px;
  width: min(100vw - 32px, var(--w));
  margin: 0 auto;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 10px 68px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .93);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background-color .28s var(--ease);
}

.link img {
  position: absolute;
  left: 9px;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  transition: transform .28s var(--ease);
}

.link span {
  overflow-wrap: anywhere;
}

.link:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .38), 0 0 0 1px rgba(224, 180, 83, .6);
}

.link:hover img {
  transform: scale(1.07);
}

.link:active {
  transform: translateY(0);
  transition-duration: .1s;
}

.link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Poster + brands: brands 2x2 on the left, poster on the right (desktop/tablet) */
.showcase {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "brands poster";
  justify-content: space-between;
  align-items: center;
  width: min(100vw - 32px, var(--w));
  margin: 44px auto 0;
}

.poster {
  grid-area: poster;
  height: calc(2 * var(--brand) + var(--brand-gap));
  aspect-ratio: 1080 / 1600;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .14), 0 12px 32px rgba(0, 0, 0, .5);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.poster:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px rgba(224, 180, 83, .5), 0 18px 40px rgba(0, 0, 0, .55);
}

.poster:hover img {
  transform: scale(1.03);
}

.brands {
  grid-area: brands;
  display: grid;
  grid-template-columns: repeat(2, var(--brand));
  gap: var(--brand-gap);
}

.brands img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .16), 0 8px 22px rgba(0, 0, 0, .45);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease);
}

.brands li:hover img {
  transform: translateY(-3px) scale(1.06);
  filter: brightness(1.06);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .4), 0 14px 30px rgba(0, 0, 0, .55);
}

/* Fade in, top to bottom */
.fade {
  animation: fade-in .8s ease-out both;
  animation-delay: calc(var(--i, 0) * 95ms + 80ms);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile: poster under the buttons, brands 2x2 under the poster */
@media (max-width: 600px) {
  :root {
    --brand: min(128px, 36vw);
    --brand-gap: 20px;
  }

  .logo {
    width: 168px;
    height: 168px;
  }

  .links {
    width: 80vw;
  }

  .link {
    min-height: 56px;
    padding: 8px 52px;
    font-size: .9rem;
    border-radius: 14px;
  }

  .link img {
    left: 8px;
    width: 38px;
    height: 38px;
    margin-top: -19px;
  }

  /* long email address: give the text more room */
  .link--long {
    padding: 8px 12px 8px 52px;
    font-size: .8rem;
    letter-spacing: -.01em;
  }

  .showcase {
    grid-template-columns: 1fr;
    grid-template-areas: "poster" "brands";
    justify-items: center;
    row-gap: 36px;
    width: 80vw;
    margin-top: 36px;
  }

  .poster {
    width: 100%;
    height: auto;
    border-radius: 16px;
  }
}

/* Very narrow phones */
@media (max-width: 360px) {
  .link {
    padding: 8px 40px 8px 50px;
    font-size: .8rem;
  }

  .link--long {
    padding-right: 8px;
    font-size: .7rem;
  }
}

@media (hover: none) {
  .link:hover,
  .poster:hover,
  .poster:hover img,
  .brands li:hover img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade {
    animation: none;
  }

  .link,
  .link img,
  .poster,
  .poster img,
  .brands img {
    transition: none;
  }
}
