/* ==========================================================================
   ProcedureWriter.ai — shared stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  /* Surfaces — warm charcoal, not blue-black */
  --bg-950: #0a0a0d;
  --bg-900: #101013;
  --bg-800: #17171c;
  --bg-700: #1f1f26;
  --bg-600: #2b2b34;

  /* Text */
  --text-000: #f7f7f8;
  --text-100: #e2e2e7;
  --text-300: #a5a6b0;
  --text-500: #6c6d78;

  /* Borders */
  --border-700: #202024;
  --border-600: #2c2c33;

  /* Brand accents — single confident blue, muted gold for highlights */
  --indigo-400: #7c8cf5;
  --indigo-500: #5b6ef0;
  --indigo-600: #4750d6;
  --teal-400: #cba765;
  --teal-500: #b3904f;

  /* Type */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Rhythm */
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg-950);
  color: var(--text-300);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-000);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p { color: var(--text-300); }

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

img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 16px; }

.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--indigo-500);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(91, 110, 240, 0.5);
}

.btn-primary:hover { background: var(--indigo-600); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(91, 110, 240, 0.65); }

.btn-secondary {
  background: transparent;
  color: var(--text-100);
  border-color: var(--border-600);
}

.btn-secondary:hover { border-color: var(--indigo-400); background: rgba(91, 110, 240, 0.08); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
header.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-700);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-000);
}

.brand-text { white-space: nowrap; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--indigo-500), var(--teal-500));
  display: grid;
  place-items: center;
}

.brand-mark svg { width: 18px; height: 18px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-300);
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--text-000); }

.nav-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span { width: 22px; height: 2px; background: var(--text-100); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  padding: 168px 0 100px;
  background:
    radial-gradient(55% 55% at 88% 0%, rgba(91, 110, 240, 0.16) 0%, transparent 62%),
    radial-gradient(40% 40% at 4% 30%, rgba(203, 167, 101, 0.07) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.9rem);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--indigo-400), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-300);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-meta {
  display: flex;
  gap: 28px;
  font-size: 0.85rem;
  color: var(--text-500);
  flex-wrap: wrap;
}

.hero-meta span { display: flex; align-items: center; gap: 8px; }

.hero-meta svg { width: 16px; height: 16px; color: var(--teal-400); flex-shrink: 0; }

/* Doc preview panel */
.doc-panel {
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.doc-panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-700);
  background: var(--bg-800);
}

.doc-dot { width: 9px; height: 9px; border-radius: 50%; }
.doc-dot.r { background: #f87171; }
.doc-dot.y { background: #fbbf24; }
.doc-dot.g { background: #34d399; }

.doc-panel-bar .filename {
  font-size: 0.78rem;
  color: var(--text-500);
  margin-left: 8px;
  font-family: 'SF Mono', Menlo, monospace;
}

.doc-panel-body { padding: 26px; }

.doc-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--indigo-400); font-weight: 700; margin-bottom: 6px; }

.doc-heading { font-family: var(--font-head); font-weight: 700; color: var(--text-000); font-size: 1.05rem; margin-bottom: 18px; }

.doc-section { margin-bottom: 18px; }

.doc-section h4 { font-size: 0.82rem; color: var(--text-100); margin-bottom: 8px; }

.doc-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-300);
  margin-bottom: 6px;
}

.doc-line svg { width: 14px; height: 14px; color: var(--teal-400); flex-shrink: 0; margin-top: 2px; }

.doc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-700);
  font-size: 0.75rem;
  color: var(--text-500);
}

.doc-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(203, 167, 101, 0.14);
  color: var(--teal-400);
}

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  border-radius: var(--radius-md);
  padding: 30px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

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

.card-photo {
  height: 200px;
  margin: -30px -30px 22px;
  background: var(--bg-800);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%) contrast(1.05);
  transition: filter 0.25s ease, transform 0.35s ease;
}

