/* ==========================================================================
   SYNTEXFLOW — DESIGN LOCK V1 UNIFIED STYLESHEET
   Single source of truth for tokens, layout, typography, components & motion
   ========================================================================== */

:root {
  /* 1. Colour Tokens (Scarlet Red Popping Accent #E9241A) */
  --bg: #09090B;
  --surface: #111114;
  --surface-2: #17171B;
  --border: #26262B;
  --border-strong: #3A3A41;
  --text: #F4F4F5;
  --text-muted: #A1A1AA;
  --text-subtle: #71717A;
  --accent: #E9241A;
  --accent-hover: #F83A30;
  --accent-soft: rgba(233, 36, 26, 0.12);

  /* Silver text gradient */
  --silver-gradient: linear-gradient(135deg, #FFFFFF 0%, #D4D4D8 45%, #71717A 100%);

  /* Typography */
  --font-sans: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Typography Scales */
  --font-size-hero: clamp(2.25rem, 5vw, 4.25rem);
  --font-size-h2: clamp(1.75rem, 3.2vw, 2.75rem);
  --font-size-h3: clamp(1.25rem, 2vw, 1.65rem);

  /* Easing & Durations */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-micro: 180ms;
  --duration-ui: 300ms;
  --duration-reveal: 700ms;

  /* Radii */
  --radius-input: 12px;
  --radius-card: 20px;
  --radius-pill: 9999px;
}

/* ==========================================================================
   BASE RESET & ACCESSIBILITY
   ========================================================================== */

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

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

::selection {
  background: var(--accent);
  color: #FFFFFF;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   GLOBAL LAYERS (GRID, SOFT LIGHT, GRAIN)
   ========================================================================== */

/* 56px global grid layer */
.global-grid-bg {
  position: fixed;
  inset: 0;
  background-size: 56px 56px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Static grain overlay */
.global-grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Soft white light behind hero ribbon */
.hero-soft-light {
  position: absolute;
  width: clamp(280px, 35vw, 480px);
  height: clamp(280px, 35vw, 480px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */

.text-silver {
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-copper, .text-scarlet {
  color: var(--accent);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.hero-heading {
  font-family: var(--font-sans);
  font-size: var(--font-size-hero);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-align: center;
}

.section-heading {
  font-family: var(--font-sans);
  font-size: var(--font-size-h2);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.body-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.body-small {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   LAYOUT CONTAINERS & SECTION PADDING
   ========================================================================== */

.site-container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .site-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.site-section {
  padding-top: 120px;
  padding-bottom: 120px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .site-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.section-header-centred {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px auto;
}

/* ==========================================================================
   COMPONENTS: BUTTONS & SECONDARY LINKS
   ========================================================================== */

/* Primary Button: Scarlet Red Pill */
.btn-copper, .btn-scarlet, .btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: background-color var(--duration-micro) var(--ease-out), box-shadow var(--duration-micro) var(--ease-out);
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-copper:hover, .btn-scarlet:hover, .btn--primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 0 24px rgba(233, 36, 26, 0.35);
}

.btn-copper .btn-arrow {
  transition: transform var(--duration-micro) var(--ease-out);
  display: inline-block;
}

.btn-copper:hover .btn-arrow {
  transform: translateX(3px);
}

/* Secondary Button: Text link with sliding underline */
.link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  cursor: pointer;
  background: none;
  border: none;
}

.link-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-strong);
  transition: background-color var(--duration-micro) var(--ease-out);
}

.link-secondary:hover::after {
  background: var(--accent);
}

.link-secondary .link-arrow {
  transition: transform var(--duration-micro) var(--ease-out), color var(--duration-micro) var(--ease-out);
}

.link-secondary:hover .link-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ==========================================================================
   NAVIGATION: FLOATING PILL NAVBAR
   ========================================================================== */

#site-header {
  position: fixed;
  top: 16px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 100;
  transition: transform var(--duration-ui) var(--ease-out);
}

#site-header.nav-hidden {
  transform: translateY(-110%);
}

.nav-pill {
  display: flex;
  align-items: center;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  height: 52px;
  padding: 4px 6px 4px 18px;
  position: relative;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.7);
}

.nav-indicator {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  pointer-events: none;
  transition: left var(--duration-micro) var(--ease-out), width var(--duration-micro) var(--ease-out), opacity var(--duration-micro) var(--ease-out);
  opacity: 0;
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 20px;
  margin-right: 14px;
}

.nav-link-item {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: color var(--duration-micro) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-link-item:hover, .nav-link-item.active {
  color: var(--text);
}

/* Nav Mega Menus */
.nav-dropdown {
  position: relative;
}

.nav-mega-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(17, 17, 20, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px 14px 20px;
  width: clamp(580px, 52vw, 680px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-ui) var(--ease-out), transform var(--duration-ui) var(--ease-out), visibility var(--duration-ui);
  pointer-events: none;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 105;
}

/* Invisible hover bridge to eliminate mouseleave flickers when moving pointer from nav button to panel */
.nav-mega-panel::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown:hover .nav-mega-panel,
.nav-mega-panel.open,
.nav-dropdown:focus-within .nav-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-caret {
  transition: transform var(--duration-micro) var(--ease-out), color var(--duration-micro) var(--ease-out);
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
  color: var(--accent);
}

.nav-mega-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 20px;
}

.nav-mega-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.nav-mega-col-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.nav-mega-col-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 9999px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.nav-mega-item {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background var(--duration-micro) var(--ease-out);
}

.nav-mega-item:hover {
  background: var(--surface-2);
}

.nav-mega-item:hover .nav-mega-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.nav-mega-title {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}

.nav-mega-arrow {
  color: var(--text-subtle);
  font-size: 12px;
  transition: transform var(--duration-micro) var(--ease-out), color var(--duration-micro) var(--ease-out);
}

.nav-mega-desc {
  color: var(--text-muted);
  font-size: 11.5px;
  margin-top: 2px;
  line-height: 1.45;
}

/* Coming Soon Card in Business Systems Column */
.nav-mega-cs-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 24px);
}

.badge-coming-soon {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(233, 36, 26, 0.3);
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-block;
}

.nav-mega-cs-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color var(--duration-micro) var(--ease-out);
}

