/* ==========================================================================
   UDIT CHHIPA — PORTFOLIO STYLESHEET
   Inspired by Giri Poonati's design system: editorial typography,
   tactile draggable collage, abstract pastel tints, and dark/light bands.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --paper: #F3F3EF;
  --surface: #FFFFFF;
  --tile: #E7E7E1;
  --ink: #121211;
  --ink-2: #5C5C57;
  --ink-3: #6E6E68;
  --line: #DAD9D2;
  --blue: #2E3AFF;
  --yellow: #FFD23A;
  --ok: #1FA85A;
  --shadow: 0 1px 2px rgba(18,18,17,.06), 0 12px 32px -12px rgba(18,18,17,.22);

  /* Per-project abstract tints */
  --t-mint: #DCEEE4;
  --t-rose: #F2E2E0;
  --t-blue: #DDE4F4;
  --t-orange: #F7E2CF;
  --t-sky: #DCEAF2;
  --t-teal: #D8EFEA;
  --t-lilac: #E6E2F4;
  --t-sand: #ECE6D8;
  --t-lime: #E4EFD5;
  --t-butter: #F8EDC4;
  --t-ink: #1B1B1A;

  --mint-abstract: radial-gradient(60% 55% at 8% 15%, #9FDDBB 0%, rgba(159,221,187,0) 60%), radial-gradient(55% 60% at 92% 20%, #D8F0C8 0%, rgba(216,240,200,0) 62%), radial-gradient(65% 60% at 70% 92%, #6BB78E 0%, rgba(107,183,142,0) 65%), var(--t-mint);
  --rose-abstract: radial-gradient(60% 55% at 90% 12%, #F3B9AE 0%, rgba(243,185,174,0) 62%), radial-gradient(55% 55% at 10% 20%, #FBE0C8 0%, rgba(251,224,200,0) 60%), radial-gradient(60% 60% at 25% 90%, #E793A0 0%, rgba(231,147,160,0) 65%), var(--t-rose);
  --blue-abstract: radial-gradient(60% 55% at 85% 15%, #A9C0F0 0%, rgba(169,192,240,0) 62%), radial-gradient(55% 55% at 12% 18%, #E3D9F5 0%, rgba(227,217,245,0) 60%), radial-gradient(60% 60% at 30% 90%, #7C93D9 0%, rgba(124,147,217,0) 65%), var(--t-blue);
  --orange-abstract: radial-gradient(60% 55% at 88% 15%, #F5B978 0%, rgba(245,185,120,0) 62%), radial-gradient(55% 55% at 12% 20%, #FFE1B8 0%, rgba(255,225,184,0) 60%), radial-gradient(60% 60% at 30% 90%, #C97B3D 0%, rgba(201,123,61,0) 65%), var(--t-orange);
  --sky-abstract: radial-gradient(60% 55% at 85% 15%, #8FC7E8 0%, rgba(143,199,232,0) 62%), radial-gradient(55% 55% at 12% 18%, #D9EDF7 0%, rgba(217,237,247,0) 60%), radial-gradient(60% 60% at 30% 90%, #4A90B8 0%, rgba(74,144,184,0) 65%), var(--t-sky);
  --teal-abstract: radial-gradient(60% 55% at 85% 15%, #4FDCC0 0%, rgba(79,220,192,0) 62%), radial-gradient(55% 55% at 12% 18%, #C6F2E6 0%, rgba(198,242,230,0) 60%), radial-gradient(60% 60% at 30% 90%, #0A8F76 0%, rgba(10,143,118,0) 65%), var(--t-teal);
  --lilac-abstract: radial-gradient(60% 55% at 85% 15%, #B9A8E0 0%, rgba(185,168,224,0) 62%), radial-gradient(55% 55% at 12% 18%, #E0D4F5 0%, rgba(224,212,245,0) 60%), radial-gradient(60% 60% at 30% 90%, #7C5FB0 0%, rgba(124,95,176,0) 65%), var(--t-lilac);
  --butter-abstract: radial-gradient(60% 55% at 85% 15%, #F0C868 0%, rgba(240,200,104,0) 62%), radial-gradient(55% 55% at 12% 18%, #FBE8B0 0%, rgba(251,232,176,0) 60%), radial-gradient(60% 60% at 30% 90%, #C99A2E 0%, rgba(201,154,46,0) 65%), var(--t-butter);

  --band: #0C0C0B;
  --band-ink: #F4F4EF;
  --band-ink-2: #9E9E97;
  --band-line: #2B2B28;
  --note: #F4F1E8;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-serif: "Instrument Serif", ui-serif, Georgia, serif;

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
}

:root[data-theme="dark"] {
  --paper: #101010;
  --surface: #181817;
  --tile: #212120;
  --ink: #F1F1EC;
  --ink-2: #A6A69F;
  --ink-3: #85857E;
  --line: #2C2C29;
  --blue: #5963FF;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 36px -14px rgba(0,0,0,.7);

  --t-mint: #16261E;
  --t-rose: #2A1C1C;
  --t-blue: #182034;
  --t-orange: #2D1F15;
  --t-sky: #15232B;
  --t-lilac: #1F1C2C;
  --t-sand: #25221B;
  --t-lime: #1D2616;
  --t-butter: #2A2512;
  --t-ink: #222221;
  --t-teal: #10231F;

  --mint-abstract: radial-gradient(60% 55% at 10% 15%, rgba(90,180,130,.35) 0%, rgba(90,180,130,0) 62%), radial-gradient(60% 60% at 70% 90%, rgba(40,110,80,.45) 0%, rgba(40,110,80,0) 65%), var(--t-mint);
  --rose-abstract: radial-gradient(60% 55% at 88% 15%, rgba(230,120,110,.28) 0%, rgba(230,120,110,0) 62%), radial-gradient(60% 60% at 25% 88%, rgba(160,60,70,.4) 0%, rgba(160,60,70,0) 65%), var(--t-rose);
  --blue-abstract: radial-gradient(60% 55% at 85% 15%, rgba(120,150,240,.3) 0%, rgba(120,150,240,0) 62%), radial-gradient(60% 60% at 30% 88%, rgba(50,70,160,.45) 0%, rgba(50,70,160,0) 65%), var(--t-blue);
  --orange-abstract: radial-gradient(60% 55% at 88% 15%, rgba(245,185,120,.32) 0%, rgba(245,185,120,0) 62%), radial-gradient(60% 60% at 30% 88%, rgba(180,100,50,.4) 0%, rgba(180,100,50,0) 65%), var(--t-orange);
  --sky-abstract: radial-gradient(60% 55% at 85% 15%, rgba(140,200,230,.3) 0%, rgba(140,200,230,0) 62%), radial-gradient(60% 60% at 30% 88%, rgba(60,120,160,.45) 0%, rgba(60,120,160,0) 65%), var(--t-sky);
  --teal-abstract: radial-gradient(60% 55% at 85% 15%, rgba(79,220,192,.3) 0%, rgba(79,220,192,0) 62%), radial-gradient(60% 60% at 30% 88%, rgba(10,120,100,.45) 0%, rgba(10,120,100,0) 65%), var(--t-teal);
  --lilac-abstract: radial-gradient(60% 55% at 85% 15%, rgba(180,160,230,.3) 0%, rgba(180,160,230,0) 62%), radial-gradient(60% 60% at 30% 88%, rgba(100,70,160,.45) 0%, rgba(100,70,160,0) 65%), var(--t-lilac);
  --butter-abstract: radial-gradient(60% 55% at 85% 15%, rgba(230,190,90,.3) 0%, rgba(230,190,90,0) 62%), radial-gradient(60% 60% at 30% 88%, rgba(160,110,30,.45) 0%, rgba(160,110,30,0) 65%), var(--t-butter);
}

/* Base Styles */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}

::selection { background: var(--blue); color: #fff; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }

/* Keyframes */
@keyframes rise { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wobble { 0% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 50% { transform: rotate(6deg); } 75% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bdIn { from { background-color: transparent; backdrop-filter: blur(0); } }

/* ==========================================================================
   STICKY NAV
   ========================================================================== */
.nav {
  --nb: color-mix(in srgb, var(--band) 88%, transparent);
  --ni: var(--band-ink);
  --ni2: var(--band-ink-2);
  --nl: var(--band-line);
  --nh: rgba(255,255,255,.08);
  --pb: var(--band-ink);
  --pi: var(--band);
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nb);
  color: var(--ni);
  border-bottom: 1px solid var(--nl);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color .35s, color .35s, border-color .35s;
}

.nav.is-light {
  --nb: color-mix(in srgb, var(--paper) 84%, transparent);
  --ni: var(--ink);
  --ni2: var(--ink-2);
  --nl: var(--line);
  --nh: color-mix(in srgb, var(--ink) 7%, transparent);
  --pb: var(--ink);
  --pi: var(--paper);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  color: var(--yellow);
  background: var(--blue);
  border-radius: 9px;
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.12em;
  line-height: 1;
  transition: transform .35s var(--spring);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ni2);
  transition: color .25s, background-color .25s;
}

.nav-links a:hover {
  color: var(--ni);
  background: var(--nh);
}

.nav-links .pill {
  color: var(--pi);
  background: var(--pb);
  font-weight: 500;
}

.nav-links .pill:hover {
  color: var(--pi);
  background: var(--pb);
  opacity: .86;
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--nl);
  background: transparent;
  color: var(--ni2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color .25s, border-color .25s, transform .4s var(--spring);
}

.theme-btn:hover {
  color: var(--ni);
  transform: rotate(-20deg);
}

/* ==========================================================================
   HERO & DRAGGABLE COLLAGE
   ========================================================================== */
.hero {
  background: var(--band);
  color: var(--band-ink);
  overflow: hidden;
  position: relative;
}

.hero-in {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--band-line);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .03em;
  animation: fadeUp .6s var(--ease) both;
}

.role-pill .rp-role {
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--band-ink);
}

.role-pill .rp-dim {
  color: var(--band-ink-2);
}

.role-pill .rp-loc {
  text-transform: uppercase;
  letter-spacing: .08em;
}

.role-pill .rp-div {
  width: 1px;
  align-self: stretch;
  background: var(--band-line);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent);
}

.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(68px, 10.4vw, 160px);
  line-height: .86;
  letter-spacing: -.045em;
  margin: 28px 0 0;
}

.display > span {
  display: block;
  animation: rise .9s var(--ease) both;
}

.display > span:nth-child(2) {
  animation-delay: .09s;
}

.display > span:nth-child(3) {
  animation-delay: .18s;
}

.display .amp {
  display: flex;
  align-items: center;
  gap: .14em;
  flex-wrap: wrap;
}

.build-pill {
  display: inline-flex;
  align-items: center;
  gap: .16em;
  border: .05em solid var(--band-ink);
  border-radius: 999px;
  padding: .02em .28em .1em .3em;
  line-height: .9;
}

.cursor {
  display: inline-block;
  width: .36em;
  height: .72em;
  background: var(--yellow);
  border-radius: .05em;
  transform: translateY(.04em);
  animation: blink 1.1s steps(1) infinite;
}

.hero-lead {
  max-width: 48ch;
  margin-top: 32px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--band-ink-2);
  line-height: 1.6;
  animation: fadeUp .7s .32s var(--ease) both;
}

.hero-lead strong {
  color: var(--band-ink);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .cta-row {
  animation: fadeUp .7s .42s var(--ease) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s;
}

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

.btn:active {
  transform: scale(.97);
}

.btn-light {
  background: var(--band-ink);
  color: var(--band);
}

.btn-ghost {
  border-color: var(--band-line);
  color: var(--band-ink);
}

.btn-ghost:hover {
  border-color: var(--band-ink-2);
}

.btn-yellow {
  background: var(--yellow);
  color: #141412;
}

/* Draggable Collage */
.collage {
  position: relative;
  min-height: 480px;
}

.drag {
  position: absolute;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: scale .35s var(--spring), box-shadow .3s;
}

.can-drag .drag {
  cursor: grab;
}

.can-drag .drag:hover {
  scale: 1.03;
}

.can-drag .drag.dragging {
  cursor: grabbing;
  z-index: 30 !important;
  scale: 1.07;
}

/* Polaroid Photo Card */
.polaroid {
  top: 10px;
  right: 6%;
  width: 220px;
  padding: 10px 10px 14px;
  background: #fff;
  color: #121211;
  border-radius: 8px;
  transform: rotate(5deg);
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.6);
  z-index: 3;
}

.polaroid-badge-inner {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #16181f 0%, #202636 100%);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 14px;
  text-align: center;
}

.polaroid-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 210, 58, 0.15);
  border: 1px solid var(--yellow);
  display: grid;
  place-items: center;
  color: var(--yellow);
  margin-bottom: 12px;
  font-size: 24px;
}

