:root {
  --teal: #22748f;
  --teal-deep: #1b5f76;
  --teal-soft: #76a9b9;
  --orange: #e0773b;
  --ink: #1b262b;
  --bg-ice: #f7fbfc;
  --bg-warm: #fff3e7;
  --footer-height: 88px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3.5vw, 3rem);
  padding-bottom: calc(var(--footer-height) + 2.5rem);
}

.grid {
  width: min(1240px, 100%);
  height: min(70vh, 680px);
  min-height: 420px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "one . two"
    ". logo ."
    "three . four";
  gap: clamp(1rem, 2.2vw, 2.2rem);
  align-items: center;
  justify-items: center;
  margin: 0 auto;
}

.logo {
  grid-area: logo;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-in 0.9s ease-out both;
}

.logo img {
  width: min(380px, 70vw);
  height: auto;
  display: block;
}

.tile {
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid var(--orange);
  border-radius: 22px;
  padding: 0.65rem 0.85rem 0.85rem;
  width: 100%;
  max-width: 400px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--teal-deep);
  box-shadow: 0 18px 32px rgba(17, 44, 54, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: float-in 0.9s ease-out both;
}

.tile__image {
  width: auto;
  max-width: 100%;
  height: 170px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* .tile__image--nerves {
  transform: translateX(12px);
} */

.tile__label {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.tile__blurb {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(27, 38, 43, 0.7);
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 22px 36px rgba(17, 44, 54, 0.18);
  border-color: rgba(224, 119, 59, 0.55);
}

.tile:focus-visible {
  outline: 2px solid rgba(224, 119, 59, 0.7);
  outline-offset: 4px;
}

.tile--one {
  grid-area: one;
  animation-delay: 0.05s;
}

.tile--two {
  grid-area: two;
  animation-delay: 0.12s;
}

.tile--three {
  grid-area: three;
  animation-delay: 0.18s;
}

.tile--four {
  grid-area: four;
  animation-delay: 0.24s;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.5rem, 4vw, 3.5rem);
  background: var(--teal-deep);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
  z-index: 2;
}

.footer__link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.footer__copy {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .grid {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, auto);
    grid-template-areas:
      "logo"
      "one"
      "two"
      "three"
      "four";
  }

  .logo,
  .tile {
    width: min(480px, 100%);
  }
}

@media (max-width: 720px) {
  :root {
    --footer-height: 110px;
  }

  .footer {
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
  }

  .footer__copy {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile,
  .logo {
    animation: none;
    transition: none;
  }
}
