/* fivelab.de: IT-Service im Münsterland */

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-2: #eef4f8;
  --ink: #0d1b26;
  --ink-2: #4f5f6b;
  --rule: #dbe5ec;
  /* fivelab blue: wordmark, accents, contact band */
  --brand: #199ed9;
  --on-brand: #ffffff;       /* only for text >= 24px, or >= 18.66px bold */
  --on-brand-ink: #0d1b26;   /* any size on brand */
  /* deep fivelab blue: buttons, links, focus */
  --action: #0b6496;
  --action-deep: #084c73;
  --on-action: #ffffff;
  --footer: #0d1b26;

  --r: 8px;
  --r-btn: 6px;
  --sh: 0 1px 2px rgba(13, 27, 38, .06), 0 8px 24px rgba(13, 27, 38, .07);
  --sh-hover: 0 2px 4px rgba(13, 27, 38, .08), 0 16px 36px rgba(13, 27, 38, .13);

  --max: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --gap: clamp(1rem, 2vw, 1.75rem);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 5.5rem;

  --t-small: .9375rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.125rem, 1.4vw, 1.25rem);
  --t-h3: 1.3125rem;
  --t-h2: clamp(1.75rem, 2.8vw, 2.375rem);
  --t-h1: clamp(2.25rem, 4.4vw, 3.5rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  scrollbar-color: var(--ink-2) var(--paper-2);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--t-body);
  line-height: 1.6;
  caret-color: var(--action);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brand); color: var(--ink); }

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; -webkit-hyphens: manual; hyphens: manual; }

a { color: var(--action); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--action-deep); }

:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--s4); top: -4rem; z-index: 60;
  background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4);
  text-decoration: none; font-weight: 600; border-radius: var(--r-btn);
}
.skip:focus, .skip:hover { top: var(--s4); color: var(--paper); }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.icon { width: 1.25rem; height: 1.25rem; flex: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .75rem 1.25rem;
  border-radius: var(--r-btn);
  font: inherit;
  font-weight: 650;
  font-size: var(--t-body);
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 1.125rem; height: 1.125rem; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-deep); color: var(--on-action); }
.btn-secondary { background: var(--paper); color: var(--action); border-color: var(--rule); }
.btn-secondary:hover { border-color: var(--action); color: var(--action-deep); }
.btn-light { background: var(--paper); color: var(--action); }
.btn-light:hover { background: var(--paper-2); color: var(--action-deep); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 2.5rem; padding: .5rem 1rem; font-size: var(--t-small); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s6);
  min-height: 4.75rem;
}
.wordmark {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
  color: var(--brand);
  text-decoration: none;
  margin-right: auto;
}
.wordmark:hover { color: var(--brand); }

.main-nav .nav-list { display: flex; align-items: center; gap: var(--s5); }
.has-sub { position: relative; }
.sub-toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem 0; background: none; border: 0; border-bottom: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: var(--t-small); color: var(--ink); cursor: pointer;
}
.sub-toggle .icon { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.sub-toggle:hover, .sub-toggle[aria-expanded="true"] { color: var(--action); }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-toggle.is-active { color: var(--action); border-bottom-color: var(--brand); }
.submenu {
  display: none;
  position: absolute; top: calc(100% + .75rem); left: -1rem; z-index: 50;
  width: 34rem;
  grid-template-columns: 1fr 1fr; gap: .25rem;
  padding: var(--s3);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--sh-hover);
}
.submenu.is-open { display: grid; }
.submenu a {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .75rem; border-radius: var(--r-btn); border-bottom: 0;
  color: var(--ink); font-weight: 600; font-size: var(--t-small); text-decoration: none;
}
.submenu a:hover { color: var(--action); }
.submenu a:hover { background: var(--paper-2); }
.submenu .icon { width: 1.25rem; height: 1.25rem; color: var(--brand); }
.submenu a[aria-current="page"] { color: var(--action); background: var(--paper-2); }
.main-nav .nav-list > li > a {
  display: block;
  padding: .5rem 0;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--t-small);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--action); }
.main-nav .nav-list > li > a[aria-current="page"] { color: var(--action); border-bottom-color: var(--brand); }

.header-call .num { font-variant-numeric: tabular-nums; }
.menu-toggle, .call-icon { display: none; }

/* ---------- Hero ---------- */

.hero { background: var(--paper-2); padding: clamp(2rem, 4vw, 3rem) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { font-size: var(--t-h1); font-weight: 700; max-width: 18ch; }
.hero .lead { font-size: var(--t-lead); color: var(--ink-2); margin-top: var(--s4); max-width: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s6); color: var(--ink-2); font-size: var(--t-small); }
.hero-facts li { display: flex; align-items: center; gap: .45rem; }
.hero-facts .icon { width: 1.125rem; height: 1.125rem; color: var(--brand); }