.polaroid-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
}

.polaroid-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  color: #9aa8c2;
  margin-top: 4px;
  letter-spacing: .05em;
}

.polaroid figcaption {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: #55554f;
  text-align: center;
}

/* Sticky Note */
.note {
  top: 190px;
  left: 0;
  width: 270px;
  padding: 20px 20px 22px;
  background: var(--note);
  color: #1c1c1a;
  border-radius: 4px;
  transform: rotate(-5deg);
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.65);
  z-index: 2;
}

.note .mono {
  color: #75705F;
  font-size: 10.5px;
}

.note p {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.55;
}

/* Mini Terminal */
.term {
  bottom: 30px;
  right: 0;
  width: 290px;
  background: #161615;
  border: 1px solid var(--band-line);
  border-radius: 12px;
  transform: rotate(3deg);
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.8);
  z-index: 4;
  overflow: hidden;
}

.term-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--band-line);
}

.term-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3a37;
}

.term pre {
  margin: 0;
  padding: 12px 14px 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--band-ink-2);
  white-space: pre-wrap;
}

.term .ok { color: #6fdc9a; }
.term .prompt { color: var(--yellow); }

/* Rotating Sticker */
.sticker {
  width: 140px;
  height: 140px;
  z-index: 5;
}

.st-round {
  top: 6px;
  left: 20%;
}

.st-flower {
  bottom: 118px;
  left: 36%;
  transform: rotate(-8deg);
}

.spin {
  transform-origin: 100px 100px;
  animation: spin 22s linear infinite;
}

.drag-hint {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--band-ink-2);
  font-size: 11px;
  display: none;
  animation: fadeUp .6s 1.5s var(--ease) both;
}

