/* ════════════════════════════════════════════════════════════
   ABTRIS — Design System v2
   Digital Creatives Studio — Awwwards Quality
   Dark minimalism · Brutalist type · Organic particle art
   ════════════════════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  /* Color */
  --bg:           #07080a;
  --bg-alt:       #0c0e12;
  --surface:      rgba(255,255,255,.03);
  --surface-2:    rgba(255,255,255,.06);
  --border:       rgba(255,255,255,.07);
  --border-h:     rgba(255,255,255,.13);

  --text:         #edede9;
  --muted:        #6b6b6b;
  --dim:          #303030;

  --accent:       #2DB800;
  --accent-2:     #8EFF5C;
  --accent-3:     #C8FF8C;
  --accent-glow:  rgba(45,184,0,.22);
  --accent-subtle: rgba(45,184,0,.06);

  /* Fonts */
  --f-display: 'Instrument Serif', 'Bodoni Moda', serif;
  --f-body:    'Inter', system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Easing */
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  /* Radii */
  --r-sm: .5rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(0,0,0,.4);
  --sh-md: 0 4px 16px rgba(0,0,0,.5);
  --sh-lg: 0 16px 48px rgba(0,0,0,.6);
}

/* ── Base ────────────────────────────────────────────────── */
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none !important; }
}

h1,h2,h3,h4,h5 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: var(--text);
}

h1 { font-size: clamp(3rem,7vw,6.5rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.02; }
h2 { font-size: clamp(2.2rem,5vw,4rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.06; }
h3 { font-size: clamp(1.05rem,2vw,1.4rem); font-weight: 400; letter-spacing: -.02em; }

p  { text-wrap: pretty; }

.mono {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .02em;
}

.grad-text {
  background: linear-gradient(118deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

::selection { background: rgba(45,184,0,.25); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Custom Cursor ───────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.cursor-ring {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out), border-radius 0.3s var(--ease-out);
  will-change: width, height;
}
.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--text);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-out), width 0.3s, height 0.3s, background-color 0.3s;
}
.cursor-text {
  position: absolute;
  transform: translate(-50%, -50%) scale(0);
  color: #030a00;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out);
  white-space: nowrap;
  z-index: 2;
}

/* Cursor States */
.cursor.is-hover .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
  background-color: rgba(45, 184, 0, 0.05);
}
.cursor.is-click .cursor-ring {
  width: 28px;
  height: 28px;
  border-color: var(--accent-2);
}
.cursor.state-view .cursor-ring,
.cursor.state-open .cursor-ring,
.cursor.state-drag .cursor-ring,
.cursor.state-play .cursor-ring {
  width: 80px;
  height: 80px;
  background-color: var(--accent);
  border-color: var(--accent);
  mix-blend-mode: normal;
}
.cursor.state-view .cursor-text,
.cursor.state-open .cursor-text,
.cursor.state-drag .cursor-text,
.cursor.state-play .cursor-text {
  transform: translate(-50%, -50%) scale(1);
}
.cursor.state-view .cursor-dot,
.cursor.state-open .cursor-dot,
.cursor.state-drag .cursor-dot,
.cursor.state-play .cursor-dot {
  opacity: 0;
}

/* ── Header / Nav ────────────────────────────────────────── */
#site-header {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline: 1rem;
  z-index: 100;
  border-radius: var(--r-full);
  background: rgba(7,8,10,.35);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 4px 24px rgba(0,0,0,.4);
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}

#site-header.scrolled {
  background: rgba(7,8,10,.82);
  border-color: rgba(255,255,255,.04);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  padding-inline: 1.25rem;
  gap: 1rem;
}

.brand-logo {
  height: 1.6rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
  transition: opacity .2s;
}
.brand:hover .brand-logo { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
  position: relative;
}

