:root {
  --bg: #090b12;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f6f2ea;
  --muted: #b8b4ae;
  --accent: #ff7a1a;
  --accent-2: #ffd166;
  --card-radius: 20px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --nav-offset: 102px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding-top: var(--nav-offset);
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

section[id],
header[id] {
  scroll-margin-top: calc(var(--nav-offset) + 18px);
}

.firefly-cursor,
.firefly-cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 120;
  opacity: 0;
  will-change: transform, opacity, filter;
}

.firefly-cursor {
  width: 26px;
  height: 26px;
  transform:
    translate3d(calc(var(--fx, -100px) - 50%), calc(var(--fy, -100px) - 50%), 0)
    rotate(var(--frot, 0deg))
    scale(calc(var(--fscale, 1) * var(--fstretch, 1)), calc(var(--fscale, 1) * var(--fsquash, 1)));
  transition: opacity 0.16s ease;
  mix-blend-mode: screen;
  filter: saturate(1.12) brightness(1.06);
}

.firefly-cursor::before,
.firefly-cursor::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.firefly-cursor::before {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.55) 28%, rgba(255, 246, 186, 0.35) 45%, rgba(210, 255, 90, 0.12) 62%, rgba(0, 0, 0, 0) 75%),
    radial-gradient(circle at 55% 62%, rgba(173, 255, 71, 0.26), transparent 62%);
  box-shadow:
    0 0 14px rgba(194, 255, 88, 0.48),
    0 0 28px rgba(101, 130, 255, 0.2);
  animation: fireflyCorePulse 1.8s ease-in-out infinite;
}

.firefly-cursor::after {
  inset: -10px;
  background:
    radial-gradient(circle, rgba(198, 255, 80, 0.28), rgba(152, 202, 72, 0.16) 34%, rgba(75, 108, 255, 0.08) 52%, rgba(0, 0, 0, 0) 74%);
  filter: blur(6px);
  opacity: 0.88;
  animation: fireflyAuraBreathe 2.4s ease-in-out infinite;
}

.firefly-cursor .firefly-spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(195, 255, 93, 0.55) 60%, rgba(0, 0, 0, 0));
  box-shadow: 0 0 8px rgba(199, 255, 100, 0.32);
  opacity: 0.7;
  animation: fireflySparkOrbit 2.1s linear infinite;
}

.firefly-cursor .spark-a {
  top: -2px;
  left: 10px;
  animation-duration: 1.8s;
}

.firefly-cursor .spark-b {
  top: 15px;
  left: 2px;
  animation-duration: 2.2s;
  animation-delay: -0.7s;
}

.firefly-cursor .spark-c {
  top: 8px;
  left: 18px;
  animation-duration: 2.6s;
  animation-delay: -1.1s;
}

.firefly-cursor.is-visible,
.firefly-cursor-trail.is-visible {
  opacity: 1;
}

.firefly-cursor.is-hover {
  --fscale: 1.22;
  filter: saturate(1.18) brightness(1.12);
}

.firefly-cursor.is-hover::before {
  box-shadow:
    0 0 18px rgba(201, 255, 93, 0.65),
    0 0 36px rgba(101, 130, 255, 0.28);
}

.firefly-cursor.is-click {
  --fscale: 0.9;
}

.firefly-cursor.is-text {
  opacity: 0 !important;
}

.firefly-cursor-trail {
  width: 52px;
  height: 52px;
  transform: translate3d(calc(var(--tx, -100px) - 50%), calc(var(--ty, -100px) - 50%), 0) scale(var(--ts, 1));
  transition: opacity 0.22s ease;
  mix-blend-mode: screen;
  filter: blur(1px);
}

.firefly-cursor-trail::before,
.firefly-cursor-trail::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.firefly-cursor-trail::before {
  background:
    radial-gradient(circle, rgba(190, 255, 89, 0.16), rgba(110, 156, 255, 0.1) 32%, rgba(0, 0, 0, 0) 70%);
  filter: blur(8px);
  animation: fireflyTrailPulse 1.8s ease-in-out infinite;
}

.firefly-cursor-trail::after {
  inset: 16px;
  background: radial-gradient(circle, rgba(201, 255, 98, 0.16), rgba(255, 255, 255, 0.05) 42%, rgba(0, 0, 0, 0) 80%);
  filter: blur(4px);
}

@media (hover: hover) and (pointer: fine) {
  body.cursor-firefly-enabled,
  body.cursor-firefly-enabled a,
  body.cursor-firefly-enabled button,
  body.cursor-firefly-enabled .work-card,
  body.cursor-firefly-enabled .tool-icon,
  body.cursor-firefly-enabled .contact-links a,
  body.cursor-firefly-enabled .contact-form button,
  body.cursor-firefly-enabled .main-nav a,
  body.cursor-firefly-enabled .scroll-cue {
    cursor: none !important;
  }

  body.cursor-firefly-enabled input,
  body.cursor-firefly-enabled textarea {
    cursor: text !important;
  }

  body.cursor-firefly-text .firefly-cursor,
  body.cursor-firefly-text .firefly-cursor-trail {
    opacity: 0 !important;
  }
}

