/* ============================================================
   Mansi Hajare — one-pager portfolio
   Palette from user's "Amazing Color Palettes Set":
   peach #FFE2D2 · ink #0C2421 · pine #16403C · teal #12969C
   sky #8FB9D8 · slate #24566A
   Type: Apple system stack (SF Pro on Apple devices)
   ============================================================ */

:root {
  --peach: #FFE2D2;
  --peach-deep: #FFCDB4;
  --cream: #FFF8F3;
  --ink: #0C2421;
  --pine: #16403C;
  --teal: #12969C;
  --sky: #8FB9D8;
  --slate: #24566A;
  --accent: var(--teal);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- band theming ---------- */
.band { background: var(--band-bg); color: var(--band-fg); position: relative; }

body[data-theme="mixed"] [data-band="a"],
body[data-theme="light"] [data-band="a"] {
  --band-bg: var(--cream); --band-fg: var(--ink);
  --band-soft: rgba(12, 36, 33, 0.62);
  --card-bg: #FFFFFF; --card-fg: var(--ink);
  --card-border: rgba(12, 36, 33, 0.08);
}
body[data-theme="mixed"] [data-band="b"],
body[data-theme="dark"] [data-band="b"] {
  --band-bg: var(--ink); --band-fg: #F2FAF7;
  --band-soft: rgba(242, 250, 247, 0.62);
  --card-bg: rgba(255, 255, 255, 0.05); --card-fg: #F2FAF7;
  --card-border: rgba(255, 255, 255, 0.12);
}
body[data-theme="light"] [data-band="b"] {
  --band-bg: #E8F1EF; --band-fg: var(--ink);
  --band-soft: rgba(12, 36, 33, 0.62);
  --card-bg: #FFFFFF; --card-fg: var(--ink);
  --card-border: rgba(12, 36, 33, 0.08);
}
body[data-theme="dark"] [data-band="a"] {
  --band-bg: #102E2A; --band-fg: #F2FAF7;
  --band-soft: rgba(242, 250, 247, 0.62);
  --card-bg: rgba(255, 255, 255, 0.05); --card-fg: #F2FAF7;
  --card-border: rgba(255, 255, 255, 0.12);
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 90;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--sky));
  border-radius: 0 999px 999px 0;
}

/* ---------- nav ---------- */
.pill-nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 80; display: flex; align-items: center; gap: 28px;
  padding: 10px 12px 10px 22px; border-radius: 999px;
  background: rgba(12, 36, 33, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #F2FAF7; box-shadow: 0 8px 30px rgba(12, 36, 33, 0.25);
  white-space: nowrap;
}
.nav-name { font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.logo-m {
  width: 32px; height: 32px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--slate));
  color: #FFFFFF;
}
.logo-m svg { width: 20px; height: 18px; display: block; }
body[data-motion="on"] .nav-name:hover .logo-m { animation: logoSpin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes logoSpin { from { transform: rotate(-12deg) scale(0.85); } to { transform: none; } }
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  opacity: 0.75; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  text-decoration: none; font-size: 14px; font-weight: 600;
  background: var(--peach); color: var(--ink);
  padding: 9px 18px; border-radius: 999px; transition: transform 0.2s ease, background 0.2s;
}
.nav-cta:hover { background: var(--peach-deep); transform: scale(1.05); }