.nav-links a {
  font-family: var(--f-body);
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  padding: .45rem 1rem;
  border-radius: var(--r-full);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5.5px;
  padding: .5rem;
}
.mobile-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .28s var(--ease-out), opacity .2s;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--r-full);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: -.02em;
  white-space: nowrap;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition:
    transform .35s var(--ease-spring),
    box-shadow .3s var(--ease-out),
    background .2s,
    border-color .2s;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0);
  transition: background .25s;
}
.btn:hover::after { background: rgba(255,255,255,.05); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #030a00;
  box-shadow: 0 0 28px var(--accent-glow), var(--sh-sm);
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 48px rgba(45,184,0,.35), var(--sh-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-h); background: var(--surface); }

.btn-pill {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: .8rem;
  padding: .5rem 1.1rem;
}
.btn-pill:hover { border-color: var(--border-h); }

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.arr { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Grain overlay for cinematic feel */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 580px;
  padding-block: 5.5rem 2rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-block-end: 1.5rem;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: dot-pulse 2.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 10px var(--accent); }
  50%      { opacity: .5; box-shadow: 0 0 4px var(--accent); }
}

.hero-h1 {
  font-size: clamp(3rem,7vw,6.2rem);
  line-height: 1.0;
  margin-block-end: 1.5rem;
  font-weight: 400;
}

.hero-h1 em {
  font-style: italic;
  font-family: var(--f-display);
  background: linear-gradient(
    120deg,
    var(--accent) 0%,
    var(--accent-2) 35%,
    var(--accent-3) 65%,
    var(--accent) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: textShine 5s linear infinite, textFloat 4s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, background-position;
}

@keyframes textShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes textFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-1.5deg); }
}

/* Typewriter line — reserve height */
.tw-line {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  min-height: 1.1em;
  white-space: nowrap;
}

/* Typewriter text — heavy Inter, gradient fill */
.tw-text {
  display: inline-block;
  font-style: normal;
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text);
  background: linear-gradient(118deg, #f2f1ed 0%, #d8d6cf 48%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tw-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent);
  margin-inline-start: 3px;
  vertical-align: baseline;
  border-radius: 1px;
  animation: cursor-blink 1.1s step-end infinite;
}

@keyframes cursor-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

.hero-lead {
  font-size: clamp(.9rem,1.5vw,1.05rem);
  color: var(--muted);
  line-height: 1.8;
  margin-block-end: 2.5rem;
  letter-spacing: .01em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  color: var(--dim);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}

.scroll-pill {
  width: 22px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  display: flex;
  justify-content: center;
  padding-block-start: 6px;
}

.scroll-nub {
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: var(--r-full);
  animation: scroll-drop 2.2s var(--ease-out) infinite;
}

@keyframes scroll-drop {
  0%     { transform: translateY(0); opacity: 1; }
  75%    { transform: translateY(14px); opacity: 0; }
  76%,100% { transform: translateY(0); opacity: 0; }
}

/* ── Hero entrance animations ────────────────────────────── */
.anim-up {
  opacity: 0;
  transform: translateY(28px);
  animation: anim-fade-up .9s var(--ease-out) var(--d,0s) forwards;
}

@keyframes anim-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Marquee ─────────────────────────────────────────────── */
.marquee-band {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}

.marquee-track {
  display: flex;
  overflow: hidden;
}

.marquee-items {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  animation: marquee-scroll 38s linear infinite;
}

