/* ═══════════════════════════════════════════════════════
   DARKSPEDE v2 — SIGNAL DESIGN SYSTEM
   Fonts: Syne / IBM Plex Mono / Inter
   Palette: #060606 base · #5e90e3 blue
═══════════════════════════════════════════════════════ */

@import url('./global-typography.css');

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

:root {
  --bg:          #060606;
  --bg-1:        #0a0a0a;
  --bg-2:        #101010;
  --blue-line:   rgba(237,237,237,.14);
  --blue-glow:   rgba(237,237,237,.08);
  --lime:        #5e90e3;
  --lime-bright: #8fb7ff;
  --lime-8:      rgba(94,144,227,.08);
  --lime-16:     rgba(94,144,227,.16);
  --lime-25:     rgba(94,144,227,.25);
  --white:       #EDEDED;
  --dim:         rgba(237,237,237,.72);
  --muted:       rgba(237,237,237,.56);
  --border:      rgba(255,255,255,.07);
  --border-lime: rgba(94,144,227,.28);
  --surface-0:   #060606;
  --surface-1:   #0a0a0a;
  --surface-2:   #111111;
  --surface-shadow: rgba(0,0,0,.34);
  --inner-bg-grid-opacity: .1;
  --inner-bg-glow-opacity: .2;
  --inner-bg-line-opacity: .12;
  --inner-bg-drift-duration: 24s;
  --nav-h:       60px;
}

html { scroll-behavior: smooth; background: var(--bg); }

html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9992;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 28%, rgba(143,183,255,.035) 52%, transparent 74%),
    radial-gradient(900px 560px at 18% 8%, rgba(255,255,255,.045), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 180px 180px;
  mix-blend-mode: soft-light;
  opacity: .5
}

body {
  background:
    radial-gradient(1200px 700px at 8% -12%, rgba(94,144,227,.12), transparent 55%),
    radial-gradient(900px 560px at 92% 0%, rgba(255,255,255,.03), transparent 60%),
    linear-gradient(180deg, #0b0b0b 0%, #070707 45%, #060606 100%);
  color: var(--white);
  font-family: var(--font-unified);
  font-weight: 400; overflow-x: clip; cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* System cursor + custom cursor overlay mode (all pages) */
body[data-cursor-type="starburst-native"],
body[data-cursor-type="starburst-native"] * {
  cursor: auto !important;
}
body[data-cursor-type="starburst-native"] a,
body[data-cursor-type="starburst-native"] button,
body[data-cursor-type="starburst-native"] [role="button"],
body[data-cursor-type="starburst-native"] .btn,
body[data-cursor-type="starburst-native"] .nav-links a,
body[data-cursor-type="starburst-native"] .proj-card,
body[data-cursor-type="starburst-native"] .pcard,
body[data-cursor-type="starburst-native"] input[type="submit"] {
  cursor: pointer !important;
}

/* Global hard override: unify fonts across page-level inline styles */
body,
button,
input,
select,
textarea,
p,
li,
dd,
dt,
blockquote,
figcaption,
small {
  font-family: var(--font-unified);
}

h1, h2, h3, h4, h5, h6,
.heading,
.proj-title,
.pg-hero-h1,
.post-card-title,
.proj-card-title {
  font-family: var(--font-unified) !important;
  letter-spacing: -0.02em;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9994;
  pointer-events: none;
  background:
    radial-gradient(420px 280px at var(--fx-x, 50%) var(--fx-y, 50%), rgba(94,144,227,.28), transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cg fill='none' stroke='rgba(94,144,227,0.14)' stroke-width='0.8'%3E%3Cpath d='M60 14l22 13v26L60 66L38 53V27z'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(480px 460px at 18% 72%, rgba(94,144,227,.12), transparent 72%),
    radial-gradient(520px 500px at 82% 32%, rgba(140,180,240,.14), transparent 74%);
  background-size: 100% 100%, 220px 190px, 100% 100%, 100% 100%;
  background-position: center center, 0 0, center center, center center;
  mix-blend-mode: screen;
  opacity: .24;
  animation: shapePulse 10s ease-in-out infinite, hexFlow 40s linear infinite;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.018) 0%, transparent 22%),
    radial-gradient(900px 500px at 50% 100%, rgba(94,144,227,.09), transparent 65%);
  opacity: .9;
}
@keyframes lightningSweep {
  0%, 100% { filter: brightness(1); }
  10% { filter: brightness(1.06); }
  11% { filter: brightness(1.24); }
  12% { filter: brightness(1.02); }
  51% { filter: brightness(1.04); }
  52% { filter: brightness(1.18); }
  53% { filter: brightness(1.01); }
}
@keyframes shapePulse {
  0%, 100% { opacity: .3; filter: brightness(1); }
  50% { opacity: .42; filter: brightness(1.12); }
}
@keyframes hexFlow {
  0% {
    background-position: center center, 0 0, center center, center center;
  }
  25% {
    background-position: center center, 6px -4px, center center, center center;
  }
  50% {
    background-position: center center, -5px 6px, center center, center center;
  }
  75% {
    background-position: center center, 4px 5px, center center, center center;
  }
  100% {
    background-position: center center, 0 0, center center, center center;
  }
}

/* Section-to-section contrast: clearer transitions */
section {
  position: relative;
}

section + section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: clamp(54px, 7vw, 90px);
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,.68) 0%, rgba(0,0,0,.22) 52%, rgba(0,0,0,0) 100%);
}