/* ---------- shared layout ---------- */
.section-inner {
  max-width: 1140px; margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) clamp(22px, 5vw, 48px);
}
.section-inner.center { text-align: center; }
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
h2 {
  font-size: clamp(34px, 4.6vw, 60px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.05; margin-bottom: clamp(36px, 5vw, 64px);
}

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-inner {
  max-width: 1180px; margin: 0 auto; width: 100%;
  padding: 140px clamp(22px, 5vw, 48px) 90px;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  position: relative; z-index: 2;
}
.hero h1 {
  font-size: clamp(56px, 9vw, 112px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 0.98; margin-bottom: 26px;
}
.name-accent {
  background: linear-gradient(100deg, var(--teal) 0%, var(--slate) 35%, var(--sky) 60%, var(--teal) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body[data-motion="on"] .name-accent { animation: gradShift 7s ease-in-out infinite alternate; }
@keyframes gradShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero-rotator {
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 18px; display: flex; flex-wrap: wrap;
}
.rotator {
  position: relative; display: inline-block; min-width: 7.5ch;
  color: var(--accent);
}
.rot-word { display: inline-block; }
.rot-word.swap-out { animation: rotOut 0.3s ease forwards; }
.rot-word.swap-in { animation: rotIn 0.35s ease; }
@keyframes rotOut { to { opacity: 0; transform: translateY(-14px); } }
@keyframes rotIn { from { opacity: 0; transform: translateY(14px); } }
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6;
  color: var(--band-soft); max-width: 46ch; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 12px 28px; border-radius: 999px; text-decoration: none;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, color 0.2s, border-color 0.2s;
  will-change: transform;
}
.btn-solid { background: var(--ink); color: #F2FAF7; }
.btn-solid:hover { background: var(--pine); }
.btn-ghost { border: 2px solid var(--band-fg); color: var(--band-fg); }
.btn-ghost:hover { background: var(--band-fg); color: var(--band-bg); }
body[data-theme="dark"] .btn-solid,
[data-band="b"] .btn-solid { background: var(--peach); color: var(--ink); }
body[data-theme="dark"] .btn-solid:hover { background: var(--peach-deep); }

/* hero background showreel (transparent, text stays readable) */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.15; display: block; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 35%, var(--band-bg) 96%);
}

/* hero photo in arch */
.hero-photo { position: relative; justify-self: center; }
.arch {
  width: clamp(280px, 32vw, 420px); aspect-ratio: 4 / 5;
  border-radius: 999px 999px 36px 36px; overflow: hidden;
  background: var(--peach); display: block;
  box-shadow: 0 30px 70px rgba(12, 36, 33, 0.22);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}
.arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo:hover .arch { transform: rotate(-2deg) scale(1.02); box-shadow: 0 36px 80px rgba(12, 36, 33, 0.3); }
.float-chip {
  position: absolute; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #fff;
  box-shadow: 0 10px 24px rgba(12, 36, 33, 0.2); white-space: nowrap;
}
.fc1 { top: 8%; left: -16%; background: var(--teal); }
.fc2 { top: 32%; right: -14%; background: var(--slate); }
.fc3 { bottom: 22%; left: -20%; background: var(--pine); }
.fc4 { bottom: 4%; right: -8%; background: var(--sky); color: var(--ink); }
body[data-motion="on"] .float-chip { animation: bob 5s ease-in-out infinite; }
body[data-motion="on"] .fc2 { animation-delay: -1.4s; }
body[data-motion="on"] .fc3 { animation-delay: -2.6s; }
body[data-motion="on"] .fc4 { animation-delay: -3.8s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ambient gradient glow (hero + contact) */
.hero-glow, .contact-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.hero-glow::before, .contact-glow::before {
  content: ""; position: absolute; width: 60vw; height: 60vw;
  top: -25vw; right: -15vw; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(18, 150, 156, 0.22), transparent 65%);
}
.hero-glow::after, .contact-glow::after {
  content: ""; position: absolute; width: 50vw; height: 50vw;
  bottom: -25vw; left: -15vw; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 205, 180, 0.5), transparent 65%);
}
body[data-motion="on"] .hero-glow::before, body[data-motion="on"] .contact-glow::before { animation: drift1 16s ease-in-out infinite alternate; }
body[data-motion="on"] .hero-glow::after, body[data-motion="on"] .contact-glow::after { animation: drift2 19s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8vw, 6vw) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(7vw, -5vw) scale(1.1); } }

/* showreel lightbox */
.reel-lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 22, 20, 0.86); padding: 4vmin;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.reel-lightbox video {
  max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.reel-close {
  position: absolute; top: 22px; right: 26px; width: 48px; height: 48px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #FFF; font-size: 22px; line-height: 1;
  transition: background 0.2s, transform 0.2s;
}
.reel-close:hover { background: rgba(255, 255, 255, 0.25); transform: rotate(90deg); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid var(--band-soft);
  border-radius: 999px; z-index: 2;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%; width: 5px; height: 10px;
  margin-left: -2.5px; border-radius: 999px; background: var(--accent);
}
body[data-motion="on"] .scroll-hint span { animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } }

/* ---------- marquee strip ---------- */
.marquee-strip {
  background: var(--teal); color: #FFF; overflow: hidden;
  transform: rotate(-1.6deg) scale(1.04); position: relative; z-index: 5;
  padding: 16px 0; box-shadow: 0 16px 40px rgba(12, 36, 33, 0.25);
}
.marquee { display: flex; align-items: center; gap: 36px; width: max-content; }
body[data-motion="on"] .marquee { animation: scroll-x 26s linear infinite; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.mq-item {
  font-size: clamp(18px, 2vw, 24px); font-weight: 700;
  letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap;
}
.mq-star { font-size: 18px; color: var(--peach); flex: none; }
body[data-motion="on"] .mq-star { animation: starSpin 6s linear infinite; }
@keyframes starSpin { to { transform: rotate(360deg); } }

/* ---------- numbers ---------- */
.numbers .section-inner { padding-bottom: clamp(80px, 10vw, 130px); }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.stat strong {
  display: block; font-size: clamp(44px, 5.4vw, 76px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(100deg, var(--peach) 0%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
body[data-theme="light"] .stat strong {
  background: linear-gradient(100deg, var(--teal) 0%, var(--slate) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.stat-label { font-size: 15px; line-height: 1.45; color: var(--band-soft); max-width: 20ch; display: block; }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: clamp(36px, 5vw, 56px); display: grid; gap: clamp(36px, 4vw, 56px); }
.tl-spine {
  position: absolute; left: 9px; top: 8px; bottom: 8px; width: 4px;
  border-radius: 999px; background: var(--card-border);
}
.tl-spine span {
  display: block; width: 100%; height: 0; border-radius: 999px;
  background: linear-gradient(var(--teal), var(--sky));
}
.tl-entry { position: relative; max-width: 62ch; }
.tl-node {
  position: absolute; left: calc(-1 * clamp(36px, 5vw, 56px) + 2px); top: 6px;
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--band-bg); border: 4px solid var(--teal);
}
.tl-node.now { background: var(--teal); box-shadow: 0 0 0 6px rgba(18, 150, 156, 0.18); }
body[data-motion="on"] .tl-node.now { animation: nodePulse 2.4s ease-in-out infinite; }
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(18, 150, 156, 0.18); }
  50% { box-shadow: 0 0 0 12px rgba(18, 150, 156, 0.06); }
}
.tl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tl-date { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--band-soft); }
.tag {
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.tag-now { background: var(--teal); color: #fff; }
.tag-ai { background: var(--peach); color: var(--ink); align-self: flex-start; }
.tl-entry h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.tl-org { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.tl-desc { font-size: 16px; line-height: 1.6; color: var(--band-soft); }

/* ---------- wins bento ---------- */
.wins .section-inner { padding-top: 0; }
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.card {
  background: var(--card-bg); color: var(--card-fg);
  border: 1px solid var(--card-border);
  border-radius: 28px; padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  grid-column: span 2;
}
.card:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: 0 24px 50px rgba(12, 36, 33, 0.14); }
.card h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.card p { font-size: 15px; line-height: 1.55; color: var(--band-soft); }
.card-dark {
  grid-column: span 4; grid-row: span 1;
  background: linear-gradient(135deg, var(--pine), var(--ink));
  color: #F2FAF7; border-color: transparent;
  --band-soft: rgba(242, 250, 247, 0.72);
}
.card-dark h3 { font-size: clamp(24px, 2.6vw, 32px); }
.card-foot { margin-top: auto; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }

/* ---------- stack ---------- */
.platforms { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(40px, 5vw, 64px); }
.plat {
  font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -0.01em;
  padding: 14px 30px; border-radius: 999px;
  border: 2px solid var(--card-border); color: var(--band-fg);
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
  cursor: default;
}
.plat:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-4px) rotate(-1deg); }
body[data-motion="on"] .plat { animation: platFloat 5s ease-in-out infinite; }
body[data-motion="on"] .plat:nth-child(2n) { animation-delay: -1.6s; }
body[data-motion="on"] .plat:nth-child(3n) { animation-delay: -3.2s; }
body[data-motion="on"] .plat:hover { animation: none; }
@keyframes platFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.skill-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px;
  margin-bottom: clamp(48px, 6vw, 72px); max-width: 760px;
}
.skill-cols ul { list-style: none; display: grid; gap: 12px; }
.skill-cols li {
  font-size: 16px; line-height: 1.4; color: var(--band-soft);
  padding-left: 26px; position: relative;
}
.skill-cols li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 14px; height: 8px; border-radius: 999px; background: var(--accent);
}
.certs-head { margin-bottom: 22px; }
.cert-marquee-wrap { overflow: hidden; margin: 0 calc(-1 * clamp(22px, 5vw, 48px)); }
.cert-marquee { display: flex; gap: 14px; width: max-content; padding: 4px clamp(22px, 5vw, 48px); }
body[data-motion="on"] .cert-marquee { animation: scroll-x 32s linear infinite; }
.cert {
  font-size: 15px; font-weight: 600; white-space: nowrap;
  padding: 12px 24px; border-radius: 999px;
  background: var(--card-bg); border: 1px solid var(--card-border); color: var(--band-fg);
}

