: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));
}

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;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

.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;
}

/* ---------- 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);
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

header.scrolled {
  background: rgba(15, 15, 15, 0.94);
  border-color: #333;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  width: 110px;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo img {
    width: 125px;
  }
}

@media (max-width: 480px) {
  .logo img {
    width: 110px;
  }
}

.navlinks a {
  font-size: 14px;
  color: var(--gray);
  transition: color 0.2s;
}

.navlinks a:hover {
  color: var(--white);
}

/* ---------- MOBILE NAV TOGGLE ---------- */
.nav-toggle {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    margin 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  background: var(--bg);
  transition:
    max-height 0.3s ease,
    border-color 0.3s ease;
}

.mobile-menu .container-fluid {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
  padding-bottom: 6px;
}

.mobile-menu a {
  font-size: 15px;
  color: var(--gray);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a.nav-cta {
  border-bottom: none;
  align-self: flex-start;
  margin-bottom: 14px;
}

.mobile-menu.open {
  max-height: 320px;
  border-top-color: var(--line);
}

body.menu-open {
  overflow: hidden;
}

.nav-cta,
.btn-primary {
  background: var(--grad);
  color: #0d0d0d !important;
  font-weight: 700;
  border-radius: 100px;
  border: none;
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  transition:
    transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1),
    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);
}

/* ---------- HERO ---------- */
.hero {
  padding: 170px 0 90px;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero .container-fluid {
  position: relative;
  z-index: 1;
}

.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);
}

.btn-primary {
  font-size: 14px;
  padding: 15px 26px;
  transition: transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1);
}

.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;
  background: transparent;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1);
}

.btn-secondary:hover {
  border-color: var(--gray);
  background: var(--bg-elevated);
}

.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-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;

  animation: floatImage 4s ease-in-out infinite;
}

/* ---------- HERO GRID (controls mobile vs desktop content order) ---------- */
.hero-grid {
  display: grid;
  align-items: center;
  column-gap: 48px;
  row-gap: 24px;
  grid-template-columns: 7fr 5fr;
  grid-template-areas:
    "heading image"
    "para    image"
    "cta     image";
}

.hero-heading {
  grid-area: heading;
}

.hero-img-col {
  grid-area: image;
}

.hero-para {
  grid-area: para;
}

.hero-cta-col {
  grid-area: cta;
}

@media (min-width: 1200px) {
  .hero-grid {
    grid-template-columns: 6fr 6fr;
  }
}

@media (max-width: 991.98px) {
  .hero-grid {
    grid-template-columns: 1fr;
    row-gap: 20px;
    grid-template-areas:
      "heading"
      "image"
      "para"
      "cta";
  }
}

.hero-ctas {
  align-items: center;
}

.hero-ctas .btn-primary,
.hero-ctas .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  box-sizing: border-box;
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ---------- 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;
}

.ticker span {
  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);
  overflow-x: hidden !important;
}

.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 {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.track:last-child {
  border-bottom: 1px solid var(--line);
}

.track .code {
  font-size: 12px;
  color: var(--green-a);
}

.track h3 {
  font-size: 26px;
  text-transform: uppercase;
}

.track .desc {
  color: var(--gray);
  font-size: 14.5px;
  line-height: 1.7;
}

.chip {
  font-size: 10.5px;
  color: var(--gray);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 100px;
  display: inline-block;
}

.track:hover .code,
.track:hover h3 {
  color: var(--green-a);
  transition: color 0.25s;
}

/* ---------- WORK ---------- */
.filter-btn {
  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 {
  perspective: 1200px;
}

#workGrid {
  display: block;
  columns: 3 340px;
  column-gap: 24px;
}

#workGrid > .col {
  display: block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 24px;
  padding: 0;
}

#workGrid > .col.hidden {
  display: none;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.2s cubic-bezier(0.16, 0.8, 0.24, 1),
    border-color 0.25s;
}

.card:hover {
  border-color: var(--gray-dim);
}

.card .thumb {
  height: fit-content;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  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 a.thumb {
  cursor: zoom-in;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 0.8, 0.24, 1);
}

.card:hover .thumb img {
  transform: scale(1.08);
}

.card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover .thumb::after {
  opacity: 1;
}

.card .thumb .thumb-zoom {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s cubic-bezier(0.16, 0.8, 0.24, 1);
}

.card:hover .thumb .thumb-zoom {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .card .thumb::after {
    opacity: 0.35;
  }

  .card .thumb .thumb-zoom {
    opacity: 0.85;
    transform: translateY(0);
  }
}

