﻿/* ==========================================================================
   qvic.in — style.css
   Dark, minimal, cinematic. Palette + type per SPEC.md §2.
   ========================================================================== */

/* ---------- Self-hosted fonts (no external CDN — renders identically everywhere) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-var.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-var.woff2") format("woff2");
}

:root {
  --bg: #07090c;
  --panel: rgba(13, 16, 20, 0.55);
  --panel-border: rgba(255, 255, 255, 0.07);
  --text: #e8ecef;
  --text-dim: #9aa3ab;
  --teal: #5fd4c4;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(20px, 5vw, 72px);
}

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

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.fine-cursor, body.fine-cursor a, body.fine-cursor button,
body.fine-cursor input, body.fine-cursor textarea, body.fine-cursor [tabindex] {
  cursor: none;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; }

::selection { background: rgba(95, 212, 196, 0.22); color: var(--text); }

/* ---------- Utilities ---------- */
.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Spatial 3D Glass Cards (v3) */
[data-tilt] {
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
  will-change: transform;
}
/* Specular glare overlay tracking cursor */
[data-tilt]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 260px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.14), transparent 75%);
  opacity: var(--glare-opacity, 0);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}
/* Cyber border highlight */
[data-tilt]::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(95, 212, 196, 0.45), transparent 45%, rgba(255, 255, 255, 0.18));
  opacity: var(--border-glow, 0);
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}
/* Staggered 3D depth for internal card elements */
[data-tilt] > * {
  transform: translateZ(0);
  transition: transform 0.28s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  z-index: 3;
}
[data-tilt]:hover > .service-index,
[data-tilt]:hover > .process-index,
[data-tilt]:hover > .arsenal-index,
[data-tilt]:hover > .milestone-label,
[data-tilt]:hover > .beyond-index,
[data-tilt]:hover > .engage-num,
[data-tilt]:hover > .standard-check {
  transform: translateZ(26px);
}
[data-tilt]:hover > .service-title,
[data-tilt]:hover > .process-title,
[data-tilt]:hover > .why-title,
[data-tilt]:hover > .featured-title,
[data-tilt]:hover > .beyond-title,
[data-tilt]:hover > .engage-title,
[data-tilt]:hover > .arsenal-cat {
  transform: translateZ(38px);
}
[data-tilt]:hover > .service-copy,
[data-tilt]:hover > .process-copy,
[data-tilt]:hover > .why-copy,
[data-tilt]:hover > .featured-copy,
[data-tilt]:hover > .milestone-copy,
[data-tilt]:hover > .beyond-copy,
[data-tilt]:hover > .engage-copy,
[data-tilt]:hover > .engage-tag,
[data-tilt]:hover > .standard-text,
[data-tilt]:hover > .chip-row {
  transform: translateZ(20px);
}

.eyebrow { color: var(--teal); margin-bottom: 18px; }

.headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}
.headline .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.headline .word > span { display: inline-block; will-change: transform; }

.section {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(80px, 12vh, 140px);
  z-index: 2;
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 7vh, 80px); }

/* ==========================================================================
   Fixed layers
   ========================================================================== */

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* WebGL-failure fallback (main.js adds .no-webgl): canvas hidden, static
   content stands alone on a subtle gradient so nothing reads as broken. */
