:root {
  color-scheme: light;
  --cream: #f7f0e6;
  --sun: #f6c400;
  --sun-deep: #e0aa00;
  --sun-glow: #ffdd4b;
  --mint: #8fb5ae;
  --teal: #3e6e6a;
  --deep: #1d2b2b;
  --steel: #b4b8b9;
  --chrome: #cfd4d6;
  --shadow: rgba(20, 30, 30, 0.22);
  --warm: #f1d6b4;
  --accent: #e76f51;
  --counter: #c8b08a;
  --plant: #2f5a4f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background: #0b6f69;
  color: var(--deep);
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
}

.fridge-scroll {
  min-height: 0;
  padding: 48px 8vw 24px;
  display: grid;
  gap: 12px;
  justify-items: center;
  position: relative;
  overflow: hidden;
}

.fridge-footer {
  margin: 0;
  font-family: "Futura", "Avenir Next", "Avenir", sans-serif;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #e0aa00;
  text-align: center;
  margin-top: 0;
  padding: 5px 0;
  order: 3;
}

.fridge-header {
  text-align: center;
  max-width: 520px;
  z-index: 1;
  order: 1;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 0;
  text-decoration: none;
  order: 4;
}

.home-link svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.8))
    drop-shadow(0 0 22px rgba(255, 120, 30, 0.7));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin: 0 0 12px;
  color: var(--teal);
}

h1,
h2 {
  font-family: "adventures-unlimited", sans-serif;
  margin: 0 0 12px;
}

h1 {
  font-family: "adventures-unlimited", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.9rem, 3.7vw, 2.8rem);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow:
    0 0 4px rgba(255, 210, 160, 0.95),
    0 0 14px rgba(255, 150, 40, 0.98),
    0 0 32px rgba(255, 120, 20, 0.96),
    0 0 56px rgba(255, 90, 0, 0.9),
    0 0 84px rgba(255, 70, 0, 0.8);
}

.subtitle {
  display: inline-block;
  font-size: 0.7em;
  letter-spacing: 0.03em;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.subhead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.fridge-stack {
  width: min(520px, 90vw);
  margin: 0 auto;
  border-radius: 40px;
  background: linear-gradient(160deg, #ffd24a, #f1b300);
  box-shadow: 0 34px 70px var(--shadow);
  display: grid;
  overflow: hidden;
  border: 2px solid rgba(35, 56, 52, 0.18);
  position: relative;
  z-index: 1;
  order: 2;
}

.fridge-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 24%, rgba(0, 0, 0, 0.15) 100%);
  opacity: 0.4;
  pointer-events: none;
}

.fridge-stack::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 6%;
  width: 22px;
  height: 88%;
  background: linear-gradient(180deg, rgba(60, 45, 10, 0.2), rgba(0, 0, 0, 0.05));
  filter: blur(6px);
  opacity: 0.35;
  pointer-events: none;
}

.fridge-segment {
  position: relative;
  padding: 26px;
  border-bottom: 2px solid rgba(55, 72, 69, 0.12);
  display: grid;
  gap: 18px;
}

