/* ============================================================================
   $PAWS — core stylesheet
   Full blue. Cold, clear, loud. Palette pulled off the paw mark.
   ========================================================================== */

:root {
  /* the swatch, exact */
  --blue: #019afe;
  --blue-hot: #4fb2ff;
  --blue-soft: #9bd6ff;
  --mist: #d1efff;
  --frost: #e8f6ff;
  --paper: #f5fbff;
  --ocean: #008ad6;
  --deep: #006aa1;
  --navy: #03456b;
  --ink: #00304a;
  --white: #ffffff;

  --edge: 3px;
  --shadow-hard: 8px 8px 0 var(--ink);
  --shadow-hard-sm: 5px 5px 0 var(--ink);
  --shadow-soft: 0 22px 60px rgba(0, 138, 214, 0.18);
  --shadow-lift: 0 30px 70px rgba(0, 138, 214, 0.28);

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 56px);
  --radius: 22px;

  --display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------- reset */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg, canvas, iframe { display: block; max-width: 100%; }

/* A class that sets `display` beats the UA rule for [hidden], which quietly
   left overlays like the market ticker painted over everything. */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 900;
}

p { margin: 0 0 1em; }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------- svg icons */

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico--fill { fill: currentColor; stroke: none; }
.ico--lg { width: 1.6em; height: 1.6em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------- fixed layers */

.grain,
.glow-veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
}

.grain {
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow-veil {
  z-index: 8990;
  background: radial-gradient(ellipse at 50% 46%, transparent 52%, rgba(1, 154, 254, 0.1) 100%);
}

/* scroll progress ribbon ------------------------------------------------ */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  z-index: 9100;
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mist), var(--blue) 40%, var(--ocean) 70%, var(--blue-hot));
  box-shadow: 0 0 22px rgba(1, 154, 254, 0.8);
  transition: width 0.08s linear;
}

/* custom cursor --------------------------------------------------------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 42px;
  /* the tip of the middle toes is at 19/140 down the viewBox — put that on
     the pointer, so the paw points at what it is over */
  margin: -6px 0 0 -15px;
  pointer-events: none;
  z-index: 9500;
  will-change: transform;
  transition: opacity 0.3s;
  filter: drop-shadow(0 3px 6px rgba(0, 48, 74, 0.35));
}

.cursor svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-14deg);
  transform-origin: 50% 7%;
  transition: transform 0.28s var(--ease-out);
}

.cursor path {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the white paw sits under the blue one and is grown by its own stroke, so the
   mark keeps an outline on the blue bands and the paper sections alike */
.cursor__halo { fill: #fff; stroke: #fff; stroke-width: 16; }
.cursor__ink { fill: var(--blue); stroke: none; }

/* over anything interactive it swells and straightens up */
.cursor.is-hot svg { transform: rotate(4deg) scale(1.45); }
.cursor.is-down svg { transform: rotate(-14deg) scale(0.82); }
.cursor.is-hidden { opacity: 0; }

/* The paw replaces the arrow rather than trailing it — but only once the
   script has confirmed it is actually drawing one. Keyed off a class rather
   than a media query so a failed script, or reduced motion, leaves the real
   cursor alone instead of hiding it with nothing in its place. */
.has-paw-cursor,
.has-paw-cursor a,
.has-paw-cursor button,
.has-paw-cursor input,
.has-paw-cursor textarea,
.has-paw-cursor select,
.has-paw-cursor label,
.has-paw-cursor [data-magnetic] { cursor: none; }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* --------------------------------------------------------------- loader */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9800;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #2ba6ff, var(--blue) 45%, var(--ocean));
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}

.loader.is-done { opacity: 0; visibility: hidden; }

.loader__inner {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
  color: #fff;
}

.loader__paw { width: min(120px, 32vw); }

.loader__paw path {
  fill: none;
  stroke: #fff;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  filter: drop-shadow(0 4px 18px rgba(0, 74, 122, 0.45));
  animation: drawPaw 2.4s var(--ease-io) infinite;
}

@keyframes drawPaw {
  0%   { stroke-dashoffset: 520; }
  55%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -520; }
}

