/* ==========================================================================
   SOUVIK BISWAS (LAZYFREAK) — RISHABH YADAV NEO-BRUTALIST STICKER TEMPLATE
   Cream (#FFF4E2), Ink (#191612), Cobalt (#2D3CFF), Tomato (#FF5434), Sun (#FFC83A)
   ========================================================================== */

:root {
  --cream: #FFF4E2;
  --cream-2: #F8E9D0;
  --paper: #FFFFFF;
  --ink: #191612;
  --ink-2: #4A443B;
  --muted: #6B6358;
  --line: rgba(25, 22, 18, 0.16);

  --cobalt: #2D3CFF;
  --tomato: #FF5434;
  --sun: #FFC83A;
  --mint: #8FE3C0;
  --lilac: #CDBDFF;
  --pink: #FFB3C7;

  --shadow: 4px 4px 0 #191612;
  --shadow-lg: 7px 7px 0 #191612;
  --shadow-btn: 3px 3px 0 #191612;

  --radius: 22px;
  --gutter: clamp(1rem, 3.4vw, 3rem);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --out: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-hand: "Shantell Sans", cursive, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: var(--cream);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
  line-height: 1.55;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--muted);
}

.wrap {
  max-width: 90rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.band-cream {
  background: var(--cream);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.78rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.kicker--dark {
  background: rgba(255, 244, 226, 0.12);
  border-color: var(--cream);
  color: var(--sun);
}

.kicker--cobalt {
  background: var(--sun);
  border-color: var(--ink);
  color: var(--ink);
}

.sec-title {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-stretch: 94%;
}

.sec-title--light {
  color: var(--cream);
}

/* ==================== CHUNKY NEO-BRUTALIST BUTTONS & PILLS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow-btn);
  transition: transform 0.18s var(--spring), box-shadow 0.18s var(--spring);
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn--sm {
  padding: 0.44rem 0.92rem;
  font-size: 0.84rem;
}

.btn--sun { background: var(--sun); color: var(--ink); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--tomato { background: var(--tomato); color: var(--paper); }
.btn--lilac { background: var(--lilac); color: var(--ink); }
.btn--mint { background: var(--mint); color: var(--ink); }
.btn--ink {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 0 0 2px var(--cream), var(--shadow-btn);
}

.pill-btn {
  padding: 0.38rem 0.92rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.16s var(--spring), background 0.16s ease;
}

.pill-btn:hover {
  transform: translateY(-2px);
}

.pill-btn.active {
  background: var(--cobalt);
  color: var(--paper);
}

/* ==================== FLOATING PILL NAVBAR ==================== */
.nav {
  position: fixed;
  inset: 0.75rem 0 auto;
  z-index: 80;
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-pill,
.nav-actions {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-pill {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.35rem 1.05rem 0.35rem 0.42rem;
  box-shadow: var(--shadow-btn);
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cobalt);
  color: var(--paper);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  transition: transform 0.3s var(--spring);
}

.nav-logo:hover {
  transform: rotate(-20deg) scale(1.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: 0.4rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--sun);
}

.nav-burger {
  display: none;
  border: 2px solid var(--ink);
  background: var(--sun);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-weight: 700;
  font-size: 0.82rem;
}

.mobile-drawer {
  pointer-events: auto;
  margin: 0.65rem var(--gutter) 0;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
}

.mobile-drawer a {
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
}

.mobile-drawer a:hover {
  background: var(--sun);
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  padding-top: clamp(6.5rem, 13vh, 8.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  align-items: center;
}

.hero-top {
  display: grid;
  grid-template-columns: 1.12fr 0.98fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.greeting-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.greeting-script {
  font-family: var(--font-hand);
  font-weight: 700;
  color: var(--cobalt);
  font-size: 1.55rem;
}

.greeting-name {
  font-weight: 700;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(18deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(15deg); }
}

.wave-hand {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.8rem, 7.6vw, 6.2rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-stretch: 92%;
  max-width: 12ch;
  margin-bottom: 1.25rem;
}

.hero-pill-highlight {
  position: relative;
  display: inline-block;
  padding: 0.04em 0.24em;
  color: var(--paper);
  transform: rotate(-1.5deg);
}

.hero-pill-highlight .hl-bg {
  position: absolute;
  inset: 0.04em 0;
  background: var(--cobalt);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  z-index: -1;
  transform-origin: left center;
  animation: brushIn 0.65s 0.15s var(--out) both;
}

@keyframes brushIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 58ch;
  margin-bottom: 1.25rem;
}

.start-with {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.start-label {
  font-size: 0.76rem;
  color: var(--muted);
  margin-right: 0.25rem;
}

/* Top-Right Spinning Badge + Vector Sticker Portrait */
.hero-right-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.badge-wrap {
  position: relative;
  width: 340px;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.spin-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spinRing 26s linear infinite;
}

.spin-ring-text {
  font-family: var(--font-mono);
  font-size: 12.2px;
  font-weight: 700;
  letter-spacing: 0.23em;
  fill: var(--ink);
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.vector-sticker-avatar {
  position: relative;
  z-index: 2;
  width: 265px;
  transition: transform 0.3s var(--spring);
}

.vector-sticker-avatar:hover {
  transform: scale(1.05) rotate(-2deg);
}

.vector-sticker-avatar img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(4px 4px 0 #191612);
}

/* Draggable Peelable Stickers */
.sticker-cluster {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  max-width: 320px;
}

.peel-hint {
  width: 100%;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 0.88rem;
  color: var(--cobalt);
}

.sticker {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-btn);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  user-select: none;
  touch-action: none;
  cursor: grab;
  transition: transform 0.2s var(--spring), box-shadow 0.2s ease;
}

.sticker:nth-child(2) { transform: rotate(-5deg); }
.sticker:nth-child(3) { transform: rotate(3deg); }
.sticker:nth-child(4) { transform: rotate(-2deg); }
.sticker:nth-child(5) { transform: rotate(4deg); }

.sticker.is-dragging {
  cursor: grabbing;
  transform: scale(1.12) !important;
  box-shadow: 8px 10px 0 rgba(25, 22, 18, 0.9);
  z-index: 40;
}

.sticker--round {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.15;
}

.sticker--pill {
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
}

.sticker--sun { background: var(--sun); }
.sticker--pink { background: var(--pink); }
.sticker--cream { background: var(--paper); }
.sticker--mint { background: var(--mint); }

/* Bottom Hero Bento */
.bring {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 72rem;
}

.bento-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--spring), box-shadow 0.25s ease;
}

.bento-card:hover {
  transform: translate(-2px, -4px);
  box-shadow: var(--shadow-lg);
}

.bento-card--sun { background: var(--sun); }
.bento-card--mint { background: var(--mint); }
.bento-card--lilac { background: var(--lilac); }

.bento-art {
  margin-bottom: 0.85rem;
}

.bento-card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.bento-card p {
  font-size: 0.94rem;
  color: var(--ink-2);
}

/* ==================== TILTED TOMATO MARQUEE BELIEFS ==================== */
.beliefs {
  background: var(--tomato);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-1.6deg) scale(1.02);
  margin-block: 1.5rem;
  padding: 1rem 0;
  overflow: hidden;
}

.marquee-track {
  overflow: hidden;
}

.marquee-group {
  display: flex;
  width: max-content;
  gap: 2.2rem;
  animation: marqueeScroll 28s linear infinite;
}

.beliefs:hover .marquee-group {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.belief-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.belief-sticker {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-6deg);
  transition: transform 0.25s var(--spring);
}

.belief-item:hover .belief-sticker {
  transform: rotate(0deg) scale(1.2);
}

/* ==================== 01 · SELECTED WORK (3D FLIPPABLE DECK) ==================== */
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.cassette-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.1rem;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--sun);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  transition: transform 0.2s var(--spring), box-shadow 0.2s ease;
}