/* Shared section layering helpers for non-index pages */
.surface-0 { background: var(--surface-0); }
.surface-1 { background: var(--surface-1); }
.surface-2 { background: var(--surface-2); }
.surface-divider {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.layered-section {
  position: relative;
  isolation: isolate;
}
.layered-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02), inset 0 -18px 40px -26px var(--surface-shadow);
  z-index: 0;
}
.layered-section > * {
  position: relative;
  z-index: 1;
}

/* Subtle tech texture for inner pages */
body.inner-bg {
  background:
    radial-gradient(1200px 720px at 14% -18%, rgba(94,144,227,.22), transparent 62%),
    radial-gradient(1100px 700px at 92% -14%, rgba(94,144,227,.18), transparent 64%),
    radial-gradient(900px 540px at 50% 108%, rgba(94,144,227,.16), transparent 70%),
    linear-gradient(180deg, #0b0b0b 0%, #070707 45%, #060606 100%);
}
body.inner-bg::after {
  background:
    radial-gradient(900px 460px at 20% 24%, rgba(94,144,227,var(--inner-bg-glow-opacity)), transparent 68%),
    radial-gradient(840px 480px at 80% 30%, rgba(94,144,227,.16), transparent 70%),
    radial-gradient(760px 380px at 50% 86%, rgba(94,144,227,.14), transparent 74%),
    linear-gradient(104deg, transparent 12%, rgba(94,144,227,var(--inner-bg-line-opacity)) 35%, transparent 58%),
    linear-gradient(74deg, transparent 30%, rgba(94,144,227,.09) 48%, transparent 66%),
    linear-gradient(to bottom, rgba(94,144,227,.06) 0%, transparent 36%);
  background-size: 120% 120%, 120% 120%, 120% 120%, 180% 180%, 170% 170%, 100% 100%;
  background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%, 100% 0%, center center;
  z-index: 2;
  opacity: .68;
  mix-blend-mode: screen;
  animation: volumetricDrift var(--inner-bg-drift-duration) ease-in-out infinite;
}
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-size: cover;
  background-position: 50% 50%;
}
body.particles-only-bg {
  background: #060606;
}
body.particles-only-bg::before,
body.particles-only-bg::after {
  display: none !important;
}
body.inner-bg > *:not(#particles-js) {
  position: relative;
  z-index: 3;
}
body.inner-bg-default {
  --inner-bg-grid-opacity: .1;
  --inner-bg-glow-opacity: .2;
  --inner-bg-line-opacity: .12;
}

@keyframes volumetricDrift {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%, 100% 0%, center center;
    filter: blur(0px);
  }
  50% {
    background-position: 18% 6%, 86% 10%, 50% 90%, 38% 18%, 72% 14%, center center;
    filter: blur(.3px);
  }
  100% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%, 100% 0%, center center;
    filter: blur(0px);
  }
}

