/* ============================================================
   Spark Syntax — styles.css
   Dark theme · Document aesthetic · Mobile-first
   ============================================================ */

/* Google Fonts are loaded via <link rel="stylesheet"> in each HTML <head> */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colour — dark purple system */
  --color-bg:       #09090D;
  --color-surface:  #111116;
  --color-text:     #EDEDF2;
  --color-muted:    #9B98AF;
  --color-subtle:   #6B6880;
  --color-border:   #252430;
  --color-accent:   #8B5CF6;
  --color-accent-h: #7C3AED;

  /* Typography */
  --font-head: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter',   system-ui, -apple-system, sans-serif;

  /* Spacing — strict 8 px grid */
  --sp-1:  0.5rem;   /*  8 px */
  --sp-2:  1rem;     /* 16 px */
  --sp-3:  1.5rem;   /* 24 px */
  --sp-4:  2rem;     /* 32 px */
  --sp-5:  2.5rem;   /* 40 px */
  --sp-6:  3rem;     /* 48 px */
  --sp-8:  4rem;     /* 64 px */

  /* Shape */
  --radius:   4px;
  --max-w:    1120px;
  --header-h: 3.5rem;

  /* Motion */
  --tr: 150ms ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg  { display: block; max-width: 100%; }
a         { color: inherit; text-decoration: none; }
ul, ol    { list-style: none; }
button    { cursor: pointer; font: inherit; border: none; background: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem);    letter-spacing: -0.03em; }
h2 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); letter-spacing: -0.02em; }
h3 { font-size: 1rem;     font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
h4 { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em; }

p      { color: var(--color-muted); }
strong { color: var(--color-text); font-weight: 600; }
code   { font-family: monospace; font-size: 0.9em; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}

@media (min-width: 640px)  { .container { padding-inline: var(--sp-4); } }
@media (min-width: 1200px) { .container { padding-inline: var(--sp-6); } }

.section          { padding-block: var(--sp-6); }   /* 48px mobile */
.section--surface { background-color: var(--color-surface); }
.section--sm      { padding-block: var(--sp-4); }   /* 32px mobile */

@media (min-width: 640px) {
  .section    { padding-block: var(--sp-8); }        /* 64px desktop */
  .section--sm { padding-block: var(--sp-6); }
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-2);
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.15s;
}
.skip-link:focus { top: var(--sp-1); }

/* ============================================================
   FOCUS
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.5625rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--tr), border-color var(--tr), color var(--tr);
}

/* Solid purple */
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-h);
  border-color: var(--color-accent-h);
  color: #fff;
}

/* Ghost — text colour, subtle border */
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-text);
}

/* Smaller variant */
.btn--sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

/* Inline text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: gap var(--tr);
}
.link-arrow::after { content: '→'; font-style: normal; }
.link-arrow:hover  { gap: 0.5rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--tr);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--sp-3);
}

/* Wordmark */
.wordmark {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: color var(--tr);
}
.wordmark:hover { color: var(--color-accent); }

/* Desktop nav — hidden on mobile, revealed at 820px */
.primary-nav { display: none; }

.primary-nav a {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted);
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius);
  transition: color var(--tr), background var(--tr);
}
.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--color-text);
  background: var(--color-surface);
}
.primary-nav a.is-active { font-weight: 600; }

/* Header CTA — hidden on mobile */
.nav-cta { display: none; }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: var(--radius);
  transition: background var(--tr);
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--color-surface); }

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px)  rotate(45deg);  }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav a {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background var(--tr);
}

.mobile-nav a:not(.btn):hover { background: var(--color-surface); }
.mobile-nav a.is-active       { color: var(--color-accent); }

.mobile-nav .btn               { margin-top: var(--sp-2); justify-content: center; }
.mobile-nav .btn--primary      { color: #fff; }
.mobile-nav .btn--primary:hover { background: var(--color-accent-h); border-color: var(--color-accent-h); }

/* Reveal desktop elements at 820 px */
@media (min-width: 820px) {
  .primary-nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
  }
  .nav-cta    { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-block: var(--sp-6) var(--sp-4);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .hero { padding-block: var(--sp-8) var(--sp-6); }
}

.hero-body { max-width: 680px; }

.hero h1   { margin-bottom: var(--sp-3); }

.hero-sub {
  font-size: 1.0625rem;
  color: var(--color-muted);
  max-width: 52ch;
  margin-bottom: var(--sp-4);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.hero-meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   SECTION HEADER — chapter rule
   ============================================================ */
.section-header {
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.section-header h2 { margin-top: var(--sp-1); }

.section-header p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  max-width: 52ch;
}

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ============================================================
   WHAT WE DO — capability blocks
   ============================================================ */
.capability-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--color-border);
}
.capability-block:last-child {
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 820px) {
  .capability-block {
    grid-template-columns: 12rem 1fr;
    gap: var(--sp-8);
    align-items: start;
  }
}

.capability-num {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.375rem;
}

.capability-block__left h3 { font-size: 0.9375rem; }