.cassette-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.cassette-reels {
  font-family: var(--font-mono);
  background: var(--ink);
  color: var(--sun);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.flip-card {
  perspective: 1200px;
  aspect-ratio: 4 / 5.2;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s var(--spring);
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  overflow: hidden;
}

.card-face--front {
  background: var(--paper);
}

.card-face--back {
  transform: rotateY(180deg);
  background: var(--sun);
}

.flip-card[data-tone="mint"] .card-face--back { background: var(--mint); }
.flip-card[data-tone="lilac"] .card-face--back { background: var(--lilac); }
.flip-card[data-tone="pink"] .card-face--back { background: var(--pink); }

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--cream);
}

.card-thumb {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 14px;
  border: 2px solid var(--ink);
  overflow: hidden;
  background: #101412;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.card-face h3 {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.15;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.back-metrics {
  display: grid;
  gap: 0.45rem;
}

.back-metric-item {
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

/* ==================== 02 · HOW I WORK (DARK #191612 MANUAL) ==================== */
.manual {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.manual-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.manual-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.manual-tab {
  position: relative;
  overflow: hidden;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 244, 226, 0.25);
  background: rgba(255, 244, 226, 0.06);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.manual-tab.active {
  background: var(--sun);
  color: var(--ink);
  border-color: var(--sun);
}

.manual-tab__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--cobalt);
  transform-origin: left center;
  transform: scaleX(0);
}

