:root {
  --bg: #0c0c0d;
  --bg-2: #131316;
  --bg-3: #1a1a1f;
  --line: rgba(244, 244, 245, 0.08);
  --line-2: rgba(244, 244, 245, 0.16);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #52525b;
  --lime: #c1ff48;
  --lime-rgb: 193, 255, 72;
  --orange: #ff6b35;
  --serif: "Instrument Serif", serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  /* Reusable easing curves */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-soft: cubic-bezier(0.2, 0.6, 0.2, 1);
  /* Reusable hover tint for interactive rows */
  --hover-tint: linear-gradient(
    90deg,
    rgba(var(--lime-rgb), 0.05),
    transparent
  );
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--lime);
  color: var(--bg);
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
body.loading {
  overflow: hidden;
}
body.loading .cursor-dot,
body.loading .cursor-ring {
  opacity: 0;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s var(--ease),
    visibility 0.6s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.loader-badge {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--lime);
  color: var(--bg);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loader-pulse 1.2s var(--ease-soft) infinite;
}
@keyframes loader-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
    opacity: 0.85;
  }
}
.loader-bar {
  width: 180px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0;
  background: var(--lime);
  animation: loader-fill 1.9s var(--ease) forwards;
}
@keyframes loader-fill {
  to {
    width: 100%;
  }
}
.loader-status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.loader-status .loader-pct {
  color: var(--lime);
}

@media (prefers-reduced-motion: reduce) {
  .loader-badge {
    animation: none;
  }
  .loader-bar-fill {
    animation: none;
    width: 100%;
  }
}

/* ============================================================
   REUSABLE UTILITIES
   ============================================================ */

/* Serif italic accent — used in every heading */
.ser {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
/* Lime-tinted serif accent (headings that pop) */
.heading-xl .ser,
.contact h2 .ser {
  color: var(--lime);
}

/* Pill / tag chips — shared base */
.tags span,
.tag-row span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
}

/* Interactive list rows — shared border + hover behaviour */
.fact-row,
.skill-row,
.exp-item {
  margin: 0 -16px;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.4s var(--ease),
    background 0.4s var(--ease);
}
.fact-row:hover,
.skill-row:hover,
.exp-item:hover {
  padding-left: 32px;
  background: var(--hover-tint);
}

/* ============================================================
   BACKGROUND LAYERS
   ============================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

#code-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Soft dim overlay so text stays readable above the animated bg */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(12, 12, 13, 0.35) 0%,
    rgba(12, 12, 13, 0.55) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--lime);
  transition:
    width 0.25s ease,
    height 0.25s ease,
    background 0.25s ease,
    border-color 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring.hover {
  width: 56px;
  height: 56px;
  background: rgba(var(--lime-rgb), 0.1);
}
@media (max-width: 768px) {
  body {
    cursor: auto;
  }
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
@media (max-width: 600px) {
  .wrap {
    padding: 0 20px;
  }
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 106;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(12, 12, 13, 0.7);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-family: var(--mono);
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar .logo {
  color: var(--lime);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.topbar .nav-mini {
  display: flex;
  gap: 24px;
}
.topbar .nav-mini a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s var(--ease);
}
.topbar .nav-mini a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.topbar .nav-mini a:hover {
  color: var(--lime);
}
.topbar .nav-mini a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* MOBILE MENU BUTTON */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition:
    border-color 0.3s,
    background 0.3s;
  z-index: 110;
}
.menu-btn:hover {
  border-color: var(--lime);
}
.menu-btn span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--lime);
  transition:
    transform 0.4s var(--ease),
    top 0.4s var(--ease),
    opacity 0.3s;
}
.menu-btn span:nth-child(1) {
  top: 16px;
}
.menu-btn span:nth-child(2) {
  top: 22px;
  width: 14px;
}
.menu-btn span:nth-child(3) {
  top: 28px;
}
.menu-btn.open span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
  width: 20px;
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 105;
  display: flex;
  flex-direction: column;
  padding: 100px 28px 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 244, 245, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 244, 245, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.mobile-menu .mm-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  position: relative;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.mobile-menu nav a {
  font-family: var(--sans);
  font-size: 44px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  padding: 8px 0;
  position: relative;
  transition:
    color 0.3s var(--ease),
    padding-left 0.4s var(--ease);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
}
.mobile-menu.open nav a {
  opacity: 1;
  transform: translateY(0);
  transition:
    color 0.3s,
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease),
    padding-left 0.4s var(--ease);
}
.mobile-menu.open nav a:nth-child(1) {
  transition-delay: 0.15s, 0.15s, 0s;
}
.mobile-menu.open nav a:nth-child(2) {
  transition-delay: 0.22s, 0.22s, 0s;
}
.mobile-menu.open nav a:nth-child(3) {
  transition-delay: 0.29s, 0.29s, 0s;
}
.mobile-menu.open nav a:nth-child(4) {
  transition-delay: 0.36s, 0.36s, 0s;
}
.mobile-menu.open nav a:nth-child(5) {
  transition-delay: 0.43s, 0.43s, 0s;
}
.mobile-menu nav a .mm-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin-right: 14px;
  vertical-align: middle;
}
.mobile-menu nav a:hover,
.mobile-menu nav a:active {
  color: var(--lime);
  padding-left: 16px;
}
.mobile-menu .mm-footer {
  margin-top: auto;
  padding-top: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu .mm-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
}
.mobile-menu .mm-socials a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu .mm-socials a:hover {
  color: var(--lime);
}

