/* ==========================================================================
   Hero — centered
   ========================================================================== */
.hero {
  position: relative;
  /* Extra top padding clears the fixed nav overlaying the hero */
  padding: clamp(5.5rem, 8vw, 7.5rem) 0 clamp(2rem, 6vw, 5rem);
  background-color: var(--surface);
  background-image:
    radial-gradient(130% 90% at 50% -15%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 60%),
    url("../../../img/hero-texture.svg");
  background-size: auto, 300px 300px;
  background-repeat: no-repeat, repeat;
}

.hero__main {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero__main h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero__main > p {
  font-size: 1.2rem;
  color: var(--colour-muted);
  max-width: 60ch;
  margin: 0 auto 2rem;
}

/* Centered, bare button group */
.hero__main .btn-group {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Hand-drawn embellishment leading down to the notes */
.hero__lead-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  color: var(--colour-accent);
}

.hero__lead-in-note {
  font-family: "Caveat", cursive;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--colour-muted);
  transform: rotate(-4deg);
}

.hero__lead-in-arrow {
  width: 50px;
  height: auto;
}

/* Credentials strip — post-it note cards */
.hero__creds {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.4rem);
  margin-top: clamp(2.5rem, 4.5vw, 3.5rem);
}

.hero__creds li {
  position: relative;
  padding: 1.6rem 1.4rem 1.75rem;
  background: linear-gradient(
    180deg,
    var(--colour-postit-hi) 0%,
    var(--colour-postit) 60%,
    var(--colour-postit-lo) 100%
  );
  border-radius: 3px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 8px 18px -14px rgba(0, 0, 0, 0.3);
  transform-origin: 50% 0; /* pivot around the pin */
  transition: transform 0.25s ease;
}

/* A slight scattered, stuck-on tilt + a different sticky-note colour each */
.hero__creds li:nth-child(1) {
  transform: rotate(-1.6deg);
  --pin-color: #e5484d;
  --hero-cred-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%233f340a' d='M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z'/%3E%3C/svg%3E");
}

.hero__creds li:nth-child(2) {
  transform: rotate(1deg);
  --pin-color: #f5a623;
  --hero-cred-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%2333302a' d='M192 64l0 64c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32zM82.7 207c-15.3 8.8-20.5 28.4-11.7 43.7l32 55.4c8.8 15.3 28.4 20.5 43.7 11.7l55.4-32c15.3-8.8 20.5-28.4 11.7-43.7l-32-55.4c-8.8-15.3-28.4-20.5-43.7-11.7L82.7 207zM288 192c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-64 0zm64 160c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-64 0zM160 384l0 64c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32zM32 352c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-64 0z'/%3E%3C/svg%3E");
  background: linear-gradient(
    180deg,
    var(--postit-blue-hi) 0%,
    var(--postit-blue) 60%,
    var(--postit-blue-lo) 100%
  );
}

.hero__creds li:nth-child(3) {
  transform: rotate(-0.6deg);
  --pin-color: #17a39a;
  --hero-cred-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='%234b2a33' d='M0 24C0 10.7 10.7 0 24 0L69.5 0c22 0 41.5 12.8 50.6 32l411 0c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3l-288.5 0 5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5L488 336c13.3 0 24 10.7 24 24s-10.7 24-24 24l-288.3 0c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5L24 48C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z'/%3E%3C/svg%3E");
  background: linear-gradient(
    180deg,
    var(--postit-pink-hi) 0%,
    var(--postit-pink) 60%,
    var(--postit-pink-lo) 100%
  );
}

.hero__creds li:hover {
  transform: rotate(0deg);
}

/* Push pin — metal needle then plastic head */
.hero__creds li::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 3px;
  height: 12px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #6d6d6d 0%, #f2f2f2 44%, #c4c4c4 60%, #767676 100%);
  border-radius: 1px 1px 0 0;
  clip-path: polygon(0 0, 100% 0, 60% 100%, 40% 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero__creds li::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 21px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--pin-color) 76%, #ffffff) 0%,
      var(--pin-color) 34%,
      color-mix(in srgb, var(--pin-color) 60%, #000000) 80%,
      color-mix(in srgb, var(--pin-color) 42%, #000000) 100%
    );
  box-shadow:
    0 5px 7px -1px rgba(0, 0, 0, 0.4),
    inset 0 2px 2px rgba(255, 255, 255, 0.3),
    inset 0 -3px 4px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.hero__cred-title {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.1;
  color: var(--postit-ink);
  margin-bottom: 0.5rem;
}

.hero__cred-title::before {
  content: "";
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: var(--hero-cred-icon) no-repeat center / contain;
}



.hero__cred-desc {
  color: rgba(51, 48, 42, 0.75);
  font-size: 0.95rem;
}

@media (min-width: 861px) {
  .hero__main .hero__actions {
    width: 100%;
    max-width: none;
    flex-wrap: nowrap;
  }

  .hero__main .hero__actions > .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 860px) {
  .hero__main .btn-group {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .hero {
    padding-top: clamp(6.4rem, 11vw, 7.2rem);
  }

  .hero__creds {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero__creds li:nth-child(1),
  .hero__creds li:nth-child(2),
  .hero__creds li:nth-child(3) {
    transform: none;
  }
}

@media (max-width: 760px) {
  /* More breathing room on mobile */
  .hero {
    padding-top: calc(7.25rem + env(safe-area-inset-top));
    padding-bottom: clamp(3rem, 10vw, 4.5rem);
  }

  .hero__main {
    max-width: 33rem;
  }

  .hero__main h1 {
    font-size: clamp(2rem, 10.2vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
    text-wrap: balance;
  }

  .hero__main > p {
    font-size: 1.04rem;
    line-height: 1.58;
    max-width: 34ch;
    margin-bottom: 2.25rem;
  }

  /* No doodle arrow on mobile */
  .hero__lead-in {
    display: none;
  }

  .hero__creds {
    margin-top: 2.75rem;
  }
}