/* ── CURSOR ── */
*, *::before, *::after { cursor: none !important; }

/* Keep scroll progress consistently under fixed header */
#progress {
  position: fixed !important;
  top: var(--nav-h) !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  z-index: 999 !important;
  pointer-events: none !important;
}

#cur-blob {
  width: 26px; height: 26px;
  position: fixed; top: 0; left: 0;
  z-index: 9999; pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(245, 250, 255, 0.98) 0%,
    rgba(155, 195, 255, 0.92) 36%,
    rgba(64, 120, 210, 0.78) 72%,
    rgba(16, 34, 76, 0.52) 100%
  );
  border: 1px solid rgba(220, 236, 255, 0.82);
  box-shadow:
    inset 0 2px 7px rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(6, 10, 20, 0.5),
    0 6px 26px rgba(94, 144, 227, 0.5),
    0 2px 9px rgba(0, 0, 0, 0.72);
  will-change: transform;
  transition:
    width .3s cubic-bezier(.34, 1.56, .64, 1),
    height .3s cubic-bezier(.34, 1.56, .64, 1),
    border-radius .25s cubic-bezier(.34, 1.56, .64, 1),
    background .22s,
    box-shadow .22s;
}

#cur-blob.hovering {
  width: 42px; height: 14px;
  background: linear-gradient(
    90deg,
    rgba(220, 238, 255, 0.98) 0%,
    rgba(120, 180, 255, 0.95) 50%,
    rgba(220, 238, 255, 0.98) 100%
  );
  border: 1px solid rgba(232, 244, 255, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 0 1px rgba(8, 14, 28, 0.55),
    0 0 18px rgba(167, 206, 255, 0.78),
    0 2px 8px rgba(0, 0, 0, 0.72);
  border-radius: 999px;
}

/* Home starburst cursor as a reusable global mode */
body[data-cursor-type="starburst"] #cur-dot,
body[data-cursor-type="starburst-native"] #cur-dot {
  width: 7px;
  height: 7px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(236, 242, 252, .98);
  box-shadow: 0 0 10px rgba(236, 242, 252, .35);
  transition: width .14s ease, height .14s ease, background .18s ease;
}
body[data-cursor-type="starburst"] #cur-dot.hovering,
body[data-cursor-type="starburst-native"] #cur-dot.hovering {
  width: 9px;
  height: 9px;
  background: rgba(94, 144, 227, .98);
  box-shadow: 0 0 12px rgba(94, 144, 227, .48);
}
body[data-cursor-type="starburst"] #cur-blob,
body[data-cursor-type="starburst-native"] #cur-blob {
  width: 28px !important;
  height: 28px !important;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  background: transparent !important;
  border: 1px solid rgba(224, 232, 244, .58);
  box-shadow: none !important;
  opacity: .92;
  transition: width .22s ease, height .22s ease, border-color .2s ease, opacity .2s ease;
}
body[data-cursor-type="starburst"] #cur-blob::before,
body[data-cursor-type="starburst"] #cur-blob::after,
body[data-cursor-type="starburst-native"] #cur-blob::before,
body[data-cursor-type="starburst-native"] #cur-blob::after {
  content: none;
}
body[data-cursor-type="starburst"] #cur-blob.hovering,
body[data-cursor-type="starburst-native"] #cur-blob.hovering {
  width: 22px !important;
  height: 22px !important;
  border-color: rgba(94, 144, 227, .72);
  opacity: 1;
}

/* ── LAYOUT ── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: max(env(safe-area-inset-left, 0px), clamp(20px, 5vw, 80px));
  padding-right: max(env(safe-area-inset-right, 0px), clamp(20px, 5vw, 80px));
}
.section-pad { padding: clamp(80px,10vw,130px) 0; }

/* ── TYPOGRAPHY ── */
.label {
  font-family: var(--font-highlight);
  font-size: 13px; letter-spacing: 2.2px; text-transform: uppercase;
  font-weight: 600;
  color: var(--lime-bright);
  text-shadow: 0 0 10px rgba(143,183,255,.22);
  display: block; margin-bottom: 16px;
}
.heading {
  font-family: 'Syne', sans-serif; font-weight: 900;
  font-size: clamp(58px,7.5vw,124px);
  line-height: .9; letter-spacing: -2px; color: var(--white);
}