html.no-webgl #gl { display: none; }
html.no-webgl body {
  background: radial-gradient(120% 90% at 20% 0%, #0d1216 0%, var(--bg) 55%);
}

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

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-curtain {
  position: absolute;
  inset: 0;
  background: #05070a;
  transform-origin: top;
}
.preloader-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.preloader-mark { color: var(--text-dim); }
.preloader-count {
  font-size: 14px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------- Site mark / nav ---------- */
.site-mark {
  position: fixed;
  top: 28px;
  left: var(--gutter);
  z-index: 20;
  color: var(--text);
  opacity: 0.9;
  transition: color 0.3s ease;
}
.site-mark:hover { color: var(--teal); }

.pill-nav {
  position: fixed;
  top: 22px;
  right: var(--gutter);
  z-index: 20;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pill-nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.3s ease, background 0.3s ease;
}
.pill-nav a:hover { color: var(--teal); background: rgba(255, 255, 255, 0.04); }

/* ---------- Scroll progress hairline (right edge) ---------- */
.progress-rail {
  position: fixed;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
  z-index: 20;
}
.progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #c9d2d8, var(--teal));
  transform-origin: top;
  transform: scaleY(0);
}

/* ---------- Audio toggle ---------- */
.audio-toggle {
  position: fixed;
  right: var(--gutter);
  bottom: 26px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.audio-toggle:hover {
  border-color: rgba(95, 212, 196, 0.4);
  background: rgba(18, 22, 28, 0.7);
}
.audio-visualizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
}
.audio-visualizer span {
  display: block;
  width: 2.5px;
  height: 4px;
  background: var(--text-dim);
  border-radius: 1px;
  transition: background 0.3s ease, height 0.2s ease;
}
.audio-toggle[aria-pressed="true"] .audio-visualizer span {
  background: var(--teal);
  box-shadow: 0 0 6px rgba(95, 212, 196, 0.5);
  animation: audio-bounce 1.2s ease-in-out infinite alternate;
}
.audio-toggle[aria-pressed="true"] .audio-visualizer span:nth-child(1) { animation-delay: 0.1s; height: 8px; }
.audio-toggle[aria-pressed="true"] .audio-visualizer span:nth-child(2) { animation-delay: 0.35s; height: 12px; }
.audio-toggle[aria-pressed="true"] .audio-visualizer span:nth-child(3) { animation-delay: 0.2s; height: 6px; }
.audio-toggle[aria-pressed="true"] .audio-visualizer span:nth-child(4) { animation-delay: 0.45s; height: 10px; }
@keyframes audio-bounce {
  0% { height: 3px; }
  50% { height: 12px; }
  100% { height: 5px; }
}
.audio-label { font-size: 10px; color: var(--text-dim); letter-spacing: 0.15em; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--text);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(232, 236, 239, 0.35);
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}
.cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  border-color: var(--teal);
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   4.1 HERO
   ========================================================================== */
.hero { justify-content: center; }

.hero-card {
  margin-left: max(var(--gutter), 8vw);
  max-width: 660px;
  padding: clamp(30px, 4.5vw, 52px);
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.6), 0 0 50px rgba(95, 212, 196, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.hero-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(95, 212, 196, 0.8), transparent);
}

/* Live Studio Availability Badge */
.studio-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(95, 212, 196, 0.08);
  border: 1px solid rgba(95, 212, 196, 0.28);
  margin-bottom: 22px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--teal);
  width: fit-content;
}
.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: pulse-ring 2.2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(95, 212, 196, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(95, 212, 196, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(95, 212, 196, 0); }
}
.hero-logo {
  max-width: 340px;
  width: min(100%, 340px);
  margin-bottom: clamp(24px, 4vh, 40px);
}
.hero-tagline {
  position: relative;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 7.5vw, 7rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
/* One-time chrome-shine sweep overlay (UPGRADE §2) — transform/opacity only */
.tagline-shine {
  position: absolute;
  inset: -6% -4%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.42) 50%, transparent 68%);
  background-size: 260% 100%;
  mix-blend-mode: screen;
  opacity: 0;
  will-change: transform, opacity;
}
.hero-tagline .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-tagline .word > span { display: inline-block; will-change: transform; }
.hero-sub { color: var(--text-dim); }

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 10px;
}
.hint-arrow { display: inline-block; animation: hint-bob 2.2s ease-in-out infinite; }
@keyframes hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ==========================================================================
   4.2 SERVICES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 24px);
  max-width: 980px;
}
.service-card {
  padding: clamp(22px, 3vw, 36px);
  transition: border-color 0.35s ease, transform 0.35s ease;
  outline: none;
}
.service-card:hover, .service-card:focus-visible,
.service-card.is-active {
  border-color: rgba(95, 212, 196, 0.35);
  transform: translateY(-4px);
}
.service-index { color: var(--text-dim); font-size: 11.5px; }
.service-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.2;
  margin: 14px 0 12px;
}
.service-copy { color: var(--text-dim); font-size: 16.5px; max-width: 44ch; }

