:root {
  --bg: #070907;
  --fg: #f6f4e8;
  --acid: #d4ff62;
  --dim: rgba(246, 244, 232, 0.5);
  --line: rgba(246, 244, 232, 0.14);
  --mono: "SF Mono", "Cascadia Code", ui-monospace, monospace;
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
  /* Gradient palette */
  --grad-main:   linear-gradient(135deg, #d4ff62 0%, #00f5c8 40%, #a855f7 100%);
  --grad-warm:   linear-gradient(135deg, #ffd93d 0%, #ff6b6b 50%, #c026d3 100%);
  --grad-cool:   linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #e879f9 100%);
  --grad-subtle: linear-gradient(135deg, #f6f4e8 0%, #d4ff62 60%, #00f5c8 100%);
}

/* ── Gradient text utility ── */
.text-gradient {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-warm {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-cool {
  background: var(--grad-cool);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-subtle {
  background: var(--grad-subtle);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Hide default cursor everywhere */
*, a, button { cursor: none !important; }

/* ── Custom Cursor ── */
.cursor-orb {
  position: fixed;
  top: 0; left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  background: conic-gradient(from 0deg at 50% 50%,
    #d4ff62 0%,
    #00f5c8 25%,
    #a855f7 50%,
    #ff6b6b 75%,
    #d4ff62 100%
  );
  filter: blur(3px);
  opacity: 0.65;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, opacity .2s;
  will-change: transform;
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  background: #d4ff62;
  transform: translate(-50%, -50%);
  will-change: transform;
  box-shadow: 0 0 8px #d4ff62;
}

/* Orb grows on interactive elements */
a:hover ~ .cursor-orb,
button:hover ~ .cursor-orb {
  width: 64px;
  height: 64px;
}

/* ── Hover gradient text ── */
/* Paragraphs & body text: lift color on hover */
.hero-copy,
.manifesto-sub,
.connect-text {
  transition: color .3s;
}
.hero-copy:hover,
.manifesto-sub:hover,
.connect-text:hover {
  color: rgba(246,244,232,.9);
}

/* Hoverable gradient class for headings/labels */
.hover-grad {
  position: relative;
  display: inline-block;
  transition: opacity .25s;
}
.hover-grad::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transition: opacity .35s var(--ease-snap);
  pointer-events: none;
  background-size: 200% 200%;
  animation: shimmer 3s ease infinite;
}
.hover-grad:hover::after { opacity: 1; }


html {
  background: transparent;
  scroll-behavior: smooth;
  color: var(--fg);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: transparent;
}

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

/* ── Yin-Yang Background Canvas ── */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: -1;
  pointer-events: none;
}

/* ── Three.js Canvas ── */
#threeCanvas {
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  pointer-events: none;
}

/* ── Shell ── */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 24px;
}

.shell::before {
  position: fixed;
  inset: 18px;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 28px;
  pointer-events: none;
  content: "";
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  height: 58px;
  padding: 0 18px;
  margin: 0 auto;
  border: 1px solid rgba(246, 244, 232, 0.16);
  border-radius: 999px;
  background: rgba(7, 9, 7, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(13px, 1.1vw, 17px);   /* scales with viewport */
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: linear-gradient(
    90deg,
    #d4ff62 0%,
    #00f5c8 30%,
    #38bdf8 55%,
    #a855f7 80%,
    #d4ff62 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: brand-shimmer 4s linear infinite;
}

@keyframes brand-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.brand::before {
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 20px #d4ff62cc;
  animation: pulse-dot 2.8s ease-in-out infinite;
  content: "";
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 10px #d4ff6260; }
  50%       { box-shadow: 0 0 28px #d4ff62cc; }
}

.header-clock {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
}

.clock-label {
  font-size: 10px;
  color: rgba(246,244,232,.38);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.clock-time {
  font-size: 13px;
  color: rgba(246,244,232,.7);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.nav { display: flex; gap: 4px; }

.nav a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(246,244,232,.65);
  font-size: 13px;
  transition: color .16s, background .16s;
}

.nav a:hover {
  color: var(--fg);
  background: rgba(246,244,232,.1);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(212,255,98,.4);
  background: transparent;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .18s, color .18s;
}

.lang-btn:hover {
  background: rgba(212,255,98,.12);
}

/* ── Hero ── */
main { max-width: 1180px; margin: 0 auto; }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100svh - 106px);
  padding: 120px 0 160px;   /* 160px bottom → Josephine. moves up, J/p descenders show */
  overflow: visible;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: default;
  position: relative;
  overflow: hidden;
  /* Default: outlined style */
  border: 1.5px solid rgba(212,255,98,.40);
  color: rgba(212,255,98,.95);
  background: transparent;
  transition:
    transform  .28s cubic-bezier(0.34, 1.56, 0.64, 1),  /* spring overshoot */
    box-shadow .28s ease,
    color      .22s ease,
    border-color .22s ease;
  will-change: transform;
}

/* Animated colour fill — pseudo layer that slides in on hover */
.tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    #d4ff62, #00f5c8, #38bdf8, #a855f7,
    #ff6b6b, #ffd93d, #d4ff62);
  background-size: 300% 100%;
  animation: tag-fill-flow 3s linear infinite;
  opacity: 0;
  transition: opacity .22s ease;
  z-index: 0;
}

@keyframes tag-fill-flow {
  0%   { background-position: 0%   50%; }
  100% { background-position: 300% 50%; }
}

/* Text must sit above the pseudo fill — tag text is a direct text node */
.tag {
  isolation: isolate;
}
.tag::before {
  z-index: -1;
}

.tag:hover {
  transform: scale(1.22);           /* magnifier zoom — spring easing defined in transition */
  border-color: transparent;
  color: #070907;                   /* dark text on bright gradient fill */
  box-shadow:
    0 8px 32px rgba(0,0,0,.55),
    0 0 0 2px rgba(212,255,98,.25);
}

.tag:hover::before {
  opacity: 1;                       /* reveal the flowing rainbow fill */
}

/* Stagger each tag's fill offset for variety */
.hero-meta .tag:nth-child(1)::before { animation-delay: 0s;    }
.hero-meta .tag:nth-child(3)::before { animation-delay: -1s;   }
.hero-meta .tag:nth-child(5)::before { animation-delay: -2s;   }
.hero-meta .tag:nth-child(7)::before { animation-delay: -0.5s; }

.tag-sep {
  color: rgba(246,244,232,.25);
  font-size: 14px;
  user-select: none;
}

.hero h1 {
  font-size: clamp(44px, 8.5vw, 120px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.01em;
  max-width: 100%;
  overflow: visible;
  /* drop-shadow removed — GPU-expensive filter on large text */
}

/* Playfair Display italic on the name — luxury editorial feel */
.hero h1 .name-gradient {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .01em;
  /* Needed so inline-block chars line up correctly */
  line-height: 1;
}

/* “Josephine” — liquid flowing gradient */
/* Josephine. liquid gradient — optimized background-size */
.hero h1 .name-gradient {
  display: inline-block;
  max-width: 100%;
  margin-top: -0.05em;
  padding: 0.2em 0.15em 0.2em 0;
  background: linear-gradient(
    -45deg,
    #d4ff62, #00f5c8, #38bdf8, #a855f7,
    #ff6b6b, #ffd93d, #00f5c8, #d4ff62
  );
  background-size: 200% 200%;   /* was 400% — halved = 4x faster repaint */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: liquid-flow 7s ease-in-out infinite;
  will-change: background-position;
}

/* Josephine. chars — GPU layer per char, background-size optimized */
.hero h1 .name-gradient .char {
  background: inherit;
  background-size: 200% 200%;   /* match parent */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    char-reveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    liquid-flow  7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 60ms + 900ms), 0s;
  will-change: transform, opacity;
}



@keyframes liquid-flow {
  0%   { background-position: 0%   50%; }
  15%  { background-position: 50%  0%;  }
  30%  { background-position: 100% 50%; }
  50%  { background-position: 100% 100%;}
  65%  { background-position: 50%  100%;}
  80%  { background-position: 0%   50%; }
  100% { background-position: 0%   50%; }
}

/* shimmer stays for other elements */
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── 5 Gradient Style Variants ──
   Applied randomly by JS to .note h2, .belief-text, etc.
   Each uses background-size 300% 300% + liquid-flow or shimmer */

/* Style 1: Acid — green → teal */
.gs-acid {
  background: linear-gradient(-45deg, #d4ff62, #00f5c8, #22d3ee, #d4ff62) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: liquid-flow 6s ease-in-out infinite !important;
}
/* Style 2: Aurora — teal → indigo → fuchsia */
.gs-aurora {
  background: linear-gradient(-45deg, #00f5c8, #818cf8, #e879f9, #00f5c8) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: liquid-flow 7s ease-in-out infinite !important;
}
/* Style 3: Ember — gold → coral → violet */
.gs-ember {
  background: linear-gradient(-45deg, #ffd93d, #ff6b6b, #c026d3, #ffd93d) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: liquid-flow 8s ease-in-out infinite !important;
}
/* Style 4: Frost — white → sky → teal */
.gs-frost {
  background: linear-gradient(-45deg, #f0f9ff, #38bdf8, #00f5c8, #f0f9ff) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: liquid-flow 5s ease-in-out infinite !important;
}
/* Style 5: Solar — lime → amber → rose */
.gs-solar {
  background: linear-gradient(-45deg, #a3e635, #fb923c, #f43f5e, #a3e635) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: liquid-flow 9s ease-in-out infinite !important;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-top: 48px;
}

.hero-copy {
  max-width: 440px;
  color: rgba(246,244,232,.50);
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.90;
  letter-spacing: 0.015em;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .28s cubic-bezier(0.34, 1.56, 0.64, 1),
    color .22s ease,
    border-color .22s ease,
    box-shadow .28s ease;
}

.primary-action::before,
.secondary-action::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    #d4ff62, #00f5c8, #38bdf8, #a855f7, #ff6b6b, #ffd93d, #d4ff62);
  background-size: 300% 100%;
  animation: tag-fill-flow 3s linear infinite;
  opacity: 0;
  transition: opacity .22s ease;
  z-index: -1;
}

.primary-action {
  background: var(--acid);
  color: #071007;
  border: none;
}

.secondary-action {
  background: rgba(246,244,232,.1);
  border: 1px solid rgba(246,244,232,.16);
  color: rgba(246,244,232,.85);
}

.primary-action:hover,
.secondary-action:hover {
  transform: scale(1.08);
  color: #070907;
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 0 0 2px rgba(212,255,98,.25);
}

.primary-action:hover::before,
.secondary-action:hover::before {
  opacity: 1;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(246,244,232,.3);
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(246,244,232,.5), transparent);
  animation: drip 2s var(--ease-snap) infinite;
}

@keyframes drip {
  0%,100% { transform: scaleY(1); opacity: .4; }
  50%      { transform: scaleY(1.3); opacity: 1; }
}

/* ══════════════════════════════════════
   APPLE-STYLE CHAR REVEAL ANIMATION
   ══════════════════════════════════════ */

/* Char reveal: opacity + translateY ONLY — no blur (blur causes per-element rasterization) */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: char-reveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 55ms + 300ms);
  will-change: transform, opacity;
}

@keyframes char-reveal {
  0%   { opacity: 0; transform: translateY(0.5em); }
  100% { opacity: 1; transform: translateY(0); }
}

/* "Hi, I'm" — Playfair Display italic, same artistic family as name */
.hero-hi {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.55em;          /* slightly smaller than Josephine. */
  color: rgba(246,244,232,.55);
  display: inline-block;
  letter-spacing: .01em;
}

/* "Hi, I'm" chars animate in first, then Josephine. follows */
.hero-hi .char {
  /* Override base .char animation-delay for earlier stagger */
  animation-delay: calc(var(--i) * 75ms + 80ms), 0s;
  /* Same reveal animation, slightly faster */
  animation-duration: 0.7s, 7s;
}


/* Hero section: relative so dog can be absolute */
.hero { position: relative; }

/* ══════════════════════════════════════
   DOG MASCOT — CSS Pure
   ══════════════════════════════════════ */

.dog {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  z-index: 3;
  animation: dog-float 3.2s ease-in-out infinite;
  transition: transform .15s;
}

.dog:active { transform: translateY(-60%) scale(0.92); }

@keyframes dog-float {
  0%,100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

/* Speech bubble */
.dog-bubble {
  position: relative;
  background: rgba(10,12,10,.9);
  border: 1px solid rgba(212,255,98,.4);
  border-radius: 14px 14px 14px 4px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(246,244,232,.88);
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.4) translateY(12px);
  animation: bubble-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) 2.2s forwards;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

@keyframes bubble-pop {
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Dog wrap container ── */
.dog-wrap {
  position: relative;
  width: 72px;
  height: 92px;
}

/* Ears (triangle via clip-path) */
.dog-ear {
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  background: #E8952A;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  z-index: 1;
}
.dog-ear-l { left: 4px;  transform: rotate(-12deg); }
.dog-ear-r { right: 4px; transform: rotate(12deg); }

.dog-ear-in {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #F5C0A0;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Head */
.dog-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 52px;
  background: #F4B86B;
  border-radius: 52% 52% 44% 44%;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}

/* Eyes */
.dog-eye {
  position: absolute;
  top: 17px;
  width: 11px;
  height: 11px;
  background: #1a1107;
  border-radius: 50%;
  animation: dog-blink 4.5s ease-in-out infinite;
}
.dog-eye-l { left: 10px; }
.dog-eye-r { right: 10px; }

@keyframes dog-blink {
  0%,88%,100% { transform: scaleY(1); }
  93%          { transform: scaleY(0.08); }
}

/* Eye shine */
.dog-shine {
  position: absolute;
  top: 1px; right: 2px;
  width: 4px; height: 4px;
  background: #fff;
  border-radius: 50%;
}

/* Snout */
.dog-snout {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 20px;
  background: #F5C3A0;
  border-radius: 50%;
}

/* Nose */
.dog-nose {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 8px;
  background: #1a1107;
  border-radius: 50% 50% 44% 44%;
}

/* Blush cheeks */
.dog-cheek {
  position: absolute;
  bottom: 3px;
  width: 7px;
  height: 5px;
  background: rgba(255,150,130,.55);
  border-radius: 50%;
}
.dog-cheek-l { left: 1px; }
.dog-cheek-r { right: 1px; }

/* Body row */
.dog-body {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  gap: 0;
  z-index: 1;
}

/* Torso */
.dog-torso {
  width: 44px;
  height: 38px;
  background: #F4B86B;
  border-radius: 40% 40% 50% 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* Arms */
.dog-arm {
  width: 11px;
  height: 28px;
  background: #F4B86B;
  border-radius: 8px;
  margin-top: 6px;
}

/* Left arm waves */
.dog-arm-l {
  transform-origin: 50% 0%;
  animation: dog-wave 1s ease-in-out infinite;
}

/* Right arm idle */
.dog-arm-r {
  transform-origin: 50% 0%;
  animation: dog-idle-arm 3.2s ease-in-out infinite;
}

@keyframes dog-wave {
  0%,100% { transform: rotate(-30deg); }
  50%      { transform: rotate(35deg); }
}

@keyframes dog-idle-arm {
  0%,100% { transform: rotate(8deg); }
  50%      { transform: rotate(-8deg); }
}

/* Tail */
.dog-tail {
  position: absolute;
  bottom: 8px;
  left: -4px;
  width: 26px;
  height: 16px;
  background: #F4B86B;
  border-radius: 50% 50% 60% 40%;
  transform-origin: right 50%;
  animation: dog-wag 0.55s ease-in-out infinite;
  z-index: 0;
}

@keyframes dog-wag {
  0%,100% { transform: rotate(-28deg); }
  50%      { transform: rotate(28deg); }
}

/* Dog jump animation when clicked */
.dog.jump {
  animation: dog-jump 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

@keyframes dog-jump {
  0%   { translate: 0 0; }
  40%  { translate: 0 -28px; }
  70%  { translate: 0 -12px; }
  100% { translate: 0 0; }
}

/* Hide dog on small screens */
@media (max-width: 820px) {
  .dog { display: none; }
}

/* ── Marquee ── */
.marquee-wrap {
  overflow: hidden;
  margin: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  user-select: none;
}

.marquee-track {
  display: flex;
  padding: 16px 0;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  flex-shrink: 0;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 0 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(246,244,232,.52);
}

.marquee-dot {
  margin-left: 28px;
  font-size: 7px;
  color: rgba(212,255,98,.5);
}

/* ── Manifesto ── */
.manifesto {
  padding: 100px 0 80px;
}

.manifesto-label {
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  /* Subtle acid-green glow on section labels */
  background: linear-gradient(90deg, rgba(212,255,98,.7) 0%, rgba(0,245,200,.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.manifesto-text {
  font-size: clamp(36px, 6vw, 88px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.025em;
  max-width: 800px;
  margin-bottom: 28px;
}

.manifesto-text em {
  font-style: normal;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: shimmer 4s ease infinite;
}

.manifesto-sub {
  max-width: 540px;
  color: rgba(246,244,232,.58);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.74;
}

/* ── Project Cards ── */
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 100px;
}

.note {
  position: relative;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(7,9,7,.6);
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color .3s ease,
    transform .30s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow .30s ease;
  cursor: default;
}

/* Animated rainbow wash — subtle tint on hover */
.note::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    #d4ff62, #00f5c8, #38bdf8, #a855f7, #ff6b6b, #ffd93d, #d4ff62);
  background-size: 300% 100%;
  animation: tag-fill-flow 5s linear infinite;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: -1;
}

.note:hover {
  border-color: rgba(212,255,98,.35);
  transform: scale(1.03) translateY(-3px);
  box-shadow: 0 20px 55px rgba(0,0,0,.55), 0 0 0 1px rgba(212,255,98,.12);
}

.note:hover::before { opacity: 0.10; }  /* subtle wash, text stays readable */

.note-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 52px;
  border: 1px solid rgba(246,244,232,.20);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .28s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .22s;
}

.note-index::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4ff62, #00f5c8, #38bdf8, #a855f7, #d4ff62);
  background-size: 300% 100%;
  animation: tag-fill-flow 3s linear infinite;
  opacity: 0;
  transition: opacity .22s;
  z-index: -1;
}

.note:hover .note-index {
  transform: scale(1.25);
  border-color: transparent;
}

.note:hover .note-index::before { opacity: 1; }

/* note-index text styling */
.note-index {
  color: rgba(246,244,232,.55);
  font-family: var(--mono);
  font-size: 11px;
}

.note h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 14px;
  /* gradient applied by JS gs-* class */
}

.note:hover h2 {
  /* hover handled by gs-* animation speed-up would need JS — keep static */
}

.note p {
  color: rgba(246,244,232,.64);
  font-size: 15px;
  line-height: 1.74;
  margin-bottom: 18px;
}

.note-tags {
  font-family: var(--mono);
  font-size: 10px !important;
  color: rgba(212,255,98,.5) !important;
  letter-spacing: .06em;
  margin-bottom: 0 !important;
}

/* ══════════════════════════════════════
   PROJECTS SECTION
   ══════════════════════════════════════ */

.projects-section {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

/* Card — the <a> tag itself */
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
  transition: transform .30s var(--ease-snap),
              border-color .30s ease,
              box-shadow .30s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,255,98,.25);
  box-shadow: 0 24px 60px rgba(0,0,0,.55),
              0 0 0 1px rgba(212,255,98,.10),
              inset 0 1px 0 rgba(255,255,255,.07);
}

/* Animated top accent bar */
.project-accent-bar {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg,
    #d4ff62, #00f5c8, #38bdf8, #a855f7, #ff6b6b, #d4ff62);
  background-size: 300% 100%;
  animation: bar-flow 4s linear infinite;
}

@keyframes bar-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.project-card-inner {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-index {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(246,244,232,.30);
  letter-spacing: .08em;
}

.project-status {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #d4ff62;
  background: rgba(212,255,98,.10);
  border: 1px solid rgba(212,255,98,.22);
  border-radius: 20px;
  padding: 3px 9px;
}

.project-name {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  background: linear-gradient(120deg, #f6f4e8 0%, #d4ff62 60%, #00f5c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background .3s;
  margin: 0;
}

.project-card:hover .project-name {
  background: linear-gradient(120deg, #d4ff62 0%, #00f5c8 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.project-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(246,244,232,.50);
  letter-spacing: .008em;
  margin: 0;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.project-tags {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: rgba(56,189,248,.60);
}

.project-arrow {
  font-size: 20px;
  color: rgba(246,244,232,.25);
  line-height: 1;
  transition: transform .25s var(--ease-snap), color .25s;
}

.project-card:hover .project-arrow {
  transform: translate(3px, -3px);
  color: #d4ff62;
}

/* ── Beliefs ── */
.beliefs {
  padding: 80px 0 100px;
  border-top: 1px solid var(--line);
}

.belief-list {
  list-style: none;
  margin-top: 32px;
}

.belief-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .2s;
}

.belief-item:first-child { border-top: 1px solid var(--line); }

.belief-item:hover { padding-left: 4px; }

.belief-num {
  flex-shrink: 0;
  width: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .7;
}

.belief-text {
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(246,244,232,.82);
  letter-spacing: -.01em;
  transition: color .3s, background-position .3s;
  background-size: 200% 200%;
}

/* On hover: first keyword picks up gradient */
.belief-item:hover .belief-text {
  background: var(--grad-subtle);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Footer ── */
.footer {
  display: flex;
  align-items: center;
  max-width: 1180px;
  padding: 20px 2px 16px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: rgba(246,244,232,.4);
  font-family: var(--mono);
  font-size: 11px;
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.footer-right { margin-left: auto; }

.footer-link {
  color: rgba(246,244,232,.4);
  transition: color .16s;
}

.footer-link:hover { color: var(--acid); }

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-snap), transform .7s var(--ease-snap);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.revealed { opacity: 1; transform: none; }

/* ── Connect Section ── */
.connect {
  padding: 80px 0 100px;
  border-top: 1px solid var(--line);
}

.connect-text {
  max-width: 560px;
  margin: 24px 0 36px;
  color: rgba(246,244,232,.62);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.74;
}

.connect-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.connect-actions .primary-action,
.connect-actions .secondary-action {
  font-size: 13px;
  min-height: 44px;
  padding: 0 18px;
}

/* ── Hero hi text ── */
.hero-hi {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 700;
  color: rgba(246,244,232,.65);
  display: block;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}

/* ── Vibes Section ── */
.vibes-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--line);
}

.vibes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.vibe-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7,9,7,.5);
  transition: border-color .25s, background .25s, transform .22s var(--ease-snap);
}

.vibe-card:hover {
  border-color: rgba(212,255,98,.25);
  background: rgba(7,9,7,.7);
  transform: translateY(-3px);
}

.vibe-icon {
  font-size: 22px;
  margin-bottom: 4px;
  line-height: 1;
}

.vibe-label {
  font-size: 15px;
  font-weight: 700;
  background: var(--grad-subtle);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vibe-desc {
  font-size: 13px;
  color: rgba(246,244,232,.5);
  line-height: 1.55;
}

/* ── WeChat QR Modal ── */
.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Force centering regardless of parent transforms */
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ease-snap);
}

.qr-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.qr-modal {
  position: relative;
  width: 300px;
  max-width: calc(100vw - 40px);
  margin: 0 auto;
  padding: 28px 24px 22px;
  border-radius: 28px;
  border: 1px solid rgba(212,255,98,.25);
  background: rgba(12,14,12,.95);
  box-shadow: 0 0 0 1px rgba(0,245,200,.1), 0 40px 80px rgba(0,0,0,.6), 0 0 60px rgba(212,255,98,.06);
  transform: scale(.9) translateY(16px);
  transition: transform .32s var(--ease-snap);
  /* Prevent overflow causing off-center appearance */
  box-sizing: border-box;
  text-align: center;
}

.qr-overlay.open .qr-modal {
  transform: scale(1) translateY(0);
}

.qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(246,244,232,.15);
  background: transparent;
  color: rgba(246,244,232,.55);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .18s;
}

.qr-close:hover {
  background: rgba(246,244,232,.1);
  color: var(--fg);
}

.qr-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.qr-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top; /* show the cat's face */
  flex-shrink: 0;
  border: 1.5px solid rgba(212,255,98,.25);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

.qr-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.qr-location {
  font-size: 12px;
  color: rgba(246,244,232,.45);
  margin-top: 2px;
}

.qr-body {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.qr-img {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  padding: 12px;
  box-shadow: 0 0 0 1px rgba(212,255,98,.15), 0 8px 32px rgba(0,0,0,.4);
}

/* Friend text */
.qr-friend {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  margin: 6px 0 2px;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: shimmer 3s ease infinite;
}

.qr-hint {
  text-align: center;
  font-size: 12px;
  color: rgba(246,244,232,.38);
  margin: 6px 0 12px;
  letter-spacing: .02em;
}

.qr-tag-row {
  display: flex;
  justify-content: center;
}

.qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(7,193,96,.35);
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(7,193,96,.8);
  letter-spacing: .06em;
}

.qr-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(7,193,96);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Worldview Essay ── */
.worldview-section {
  padding: 100px 0 80px;
  border-top: 1px solid var(--line);
  position: relative;
}

/* Subtle radial glow behind the section */
.worldview-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,255,98,.04) 0%, transparent 70%);
  pointer-events: none;
}

.essay-wrap {
  max-width: 720px;
}

/* Pull quote — the centerpiece */
.pull-quote {
  margin: 28px 0 56px;
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  border: none;
  padding: 0;
  color: rgba(246,244,232,.85);
}

.pull-quote em {
  font-style: normal;
  background: linear-gradient(-45deg, #d4ff62, #00f5c8, #38bdf8, #a855f7, #d4ff62);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: liquid-flow 8s ease-in-out infinite;
}

/* Body paragraphs */
.essay-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.essay-graf {
  font-size: clamp(15px, 1.65vw, 19px);
  line-height: 1.88;
  color: rgba(246,244,232,.58);
  padding: 18px 0;
  border-top: 1px solid rgba(246,244,232,.07);
  transition: color .25s;
}

.essay-graf:hover {
  color: rgba(246,244,232,.82);
}

.essay-graf.essay-last {
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 600;
  color: rgba(246,244,232,.78);
  letter-spacing: -.01em;
  line-height: 1.7;
}

/* Inline gradient key phrases */
.essay-key {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: shimmer 4s ease infinite;
  font-weight: 600;
}

/* Footer signature */
.essay-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(246,244,232,.1);
  flex-wrap: wrap;
  gap: 8px;
}

.essay-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(246,244,232,.4);
  letter-spacing: .06em;
}

