:root {
  --ink: #07111f;
  --ink-2: #0b1828;
  --ink-3: #102238;
  --paper: #f5f4f0;
  --white: #ffffff;
  --muted: #aeb9c6;
  --line: rgba(255, 255, 255, 0.13);
  --line-dark: rgba(7, 17, 31, 0.14);
  --gold: #d9b45b;
  --gold-2: #f0d487;
  --blue: #68b6e8;
  --red: #db3a34;
  --green: #58c98b;
  --shadow: 0 24px 70px rgba(2, 10, 19, 0.2);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 126px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, iframe { max-width: 100%; }
p, h1, h2, h3, ul, ol, blockquote { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--gold-2);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: rgba(7, 17, 31, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-shell {
  width: min(calc(100% - 48px), var(--max));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(310px, 1fr);
  align-items: center;
  gap: 1.5rem;
}
.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -0.12em;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.brand-mark > * { position: relative; font-style: normal; }
.brand-mark { line-height: 1; }
.brand-mark em { color: var(--gold); }
.brand-mark { text-indent: -0.08em; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-copy small { margin-top: 0.25rem; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.04em; }
.est-badge {
  margin-left: 0.25rem;
  padding: 0.26rem 0.5rem;
  color: var(--gold-2);
  border: 1px solid rgba(217, 180, 91, 0.45);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.credential-line {
  margin: 0;
  color: #d6dee6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.credential-line span { margin: 0 0.35rem; color: var(--gold); }
.header-actions { display: flex; justify-content: flex-end; gap: 0.65rem; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.79rem;
  letter-spacing: 0.055em;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border 160ms ease, transform 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .text-action:focus-visible, .menu-button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.button-call { color: var(--ink); background: var(--gold); flex-direction: column; align-items: flex-start; gap: 0.12rem; letter-spacing: 0.03em; }
.button-call span { font-size: 0.75rem; letter-spacing: 0.07em; }
.button-primary { color: var(--ink); background: var(--gold); }
.button-primary:hover, .button-call:hover { background: var(--gold-2); }
.button-secondary { color: var(--white); background: transparent; border-color: rgba(255,255,255,.34); }
.button-secondary:hover { color: var(--ink); background: var(--white); }
.menu-button { display: none; }
.site-nav {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  padding: .5rem 1.25rem;
  flex-wrap: wrap;
  background: #0b2a4a;
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-nav a { color: #ffffff; font-size: 0.82rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: var(--gold-2); }
.site-nav a[aria-current="page"] { color: var(--gold-2); }

.testimonial-hero {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: 6.5rem 24px;
  color: var(--white);
  background: #07111f;
  overflow: hidden;
}
.testimonial-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,12,22,.92), rgba(4,12,22,.68)),
    url("brooklyn-bridge-night.webp") center 48% / cover no-repeat;
  opacity: .88;
}
.testimonial-hero::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(217,180,91,.35);
  pointer-events: none;
}
.testimonial-hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 930px);
  text-align: center;
}
.testimonial-hero .eyebrow { justify-content: center; }
.breadcrumbs { margin-bottom: 1.2rem; display: flex; justify-content: center; gap: .6rem; color: #d9e1e9; font-size: .82rem; }
.breadcrumbs a { color: var(--gold-2); }
.testimonial-hero h1 {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .96;
}
.testimonial-hero h1 span { color: var(--gold-2); font-style: italic; }
.testimonial-hero p:not(.eyebrow) {
  max-width: 740px;
  margin: 0 auto;
  color: #d9e1e9;
  font-size: 1.08rem;
}
.testimonial-page { background: var(--paper); }
.testimonial-feature {
  width: min(calc(100% - 48px), 1120px);
  margin: -4rem auto 7rem;
  position: relative;
  z-index: 2;
  color: var(--white);
  background: var(--ink-2);
  box-shadow: var(--shadow);
}
.testimonial-feature-frame { aspect-ratio: 16 / 9; background: #02060b; }
.testimonial-feature-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.testimonial-feature-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem 2.25rem;
  border-top: 1px solid rgba(255,255,255,.13);
}
.testimonial-feature-copy h2 {
  margin-bottom: .55rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
}
.testimonial-feature-copy p { margin: 0; color: var(--muted); }
.testimonial-trust {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto 7rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.testimonial-trust div { padding: 1.6rem 2rem; border-right: 1px solid var(--line-dark); }
.testimonial-trust div:last-child { border-right: 0; }
.testimonial-trust span { display: block; color: #557086; font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.testimonial-trust strong { display: block; margin-top: .4rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; line-height: 1.25; }

.error-page { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; color: var(--white); background: var(--ink); }
.error-header { position: relative; }
.error-main {
  display: grid;
  place-items: center;
  padding: 5rem 24px;
  background:
    linear-gradient(90deg, rgba(4,12,22,.94), rgba(4,12,22,.72)),
    url("brooklyn-bridge-night.webp") center / cover no-repeat;
}
.error-card { width: min(100%, 820px); padding: 3rem; background: rgba(7,17,31,.82); border: 1px solid rgba(217,180,91,.38); box-shadow: var(--shadow); }
.error-code { margin-bottom: .5rem; color: var(--gold-2); font-family: var(--serif); font-size: clamp(4rem, 11vw, 8rem); line-height: .8; }
.error-card h1 { margin-bottom: 1.2rem; font-family: var(--serif); font-size: clamp(2.7rem, 7vw, 5.2rem); font-weight: 400; line-height: .96; }
.error-card > p:not(.error-code,.eyebrow) { max-width: 680px; color: #d9e1e9; font-size: 1.08rem; }
.error-card .text-action { color: var(--white); }
.error-footer { padding-top: 0; }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr);
  grid-template-rows: 1fr auto;
  column-gap: 4.5rem;
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 18%, rgba(104,182,232,.13), transparent 31%),
    radial-gradient(circle at 78% 42%, rgba(217,180,91,.1), transparent 24%),
    linear-gradient(145deg, #07111f 0%, #0a192a 53%, #06101d 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 12, 22, .94) 0%, rgba(4, 12, 22, .82) 38%, rgba(4, 12, 22, .42) 68%, rgba(4, 12, 22, .58) 100%),
    linear-gradient(0deg, rgba(4, 12, 22, .8) 0%, transparent 45%, rgba(4, 12, 22, .28) 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 370px;
  height: 370px;
  right: 9%;
  top: 12%;
  border: 1px solid rgba(217,180,91,.2);
  transform: rotate(45deg);
  z-index: 1;
  pointer-events: none;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: saturate(.92) contrast(1.04);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}
.hero-content, .diagnostic-panel { position: relative; z-index: 2; }
.hero-content { width: 100%; max-width: 730px; margin-left: max(24px, calc((100vw - var(--max)) / 2)); padding: 5.5rem 0 4rem; }
.eyebrow {
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow span { width: 28px; height: 1px; background: currentColor; }
.hero h1 {
  max-width: 800px;
  margin-bottom: 1.45rem;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6.5vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}
.hero h1 span { display: block; color: var(--gold-2); font-style: italic; }
.hero-deck { max-width: 680px; color: #c8d1da; font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.text-action { padding: 0.7rem 0; color: var(--white); background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); cursor: pointer; font-weight: 750; }
.text-action span { margin-left: 0.25rem; color: var(--gold); }
.availability { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.55rem; color: #aab6c2; font-size: 0.78rem; }
.pulse { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(88,201,139,.1); }

.diagnostic-panel {
  width: min(100%, 460px);
  margin-right: max(24px, calc((100vw - var(--max)) / 2));
  padding: 1.35rem;
  background: rgba(4, 12, 22, .68);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.panel-head { display: flex; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: #aeb9c6; font-size: 0.75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.panel-head strong { color: var(--gold); }
.instrument-list { margin: 0; padding: 0; list-style: none; }
.instrument-list li { min-height: 76px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: .8rem; border-bottom: 1px solid var(--line); }
.instrument-list li:last-child { border-bottom: 0; }
.instrument-list li > span { color: var(--gold); font-family: var(--serif); font-size: 1.15rem; }
.instrument-list div { display: grid; }
.instrument-list strong { font-size: .88rem; }
.instrument-list small { margin-top: .18rem; color: #83909e; font-size: .75rem; }
.instrument-list b { color: var(--blue); font-size: .75rem; letter-spacing: .08em; }

.trust-bar {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-bottom: 0;
}
.trust-bar > div { min-height: 105px; padding: 1.35rem 1.2rem; display: grid; grid-template-columns: 34px 1fr; column-gap: .8rem; align-content: center; border-right: 1px solid var(--line); }
.trust-bar > div:last-child { border-right: 0; }
.trust-icon { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(217,180,91,.45); font-family: var(--serif); font-size: .8rem; }
.trust-bar strong { font-size: .82rem; }
.trust-bar small { color: #93a0ad; font-size: .75rem; }

.section { padding: 7rem max(24px, calc((100vw - var(--max)) / 2)); }
.section-heading { max-width: 850px; margin-bottom: 3.25rem; }
.section-heading h2, .legacy-copy h2, .final-cta h2 {
  margin-bottom: 1.35rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}
.answer-box { max-width: 850px; margin: 0; padding: 1rem 1.15rem; color: #24364a; background: rgba(104,182,232,.09); border-left: 3px solid var(--blue); line-height: 1.65; }
.answer-box strong { font-weight: 620; }
.split-heading { max-width: none; display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: end; }
.split-heading > p:last-child { margin-bottom: 0; color: #607083; }

.service-hub { background: #e9e8e3; }
.service-directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.service-directory-grid article { min-height: 250px; padding: 1.65rem; display: flex; flex-direction: column; background: var(--white); }
.service-directory-grid h3 { margin-bottom: .8rem; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; line-height: 1.15; }
.service-directory-grid h3 a { text-decoration: none; }
.service-directory-grid h3 a:hover { color: #835f16; }
.service-directory-grid p { color: #586777; font-size: .9rem; }
.service-directory-grid .service-link { margin-top: auto; color: #245f86; font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

.service-page { background: var(--paper); }
.service-hero { position: relative; min-height: 500px; padding: 6rem max(24px, calc((100vw - var(--max)) / 2)); display: grid; align-items: center; color: var(--white); background: var(--ink); overflow: hidden; }
.service-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,9,18,.95) 0%, rgba(3,9,18,.78) 58%, rgba(3,9,18,.5) 100%), url("brooklyn-bridge-night.webp") center 48% / cover no-repeat; }
.service-hero::after { content: ""; position: absolute; inset: 28px; border: 1px solid rgba(217,180,91,.3); pointer-events: none; }
.service-hero-inner { position: relative; z-index: 1; width: min(100%, 920px); }
.service-breadcrumbs { margin-bottom: 1.2rem; display: flex; flex-wrap: wrap; gap: .55rem; color: #cbd5df; font-size: .82rem; }
.service-breadcrumbs a { color: var(--gold-2); }
.service-hero h1 { max-width: 900px; margin-bottom: 1.25rem; font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5.7rem); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.service-hero h1 span { color: var(--gold-2); font-style: italic; }
.service-hero .hero-deck { max-width: 790px; color: #d6dee6; font-size: 1.08rem; }
.service-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.service-hero-actions .button-secondary { background: rgba(7,17,31,.35); }
.service-content { padding: 6rem max(24px, calc((100vw - var(--max)) / 2)); }
.service-shell { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 4rem; align-items: start; }
.service-article h2 { margin: 0 0 1.2rem; font-family: var(--serif); font-size: clamp(2.2rem, 4.4vw, 4rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.service-article h3 { margin: 2.7rem 0 1rem; font-family: var(--serif); font-size: clamp(1.55rem, 2.8vw, 2.25rem); font-weight: 400; line-height: 1.1; }
.service-article > p:not(.answer-box), .service-article li { color: #4b5c6d; }
.service-article .answer-box { margin-bottom: 1.5rem; }
.service-article .steps { margin-bottom: 2.3rem; }
.service-article .steps li { font-size: .92rem; }
.service-facts { margin: 2rem 0 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.service-facts div { min-height: 120px; padding: 1.2rem; background: var(--white); }
.service-facts span { display: block; margin-bottom: .45rem; color: #8a681b; font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.service-facts strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; line-height: 1.25; }
.service-aside { position: sticky; top: 145px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); }
.service-aside > div { padding: 1.6rem; border-bottom: 1px solid var(--line); }
.service-aside > div:last-child { border-bottom: 0; }
.service-aside h2 { margin-bottom: .8rem; font-family: var(--serif); font-size: 1.75rem; font-weight: 400; line-height: 1.1; }
.service-aside p { color: #aeb9c5; font-size: .84rem; }
.service-aside ul { margin: 0; padding: 0; list-style: none; }
.service-aside li { border-bottom: 1px solid var(--line); }
.service-aside li:last-child { border-bottom: 0; }
.service-aside li a { min-height: 48px; display: flex; align-items: center; color: #cad4dd; font-size: .82rem; text-decoration: none; }
.service-aside li a:hover, .service-aside li a[aria-current="page"] { color: var(--gold-2); }
.service-aside .button { width: 100%; }
.service-faq { margin-top: 4rem; }
.service-faq details { border-top: 1px solid var(--line-dark); }
.service-faq details:last-child { border-bottom: 1px solid var(--line-dark); }
.service-faq summary { min-height: 70px; display: flex; align-items: center; cursor: pointer; font-family: var(--serif); font-size: 1.3rem; }
.service-faq details p { padding-bottom: 1rem; }
.footer-services { margin-top: 2.5rem; padding-top: 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem 2rem; border-top: 1px solid var(--line); }
.footer-services strong { grid-column: 1 / -1; color: var(--white); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-services a { color: #9ba8b5; font-size: .78rem; }
.footer-services a:hover { color: var(--gold-2); }

.diagnostic-section { background: var(--paper); }
.failure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.failure-card { position: relative; min-width: 0; padding: 1.8rem; background: var(--white); border-top: 3px solid var(--ink); box-shadow: 0 14px 42px rgba(10,25,42,.08); }
.failure-number { margin-bottom: 3rem; color: var(--gold); font-family: var(--serif); font-size: 2.25rem; }
.failure-card h3, .system-grid h3, .technical-ledger h3, .video-card h3 { font-family: var(--serif); font-size: 1.65rem; font-weight: 400; line-height: 1.15; }
.failure-card > .answer-box { margin-bottom: 1.5rem; padding: .9rem; font-size: .92rem; }
.metric-row { display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line-dark); font-size: .8rem; }
.metric-row span { color: #8a681b; font-weight: 900; }
.metric-row b { font-weight: 650; }
.steps { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.steps li { padding: .9rem 0; display: grid; grid-template-columns: 27px 1fr; gap: .7rem; border-bottom: 1px solid var(--line-dark); font-size: .84rem; line-height: 1.55; }
.steps li:last-child { border-bottom: 0; }
.steps li > span { width: 27px; height: 27px; display: grid; place-items: center; color: var(--white); background: var(--ink); font-size: .75rem; font-weight: 800; }
.steps strong { display: block; color: var(--ink); }
.mini-diagram, .wine-readout { margin-top: 1.5rem; }
.mini-diagram { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; }
.mini-diagram > div:not(.flow-line) { padding: .8rem; background: #f2f5f7; }
.mini-diagram small, .mini-diagram strong { display: block; }
.mini-diagram small { color: #6d7a87; font-size: .75rem; }
.mini-diagram strong { font-size: .82rem; }
.flow-line { height: 1px; background: var(--ink); position: relative; }
.status { display: inline-block; margin-top: .4rem; padding: .15rem .4rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status.good { color: #23623f; background: #dff2e6; }
.status.alert { color: #8a211d; background: #f7dfdc; }
.wine-readout > div { padding: .7rem 0; display: grid; grid-template-columns: 85px 1fr; gap: .5rem; border-bottom: 1px solid var(--line-dark); }
.wine-readout small { color: #788694; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.wine-readout strong { font-size: .8rem; }

.technical-ledger { margin-top: 2rem; padding: 3rem; color: var(--white); background: var(--ink); }
.technical-ledger h3 { margin-bottom: 1rem; font-size: 2.2rem; }
.technical-ledger .answer-box { color: #d4dde5; background: rgba(104,182,232,.08); }
.ledger-intro { max-width: 950px; margin-bottom: 2rem; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
caption { padding: .8rem 0; color: #83909d; font-size: .75rem; text-align: left; caption-side: top; }
th, td { padding: 1rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--gold-2); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
td { color: #c8d0d8; font-size: .82rem; }
.tech-notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 2rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.tech-notes > div { padding: 1.35rem; background: var(--ink-2); }
.data { display: block; margin-bottom: .5rem; color: var(--blue); font-family: var(--serif); font-size: 1.8rem; }
.tech-notes p { margin: 0; color: #aab6c2; font-size: .76rem; line-height: 1.55; }
.safety-note { margin: 1.5rem 0 0; padding: 1rem; color: #f4dfdd; background: rgba(219,58,52,.12); border: 1px solid rgba(219,58,52,.35); font-size: .82rem; }

.systems-section { color: var(--white); background: var(--ink-2); }
.systems-section .split-heading > p:last-child { color: #c8d1da; }
.systems-section .answer-box { color: #d1dbe4; background: rgba(104,182,232,.07); }
.system-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.system-grid article { padding: 2.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.system-grid article:nth-child(2n) { border-right: 0; }
.system-grid article:nth-last-child(-n+2) { border-bottom: 0; }
.system-code { display: inline-block; margin-bottom: 1.7rem; color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .13em; }
.system-grid h3 { font-size: 2.05rem; }
.system-grid .answer-box { padding: .85rem; font-size: .89rem; }
.system-grid ul { margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem 1.5rem; list-style: none; }
.system-grid li { color: #aeb9c5; font-size: .79rem; }
.system-grid li::before { content: "—"; margin-right: .45rem; color: var(--gold); }

.legacy-section { background: #e9e8e3; }
.legacy-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: center; }
.legacy-copy > p:not(.eyebrow):not(.answer-box) { max-width: 720px; color: #526171; }
.legacy-copy .answer-box { margin-bottom: 1.5rem; }
.legacy-callout { margin-top: 2rem; padding: 1.4rem; border: 1px solid var(--line-dark); }
.legacy-callout strong { color: #8a681b; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.legacy-callout p { margin: .5rem 0 0; font-size: .88rem; }
.restoration-stack { box-shadow: var(--shadow); }
.restoration-stack > div { min-height: 92px; padding: 1rem 1.3rem; display: grid; grid-template-columns: 52px 1fr; align-content: center; column-gap: 1rem; color: var(--white); background: var(--ink); border-bottom: 1px solid var(--line); }
.restoration-stack > div:nth-child(even) { background: var(--ink-2); }
.restoration-stack span { grid-row: 1 / 3; color: var(--gold); font-family: var(--serif); font-size: 1.45rem; }
.restoration-stack strong { font-size: .9rem; }
.restoration-stack small { color: #95a2af; }

.economics-section { background: var(--white); }
.economics-table { border: 1px solid var(--line-dark); }
.economics-table caption { padding: 1rem; }
.economics-table th { color: var(--ink); background: #edf1f4; }
.economics-table th:first-child { width: 24%; }
.economics-table td { color: #465666; border-color: var(--line-dark); }
.economics-table td:first-child { color: var(--ink); font-weight: 800; }
.economics-table strong { display: block; color: #8a681b; font-family: var(--serif); font-size: 1.35rem; }
.economics-table small { display: block; margin-top: .25rem; color: #74818d; }
.source-line { margin: 1rem 0 0; color: #697784; font-size: .78rem; }
.source-line a { color: #245f86; }
.service-sources { margin: 3rem 0 0; padding: 1rem 1.15rem; border-left: 3px solid var(--gold); background: #edf4fa; font-size: .9rem; line-height: 1.7; }
.service-sources strong { color: var(--ink); }

.video-section { color: var(--white); background: #06101d; }
.audience-strip { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 1.5rem; border: 1px solid var(--line); }
.audience-strip > div { padding: 1rem 1.2rem; display: grid; border-right: 1px solid var(--line); }
.audience-strip > div:last-child { border: 0; }
.audience-strip span { color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.audience-strip strong { margin-top: .25rem; color: #c4ced7; font-size: .8rem; }
.video-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; align-items: start; }
.video-card { background: var(--ink-2); border: 1px solid var(--line); }
.featured-video { transform: translateY(-.5rem); border-color: rgba(217,180,91,.5); }
.video-frame { aspect-ratio: 16/9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-meta { padding: 1.4rem; }
.video-meta > span { color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.video-meta h3 { margin: .7rem 0 1rem; }
.video-meta p { color: #aab5c0; font-size: .8rem; }
.video-meta blockquote { margin: 1.2rem 0 0; padding-top: 1rem; color: #dfe6ec; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.1rem; font-style: italic; }

.local-section { background: var(--paper); }
.local-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 4.5rem; align-items: start; }
.local-copy h2 { margin-bottom: 1.35rem; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.local-copy > p:not(.eyebrow):not(.answer-box) { max-width: 760px; margin-top: 1.5rem; color: #556473; }
.building-list { margin-top: 2rem; display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.building-list > div { padding: 1rem; display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: .65rem; background: var(--white); }
.building-list span { color: #906f24; font-family: var(--serif); font-size: 1.15rem; }
.building-list strong { font-size: .78rem; }
.neighborhood-panel { padding: 2rem; color: var(--white); background: var(--ink); box-shadow: var(--shadow); }
.neighborhood-panel > p { color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.neighborhood-panel ul { margin: 0 0 1.5rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.neighborhood-panel li { border-bottom: 1px solid var(--line); }
.neighborhood-panel li a { min-height: 47px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; }
.neighborhood-panel li a:hover { color: var(--gold-2); }
.neighborhood-panel li span { color: #7f8d9a; font-size: .75rem; }
.full-width { width: 100%; }

.faq-section { background: var(--white); }
.faq-list { border-top: 1px solid var(--line-dark); }
.faq-list details { border-bottom: 1px solid var(--line-dark); }
.faq-list summary { min-height: 86px; display: grid; grid-template-columns: 1fr 26px; align-items: center; gap: 1rem; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 400; }
.faq-list summary span { width: 20px; height: 20px; position: relative; }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1px; background: var(--ink); transition: transform 180ms ease; }
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list details > p { max-width: 900px; color: #536270; }
.faq-list details > p:last-child { padding-bottom: 1.5rem; }
.faq-list .answer-box { margin-bottom: 1rem; color: #24364a; }

.reference-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; color: var(--white); background: var(--ink-3); }
.reference-section h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.05; }
.reference-section ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.reference-section li { border-bottom: 1px solid var(--line); }
.reference-section a { min-height: 60px; display: flex; align-items: center; color: #c6d0da; font-size: .82rem; text-decoration: none; }
.reference-section a::after { content: "↗"; margin-left: auto; color: var(--gold); }
.reference-section a:hover { color: var(--white); }

.final-cta { padding: 4rem max(24px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 3rem; color: var(--white); background: linear-gradient(110deg, #946d1f, #c59c42); }
.final-cta .eyebrow { color: var(--ink); }
.final-cta h2 { max-width: 760px; margin: 0; font-size: clamp(2.2rem, 4.5vw, 4.2rem); }
.final-actions { min-width: 260px; display: grid; gap: .7rem; }
.final-cta .button-primary { color: var(--white); background: var(--ink); }
.final-cta .button-secondary { color: var(--ink); border-color: rgba(7,17,31,.55); }
.final-cta .button-secondary:hover { color: var(--white); background: var(--ink); }

.site-footer { padding: 4rem max(24px, calc((100vw - var(--max)) / 2)) 2rem; color: #b2bec9; background: #030912; }
.footer-main { display: grid; grid-template-columns: 1.3fr repeat(3,1fr); gap: 2.5rem; }
.footer-main strong { display: block; margin-bottom: .75rem; color: var(--white); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-brand > strong { color: var(--gold); font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0; text-transform: none; }
.footer-brand > span { display: block; color: var(--white); font-size: .83rem; }
.footer-main p, .footer-main a { color: #8d9aa7; font-size: .78rem; }
.footer-legal { margin-top: 3rem; padding-top: 1.3rem; display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); }
.footer-legal p { max-width: 930px; margin: 0; color: #71808e; font-size: .75rem; }
.footer-legal a { flex: 0 0 auto; color: var(--gold); font-size: .75rem; }

.mobile-emergency { display: none; }
.booking-dialog {
  width: min(calc(100% - 32px), 720px);
  max-height: calc(100vh - 40px);
  padding: 2.4rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(217,180,91,.6);
  box-shadow: 0 40px 100px rgba(0,0,0,.5);
  overflow-y: auto;
}
.booking-dialog::backdrop { background: rgba(3,9,18,.82); backdrop-filter: blur(7px); }
.booking-dialog h2 { margin-bottom: 1rem; font-family: var(--serif); font-size: 2.8rem; font-weight: 400; line-height: 1; }
.booking-dialog > p:not(.eyebrow) { color: #576575; }
.dialog-close { position: absolute; right: 1rem; top: .7rem; padding: .3rem; color: var(--ink); background: transparent; border: 0; cursor: pointer; font-size: 2rem; line-height: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.booking-dialog label { display: grid; gap: .35rem; margin-bottom: 1rem; color: #394a5d; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.booking-dialog input, .booking-dialog textarea { width: 100%; padding: .75rem .8rem; color: var(--ink); background: var(--white); border: 1px solid #c5ccd2; border-radius: 0; font-size: 1rem; text-transform: none; }
.booking-dialog textarea { resize: vertical; }
.form-actions { display: flex; align-items: center; gap: 1rem; }
.form-actions a { color: #245f86; font-size: .82rem; font-weight: 700; }
.form-note { margin: 1rem 0 0; color: #778491 !important; font-size: .75rem; }

@media (max-width: 1120px) {
  .header-shell { grid-template-columns: 1fr auto; }
  .credential-line { display: none; }
  .header-actions { grid-column: 2; }
  .hero { grid-template-columns: 1fr .8fr; gap: 2rem; }
  .hero-content { padding-right: 1rem; }
  .failure-grid { grid-template-columns: 1fr; }
  .service-directory-grid { grid-template-columns: repeat(2, 1fr); }
  .failure-card { display: grid; grid-template-columns: 90px 1fr; column-gap: 1rem; }
  .failure-number { grid-row: 1 / 8; }
  .failure-card > *:not(.failure-number) { grid-column: 2; }
  .failure-card .answer-box { max-width: none; }
  .tech-notes { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 78px; }
  body { padding-bottom: 66px; }
  .header-shell { width: min(calc(100% - 32px), var(--max)); min-height: 72px; grid-template-columns: 1fr auto; }
  .brand-copy small, .est-badge { display: none; }
  .header-actions { display: none; }
  .menu-button { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; color: var(--white); background: transparent; border: 1px solid var(--line); cursor: pointer; }
  .menu-button > span:not(.sr-only) { width: 20px; height: 1px; display: block; background: currentColor; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; padding: 1rem 24px 1.4rem; display: none; flex-direction: column; align-items: flex-start; gap: .8rem; background: #0b2a4a; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; font-size: .92rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .hero::after { width: 260px; height: 260px; right: -130px; top: 120px; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(4, 12, 22, .9) 0%, rgba(4, 12, 22, .72) 62%, rgba(4, 12, 22, .56) 100%),
      linear-gradient(0deg, rgba(4, 12, 22, .86) 0%, transparent 52%, rgba(4, 12, 22, .4) 100%);
  }
  .hero-image img { object-position: 62% center; }
  .hero-content { margin: 0; padding: 5rem 24px 2.5rem; max-width: none; }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 5.2rem); overflow-wrap: break-word; }
  .diagnostic-panel { width: auto; margin: 0 24px 2rem; }
  .trust-bar { grid-column: auto; width: calc(100% - 48px); grid-template-columns: repeat(2,1fr); }
  .trust-bar > div:nth-child(2) { border-right: 0; }
  .trust-bar > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .split-heading, .legacy-layout, .local-layout, .reference-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-shell { grid-template-columns: 1fr; }
  .service-aside { position: static; }
  .system-grid { grid-template-columns: 1fr; }
  .system-grid article, .system-grid article:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .system-grid article:last-child { border-bottom: 0; }
  .video-grid { grid-template-columns: 1fr; }
  .featured-video { transform: none; }
  .video-card { display: grid; grid-template-columns: 1fr 1fr; }
  .video-frame { height: 100%; min-height: 250px; }
  .final-cta { flex-direction: column; align-items: flex-start; }
  .final-actions { width: 100%; }
  .footer-main { grid-template-columns: repeat(2,1fr); }
  .footer-services { grid-template-columns: repeat(2, 1fr); }
  .mobile-emergency { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; min-height: 66px; display: grid; grid-template-columns: 1fr 82px; color: var(--ink); background: var(--gold); box-shadow: 0 -8px 30px rgba(0,0,0,.25); }
  .mobile-emergency a { padding: .65rem 1rem; display: flex; flex-direction: column; justify-content: center; text-decoration: none; }
  .mobile-emergency span { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .mobile-emergency strong { font-size: 1rem; }
  .mobile-emergency button { color: var(--white); background: var(--ink); border: 0; font-weight: 800; }
  .mobile-emergency > a:last-child { align-items: center; color: var(--white); background: var(--ink); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
  .testimonial-feature-copy { grid-template-columns: 1fr; }
  .testimonial-feature-copy .button { justify-self: start; }
  .testimonial-trust { grid-template-columns: 1fr; }
  .testimonial-trust div { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .testimonial-trust div:last-child { border-bottom: 0; }
  .error-header .header-shell { grid-template-columns: 1fr; padding: 1rem 0; }
  .error-header .header-actions { display: flex; grid-column: 1; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .section { padding-left: 18px; padding-right: 18px; }
  .hero-content { padding-left: 18px; padding-right: 18px; }
  .diagnostic-panel { margin-left: 18px; margin-right: 18px; padding: 1rem; }
  .trust-bar { width: calc(100% - 36px); grid-template-columns: 1fr; }
  .trust-bar > div { min-height: 82px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-bar > div:nth-child(2) { border-right: 0; }
  .trust-bar > div:last-child { border-bottom: 0; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: .6rem; }
  .text-action { text-align: left; }
  .section-heading h2, .legacy-copy h2, .local-copy h2 { font-size: 2.65rem; }
  .service-directory-grid, .service-facts { grid-template-columns: 1fr; }
  .service-hero { min-height: 440px; padding: 5rem 18px; }
  .service-hero::after { inset: 14px; }
  .service-hero h1 { font-size: clamp(2.45rem, 11vw, 4.5rem); overflow-wrap: break-word; }
  .service-content { padding: 4.5rem 18px; }
  .failure-card { display: block; padding: 1.25rem; }
  .failure-number { margin-bottom: 1.7rem; }
  .failure-card > *:not(.failure-number) { grid-column: auto; }
  .technical-ledger { padding: 1.35rem; }
  .tech-notes { grid-template-columns: 1fr; }
  .system-grid article { padding: 1.35rem; }
  .system-grid ul { grid-template-columns: 1fr; }
  .audience-strip { grid-template-columns: 1fr; }
  .audience-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .audience-strip > div:last-child { border-bottom: 0; }
  .video-card { display: block; }
  .video-frame { min-height: 0; }
  .building-list { grid-template-columns: 1fr; }
  .neighborhood-panel { padding: 1.3rem; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-services { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .booking-dialog { padding: 2rem 1.2rem 1.4rem; }
  .booking-dialog h2 { font-size: 2.25rem; }
  .testimonial-hero { min-height: 440px; padding: 5rem 18px 7rem; }
  .testimonial-hero h1 { font-size: clamp(2.4rem, 11vw, 4.6rem); overflow-wrap: break-word; }
  .testimonial-hero::after { inset: 14px; }
  .testimonial-feature { width: calc(100% - 36px); margin-top: -4rem; margin-bottom: 5rem; }
  .testimonial-feature-copy { padding: 1.35rem; }
  .testimonial-trust { width: calc(100% - 36px); margin-bottom: 5rem; }
  .error-main { padding: 2.5rem 18px; }
  .error-card { padding: 2rem 1.25rem; }
  .error-header .header-actions { display: none; }
}

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