:root {
    --bg: #060608;
    --surface: #0d0d12;
    --border: rgba(255,255,255,0.06);
    --white: #f0ede8;
    --muted: rgba(240,237,232,0.38);
    --accent: #c8f060;
    --accent2: #60b8f0;
    --accent3: #f060a8;
    --glow: rgba(200,240,96,0.18);
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--white);
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    overflow-x: hidden;
    cursor: none;
  }

  /* CUSTOM CURSOR */
  .cursor {
    position: fixed; top: 0; left: 0; width: 10px; height: 10px;
    background: var(--accent); border-radius: 50%; pointer-events: none;
    z-index: 9999; transform: translate(-50%,-50%);
    transition: transform 0.08s, background 0.2s;
    mix-blend-mode: exclusion;
  }
  .cursor-ring {
    position: fixed; top: 0; left: 0; width: 36px; height: 36px;
    border: 1px solid rgba(200,240,96,0.5); border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%,-50%);
    transition: transform 0.18s cubic-bezier(.23,1,.32,1), width 0.3s, height 0.3s, border-color 0.2s;
  }

  /* NOISE OVERLAY */
  body::before {
    content: '';
    position: fixed; inset: 0; pointer-events: none; z-index: 100;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
  }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    padding: 20px 48px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s, background 0.4s;
  }
  nav.scrolled {
    border-color: var(--border);
    background: rgba(6,6,8,0.85);
    backdrop-filter: blur(20px);
  }
  .nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px; letter-spacing: 0.12em;
    color: var(--white); text-decoration: none;
    position: relative; display: inline-flex; align-items: center;
    padding: 8px 14px;
  }
  .nav-logo span { color: var(--accent); }

  /* HUD corner brackets */
  .nav-logo::before, .nav-logo::after {
    content: '';
    position: absolute; width: 10px; height: 10px;
    border-color: var(--accent); border-style: solid;
    opacity: 0;
    animation: hud-appear 0.6s cubic-bezier(.16,1,.3,1) 0.4s forwards;
    transition: width 0.3s cubic-bezier(.16,1,.3,1), height 0.3s cubic-bezier(.16,1,.3,1);
  }
  .nav-logo::before { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
  .nav-logo::after  { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
  .hud-tr, .hud-bl {
    position: absolute; width: 10px; height: 10px;
    border-color: var(--accent); border-style: solid;
    opacity: 0; pointer-events: none;
    animation: hud-appear 0.6s cubic-bezier(.16,1,.3,1) 0.4s forwards;
    transition: width 0.3s cubic-bezier(.16,1,.3,1), height 0.3s cubic-bezier(.16,1,.3,1);
  }
  .hud-tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
  .hud-bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
  .nav-logo:hover::before, .nav-logo:hover::after,
  .nav-logo:hover .hud-tr, .nav-logo:hover .hud-bl {
    width: 18px; height: 18px;
  }
  /* Scan line on hover */
  .hud-scan {
    position: absolute; left: 14px; right: 14px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,240,96,0.45), transparent);
    top: 50%; opacity: 0; transform: scaleX(0);
    transition: opacity 0.2s, transform 0.45s cubic-bezier(.16,1,.3,1);
    pointer-events: none;
  }
  .nav-logo:hover .hud-scan { opacity: 1; transform: scaleX(1); }
  /* Pulsing glow on brackets */
  .nav-logo::before {
    animation: hud-appear 0.6s cubic-bezier(.16,1,.3,1) 0.4s forwards,
               hud-pulse 3s ease-in-out 1.2s infinite;
  }
  @keyframes hud-appear {
    from { opacity: 0; width: 4px; height: 4px; }
    to   { opacity: 1; width: 10px; height: 10px; }
  }
  @keyframes hud-pulse {
    0%, 100% { border-color: var(--accent); }
    50%       { border-color: rgba(200,240,96,0.4); }
  }
  .nav-links { display: flex; gap: 40px; list-style: none; }
  .nav-links a {
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); text-decoration: none;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--white); }
  .nav-cta {
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--bg); background: var(--accent); border: none;
    padding: 10px 22px; cursor: none;
    font-family: 'DM Mono', monospace; font-weight: 500;
    transition: background 0.2s, transform 0.15s;
  }
  .nav-cta:hover { background: #d8ff60; transform: translateY(-1px); }

  /* HERO */
  .hero {
    min-height: 100vh;
    padding: 160px 48px 100px;
    display: flex; flex-direction: column; justify-content: flex-end;
    position: relative; overflow: hidden;
  }
  /* BG VELOCITY CANVAS — full hero background */
  .velocity-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    overflow: hidden;
  }
  /* Speed streaks */
  .speed-lane {
    position: absolute; left: 0; right: 0; height: 1px;
    overflow: hidden;
  }
  .speed-streak {
    position: absolute; top: 0;
    height: 2px; border-radius: 99px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 40%, rgba(200,240,96,0.5) 70%, transparent 100%);
    animation: streak linear infinite;
    will-change: transform;
  }
  .speed-streak.dim {
    background: linear-gradient(90deg, transparent 0%, rgba(200,240,96,0.12) 50%, transparent 100%);
    height: 1px;
  }
  .speed-streak.bright {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.85) 25%, var(--accent) 55%, transparent 100%);
    height: 1.5px;
  }
  .speed-streak.blue {
    background: linear-gradient(90deg, transparent 0%, rgba(96,184,240,0.4) 50%, transparent 100%);
    height: 1px;
  }
  .speed-streak.pink {
    background: linear-gradient(90deg, transparent 0%, rgba(240,96,168,0.3) 50%, transparent 100%);
    height: 1px;
  }
  @keyframes streak {
    0%   { left: -40%; opacity: 0; }
    5%   { opacity: 1; }
    88%  { opacity: 1; }
    100% { left: 110%; opacity: 0; }
  }
  /* Orbital rings — BG layer */
  .orbital-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(200,240,96,0.12);
    animation: spin linear infinite;
    pointer-events: none;
  }
  .orbital-ring.fast  { border-style: solid; border-color: rgba(200,240,96,0.18); }
  .orbital-ring.dashed { border-style: dashed; border-color: rgba(200,240,96,0.08); }
  .orbital-ring .dot {
    position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 12px var(--accent);
  }
  .orbital-ring .dot.blue { background: var(--accent2); box-shadow: 0 0 12px var(--accent2); }
  @keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
  /* All hero content sits above bg */
  .hero-eyebrow, .hero-headline, .hero-sub-row { position: relative; z-index: 1; }

  /* Grid background */
  .hero::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background-image:
      linear-gradient(rgba(200,240,96,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(200,240,96,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  }

  /* Glowing orb */
  .hero-orb {
    position: absolute; top: -200px; right: -100px;
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(200,240,96,0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: orb-drift 12s ease-in-out infinite alternate;
  }
  .hero-orb2 {
    position: absolute; bottom: -150px; left: -50px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(96,184,240,0.07) 0%, transparent 70%);
    pointer-events: none;
    animation: orb-drift 15s ease-in-out infinite alternate-reverse;
  }
  @keyframes orb-drift {
    from { transform: translate(0,0) scale(1); }
    to { transform: translate(40px, 30px) scale(1.08); }
  }

  .hero-eyebrow {
    font-size: 18px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 28px;
    display: flex; align-items: center; gap: 14px;
    opacity: 0; animation: fade-up 0.8s 0.2s forwards;
  }
  .hero-eyebrow::before {
    content: ''; display: block; width: 32px; height: 1px; background: var(--accent);
  }

  .hero-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(76px, 12vw, 176px);
    line-height: 0.88;
    letter-spacing: -0.01em;
    color: var(--white);
    position: relative; z-index: 1;
  }
  .hero-headline .line { display: block; overflow: hidden; }
  .hero-headline .line span {
    display: block;
    opacity: 0; transform: translateY(100%);
    animation: line-reveal 0.9s cubic-bezier(.16,1,.3,1) forwards;
  }
  .hero-headline .line:nth-child(1) span { animation-delay: 0.4s; }
  .hero-headline .line:nth-child(2) span { animation-delay: 0.55s; }
  .hero-headline .line:nth-child(3) span { animation-delay: 0.7s; }

  .hero-headline em {
    font-style: normal; color: transparent;
    -webkit-text-stroke: 2px var(--accent);
  }

  .hero-sub-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-top: 60px; gap: 40px;
    opacity: 0; animation: fade-up 0.8s 0.9s forwards;
  }
  .hero-desc {
    max-width: 400px;
    font-size: 14px; line-height: 1.75;
    color: var(--muted);
  }
  .hero-desc strong { color: var(--white); font-weight: 500; }

  .hero-cta-group { display: flex; gap: 16px; flex-shrink: 0; align-items: center; }
  .btn-primary {
    font-family: 'DM Mono', monospace; font-size: 12px;
    letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
    background: var(--accent); color: var(--bg); border: none;
    padding: 16px 32px; cursor: none;
    transition: background 0.2s, transform 0.15s;
    position: relative; overflow: hidden;
  }
  .btn-primary::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,0.15); transform: translateX(-100%);
    transition: transform 0.3s;
  }
  .btn-primary:hover::after { transform: translateX(0); }
  .btn-primary:hover { transform: translateY(-2px); }

  .btn-ghost {
    font-family: 'DM Mono', monospace; font-size: 12px;
    letter-spacing: 0.16em; text-transform: uppercase;
    background: transparent; color: var(--muted); border: 1px solid var(--border);
    padding: 16px 32px; cursor: none;
    transition: color 0.2s, border-color 0.2s;
  }
  .btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }

  /* TICKER */
  .ticker {
    background: var(--accent); color: var(--bg); overflow: hidden;
    height: 44px; display: flex; align-items: center;
  }
  .ticker-track {
    display: flex; gap: 0; white-space: nowrap;
    animation: ticker 22s linear infinite;
  }
  .ticker-item {
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    font-weight: 500; padding: 0 32px;
    display: flex; align-items: center; gap: 32px;
  }
  .ticker-item::after { content: '✦'; opacity: 0.5; }
  @keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* STATS BAR */
  .stats {
    padding: 80px 48px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .stats::before {
    content: ''; position: absolute; top: 0; left: 48px; right: 48px;
    height: 1px; background: var(--border);
  }
  .stat { padding: 0 40px; border-right: 1px solid var(--border); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: none; }
  .stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 64px; line-height: 1; letter-spacing: -0.01em;
    color: var(--white);
  }
  .stat-num span { color: var(--accent); }
  .stat-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

  /* SECTION COMMON */
  section { padding: 120px 48px; }
  .section-tag {
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 24px;
    display: flex; align-items: center; gap: 12px;
  }
  .section-tag::before { content: '//'; opacity: 0.6; }
  .section-title {
    font-family: 'Fraunces', serif; font-size: clamp(36px, 5vw, 64px);
    font-weight: 300; line-height: 1.1; color: var(--white);
  }
  .section-title em { font-style: italic; color: var(--accent); }

  /* SERVICES */
  .services { background: var(--surface); }
  .services-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px; background: var(--border);
    margin-top: 72px; border: 1px solid var(--border);
  }
  .service-card {
    background: var(--surface);
    padding: 52px 48px;
    position: relative; overflow: hidden;
    transition: background 0.3s;
  }
  .service-card:hover { background: #111118; }
  .service-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 3px; height: 0; background: var(--accent);
    transition: height 0.4s cubic-bezier(.16,1,.3,1);
  }
  .service-card:hover::before { height: 100%; }
  .service-num {
    font-family: 'Bebas Neue', sans-serif; font-size: 13px;
    letter-spacing: 0.2em; color: var(--muted); margin-bottom: 28px;
  }
  .service-name {
    font-family: 'Fraunces', serif; font-size: 28px;
    font-weight: 300; color: var(--white); margin-bottom: 16px; line-height: 1.2;
  }
  .service-desc {
    font-size: 13px; line-height: 1.8; color: var(--muted);
  }
  .service-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px;
  }
  .tag {
    font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
    border: 1px solid var(--border); color: var(--muted);
    padding: 4px 12px;
    transition: border-color 0.2s, color 0.2s;
  }
  .service-card:hover .tag { border-color: rgba(200,240,96,0.3); color: var(--accent); }

  /* PROCESS */
  .process-list { margin-top: 80px; }
  .process-item {
    display: grid; grid-template-columns: 100px 1fr 1fr;
    align-items: center; gap: 40px;
    padding: 40px 0; border-bottom: 1px solid var(--border);
    position: relative;
    transition: padding-left 0.3s;
  }
  .process-item:first-child { border-top: 1px solid var(--border); }
  .process-item:hover { padding-left: 16px; }
  .process-step {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 52px; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.12);
    transition: -webkit-text-stroke-color 0.3s, color 0.3s;
  }
  .process-item:hover .process-step {
    -webkit-text-stroke-color: var(--accent);
  }
  .process-name {
    font-family: 'Fraunces', serif; font-size: 22px; font-weight: 300;
    color: var(--white);
  }
  .process-desc { font-size: 13px; line-height: 1.8; color: var(--muted); }

  /* TECH STACK */
  .tech { background: var(--surface); }
  .tech-grid {
    margin-top: 72px;
    display: grid; grid-template-columns: repeat(6, 1fr);
    gap: 1px; background: var(--border);
    border: 1px solid var(--border);
  }
  .tech-item {
    background: var(--surface);
    padding: 36px 24px;
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
    transition: background 0.2s;
  }
  .tech-item:hover { background: #111118; }
  .tech-icon { font-size: 28px; }
  .tech-name {
    font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); text-align: center;
    transition: color 0.2s;
  }
  .tech-item:hover .tech-name { color: var(--accent); }

  /* CTA SECTION */
  .cta-section {
    text-align: center;
    padding: 160px 48px;
    position: relative; overflow: hidden;
  }
  .cta-section::before {
    content: 'START';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36vw; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.025);
    pointer-events: none; white-space: nowrap;
    letter-spacing: -0.04em;
  }
  .cta-section .section-tag { justify-content: center; }
  .cta-section .section-title { margin-bottom: 24px; }
  .cta-sub {
    font-size: 14px; color: var(--muted); max-width: 420px;
    margin: 0 auto 48px; line-height: 1.8;
  }
  .cta-email {
    display: inline-flex; border: 1px solid var(--border); overflow: hidden;
  }
  .cta-email input {
    background: transparent; border: none; outline: none;
    font-family: 'DM Mono', monospace; font-size: 13px;
    color: var(--white); padding: 16px 24px; width: 280px;
    letter-spacing: 0.04em;
  }
  .cta-email input::placeholder { color: var(--muted); }
  .cta-email button {
    background: var(--accent); border: none; cursor: none;
    font-family: 'DM Mono', monospace; font-size: 11px;
    letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
    color: var(--bg); padding: 16px 28px;
    transition: background 0.2s;
  }
  .cta-email button:hover { background: #d8ff60; }

  /* FOOTER */
  footer {
    padding: 52px 48px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
  }
  .footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px; letter-spacing: 0.12em; color: var(--white);
  }
  .footer-logo span { color: var(--accent); }
  .footer-copy { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
  .footer-links { display: flex; gap: 32px; list-style: none; }
  .footer-links a {
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--muted); text-decoration: none; transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--accent); }

  /* ANIMATIONS */
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes line-reveal {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* SCROLL REVEAL */
  .reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--accent); }

  @media (max-width: 900px) {
    nav { padding: 18px 24px; }
    .nav-links { display: none; }
    .hero { padding: 120px 24px 80px; }
    .hero-sub-row { flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 40px; }
    .hero-desc { max-width: 100%; }
    .hero-cta-group { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; }
    .btn-primary, .btn-ghost { width: 100%; text-align: center; padding: 18px 24px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 40px; padding: 60px 24px; }
    .stat { border-right: none; padding: 0; }
    section { padding: 80px 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .process-item { grid-template-columns: 60px 1fr; }
    .process-desc { display: none; }
    footer { flex-direction: column; gap: 24px; text-align: center; }
  }