/* RPMAKE — responsive site styles */

:root {
  --navy: #0b1623;
  --navy-2: #132338;
  --ink: #162333;
  --muted: #5b6b7c;
  --line: #e2e8ef;
  --bg: #ffffff;
  --soft: #f4f7fa;
  --accent: #ff6b35;
  --accent-dark: #e8551f;
  --accent-soft: #fff1eb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 22, 35, 0.07);
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 16px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

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

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 700;
  font-size: 0.95rem; border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255,107,53,.22); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline-light { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-accent { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { font-size: .92rem; font-weight: 600; color: var(--muted); position: relative; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 3px; border-radius: 2px; background: var(--accent);
}
.header-cta { padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; background: var(--navy); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .86; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,22,35,.94) 0%, rgba(11,22,35,.82) 34%, rgba(11,22,35,.30) 52%, rgba(11,22,35,.04) 70%, rgba(11,22,35,0) 100%);
}
/* Same split layout as the three inner-page heroes: keep all copy inside the
   clean dark left zone so no white text sits on top of the machine. */
.hero-content { position: relative; z-index: 2; padding: 90px 0; }
.hero h1 { color: #fff; margin-bottom: 20px; max-width: min(500px, 100%); }
.hero h1 span { color: var(--accent); }
.hero-lead, .page-hero-lead { text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.hero-lead { font-size: 1.12rem; color: #cbd6e2; max-width: min(460px, 100%); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; max-width: min(500px, 100%); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; color: #aab9c9; font-size: .88rem; max-width: min(500px, 100%); }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.eyebrow { color: var(--accent); font-weight: 800; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow-light { color: #ff8c63; }

/* Stats */
.stats { background: var(--navy); color: #fff; padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { border-left: 1px solid rgba(255,255,255,.16); padding-left: 22px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.stat span { font-size: .85rem; color: #9fb0c2; }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.section-head h2 { margin-bottom: 0; }
.section-head-text { max-width: 420px; color: var(--muted); margin: 0; font-size: .95rem; }
.section-head-center { justify-content: center; text-align: center; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.service-card { transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11,22,35,.1); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); font-size: .93rem; }
.text-link { color: var(--accent); font-weight: 700; font-size: .9rem; display: inline-block; margin-top: 8px; }
.text-link span { transition: transform .2s; display: inline-block; }
.text-link:hover span { transform: translateX(4px); }
.mini-card p { margin-bottom: 0; }
.mini-card-with-image { padding: 0; overflow: hidden; }
.mini-card-with-image img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: contain; display: block; background: var(--navy); }
.mini-card-with-image .mini-card-body { padding: 22px; }
.capability-gallery { margin: 26px 0 6px; }
.capability-card { padding: 0; overflow: hidden; }
.capability-card img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: contain; display: block; background: var(--navy); }
.capability-card .capability-body { padding: 20px 22px; }
.capability-card h3 { font-size: .98rem; margin-bottom: 6px; }
.capability-card p { margin: 0; font-size: .86rem; }
.principle-num { display: block; color: var(--accent); font-weight: 800; font-size: 1.4rem; margin-bottom: 14px; }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: center; }
.why-copy p:not(.eyebrow) { color: var(--muted); }
.why-list { display: grid; gap: 4px; }
.why-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.why-item:last-child { border-bottom: 0; }
.why-num { color: var(--accent); font-weight: 800; font-size: .85rem; padding-top: 4px; }
.why-item h3 { margin-bottom: 6px; font-size: 1rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Process */
.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-grid-five { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.process-grid-five .process-step h3 { font-size: .95rem; }
.process-grid-five .process-step p { font-size: .85rem; }
.process-step { position: relative; padding-top: 24px; border-top: 3px solid var(--line); }
.process-step::after { content: ""; position: absolute; top: -3px; left: 0; width: 48px; height: 3px; background: var(--accent); }
.process-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; margin-bottom: 14px; }
.process-step h3 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.industry { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; text-align: center; font-weight: 700; font-size: .95rem; transition: border-color .2s, color .2s; }
.industry:hover { border-color: var(--accent); color: var(--accent); }

/* Quotes */
.quote { font-size: .95rem; color: var(--ink); margin: 0; font-style: italic; }
.quote footer { margin-top: 20px; font-style: normal; display: grid; gap: 2px; }
.quote footer strong { font-size: .9rem; }
.quote footer span { color: var(--muted); font-size: .82rem; }

/* CTA */
.cta-band { background: var(--navy); color: #fff; padding: 70px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner h2 { margin-bottom: 10px; }
.cta-inner p:not(.eyebrow) { color: #b8c7d7; margin: 0; max-width: 560px; }

/* Page hero */
.page-hero { background: var(--navy); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -120px; top: -260px; background: radial-gradient(circle, rgba(255,107,53,.22), transparent 65%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero-lead { color: #c0cfdd; max-width: 720px; font-size: 1.05rem; margin-bottom: 0; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; color: #8fa3b7; font-size: .82rem; margin-bottom: 28px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: #fff; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 0; }
.split-reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; height: auto; max-height: none; object-fit: contain; box-shadow: var(--shadow); background: var(--navy); }
.split-copy p:not(.eyebrow) { color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 26px; font-size: .93rem; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.material-table { width: 100%; border-collapse: collapse; min-width: 700px; font-size: .92rem; }
.material-table th, .material-table td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.material-table thead { background: var(--navy); color: #fff; }
.material-table thead th { font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.material-table tbody th { font-weight: 700; }
.material-table tbody td { color: var(--muted); }
.material-table tbody tr:last-child th, .material-table tbody tr:last-child td { border-bottom: 0; }
.material-table tbody tr:hover { background: var(--soft); }

/* FAQ */

/* Inner-page hero photos (mirrors the home hero) */
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .72; display: block; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(11,22,35,.96) 0%, rgba(11,22,35,.86) 40%, rgba(11,22,35,.36) 70%, rgba(11,22,35,.08) 100%);
}
/* Hero photos: subject sits in the right half, so keep ALL copy strictly in
   the left clean zone and let the right side stay bright and fully visible. */
.page-hero:has(.page-hero-media) h1 { max-width: min(480px, 100%); }
.page-hero:has(.page-hero-media) .page-hero-lead { max-width: min(460px, 100%); }
.page-hero:has(.page-hero-media) .hero-actions { max-width: min(480px, 100%); }
.page-hero:has(.page-hero-media) .page-hero-media img { opacity: .86; }
.page-hero:has(.page-hero-media)::after {
  background: linear-gradient(90deg, rgba(11,22,35,.90) 0%, rgba(11,22,35,.80) 34%, rgba(11,22,35,.28) 52%, rgba(11,22,35,.04) 70%, rgba(11,22,35,0) 100%);
}
@media (max-width: 720px) {
  .page-hero:has(.page-hero-media) .page-hero-media img { object-position: 88% center; opacity: .5; }
  .page-hero:has(.page-hero-media)::after {
    background: linear-gradient(90deg, rgba(11,22,35,.96) 0%, rgba(11,22,35,.93) 55%, rgba(11,22,35,.84) 100%);
  }
}
/* FAQ side photo */
.faq-figure { margin: 28px 0 0; }
.faq-figure img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.faq-figure figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) { .faq-figure img { aspect-ratio: 16 / 10; object-position: center; } }

.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.faq-intro { color: var(--muted); font-size: .92rem; }
.faq-intro a { color: var(--accent); font-weight: 700; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: .95rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }

/* Quality */
.quality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quality-item { background: var(--soft); border-radius: 10px; padding: 24px; display: grid; gap: 6px; }
.quality-item strong { font-size: 1.5rem; color: var(--accent); }
.quality-item span { color: var(--muted); font-size: .85rem; }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-btn { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: .87rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .18s; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.portfolio-item:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11,22,35,.11); }
.portfolio-item.is-hidden { display: none; }
.portfolio-media { overflow: hidden; height: 210px; }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.portfolio-item:hover .portfolio-media img { transform: scale(1.04); }
.portfolio-body { padding: 22px; }
.portfolio-body h2 { font-size: 1.1rem; margin: 10px 0 8px; }
.portfolio-body p { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); padding: 5px 10px; border-radius: 6px; font-size: .74rem; font-weight: 700; }
.portfolio-meta { font-size: .8rem !important; color: #8493a3 !important; margin: 0 !important; }
.no-results { text-align: center; color: var(--muted); padding: 40px 0; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-info h2 { margin-bottom: 12px; }
.contact-info > p { color: var(--muted); font-size: .93rem; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contact-list li span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contact-list li a { color: var(--accent); font-weight: 700; }
.contact-note { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.contact-note h3 { font-size: 1rem; margin-bottom: 12px; }
.contact-note ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .88rem; display: grid; gap: 6px; }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 7px; }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink); font-size: .92rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: #d93a3a; }
.form-note { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.form-note a { color: var(--accent); font-weight: 700; }
.form-submit { width: 100%; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: 9px; font-size: .88rem; background: var(--accent-soft); color: var(--accent-dark); }

/* Footer */
.site-footer { background: var(--navy); color: #b4c3d3; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { font-size: .88rem; max-width: 280px; margin-top: 16px; }
.brand-light { color: #fff; }
.site-footer h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .87rem; }
.site-footer a:hover { color: var(--accent); }
.footer-cta { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 700; font-size: .87rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; font-size: .78rem; color: #8194a8; }
.footer-bottom p { margin: 0; }

/* Guides & articles */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.guide-card { display: flex; flex-direction: column; align-items: flex-start; }
.guide-card h2 { font-size: 1.22rem; margin: 14px 0 12px; }
.guide-card h2 a:hover { color: var(--accent); }
.guide-meta { color: #8493a3; font-size: .78rem; margin-top: auto; margin-bottom: 12px; }
.article-hero { padding-bottom: 60px; }
.article-meta { color: #8fa3b7; font-size: .82rem; margin: 24px 0 0; }
.article-section { padding: 64px 0; }
.article-body { max-width: 820px; }
.article-body h2 { font-size: 1.55rem; margin: 40px 0 14px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p, .article-body li { color: var(--muted); }
.article-body a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.content-note { background: var(--accent-soft); color: var(--accent-dark); border-radius: 10px; padding: 14px 18px; font-size: .88rem; margin-bottom: 28px; }
.content-note a { font-weight: 700; text-decoration: underline; }
.article-page { padding: 64px 0; }
.article-wrap > .eyebrow { margin-top: 24px; }
.article-wrap h1 { max-width: 820px; }
.article-body .lead { font-size: 1.12rem; color: var(--navy); line-height: 1.65; }
.article-body ol, .article-body ul { padding-left: 22px; margin: 16px 0; }
.article-body li { margin-bottom: 8px; }
.article-body .table-wrap { margin: 24px 0; }
.article-faq, .article-related { max-width: 820px; margin-top: 48px; }
.article-faq h2, .article-related h2 { font-size: 1.55rem; margin-bottom: 20px; }
.article-related p { color: var(--muted); }
.article-related a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.after-table { margin-top: 18px; }
.contact-note-link { margin: 14px 0 0; }

/* Responsive */
@media (max-width: 1024px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: .86rem; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 0; }
  .why-grid, .split, .faq-layout, .contact-layout { gap: 40px; }
  .grid-3, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .process-grid-five, .stats-grid, .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 10px 20px 18px;
    box-shadow: 0 12px 24px rgba(11,22,35,.1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .header-cta { margin-left: auto; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 500px; }
  .hero-content { padding: 70px 0; }
  .hero h1, .hero-lead, .hero-actions, .hero-badges { max-width: 100%; }
  .hero-media img { object-position: 84% center; opacity: .50; }
  .hero::after { background: linear-gradient(90deg, rgba(11,22,35,.94) 0%, rgba(11,22,35,.86) 55%, rgba(11,22,35,.62) 100%); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head-center { align-items: center; }
  .split, .split-reverse, .why-grid, .faq-layout, .contact-layout { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .cta-inner, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .grid-3, .portfolio-grid, .process-grid, .process-grid-five, .industry-grid, .guide-grid { grid-template-columns: 1fr; }
  .article-body h2 { font-size: 1.35rem; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 32px, var(--container)); }
  .header-cta { display: none; }
  .stats-grid, .quality-grid, .form-row { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding-top: 14px; }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .section { padding: 56px 0; }
  .card, .quote-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.article-cover { margin: 28px 0; }
.article-cover img { width: 100%; height: auto; border-radius: var(--border-radius-md, 8px); display: block; }
.article-cover figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted-foreground, #64748b); line-height: 1.5; }

.inline-related { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--accent, #ff6b35); background: var(--muted, #f5f7fa); border-radius: 0 var(--border-radius-md, 8px) var(--border-radius-md, 8px) 0; font-size: 0.95rem; }
.inline-related a { text-decoration: underline; }

/* Card thumbnails and inline content images */
.card-media { aspect-ratio: 3 / 2; height: auto; margin: -30px -30px 22px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--navy); }
.card-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.content-image { margin: 28px 0; }
.content-image img { width: 100%; height: auto; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.content-image figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.image-pair figure { margin: 0; }
.image-pair img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: contain; border-radius: var(--radius); display: block; background: var(--navy); }
.image-pair figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) { .image-pair { grid-template-columns: 1fr; } .image-pair img { aspect-ratio: 3 / 2; } }

/* Plan A launch additions */
.form-status--ok { background: #e8f6ee; color: #17693c; }
.form-status--err { background: #fdecea; color: #a3231d; }
.form-consent { margin-bottom: 18px; }
.form-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .84rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.form-consent input[type="checkbox"] { width: 17px; height: 17px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.form-consent a, .legal a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer-bottom a { color: #b4c3d3; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }
.legal { max-width: 840px; }
.legal h2 { margin-top: 38px; font-size: 1.35rem; }
.legal ul { padding-left: 20px; margin-bottom: 18px; }
.legal p, .legal li { color: var(--ink); }
.not-found { max-width: 720px; text-align: center; padding: 40px 0 60px; }
.not-found-code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; color: var(--accent); line-height: 1; margin: 0 0 12px; letter-spacing: -.05em; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 28px; }