.loader__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.85;
}

.loader__count {
  font-size: clamp(46px, 12vw, 92px);
  font-weight: 900;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  padding: 14px var(--gut);
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  transition: background-color 0.4s var(--ease-out), backdrop-filter 0.4s,
    box-shadow 0.4s, transform 0.45s var(--ease-out), padding 0.4s var(--ease-out), color 0.4s;
}

.nav.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 40px rgba(0, 138, 214, 0.14);
  color: var(--navy);
  padding-top: 9px;
  padding-bottom: 9px;
}

.nav.is-hidden { transform: translateY(-115%); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 19px;
  flex: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  transition: transform 0.5s var(--bounce);
}

.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.08); }

.brand__mark img { width: 100%; height: 100%; object-fit: contain; }

.nav__links {
  display: flex;
  gap: 2px;
  margin-left: auto;
  align-items: center;
}

.nav__link {
  position: relative;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
  border-radius: 999px;
  transition: opacity 0.25s, background-color 0.25s;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active { opacity: 1; }

.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { margin-left: 10px; }

.burger {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 2px solid currentColor;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
  position: relative;
  color: inherit;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.2s;
}

.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 30px; }

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 7900;
  background: linear-gradient(160deg, #2ba6ff, var(--blue) 50%, var(--ocean));
  color: #fff;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 90px var(--gut) var(--gut);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-out);
}

.drawer.is-open { transform: translateY(0); }

.drawer a {
  font-size: clamp(26px, 7.5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.04em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  opacity: 0;
  transform: translateY(18px);
}

.drawer.is-open a { animation: drawerIn 0.5s var(--ease-out) forwards; }
.drawer.is-open a:nth-child(1) { animation-delay: 0.06s; }
.drawer.is-open a:nth-child(2) { animation-delay: 0.11s; }
.drawer.is-open a:nth-child(3) { animation-delay: 0.16s; }
.drawer.is-open a:nth-child(4) { animation-delay: 0.21s; }
.drawer.is-open a:nth-child(5) { animation-delay: 0.26s; }
.drawer.is-open a:nth-child(6) { animation-delay: 0.31s; }
.drawer.is-open a:nth-child(7) { animation-delay: 0.36s; }
.drawer.is-open a:nth-child(8) { animation-delay: 0.41s; }

@keyframes drawerIn { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1120px) {
  .nav__links { display: none; }
  .burger { display: block; }
}

/* --------------------------------------------------------------- button */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
    color 0.3s, border-color 0.3s;
  box-shadow: 0 10px 28px rgba(1, 154, 254, 0.34);
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}

.btn:hover {
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 16px 40px rgba(0, 48, 74, 0.3);
}

.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(0.97); }

.btn--ghost {
  background: transparent;
  color: var(--blue);
  box-shadow: none;
}

