@font-face { font-family: 'MM Sans'; src: url('assets/fonts/mm-sans.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'MM Poly'; src: url('assets/fonts/mm-poly.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
/* ═══════════════════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════════════════ */
:root {
  --fox-orange: #ff5c16;
  --orange-deep:    #661800;
  --ink:    #151412;
  --cream: #f8f4ee;
  --warm-border:   #e5d8cd;
  --card-bg:        #f1e9df;
  --white:          #f8f4ee;
  --phone-w:        375px;
  --phone-h:        812px;
  --phone-r:        46px;
  --font:           'MM Sans', sans-serif;
  --font-display:   'MM Poly', sans-serif;
  --font-body:      'MM Sans', sans-serif;
  --phone-scale:    1;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════
   INTRO OVERLAY
═══════════════════════════════════════════════════════════ */
#intro-overlay {
  position: absolute; /* inside #sticky-stage - visible the instant demo sticks */
  inset: 0;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 500;
  opacity: 1; /* always visible at start; GSAP scrub dissolves it on scroll */
  pointer-events: none;
}

#intro-fox {
  width: 120px;
  height: 120px;
  object-fit: contain;
  animation: fox-float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(255,92,22,0.4));
}

@keyframes fox-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

#intro-copy { text-align: center; }

.intro-line-1 {
  font-size: 64px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
}

.intro-line-2 {
  font-size: 32px;
  font-weight: 400;
  color: var(--fox-orange);
  margin-top: 6px;
}

#intro-scroll-nudge {
  position: absolute;
  bottom: 40px;
  font-size: 18px;
  color: rgba(255,92,22,0.55);
  animation: pulse-fade 2s ease-in-out infinite;
}

@keyframes pulse-fade {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   GHOST TRAIL (fixed left)
═══════════════════════════════════════════════════════════ */
#fox-trail {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
}

.fox-dot {
  width: 22px;
  height: 22px;
  opacity: 0.12;
  transition: opacity 0.3s ease;
}

.fox-dot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.fox-trail-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
  letter-spacing: 3px;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════
   SCENE LABEL (fixed right)
═══════════════════════════════════════════════════════════ */
#scene-label {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  pointer-events: none;
}

#scene-label-text {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  writing-mode: vertical-rl;
  letter-spacing: 3px;
  text-transform: lowercase;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL CONTAINER + STICKY STAGE
═══════════════════════════════════════════════════════════ */
#scroll-container {
  height: 7200px;
  position: relative;
}

#sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* ═══════════════════════════════════════════════════════════
   PAGE BACKGROUND
═══════════════════════════════════════════════════════════ */
#page-bg {
  position: absolute;
  inset: 0;
  background: var(--ink);
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════
   PHONE SCALE WRAPPER
═══════════════════════════════════════════════════════════ */
#phone-scale-wrapper {
  transform: scale(var(--phone-scale));
  transform-origin: center center;
  position: relative;
  z-index: 10;
}

/* ═══════════════════════════════════════════════════════════
   PHONE OUTER (position context for bubbles)
═══════════════════════════════════════════════════════════ */
#phone-outer {
  position: relative;
  width: var(--phone-w);
  height: var(--phone-h);
}

/* ═══════════════════════════════════════════════════════════
   PHONE BEZEL
═══════════════════════════════════════════════════════════ */
#phone-bezel {
  position: absolute;
  inset: 0;
  background: #0a0a0e;
  border-radius: var(--phone-r);
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 2px rgba(255,255,255,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 28px;
  background: #0a0a0e;
  border-radius: 0 0 18px 18px;
  z-index: 30;
}

.fox-corner {
  position: absolute;
  top: 38px;
  right: 10px;
  z-index: 25;
  width: 70px;
  height: 70px;
  background: var(--orange-deep);
  border-radius: 52% 48% 50% 50% / 58% 58% 42% 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(102,24,0,0.5);
}

.fox-corner img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

/* ═══════════════════════════════════════════════════════════
   OPENING SCREENS (styles below)
═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   MOCKUP LAYERS
═══════════════════════════════════════════════════════════ */
.mockup-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
}

#light-mockup {
  opacity: 0;
  /* clip-path animated by GSAP in Scene 5 - NOT pre-set here */
}

#dark-mockup {
  opacity: 0;
}

/* ═══════════════════════════════════════════════════════════
   PHONE INTERIOR - SHARED
═══════════════════════════════════════════════════════════ */
.phone-inner {
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
}

.dark-inner { background: var(--orange-deep); }

.status-bar {
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 8px;
  position: relative;
  z-index: 5;
}

.time { font-size: 15px; font-weight: 700; color: var(--orange-deep); }
.dark-status .time { color: var(--white); }
.signal { font-size: 12px; color: var(--orange-deep); opacity: 0.6; letter-spacing: 1px; }

.search-wrap { flex-shrink: 0; padding: 4px 84px 10px 20px; }

.search-bar {
  height: 46px;
  border: 2px solid var(--fox-orange);
  border-radius: 23px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}

.dark-search {
  border-color: rgba(255,92,22,0.35);
  background: rgba(255,255,255,0.07);
}

.search-icon { width: 17px; height: 17px; object-fit: contain; opacity: 0.65; flex-shrink: 0; }
.search-ph { font-size: 17px; color: var(--fox-orange); opacity: 0.8; }
.dark-ph { color: rgba(255,255,255,0.35); opacity: 1; }

.balance-section {
  flex-shrink: 0;
  padding: 10px 24px 12px;
  border-bottom: 1.5px dashed var(--warm-border);
}

.dark-balance-section { border-bottom-color: rgba(255,255,255,0.18); }

