/* ==========================================================================
   Livecode Solutions — site styles
   Implemented from the "Livecode Site" Claude Design.
   ========================================================================== */

/* ==========================================================================
   Self-hosted web fonts (variable woff2). Replaces the render-blocking
   Google Fonts request. Only the 'latin' subset is fetched for English
   content; 'latin-ext' loads on demand via unicode-range.
   ========================================================================== */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F6F7F7;
  --ink: #0F1416;
  --teal: #12B5AE;
  --teal-hover: #0fa39c;
  --teal-dark: #0a6b66;
  --teal-ink: #04211f;
  --line: #e2e4e4;
  --line-soft: #eceeee;
  --muted: #5a615e;
  --muted-2: #455049;
  --muted-3: #3f4644;
  --muted-4: #5f6764;
  --muted-5: #8a918f;
  --dark-card: #0F1416;
  --dark-inner: #171d1f;
  --dark-inner-line: #232a2c;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --maxw: 1360px;
  --gutter: 48px;
  /* Strong ease-out for entering/interactive motion (built-in easings are too weak) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  background-image:
    linear-gradient(#e9ebeb 1px, transparent 1px),
    linear-gradient(90deg, #e9ebeb 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px;
}

a { color: var(--teal-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--ink); }

img, svg { display: block; }

h1, h2, h3 { text-wrap: balance; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 40px;
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.16s var(--ease-out), background 0.15s ease,
    color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Press feedback — the button confirms it heard you */
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { background: var(--teal-hover); color: var(--teal-ink); box-shadow: 0 8px 20px -12px rgba(18, 181, 174, 0.9); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #cfd3d2; }
.btn-ghost:hover { color: var(--ink); border-color: #b4b9b8; }
.btn-dark { background: var(--ink); color: var(--bg); font-size: 15px; padding: 12px 22px; border-radius: 8px; }
.btn-dark:hover { background: #1c2427; color: var(--bg); }

/* ---- Trust bar ------------------------------------------------------------ */
.trustbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--gutter);
  background: var(--ink);
  color: #c7ccca;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.trustbar .since { display: flex; align-items: center; gap: 9px; }
.trustbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; }
.trustbar .stats { display: flex; gap: 28px; }

/* ---- Nav ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 247, 0.92);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand .name span { font-weight: 500; color: var(--muted-3); }

.main-nav { display: flex; gap: 30px; font-size: 15px; }
.main-nav a { color: var(--muted-3); }
.main-nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform 0.25s var(--ease-out), opacity 0.2s ease; }
/* Morph the three bars into an X when the menu is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--teal-dark);
  background: #dbf1ef;
  border: 1px solid #b9e5e2;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 66px;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.hero p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 540px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: var(--dark-card);
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 30px 60px -30px rgba(15, 20, 22, 0.5);
}
.hero-card .label { color: var(--teal); font-size: 13px; letter-spacing: 0.03em; margin-bottom: 22px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-card li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--dark-inner);
  border: 1px solid var(--dark-inner-line);
  border-radius: 8px;
  padding: 16px 18px;
}
.hero-card li .check { color: var(--teal); font-size: 18px; }
.hero-card li span:last-child { color: #dfe3e1; font-size: 15px; }

/* ---- Metrics -------------------------------------------------------------- */
.metrics { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.metrics-inner {
  background: var(--dark-card);
  border-radius: 14px;
  padding: 36px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  color: var(--bg);
}
.metric .num { font-family: var(--font-display); font-size: 42px; font-weight: 600; color: var(--teal); }
.metric .cap { font-size: 14px; color: var(--muted-5); margin-top: 6px; }

/* ---- Generic section ------------------------------------------------------ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 60px var(--gutter); }
.section--services { padding-top: 96px; padding-bottom: 60px; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
}
.card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }

.service-card { display: flex; gap: 20px; }
.service-card .idx { font-family: var(--font-mono); color: var(--teal); font-size: 14px; }

/* Hover tactility — gated so touch devices don't fire false hovers */
@media (hover: hover) and (pointer: fine) {
  .card,
  .quote,
  .industry-card.light {
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s ease;
  }
  .card:hover,
  .quote:hover,
  .industry-card.light:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -20px rgba(15, 20, 22, 0.35);
    border-color: #cfd3d2;
  }
  .industry-card.dark {
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  }
  .industry-card.dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -22px rgba(15, 20, 22, 0.6);
  }
}