@keyframes fireflyCorePulse {
  0%, 100% {
    opacity: 0.88;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes fireflyAuraBreathe {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes fireflyTrailPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.86;
    transform: scale(1.06);
  }
}

@keyframes fireflySparkOrbit {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0.5;
  }
  25% {
    transform: translate3d(3px, -2px, 0) scale(1.05);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(-2px, -4px, 0) scale(0.95);
    opacity: 0.55;
  }
  75% {
    transform: translate3d(-4px, 2px, 0) scale(1.08);
    opacity: 0.88;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0.5;
  }
}

/* Lightweight firefly cursor override (minimal power usage) */
.firefly-cursor,
.firefly-cursor-trail,
.firefly-cursor::before,
.firefly-cursor::after,
.firefly-cursor-trail::before,
.firefly-cursor-trail::after {
  animation: none !important;
}

.firefly-cursor {
  width: 14px;
  height: 14px;
  mix-blend-mode: normal;
  filter: none;
}

.firefly-cursor::before {
  inset: 0;
  background:
    radial-gradient(circle at 38% 36%, rgba(255, 255, 255, 0.96), rgba(240, 255, 180, 0.72) 36%, rgba(197, 255, 94, 0.28) 58%, rgba(0, 0, 0, 0) 78%);
  box-shadow:
    0 0 8px rgba(194, 255, 88, 0.35),
    0 0 18px rgba(126, 151, 255, 0.16);
}

.firefly-cursor::after {
  inset: -5px;
  background: radial-gradient(circle, rgba(193, 255, 82, 0.22), rgba(103, 134, 255, 0.08) 48%, rgba(0, 0, 0, 0) 76%);
  filter: blur(4px);
  opacity: 0.55;
}

.firefly-cursor .firefly-spark {
  display: none !important;
}

.firefly-cursor.is-hover {
  --fscale: 1.1;
  filter: none;
}

.firefly-cursor.is-hover::before {
  box-shadow:
    0 0 10px rgba(194, 255, 88, 0.42),
    0 0 22px rgba(126, 151, 255, 0.2);
}

.firefly-cursor.is-click {
  --fscale: 0.93;
}

.firefly-cursor-trail {
  width: 30px;
  height: 30px;
  mix-blend-mode: normal;
  filter: none;
  opacity: 0;
}

.firefly-cursor-trail::before {
  background: radial-gradient(circle, rgba(190, 255, 89, 0.12), rgba(105, 147, 255, 0.06) 45%, rgba(0, 0, 0, 0) 75%);
  filter: blur(6px);
}

.firefly-cursor-trail::after {
  display: none;
}

.site-noise,
.page-gradient,
.floating-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.page-gradient {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 122, 26, 0.18), transparent 42%),
    radial-gradient(circle at 85% 20%, rgba(255, 209, 102, 0.13), transparent 48%),
    radial-gradient(circle at 50% 75%, rgba(43, 79, 255, 0.14), transparent 55%),
    linear-gradient(180deg, #0c0f19 0%, #090b12 34%, #0b1019 68%, #0a0c11 100%);
}

.site-noise {
  z-index: -1;
  opacity: 0.05;
  background-image:
    radial-gradient(#fff 0.55px, transparent 0.55px),
    radial-gradient(#fff 0.55px, transparent 0.55px);
  background-position: 0 0, 14px 14px;
  background-size: 28px 28px;
}

.vibe-background {
  z-index: -4;
  overflow: hidden;
  inset: -6vh -4vw;
  transform: translateZ(0);
  filter: saturate(1.02);
  isolation: isolate;
}

.vibe-background::before,
.vibe-background::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.vibe-background::before {
  background:
    radial-gradient(circle at 16% 14%, rgba(70, 94, 255, 0.22), transparent 44%),
    radial-gradient(circle at 82% 18%, rgba(84, 195, 255, 0.14), transparent 48%),
    radial-gradient(circle at 72% 78%, rgba(198, 255, 88, 0.08), transparent 44%),
    radial-gradient(circle at 28% 70%, rgba(78, 118, 255, 0.1), transparent 48%);
  mix-blend-mode: screen;
  opacity: 0.44;
  animation: bgAuroraDrift 28s ease-in-out infinite alternate;
}

.vibe-background::after {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 36%),
    linear-gradient(135deg, transparent 30%, rgba(123, 152, 255, 0.08) 46%, transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.26));
  opacity: 0.38;
  animation: bgGlassSweep 20s ease-in-out infinite;
}