.balance-icons-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.wallet-chip {
  width: 28px;
  height: 28px;
  border-radius: 52% 48% 50% 50% / 58% 58% 42% 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.light-chip { background: var(--fox-orange); }
.dark-chip  { background: rgba(255,92,22,0.35); }
.wallet-chip img { width: 22px; height: 22px; object-fit: contain; }

.eye-icon { width: 34px; height: 34px; object-fit: contain; opacity: 0.75; }

.balance-amt {
  font-size: 58px;
  font-weight: 700;
  color: var(--orange-deep);
  line-height: 1.05;
  transition: filter 0.4s ease;
}

.dark-amt { color: var(--white); }

.section-row {
  flex-shrink: 0;
  padding: 12px 24px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px dashed var(--warm-border);
}

.dark-row { border-bottom-color: rgba(255,255,255,0.18); }
.tokens-row { padding: 10px 24px 14px; }

.row-lbl { font-size: 30px; font-weight: 600; color: var(--orange-deep); }
.dark-lbl { color: var(--white); }
.row-icon { width: 62px; height: 44px; object-fit: contain; }

.expand-hint { display: flex; align-items: center; gap: 6px; }
.expand-text { font-size: 14px; color: var(--fox-orange); opacity: 0.55; font-style: italic; letter-spacing: 0.3px; }
.expand-arrow { font-size: 20px; color: var(--fox-orange); opacity: 0.65; }

.card-grid {
  flex: 1;
  padding: 14px 14px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  overflow: hidden;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 20px;
  padding: 6px 8px;
}

.light-card { background: var(--card-bg); border: 1.5px solid var(--warm-border); }
.dark-card  { background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.1); }

.card img { width: 72px; height: 72px; object-fit: contain; }
.card span { font-size: 18px; font-weight: 600; color: var(--fox-orange); }
.dark-card span { color: rgba(255,255,255,0.85); }

/* tokens overlay - covers the card grid section only (below card grid top to above nav) */
#tokens-overlay {
  position: absolute;
  top: 362px;      /* start of card grid area */
  left: 0;
  right: 0;
  bottom: 88px;    /* stop above the nav bar */
  z-index: 22;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

#tokens-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px 12px 0 0;
}

.bottom-nav {
  height: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 44px 14px;
  position: relative;
  border-top: 1.5px solid var(--warm-border);
}

.light-nav { background: var(--white); }
.dark-nav  { background: rgba(0,0,0,0.22); border-top-color: rgba(255,255,255,0.1); }

.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nav-item img { width: 28px; height: 28px; object-fit: contain; }
.nav-item span { font-size: 13px; color: var(--fox-orange); }
.dark-nav .nav-item span { color: rgba(255,255,255,0.7); }

.fab {
  position: absolute;
  right: 18px;
  bottom: 50px;
  width: 52px;
  height: 52px;
  background: var(--fox-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  padding-bottom: 2px;
  box-shadow: 0 6px 20px rgba(255,92,22,0.55);
  font-family: var(--font);
}

.dark-filter { filter: brightness(0) invert(1); opacity: 0.85; }
.card-icon-dark { filter: brightness(2.5) saturate(0.4); opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   THEME TOGGLE
═══════════════════════════════════════════════════════════ */
#theme-toggle {
  position: absolute;
  top: 38px;
  right: -88px;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

#toggle-pill {
  width: 72px;
  height: 34px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,92,22,0.5);
  border-radius: 17px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

#toggle-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  background: var(--fox-orange);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(255,92,22,0.6);
}

.tog-icon { font-size: 14px; line-height: 1; position: relative; z-index: 2; }
.tog-sun  { opacity: 1; }
.tog-moon { opacity: 0.35; }
.tog-lbl  { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.55); letter-spacing: 1px; }

/* ═══════════════════════════════════════════════════════════
   SPEECH BUBBLES - BASE
═══════════════════════════════════════════════════════════ */
.bubble {
  position: absolute;
  /* LEFT-side default: bubble appears to the left of phone */
  right: 395px;
  width: 195px;
  opacity: 0;
  transform: scale(0);
  transform-origin: right center;
  pointer-events: none;
  z-index: 50;
  filter: drop-shadow(3px 3px 0 rgba(102,24,0,0.12));
}

/* RIGHT-side bubbles: appear to the right of phone */
.bubble-right {
  left: calc(var(--phone-w) + 20px);
  right: auto;
  transform-origin: left center;
}

/* Vertical positions - aligned to phone elements */
#bubble-1 { top: 40px;  }  /* fox top-right */
#bubble-2 { top: 105px; }  /* eye icon */
#bubble-3 { top: 200px; }  /* cash row */
#bubble-4 { top: 450px; }  /* card grid */

/* Text bubble body */
.bubble-body {
  background: var(--white);
  border: 3px solid var(--orange-deep);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.4;
  color: var(--orange-deep);
  position: relative;
}

/* RIGHT-pointing tail (for left-side bubbles) */
.bubble-tail {
  position: absolute;
  right: -19px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
}

.bubble-tail::before {
  content: '';
  display: block;
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 19px solid var(--orange-deep);
}

.bubble-tail::after {
  content: '';
  display: block;
  position: absolute;
  top: -7px;
  left: -17px;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 14px solid var(--white);
}

/* LEFT-pointing tail (for right-side bubbles → point toward phone) */
.bubble-tail-left {
  position: absolute;
  left: -19px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
}

.bubble-tail-left::before {
  content: '';
  display: block;
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 19px solid var(--orange-deep);
}

.bubble-tail-left::after {
  content: '';
  display: block;
  position: absolute;
  top: -7px;
  left: 5px;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 14px solid var(--white);
}

/* Image-only bubble variant */
.bubble-img {
  width: 200px;
}

.bubble-img img {
  width: 100%;
  border-radius: 14px;
  border: 3px solid var(--orange-deep);
  display: block;
  background: var(--white);
}

/* No tail variant */
.bubble-notail .bubble-tail,
.bubble-notail .bubble-tail-left {
  display: none;
}

/* Eye icon inline in bubble 2 text */
.bubble-eye-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  margin: 0 3px;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════
   ICONS OVERLAY (inside phone - FAB expanded with blur bg)
═══════════════════════════════════════════════════════════ */
#icons-overlay {
  position: absolute;
  inset: 0;
  z-index: 24;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 166, 128, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#icons-overlay img {
  max-height: 72%;
  max-width: 90%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(255,92,22,0.4));
}

/* ═══════════════════════════════════════════════════════════
   HOTSPOT RINGS (end state)
═══════════════════════════════════════════════════════════ */
.hspot {
  position: absolute;
  border: 2px solid rgba(255,92,22,0.6);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  z-index: 40;
  background: rgba(255,92,22,0.05);
}

