/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/space-grotesk-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/space-grotesk-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/space-grotesk-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* 3DFY Portfolio — Design System */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-full.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  /* Brand */
  --navy-900: #060d1f;
  --navy-800: #0a1530;
  --navy-700: #0e1b3d;
  --navy-600: #142544;
  --navy-500: #1c305a;
  --navy-400: #2a4070;
  --line: rgba(151, 184, 255, 0.12);
  --line-strong: rgba(151, 184, 255, 0.22);

  --lime: #c8e84a;
  --lime-dim: #9cb83a;
  --lime-glow: rgba(200, 232, 74, 0.35);

  --ice: #e8efff;
  --fog: #b6c4e0;
  --mute: #6f80a6;
  --dim: #4a587a;

  --blue-glow: 60% 0.18 245;

  /* Type */
  --f-display: "Sora", "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Sora", "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --r-xs: 0;
  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;
  --r-xl: 0;

  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1360px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  background: var(--navy-900);
  color: var(--ice);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "ss01", "ss02";
}

/* Backdrop: blue ambient glow + dot pattern */
.app {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}
.app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 80% 15%, oklch(45% 0.18 245 / 0.45), transparent 60%),
    radial-gradient(1100px 800px at 10% 90%, oklch(40% 0.16 250 / 0.4), transparent 60%),
    radial-gradient(600px 500px at 50% 50%, oklch(38% 0.14 255 / 0.25), transparent 70%),
    var(--navy-900);
}
.app::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
}
.app[data-bg="dots"]::after {
  background-image: radial-gradient(circle, rgba(151, 184, 255, 0.18) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
}
.app[data-bg="grid"]::after {
  background-image:
    radial-gradient(circle, rgba(151, 184, 255, 0.16) 1.1px, transparent 1.1px),
    linear-gradient(to right, rgba(151, 184, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(151, 184, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px, 84px 84px, 84px 84px;
}
.app[data-bg="anchors"]::after {
  background-image:
    radial-gradient(circle, rgba(200, 232, 74, 0.45) 1.6px, transparent 1.6px),
    radial-gradient(circle, rgba(151, 184, 255, 0.14) 1.1px, transparent 1.1px);
  background-size: 112px 112px, 28px 28px;
}

/* Container */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1.0; letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.028em; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; }
p { line-height: 1.55; color: var(--fog); margin: 0; }

.mono { font-family: var(--f-mono); font-feature-settings: "ss01"; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--lime);
  display: inline-block;
  box-shadow: 0 0 12px var(--lime-glow);
  /* a tiny cube nod */
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

/* Buttons — sharp 90° corners */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 0;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--lime);
  color: var(--navy-900);
}
.btn-primary:hover { transform: translateY(-1px); background: #d6f25a; }
.btn-ghost {
  background: rgba(20, 37, 68, 0.5);
  color: var(--ice);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { color: var(--lime); }
.btn .arrow {
  display: inline-block;
  width: 14px; height: 12px;
  background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14M13 6l6 6-6 6' stroke='black' stroke-width='2.4' fill='none' stroke-linecap='square' stroke-linejoin='miter'/></svg>") no-repeat center / contain;
}

/* Card surfaces — sharp 90° corners */
.card {
  background: linear-gradient(180deg, rgba(20, 37, 68, 0.7), rgba(10, 21, 48, 0.6));
  border: 1px solid var(--line);
  border-radius: 0;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.card-glow:hover {
  border-color: var(--line-strong);
}

/* Section spacing */
section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px 40px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head .row { display: contents; }
.section-head h2 { max-width: 640px; }
.section-head p { max-width: 340px; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(6, 13, 31, 0.6);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ice); }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
/* Horizontal white logo lockup: cube + 3DFY, with a subtle glow */
.brand-logo { display: inline-flex; align-items: center; gap: 9px;
  filter: drop-shadow(0 0 5px rgba(232,239,255,0.40)) drop-shadow(0 0 13px rgba(151,184,255,0.20));
  transition: filter 0.2s ease; }
.brand:hover .brand-logo { filter: drop-shadow(0 0 7px rgba(232,239,255,0.55)) drop-shadow(0 0 18px rgba(200,232,74,0.22)); }
.brand-cube { height: 50px; width: auto; display: block; }
.brand-word { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link { color: var(--fog); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-link:hover, .nav-link.active { color: var(--lime); }
.nav-cta { padding: 10px 18px; font-size: 14px; }

/* ===== Hero video background ===== */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(60px, 8vw, 100px);
  overflow: hidden;
  min-height: 86vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 50%, #0a1530 0%, #060d1f 100%);
}
.hero-bg video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-bg::after {
  /* tint + edges */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,13,31,0.55) 0%, rgba(6,13,31,0.18) 50%, rgba(6,13,31,0.55) 100%),
    radial-gradient(ellipse at center, transparent 35%, rgba(6,13,31,0.55) 100%);
  pointer-events: none;
}
.hero-scan {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(151, 184, 255, 0.06) 0px,
      rgba(151, 184, 255, 0.06) 1px,
      transparent 1px,
      transparent 3px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.18) 0px,
      rgba(0, 0, 0, 0.18) 2px,
      transparent 2px,
      transparent 4px
    );
  mix-blend-mode: overlay;
  opacity: 0.85;
}
.hero-scan::before {
  /* vignette + flicker */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 50%, transparent 50%, rgba(6,13,31,0.6) 100%);
  animation: hero-flicker 5s steps(8, end) infinite;
}
@keyframes hero-flicker {
  0%, 100% { opacity: 1; }
  47% { opacity: 1; }
  48% { opacity: 0.85; }
  49% { opacity: 1; }
  72% { opacity: 1; }
  73% { opacity: 0.92; }
  74% { opacity: 1; }
}
.hero-corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--lime);
  border-style: solid;
  border-width: 0;
  z-index: 1;
}
.hero-corner.tl { top: 22px; left: 22px; border-top-width: 2px; border-left-width: 2px; }
.hero-corner.tr { top: 22px; right: 22px; border-top-width: 2px; border-right-width: 2px; }
.hero-corner.bl { bottom: 22px; left: 22px; border-bottom-width: 2px; border-left-width: 2px; }
.hero-corner.br { bottom: 22px; right: 22px; border-bottom-width: 2px; border-right-width: 2px; }
.hero-readout {
  position: absolute;
  top: 22px; right: 60px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  display: flex;
  gap: 18px;
}
.hero-readout .dot {
  width: 8px; height: 8px; background: var(--lime); display:inline-block;
  margin-right: 6px; border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}