.essay-tags {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .6;
}

/* ── Currently Section ── */

.currently-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--line);
}

.currently-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--line);
}

.currently-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
  background: rgba(7,9,7,.75);
  transition: background .25s;
}

.currently-item:hover {
  background: rgba(12,18,12,.85);
}

.currently-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.currently-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 5px;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.currently-val {
  display: block;
  font-size: 14px;
  color: rgba(246,244,232,.68);
  line-height: 1.6;
  transition: color .25s;
}

.currently-item:hover .currently-val {
  color: rgba(246,244,232,.9);
}

/* ── Hero Stats Strip ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 52px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  max-width: 520px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.stat-num {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: shimmer 4s ease infinite;
  line-height: 1;
}

.stat-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(246,244,232,.4);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
  flex-shrink: 0;
}

/* ── Stack Section ── */
.stack-section {
  padding: 80px 0 60px;
  border-top: 1px solid var(--line);
}

.stack-sub {
  max-width: 460px;
  color: rgba(246,244,232,.55);
  font-size: 15px;
  line-height: 1.7;
  margin: 16px 0 36px;
}

.stack-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
}

.stack-category {}

.stack-cat-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(246,244,232,.35);
  margin-bottom: 10px;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(246,244,232,.14);
  background: rgba(246,244,232,.04);
  color: rgba(246,244,232,.7);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .28s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color .22s ease,
    color .22s ease,
    box-shadow .28s ease;
}

