/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html {
  background: #0a0a0f;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: transparent;   /* the tech layer below sits between html and content */
  color: #c8cdd3;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== Site-wide tech backdrop =====================================
   Two fixed layers behind everything, both pointer-events:none so they can
   never intercept a click.

   ::before — a blueprint grid, 60px to match the hero's own rhythm, plus a
   finer 15px subdivision and circuit-node dots at the intersections. Masked so
   it is densest at the top and dissolves toward the footer, which stops it
   fighting body text lower down the page.

   ::after — two very slow drifting glows. This is the only motion on the page
   and it is disabled outright under prefers-reduced-motion.
   =================================================================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    /* circuit nodes at the coarse intersections */
    radial-gradient(circle at 1px 1px, rgba(0, 212, 255, 0.16) 1px, transparent 0),
    /* coarse grid */
    linear-gradient(rgba(0, 212, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.045) 1px, transparent 1px),
    /* fine subdivision */
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size:
    60px 60px,
    60px 60px,
    60px 60px,
    15px 15px,
    15px 15px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 45%, transparent 92%);
  mask-image: linear-gradient(to bottom, black 0%, black 45%, transparent 92%);
}

body::after {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 22% 28%, rgba(0, 212, 255, 0.10) 0%, transparent 42%),
    radial-gradient(circle at 78% 72%, rgba(110, 68, 255, 0.10) 0%, transparent 42%);
  animation: drift 48s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 1%, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

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

/* ===== Typography ===== */
h2, h3 {
  font-family: 'Inter', system-ui, sans-serif;
  color: #e8eaed;
}

strong {
  color: #00d4ff;
  font-weight: 600;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(110, 68, 255, 0.06) 0%, transparent 50%),
    transparent;
}

.hero-bg-logo {
  position: absolute;
  inset: 0;
  /* logo-bg.webp, not logo.png: this is stretched to cover at 0.06 opacity, where
     no detail is visible — 2.3MB of PNG bought nothing. 32KB does the same job. */
  background: url('../images/logo-bg.webp') no-repeat center center;
  background-size: cover;
  opacity: 0.06;
}

/* Was a second 60px grid, identical to the one body::before now draws site-wide.
   Two grids at the same pitch — one fixed to the viewport, one scrolling with the
   hero — drift against each other and moire on scroll. Repurposed as fine CRT
   scanlines instead: different frequency, so it adds texture rather than fighting
   the grid, and it reads as terminal rather than blueprint. */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 212, 255, 0.022) 0px,
    rgba(0, 212, 255, 0.022) 1px,
    transparent 1px,
    transparent 4px
  );
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* The brand film replaces the static logo. It is 16:9, not the 220px square the
   logo was, and it carries readable text — service names, the URL, the support
   address — so it needs real width to be legible at all. */
.hero-video-wrap {
  position: relative;
  width: min(100%, 960px);
  margin: 0 auto 32px;
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;          /* reserves the space before metadata loads, so
                                    the page does not jump when the video appears */
  border-radius: 16px;
  background: #000;              /* the film is letterboxed on black anyway */
  object-fit: cover;
  box-shadow:
    0 0 80px rgba(0, 212, 255, 0.12),
    0 24px 70px rgba(0, 0, 0, 0.55);
}

/* The <img> fallback inside <video> for browsers that play neither source. */
.hero-video img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.hero-sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #c8cdd3;
  background: rgba(10, 10, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.hero-sound:hover {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(10, 10, 15, 0.9);
}

.hero-sound:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

.hero-sound[hidden] { display: none; }

/* While muted, the button is the only route to the soundtrack, so it has to read
   as an invitation rather than a decoration. Accent border plus a slow breathing
   halo — stopped on hover/focus, because once they have found it the pulse is
   just noise. */
.hero-sound.is-muted {
  color: #e8eaed;
  border-color: rgba(0, 212, 255, 0.5);
  animation: soundPulse 2.6s ease-in-out infinite;
}

.hero-sound.is-muted:hover,
.hero-sound.is-muted:focus-visible {
  animation: none;
}

@keyframes soundPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.32); }
  70%      { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sound.is-muted { animation: none; }
}