.capability-block__right p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: 58ch;
  margin-bottom: var(--sp-2);
  line-height: 1.7;
}

/* ============================================================
   HOW WE WORK — process steps
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--sp-4);
  }
}

@media (min-width: 1000px) {
  .process-steps {
    grid-template-columns: repeat(5, 1fr);
    column-gap: var(--sp-5);
  }
}

.process-step {
  padding-block: var(--sp-4);
  border-top: 2px solid var(--color-border);
  transition: border-top-color var(--tr);
}
.process-step:hover { border-top-color: var(--color-accent); }

@media (max-width: 999px) {
  .process-step { padding-block: var(--sp-3); }
}

.process-step__num {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--sp-2);
}

.process-step h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.process-steps + p { margin-top: var(--sp-5); }

/* ============================================================
   WHY SPARK SYNTAX
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: start;
}

@media (min-width: 820px) {
  .why-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--sp-8);
  }
}

.why-intro p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: 34ch;
  line-height: 1.7;
}

.why-item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding-block: 0.875rem;
  border-top: 1px solid var(--color-border);
}
.why-item:last-child { border-bottom: 1px solid var(--color-border); }

.why-dash {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  line-height: 1.7;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.65;
}

/* ============================================================
   ENGAGEMENT BLOCK
   ============================================================ */
.engagement-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 820px) {
  .engagement-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}

.engagement-col__heading {
  display: block;
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--sp-3);
}

.engagement-list li {
  font-size: 0.9375rem;
  color: var(--color-text);
  padding-block: 0.875rem;
  border-top: 1px solid var(--color-border);
  line-height: 1.6;
}
.engagement-list li:last-child { border-bottom: 1px solid var(--color-border); }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  padding-block: var(--sp-8);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.cta-strip h2 { margin-bottom: var(--sp-1); }

.cta-strip p {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 46ch;
  margin-bottom: var(--sp-4);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-8);
}

/* Three-column grid: brand | pages | legal */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-8);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr; }
}

/* Brand column */
.footer-brand { display: flex; flex-direction: column; }

.footer-wordmark {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--sp-2);
  transition: color var(--tr);
}
.footer-wordmark:hover { color: var(--color-accent); }

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 30ch;
  margin-bottom: var(--sp-3);
}

.footer-email {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color var(--tr);
  margin-top: auto;
}
.footer-email:hover { color: var(--color-accent); }

/* Nav columns */
.footer-col { display: flex; flex-direction: column; }

.footer-col__heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-subtle);
  margin-bottom: var(--sp-3);
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;   /* 10px — tighter than sp-2 for link lists */
}

.footer-col nav a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color var(--tr);
  width: fit-content;
}
.footer-col nav a:hover { color: var(--color-text); }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-block: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-subtle);
}

/* Social icon links */
.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--sp-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  flex-shrink: 0;
  transition: color var(--tr), border-color var(--tr), background var(--tr);
}

.social-link:hover {
  color: var(--color-text);
  border-color: var(--color-subtle);
  background: var(--color-surface);
}

.social-link svg { display: block; }

/* ============================================================
   PAGE HERO — inner pages
   ============================================================ */
.page-hero {
  padding-block: var(--sp-6) var(--sp-4);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .page-hero { padding-block: var(--sp-8) var(--sp-6); }
}

.page-hero .eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-2);
}

.page-hero h1 { margin-bottom: var(--sp-2); }

.page-hero p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  gap: var(--sp-8);
}

@media (min-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }
}

.contact-info h3 { margin-bottom: var(--sp-2); }

.contact-info p {
  font-size: 0.9375rem;
  margin-bottom: var(--sp-4);
}

.contact-detail { display: flex; flex-direction: column; gap: var(--sp-2); }

.contact-detail__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.9rem;
}

.contact-detail__icon {
  width: 2rem;
  flex-shrink: 0;
  font-size: 1rem;
}

.form-stack { display: flex; flex-direction: column; gap: var(--sp-3); }

.form-row { display: grid; gap: var(--sp-3); }

@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: repeat(2, 1fr); }
}

.field { display: flex; flex-direction: column; gap: 0.375rem; }

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
}

.field label span { color: var(--color-accent); margin-left: 2px; }

.field input,
.field textarea,
.field select {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
  width: 100%;
  outline: none;
  transition: border-color var(--tr), box-shadow var(--tr);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--color-subtle); }

.field textarea { resize: vertical; min-height: 128px; }

.form-hint {
  font-size: 0.75rem;
  color: var(--color-subtle);
  margin-top: var(--sp-1);
  line-height: 1.6;
}
.form-hint a { color: var(--color-accent); }
.form-hint a:hover { text-decoration: underline; }

/* Field validation error messages */
.field-error {
  display: none;
  font-size: 0.75rem;
  color: #f87171;
  margin-top: -0.125rem;
}
.field-error.is-visible { display: block; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12) !important;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content { max-width: 720px; }