.stack-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    #d4ff62, #00f5c8, #38bdf8, #a855f7, #ff6b6b, #ffd93d, #d4ff62);
  background-size: 300% 100%;
  animation: tag-fill-flow 3s linear infinite;
  opacity: 0;
  transition: opacity .22s;
  z-index: -1;
}

.stack-pill:hover {
  transform: scale(1.18);
  border-color: transparent;
  color: #070907;
  box-shadow: 0 6px 20px rgba(0,0,0,.45), 0 0 0 1.5px rgba(212,255,98,.20);
}

.stack-pill:hover::before { opacity: 1; }

/* Accented pill variants — base colors only, hover uses shared rainbow fill */
.pill-acid {
  border-color: rgba(212,255,98,.28);
  color: rgba(212,255,98,.85);
  background: rgba(212,255,98,.06);
}

.pill-cool {
  border-color: rgba(56,189,248,.25);
  color: rgba(56,189,248,.8);
  background: rgba(56,189,248,.05);
}

.pill-warm {
  border-color: rgba(168,85,247,.25);
  color: rgba(168,85,247,.8);
  background: rgba(168,85,247,.05);
}
.pill-warm:hover {
  border-color: rgba(168,85,247,.5);
  background: rgba(168,85,247,.1);
  color: #a855f7;
}