/* Kept: the About-page and fallback uses still reference it. */
.hero-logo {
  width: 220px;
  height: 220px;
  border-radius: 20px;
  margin-bottom: 32px;
  box-shadow:
    0 0 60px rgba(0, 212, 255, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 500;
  color: #00d4ff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #6e44ff);
  margin: 0 auto 24px;
  border-radius: 1px;
}

.hero-sub {
  font-size: 1.25rem;
  color: #8a8f98;
  font-weight: 400;
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 40px;
}

/* ===== Mission ===== */
.mission {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mission-text {
  font-size: 1.3rem;
  line-height: 1.9;
  max-width: 800px;
  color: #a0a6b0;
}

/* ===== Services ===== */
.services {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.03) 0%, transparent 60%),
    transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 36px 28px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.service-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.service-icon {
  width: 44px;
  height: 44px;
  color: #00d4ff;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #e8eaed;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #8a8f98;
}

/* ===== Projects ===== */
.projects {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(110, 68, 255, 0.03) 0%, transparent 60%),
    transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
}

.projects-grid .project-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 36px 28px;
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}

.project-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: #0a0a0f;
  background: linear-gradient(135deg, #00d4ff, #6e44ff);
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.project-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e8eaed;
  margin-bottom: 12px;
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #8a8f98;
  flex-grow: 1;
  margin-bottom: 20px;
}

.project-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  color: #00d4ff;
  transition: color 0.3s ease;
}

.project-card:hover .project-cta {
  color: #fff;
}

/* ===== Tech Stack ===== */
.tech {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #a0a6b0;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.tech-badge:hover {
  border-color: rgba(0, 212, 255, 0.3);
  color: #00d4ff;
}

/* ===== Contact ===== */
.contact {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.contact-text {
  font-size: 1.5rem;
  color: #e8eaed;
  margin-bottom: 24px;
  font-weight: 500;
}

.contact-email {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  color: #0a0a0f;
  background: linear-gradient(135deg, #00d4ff, #6e44ff);
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-email:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0;
  text-align: center;
}

.footer-content p {
  font-size: 0.85rem;
  color: #555a63;
}

.footer-tagline {
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.75rem !important;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* A 100vh hero has to hold the film plus three lines of copy. On short screens
   — any phone in landscape — that overflows and the video gets squeezed. Let the
   hero size to its content instead of forcing a full viewport. */
@media (max-height: 700px) {
  .hero { min-height: auto; padding: 72px 0 48px; }
}

@media (max-width: 600px) {
  .hero-logo {
    width: 160px;
    height: 160px;
  }

  /* Full-bleed on phones. The container's 24px gutters cost 48px of width, which
     on a 390px screen is 14% of the video — and this clip carries readable text,
     so every pixel of width is legibility. Breaking out of the gutter is worth
     more here than the tidy margin. */
  .hero-video-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 24px;
  }

  .hero-video {
    border-radius: 0;          /* edge-to-edge; rounded corners on a full-bleed
                                  element just cut the picture */
  }

  /* Native controls are shown on phones (see the script), and the sound pill
     would sit on top of the control bar. The native bar has its own mute. */
  .hero-sound { display: none; }

  .hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .section {
    padding: 70px 0;
  }

  .mission-text {
    font-size: 1.1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .contact-text {
    font-size: 1.2rem;
  }

  .contact-email {
    font-size: 0.95rem;
    padding: 14px 28px;
  }

}

/* ===== Reading progress + sticky nav ==============================
   Both are fixed and sit above the page (z-index 50) but below nothing else —
   the backdrop layers are at -1, so there is no stacking contest here. */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.05);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00d4ff, #6e44ff);
  transform-origin: left;
}

.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  /* Hidden until the hero has scrolled past — see .topnav.is-visible */
  transform: translateY(-100%);
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}