.can-drag .drag-hint { display: block; }

/* ==========================================================================
   STATEMENT & TYPOGRAPHY
   ========================================================================== */
section { scroll-margin-top: 72px; }

.statement {
  padding-top: clamp(88px, 11vw, 152px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.statement .label {
  color: var(--ink-3);
  margin-bottom: 22px;
}

.statement p {
  hanging-punctuation: first last;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.7vw, 64px);
  line-height: 1.08;
  letter-spacing: -.012em;
  max-width: 28ch;
  color: var(--ink);
}

.statement p em { color: var(--ink-3); font-style: italic; }
.statement p mark {
  background: color-mix(in srgb, var(--blue) 16%, transparent);
  color: var(--blue);
  font-style: normal;
  padding: 0 .06em;
  border-radius: .1em;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.sec-head h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 84px);
  line-height: .92;
  letter-spacing: -.04em;
}

.sec-head p {
  max-width: 42ch;
  color: var(--ink-2);
  font-size: 16.5px;
}

/* ==========================================================================
   RECEIPTS // BY THE NUMBERS
   ========================================================================== */
.receipts {
  padding-bottom: clamp(96px, 11vw, 148px);
}

.ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}

.ledger div {
  padding: 22px 24px 4px 0;
  border-right: 1px solid var(--line);
  margin-right: 24px;
}