.card:hover .card-photo img { filter: grayscale(10%) contrast(1.05); transform: scale(1.05); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-800);
  border: 1px solid var(--border-700);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--teal-400);
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 1.05rem; margin-bottom: 10px; }

.card p { font-size: 0.92rem; }

.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--indigo-400);
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  perspective: 1000px;
}

.step {
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  border-left: 3px solid var(--indigo-500);
  border-radius: var(--radius-md);
  padding: 26px;
}

.step-num {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--indigo-400);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; }

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

.industry-card {
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.industry-photo {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-800);
}

.industry-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(45%) contrast(1.05);
  transition: filter 0.25s ease, transform 0.35s ease;
}

.industry-card:hover .industry-photo img { filter: grayscale(10%) contrast(1.05); transform: scale(1.04); }

.industry-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 13, 0.15) 0%, rgba(10, 10, 13, 0.85) 100%);
}

.industry-photo .card-icon {
  position: absolute;
  left: 20px;
  bottom: -22px;
  z-index: 1;
  background: var(--bg-900);
}

.industry-card-body { padding: 40px 24px 24px; }

.industry-card .card-icon { color: var(--indigo-400); }

.industry-card h3 { font-size: 1.02rem; margin-bottom: 10px; }
.industry-card p { font-size: 0.88rem; }

.industry-card ul {
  list-style: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-700);
}

.industry-card li {
  font-size: 0.82rem;
  color: var(--text-500);
  padding: 4px 0;
  display: flex;
  gap: 8px;
}

.industry-card li::before { content: '—'; color: var(--border-600); }

/* ---------- Photo band (full-width editorial image + text) ---------- */
.photo-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-700);
  min-height: 340px;
  display: flex;
  align-items: flex-end;
}

.photo-band img {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  filter: grayscale(55%) contrast(1.05);
  will-change: transform;
}

.photo-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 13, 0.94) 0%, rgba(10, 10, 13, 0.55) 55%, rgba(10, 10, 13, 0.25) 100%);
  z-index: 1;
}

.photo-band-content {
  position: relative;
  z-index: 2;
  padding: 44px;
  max-width: 480px;
}

.photo-band-content h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 12px; }
.photo-band-content p { font-size: 0.95rem; }

/* ---------- Image mosaic ---------- */
.image-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mosaic-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-700);
  background: var(--bg-800);
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%) contrast(1.05);
  transition: filter 0.3s ease;
}

.mosaic-item:hover img { filter: grayscale(5%) contrast(1.05); }

.mosaic-live {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(10, 10, 13, 0.55);
  backdrop-filter: blur(4px);
  color: var(--text-000);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mosaic-live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

.mosaic-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 12px 12px;
  background: linear-gradient(0deg, rgba(10, 10, 13, 0.92) 0%, transparent 100%);
  color: var(--text-000);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: -0.01em;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mosaic-item:hover .mosaic-caption { transform: translateY(0); }

/* ---------- Marquee ticker ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border-700);
  border-bottom: 1px solid var(--border-700);
  background: var(--bg-900);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  padding: 18px 0;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-500);
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.marquee-track span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-400);
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; overflow-x: auto; }
  .marquee { overflow-x: auto; }
}

/* ---------- Pull quote ---------- */
.pull-quote {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  color: var(--text-000);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.pull-quote span { color: var(--teal-400); }

/* ---------- Placeholder blocks (honest, marked) ---------- */
.placeholder-block {
  background: var(--bg-800);
  border: 1px dashed var(--border-600);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  font-size: 0.88rem;
  color: var(--text-500);
}

.placeholder-block strong { color: var(--text-300); display: block; margin-bottom: 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(91, 110, 240, 0.12), rgba(203, 167, 101, 0.06));
  border: 1px solid var(--border-700);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}

.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.cta-band p { max-width: 480px; margin: 0 auto 30px; }
.cta-band .btn-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 156px 0 64px;
  border-bottom: 1px solid var(--border-700);
  background: radial-gradient(55% 55% at 88% 0%, rgba(91, 110, 240, 0.14) 0%, transparent 62%);
}