.legal-meta {
  font-size: 0.8125rem;
  color: var(--color-subtle);
  margin-bottom: var(--sp-4);
}

.legal-content h2 {
  font-size: 1.0625rem;
  margin-top: var(--sp-6);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--color-border);
  margin-bottom: 0.5rem;
}

.legal-content p  { font-size: 0.9375rem; margin-bottom: var(--sp-2); max-width: none; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: var(--sp-2); }
.legal-content li { font-size: 0.9375rem; color: var(--color-muted); margin-bottom: 0.35rem; }
.legal-content a  { color: var(--color-accent); }
.legal-content a:hover { text-decoration: underline; }

/* ============================================================
   TAGS — capability skill/tech labels
   ============================================================ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: var(--sp-2);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}

/* Output note — process page */
.step-output {
  font-size: 0.8125rem;
  color: var(--color-subtle);
  font-style: italic;
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.text-muted  { color: var(--color-muted); }
.text-accent { color: var(--color-accent); }

/* ============================================================
   INTERACTION & ANIMATION
   ============================================================ */

/* — Keyframes ——————————————————————————————————————————————— */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* — Hero page-load animation (index.html) ——————————————————— */
.hero-body h1,
.hero-body .hero-sub,
.hero-body .hero-actions,
.hero-body .hero-meta {
  animation: fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-body h1            { animation-delay: 0.05s; }
.hero-body .hero-sub     { animation-delay: 0.15s; }
.hero-body .hero-actions { animation-delay: 0.25s; }
.hero-body .hero-meta    { animation-delay: 0.38s; }

/* — Inner page hero animation —————————————————————————————— */
.page-hero .eyebrow { animation: fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both 0.05s; }
.page-hero h1       { animation: fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both 0.12s; }
.page-hero p        { animation: fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both 0.20s; }

/* — Scroll reveal (JS adds .js-reveal + .is-visible) ———————— */
.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* — Enhanced button states ————————————————————————————————— */
/* Override the base transition to add transform + shadow      */
.btn {
  transition: background var(--tr), border-color var(--tr), color var(--tr),
              transform 120ms ease, box-shadow 120ms ease;
}
.btn:not([disabled]):hover  { transform: translateY(-1px); }
.btn:not([disabled]):active { transform: translateY(0) scale(0.99); }

/* Primary: purple glow on hover, removed on press */
.btn--primary:not([disabled]):hover   { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.38); }
.btn--primary:not([disabled]):active  { box-shadow: none; }

/* Ghost: very subtle bg tint on hover */
.btn--ghost:not([disabled]):hover { background: rgba(237, 237, 242, 0.05); }

/* — Form interactions —————————————————————————————————————— */
/* Label turns accent when field is focused */
.field label { transition: color 200ms ease; }
.field:focus-within label { color: var(--color-accent); }

/* Inputs: add background tint + update transition */
.field input,
.field textarea,
.field select {
  transition: border-color var(--tr), box-shadow var(--tr), background 200ms ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  background: rgba(139, 92, 246, 0.04);
}

/* Validation: only shown after the user has typed (:placeholder-shown = field is empty) */
.field input:not(:placeholder-shown):invalid,
.field textarea:not(:placeholder-shown):invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}
.field input:not(:placeholder-shown):valid,
.field textarea:not(:placeholder-shown):valid {
  border-color: #34d399;
}

/* — Component hover states ————————————————————————————————— */
/* Capability rows: subtle accent tint on hover */
.capability-block { transition: background 200ms ease; }
.capability-block:hover { background: rgba(139, 92, 246, 0.04); }

/* Why / value items */
.why-item { transition: background 200ms ease; }
.why-item:hover { background: rgba(139, 92, 246, 0.05); }

/* Engagement list items */
.engagement-list li { transition: background 200ms ease; }
.engagement-list li:hover { background: rgba(139, 92, 246, 0.04); }

/* Process steps: already have border-top accent; add bg too */
.process-step { transition: border-top-color var(--tr), background 200ms ease; }
.process-step:hover { background: rgba(139, 92, 246, 0.04); }

/* — Footer link underline reveal ——————————————————————————— */
/* Override transition to add background-size */
.footer-col nav a {
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-size: 0 1.5px;
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 1px;          /* room for the underline */
  transition: color var(--tr), background-size 220ms ease;
}
.footer-col nav a:hover { background-size: 100% 1.5px; }

/* — Focus ring (WCAG 2.4.7 / 2.4.11) —————————————————————— */
/* Tighten from the earlier rule + add offset variants */
:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.btn:focus-visible       { outline-offset: 4px; }
.nav-toggle:focus-visible { outline-offset: 4px; }
.wordmark:focus-visible,
.footer-wordmark:focus-visible { outline-offset: 4px; border-radius: 2px; }

/* Inputs already have box-shadow focus; remove outline duplication */
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible { outline: none; }

/* ============================================================
   WCAG 2.3.3 — prefers-reduced-motion
   ============================================================ */
@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;
  }
  /* Ensure reveal elements are always visible without animation */
  .js-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