/* ---------- Rocket the beagle: runs across the page as you scroll ---------- */
.rocket {
  position: fixed; left: 0; bottom: 6px; z-index: 70;
  width: 112px; height: 96px; padding: 0; border: 0; background: transparent;
  cursor: pointer; will-change: transform;
  transform: translate(8px, 0);
}
.rocket-inner { display: block; width: 100%; height: 100%; position: relative; }
.dog-img {
  width: 100%; height: 87px; object-fit: contain; display: block;
  filter: drop-shadow(0 5px 10px rgba(12, 36, 33, 0.25));
}
.rocket.face-left .dog-img { transform: scaleX(-1); }
/* ground shadow */
.rocket-inner::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 8px;
  border-radius: 50%; background: rgba(12, 36, 33, 0.16);
}
/* idle: gentle breathing float */
body[data-motion="on"] .dog-img { animation: dogIdle 3.2s ease-in-out infinite; }
@keyframes dogIdle {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -4px; rotate: -2deg; }
}
body[data-motion="on"] .rocket.face-left .dog-img { animation-name: dogIdleFlip; }
@keyframes dogIdleFlip {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -4px; rotate: 2deg; }
}
/* running: fast gallop bounce */
.rocket.running .dog-img { animation: dogGallop 0.34s ease-in-out infinite alternate; }
@keyframes dogGallop {
  from { translate: 0 0; rotate: 3deg; }
  to { translate: 0 -10px; rotate: -5deg; }
}
.rocket.running.face-left .dog-img { animation-name: dogGallopFlip; }
@keyframes dogGallopFlip {
  from { translate: 0 0; rotate: -3deg; }
  to { translate: 0 -10px; rotate: 5deg; }
}
.rocket.running .rocket-inner::after { animation: shadowPulse 0.34s ease-in-out infinite alternate; }
@keyframes shadowPulse { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(0.78); opacity: 0.7; } }
body.no-raf .dog-img, body[data-motion="off"] .dog-img { animation: none !important; }
.rocket:hover .rocket-inner { transform: scale(1.08); transform-origin: bottom center; }