.btn--ghost::before { background: var(--blue); }
.btn--ghost:hover { color: #fff; border-color: var(--blue); }

.btn--onblue {
  background: #fff;
  border-color: #fff;
  color: var(--ocean);
  box-shadow: 0 12px 34px rgba(0, 74, 122, 0.28);
}

.btn--onblue::before { background: var(--ink); }
.btn--onblue:hover { color: #fff; border-color: var(--ink); }

.btn--outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  box-shadow: none;
}

.btn--outline-white::before { background: #fff; }
.btn--outline-white:hover { color: var(--ocean); border-color: #fff; }

.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn--big { padding: 18px 32px; font-size: 17px; }
.btn--big .ico { width: 1.3em; height: 1.3em; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.42; pointer-events: none; }

/* ------------------------------------------------------------- sections */

.wrap {
  width: min(var(--maxw), 100%);
  margin-inline: auto;
  padding-inline: var(--gut);
}

section { position: relative; }

.sec { padding: clamp(80px, 12vw, 150px) 0; position: relative; }

.sec--paper { background: var(--paper); }
.sec--frost { background: linear-gradient(180deg, var(--frost), var(--paper)); }

.sec--blue {
  background: linear-gradient(150deg, #2ba6ff 0%, var(--blue) 45%, var(--ocean) 100%);
  color: #fff;
}

.sec--blue .eyebrow { color: rgba(255, 255, 255, 0.85); }
.sec--blue .lede { opacity: 0.92; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::after {
  content: '';
  height: 2px;
  flex: 1;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.35;
  max-width: 150px;
}

.h-xl { font-size: clamp(44px, 9vw, 108px); letter-spacing: -0.05em; }
.h-lg { font-size: clamp(34px, 6vw, 70px); }
.h-md { font-size: clamp(24px, 3.4vw, 38px); }

.lede {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.62;
  max-width: 62ch;
  opacity: 0.82;
}

.mono { font-family: var(--mono); font-size: 13px; }

.blue { color: var(--blue); }

/* wave / ribbon dividers ------------------------------------------------ */

.divider {
  display: block;
  width: 100%;
  height: clamp(50px, 7vw, 96px);
  margin: 0;
}

.divider path { fill: currentColor; }

/* the fill is the colour the NEXT section starts with; the background is the
   colour the PREVIOUS section ends with, so the seam disappears */
.divider--to-blue { color: #2ba6ff; background: var(--paper); }
.divider--to-cream { color: var(--paper); background: var(--ocean); }
.divider--to-frost { color: var(--frost); background: var(--ocean); }

/* reveal on scroll ------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.is-in { opacity: 1; transform: none; }

.reveal[data-delay='1'] { transition-delay: 0.09s; }
.reveal[data-delay='2'] { transition-delay: 0.18s; }
.reveal[data-delay='3'] { transition-delay: 0.27s; }
.reveal[data-delay='4'] { transition-delay: 0.36s; }
.reveal[data-delay='5'] { transition-delay: 0.45s; }

/* The box has to clip vertically for the words to slide up out of it, but a
   tight clip shaves the side bearing off glyphs like S at these weights — so
   it is padded sideways and pulled back by the same amount. */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-inline: 0.08em;
  margin-inline: -0.08em;
}

/* once the words have landed there is nothing left to clip */
.is-revealed .split-word { overflow: visible; }

.split-word > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(105%);
  transition: transform 0.85s var(--ease-out);
}

.is-in .split-word > i { transform: translateY(0); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, #2ba6ff 0%, var(--blue) 42%, var(--ocean) 100%);
}

#gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.95;
}

#petals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* soft scrim so the headline always has contrast over the plasma */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(0, 96, 150, 0.55) 0%, rgba(0, 115, 180, 0.22) 42%, transparent 68%),
    linear-gradient(180deg, rgba(0, 100, 160, 0.35) 0%, transparent 26%, transparent 70%, rgba(0, 74, 120, 0.4) 100%);
}

.hero__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__tag .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7bf1a8;
  box-shadow: 0 0 0 0 rgba(241, 168, 123, 0.8);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(241, 168, 123, 0.8); }
  70%  { box-shadow: 0 0 0 12px rgba(241, 168, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(241, 168, 123, 0); }
}

.hero h1 {
  font-size: clamp(46px, 8.4vw, 112px);
  letter-spacing: -0.05em;
  margin-bottom: 22px;
  text-shadow: 0 8px 40px rgba(0, 74, 120, 0.35);
}

.hero h1 .glow {
  color: #fff;
  text-shadow: 0 0 32px rgba(255, 255, 255, 0.7), 0 0 80px rgba(255, 255, 255, 0.35);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 24px;
}

/* CA chip --------------------------------------------------------------- */

.ca {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  max-width: 620px;
}

.ca__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}

.ca__value {
  font-family: var(--mono);
  font-size: clamp(10.5px, 1.5vw, 13px);
  word-break: break-all;
  flex: 1;
  min-width: 180px;
}