.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); max-width: 720px; margin-bottom: 18px; }
.page-hero p { font-size: 1.05rem; max-width: 620px; }

/* ---------- Service detail rows ---------- */
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-700);
}

.service-row:last-child { border-bottom: none; }

.service-row .card-icon { margin-bottom: 0; }

.service-row h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-row p { font-size: 0.95rem; max-width: 640px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border-700);
  padding: 8px 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 0;
  text-align: left;
  font-family: var(--font-body);
}

.faq-question span { font-size: 1rem; font-weight: 600; color: var(--text-100); }

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-500);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--teal-400); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 240px; }

.faq-answer p { font-size: 0.92rem; padding-bottom: 18px; }

/* ---------- Values ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  perspective: 1200px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-700);
  margin-bottom: 32px;
  height: 220px;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(45%) contrast(1.05);
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-info-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-info-item h4 { font-size: 0.92rem; color: var(--text-100); margin-bottom: 4px; }
.contact-info-item p { font-size: 0.88rem; }

form.contact-form {
  background: var(--bg-900);
  border: 1px solid var(--border-700);
  border-radius: var(--radius-lg);
  padding: 32px;
}

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

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-100);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-800);
  border: 1px solid var(--border-600);
  border-radius: var(--radius-sm);
  color: var(--text-000);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.15s ease;
}

.field input::placeholder, .field textarea::placeholder { color: var(--text-500); }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--indigo-500);
}

.field textarea { resize: vertical; min-height: 110px; }

.form-note { font-size: 0.78rem; color: var(--text-500); margin-top: 14px; text-align: center; }

.form-status { font-size: 0.88rem; margin-top: 14px; display: none; }
.form-status.success { color: var(--teal-400); display: block; }
.form-status.error { color: #f87171; display: block; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border-700);
  padding: 64px 0 32px;
  background: var(--bg-900);
}

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

.footer-grid .brand { margin-bottom: 14px; }
.footer-grid p { font-size: 0.88rem; }

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-100);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--text-500); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text-100); }

.footer-bottom {
  border-top: 1px solid var(--border-700);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-500);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .card-grid, .steps-grid, .industry-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .image-mosaic { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  section { padding: 64px 0; }
  .hero { padding: 140px 0 64px; }
  .page-hero { padding: 128px 0 48px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .card-grid, .steps-grid, .industry-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .image-mosaic { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 36px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  header.site-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-950);
    border-bottom: 1px solid var(--border-700);
    padding: 20px 24px 28px;
    gap: 18px;
  }

  header.site-nav.open .nav-cta { display: none; }
}

/* ---------- Nav scroll state ---------- */
header.site-nav { transition: box-shadow 0.3s ease, background 0.3s ease; }