.marquee-items span {
  font-family: var(--f-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1.1rem 1.6rem;
  transition: color .2s;
}
.marquee-items span:hover { color: var(--text); }

.marquee-items em {
  font-style: normal;
  color: var(--accent);
  font-size: .4rem;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-track:hover .marquee-items { animation-play-state: paused; }

/* ── Sections ────────────────────────────────────────────── */
.section {
  padding-block: clamp(5rem,10vw,9rem);
}

.section--alt {
  background: var(--bg-alt);
}

.sec-hdr {
  margin-block-end: clamp(3rem,6vw,5rem);
}

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-block-end: 1.25rem;
}

.sec-tag::before {
  content: '';
  display: inline-block;
  width: 16px; height: 1px;
  background: var(--accent);
}

/* ── Services ────────────────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.svc-card {
  background: var(--bg);
  padding: clamp(1.8rem,3vw,2.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  cursor: none;
  position: relative;
  transform-style: preserve-3d;
  transition: background .35s var(--ease-out);
  overflow: hidden;
}

/* Radial spotlight on hover */
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx,50%) var(--my,50%),
    var(--accent-subtle) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity .4s;
}
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
  background:
    linear-gradient(120deg,
      rgba(45,184,0,.18) 0%,
      rgba(143,255,92,.09) 28%,
      rgba(200,255,140,.18) 52%,
      rgba(143,255,92,.08) 72%,
      rgba(45,184,0,.16) 100%),
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,.25) 0 1px, transparent 1.5px),
    radial-gradient(circle at 35% 70%, rgba(255,255,255,.28) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 76%, rgba(255,255,255,.22) 0 1px, transparent 1.5px),
    radial-gradient(circle at 55% 48%, rgba(255,255,255,.18) 0 1px, transparent 1.5px),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.16) 0 1px,
      transparent 1px 10px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.08) 0 1px,
      transparent 1px 10px
    );
  mix-blend-mode: screen;
  filter: blur(.15px) saturate(1.2);
  transform: scale(1.03);
  background-size: 180% 180%, 16px 16px, 18px 18px, 17px 17px, 19px 19px, 15px 15px, 22px 22px, 22px 22px;
  background-position: 50% 50%, 0 0, 4px 8px, 8px 2px, 1px 9px, 5px 3px, 0 0, 0 0;
  background-repeat: no-repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat;
  -webkit-mask-image: radial-gradient(
    circle 150px at var(--mx, 50%) var(--my, 50%),
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 38%,
    rgba(0,0,0,.75) 56%,
    rgba(0,0,0,0) 74%
  );
  mask-image: radial-gradient(
    circle 150px at var(--mx, 50%) var(--my, 50%),
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 38%,
    rgba(0,0,0,.75) 56%,
    rgba(0,0,0,0) 74%
  );
}
.svc-card:hover { background: rgba(45,184,0,.012); }
.svc-card:hover::before { opacity: 1; }
.svc-card:hover::after {
  opacity: .82;
  transform: scale(1.01);
  animation: ascii-drift 3.4s linear infinite;
}

@keyframes ascii-drift {
  0% {
    background-position:
      50% 50%,
      0 0, 4px 8px, 8px 2px, 1px 9px, 5px 3px, 0 0, 0 0;
  }
  50% {
    background-position:
      48% 52%,
      10px -6px, -8px 10px, 14px 4px, -5px 12px, 9px -2px, 6px 4px, -4px 8px;
  }
  100% {
    background-position:
      52% 48%,
      0 0, 4px 8px, 8px 2px, 1px 9px, 5px 3px, 0 0, 0 0;
  }
}

.svc-num {
  color: var(--accent);
  font-size: .7rem;
  letter-spacing: .12em;
}

.svc-body { flex: 1; }

.svc-card h3 {
  font-size: clamp(1.1rem,1.8vw,1.4rem);
  line-height: 1.2;
  margin-block-end: .75rem;
  font-weight: 400;
  letter-spacing: -.02em;
}

.svc-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
}

.svc-cta {
  font-size: .73rem;
  color: var(--accent);
  letter-spacing: .06em;
  align-self: flex-start;
  transition: letter-spacing .25s var(--ease-out);
}
.svc-card:hover .svc-cta { letter-spacing: .12em; }

/* ── Stats ───────────────────────────────────────────────── */
.stats-section {
  padding-block: clamp(4rem,8vw,7rem);
  border-block: 1px solid var(--border);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}

.stat-value {
  display: flex;
  align-items: flex-start;
  gap: .1rem;
  line-height: 1;
}

