:root {
  --chalk: #f5f8f7;
  --chalk-2: #e7efed;
  --teal-dark: #0a2022;
  --teal-mid: #0f4c52;
  --teal-accent: #1e9e93;
  --copper: #a94f22;
  --line: #bfd0ce;
  --muted: #395052;
  --white: #ffffff;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--teal-dark);
  font: 400 15px/1.65 var(--sans);
  overflow-x: visible;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
}

h1, h2, h3, h4, p, dl, dt, dd, figure, fieldset {
  margin: 0;
  padding: 0;
}

fieldset {
  border: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--teal-dark);
  color: var(--chalk);
  padding: 12px 20px;
  font-weight: 700;
}

.skip-link:focus {
  left: 12px;
}

/* Review Bar */
.review-bar {
  background: var(--teal-dark);
  color: var(--chalk);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 3%;
  font-size: 11px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #1e3b3e;
}

.review-bar a {
  color: #7ce6dc;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* Lab Architectural Shell: Offset Narrow Vertical Masthead + Main Canvas */
.lab-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 35px);
}

.vertical-masthead {
  background: var(--teal-dark);
  color: var(--chalk);
  border-right: 1px solid #1e3b3e;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #7ce6dc;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid #356064;
  color: var(--chalk);
  padding: 8px 12px;
  min-height: 44px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.masthead-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #1f3d40;
}

.masthead-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 4px;
  border-bottom: 1px solid #1f3d40;
  font-size: 12px;
  font-weight: 600;
  color: #d0e2e0;
  transition: color 0.2s, padding-left 0.2s;
}

.masthead-nav a:hover {
  color: #7ce6dc;
  padding-left: 8px;
}

.nav-idx {
  font-size: 10px;
  font-weight: 700;
  color: #7ce6dc;
  font-variant-numeric: tabular-nums;
}

.masthead-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #1f3d40;
  padding-top: 18px;
  font-size: 11px;
}

.meta-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-line span {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #8fb4b1;
}

.meta-line strong {
  font-size: 11px;
  letter-spacing: 0.05em;
}

.masthead-back {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #7ce6dc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Main Laboratory Canvas */
.lab-canvas {
  min-width: 0;
}

.hero,
.table-section,
.quote-section,
.method-section,
.faq-section {
  padding: 72px 5%;
  border-bottom: 1px solid var(--line);
}

/* Hero with Big Editorial Title & Technical Bench Plate */
.hero-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

.diag-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--teal-mid);
}

.slash-accent {
  color: var(--copper);
  margin-right: 6px;
}

.lab-stamp {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  background: var(--chalk-2);
  border: 1px solid var(--line);
}

.hero-editorial {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--teal-mid);
}

.hero-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-teal {
  background: var(--teal-dark);
  color: var(--chalk);
  padding: 15px 24px;
  min-height: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: background 0.2s;
}

.btn-teal:hover {
  background: var(--teal-mid);
}

.btn-chalk {
  background: var(--white);
  color: var(--teal-dark);
  border: 1px solid var(--teal-dark);
  padding: 15px 22px;
  min-height: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.btn-chalk:hover {
  background: var(--chalk-2);
}

/* Technical Bench Plate */
.hero-bench-plate {
  background: var(--white);
  border: 1px solid var(--teal-dark);
  padding: 16px;
  position: relative;
}

.plate-frame {
  position: relative;
  overflow: hidden;
  background: #0d2528;
  min-height: 320px;
}

.bench-img {
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 10;
  object-fit: cover;
}

.plate-coord {
  position: absolute;
  background: rgba(10, 32, 34, 0.88);
  color: var(--chalk);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border: 1px solid #2b5c60;
}

.plate-coord-tl {
  top: 12px;
  left: 12px;
}

.plate-coord-br {
  bottom: 12px;
  right: 12px;
}

.plate-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  font-size: 11px;
  color: var(--muted);
}

/* Metrics Strip with Diagonal Numbering */
.metrics-strip {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 28px;
  gap: 28px;
}

.metric-box {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--teal-mid);
}

.diag-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--copper);
  margin-bottom: 4px;
}

.metric-box strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.metric-box p {
  font-size: 13px;
  color: var(--muted);
}

/* Common Section Header */
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 36px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 10px;
}

.section-eyebrow span {
  color: var(--copper);
}

.section-top h2,
.quote-config h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.section-top h2 em,
.quote-config h2 em {
  font-style: italic;
  color: var(--teal-mid);
}

.section-note {
  max-width: 430px;
  font-size: 14px;
  color: var(--muted);
}

/* Distinct Table of Repair Specialisms */
.table-scroll {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--teal-dark);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 14px;
}

