/* ───────── Fonts (local, public/fonts) ───────── */
@font-face { font-family: "Bagel Fat One"; src: url("/fonts/bagel-fat-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/fonts/space-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0b3a22;
  --ink-2: #0f4d2c;
  --mint: #c8f7a8;
  --green: #3fae5a;
  --deep: #146b37;
  --cream: #fffbea;
  --red: #e5313f;          /* the one accent */
  --up: #1f9d4c;
  --down: #c62f3a;
  --glass: rgba(255, 251, 234, .62);
  --glass-line: rgba(255, 255, 255, .7);
  --max: 1480px;
  --radius: 26px;
  --display: "Bagel Fat One", system-ui, sans-serif;
  --body: "Fredoka", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(180deg, #b9f39e 0%, #5cc46c 28%, #2e9a4e 55%, #146b37 80%, #0b3a22 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
kbd { font-family: var(--mono); font-size: .75em; padding: 1px 6px; border-radius: 6px; background: var(--red); color: #fff; }

/* ───────── Background ───────── */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.bg__glow--a { width: 60vmax; height: 60vmax; left: -15vmax; top: -20vmax; background: #eaffc9; animation: drift 18s ease-in-out infinite alternate; }
.bg__glow--b { width: 50vmax; height: 50vmax; right: -15vmax; bottom: -15vmax; background: #ff8a8a; opacity: .18; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.1); } }
.bg__dogs { position: absolute; inset: 0; }
.bg__dog { position: absolute; will-change: transform; opacity: .42; filter: drop-shadow(0 8px 14px rgba(11,58,34,.25)); user-select: none; }
.bg__snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }

/* ───────── Custom cursor ───────── */
.cursor { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 2.5px solid var(--red); border-radius: 50%; transition: width .2s, height .2s, margin .2s, background .2s; display: none; }
.cursor span { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--red); }
.cursor.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(229,49,63,.12); }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor .cursor { display: block; }

/* ───────── Intro ───────── */
.intro { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: radial-gradient(ellipse at center, #135e33 0%, var(--ink) 70%); color: var(--cream); transition: opacity .8s ease, visibility .8s; }
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__inner { text-align: center; display: grid; justify-items: center; gap: 22px; padding: 24px; }
.intro__eyebrow { font-family: var(--mono); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 14px; opacity: .75; }
.intro__num { font-family: var(--display); font-size: clamp(72px, 14vw, 190px); line-height: 1; color: var(--down); transition: color .4s; display: inline-block; }
.intro__num.is-up { color: #8af27e; }
.intro__bar { width: min(420px, 70vw); height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.intro__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--down), #8af27e); border-radius: 99px; }
.intro__title { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 84px); line-height: 1.02; opacity: 0; transform: translateY(20px); transition: all .7s cubic-bezier(.2,.9,.3,1.3); }
.intro__title.is-in { opacity: 1; transform: none; }
.btn--enter { opacity: 0; transform: scale(.7); transition: all .5s cubic-bezier(.2,.9,.3,1.4); pointer-events: none; font-family: var(--display); font-size: 30px; padding: 14px 54px; border-radius: 99px; background: var(--red); color: #fff; border: 3px solid var(--cream); box-shadow: 0 6px 0 #8f1620; }
.btn--enter.is-in { opacity: 1; transform: none; pointer-events: auto; }
.btn--enter:hover { transform: translateY(-2px) rotate(-2deg); }
.btn--enter:active { transform: translateY(4px); box-shadow: 0 2px 0 #8f1620; }

/* ───────── Shared ───────── */
.glass { background: var(--glass); border: 2px solid var(--glass-line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(11,58,34,.45); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 12px 22px; border-radius: 99px; border: 3px solid var(--ink); transition: transform .15s, box-shadow .15s; white-space: nowrap; font-size: 17px; }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn:hover { transform: translateY(-2px); }
.btn--light:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn--sm { padding: 7px 14px; font-size: 15px; }
.pill { display: inline-flex; align-items: center; font-family: var(--display); font-size: 24px; color: var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.eyebrow__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(229,49,63,.2); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(229,49,63,0); } }
.eyebrow--dark { color: var(--cream); background: var(--ink); padding: 7px 14px; border-radius: 99px; }
main { position: relative; z-index: 3; }
.section { max-width: var(--max); margin: 0 auto; padding: 120px 32px 40px; }
.section--center { text-align: center; }
.section__head { margin-bottom: 40px; }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 88px); line-height: 1; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; margin-top: 10px; }
.h2--light { color: var(--cream); }

/* ───────── Header ───────── */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 18px 32px; max-width: var(--max); margin: 0 auto; }
.top__right { display: flex; align-items: center; gap: 14px; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; background: var(--cream); border: 2.5px solid var(--ink); padding: 7px 14px; border-radius: 99px; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); animation: pulse 1.6s infinite; }

/* sound toggle */
.sound { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); border: 2.5px solid var(--ink); transition: transform .15s; }
.sound:hover { transform: translateY(-2px); }
.sound .sound__off { display: none; }
.sound.is-muted .sound__on { display: none; }
.sound.is-muted .sound__off { display: block; color: var(--red); }

/* ───────── Hero ───────── */
.hero { max-width: var(--max); margin: 0 auto; min-height: 100vh; padding: 110px 32px 60px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 40px; }
.hero__dog { position: relative; display: grid; place-items: center; }
.dog-stage { position: relative; width: min(520px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.dog-img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2; animation: bob 1.2s ease-in-out infinite; transform-origin: 50% 90%; }
.dog-img--sm { animation-duration: 1s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.dog-shadow { position: absolute; bottom: 6%; left: 50%; width: 55%; height: 30px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(11,58,34,.4), transparent 70%); z-index: 1; animation: shadow 1.2s ease-in-out infinite; }
@keyframes shadow { 50% { transform: translateX(-50%) scale(.82); opacity: .7; } }
.dog-missing { position: absolute; inset: 10%; z-index: 3; display: grid; place-items: center; text-align: center; border: 3px dashed var(--ink); border-radius: var(--radius); background: rgba(255,251,234,.5); font-weight: 600; padding: 20px; }
.dog-stage.is-zoomies .dog-img { animation: zoomies .5s linear infinite; }
@keyframes zoomies { 0% { transform: rotate(0) scale(1.05); } 25% { transform: rotate(12deg) scale(1.12) translateY(-14px); } 50% { transform: rotate(0) scale(1.05); } 75% { transform: rotate(-12deg) scale(1.12) translateY(-14px); } 100% { transform: rotate(0) scale(1.05); } }
.sticker { position: absolute; top: 4%; right: 4%; z-index: 4; font-family: var(--display); font-size: 20px; padding: 8px 18px; background: #fff36b; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(10deg); animation: wobble 2.4s ease-in-out infinite; }
.sticker.is-on { background: var(--red); color: #fff; }
@keyframes wobble { 50% { transform: rotate(4deg) scale(1.06); } }

.hero__copy { padding-left: 4%; }
.title { font-family: var(--display); font-weight: 400; font-style: normal; font-size: clamp(64px, 8.4vw, 148px); line-height: .96; margin: 18px 0 24px; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; letter-spacing: -.01em; }
.title__line { display: block; }
.title__line--accent { color: var(--red); }
.title .ch { display: inline-block; transition: transform .25s cubic-bezier(.2,.9,.3,1.5); }
.title .ch:hover { transform: translateY(-10px) rotate(-6deg); }
.title.is-dancing .ch { animation: chdance .9s ease-in-out infinite; animation-delay: calc(var(--i) * 60ms); }
@keyframes chdance { 50% { transform: translateY(-8px) rotate(var(--rot, 4deg)); } }
.lede { max-width: 620px; font-size: 20px; font-weight: 600; color: var(--ink); }
.ca { margin-top: 32px; max-width: 620px; }
.ca__label { display: block; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
.ca__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 12px 12px 22px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); border-radius: 20px; }
.ca__value { font-family: var(--mono); font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───────── Live strip ───────── */
.strip { position: relative; z-index: 3; background: var(--cream); border-block: 3px solid var(--ink); transform: rotate(-1.2deg); margin: 20px -20px; overflow: hidden; padding: 14px 0; }
.strip__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--mono); font-weight: 700; font-size: 18px; }
.strip__item { display: inline-flex; gap: 10px; align-items: center; }
.strip__item .up { color: var(--up); }
.strip__item .down { color: var(--down); }
.strip__sep { color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Mood ───────── */
.mood { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.mood__visual { padding: 28px; }
.mood__dog { height: 260px; display: grid; place-items: center; margin-bottom: 18px; background: radial-gradient(circle, rgba(255,255,255,.8), transparent 70%); border-radius: 20px; }
.mood__dog img { width: auto; height: 100%; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 3px 3px 0 var(--ink); }
.stat__label { display: block; font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.stat__value { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.15; margin-top: 4px; }
.stat__value.up { color: var(--up); }
.stat__value.down { color: var(--down); }
.stats__note { margin-top: 14px; font-size: 14px; opacity: .7; }
.accordion { display: grid; gap: 14px; }
.acc { padding: 0; overflow: hidden; }
.acc summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 22px 24px; font-weight: 700; font-size: 22px; }
.acc summary::-webkit-details-marker { display: none; }
.acc__icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); }
.acc__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc[open] .acc__icon { background: var(--red); }
.acc__chev { margin-left: auto; width: 14px; height: 14px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); transition: transform .3s; }
.acc[open] .acc__chev { transform: rotate(225deg); }
.acc p { padding: 0 24px 24px 86px; font-size: 18px; }

/* ───────── Countdown ───────── */
.countdown { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 40px; }
.cd { min-width: 170px; padding: 24px 20px 18px; display: grid; gap: 2px; }
.cd b { font-family: var(--display); font-weight: 400; font-size: 76px; line-height: 1; font-variant-numeric: tabular-nums; }
.cd span { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.cd:nth-child(odd) { transform: rotate(-1.5deg); }
.cd:nth-child(even) { transform: rotate(1.5deg); }

/* ───────── Dance floor ───────── */
.floor__controls { display: flex; gap: 12px; flex-wrap: wrap; }
.floor { position: relative; height: 560px; overflow: hidden; background: rgba(11,58,34,.78); border-color: rgba(255,255,255,.25); }
.floor__lights { position: absolute; inset: 0; background:
  radial-gradient(circle at 20% 30%, rgba(229,49,63,.45), transparent 35%),
  radial-gradient(circle at 80% 25%, rgba(138,242,126,.4), transparent 35%),
  radial-gradient(circle at 50% 85%, rgba(255,243,107,.35), transparent 40%);
  animation: lights 4s ease-in-out infinite alternate; }
@keyframes lights { 33% { filter: hue-rotate(60deg); transform: scale(1.1); } 100% { filter: hue-rotate(-40deg); transform: scale(1.05) rotate(3deg); } }
.floor::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background-image: linear-gradient(rgba(255,255,255,.08) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.08) 2px, transparent 2px); background-size: 60px 60px; transform: perspective(400px) rotateX(55deg); transform-origin: bottom; pointer-events: none; }
.floor__hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cream); font-family: var(--display); font-size: clamp(24px, 3vw, 40px); text-align: center; padding: 20px; pointer-events: none; transition: opacity .3s; }
.floor__count { position: absolute; left: 20px; bottom: 18px; z-index: 5; color: var(--cream); font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; background: rgba(0,0,0,.25); padding: 6px 12px; border-radius: 99px; }
.floor__dog { position: absolute; z-index: 3; transform: translate(-50%, -80%); pointer-events: none; animation: popin .4s cubic-bezier(.2,.9,.3,1.5) both; }
.floor__dog img { width: 100%; animation: bob 1s ease-in-out infinite; }
.floor__dog.is-flip img { transform: scaleX(-1); animation-name: bobflip; }
@keyframes bobflip { 0%,100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateY(-10px); } }
@keyframes popin { from { transform: translate(-50%, -80%) scale(0); } }