.stat-num {
  font-family: var(--f-display);
  font-size: clamp(3rem,7vw,5.5rem);
  font-weight: 800;
  background: linear-gradient(160deg, var(--text) 0%, rgba(255,255,255,.4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-suf {
  font-family: var(--f-display);
  font-size: clamp(1.5rem,3vw,2.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-block-start: .15em;
}

.stat-lbl {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.stat-rule {
  width: 1px;
  height: 3.5rem;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Work Grid ───────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}

/* Explicit cell placement */
.work-item:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 3; }
.work-item:nth-child(2) { grid-column: 6 / 10; grid-row: 1; }
.work-item:nth-child(3) { grid-column: 10 / 13; grid-row: 1; }
.work-item:nth-child(4) { grid-column: 6 / 13; grid-row: 2; }
.work-item:nth-child(5) { grid-column: 1 / 6; grid-row: 3; }

.work-item {
  background: var(--bg, var(--bg-alt));
  background-color: var(--bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  cursor: none;
  transition:
    transform .45s var(--ease-out),
    border-color .3s var(--ease-out);
}

.work-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(45, 184, 0, 0.09), transparent 80%),
    linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 55%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  z-index: 1;
}

.work-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  pointer-events: none;
  transition: background .3s;
}

.work-item:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 184, 0, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(45, 184, 0, 0.05);
}
.work-item:hover::before {
  opacity: 1;
}
.work-item:hover::after { background: rgba(255,255,255,.025); }

.wi-inner {
  position: relative;
  z-index: 1;
  margin-block-start: auto;
}

.wi-tag {
  font-size: .68rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-block-end: .4rem;
}

.wi-title {
  font-family: var(--f-display);
  font-size: clamp(.95rem,1.8vw,1.35rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -.03em;
}

.wi-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.1rem;
  color: rgba(255,255,255,.2);
  z-index: 1;
  transition: color .25s, transform .25s var(--ease-out);
}
.work-item:hover .wi-arrow {
  color: var(--accent);
  transform: translate(3px,-3px);
}

/* ── Process ─────────────────────────────────────────────── */
.proc-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.proc-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proc-num {
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: .12em;
  margin-block-end: .5rem;
}

.proc-step h3 {
  font-size: clamp(1.4rem,2.5vw,2.1rem);
  font-weight: 400;
}

.proc-step p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
}

.proc-sep {
  font-family: var(--f-display);
  font-size: 1.8rem;
  color: var(--border-h);
  padding-block-start: 3rem;
  flex-shrink: 0;
  user-select: none;
}

/* ── CTA ─────────────────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-glow-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(45,184,0,.09), transparent);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

.cta-h2 {
  font-size: clamp(2.4rem,6vw,5.2rem);
  margin-block: 1.25rem 1.5rem;
  line-height: 1.0;
  font-weight: 400;
}

.cta-desc {
  font-size: 1rem;
  color: var(--muted);
  margin-block-end: 2.5rem;
}

.cta-note {
  margin-block-start: 1.5rem;
  color: var(--dim);
  font-size: .75rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-block-start: 1px solid var(--border);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-tag { color: var(--muted); }

.footer-logo {
  height: 1.5rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .55;
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: .85rem;
  color: var(--muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy { color: var(--dim); font-size: .72rem; }

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity .85s var(--ease-out) var(--d,0s),
    transform .85s var(--ease-out) var(--d,0s);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile Nav Open State ───────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(7,8,10,.97);
    backdrop-filter: blur(24px);
    z-index: 99;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
  }
  .nav-links.open a {
    font-family: var(--f-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.03em;
  }
  .nav-links.open a:hover { color: var(--accent); }
  .mobile-toggle { display: flex; z-index: 101; position: relative; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .work-item:nth-child(1) { grid-column: 1 / 7; }
  .work-item:nth-child(2) { grid-column: 7 / 13; }
  .work-item:nth-child(3) { grid-column: 1 / 7; }
  .work-item:nth-child(4) { grid-column: 7 / 13; }
  .work-item:nth-child(5) { grid-column: 1 / 13; grid-row: 3; }
}

@media (max-width: 768px) {
  .hero-text { max-width: 100%; }
  .hero-h1 { font-size: clamp(2.8rem,12vw,4.5rem); }
  .hero-lead { font-size: .9rem; }

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

  .stats-inner { flex-direction: column; gap: 3rem; }
  .stat-rule { width: 3rem; height: 1px; }

  .work-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .work-item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .work-item:nth-child(1) { grid-column: 1 / -1; }
  .work-item:nth-child(4) { grid-column: 1 / -1; }

  .proc-row { flex-direction: column; gap: 1.5rem; }
  .proc-sep { transform: rotate(90deg); align-self: center; padding: 0; font-size: 1.4rem; }

  .footer-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .footer-links { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-item:nth-child(n) { grid-column: 1 / -1; }
  .svc-grid { border-radius: var(--r-md); }
}

/* ── NEW INTERACTIVE & VISUAL ENHANCEMENTS ──────────────── */