/* Global subtitle/highlight tone update (no layout changes) */
.hero-eyebrow,
.section-label,
.cta-eyebrow,
.blog-hero-label,
.proj-hero-eyebrow,
.meta-label,
.content-label,
.impact-label,
.stat-label,
.stat-label-sm,
.state-label,
.hero-meta-label,
.info-stat-label,
.eq-info-label,
.next-label {
  font-family: var(--font-subtitle) !important;
}

.hero-eyebrow,
.section-label,
.cta-eyebrow,
.blog-hero-label,
.proj-hero-eyebrow,
.meta-label,
.content-label,
.impact-label,
.hero-meta-label,
.next-label {
  font-size: clamp(12px, 1.05vw, 16px) !important;
  letter-spacing: 2px !important;
  font-weight: 600 !important;
  color: var(--lime-bright) !important;
  text-shadow: 0 0 10px rgba(143,183,255,.20);
}

/* Catch common naming patterns used in standalone page styles */
[class*="subtitle"],
[class*="eyebrow"],
[class*="meta-label"],
[class*="content-label"],
[class*="impact-label"],
[class*="section-label"],
[class*="state-label"] {
  font-family: var(--font-subtitle) !important;
}

/* Global readability pass: make small/gray text brighter and larger */
[class*="label"],
[class*="meta"],
[class*="tag"],
[class*="eyebrow"],
[class*="kicker"],
[class*="caption"],
[class*="badge"] {
  font-size: clamp(14px, 1.05vw, 16px) !important;
}

[class*="sub"],
[class*="desc"],
[class*="excerpt"],
[class*="copy"],
[class*="body"],
[class*="summary"],
p,
li,
small {
  color: var(--dim) !important;
}