.nav-mega-cs-link:hover {
  color: var(--accent);
}

/* Mega Panel Bottom Footer */
.nav-mega-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Mobile Fullscreen Overlay */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 1023px) {
  .nav-links-wrap {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

.mobile-overlay-menu {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.98);
  backdrop-filter: blur(28px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-ui) var(--ease-out);
}

.mobile-overlay-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-overlay-link {
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-overlay-link:hover {
  color: var(--accent);
}

/* ==========================================================================
   HERO SECTION (CENTRED)
   ========================================================================== */

.hero-section-centred {
  min-height: 100svh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 60px;
  position: relative;
}

/* Rotating Flip Text (Stacked in 1 CSS Grid Cell for ZERO layout shift) */
.hero-flip-grid {
  display: inline-grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  position: relative;
  text-align: center;
  min-height: 1.15em;
  color: var(--accent);
}

.flip-phrase {
  grid-area: 1 / 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  white-space: pre-wrap;
  perspective: 480px;
  opacity: 0;
  pointer-events: none;
}

.flip-phrase.active {
  opacity: 1;
  pointer-events: auto;
}

.flip-word {
  display: inline-flex;
}

.flip-char {
  display: inline-block;
  transform-origin: 50% 50% -0.45em;
  backface-visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.5s var(--ease-out);
}

.flip-char.flip-pre-enter {
  transform: rotateX(-90deg);
  opacity: 0;
}

.flip-char.flip-enter {
  transform: rotateX(0deg);
  opacity: 1;
}

.flip-char.flip-exit {
  transform: rotateX(90deg);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.32s;
}

.flip-space {
  display: inline-block;
}

.hero-support-text {
  max-width: 42ch;
  margin: 20px auto 32px auto;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==========================================================================
   REACT BITS: SHAPE GRID (HERO BACKGROUND CANVAS)
   ========================================================================== */

.shape-grid-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 20%, transparent 75%);
}

.shape-grid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

/* ==========================================================================
   REACT BITS: CLICK SPARK
   ========================================================================== */

.click-spark-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9990;
}

