/* ==========================================================================
   anoBytes Technology Solutions - Stylesheet (DARK theme)
   ==========================================================================
   This file controls how the page LOOKS. It is organised like the page:
     1.  Design tokens (colours, fonts) as CSS variables
     2.  Resets & page-wide defaults
     3.  Reusable helpers (.container, buttons, eyebrows, gradient text)
     4.  Header / navigation
     5.  Hero (with glow + constellation)
     6.  Stats band
     7.  Services (card grid)
     8.  Scan-line divider
     9.  About
     10. CTA band
     11. Contact + form
     12. Footer
     13. Living-margin gutter dots
     14. Animations + reduced-motion support
     15. Responsive rules

   Anything written as  var(--name)  reads a value from the :root block below.
   Change a colour there and it updates everywhere.

   COLOUR STRATEGY (why these colours):
     - Near-black backgrounds give a modern "command-center" feel.
     - CYAN (#22D3EE) is the bright accent: borders, icons, links, big numbers.
     - GREEN (#34D399) is reserved ONLY for the most important button, so the
       main action is unmistakable.
     - BLUE (#1C67B1 / #3B82F6) keeps continuity with the dot-matrix logo.
   All text/background pairs were checked to meet WCAG AA contrast on dark.
   ========================================================================== */


/* 1. DESIGN TOKENS ---------------------------------------------------------- */
:root {
  /* Backgrounds, from darkest (page) to lightest (cards). */
  --bg: #0A0E16;
  --bg-elevated: #0E1422;
  --surface: #131A2A;
  --border: #222D42;
  --border-active: #22D3EE;
  --field-border: #566A92;  /* lighter border for form fields (meets 3:1 non-text contrast) */

  /* Text. */
  --text: #EDF2FA;       /* main text (very high contrast on dark) */
  --muted: #9AA9C2;      /* secondary text (still meets AA) */
  --muted-dim: #8493AD;  /* the small 01-08 indices */

  /* Brand + accent colours. */
  --primary: #1C67B1;    /* brand blue */
  --accent: #22D3EE;     /* the bright cyan "signal" colour */
  --accent-2: #3B82F6;   /* blue end of the gradient */

  /* The reserved call-to-action green (used only on the main button). */
  --cta: #34D399;
  --cta-text: #06281C;   /* dark text sits on the green button */
  --cta-hover: #22C55E;

  --focus-ring: #22D3EE; /* outline shown when tabbing with a keyboard */

  /* Glows and gradients used for the "lit from within" look. */
  --glow: rgba(34, 211, 238, 0.20);
  --glow-strong: rgba(34, 211, 238, 0.32);
  --hero-bloom-blue: rgba(59, 130, 246, 0.38);
  --hero-bloom-cyan: rgba(34, 211, 238, 0.28);
  --gradient: linear-gradient(90deg, #3B82F6 0%, #22D3EE 100%);
  --cta-halo: 0 0 0 1px rgba(52, 211, 153, 0.40), 0 8px 28px rgba(52, 211, 153, 0.28);

  /* Fonts (first name preferred; the rest are fallbacks). */
  --font-heading: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-logo: 'Audiowide', 'Space Grotesk', system-ui, sans-serif; /* the anoBytes wordmark */

  /* Layout sizing. */
  --max-width: 1180px;
  --measure: 64ch;
  --section-pad: clamp(72px, 12vh, 120px);
  --radius: 14px;
  --header-h: 66px;
}


/* 2. RESETS & PAGE DEFAULTS ------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; }

html {
  scroll-behavior: smooth;
  /* Leave room so the sticky header never covers a section heading on jumps. */
  scroll-padding-top: calc(var(--header-h) + 14px);
  /* Remove the grey/blue flash boxes mobile browsers draw when you tap a link. */
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;          /* belt-and-suspenders against sideways scroll */
}

/* Headings use the bold geometric font. */
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.015em;
}

p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; }

/* Clear focus outline for keyboard users. */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 6px;
}


/* 3. REUSABLE HELPERS ------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* Skip link: off-screen until focused. */
.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--accent);
  color: #04222B;
  font-weight: 600;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* "Eyebrow": the small uppercase mono label above headings. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Gradient text: fills letters with the blue-to-cyan gradient. A solid cyan
   colour is set first as a fallback for browsers without background-clip:text. */
.grad {
  color: var(--accent);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600;
}