.segment-top {
  min-height: 360px;
  background: linear-gradient(150deg, var(--sun-glow), var(--sun));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.segment-door {
  min-height: 534px;
  background: linear-gradient(150deg, var(--sun), var(--sun-deep));
  display: block;
}

.fridge-intro-card {
  align-self: flex-start;
  max-width: 290px;
  margin-left: auto;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(160deg, #fff9dc, #ffe9a8);
  box-shadow:
    0 10px 20px rgba(45, 30, 10, 0.22),
    inset 0 0 0 1px rgba(140, 90, 20, 0.3);
  position: relative;
}

.fridge-intro-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 30% 30%, #fff, #ff7f6a 40%, #d93a2b 78%);
  box-shadow:
    0 2px 5px rgba(60, 20, 20, 0.35),
    0 0 8px rgba(255, 120, 110, 0.7);
}

.fridge-intro-card p {
  margin: 0;
  font-family: "adventures-unlimited", sans-serif;
  font-size: 0.9rem;
  line-height: 1.35;
  text-transform: lowercase;
  color: #7c4f02;
}

.fridge-intro-card p:first-child {
  font-size: 1.8rem;
}

.fridge-intro-card p + p {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
}

.certificate-list {
  margin-top: 8px;
  display: grid;
  gap: 18px;
  padding: 8px 0 6px;
}

.certificate-card {
  background: linear-gradient(165deg, #fffdf2, #ffe8ba 75%);
  border-radius: 12px;
  padding: 14px 16px 34px;
  border: 1px solid rgba(132, 88, 12, 0.35);
  text-align: center;
  box-shadow:
    0 10px 18px rgba(53, 33, 6, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  position: relative;
}

.certificate-magnet {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 30% 30%, #fff, #ff7f6a 40%, #d93a2b 78%);
  box-shadow:
    0 2px 5px rgba(60, 20, 20, 0.35),
    0 0 8px rgba(255, 120, 110, 0.6);
  z-index: 3;
}

.certificate-magnet-1 {
  background: radial-gradient(circle at 30% 30%, #fff, #ff7f6a 40%, #d93a2b 78%);
}

.certificate-magnet-2 {
  background: radial-gradient(circle at 30% 30%, #fff, #6ac8ff 40%, #2974d9 78%);
}

.certificate-magnet-3 {
  background: radial-gradient(circle at 30% 30%, #fff, #8eff9b 40%, #29a54e 78%);
}

.certificate-magnet-4 {
  background: radial-gradient(circle at 30% 30%, #fff, #ffc36a 40%, #d97f29 78%);
}

.certificate-magnet-5 {
  background: radial-gradient(circle at 30% 30%, #fff, #db9cff 40%, #8b45cf 78%);
}

.certificate-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 9px;
  border: 2px dashed rgba(132, 88, 12, 0.48);
  box-shadow: inset 0 0 0 1px rgba(196, 144, 42, 0.3);
  pointer-events: none;
}

.certificate-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 0 0, rgba(169, 113, 17, 0.75) 0 2px, transparent 2.5px),
    radial-gradient(circle at 100% 0, rgba(169, 113, 17, 0.75) 0 2px, transparent 2.5px),
    radial-gradient(circle at 0 100%, rgba(169, 113, 17, 0.75) 0 2px, transparent 2.5px),
    radial-gradient(circle at 100% 100%, rgba(169, 113, 17, 0.75) 0 2px, transparent 2.5px);
  background-repeat: no-repeat;
  pointer-events: none;
}

.certificate-kicker,
.certificate-body,
.certificate-meta,
.certificate-signature {
  margin: 0;
  position: relative;
  z-index: 1;
  text-transform: lowercase;
}

.certificate-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #885a07;
}

.certificate-name {
  margin: 5px 0 8px;
  position: relative;
  z-index: 1;
  font-family: "adventures-unlimited", sans-serif;
  font-size: 3.9rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
  color: #5b3900;
}

.certificate-body {
  font-size: 0.85rem;
  line-height: 1.35;
  color: #6c4605;
}

.certificate-meta {
  margin-top: 10px;
  font-size: 0.72rem;
  color: #80560c;
}

.certificate-signature {
  margin-top: 5px;
  font-family: "adventures-unlimited", sans-serif;
  font-size: 1.5rem;
  color: #6f4700;
}

.certificate-download {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.24);
  color: rgba(99, 62, 2, 0.88);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 3px 8px rgba(53, 33, 6, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.certificate-download:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 7px 14px rgba(53, 33, 6, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.confetti-burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.confetti-piece {
  position: absolute;
  width: 6px;
  height: 10px;
  border-radius: 2px;
  animation: confetti-pop 620ms ease-out forwards;
  transform-origin: center;
}

@keyframes confetti-pop {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--spin)) scale(0.65);
  }
}

.segment-top::after,
.segment-door::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 40%);
  opacity: 0.3;
  pointer-events: none;
}

.segment-door::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid rgba(120, 90, 20, 0.2);
  opacity: 0.3;
  pointer-events: none;
}

.segment-art {
  background: linear-gradient(160deg, var(--sun), var(--sun-deep));
}

.segment-notes {
  background: linear-gradient(160deg, var(--sun), var(--sun-deep));
  border-bottom: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--teal);
}

.handle {
  width: 20px;
  height: 140px;
  background: linear-gradient(180deg, #f8f9fa, #b9c3c4);
  border-radius: 12px;
  position: relative;
  box-shadow:
    inset 2px 0 4px rgba(255, 255, 255, 0.7),
    2px 4px 8px rgba(20, 30, 30, 0.2);
}

.handle-top::after {
  content: "?";
  position: absolute;
  left: 50%;
  top: -40px;
  width: 24px;
  height: 24px;
  transform: translateX(-50%) scale(0.9);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(7px) saturate(160%);
  -webkit-backdrop-filter: blur(7px) saturate(160%);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 16px rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.55),
    inset 0 0 8px rgba(255, 255, 255, 0.45);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  z-index: 4;
}

.handle-top:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.handle-vert {
  justify-self: flex-start;
}

.segment-top .handle-vert {
  height: 100px;
  margin-top: 210px;
}

.segment-door .handle-vert {
  height: 170px;
  margin-top: 18px;
  align-self: flex-start;
}



@media (max-width: 720px) {
  h1 {
    font-size: clamp(1.15rem, 4.9vw, 1.7rem);
  }

  .fridge-scroll {
    justify-items: center;
  }

  .fridge-intro-card {
    max-width: 235px;
    padding: 12px 14px;
  }

  .certificate-card {
    padding: 12px 13px;
  }

  .certificate-name {
    font-size: 3.09rem;
  }
}