/* ==========================================================================
   REACT BITS: BORDER GLOW (CARD & INFO CARDS)
   ========================================================================== */

.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --border-radius: 20px;
  --glow-padding: 32px;
  --cone-spread: 25;

  position: relative;
  border-radius: var(--border-radius);
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--duration-micro) var(--ease-out);
}

.border-glow-card:hover {
  border-color: var(--border-strong);
}

.border-glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface) 0 100%) padding-box,
    conic-gradient(from var(--cursor-angle) at center, transparent 0deg, var(--accent) 30deg, transparent 60deg) border-box;
  opacity: calc(var(--edge-proximity) / 100);
  transition: opacity 0.25s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   HOMEPAGE SECTIONS: SERVICES LIST & CARDS, PROCESS HAIRLINE, PRINCIPLES
   ========================================================================== */

/* Three Disciplines / Services Card Grid (AI Jugaad High-Density Pattern) */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .service-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color var(--duration-micro) var(--ease-out), transform var(--duration-micro) var(--ease-out), box-shadow var(--duration-micro) var(--ease-out);
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7);
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}

.service-card-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.service-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.deliverables-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 10px;
  display: block;
}

.deliverable-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.deliverable-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  white-space: nowrap;
}

.service-card-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Services Hairline Rows */
.service-hairline-list {
  border-top: 1px solid var(--border);
}

.service-hairline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--duration-micro) var(--ease-out);
}

.service-hairline-row:hover {
  transform: translateX(8px);
}

.service-hairline-row .row-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  width: 48px;
}

.service-hairline-row .row-title {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  flex: 1;
  color: var(--text);
}

.service-hairline-row .row-arrow {
  font-size: 18px;
  color: var(--text-subtle);
  transition: color var(--duration-micro) var(--ease-out), transform var(--duration-micro) var(--ease-out);
}

.service-hairline-row:hover .row-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Process Horizontal Hairline */
.process-hairline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 48px;
}

.process-hairline-track.track-3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.process-hairline-track::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.process-node-item {
  position: relative;
  z-index: 1;
}

.process-node-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-node-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.process-node-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  margin-bottom: 6px;
}

.process-node-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.process-node-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .process-hairline-track {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .process-hairline-track::before {
    display: none;
  }
}

/* Principles: 3 Plain Columns */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

@media (max-width: 840px) {
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Work Preview Cards (16:10 aspect ratio) */
.work-preview-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.work-preview-row:nth-child(even) {
  direction: rtl;
}

.work-preview-row:nth-child(even) > * {
  direction: ltr;
}

.work-card-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  transition: border-color var(--duration-ui) var(--ease-out);
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-ui) var(--ease-out);
}

.work-preview-row:hover .work-card-media {
  border-color: var(--border-strong);
}

.work-preview-row:hover .work-card-media img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .work-preview-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .work-preview-row:nth-child(even) {
    direction: ltr;
  }
}

.work-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px 0;
}

.work-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   ASSURANCE & CONVICTION (WHY US METRICS TILES)
   ========================================================================== */

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

@media (max-width: 860px) {
  .assurance-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.assurance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: border-color var(--duration-micro) var(--ease-out), transform var(--duration-micro) var(--ease-out);
}

.assurance-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.assurance-stat {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.assurance-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.assurance-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   TEAM GRID
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   REACT BITS: PROFILE CARDS (ABOUT TEAM SECTION)
   ========================================================================== */

.profile-card {
  --pc-rotate-x: 0deg;
  --pc-rotate-y: 0deg;
  --pc-light-x: 50%;
  --pc-light-y: 50%;
  --pc-active: 0;

  position: relative;
  width: 100%;
  max-width: 320px;
  perspective: 1000px;
  margin: 0 auto;
}

.profile-card-inner {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  transform: rotateX(var(--pc-rotate-x)) rotateY(var(--pc-rotate-y));
  transition: border-color var(--duration-micro) var(--ease-out);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7);
  will-change: transform;
}

