/* ═══════════════════════════════════════════════════════════
   KALGI SHAH — "THE CRAFT DESK"
   deep green cutting mat · taped paper · handwritten notes
   ═══════════════════════════════════════════════════════════ */

:root {
  --mat: #2c5e50;          /* cutting-mat green */
  --mat-deep: #234c41;     /* darker band */
  --mat-line: rgba(233, 244, 238, 0.14);
  --paper: #f6f1e5;        /* cream paper */
  --paper-line: rgba(44, 62, 54, 0.07);
  --card: #fffdf7;
  --ink: #23201a;
  --ink-soft: #6b6357;
  --ink-dim: #a39a8b;
  --chalk: #e9c65b;        /* chalk yellow */
  --terra: #c4614a;        /* terracotta (kept from current site) */
  --mint: #8fd0b5;
  --lav: #c9b8e8;
  --soil: #1d3a32;
  --tape: rgba(240, 230, 200, 0.55);

  --serif: 'Young Serif', Georgia, serif;
  --hand: 'Caveat', cursive;
  --mono: 'DM Mono', 'Courier New', monospace;
  --sans: 'DM Sans', Helvetica, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

::selection { background: var(--chalk); color: var(--ink); }

.mono { font-family: var(--mono); }
.hand { font-family: var(--hand); }
.chalk { color: var(--chalk) !important; }

/* ── custom cursor (desktop only) ── */
@media (pointer: fine) {
  .cursor-dot {
    position: fixed; z-index: 9999; pointer-events: none;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--terra);
    transform: translate(-50%, -50%);
    transition: background 0.2s;
  }
  .cursor-ring {
    position: fixed; z-index: 9998; pointer-events: none;
    width: 30px; height: 30px; border-radius: 50%;
    border: 1.5px solid rgba(196, 97, 74, 0.55);
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, border-color 0.25s;
  }
  body.cursor-hover .cursor-ring { width: 46px; height: 46px; border-color: var(--chalk); }
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 44px;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(35, 58, 50, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(233, 244, 238, 0.12);
}
.nav-logo {
  font-family: var(--hand); font-size: 24px; font-weight: 700;
  color: var(--paper); text-decoration: none;
  transform: rotate(-2deg); display: inline-block;
  transition: transform 0.25s;
}
.nav-logo:hover { transform: rotate(2deg) scale(1.06); }
.nav-links { display: flex; gap: 34px; }
.nav-links a, .nav-social a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  color: rgba(246, 241, 229, 0.75); text-decoration: none;
  position: relative; transition: color 0.2s;
}
.nav-links a:hover, .nav-social a:hover { color: var(--chalk); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 2px; background: var(--chalk);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease; border-radius: 2px;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-fun { color: var(--chalk) !important; }
.nav-social { display: flex; gap: 22px; }
.nav-burger { display: none; }

/* nav over light sections */
.nav.on-paper:not(.scrolled) .nav-logo { color: var(--ink); }
.nav.on-paper:not(.scrolled) .nav-links a,
.nav.on-paper:not(.scrolled) .nav-social a { color: var(--ink-soft); }
.nav.on-paper:not(.scrolled) .nav-fun { color: var(--terra) !important; }

.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--mat-deep);
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.nav-mobile.open { opacity: 1; pointer-events: all; }
.nav-mobile a {
  font-family: var(--mono); font-size: 20px; letter-spacing: 4px;
  color: var(--paper); text-decoration: none;
}
.nav-mobile-social { display: flex; gap: 28px; margin-top: 24px; }
.nav-mobile-social a { font-size: 13px; color: var(--chalk); }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.05), transparent 60%);
  background-size: 54px 54px, 54px 54px, 100% 100%;
  overflow: hidden;
}
/* vignette so the cards feel lit from center */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(16, 34, 28, 0.5) 100%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-center { position: relative; z-index: 5; text-align: center; padding: 0 20px; }
.hero-kicker {
  font-size: 12px; letter-spacing: 6px; color: rgba(246, 241, 229, 0.6);
  margin-bottom: 10px;
  opacity: 0; animation: rise 0.9s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 11vw, 136px); line-height: 0.95;
  color: var(--chalk);
  text-shadow: 0 3px 0 rgba(20, 40, 33, 0.55);
  opacity: 0; animation: rise 0.9s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-dot { color: var(--terra); -webkit-text-stroke: 0; }