.spec-table caption {
  text-align: left;
  padding: 14px 18px;
  background: var(--chalk-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.spec-table th,
.spec-table td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.spec-table thead th {
  background: var(--teal-dark);
  color: var(--chalk);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-table tbody tr:hover {
  background: #f0f6f5;
}

.code-cell {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--copper);
  white-space: nowrap;
}

.spec-table tbody th strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.row-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.price-cell {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.table-load-btn {
  background: var(--chalk-2);
  border: 1px solid var(--teal-dark);
  color: var(--teal-dark);
  padding: 9px 14px;
  min-height: 40px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.table-load-btn:hover {
  background: var(--teal-dark);
  color: var(--chalk);
}

/* Quote Interaction — No Personal Fields */
.quote-section {
  background: var(--chalk-2);
}

.quote-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}

.quote-intro {
  font-size: 14px;
  color: var(--muted);
  margin: 14px 0 28px;
}

.lab-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lab-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lab-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--teal-dark);
  padding: 14px 16px;
  min-height: 50px;
  font-size: 14px;
  font-weight: 600;
}

.lab-radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lab-radio {
  position: relative;
  cursor: pointer;
}

.lab-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lab-radio span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}

.lab-radio strong {
  font-size: 14px;
}

.lab-radio small {
  font-size: 12px;
  color: var(--muted);
}

.lab-radio input:checked + span {
  border-color: var(--teal-dark);
  background: #ffffff;
  box-shadow: inset 4px 0 0 var(--teal-mid);
}

.lab-radio input:focus-visible + span {
  outline: 3px solid var(--teal-mid);
  outline-offset: 2px;
}

/* Quote Sheet Output */
.quote-sheet {
  background: var(--white);
  border: 1.5px solid var(--teal-dark);
  padding: 32px;
}

.sheet-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--copper);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.sheet-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.sheet-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 22px;
}

.sheet-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-bottom: 20px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}

.breakdown-row dt {
  color: var(--muted);
}

.breakdown-row dd {
  font-weight: 700;
  text-align: right;
}

.sheet-total {
  background: var(--teal-dark);
  color: var(--chalk);
  padding: 20px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sheet-total span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #7ce6dc;
}

.sheet-total strong {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.sheet-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* Methodology & Diagonal Line Accents */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.method-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
}

.method-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(225deg, var(--chalk-2) 50%, transparent 50%);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.diagonal-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--copper);
  margin-bottom: 12px;
}

.method-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.method-card p {
  font-size: 14px;
  color: var(--muted);
}

.diagram-banner {
  background: var(--white);
  border: 1px solid var(--teal-dark);
  padding: 22px 24px;
}

.diagram-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 12px;
}

.bga-svg {
  width: 100%;
  height: auto;
}

/* Accordion FAQ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--teal-dark);
}

.faq-entry {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.faq-entry summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-entry summary::-webkit-details-marker {
  display: none;
}

.faq-entry summary::after {
  content: "╱";
  font-size: 16px;
  color: var(--copper);
  transition: transform 0.2s;
}

.faq-entry[open] summary::after {
  content: "✕";
}

.faq-content {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--muted);
  max-width: 780px;
}

/* Footer */
.lab-footer {
  background: var(--teal-dark);
  color: var(--chalk);
  padding: 48px 5% 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid #1f3d40;
}

.footer-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-desc {
  font-size: 13px;
  color: #b7cfcd;
  margin-top: 6px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-nav a:hover {
  color: #7ce6dc;
}

.footer-legal {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #b7cfcd;
}

.footer-legal a {
  color: #7ce6dc;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .hero-editorial,
  .quote-layout {
    grid-template-columns: 1fr;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .lab-shell {
    grid-template-columns: 1fr;
  }
  .vertical-masthead {
    position: relative;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid #1e3b3e;
  }
  .masthead-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .masthead-nav {
    display: none;
    margin-top: 14px;
  }
  .masthead-nav.open {
    display: flex;
  }
  .masthead-meta {
    display: none;
  }
}

@media (max-width: 768px) {
  .review-bar {
    font-size: 10px;
    padding: 8px 14px;
  }
  .hero,
  .table-section,
  .quote-section,
  .method-section,
  .faq-section {
    padding: 52px 16px;
  }
  .section-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .metrics-strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .btn-teal,
  .btn-chalk {
    width: 100%;
    justify-content: space-between;
  }
  .plate-coord-br {
    position: static;
    display: block;
    margin-top: 6px;
  }
  .quote-sheet {
    padding: 22px 18px;
  }
  .spec-table {
    min-width: 0;
  }
  .spec-table thead {
    display: none;
  }
  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }
  .spec-table tr {
    padding: 16px;
    border-bottom: 2px solid var(--line);
  }
  .spec-table th,
  .spec-table td {
    padding: 6px 0;
    border-bottom: 0;
  }
}

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

/* Mobile editorial hierarchy: headline, photograph, concise introduction. */
@media(max-width:768px){.hero-editorial{display:flex;flex-direction:column;gap:25px}.hero-copy{display:contents}.hero h1{order:0;margin:0}.hero-bench-plate{order:1;width:100%;margin:0}.hero-lead{order:2;margin:0}.hero-actions{order:3;margin:0;width:100%}.hero-header-row{padding-bottom:20px;margin-bottom:30px}.lab-stamp{display:none}}

@media(max-width:768px){.hero-editorial{align-items:stretch}.plate-frame{min-height:0}.plate-coord-br{display:none}}