.vibe-float {
  position: absolute;
  z-index: 1;
  transform:
    translate3d(
      calc(var(--x, 0px) + var(--px, 0px) + var(--ix, 0px)),
      calc(var(--y, 0px) + var(--py, 0px) + var(--sy, 0px) + var(--iy, 0px)),
      0
    )
    rotate(calc(var(--r, 0deg) + var(--pr, 0deg) + var(--ir, 0deg)))
    scale(calc(var(--s, 1) * var(--ps, 1)));
  transform-origin: center;
  will-change: transform;
}

.vibe-sheet {
  width: min(92vw, 1200px);
  aspect-ratio: 1.58 / 1;
  border-radius: 26px;
  border: 1px solid rgba(131, 156, 255, 0.26);
  background:
    linear-gradient(160deg, rgba(10, 13, 24, 0.94), rgba(5, 8, 16, 0.93)),
    linear-gradient(rgba(94, 127, 255, 0.5) 1.55px, transparent 1.55px),
    linear-gradient(90deg, rgba(94, 127, 255, 0.5) 1.55px, transparent 1.55px),
    linear-gradient(rgba(138, 166, 255, 0.17) 0.85px, transparent 0.85px),
    linear-gradient(90deg, rgba(138, 166, 255, 0.17) 0.85px, transparent 0.85px);
  background-size:
    100% 100%,
    84px 84px,
    84px 84px,
    21px 21px,
    21px 21px;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0;
  box-shadow:
    0 34px 75px rgba(2, 4, 14, 0.44),
    0 0 0 1px rgba(109, 138, 255, 0.2) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -10px 40px rgba(66, 84, 140, 0.18) inset,
    0 0 46px rgba(72, 94, 255, 0.08);
  overflow: hidden;
  opacity: 0.88;
  animation:
    paperDrift 18s ease-in-out infinite,
    neonGridPulse 10.5s ease-in-out infinite;
}

.vibe-sheet::before,
.vibe-sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vibe-sheet::before {
  background:
    radial-gradient(circle at 18% 16%, rgba(147, 176, 255, 0.26), rgba(255, 255, 255, 0) 46%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.01) 44%, rgba(112, 149, 255, 0.05));
  mix-blend-mode: screen;
  opacity: 0.34;
}

.vibe-sheet::after {
  background:
    radial-gradient(circle at 78% 84%, rgba(85, 104, 255, 0.2), transparent 46%),
    radial-gradient(circle at 20% 72%, rgba(154, 255, 95, 0.09), transparent 42%),
    repeating-linear-gradient(0deg, rgba(112, 144, 255, 0.045) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(112, 144, 255, 0.045) 0 1px, transparent 1px 26px);
  mix-blend-mode: screen;
  opacity: 0.42;
  animation: sheetAuraPulse 11s ease-in-out infinite;
}

.vibe-sheet-back {
  --x: 4vw;
  --y: 24vh;
  --r: -9deg;
  --s: 0.92;
  opacity: 0.58;
  filter: blur(0.2px);
  animation-duration: 23s;
}

.vibe-sheet-main {
  --x: 8vw;
  --y: 5vh;
  --r: -5deg;
  --s: 1;
  width: min(96vw, 1350px);
}

.vibe-sheet-side {
  --x: 43vw;
  --y: 18vh;
  --r: 7deg;
  --s: 0.74;
  opacity: 0.74;
  animation-duration: 21s;
  animation-direction: reverse;
}

.vibe-sheet-gloss {
  position: absolute;
  inset: -35% -30%;
  background:
    linear-gradient(118deg,
      transparent 14%,
      rgba(255, 255, 255, 0.14) 32%,
      rgba(255, 255, 255, 0.34) 44%,
      rgba(255, 255, 255, 0.08) 55%,
      transparent 70%);
  transform: translateX(-34%);
  animation: glossSweep 8.8s cubic-bezier(0.2, 0.75, 0.2, 1) infinite;
  mix-blend-mode: screen;
}

.vibe-sheet-scribble {
  position: absolute;
  top: 8%;
  left: 7%;
  display: grid;
  gap: 2px;
  color: rgba(131, 169, 255, 0.72);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 0.95;
  transform: rotate(2deg);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: 0.9;
}

.vibe-sheet-scribble span:last-child {
  font-size: clamp(16px, 1.35vw, 24px);
  margin-left: 22px;
  color: rgba(194, 255, 110, 0.68);
}

.vibe-frame {
  --x: 15vw;
  --y: 13vh;
  --r: -2deg;
  --s: 1;
  width: min(72vw, 1040px);
  height: min(46vw, 590px);
  opacity: 0.85;
  filter: drop-shadow(0 0 18px rgba(96, 121, 255, 0.08));
}

.vibe-rail {
  position: absolute;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 239, 255, 0.94));
  border-radius: 999px;
  box-shadow:
    0 3px 0 rgba(255, 255, 255, 0.75) inset,
    0 10px 20px rgba(5, 8, 21, 0.15),
    0 0 16px rgba(113, 151, 255, 0.12);
}

.vibe-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.5), transparent 60%);
  opacity: 0.6;
  animation: railSheen 5.8s ease-in-out infinite;
}