.topnav.is-visible { transform: translateY(0); opacity: 1; }

.topnav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.topnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #e8eaed;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.topnav-brand img { border-radius: 6px; display: block; }

.topnav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.topnav-links a {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #8a8f98;
  font-size: 0.86rem;
  transition: color 0.25s ease, background 0.25s ease;
}

.topnav-links a:hover { color: #e8eaed; background: rgba(255, 255, 255, 0.05); }

/* Set by the observer as each section passes under the nav. */
.topnav-links a.is-current {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.08);
}

.topnav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: #0a0a0f;
  background: linear-gradient(135deg, #00d4ff, #6e44ff);
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.topnav-cta:hover { opacity: 0.88; }

.topnav a:focus-visible,
.hero-sound:focus-visible { outline: 2px solid #00d4ff; outline-offset: 2px; }

/* ===== Scroll reveal =============================================
   Gated on .js (set by an inline script before first paint). Without
   JavaScript these rules never apply, so the page renders fully visible
   rather than blank — the failure mode that matters. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(.22,.61,.36,1),
              transform 0.6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Cards stagger by position so a grid resolves as a sweep rather than a flash.
   Capped at 6 — beyond that the last card waits long enough to feel broken. */
.js .reveal[data-d="1"] { transition-delay: .06s; }
.js .reveal[data-d="2"] { transition-delay: .12s; }
.js .reveal[data-d="3"] { transition-delay: .18s; }
.js .reveal[data-d="4"] { transition-delay: .24s; }
.js .reveal[data-d="5"] { transition-delay: .30s; }

html { scroll-behavior: smooth; }
/* The fixed nav would otherwise cover the heading of a jumped-to section. */
[id] { scroll-margin-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .topnav { transition: none; }
}

@media (max-width: 720px) {
  /* The four section links are the first thing to go: brand + CTA is the part
     that earns its space on a phone. */
  .topnav-links { display: none; }
  .topnav-inner { padding: 10px 16px; gap: 12px; }
  .topnav-brand span { font-size: 0.85rem; }
  .topnav-cta { margin-left: auto; padding: 7px 14px; font-size: 0.8rem; }
  [id] { scroll-margin-top: 68px; }
}

/* ===== Proof band ================================================ */
.proof {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 44px 0;
  background: rgba(255, 255, 255, 0.012);
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proof-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(135deg, #00d4ff, #6e44ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Digits change width as the counter runs; tabular figures stop the label
     below from shifting on every frame. */
  font-variant-numeric: tabular-nums;
}

.proof-label {
  font-size: 0.85rem;
  color: #8a8f98;
  letter-spacing: 0.3px;
}

@media (max-width: 600px) {
  .proof { padding: 32px 0; }
  .proof-row { gap: 16px; }
  .proof-num { font-size: 1.8rem; }
  .proof-label { font-size: 0.72rem; line-height: 1.4; }
}

/* ===== Contact form ============================================== */
.contact-form {
  max-width: 620px;
  margin: 0 auto 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field > span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: #8a8f98;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.field > span em { text-transform: none; letter-spacing: 0; font-style: normal; opacity: 0.6; }

.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: #e8eaed;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
}

/* The honeypot must be invisible to people but still fillable by a bot, so it
   is moved off-screen rather than display:none — some bots skip hidden inputs. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit {
  align-self: flex-start;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0a0a0f;
  background: linear-gradient(135deg, #00d4ff, #6e44ff);
  border: none;
  border-radius: 8px;
  padding: 13px 32px;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-submit:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.contact-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.contact-submit:focus-visible { outline: 2px solid #00d4ff; outline-offset: 3px; }

.form-status {
  font-size: 0.88rem;
  color: #8a8f98;
  min-height: 1.3em;   /* reserve the line so the button never jumps */
  margin: 0;
}

.form-status.is-ok { color: #6ee7a8; }
.form-status.is-error { color: #f98d8d; }

.contact-alt { font-size: 0.9rem; color: #8a8f98; }
.contact-alt a { color: #00d4ff; text-decoration: none; }
.contact-alt a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-submit { align-self: stretch; text-align: center; }
}

/* ===== Testimonial =============================================== */
.testimonial { border-top: 1px solid rgba(255, 255, 255, 0.06); }

.quote {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 48px 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid #00d4ff;
  border-radius: 12px;
}

/* An oversized opening mark, drawn rather than typed so it never inherits a
   font fallback that renders it as a straight quote. */
.quote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: 28px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 6rem;
  line-height: 1;
  background: linear-gradient(135deg, #00d4ff, #6e44ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.55;
  pointer-events: none;
}

.quote blockquote { margin: 0; }

.quote blockquote p {
  font-size: 1.55rem;
  line-height: 1.5;
  font-weight: 500;
  color: #e8eaed;
  letter-spacing: -0.2px;
}

.quote figcaption {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.quote-name { font-weight: 600; color: #e8eaed; }

.quote-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #8a8f98;
}

.quote-role::before { content: "— "; }

@media (max-width: 600px) {
  .quote { padding: 36px 22px 26px; }
  .quote::before { font-size: 4.5rem; left: 14px; }
  .quote blockquote p { font-size: 1.2rem; }
}

/* A two-sentence quote sized as a voice rather than a headline. */
.quote blockquote p { font-size: 1.32rem; }
@media (max-width: 600px) { .quote blockquote p { font-size: 1.08rem; } }

/* ===== Hero: who it is for, and one action ======================= */
/* The film shrinks on short desktop screens so the headline and button stay on
   the first screen; on a 768px-tall laptop a full 960px film alone is 540px. */
/* Above phone width only. Unscoped, this rule sat later in the cascade than the
   phone rule that makes the film full-bleed, and quietly beat it — the film
   stopped 48px short of the right edge on a 390px screen. */
@media (min-width: 601px) {
  .hero-video-wrap { width: min(100%, 960px, max(560px, calc((100svh - 360px) * 16 / 9))); }
}

.hero-title {
  max-width: 860px;
  margin: 8px auto 14px;
  font-size: clamp(1.55rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #e8eaed;
  text-wrap: balance;
}

.hero-sub { font-size: 1.1rem; }

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: #0a0a0f;
  background: linear-gradient(135deg, #00d4ff, #6e44ff);
  box-shadow: 0 8px 28px rgba(0, 212, 255, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0, 212, 255, 0.28); }
.btn-primary:focus-visible { outline: 2px solid #00d4ff; outline-offset: 3px; }

.hero-offer { font-size: 0.9rem; color: #8a8f98; margin: 0; }

/* ===== Sticky contact button (phones) ============================ */
.sticky-cta { display: none; }

@media (max-width: 720px) {
  /* A container now: the one action, plus tap-to-call beside it. */
  .sticky-cta {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 55;
    transform: translateY(calc(100% + 30px));
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .sticky-cta.is-visible { transform: none; opacity: 1; }

  .sticky-main {
    flex: 1;
    padding: 15px 18px;
    border-radius: 999px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    color: #0a0a0f;
    background: linear-gradient(135deg, #00d4ff, #6e44ff);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .sticky-call {
    flex: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #00d4ff;
    background: rgba(10, 10, 15, 0.94);
    border: 1px solid rgba(0, 212, 255, 0.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .sticky-main:focus-visible,
  .sticky-call:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  /* The sticky bar is the call to action on phones. Leaving the nav pill up as
     well put two buttons with two different labels on screen for one tap. */
  .topnav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}

/* ===== Contact lede ============================================== */
.contact-lede {
  max-width: 560px;
  margin: -8px auto 28px;
  color: #8a8f98;
  font-size: 1rem;
}

/* ===== Client case study ========================================= */
.case { border-top: 1px solid rgba(255, 255, 255, 0.06); }

.case-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.case-head h3 { font-size: 1.7rem; font-weight: 700; color: #e8eaed; margin-bottom: 10px; }
.case-intro { font-size: 1.05rem; color: #a0a6b0; max-width: 720px; }

.case-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  margin: 30px 0 32px;
}

.case-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #00d4ff;
  margin-bottom: 12px;
}

.case-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.case-col li { position: relative; padding-left: 20px; color: #a0a6b0; font-size: 0.95rem; line-height: 1.6; }
.case-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #6e44ff);
}
.case-col p { color: #a0a6b0; font-size: 0.95rem; line-height: 1.7; }

/* The quote now lives inside the card rather than in its own section. */
.case-card .quote { max-width: none; margin: 0 0 24px; }

.case-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #00d4ff;
  text-decoration: none;
}
.case-link:hover { color: #fff; }

@media (max-width: 720px) {
  .case-card { padding: 26px 20px; }
  .case-grid { grid-template-columns: 1fr; gap: 22px; }
  .case-head h3 { font-size: 1.4rem; }
}

/* ===== Phones: the first screen has to carry the headline and button ===== */
@media (max-width: 600px) {
  /* A forced 100vh hero centred its content and left ~480px empty below the
     tagline on a 390x844 phone. Size to content instead. */
  .hero { min-height: auto; padding: 0 0 44px; align-items: flex-start; }
  .hero-content { padding-top: 0; }
  .hero-title { font-size: 1.55rem; margin-top: 4px; }
  .hero-sub { font-size: 0.98rem; }
  .btn-primary { width: 100%; max-width: 360px; text-align: center; }
  /* Room for the sticky button so it never covers the last lines of the footer. */
  .footer { padding-bottom: 96px; }
}


/* ===== Contact: reply time + phone =============================== */
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: -12px auto 28px;
  font-size: 0.92rem;
  color: #8a8f98;
}
.contact-reply { color: #c8cdd3; }
.contact-reply::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #6ee7a8;
  box-shadow: 0 0 10px rgba(110, 231, 168, 0.6);
  vertical-align: 1px;
}
.contact-meta a { color: #00d4ff; text-decoration: none; font-weight: 500; white-space: nowrap; }
.contact-meta a:hover { text-decoration: underline; }

/* ===== Founder =================================================== */
.founder { border-top: 1px solid rgba(255, 255, 255, 0.06); }

.founder-card {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: center;
  padding: 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.founder-img {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.14), 0 16px 40px rgba(0, 0, 0, 0.45);
}

.founder-body h3 { font-size: 1.6rem; font-weight: 700; color: #e8eaed; }

.founder-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #8a8f98;
  margin: 4px 0 14px;
}

.founder-body p:not(.founder-role) { color: #a0a6b0; font-size: 1rem; line-height: 1.7; }

.founder-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  color: #00d4ff;
  text-decoration: none;
}
.founder-call:hover { color: #fff; }
.founder-call svg { width: 18px; height: 18px; }

@media (max-width: 720px) {
  .founder-card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 20px; gap: 22px; }
  .founder-img { width: 160px; height: 160px; }
}

/* ===== Tap targets (44px) ========================================
   Measured on a 390px phone: the email link was 17px tall, the phone link 18,
   "See the live site" 19, the nav logo 24, "Call Sliim" 25. Links that stand
   alone get a real 44px box. Links inside a sentence get a larger touch area via
   padding cancelled by an equal negative margin, so the hit area grows and the
   text does not move. */
.topnav-brand,
.founder-call,
.case-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.contact-meta a,
.contact-alt a {
  display: inline-block;
  padding: 13px 6px;
  margin: -13px -6px;
}