.manual-tab.active .manual-tab__progress {
  animation: tabFill 10s linear forwards;
}

.manual.is-paused .manual-tab.active .manual-tab__progress {
  animation-play-state: paused;
}

@keyframes tabFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.manual-panel {
  border-radius: 28px;
  border: 2px solid var(--cream);
  box-shadow: 7px 7px 0 var(--cream);
  padding: clamp(1.5rem, 3.5vw, 2.8rem);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2rem;
  align-items: center;
  color: var(--ink);
}

.rule-card {
  margin-top: 1.2rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-btn);
}

.rule-card span {
  display: block;
  font-size: 0.7rem;
  color: var(--cobalt);
  margin-bottom: 0.2rem;
}

.manual-diagram {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 1.25rem;
  display: grid;
  place-items: center;
}

/* ==================== 03 · CAREER & SKILLS (ZIG-ZAG LEVEL MAP) ==================== */
.levels-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3rem;
}

.levels-head p {
  margin-top: 0.65rem;
}

.level-map {
  position: relative;
  max-width: 64rem;
  margin: 0 auto 3.5rem;
}

.map-spine-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.map-nodes {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
}

.map-row {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  gap: 1rem;
}

.map-node-dot {
  grid-column: 2;
  justify-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-btn);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  z-index: 2;
  transition: background 0.3s ease, transform 0.35s var(--spring), color 0.3s ease;
}

.map-row.is-reached .map-node-dot {
  background: var(--sun);
  transform: scale(1.08);
}

.map-row.is-current .map-node-dot {
  background: var(--tomato);
  color: var(--paper);
  animation: pulseCurrentDot 2s ease-in-out infinite;
}

@keyframes pulseCurrentDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 84, 52, 0.55), var(--shadow-btn); }
  50% { box-shadow: 0 0 0 10px rgba(255, 84, 52, 0), var(--shadow-btn); }
}

.level-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.map-row:nth-child(odd) .level-card { grid-column: 1; }
.map-row:nth-child(even) .level-card { grid-column: 3; }

.map-row.is-current .level-card {
  background: var(--sun);
}

.level-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.level-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.level-card .org {
  font-weight: 700;
  color: var(--cobalt);
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}

.level-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.skills-panel {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem;
}

.skills-panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.comp-card {
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--cream);
  padding: 0.95rem 1.1rem;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.2s var(--spring);
}

.comp-card:hover {
  transform: translate(-2px, -2px);
}

.comp-card--wide {
  grid-column: 1 / -1;
  background: var(--sun);
}

.comp-card__title {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--cobalt);
  margin-bottom: 0.5rem;
}

.comp-card__text {
  font-size: 0.92rem;
  line-height: 1.48;
  color: var(--ink-2);
}

