/* v2-tokens.css — playful, character-led landing. Extends hifi-tokens.css */

.v2 {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Oversized editorial type ─────────────────────────────────── */
.v2 .mega {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0;
  text-wrap: balance;
}
.v2 .big {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
}
.v2 .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.v2 p { margin: 0; line-height: 1.6; }

/* Marker highlight, hand-placed */
.v2 .hl {
  position: relative;
  white-space: nowrap;
}
.v2 .hl::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px; bottom: 0.06em; height: 0.36em;
  background: var(--sun);
  z-index: -1;
  border-radius: 3px;
  transform: rotate(-0.6deg);
}
.v2 .hl-coral::after { background: var(--coral-soft); }
.v2 .hl-sage::after  { background: var(--sage-soft); }
.v2 .underliney {
  background-image: linear-gradient(var(--purple), var(--purple));
  background-size: 100% 5px;
  background-repeat: no-repeat;
  background-position: 0 92%;
}

/* ─── Buttons (chunky, playful) ────────────────────────────────── */
.v2 .btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,1.6,.4,1), box-shadow .18s;
  text-decoration: none;
  white-space: nowrap;
}
.v2 .btn-primary { background: var(--purple); color: #fff; box-shadow: 0 6px 0 var(--purple-900); }
.v2 .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--purple-900); }
.v2 .btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--purple-900); }
.v2 .btn-ink { background: var(--ink); color: var(--cream); box-shadow: 0 6px 0 #000; }
.v2 .btn-ink:hover { transform: translateY(-2px); }
.v2 .btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.v2 .btn-ghost:hover { background: var(--ink); color: var(--cream); }
.v2 .btn-cream { background: var(--cream); color: var(--ink); box-shadow: 0 6px 0 rgba(0,0,0,0.25); }
.v2 .btn-cream:hover { transform: translateY(-2px); }

/* ─── Drifting worry chips ─────────────────────────────────────── */
.v2 .worry {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  color: var(--slate);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  will-change: transform;
}
.v2 .worry .dot { width: 8px; height: 8px; border-radius: 50%; }

@keyframes v2-drift-a { 0%,100% { transform: translate(0,0) rotate(-3deg); } 50% { transform: translate(14px,-18px) rotate(2deg); } }
@keyframes v2-drift-b { 0%,100% { transform: translate(0,0) rotate(2deg); } 50% { transform: translate(-16px,12px) rotate(-2deg); } }
@keyframes v2-drift-c { 0%,100% { transform: translate(0,0) rotate(-1deg); } 50% { transform: translate(10px,16px) rotate(3deg); } }
.v2 .drift-a { animation: v2-drift-a 7s ease-in-out infinite; }
.v2 .drift-b { animation: v2-drift-b 9s ease-in-out infinite; }
.v2 .drift-c { animation: v2-drift-c 8s ease-in-out infinite; }

/* ─── Floating / breathing character ───────────────────────────── */
@keyframes v2-breathe { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(-1.5deg); } }
.v2 .breathe { animation: v2-breathe 5.5s ease-in-out infinite; transform-origin: center bottom; }

@keyframes v2-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.v2 .bob { animation: v2-bob 3.2s ease-in-out infinite; }

/* ─── Scroll reveal ──────────────────────────────────────────────
   STATIC opacity toggle — deliberately NO transition or animation. The
   preview/embed iframe can be compositor-throttled (the document timeline
   freezes at currentTime 0), which strands any time-gated opacity at its
   start value and hides content. A plain static value never depends on the
   clock, so revealed content is always painted. The page's liveliness comes
   from the character/drift/marquee animations, not section fades. */
.v2 .reveal { opacity: 0; }
.v2 .reveal.in { opacity: 1; }

/* ─── Marquee (ticker) ─────────────────────────────────────────── */
.v2 .marquee { overflow: hidden; white-space: nowrap; }
.v2 .marquee-track { display: inline-flex; gap: 0; animation: v2-marquee 28s linear infinite; }
@keyframes v2-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.v2 .marquee-item { display: inline-flex; align-items: center; gap: 18px; padding: 0 18px; font-family: var(--font-display); font-weight: 600; font-size: 22px; }

/* ─── Sticker bubble (capabilities) ────────────────────────────── */
.v2 .sticker {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: var(--shadow-md);
  transition: transform .2s cubic-bezier(.2,1.6,.4,1), box-shadow .2s;
}
.v2 .sticker:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: var(--shadow-lg); }

/* full-bleed helpers */
.v2 .bleed { width: 100%; }
.v2 section { position: relative; }

/* Dot texture */
.v2 .dotbg {
  background-image: radial-gradient(rgba(26,26,31,0.07) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.v2 .dotbg-light {
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

/* Wobble on hover */
@keyframes v2-wobble { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
.v2 .wobble:hover { animation: v2-wobble .5s ease-in-out; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .v2 .breathe, .v2 .bob, .v2 .drift-a, .v2 .drift-b, .v2 .drift-c, .v2 .marquee-track { animation: none !important; }
  .v2 .reveal { opacity: 1 !important; transform: none !important; }
}

/* motion-off (tweak) */
.v2.motion-off .breathe, .v2.motion-off .bob, .v2.motion-off .drift-a, .v2.motion-off .drift-b, .v2.motion-off .drift-c, .v2.motion-off .marquee-track { animation: none !important; }
.v2.motion-off .reveal { opacity: 1 !important; transform: none !important; }

/* ─── Responsive type scale ────────────────────────────────────── */
.v2 .mega { font-size: clamp(44px, 8.5vw, 132px); }
.v2 .big  { font-size: clamp(30px, 4.4vw, 64px); }
.v2 .lede { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.55; color: var(--slate); }

/* nav */
.v2 .nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(250,247,240,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.v2 .nav.stuck { border-color: var(--mist); }
.v2 .nav-links { display: flex; gap: clamp(18px, 2.5vw, 40px); align-items: center; }
.v2 .nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.v2 .nav-links a:hover { color: var(--purple); }

@media (max-width: 860px) {
  .v2 .nav-links .hide-sm { display: none; }
}
