.hero { padding: 1.75rem 0 2rem; max-width: 1000px; }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold-hi); font-weight: 500; }

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: .7rem 1.5rem .7rem .8rem;
  border-radius: 999px;
}
.countdown-num {
  min-width: 3.6rem; height: 3.6rem;
  padding: 0 .6rem;
  display: grid; place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--gold-hi), var(--gold));
  color: var(--gold-ink);
  font: 700 1.8rem var(--display);
  font-variant-numeric: tabular-nums;
}
.countdown-text { font-size: 1.15rem; color: var(--ink); }
.countdown-text small { display: block; color: var(--muted); font-size: .9rem; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 1.25rem;
  perspective: 1200px;
}
.tile {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .35rem;
  min-height: 190px;
  padding: 1.6rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s;
  will-change: transform;
}
.tile::before { /* artwork: a teddy scene in a little picture frame, set from each tile's data-look */
  content: "";
  position: absolute; z-index: -2;
  top: 1.1rem; right: 1.1rem; height: calc(100% - 2.2rem); aspect-ratio: 1;
  border-radius: 18px; border: 1px solid var(--line);
  background: var(--art, none) center / cover no-repeat;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.tile.feature::before { top: 1.4rem; right: auto; left: 50%; height: 56%; transform: translateX(-50%); }
.tile:not(.feature) .tile-title, .tile:not(.feature) .tile-sub { max-width: calc(100% - 190px); }
.tile::after { /* legibility shade + pointer glow */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 216, 138, .16), transparent 60%),
    linear-gradient(180deg, rgba(28, 17, 11, 0) 40%, rgba(28, 17, 11, .55) 100%);
}
@media (hover: hover) { .tile:hover { border-color: var(--line-hi); box-shadow: 0 30px 70px -26px rgba(0, 0, 0, .9), 0 0 0 1px rgba(242, 178, 74, .25); } }
@media (hover: hover) { .tile:hover::before { transform: translateY(-3px) rotate(1.5deg); } .tile.feature:hover::before { transform: translateX(-50%) translateY(-3px) rotate(1.5deg); } }
.tile:active { transform: scale(.985); }

.tile-icon { width: 3.6rem; height: 3.6rem; margin-bottom: auto; color: var(--gold); }
.tile-title { font: 600 1.7rem/1.1 var(--display); }
.tile-sub { color: var(--muted); font-size: 1.02rem; line-height: 1.4; }
.tile-go {
  position: absolute; bottom: 1.2rem; right: 1.2rem;
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(28, 17, 11, .45);
  color: var(--gold-hi);
  font-size: 1.2rem;
  transition: transform .3s, background .3s, color .3s;
}
@media (hover: hover) { .tile:hover .tile-go { transform: translateX(3px); background: var(--gold); color: var(--gold-ink); } }

.tile.feature { grid-column: span 2; grid-row: span 2; min-height: 400px; padding: 2rem; }
.tile.feature .tile-title { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.tile.feature .tile-sub { font-size: 1.15rem; max-width: 24ch; }
.tile.wide { grid-column: span 2; }
.tile.banner { grid-column: span 4; min-height: 170px; }


.badge {
  position: absolute; top: 1.2rem; right: 1.2rem;
  padding: .25rem .8rem;
  border-radius: 999px;
  background: rgba(28, 17, 11, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 700 .72rem var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tile[aria-disabled="true"] { cursor: default; }
.tile[aria-disabled="true"] .tile-go { display: none; }
@media (hover: hover) { .tile[aria-disabled="true"]:hover::before { transform: scale(1.04); } }


@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.feature { grid-column: span 2; grid-row: span 1; min-height: 320px; }
  .tile.wide, .tile.banner { grid-column: span 2; }
}
@media (max-width: 520px) {
  body { font-size: 1.1rem; }
  .bento { grid-template-columns: 1fr; gap: 1rem; }
  .tile, .tile.feature, .tile.wide, .tile.banner { grid-column: auto; min-height: 190px; }
  .tile.feature { min-height: 300px; }
}

/* ---------- Teddy extras ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: 2rem; align-items: center; }
.hero-bear {
  position: relative; justify-self: center; width: min(100%, 320px);
  border: 0; padding: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.hero-bear svg, .hero-bear img { display: block; width: 100%; height: auto; border-radius: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.hero-bear.hugging img, .hero-bear.hugging svg { animation: squish .7s cubic-bezier(.3, 1.4, .5, 1); }
.hero-bear:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 6px; border-radius: 34px; }
.hug-count {
  display: block; margin-top: .8rem; text-align: center; color: var(--muted); font-weight: 600; font-size: 1.02rem;
}
.hug-count b { color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.hearts { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.heart-float { position: absolute; bottom: 40%; font-size: 1.8rem; animation: float-up 1.6s ease-out forwards; }
@keyframes squish { 0% { transform: scale(1); } 30% { transform: scale(1.06, .93); } 60% { transform: scale(.97, 1.04); } 100% { transform: scale(1); } }
@keyframes float-up { from { opacity: 1; transform: translateY(0) scale(.7); } to { opacity: 0; transform: translateY(-140px) scale(1.2) rotate(var(--r, 8deg)); } }
.birthday {
  display: flex; align-items: center; gap: 1rem; margin: 0 0 1.5rem; padding: 1rem 1.4rem;
  border-radius: var(--radius); border: 1px solid var(--line-hi);
  background: linear-gradient(135deg, rgba(242, 178, 74, .22), rgba(224, 87, 74, .18));
  font-size: 1.2rem;
}
.birthday .emoji { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.birthday b { font-family: var(--display); font-size: 1.4rem; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } .hero-bear { width: min(78%, 280px); } }
@media (prefers-reduced-motion: reduce) { .hero-bear.hugging img, .hero-bear.hugging svg, .hero-bear.hugging img { animation: none; } .heart-float { animation-duration: .01ms; opacity: 0; } }