/* Registered custom properties for smooth transitions in supporting browsers */
@property --inner-size {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 0px;
}
@property --outer-size {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 0px;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  z-index: 99999;
  transform-origin: left;
  scale: 0 1;
  box-shadow: 0 0 8px var(--accent-2);
}

@supports (animation-timeline: scroll()) {
  #scroll-progress {
    animation: scroll-progress-anim linear both;
    animation-timeline: scroll();
  }
}

@keyframes scroll-progress-anim {
  to { scale: 1 1; }
}

/* Hero Parallax Scroll Animations */
@supports (animation-timeline: scroll()) {
  .hero {
    view-timeline: --hero-timeline block;
  }
  #hero-canvas {
    animation: hero-parallax-anim linear both;
    animation-timeline: --hero-timeline;
    animation-range: exit;
  }
  .hero-text {
    animation: hero-fade-text linear both;
    animation-timeline: --hero-timeline;
    animation-range: exit;
  }
  
  @keyframes hero-parallax-anim {
    to {
      transform: translateY(120px) scale(1.04);
    }
  }
  @keyframes hero-fade-text {
    to {
      opacity: 0;
      transform: translateY(-80px);
    }
  }
}

/* Navigation Sliding Indicator styles */
.nav-hover-pill {
  position: absolute;
  background: var(--surface-2);
  border-radius: var(--r-full);
  pointer-events: none;
  z-index: -1;
  transition: transform 0.38s cubic-bezier(0.25, 1, 0.35, 1),
              width 0.38s cubic-bezier(0.25, 1, 0.35, 1),
              height 0.38s cubic-bezier(0.25, 1, 0.35, 1),
              opacity 0.3s ease;
  opacity: 0;
  left: 0;
  top: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* When JS Nav Indicator is active, disable static backgrounds to avoid overlays */
.js-nav-indicator .nav-links a {
  background: transparent !important;
}

/* ──────────────────────────────────────────────────────────
   PREMIUM DIGITAL EXPERIENCE STYLES (Awwwards-Inspired)
   ────────────────────────────────────────────────────────── */

/* 1. Lenis Smooth Scroll Configuration */
html.lenis, html.lenis body {
  height: auto;
}
.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis-stopped {
  overflow: hidden;
}
.lenis-scrolling iframe {
  pointer-events: none;
}

/* 2. Global Tactical Noise Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  opacity: 0.038;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 110px 110px;
  animation: noise-shift-anim 0.25s steps(4) infinite;
}
@keyframes noise-shift-anim {
  0% { background-position: 0 0; }
  25% { background-position: 4px 8px; }
  50% { background-position: -8px 4px; }
  75% { background-position: 8px -4px; }
  100% { background-position: 0 0; }
}

/* 3. Shifting Aurora background Blobs */
.aurora-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-color: var(--bg);
  overflow: hidden;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(140px);
  opacity: 0.16;
  will-change: transform;
}
.aurora-blob-1 {
  width: 75vw;
  height: 75vh;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -15vh;
  left: -15vw;
}
.aurora-blob-2 {
  width: 65vw;
  height: 65vh;
  background: radial-gradient(circle, #153a03 0%, transparent 70%);
  bottom: -15vh;
  right: -10vw;
}
.aurora-blob-3 {
  width: 55vw;
  height: 55vh;
  background: radial-gradient(circle, #2d0a56 0%, transparent 70%);
  top: 30vh;
  left: 35vw;
}

/* 4. Morphing Brand Logo SVG displacement filter */
.brand-logo {
  filter: url(#logo-morph) brightness(0) invert(1);
  transform: translateZ(0);
}

/* 5. 3D Project Gallery Card Interactive Overlays */
.work-grid {
  perspective: 1200px;
  transform-style: preserve-3d;
}
.work-item {
  position: relative;
  background-color: #080a0d !important;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.wi-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.28;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transform: scale(1);
  pointer-events: none;
}
.work-item:hover .wi-preview {
  opacity: 0.9;
  transform: scale(1.06);
}
.preview-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.wi-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle 160px at var(--mx, 50%) var(--my, 50%), rgba(45, 184, 0, 0.22), transparent 70%);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s;
}
.work-item:hover .wi-glow {
  opacity: 1;
}

/* 6. Testimonial 3D Rotating Stack Deck */
.testimonials-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 340px;
  margin: 3.5rem auto 0;
  perspective: 1000px;
}
.testimonials-deck {
  position: relative;
  width: 100%;
  height: 250px;
  transform-style: preserve-3d;
}
.testimonial-card {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backface-visibility: hidden;
  box-shadow: var(--sh-lg);
  cursor: grab;
  user-select: none;
  transition: border-color 0.3s;
}
.testimonial-card:active {
  cursor: grabbing;
}
.testimonial-card:hover {
  border-color: rgba(45, 184, 0, 0.26);
}
.tc-quote {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
}
.tc-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.tc-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.tc-title {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.t-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
}
.t-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #030a00;
  transform: scale(1.05);
}