/* Hero \u2014 left-aligned full-bleed */
.hero .wrap {
  max-width: none;
  margin: 0;
  padding-left: clamp(28px, 5vw, 72px);
  padding-right: clamp(28px, 5vw, 72px);
}
.hero-content { max-width: 720px; position: relative; z-index: 1; }
.hero h1 .lime { color: var(--lime); }
.hero h1 .lime em { font-style: normal; position: relative; }
.hero-sub {
  margin-top: 28px;
  font-size: 17px;
  max-width: 560px;
  color: var(--fog);
  line-height: 1.55;
}
.hero-meta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 720px;
}
.hero-stat {
  background: rgba(6, 13, 31, 0.55);
  backdrop-filter: blur(6px);
  padding: 22px 18px 22px;
}
.hero-stat .num {
  font-family: var(--f-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ice);
}
.hero-stat .lab {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 6px;
}

/* Hero viewport */
.viewport {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 500px at 80% 20%, oklch(50% 0.2 245 / 0.5), transparent 60%),
    linear-gradient(180deg, #0c1936, #050b1c);
}
.viewport .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--lime);
  border-style: solid;
  border-width: 0;
}
.viewport .corner.tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.viewport .corner.tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.viewport .corner.bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.viewport .corner.br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }
.viewport .vp-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lime);
  background: linear-gradient(180deg, transparent, rgba(6,13,31,0.7));
}
.viewport .vp-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(232, 239, 255, 0.55);
}
.viewport .scan {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(151,184,255,0.04) 1px, transparent 1px);
  background-size: 100% 6px;
  pointer-events: none;
}