.ledger div:last-child {
  border-right: 0;
  margin-right: 0;
}

.ledger b {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 4.4vw, 60px);
  letter-spacing: -.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ledger span {
  display: block;
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 28ch;
  line-height: 1.5;
}

/* ==========================================================================
   SELECTED WORK
   ========================================================================== */
.work {
  padding-bottom: clamp(40px, 5vw, 64px);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 4vw, 56px) 28px;
}

.work-card {
  display: block;
  color: inherit;
  cursor: pointer;
}

.work-card.wide {
  grid-column: 1 / -1;
}

.work-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--tile);
  aspect-ratio: 16 / 10;
  padding: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px) 0;
  box-shadow: var(--shadow);
}

.work-card.wide .work-visual {
  aspect-ratio: 2.1 / 1;
}

.work-visual.t-mint { background: var(--mint-abstract); }
.work-visual.t-rose { background: var(--rose-abstract); }
.work-visual.t-blue { background: var(--blue-abstract); }

.work-visual .arrow {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform .3s;
}

.work-card:hover .arrow {
  transform: rotate(-45deg);
}

.work-visual .tag {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  box-shadow: var(--shadow);
}

/* Code-native visual compositions inside work cards */
.work-visual-mockup {
  width: 100%;
  height: calc(100% + 24px);
  background: #141720;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px 14px 0 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .6s var(--ease);
}