.hero-underline {
  width: clamp(180px, 22vw, 280px); margin: 4px auto 18px; display: block;
  opacity: 0; animation: rise 0.9s 0.5s forwards;
}
.hero-underline path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.1s 0.7s ease forwards; }
.hero-tagline {
  font-size: clamp(17px, 2vw, 21px); line-height: 1.55;
  color: var(--paper);
  opacity: 0; animation: rise 0.9s 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-explore {
  margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: rgba(246, 241, 229, 0.65);
  opacity: 0; animation: rise 0.9s 0.8s forwards;
}
.hero-explore .hand { font-size: 22px; transform: rotate(-2deg); }
.doodle-arrow { width: 26px; margin-top: 4px; animation: bob 2.2s ease-in-out infinite; }

.hero-stats {
  position: absolute; bottom: 30px; left: 0; right: 0;
  z-index: 5; display: flex; gap: 16px; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 1px; color: rgba(246, 241, 229, 0.55);
  opacity: 0; animation: rise 0.9s 1s forwards;
}
.hs-item b { color: var(--paper); font-weight: 500; margin-right: 6px; }
.hs-item em { font-style: normal; color: var(--mint); }
.hs-sep { color: rgba(246, 241, 229, 0.3); }

/* ── floating cards ── */
.hero-cards { position: absolute; inset: 0; z-index: 2; }
.fcard {
  position: absolute;
  transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  animation: float 6s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.fcard:hover { animation-play-state: paused; }

/* tape corners */
.tape-tl::before, .tape-tr::before {
  content: ''; position: absolute; top: -9px; width: 58px; height: 20px;
  background: var(--tape);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  z-index: 2;
}
.tape-tl::before { left: -14px; transform: rotate(-35deg); }
.tape-tr::before { right: -14px; transform: rotate(35deg); }

/* generic white card */
.card-jira, .card-doc, .card-slack, .card-runbook, .card-sql, .card-health {
  background: var(--card);
  border: 1px solid #e5decf;
  border-radius: 8px;
  padding: 15px 17px;
  width: 232px;
  box-shadow: 0 4px 14px rgba(10, 25, 20, 0.28), 0 14px 34px rgba(10, 25, 20, 0.22);
  display: flex; flex-direction: column; gap: 9px;
}
.fc-row { display: flex; justify-content: space-between; align-items: center; }
.fc-row-start { display: flex; align-items: center; gap: 7px; }
.fc-title { font-size: 13px; font-weight: 700; }
.fc-title-sm { font-size: 12px; font-weight: 600; }
.fc-body { font-size: 10px; color: var(--ink-soft); line-height: 1.65; }
.fc-meta { font-size: 9px; color: var(--ink-soft); font-family: var(--mono); }
.fc-dim { font-size: 8px; color: var(--ink-dim); }
.fc-xs { font-size: 8px; }
.fc-hr { height: 1px; background: #f0e9da; }

.badge {
  font-family: var(--mono); font-size: 8px; font-weight: 500;
  padding: 3px 8px; border-radius: 4px; letter-spacing: 1px;
  align-self: flex-start;
}
.badge-urgent { background: #fef3c7; color: #92400e; }
.badge-runbook { background: #ffe8e0; color: var(--terra); }
.badge-sql { background: #ede9fe; color: #7c3aed; }
.badge-health { background: #dcfce7; color: #15803d; }

/* positions (desktop) */
.card-jira { top: 13%; left: 5%; }
.sticky-note { top: 12%; left: 26%; animation-delay: -2s; }
.card-doc { top: 11%; right: 5%; }
.card-slack { top: 42%; right: 3%; animation-delay: -3s; }
.card-runbook { top: 45%; left: 3%; animation-delay: -1.5s; }
.card-terminal { bottom: 12%; left: 7%; animation-delay: -4s; }
.card-sql { bottom: 11%; right: 6%; animation-delay: -2.5s; }
.idea-note { top: 14%; right: 26%; animation-delay: -3.5s; }
.card-health { bottom: 8%; right: 24%; animation-delay: -1s; }

/* sticky notes */
.sticky-note, .idea-note {
  background: #fdf0a8;
  width: 165px; padding: 15px;
  border-radius: 2px;
  box-shadow: 0 5px 14px rgba(10, 25, 20, 0.3);
  display: flex; flex-direction: column; gap: 8px;
}
.sticky-note::after, .idea-note::after {
  content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(2deg);
  width: 52px; height: 17px; background: var(--tape);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.idea-note { background: #ffe1d6; }
.sn-title { font-size: 12px; font-weight: 700; color: #6b5410; }
.idea-note .sn-title { color: #9a4a33; }
.sn-body { font-size: 10px; line-height: 1.5; color: #8a6d1c; }
.idea-note .sn-body { color: #a3573f; }
.sn-line { width: 26px; border-top: 1.5px solid #d9bb56; }

/* slack card bits */
.slack-hash { color: var(--terra); font-weight: 700; font-size: 13px; }
.slack-avatar {
  width: 21px; height: 21px; background: var(--terra); border-radius: 50%;
  color: #fff; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.reaction {
  background: #f5f2ea; border: 1px solid #e5decf; border-radius: 11px;
  padding: 2px 8px; font-family: var(--mono); font-size: 8px; color: var(--ink-soft);
}

/* terminal card */
.card-terminal {
  background: #201d18; border: 1px solid #37332b; border-radius: 8px;
  width: 236px; padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(5, 15, 12, 0.45);
}
.term-bar { display: flex; gap: 5px; margin-bottom: 8px; }
.term-bar i { width: 8px; height: 8px; border-radius: 50%; background: #4a463d; }
.term-bar i:first-child { background: #d96a5a; }
.term-bar i:nth-child(2) { background: #e3c05c; }
.term-bar i:nth-child(3) { background: #7dbf8e; }
.term-body { font-size: 9px; line-height: 1.7; color: #b8b2a4; }
.t-dim { color: #6e6a5e; }
.t-ok { color: #7dbf8e; }
.t-warn { color: #e3c05c; }
.t-err { color: #d96a5a; }
.cursor-blink { animation: blink 1.1s steps(1) infinite; color: #b8b2a4; }

/* sql card */
.card-sql { background: #201d18; border-color: #37332b; }
.sql-body { font-size: 9px; line-height: 1.65; color: #b0aa9c; white-space: pre-wrap; }

/* health card */
.health-row { display: flex; align-items: center; gap: 8px; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #38a169; position: relative; }
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(56, 161, 105, 0.5); animation: pulse 1.8s ease-out infinite;
}
.health-spark { width: 100%; }

/* ═══════════ SECTIONS (shared) ═══════════ */
.section { position: relative; padding: 110px 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 44px; }

.paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 54px 54px;
}
.mat {
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 54px 54px;
}

.kicker {
  font-size: 11px; letter-spacing: 4px; color: var(--terra);
  margin-bottom: 18px;
}
.kicker::before { content: '✦ '; }
.chalk-k { color: var(--chalk); }
.title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.16;
  letter-spacing: -0.5px; margin-bottom: 20px;
}
.title em {
  font-family: var(--hand); font-style: normal; font-weight: 700;
  font-size: 1.22em; color: var(--terra);
}
.title-light { color: var(--paper); }
.title-light em { color: var(--chalk); }
.sub { font-size: 16px; color: var(--ink-soft); max-width: 560px; line-height: 1.65; }
.sub-light { color: rgba(246, 241, 229, 0.65); }

/* reveal on scroll (only hidden when JS is available, so content never disappears without it) */
.js .reveal {
  opacity: 0; transform: translateY(26px) rotate(var(--rot, 0deg));
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.in { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); }

/* ═══════════ WORK CASES ═══════════ */
.cases {
  margin-top: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.case {
  position: relative;
  background: var(--card);
  border: 1px solid #e2dac7;
  border-radius: 10px;
  padding: 34px 32px 26px;
  box-shadow: 0 2px 6px rgba(60, 50, 30, 0.06), 0 14px 34px rgba(60, 50, 30, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
}
.case:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 6px 14px rgba(60, 50, 30, 0.08), 0 24px 48px rgba(60, 50, 30, 0.14);
}
.washi {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 96px; height: 24px; opacity: 0.85;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.washi-a { background: repeating-linear-gradient(45deg, var(--chalk) 0 6px, #f2d98a 6px 12px); }
.washi-b { background: repeating-linear-gradient(45deg, var(--mint) 0 6px, #a8dcc4 6px 12px); }
.washi-c { background: repeating-linear-gradient(45deg, var(--lav) 0 6px, #d8cbf0 6px 12px); }
.washi-d { background: repeating-linear-gradient(45deg, #f0a693 0 6px, #f5bcac 6px 12px); }

.case-tag { font-size: 10px; letter-spacing: 2.5px; color: var(--ink-dim); margin-bottom: 14px; }
.case-metric {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.8vw, 42px); color: var(--terra);
  line-height: 1; margin-bottom: 24px;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.case-stamp {
  font-size: 20px; font-weight: 600; color: var(--ink-soft);
  transform: rotate(-2deg);
}
.ba { display: flex; gap: 12px; align-items: stretch; }
.ba-col { flex: 1; }
.ba-col p:last-child { font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.ba-label {
  font-size: 9px; letter-spacing: 2px; color: var(--ink-dim);
  border-bottom: 1px dashed #d8cfba; padding-bottom: 5px; margin-bottom: 8px;
}
.ba-label.after { color: var(--terra); border-color: rgba(196, 97, 74, 0.4); }
.ba-arrow { width: 40px; flex-shrink: 0; align-self: center; color: var(--terra); }
.case-note {
  margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--ink);
  border-left: 3px solid var(--chalk); padding-left: 12px;
}
.case-foot { margin-top: 14px; font-size: 19px; color: var(--ink-soft); transform: rotate(-1deg); }

/* ═══════════ COUNTERS ═══════════ */
.counters {
  background: var(--mat-deep);
  border-top: 2px solid rgba(233, 198, 91, 0.35);
  border-bottom: 2px solid rgba(233, 198, 91, 0.35);
  padding: 54px 0;
}
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.counter { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.counter-num { font-size: clamp(34px, 4vw, 48px); color: var(--chalk); font-weight: 500; }
.counter-num b { font-weight: 500; }
.counter-label { font-size: 9px; letter-spacing: 2.5px; color: rgba(246, 241, 229, 0.55); }

/* ═══════════ APPROACH ═══════════ */
.notes { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.note {
  background: var(--card); border: 1px solid #e2dac7; border-radius: 8px;
  padding: 30px 26px;
  box-shadow: 0 10px 26px rgba(60, 50, 30, 0.07);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.3s;
}
.note:hover { transform: rotate(0deg) translateY(-4px); }
.note-num { font-size: 44px; font-weight: 700; color: var(--terra); display: block; margin-bottom: 12px; }
.note p { font-size: 13.5px; line-height: 1.7; color: var(--ink-soft); }

.skills { margin-top: 70px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.skill {
  background: var(--mat); border-radius: 10px; padding: 24px 22px;
  transform: rotate(var(--rot, 0deg));
  box-shadow: 0 10px 24px rgba(44, 94, 80, 0.25);
  transition: transform 0.3s;
}
.skill:hover { transform: rotate(0deg) scale(1.03); }
.skill-title { font-size: 11px; letter-spacing: 2px; color: var(--chalk); margin-bottom: 14px; line-height: 1.6; }
.skill ul { list-style: none; }
.skill li { font-size: 12.5px; line-height: 2.1; color: rgba(246, 241, 229, 0.88); white-space: nowrap; }

/* ═══════════ RECORD / TIMELINE ═══════════ */
.timeline {
  margin-top: 64px; position: relative;
  padding-left: 112px;
}
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px;
  border-left: 2px dashed rgba(233, 198, 91, 0.5);
}
.role { position: relative; margin-bottom: 46px; max-width: 780px; }
.role-dot {
  position: absolute; left: -111px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--chalk); border: 3px solid var(--mat);
  box-shadow: 0 0 0 2px rgba(233, 198, 91, 0.5);
}
.role-dot-edu { background: var(--lav); box-shadow: 0 0 0 2px rgba(201, 184, 232, 0.5); }
.role-date { font-size: 10px; letter-spacing: 2.5px; color: var(--chalk); margin-bottom: 8px; }
.role-co {
  font-family: var(--serif); font-weight: 400;
  font-size: 25px; color: var(--paper); margin-bottom: 6px;
}
.role-title { font-size: 11px; color: rgba(246, 241, 229, 0.55); margin-bottom: 14px; letter-spacing: 0.5px; }
.role-lede { font-size: 14.5px; font-weight: 500; color: rgba(246, 241, 229, 0.9); margin-bottom: 12px; line-height: 1.6; }
.role-list { list-style: none; }
.role-list li {
  font-size: 13px; color: rgba(246, 241, 229, 0.62); line-height: 1.9;
  padding-left: 18px; position: relative;
}
.role-list li::before { content: '→'; position: absolute; left: 0; color: var(--terra); }
.role-edu {
  background: rgba(233, 244, 238, 0.06); border: 1px dashed rgba(233, 198, 91, 0.4);
  border-radius: 10px; padding: 24px 26px;
}
.role-edu .role-dot { top: 28px; }

/* the growing panda rides the dashed timeline pole; zero-height sticky so it
   never pushes the roles down */
.grow-buddy {
  position: sticky; top: 30vh; height: 0; z-index: 3;
  pointer-events: none;
}
.grow-wrap {
  /* the pole passes through x=40/160 (25%) of the panda svg; align that with
     the dashed line, which sits 8px into the timeline (content starts at 96px) */
  position: absolute; left: -104px; top: 0;
  transform: translateX(-25%) rotate(var(--tilt, 0deg));
  transform-origin: 25% 20%;
  transition: transform 0.3s ease-out;
}
#growAvatar {
  width: 56px; height: auto; display: block;
  transition: width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 50% 20%;
  filter: drop-shadow(0 4px 0 rgba(16, 34, 28, 0.4));
}
.grow-buddy.pop #growAvatar { animation: buddyPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.leaf-pop {
  position: absolute; left: 62%; top: 32%;
  font-size: 15px; pointer-events: none;
  animation: leafPop 0.7s ease-out forwards;
}
/* wide feature case (AI agent crew) */
.case-wide { grid-column: 1 / -1; }
.case-wide .ba { max-width: 860px; }
.fresh-stamp {
  position: absolute; top: 16px; right: 22px;
  font-size: 20px; font-weight: 700; color: var(--terra);
  transform: rotate(4deg);
  border: 2px solid rgba(196, 97, 74, 0.55); border-radius: 8px;
  padding: 2px 10px;
}
.washi-e { background: repeating-linear-gradient(45deg, #9ecbdd 0 6px, #bcdde9 6px 12px); }

/* ═══════════ CONTACT ═══════════ */
.contact { padding-bottom: 90px; }
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
}
.contact-big {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 6vw, 76px); line-height: 1.04;
  color: var(--paper); letter-spacing: -1px;
}
.contact-big em {
  font-family: var(--hand); font-style: normal; font-weight: 700;
  font-size: 1.14em; color: var(--chalk);
}
.contact-hand { margin-top: 22px; font-size: 21px; color: rgba(246, 241, 229, 0.55); transform: rotate(-1.5deg); }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.clink {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(246, 241, 229, 0.07);
  border: 1px solid rgba(246, 241, 229, 0.18);
  border-radius: 12px; padding: 19px 24px;
  text-decoration: none; color: var(--paper);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, border-color 0.3s;
}
.clink .mono { font-size: 13px; letter-spacing: 0.5px; }
.clink-arrow { color: var(--chalk); font-size: 17px; opacity: 0; transform: translateX(-8px); transition: all 0.25s; }
.clink:hover { transform: translateY(-3px); background: rgba(246, 241, 229, 0.13); border-color: var(--chalk); }
.clink:hover .clink-arrow { opacity: 1; transform: translateX(0); }

/* ═══════════ FOOTER GARDEN ═══════════ */
.garden-footer { background: var(--mat); position: relative; }
.garden-hint {
  text-align: center; font-size: 21px; color: rgba(246, 241, 229, 0.55);
  padding: 10px 20px 0; transform: rotate(-1deg);
}
.garden-flower-hint { color: var(--lav); display: inline-block; animation: bob 2s ease-in-out infinite; }
.garden {
  position: relative; height: 150px; margin-top: 8px;
  background: linear-gradient(to bottom, transparent 0 62%, var(--soil) 62%);
  cursor: pointer; overflow: hidden;
}
/* soil texture */
.garden::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background-image: radial-gradient(rgba(246, 241, 229, 0.08) 1.5px, transparent 1.5px);
  background-size: 26px 14px; pointer-events: none;
}
.plant {
  position: absolute; bottom: 52px;
  transform-origin: bottom center;
  animation: grow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, sway 3.5s 0.8s ease-in-out infinite;
  cursor: pointer;
}
.plant svg { display: block; transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.butterfly {
  position: absolute; width: 26px; top: 20px; left: -40px; z-index: 3;
  pointer-events: none; opacity: 0;
}
.butterfly.fly { animation: flyAcross 9s linear forwards; opacity: 1; }
.bf-wing-l { transform-origin: 11px 10px; animation: flapL 0.25s ease-in-out infinite alternate; }
.bf-wing-r { transform-origin: 13px 10px; animation: flapR 0.25s ease-in-out infinite alternate; }

.footer-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 44px;
  background: var(--soil);
  font-size: 10px; color: rgba(246, 241, 229, 0.45); letter-spacing: 0.5px;
}
.footer-love { font-size: 17px; color: rgba(246, 241, 229, 0.6); }
.footer-fun { color: var(--chalk); text-decoration: none; }
.footer-fun:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: rgba(246, 241, 229, 0.6); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--chalk); }

/* ═══════════ FUN PAGE ═══════════ */
.fun-page {
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 54px 54px;
  min-height: 100vh;
}
.fun-head { padding: 110px 44px 0; text-align: center; }
.fun-back {
  position: fixed; top: 14px; left: 44px; z-index: 100;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  color: var(--chalk); text-decoration: none;
  background: rgba(29, 58, 50, 0.85); border-radius: 8px; padding: 8px 12px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.fun-back:hover { text-decoration: underline; text-underline-offset: 4px; }

.avatar-wrap { display: inline-block; position: relative; }
.face-avatar {
  width: 200px; height: auto; display: block; margin: 0 auto;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 6px 0 rgba(16, 34, 28, 0.45));
}
.avatar-wrap:hover .face-avatar { transform: rotate(-6deg) scale(1.05); }
.face-avatar .eye-r-wink { opacity: 0; }
.avatar-wrap:hover .eye-r-open { opacity: 0; }
.avatar-wrap:hover .eye-r-wink { opacity: 1; }
.avatar-wrap:hover .mouth { d: path('M103 150 Q 115 163 127 150'); }

.fun-kicker {
  font-family: var(--mono); font-size: clamp(13px, 2vw, 18px); letter-spacing: 5px;
  font-weight: 400; color: var(--paper); margin-top: 26px;
}
.fun-sub { font-family: var(--hand); font-size: 22px; color: rgba(246, 241, 229, 0.6); margin-top: 12px; transform: rotate(-1deg); }

/* (brain-bit facts now live inside the doodle stickers) */

/* die-cut doodle stickers: brain bits that come alive on hover */
.sticker-field { position: absolute; inset: 0; pointer-events: none; }
.sticker {
  position: absolute; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 138px; padding: 16px 12px 12px;
  border: 5px solid #fffdf7; border-radius: 16px;
  box-shadow: 0 10px 24px rgba(10, 25, 20, 0.35), 0 2px 5px rgba(10, 25, 20, 0.25);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: stickerBob 5.5s ease-in-out infinite;
  cursor: default;
}
.sticker:hover { animation: none; transform: rotate(0deg) scale(1.1); }
.sticker svg { width: 60px; height: auto; overflow: visible; }
.sticker-cap {
  font-size: 18px; font-weight: 600; line-height: 1.08;
  text-align: center; color: #3f382e;
}
.sticker-mint { background: #cfe8d5; color: #3d7d5c; }
.sticker-lav { background: #ddd2f0; color: #6b4fa0; }
.sticker-peach { background: #f8d9c8; color: #b05c3f; }
.sticker-chalk { background: #f2e3b3; color: #8a6d1c; }
.sticker-sky { background: #dfeaf0; color: #2a2118; }
.s-ams { width: 178px; }
.s-ams svg { width: 122px; }

/* game-side positions */
.s1 { left: 7%; top: 260px; }
.s2 { right: 7%; top: 320px; animation-delay: -1.8s; }
.s3 { left: 9%; bottom: 260px; animation-delay: -3.2s; }
.s4 { right: 9%; bottom: 150px; animation-delay: -4.4s; }
/* header positions: flanking the rangoli, below the kicker line */
.fun-head { position: relative; }
.s-book { left: 11%; bottom: -76px; animation-delay: -2.6s; }
.s-mango { right: 11%; bottom: -96px; animation-delay: -0.9s; width: 156px; }

/* hand-cut vinyl shapes: every sticker is a slightly different blob */
.s-book { border-radius: 30px 22px 34px 24px; }
.s-mango { border-radius: 24px 34px 22px 32px; }
.s1 { border-radius: 34px 26px 30px 38px; }
.s2 { border-radius: 26px 32px 24px 34px; }
.s3 { border-radius: 32px 24px 34px 26px; }
.s4 { border-radius: 24px 30px 36px 24px; }

/* little sparkles (diya + robot) twinkle on their own */
.spark { animation: twinkle 2.4s ease-in-out infinite; }
.spark2 { animation-delay: -0.8s; }
.spark3 { animation-delay: -1.6s; }

/* hover: each sticker plays its little scene */
.sticker svg * { transform-box: fill-box; transform-origin: center; }
.sticker:hover .wheel { animation: wheelSpin 0.8s linear infinite; }
.sticker:hover .ride { animation: bikeRide 1.3s ease-in-out infinite; }
.sticker:hover .wave { animation: waveShift 1.3s ease-in-out infinite; }
.sticker:hover .steam { animation: steamUp 1.4s ease-in-out infinite; }
.sticker:hover .st2 { animation-delay: -0.7s; }
/* diya: the light swells on hover */
.sticker:hover .flame { animation: flameFlicker 0.5s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.sticker:hover .glow { animation: glowBright 0.9s ease-in-out infinite alternate; }
/* mango: whole fruit swaps for the hedgehog cut */
.mango-cut { opacity: 0; transition: opacity 0.3s ease; }
.mango-body { transition: opacity 0.3s ease; }
.sticker:hover .mango-cut { opacity: 1; animation: mangoBounce 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; transform-origin: 50% 100%; }
.sticker:hover .mango-body { opacity: 0; }
.sticker:hover .leaf { animation: leafWiggle 0.7s ease-in-out infinite alternate; transform-origin: 0% 100%; }
/* runbook: a page turns across the spine */
.flip-page { opacity: 0; }
.sticker:hover .flip-page { opacity: 1; animation: pageFlip 1.3s ease-in-out infinite; transform-origin: 0% 50%; }
.sticker:hover .bookmark { animation: leafWiggle 0.6s ease-in-out infinite alternate; transform-origin: 50% 0%; }
.sticker:hover .r-eye { animation: eyeBlink 1.6s steps(1) infinite; }
.sticker:hover .antenna-tip { animation: glowPulse 0.5s ease-in-out infinite alternate; }

/* narrow screens: stickers flow in a row instead of hugging the sides */
@media (max-width: 980px) {
  .sticker-field {
    position: static; pointer-events: auto;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
    margin-bottom: 36px;
  }
  .head-field { margin: 34px 0 0; }
  .sticker { position: static; width: 110px; padding: 11px 10px 9px; }
  .sticker svg { width: 42px; }
  .sticker-cap { font-size: 15px; }
}

/* ── waterful ring toss toy ── */
.toy-section { position: relative; display: flex; flex-direction: column; align-items: center; padding: 70px 20px 100px; }
.toy-title { font-family: var(--hand); font-size: 30px; color: var(--chalk); margin-bottom: 6px; transform: rotate(-1.5deg); }
.toy-help { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: rgba(246, 241, 229, 0.55); margin-bottom: 30px; text-align: center; line-height: 2; }

.toy {
  position: relative;
  background: linear-gradient(160deg, #e8564a, #d23e33 55%, #b93227);
  border-radius: 26px;
  padding: 26px 26px 74px;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    inset 0 -6px 12px rgba(90, 15, 8, 0.45),
    0 24px 60px rgba(10, 25, 20, 0.5);
}
.toy-screws { position: absolute; inset: 10px; pointer-events: none; }
.toy-screws i {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f9beb5, #9c2a1f);
}
.toy-screws i:nth-child(1) { top: 0; left: 0; }
.toy-screws i:nth-child(2) { top: 0; right: 0; }
.toy-screws i:nth-child(3) { bottom: 0; left: 0; }
.toy-screws i:nth-child(4) { bottom: 0; right: 0; }

.tank-frame {
  border-radius: 12px;
  padding: 7px;
  background: linear-gradient(180deg, #a12b21, #8c241b);
  box-shadow: inset 0 3px 8px rgba(60, 8, 4, 0.6);
}
#gameCanvas {
  display: block; border-radius: 8px;
  background: linear-gradient(180deg, #cfeef2 0%, #b6e2ea 55%, #a6d9e4 100%);
}
.toy-plate {
  position: absolute; bottom: 24px; left: 30px;
  background: linear-gradient(180deg, #f7f3ea, #e8e2d2);
  border-radius: 4px; padding: 6px 12px 5px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.9), 0 2px 4px rgba(90, 15, 8, 0.5);
  display: flex; align-items: center; gap: 8px;
}
.toy-plate-text { font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 2px; color: #4a443a; }
.toy-score {
  position: absolute; bottom: 30px; right: 104px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: #ffd9d3;
}
.toy-btn {
  position: absolute; bottom: 12px; right: 22px;
  width: 58px; height: 58px; border-radius: 50%;
  border: none; cursor: pointer;
  background: radial-gradient(circle at 38% 32%, #ffffff, #ddd6c8 62%, #b8b0a0);
  box-shadow:
    0 6px 0 #8c847a,
    0 9px 14px rgba(60, 10, 5, 0.55),
    inset 0 2px 3px rgba(255, 255, 255, 0.9);
  transition: transform 0.08s, box-shadow 0.08s;
}
.toy-btn:active, .toy-btn.pressed {
  transform: translateY(5px);
  box-shadow: 0 1px 0 #8c847a, 0 3px 6px rgba(60, 10, 5, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.9);
}
.toy-reset {
  position: absolute; top: 14px; left: 26px;
  width: 26px; height: 14px; border: none; border-radius: 7px;
  background: linear-gradient(180deg, #ffd867, #e3aa2e);
  box-shadow: 0 3px 0 #a87b17, 0 5px 8px rgba(60, 10, 5, 0.4);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.toy-reset:active { transform: translateY(3px); box-shadow: 0 0 0 #a87b17; }

.win-banner {
  position: absolute; inset: 0; z-index: 5;
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  background: rgba(35, 58, 50, 0.55); border-radius: 26px;
  backdrop-filter: blur(2px);
}
.win-banner.show { display: flex; }
.win-text { font-family: var(--hand); font-size: 52px; font-weight: 700; color: var(--chalk); transform: rotate(-3deg); text-shadow: 0 3px 0 rgba(20, 40, 33, 0.6); }
.win-sub { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--paper); }

.fun-footnote { margin-top: 34px; font-size: 20px; color: rgba(246, 241, 229, 0.5); text-align: center; }
.rangoli { width: min(320px, 78vw); margin: 26px auto 0; display: block; }
.rangoli circle { animation: rangoliPulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.rangoli circle:nth-child(odd) { animation-delay: -1.6s; }

/* ═══════════ KEYFRAMES ═══════════ */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float {
  0%, 100% { transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--rot, 0deg)) translateY(0) scale(var(--scale, 1)); }
  50% { transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--rot, 0deg)) translateY(-11px) scale(var(--scale, 1)); }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes grow { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes sway {
  0%, 100% { transform: scale(1) rotate(-2.5deg); }
  50% { transform: scale(1) rotate(2.5deg); }
}
@keyframes flyAcross {
  0% { left: -40px; top: 30px; }
  25% { top: 60px; }
  50% { top: 15px; }
  75% { top: 55px; }
  100% { left: calc(100% + 40px); top: 25px; }
}
@keyframes flapL { from { transform: scaleX(1); } to { transform: scaleX(0.45); } }
@keyframes flapR { from { transform: scaleX(1); } to { transform: scaleX(0.45); } }
@keyframes rangoliPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes stickerBob {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50% { transform: rotate(calc(var(--rot, 0deg) + 3deg)) translateY(-9px); }
}
@keyframes wheelSpin { to { transform: rotate(360deg); } }
@keyframes bikeRide {
  0%, 100% { transform: translateX(-3px); }
  50% { transform: translateX(3px) translateY(-1px); }
}
@keyframes waveShift {
  0%, 100% { transform: translateX(2px); }
  50% { transform: translateX(-4px); }
}
@keyframes steamUp {
  0% { transform: translateY(2px); opacity: 0.25; }
  50% { transform: translateY(-2px); opacity: 1; }
  100% { transform: translateY(-5px); opacity: 0; }
}
@keyframes flameFlicker {
  from { transform: scaleY(1) skewX(-3deg); }
  to { transform: scaleY(1.25) skewX(4deg); }
}
@keyframes glowPulse { from { opacity: 0.15; } to { opacity: 0.5; } }
@keyframes glowBright {
  from { opacity: 0.45; transform: scale(1); }
  to { opacity: 0.9; transform: scale(1.35); }
}
@keyframes pageFlip {
  0% { transform: scaleX(1); }
  46% { transform: scaleX(0.06); }
  54% { transform: scaleX(-0.06); }
  100% { transform: scaleX(-0.98); }
}
@keyframes mangoBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-4px) rotate(-4deg); }
}
@keyframes leafWiggle { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes eyeBlink { 0%, 78%, 100% { transform: scaleY(1); } 82%, 94% { transform: scaleY(0.12); } }
@keyframes leafPop {
  from { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx, 20px)), calc(-50% + var(--dy, -26px))) rotate(70deg) scale(1.1); opacity: 0; }
}
@keyframes buddyPop {
  0% { transform: scale(1, 1); }
  40% { transform: scale(1.15, 0.85); }
  70% { transform: scale(0.94, 1.08); }
  100% { transform: scale(1, 1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1180px) {
  .card-slack, .idea-note { display: none; }
}
@media (max-width: 1020px) {
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .cases { grid-template-columns: 1fr; }
  .fresh-stamp { position: static; display: inline-block; margin-bottom: 12px; }
  .notes { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr 1fr; }
  .counters-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .card-runbook, .card-health { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 24px; }
  .section { padding: 80px 0; }
  .nav { padding: 12px 20px; }
  .nav-links, .nav-social { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px; z-index: 101;
  }
  .nav-burger span {
    width: 22px; height: 2px; background: var(--paper); border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav.on-paper:not(.scrolled) .nav-burger span { background: var(--ink); }
  .nav-burger.open span { background: var(--paper) !important; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-mobile { display: flex; }

  /* hero: keep 4 small cards as scattered decoration */
  .fcard { --scale: 0.62; }
  .card-doc, .card-terminal { display: none; }
  .card-jira { top: 8%; left: -9%; }
  .sticky-note { top: 6%; right: -7%; left: auto; }
  .card-sql { bottom: 4%; right: -13%; }
  .card-runbook { display: flex; bottom: 5%; left: -10%; top: auto; }
  .hero-stats {
    font-size: 9px; gap: 8px; width: 100%; padding: 0 12px;
    flex-wrap: wrap; justify-content: center; bottom: 16px;
  }
  .hero-tagline { font-size: 16px; }

  .skills { grid-template-columns: 1fr; }
  .ba { flex-direction: column; gap: 14px; }
  .ba-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 20px; width: 32px; }
  .timeline { padding-left: 30px; }
  .role-dot { left: -29px; }
  .grow-buddy { display: none; }
  .footer-bar { flex-direction: column; gap: 8px; padding: 18px 20px; text-align: center; }
  .fun-back { left: 20px; }
  .fun-head { padding: 90px 20px 0; }
  .toy { width: calc(100vw - 20px); padding: 16px 14px 64px; }
  #gameCanvas { width: 100%; height: auto; }
  .toy-plate { display: none; }
  .toy-score { left: 18px; right: auto; bottom: 26px; }
  .toy-btn { width: 50px; height: 50px; right: 14px; bottom: 8px; }
  .counters-grid { grid-template-columns: 1fr 1fr; gap: 30px 12px; }
  .counter-label { font-size: 8px; }
}