/* Cube animation in viewport */
.cube-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1400px;
}
.cube {
  width: 220px;
  height: 220px;
  transform-style: preserve-3d;
  animation: spin 22s linear infinite;
}
@keyframes spin {
  from { transform: rotateX(-20deg) rotateY(0deg); }
  to   { transform: rotateX(-20deg) rotateY(360deg); }
}
.cube .face {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--lime);
  background: rgba(200, 232, 74, 0.04);
  box-shadow: inset 0 0 40px rgba(200, 232, 74, 0.08);
}
.cube .face.f { transform: translateZ(110px); }
.cube .face.b { transform: rotateY(180deg) translateZ(110px); }
.cube .face.l { transform: rotateY(-90deg) translateZ(110px); }
.cube .face.r { transform: rotateY(90deg) translateZ(110px); }
.cube .face.t { transform: rotateX(90deg) translateZ(110px); }
.cube .face.bo { transform: rotateX(-90deg) translateZ(110px); }
.cube .node {
  position: absolute;
  width: 22px; height: 22px;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime-glow);
  transform-style: preserve-3d;
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

/* Creature banner — wireframe divider */
.banner {
  padding: clamp(48px, 7vw, 90px) 0;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.banner-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
}
@media (max-width: 880px) {
  .banner-wrap { grid-template-columns: 1fr; }
  .banner-creature { order: -1; }
}
.banner-text { max-width: 560px; }
.banner-h {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 18px 0 18px;
}
.banner-p {
  color: var(--fog);
  font-size: 15px;
  line-height: 1.55;
  max-width: 480px;
}
.banner-creature {
  position: relative;
  aspect-ratio: 5/4;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.banner-creature svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 24px rgba(200, 232, 74, 0.25));
  animation: creature-breathe 9s ease-in-out infinite;
}
@keyframes creature-breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.015) rotate(-0.4deg); }
}
.banner-creature::before {
  /* corner brackets */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--lime) 0 22px, transparent 22px 100%) top left / 100% 1.5px no-repeat,
    linear-gradient(to bottom, var(--lime) 0 22px, transparent 22px 100%) top left / 1.5px 100% no-repeat,
    linear-gradient(to left, var(--lime) 0 22px, transparent 22px 100%) top right / 100% 1.5px no-repeat,
    linear-gradient(to bottom, var(--lime) 0 22px, transparent 22px 100%) top right / 1.5px 100% no-repeat,
    linear-gradient(to right, var(--lime) 0 22px, transparent 22px 100%) bottom left / 100% 1.5px no-repeat,
    linear-gradient(to top, var(--lime) 0 22px, transparent 22px 100%) bottom left / 1.5px 100% no-repeat,
    linear-gradient(to left, var(--lime) 0 22px, transparent 22px 100%) bottom right / 100% 1.5px no-repeat,
    linear-gradient(to top, var(--lime) 0 22px, transparent 22px 100%) bottom right / 1.5px 100% no-repeat;
  opacity: 0.85;
  pointer-events: none;
}
.creature-readout {
  position: absolute;
  bottom: -10px; right: 8px;
  display: flex;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  background: var(--navy-900);
  padding: 4px 8px;
}
.creature-readout span:first-child { color: var(--lime); }