[class*="sub"],
[class*="desc"],
[class*="excerpt"],
[class*="copy"],
[class*="summary"] {
  font-size: clamp(16px, 1.2vw, 20px) !important;
  line-height: 1.72;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp  { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes grow    { from { transform:scaleX(0); } to { transform:scaleX(1); } }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }
.d1 { transition-delay:.12s; }
.d2 { transition-delay:.24s; }
.d3 { transition-delay:.36s; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  padding: 13px 24px; text-decoration: none; cursor: none; border-radius: 0;
  transition: all .25s;
}
.btn-fill { background: var(--lime); color: var(--bg); border: 1px solid var(--lime); font-weight: 600; }
.btn-fill:hover { background: transparent; color: var(--lime); }
.btn.btn-get-in-touch {
  background: var(--lime);
  color: var(--bg);
  border: 1px solid var(--lime);
  font-weight: 600;
  border-radius: 0;
  padding: 13px 24px;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.btn.btn-get-in-touch:hover {
  background: transparent;
  color: var(--lime);
  border-color: var(--lime);
}
.btn-outline { background: transparent; color: var(--lime); border: 1px solid var(--border-lime); }
.btn-outline:hover { background: var(--lime-8); }
.btn-ghost { background: transparent; color: var(--dim); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-lime); color: var(--lime); }

/* btn-realism override — HTML structure kept intact */
.btn-realism {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  padding: 13px 24px; text-decoration: none; cursor: none; border-radius: 0;
  background: transparent; border: 1px solid var(--border-lime); color: var(--lime);
  transition: all .25s;
}
.btn-realism:hover { background: var(--lime-8); }
.btn-realism .blob1 { display: none !important; }
.btn-realism .inner {
  display: inline-flex; align-items: center; gap: 8px;
  background: none !important; border-radius: 0 !important; padding: 0 !important;
  color: inherit; font: inherit; letter-spacing: inherit;
}

/* Contact CTA based on Uiverse type-A button (blue retheme) */
.btn-contact-us {
  --line_color: #5e90e3;
  --back_color: rgba(94, 144, 227, 0.18);
  position: relative;
  z-index: 0;
  width: min(100%, 240px);
  height: 56px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  color: var(--line_color);
  letter-spacing: 2px;
  transition: all 0.3s ease;
  display: inline-flex;
  cursor: none;
}
.btn-contact-us--header {
  width: 210px;
  height: 50px;
  font-size: 12px;
  letter-spacing: 1.8px;
  flex-shrink: 0;
}
.btn-contact-us .button__text {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.btn-contact-us::before,
.btn-contact-us::after,
.btn-contact-us .button__text::before,
.btn-contact-us .button__text::after {
  content: "";
  position: absolute;
  height: 3px;
  border-radius: 2px;
  background: var(--line_color);
  transition: all 0.5s ease;
}
.btn-contact-us::before {
  top: 0;
  left: 54px;
  width: calc(100% - 56px * 2 - 16px);
}
.btn-contact-us::after {
  top: 0;
  right: 54px;
  width: 8px;
}
.btn-contact-us .button__text::before {
  bottom: 0;
  right: 54px;
  width: calc(100% - 56px * 2 - 16px);
}
.btn-contact-us .button__text::after {
  bottom: 0;
  left: 54px;
  width: 8px;
}
.btn-contact-us .button__line {
  position: absolute;
  top: 0;
  width: 56px;
  height: 100%;
  overflow: hidden;
}
.btn-contact-us .button__line::before {
  content: "";
  position: absolute;
  top: 0;
  width: 150%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 300px;
  border: solid 3px var(--line_color);
}
.btn-contact-us .button__line:nth-child(1),
.btn-contact-us .button__line:nth-child(1)::before {
  left: 0;
}
.btn-contact-us .button__line:nth-child(2),
.btn-contact-us .button__line:nth-child(2)::before {
  right: 0;
}
.btn-contact-us:hover { letter-spacing: 4px; }
.btn-contact-us:hover::before,
.btn-contact-us:hover .button__text::before { width: 8px; }
.btn-contact-us:hover::after,
.btn-contact-us:hover .button__text::after { width: calc(100% - 56px * 2 - 16px); }
.nav-links .btn-contact-us { margin-left: 6px; }

.btn-contact-us .button__drow1,
.btn-contact-us .button__drow2 {
  position: absolute;
  z-index: -1;
  border-radius: 16px;
  transform-origin: 16px 16px;
}
.btn-contact-us .button__drow1 {
  top: -16px;
  left: 40px;
  width: 32px;
  height: 0;
  transform: rotate(30deg);
}
.btn-contact-us .button__drow2 {
  top: 44px;
  left: 77px;
  width: 32px;
  height: 0;
  transform: rotate(-127deg);
}
.btn-contact-us .button__drow1::before,
.btn-contact-us .button__drow1::after,
.btn-contact-us .button__drow2::before,
.btn-contact-us .button__drow2::after {
  content: "";
  position: absolute;
}
.btn-contact-us .button__drow1::before {
  bottom: 0;
  left: 0;
  width: 0;
  height: 32px;
  border-radius: 16px;
  transform-origin: 16px 16px;
  transform: rotate(-60deg);
}
.btn-contact-us .button__drow1::after {
  top: -10px;
  left: 45px;
  width: 0;
  height: 32px;
  border-radius: 16px;
  transform-origin: 16px 16px;
  transform: rotate(69deg);
}
.btn-contact-us .button__drow2::before {
  bottom: 0;
  left: 0;
  width: 0;
  height: 32px;
  border-radius: 16px;
  transform-origin: 16px 16px;
  transform: rotate(-146deg);
}
.btn-contact-us .button__drow2::after {
  bottom: 26px;
  left: -40px;
  width: 0;
  height: 32px;
  border-radius: 16px;
  transform-origin: 16px 16px;
  transform: rotate(-262deg);
}
.btn-contact-us .button__drow1,
.btn-contact-us .button__drow1::before,
.btn-contact-us .button__drow1::after,
.btn-contact-us .button__drow2,
.btn-contact-us .button__drow2::before,
.btn-contact-us .button__drow2::after {
  background: var(--back_color);
}
.btn-contact-us:hover .button__drow1 {
  animation: drow1 ease-in 0.06s;
  animation-fill-mode: forwards;
}
.btn-contact-us:hover .button__drow1::before {
  animation: drow2 linear 0.08s 0.06s;
  animation-fill-mode: forwards;
}
.btn-contact-us:hover .button__drow1::after {
  animation: drow3 linear 0.03s 0.14s;
  animation-fill-mode: forwards;
}
.btn-contact-us:hover .button__drow2 {
  animation: drow4 linear 0.06s 0.2s;
  animation-fill-mode: forwards;
}
.btn-contact-us:hover .button__drow2::before {
  animation: drow3 linear 0.03s 0.26s;
  animation-fill-mode: forwards;
}
.btn-contact-us:hover .button__drow2::after {
  animation: drow5 linear 0.06s 0.32s;
  animation-fill-mode: forwards;
}

@keyframes drow1 { 0% { height: 0; } 100% { height: 100px; } }
@keyframes drow2 {
  0% { width: 0; opacity: 0; }
  10% { opacity: 0; }
  11% { opacity: 1; }
  100% { width: 120px; }
}
@keyframes drow3 { 0% { width: 0; } 100% { width: 80px; } }
@keyframes drow4 { 0% { height: 0; } 100% { height: 120px; } }
@keyframes drow5 { 0% { width: 0; } 100% { width: 124px; } }

@media (max-width: 1024px) {
  .btn-contact-us--header {
    width: 220px;
    height: 56px;
    font-size: 13px;
    letter-spacing: 2px;
  }
}

/* ── NAVIGATION ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding-left: max(env(safe-area-inset-left, 0px), clamp(20px, 4vw, 60px));
  padding-right: max(env(safe-area-inset-right, 0px), clamp(20px, 4vw, 60px));
  transition: background .4s, border-color .4s, box-shadow .4s;
  border-bottom: 1px solid rgba(255,255,255,.04);
  background: linear-gradient(180deg, rgba(12,12,12,.72) 0%, rgba(8,8,8,.38) 100%);
}
#nav.scrolled {
  background: linear-gradient(180deg, rgba(13,13,13,.9) 0%, rgba(8,8,8,.82) 100%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; z-index: 2; }
.nav-logo img { height: 34px; width: auto; object-fit: contain; display: block; }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-subtitle); font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase;
  color: rgba(237, 237, 237, 0.9); text-decoration: none; transition: color .2s; cursor: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:not(.nav-cta) {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  transition: color .22s ease, transform .22s ease, text-shadow .22s ease;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime-bright), transparent);
  opacity: 0;
  transform: scaleX(.22);
  transform-origin: center;
  transition: opacity .22s ease, transform .22s ease;
}
.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta):focus-visible,
.nav-links a:not(.nav-cta).active {
  color: var(--white);
  transform: translateY(-2px);
  text-shadow: 0 0 14px rgba(143,183,255,.24);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta):focus-visible::after,
.nav-links a:not(.nav-cta).active::after {
  opacity: 1;
  transform: scaleX(1);
}
.nav-links .nav-cta { color: var(--lime-bright); border: 1px solid var(--border-lime); padding: 9px 18px; font-weight: 600; }
.nav-links .nav-cta:hover { background: var(--lime-8); }

.nav-hamburger {
  display: none; background: none; border: none; cursor: none;
  padding: 8px; z-index: 10; flex-direction: column; gap: 5px;
}
.nav-hamburger span { display: block; width: 22px; height: 1px; background: var(--white); transition: all .3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; inset: 0;
  background:
    radial-gradient(1000px 500px at 10% -5%, rgba(94,144,227,.12), transparent 55%),
    linear-gradient(180deg, rgba(11,11,11,.98) 0%, rgba(6,6,6,.98) 100%);
  z-index: 999; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding-left: max(env(safe-area-inset-left, 0px), clamp(24px, 6vw, 80px));
  padding-right: max(env(safe-area-inset-right, 0px), clamp(24px, 6vw, 80px));
  padding-top: max(env(safe-area-inset-top, 0px), 0px);
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 0px);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }

.mob-link {
  font-family: var(--font-unified); font-weight: 900;
  font-size: clamp(38px,8vw,64px); letter-spacing: -1px; line-height: 1.2;
  color: var(--white); text-decoration: none; display: block;
  border-bottom: 1px solid var(--border); width: 100%;
  padding: 10px 0; transition: color .24s ease, transform .24s ease, padding-left .24s ease;
  text-shadow: 0 1px 0 rgba(255,255,255,.24), 0 8px 18px rgba(0,0,0,.32);
}
.mob-link:hover,
.mob-link:focus-visible {
  color: var(--lime-bright);
  transform: translateX(8px);
  padding-left: 6px;
}
.mob-link:last-of-type { border-bottom: none; }
.mob-cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-family: var(--font-subtitle); font-size: 14px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--lime-bright); text-decoration: none;
  border: 1px solid var(--border-lime); padding: 13px 28px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a:not(.nav-cta),
  .nav-links a:not(.nav-cta)::after,
  .mob-link {
    transition: none;
  }
  .nav-links a:not(.nav-cta):hover,
  .nav-links a:not(.nav-cta):focus-visible,
  .nav-links a:not(.nav-cta).active,
  .mob-link:hover,
  .mob-link:focus-visible {
    transform: none;
  }
}

/* ── FOOTER ── */
footer {
  background: #030303;
  border-top: 1px solid var(--border);
  padding: 60px 0 max(24px, env(safe-area-inset-bottom, 0px));
}
.ft-top {
  display: grid; grid-template-columns: 260px 1fr; gap: 80px;
  padding-bottom: 44px; margin-bottom: 36px;
  border-bottom: 1px solid var(--border); align-items: start;
}
.ft-logo img { height: 30px; width: auto; display: block; margin-bottom: 14px; object-fit: contain; }
.ft-tag { font-size: 16px; color: rgba(237, 237, 237, 0.9); line-height: 1.65; max-width: 180px; }
.ft-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; }
.ft-col h4 {
  font-family: 'IBM Plex Mono', monospace; font-size: 17px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(143, 179, 238, 0.9); margin-bottom: 14px;
}
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ft-col a { font-size: 15px; color: rgba(237, 237, 237, 0.9); text-decoration: none; transition: color .2s; }
.ft-col a:hover { color: var(--white); }
.ft-bottom { display: flex; align-items: center; justify-content: space-between; }
.ft-copy { font-family: "Roboto", sans-serif; font-size: 15px; letter-spacing: 1px; color: rgba(237, 237, 237, 0.9); }
.ft-social { display: flex; gap: 14px; }
.ft-social a { color: var(--muted); transition: color .2s; cursor: none; }
.ft-social a:hover { color: var(--lime); }

/* ── RESPONSIVE ── */
@media (max-width:1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .ft-top { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width:768px) {
  .ft-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ft-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
  body.inner-bg {
    --inner-bg-grid-opacity: .08;
    --inner-bg-glow-opacity: .14;
    --inner-bg-line-opacity: .1;
  }
  body.inner-bg::after {
    mix-blend-mode: normal;
    animation: none;
    opacity: .52;
  }
}
@media (max-width: 480px) {
  .ft-cols { grid-template-columns: 1fr; }
  #nav {
    padding-left: max(env(safe-area-inset-left, 0px), 12px);
    padding-right: max(env(safe-area-inset-right, 0px), 12px);
  }
  .nav-hamburger { padding: 10px; flex-shrink: 0; }
  .nav-logo { min-width: 0; }
  .nav-logo img { max-width: min(140px, 42vw); height: auto; }
}

/* ── TOUCH DEVICES: restore native cursor ── */
@media (pointer: coarse) {
  *, *::before, *::after { cursor: auto !important; }
  a, button, [role="button"], label, select, input, textarea { cursor: auto !important; }
  #cur-blob { display: none !important; }
  body::before { animation: none; opacity: .22; }
  body.inner-bg::after { animation: none !important; }
}
@media (hover: none), (pointer: coarse), (max-width: 1024px) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { cursor: auto !important; }
  #cur-blob, #cur-dot { display: none !important; }
  body::before { animation: none !important; opacity: .16; }
  body.inner-bg::after { animation: none !important; opacity: .42; }
  .reveal { transition-duration: .35s !important; }
  .proj-card-bg,
  .post-card-img-inner,
  .btn,
  .btn-realism,
  .btn-contact-us,
  #nav,
  .nav-hamburger span {
    transition-duration: .18s !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.inner-bg::after { animation: none !important; }
}