.shot {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  background: var(--paper);
  border: 1px solid var(--rule);
}
.shot img { width: 100%; height: auto; object-fit: cover; object-position: left top; }
.hero .shot img { aspect-ratio: 4 / 3; }

/* Service page hero */
.page-hero { background: var(--paper-2); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(6rem, 12vw, 9rem); }
.page-hero h1 { font-size: var(--t-h1); font-weight: 700; max-width: 20ch; }
.page-hero .lead { font-size: var(--t-lead); color: var(--ink-2); margin-top: var(--s4); max-width: 60ch; }
.page-hero .hero-actions { margin-top: var(--s5); }
.page-hero-plain { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.page-hero-tight { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.page-hero-legal { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.page-hero-plain + .svc { border-top: 0; }
.page-banner { margin-top: calc(-1 * clamp(4.5rem, 10vw, 7rem)); }
.page-banner .shot img { aspect-ratio: 4 / 1; }

.on-page { margin-top: var(--s7); }
.on-page .label { font-size: var(--t-small); font-weight: 700; color: var(--ink-2); margin-bottom: var(--s3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: .45rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--t-small);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.chips a:hover { border-color: var(--action); color: var(--action); }

/* ---------- Sections ---------- */

.section { padding: var(--s9) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 46rem; margin-bottom: var(--s7); }
.section-head h2 { font-size: var(--t-h2); font-weight: 700; }
.section-head p { margin-top: var(--s4); color: var(--ink-2); font-size: var(--t-lead); }
.section-services { padding-top: clamp(2rem, 4vw, 3rem); }
.section-head-tight { margin-bottom: var(--s5); }
.section-head-tight p { margin-top: var(--s2); }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tile {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  color: var(--ink);
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); border-color: var(--brand); color: var(--ink); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; border-bottom: 1px solid var(--rule); }
.tile-body { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); flex: 1; }
.tile h3 { font-size: var(--t-h3); font-weight: 700; }
.tile p { color: var(--ink-2); font-size: var(--t-small); line-height: 1.55; }
.tile .more { margin-top: auto; padding-top: var(--s3); display: inline-flex; align-items: center; gap: .4rem; color: var(--action); font-weight: 650; font-size: var(--t-small); }
.tile .more .icon { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.tile:hover .more .icon { transform: translateX(3px); }

.more-head { font-size: var(--t-h3); font-weight: 700; margin: var(--s7) 0 var(--s4); }
.mini-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.mini-card {
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s5);
  background: var(--paper-2); border: 1px solid transparent; border-radius: var(--r);
  color: var(--ink); text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.mini-card:hover { border-color: var(--brand); background: var(--paper); color: var(--ink); }
.mini-card .icon { width: 1.75rem; height: 1.75rem; color: var(--brand); margin-bottom: var(--s1); }
.mini-card .t { font-weight: 700; font-size: var(--t-body); line-height: 1.3; }
.mini-card .d { color: var(--ink-2); font-size: var(--t-small); line-height: 1.5; }

.industries { display: flex; flex-wrap: wrap; gap: var(--s3); }
.industries li {
  padding: .6rem 1.1rem;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper);
  font-weight: 600; font-size: var(--t-small);
}

/* Reasons */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s8); }
.reason { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: start; }
.reason .icon { width: 2rem; height: 2rem; color: var(--brand); margin-top: .1rem; }
.reason h3 { font-size: var(--t-h3); font-weight: 700; margin-bottom: var(--s2); }
.reason p { color: var(--ink-2); }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.partner {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.partner .name { font-weight: 700; font-size: var(--t-h3); line-height: 1.2; }
.partner .status { color: var(--ink-2); font-size: var(--t-small); line-height: 1.5; }
.partner a { margin-top: auto; padding-top: var(--s2); font-size: var(--t-small); font-weight: 650; }

/* References */
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ref {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: var(--s5) var(--s5) var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.ref h3 { font-size: var(--t-h3); font-weight: 700; }
.ref p { color: var(--ink-2); font-size: var(--t-small); line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: var(--s2); }
.tags li {
  padding: .2rem .65rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
}

/* Contact block */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
.person {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: var(--s5);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: var(--s5);
}
.contact-grid-center { align-items: center; }
.contact-grid-center .reason { max-width: 34rem; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: calc(var(--r) - 2px); }
.person .name { font-size: var(--t-h3); font-weight: 700; line-height: 1.2; }
.person .role { color: var(--ink-2); font-size: var(--t-small); margin: .2rem 0 var(--s4); }
.person ul li { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: var(--t-small); }
.person ul .icon { width: 1.125rem; height: 1.125rem; color: var(--brand); }
.person ul a { font-weight: 600; }

.contact-panel {
  background: var(--brand);
  color: var(--on-brand-ink);
  border-radius: var(--r);
  padding: var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.contact-panel h2, .contact-panel h3 { color: var(--on-brand); font-size: 1.75rem; font-weight: 700; }
.contact-panel .row { display: flex; flex-direction: column; gap: .1rem; }
.contact-panel .lbl { font-size: var(--t-small); font-weight: 600; color: var(--on-brand-ink); }
.contact-panel .val {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--on-brand);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.contact-panel .val:hover { text-decoration: underline; color: var(--on-brand); }
.contact-panel .actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: auto; padding-top: var(--s3); }
.contact-panel :focus-visible { outline-color: var(--on-brand-ink); }

/* Service page sections */
.svc { padding: var(--s8) 0; border-top: 1px solid var(--rule); }
.svc:first-of-type { border-top: 0; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.svc h2 { font-size: var(--t-h2); font-weight: 700; margin-bottom: var(--s5); }
.prose p { max-width: 66ch; }
.prose p + p { margin-top: var(--s4); }
.aside-card {
  background: var(--paper-2);
  border-radius: var(--r);
  padding: var(--s5);
}
.aside-card .label { font-size: var(--t-small); font-weight: 700; color: var(--ink-2); margin-bottom: var(--s2); }
.aside-card .label ~ .label { margin-top: var(--s5); }
.checks li { display: flex; gap: .6rem; align-items: flex-start; padding: .3rem 0; font-size: var(--t-small); line-height: 1.5; }
.checks .icon { width: 1.125rem; height: 1.125rem; color: var(--action); margin-top: .15rem; }

.table-card { margin-top: var(--s6); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
table.data caption { text-align: left; padding: var(--s4) var(--s5) 0; color: var(--ink-2); font-size: var(--t-small); }
table.data th { text-align: left; font-weight: 700; padding: var(--s3) var(--s5); border-bottom: 1px solid var(--rule); white-space: nowrap; }
table.data td { padding: var(--s3) var(--s5); border-bottom: 1px solid var(--rule); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 650; }

/* CTA band */
.cta { background: var(--brand); padding: var(--s8) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5) var(--s7); }
.cta h2 { color: var(--on-brand); font-size: clamp(1.75rem, 2.8vw, 2.25rem); font-weight: 700; max-width: 22ch; }
.cta p { color: var(--on-brand-ink); margin-top: var(--s2); max-width: 52ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.cta :focus-visible { outline-color: var(--on-brand-ink); }

/* Support page */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: var(--s5) var(--s5) var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.contact-card .icon { width: 2rem; height: 2rem; color: var(--brand); margin-bottom: var(--s2); }
.contact-card h2 { font-size: var(--t-h3); font-weight: 700; }
.contact-card .big { font-size: 1.5rem; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.contact-card p { color: var(--ink-2); font-size: var(--t-small); }

.remote { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.remote-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  align-items: flex-start;
}
.remote-card h2 { font-size: var(--t-h2); font-weight: 700; }
.remote-card p { color: var(--ink-2); max-width: 58ch; }
.steps { counter-reset: s; display: grid; gap: var(--s3); width: 100%; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: var(--s3); align-items: center; }
.steps li::before {
  content: counter(s);
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--action);
  font-weight: 700;
  font-size: var(--t-small);
}

/* Legal */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.5rem; font-weight: 700; margin: var(--s7) 0 var(--s3); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: var(--t-body); font-weight: 700; letter-spacing: 0; margin: var(--s5) 0 var(--s2); }
.legal p + p { margin-top: var(--s3); }
.legal dl { display: grid; grid-template-columns: 12rem 1fr; border-top: 1px solid var(--rule); }
.legal dt, .legal dd { padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.legal dt { color: var(--ink-2); font-size: var(--t-small); padding-right: var(--s4); }
.legal .addr { margin: var(--s3) 0; }
.legal-list { margin: var(--s3) 0; padding-left: 1.25rem; list-style: disc; }
.legal-list li { padding: .15rem 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--footer); color: #c9d6df; padding: var(--s8) 0 var(--s6); font-size: var(--t-small); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--s6); }
.site-footer .wordmark, .site-footer .wordmark:hover { font-size: 1.75rem; margin: 0; display: inline-block; color: var(--brand); text-decoration: none; }
.site-footer .label { font-size: var(--t-small); font-weight: 700; color: #ffffff; margin-bottom: var(--s3); }
.site-footer li + li { margin-top: .35rem; }
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #ffffff; }
.site-footer address { font-style: normal; margin-top: var(--s4); line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: var(--s7); padding-top: var(--s5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); color: #a9bac6; }
.site-footer :focus-visible { outline-color: #ffffff; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .tiles, .partners, .mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refs { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav .nav-list { gap: var(--s4); }
}

@media (max-width: 960px) {
  .header-inner { gap: var(--s3); min-height: 4rem; }
  .wordmark { font-size: 1.625rem; }
  .header-call { display: none; }
  .call-icon, .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0 .8rem;
    border-radius: var(--r-btn);
    font: inherit;
    font-weight: 650;
    font-size: var(--t-small);
    cursor: pointer;
    text-decoration: none;
  }
  .call-icon { background: var(--action); color: var(--on-action); border: 0; }
  .call-icon:hover { background: var(--action-deep); color: var(--on-action); }
  .menu-toggle { background: var(--paper); color: var(--ink); border: 1px solid var(--rule); }
  .menu-toggle .bars { width: 1.1rem; height: .75rem; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
    transition: transform .3s var(--ease), top .3s var(--ease);
  }
  .menu-toggle .bars::before { top: 0; }
  .menu-toggle .bars::after { top: calc(100% - 2px); }
  .menu-toggle[aria-expanded="true"] .bars::before { top: calc(50% - 1px); transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { top: calc(50% - 1px); transform: rotate(-45deg); }

  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--sh);
  }
  .main-nav.is-open { display: block; }
  .main-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: var(--s2) var(--pad) var(--s4); max-height: calc(100vh - 4rem); overflow-y: auto; }
  .sub-toggle { width: 100%; justify-content: space-between; padding: .9rem 0; font-size: var(--t-body); border-bottom: 0; }
  .sub-toggle.is-active { border-bottom: 0; }
  .submenu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 var(--s3); grid-template-columns: minmax(0, 1fr); }
  .submenu a { font-size: var(--t-small); }
  .main-nav .nav-list > li + li { border-top: 1px solid var(--rule); }
  .main-nav .nav-list > li > a { padding: .9rem 0; font-size: var(--t-body); border-bottom: 0; }
  .main-nav .nav-list > li > a[aria-current="page"] { border-bottom: 0; }
  .main-nav .nav-call { padding-top: var(--s4); }
  .main-nav .nav-list .nav-call a { display: flex; justify-content: center; gap: .6rem; color: var(--on-action); padding: .75rem 1.25rem; border-bottom: 0; }
  .main-nav .nav-list .nav-call a:hover { color: var(--on-action); }

  .hero-grid, .svc-grid, .contact-grid, .remote { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 18ch; }
  .reasons { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .page-banner .shot img { aspect-ratio: 2 / 1; }
  .section { padding: var(--s8) 0; }
}

@media (min-width: 961px) {
  .main-nav .nav-call { display: none; }
}

@media (max-width: 600px) {
  .tiles, .partners, .mini-cards { grid-template-columns: minmax(0, 1fr); }
  .person { grid-template-columns: minmax(0, 1fr); }
  .person img { max-width: 16rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .legal dl { grid-template-columns: minmax(0, 1fr); }
  .legal dt { border-bottom: 0; padding-bottom: 0; }
  .hero-actions .btn { width: 100%; }
  .call-icon .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .tile .more .icon, .btn, .chips a { transition: none; }
  .tile:hover, .tile:hover .more .icon { transform: none; }
}

@media (max-width: 600px) {
  .table-stack table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack table.data, .table-stack table.data tbody, .table-stack table.data tr, .table-stack table.data td { display: block; }
  .table-stack table.data caption { display: block; width: auto; padding: var(--s4) var(--s5) var(--s2); }
  .table-stack table.data tr { padding: var(--s3) var(--s5); border-bottom: 1px solid var(--rule); }
  .table-stack table.data tbody tr:last-child { border-bottom: 0; }
  .table-stack table.data td { display: flex; justify-content: space-between; gap: var(--s4); padding: .2rem 0; border-bottom: 0; }
  .table-stack table.data td::before { content: attr(data-label); color: var(--ink-2); font-weight: 400; }
  .table-stack table.data td:first-child { font-size: var(--t-body); padding-bottom: .35rem; }
  .table-stack table.data td:first-child::before { content: none; }
}

@media print {
  .site-header, .cta, .skip { display: none; }
  .tile, .shot, .contact-card { box-shadow: none; }
  .contact-panel { background: none; border: 1px solid var(--ink); }
  .contact-panel h2, .contact-panel .val { color: var(--ink); }
}