.rail-top,
.rail-bottom {
  height: 8px;
  left: 0;
  right: 0;
}

.rail-top {
  top: 0;
}

.rail-bottom {
  bottom: 0;
}

.rail-left,
.rail-right {
  width: 8px;
  top: 0;
  bottom: 0;
}

.rail-left {
  left: 0;
}

.rail-right {
  right: 0;
}

.vibe-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(226, 232, 247, 0.96));
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.7) inset,
    0 9px 16px rgba(4, 6, 18, 0.14),
    0 0 14px rgba(116, 150, 255, 0.1);
}

.vibe-corner.c1 { top: -8px; left: -8px; }
.vibe-corner.c2 { top: -8px; right: -8px; }
.vibe-corner.c3 { bottom: -8px; left: -8px; }
.vibe-corner.c4 { bottom: -8px; right: -8px; }

.chrome-sticker {
  width: clamp(58px, 7vw, 98px);
  aspect-ratio: 1;
  border-radius: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.22) 40%, rgba(255, 255, 255, 0) 64%),
    linear-gradient(145deg,
      rgba(253, 253, 255, 0.94) 0%,
      rgba(227, 234, 247, 0.9) 24%,
      rgba(186, 199, 220, 0.86) 38%,
      rgba(250, 252, 255, 0.95) 57%,
      rgba(167, 181, 207, 0.88) 74%,
      rgba(247, 249, 253, 0.96) 100%);
  box-shadow:
    0 18px 28px rgba(8, 10, 28, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.7) inset,
    0 -12px 16px rgba(64, 84, 112, 0.12) inset;
  animation: stickerFloat 7.6s ease-in-out infinite;
}

.chrome-sticker svg {
  width: 62%;
  height: 62%;
  display: block;
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.45))
    drop-shadow(0 8px 10px rgba(12, 18, 42, 0.14));
  transform-origin: center;
  animation: stickerIconWobble 6.6s ease-in-out infinite;
}

.chrome-sticker path,
.chrome-sticker circle {
  fill: currentColor;
  stroke: currentColor;
}

.chrome-sticker .sticker-sheen {
  position: absolute;
  inset: -20% -35%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.62) 46%, transparent 62%);
  transform: translateX(-40%);
  animation: stickerSheen 6.2s ease-in-out infinite;
  mix-blend-mode: screen;
}

.chrome-star {
  --x: 82vw;
  --y: 9vh;
  --r: 14deg;
  --s: 1.06;
  color: #273cff;
  border-radius: 50%;
}

.chrome-star svg {
  width: 56%;
  height: 56%;
}

.chrome-cursor {
  --x: 89vw;
  --y: 76vh;
  --r: 18deg;
  --s: 1.04;
  color: #ffffff;
  width: clamp(60px, 8vw, 104px);
  border-radius: 18px;
}

.chrome-cursor::after {
  content: "";
  position: absolute;
  inset: auto -6px -6px auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 255, 80, 0.9), rgba(168, 194, 0, 0.88));
  filter: blur(0.4px);
  opacity: 0.9;
  box-shadow: 0 10px 18px rgba(15, 19, 8, 0.22);
}

.chrome-heart {
  --x: 72vw;
  --y: 66vh;
  --r: -12deg;
  --s: 1.02;
  color: #6f83ff;
}

.chrome-heart svg {
  width: 66%;
  height: 66%;
  animation-duration: 5.8s;
}

.chrome-bubble {
  --x: 26vw;
  --y: 72vh;
  --r: -10deg;
  --s: 0.94;
  color: #2d3dff;
}

.chrome-bubble .bubble-dot {
  fill: #ffffff;
  stroke: none;
}

.chrome-cursor svg {
  animation-duration: 5.2s;
}

.chrome-star svg {
  animation-duration: 5.6s;
}

.chrome-ring svg {
  animation-duration: 7.2s;
}

.chrome-ring {
  --x: 16vw;
  --y: 29vh;
  --r: -18deg;
  --s: 1.12;
  color: #f8cf2f;
  border-radius: 24px;
}

.chrome-ring svg {
  width: 70%;
  height: 70%;
}

.chrome-ring svg circle,
.chrome-ring svg path {
  fill: none;
  stroke: currentColor;
}