/* ---- Industries ----------------------------------------------------------- */
.industry-card { display: flex; flex-direction: column; padding: 34px; border-radius: 14px; }
.industry-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.industry-card p { font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.industry-card.dark { background: var(--dark-card); color: var(--bg); }
.industry-card.dark h3 { color: #fff; }
.industry-card.dark p { color: #b6bcba; }
.industry-card.light { background: #fff; border: 1px solid var(--line); }
.industry-card.light p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag { font-family: var(--font-mono); font-size: 12px; border-radius: 999px; padding: 5px 11px; }
.tag.dark { color: #9fe6e2; border: 1px solid #2c3a3a; }
.tag.light { color: var(--teal-dark); border: 1px solid #cfe7e5; }

/* ---- Process -------------------------------------------------------------- */
.step-card { padding: 34px; }
.step-card .step-num { font-family: var(--font-display); font-size: 38px; font-weight: 600; color: var(--teal); margin-bottom: 16px; }
.step-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin: 0 0 10px; }
.step-card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---- Why ------------------------------------------------------------------ */
.why-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0 0 8px; }

/* ---- Case study ----------------------------------------------------------- */
.section--work { padding-top: 0; padding-bottom: 80px; }
.case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.case-media {
  min-height: 340px;
  background: repeating-linear-gradient(135deg, #eef0f0 0 14px, #f6f7f7 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-media span { font-family: var(--font-mono); font-size: 12px; color: #9aa19f; }
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.case-body { padding: 56px; }
.case-body .kicker { font-size: 13px; letter-spacing: 0.05em; color: var(--teal-dark); text-transform: uppercase; margin-bottom: 14px; }
.case-body h2 { font-family: var(--font-display); font-size: 30px; font-weight: 600; margin: 0 0 14px; letter-spacing: -0.01em; }
.case-body p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 26px; }
.case-body a { color: var(--teal-dark); font-weight: 600; font-size: 15px; }
.case-body a:hover { color: var(--ink); }

/* ---- Testimonials --------------------------------------------------------- */
.section--testimonials { padding-top: 0; padding-bottom: 90px; }
.quote {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.quote .stars { color: var(--teal); font-size: 15px; letter-spacing: 2px; margin-bottom: 16px; }
.quote blockquote { margin: 0 0 24px; font-size: 17px; line-height: 1.55; color: #2b322f; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #dbf1ef;
  color: var(--teal-dark);
}
.avatar--ink { background: var(--ink); color: var(--teal); }
.avatar--teal { background: var(--teal); color: var(--teal-ink); }
.quote .who { display: block; font-weight: 600; font-size: 15px; }
.quote .role { display: block; font-size: 13px; color: var(--muted-5); }

/* Two-up testimonials */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---- FAQ ------------------------------------------------------------------ */
.section--faq { max-width: 900px; padding-top: 0; padding-bottom: 90px; }
.faq-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  list-style: none;
  transition: background 0.15s ease;
}
.faq-item summary:hover { background: #fafbfb; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-sign { color: var(--teal); font-size: 24px; font-weight: 400; line-height: 1; transition: transform 0.2s var(--ease-out); }
.faq-item[open] .faq-sign { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 28px 26px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---- CTA ------------------------------------------------------------------ */
.section--cta { padding-top: 0; padding-bottom: 44px; }
.cta-band {
  background: var(--dark-card);
  border-radius: 16px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--bg);
}
.cta-band .kicker { font-size: 13px; letter-spacing: 0.05em; color: var(--teal); text-transform: uppercase; margin-bottom: 14px; }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: 42px; letter-spacing: -0.02em; margin: 0 0 12px; }
.cta-band p { font-size: 17px; color: #b6bcba; margin: 0; }
.cta-band .btn { white-space: nowrap; padding: 17px 32px; border-radius: 10px; }

/* ---- Contact -------------------------------------------------------------- */
.section--contact { padding-top: 0; padding-bottom: 100px; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 56px;
}
.contact-intro h2 { font-family: var(--font-display); font-weight: 600; font-size: 36px; letter-spacing: -0.02em; margin: 0 0 16px; }
.contact-intro > p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 28px; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .check { color: var(--teal); font-size: 16px; }
.contact-list span:last-child { font-size: 15px; color: var(--muted-3); }
.contact-alt { border-top: 1px solid var(--line-soft); padding-top: 22px; font-size: 15px; color: var(--muted); line-height: 1.9; }
.contact-alt .strong { color: var(--ink); font-weight: 600; }

.lc-form { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted-3); margin-bottom: 7px; }
.field label .opt { color: #a6aca9; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d4d8d7;
  border-radius: 9px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border: 1px solid var(--teal);
  box-shadow: 0 0 0 3px rgba(18, 181, 174, 0.15);
  outline: none;
}
.lc-form button[type="submit"] { margin-top: 4px; }
.form-note { font-size: 13px; color: var(--muted-5); margin: 0; }
.form-error { font-size: 14px; color: #c0392b; margin: 0; }

.form-success {
  background: #f2fbfa;
  border: 1px solid #b9e5e2;
  border-radius: 14px;
  padding: 56px 40px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-success .badge {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal); color: var(--teal-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 20px;
}
.form-success h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin: 0 0 10px; }
.form-success p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }

.is-hidden { display: none !important; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted-4);
}
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; }

/* ==========================================================================
   Scroll reveal — subtle staggered entrance (JS-driven, no-JS renders visible)
   ========================================================================== */
.js .grid-3 > *,
.js .grid-2 > *,
.js .metrics-inner > *,
.js .section > .eyebrow,
.js .section > .section-title,
.js .section > .lede,
.js .case,
.js .cta-band,
.js .contact-grid,
.js .faq-list {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
/* Compound selectors match the specificity of the hidden-state rules above
   (.js .section > .section-title is 3 classes) so the revealed state wins. */
.js .section > .eyebrow.is-revealed,
.js .section > .section-title.is-revealed,
.js .section > .lede.is-revealed,
.js .is-revealed {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 56px; }
  .hero h1 { font-size: 52px; }
  .metrics-inner { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; }
  .case-media { min-height: 220px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  /* Redundant on mobile — every stat repeats in the metrics section below,
     so hide it to give the logo, nav, and hero the top of the fold. */
  .trustbar { display: none; }

  .site-header { flex-wrap: wrap; gap: 12px; padding: 16px 20px; }
  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 4px; }
  .nav-toggle { display: block; }
  .site-header .btn-dark { display: none; }

  .hero h1 { font-size: 33px; line-height: 1.1; }
  .hero p { font-size: 16px; }
  .section, .section--services { padding-top: 28px; padding-bottom: 24px; }
  .section--work, .section--testimonials, .section--faq,
  .section--cta, .section--contact { padding-top: 0; }
  .section--work, .section--testimonials, .section--faq { padding-bottom: 36px; }
  .section--cta { padding-bottom: 24px; }
  .section--contact { padding-bottom: 44px; }
  .section-title { margin-bottom: 24px !important; }
  .section-head { margin-bottom: 20px; }
  .section-title, .cta-band h2 { font-size: 26px; line-height: 1.15; }
  .contact-intro h2 { font-size: 26px; }
  .case-body h2 { font-size: 24px; }
  .metrics-inner { grid-template-columns: repeat(2, 1fr); padding: 28px; }
  .grid-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .case-body { padding: 32px; }
  .cta-band { padding: 40px 28px; }
  .contact-grid { padding: 28px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  /* Never leave reveal targets hidden when motion is suppressed */
  .js .grid-3 > *,
  .js .grid-2 > *,
  .js .metrics-inner > *,
  .js .section > .eyebrow,
  .js .section > .section-title,
  .js .section > .lede,
  .js .case,
  .js .cta-band,
  .js .contact-grid,
  .js .faq-list {
    opacity: 1;
    transform: none;
  }
}