/* Services grid — single row of 6 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1180px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .services-grid { grid-template-columns: 1fr; } }
.service {
  padding: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.service:hover { transform: translateY(-3px); }
.service .svc-img {
  aspect-ratio: 4/3;
  position: relative;
  background: linear-gradient(135deg, #1a2b54, #0a1530);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.service .svc-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(151,184,255,0.05) 25%, transparent 25%, transparent 50%, rgba(151,184,255,0.05) 50%, rgba(151,184,255,0.05) 75%, transparent 75%);
  background-size: 10px 10px;
}
.service .svc-img .svc-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.service .svc-img .svc-ico {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(6,13,31, 0.7);
  border: 1px solid rgba(200, 232, 74, 0.3);
  backdrop-filter: blur(4px);
}
.service .svc-img .ph-label {
  position: absolute;
  bottom: 10px; left: 10px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(232, 239, 255, 0.55);
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px dashed rgba(182, 196, 224, 0.3);
  background: rgba(6,13,31,0.55);
}
.service .svc-body {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.service .num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mute);
}
.service h3 { color: var(--ice); font-size: 16px; line-height: 1.2; }
.service p { font-size: 12px; color: var(--mute); margin-top: 2px; line-height: 1.45; }
.service .tag-row {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

/* Portfolio */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
  align-items: center;
}
.filter {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fog);
  cursor: pointer;
  transition: all 0.15s;
}
.filter:hover { color: var(--ice); border-color: var(--line-strong); }
.filter.on { background: var(--lime); color: var(--navy-900); border-color: var(--lime); }
.filter .count { opacity: 0.55; margin-left: 6px; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.portfolio-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.portfolio-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .portfolio-grid, .portfolio-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .portfolio-grid, .portfolio-grid.cols-2, .portfolio-grid.cols-4 { grid-template-columns: 1fr; } }

.proj {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-700);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.proj:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.proj.wide { grid-column: span 2; }
.proj-thumb {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2b54, #0a1530);
  flex: 1 1 auto;
  min-height: 0;
}
.proj.wide .proj-thumb { aspect-ratio: auto; flex: 1 1 auto; }

.project-image,
.case-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-image {
  transition: transform 0.5s ease, filter 0.5s ease;
}
.proj:hover .project-image { transform: scale(1.035); filter: brightness(1.08); }
.case-image { z-index: 0; }
.case-media::after,
.proj-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6,13,31,0.08), rgba(6,13,31,0.24));
}
.case-strip {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 360px;
}
.case-strip div {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: rgba(6, 13, 31, 0.72);
  border: 1px solid rgba(232, 239, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.case-strip div {
  position: relative;
  overflow: hidden;
}
.case-strip div span,
.gallery-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 239, 255, 0.86);
  background: rgba(6, 13, 31, 0.78);
  border: 1px solid rgba(232, 239, 255, 0.18);
  padding: 5px 8px;
  max-width: calc(100% - 20px);
}
.gallery-card .proj-thumb::after {
  background: linear-gradient(180deg, rgba(6,13,31,0.04), rgba(6,13,31,0.32));
}
.proj-thumb .badge-mode,
.proj-thumb .specs,
.case-media .badge-mode,
.case-media .specs,
.case-detail .badge-mode { z-index: 2; }
.proj-thumb .placeholder {
  position: absolute;
  inset: 0;
  background-size: 14px 14px;
  background-image: linear-gradient(135deg, rgba(151,184,255,0.04) 25%, transparent 25%, transparent 50%, rgba(151,184,255,0.04) 50%, rgba(151,184,255,0.04) 75%, transparent 75%);
  display: grid; place-items: center;
}
.proj-thumb .placeholder span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(182, 196, 224, 0.6);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px dashed rgba(182, 196, 224, 0.3);
  border-radius: 0;
  background: rgba(6,13,31,0.5);
}
.proj-thumb .badge-mode {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 0;
  background: rgba(6,13,31,0.78);
  color: var(--lime);
  border: 1px solid rgba(200, 232, 74, 0.3);
}
.proj-thumb .badge-mode.viz { color: #9ec5ff; border-color: rgba(158, 197, 255, 0.3); }
.proj-thumb .specs {
  position: absolute;
  bottom: 12px; right: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(232, 239, 255, 0.75);
  text-align: right;
  background: rgba(6,13,31,0.7);
  padding: 6px 10px;
  border-radius: 0;
  border: 1px solid var(--line);
  line-height: 1.5;
}
.proj-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.proj-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.proj-title { font-family: var(--f-display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ice); }
.proj-client { font-size: 13px; color: var(--fog); }
.proj-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.proj-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.proj-tag::before { content: "/"; margin-right: 6px; color: var(--dim); }

/* Case study — landscape hero + tall portrait detail + text below */
.case {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-800);
}
.case-media {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #14213f, #060d1f);
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-detail {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  background: linear-gradient(180deg, #18284d, #0a1530);
  overflow: hidden;
}
.case-body {
  grid-column: 1;
  grid-row: 2;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--line);
}
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
  .case-media { grid-column: 1; grid-row: 1; aspect-ratio: 16/9; border-right: 0; }
  .case-detail { grid-column: 1; grid-row: 2; aspect-ratio: 4/3; border-top: 1px solid var(--line); }
  .case-body { grid-column: 1; grid-row: 3; border-right: 0; border-top: 1px solid var(--line); }
}