/* ───────── Link cards ───────── */
.cards { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 40px; }
.card { display: flex; align-items: center; gap: 14px; min-width: 260px; padding: 18px 20px; background: #fff36b; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); transform: rotate(var(--r)); transition: transform .2s, box-shadow .2s; text-align: left; }
.card:nth-child(2) { background: var(--cream); }
.card:nth-child(3) { background: #ffd1d4; }
.card:hover { transform: rotate(0) translateY(-4px); box-shadow: 8px 8px 0 var(--ink); }
.card__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--cream); flex: none; }
.card__icon--txt { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.card__text { display: grid; line-height: 1.2; }
.card__text b { font-family: var(--display); font-weight: 400; font-size: 22px; }
.card__text small { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.card__arrow { margin-left: auto; font-size: 22px; font-weight: 700; }
.disclaimer { max-width: 680px; margin: 60px auto 140px; color: var(--cream); opacity: .75; font-size: 14px; }

/* ───────── Dock ───────── */
.dock { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) rotate(-1deg); z-index: 60; display: flex; align-items: center; gap: 4px; padding: 7px; background: var(--cream); border: 3px solid var(--ink); border-radius: 99px; box-shadow: 5px 5px 0 var(--ink); transition: transform .3s; }
.dock:hover { transform: translateX(-50%) rotate(0); }
.dock a, .dock__menu { padding: 9px 18px; border-radius: 99px; font-weight: 700; font-size: 16px; transition: background .2s, color .2s; }
.dock a:hover, .dock a.is-active { background: var(--ink); color: var(--cream); }
.dock__menu { background: var(--red); color: #fff; display: inline-flex; gap: 8px; align-items: center; }
.dock__menu kbd { background: rgba(255,255,255,.25); }

/* ───────── Menu ───────── */
.menu { position: fixed; inset: 0; z-index: 800; background: var(--ink); color: var(--cream); display: grid; grid-template-rows: auto 1fr auto; padding: 32px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s, visibility .4s; }
.menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.menu__close { justify-self: end; font-weight: 700; display: inline-flex; gap: 10px; align-items: center; padding: 10px 18px; border: 2px solid rgba(255,251,234,.4); border-radius: 99px; }
.menu__list { list-style: none; align-self: center; max-width: var(--max); width: 100%; margin: 0 auto; }
.menu__list a { display: flex; align-items: baseline; gap: 22px; font-family: var(--display); font-size: clamp(44px, 7vw, 104px); line-height: 1.1; transition: color .2s, transform .3s; transform: translateX(-20px); opacity: 0; }
.menu.is-open .menu__list a { transform: none; opacity: 1; transition: transform .5s cubic-bezier(.2,.9,.3,1.2), opacity .5s, color .2s; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .05s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .1s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .15s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .2s; }
.menu__list a:hover { color: var(--red); }
.menu__list small { font-family: var(--mono); font-size: 16px; opacity: .5; }
.menu__foot { display: flex; justify-content: space-between; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; max-width: var(--max); width: 100%; margin: 0 auto; }

/* ───────── Toast + confetti ───────── */
.toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); z-index: 900; background: var(--ink); color: var(--cream); font-weight: 700; padding: 12px 22px; border-radius: 99px; opacity: 0; pointer-events: none; transition: all .3s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; z-index: 700; pointer-events: none; width: 10px; height: 14px; border-radius: 2px; }

/* ───────── Responsive ───────── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 100px; }
  .hero__dog { order: -1; }
  .dog-stage { width: min(320px, 78%); }
  .sticker { top: 0; right: 6%; }
  .hero__copy { padding-left: 0; }
  .mood { grid-template-columns: 1fr; }
  .dock a { display: none; }
  .dock a[data-nav="home"] { display: inline-block; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .section { padding: 90px 18px 30px; }
  .hero { padding-inline: 18px; }
  .top { padding: 14px 18px; }
  .live-dot { display: none !important; }
  .title { -webkit-text-stroke-width: 3px; }
  .cd { min-width: 44%; }
  .cd b { font-size: 54px; }
  .floor { height: 440px; }
  .acc p { padding-left: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