.vibe-orb {
  width: clamp(34px, 4vw, 70px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    0 16px 26px rgba(9, 12, 30, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.42) inset,
    0 -14px 20px rgba(0, 0, 0, 0.08) inset;
  border: 1px solid rgba(255, 255, 255, 0.24);
  animation: orbPulse 8.8s ease-in-out infinite;
}

.vibe-orb::before {
  content: "";
  position: absolute;
  inset: 10% 18% 50% 18%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(1px);
}

.orb-lime {
  --x: 84vw;
  --y: 83vh;
  --r: 8deg;
  --s: 1.16;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 45%),
    linear-gradient(145deg, #d9ff59, #9fbc09 64%, #e7ff99);
}

.orb-lilac {
  --x: 9vw;
  --y: 77vh;
  --r: -15deg;
  --s: 0.95;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 46%),
    linear-gradient(145deg, #b6c4ff, #718dff 58%, #3e52df);
}

.orb-blue {
  --x: 6vw;
  --y: 10vh;
  --r: 0deg;
  --s: 0.88;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 48%),
    linear-gradient(145deg, #a3bbff, #4960ff 58%, #2b34ce);
}

.vibe-glint {
  width: clamp(20px, 2vw, 34px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 35%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(145deg, rgba(254, 254, 255, 0.95), rgba(198, 210, 241, 0.86));
  clip-path: polygon(50% 0%, 66% 34%, 100% 50%, 66% 66%, 50% 100%, 34% 66%, 0 50%, 34% 34%);
  opacity: 0.92;
  box-shadow:
    0 10px 18px rgba(9, 12, 28, 0.14),
    0 0 20px rgba(111, 143, 255, 0.22);
  animation: glintPulse 5.6s ease-in-out infinite;
}

.glint-a {
  --x: 12vw;
  --y: 67vh;
  --r: -2deg;
  --s: 1.2;
}

.glint-b {
  --x: 70vw;
  --y: 36vh;
  --r: 6deg;
  --s: 0.9;
  animation-delay: -1.6s;
}

.glint-c {
  --x: 87vw;
  --y: 22vh;
  --r: 9deg;
  --s: 0.76;
  animation-delay: -2.8s;
}

.floating-blobs {
  z-index: -2;
  overflow: hidden;
}

.blob-orb {
  position: absolute;
  width: clamp(180px, 18vw, 340px);
  height: auto;
  filter: blur(1px);
  opacity: 0.55;
  transform-origin: center;
  animation: blobFloat 16s ease-in-out infinite alternate;
}

.blob-1 {
  top: 8%;
  left: -3%;
  animation-duration: 18s;
}

.blob-2 {
  top: 22%;
  right: -2%;
  width: clamp(220px, 22vw, 380px);
  animation-duration: 22s;
  animation-delay: -6s;
  opacity: 0.28;
}

.blob-3 {
  top: 66%;
  left: 14%;
  width: clamp(160px, 16vw, 280px);
  animation-duration: 20s;
  animation-delay: -10s;
  opacity: 0.65;
}

@keyframes blobFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  50% {
    transform: translate3d(12px, -14px, 0) rotate(3deg) scale(1.04);
  }

  100% {
    transform: translate3d(-14px, 10px, 0) rotate(-4deg) scale(0.98);
  }
}

@keyframes paperDrift {
  0%, 100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.12) brightness(1.05);
  }
}

@keyframes neonGridShift {
  0% {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0,
      0 0;
  }
  50% {
    background-position:
      0 0,
      -18px 14px,
      20px -12px,
      -6px 4px,
      7px -5px;
  }
  100% {
    background-position:
      0 0,
      -36px 28px,
      40px -24px,
      -12px 8px,
      14px -10px;
  }
}

@keyframes neonGridPulse {
  0%, 100% {
    border-color: rgba(131, 156, 255, 0.22);
    box-shadow:
      0 34px 75px rgba(2, 4, 14, 0.44),
      0 0 0 1px rgba(109, 138, 255, 0.2) inset,
      0 1px 0 rgba(255, 255, 255, 0.08) inset,
      0 -10px 40px rgba(66, 84, 140, 0.18) inset,
      0 0 34px rgba(72, 94, 255, 0.06);
  }
  50% {
    border-color: rgba(164, 187, 255, 0.34);
    box-shadow:
      0 36px 78px rgba(2, 4, 14, 0.45),
      0 0 0 1px rgba(124, 154, 255, 0.24) inset,
      0 1px 0 rgba(255, 255, 255, 0.1) inset,
      0 -10px 40px rgba(66, 84, 140, 0.2) inset,
      0 0 44px rgba(72, 94, 255, 0.1),
      0 0 14px rgba(191, 255, 111, 0.03);
  }
}

@keyframes sheetAuraPulse {
  0%, 100% {
    opacity: 0.34;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes bgAuroraDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate3d(0.9%, -0.8%, 0) scale(1.015);
    opacity: 0.52;
  }
  100% {
    transform: translate3d(-0.8%, 0.9%, 0) scale(0.995);
    opacity: 0.42;
  }
}

@keyframes bgGlassSweep {
  0%, 100% {
    transform: translateX(-1.6%) translateY(0);
    opacity: 0.28;
  }
  50% {
    transform: translateX(1.3%) translateY(-0.6%);
    opacity: 0.44;
  }
}

@keyframes glossSweep {
  0%, 12% {
    transform: translateX(-42%) rotate(0.4deg);
    opacity: 0.25;
  }
  32% {
    transform: translateX(14%) rotate(0deg);
    opacity: 0.72;
  }
  55%, 100% {
    transform: translateX(58%) rotate(-0.5deg);
    opacity: 0.18;
  }
}