.work-card:hover .work-visual-mockup {
  transform: translateY(-10px);
}

.mockup-header {
  height: 34px;
  background: #1d212d;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #464b5d;
}

.mockup-title {
  font-family: var(--f-mono);
  font-size: 11px;
  color: #8c97b2;
  letter-spacing: .04em;
}

.mockup-body {
  padding: 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: #cfd8eb;
  line-height: 1.6;
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-feed-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-pill-alert {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  font-size: 10px;
}

.mockup-pill-ok {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  font-size: 10px;
}

.work-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  padding-top: 24px;
}

.work-card:not(.wide) .work-body {
  grid-template-columns: 1fr;
}

.work-body .mono {
  color: var(--ink-3);
  grid-column: 1 / -1;
}

.work-body h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 2.8vw, 40px);
  letter-spacing: -.03em;
  line-height: 1.04;
}

.work-body p {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.6;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.metric {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.metric b {
  font-family: var(--f-display);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -.02em;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 500;
  font-size: 15px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

/* ==========================================================================
   SIDE QUESTS (GRID & MODAL CARDS)
   ========================================================================== */
.quests {
  padding-bottom: clamp(96px, 11vw, 148px);
}

.quest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 22px;
}

.quest {
  all: unset;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-radius: 26px;
}

.quest:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.q-media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
  border-radius: 26px;
  background: var(--tile);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px;
  box-shadow: var(--shadow);
}

.q-media.t-orange { background: var(--orange-abstract); }
.q-media.t-sky { background: var(--sky-abstract); }
.q-media.t-teal { background: var(--teal-abstract); }
.q-media.t-lilac { background: var(--lilac-abstract); }
.q-media.t-butter { background: var(--butter-abstract); }
.q-media.t-rose { background: var(--rose-abstract); }

.q-mini-card {
  width: 100%;
  max-width: 280px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
  font-size: 12px;
  color: var(--ink);
  transition: transform .6s var(--ease);
}

.quest:hover .q-mini-card {
  transform: scale(1.04);
}

.q-plus {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .25s, transform .35s var(--spring);
  z-index: 2;
  font-size: 20px;
  line-height: 1;
}

.quest:hover .q-plus, .quest:focus-visible .q-plus {
  opacity: 1;
  transform: scale(1);
}

.q-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 4px 0;
}

.q-cap strong {
  font-weight: 700;
  font-size: 17px;
}

.q-cap .mono {
  color: var(--ink-3);
  font-size: 11px;
}

.st {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.st::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
}

.st.live::before {
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}

.st.wip::before {
  background: #D99A00;
  box-shadow: 0 0 0 3px rgba(217,154,0,.2);
}

.q-line {
  display: block;
  padding: 4px 4px 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}

/* ==========================================================================
   ABOUT & FACTS
   ========================================================================== */
.about {
  padding-bottom: clamp(96px, 11vw, 148px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 820px;
}

.about h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -.04em;
  line-height: .94;
}

.about-copy {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.65;
}

