/* ============================================================
   GluLabs.ai — design system (derived from the hero splash)
   Deep cosmic navy • teal / purple / amber accents
   Syncopate (display) • Space Grotesk (text) • Fira Code (mono)
   ============================================================ */

:root {
   /* ---- accent scheme — GluLabs logo palette (cyan → violet) ---- */
   --teal: #2BD0E6;
   --purple: #8B7BFF;
   --amber: #5B43F5;

   /* ---- surfaces ---- */
   --bg: #030c1a;
   --bg-1: #050f22;
   --bg-2: #07142b;
   --line: rgba(127, 145, 178, 0.16);
   --line-strong: rgba(127, 145, 178, 0.3);

   /* ---- ink ---- */
   --ink: #e8f2fc;
   --ink-dim: rgba(232, 242, 252, 0.62);
   --ink-faint: rgba(232, 242, 252, 0.4);

   /* ---- type — unified to Space Grotesk everywhere ---- */
   --f-display: "Space Grotesk", system-ui, sans-serif;
   --f-text: "Space Grotesk", system-ui, sans-serif;
   --f-mono: "Space Grotesk", system-ui, sans-serif;

   /* ---- motion ---- */
   --motion: 1; /* scaled by tweaks: 0.4 calm … 1.6 lively */

   --maxw: 1200px;
   --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
   scroll-behavior: smooth;
}

body {
   background: var(--bg);
   color: var(--ink);
   font-family: var(--f-text);
   font-size: 17px;
   line-height: 1.6;
   -webkit-font-smoothing: antialiased;
   overflow-x: hidden;
}

/* persistent cosmic backdrop behind everything */
#starfield {
   position: fixed;
   inset: 0;
   z-index: 0;
   pointer-events: none;
}
body::before {
   /* subtle vignette + accent glows */
   content: "";
   position: fixed;
   inset: 0;
   z-index: 0;
   pointer-events: none;
   background:
      radial-gradient(60% 50% at 50% 0%, rgba(43, 208, 230, 0.1), transparent 70%),
      radial-gradient(55% 45% at 85% 30%, rgba(139, 123, 255, 0.08), transparent 70%),
      radial-gradient(50% 40% at 10% 80%, rgba(91, 67, 245, 0.07), transparent 70%);
}

main,
header,
footer {
   position: relative;
   z-index: 2;
}

a {
   color: inherit;
   text-decoration: none;
}

/* ---------- layout ---------- */
.wrap {
   width: 100%;
   max-width: var(--maxw);
   margin: 0 auto;
   padding: 0 32px;
}

.section {
   padding: clamp(80px, 12vh, 160px) 0;
}

/* ---------- type helpers ---------- */
.eyebrow {
   font-family: var(--f-mono);
   font-weight: 400;
   font-size: 0.72rem;
   letter-spacing: 0.34em;
   text-transform: uppercase;
   color: var(--teal);
   display: inline-flex;
   align-items: center;
   gap: 10px;
}
.eyebrow::before {
   content: "";
   width: 26px;
   height: 1px;
   background: var(--teal);
   opacity: 0.6;
}

h1,
h2,
h3 {
   font-family: var(--f-text);
   font-weight: 600;
   line-height: 1.05;
   letter-spacing: -0.02em;
   text-wrap: balance;
}