.profile-card:hover .profile-card-inner {
  border-color: var(--border-strong);
}

.profile-card-role-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.profile-card-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.profile-card-post {
  font-size: 14px;
  color: var(--text-muted);
}

/* Specular Light Reflection */
.profile-card-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--pc-light-x) var(--pc-light-y),
    rgba(255, 255, 255, 0.1) 0%,
    transparent 60%
  );
  opacity: var(--pc-active);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}

/* ==========================================================================
   QUILL LABS ARCHITECTURAL LAYOUT SUITE (DESIGN LOCK V1 COMPLIANT)
   ========================================================================== */

/* Hero Blueprint Figure SVG */
.hero__fig {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 140px;
  pointer-events: none;
  z-index: 1;
}

.draw-line {
  stroke: var(--accent);
  stroke-dasharray: 6 8;
  animation: draw-dash 30s linear infinite;
}

@keyframes draw-dash {
  to { stroke-dashoffset: -1000; }
}

/* Marquee Strip */
.strip {
  border-block: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  padding-block: 0.9rem;
  position: relative;
  z-index: 2;
}

.strip__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.strip__group {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.strip__mark {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pull Quote Section */
.pull-quote {
  border-bottom: 1px solid var(--border);
  padding-block: clamp(4.5rem, 8vw, 7rem);
  position: relative;
  z-index: 2;
}

.pull-quote__inner {
  display: grid;
  gap: 1.25rem;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.pull-quote__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pull-quote__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.pull-quote h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

.pull-quote h2 em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

.pull-quote__sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 64ch;
  margin: 0 auto;
}

.pull-quote__rule {
  margin-top: 1.5rem;
}

.annot {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.annot--fig {
  text-align: center;
  margin-top: 2rem;
  display: block;
}

/* Quiet Leak Diagnostic */
.leak {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  z-index: 2;
}

.leak__diag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.leak__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.leak__headline {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text);
  font-weight: 600;
}

.leak__headline em {
  font-style: normal;
  color: var(--accent);
}

.leak__beats {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1080px;
}

@media (max-width: 840px) {
  .leak__beats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.leak__beat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: grid;
  gap: 1rem;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.leak__beat:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.leak__num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 600;
}

.leak__beat p {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}

.leak__fix {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.leak__fix-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Two Tracks Section */
.track-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 840px) {
  .track-tabs {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.track-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  display: grid;
  gap: 1.25rem;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.track-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
  border-top-left-radius: var(--radius-card);
  border-top-right-radius: var(--radius-card);
}

.track-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7);
}

.track-card:hover::after {
  transform: scaleX(1);
}

.track-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.track-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.track-card__line {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.track-card__line-value {
  color: var(--text-muted);
  font-weight: 400;
}

/* System Flow (7 Links Framework) */
.sys-flow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-top: 2rem;
  position: relative;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.sys-flow::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--border) 0%, var(--accent) 100%);
  z-index: 0;
  opacity: 0.6;
}

@media (max-width: 860px) {
  .sys-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .sys-flow::before {
    display: none;
  }
}

.sys-node {
  background: transparent;
  padding: 1rem 0.5rem;
  display: grid;
  gap: 0.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform 0.25s var(--ease-out);
}

.sys-node:hover {
  transform: translateY(-3px);
}

.sys-node::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  margin: 0 auto;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.sys-node:hover::before {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.sys-node span:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

.sys-node span:last-child {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.sys-node--hot::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.sys-node--hot span:last-child {
  color: var(--accent);
}

/* Modular Offer Feat Grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 840px) {
  .feat-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: grid;
  gap: 1rem;
  align-content: start;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7);
}

.feat-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.feat-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.feat-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feat-card__price {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Spec Work Showcase Grid (Quill Labs 3-Card Format) */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7);
}

.work-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #000;
}

.work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
  opacity: 0.9;
}

.work-card:hover .work-card__thumb img {
  transform: scale(1.04);
  opacity: 1;
}

