/* Bell Coin ($BELL) */

@font-face { font-family: "Cinzel"; src: url("fonts/cinzel.woff2") format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }

:root {
  --bg: #150307;
  --bg-2: #22050c;
  --bg-3: #5c0c1c;
  --velvet: #7a1022;
  --aurora: #ff5a6e;
  --line-dark: rgba(242, 195, 91, .22);
  --paper: #f0e8d1;
  --paper-2: #e7ddc0;
  --paper-edge: #d6c89f;
  --ink: #1d4632;
  --ink-2: #305a45;
  --ink-soft: #587361;
  --gold: #e9b949;
  --gold-2: #ad7c20;
  --gold-hi: #ffe7a3;
  --red: #c8243a;
  --red-2: #9b1428;
  --chip: rgba(21, 3, 7, .5);
  --card-a: rgba(122, 16, 34, .42);
  --card-b: rgba(34, 5, 12, .75);
  --foot: #0c0204;
  --fine: #c49a92;
  --cream: #fff6e2;
  --muted: #e6c3b8;
  --glow: rgba(255, 196, 92, .5);
  --glow-2: rgba(255, 60, 80, .25);
  --rays: rgba(255, 214, 130, .14);
  --snow: #fffaf0;
  --gold-foil: linear-gradient(180deg, #fff6cf 0%, #ffe08a 30%, #e9b949 52%, #b07a1c 62%, #f7d77a 84%, #fff1bd 100%);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 16px;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 500 17px/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--gold); color: var(--bg); font-weight: 800; text-decoration: none; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ── Hero: Bell on his snowy rooftop ───────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "top" "main" "." "act";
  padding: calc(env(safe-area-inset-top) + 40px) var(--gutter) calc(74px + env(safe-area-inset-bottom));
}
.hero-art { position: absolute; inset: 0; z-index: -3; }
.hero-art picture, .hero-art img { width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 50% 30%; animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.07); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(21, 3, 7, .72) 0%, rgba(21, 3, 7, 0) 26%),
    linear-gradient(0deg, var(--bg) 0%, rgba(21, 3, 7, .86) 15%, rgba(21, 3, 7, 0) 40%);
}
/* phones: the art sits under the title at its natural shape, blended into the sky colour */
@media (max-aspect-ratio: 4/5) {
  .hero { min-height: max(100svh, 720px); background: linear-gradient(180deg, #24040a 0%, #4a0812 40%, #5e0b18 100%); }
  .hero-art { top: auto; bottom: 0; height: auto; -webkit-mask: linear-gradient(180deg, transparent 0%, #000 16%); mask: linear-gradient(180deg, transparent 0%, #000 16%); }
  .hero-art picture, .hero-art img { height: auto; }
  .hero-art img { object-fit: contain; }
  .sign { font-size: clamp(60px, 19vw, 120px); }
  .hero-line { margin-top: 14px; }
}
@media (max-aspect-ratio: 4/5) and (max-height: 800px) { .hero-art { bottom: -80px; } }
@media (min-aspect-ratio: 4.001/5) {
  .hero-art img { object-position: 72% 30%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(21, 3, 7, .6) 0%, rgba(21, 3, 7, 0) 22%),
      linear-gradient(90deg, rgba(21, 3, 7, .82) 0%, rgba(21, 3, 7, .45) 32%, rgba(21, 3, 7, 0) 56%),
      linear-gradient(0deg, var(--bg) 0%, rgba(21, 3, 7, 0) 26%);
  }
}

.lights { position: absolute; top: max(0px, env(safe-area-inset-top)); left: 0; right: 0; height: 46px; z-index: 1; pointer-events: none; overflow: hidden; }
.lights svg { display: block; }
.lights .wire { fill: none; stroke: #3b1a10; stroke-width: 1.6; }
.lights .cap { fill: #6b4a2a; }
.lights .glass { fill: var(--c); }
.lights .glow { fill: var(--c); opacity: .38; filter: blur(4px); }
.lights .bulb { animation: twinkle 2.4s ease-in-out var(--d) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .lights .bulb { animation: none; } }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.topbar { grid-area: top; position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px/1 var(--display); letter-spacing: .08em; color: var(--gold-hi); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.brand img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 4px 14px rgba(0, 0, 0, .45); }
.socials { display: inline-flex; gap: 8px; }
.round-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: var(--chip); color: var(--cream); backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.round-btn svg { width: 18px; height: 18px; fill: currentColor; }
.round-btn:hover { background: var(--bg-3); border-color: var(--gold); }

.hero-main { grid-area: main; position: relative; z-index: 2; margin-top: clamp(18px, 4svh, 56px); text-align: center; }
.hero-kicker { font: 800 12px/1 var(--body); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.sign {
  margin-top: 12px;
  display: flex; flex-direction: column; align-items: center;
  font: 900 clamp(66px, 21vw, 156px)/.84 var(--display);
  letter-spacing: .01em;
  text-transform: uppercase;
}
.sign span {
  background: var(--gold-foil);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #4a2f06) drop-shadow(0 6px 14px rgba(0, 0, 0, .55)) drop-shadow(0 0 26px rgba(255, 205, 100, .45));
  animation: rise .9s var(--ease) both;
}
.sign-b { font-size: 1.12em; animation-delay: .12s !important; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-line { margin-top: 18px; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; font: 700 clamp(17px, 4.6vw, 22px)/1.35 var(--body); color: var(--cream); text-shadow: 0 2px 12px rgba(0, 0, 0, .8); text-wrap: balance; }
.ticker { font: 800 .82em/1 var(--mono); letter-spacing: .04em; color: #2a1a02; background: var(--gold-foil); padding: .34em .56em .28em; border-radius: .35em; text-shadow: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
@media (min-aspect-ratio: 4.001/5) {
  .hero-main { max-width: 620px; text-align: left; }
  .sign { align-items: flex-start; }
  .hero-line { justify-content: flex-start; }
}

.hero-act { grid-area: act; position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.hero-note { color: var(--muted); font-size: 15px; max-width: 34ch; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
@media (min-aspect-ratio: 4.001/5) { .hero-act { align-items: flex-start; text-align: left; max-width: 620px; } }

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  background: var(--gold-foil);
  color: #3a0a12;
  font: 800 15px/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 10px 24px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
  cursor: pointer;
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-gold:active { transform: translateY(0); }
.btn-gold[aria-disabled="true"] { cursor: default; filter: saturate(.55) brightness(.92); transform: none; }

.pill-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04); color: var(--cream); font: 800 14px/1 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.pill-btn:hover { background: rgba(233, 185, 73, .14); border-color: var(--gold); }

/* ── Tape band across the bottom of the hero ───────────────────────────── */
.tape { position: relative; z-index: 3; overflow: hidden; margin-top: -46px; padding: 26px 0; }
.tape-band {
  transform: rotate(-2.2deg);
  margin: 0 -24px;
  background: var(--gold-foil);
  border-block: 3px solid #7a1022;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 34px rgba(255, 200, 90, .35);
}
.tape-track { display: flex; width: max-content; animation: drift 34s linear infinite; }
.tape-track span { padding: 13px 0; white-space: pre; font: 900 19px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #6b0d1d; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } }

/* ── Sections ──────────────────────────────────────────────────────────── */
.sec { position: relative; padding: 84px var(--gutter); max-width: 1180px; margin: 0 auto; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 38px; }
.kicker { font: 800 12px/1 var(--body); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
h2 { margin-top: 12px; font: 900 clamp(32px, 7vw, 56px)/1.02 var(--display); letter-spacing: .01em; color: var(--cream); text-wrap: balance; }
.lede { margin-top: 14px; color: var(--muted); font-size: 18px; }
main { position: relative; overflow-x: clip; background: radial-gradient(70% 40% at 50% 0%, rgba(255, 90, 110, .1), transparent 70%), radial-gradient(60% 30% at 50% 55%, rgba(233, 185, 73, .07), transparent 70%); }

/* the memes: a swipeable row on phones, a grid on wide screens */
.meme-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82vw, 360px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 18px;
  margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: none;
}
.meme-list::-webkit-scrollbar { display: none; }
.meme {
  scroll-snap-align: center;
  display: flex; flex-direction: column; gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--card-a), var(--card-b));
  border: 1px solid var(--line-dark);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
}
.meme-shot { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--bg-2); }
.meme-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.meme:hover .meme-shot img { transform: scale(1.04); }
.meme-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 14px 14px;
  background: linear-gradient(0deg, rgba(21, 3, 7, .9), rgba(21, 3, 7, 0));
  font: 900 clamp(20px, 5.6vw, 26px)/1.05 var(--display); text-transform: uppercase; text-align: center;
  color: #fff; text-shadow: 0 2px 0 #000, 0 0 14px rgba(0, 0, 0, .7);
}
.meme-body { padding: 0 4px; }
.meme-no { font: 700 12px/1 var(--mono); letter-spacing: .14em; color: var(--gold); }
.meme h3 { margin-top: 6px; font: 800 19px/1.2 var(--body); color: var(--cream); }
.meme p { margin-top: 4px; color: var(--muted); font-size: 15.5px; }
.meme-do { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.swipe { margin-top: 6px; text-align: center; color: var(--muted); font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
@media (min-width: 960px) {
  .meme-list { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 22px; }
  .swipe { display: none; }
}

.steps { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step {
  position: relative;
  padding: 26px 24px 26px 92px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--card-a), var(--card-b));
  border: 1px solid var(--line-dark);
  min-height: 132px;
}
.step-no {
  position: absolute; left: 20px; top: 24px;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font: 900 22px/1 var(--display);
  color: #3a2504;
  border-radius: 50%;
  background: var(--gold-foil);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), 0 6px 16px rgba(0, 0, 0, .4);
}
.step h3 { font: 800 20px/1.25 var(--body); color: var(--cream); }
.step p { margin-top: 8px; color: var(--muted); font-size: 16.5px; line-height: 1.55; }

.cert { padding-bottom: 104px; }
.cert-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 22px 40px;
  text-align: center;
  border-radius: 22px;
  background: radial-gradient(90% 70% at 50% 0%, rgba(233, 185, 73, .14), transparent 60%), linear-gradient(180deg, var(--card-a), var(--card-b));
  box-shadow: 0 0 0 1px var(--line-dark), 0 24px 44px rgba(0, 0, 0, .45);
}
.cert-card::before { content: ""; position: absolute; inset: 10px; border: 3px double rgba(233, 185, 73, .55); border-radius: 15px; pointer-events: none; }
.ca { margin: 26px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; max-width: 600px; }
.ca-text {
  flex: 1 1 260px;
  min-width: 0;
  padding: 15px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .28);
  border: 1px dashed rgba(233, 185, 73, .5);
  font: 700 15px/1.4 var(--mono);
  color: var(--gold-hi);
  word-break: break-all;
}
.ca-text.is-placeholder { color: var(--muted); font-weight: 600; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--gold-foil); color: #3a0a12; font: 800 14px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.copy-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.copy-btn.is-done { filter: brightness(.9); }
.ca-note { margin-top: 14px; color: var(--muted); font-size: 16px; }
.cert-card .btn-gold { margin-top: 24px; }

/* ── Footer, dock, toast ───────────────────────────────────────────────── */
.foot { padding: 56px var(--gutter) calc(110px + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--line-dark); background: var(--foot); }
.foot-motto { font: 800 clamp(26px, 5vw, 38px)/1.1 var(--display); letter-spacing: .06em; color: var(--gold-hi); }
.foot-motto span { display: block; margin-top: 8px; font-size: .55em; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.foot-name { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1 var(--display); letter-spacing: .08em; color: var(--cream); }
.foot-name img { border-radius: 50%; }
.foot-name span { font: 600 14px/1 var(--body); letter-spacing: 0; color: var(--muted); }
.foot-links { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot-links a { padding: 8px 2px; color: var(--cream); text-decoration: none; font-size: 16px; border-bottom: 1px solid transparent; }
.foot-links a[href]:hover { border-color: var(--gold); }
.foot-links a[aria-disabled="true"] { color: var(--muted); }
.fine { margin: 18px auto 0; max-width: 60ch; color: var(--fine); font-size: 14px; line-height: 1.55; }
.fine + .fine { margin-top: 8px; }

.dock {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 30;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px 0 10px;
  border-radius: 999px;
  background: var(--gold-foil);
  color: #3a0a12; font: 800 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  transform: translate(-50%, 140%);
  transition: transform .35s var(--ease);
}
.dock img { border-radius: 50%; }
.dock.is-up { transform: translate(-50%, 0); }
.dock[aria-disabled="true"] { filter: saturate(.55) brightness(.92); }
@media (min-width: 960px) { .dock { display: none; } }

.toast { position: fixed; left: 50%; top: max(14px, env(safe-area-inset-top)); z-index: 40; transform: translate(-50%, -160%); padding: 12px 18px; border-radius: 10px; background: var(--gold-hi); color: #3a0a12; font-weight: 800; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); transition: transform .3s var(--ease); }
.toast.is-up { transform: translate(-50%, 0); }

/* ── Reveal on scroll (only when the script runs and motion is welcome) ── */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } .note { transition: none; } }


/* ── Ring the bell ─────────────────────────────────────────────────────── */
.ring { text-align: center; }
.ring-stage { position: relative; display: grid; place-items: center; margin: 8px auto 0; width: min(76vw, 380px); aspect-ratio: 1; }
.ring-glow { position: absolute; inset: -20%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), var(--glow-2) 55%, transparent 75%); pointer-events: none; }
.ring-wave { position: absolute; inset: 6%; border-radius: 50%; border: 3px solid rgba(255, 220, 140, .85); opacity: 0; pointer-events: none; }
.ring-wave.go { animation: wave 1.1s var(--ease) forwards; }
@keyframes wave { from { opacity: .9; transform: scale(.85); } to { opacity: 0; transform: scale(1.6); } }
.ring-btn { position: relative; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ring-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--gold), 0 0 0 11px rgba(233, 185, 73, .22), 0 26px 50px rgba(0, 0, 0, .5); transform-origin: 50% 6%; }
.ring-btn.go img { animation: swing .9s cubic-bezier(.3, .6, .3, 1); }
@keyframes swing { 0% { transform: rotate(0); } 18% { transform: rotate(13deg); } 40% { transform: rotate(-10deg); } 60% { transform: rotate(6deg); } 80% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
.ring-btn:focus-visible { outline-offset: 10px; border-radius: 50%; }
.ring-count { margin-top: 28px; font: 700 15px/1.4 var(--body); color: var(--muted); min-height: 1.4em; }
.ring-count b { color: var(--gold-hi); font-family: var(--mono); }
@media (prefers-reduced-motion: reduce) { .ring-btn.go img, .ring-wave.go { animation: none; } }

/* phones: title, tagline and button first; the picture fills the rest below, so nothing covers the character */
@media (max-aspect-ratio: 4/5) {
  .hero { grid-template-rows: auto auto auto 1fr; grid-template-areas: "top" "main" "act" "art"; min-height: 100svh; padding-bottom: 0; }
  .hero-art { position: relative; inset: auto; top: auto; bottom: auto; grid-area: art; height: auto; min-height: 300px; margin: 6px calc(-1 * var(--gutter)) 0; -webkit-mask: linear-gradient(180deg, transparent 0%, #000 20%); mask: linear-gradient(180deg, transparent 0%, #000 20%); }
  .hero-art picture { position: absolute; inset: 0; }
  .hero-art picture, .hero-art img { width: 100%; height: 100%; margin: 0; max-width: none; }
  .hero-art img { object-fit: cover; object-position: 50% 58%; }
  .hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 22%), linear-gradient(0deg, var(--bg) 0%, rgba(0, 0, 0, 0) 12%); }
  .hero-main { margin-top: 14px; }
  .hero-act { margin-top: 18px; gap: 8px; }
  .hero-note { font-size: 14px; }
  .tape { margin-top: -30px; }
}
