/* ── vikaspareek.com — shared chrome ─────────────────────── */

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  --bg:      #05070c;
  --surface: #0c0f17;
  --line:    rgba(238,242,251,0.08);
  --ink:     #eef2fb;
  --mid:     #9aa3b5;
  --faint:   #5b6373;
  --acc:     #bf80ff;
  --acc-2:   #8484ff;
  --live:    #6ee7a8;
  --mono:    ui-monospace, "SF Mono", Menlo, monospace;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: opacity .2s, color .2s; }
a:hover { opacity: .65; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 3rem; }

/* ── Gradient title treatment (design/name) ───────────────── */
.title-grad {
  background: linear-gradient(180deg, #ffffff 20%, #9aa3b5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  font-weight: 700;
}

/* ── Status dot ───────────────────────────────────────────── */
.status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .7rem; color: var(--faint);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(110,231,168,.45); }
  50%      { opacity: .7; box-shadow: 0 0 0 5px rgba(110,231,168,0); }
}

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 1.15rem 3rem;
  display: flex; align-items: center; gap: 2.5rem;
  background: rgba(5,7,12,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em;
  color: var(--ink);
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: .82rem; color: var(--mid);
}
.nav-links a:hover { color: var(--ink); opacity: 1; }
.nav-links a.active { color: var(--acc); }
.nav .shiny-cta {
  margin-left: auto;
  padding: .45rem 1.1rem;
  font-size: .8rem;
}
.nav-hamburger {
  display: none; background: none; border: 0; color: var(--ink);
  cursor: pointer; padding: .25rem;
}
@media (max-width: 660px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-hamburger { display: block; }
  .nav .shiny-cta { padding: .35rem .85rem; font-size: .72rem; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(5,7,12,.97); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: .9rem 1.5rem; border-top: 1px solid var(--line); }
}

/* ── Splash (design/intial_splash — one per session) ──────── */
.splash {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease;
}
.splash.done { opacity: 0; pointer-events: none; }
.no-splash .splash { display: none; }
.splash-name {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  animation: splash-in 1.1s cubic-bezier(.22,1,.36,1) both;
}
.splash-sub {
  position: absolute; margin-top: 7.5rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--faint);
  animation: splash-in 1.1s .25s cubic-bezier(.22,1,.36,1) both;
}
@keyframes splash-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ── Hero (design/background — particle field behind) ─────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 7rem 1.5rem 4rem;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > .hero-inner { position: relative; z-index: 2; max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem 1rem; border-radius: 999px;
  background: rgba(191,128,255,.08);
  border: 1px solid rgba(191,128,255,.22);
  backdrop-filter: blur(4px);
  font-size: .8rem; color: var(--ink); margin-bottom: 1.6rem;
}
.hero-badge .status-dot { background: var(--acc); box-shadow: none; animation: none; }
.hero-name { font-size: clamp(2.8rem, 8vw, 5.5rem); line-height: 1.02; margin-bottom: .6rem; }
.hero-role {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em;
  color: var(--mid); margin-bottom: 1.4rem;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--mid);
  max-width: 640px; margin: 0 auto 1.5rem;
}
.hero-open {
  font-size: .95rem; color: var(--faint); line-height: 1.75;
  max-width: 660px; margin: 0 auto 2.6rem;
}
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.hero-alt { display: flex; gap: 1.4rem; font-size: .85rem; color: var(--mid); }
.hero-alt a:hover { color: var(--acc); opacity: 1; }
.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .65rem; letter-spacing: .15em;
  color: var(--faint); z-index: 2;
}