@keyframes railSheen {
  0%, 100% {
    transform: translateX(-80%);
    opacity: 0;
  }
  20%, 65% {
    opacity: 0.6;
  }
  70% {
    transform: translateX(80%);
    opacity: 0;
  }
}

@keyframes stickerFloat {
  0%, 100% {
    box-shadow:
      0 18px 28px rgba(8, 10, 28, 0.22),
      0 2px 0 rgba(255, 255, 255, 0.7) inset,
      0 -12px 16px rgba(64, 84, 112, 0.12) inset;
  }
  50% {
    box-shadow:
      0 24px 36px rgba(8, 10, 28, 0.26),
      0 2px 0 rgba(255, 255, 255, 0.78) inset,
      0 -16px 18px rgba(64, 84, 112, 0.16) inset;
  }
}

@keyframes stickerIconWobble {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  20% {
    transform: translateY(-0.4px) rotate(-1.2deg) scale(1.01);
  }
  50% {
    transform: translateY(0.5px) rotate(1.6deg) scale(0.995);
  }
  75% {
    transform: translateY(-0.2px) rotate(-0.8deg) scale(1.005);
  }
}

@keyframes stickerSheen {
  0%, 16% {
    transform: translateX(-52%) rotate(0deg);
    opacity: 0.1;
  }
  38% {
    transform: translateX(6%) rotate(1deg);
    opacity: 0.65;
  }
  58%, 100% {
    transform: translateX(48%) rotate(0deg);
    opacity: 0.08;
  }
}

@keyframes orbPulse {
  0%, 100% {
    opacity: 0.96;
    filter: saturate(1);
  }
  50% {
    opacity: 1;
    filter: saturate(1.18) brightness(1.05);
  }
}

@keyframes glintPulse {
  0%, 100% {
    opacity: 0.68;
    filter: saturate(1);
  }
  50% {
    opacity: 1;
    filter: saturate(1.2);
  }
}

.hero-shell {
  padding: 24px clamp(18px, 4vw, 56px) 36px;
  min-height: calc(100svh - var(--nav-offset));
  max-width: 1440px;
  margin-inline: auto;
  display: grid;
  grid-template-rows: 1fr auto;
}

.nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 16px clamp(18px, 4vw, 56px);
  pointer-events: none;
}

.hero,
.section-head,
.works-grid,
.about-panel,
.contact-panel,
.footer-section {
  width: min(100%, 1280px);
  max-width: 1280px;
  margin-inline: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1280px);
  margin-inline: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 12, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  z-index: 40;
  pointer-events: auto;
  position: relative;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
}

.nav-panel {
  display: flex;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.nav-panel a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.25s ease;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  padding-top: clamp(34px, 7vw, 72px);
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
}

.hero-copy h1 {
  margin-top: 12px;
  font-size: clamp(3.2rem, 11vw, 8rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
  perspective: 1000px;
}

.hero-line {
  display: block;
  position: relative;
  transform-origin: 50% 60%;
  will-change: transform, opacity, filter;
}

.hero-line::after {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  top: 60%;
  height: 26%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 122, 26, 0.16), transparent 70%);
  filter: blur(14px);
  z-index: -1;
}

.hero-line-1 {
  color: #fff8eb;
}

.hero-line-2 {
  margin-top: -0.05em;
  background: linear-gradient(90deg, #ffffff 0%, #ffe8c4 38%, #ffb667 72%, #ff7a1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(255, 122, 26, 0.16);
  animation: heroGlowPulse 3.2s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% {
    text-shadow: 0 0 16px rgba(255, 122, 26, 0.12);
    filter: saturate(1);
  }

  50% {
    text-shadow: 0 0 34px rgba(255, 160, 61, 0.26);
    filter: saturate(1.08);
  }
}

.hero-description {
  margin-top: 24px;
  max-width: 54ch;
  color: #ddd9d1;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.5;
}

.hero-description span,
.about-panel h2 span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--accent-2);
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #e8e1d5;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-strip {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  width: min(100%, 620px);
}

.tools-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.tool-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 8px 12px 8px 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1.2),
    box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.tool-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1.2);
}

.tool-icon span {
  color: #f4f1eb;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.tool-icon:hover,
.tool-icon:focus-within {
  transform: translateY(-2px) scale(1.08);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(255, 122, 26, 0.12) inset;
}

.tool-icon:hover img,
.tool-icon:focus-within img {
  transform: scale(1.14);
}

.hero-panel {
  position: relative;
  width: min(100%, 480px);
  max-width: 480px;
  margin-inline: auto;
}

.hero-card-stack {
  position: relative;
  min-height: clamp(320px, 46vw, 560px);
  max-width: 460px;
  max-height: min(72svh, 560px);
  width: 100%;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.hero-card {
  position: absolute;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  background: #111;
}

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

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 5, 8, 0.65));
}