/* Footer WeChat button */


.footer-wechat,
.footer-qq {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.footer-qq:hover { color: #12b7f5; }

/* ══════════════════════════════════════
   RESPONSIVE — Mobile First
   ══════════════════════════════════════ */

/* ── Tablet (≤820px) ── */
@media (max-width: 820px) {
  .shell { padding: 14px; }
  .shell::before { inset: 8px; border-radius: 20px; }

  /* Header */
  .site-header {
    top: 14px;
    height: auto;
    min-height: 50px;
    padding: 8px 14px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .header-clock { display: none; }
  .nav { gap: 0; }
  .nav a { padding: 0 9px; font-size: 12px; }
  .lang-btn { height: 28px; padding: 0 11px; font-size: 11px; }

  /* Hero — more bottom padding so Josephine. descenders don't clip */
  .hero { padding: 88px 0 140px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-stats { max-width: 100%; gap: 0; }
  .stat-num { font-size: clamp(20px, 6vw, 36px); }

  /* Manifesto */
  .manifesto { padding: 60px 0 48px; }
  .manifesto-text { font-size: clamp(20px, 5vw, 36px); }

  /* Cards */
  .note-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 60px; }

  /* Worldview essay */
  .pull-quote { font-size: clamp(26px, 7vw, 44px); margin-bottom: 36px; }
  .essay-graf { font-size: 15px; line-height: 1.8; }
  .essay-footer { flex-direction: column; gap: 6px; }

  /* Currently */
  .currently-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stack */
  .stack-categories { grid-template-columns: 1fr; gap: 20px; }

  /* Beliefs */
  .belief-item { gap: 14px; padding: 16px 0; }

  /* Connect */
  .connect-actions { flex-wrap: wrap; gap: 10px; }

  /* Scroll hint */
  .scroll-hint { display: none; }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {
  .shell { padding: 10px; }
  .shell::before { display: none; } /* remove border frame on small screens */

  /* Header — compact pill */
  .site-header {
    top: 10px;
    padding: 7px 12px;
    border-radius: 18px;
    gap: 4px;
  }
  .brand { font-size: 11px; letter-spacing: 0; }
  .nav a { font-size: 11px; padding: 0 7px; }
  .lang-btn { height: 26px; padding: 0 10px; font-size: 10px; }

  /* Hide some nav items on very small screens, keep key ones */
  .nav a[href="#stack"] { display: none; }

  /* Hero — large padding-bottom pushes Josephine. up from viewport edge */
  .hero { padding: 80px 0 130px; }
  /* Override desktop inline margin-bottom on h1 — less space needed on mobile */
  .hero h1 { margin-bottom: 40px !important; }
  .hero-meta { gap: 6px; flex-wrap: wrap; }
  .tag { font-size: 10px; height: 28px; padding: 0 12px; }
  .hero-hi { font-size: clamp(18px, 5vw, 26px); }

  /* Stats strip — 2×2 on mobile */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    margin-top: 36px;
    max-width: 100%;
  }
  .stat-item {
    background: var(--bg);
    padding: 16px 12px;
    border-radius: 0;
  }
  .stat-divider { display: none; }
  .stat-num { font-size: clamp(22px, 7vw, 34px); }
  .stat-label { font-size: 8px; }

  /* Manifesto */
  .manifesto-text { font-size: clamp(18px, 6vw, 28px); line-height: 1.4; }
  .manifesto-sub { font-size: 14px; }

  /* Cards */
  .note { padding: 20px; border-radius: 16px; }
  .note h2 { font-size: 22px; }

  /* Worldview */
  .worldview-section { padding: 64px 0 56px; }
  .pull-quote {
    font-size: clamp(22px, 8vw, 36px);
    line-height: 1.18;
    margin-bottom: 28px;
  }
  .essay-graf { font-size: 14px; line-height: 1.78; padding: 14px 0; }
  .essay-graf.essay-last { font-size: 15px; }
  .essay-meta { font-size: 10px; }
  .essay-tags { font-size: 9px; }

  /* Currently — single column */
  .currently-section { padding: 48px 0 56px; }
  .currently-grid {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  .currently-item { padding: 16px 18px; }
  .currently-icon { font-size: 17px; }
  .currently-val { font-size: 13px; }

  /* Stack */
  .stack-section { padding: 56px 0 48px; }
  .stack-categories { gap: 18px; }
  .stack-pill { height: 26px; padding: 0 10px; font-size: 10px; }

  /* Beliefs */
  .beliefs { padding: 48px 0; }
  .belief-num { font-size: 11px; }
  .belief-text { font-size: 15px; }

  /* Connect */
  .connect { padding: 56px 0 48px; }
  .connect-text { font-size: 14px; line-height: 1.7; }
  .connect-actions { flex-direction: column; width: 100%; }
  .connect-actions .primary-action,
  .connect-actions .secondary-action { width: 100%; justify-content: center; }

  /* QR Modal */
  .qr-modal { width: calc(100vw - 32px); padding: 24px 20px 20px; }
  .qr-img { width: 160px; height: 160px; }

  /* Footer */
  .footer { flex-direction: column; gap: 10px; text-align: center; padding: 24px 16px; }
  .footer-center { gap: 16px; }

  /* Marquee — slower on mobile for readability */
  .marquee-track { animation-duration: 35s; }

  /* Disable cursor orb on touch devices */
  @media (hover: none) {
    .cursor-orb, .cursor-dot { display: none !important; }
    *, a, button { cursor: auto !important; }
  }
}

/* ── Very small (≤380px, iPhone SE etc.) ── */
@media (max-width: 380px) {
  .nav a[href="#beliefs"] { display: none; }
  .hero-meta .tag-sep { display: none; }
  .pull-quote { font-size: clamp(20px, 9vw, 30px); }
  .stat-num { font-size: 24px; }
}

/* ── Touch: disable hover-only effects ── */
@media (hover: none) {
  .cursor-orb, .cursor-dot { display: none !important; }
  *, a, button { cursor: auto !important; }
  .essay-graf { color: rgba(246,244,232,.68); } /* lift default opacity, no hover needed */
  .currently-item { background: rgba(7,9,7,.75); }
  .stack-pill { transform: none !important; }
}
