:root {
  color-scheme: light;
  --color-ink: #18242c;
  --color-muted: #52606a;
  --color-soft: #f5f7f7;
  --color-paper: #ffffff;
  --color-line: #dfe8ea;
  --color-blue: #0f6f9f;
  --color-blue-dark: #0a4f73;
  --color-green: #6f7f25;
  --color-wood: #b88242;
  --color-shadow: rgba(24, 36, 44, 0.14);
  --container: 1120px;
  --radius: 8px;
  --header-height: 78px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-blue-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

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

:focus-visible {
  outline: 3px solid rgba(15, 111, 159, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--color-paper);
  color: var(--color-ink);
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--color-blue);
  border-radius: var(--radius);
}

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

.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;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(100% - 2rem, var(--container));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-ink);
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.15;
}

.brand small {
  margin-top: 0.1rem;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.site-nav a {
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #e9f4f8;
  color: var(--color-blue-dark);
}

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

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-ink);
}

.hero {
  position: relative;
  min-height: clamp(560px, 82svh, 780px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background: #17242c;
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
  object-position: center 44%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 22, 30, 0.9) 0%, rgba(9, 22, 30, 0.68) 38%, rgba(9, 22, 30, 0.16) 70%),
    linear-gradient(0deg, rgba(9, 22, 30, 0.28), rgba(9, 22, 30, 0.1));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 4rem 0;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--color-blue);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ed1ef;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
}

.legal-page h1 {
  max-width: none;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 780;
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  font-weight: 760;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

.hero-lead {
  max-width: 650px;
  margin-top: 1.2rem;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  line-height: 1.48;
}

.appointment-note {
  max-width: 620px;
  margin-top: 1.4rem;
  color: #fff2bd;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 800;
  line-height: 1.45;
}

.inline-note {
  color: var(--color-blue-dark);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--color-blue);
  color: white;
}

.button-primary:hover {
  background: var(--color-blue-dark);
  color: white;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-blue-dark);
  border-color: rgba(255, 255, 255, 0.75);
}

.contact-actions .button-secondary {
  border-color: var(--color-line);
}

.button-secondary:hover {
  background: white;
  color: var(--color-blue);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-muted {
  background: var(--color-soft);
}

.section-highlight {
  background: #edf7f5;
}

.section-inner {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.two-column,
.split-section,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.intro-grid {
  align-items: start;
}

.text-stack {
  color: var(--color-muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}

.section-heading p {
  max-width: 690px;
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.section-heading .eyebrow {
  max-width: none;
  margin: 0 0 0.7rem;
  color: var(--color-blue);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
}

.section-highlight .eyebrow {
  color: #556870;
}

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

.service-card,
.network-card {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 12px 28px rgba(24, 36, 44, 0.06);
}

.service-card {
  overflow-wrap: break-word;
  hyphens: auto;
}

.service-card h3,
.network-card h3 {
  margin-bottom: 0.8rem;
}

.service-card ul,
.symptom-list {
  margin: 0;
  padding-left: 1.1rem;
}

.service-card li + li {
  margin-top: 0.45rem;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.image-strip img,
.split-media img,
.contact-aside > img,
.portrait-media img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 18px 44px var(--color-shadow);
}

.image-strip img {
  aspect-ratio: 1;
}

.mobile-gallery-extra {
  display: none;
}

.split-media img {
  aspect-ratio: 4 / 3;
}

.portrait-media img {
  aspect-ratio: 1;
}

.split-section-reverse .split-media {
  order: 2;
}

.split-content {
  color: var(--color-muted);
}

.split-content h2,
.split-content h3 {
  color: var(--color-ink);
}

.split-content h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}

.split-content h2 + p {
  margin-top: 1rem;
}

.symptom-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 2rem;
  align-items: start;
  margin-bottom: 1.2rem;
}

.symptom-list li + li {
  margin-top: 0;
}

.small-text {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.swr-heading {
  max-width: 780px;
}

.video-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.video-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #b8d7d3;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-panel-text {
  padding: 1.35rem;
}

.video-panel-text p {
  color: var(--color-muted);
}

.video-panel-text h3 {
  margin-bottom: 0.6rem;
}

.video-credit {
  margin: 0;
  padding: 0.6rem 1rem 0.75rem;
  border-top: 1px solid #d7e6e4;
  background: #f8fbfa;
  font-size: 0.78rem;
  color: #6f7d82;
}

.video-consent {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-top: 1px solid #d7e6e4;
  background: #fff;
  overflow: hidden;
}

.video-placeholder {
  height: 100%;
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  padding: 1.5rem;
  text-align: center;
}

.video-kicker {
  color: var(--color-blue-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.video-consent iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.local-video {
  display: block;
  width: 100%;
  margin-top: auto;
  aspect-ratio: 16 / 9;
  background: #111;
  border-top: 1px solid #d7e6e4;
}

.text-link {
  font-weight: 750;
}

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

.network-card p + p {
  margin-top: 0.8rem;
}

.network-logo-card img {
  width: 150px;
  margin-bottom: 1rem;
}

.contact-section {
  background: #f7fafb;
}

.contact-grid {
  align-items: start;
}

.contact-lead {
  max-width: 540px;
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 1.15rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
}

.contact-list div {
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
}

.contact-list dt {
  font-weight: 800;
  color: var(--color-ink);
}

.contact-list dd {
  margin: 0.2rem 0 0;
  color: var(--color-muted);
}

.contact-aside > img {
  aspect-ratio: 16 / 9;
}

.map-box {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.map-box img {
  width: min(100%, 370px);
  margin: 0 auto;
  box-shadow: none;
}

.site-footer {
  background: #17242c;
  color: white;
  padding: 1.6rem 0;
}

.footer-inner {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.site-footer a {
  color: white;
  font: inherit;
}

.legal-content {
  max-width: 860px;
}

.legal-content section {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--color-line);
}

.legal-content h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 1rem;
}

.legal-content h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.45rem;
}

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

.legal-note {
  margin-top: 3rem;
  padding: 1rem;
  border-left: 4px solid var(--color-blue);
  background: var(--color-soft);
}

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

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

@media (max-width: 980px) {
  :root {
    --header-height: 70px;
  }

  body {
    font-size: 17px;
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem;
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: 0 18px 38px rgba(24, 36, 44, 0.16);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav.legal-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    box-shadow: none;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .site-nav a {
    border-radius: 6px;
    padding: 0.85rem;
  }

  .hero {
    min-height: 680px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(9, 22, 30, 0.9) 0%, rgba(9, 22, 30, 0.66) 42%, rgba(9, 22, 30, 0.16) 76%),
      linear-gradient(0deg, rgba(9, 22, 30, 0.34), rgba(9, 22, 30, 0.1));
  }

  .hero-content {
    align-self: end;
    padding-bottom: 4rem;
  }

  .two-column,
  .split-section,
  .video-pair,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split-section-reverse .split-media {
    order: 0;
  }

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

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

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.78rem;
  }

  .site-nav.legal-nav {
    gap: 0.1rem;
  }

  .site-nav.legal-nav a {
    padding: 0.6rem 0.45rem;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 640px;
  }

  .hero picture img {
    object-position: 54% center;
  }

  .hero-content,
  .section-inner,
  .header-inner,
  .footer-inner {
    width: min(100% - 1.25rem, var(--container));
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: auto;
    max-width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }

  .service-grid,
  .symptom-list {
    grid-template-columns: 1fr;
  }

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

  .mobile-gallery-extra {
    display: block;
  }

  .service-card,
  .network-card {
    padding: 1rem;
  }

  .video-placeholder {
    min-height: 260px;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner p + p {
    margin-top: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