.section-intro {
  color: var(--muted);
  max-width: var(--measure);
  margin-top: 16px;
  font-size: clamp(1.0625rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.section-head { margin-bottom: 52px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

/* Primary = the reserved GREEN action button. */
.btn-primary {
  background: var(--cta);
  color: var(--cta-text);
  box-shadow: var(--cta-halo);
}
.btn-primary:hover { background: var(--cta-hover); }

/* Secondary = CYAN outline. */
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover { box-shadow: 0 0 0 3px var(--glow); }

/* A smaller button used in the nav. */
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* Full-width button (the form submit). */
.btn-block { width: 100%; padding-block: 15px; }


/* 4. HEADER / NAV ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 22, 0.80);          /* translucent dark */
  -webkit-backdrop-filter: saturate(160%) blur(10px); /* Safari/iOS prefix */
  backdrop-filter: saturate(160%) blur(10px);  /* frosted blur behind it */
  border-bottom: 1px solid var(--border);
}
/* If a browser cannot blur behind the header, make it nearly opaque so the
   nav text stays readable over whatever scrolls underneath. */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .site-header { background: rgba(10, 14, 22, 0.96); }
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;            /* globe sits a touch closer to the wordmark */
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 58px; height: 58px; }
.brand-name {
  font-family: var(--font-logo);
  font-weight: 400;            /* Audiowide ships one weight and is already bold */
  font-size: 1.5rem;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.primary-nav a { color: var(--text); font-weight: 500; font-size: 0.97rem; }
.primary-nav a:not(.btn):hover { color: var(--accent); text-decoration: none; }


/* Hamburger button (hidden on desktop). min size gives a proper 44px tap target. */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}


/* 5. HERO ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 10vh, 110px);
  padding-bottom: var(--section-pad);
  /* A very faint dot-grid texture so the canvas never reads as flat black. */
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  overflow: hidden;
}
/* The soft blue-to-cyan "bloom" behind the headline (the lit-from-within look). */
.hero::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  width: min(900px, 90vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(
    50% 50% at 50% 40%,
    var(--hero-bloom-blue) 0%,
    var(--hero-bloom-cyan) 38%,
    transparent 70%
  );
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;                  /* sit above the bloom */
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
}
.hero-content { max-width: 40rem; }

.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 5.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
  overflow-wrap: break-word;   /* never let a long clause overflow on tiny phones */
}

/* A short, confident lead line between the headline and the paragraph. */
.hero-lead {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 14px;
}

.hero-deck {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.22rem);
  max-width: 38rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

/* The decorative constellation graphic. */
.hero-graphic {
  width: 100%;
  max-width: 420px;
  height: auto;
  justify-self: end;
  filter: drop-shadow(0 0 24px var(--glow));   /* soft glow around the dots */
}
.constellation-lines line {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.25;
}


/* 6. STATS BAND ------------------------------------------------------------- */
.stats-band {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  padding-block: clamp(40px, 7vh, 64px);
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 72px);
  justify-content: space-between;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 18ch;
}


/* 7. SERVICES --------------------------------------------------------------- */
.services { padding-block: var(--section-pad); }

/* A real grid of discrete cards: 4 across on wide screens, 2 on tablets,
   1 on phones (see responsive rules). */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 2.2vw, 30px);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
/* A thin gradient bar that "wipes in" along the top edge on hover/focus. */
.service::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
/* "Power on" the card when hovered, or when any control inside it is focused
   (so keyboard users get the same feedback as mouse users). */
.service:hover,
.service:focus-within {
  border-color: var(--border-active);
  box-shadow: 0 0 0 1px var(--glow), 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 30px var(--glow);
  transform: translateY(-2px);
}
.service:hover::before,
.service:focus-within::before { transform: scaleX(1); }

.service-index {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted-dim);
}

.service-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.22rem;
  font-weight: 600;
  margin: 12px 0 12px;
}
.service-dot {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transform: translateY(-2px);
}
.service p { color: var(--muted); font-size: 0.98rem; }



/* 8. SCAN-LINE DIVIDER ------------------------------------------------------ */
/* A hairline that fades blue-to-cyan, with a single bright dot riding its right end. */
.scanline {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2) 20%, var(--accent) 90%, transparent);
  opacity: 0.6;
  margin-block: 8px;
}
.scanline::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: translateY(-50%);
}


/* 9. ABOUT ------------------------------------------------------------------ */
.about { padding-block: var(--section-pad); }
.about-body {
  color: var(--muted);
  max-width: var(--measure);
  margin-top: 18px;
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}


/* 10. CTA BAND -------------------------------------------------------------- */
.cta-band {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
  padding-block: clamp(48px, 8vh, 84px);
  /* faint dot grid, like the hero */
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-title {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 600;
  max-width: 18ch;
}


/* 10b. PARTNERS ------------------------------------------------------------- */
.partners { padding-block: var(--section-pad); }
.partner-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
/* Each partner logo sits on a white card so its true colours read on the dark page. */
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  padding: 18px 22px;
  background: #FFFFFF;
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.partner-card:hover,
.partner-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--glow), 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 30px var(--glow);
}
.partner-card img {
  width: auto;
  height: auto;
  max-height: 46px;
  max-width: 100%;
  object-fit: contain;
}
/* Transvault ships only a white (reversed) logo, so render it dark on the white card. */
.partner-card img.is-reversed { filter: brightness(0); }
@media (max-width: 900px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .partner-grid { grid-template-columns: 1fr; } }