.hero-card-a {
  transform: translate(-16%, 8%) rotate(-9deg);
  z-index: 1;
}

.hero-card-b {
  transform: translate(0, -4%) rotate(-1.5deg);
  z-index: 3;
}

.hero-card-c {
  transform: translate(18%, 12%) rotate(8deg);
  z-index: 2;
}

.scroll-cue {
  margin-top: 18px;
  justify-self: start;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.cue-line {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), transparent);
  position: relative;
  overflow: hidden;
}

.cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  animation: cueSweep 1.8s ease-in-out infinite;
}

@keyframes cueSweep {
  100% {
    transform: translateX(100%);
  }
}

.section-shell {
  padding: clamp(68px, 9vw, 120px) clamp(18px, 4vw, 56px);
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.section-intro {
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.6;
}

.work-section {
  position: relative;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 20px);
}

.work-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(250px, 28vw, 390px);
  max-height: 390px;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #141822;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
  transform-style: preserve-3d;
  z-index: 1;
}

.work-media,
.work-media img,
.work-overlay {
  position: absolute;
  inset: 0;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
  filter: saturate(0.95) contrast(0.95);
}

.work-overlay {
  background:
    linear-gradient(180deg, rgba(9, 11, 18, 0.08), rgba(9, 11, 18, 0.5) 52%, rgba(9, 11, 18, 0.92)),
    radial-gradient(circle at 80% 16%, rgba(255, 122, 26, 0.22), transparent 38%);
  z-index: 1;
  transition: opacity 0.35s ease;
}

.work-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 16px 16px 15px;
  display: grid;
  gap: 8px;
  transform: translateY(8px);
  transition: transform 0.35s ease;
}

.work-index {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.work-card h3 {
  color: #fff;
  font-size: clamp(1.06rem, 1.35vw, 1.28rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.work-copy {
  color: rgba(248, 243, 236, 0.82);
  line-height: 1.4;
  font-size: 0.9rem;
  min-height: 2.8em;
}

.work-cta {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.work-cta::after {
  content: "↗";
  transform: translateX(0);
  transition: transform 0.25s ease;
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.work-card:hover .work-media img,
.work-card:focus-visible .work-media img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1);
}

.work-card:hover .work-content,
.work-card:focus-visible .work-content {
  transform: translateY(0);
}

.work-card:hover .work-cta::after,
.work-card:focus-visible .work-cta::after {
  transform: translateX(3px) translateY(-2px);
}

.about-section {
  padding-top: clamp(78px, 10vw, 140px);
}

.about-panel,
.contact-panel {
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 38px);
}

.section-head.compact {
  margin-bottom: 18px;
}

.about-copy {
  display: grid;
  gap: 14px;
  max-width: 72ch;
}

.about-copy p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.identity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.identity-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e6dece;
}

.contact-section {
  padding-top: clamp(60px, 8vw, 110px);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}

.contact-links a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 10px 14px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 122, 26, 0.12);
  color: #fff;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form .full-width {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 6, 9, 0.55);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9d988f;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 122, 26, 0.5);
  background: rgba(12, 13, 18, 0.8);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  grid-column: 1 / -1;
  justify-self: start;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent), #ff9b3d);
  color: #180c02;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  box-shadow: 0 8px 24px rgba(255, 122, 26, 0.25);
}

.contact-form button:hover,
.contact-form button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 12px 28px rgba(255, 122, 26, 0.35);
}

.footer-section {
  padding: 20px clamp(18px, 4vw, 56px) 46px;
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  gap: 20px;
  align-items: end;
}

.footer-left h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  margin-top: 6px;
  letter-spacing: -0.02em;
}

