/* FOUNDATION AND PALETTE */

* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --ink: #050b12;
  --ink-raised: #08131e;
  --panel: #0b1925;
  --panel-soft: #102331;
  --line: #23404a;
  --line-strong: #35636b;
  --text: #ecfaf6;
  --muted: #9bb5b2;
  --teal: #45f0c4;
  --teal-deep: #19b994;
  --violet: #a99cff;
  --amber: #ffd38a;
  --danger: #ff9b9b;
  --success: #85f3b6;
  --shadow: none;
  --radius-sm: 4px;
  --radius: 4px;
  --radius-lg: 4px;
  --content: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --font-label: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

html {
  min-width: 320px;
  scroll-behavior: auto;
  background: var(--ink);
}

/* SCROLL HANDOFF — SYNCHRONOUS STOP/START CANCELS INERTIA WITHOUT LOCKING THE PAGE */
html.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: visible;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

/* BACKGROUND LAYERS: FIXED COLOR, DOCUMENT-SCROLLING GRID */

body::before,
body::after {
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  position: fixed;
  z-index: -2;
  background:
    radial-gradient(ellipse at 90% 12%, rgba(169, 156, 255, 0.07), transparent 65%),
    radial-gradient(ellipse at 8% 75%, rgba(69, 240, 196, 0.05), transparent 65%),
    var(--ink);
}

body::after {
  position: absolute;
  z-index: -1;
  background-image:
    linear-gradient(rgba(35, 64, 74, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 64, 74, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ELEMENTS AND KEYBOARD ACCESS */

[id] {
  scroll-margin-top: 8rem;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--teal);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--text);
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  background: var(--amber);
  border-radius: var(--radius-sm);
  font-weight: 800;
  transform: translateY(-180%);
}

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

/* SITE NAVIGATION AND LOCAL IDENTITY */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: var(--ink-raised);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(calc(100% - var(--gutter) * 2), var(--content));
  margin-inline: auto;
}

.header-inner {
  min-height: 100px;
  padding-block: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

/* DISPLAY THE SOURCE LOGOTYPE AT TWICE ITS PREVIOUS DESKTOP SIZE. */
.brand img {
  flex: 0 0 auto;
  width: 178px;
  height: auto;
  aspect-ratio: 568 / 269;
}

.brand-town {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.72rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--teal);
}

.site-nav .language-link {
  margin-left: 0.45rem;
  color: var(--teal);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

/* TYPE AND PAGE COMPOSITION */

main {
  display: block;
}

.hero,
.page-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.page-hero {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
}

.hero-copy {
  grid-column: 1 / span 7;
  min-width: 0;
}

.eyebrow,
.kicker,
.card-code,
.signal-label,
.form-hint {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eyebrow,
.kicker {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3rem, 5.8vw, 5rem);
  line-height: 1.06;
}

.page-hero h1 {
  max-width: 24ch;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero h1 > span {
  display: block;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.25;
}

.card h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.25;
}

.lede {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ACTIONS */

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.74rem 1.05rem;
  color: var(--ink);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  color: var(--ink);
  background: #7ff8d9;
}

.button.secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
  box-shadow: none;
}

.button.secondary:hover {
  color: var(--text);
  background: var(--panel-soft);
  border-color: var(--teal);
}

.button[disabled] {
  cursor: wait;
  opacity: 0.65;
}

/* DIAGNOSTIC SCHEMATIC */

.signal-panel {
  grid-column: 9 / -1;
  min-width: 0;
  margin-top: 2.35rem;
  border-top: 3px solid var(--teal);
}

.signal-screen {
  padding-top: 1.25rem;
}

.signal-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.035em;
}

.pulse-line {
  position: relative;
  height: 64px;
  margin: 1rem 0 1.5rem;
  color: var(--teal);
}

.pulse-line svg {
  width: 100%;
  height: 100%;
}

.signal-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.signal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.signal-label {
  color: var(--muted);
  font-size: 0.8125rem;
}

.signal-value {
  margin: 0;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 650;
  text-align: right;
}

.signal-value.online {
  color: var(--teal);
}

/* SECTIONS AND CONTENT GROUPS */

.section {
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
}

.section.tight {
  padding-top: 0.75rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

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

.card-code {
  margin-bottom: 1rem;
  color: var(--violet);
  font-size: 0.8125rem;
}

.service-overview,
.service-detail-grid,
.support-grid {
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.service-overview .card,
.service-detail-grid .card,
.support-grid .card {
  padding: 1.75rem;
  border: 0;
  border-radius: 0;
  background: none;
}

.service-overview .card {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.service-overview .card > a {
  margin-top: auto;
}

/* LINE SYMBOLS SUPPORT QUICK RECOGNITION WITHOUT COMPETING WITH THE COPY. */
.service-symbol {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1.15rem;
  color: var(--teal);
}

.service-symbol svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.service-overview .card + .card,
.support-grid .card + .card,
.service-detail-grid .card:nth-child(even) {
  border-left: 1px solid var(--line);
}

.service-overview .card:first-child,
.support-grid .card:first-child,
.service-detail-grid .card:nth-child(odd) {
  padding-left: 0;
}

.service-overview .card:last-child,
.support-grid .card:last-child,
.service-detail-grid .card:nth-child(even) {
  padding-right: 0;
}

.service-detail-grid .card {
  border-bottom: 1px solid var(--line);
}

.clean-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.3rem;
}

.clean-list li::before {
  position: absolute;
  top: 0.95rem;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--teal);
  border-radius: 1px;
}

/* PROCESS */

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  min-width: 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line-strong);
  counter-increment: process;
}