.hspot.active {
  pointer-events: all;
  animation: ring-pulse 2s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,92,22,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(255,92,22,0); }
}

/* Positions match actual phone layout (based on 812px phone height)
   Status(44) + Search(60) = 104 | Balance(118) = 222 | Cash(72) = 294 | Tokens(68) = 362 */
#hspot-fox  { top: 34px;  right: 6px;  width: 76px;  height: 76px;  border-radius: 52% 48% 50% 50% / 58% 58% 42% 42%; }
#hspot-eye    { top: 112px; left: 48px;  width: 40px;  height: 40px; }
#hspot-cash   { top: 222px; left: 14px;  width: 170px; height: 70px;  border-radius: 10px; }
#hspot-tokens { top: 293px; left: 14px;  width: 170px; height: 66px;  border-radius: 10px; }
#hspot-grid   { top: 360px; left: 12px;  width: 355px; height: 356px; border-radius: 20px; }
#hspot-fab    { top: 710px; right: 12px; width: 58px;  height: 58px; }

/* ═══════════════════════════════════════════════════════════
   SCROLL HINT (inside phone-outer, below the bezel)
═══════════════════════════════════════════════════════════ */
#scroll-hint {
  position: absolute;
  bottom: -52px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  color: rgba(255,92,22,0.6);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 20;
}

/* ═══════════════════════════════════════════════════════════
   END LABEL
═══════════════════════════════════════════════════════════ */
#end-label {
  position: absolute;
  bottom: -36px;
  left: 0;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,92,22,0.5);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 20;
}

/* ═══════════════════════════════════════════════════════════
   CTA BLOCK
═══════════════════════════════════════════════════════════ */
#cta-block {
  position: absolute;
  left: calc(var(--phone-w) + 36px);
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 200px;
}

.cta-fox { width: 36px; height: 36px; object-fit: contain; opacity: 0.7; }
.cta-head  { font-size: 28px; font-weight: 700; color: var(--white); }
.cta-sub   { font-size: 18px; color: rgba(255,92,22,0.7); }

#cta-btn {
  margin-top: 6px;
  background: var(--orange-deep);
  border: 2px solid var(--fox-orange);
  border-radius: 30px;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,92,22,0.35);
}

/* ═══════════════════════════════════════════════════════════
   VIEWPORT SCALE
═══════════════════════════════════════════════════════════ */
@media (max-height: 820px) { :root { --phone-scale: 0.88; } }
@media (max-height: 740px) { :root { --phone-scale: 0.80; } }
@media (max-height: 660px) { :root { --phone-scale: 0.72; } }

.cta-note { font: 12px/1.6 var(--font-body); color: #c0b6aa; }

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO HEADER
═══════════════════════════════════════════════════════════ */
#portfolio-header {
  position: relative;
  width: 100%;
  background:
    radial-gradient(ellipse 130% 55% at 50% 0%, rgba(255, 92, 22, 0.14) 0%, transparent 65%),
    var(--ink);
  padding: 0 24px 80px;
}

/* ─── Nav ─── */
.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 0 28px;
  border-bottom: 1px solid rgba(255, 92, 22, 0.1);
}

.case-nav-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}

.case-nav-contact {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 92, 22, 0.55);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.case-nav-contact:hover {
  color: var(--fox-orange);
}

/* ─── Badge row (right-aligned, close to nav) ─── */
.case-badge-row {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 0;
}

.case-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 92, 22, 0.28);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 92, 22, 0.8);
  letter-spacing: 0.2px;
  background: rgba(255, 92, 22, 0.05);
}

/* ─── Hero block ─── */
.case-hero-block {
  max-width: 1000px;
  margin: 0 auto;
  padding: 44px 0 0;
}

.case-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fox-orange);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 92, 22, 0.6);
}

.case-label-sm {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 92, 22, 0.38);
  letter-spacing: 4.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.case-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-title-main {
  font-size: clamp(72px, 10.5vw, 104px);
  color: var(--white);
  display: block;
  letter-spacing: -2px;
}

.case-title-sub {
  font-size: clamp(32px, 4.8vw, 56px);
  color: var(--fox-orange);
  display: block;
  letter-spacing: -1px;
  font-weight: 700;
}

.case-subtitle {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 44px;
}

/* ─── Demo CTA button ─── */
.case-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  background: transparent;
  border: 1.5px solid rgba(255, 92, 22, 0.38);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 92, 22, 0.85);
  text-decoration: none;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  margin-bottom: 80px;
}

.case-demo-btn:hover {
  border-color: var(--fox-orange);
  color: var(--white);
  background: rgba(255, 92, 22, 0.07);
}

/* ─── Intro text block (2-column) ─── */
.case-intro-block {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 0 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  border-top: 1px solid rgba(255, 92, 22, 0.09);
}

.case-intro-text {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

/* ─── Thesis cards ─── */
.case-thesis-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 64px;
}

.case-evidence-note {
  max-width: 1000px;
  margin: 0 auto 62px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: start;
  border: 1px solid rgba(255, 92, 22, 0.12);
  border-left: 3px solid rgba(255, 92, 22, 0.55);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 92, 22, 0.035);
}

.case-evidence-label {
  padding-top: 2px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: rgba(255, 92, 22, 0.58);
}

.case-evidence-note p {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.46);
}

.case-card {
  background: rgba(255, 92, 22, 0.035);
  border: 1px solid rgba(255, 92, 22, 0.1);
  border-top: 2px solid rgba(255, 92, 22, 0.32);
  border-radius: 16px;
  padding: 28px 22px 32px;
}

.case-card-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 92, 22, 0.35);
  letter-spacing: 2.5px;
  display: block;
  margin-bottom: 18px;
}

.case-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.3;
}

.case-card-body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
}

.case-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.case-card-list li {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  padding-left: 18px;
  position: relative;
}

.case-card-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: rgba(255, 92, 22, 0.45);
  font-size: 11px;
  top: 3px;
}

/* ─── Demo divider ─── */
.case-demo-divider {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.case-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 92, 22, 0.12);
}

