:root {
  --ink: #0f1014;
  --ink2: #24262e;
  --ink3: #050507;
  --cream: #fff3e0;
  --bg0: #8db4ff;
  --bg1: #5a88fb;
  --bg2: #3a66ee;
  --accent: #4a78f6;
  --accent2: #23409f;
  --shadow: rgba(12, 28, 92, .26);
  --pond: 150px;
}
:root[data-theme="mint"] {
  --bg0: #93f0d2; --bg1: #4fdbb0; --bg2: #25c493;
  --accent: #3fd3a5; --accent2: #13664f; --shadow: rgba(8, 70, 52, .26);
}
:root[data-theme="lemon"] {
  --bg0: #ffeb94; --bg1: #ffd94d; --bg2: #f7c62a;
  --accent: #ffd23f; --accent2: #6b5208; --shadow: rgba(110, 80, 0, .26);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
* { scrollbar-width: thin; scrollbar-color: rgba(15, 16, 20, .45) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15, 16, 20, .45); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(15, 16, 20, .7); background-clip: content-box; }

html, body { min-height: 100%; }
body {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #8db4ff;   /* exactly the colour behind Axo in the video */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* SVG paint classes */
.k { fill: var(--ink); }
.k2 { fill: var(--ink2); }
.k3 { fill: var(--ink3); }
.c { fill: var(--cream); }
.a { fill: var(--accent); }
.a2 { fill: var(--accent2); }
.sk { stroke: var(--ink); }
.sc { stroke: var(--cream); }

/* ---------- home: Axo on top, the six sections below it in a smile ---------- */
.hub { position: relative; height: 100vh; min-height: 560px; }
.stage { position: absolute; left: 0; right: 0; top: 0; }
.mascot-wrap { position: absolute; transform: translate(-50%, -50%); }
.axo-video {
  width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: cover;
  background: #8db4ff; pointer-events: none;
  /* the edges of the frame fade out, so the video melts into the page */
  -webkit-mask-image: radial-gradient(closest-side, #000 84%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 84%, transparent 100%);
}

.node {
  position: absolute; transform: translate(-50%, -50%);
  display: block; outline: none;
  transition: opacity .35s ease, filter .35s ease;
}
.node .bob { animation: bob 6s ease-in-out infinite; }
.node .art {
  display: block; width: 100%; height: auto; overflow: visible;
  filter: drop-shadow(0 16px 16px var(--shadow));
  transition: transform .45s cubic-bezier(.2, .9, .25, 1.25);
}
.node .art img { width: 100%; height: auto; display: block; user-select: none; transform: scale(var(--s, 1)); transform-origin: 50% 100%; }
.node:hover .art, .node:focus-visible .art { transform: scale(1.08) translateY(-4px); }
.stage.focus .node:not(.on) { opacity: .38; filter: saturate(.55); }
.tag {
  position: absolute; left: 50%; bottom: -6px; transform: translate(-50%, 6px);
  background: var(--cream); color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: -.005em;
  padding: 5px 11px; border-radius: 99px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  box-shadow: 0 6px 16px var(--shadow);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2, .9, .25, 1.25);
}
.node.on .tag { opacity: 1; transform: translate(-50%, 0); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.pill {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--cream);
  font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  padding: 11px 18px 11px 20px; border-radius: 99px; white-space: nowrap;
  box-shadow: 0 10px 24px var(--shadow);
  transition: transform .3s cubic-bezier(.2, .9, .25, 1.25), background .2s;
}
.pill span { transition: transform .3s cubic-bezier(.2, .9, .25, 1.25); }
.pill:hover { transform: translate(-50%, -50%) scale(1.04); }
.pill:hover span { transform: translateX(3px); }

.card a.quote { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* small motions inside the icons */
.sand { animation: sand 1.2s linear infinite; }
@keyframes sand { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.cursor { animation: blinkc 1.1s steps(1) infinite; }
@keyframes blinkc { 50% { opacity: 0; } }
.rec { animation: rec 2s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }
.coin-drop { animation: drop 3.2s cubic-bezier(.5, 0, .75, 0) infinite; }
@keyframes drop {
  0%, 40% { transform: translateY(-6px); opacity: 1; }
  70% { transform: translateY(22px); opacity: 1; }
  71%, 100% { transform: translateY(22px); opacity: 0; }
}

/* ---------- pages ---------- */
.page { min-height: 100vh; padding: 30px 20px calc(var(--pond) + 70px); }
.logo {
  position: fixed; left: 22px; top: 16px; z-index: 20; width: 76px;
  filter: drop-shadow(0 8px 12px var(--shadow));
  transition: transform .3s cubic-bezier(.2, .9, .25, 1.25);
}
.logo:hover { transform: scale(1.07) rotate(-4deg); }
.logo img { width: 100%; height: auto; display: block; }
.page h1 {
  text-align: center; font-weight: 600; letter-spacing: -.035em;
  font-size: clamp(36px, 4.6vw, 58px); line-height: 1; margin: 6px 0 30px;
}
.wrap { max-width: 900px; margin: 0 auto; display: grid; gap: 16px; }
.card {
  background: var(--cream); border-radius: 22px; padding: 26px 28px;
  box-shadow: 0 22px 44px var(--shadow);
}
.card p { font-size: 16px; line-height: 1.6; color: #2a2b31; max-width: 64ch; }
.card p + p { margin-top: 10px; }
.card h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.empty { color: #6b6d76 !important; }
.rows { display: grid; }
.row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid rgba(15, 16, 20, .1); font-size: 15px; }
.row:first-child { border-top: 0; padding-top: 4px; }
.row b { font-weight: 600; }
.row .sub { display: block; font-size: 14px; font-weight: 400; color: #55575f; margin-top: 3px; line-height: 1.5; }
.row a.quote { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.row span { color: #6b6d76; text-align: right; overflow-wrap: anywhere; }

.form { display: grid; gap: 10px; margin-top: 16px; }
.form textarea, .form input {
  font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid rgba(15, 16, 20, .14); border-radius: 14px;
  padding: 13px 15px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 120px; resize: vertical; }
.form textarea:focus, .form input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15, 16, 20, .08); }
.form .line { display: flex; gap: 10px; }
.form .line input { flex: 1; }
.btn {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background: var(--ink); color: var(--cream); border: 0; border-radius: 99px;
  padding: 12px 22px; transition: transform .25s cubic-bezier(.2, .9, .25, 1.25), opacity .2s;
}
.btn:hover { transform: scale(1.04); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.note { font-size: 14px; color: #6b6d76; min-height: 20px; }

.term {
  background: var(--ink); color: var(--cream); border-radius: 22px; padding: 18px 22px 22px;
  box-shadow: 0 22px 44px var(--shadow); font-family: "Geist Mono", ui-monospace, monospace; font-size: 13.5px;
}
.term .bar { display: flex; gap: 7px; margin-bottom: 16px; }
.term .bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 243, 224, .2); }
.term .out { min-height: 220px; line-height: 1.7; white-space: pre-wrap; }
.term .muted { color: rgba(255, 243, 224, .45); }

/* ---------- pond (bottom of every page) ---------- */
.pond { position: fixed; left: 0; right: 0; bottom: 0; height: var(--pond); z-index: 10; pointer-events: none; }
.pond svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pond .back { fill: var(--ink); opacity: .32; }
.pond .front { fill: var(--ink); }
.pond .bubble { fill: rgba(255, 243, 224, .1); }
.foot {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 22px; pointer-events: auto;
}
.foot a { width: 26px; height: 26px; color: var(--cream); opacity: .9; transition: transform .25s, opacity .2s; }
.foot a:hover { transform: translateY(-2px); opacity: 1; }
.foot svg, .foot img { width: 100%; height: 100%; display: block; position: static; }
.row .ca { font: inherit; color: var(--ink); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer;
  text-align: right; overflow-wrap: anywhere; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.row .ca:hover { opacity: .7; }

/* ---------- flood transition ---------- */
.flood {
  position: fixed; left: 0; right: 0; top: 0; height: 100vh; z-index: 50;
  background: var(--ink); transform: translateY(0); will-change: transform;
}
.flood svg { position: absolute; left: 0; width: 100%; height: 48px; top: -46px; fill: var(--ink); }
.flood .w { animation: slosh 1.2s ease-in-out infinite alternate; }
@keyframes slosh { from { transform: translateX(-30px); } to { transform: translateX(0); } }

/* blinking eyes */
[data-blink] { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .09s ease-in; }
.blink { transform: scaleY(.1); }

@media (max-width: 640px) {
  :root { --pond: 112px; }
  .logo { width: 58px; left: 14px; top: 12px; }
  .page { padding-top: 22px; }
  .page h1 { margin-top: 10px; padding: 0 60px; }   /* room for the logo in the top left corner */
  .card { padding: 20px; border-radius: 18px; }
  .form .line { flex-direction: column; }
  .tag { font-size: 12px; }
  .pill { font-size: 13px; padding: 9px 14px 9px 16px; }
}
/* phones and touch screens have no hover, so the names are always shown */
@media (hover: none), (max-width: 640px) {
  .tag { opacity: 1; transform: translate(-50%, 0); bottom: -14px; }
  .stage.focus .node:not(.on) { opacity: 1; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .node .bob, .flood .w { animation: none; }
}