.footer-center {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-center a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.footer-center a:hover,
.footer-center a:focus-visible {
  color: var(--text);
}

.footer-right {
  color: var(--muted);
  text-align: right;
  font-size: 0.82rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero,
  .section-head,
  .works-grid,
  .about-panel,
  .contact-panel,
  .footer-section {
    max-width: 980px;
  }

  .vibe-background {
    inset: -3vh -8vw;
  }

  .vibe-sheet-main {
    --x: 2vw;
    --y: 7vh;
    --r: -4deg;
    width: min(120vw, 980px);
  }

  .vibe-sheet-back {
    --x: -6vw;
    --y: 28vh;
    --s: 0.9;
  }

  .vibe-sheet-side {
    --x: 52vw;
    --y: 16vh;
    --s: 0.66;
  }

  .vibe-frame {
    --x: 8vw;
    --y: 14vh;
    width: min(86vw, 780px);
    height: min(56vw, 470px);
    opacity: 0.72;
  }

  .chrome-star { --x: 78vw; --y: 11vh; }
  .chrome-cursor { --x: 84vw; --y: 78vh; --s: 0.98; }
  .chrome-heart { --x: 68vw; --y: 69vh; --s: 0.96; }
  .chrome-bubble { --x: 24vw; --y: 73vh; --s: 0.88; }
  .chrome-ring { --x: 12vw; --y: 31vh; --s: 1.02; }
  .orb-lime { --x: 80vw; --y: 85vh; }
  .orb-blue { --x: 4vw; --y: 12vh; }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-panel {
    order: -1;
    max-width: 420px;
  }

  .hero-card-stack {
    min-height: 320px;
    max-width: 420px;
    max-height: min(52svh, 420px);
  }

  .blob-3 {
    left: auto;
    right: -4%;
    top: 62%;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card {
    max-height: 360px;
  }

  .footer-section {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-right {
    text-align: left;
  }
}

@media (max-width: 700px) {
  :root {
    --nav-offset: 88px;
  }

  .hero,
  .section-head,
  .works-grid,
  .about-panel,
  .contact-panel,
  .footer-section {
    max-width: 100%;
  }

  .vibe-background {
    inset: -2vh -12vw;
    opacity: 0.95;
  }

  .vibe-sheet-main {
    --x: -18vw;
    --y: 7vh;
    --r: -6deg;
    width: 160vw;
    border-radius: 18px;
  }

  .vibe-sheet-back {
    --x: -28vw;
    --y: 29vh;
    --r: -12deg;
    width: 150vw;
    opacity: 0.38;
  }

  .vibe-sheet-side {
    display: none;
  }

  .vibe-sheet-scribble {
    top: 7%;
    left: 10%;
    font-size: 20px;
    opacity: 0.75;
  }

  .vibe-sheet-scribble span:last-child {
    font-size: 14px;
    margin-left: 14px;
  }

  .vibe-frame {
    --x: 2vw;
    --y: 20vh;
    width: 88vw;
    height: 44vh;
    opacity: 0.42;
  }

  .vibe-rail {
    opacity: 0.9;
  }

  .vibe-corner {
    width: 18px;
    height: 18px;
  }

  .chrome-bubble,
  .chrome-ring {
    display: none;
  }

  .chrome-star {
    --x: 75vw;
    --y: 11vh;
    --s: 0.9;
  }

  .chrome-heart {
    --x: 64vw;
    --y: 71vh;
    --s: 0.88;
  }

  .chrome-cursor {
    --x: 82vw;
    --y: 82vh;
    --s: 0.86;
  }

  .orb-blue {
    --x: 2vw;
    --y: 9vh;
    --s: 0.74;
  }

  .orb-lime {
    --x: 80vw;
    --y: 86vh;
    --s: 0.94;
  }

  .orb-lilac {
    display: none;
  }

  .glint-c {
    display: none;
  }

  .nav-shell {
    padding: 12px 16px;
  }

  .main-nav {
    border-radius: 22px;
    padding: 12px;
    gap: 12px;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(8, 10, 16, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
  }

  .main-nav.is-open .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .main-nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .main-nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-panel ul {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-panel a {
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.78rem;
  }

  .main-nav > .brand-mark,
  .main-nav > .nav-toggle {
    position: relative;
    z-index: 1;
  }

  .hero-copy h1 {
    font-size: clamp(2.55rem, 16vw, 4.4rem);
  }

  .hero-card {
    width: min(100%, 280px);
  }

  .hero-panel {
    max-width: 320px;
  }

  .hero-card-stack {
    max-width: 320px;
    max-height: min(44svh, 360px);
  }

  .hero-card-a {
    transform: translate(-14%, 10%) rotate(-7deg);
  }

  .hero-card-c {
    transform: translate(14%, 12%) rotate(7deg);
  }

  .blob-1 {
    top: 6%;
    left: -12%;
  }

  .blob-2 {
    right: -20%;
    top: 34%;
  }

  .blob-3 {
    right: -10%;
    top: 72%;
  }

  .tool-icons {
    gap: 8px;
  }

  .tool-icon {
    padding-right: 10px;
  }

  .tool-icon span {
    font-size: 0.76rem;
  }

  .section-head h2 {
    line-height: 1.02;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 300px;
    max-height: 340px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form .full-width,
  .contact-form button {
    grid-column: auto;
  }

  .contact-form button {
    width: 100%;
    justify-self: stretch;
  }
}

@media (hover: none), (pointer: coarse) {
  .firefly-cursor,
  .firefly-cursor-trail {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .blob-orb {
    animation: none !important;
  }

  .vibe-sheet,
  .vibe-sheet-gloss,
  .vibe-rail::after,
  .chrome-sticker,
  .chrome-sticker .sticker-sheen,
  .vibe-orb,
  .vibe-glint,
  .firefly-cursor,
  .firefly-cursor-trail {
    animation: none !important;
  }

  .firefly-cursor,
  .firefly-cursor-trail {
    display: none !important;
  }

  .vibe-float {
    transform:
      translate3d(var(--x, 0px), calc(var(--y, 0px) + var(--sy, 0px)), 0)
      rotate(var(--r, 0deg))
      scale(var(--s, 1));
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .work-card,
  .work-card:hover {
    transform: none;
  }
}