.work-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.work-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(233, 36, 26, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.tag--business {
  color: var(--accent);
  background: var(--accent-soft);
}

.work-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

.work-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.work-card .outcome {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.work-card .outcome span {
  color: var(--accent);
}

.work-card__actions {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn--secondary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: border-color var(--duration-micro) var(--ease-out), color var(--duration-micro) var(--ease-out);
}

.btn--secondary:hover {
  border-color: var(--border-strong);
  color: var(--accent);
}

.btn--ghost {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--duration-micro) var(--ease-out);
}

.btn--ghost:hover {
  color: var(--accent);
}

.client-review {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
}

.client-review__stars {
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.client-review blockquote {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 0.4rem;
  color: var(--text);
  font-style: italic;
}

.client-review figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-family: var(--font-mono);
}

/* Method Flow (6 Stages) */
.flow {
  display: flex;
  counter-reset: stage;
  align-items: stretch;
  gap: 0;
  margin-top: 1.5rem;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .flow {
    flex-direction: column;
    gap: 1rem;
  }
}

.flow__node {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem 1.25rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  position: relative;
}

.flow__node:first-child {
  border-top-left-radius: var(--radius-card);
  border-bottom-left-radius: var(--radius-card);
}

.flow__node:last-child {
  border-top-right-radius: var(--radius-card);
  border-bottom-right-radius: var(--radius-card);
}

@media (min-width: 901px) {
  .flow__node:not(:first-child) {
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .flow__node {
    border-radius: var(--radius-card) !important;
  }
}

.flow__node::before {
  counter-increment: stage;
  content: "0" counter(stage);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.flow__node h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.flow__node p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.flow__connector {
  display: none;
}

/* CTA Band */
.cta-band {
  background: var(--bg);
  border-block: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
}

.cta-band__inner {
  display: grid;
  gap: 1.5rem;
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-band__inner h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
}

.cta-band__inner .lede {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   FORMS & MODAL
   ========================================================================== */

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--duration-micro) var(--ease-out), box-shadow var(--duration-micro) var(--ease-out);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Sprint Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   FOOTER (SORA TEXT, 3 COLUMNS, HAIRLINE TOP)
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 80px;
  padding-bottom: 48px;
  position: relative;
  z-index: 2;
  font-family: var(--font-sans);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--duration-micro) var(--ease-out);
  display: inline-block;
  margin-bottom: 10px;
}

.footer-link:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */

#site-preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s var(--ease-out);
}

#site-preloader.preloader-fade-out {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  width: 64px;
  height: 64px;
  color: var(--text);
  animation: preloader-pulse 0.9s ease-in-out infinite alternate;
}

@keyframes preloader-pulse {
  from { opacity: 0.3; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   REDUCED MOTION OVERRIDES
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .click-spark-canvas,
  #site-preloader {
    display: none !important;
  }
}


/* ==========================================================================
   ESSENTIAL UTILITY CLASSES (COMPILED TAILWIND REPLACEMENT)
   ========================================================================== */

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
}

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

.w-full { width: 100%; }
.w-7 { width: 1.75rem; }
.w-6 { width: 1.5rem; }
.w-5 { width: 1.25rem; }
.w-3 { width: 0.75rem; }
.h-auto { height: auto; }
.h-full { height: 100%; }
.h-7 { height: 1.75rem; }
.h-6 { height: 1.5rem; }
.h-5 { height: 1.25rem; }
.h-3 { height: 0.75rem; }

