:root {
  --ink: #101214;
  --ink-2: #181d20;
  --panel: #ffffff;
  --panel-2: #f4f8f7;
  --line: #d8e1df;
  --muted: #647174;
  --white: #ffffff;
  --teal: #0a726b;
  --teal-2: #053d39;
  --yellow: #f6bd18;
  --yellow-2: #ffe07a;
  --copper: #b64b33;
  --blueprint: #10282b;
  --shadow: 0 22px 70px rgba(7, 23, 25, 0.2);
  --nav-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  border-radius: 6px;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 225, 223, 0.9);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, height 180ms ease;
}

.topbar.is-compact {
  box-shadow: 0 14px 40px rgba(7, 23, 25, 0.12);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  min-width: max-content;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(16, 18, 20, 0.14);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(246, 189, 24, 0.45);
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.88);
  animation: sparkRing 2.8s ease-out infinite;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--muted);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  position: relative;
  padding: 0.6rem 0.7rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.94rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-120%);
  transition: transform 420ms ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn-primary {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 12px 28px rgba(246, 189, 24, 0.3);
}

.btn-primary:hover {
  background: var(--yellow-2);
  border-color: var(--yellow-2);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-dark {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.btn-wire {
  color: var(--teal-2);
  background: var(--white);
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: calc(100svh - 28px);
  padding: calc(var(--nav-h) + 3.8rem) 0 2rem;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(7, 9, 10, 0.98) 0%, rgba(7, 9, 10, 0.88) 38%, rgba(7, 9, 10, 0.36) 68%, rgba(7, 9, 10, 0.12) 100%),
    url("../images/meister-hero.png") center / cover;
}

.page-hero {
  position: relative;
  min-height: 390px;
  padding: calc(var(--nav-h) + 3rem) 0 3.5rem;
  display: flex;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(7, 9, 10, 0.96), rgba(7, 9, 10, 0.68), rgba(7, 9, 10, 0.24)),
    url("../images/meister-hero.png") center / cover;
}

.circuit-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  mix-blend-mode: screen;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.72fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy,
.page-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.page-hero h1 {
  margin-bottom: 1.35rem;
  font-size: clamp(2.7rem, 6.2vw, 4.95rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 950;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.hero-lead,
.page-lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 2.1rem;
}

.hero-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 760px;
}

.status-chip {
  min-height: 86px;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.status-chip strong,
.status-chip span {
  display: block;
}

.status-chip strong {
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.1;
}

.status-chip span {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.diagnostic-panel {
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 28, 31, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.panel-head strong {
  display: block;
}

.panel-head span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ff5be;
  box-shadow: 0 0 0 0 rgba(79, 245, 190, 0.48);
  animation: livePulse 1.7s ease-out infinite;
}

.panel-body {
  padding: 1rem;
}

.meter {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.meter span {
  display: block;
  height: 100%;
  width: var(--level, 64%);
  border-radius: inherit;
  background: linear-gradient(90deg, #33ddc5, var(--yellow), #f47c2e);
  transition: width 420ms ease;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.panel-cell {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.panel-cell span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
}

.panel-cell strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--white);
  font-size: 1rem;
}

.hero-strip {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.hero-strip span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(8, 22, 24, 0.62);
  font-weight: 800;
}

.section {
  padding: 5rem 0;
}

.section.alt {
  background: var(--panel-2);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.52fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head h2,
.split h2,
.planner h2,
.contact-card h2,
.legal h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 950;
}

.section-head p,
.split p,
.planner p,
.legal p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.project-card,
.planner,
.contact-card,
.legal-card,
.process-card,
.emergency-card,
.quote {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(7, 23, 25, 0.06);
}

.service-card {
  position: relative;
  min-height: 295px;
  padding: 1.25rem;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--yellow), var(--copper));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.service-card:hover,
.service-card.is-hot {
  transform: translateY(-6px);
  border-color: rgba(10, 114, 107, 0.34);
  box-shadow: var(--shadow);
}

.service-card:hover::before,
.service-card.is-hot::before {
  transform: scaleX(1);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--teal-2);
  background: #e3f1ef;
}

.service-card h3,
.project-card h3,
.process-card h3,
.emergency-card h3,
.quote strong {
  margin: 1.2rem 0 0.55rem;
  font-size: 1.14rem;
  line-height: 1.18;
  font-weight: 950;
}

.service-card p,
.project-card p,
.process-card p,
.emergency-card p,
.quote p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  color: var(--teal);
  font-weight: 950;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.8fr);
  gap: 3rem;
  align-items: center;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--ink);
  aspect-ratio: 4 / 3;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(246, 189, 24, 0.22), transparent);
  animation: scan 4s ease-in-out infinite;
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.4rem 0 1.6rem;
}