/* Inner placeholders */
.case-media .placeholder,
.case-detail .placeholder {
  position: absolute; inset: 0;
  background-image: linear-gradient(135deg, rgba(151,184,255,0.05) 25%, transparent 25%, transparent 50%, rgba(151,184,255,0.05) 50%, rgba(151,184,255,0.05) 75%, transparent 75%);
  background-size: 14px 14px;
  display: grid; place-items: center;
}
.case-media .placeholder {
  background-image:
    radial-gradient(circle at 30% 40%, rgba(158, 197, 255, 0.1), transparent 50%),
    linear-gradient(135deg, rgba(151,184,255,0.05) 25%, transparent 25%, transparent 50%, rgba(151,184,255,0.05) 50%, rgba(151,184,255,0.05) 75%, transparent 75%);
  background-size: auto, 14px 14px;
}
.case-media .ph-label,
.case-detail .ph-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(182, 196, 224, 0.55);
  padding: 6px 10px;
  border: 1px dashed rgba(182, 196, 224, 0.28);
  background: rgba(6,13,31,0.5);
}
.case-media .badge-mode,
.case-detail .badge-mode {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(200,232,74,0.3);
  background: rgba(6,13,31,0.78);
  padding: 4px 8px;
  z-index: 2;
}
.case-media .specs {
  position: absolute;
  bottom: 14px; right: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(232, 239, 255, 0.75);
  text-align: right;
  background: rgba(6,13,31,0.78);
  padding: 6px 10px;
  border: 1px solid var(--line);
  line-height: 1.5;
}
.case-detail .specs {
  position: absolute;
  bottom: 14px; right: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(232, 239, 255, 0.75);
  text-align: right;
  background: rgba(6,13,31,0.78);
  padding: 6px 10px;
  border: 1px solid var(--line);
  line-height: 1.5;
}
.case-body h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; }
.case-body p { font-size: 14px; }
.case-body .specs-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 8px;
}
.case-body .specs-table .row {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.case-body .specs-table .row span:first-child {
  color: var(--mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.case-body .specs-table .row span:last-child { color: var(--ice); }

/* Process / Capabilities */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .process { grid-template-columns: repeat(2, 1fr); } }
.step {
  padding: 26px 22px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(20, 37, 68, 0.4);
  position: relative;
}
.step .step-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--lime);
  letter-spacing: 0.16em;
  margin-bottom: 24px;
}
.step h4 { font-family: var(--f-display); font-size: 18px; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--ice); }
.step p { font-size: 13px; color: var(--mute); }

/* Tech stack */
.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.chip {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 0;
  border: 1px solid var(--line);
  color: var(--fog);
  background: rgba(20, 37, 68, 0.4);
  letter-spacing: 0.04em;
}
.chip strong { color: var(--lime); font-weight: 500; margin-right: 4px; }

/* Contact CTA */
.cta-band {
  border-radius: 0;
  border: 1px solid var(--line-strong);
  padding: clamp(40px, 6vw, 76px);
  background:
    radial-gradient(600px 400px at 80% 20%, oklch(50% 0.2 245 / 0.4), transparent 60%),
    linear-gradient(135deg, #0c1936, #060d1f);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 280px; height: 280px;
  background: var(--lime);
  border-radius: 50%;
  opacity: 0.06;
  filter: blur(80px);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 880px) { .cta-grid { grid-template-columns: 1fr; } }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(6,13,31,0.4);
  transition: border-color 0.2s;
}
.contact-row:hover { border-color: var(--lime); }
.contact-row .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.contact-row .val { color: var(--ice); font-size: 15px; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 40px;
  margin-top: 80px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--mute);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}