/* 7. Case Study Overlay System */
.case-study-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 10000;
  background-color: var(--bg);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.case-study-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.cs-scroll-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.cs-close-btn {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 10100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-full);
  background-color: rgba(7, 8, 10, 0.65);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease-spring);
  cursor: pointer;
}
.cs-close-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #030a00;
  transform: translateY(-2px);
}
.close-icon {
  font-size: 0.85rem;
}
.close-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Case Study Content Elements */
.cs-hero {
  height: 80vh;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.cs-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.42;
  transition: transform 0.5s ease;
}
.cs-hero-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 0;
}
.cs-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cs-meta-lbl {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cs-meta-val {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.cs-section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.cs-section--alt {
  background-color: var(--bg-alt);
}
.cs-grid-2 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: flex-start;
}
.cs-challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.cs-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2rem;
}
.cs-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-family: var(--f-body);
  font-weight: 600;
}
.cs-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.cs-color-palette {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.cs-color-swatch {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.cs-color-box {
  height: 64px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.cs-color-hex {
  font-size: 0.72rem;
  text-align: center;
  font-family: var(--f-mono);
  color: var(--muted);
}

/* Interactive Before / After Slider */
.ba-slider-container {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  user-select: none;
  margin-top: 2.5rem;
}
.ba-image-before, .ba-image-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ba-image-before canvas, .ba-image-after canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.ba-image-after {
  width: 50%;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.ba-label {
  position: absolute;
  top: 1.25rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-sm);
  background-color: rgba(7, 8, 10, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.68rem;
  z-index: 10;
  color: var(--text);
}
.ba-image-before .ba-label {
  right: 1.25rem;
}
.ba-image-after .ba-label {
  left: 1.25rem;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--accent);
  cursor: ew-resize;
  z-index: 15;
  transform: translateX(-50%);
}
.ba-handle::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 3px solid var(--bg);
  color: #030a00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 12px var(--accent-glow);
}

.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.cs-result-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cs-result-val {
  font-family: var(--f-display);
  font-size: 2.6rem;
  color: var(--accent);
  font-weight: 700;
}
.cs-result-lbl {
  font-size: 0.8rem;
  color: var(--muted);
}

/* 8. Text Reveal Line-by-line animations helper styles */
.split-line-wrapper {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
  width: 100%;
}
.split-line-child {
  display: inline-block;
  will-change: transform;
}

/* Responsive Overrides for Case Studies */
@media (max-width: 1024px) {
  .cs-grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cs-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  .cs-challenge-grid {
    grid-template-columns: 1fr;
  }
  .cs-results-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ba-slider-container {
    height: 320px;
  }
}