.ca__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.2s, color 0.25s;
  white-space: nowrap;
}

.ca__btn:hover { background: #fff; color: var(--ocean); }
.ca__btn:active { transform: scale(0.94); }
.ca__btn.is-copied { background: #16a34a; border-color: #16a34a; color: #fff; }

/* CA chip on light sections */
.sec--paper .ca,
.sec--frost .ca {
  border-color: rgba(1, 154, 254, 0.3);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.sec--paper .ca__btn,
.sec--frost .ca__btn {
  border-color: var(--blue);
  background: rgba(1, 154, 254, 0.1);
  color: var(--ocean);
}

.sec--paper .ca__btn:hover,
.sec--frost .ca__btn:hover { background: var(--blue); color: #fff; }

/* --------------------------------------------------------- 3D coin --- */

.hero__art {
  display: grid;
  place-items: center;
  position: relative;
}

.coin-scene {
  width: min(390px, 78vw);
  aspect-ratio: 1;
  position: relative;
  perspective: 1200px;
  cursor: grab;
  touch-action: none;
}

.coin-scene:active,
.coin-scene.is-dragging { cursor: grabbing; }

.coin-scene:focus-visible { outline-offset: 12px; }

.coin-scene__glow {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 62%);
  filter: blur(18px);
  animation: glowPulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.95; transform: scale(1.06); }
}

.coin3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.coin3d__face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  overflow: hidden;
  background: var(--blue);
  box-shadow:
    inset 0 -30px 70px rgba(0, 74, 122, 0.45),
    inset 0 30px 70px rgba(255, 255, 255, 0.18);
}

.coin3d__face svg { width: 100%; height: 100%; }



/* rim: a stack of thin slats, generated in JS, forming the cylinder wall */
.coin3d__rim { position: absolute; inset: 0; transform-style: preserve-3d; }

.coin3d__slat {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  background: linear-gradient(180deg, #b2e2ff 0%, var(--blue) 34%, var(--ocean) 74%, var(--deep) 100%);
}

/* The sweep sits still and clips itself to the coin's circle; the band that
   travels is the pseudo-element inside it. Doing it the other way round — a
   blended layer that moves — lets the browser composite it against the whole
   3D scene instead of the face, which shows up as a hard rectangle across the
   coin the moment it is rotated. */
.coin3d__shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  overflow: hidden;
  pointer-events: none;
  backface-visibility: hidden;
}

.coin3d__shine::before {
  content: '';
  position: absolute;
  inset: -25%;
  background: linear-gradient(
    118deg,
    transparent 38%,
    rgba(255, 255, 255, 0.5) 46%,
    rgba(255, 255, 255, 0.78) 50%,
    rgba(255, 255, 255, 0.5) 54%,
    transparent 62%
  );
  animation: coinShine 5s linear infinite;
}

@keyframes coinShine {
  0%   { transform: translateX(-70%); opacity: 0; }
  22%  { opacity: 1; }
  78%  { opacity: 1; }
  100% { transform: translateX(70%); opacity: 0; }
}

.coin-scene__ring {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  animation: ringSpin 24s linear infinite;
  pointer-events: none;
}

.coin-scene__ring--2 {
  inset: -18%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.22);
  animation-duration: 36s;
  animation-direction: reverse;
}

@keyframes ringSpin { to { transform: rotate(360deg); } }

.coin-scene__orbit {
  position: absolute;
  inset: -18%;
  animation: ringSpin 15s linear infinite;
  pointer-events: none;
}

.coin-scene__orbit i {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.95);
}

.coin-scene__hint {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
  white-space: nowrap;
  pointer-events: none;
}

/* hero stat ribbon ------------------------------------------------------ */

.hero__stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(46px, 6vw, 84px);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 74, 122, 0.28);
}

.hero__stats div {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  padding: 20px 16px;
  text-align: center;
}