.footer .credit { color: var(--lime); }

/* Footer brand card */
.footer-card {
  position: relative;
  margin-bottom: 40px;
  padding: 22px 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
background:
    radial-gradient(
      ellipse 300px 100% at 50% 50%,
      rgba(74, 214, 240, 0.55) 0%,
      rgba(74, 214, 240, 0.38) 30%,
      rgba(47, 134, 164, 0.18) 60%,
      rgba(29, 63, 110, 0.07) 85%,
      rgba(10, 21, 48, 0.05) 100%
    );
  border: 1px solid rgba(120, 210, 235, 0.30);
}
.footer-card-corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--lime);
  opacity: 0.7;
}
.footer-card-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.footer-card-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.footer-card-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.footer-card-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.footer-logo {
  width: 80px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(74, 214, 240, 0.55))
          drop-shadow(0 0 34px rgba(60, 180, 220, 0.35));
}
.footer-tagline {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
  text-align: center;
}

/* Footer legal links */
.footer-legal {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: var(--mute);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-legal a:hover { color: var(--lime); }

@media (max-width: 560px) {
  .footer-tagline { font-size: 12px; letter-spacing: 0.16em; }
  .footer-logo { width: 124px; }
}

/* Marquee (logos) */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 32s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fog);
  opacity: 0.55;
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
}
.marquee-item::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--lime);
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
  opacity: 0.7;
}

/* Modal */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(6, 13, 31, 0.78);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: grid; place-items: center;
  padding: 30px;
}
.modal {
  width: min(1100px, 100%);
  max-height: 90vh;
  background: var(--navy-800);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  overflow: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(6,13,31,0.7);
  color: var(--ice);
  cursor: pointer;
  display: grid; place-items: center;
  z-index: 2;
  font-size: 18px;
}
.modal-close:hover { border-color: var(--lime); color: var(--lime); }

/* ===== Ambient wireframe shapes (decorative) ===== */
.wf {
  position: absolute;
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
}
.wf.subtle { opacity: 0.10; }
.wf svg { width: 100%; height: 100%; display: block; }
.wf svg path,
.wf svg polygon,
.wf svg circle,
.wf svg line,
.wf svg rect {
  stroke: var(--lime);
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.wf-spin { animation: wf-spin 60s linear infinite; transform-origin: 50% 50%; }
.wf-spin-rev { animation: wf-spin 80s linear infinite reverse; transform-origin: 50% 50%; }
.wf-float { animation: wf-float 18s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes wf-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes wf-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(180deg); }
}
section { position: relative; }
section > .wrap { position: relative; z-index: 1; }


/* Utility */
.hide { display: none !important; }
.spacer { flex: 1; }

/* ============ PRELOADER (HUD scene loader) ============ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-900);
  overflow: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* faint grid that fades toward the edges */
.pl-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(151,184,255,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(151,184,255,0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 35%, transparent 78%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 35%, transparent 78%);
  opacity: 0.9;
}

/* HUD corner brackets */
.pl-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--lime);
  opacity: 0.85;
}
.pl-corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.pl-corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.pl-corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.pl-corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }

/* HUD labels */
.pl-hud {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pl-tl { top: 28px; left: 44px; color: var(--ice); }
.pl-tr { top: 28px; right: 44px; }
.pl-bl { bottom: 28px; left: 44px; }
.pl-br { bottom: 28px; right: 44px; }
.pl-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mute); display: inline-block;
}
.pl-dot-lime {
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime-glow);
  animation: pl-blink 1.3s ease-in-out infinite;
}
@keyframes pl-blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