/* ==================== 04 · SIDE QUESTS (#F8E9D0) ==================== */
.quests {
  background: var(--cream-2);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.quests-head {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.quests-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  justify-items: end;
}

.photo-sticker {
  margin: 0;
  width: 100%;
  max-width: 225px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 0.5rem;
  box-shadow: var(--shadow);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.25s var(--spring);
}

.photo-sticker:hover {
  transform: rotate(0deg) translateY(-4px);
}

.photo-sticker img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 12px;
  border: 1.5px solid var(--ink);
}

.photo-sticker figcaption {
  margin-top: 0.4rem;
  font-size: 0.68rem;
  text-align: center;
}

.subband {
  margin-bottom: 3rem;
}

.subband__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.subband__head h3 {
  font-size: 1.6rem;
  font-weight: 800;
}

.arena-pill {
  font-size: 0.75rem;
  background: var(--mint);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-left: 0.5rem;
}

.quests-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.quest-card {
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quest-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.claim-free {
  background: var(--sun);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.arena-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.25rem;
}

.arena-ranks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.rank-sticker {
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}

.rank-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.stat-box {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
}

.stat-box small {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
}

.stat-box strong {
  font-size: 0.82rem;
  color: var(--cobalt);
}

.setup-sticker-card {
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--lilac);
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.setup-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.setup-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.3rem;
}

.steam-arena-card {
  margin-top: 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.steam-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1.5px dashed var(--line);
}

.steam-profile-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.steam-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  object-fit: cover;
  box-shadow: 2px 2px 0 var(--cobalt);
}

.steam-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.steam-games-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.steam-game-tile {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.steam-game-tile--sun { background: #FFF7DE; }
.steam-game-tile--mint { background: #E9FBF2; }
.steam-game-tile--lilac { background: #F1EDFF; }

.steam-hours {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  background: var(--cobalt);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  white-space: nowrap;
}

.steam-game-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.video-grid-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.video-card {
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  background: #101412;
}

.video-thumb-btn img,
.video-thumb-btn video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sun);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-btn);
  display: grid;
  place-items: center;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--ink);
  color: var(--cream);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.7rem;
}

.video-card__body {
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.35rem;
}

.video-card__meta {
  font-size: 0.7rem;
  color: var(--cobalt);
  font-weight: 700;
}

/* Playable Mini-Game Card */
.game-card {
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: var(--sun);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 1.5rem;
  align-items: center;
}

.game-controls-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.game-score-pill {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
}

.game-score-pill--best {
  background: var(--mint);
}

.game-touch-row {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-meta-tag {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
}

.game-pad-btn {
  user-select: none;
  touch-action: manipulation;
}

.game-pad-btn--jump {
  background: var(--cobalt);
  color: var(--paper);
}

.game-canvas-wrap {
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  background: #141923;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
}

#mini-game-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

/* ==================== 05 · VOICES & CREDENTIALS ==================== */
.voices-split {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 2rem;
  align-items: start;
}

.achievements-col {
  display: grid;
  gap: 0.9rem;
}

.ach-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 0.9rem;
}

.ach-medal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.chat-feed-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
}

.chat-feed__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1rem;
}

.live-dot {
  color: #15803D;
  font-weight: 700;
}

.chat-messages {
  display: grid;
  gap: 0.85rem;
}

.chat-bubble {
  max-width: 82%;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 0.8rem 1rem;
  background: var(--cream);
}

.chat-bubble--right {
  justify-self: end;
  background: var(--mint);
}

.chat-bubble small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cobalt);
  margin-bottom: 0.2rem;
}

/* ==================== 06 · COBALT FOOTER ("Your move.") ==================== */
.contact {
  background: var(--cobalt);
  color: var(--cream);
  padding-block: clamp(4.5rem, 9vw, 7rem) 2.5rem;
  border-top: 2px solid var(--ink);
}

