/* RAZ Agents — dark intelligence aesthetic */

:root {
  --bg: #050505;
  --bg-elevated: #0c0c0c;
  --bg-card: #111111;
  --surface: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #f5f5f5;
  --text-muted: #8a8a8a;
  --text-dim: #5c5c5c;
  --accent: #e8e8e8;
  --accent-glow: rgba(232, 232, 232, 0.06);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-y: scroll;
  height: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Background layers */
#grid-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  touch-action: none;
  opacity: 0.35;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  touch-action: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(5, 5, 5, 0.92);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.nav-brand img {
  border-radius: 8px;
}

.nav-brand strong {
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 18px !important;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text) !important;
  transition: border-color 0.25s, background 0.25s !important;
}

.nav-cta:hover {
  border-color: var(--border-hover);
  background: var(--accent-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* Main layout */
main {
  position: relative;
  z-index: 2;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 24px;
}

.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.section-header h2,
.services-copy h2,
.contact-intro h2,
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.section-sub {
  margin-top: 16px;
  color: var(--text-muted);
  max-width: 520px;
  font-size: 17px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 80px) 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  width: fit-content;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title em {
  font-style: normal;
  color: var(--text-muted);
}

.hero-lead {
  margin-top: 28px;
  max-width: 580px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(232, 232, 232, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--accent-glow);
}

.btn-full {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline;
}

.metric-suffix {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.metric-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Capabilities */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}

.cap-card {
  background: var(--bg-elevated);
  padding: 40px 36px;
  transition: background 0.35s;
}

.cap-card:hover {
  background: var(--bg-card);
}

.cap-icon {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.cap-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cap-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Services */
.services {
  background: linear-gradient(180deg, transparent, var(--bg-elevated) 30%, transparent);
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.services-desc {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

.service-list {
  margin-top: 32px;
}

.service-list li {
  position: relative;
  padding: 12px 0 12px 24px;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.terminal {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
}

.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }

.terminal-bar code {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

.terminal-body {
  padding: 24px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
  overflow-x: auto;
}

.t-dim { color: var(--text-dim); }
.t-ok { color: #4ade80; }
.t-warn { color: #fbbf24; }
.t-cursor { animation: blink 1s step-end infinite; }

@keyframes blink {
  50% { opacity: 0; }
}

/* Sectors */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.sector-card {
  padding: 32px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.sector-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.sector-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.sector-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Flagship */
.flagship {
  padding-top: 0;
}

.flagship-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 64px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.flagship-inner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.flagship-content {
  position: relative;
}

.flagship-content p:last-child {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 540px;
}

.flagship-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.flagship-logo img {
  width: min(200px, 100%);
  filter: drop-shadow(0 0 60px rgba(232, 232, 232, 0.08));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Process */
.process-steps {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.process-step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}

.process-step h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.process-step p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 560px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.contact-intro p:last-child {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17px;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-card {
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}

a.contact-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
  transform: translateY(-2px);
}

.contact-card--primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border-color: rgba(74, 222, 128, 0.2);
}

.contact-card--primary:hover {
  border-color: rgba(74, 222, 128, 0.4);
}

.contact-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.contact-value {
  font-size: 15px;
  font-weight: 500;
  word-break: break-all;
}

.contact-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #4ade80;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row--full {
  grid-column: 1 / -1;
}

.form-row label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-row input,
.form-row textarea {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 0.25s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--border-hover);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-full {
  grid-column: 1 / -1;
}

.hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-seo {
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 8px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.footer-seo a {
  color: var(--text-muted);
}

.footer-seo a:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--text);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .services-layout,
  .flagship-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    scroll-behavior: auto;
  }

  .page-enter {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease), opacity 0.4s, visibility 0.4s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li a {
    display: block;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sector-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .flagship-inner {
    padding: 40px 28px;
  }

  .section {
    padding: 80px 24px;
  }
}

/* Multi-page enhancements */
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text);
}

.nav-links li { position: relative; }

.page-enter {
  animation: pageIn 0.7s var(--ease) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 64px) 24px 48px;
}

.page-hero--compact {
  padding-bottom: 24px;
}

.page-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-hero-lead {
  margin-top: 20px;
  max-width: 560px;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb--1 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: rgba(232, 232, 232, 0.04);
}

.glow-orb--2 {
  width: 360px;
  height: 360px;
  bottom: 20%;
  left: -100px;
  background: rgba(74, 222, 128, 0.03);
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.bento-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.bento-card:hover::before { opacity: 1; }

.bento-card--large { grid-row: span 2; min-height: 100%; }

.bento-card--accent {
  border-color: rgba(74, 222, 128, 0.25);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
}

.bento-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.bento-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.bento-arrow {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--text-dim);
  transition: transform 0.3s var(--ease), color 0.3s;
}

.bento-card:hover .bento-arrow {
  transform: translateX(6px);
  color: var(--text);
}

.marquee {
  border-block: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  background: var(--bg-elevated);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cta-banner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 120px;
}

.cta-banner-inner {
  text-align: center;
  padding: 72px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cta-banner p {
  margin: 16px auto 32px;
  max-width: 480px;
  color: var(--text-muted);
}

.cta-banner .hero-actions {
  justify-content: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.pricing-card {
  padding: 36px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.pricing-card--featured {
  border-color: rgba(232, 232, 232, 0.2);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elevated));
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.pricing-card ul li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-note {
  margin-top: 32px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

.pricing-note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.case-card {
  padding: 36px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.case-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.case-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #4ade80;
  display: block;
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.case-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.about-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-copy h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-block {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 500;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.values-grid article {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.values-grid h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.values-grid p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Contact page — form + info side by side */
.contact-page {
  padding-top: 24px;
  padding-bottom: 80px;
}

.contact-page-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}

.contact-block-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.contact-block-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.contact-form--page {
  margin: 0;
}

.contact-cards--sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  grid-template-columns: unset;
}

.contact-cards--sidebar .contact-card--primary {
  grid-column: auto;
}

.contact-page-info .contact-card {
  padding: 20px;
}

@media (max-width: 900px) {
  .contact-page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form--page {
    padding: 28px 22px;
  }
}

/* Locations / service areas page */
.locations-hub {
  padding-top: 0;
}

.locations-primary {
  padding: 36px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.locations-primary h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.locations-primary p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.locations-list {
  margin: 0 0 20px 20px;
  color: var(--text-muted);
  line-height: 1.8;
}

.locations-contact a {
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.location-card {
  padding: 28px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.location-card--featured {
  border-color: rgba(74, 222, 128, 0.2);
  grid-column: 1 / -1;
}

.location-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.location-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.locations-faq h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.locations-dl dt {
  font-weight: 600;
  font-size: 15px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.locations-dl dt:first-child {
  margin-top: 0;
}

.locations-dl dd {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
  margin: 0;
}

.locations-dl a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }

  .location-card--featured {
    grid-column: auto;
  }
}

/* Research page — no scroll fade; fully visible */
body[data-page="research"] .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

body[data-page="research"] .page-enter,
body[data-page="research"] .research-main {
  animation: none;
  opacity: 1;
  transform: none;
}

.research-main .page-hero {
  padding-bottom: 32px;
}

.research-meta {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.research-meta a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.research-article {
  padding-top: 0;
  max-width: 780px;
}

.research-summary {
  padding: 28px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.research-summary h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.research-summary p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 16px;
}

.research-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.research-stat {
  margin: 0;
  padding: 24px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.research-stat blockquote {
  margin: 0;
}

.research-stat blockquote p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.research-stat figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.5;
}

.research-stat figcaption a {
  color: var(--text-muted);
}

.research-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.research-section:last-of-type {
  border-bottom: none;
}

.research-section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.research-section p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
  font-size: 16px;
}

.research-list {
  margin: 16px 0 16px 20px;
  color: var(--text-muted);
  line-height: 1.75;
}

.research-list li {
  margin-bottom: 8px;
}

.research-list--ordered {
  list-style: decimal;
}

a.cite {
  font-family: var(--mono);
  font-size: 11px;
  color: #4ade80;
  text-decoration: none;
  vertical-align: super;
  margin-left: 2px;
}

a.cite:hover {
  text-decoration: underline;
}

.research-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.research-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.research-table th,
.research-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.research-table th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-card);
}

.research-table td {
  color: var(--text-muted);
}

.research-table tr:last-child td {
  border-bottom: none;
}

.research-cta {
  padding: 40px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.research-cta h2 {
  margin-bottom: 12px;
}

.research-cta p {
  max-width: 520px;
  margin: 0 auto 24px;
}

.research-cta .hero-actions {
  justify-content: center;
}

.research-references h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.ref-list {
  list-style: none;
  counter-reset: refs;
  padding: 0;
}

.ref-list li {
  counter-increment: refs;
  position: relative;
  padding: 0 0 20px 36px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.ref-list li::before {
  content: "[" counter(refs) "]";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.ref-list a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.research-disclaimer {
  margin-top: 32px;
  padding: 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  font-size: 13px !important;
  color: var(--text-dim) !important;
}

@media (max-width: 900px) {
  .research-stat-grid {
    grid-template-columns: 1fr;
  }
}

.fab-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.fab-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.45);
}

@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card--large { grid-row: auto; }
  .pricing-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .case-grid { grid-template-columns: 1fr; }
  .fab-wa { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: opacity 0.4s; transform: none; }
  .flagship-logo img { animation: none; }
  .pulse { animation: none; }
  .page-enter { animation: none; }
  .marquee-track { animation: none; }
}