.card .thumb.video-embed {
  height: auto;
  aspect-ratio: 16 / 9; /* landscape default */
  padding: 0;
  background: #000;
  display: block;
}

.card .thumb.video-embed[data-orientation="portrait"] {
  aspect-ratio: 12 / 16;
}

.card .thumb.video-embed iframe,
.card .thumb.video-embed lite-youtube {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background-size: cover;
}

.card .meta {
  padding: 16px 18px;
}

.card .cat {
  font-size: 10px;
  color: var(--green-a);
}

.card .title {
  margin-top: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}

.card .fmt {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray-dim);
}

.hidden {
  display: none !important;
}

/* ---------- STATS / ABOUT ---------- */
.about-grid h2 {
  font-size: 40px;
}

.about-grid p {
  color: var(--gray);
  line-height: 1.75;
  font-size: 15.5px;
}

.stats {
  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);
}

.stats .stat {
  border-width: 0.5px !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* ---------- 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;
}

/* ---------- FOOTER ---------- */
footer {
  padding: 50px 0 40px;
}

.foot-left p {
  color: var(--gray-dim);
  font-size: 13px;
  max-width: 280px;
  line-height: 1.6;
}

.foot-col h4 {
  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);
  font-size: 12px;
  color: var(--gray-dim);
}

/* Agency Credit */
.agency-credit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.agency-credit img {
  width: 120px;
  height: auto;
  display: block;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
}

.agency-credit span {
  font-size: 11px;
  max-width: 280px;
  color: var(--gray-dim);
  letter-spacing: 0.02em;
}

/* ---------- 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;
}

@media (max-width: 780px) {
  .cursor-glow {
    display: none;
  }
}

/* ---------- IMMERSIVE LAYER: hero entrance ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.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;
}

/* ---------- 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);
}

@media (prefers-reduced-motion: reduce) {
  .ticker {
    animation: none;
  }

  .hero .eyebrow,
  .hero h1,
  .hero p.sub,
  .hero .hero-ctas {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cursor-glow,
  .hero-glow {
    display: none;
  }
}

/* ---- Tablets and small laptops ---- */
@media (max-width: 991px) {
  .hero {
    padding: 140px 0 70px;
  }

  .section {
    padding: 76px 0;
    overflow-x: hidden !important;
  }

  .about-grid h2 {
    font-size: 34px;
  }

  .cta-section {
    padding: 90px 0;
  }
}

/* ---- Phones (portrait & landscape) ---- */
@media (max-width: 767px) {
  header nav {
    min-height: 68px !important;
  }

  .hero {
    padding: 108px 0 56px;
  }

  .hero p.sub {
    max-width: 100%;
    font-size: 16px;
  }

  .hero-image {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-image img {
    max-width: 100%;
  }

  .hero-glow {
    width: 340px;
    height: 340px;
    top: -80px;
    right: -100px;
  }

  .section {
    padding: 60px 0;
    overflow-y: hidden !important;
  }

  .section-head .tag {
    max-width: 100%;
  }

  .track {
    padding: 24px 0;
  }

  .track h3 {
    font-size: 22px;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-direction: row !important;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filters .col-auto {
    flex: 0 0 auto;
  }

  .filter-btn {
    white-space: nowrap;
  }

  .card .thumb {
    height: fit-content;
  }

  .about-grid h2 {
    font-size: 30px;
  }

  .about-grid .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .stat {
    padding: 22px 16px;
  }

  .stat .num {
    font-size: 34px;
  }

  .cta-section {
    padding: 70px 0;
  }

  .cta-section .sub {
    max-width: 100%;
  }

  .hero-ctas .col-auto {
    width: 100%;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
  }

  footer {
    padding: 40px 0 30px;
  }

  .foot-left p {
    max-width: 100%;
  }

  .foot-bottom {
    text-align: left;
  }

  .foot-bottom .text-sm-end {
    text-align: left !important;
    margin-top: 4px;
  }
}

/* ---- Small phones ---- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .ticker span {
    font-size: 12px;
    gap: 32px;
  }

  .ticker span em {
    margin-right: 32px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .stats.row {
    row-gap: 0;
  }

  .nav-cta {
    padding: 9px 16px;
    font-size: 12px;
  }

  .agency-credit span {
    max-width: 100%;
    margin-bottom: 10px;
  }
}

/* ---- Very narrow screens ---- */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 30px;
  }

  .stat .num {
    font-size: 28px;
  }

  .stat .lbl {
    font-size: 11px;
  }
}