.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-16 { padding-top: 4rem; }
.pt-32 { padding-top: 8rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-24 { padding-bottom: 6rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mb-24 { margin-bottom: 6rem; }
.mb-28 { margin-bottom: 7rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-20 { margin-top: 5rem; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 3rem; }
.space-y-16 > :not([hidden]) ~ :not([hidden]) { margin-top: 4rem; }
.space-y-32 > :not([hidden]) ~ :not([hidden]) { margin-top: 8rem; }

.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

.text-white { color: #FFFFFF; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 600; }
.font-mono { font-family: var(--font-mono); }
.font-sans { font-family: var(--font-sans); }

.text-center { text-align: center; }
.tracking-tight { letter-spacing: -0.025em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Color Token Classes */
.text-\[\#F4F4F5\] { color: var(--text); }
.text-\[\#A1A1AA\] { color: var(--text-muted); }
.text-\[\#71717A\] { color: var(--text-subtle); }
.border-\[\#26262B\] { border-color: var(--border); }
.bg-\[\#17171B\] { background-color: var(--surface-2); }
.text-\[12px\] { font-size: 12px; }

/* ==========================================================================
   HOMEPAGE ARCHITECTURE: 11-SECTION EXTENSION STYLES
   ========================================================================== */

/* 03. Credibility Strip & Trust Signals */
.credibility-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 0 32px 0;
  position: relative;
  overflow: hidden;
}

.credibility-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
  gap: 32px;
  margin-bottom: 24px;
}

.credibility-marquee__track {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.credibility-marquee__item {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.credibility-marquee__item span.dot {
  color: var(--accent);
  font-size: 10px;
}

.trust-signals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
  .trust-signals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .trust-signals-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.trust-signal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.trust-signal-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* 04. Service Cards with Distinct Visual Compositions */
.service-pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration-micro) var(--ease-out), transform var(--duration-micro) var(--ease-out), box-shadow var(--duration-micro) var(--ease-out);
}

.service-pillar-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
}

.service-visual-box {
  width: 100%;
  height: 140px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Composition 1: Browser Mockup */
.mockup-browser-header {
  height: 26px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}

.mockup-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3A3A41;
}

.mockup-address-bar {
  margin-left: 8px;
  background: rgba(0, 0, 0, 0.3);
  height: 14px;
  border-radius: 4px;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #71717A;
  display: flex;
  align-items: center;
  padding: 0 6px;
}

.mockup-browser-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.mockup-line-h {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(233, 36, 26, 0.2), rgba(255, 255, 255, 0.05));
  width: 70%;
}

.mockup-line-sub {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  width: 50%;
}

.mockup-badge-pill {
  align-self: flex-start;
  height: 16px;
  padding: 0 8px;
  background: rgba(233, 36, 26, 0.15);
  border: 1px solid rgba(233, 36, 26, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--accent);
  display: flex;
  align-items: center;
}

/* Composition 2: Application / Data Interface */
.mockup-app-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
}

.mockup-app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mockup-stat-tile {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
}

.mockup-stat-val {
  font-size: 11px;
  font-weight: 600;
  color: #F4F4F5;
}

.mockup-stat-label {
  font-size: 7.5px;
  color: #71717A;
  text-transform: uppercase;
}

.mockup-telemetry-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-top: 6px;
}

.mockup-telemetry-fill {
  height: 100%;
  width: 82%;
  background: var(--accent);
  border-radius: 2px;
}

/* Composition 3: Connected Workflow Diagram */
.mockup-workflow-body {
  padding: 14px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.workflow-node {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #F4F4F5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 1;
}

.workflow-node.active-node {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(233, 36, 26, 0.25);
}

.workflow-connector {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 4px, transparent 4px, transparent 8px);
  margin: 0 6px;
}

/* 08. Who We Work With (2-Column Architecture) */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 800px) {
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color var(--duration-micro) var(--ease-out), transform var(--duration-micro) var(--ease-out);
}

.audience-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.audience-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.audience-bullets {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audience-bullet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.audience-bullet::before {
  content: '→';
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* 09. Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.testimonial-stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 14.5px;
  line-height: 1.65;
  color: #E4E4E7;
  margin-bottom: 24px;
  font-style: normal;
}

.testimonial-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-client-info h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: #F4F4F5;
  margin-bottom: 2px;
}

.testimonial-client-info p {
  font-size: 11.5px;
  color: #71717A;
  font-family: var(--font-mono);
}

.testimonial-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
}

/* Why Syntex Lab Differentiation */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  position: relative;
  transition: border-color var(--duration-micro) var(--ease-out), transform var(--duration-micro) var(--ease-out);
}

.why-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.why-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