.h-display {
   font-size: clamp(2.6rem, 6.5vw, 5.2rem);
   font-weight: 700;
   letter-spacing: -0.035em;
}
.h2 {
   font-size: clamp(2rem, 4vw, 3.2rem);
}
.h3 {
   font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.lead {
   font-size: clamp(1.05rem, 1.5vw, 1.3rem);
   color: var(--ink-dim);
   line-height: 1.65;
   max-width: 56ch;
   text-wrap: pretty;
}

.muted {
   color: var(--ink-dim);
}

.accent {
   color: var(--teal);
}

.mono {
   font-family: var(--f-mono);
}

/* gradient text accent */
.grad {
   background: linear-gradient(100deg, var(--teal), var(--purple) 60%, var(--amber));
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
}

/* ---------- buttons ---------- */
.btn {
   font-family: var(--f-mono);
   font-size: 0.78rem;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   display: inline-flex;
   align-items: center;
   gap: 10px;
   padding: 14px 24px;
   border-radius: 2px;
   border: 1px solid transparent;
   cursor: pointer;
   transition: all 0.35s var(--ease);
   white-space: nowrap;
}
.btn-primary {
   background: var(--teal);
   color: #03130c;
   font-weight: 500;
   box-shadow: 0 0 0 0 rgba(43, 208, 230, 0.5);
}
.btn-primary:hover {
   box-shadow: 0 0 32px -4px var(--teal);
   transform: translateY(-2px);
}
.btn-ghost {
   background: transparent;
   color: var(--ink);
   border-color: var(--line-strong);
}
.btn-ghost:hover {
   border-color: var(--teal);
   color: var(--teal);
   background: rgba(43, 208, 230, 0.06);
}
.btn .arrow {
   transition: transform 0.35s var(--ease);
}
.btn:hover .arrow {
   transform: translateX(4px);
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
   opacity: 0;
   transform: translateY(28px);
   transition:
      opacity 0.9s var(--ease),
      transform 0.9s var(--ease);
   transition-delay: var(--d, 0ms);
}
.reveal.in {
   opacity: 1;
   transform: none;
}
@media (prefers-reduced-motion: reduce) {
   .reveal {
      opacity: 1;
      transform: none;
   }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   z-index: 50;
   transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
   border-bottom: 1px solid transparent;
}
.nav.scrolled {
   background: rgba(3, 12, 26, 0.72);
   backdrop-filter: blur(14px);
   border-bottom-color: var(--line);
}
.nav-inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   height: 96px;
}
.logo {
   font-family: var(--f-display);
   font-weight: 700;
   font-size: 1.05rem;
   letter-spacing: 0.02em;
   display: flex;
   align-items: center;
   gap: 9px;
   background: linear-gradient(100deg, var(--teal), var(--purple) 55%, var(--amber));
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
}
.logo .dot {
   width: 9px;
   height: 9px;
   border-radius: 50%;
   background: var(--teal);
   box-shadow: 0 0 12px var(--teal);
   animation: dot-pulse 2.6s ease-in-out infinite;
}
@keyframes dot-pulse {
   0%, 100% { transform: scale(1); opacity: 1; }
   50% { transform: scale(1.4); opacity: 0.6; }
}
.logo .ai {
   color: inherit;
}
.nav-links {
   display: flex;
   align-items: center;
   gap: 36px;
}
.nav-links a {
   font-family: var(--f-mono);
   white-space: nowrap;
   font-size: 0.74rem;
   letter-spacing: 0.1em;
   text-transform: uppercase;
   color: var(--ink-dim);
   transition: color 0.3s;
   position: relative;
}
.nav-links a:hover {
   color: var(--ink);
}
.nav-links a.nav-cta {
   color: var(--teal);
   border: 1px solid var(--line-strong);
   padding: 9px 18px;
   border-radius: 2px;
   transition: all 0.3s var(--ease);
}
.nav-links a.nav-cta:hover {
   border-color: var(--teal);
   background: rgba(43, 208, 230, 0.08);
}

/* ---- portfolio dropdown (matches nav-link styling) ---- */
.nav-dropdown {
   position: relative;
}
.nav-drop-trigger {
   font-family: var(--f-mono);
   font-size: 0.74rem;
   letter-spacing: 0.1em;
   text-transform: uppercase;
   color: var(--ink-dim);
   background: none;
   border: none;
   cursor: pointer;
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 0;
   transition: color 0.3s;
}
.nav-dropdown:hover .nav-drop-trigger,
.nav-drop-trigger:focus-visible {
   color: var(--ink);
}
.nav-caret {
   font-size: 0.7em;
   transition: transform 0.3s var(--ease);
}
.nav-dropdown:hover .nav-caret {
   transform: rotate(180deg);
}
/* hover bridge so the menu doesn't close in the gap */
.nav-dropdown::after {
   content: "";
   position: absolute;
   top: 100%;
   left: -10px;
   right: -10px;
   height: 16px;
}
.nav-drop-menu {
   position: absolute;
   top: calc(100% + 14px);
   right: 0;
   min-width: 170px;
   background: rgba(7, 20, 43, 0.96);
   backdrop-filter: blur(14px);
   border: 1px solid var(--line);
   border-radius: 4px;
   padding: 7px;
   opacity: 0;
   visibility: hidden;
   transform: translateY(-8px);
   transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
      visibility 0.28s;
   box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.7);
}
.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu {
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
}
.nav-drop-menu a {
   display: flex;
   align-items: center;
   gap: 10px;
   font-family: var(--f-mono);
   font-size: 0.74rem;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   color: var(--ink-dim);
   padding: 11px 13px;
   border-radius: 3px;
   transition: color 0.25s, background 0.25s;
}
.nav-drop-menu a::before {
   content: "";
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: var(--teal);
   box-shadow: 0 0 8px var(--teal);
   flex: none;
}
.nav-drop-menu a:hover {
   color: var(--ink);
   background: rgba(43, 208, 230, 0.08);
}
.nav-toggle {
   display: none;
}

