/* ==========================================================================
   Resilient Educational Systems, LLC — resilientedsystems.com
   Shared stylesheet. Plain CSS, no build step.
   Brand: navy #0B2A7A · teal #3FB8B0 · Manrope (headings) · Source Sans 3 (body)
   ========================================================================== */

:root {
  --navy: #0B2A7A;
  --navy-deep: #081E57;
  --navy-mid: #10378F;
  --navy-line: #2C55B5;
  --teal: #3FB8B0;
  --teal-dark: #2A8F89;
  --teal-ink: #1E6F6A;
  --teal-light: #8EDCD6;
  --teal-tint: #E6F6F5;
  --ink: #1C2433;
  --ink-soft: #3D4756;
  --ink-muted: #4B5563;
  --paper: #FFFFFF;
  --paper-tint: #F4F7FB;
  --paper-deep: #E8EEF7;
  --line: #E3E8F0;
  --line-strong: #C9D3E6;
  --on-navy: #D6E0F5;
  --on-navy-muted: #B9C6E4;
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 10px;
  --max: 1200px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--navy); letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0; }
a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; display: block; }
button { font-family: var(--font-display); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.on-navy h1, .on-navy h2, .on-navy h3 { color: #fff; }
.on-navy p { color: var(--on-navy); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-in { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .05s } .d2 { animation-delay: .18s } .d3 { animation-delay: .32s } .d4 { animation-delay: .46s }
.stat { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.s1 { animation-delay: .5s } .s2 { animation-delay: .62s } .s3 { animation-delay: .74s } .s4 { animation-delay: .86s }
.hero-bg { background: linear-gradient(120deg, #0B2A7A 0%, #10378F 45%, #0B2A7A 100%); background-size: 200% 200%; animation: drift 14s ease-in-out infinite alternate; }
.lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,42,122,.10); border-color: var(--teal); }
.btn { transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.rule { transform-origin: left; animation: grow 1s cubic-bezier(.2,.7,.2,1) both; }
.panel-in { animation: fadein .35s ease both; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  .rule { animation-timeline: view(); animation-range: entry 10% entry 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-in, .stat, .reveal, .rule, .hero-bg, .panel-in { animation: none !important; }
  .lift, .btn, .tab { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- nav ---------- */
.site-nav { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(11,42,122,.06); }
html { scroll-padding-top: 92px; }
.nav-toggle { display: none; }
.site-nav .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--navy); letter-spacing: -0.01em; }
.brand-name span { font-size: 12px; color: var(--ink-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-weight: 600; }
.nav-links a { padding: 10px 0; }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--teal); }
.nav-links a.btn { padding: 0 22px; border-bottom: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 6px; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; }
.btn-navy { background: var(--navy); color: #fff; } .btn-navy:hover { color: #fff; }
.btn-teal { background: var(--teal); color: var(--navy); } .btn-teal:hover { color: var(--navy); }
.btn-outline { border: 2px solid var(--teal-light); color: #fff; background: transparent; } .btn-outline:hover { color: #fff; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 16px; font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 88px 16px; }
.section-tint { background: var(--paper-tint); }
.section-navy { background: var(--navy); color: #fff; }
.eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-dark); font-weight: 600; }
.on-navy .eyebrow { color: var(--teal-light); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.lede { font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.on-navy .lede { color: var(--on-navy); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
.stack { display: flex; flex-direction: column; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--paper); display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.card p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.card .num { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--teal-dark); letter-spacing: 0.08em; }
.card-sm { padding: 22px 24px; gap: 8px; }
.card-sm h3, .card-sm strong.t { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); }
.card-sm span { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.callout { background: var(--paper); border-left: 4px solid var(--teal); padding: 16px 20px; border-radius: 0 8px 8px 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.callout strong { color: var(--navy); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-ink); }

/* ---------- hero ---------- */
.hero { padding: 88px 16px 80px; color: #fff; position: relative; overflow: hidden; }
.hero .circuit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; align-items: center; }
.hero-copy { grid-column: span 7; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero-copy h1 { color: #fff; }
.hero-copy .lede { font-size: 19px; line-height: 1.55; color: var(--on-navy); max-width: 600px; }
.hero-eyebrow { display: flex; flex-direction: column; gap: 6px; }
.hero-eyebrow .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--teal-light); }
.hero-eyebrow .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--teal); }
.hero-eyebrow .sub { padding-left: 38px; font-size: 16px; font-style: italic; color: var(--on-navy-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { grid-column: span 5; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hero-serve { display: flex; flex-direction: column; gap: 10px; max-width: 600px; }
.hero-serve-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-light); font-weight: 600; }
.hero-serve ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 8px 24px; }
.hero-serve li { display: flex; gap: 10px; align-items: center; font-size: 17px; color: #fff; }
.hero-serve li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); flex-shrink: 0; }
.stat { background: rgba(255,255,255,.06); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--font-display); font-size: 38px; font-weight: 800; color: var(--teal); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; line-height: 1.45; color: var(--on-navy); }

/* ---------- who we serve strip ---------- */
.serve { padding: 40px 16px; background: var(--paper-tint); border-bottom: 1px solid var(--line); }
.serve .container { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.serve .eyebrow { flex-shrink: 0; }
.serve-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; flex: 1 1 860px; min-width: 0; }
.serve-item { display: flex; gap: 12px; align-items: flex-start; }
.serve-item svg { flex-shrink: 0; }
.serve-item strong { font-family: var(--font-display); font-size: 16px; color: var(--navy); display: block; margin-bottom: 2px; }
.serve-item span { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- photo band ---------- */
.photos { padding: 0 16px 88px; }
.photos .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.photos figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; background: var(--navy); display: flex; align-items: flex-end; }
.photos .wide { grid-column: span 7; aspect-ratio: 16 / 9; }
.photos .side { grid-column: span 5; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; }
.photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photos figcaption { position: relative; width: 100%; font-size: 11px; color: var(--on-navy); text-align: right; padding: 28px 14px 10px; background: linear-gradient(to top, rgba(8,30,87,.8), transparent); }
.photos figcaption a { color: #fff; text-decoration: underline; }
.photos .wide figcaption { padding: 18px 24px; text-align: left; background: linear-gradient(135deg, rgba(11,42,122,.95) 0%, rgba(30,111,106,.95) 100%); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.photos .wide figcaption .cap { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.3; color: #fff; }
.photos .wide figcaption .credit { font-size: 12px; color: var(--on-navy-muted); }

/* ---------- how we work ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; position: relative; }
.step .rule { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--teal); }
.step .k { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--teal-light); }
.step h3 { color: #fff; }
.step p { font-size: 15px; line-height: 1.6; color: var(--on-navy); }

/* ---------- about ---------- */
.glance { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.glance .eyebrow { font-size: 12px; color: var(--teal-light); }
.glance b { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--teal); line-height: 1; display: block; margin-bottom: 4px; }
.glance span { font-size: 14px; color: var(--on-navy); }

/* ---------- cta band ---------- */
.cta { padding: 64px 16px; background: var(--teal); }
.cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: 30px; line-height: 1.2; max-width: 720px; }
.cta p { font-size: 17px; color: var(--navy); }

/* ---------- footer ---------- */
.site-footer { padding: 56px 16px 40px; background: var(--navy-deep); color: var(--on-navy-muted); }
.site-footer .container { display: flex; flex-direction: column; gap: 36px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand { grid-column: span 2; display: flex; flex-direction: column; gap: 12px; }
.footer-brand .mark { display: flex; align-items: center; gap: 14px; }
.footer-brand .mark img { width: 76px; height: 76px; object-fit: contain; flex-shrink: 0; }
.footer-brand .mark strong { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: #fff; line-height: 1.2; }
.footer-brand p { font-size: 15px; line-height: 1.6; color: var(--on-navy-muted); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col h4 { font-family: var(--font-body); font-weight: 700; color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { color: var(--on-navy-muted); } .footer-col a:hover { color: #fff; }
.social-link { display: inline-flex; align-items: center; gap: 8px; } .social-link svg { flex: none; }
.footer-bar { border-top: 1px solid #1F3C85; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.footer-bar a { color: #fff; font-weight: 600; }
.site-footer.slim { padding: 40px 16px; }
.site-footer.slim .footer-bar { border-top: 0; padding-top: 0; }
.site-footer.slim .footer-bar nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer.slim .footer-bar nav a { color: var(--on-navy-muted); font-weight: 400; }
.site-footer.slim .footer-bar nav .sep { color: #2C55B5; margin: 0 8px; }
.footer-note { margin: 14px 0 0; font-size: 12px; color: var(--on-navy-muted); }
.footer-note a { color: var(--on-navy-muted); font-weight: 400; text-decoration: underline; }

/* ---------- capabilities page ---------- */
.page-head { padding: 64px 16px 56px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-head .circuit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .2; pointer-events: none; }
.page-head .container { position: relative; display: flex; flex-direction: column; gap: 40px; }
.page-head h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.1; }
.diffs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--navy-line); padding-top: 28px; }
.diffs strong { font-family: var(--font-display); font-size: 16px; color: var(--teal-light); display: block; margin-bottom: 6px; }
.diffs span { font-size: 14px; line-height: 1.5; color: var(--on-navy); }
.switcher { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.tabs { grid-column: span 4; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tab { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--navy); min-height: 72px; text-align: left; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.tab:hover { transform: translateX(4px); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab .num { font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: .8; }
.tab .t { font-size: 18px; font-weight: 700; line-height: 1.2; }
.panel { grid-column: span 8; min-width: 0; display: flex; flex-direction: column; gap: 24px; border: 1px solid var(--line); border-radius: 12px; padding: 36px; background: var(--paper-tint); }
.panel[hidden] { display: none; }
.panel h3 { font-size: 28px; font-weight: 800; }
.panel .items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.panel .items div { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.panel .items strong { font-family: var(--font-display); font-size: 16px; color: var(--navy); }
.panel .items span { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.perf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.perf .card-sm b { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--teal); line-height: 1; }
.perf .card-sm strong { font-family: var(--font-display); font-size: 16px; color: var(--navy); }
.perf .card-sm span { font-size: 14px; line-height: 1.5; }
.company { padding: 64px 16px; }
.company .container { display: flex; flex-direction: column; gap: 28px; }
.company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--navy-line); padding-top: 24px; }
.company-grid h4 { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--teal-light); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.company-grid p { font-size: 15px; line-height: 1.7; color: var(--on-navy); }
.company-grid .pending { color: var(--teal-light); }

/* ---------- contact page ---------- */
.contact { padding: 80px 16px 96px; background: var(--paper-tint); }
.contact .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; align-items: start; }
.contact-intro { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }
.contact-intro h1 { font-size: clamp(32px, 4vw, 44px); }
.contact-intro .lede { font-size: 18px; }
.contact-lines { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line svg { flex-shrink: 0; margin-top: 2px; }
.contact-line strong { color: var(--navy); display: block; margin-bottom: 2px; }
.contact-line > div { min-width: 0; }
.contact-line a, .contact-line span { color: var(--ink-soft); overflow-wrap: anywhere; }
.note { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.note strong { color: var(--navy); font-size: 15px; }
.note span { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.note a { font-weight: 600; }
.form { grid-column: span 7; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 16px; color: var(--ink); min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); }
.field textarea { padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field .help { font-size: 13px; color: var(--ink-muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-actions span { font-size: 14px; color: var(--ink-muted); }
.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; }

/* ---------- mobile nav (< 900px) ---------- */
@media (max-width: 899px) {
  html { scroll-padding-top: 76px; }
  .site-nav .container { flex-wrap: wrap; min-height: 64px; padding-top: 8px; padding-bottom: 8px; gap: 8px 12px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand img { width: 44px; height: 44px; }
  .brand-name strong { font-size: 15px; line-height: 1.15; white-space: nowrap; }
  .brand { gap: 10px; }
  .brand-name span { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--navy); cursor: pointer; flex-shrink: 0; }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-toggle .icon-close { display: none; }
  .site-nav.open .nav-toggle .icon-open { display: none; }
  .site-nav.open .nav-toggle .icon-close { display: block; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 12px; border-top: 1px solid var(--line); margin-top: 4px; }
  .site-nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { border-bottom: 1px solid var(--line); color: var(--teal-dark, #1E6F6A); }
  .nav-links a.btn { margin-top: 12px; padding: 0 22px; justify-content: center; border-bottom: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .diffs, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5, .serve-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3, .perf, .steps, .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .container, .grid-12, .switcher, .contact .container, .photos .container { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .hero-stats, .span-4, .span-5, .span-7, .span-8, .tabs, .panel, .contact-intro, .form, .photos .wide, .photos .side { grid-column: auto; }
  .photos .side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photos .side figure { aspect-ratio: 16 / 10; }
  .tabs { flex-direction: row; flex-wrap: wrap; }
  .tab { flex: 1 1 200px; min-height: 0; }
  .tab:hover { transform: none; }
}
@media (max-width: 640px) {
  .section, .hero, .page-head, .contact { padding-top: 56px; padding-bottom: 56px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .serve-grid, .perf, .steps, .diffs, .company-grid, .footer-grid, .panel .items, .form .row, .photos .side { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { grid-template-columns: minmax(0, 1fr); }
  .contact-intro, .form, .field { min-width: 0; }
  .field input, .field select, .field textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
  .footer-brand { grid-column: auto; }
  .panel { padding: 24px; }
  .form { padding: 24px; }
  .photos .wide figcaption .cap { font-size: 16px; }
  .hero-eyebrow .sub { padding-left: 0; }
}