.rocket.bark .rocket-inner { animation: rocketBark 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes rocketBark {
  0% { transform: translateY(0); }
  35% { transform: translateY(-30px) rotate(6deg) scale(1.08); }
  70% { transform: translateY(0) rotate(-3deg); }
  100% { transform: translateY(0); }
}
.rocket-bubble {
  position: absolute; left: 64%; top: -36px;
  background: #FFFFFF; color: var(--ink);
  font-family: var(--font); font-size: 14px; font-weight: 700; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px 999px 999px 4px;
  box-shadow: 0 10px 26px rgba(12, 36, 33, 0.18);
  opacity: 0; transform: translateY(8px) scale(0.8); transform-origin: bottom left;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.rocket.at-right .rocket-bubble {
  left: auto; right: 64%;
  border-radius: 999px 999px 4px 999px; transform-origin: bottom right;
}
.rocket:hover .rocket-bubble, .rocket.bark .rocket-bubble { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- contact ---------- */
.contact { overflow: hidden; }
.contact .section-inner { position: relative; z-index: 2; }
.contact-big {
  font-size: clamp(40px, 6.4vw, 84px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 40px;
}
.foot-note { margin-top: 56px; font-size: 14px; color: var(--band-soft); }

/* ---------- scroll choreography (engine-driven; see portfolio-scroll.js) ---------- */
@media (prefers-reduced-motion: reduce) {
  body[data-motion="on"] .marquee, body[data-motion="on"] .cert-marquee,
  body[data-motion="on"] .float-chip, body[data-motion="on"] .scroll-hint span { animation: none; }
}
body.no-raf .marquee, body.no-raf .cert-marquee { animation: none !important; }
body.no-raf .rot-word { animation: none !important; opacity: 1 !important; transform: none !important; }

body.sr-on .section-inner, body.sr-on .hero-copy, body.sr-on .timeline { perspective: 1500px; }
.sr-item { will-change: transform, opacity, filter; }
.sr-head { transform-style: preserve-3d; }
.sr-word { display: inline-block; will-change: transform, opacity, filter; backface-visibility: hidden; }
.sr-clean { perspective: 900px; }
.sr-clean .sr-word { transform-origin: 50% 90%; will-change: transform, opacity; }

/* extra motion: chips get gentle rotation with their bob */
body[data-motion="on"] .float-chip { animation: bobTilt 5s ease-in-out infinite; }
@keyframes bobTilt {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* ============================================================
   3D DEPTH LAYER (pointer-reactive tilt + parallax)
   ============================================================ */
:root { --tilt-ease: cubic-bezier(0.22, 1, 0.36, 1); }

/* perspective containers */
.hero-inner { perspective: 1300px; }
.stat-grid { perspective: 1200px; }
.bento { perspective: 1600px; }
.platforms { perspective: 1000px; }

/* generic tilt surface */
.tilt3d {
  transform-style: preserve-3d;
  transition: transform 0.55s var(--tilt-ease), box-shadow 0.55s var(--tilt-ease);
  will-change: transform;
}
.tilt3d.tilting { transition: transform 0.08s linear, box-shadow 0.08s linear; }
.tilt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 46%);
  opacity: 0; transition: opacity 0.4s ease;
  mix-blend-mode: soft-light; transform: translateZ(72px); z-index: 4;
}
.tilt3d.tilting .tilt-glare { opacity: 1; }

/* stat numbers become raised 3D glass tiles */
.stat {
  position: relative; background: var(--card-bg); color: var(--card-fg);
  border: 1px solid var(--card-border); border-radius: 24px;
  padding: clamp(22px, 2.6vw, 32px);
  box-shadow: 0 22px 44px -26px rgba(12, 36, 33, 0.6);
}
.stat strong { transform: translateZ(46px); margin-bottom: 10px; }
.stat .stat-label { transform: translateZ(24px); }
.stat.tilting { box-shadow: -16px 34px 54px -22px rgba(12, 36, 33, 0.5); }

/* wins cards: float content forward in Z */
.card { position: relative; }
.card h3 { transform: translateZ(48px); }
.card p { transform: translateZ(26px); }
.card .tag { transform: translateZ(64px); }
.card .card-foot { transform: translateZ(36px); }
.card.tilting { box-shadow: -22px 38px 62px -26px rgba(12, 36, 33, 0.42); }
.card-dark.tilting { box-shadow: -22px 40px 70px -24px rgba(12, 36, 33, 0.6); }

/* platform pills tilt as little 3D chips */
.plat { position: relative; }

/* hero portrait floats and rotates in real space */
.hero-photo { transform-style: preserve-3d; transition: transform 0.5s var(--tilt-ease); }
.arch { translate: 0 0 55px; }
.float-chip { translate: 0 0 var(--chipz, 40px); }
.fc1 { --chipz: 78px; } .fc2 { --chipz: 44px; } .fc3 { --chipz: 96px; } .fc4 { --chipz: 60px; }
body[data-motion="on"] .float-chip { animation: chipBob 5s ease-in-out infinite; }
@keyframes chipBob {
  0%, 100% { translate: 0 0 var(--chipz, 40px); rotate: -2deg; }
  50% { translate: 0 -12px var(--chipz, 40px); rotate: 2deg; }
}
body.no-raf .hero-photo, body[data-motion="off"] .hero-photo { transform: none !important; }
@media (hover: none), (pointer: coarse) {
  .arch { translate: 0 0 0; }
  .float-chip { translate: 0 0 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  /* keep floating chips out of the copy column on mid-size screens */
  .fc1 { left: -6%; }
  .fc3 { left: -9%; }
  .fc2 { right: -5%; }
  .fc4 { right: -2%; }
}
@media (max-height: 640px) {
  .rocket { width: 84px; height: 72px; bottom: 4px; }
  .dog-img { height: 65px; }
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 120px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo { order: -1; margin-top: 10px; }
  .arch { width: min(64vw, 320px); }
  .fc1 { left: -6%; } .fc3 { left: -8%; } .fc2 { right: -4%; } .fc4 { right: -2%; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card-dark { grid-column: span 2; }
  .nav-links { display: none; }
  .pill-nav { gap: 16px; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .bento { grid-template-columns: 1fr; }
  .card, .card-dark { grid-column: span 1; }
  .skill-cols { grid-template-columns: 1fr; }
  .logo-text { display: none; }
  .rocket { width: 84px; height: 72px; bottom: 4px; }
  .dog-img { height: 65px; }
}