.contact-top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.contact-giant {
  font-size: clamp(3.4rem, 10vw, 8.2rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.sun-text {
  color: var(--sun);
}

.contact-lead {
  font-size: 1.15rem;
  max-width: 48ch;
  margin-bottom: 1.5rem;
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-vector-card {
  width: min(320px, 100%);
  margin-left: auto;
  border: 3px solid var(--ink);
  border-radius: 26px;
  background: var(--cream-2);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  transform: rotate(3deg);
}

.footer-vector-card img {
  border-radius: 18px;
}

.contact-form-card {
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.72rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: var(--tomato);
}

.field-error {
  min-height: 15px;
  font-size: 0.74rem;
  color: #B91C1C;
}

.form-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid rgba(255, 244, 226, 0.28);
  font-size: 0.82rem;
}

/* ==================== PINNED STICKER COMPANION ==================== */
.companion-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 154px;
  z-index: 75;
}

.companion-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 8px;
}

.companion-card__header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.companion-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cobalt);
  flex-shrink: 0;
}

.companion-mode {
  font-size: 9px;
  font-weight: 700;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.companion-collapse-btn {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: var(--sun);
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.companion-stage {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 4px;
}

.souvik-svg {
  width: 100%;
  height: auto;
}

.char-layer {
  opacity: 0;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center center;
}

.char-layer.is-active {
  opacity: 1;
}

.companion-caption {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.3;
  color: var(--ink-2);
}

.companion-dock.is-compact {
  width: 82px;
}

.companion-dock.is-compact .companion-mode,
.companion-dock.is-compact .companion-caption {
  display: none;
}

@keyframes waveHand {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-10deg); }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes blinkRec {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.2; }
}

.char-layer.is-active .anim-wave { animation: waveHand 1.4s ease-in-out infinite; }
.char-layer.is-active .anim-float { animation: floatGentle 2.6s ease-in-out infinite; }
.char-layer.is-active .anim-rec { animation: blinkRec 1s infinite; }

/* ==================== MODALS & TOAST ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 22, 18, 0.72);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.modal__panel--wide {
  width: min(940px, 100%);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
}

.tldr-list,
.spec-list {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.lightbox-body {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.25rem;
}

.lightbox-media-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.lightbox-viewport {
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #101412;
  overflow: auto;
  max-height: 52vh;
  display: grid;
  place-items: center;
  padding: 0.75rem;
}

.lightbox-viewport img {
  max-height: 48vh;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.lightbox-caption {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
}

.lightbox-gallery-bar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lightbox-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.lightbox-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.tech-thumbs {
  margin-bottom: 0.75rem;
}

.lightbox-thumb-btn {
  flex: 0 0 64px;
  height: 48px;
  padding: 0;
  border-radius: 8px;
  border: 2px solid var(--ink);
  overflow: hidden;
  background: #101412;
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lightbox-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-thumb-btn.active,
.lightbox-thumb-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 2px 2px 0 var(--cobalt);
  border-color: var(--cobalt);
}

.tech-modal-preview {
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.9rem;
}

.tech-modal-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.video-stage {
  border: 2px solid var(--ink);
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.video-stage iframe,
.video-stage video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.video-fallback-player {
  height: 100%;
  padding: 1.5rem;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.75rem;
}

.mixtape-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--ink);
  color: var(--sun);
  border: 2px solid var(--cream);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.8rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-top,
  .manual-panel,
  .quests-head,
  .arena-grid,
  .voices-split,
  .contact-top,
  .game-card,
  .lightbox-body {
    grid-template-columns: 1fr;
  }
  .deck,
  .arena-ranks,
  .steam-games-grid,
  .video-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-actions {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: inline-block;
  }
  .bring,
  .deck,
  .skills-grid,
  .quests-masonry,
  .arena-ranks,
  .steam-games-grid,
  .video-grid-3,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .map-row {
    grid-template-columns: 44px 1fr;
  }
  .map-node-dot {
    grid-column: 1;
  }
  .map-row:nth-child(odd) .level-card,
  .map-row:nth-child(even) .level-card {
    grid-column: 2;
  }
  .quests-photo-pair {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .companion-dock {
    width: 118px;
    right: 10px;
    bottom: 10px;
  }
}

@media print {
  .nav, .companion-dock, .beliefs, .work, .manual, .quests, .voices, .contact, .modal, .toast {
    display: none !important;
  }
  body, .band-cream { background: #FFFFFF !important; padding: 0 !important; }
}
