:root {
  --bg: #121212;
  --bg-elevated: #191919;
  --bg-elevated-2: #1f1f1f;
  --line: #2b2b2b;
  --white: #f2f2ef;
  --gray: #8f8f8c;
  --gray-dim: #5f5f5c;
  --green-a: #8ce81c;
  --green-b: #2f9e1e;
  --grad: linear-gradient(120deg, var(--green-a), var(--green-b));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
.display {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--green-a);
  color: #0d0d0d;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green-a);
  outline-offset: 3px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }
}

/* ---------- NAV ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  width: 110px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Tablet */
@media (max-width: 768px) {
  .logo img {
    width: 125px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .logo img {
    width: 110px;
  }
}

.navlinks {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--gray);
}

.navlinks a {
  transition: color 0.2s;
}

.navlinks a:hover {
  color: var(--white);
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--green-a);
  color: #0d0d0d;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(140, 232, 28, 0.5);
}

.navlinks-mobile-hide {
  display: flex;
}

@media (max-width: 780px) {
  .navlinks-mobile-hide {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  padding: 170px 0 90px;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--green-a);
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-a);
  box-shadow: 0 0 12px var(--green-a);
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 78px);
  text-transform: uppercase;
}

.hero p.sub {
  margin-top: 26px;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--grad);
  color: #0d0d0d;
  font-weight: 700;
  font-size: 14px;
  padding: 15px 26px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 15px 26px;
  border-radius: 100px;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--gray);
  background: var(--bg-elevated);
}

/* peak meter visual */
.meter {
  height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  position: relative;
}

.meter::before {
  content: "PK · LVL";
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: "IBM Plex Mono";
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gray-dim);
}

.meter::after {
  content: "00:00:12:04";
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: "IBM Plex Mono";
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--gray-dim);
}

.bar {
  width: 8px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(0deg, var(--green-b), var(--green-a));
  animation: peak 1.8s ease-in-out infinite;
  transform-origin: bottom;
}