.about-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.facts {
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.facts dt {
  color: var(--ink-3);
  padding-top: 8px;
  font-size: 12px;
}

.facts dd {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.fact-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  transition: transform .4s var(--spring);
}

.facts > div:hover .fact-badge {
  transform: translateY(-3px) rotate(-6deg);
}

.facts dd .fact-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.facts dd small {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 400;
}

/* Fanning Toolkit Stack */
.toolkit-stack {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 52px;
  height: 44px;
  margin-top: 3px;
  transition: width .55s var(--spring);
}

.tool-chip {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: transform .55s var(--spring), opacity .4s ease;
}

.tool-chip:nth-child(1) { z-index: 6; transform: translate(0,0) rotate(-12deg); }
.tool-chip:nth-child(2) { z-index: 5; transform: translate(8px,0) rotate(-6deg); }
.tool-chip:nth-child(3) { z-index: 4; transform: translate(16px,0) rotate(0deg); }
.tool-chip:nth-child(4) { z-index: 3; opacity: 0; transform: translate(16px,0) scale(.6); }
.tool-chip:nth-child(5) { z-index: 2; opacity: 0; transform: translate(16px,0) scale(.6); }
.tool-chip:nth-child(6) { z-index: 1; opacity: 0; transform: translate(16px,0) scale(.6); }

dd.toolkit:hover .toolkit-stack {
  width: 250px;
}

dd.toolkit:hover .tool-chip { opacity: 1; }
dd.toolkit:hover .tool-chip:nth-child(1) { transform: translate(0, 4px) rotate(-6deg); }
dd.toolkit:hover .tool-chip:nth-child(2) { transform: translate(40px, 0) rotate(-2deg); }
dd.toolkit:hover .tool-chip:nth-child(3) { transform: translate(80px, 0) rotate(2deg); }
dd.toolkit:hover .tool-chip:nth-child(4) { transform: translate(120px, 2px) rotate(4deg); }
dd.toolkit:hover .tool-chip:nth-child(5) { transform: translate(160px, 4px) rotate(-4deg); }
dd.toolkit:hover .tool-chip:nth-child(6) { transform: translate(200px, 6px) rotate(6deg); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot {
  background: var(--band);
  color: var(--band-ink);
  position: relative;
  overflow: hidden;
}

.foot-in {
  padding-top: clamp(88px, 10vw, 140px);
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.foot h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(52px, 8vw, 120px);
  line-height: .88;
  letter-spacing: -.045em;
}

.foot h2 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}

.foot .lead {
  margin-top: 24px;
  max-width: 48ch;
  color: var(--band-ink-2);
  font-size: 18px;
  line-height: 1.6;
}

.foot .cta-row {
  margin-top: 32px;
}

.st-round-foot {
  position: relative;
  display: block;
  width: 170px;
  height: 170px;
  border-radius: 50%;
}

.st-round-foot:hover svg {
  animation: wobble .7s ease;
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 32px;
  border-top: 1px solid var(--band-line);
  color: var(--band-ink-2);
}

.clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   CURSOR PILL
   ========================================================================== */
.cursor-pill {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
  transition: opacity .2s, transform .2s var(--spring);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
}

.cursor-pill.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   SIDE QUEST MODAL (DIALOG)
   ========================================================================== */
dialog.qm {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(980px, calc(100vw - 32px));
  width: 100%;
  max-height: calc(100vh - 32px);
  color: var(--ink);
  overflow: visible;
}

dialog.qm::backdrop {
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  backdrop-filter: blur(22px) saturate(.9);
  -webkit-backdrop-filter: blur(22px) saturate(.9);
}

.qm-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.45);
  height: min(620px, calc(100vh - 32px));
}

.qm-media {
  background: var(--tile);
  display: grid;
  place-items: center;
  padding: 32px;
  min-height: 0;
  overflow: hidden;
}

.qm-body {
  padding: 36px;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.qm-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.qm-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .3s var(--spring);
}

.qm-close:hover {
  transform: rotate(90deg);
}

.qm-body h3 {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}

.qm-line {
  color: var(--ink-2);
  font-size: 16px;
  margin-bottom: 24px;
}

.seg {
  display: inline-flex;
  gap: 4px;
  background: var(--tile);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.seg button {
  all: unset;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-2);
  transition: all .2s;
}

.seg button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.pane {
  flex-grow: 1;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps h4 {
  font-size: 14px;
  font-family: var(--f-mono);
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.steps p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.qm-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.qm-facts > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  font-size: 14px;
}

.qm-facts dt {
  color: var(--ink-3);
  font-family: var(--f-mono);
}

.qm-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.qm-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.qm-nav {
  display: flex;
  gap: 8px;
}

.qm-nav button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  z-index: 100;
  transition: transform .35s var(--spring);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-in { grid-template-columns: 1fr; }
  .collage { min-height: 420px; }
  .ledger { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .ledger div { border-right: none; margin-right: 0; }
  .quest-grid { grid-template-columns: repeat(2, 1fr); }
  .qm-card { grid-template-columns: 1fr; height: 90vh; }
  .qm-media { display: none; }
}

@media (max-width: 680px) {
  .nav-links li:not(:last-child) { display: none; }
  .quest-grid { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .display { font-size: 60px; }
  .foot-in { grid-template-columns: 1fr; }
}