/* ==========================================================================
   4.3 WORK — pinned 600vh horizontal scrub
   ========================================================================== */
.work { padding-block: 0; display: block; }
.work-head { padding-top: clamp(80px, 12vh, 140px); }

.work-wrap { height: 600vh; position: relative; }
.work-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.work-track {
  display: flex;
  flex-shrink: 0; /* must not shrink into the sticky stage */
  width: 600vw; /* 6 panels × 100vw */
  height: 100%;
  will-change: transform;
}
.work-panel {
  position: relative;
  width: calc(100% / 6);
  height: 100%;
  display: flex;
  align-items: center;
  padding-inline: max(var(--gutter), 8vw);
  flex-shrink: 0;
}
.ghost-num {
  position: absolute;
  right: 4vw;
  bottom: 2vh;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(160px, 32vw, 420px);
  line-height: 0.85;
  color: var(--text);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}
.work-info { position: relative; max-width: 520px; }
.work-spec { color: var(--teal); margin-bottom: 20px; font-size: 11.5px; }
.work-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 18px;
}
.work-desc { color: var(--text-dim); font-size: 17.5px; max-width: 48ch; margin-bottom: 26px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 10.5px;
  color: var(--text-dim);
  padding: 7px 13px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  letter-spacing: 0.18em;
}
.nda-line {
  color: var(--text-dim);
  text-align: center;
  padding: clamp(40px, 8vh, 90px) var(--gutter) clamp(90px, 14vh, 150px);
  font-size: 11.5px;
}

/* ==========================================================================
   4.4 ABOUT / FOUNDER
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
/* Column must stretch to full row height or the sticky child has no travel room. */
.about-left { align-self: stretch; }
.about-sticky { position: sticky; top: 18vh; }
.about-right { display: flex; flex-direction: column; gap: clamp(48px, 9vh, 96px); padding-block: 6vh; }
/* Legibility: the 3D helix sits near the text column, so bio copy and the
   mission quote get a subtle glass scrim; the sticky name gets a deep
   text-shadow scrim instead (no layout shift). */
.bio-item, .mission {
  background: rgba(7, 9, 12, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.about-sticky { text-shadow: 0 2px 22px rgba(7, 9, 12, 0.95), 0 0 8px rgba(7, 9, 12, 0.85); }
.bio-item { max-width: 52ch; }
.bio-label { color: var(--teal); margin-bottom: 14px; font-size: 11.5px; }
.bio-copy { color: var(--text-dim); font-size: 17.5px; }
.mission {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.25;
  color: var(--text);
  max-width: 22ch;
}
.teal-period { color: var(--teal); }

/* ==========================================================================
   4.5 CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 560px) 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-form { padding: clamp(24px, 3.4vw, 44px); }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  color: var(--text-dim);
  font-size: 10.5px;
  margin-bottom: 9px;
}
.field input, .field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(95, 212, 196, 0.55);
  box-shadow: 0 0 0 3px rgba(95, 212, 196, 0.12);
}
.submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: 999px;
  border: 1px solid rgba(232, 236, 239, 0.22);
  background: rgba(232, 236, 239, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.submit-btn:hover:not(:disabled) {
  background: rgba(95, 212, 196, 0.1);
  border-color: rgba(95, 212, 196, 0.5);
}
.submit-btn:disabled { opacity: 0.55; }
.submit-btn .mono { font-size: 11.5px; }
.form-status { margin-top: 16px; min-height: 16px; font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.15em; }
.form-status.is-success { color: var(--teal); }
.form-status.is-error { color: #d98a8a; }

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}
.aside-line { color: var(--text-dim); font-size: 12px; line-height: 2; }
.aside-line a { color: var(--text); transition: color 0.3s ease; }
.aside-line a:hover { color: var(--teal); }

/* ==========================================================================
   4.6 FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding-block: 30px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  /* Clear the fixed bottom-right SOUND toggle (~120px wide + gutter). */
  padding-right: 150px;
}
.footer-left, .footer-right { font-size: 10.5px; color: var(--text-dim); }

/* ==========================================================================
   CURSOR-REACTIVE FX (UPGRADE §2) — desktop fine-pointer only (html.fx).
   JS (GSAP) owns transforms on these elements, so CSS transform transitions
   and hover transforms are disabled to avoid fighting the ticker.
   ========================================================================== */
html.fx .service-card { transition: border-color 0.35s ease; }
html.fx .service-card:hover, html.fx .service-card:focus-visible,
html.fx .service-card.is-active { transform: none; }



[data-magnetic] { will-change: transform; }

/* ==========================================================================
   MARQUEE (UPGRADE §4.1) — JS-driven infinite scroll (transform only)
   ========================================================================== */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--panel-border);
  padding-block: 18px;
  /* Opaque band + blur so hero particles don't compete with the strip
     (legibility fix, most visible at 390px). */
  background: linear-gradient(to right, rgba(7, 9, 12, 0.78), rgba(7, 9, 12, 0.7) 18%, rgba(7, 9, 12, 0.7) 82%, rgba(7, 9, 12, 0.78));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
}
.marquee-group { color: var(--text-dim); font-size: 13.5px; letter-spacing: 0.32em; }
.marquee-star { color: var(--teal); font-style: normal; }