/* center stack */
.pl-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(300px, 70vw);
}
.pl-cube {
  width: 86px; height: 86px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
}
.pl-cube img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(232,239,255,0.45))
          drop-shadow(0 0 18px rgba(200,232,74,0.22));
  animation: pl-spin 7s linear infinite;
}
@keyframes pl-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.pl-word {
  height: 30px; width: auto;
  filter: drop-shadow(0 0 6px rgba(232,239,255,0.40))
          drop-shadow(0 0 16px rgba(151,184,255,0.22));
  margin-bottom: 30px;
}
.pl-bar {
  width: 100%;
  height: 2px;
  background: rgba(151,184,255,0.15);
  overflow: hidden;
}
.pl-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime-glow);
  transition: width 0.25s ease;
}
.pl-meta {
  width: 100%;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.pl-pct { color: var(--lime); }

@media (max-width: 560px) {
  .pl-tr, .pl-br { display: none; }
  .pl-hud { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-cube img, .pl-dot-lime { animation: none; }
}

/* ============ LARGE-SCREEN SCALING ============ */
/* Below 1920px nothing changes. Above it, the layout widens and the
   type scale grows so the site fills big monitors instead of sitting
   in a narrow centred column. */
@media (min-width: 1920px) {
  :root {
    --maxw: 1680px;
    --pad: clamp(56px, 4.5vw, 88px);
  }
  h1 { font-size: 96px; }
  h2 { font-size: 56px; }
  h3 { font-size: 32px; }
  .hero-content { max-width: 900px; }
  .section-head h2 { max-width: 820px; }
}
@media (min-width: 2560px) {
  :root {
    --maxw: 2040px;
    --pad: 96px;
  }
  h1 { font-size: 116px; }
  h2 { font-size: 68px; }
  h3 { font-size: 36px; }
  .hero-content { max-width: 1080px; }
  section { padding: clamp(120px, 8vw, 200px) 0; }
}
@media (min-width: 3400px) {
  :root { --maxw: 2560px; }
}

/* ===== Hero scroll hint (pulsing line + label, over video) ===== */
.hero-scroll-hint {
  position: absolute;
  bottom: clamp(20px, 3vw, 34px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-scroll-hint.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}
.hero-scroll-hint .scroll-line {
  display: block;
  width: 2px;
  height: 46px;
  background: linear-gradient(to bottom, var(--lime), transparent);
  box-shadow: 0 0 8px var(--lime-glow);
  transform-origin: center center;
  animation: scrollPulse3dfy 2s ease-in-out infinite !important;
}
.hero-scroll-hint .scroll-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice);
  text-shadow: 0 1px 8px rgba(6, 13, 31, 0.8);
}
@keyframes scrollPulse3dfy {
  0%   { opacity: 0.3; transform: scaleY(0.6); }
  50%  { opacity: 1;   transform: scaleY(1); }
  100% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ===== Back to top button ===== */
.back-to-top {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 60;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 13, 31, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.2s ease, background 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--lime);
  background: rgba(10, 21, 48, 0.85);
}
.back-to-top .btt-arrow {
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--lime);
  border-right: 2px solid var(--lime);
  transform: rotate(-45deg) translate(-1px, 1px);
  transition: filter 0.2s ease;
}
.back-to-top:hover .btt-arrow {
  filter: drop-shadow(0 0 6px var(--lime-glow));
}

/* ===== Project modal — rich case study ===== */
.case-study { margin-top: 16px; }
.case-study .case-lede {
  color: var(--ice);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 8px;
}
.case-study .case-section {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.case-study .case-section:first-of-type { border-top: 0; padding-top: 4px; margin-top: 12px; }
.case-study .case-h {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 10px;
}
.case-study .case-section p {
  color: var(--fog);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}
.case-study .case-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.case-study .case-list li {
  color: var(--fog);
  font-size: 14px;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}
.case-study .case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime-glow);
}
.case-study .case-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-study .case-tool {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fog);
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(6, 13, 31, 0.4);
}
@media (max-width: 760px) {
  .modal [style*="grid-template-columns: 1.4fr 1fr"],
  .modal [style*="gridTemplateColumns"] { grid-template-columns: 1fr !important; }
}

/* ===== Case study award badge ===== */
.case-study .case-award {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 16px;
  padding: 8px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(200, 232, 74, 0.35);
  background: rgba(200, 232, 74, 0.06);
  box-shadow: 0 0 18px rgba(200, 232, 74, 0.12) inset;
}
.case-study .case-award-ico {
  font-size: 13px;
  line-height: 1;
  filter: drop-shadow(0 0 6px var(--lime-glow));
}