.hero__stats b {
  display: block;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: -0.03em;
}

.hero__stats small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

@media (max-width: 700px) { .hero__stats { grid-template-columns: repeat(2, 1fr); } }

.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.scroll-hint i {
  display: block;
  width: 2px;
  height: 40px;
  border-radius: 2px;
  background: linear-gradient(#fff, transparent);
  animation: hintDrop 1.9s ease-in-out infinite;
}

@keyframes hintDrop {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.35; }
  50%      { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* -------------------------------------------------------------- marquee */

.marquee {
  --speed: 34s;
  overflow: hidden;
  background: var(--ink);
  color: var(--mist);
  padding: 13px 0;
  display: flex;
  white-space: nowrap;
  user-select: none;
}

.marquee--blue {
  background: var(--blue);
  color: #fff;
}

.marquee__track {
  display: flex;
  gap: 30px;
  padding-right: 30px;
  animation: marquee var(--speed) linear infinite;
  flex: none;
  align-items: center;
}

.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--rev .marquee__track { animation-direction: reverse; }

.marquee__track span {
  font-size: clamp(17px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 30px;
}

.marquee__track .ico {
  width: 0.62em;
  height: 0.62em;
  opacity: 0.8;
}

@keyframes marquee { to { transform: translateX(-100%); } }

/* ------------------------------------------------------------ why blue */

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

@media (max-width: 880px) { .why { grid-template-columns: 1fr; } }

.why__big {
  font-size: clamp(38px, 6.4vw, 82px);
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.why__big em { font-style: normal; color: var(--blue); position: relative; }

.why__big em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.1em;
  border-radius: 0.05em;
  background: var(--mist);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out) 0.4s;
}

.is-in .why__big em::after { transform: scaleX(1); }

.cards { display: grid; gap: 16px; }

.card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 2px solid rgba(1, 154, 254, 0.16);
  background: #fff;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(1, 154, 254, 0.13), transparent 65%);
  pointer-events: none;
}

.card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lift);
}

.card:hover::before { opacity: 1; }

.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { margin: 0; font-size: 15.5px; line-height: 1.6; opacity: 0.75; }

.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* -------------------------------------------------------------- the pipe */

.pipe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}

@media (max-width: 880px) { .pipe { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 34px 26px 28px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  box-shadow: 0 18px 50px rgba(0, 74, 122, 0.22);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.step:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(0, 48, 74, 0.3); }

.step__n {
  position: absolute;
  top: -22px;
  left: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  border: 4px solid #fff;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(0, 74, 122, 0.3);
}

.step h3 { margin: 12px 0 10px; font-size: 21px; }
.step p { margin: 0; font-size: 15px; line-height: 1.58; opacity: 0.75; }

/* live tracker ---------------------------------------------------------- */

.tracker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

@media (max-width: 780px) { .tracker { grid-template-columns: 1fr; } }

.tile {
  padding: 30px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 45%, rgba(255, 255, 255, 0.28) 50%, transparent 55%);
  transform: translateX(-100%);
  animation: tileSweep 5s ease-in-out infinite;
}

@keyframes tileSweep {
  0%, 60% { transform: translateX(-100%); }
  100%    { transform: translateX(100%); }
}