/* staggered entrance */
.fx { opacity: 0; transform: translateY(20px); animation: fade-up .8s ease-out forwards; }
.fx-1 { animation-delay: .45s; } .fx-2 { animation-delay: .65s; }
.fx-3 { animation-delay: .85s; } .fx-4 { animation-delay: 1.05s; }
.fx-5 { animation-delay: 1.25s; }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Shiny CTA (design/cta_button — vanilla port) ─────────── */
@property --gradient-angle        { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-angle-offset { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-percent      { syntax: "<percentage>"; initial-value: 5%; inherits: false; }
@property --gradient-shine        { syntax: "<color>"; initial-value: white; inherits: false; }

.shiny-cta {
  --shiny-cta-bg: #05070c;
  --shiny-cta-bg-subtle: #1a1826;
  --shiny-cta-fg: #ffffff;
  --shiny-cta-highlight: #bf80ff;
  --shiny-cta-highlight-subtle: #8484ff;
  --animation: gradient-angle linear infinite;
  --duration: 3s;
  --shadow-size: 2px;
  --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
  isolation: isolate;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  display: inline-block;
  padding: 1rem 2.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 360px;
  color: var(--shiny-cta-fg);
  background: linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg)) padding-box,
    conic-gradient(
      from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent,
      var(--shiny-cta-highlight) var(--gradient-percent),
      var(--gradient-shine) calc(var(--gradient-percent) * 2),
      var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
      transparent calc(var(--gradient-percent) * 4)
    ) border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent, --gradient-shine;
}
.shiny-cta:hover { opacity: 1; }
.shiny-cta::before,
.shiny-cta::after,
.shiny-cta span::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  z-index: -1;
}
.shiny-cta:active { translate: 0 1px; }
.shiny-cta::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size); height: var(--size);
  background: radial-gradient(
    circle at var(--position) var(--position),
    white calc(var(--position) / 4),
    transparent 0
  ) padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(
    from calc(var(--gradient-angle) + 45deg),
    black,
    transparent 10% 90%,
    black
  );
  border-radius: inherit;
  opacity: 0.4;
  z-index: -1;
}
.shiny-cta::after {
  --animation: shimmer linear infinite;
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, var(--shiny-cta-highlight), transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
}
.shiny-cta span { z-index: 1; position: relative; }
.shiny-cta span::before {
  --size: calc(100% + 1rem);
  width: var(--size); height: var(--size);
  box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
  opacity: 0;
  transition: opacity var(--transition);
  animation: calc(var(--duration) * 1.5) breathe linear infinite;
}
.shiny-cta,
.shiny-cta::before,
.shiny-cta::after {
  animation: var(--animation) var(--duration),
    var(--animation) calc(var(--duration) / 0.4) reverse paused;
  animation-composition: add;
}
.shiny-cta:is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-cta-highlight-subtle);
}
.shiny-cta:is(:hover, :focus-visible),
.shiny-cta:is(:hover, :focus-visible)::before,
.shiny-cta:is(:hover, :focus-visible)::after {
  animation-play-state: running;
}
.shiny-cta:is(:hover, :focus-visible) span::before { opacity: 1; }
@keyframes gradient-angle { to { --gradient-angle: 360deg; } }
@keyframes shimmer { to { rotate: 360deg; } }
@keyframes breathe { from, to { scale: 1; } 50% { scale: 1.2; } }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-eyebrow {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--acc); margin-bottom: 1rem;
}
.section-heading { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 2.5rem; }
.page-head { padding: 10rem 0 0; }
.page-head .lead { color: var(--mid); max-width: 680px; margin-top: 1.2rem; font-size: 1.05rem; }

/* ── Hero chips ───────────────────────────────────────────── */
.chip {
  display: inline-block; padding: .05rem .55rem; border-radius: 999px;
  border: 1px solid rgba(191,128,255,.3); background: rgba(191,128,255,.08);
  color: var(--ink); font-size: .92em; white-space: nowrap;
}