.case-divider-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 92, 22, 0.35);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO FOOTER
═══════════════════════════════════════════════════════════ */
#portfolio-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 92, 22, 0.1);
  padding: 32px 24px;
}

.pf-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pf-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pf-fox {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.45;
  filter: brightness(0) invert(1);
}

.pf-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.pf-role {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 92, 22, 0.45);
  margin-top: 2px;
}

.pf-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pf-link {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 92, 22, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pf-link:hover { color: var(--fox-orange); }

.pf-sep {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 92, 22, 0.25);
}

.pf-note {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.25);
  max-width: 380px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .case-intro-block {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 44px 0 44px;
  }

  .case-thesis-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .case-evidence-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .case-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 24px 0;
  }

  .case-hero-block {
    padding: 48px 0 0;
  }

  .pf-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE DEMO OPTIMIZATIONS  ≤600px
   Desktop layout/flow: untouched.
   Phone scale: handled in JS (setPhoneScale) to reserve caption space.
═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* ─── Sticky stage: full viewport, no padding - phone fills the screen ─── */
  #sticky-stage {
    height: 100dvh;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* ─── Off-screen chrome: hide ─── */
  #fox-trail,
  #scene-label,
  #scroll-hint,
  #end-label,
  .hspot {
    display: none !important;
  }

  /* ─── Portfolio header: title must fit in ~358px content column ─── */
  /* Syne 800 "Phantom" at 72px overflows; ~50px fits cleanly */
  #portfolio-header {
    padding: 0 16px 48px;
  }

  .case-title-main {
    font-size: clamp(36px, 13vw, 52px) !important;
    letter-spacing: -1px !important;
  }

  .case-title-sub {
    font-size: clamp(22px, 7.5vw, 32px) !important;
    letter-spacing: -0.5px !important;
  }

  .case-title {
    gap: 2px !important;
    margin-bottom: 20px !important;
  }

  /* Badge: left-align on mobile (right-align with wrapping text looks off) */
  .case-badge-row {
    justify-content: flex-start !important;
    padding-top: 10px;
  }

  .case-badge {
    font-size: 11.5px !important;
  }

  .case-hero-block {
    padding: 28px 0 0;
  }

  .case-subtitle {
    font-size: 15px !important;
    margin-bottom: 28px !important;
  }

  .case-demo-btn {
    margin-bottom: 36px;
    font-size: 13px;
    padding: 11px 22px;
  }

  .case-intro-block {
    padding: 32px 0 32px;
  }

  .case-thesis-grid {
    padding-bottom: 36px;
  }

  .case-evidence-note {
    margin-bottom: 38px;
    padding: 16px;
  }

  /* ─── Footer: compact, email right-aligned ─── */
  #portfolio-footer {
    padding: 18px 16px;
  }

  .pf-inner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
  }

  .pf-left {
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
  }

  .pf-fox {
    width: 20px;
    height: 20px;
  }

  .pf-name {
    font-size: 11px;
  }

  .pf-role {
    font-size: 9.5px;
    line-height: 1.4;
  }

  .pf-right {
    flex-shrink: 0;
    text-align: right;
  }

  .pf-link {
    font-size: 10.5px;
    color: rgba(255, 92, 22, 0.65) !important;
  }
}