@keyframes peak {
  0%,
  100% {
    transform: scaleY(var(--min, 0.25));
  }

  50% {
    transform: scaleY(var(--max, 1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bar {
    animation: none;
    transform: scaleY(0.6);
  }
}

/* ---------- TICKER ---------- */
.ticker-outer {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  overflow: hidden;
  padding: 16px 0;
}

.ticker {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll 26s linear infinite;
  width: max-content;
}

@media (prefers-reduced-motion: reduce) {
  .ticker {
    animation: none;
  }
}

.ticker span {
  font-family: "IBM Plex Mono";
  font-size: 13px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 48px;
}

.ticker span em {
  color: var(--green-a);
  font-style: normal;
  margin-right: 48px;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- SECTION HEADS ---------- */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
}

.section-head .tag {
  font-size: 11px;
  color: var(--gray-dim);
  max-width: 280px;
  line-height: 1.6;
}

/* ---------- SERVICES (timeline tracks) ---------- */
.track {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.track:last-child {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 780px) {
  .track {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.track .code {
  font-family: "IBM Plex Mono";
  font-size: 12px;
  color: var(--green-a);
  padding-top: 6px;
}

.track h3 {
  font-size: 26px;
  text-transform: uppercase;
}

.track .desc {
  color: var(--gray);
  font-size: 14.5px;
  line-height: 1.7;
}

.track .desc .list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: "IBM Plex Mono";
  font-size: 10.5px;
  color: var(--gray);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 100px;
}

.track:hover .code {
  color: var(--green-a);
}

.track:hover h3 {
  color: var(--green-a);
  transition: color 0.25s;
}

/* ---------- WORK ---------- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: "IBM Plex Mono";
  font-size: 11px;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--gray);
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--green-a);
  color: var(--white);
}

.grid-work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-work {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-work {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.25s,
    border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gray-dim);
}

.card .thumb {
  height: 170px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(140, 232, 28, 0.18),
      transparent 60%
    ),
    var(--bg-elevated-2);
  border-bottom: 1px solid var(--line);
}

.card .thumb svg {
  width: 34px;
  height: 34px;
  opacity: 0.85;
}

.card .meta {
  padding: 16px 18px;
}

.card .cat {
  font-family: "IBM Plex Mono";
  font-size: 10px;
  color: var(--green-a);
}

.card .title {
  margin-top: 6px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.card .fmt {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray-dim);
}

.hidden {
  display: none !important;
}

/* ---------- STATS / ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-grid h2 {
  font-size: clamp(26px, 4vw, 38px);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.about-grid p {
  color: var(--gray);
  line-height: 1.75;
  font-size: 15.5px;
  margin-bottom: 18px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.stat {
  background: var(--bg-elevated);
  padding: 30px 24px;
}

.stat .num {
  font-family: "Instrument Serif", serif;
  font-size: 44px;
  font-weight: 400;
}

.stat .lbl {
  margin-top: 6px;
  font-size: 12px;
  color: var(--gray);
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 110px 0;
  text-align: center;
  position: relative;
}

.cta-section h2 {
  font-size: clamp(32px, 7vw, 80px);
  text-transform: uppercase;
}

.cta-section .sub {
  color: var(--gray);
  margin-top: 18px;
  font-size: 16px;
}

.cta-section .hero-ctas {
  justify-content: center;
  margin-top: 36px;
}

footer {
  padding: 50px 0 40px;
}

.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.foot-left .logo {
  margin-bottom: 10px;
}

.foot-left p {
  color: var(--gray-dim);
  font-size: 13px;
  max-width: 280px;
  line-height: 1.6;
}

.foot-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.foot-col h4 {
  font-family: "IBM Plex Mono";
  font-size: 11px;
  color: var(--gray-dim);
  margin-bottom: 14px;
  letter-spacing: 0.1em;
}

.foot-col a {
  display: block;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.foot-col a:hover {
  color: var(--white);
}

.foot-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-dim);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- IMMERSIVE LAYER: progress scrubber ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.03);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(140, 232, 28, 0.6);
  transition: width 0.08s linear;
}

/* ---------- IMMERSIVE LAYER: cursor glow ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 440px;
  height: 440px;
  background: radial-gradient(
    circle,
    rgba(140, 232, 28, 0.1),
    rgba(140, 232, 28, 0.02) 45%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

body.cursor-active .cursor-glow {
  opacity: 1;
}

/* ---------- IMMERSIVE LAYER: header on scroll ---------- */
header {
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

header.scrolled {
  background: rgba(15, 15, 15, 0.94);
  border-color: #333;
}

/* ---------- IMMERSIVE LAYER: hero entrance ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSoft {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero .eyebrow {
  animation: fadeUp 0.8s cubic-bezier(0.16, 0.8, 0.24, 1) both;
  animation-delay: 0.05s;
}

.hero h1 {
  animation: fadeUp 0.9s cubic-bezier(0.16, 0.8, 0.24, 1) both;
  animation-delay: 0.18s;
}

.hero p.sub {
  animation: fadeUp 0.8s cubic-bezier(0.16, 0.8, 0.24, 1) both;
  animation-delay: 0.38s;
}

.hero .hero-ctas {
  animation: fadeUp 0.8s cubic-bezier(0.16, 0.8, 0.24, 1) both;
  animation-delay: 0.52s;
}

.meter {
  animation: fadeInSoft 1.1s ease both;
  animation-delay: 0.4s;
}

.hero-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(140, 232, 28, 0.14),
    transparent 65%
  );
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

/* ---------- IMMERSIVE LAYER: scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 0.8, 0.24, 1),
    transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- IMMERSIVE LAYER: card tilt + magnetic ---------- */
.grid-work {
  perspective: 1200px;
}

.card {
  transition:
    transform 0.2s cubic-bezier(0.16, 0.8, 0.24, 1),
    border-color 0.25s;
}

.card .thumb svg {
  transition: transform 0.3s ease;
}

.card:hover .thumb svg {
  transform: scale(1.12);
}

.btn-primary,
.btn-secondary,
.nav-cta {
  transition:
    transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1),
    box-shadow 0.2s,
    border-color 0.2s,
    background 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow,
  .hero h1,
  .hero p.sub,
  .hero .hero-ctas,
  .meter {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cursor-glow {
    display: none;
  }

  .hero-glow {
    display: none;
  }
}

@media (max-width: 780px) {
  .cursor-glow {
    display: none;
  }
}
