  :root {
    --bg-space: #0a0a0f;
    --bg-navy: #0d1117;
    --teal: #00e5ff;
    --teal-dim: rgba(0, 229, 255, 0.15);
    --teal-glow: rgba(0, 229, 255, 0.35);
    --teal-soft: rgba(0, 229, 255, 0.08);
    --star-white: #e8eaf0;
    --text-dim: #9aa3b2;
    --glass: rgba(255, 255, 255, 0.04);
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg-space);
    color: var(--star-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; }
  a { color: var(--teal); text-decoration: none; }
  :focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

  /* ---------- WebGL canvas: fixed behind everything ---------- */
  #space {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100vw;
    height: 100vh;
  }

  /* ---------- Content sits above ---------- */
  #page { position: relative; z-index: 1; }

  .container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

  /* ---------- Logo lockup ---------- */
  .logo {
    display: flex;
    align-items: center;
    gap: 11px;
  }
  .logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
  .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-family: var(--font-display);
  }
  .logo-perigee {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.32em;
  }
  .logo-labs {
    color: #8db8e8;
    font-weight: 500;
    font-size: 0.62rem;
    letter-spacing: 0.52em;
    margin-top: 4px;
  }

  /* ---------- Navigation ---------- */
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.12);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
  }
  .nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
  .nav-links a {
    color: var(--star-white);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  .nav-links a:hover, .nav-links a.active { color: var(--teal); }
  .nav-cta {
    background: var(--teal);
    color: var(--bg-space) !important;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
  }
  .nav-cta:hover { transform: scale(1.04); box-shadow: 0 0 18px var(--teal-glow); }

  .hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px; height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
  .hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--star-white);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ---------- Hero ---------- */
  .hero {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero-content { padding: 90px 24px; max-width: 800px; }
  .hero h1 {
    font-size: clamp(2.3rem, 6.2vw, 3.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
  }
  .hero h1 .accent { color: var(--teal); }
  .hero .lede {
    color: var(--star-white);
    font-size: 1.12rem;
    max-width: 640px;
    margin: 0 auto 36px;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.9);
  }
  .hero-ctas {
    display: flex; gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 26px;
  }
  .btn-primary {
    background: var(--teal);
    color: var(--bg-space);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
  }
  .btn-primary:hover {
    transform: scale(1.045);
    animation: glowPulse 1.6s ease-in-out infinite;
  }
  @keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 22px var(--teal-glow), 0 0 44px rgba(0,229,255,0.18); }
    50%      { box-shadow: 0 0 32px var(--teal-glow), 0 0 64px rgba(0,229,255,0.28); }
  }
  .btn-ghost {
    color: var(--star-white);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 6px;
    border: 1px solid rgba(0, 229, 255, 0.35);
    background: rgba(10, 10, 15, 0.35);
    backdrop-filter: blur(4px);
    display: inline-block;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
  }
  .btn-ghost:hover { color: var(--teal); border-color: var(--teal); box-shadow: 0 0 14px rgba(0,229,255,0.15); }
  .hero-kicker {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
  }
  .scroll-hint {
    margin-top: 48px;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(154, 163, 178, 0.6);
    animation: hintFloat 2.4s ease-in-out infinite;
  }
  @keyframes hintFloat {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(6px); opacity: 1; }
  }

  /* ---------- Sections ---------- */
  section { padding: 110px 0; position: relative; }

  /* Semi-transparent so the warp stays visible behind content */
  .panel-a {
    background:
      radial-gradient(ellipse 70% 50% at 20% 10%, rgba(64, 84, 255, 0.06), transparent 60%),
      radial-gradient(ellipse 60% 45% at 85% 80%, rgba(140, 64, 255, 0.06), transparent 60%),
      rgba(10, 10, 15, 0.55);
  }
  .panel-b {
    background:
      radial-gradient(ellipse 65% 50% at 80% 15%, rgba(64, 130, 255, 0.06), transparent 60%),
      radial-gradient(ellipse 55% 45% at 10% 85%, rgba(110, 64, 255, 0.06), transparent 60%),
      rgba(13, 17, 23, 0.6);
  }

  .eyebrow {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 12px;
  }
  .section-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
  }
  .section-sub { color: var(--text-dim); max-width: 660px; margin-bottom: 48px; }

  /* ---------- Who it's for ---------- */
  .trades {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 36px;
  }
  .trade-chip {
    font-family: var(--font-display);
    font-size: 0.88rem;
    color: var(--star-white);
    background: var(--glass);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 999px;
    padding: 7px 16px;
    backdrop-filter: blur(8px);
  }
  .pain-list { max-width: 700px; }
  .pain-list p { color: var(--star-white); margin-bottom: 14px; }
  .pain-list p strong { color: var(--teal); font-weight: 600; }

  /* ---------- Case study ---------- */
  .case-card {
    background: var(--glass);
    border: 1px solid var(--teal-dim);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px;
  }
  .badge-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--teal-soft);
    border: 1px solid var(--teal-dim);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 18px;
  }
  .badge-live::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 8px var(--teal);
  }
  .case-card h3 { font-size: 1.45rem; font-weight: 600; margin-bottom: 6px; }
  .case-sub { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 24px; }
  .case-card p { margin-bottom: 18px; max-width: 720px; }
  .case-card p.problem { color: var(--text-dim); }

  /* ---------- Telemetry stat panels ---------- */
  .stats-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
  .stat-pill {
    position: relative;
    overflow: hidden;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid var(--teal-dim);
    border-radius: 999px;
    padding: 16px 26px;
    text-align: center;
    min-width: 150px;
    flex: 1 1 150px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }
  .stat-pill::after {
    content: "";
    position: absolute;
    inset: -100% 0 auto 0;
    height: 200%;
    background: repeating-linear-gradient(
      to bottom,
      rgba(0, 229, 255, 0.04) 0px,
      rgba(0, 229, 255, 0.04) 1px,
      transparent 1px,
      transparent 4px
    );
    animation: scan 7s linear infinite;
    pointer-events: none;
  }
  @keyframes scan { to { transform: translateY(50%); } }
  .stat-pill:hover { box-shadow: 0 0 16px rgba(0, 229, 255, 0.18); transform: translateY(-2px); }
  .stat-pill .num {
    font-family: var(--font-mono);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--teal);
    display: block;
    line-height: 1.2;
  }
  .stat-pill .label {
    font-size: 0.76rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    display: block;
    margin-top: 4px;
  }

  /* ---------- Pricing ---------- */
  .tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
  }
  .tier-card {
    background: var(--glass);
    border: 1px solid var(--teal-dim);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  }
  .tier-card:hover {
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.16), 0 0 60px rgba(0, 229, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.45);
    transform: translateY(-4px);
  }
  .tier-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .tier-price {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--teal);
    line-height: 1.1;
  }
  .tier-time {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 4px 0 12px;
  }
  .tier-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
  }
  .tier-desc { color: var(--text-dim); font-size: 0.92rem; flex: 1; }
  .retainer-note {
    background: var(--teal-soft);
    border: 1px solid var(--teal-dim);
    border-radius: 10px;
    backdrop-filter: blur(12px);
    padding: 22px 26px;
    font-size: 0.96rem;
    max-width: 860px;
  }

  /* ---------- About ---------- */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .about-grid h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 16px; }
  .about-grid p { margin-bottom: 16px; }
  .about-aside {
    background: var(--glass);
    border: 1px solid var(--teal-dim);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    padding: 28px;
  }
  .about-aside h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 12px;
  }
  .about-aside p { color: var(--text-dim); font-size: 0.95rem; margin: 0; }

  /* ---------- Contact ---------- */
  .contact { text-align: center; }
  .contact p { color: var(--text-dim); max-width: 560px; margin: 0 auto 32px; }
  .contact-email {
    display: block;
    margin-top: 20px;
    font-family: var(--font-display);
    color: var(--teal);
    transition: text-shadow 0.25s ease;
  }
  .contact-email:hover { text-shadow: 0 0 12px var(--teal-glow); }

  /* ---------- Footer ---------- */
  footer {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 229, 255, 0.12);
    padding: 40px 0;
    position: relative;
    z-index: 1;
  }
  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-inner p { color: var(--text-dim); font-size: 0.88rem; }
  .footer-links { display: flex; gap: 20px; }
  .footer-links a { color: var(--text-dim); font-size: 0.88rem; transition: color 0.2s ease; }
  .footer-links a:hover { color: var(--teal); }
  .footer-tagline {
    margin-top: 14px;
    font-size: 0.78rem;
    color: rgba(154, 163, 178, 0.55);
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    width: 100%;
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 1000px) {
    .tiers { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
  }
  @media (max-width: 720px) {
    section { padding: 80px 0; }
    .tiers { grid-template-columns: 1fr; }
    .hamburger { display: flex; }
    .nav-links {
      position: absolute;
      top: 64px; left: 0; right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      background: rgba(10, 10, 15, 0.96);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(0, 229, 255, 0.12);
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
    .nav-links.open { max-height: 380px; }
    .nav-links li { border-top: 1px solid rgba(255, 255, 255, 0.05); }
    .nav-links a { display: block; padding: 16px 24px; }
    .nav-links .nav-cta { margin: 14px 24px 18px; text-align: center; }
    .case-card { padding: 28px 22px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn-primary:hover, .scroll-hint, .stat-pill::after { animation: none !important; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
  }

  /* ---------- Projects section (case studies) ---------- */
  .page-hero { padding: 90px 0 64px; }
  .page-hero h1 {
    font-size: clamp(1.9rem, 4.6vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
    max-width: 21ch;
  }
  .page-hero .lede { color: var(--text-dim); max-width: 640px; font-size: 1.08rem; }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 40px;
  }
  .project-card {
    background: var(--glass);
    border: 1px solid var(--teal-dim);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--star-white);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  }
  .project-card:hover {
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.16), 0 0 60px rgba(0, 229, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.45);
    transform: translateY(-4px);
    text-decoration: none;
  }
  .project-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid var(--teal-dim);
    background: var(--bg-navy);
  }
  .project-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
  .project-card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 4px; }
  .project-card .card-sub {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
  }
  .project-card p { color: var(--text-dim); font-size: 0.93rem; flex: 1; margin-bottom: 16px; }
  .card-link { color: var(--teal); font-weight: 600; font-size: 0.92rem; }

  .shot {
    background: var(--glass);
    border: 1px solid var(--teal-dim);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
  }
  .shot img { display: block; width: 100%; height: auto; }
  .shot-scroll { max-height: 72vh; overflow-y: auto; overscroll-behavior: contain; }
  figure.case-fig { margin: 26px 0 0; }
  .shot-cap {
    font-size: 0.84rem;
    color: var(--text-dim);
    margin-top: 10px;
    display: flex;
    gap: 9px;
    align-items: baseline;
  }
  .shot-cap .cap-tag {
    flex: none;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    border: 1px solid var(--teal-dim);
    border-radius: 5px;
    padding: 2px 8px;
  }
  .detail-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }

  .step-h { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 10px; }
  .step-k {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    color: var(--teal);
    background: var(--teal-soft);
    border: 1px solid var(--teal-dim);
    border-radius: 6px;
    padding: 3px 9px;
    flex: none;
  }
  .step-h h3 { font-size: 1.2rem; font-weight: 600; }
  .step-body { color: var(--text-dim); max-width: 720px; }
  .back-link {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 22px;
  }
  .back-link:hover { color: var(--teal); }

  @media (max-width: 1000px) {
    .project-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 860px) {
    .detail-grid2 { grid-template-columns: 1fr; }
  }