body.menu-locked {
  overflow: hidden;
}

@media (max-width: 768px) {
  .topbar .nav-mini {
    display: none;
  }
  .menu-btn {
    display: block;
  }
}
@media (max-width: 480px) {
  .mobile-menu nav a {
    font-size: 36px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  position: relative;
}
.terminal {
  background: rgba(19, 19, 22, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 13px;
  max-width: 540px;
  margin-bottom: 40px;
  backdrop-filter: blur(8px);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.terminal-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.terminal-bar .dot.r {
  background: #ff5f57;
}
.terminal-bar .dot.y {
  background: #febc2e;
}
.terminal-bar .dot.g {
  background: #28c840;
}
.terminal-bar .file {
  margin-left: auto;
  color: var(--faint);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.term-line {
  color: var(--muted);
  line-height: 1.8;
}
.term-line .prompt {
  color: var(--lime);
  margin-right: 8px;
}
.term-line .out {
  color: var(--text);
}
.term-line .key {
  color: var(--orange);
}
.term-line .str {
  color: #f4eb6c;
}
.term-line .com {
  color: var(--faint);
  font-style: italic;
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(54px, 9vw, 120px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
  margin-top: 30px;
  margin-bottom: 40px;
}
.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-meta .arrow {
  color: var(--lime);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(var(--lime-rgb), 0.03);
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: inline-flex;
  animation: scroll 28s linear infinite;
}
.marquee-item {
  font-family: var(--serif);
  font-size: 38px;
  font-style: italic;
  margin: 0 28px;
  color: var(--text);
}
.marquee-item.alt {
  font-family: var(--mono);
  font-style: normal;
  font-size: 24px;
  color: var(--muted);
}
.marquee-dot {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  align-self: center;
  margin: 0 14px;
  flex-shrink: 0;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section.work-section {
  padding: 80px 0;
  position: relative;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--lime);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.heading-xl {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 60px;
}
.about-lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.4;
  color: var(--text);
}
.about-lead em {
  color: var(--lime);
}
.about-body p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.about-body strong {
  color: var(--text);
  font-weight: 500;
}

.factsheet {
  margin-top: 60px;
  border-top: 1px solid var(--line);
}
.fact-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 16px;
  font-family: var(--mono);
  font-size: 14px;
}
.fact-row .k {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}
.fact-row .v {
  color: var(--text);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-list {
  margin-top: 50px;
}
.skill-row {
  display: grid;
  grid-template-columns: 60px 220px 1fr 80px;
  gap: 30px;
  align-items: center;
  padding: 22px 16px;
}
.skill-row:hover .num {
  color: var(--lime);
}
.skill-row .num {
  font-family: var(--mono);
  color: var(--faint);
  font-size: 12px;
  transition: color 0.4s var(--ease);
}
.skill-row .name {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
}
.skill-row .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.skill-row .tags span {
  padding: 3px 10px;
}
.skill-row .bar-wrap {
  width: 100%;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}
.skill-row .bar {
  height: 100%;
  background: var(--lime);
  width: 0;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-row.in-view .bar {
  width: var(--w);
}
@media (max-width: 800px) {
  .skill-row {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }
  .skill-row .tags,
  .skill-row .bar-wrap {
    display: none;
  }
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 50px 16px;
}
.exp-item:first-child {
  padding-top: 30px;
}
.exp-item .exp-period {
  transition: color 0.4s var(--ease);
}
.exp-item:hover .exp-period {
  color: var(--lime);
}
.exp-period {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding-top: 8px;
}
.exp-period .now {
  display: inline-block;
  color: var(--lime);
  margin-left: 6px;
}
.exp-role {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.exp-company {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.exp-points {
  list-style: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.exp-points li {
  padding: 4px 0 4px 26px;
  position: relative;
}
.exp-points li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--lime);
}
@media (max-width: 760px) {
  .exp-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-stack {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 60px;
}
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.project:nth-child(even) .project-visual {
  order: 2;
}
.project-visual {
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.5s,
    border-color 0.3s;
}
.project-visual:hover {
  border-color: var(--lime);
  transform: scale(1.02);
}
.project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--lime-rgb), 0.12),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 2;
}
.project-visual:hover::before {
  opacity: 1;
}
.browser-frame {
  height: 32px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}
.browser-frame .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  flex-shrink: 0;
}
.browser-frame .url {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
  background: var(--bg-2);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  height: 20px;
}
.project-mock {
  height: calc(100% - 32px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-line {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-3), var(--line));
}
.mock-line.acc {
  background: var(--lime);
  width: 40%;
  height: 12px;
}
.mock-line.acc-2 {
  background: var(--orange);
  width: 25%;
  height: 10px;
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
}
.mock-grid div {
  aspect-ratio: 1;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.mock-grid div:nth-child(1) {
  background: rgba(var(--lime-rgb), 0.15);
  border-color: rgba(var(--lime-rgb), 0.3);
}
.mock-grid div:nth-child(3) {
  background: rgba(255, 107, 53, 0.15);
  border-color: rgba(255, 107, 53, 0.3);
}

.project-info .num {
  font-family: var(--mono);
  color: var(--lime);
  font-size: 13px;
  margin-bottom: 12px;
  letter-spacing: 0.15em;
}
.project-info h3 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.project-info .tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tag-row span {
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.project-info p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.live-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid var(--lime);
  padding-bottom: 4px;
  transition:
    gap 0.4s var(--ease),
    letter-spacing 0.4s var(--ease);
}
.live-link:hover {
  gap: 14px;
  letter-spacing: 0.02em;
}
@media (max-width: 800px) {
  .projects-stack {
    gap: 56px;
  }
  .project {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .project:nth-child(even) .project-visual {
    order: 0;
  }
  .project-visual {
    aspect-ratio: 16 / 10;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
  .project-mock {
    padding: 14px;
    gap: 8px;
  }
  .mock-line {
    height: 7px;
  }
  .mock-line.acc {
    height: 10px;
  }
  .mock-line.acc-2 {
    height: 8px;
  }
  .mock-grid {
    gap: 8px;
  }
  .project-info h3 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .project-info .num {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .project-info p {
    font-size: 15px;
    margin-bottom: 18px;
  }
  .project-info .tag-row {
    margin-bottom: 14px;
  }
}
@media (max-width: 480px) {
  .project-visual {
    aspect-ratio: 16 / 11;
  }
  .project-info h3 {
    font-size: 26px;
  }
  .browser-frame {
    height: 26px;
    padding: 0 10px;
  }
  .browser-frame .dot {
    width: 6px;
    height: 6px;
  }
  .browser-frame .url {
    font-size: 9px;
    padding: 3px 8px;
    height: 16px;
  }
  .project-mock {
    height: calc(100% - 26px);
    padding: 12px;
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 80px 0;
  text-align: center;
  position: relative;
}
.contact-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.contact h2 {
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 30px;
}
.contact .email-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 36px;
  background: var(--lime);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  border-radius: 100px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  margin-top: 20px;
}
.contact .email-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 60px rgba(var(--lime-rgb), 0.4);
}
.contact .email-btn .arr {
  transition: transform 0.3s;
}
.contact .email-btn:hover .arr {
  transform: translateX(6px);
}

.contact-secondary {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 50px;
  font-family: var(--mono);
  font-size: 13px;
  flex-wrap: wrap;
}
.contact-secondary a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-2);
  padding-bottom: 4px;
  transition:
    color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
  display: inline-block;
}
.contact-secondary a:hover {
  color: var(--lime);
  border-color: var(--lime);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   SCROLL-REVEAL ANIMATIONS
   ============================================================ */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition:
    opacity 1s var(--ease-soft),
    transform 1s var(--ease-soft);
  transition-delay: var(--rd, 0s);
}
.reveal {
  transform: translateY(40px);
}
.reveal-left {
  transform: translateX(-60px);
}
.reveal-right {
  transform: translateX(60px);
}
.reveal-scale {
  transform: scale(0.92);
}

.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-scale.in-view {
  opacity: 1;
  transform: none;
}

.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s var(--ease-soft),
    transform 0.9s var(--ease-soft);
}
.stagger.in-view > *:nth-child(1) {
  transition-delay: 0s;
  opacity: 1;
  transform: translateY(0);
}
.stagger.in-view > *:nth-child(2) {
  transition-delay: 0.08s;
  opacity: 1;
  transform: translateY(0);
}
.stagger.in-view > *:nth-child(3) {
  transition-delay: 0.16s;
  opacity: 1;
  transform: translateY(0);
}
.stagger.in-view > *:nth-child(4) {
  transition-delay: 0.24s;
  opacity: 1;
  transform: translateY(0);
}
.stagger.in-view > *:nth-child(5) {
  transition-delay: 0.32s;
  opacity: 1;
  transform: translateY(0);
}
.stagger.in-view > *:nth-child(6) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}
.stagger.in-view > *:nth-child(7) {
  transition-delay: 0.48s;
  opacity: 1;
  transform: translateY(0);
}
.stagger.in-view > *:nth-child(8) {
  transition-delay: 0.56s;
  opacity: 1;
  transform: translateY(0);
}

.split .word {
  display: inline-block;
  vertical-align: top;
}
.split .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.split .word-wrap {
  padding: 10px 0 0 0;
}

.split.in-view .word > span {
  transform: translateY(0);
}

/* ============================================================
   STATS
   ============================================================ */
.counter-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(60px, 9vw, 120px);
  font-weight: 400;
  line-height: 1;
  color: var(--lime);
  display: flex;
  justify-content: center;
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 80px;
  padding-top: 50px;
  border-top: 1px solid var(--line);
}
.stat-cell {
  display: grid;
  justify-content: center;
}
.stat-cell .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