/* MetaMask adaptation: the Phantom frame geometry with Jana's warm palette. */
:root {
  --cream: #f8f4ee;
  --ink: #151412;
  --fox-orange: #ff5c16;
  --orange-light: #ffa680;
  --orange-deep: #661800;
  --font: 'MM Sans', sans-serif;
}
body { color: var(--cream); }
button { font-family: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--orange-light); outline-offset: 4px; }
button { -webkit-tap-highlight-color: transparent; }
.ui-icon { width: 24px; height: 24px; display: inline-block; flex-shrink: 0; vertical-align: middle; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; background: var(--cream); color: var(--ink); padding: 12px 18px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
#portfolio-header { background: var(--ink); }
.case-title { font-family: var(--font-body); line-height: 1.03; gap: 16px; }
.case-title-main { font-family: var(--font-display); text-transform: uppercase; font-variation-settings: 'wdth' 25; font-weight: 900; line-height: 1.1; font-size: clamp(62px, 9vw, 108px); letter-spacing: 0; }
.case-title-main.case-brand-wordmark {
  width: clamp(220px, 28vw, 320px);
  max-width: 100%;
  aspect-ratio: 127 / 63;
  background: var(--cream);
  mask: url('assets/brand/wordmark-black.svg') center / contain no-repeat;
  -webkit-mask: url('assets/brand/wordmark-black.svg') center / contain no-repeat;
}
.case-title-sub { font-family: var(--font-display); font-variation-settings: 'wdth' 25; text-transform: uppercase; font-size: clamp(30px, 4vw, 49px); font-weight: 900; line-height: 1.13; letter-spacing: 0; max-width: 800px; text-wrap: balance; }
.case-subtitle { color: #c0b6aa; }
.case-label-sm, .case-evidence-label { color: var(--orange-light); }
.case-nav-contact, .case-badge, .case-demo-btn { color: var(--orange-light); }
.case-demo-btn { font-family: var(--font-body); }
.case-intro-text, .case-card-body, .case-card-list { color: #c0b6aa; }
.case-intro-text { font-size: 16px; }
.case-card-title { font-family: var(--font-body); font-weight: 600; }
.case-card-num { color: var(--orange-light); }
.case-evidence-note p { color: #c0b6aa; }
.case-evidence-note a { color: var(--orange-light); text-underline-offset: 3px; }
.case-divider-label { color: var(--orange-light); }
#portfolio-footer { background: var(--ink); }
.pf-role { color: #c0b6aa; }
.pf-link { color: var(--orange-light); }
#intro-fox { filter: drop-shadow(0 12px 28px rgba(102,24,0,.23)); }
.intro-line-1 { font-family: var(--font-display); font-variation-settings: 'wdth' 25; font-size: 58px; text-transform: uppercase; letter-spacing: 0; }
.intro-line-2 { font-size: 23px; margin-top: 16px; color: var(--orange-light); }
#intro-scroll-nudge, #scroll-hint, #end-label { font-size: 13px; color: var(--orange-light); }
.fox-dot img, .pf-fox { filter: none; }
#scene-label-text { color: var(--orange-light); font-size: 11px; }
.fox-corner { background: var(--cream); border: 1px solid rgba(102,24,0,.12); border-radius: 22px; box-shadow: 0 5px 22px rgba(102,24,0,.12); }
.fox-corner img { width: 50px; height: 50px; }
.phone-inner {
  --surface: var(--cream); --text: #171411; --muted: #685c52; --line: #e5d8cd;
  --tile: #f0e8dd; --icon: var(--orange-deep);
  background: var(--surface); color: var(--text); font: 400 15px/1.4 var(--font-body);
}
.dark-inner {
  --surface: var(--ink); --text: var(--cream); --muted: #c0b6aa; --line: #463329;
  --tile: #211c18; --icon: var(--orange-light);
}
.status-bar { height: 44px; color: var(--text); }
.time { color: inherit; font-family: var(--font-body); font-size: 14px; }
.phone-status { display: flex; align-items: center; gap: 5px; }
.phone-status svg { width: 22px; height: 14px; }
.signal-bars { font-size: 11px; line-height: 14px; letter-spacing: 1px; }
.search-wrap { height: 60px; padding: 4px 88px 10px 20px; }
.search-bar { height: 46px; border: 1px solid var(--line); background: var(--tile); gap: 8px; color: var(--muted); padding: 0 12px; }
.search-bar .ui-icon { width: 17px; height: 17px; }
.search-ph { font: 400 12px/1.3 var(--font-body); color: var(--muted); opacity: 1; white-space: nowrap; }
.balance-section { height: 118px; padding: 8px 24px 12px; border-bottom: 1px solid var(--line); }
.balance-icons-row { height: 34px; gap: 8px; margin-bottom: 3px; }
.wallet-chip { border-radius: 9px; background: var(--tile); width: 28px; height: 28px; }
.wallet-chip img { width: 23px; height: 23px; }
.account-name { font-size: 12px; color: var(--muted); }
.privacy-btn { display: grid; place-items: center; border: 0; width: 44px; height: 44px; padding: 10px; background: none; color: var(--icon); cursor: pointer; }
.privacy-btn[aria-pressed='true'] { color: var(--fox-orange); }
.balance-amt { font-size: 48px; font-weight: 600; line-height: 1.13; letter-spacing: -2px; color: var(--text); font-variant-numeric: tabular-nums; }
.section-row { height: 72px; padding: 0 24px; border-bottom: 1px solid var(--line); color: var(--text); }
.row-lbl { font-size: 25px; font-weight: 550; color: var(--text); letter-spacing: -.7px; }
.row-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--icon); }
.row-icon .ui-icon { width: 32px; height: 32px; }
.tokens-row { width: 100%; height: 68px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; flex-shrink: 0; }
.expand-text { font-size: 12px; color: var(--muted); opacity: 1; font-style: normal; }
.expand-arrow { color: var(--icon); opacity: 1; font-size: 25px; display: inline-block; line-height: 1; }
.card-grid { padding: 14px 16px; gap: 12px; }
.card { background: var(--tile); border: 1px solid var(--line); border-radius: 22px; gap: 15px; box-shadow: 0 5px 12px rgba(102,24,0,.035); }
.feature-icon { width: 74px; height: 74px; display: grid; place-items: center; color: var(--icon); background: rgba(255,92,22,.075); border: 1px solid rgba(255,92,22,.1); border-radius: 24px; }
.feature-icon .ui-icon { width: 40px; height: 40px; stroke-width: 1.3; }
.card span:last-child { font: 500 14px/1.2 var(--font-body); color: var(--text); }
.bottom-nav { height: 88px; background: var(--surface); border-top: 1px solid var(--line); padding: 0 74px 12px 14px; }
.nav-item { color: var(--icon); gap: 6px; min-width: 64px; }
.nav-item span { color: inherit; font-size: 11px; }
.nav-item .ui-icon { width: 23px; height: 23px; }
.nav-item.selected { color: var(--icon); }
.fab { width: 52px; height: 52px; right: 18px; bottom: 50px; border: 0; padding: 0; background: var(--fox-orange); color: #171411; cursor: pointer; box-shadow: 0 7px 22px rgba(102,24,0,.24); }
.fab .ui-icon { width: 28px; height: 28px; }
.asset-list { position: absolute; top: 362px; bottom: 88px; left: 0; right: 0; padding: 17px 16px; background: var(--surface); border-top: 1px solid var(--line); z-index: 22; opacity: 0; visibility: hidden; }
.asset-list-label { display: flex; justify-content: space-between; align-items: center; color: var(--text); font-size: 13px; font-weight: 550; margin-bottom: 16px; }
.asset-list-label span { color: var(--muted); font-size: 10px; font-weight: 400; }
.asset-row { display: flex; align-items: center; gap: 10px; background: var(--tile); border: 1px solid var(--line); padding: 16px 12px; border-radius: 17px; margin-bottom: 9px; }
.asset-symbol { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-size: 23px; color: var(--icon); }
.asset-name { font-size: 14px; font-weight: 550; }
.asset-name small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.asset-value { margin-left: auto; color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
#icons-overlay { background: rgba(248,244,238,.8); visibility: hidden; }
#icons-overlay.is-dark { background: rgba(21,20,18,.82); }
.action-menu { width: 100%; padding: 44px 28px 0; color: var(--ink); }
.is-dark .action-menu { color: var(--cream); }
.action-menu-label { font-size: 11px; letter-spacing: 2px; color: var(--orange-deep); padding-bottom: 32px; }
.is-dark .action-menu-label { color: var(--orange-light); }
.action-row { display: flex; align-items: center; justify-content: space-between; font-size: 29px; font-weight: 500; letter-spacing: -1px; margin-bottom: 22px; }
.action-icon { width: 64px; height: 64px; display: grid; place-items: center; background: rgba(255,92,22,.1); color: var(--orange-deep); border: 1px solid rgba(102,24,0,.2); border-radius: 50%; box-shadow: 0 8px 20px rgba(102,24,0,.08); }
.is-dark .action-icon { color: var(--orange-light); border-color: rgba(255,166,128,.35); }
.action-icon .ui-icon { width: 29px; height: 29px; }
.close-actions { display: grid; place-items: center; width: 48px; height: 48px; margin: 30px 8px 0 auto; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.bubble-body { font: 400 15px/1.5 var(--font-body); color: #171411; border: 1.5px solid var(--orange-deep); padding: 12px 14px; background: var(--cream); box-shadow: 0 6px 20px rgba(102,24,0,.08); }
.bubble-eye-icon { color: var(--orange-deep); }
#theme-toggle { border: 0; padding: 0; background: transparent; font-family: var(--font-body); cursor: pointer; visibility: hidden; }
#toggle-pill { background: var(--ink); border-color: var(--orange-light); }
#toggle-thumb { background: var(--fox-orange); }
.tog-icon { color: var(--cream); }
.tog-icon .ui-icon { width: 15px; height: 15px; }
.tog-lbl { color: var(--orange-light); font-size: 11px; }
.cta-fox { opacity: 1; }
.cta-head { font-size: 24px; line-height: 1.2; color: var(--ink); }
.cta-sub { font-size: 14px; color: var(--orange-deep); }
#cta-btn { padding: 12px 18px; font-size: 15px; line-height: 1.4; background: var(--fox-orange); color: #171411; border-color: var(--fox-orange); font-weight: 600; }
.cta-note { color: var(--orange-deep); }
.hspot.active { pointer-events: none; }
#phone-outer.is-light .cta-head { color: var(--cream); }
#phone-outer.is-light .cta-sub, #phone-outer.is-light .cta-note { color: var(--orange-light); }
@media (min-width: 821px) and (max-width: 1050px) { .bubble { width: 170px; right: 387px; } .bubble-right { left: 387px; right: auto; } #cta-block { left: 397px; width: 180px; } }
@media (max-width: 820px) {
  #sticky-stage { height: 100dvh; padding: 0; }
  #fox-trail, #scene-label, #scroll-hint, #end-label, .hspot { display: none !important; }
}
@media (max-width: 600px) {
  .case-title-main { font-size: clamp(32px, 10vw, 52px) !important; letter-spacing: 0 !important; }
  .case-title-sub { font-size: clamp(27px, 7.5vw, 34px) !important; line-height: 1.13; }
  .case-title { gap: 14px !important; }
  .case-label-sm { letter-spacing: 2px; }
  .case-badge { padding: 8px 12px; line-height: 1.4; }
  .intro-line-1 { font-size: 46px; }
  .intro-line-2 { font-size: 21px; }
  .pf-inner { flex-wrap: wrap !important; }
  .pf-link { color: var(--orange-light) !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }

.cta-note.show-status { display: block !important; }

/* Manual end-state themes do not replace or kill the scroll-driven reveal. */
.manual-light #light-mockup { clip-path: inset(0 0% 0 0) !important; }
.manual-light #dark-mockup { opacity: 0 !important; visibility: hidden !important; }
.manual-light #page-bg { background: #151412 !important; }
.manual-light #toggle-thumb { transform: translateX(0) !important; }
.manual-light .tog-sun { opacity: 1 !important; }
.manual-light .tog-moon { opacity: .4 !important; }
.manual-dark #light-mockup { clip-path: inset(0 100% 0 0) !important; }
.manual-dark #dark-mockup { opacity: 1 !important; visibility: visible !important; }
.manual-dark #page-bg { background: #f8f4ee !important; }
.manual-dark #toggle-thumb { transform: translateX(36px) !important; }
.manual-dark .tog-sun { opacity: .4 !important; }
.manual-dark .tog-moon { opacity: 1 !important; }

@media (max-width: 600px) {
  .case-divider-label { white-space: normal; text-align: center; font-size: 10px; letter-spacing: 2px; line-height: 1.5; }
  .case-divider-line { min-width: 12px; }
}
@media (max-width: 600px) {
  #intro-copy { max-width: calc(100vw - 24px); }
  .intro-line-1 { font-size: clamp(28px, 9vw, 42px); }
}

/* Surrounding labels follow the contrasting presentation background. */
#end-label, .tog-lbl { color: var(--orange-deep); }
#phone-outer.is-light #end-label, #phone-outer.is-light .tog-lbl { color: var(--orange-light); }

/* Compact account rows and five-position navigation. */
.phone-inner { --compact-row-h: 48px; --nav-h: 88px; }
.balance-icons-row { gap: 6px; }
.account-tool { display: grid; place-items: center; width: 34px; height: 34px; color: var(--icon); }
.account-tool .ui-icon { width: 22px; height: 22px; }
.section-row, .tokens-row { height: var(--compact-row-h); min-height: var(--compact-row-h); padding: 0 24px; }
.row-lbl { font-size: 22px; }
.row-icon .ui-icon { width: 28px; height: 28px; }
.asset-cluster { display: flex; align-items: center; padding-left: 0; gap: 3px; }
.mini-coin { display: grid; place-items: center; width: 19px; height: 19px; margin-left: 0; flex-shrink: 0; border: 2px solid var(--surface); border-radius: 50%; background: var(--tile); color: var(--icon); font-size: 12px; }
.mini-coin svg { width: 9px; height: 12px; }
.mini-coin.solana svg { width: 11px; height: 10px; }
.bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--nav-h); padding: 0 7px 10px; position: relative; z-index: 23; overflow: visible; }
.nav-item { min-width: 0; gap: 6px; }
.nav-item span { font-size: 10px; }
.nav-item .rewards-fox { width: 25px; height: 25px; object-fit: contain; }
.nav-center { position: relative; height: 100%; display: grid; place-items: center; }
.fab { position: absolute; left: 50%; right: auto; top: -22px; bottom: auto; transform: translateX(-50%); width: 54px; height: 54px; }
.asset-list { top: calc(222px + 2 * var(--compact-row-h)); bottom: calc(var(--nav-h) + 30px); overflow-y: auto; overscroll-behavior: contain; padding: 15px 16px 12px; }
.asset-list-label { margin-bottom: 12px; }
.asset-row { padding: 13px 12px; }
#bubble-3 { top: 318px; }
#hspot-fab { top: 700px; right: 158px; }

/* App palette and light/dark mode are independent. */
#phone-bezel { --palette-light: #f8f4ee; --palette-mid: #ffa680; --palette-dark: #151412; --palette-tile-light: #f0e8dd; --palette-tile-dark: #211c18; }
#phone-bezel[data-palette='purple'] { --palette-light: #eac2ff; --palette-mid: #d075ff; --palette-dark: #3d065f; --palette-tile-light: #e4affb; --palette-tile-dark: #51206f; }
#phone-bezel[data-palette='green'] { --palette-light: #e5ffc3; --palette-mid: #baf24a; --palette-dark: #013330; --palette-tile-light: #d7f4b0; --palette-tile-dark: #174542; }
#phone-bezel[data-palette='blue'] { --palette-light: #cce7ff; --palette-mid: #89b0ff; --palette-dark: #190066; --palette-tile-light: #bddbf7; --palette-tile-dark: #301975; }
.phone-inner { --surface: var(--palette-light); --tile: var(--palette-tile-light); --text: #171411; --muted: #685c52; --line: color-mix(in srgb, var(--palette-dark) 15%, var(--surface)); }
.dark-inner { --surface: var(--palette-dark); --tile: var(--palette-tile-dark); --text: var(--palette-light); --muted: #f8f4ee; --line: color-mix(in srgb, var(--palette-mid) 28%, var(--surface)); }
.phone-inner, .card, .section-row, .search-bar, .bottom-nav, .asset-list, .asset-row, .balance-amt, #profile-panel { transition: background-color .35s, color .35s, border-color .35s; }
.fox-corner { cursor: pointer; padding: 0; background: var(--palette-light); }
#profile-tap { position: absolute; top: 38px; right: 10px; width: 70px; height: 70px; border: 3px solid var(--fox-orange); border-radius: 22px; z-index: 40; opacity: 0; pointer-events: none; box-shadow: 0 0 0 8px rgba(255,92,22,.18); }
#profile-tap.is-active { opacity: 1; animation: profile-tap 1s ease-in-out infinite; }
@keyframes profile-tap { 50% { transform: scale(.92); box-shadow: 0 0 0 14px rgba(255,92,22,0); } }
#profile-panel { position: absolute; inset: 0; z-index: 45; padding: 54px 24px 28px; background: var(--palette-dark); color: var(--palette-light); visibility: hidden; opacity: 0; overflow-y: auto; overscroll-behavior: auto; }
#phone-outer.is-light #profile-panel { background: var(--palette-light); color: #171411; }
.profile-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.profile-eyebrow { font-size: 9px; font-weight: 500; letter-spacing: 1.8px; color: var(--orange-light); }
#phone-outer.is-light .profile-eyebrow { color: var(--orange-deep); }
.profile-header h2 { font-size: 24px; font-weight: 550; line-height: 1.2; letter-spacing: -.8px; margin-top: 8px; }
#close-profile { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; padding: 7px; border: 1px solid currentColor; border-radius: 50%; color: inherit; background: transparent; cursor: pointer; }
.palette-settings h3 { font-size: 12px; font-weight: 500; margin-bottom: 12px; }
.palette-settings p { font-size: 13px; margin-top: 7px; margin-bottom: 22px; }
.palette-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.palette-option { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0 0 8px; font-size: 11px; color: inherit; border: 0; background: transparent; cursor: pointer; }
.palette-swatch { display: block; width: 37px; height: 37px; aspect-ratio: 1; border-radius: 7px; border: 3px solid transparent; background-clip: padding-box; }
.swatch-default { background: linear-gradient(135deg, #f8f4ee 50%, #151412 50%); }
.swatch-purple { background: linear-gradient(135deg, #eac2ff 50%, #3d065f 50%); }
.swatch-green { background: linear-gradient(135deg, #e5ffc3 50%, #013330 50%); }
.swatch-blue { background: linear-gradient(135deg, #cce7ff 50%, #190066 50%); }
.palette-option[aria-pressed='true'] .palette-swatch { outline: 2px solid var(--fox-orange); outline-offset: 3px; }
.palette-option.is-demonstrating .palette-swatch { box-shadow: 0 0 0 7px rgba(255,92,22,.25); }
.profile-setting-row { display: flex; justify-content: space-between; gap: 16px; padding: 19px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent); font-size: 14px; }
.profile-setting-row span:last-child { font-weight: 600; }
#preview-palette { display: block; width: 100%; border: 0; border-radius: 26px; padding: 15px 16px; margin-top: 36px; color: #171411; background: var(--fox-orange); font-size: 14px; font-weight: 600; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .phone-inner, .card, .section-row, .search-bar, .bottom-nav, .asset-list, .asset-row, .balance-amt, #profile-panel { transition: none; } }

/* Consistent outline navigation and centered wallet-action column. */
.bottom-nav .nav-item, .bottom-nav .nav-item.selected { color: var(--icon); }
.bottom-nav .nav-item span { color: inherit; }
.bottom-nav .nav-item .ui-icon { width: 23px; height: 23px; opacity: 1; }
#icons-overlay { padding: 0; background: color-mix(in srgb, var(--palette-light) 90%, transparent); }
#icons-overlay.is-dark { background: color-mix(in srgb, var(--palette-dark) 90%, transparent); }
.action-menu { position: absolute; inset: auto 0 56px; padding: 0 24px; color: #171411; }
.is-dark .action-menu { color: var(--palette-light); }
.action-menu-label { padding-bottom: 22px; }
.action-row { display: grid; grid-template-columns: 125px 52px; justify-content: start; gap: 12px; height: 64px; margin-bottom: 8px; font-size: 19px; letter-spacing: -.3px; }
.action-icon { width: 52px; height: 52px; }
.action-icon .ui-icon { width: 26px; height: 26px; }
.close-actions { width: 54px; height: 54px; margin: 20px auto 0; }

/* Compact palette selector, account strip, and settings from the supplied reference. */
.profile-accounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 20px 0 16px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.profile-account { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.profile-account img, .account-add img { width: 39px; height: 39px; }
.profile-account span { font-size: 10px; white-space: nowrap; }
.account-add { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.account-add img { opacity: .17; }
.account-add span { position: absolute; top: 0; left: 0; width: 100%; height: 39px; display: grid; place-items: center; font-size: 26px; font-weight: 400; }
.profile-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.profile-quick-actions > div { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, currentColor 7%, transparent); font-size: 13px; }
.profile-quick-actions .ui-icon { width: 19px; height: 19px; }
.profile-setting-row { align-items: center; justify-content: flex-start; gap: 12px; min-height: 38px; padding: 7px 0; border: 0; font-size: 13px; }
.profile-setting-row > .ui-icon { width: 19px; height: 19px; flex-shrink: 0; }
.profile-setting-row span:last-child { font-weight: 400; }
.profile-setting-row .setting-chevron { width: 14px; height: 14px; margin-left: auto; }
.settings-group-label { margin-top: 12px; padding: 12px 0 6px; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); font-size: 11px; opacity: .7; }
#preview-palette { margin-top: 18px; }

/* Privacy feedback and closing-scene annotation placement. */
.privacy-slash { display: none; }
.privacy-btn[aria-pressed='true'] .privacy-slash { display: block; stroke-width: 2; }
#phone-outer.is-end #bubble-1 { top: 112px; }
.cta-note:empty { display: none; }

/* Supplied logo artwork, with its proportions preserved. */
.intro-wordmark { width: clamp(190px, 27vw, 300px); aspect-ratio: 127 / 63; margin: 0 auto; background: var(--cream); mask: url('assets/brand/wordmark-black.svg') center / contain no-repeat; -webkit-mask: url('assets/brand/wordmark-black.svg') center / contain no-repeat; }
.walkthrough-guide { display: flex; justify-content: center; gap: 44px; padding: 24px 0 0; color: var(--cream); }
.walkthrough-guide > div { display: flex; align-items: center; gap: 14px; }
.walkthrough-guide svg { width: 40px; height: 40px; color: var(--orange-light); flex-shrink: 0; }
.walkthrough-guide p { margin: 0; font: 400 13px/1.5 var(--font-body); }
.walkthrough-guide strong, .walkthrough-guide span { display: block; }
.walkthrough-guide strong { font-weight: 500; }
.walkthrough-guide span { color: #c0b6aa; }
#profile-panel, .asset-list { overscroll-behavior-y: contain; }
#closing-direction { position: relative; background: var(--cream); color: var(--ink); padding: 64px 32px 76px; text-align: center; }
.closing-copy { opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease, visibility .7s; }
#closing-direction.is-visible .closing-copy { opacity: 1; visibility: visible; transform: translateY(0); }
#closing-title { font: 400 clamp(22px, 2.6vw, 34px)/1.4 var(--font-body); letter-spacing: -.3px; max-width: 46ch; margin: 0 auto; text-wrap: balance; }
@media (max-width: 600px) { .walkthrough-guide { flex-direction: column; align-items: flex-start; gap: 16px; } #closing-direction { padding: 40px 24px 48px; } }
@media (prefers-reduced-motion: reduce) { .closing-copy { transition: none; transform: none; } }

/* Beige app splash and short login-flow placeholder. */
#launch-layer { position: absolute; inset: 0; z-index: 26; background: var(--cream); overflow: hidden; }
.launch-screen { position: absolute; inset: 0; display: grid; place-items: center; background: var(--cream); color: var(--ink); }
.launch-screen .status-bar { position: absolute; top: 0; left: 0; right: 0; }
.splash-fox { width: 96px; height: 96px; object-fit: contain; }
#login-screen { visibility: hidden; opacity: 0; }
.login-copy { font: 400 27px/1.3 var(--font-body); letter-spacing: -.35px; }
#login-screen.is-active .login-copy { animation: login-pulse 1.3s ease-in-out 2; }
@keyframes login-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { #login-screen.is-active .login-copy { animation: none; } }

/* Matching expandable Allocation, Tokens, and Money sections. */
button.allocation-row, button.money-row { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; flex-shrink: 0; }
.allocation-row .row-icon, .money-row .row-icon { width: 28px; height: 28px; }
.wallet-panel { position: absolute; left: 0; right: 0; bottom: calc(var(--nav-h) + 30px); z-index: 22; background: var(--surface); color: var(--text); padding: 16px; border-top: 1px solid var(--line); overflow-y: auto; overscroll-behavior-y: contain; opacity: 0; visibility: hidden; }
.allocation-panel { top: calc(222px + var(--compact-row-h)); }
.money-panel { top: calc(222px + 3 * var(--compact-row-h)); }
.allocation-bar { height: 7px; border-radius: 6px; background: var(--tile); margin: 18px 0; overflow: hidden; }
.allocation-bar span { display: block; width: 100%; height: 100%; background: var(--fox-orange); }
.allocation-item { display: flex; gap: 10px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 14px; }
.allocation-item small { color: var(--muted); font-size: 12px; }
.allocation-item strong { font-weight: 500; margin-left: auto; font-variant-numeric: tabular-nums; }
.allocation-dot { width: 7px; height: 7px; border: 1px solid var(--icon); border-radius: 50%; flex-shrink: 0; }
.allocation-dot.tokens { border-color: var(--fox-orange); background: var(--fox-orange); }
.money-balance { font-size: 34px; line-height: 1.1; font-weight: 550; letter-spacing: -1px; }
.money-rate { font-size: 11px; color: var(--icon); margin-top: 6px; }
.money-rate span { color: var(--muted); }
.money-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.money-action { display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--tile); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; font-size: 12px; }
.money-action .ui-icon { width: 18px; height: 18px; color: var(--icon); }
.money-action.is-unavailable { opacity: .45; }
.money-funding { padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--tile); }
.money-funding h3 { font-size: 14px; font-weight: 550; }
.money-funding p, .money-how p { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 6px 0 10px; }
.money-fund-label { padding: 9px; border-radius: 18px; background: var(--fox-orange); color: #171411; font-size: 12px; font-weight: 500; text-align: center; }
.money-how { margin-top: 13px; font-size: 12px; }
.money-how summary { cursor: pointer; }