/* 11. CONTACT + FORM -------------------------------------------------------- */
.contact { padding-block: var(--section-pad); }
/* Two columns: the heading and intro on the left, the form on the right. */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}
/* Inside the grid the heading does not need its usual bottom gap. */
.contact-inner .section-head { margin-bottom: 0; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 7px;
}

/* All inputs/select/textarea share one dark look. */
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--field-border);
  border-radius: 9px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow-strong);
}
.field textarea { resize: vertical; }
/* Turn off the OS-native select styling (which can show dark-on-dark text on
   mobile) and draw our own chevron so the value always uses our text colour. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239AA9C2' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
/* The dropdown's option list is drawn by the OS; force readable dark colours. */
.field select option { background: var(--surface); color: var(--text); }

/* Honeypot anti-spam field must be invisible to humans. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.form-status {
  margin-top: 14px;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.form-status.is-success { color: #4ADE80; }
.form-status.is-error { color: #FF7B72; }


/* 12. FOOTER ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 36px;
}
/* One line: copyright on the left, brand centered, social icons on the right.
   The 1fr / auto / 1fr columns keep the brand truly centered on the page. */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 24px;
}
.footer-copy {
  justify-self: center;
  color: var(--text);
  font-family: var(--font-logo);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.footer-inner .brand { justify-self: end; }
.footer-inner .brand-mark { width: 42px; height: 42px; }
.footer-inner .brand-name { font-size: 1.15rem; }

/* Social icons: each link is an icon-only button with an accessible label. */
.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: start;
  display: flex;
  gap: 10px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;             /* a comfortable 40px tap target */
  border-radius: 9px;
  color: var(--text);
  transition: color 0.15s ease, background 0.15s ease;
}
.footer-social a:hover {
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
}
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }

/* On small screens, stack and center the footer (social, copyright, logo). */
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .footer-copy { justify-self: center; }
  .footer-social { justify-self: center; }
}


/* 13. LIVING-MARGIN GUTTER DOTS -------------------------------------------- */
.gutter-nav {
  position: fixed;
  left: 22px; top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gutter-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
/* The active section's dot glows cyan, like a rack-mount status light. */
.gutter-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: scale(1.5);
}
/* On touch screens these decorative dots are not useful and could be tapped by
   accident, so hide them on any coarse (finger) pointer regardless of width. */
@media (pointer: coarse) {
  .gutter-nav { display: none; }
}


/* 14. ANIMATIONS ------------------------------------------------------------ */

/* Reveal-on-scroll. These "hidden" start styles only apply when <html> has the
   .js class (added by script.js), so without JavaScript everything stays visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* A few constellation dots gently breathe. */
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.pulse-dot { animation: dotPulse 6s ease-in-out infinite; }
/* Stagger the pulsing dots. The 4th and 9th <circle> in the graphic are the
   2nd and 3rd pulse-dots, so we delay those for a livelier, less-synced feel. */
.hero-graphic circle:nth-of-type(4) { animation-delay: 1.5s; }
.hero-graphic circle:nth-of-type(9) { animation-delay: 3s; }

/* The hero bloom slowly "breathes". */
@keyframes bloom {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1; transform: translateX(-50%) scale(1.06); }
}
.hero::before { animation: bloom 9s ease-in-out infinite; }

/* RESPECT "reduce motion": turn off all animation/auto-scroll and make sure
   nothing is left hidden. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .pulse-dot { animation: none; }
  .hero::before { animation: none; transform: translateX(-50%); }
  .btn:hover, .service:hover, .service:focus-within { transform: none; }
}


/* 15. RESPONSIVE ------------------------------------------------------------ */

/* Wide-but-not-huge: services drop to 2 columns. */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Below 900px: hide gutter dots; stack the contact area AND the hero, so the
   tablet range never shows a cramped two-column hero. */
@media (max-width: 900px) {
  .gutter-nav { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { justify-self: center; max-width: 300px; }
}

/* Below 760px: mobile menu + single-column layouts. */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px clamp(20px, 5vw, 48px) 18px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a, .primary-nav .btn { width: 100%; }
  /* Each menu link gets real height so taps do not collide (about 46px tall). */
  .primary-nav a:not(.btn) { display: block; padding: 12px 0; }
  .primary-nav .btn { text-align: center; margin-top: 8px; }

  /* Shrink the headline so it fits a narrow column, and shrink the graphic. */
  .hero-title { font-size: clamp(1.85rem, 9vw, 2.6rem); }
  .hero-graphic { max-width: 240px; opacity: 0.9; }

  /* Lighter hero glow on mobile GPUs (smaller blur, no looping animation). */
  .hero::before { filter: blur(48px); height: 420px; animation: none; }

  /* Services single column. */
  .service-grid { grid-template-columns: 1fr; }

  /* Stats become a clean 2-column grid (third sits neatly on the next row). */
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }

  /* CTA band stacks. */
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* Very small phones: drop the decorative hero graphic so the message leads and
   the form/CTA are not pushed far down the page. */
@media (max-width: 480px) {
  .hero-graphic { display: none; }
}