.tile b {
  display: block;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.tile small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* the headline donation figure --------------------------------------- */

.tracker-head { text-align: center; margin-top: 6px; }

.eyebrow--center { justify-content: center; }
.eyebrow--center::after { display: none; }

.tracker-big {
  font-size: clamp(56px, 13vw, 168px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 10px 50px rgba(0, 74, 122, 0.35);
}

.tracker-sub {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
  flex-wrap: wrap;
  justify-content: center;
}

/* the parts are flex children of the line itself, so a narrow screen wraps
   between them instead of orphaning the dot on a row of its own */
#trackerMeta { display: contents; }

.tracker-sub__item { white-space: nowrap; }

.tracker-sub__item + .tracker-sub__item::before {
  content: '·';
  margin-right: 14px;
  opacity: 0.55;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  flex: none;
  transition: background-color 0.4s;
}

.live-dot.is-live {
  background: #7bf1a8;
  box-shadow: 0 0 0 0 rgba(241, 168, 123, 0.8);
  animation: livePulse 2s infinite;
}

/* two tiles instead of three once the headline carries the USD figure */
.tracker { margin-top: 40px; }

@media (min-width: 781px) {
  .tracker { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* live market strip under the tracker tiles ---------------------------- */

.ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: 22px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticker__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7bf1a8;
  box-shadow: 0 0 0 0 rgba(241, 168, 123, 0.8);
  animation: livePulse 2s infinite;
  flex: none;
}

.ticker__item { white-space: nowrap; opacity: 0.85; }

.ticker__item b {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: -0.02em;
  margin-left: 7px;
  opacity: 1;
}

.ticker__item b.is-up { color: #b9ffd6; }
.ticker__item b.is-down { color: #ffd6e4; }

/* ---------------------------------------------------------------- paws */

.paws-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

@media (max-width: 820px) { .paws-stats { grid-template-columns: repeat(2, 1fr); } }

.paws-stats div {
  padding: 28px 18px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid rgba(1, 154, 254, 0.16);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}

.paws-stats div:hover { transform: translateY(-6px); border-color: var(--blue); }

.paws-stats b {
  display: block;
  font-size: clamp(24px, 3.6vw, 40px);
  color: var(--blue);
  letter-spacing: -0.04em;
}

.paws-stats small {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

.stars { display: inline-flex; gap: 3px; color: var(--blue); }
.stars .ico { width: 22px; height: 22px; }

.fineprint {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.6;
  max-width: 70ch;
  margin-top: 26px;
}

/* ------------------------------------------------------------ how to buy */

.buy {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 46px;
  counter-reset: buy;
}

@media (max-width: 1000px) { .buy { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .buy { grid-template-columns: 1fr; } }

.buy__step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid rgba(1, 154, 254, 0.14);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.buy__step:hover {
  transform: translateY(-8px);
  border-color: var(--blue);
  box-shadow: var(--shadow-lift);
}

/* in the flow, not absolutely placed: a heading that wraps to two lines can
   never end up underneath the number */
.buy__step::before {
  counter-increment: buy;
  content: '0' counter(buy);
  display: block;
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--mist);
  margin-bottom: 14px;
  transition: color 0.4s;
}

.buy__step:hover::before { color: var(--blue); }

.buy__step h3 { font-size: 19px; margin-bottom: 8px; }
.buy__step p { margin: 0; font-size: 14.5px; line-height: 1.58; opacity: 0.72; }

/* -------------------------------------------------------------- arcade */

.arcade__tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 32px 0 22px; }

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 2px solid rgba(1, 154, 254, 0.25);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.28s var(--ease-out);
}

.tab:hover { border-color: var(--blue); transform: translateY(-2px); }

.tab.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 10px 28px rgba(1, 154, 254, 0.38);
}

.arcade__stage {
  border-radius: var(--radius);
  border: 2px solid rgba(1, 154, 254, 0.14);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.arcade__hud {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.arcade__hud b { font-size: 15px; margin-left: 6px; color: var(--blue); }
.arcade__hud .spacer { flex: 1; }

.arcade__canvas-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #eaf7ff;
  aspect-ratio: 16 / 10;
}

#game { width: 100%; height: 100%; touch-action: none; }

.arcade__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  color: var(--navy);
  background: rgba(245, 251, 255, 0.88);
  backdrop-filter: blur(6px);
  transition: opacity 0.35s, visibility 0.35s;
}

.arcade__overlay.is-hidden { opacity: 0; visibility: hidden; }
.arcade__overlay .lede { opacity: 0.75; }

.arcade__hint {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  opacity: 0.8;
  text-align: center;
  margin: 0;
}

/* -------------------------------------------------------------- footer */

.cta-band {
  padding: clamp(70px, 10vw, 130px) 0;
  text-align: center;
  background: linear-gradient(160deg, #2ba6ff, var(--blue) 45%, var(--ocean));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band h2 { font-size: clamp(40px, 9vw, 110px); letter-spacing: -0.055em; margin-bottom: 22px; }
.cta-band__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.footer {
  padding: 54px 0 40px;
  background: var(--ink);
  color: var(--mist);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; }
.footer__links a { opacity: 0.75; transition: opacity 0.25s, color 0.25s; }
.footer__links a:hover { opacity: 1; color: #fff; }

.footer__ca {
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
  opacity: 0.55;
  margin-bottom: 18px;
}

.footer__disclaimer { font-size: 12.5px; line-height: 1.65; opacity: 0.5; max-width: 82ch; }

/* --------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 130%);
  z-index: 9600;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 18px 50px rgba(0, 48, 74, 0.4);
  transition: transform 0.5s var(--bounce);
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.is-up { transform: translate(-50%, 0); }

/* ---------------------------------------------------------- small screens */

@media (max-width: 640px) {
  /* the coin is the tallest thing in the hero; trim it so the buttons and the
     contract chip are not pushed a whole screen below the fold */
  .hero { padding: 96px 0 72px; }
  .coin-scene { width: min(272px, 64vw); }
  .coin-scene__hint { bottom: -28px; font-size: 9px; letter-spacing: 0.16em; }

  .hero__cta { gap: 10px; margin: 24px 0 20px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }

  .hero__stats { margin-top: 34px; }
  .hero__stats div { padding: 15px 10px; }
  .hero__stats small { font-size: 9px; letter-spacing: 0.12em; }

  .tracker-sub { font-size: 10.5px; letter-spacing: 0.12em; gap: 4px 10px; }
  .tracker-sub__item + .tracker-sub__item::before { margin-right: 10px; }

  /* a pill that wraps to four rows stops reading as a pill */
  .ticker {
    border-radius: 18px;
    padding: 14px 16px;
    gap: 8px 16px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .ticker__item b { font-size: 13.5px; margin-left: 5px; }

  .ca { gap: 8px 10px; padding: 12px; }
  .ca__value { min-width: 0; font-size: 10.5px; }

  .arcade__tabs { gap: 8px; }
  .tab { padding: 10px 15px; font-size: 13px; }

  .step { padding: 30px 20px 24px; }
  .footer__top { gap: 18px; }
}

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .split-word > i { transform: none; }
  .grain { display: none; }
}

/* ------------------------------------------------------------------ goal */
/* The shelter's $500,000 appeal, shown as two stacked fills rather than one.
   Merging what everyone else donated with what this project sent would read as
   a single number this project could take credit for. It isn't, so it doesn't. */

.goal {
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  color: #fff;
}

.goal__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.goal__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.goal__figure { font-size: 15px; opacity: 0.9; }
.goal__figure b { font-size: 22px; font-weight: 800; }

.goal__bar {
  position: relative;
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 48, 74, 0.28);
}

.goal__fill {
  display: block;
  height: 100%;
  width: 0;
  transition: width 1.1s var(--ease-out);
}

.goal__fill--others { background: rgba(255, 255, 255, 0.42); }
.goal__fill--ours { background: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, 0.7); }

.goal__note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.82;
}

.goal__note a { text-decoration: underline; text-underline-offset: 3px; }

.goal__key {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin: 0 5px 0 14px;
  vertical-align: baseline;
}

.goal__key:first-child { margin-left: 0; }
.goal__key--others { background: rgba(255, 255, 255, 0.42); }
.goal__key--ours { background: #fff; }

@media (max-width: 560px) {
  .goal { padding: 18px 16px; }
  .goal__figure b { font-size: 19px; }
}

/* pre-launch: controls with nowhere to point yet */
[data-prelaunch]{opacity:.5;pointer-events:none;cursor:default}