/* ============================================================
   INTRO TITLE SCREEN
   ============================================================ */
.intro {
   position: relative;
   min-height: auto;
   padding: clamp(48px, 8vh, 100px) 0;
   display: flex;
   align-items: center;
   overflow: hidden;
}
.intro-inner {
   width: 100%;
}
.intro-title {
   font-family: var(--f-text);
   font-weight: 600;
   line-height: 0.86;
   letter-spacing: -0.012em;
   display: flex;
   flex-direction: column;
   width: 100%;
   color: var(--ink);
}
.intro-title .il {
   display: block;
   font-size: clamp(2.8rem, 11vw, 10rem);
   white-space: nowrap;
}
.intro-title .il-1 {
   align-self: flex-start;
}
.intro-title .il-2 {
   align-self: center;
}
.intro-title .il-3 {
   align-self: flex-end;
   font-size: clamp(2.6rem, 9.5vw, 8.6rem);
   margin-right: 0.12em;
}
.intro-title .grad {
   /* matches the "hello." accent gradient exactly */
   padding-right: 0.08em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
   position: relative;
   min-height: 100svh;
   display: flex;
   align-items: center;
   overflow: hidden;
}
#hero-graph {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   z-index: 1;
}
.hero-inner {
   position: relative;
   z-index: 3;
   pointer-events: none;
}
.hero-inner .btn,
.hero-inner a {
   pointer-events: auto;
}
.hero-copy {
   max-width: 640px;
}
.hero h1 {
   margin: 22px 0 24px;
}
.hero .lead {
   margin-bottom: 38px;
}
.hero-cta {
   display: flex;
   gap: 16px;
   flex-wrap: wrap;
}
.hero-scroll {
   position: absolute;
   bottom: 30px;
   left: 50%;
   transform: translateX(-50%);
   z-index: 4;
   font-family: var(--f-mono);
   font-size: 0.62rem;
   letter-spacing: 0.3em;
   text-transform: uppercase;
   color: var(--ink-faint);
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 10px;
}
.hero-scroll .bar {
   width: 1px;
   height: 40px;
   background: linear-gradient(var(--teal), transparent);
   animation: scroll-bar 2s ease-in-out infinite;
}
@keyframes scroll-bar {
   0% { transform: scaleY(0); transform-origin: top; }
   45% { transform: scaleY(1); transform-origin: top; }
   55% { transform: scaleY(1); transform-origin: bottom; }
   100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sec-head {
   max-width: 720px;
   margin-bottom: clamp(48px, 6vw, 80px);
}
.sec-head h2 {
   margin: 18px 0 20px;
}

/* ============================================================
   VALUE / NODES STRIP
   ============================================================ */
.split {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: clamp(40px, 6vw, 90px);
   align-items: center;
}
.node-chips {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
}
.chip {
   font-family: var(--f-mono);
   font-size: 0.78rem;
   letter-spacing: 0.06em;
   padding: 9px 16px;
   border: 1px solid var(--line);
   border-radius: 100px;
   color: var(--ink-dim);
   display: inline-flex;
   align-items: center;
   gap: 9px;
   transition: all 0.35s var(--ease);
   cursor: default;
}
.chip::before {
   content: "";
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: var(--c, var(--teal));
   box-shadow: 0 0 8px var(--c, var(--teal));
}
.chip:hover {
   border-color: var(--c, var(--teal));
   color: var(--ink);
   transform: translateY(-3px);
   background: color-mix(in oklab, var(--c, var(--teal)) 8%, transparent);
}

/* ============================================================
   CAPABILITY CARDS
   ============================================================ */
.grid-3 {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
}
.card {
   position: relative;
   padding: 34px 30px 36px;
   border: 1px solid var(--line);
   border-radius: 4px;
   background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
   overflow: hidden;
   transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.card::after {
   /* glow that follows pointer */
   content: "";
   position: absolute;
   inset: 0;
   opacity: 0;
   transition: opacity 0.4s;
   background: radial-gradient(
      320px circle at var(--mx, 50%) var(--my, 0%),
      color-mix(in oklab, var(--c, var(--teal)) 14%, transparent),
      transparent 60%
   );
   pointer-events: none;
}
.card:hover {
   border-color: color-mix(in oklab, var(--c, var(--teal)) 50%, var(--line));
   transform: translateY(-4px);
}
.card:hover::after {
   opacity: 1;
}
.card .ic {
   width: 46px;
   height: 46px;
   border-radius: 3px;
   display: grid;
   place-items: center;
   margin-bottom: 22px;
   border: 1px solid color-mix(in oklab, var(--c, var(--teal)) 40%, var(--line));
   color: var(--c, var(--teal));
   background: color-mix(in oklab, var(--c, var(--teal)) 8%, transparent);
}
.card .ic svg {
   width: 22px;
   height: 22px;
}
.card h3 {
   margin-bottom: 12px;
}
.card p {
   color: var(--ink-dim);
   font-size: 0.98rem;
   line-height: 1.6;
}
.card .num {
   position: absolute;
   top: 26px;
   right: 28px;
   font-family: var(--f-mono);
   font-size: 0.72rem;
   color: var(--ink-faint);
}

/* ============================================================
   HOW IT WORKS — steps
   ============================================================ */
.steps {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 24px;
   counter-reset: step;
}
.step {
   position: relative;
   padding-top: 30px;
   border-top: 1px solid var(--line);
}
.step .k {
   font-family: var(--f-mono);
   font-size: 0.72rem;
   letter-spacing: 0.2em;
   color: var(--teal);
   margin-bottom: 18px;
}
.step h3 {
   margin-bottom: 12px;
}
.step p {
   color: var(--ink-dim);
   font-size: 0.98rem;
}
.step::before {
   content: "";
   position: absolute;
   top: -1px;
   left: 0;
   width: 56px;
   height: 2px;
   background: var(--teal);
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 20px;
   border: 1px solid var(--line);
   border-radius: 6px;
   padding: 48px 40px;
   background: linear-gradient(180deg, rgba(160, 108, 240, 0.04), transparent);
}
.stat .v {
   font-family: var(--f-display);
   font-weight: 700;
   font-size: clamp(2rem, 3.4vw, 3rem);
   letter-spacing: -0.02em;
   line-height: 1;
}
.stat .l {
   font-family: var(--f-mono);
   font-size: 0.74rem;
   letter-spacing: 0.08em;
   color: var(--ink-dim);
   margin-top: 12px;
}

/* ============================================================
   USE CASES
   ============================================================ */
.cases {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 20px;
}
.case {
   padding: 32px 30px;
   border: 1px solid var(--line);
   border-radius: 4px;
   display: flex;
   gap: 22px;
   align-items: flex-start;
   transition: border-color 0.4s var(--ease), background 0.4s;
}
.case:hover {
   border-color: var(--line-strong);
   background: rgba(255, 255, 255, 0.014);
}
.case .tag {
   font-family: var(--f-mono);
   font-size: 0.66rem;
   letter-spacing: 0.18em;
   text-transform: uppercase;
   color: var(--c, var(--teal));
   border: 1px solid color-mix(in oklab, var(--c, var(--teal)) 40%, var(--line));
   border-radius: 2px;
   padding: 6px 10px;
   white-space: nowrap;
   margin-top: 4px;
}
.case h3 {
   margin-bottom: 8px;
   font-size: 1.2rem;
}
.case p {
   color: var(--ink-dim);
   font-size: 0.95rem;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-band {
   position: relative;
   text-align: center;
   border: 1px solid var(--line);
   border-radius: 8px;
   padding: clamp(56px, 8vw, 100px) 32px;
   overflow: hidden;
   background:
      radial-gradient(80% 120% at 50% 0%, rgba(43, 208, 230, 0.12), transparent 60%),
      var(--bg-1);
}
.cta-band h2 {
   margin-bottom: 22px;
}
.cta-band .lead {
   margin: 0 auto 38px;
   text-align: center;
}
.cta-band .hero-cta {
   justify-content: center;
}

/* ============================================================
   SAY HELLO — contact footer (icon links)
   ============================================================ */
.hello {
   border-top: 1px solid var(--line);
   padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 90px);
   margin-top: 40px;
}
.hello-inner {
   display: grid;
   grid-template-columns: 1.2fr 1fr;
   gap: clamp(40px, 6vw, 90px);
   align-items: end;
}
.hello-title {
   font-family: var(--f-text);
   font-weight: 600;
   font-size: clamp(3rem, 8vw, 6rem);
   letter-spacing: -0.04em;
   line-height: 0.92;
}
.hello-title .grad {
   font-style: italic;
}
.hello-cols {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: clamp(28px, 4vw, 56px);
}
.hello-col h4 {
   font-family: var(--f-mono);
   font-size: 0.68rem;
   letter-spacing: 0.22em;
   text-transform: uppercase;
   color: var(--ink-faint);
   margin-bottom: 20px;
}
.icon-links {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
}
.hello-address {
   font-style: normal;
   font-size: 0.9rem;
   line-height: 1.7;
   color: var(--ink-dim);
   max-width: 30ch;
}
.hello-address strong {
   color: var(--ink);
   font-weight: 600;
   letter-spacing: 0.01em;
}
.hello-address sup {
   font-size: 0.62em;
}
.map-link {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   margin-top: 16px;
   font-size: 0.82rem;
   color: var(--ink-dim);
   transition: color 0.3s var(--ease);
}
.map-link svg {
   width: 17px;
   height: 17px;
   color: var(--teal);
}
.map-link:hover {
   color: var(--teal);
}
.icon-link {
   width: 46px;
   height: 46px;
   border-radius: 3px;
   display: grid;
   place-items: center;
   border: 1px solid var(--line);
   color: var(--ink-dim);
   transition: all 0.35s var(--ease);
}
.icon-link svg {
   width: 20px;
   height: 20px;
}
.icon-link:hover {
   border-color: var(--c, var(--teal));
   color: var(--c, var(--teal));
   transform: translateY(-3px);
   background: color-mix(in oklab, var(--c, var(--teal)) 8%, transparent);
   box-shadow: 0 0 24px -8px var(--c, var(--teal));
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
   border-top: 1px solid var(--line);
   padding: 70px 0 50px;
   margin-top: 40px;
}
.footer-grid {
   display: grid;
   grid-template-columns: 1.6fr 1fr 1fr 1fr;
   gap: 40px;
}
.footer .logo {
   margin-bottom: 18px;
}
.footer-col h4 {
   font-family: var(--f-mono);
   font-size: 0.7rem;
   letter-spacing: 0.16em;
   text-transform: uppercase;
   color: var(--ink-faint);
   margin-bottom: 18px;
}
.footer-col a {
   display: block;
   color: var(--ink-dim);
   font-size: 0.92rem;
   margin-bottom: 12px;
   transition: color 0.3s;
}
.footer-col a:hover {
   color: var(--teal);
}
.footer-blurb {
   color: var(--ink-dim);
   font-size: 0.95rem;
   max-width: 30ch;
}
.footer-bottom {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-top: 56px;
   padding-top: 28px;
   border-top: 1px solid var(--line);
   font-family: var(--f-mono);
   font-size: 0.72rem;
   color: var(--ink-faint);
   letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
   .grid-3,
   .steps,
   .stats,
   .cases {
      grid-template-columns: 1fr 1fr;
   }
   .split {
      grid-template-columns: 1fr;
   }
   .hello-inner {
      grid-template-columns: 1fr;
      gap: 48px;
   }
   .footer-grid {
      grid-template-columns: 1fr 1fr;
   }
}
@media (max-width: 620px) {
   body {
      font-size: 16px;
   }
   .wrap {
      padding: 0 22px;
   }
   .nav-links {
      display: none;
   }
   .nav-links.open {
      display: flex;
      position: absolute;
      top: 76px;
      left: 0;
      right: 0;
      flex-direction: column;
      gap: 0;
      background: rgba(3, 12, 26, 0.96);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--line);
      padding: 14px 22px 24px;
   }
   .nav-links.open a {
      padding: 14px 0;
   }
   .nav-toggle {
      display: inline-flex;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
   }
   .nav-toggle span {
      width: 22px;
      height: 1.5px;
      background: var(--ink);
   }
   .grid-3,
   .steps,
   .stats,
   .cases,
   .footer-grid {
      grid-template-columns: 1fr;
   }
   .stats {
      padding: 32px 26px;
   }
   .footer-bottom {
      flex-direction: column;
      gap: 14px;
      text-align: center;
   }
}

/* ============================================================
   MOBILE — single non-scrolling viewport:
   graph + title + contact all visible, no scroll.
   ============================================================ */
@media (max-width: 700px) {
   html {
      scroll-behavior: auto;
   }
   body {
      min-height: 100dvh;
      overflow-y: auto;
      display: grid;
      grid-template-rows: minmax(0, 1fr) auto auto;
   }

   /* compact nav */
   .nav-inner {
      height: 56px;
   }
   .nav-toggle {
      display: none !important;
   }
   .nav-links {
      display: flex !important;
      position: static !important;
      background: none !important;
      border: none !important;
      padding: 0 !important;
      flex-direction: row !important;
   }
   .nav-drop-trigger {
      font-size: 0.66rem;
   }

   /* page becomes one screen: graph fills the top area behind the title */
   main {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-end; /* title sits at the bottom of the graph */
      min-height: 0;
      overflow: hidden;
   }

   /* graph spans the whole main region, behind the title */
   .hero {
      position: absolute;
      inset: 0;
      min-height: 0;
      height: auto;
      z-index: 0;
   }

   /* legibility scrim so the title reads over the graph */
   main::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 46%;
      background: linear-gradient(
         to top,
         var(--bg) 6%,
         rgba(3, 12, 26, 0.72) 40%,
         transparent
      );
      z-index: 1;
      pointer-events: none;
   }

   .intro {
      position: relative;
      z-index: 2;
      flex: 0 0 auto;
      min-height: 0;
      padding: 0 0 14px;
      align-items: center;
      pointer-events: none; /* let graph drag through */
   }
   .intro-title {
      line-height: 0.92;
      gap: 1px;
   }
   .intro-title .il {
      font-size: clamp(1.7rem, 9.5vw, 2.9rem);
      white-space: nowrap;
   }
   .intro-title .il-3 {
      font-size: clamp(1.6rem, 8.6vw, 2.7rem);
   }

   /* contact pinned to the bottom of the same screen */
   .hello {
      flex: 0 0 auto;
      margin-top: 0;
      padding: 10px 0 14px;
   }
   .hello-inner {
      grid-template-columns: 1fr;
      gap: 12px;
      align-items: start;
   }
   .hello-title {
      font-size: clamp(2rem, 11vw, 3rem);
      line-height: 0.95;
      margin-bottom: 2px;
   }
   .hello-cols {
      grid-template-columns: auto auto;
      gap: 28px;
      justify-content: start;
   }
   .hello-col h4 {
      margin-bottom: 8px;
   }
   .hello .icon-link {
      width: 40px;
      height: 40px;
   }
   .hello .icon-link svg {
      width: 18px;
      height: 18px;
   }
   .hello .icon-links {
      gap: 10px;
   }

   /* compact legal line at the bottom (scrolls into view on short screens) */
   .footer {
      display: block;
      margin-top: 0;
      padding: 0;
   }
   .footer .footer-bottom {
      margin-top: 0;
      padding: 10px 0 14px;
      justify-content: center;
      text-align: center;
      font-size: 0.62rem;
   }
}

/* very short screens: trim title further so contact still fits */
@media (max-width: 700px) and (max-height: 680px) {
   .intro-title .il {
      font-size: clamp(1.4rem, 8vw, 2.2rem);
   }
   .intro-title .il-3 {
      font-size: clamp(1.3rem, 7.4vw, 2rem);
   }
   .hello {
      padding: 12px 0 14px;
   }
   .hello-title {
      font-size: clamp(1.7rem, 9vw, 2.4rem);
   }
}