.check-list span {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
}

.check-list .icon {
  margin-top: 0.15rem;
  color: var(--teal);
}

.planner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: 1rem;
  padding: 1rem;
}

.planner-copy {
  padding: 1.2rem;
}

.planner-controls {
  display: grid;
  gap: 1rem;
  margin-top: 1.3rem;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.segmented button,
.quick-filters button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.segmented button.is-selected,
.quick-filters button.is-selected {
  border-color: var(--teal);
  color: var(--white);
  background: var(--teal);
}

.range-wrap label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
  font-weight: 850;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--yellow);
}

.planner-output {
  position: relative;
  padding: 1.2rem;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(150deg, rgba(5, 61, 57, 0.98), rgba(16, 18, 20, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.08) 35px 36px);
  overflow: hidden;
}

.planner-output h3 {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
  font-weight: 950;
}

.planner-output p {
  color: rgba(255, 255, 255, 0.76);
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.output-grid div {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.output-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.output-grid strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.05rem;
}

.projects {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1rem;
}

.project-card {
  overflow: hidden;
}

.project-card.featured {
  grid-row: span 2;
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.project-card.featured img {
  height: 420px;
}

.project-body {
  padding: 1.2rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: var(--teal-2);
  background: var(--panel-2);
  font-size: 0.82rem;
  font-weight: 850;
}

.process-grid,
.emergency-grid,
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.process-card,
.emergency-card,
.quote {
  padding: 1.25rem;
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 950;
}

.emergency-card {
  border-left: 5px solid var(--copper);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.4rem;
}

.emergency-result {
  min-height: 78px;
  padding: 1rem;
  border: 1px solid #eccd8a;
  border-radius: 8px;
  color: var(--ink);
  background: #fff6dd;
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 1rem;
  align-items: start;
}

.contact-card {
  padding: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 850;
}

.field.full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(10, 114, 107, 0.15);
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 600;
}

.consent input {
  margin-top: 0.3rem;
  accent-color: var(--teal);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.4rem;
  color: var(--teal-2);
  font-weight: 900;
}

.contact-stack {
  display: grid;
  gap: 1rem;
}

.signal-map {
  min-height: 245px;
  display: grid;
  align-content: end;
  gap: 0.55rem;
  padding: 1.2rem;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(5, 61, 57, 0.94), rgba(16, 18, 20, 0.85)),
    linear-gradient(0deg, transparent 24px, rgba(255, 255, 255, 0.14) 25px, transparent 26px),
    linear-gradient(90deg, transparent 24px, rgba(255, 255, 255, 0.14) 25px, transparent 26px);
  background-size: auto, 50px 50px, 50px 50px;
}

.signal-map span {
  width: max-content;
  max-width: 100%;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 850;
}

.legal {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
}

.legal-card {
  padding: 1.4rem;
}

.legal-card h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: var(--muted);
}

.demo-note {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid #eccd8a;
  border-radius: 8px;
  background: #fff6dd;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 2rem;
}

.site-footer .brand,
.site-footer a,
.site-footer h2 {
  color: var(--white);
}

.site-footer h2 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sparkRing {
  0% {
    opacity: 0.85;
    transform: scale(0.88);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.24);
  }
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 245, 190, 0.48);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(79, 245, 190, 0);
  }
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(650%);
  }
}

@media (max-width: 1080px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(7, 23, 25, 0.16);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    padding: 0.9rem 1rem;
    border-radius: 7px;
  }

  .nav-links a:hover {
    background: var(--panel-2);
  }

  .hero-grid,
  .planner,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .diagnostic-panel {
    max-width: 580px;
  }

  .service-grid,
  .projects,
  .process-grid,
  .emergency-grid,
  .quote-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.featured {
    grid-row: span 1;
  }

  .section-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 70px;
  }

  .shell {
    width: min(100% - 24px, 1180px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 1.8rem) 0 1rem;
    background-position: 60% center;
  }

  .page-hero {
    min-height: 320px;
    padding: calc(var(--nav-h) + 2rem) 0 2.5rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.05rem, 10.5vw, 2.75rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel-grid,
  .service-grid,
  .projects,
  .process-grid,
  .emergency-grid,
  .quote-grid,
  .footer-grid,
  .output-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .diagnostic-panel {
    display: none;
  }

  .status-chip {
    min-height: 0;
    padding: 0.62rem;
  }

  .status-chip strong {
    font-size: 1rem;
  }

  .status-chip span {
    font-size: 0.73rem;
  }

  .hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .project-card img,
  .project-card.featured img {
    height: 250px;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