/* ==========================================================================
   STATS BAND (UPGRADE §4.2)
   ========================================================================== */
.stats { justify-content: center; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 5vh, 56px);
}
.stat { display: flex; flex-direction: column; gap: 14px; }
.stat-num {
  font-size: clamp(3rem, 6.2vw, 5.2rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-transform: none;
}
.stat-label { color: var(--text-dim); font-size: 15.5px; max-width: 24ch; }

/* ==========================================================================
   WORK — Play Store link buttons (UPGRADE §4.3)
   ========================================================================== */
.play-link {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(95, 212, 196, 0.35);
  background: rgba(95, 212, 196, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.play-link .mono { font-size: 11.5px; color: var(--teal); }
.play-link:hover { background: rgba(95, 212, 196, 0.14); border-color: rgba(95, 212, 196, 0.6); }

/* ==========================================================================
   PROCESS (UPGRADE §4.4)
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.process-card { padding: clamp(22px, 2.6vw, 34px); transition: border-color 0.35s ease; }
.process-card:hover { border-color: rgba(95, 212, 196, 0.3); }
.process-index { color: var(--teal); font-size: 11.5px; }
.process-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.2;
  margin: 14px 0 12px;
}
.process-copy { color: var(--text-dim); font-size: 16.5px; }

/* ==========================================================================
   TECH ARSENAL (UPGRADE §4.5)
   ========================================================================== */
.arsenal-grid {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 7fr;
  gap: clamp(24px, 3.5vw, 56px);
  align-items: start;
}
.terminal { overflow: hidden; }
.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--panel-border);
}
.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.terminal-bar span:first-child { background: rgba(95, 212, 196, 0.5); }
.terminal-body {
  padding: 22px 24px 26px;
  font-size: 14.5px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: pre-wrap;
  color: var(--text-dim);
  min-height: 11.4em; /* reserve final height: no layout shift while typing */
}
.terminal-body .t-cmd { color: var(--text); }
.terminal-body .t-prompt { color: var(--teal); }
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  vertical-align: text-bottom;
  background: var(--teal);
  animation: cursor-blink 1.05s steps(1) infinite;
}
@keyframes cursor-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

.arsenal-rows { display: flex; flex-direction: column; gap: clamp(12px, 1.6vh, 18px); }
.arsenal-row {
  display: grid;
  grid-template-columns: auto minmax(130px, 0.9fr) 2fr;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding: clamp(16px, 2vw, 24px) clamp(18px, 2.4vw, 30px);
  transition: border-color 0.35s ease;
}
.arsenal-row:hover { border-color: rgba(95, 212, 196, 0.28); }
.arsenal-index { color: var(--text-dim); font-size: 11.5px; }
.arsenal-cat {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.2;
}

/* ==========================================================================
   WHY QVIC (UPGRADE §4.6)
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.why-card { padding: clamp(24px, 3vw, 40px); transition: border-color 0.35s ease; }
.why-card:hover { border-color: rgba(95, 212, 196, 0.3); }
.why-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.2;
  margin-bottom: 14px;
}
.why-copy { color: var(--text-dim); font-size: 16.5px; }

/* ==========================================================================
   ENGAGE — ways to work with us
   ========================================================================== */