/* ── About brief (2-col: story + stats) ───────────────────── */
.about-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 3.5rem; align-items: start; }
.about-text p { color: var(--mid); font-size: .98rem; line-height: 1.8; margin-bottom: 1.3rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-text em { font-style: normal; color: var(--ink); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stats > div { background: var(--surface); padding: 1.4rem 1.2rem; }
.stat-num { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 20%, #9aa3b5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-lbl { font-size: .74rem; color: var(--faint); margin-top: .25rem; line-height: 1.45; }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; gap: 2rem; } }

/* ── Career journey cards ─────────────────────────────────── */
.work-cards { display: grid; gap: 1.4rem; }
.work-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.8rem; transition: border-color .25s;
}
.work-card:hover { border-color: rgba(191,128,255,.3); }
.work-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.work-card-meta { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; color: var(--faint); margin-bottom: .35rem; }
.work-card-company { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.work-card-role { font-size: .85rem; color: var(--acc); margin-top: .15rem; }
.work-badge {
  flex-shrink: 0; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em;
  padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--faint);
}
.badge-live { border-color: rgba(110,231,168,.4); color: var(--live); }
.work-bullets { list-style: none; }
.work-bullets li {
  position: relative; padding-left: 1.1rem; color: var(--mid);
  font-size: .9rem; line-height: 1.65; margin-bottom: .5rem;
}
.work-bullets li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }

/* ── Skills band ──────────────────────────────────────────── */
.skills-band { margin-top: 1rem; }
.skills-row { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.skills-row:first-of-type { border-top: 0; }
.skills-cat { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.skills-items { display: flex; flex-wrap: wrap; gap: .45rem; }
@media (max-width: 660px) { .skills-row { grid-template-columns: 1fr; gap: .6rem; } }

/* ── Cards ────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  display: block;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.8rem; transition: border-color .25s, transform .25s;
}
.card:hover { opacity: 1; border-color: rgba(191,128,255,.35); transform: translateY(-3px); }
.card h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.card p { font-size: .88rem; color: var(--mid); line-height: 1.65; }
.card .card-more {
  display: inline-block; margin-top: 1.1rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--acc);
}
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.section-cta {
  display: inline-block; margin-top: 2.5rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; color: var(--acc);
}

/* ── Work page entries ────────────────────────────────────── */
.entry { padding: 2.4rem 0; border-top: 1px solid var(--line); }
.entry:first-of-type { border-top: 0; padding-top: 0; }
.entry h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.entry p { color: var(--mid); font-size: .95rem; max-width: 720px; }
.entry .related {
  display: inline-block; margin-top: .8rem;
  font-size: .8rem; color: var(--acc);
}
.tool-list { list-style: none; }
.tool-list li { padding: 1rem 0; border-top: 1px solid var(--line); color: var(--mid); font-size: .92rem; }
.tool-list li:first-child { border-top: 0; }
.tool-list strong { color: var(--ink); font-weight: 600; }
.tool-list .lang { font-family: var(--mono); font-size: .68rem; color: var(--faint); margin-left: .5rem; }

/* ── About: experience timeline ───────────────────────────── */
.xp { list-style: none; }
.xp li { position: relative; padding: 0 0 2.4rem 2rem; border-left: 1px solid var(--line); }
.xp li:last-child { padding-bottom: 0; }
.xp li::before {
  content: ""; position: absolute; left: -5px; top: .45em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--acc);
}
.xp h3 { font-size: 1.02rem; }
.xp .xp-meta { font-family: var(--mono); font-size: .68rem; color: var(--faint); margin: .25rem 0 .6rem; letter-spacing: .05em; }
.xp p { color: var(--mid); font-size: .92rem; max-width: 700px; }

/* ── Writing list ─────────────────────────────────────────── */
.posts { list-style: none; }
.posts li { display: flex; gap: 2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.posts li:first-child { border-top: 0; }
.posts .p-date { font-family: var(--mono); font-size: .68rem; color: var(--faint); white-space: nowrap; padding-top: .35rem; min-width: 88px; }
.posts .p-title { font-size: 1.02rem; font-weight: 500; }
.posts .p-title a:hover { color: var(--acc); opacity: 1; }
.posts .p-li { display: inline-block; margin-top: .4rem; font-size: .78rem; color: var(--faint); }
.posts .p-li:hover { color: var(--acc); opacity: 1; }
@media (max-width: 560px) { .posts li { flex-direction: column; gap: .3rem; } }

/* ── Blog list + tags (used by build.js templates) ────────── */
.writing-list { list-style: none; }
.writing-item { display: flex; gap: 2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.writing-item:first-child { border-top: 0; }
.writing-date { font-family: var(--mono); font-size: .68rem; color: var(--faint); white-space: nowrap; padding-top: .35rem; min-width: 88px; }
.writing-title { font-size: 1.02rem; font-weight: 500; }
.writing-title a:hover { color: var(--acc); opacity: 1; }
.writing-excerpt { font-size: .85rem; color: var(--mid); margin-top: .35rem; max-width: 640px; }
.tag-list, .tag-filter { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.tag {
  display: inline-block; padding: .15rem .6rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(191,128,255,.05);
  font-family: var(--mono); font-size: .62rem; color: var(--mid);
}
.tag.active { border-color: rgba(191,128,255,.5); color: var(--acc); }
@media (max-width: 560px) { .writing-item { flex-direction: column; gap: .3rem; } }

/* ── GitHub calendar (design/github_ins — vanilla port) ───── */
.gh-cal { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 1.2rem; width: fit-content; max-width: 100%; margin: 0 auto; transition: background .5s, border-color .5s; }
.gh-cal.game-on { background: #000; border-color: #2a2a35; }
.gh-scroll { position: relative; overflow-x: auto; scrollbar-width: none; }
.gh-scroll::-webkit-scrollbar { display: none; }
.gh-cal svg text { font-size: 12px; fill: var(--faint); font-family: var(--mono); }
.gh-cal canvas { position: absolute; inset: 0 auto auto 0; z-index: 10; cursor: crosshair; }
.gh-tip {
  pointer-events: none; position: absolute; z-index: 50;
  background: #161b22; border: 1px solid rgba(238,242,251,.15);
  border-radius: 6px; padding: .3rem .6rem;
  font-size: .68rem; font-family: var(--mono); color: var(--ink);
  white-space: nowrap; transform: translate(-50%, calc(-100% - 8px));
  display: none;
}
.gh-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: .9rem; flex-wrap: wrap; }
.gh-legend { display: flex; align-items: center; gap: .35rem; font-size: .68rem; color: var(--faint); font-family: var(--mono); }
.gh-legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.gh-game-toggle { display: flex; align-items: center; gap: .5rem; border-left: 1px solid var(--line); padding-left: 1rem; }
.gh-game-toggle span { font-size: .65rem; color: var(--faint); font-family: var(--mono); }
.gh-switch {
  position: relative; width: 34px; height: 19px; border-radius: 999px;
  background: #262633; border: 0; cursor: pointer; transition: background .2s;
}
.gh-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px; border-radius: 50%; background: #fff;
  transition: transform .2s;
}
.gh-switch[aria-checked="true"] { background: var(--acc); }
.gh-switch[aria-checked="true"]::after { transform: translateX(15px); }
.gh-stats { font-size: .78rem; color: var(--faint); margin-left: auto; }
.gh-stats b { color: #39d353; }
.gh-stats a:hover { color: var(--ink); opacity: 1; }
.gh-skel { height: 120px; display: flex; align-items: center; justify-content: center; color: var(--faint); font-family: var(--mono); font-size: .7rem; animation: skel-pulse 1.4s ease-in-out infinite; }
@keyframes skel-pulse { 50% { opacity: .4; } }
.gh-err { color: #f87171; font-family: var(--mono); font-size: .75rem; padding: 1rem; }

/* ── Footer (particle band, design/footer) ────────────────── */
footer.site-foot {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 4.5rem 0 2.5rem; margin-top: 6rem;
}
footer.site-foot canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.foot-inner { position: relative; z-index: 2; text-align: center; }
.foot-line { color: var(--mid); font-size: .98rem; margin-bottom: 1.8rem; }
.foot-links { display: flex; justify-content: center; gap: 1.6rem; margin-top: 1.8rem; font-size: .85rem; color: var(--mid); flex-wrap: wrap; }
.foot-links a:hover { color: var(--acc); opacity: 1; }
.foot-note { display: block; margin-top: 2.6rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--faint); }

/* ── Rocky the pet ────────────────────────────────────────── */
.rocky {
  position: fixed; z-index: 600; width: 76px;
  cursor: grab; user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.rocky.dragging { cursor: grabbing; }
.rocky svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.rocky .r-all { transform-origin: 50% 100%; animation: rocky-bob 3.2s ease-in-out infinite; }
.rocky.wobble .r-all { animation: rocky-wobble .75s ease-in-out; }
.rocky.stretch .r-all { animation: rocky-stretch 1.8s ease-in-out; }
.rocky.wave .r-all { animation: rocky-wave 1.3s ease-in-out; }
@keyframes rocky-bob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes rocky-wobble {
  0%,100% { transform: rotate(0); }
  20% { transform: rotate(-9deg); } 40% { transform: rotate(8deg); }
  60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); }
}
@keyframes rocky-stretch {
  0%,100% { transform: scaleY(1); }
  25%,65% { transform: scaleY(1.22) scaleX(.94); }
}
@keyframes rocky-wave {
  0%,100% { transform: rotate(0) translateY(0); }
  25% { transform: rotate(-12deg) translateY(-6px); }
  55% { transform: rotate(10deg) translateY(-6px); }
  80% { transform: rotate(-6deg) translateY(-2px); }
}
.rocky-bubble {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--surface); border: 1px solid rgba(191,128,255,.45);
  border-radius: 10px; padding: .4rem .7rem;
  font-family: var(--mono); font-size: .7rem; color: var(--ink);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.rocky-bubble::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: rgba(191,128,255,.45);
}
.rocky-bubble.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 480px) { .rocky { display: none; } }

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .status-dot, .fx, .rocky .r-all, .splash-name, .splash-sub,
  .shiny-cta, .shiny-cta::before, .shiny-cta::after { animation: none; }
  .fx { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .splash { display: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 660px) {
  .wrap { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }
}