header.site-nav.scrolled {
  background: rgba(10, 10, 13, 0.92);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--indigo-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ---------- Micro-interactions ---------- */
.card a.card-link .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.card a.card-link:hover .arrow { transform: translateX(4px); }

/* ---------- Motion (disabled for reduced-motion users) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .card, .step, .industry-card, .service-row, .faq-item, .value-grid > *,
  .cta-band, .photo-band, .section-head, .pull-quote,
  .mosaic-item, .contact-grid > div:first-child, .contact-form {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .card.in-view, .step.in-view, .industry-card.in-view, .service-row.in-view,
  .faq-item.in-view, .value-grid > *.in-view,
  .cta-band.in-view, .photo-band.in-view, .section-head.in-view, .pull-quote.in-view,
  .mosaic-item.in-view, .contact-grid > div:first-child.in-view, .contact-form.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  @keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero > .hero-grid > div:first-child { animation: fade-up 0.7s ease both; }
  .doc-panel-wrap { animation: fade-up 0.7s ease 0.15s both, float 6s ease-in-out 0.9s infinite; }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  @keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(203, 167, 101, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(203, 167, 101, 0); }
  }

  .doc-badge { animation: pulse-glow 2.6s ease-in-out infinite; }

  @keyframes drift {
    0% { background-position: 0% 0%, 0% 0%; }
    100% { background-position: 12% 8%, -10% -6%; }
  }

  .hero {
    background-size: 160% 160%, 160% 160%;
    animation: drift 24s ease-in-out infinite alternate;
  }

  .page-hero {
    background-size: 160% 160%;
    animation: drift-single 24s ease-in-out infinite alternate;
  }

  @keyframes drift-single {
    0% { background-position: 0% 0%; }
    100% { background-position: 14% 10%; }
  }

  /* ---------- Per-page signature animations ---------- */

  /* Home: cards and mosaic tiles pop in with a scale */
  .pg-home .card {
    transform: translateY(20px) scale(0.93);
  }
  .pg-home .card.in-view {
    transform: translateY(0) scale(1);
  }

  /* Home: mosaic tiles pull into focus from a soft blur, not a slide */
  .pg-home .mosaic-item {
    transform: scale(1.1);
    filter: blur(10px);
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
  }
  .pg-home .mosaic-item.in-view {
    transform: scale(1);
    filter: blur(0);
  }

  /* Mosaic tiles keep a slow, looping Ken Burns drift once revealed — footage, not photos */
  @keyframes ken-burns {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.15) translate(-2%, -1.5%); }
    100% { transform: scale(1) translate(0, 0); }
  }

  .pg-home .mosaic-item.in-view img {
    animation: ken-burns 12s ease-in-out infinite;
  }

  .pg-home .mosaic-item:nth-child(2).in-view img { animation-delay: -3s; }
  .pg-home .mosaic-item:nth-child(3).in-view img { animation-delay: -6s; }
  .pg-home .mosaic-item:nth-child(4).in-view img { animation-delay: -9s; }

  @keyframes rec-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  .mosaic-live .dot { animation: rec-pulse 1.6s ease-in-out infinite; }

  /* Services: rows alternate in from left and right, editorial-style */
  .pg-services .service-row {
    transform: translateX(-40px);
  }
  .pg-services .service-row:nth-of-type(even) {
    transform: translateX(40px);
  }
  .pg-services .service-row.in-view {
    transform: translateX(0);
  }

  /* Industries: cards wipe open like a curtain */
  .pg-industries .industry-card {
    transform: none;
    clip-path: inset(0 100% 0 0);
    transition: opacity 0.6s ease, clip-path 0.8s ease;
  }
  .pg-industries .industry-card.in-view {
    clip-path: inset(0 0 0 0);
  }

  /* How It Works: steps flip open like a page turning */
  .pg-how .step {
    transform: rotateX(-18deg) translateY(14px);
    transform-origin: top center;
  }
  .pg-how .step.in-view {
    transform: rotateX(0) translateY(0);
  }

  /* About: value cards rotate in, the pull-quote scales up */
  .pg-about .value-grid > * {
    transform: rotateY(-65deg);
    transform-origin: left center;
  }
  .pg-about .value-grid > *.in-view {
    transform: rotateY(0);
  }
  .pg-about .pull-quote {
    transform: scale(0.9);
  }
  .pg-about .pull-quote.in-view {
    transform: scale(1);
  }

  /* Contact: info and form slide in from opposite sides */
  .pg-contact .contact-grid > div:first-child {
    transform: translateX(-32px);
  }
  .pg-contact .contact-form {
    transform: translateX(32px);
  }
  .pg-contact .contact-grid > div:first-child.in-view,
  .pg-contact .contact-form.in-view {
    transform: translateX(0);
  }
  .pg-contact .contact-photo img {
    transform: scale(1.12);
    transition: transform 0.8s ease;
  }
  .pg-contact .contact-photo.in-view img {
    transform: scale(1);
  }
}