.section-sub {
  color: var(--text-dim);
  font-size: clamp(16.5px, 1.6vw, 20px);
  max-width: 52ch;
  margin-top: 18px;
}
.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.engage-card {
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}
.engage-card:hover { border-color: rgba(95, 212, 196, 0.3); }
.engage-num {
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 0.18em;
}
.engage-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 2.8vw, 36px);
  line-height: 1.15;
}
.engage-copy { color: var(--text-dim); font-size: 16.5px; flex: 1; }
.engage-tag {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.14em;
  border-top: 1px solid var(--panel-border);
  padding-top: 14px;
}

/* ==========================================================================
   BEYOND THE CODE — founder achievements grid
   ========================================================================== */
.beyond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.beyond-card {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.35s ease;
}
.beyond-card:hover { border-color: rgba(95, 212, 196, 0.3); }
.beyond-num {
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 0.18em;
}
.beyond-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.2;
}
.beyond-copy { color: var(--text-dim); font-size: 16px; }

/* ==========================================================================
   FEATURED ON GOOGLE PLAY
   ========================================================================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
.featured-card {
  padding: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.35s ease;
}
.featured-card:hover { border-color: rgba(95, 212, 196, 0.35); }
.featured-tag { color: var(--teal); font-size: 11.5px; letter-spacing: 0.2em; }
.featured-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
}
.featured-copy { color: var(--text-dim); font-size: 16.5px; flex: 1; }
.featured-meta { color: var(--text-dim); font-size: 11px; letter-spacing: 0.16em; }
.featured-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.18em;
  border: 1px solid rgba(95, 212, 196, 0.4);
  border-radius: 999px;
  padding: 13px 22px;
  transition: background 0.3s ease, color 0.3s ease;
}
.featured-link:hover { background: rgba(95, 212, 196, 0.12); }

/* ==========================================================================
   MARQUEE 2 + THE QVIC STANDARD
   ========================================================================== */
.marquee-alt { margin-top: 0; }
.standard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.standard-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 30px);
  transition: border-color 0.35s ease;
}
.standard-item:hover { border-color: rgba(95, 212, 196, 0.3); }
.standard-check {
  color: var(--teal);
  font-size: 20px;
  line-height: 1.4;
  flex-shrink: 0;
}
.standard-text { color: var(--text-dim); font-size: 16px; }

/* ==========================================================================
   ABOUT — milestone card row (UPGRADE §4.7)
   ========================================================================== */
.milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  margin-bottom: clamp(48px, 9vh, 96px);
}
.milestone-card { padding: clamp(18px, 2.2vw, 28px); transition: border-color 0.35s ease; }
.milestone-card:hover { border-color: rgba(95, 212, 196, 0.28); }
.milestone-label { color: var(--teal); font-size: 11.5px; margin-bottom: 12px; }
.milestone-copy { color: var(--text-dim); font-size: 15.5px; }

/* ==========================================================================
   FAQ (UPGRADE §4.8)
   ========================================================================== */