.process-list li::before {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--violet);
  content: "0" counter(process);
  font-size: 3.5rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.06em;
}

.process-list strong {
  display: block;
  margin-bottom: 0.4rem;
}

.process-list span {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* CLOSING ACTION AND REPAIR EXAMPLES */

.callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.callout h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
}

.callout p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
}

/* EARLY SERVICE ACTION: LESS VISUAL WEIGHT THAN THE CONTACT GATEWAY. */
.callout.compact {
  padding: 1.25rem 1.5rem;
  gap: 1.25rem;
  border-top-width: 1px;
}

.callout.compact h2 {
  font-size: 1.25rem;
}

.section-note {
  max-width: 72ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.section-link {
  margin: 1.25rem 0 0;
}

.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.contact-method {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
  padding: 1.15rem;
  color: var(--text);
  background: var(--ink-raised);
  text-decoration: none;
}

.contact-method:hover,
.contact-method:focus-visible {
  color: var(--text);
  background: var(--panel-soft);
}

.contact-method span {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-method strong {
  overflow-wrap: anywhere;
  color: var(--teal);
  font-size: 0.9375rem;
}

.contact-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  overflow-wrap: anywhere;
}

.repair-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.repair-example {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.repair-example-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.repair-example .service-symbol {
  width: 42px;
  height: 42px;
}

.repair-number {
  color: var(--violet);
  font-family: var(--font-label);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

.repair-example p {
  color: var(--muted);
}

.repair-amount {
  display: grid;
  gap: 0.15rem;
  margin: 1.35rem 0 0;
  color: var(--teal) !important;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 750;
}

.repair-amount span {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
}

.parts-process {
  margin-top: 1rem;
}

.range-note {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

/* SHARED FIELD STYLES — STATIC PREVIEW HAS NO FORM */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.contact-context {
  position: sticky;
  top: 118px;
}

.contact-context .card + .card {
  margin-top: 1rem;
}

.contact-form {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(11, 25, 37, 0.95);
  box-shadow: var(--shadow);
}

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

.field {
  min-width: 0;
}

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

.field label,
.field legend {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--text);
  font-weight: 750;
}

.required-mark {
  color: var(--amber);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 0.8rem;
  color: var(--text);
  background: var(--ink-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--teal-deep);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 1.35rem;
  margin: 0.25rem 0 0;
  color: var(--danger);
  font-size: 0.82rem;
}

.form-hint {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.62rem;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  margin: 1.2rem 0;
}

.check-row input {
  width: 20px;
  height: 20px;
  margin-top: 0.18rem;
  accent-color: var(--teal);
}

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

.turnstile-wrap {
  min-height: 70px;
  margin-bottom: 1rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-status {
  min-height: 1.6rem;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  color: var(--muted);
  border-left: 3px solid var(--line-strong);
  background: var(--ink-raised);
}

.form-status:empty {
  display: none;
}

.form-status[data-state="success"] {
  color: var(--success);
  border-color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--danger);
  border-color: var(--danger);
}

/* LEGAL CONTENT AND DISCLOSURES */

.legal-copy {
  max-width: 780px;
}

.legal-copy h2 {
  margin-top: 2.8rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.legal-copy h3 {
  margin-top: 1.8rem;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.legal-copy strong {
  color: var(--text);
}

.legal-copy .notice {
  padding: 1rem 1.15rem;
  color: var(--amber);
  border: 1px solid rgba(255, 211, 138, 0.35);
  border-radius: var(--radius-sm);
  background: var(--ink-raised);
}

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 56px;
  padding: 1rem 0;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  max-width: 72ch;
  margin: 0 0 1.25rem;
  color: var(--muted);
}

/* ANALYTICS CONSENT — COMPACT, LEGIBLE AND EQUALLY EASY TO ACCEPT OR REFUSE */

.consent-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 900;
  max-height: min(80vh, 520px);
  overflow: auto;
  border-top: 2px solid var(--teal);
  background: rgba(8, 19, 30, 0.98);
  box-shadow: 0 -18px 54px rgba(0, 0, 0, 0.42);
}

.consent-banner[hidden] {
  display: none;
}

.consent-inner {
  width: min(calc(100% - var(--gutter) * 2), var(--content));
  min-height: 152px;
  margin-inline: auto;
  padding-block: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2.5rem;
  align-items: center;
}

.consent-copy {
  max-width: 760px;
}

.consent-copy .kicker {
  margin-bottom: 0.35rem;
}

.consent-copy h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.consent-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 0.75rem;
}

.consent-actions .button {
  width: 100%;
  color: var(--text);
  background: var(--panel);
  border-color: var(--line-strong);
  white-space: nowrap;
}

.consent-actions .button:hover {
  color: var(--ink);
  background: var(--teal);
  border-color: var(--teal);
}

/* FOOTER */

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: var(--ink-raised);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
  padding: 2.6rem 0;
}

.footer-title {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1rem;
}

.footer-copy,
.footer-links a,
.footer-meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-copy {
  max-width: 42ch;
  margin: 0;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-preferences {
  width: fit-content;
  margin: 0;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 0.875rem;
  line-height: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.footer-preferences:hover {
  color: var(--teal);
  text-decoration-color: currentColor;
}

.footer-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--teal);
}

.footer-meta {
  margin: 0;
}

/* RESPONSIVE NAVIGATION AND LAYOUT */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding-block: 0.8rem;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .site-nav .language-link {
    justify-content: center;
    margin: 0;
    text-align: center;
  }

  .hero-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .consent-inner {
    grid-template-columns: 1fr;
  }

  .consent-actions {
    justify-self: stretch;
  }

  .hero-copy,
  .signal-panel {
    grid-column: 1 / -1;
  }

  .signal-panel {
    width: min(100%, 32rem);
    margin-top: 1.5rem;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .grid.three {
    gap: 0.75rem;
  }

  .service-overview,
  .support-grid {
    gap: 0;
  }

  .service-overview .card {
    padding-inline: 1rem;
  }

  .service-overview .card:first-child {
    padding-left: 0;
  }

  .service-overview .card:last-child {
    padding-right: 0;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .repair-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-context {
    position: static;
  }
}

/* SCRIPTING MEDIA QUERY PREVENTS MOBILE HEADER REFLOW DURING JS STARTUP. */
@media (max-width: 900px) and (scripting: enabled) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    width: auto;
    max-height: calc(100vh - 6rem);
    max-height: calc(100svh - 6rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    align-items: stretch;
    padding: 0.8rem 1rem 1rem;
    background: var(--ink-raised);
    border-bottom: 1px solid var(--line-strong);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav .language-link {
    margin-top: 0.5rem;
  }
}

@media (max-width: 900px) and (scripting: none) {
  [id] {
    scroll-margin-top: 16rem;
  }
}

@media (max-width: 680px) {
  h1,
  .page-hero h1 {
    font-size: clamp(2.5rem, 11vw, 3rem);
  }

  .hero,
  .page-hero {
    padding-block: 2.75rem;
  }

  .grid.two,
  .grid.three,
  .process-list,
  .form-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .callout .button {
    width: 100%;
  }

  .repair-examples {
    grid-template-columns: 1fr;
  }

  .contact-channel-grid {
    grid-template-columns: 1fr;
  }

  .consent-inner {
    gap: 1rem;
  }

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

  /* KEEP BOTH LOGOTYPE AND TOWN VISIBLE BESIDE THE 44PX MENU CONTROL. */
  .brand {
    gap: 0.5rem;
  }

  .brand img {
    width: clamp(124px, 32vw, 178px);
  }

  .brand-town {
    font-size: 1rem;
  }

  .header-inner {
    column-gap: 0.75rem;
  }

  .form-actions .button {
    width: 100%;
  }

  .service-overview .card,
  .service-detail-grid .card,
  .support-grid .card {
    padding: 1.5rem 0;
    border-left: 0;
  }

  .service-overview .card + .card,
  .support-grid .card + .card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .service-detail-grid .card:nth-child(even) {
    border-left: 0;
  }

  .process-list {
    gap: 0;
  }

  .process-list li {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 0.4rem 1rem;
    padding-block: 1.5rem;
  }

  .process-list li::before {
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 2.75rem;
  }

  .process-list strong,
  .process-list span {
    grid-column: 2;
    margin: 0;
  }
}

@media (max-width: 420px) {
  .hero-actions .button {
    width: 100%;
  }
}

/* MOTION PREFERENCES */

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

/* PRINT: EXAMPLES AND SECONDARY COPY MUST RETAIN CONTRAST */

@media print {
  :root {
    color-scheme: light;
    --ink: #fff;
    --ink-raised: #fff;
    --panel: #fff;
    --panel-soft: #eee;
    --text: #111;
    --muted: #333;
    --line: #aaa;
    --line-strong: #777;
    --teal: #165848;
    --violet: #3d376c;
    --amber: #493500;
  }

  body::before,
  body::after,
  .site-header,
  .hero-actions,
  .callout,
  .site-footer,
  .consent-banner,
  .turnstile-wrap,
  .form-actions {
    display: none !important;
  }

  body {
    color: #111;
    background: #fff;
  }

  .hero,
  .page-hero,
  .section {
    padding-block: 1.25rem;
  }

  .card,
  .process-list li,
  .repair-example {
    break-inside: avoid;
  }

  .card,
  .contact-form,
  .repair-example {
    color: #111;
    background: #fff;
    border-color: #bbb;
    box-shadow: none;
  }
}