.faq-container { max-width: 860px; }
.faq-list { border-top: 1px solid var(--panel-border); }
.faq-item { border-bottom: 1px solid var(--panel-border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  text-align: left;
  padding: clamp(20px, 3vh, 30px) 4px;
  transition: color 0.3s ease;
}
.faq-q:hover, .faq-q:focus-visible { color: var(--teal); outline: none; }
.faq-q-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.3;
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--text-dim);
  transition: transform 0.4s ease, background 0.3s ease;
}
.faq-icon::before { width: 14px; height: 1px; }
.faq-icon::after { width: 1px; height: 14px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::before,
.faq-q[aria-expanded="true"] .faq-icon::after { background: var(--teal); }
.faq-a { height: 0; overflow: hidden; }
.faq-a-copy {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 58ch;
  padding: 0 4px clamp(22px, 3vh, 30px);
}

/* ==========================================================================
   CTA BAND (UPGRADE §4.9)
   ========================================================================== */
.cta { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-big {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-bottom: clamp(18px, 3vh, 30px);
}
.cta-line {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.1vw, 2.7rem);
  color: var(--text-dim);
  margin-bottom: clamp(30px, 5vh, 48px);
}
.cta-btn {
  padding: 17px 42px;
  border-radius: 999px;
  border: 1px solid rgba(95, 212, 196, 0.45);
  background: rgba(95, 212, 196, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.cta-btn .mono { font-size: 12.5px; color: var(--teal); }
.cta-btn:hover { background: rgba(95, 212, 196, 0.16); border-color: rgba(95, 212, 196, 0.7); }

/* ==========================================================================
   FOOTER — enriched columns (UPGRADE §4.10)
   ========================================================================== */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(30px, 5vh, 54px);
  border-bottom: 1px solid var(--panel-border);
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s ease;
  width: fit-content;
}
.footer-col a:hover { color: var(--teal); }
.footer-head { color: var(--text); font-size: 10.5px; margin-bottom: 6px; }

/* ==========================================================================
   V3 PROFESSIONAL ENHANCEMENTS
   ========================================================================== */

/* --- Refined glass morphism with depth --- */
.glass {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.glass:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* --- Professional card hover with subtle lift --- */
.service-card {
  transition: border-color 0.4s cubic-bezier(0.25, 0, 0, 1),
              transform 0.4s cubic-bezier(0.25, 0, 0, 1),
              box-shadow 0.4s cubic-bezier(0.25, 0, 0, 1);
}
.service-card:hover,
.service-card:focus-visible,
.service-card.is-active {
  border-color: rgba(95, 212, 196, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(95, 212, 196, 0.06);
}

/* --- Smooth text gradient shimmer on hover for service titles --- */
.service-title {
  transition: color 0.3s ease;
}
.service-card:hover .service-title,
.service-card.is-active .service-title {
  background: linear-gradient(135deg, var(--text) 30%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Professional chip styling --- */
.chip {
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.chip:hover {
  background: rgba(95, 212, 196, 0.12);
  border-color: rgba(95, 212, 196, 0.4);
  color: var(--teal);
  transform: translateY(-2px);
}

/* --- Work panel title enhancement --- */
.work-title {
  transition: color 0.4s ease;
}
.work-panel:hover .work-title {
  background: linear-gradient(135deg, var(--text) 20%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Play store link professional styling --- */
.play-link {
  position: relative;
  overflow: hidden;
}
.play-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(95, 212, 196, 0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.play-link:hover::before {
  transform: translateX(100%);
}

/* --- Process card number glow --- */
.process-num {
  transition: text-shadow 0.4s ease, color 0.4s ease;
}
.process-card:hover .process-num {
  color: var(--teal);
  text-shadow: 0 0 20px rgba(95, 212, 196, 0.5);
}

/* --- FAQ accordion refinement --- */
.faq-q {
  transition: color 0.3s ease;
}
.faq-q:hover {
  color: var(--teal);
}
.faq-q[aria-expanded="true"] {
  color: var(--teal);
}

/* --- Featured card glow on hover --- */
.featured-card {
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.featured-card:hover {
  border-color: rgba(95, 212, 196, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(95, 212, 196, 0.08);
  transform: translateY(-4px);
}

/* --- Stat number glow effect --- */
.stat-num {
  transition: text-shadow 0.5s ease;
}
.stat:hover .stat-num {
  text-shadow: 0 0 30px rgba(95, 212, 196, 0.4),
               0 0 60px rgba(95, 212, 196, 0.15);
}

/* --- CTA button professional pulse --- */
.cta-btn {
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}
.cta-btn:hover {
  background: rgba(95, 212, 196, 0.14);
  border-color: rgba(95, 212, 196, 0.6);
  box-shadow: 0 0 30px rgba(95, 212, 196, 0.15);
  transform: translateY(-2px);
}

/* --- Contact form inputs professional focus --- */
.field-input:focus {
  box-shadow: 0 0 0 2px rgba(95, 212, 196, 0.25),
              0 8px 24px rgba(0, 0, 0, 0.3);
}

/* --- Footer link hover effect --- */
.footer-col a {
  position: relative;
}
.footer-col a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.3s ease;
}
.footer-col a:hover::after {
  width: 100%;
}

/* --- Smooth section transitions --- */
.section {
  transition: opacity 0.6s ease;
}

/* --- Enhanced marquee star glow --- */
.marquee-star {
  text-shadow: 0 0 8px rgba(95, 212, 196, 0.6);
}

/* --- Ghost number refinement --- */
.ghost-num {
  transition: opacity 0.4s ease;
}
.work-panel:hover .ghost-num {
  opacity: 0.08;
}

/* --- Milestone card hover --- */
.milestone {
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.milestone:hover {
  border-color: rgba(95, 212, 196, 0.25);
  transform: translateY(-3px);
}

/* --- Arsenal row chip enhanced hover --- */
.arsenal-row .chip:hover {
  background: rgba(95, 212, 196, 0.15);
  box-shadow: 0 0 12px rgba(95, 212, 196, 0.1);
}

/* --- Why card icon area glow --- */
.why-card:hover {
  border-color: rgba(95, 212, 196, 0.25);
}

/* --- Preloader enhancement --- */
.preloader-mark {
  font-size: 16px;
  letter-spacing: 0.4em;
}
.preloader-count {
  font-size: 13px;
  letter-spacing: 0.3em;
  opacity: 0.7;
}

/* --- Scroll hint subtle animation --- */
.scroll-hint {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.scroll-hint:hover {
  opacity: 1;
}

/* --- Nav pill enhanced backdrop --- */
.pill-nav {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* --- Site mark hover underline --- */
.site-mark {
  position: relative;
}
.site-mark::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.3s ease;
}
.site-mark:hover::after {
  width: 100%;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-sticky { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .arsenal-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .milestones { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .engage-grid { grid-template-columns: 1fr; }
  .beyond-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .standard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-card { margin-inline: var(--gutter); }
  .work-panel { padding-inline: var(--gutter); align-items: flex-start; padding-top: 22vh; }
  .ghost-num { font-size: clamp(140px, 44vw, 240px); right: var(--gutter); }
  .work-title { font-size: clamp(2.2rem, 9.5vw, 3.2rem); }
  .audio-toggle { bottom: 18px; }
  .site-mark { top: 24px; }
  .process-grid { grid-template-columns: 1fr; }
  .milestones { grid-template-columns: 1fr; }
  .beyond-grid { grid-template-columns: 1fr; }
  .arsenal-row { grid-template-columns: auto 1fr; }
  .arsenal-row .chip-row { grid-column: 1 / -1; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .marquee-group { font-size: 11px; }
  .footer-row { padding-right: 0; }
}

@media (max-width: 420px) {
  .pill-nav a { padding: 8px 9px; font-size: 9.5px; letter-spacing: 0.14em; }
  .hero-logo { max-width: 240px; }
}

@media (max-width: 340px) {
  .pill-nav { gap: 2px; }
  .pill-nav a { padding: 8px 7px; font-size: 9px; letter-spacing: 0.1em; }
}

/* ==========================================================================
   Reduced motion — no scrub, no sticky pin; content fully readable
   ========================================================================== */
html.reduced-motion .work-wrap { height: auto; }
html.reduced-motion .work-stage { position: static; height: auto; overflow: visible; }
html.reduced-motion .work-track { width: 100%; flex-direction: column; transform: none !important; }
html.reduced-motion .work-panel { width: 100%; height: auto; min-height: 70svh; }
html.reduced-motion .hint-arrow { animation: none; }
html.reduced-motion .about-sticky { position: static; }
html.reduced-motion .marquee-track { transform: none !important; }
html.reduced-motion .terminal-cursor { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .hint-arrow { animation: none; }
  /* Mirror the .reduced-motion layout so content is readable even pre-JS. */
  .work-wrap { height: auto; }
  .work-stage { position: static; height: auto; overflow: visible; }
  .work-track { width: 100%; flex-direction: column; transform: none !important; }
  .work-panel { width: 100%; height: auto; min-height: 70svh; }
  .about-sticky { position: static; }
  .marquee-track { transform: none !important; }
  .terminal-cursor { animation: none; }
}
