:root {
  color-scheme: dark;
  --ink-950: #061019;
  --ink-900: #081520;
  --ink-850: #0c1c29;
  --ink-800: #102433;
  --paper: #f4f0e8;
  --paper-muted: #c9d0d2;
  --copper: #d9975d;
  --copper-light: #f2bd83;
  --blue: #5bb8e8;
  --line: rgba(190, 215, 226, 0.18);
  --max-width: 76rem;
  --shadow: 0 2rem 5rem rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(91, 184, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 184, 232, 0.035) 1px, transparent 1px),
    var(--ink-900);
  background-size: 4rem 4rem;
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #f4f0e8;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #061019;
}

.skip-link {
  position: fixed;
  z-index: 10;
  left: 1rem;
  top: 1rem;
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  color: var(--ink-950);
  transform: translateY(-200%);
}

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

.section-shell,
.site-header {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 6.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 0.16rem;
  padding: 0.25rem;
  border: 1px solid rgba(242, 189, 131, 0.5);
  transform: rotate(45deg);
}

.brand-mark span {
  display: block;
  background: var(--copper-light);
  height: 40%;
}

.brand-mark span:nth-child(2) {
  height: 65%;
}

.brand-mark span:nth-child(3) {
  height: 90%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  color: var(--paper-muted);
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--paper);
}

.site-nav .nav-action {
  padding: 0.72rem 1rem;
  border: 1px solid rgba(242, 189, 131, 0.5);
  color: var(--copper-light);
}

.hero {
  display: grid;
  min-height: 43rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: 6.5rem 7.5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  color: var(--copper-light);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.6rem;
  font-size: clamp(3rem, 6vw, 5.8rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.9rem;
  font-size: 1.65rem;
}

.hero-lede {
  max-width: 42rem;
  margin: 0;
  color: var(--paper-muted);
  font-size: clamp(1.06rem, 1.7vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.75rem 1.25rem;
  font-weight: 720;
  text-decoration: none;
}

.button-primary {
  background: var(--copper-light);
  color: var(--ink-950);
}

.button-primary:hover {
  background: #ffd09e;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--paper);
}

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

.hero-note {
  margin-top: 1.5rem;
  color: #99a9b0;
  font-size: 0.86rem;
}

.signal-panel {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid rgba(91, 184, 232, 0.25);
  background: linear-gradient(145deg, rgba(16, 36, 51, 0.96), rgba(6, 16, 25, 0.96));
  box-shadow: var(--shadow);
}

.signal-panel::before {
  position: absolute;
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(217, 151, 93, 0.18);
  content: "";
  right: -5rem;
  top: -5rem;
  transform: rotate(45deg);
}

.signal-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  color: #9fb1b9;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #9ddcbf;
}

.signal-status::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #65cf9b;
  content: "";
  box-shadow: 0 0 0 0.25rem rgba(101, 207, 155, 0.1);
}

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

.signal-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.8rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.signal-number {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
}

.signal-list strong,
.signal-list div span {
  display: block;
}

.signal-list strong {
  margin-bottom: 0.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 500;
}

.signal-list div span {
  color: #a8b4b9;
  font-size: 0.87rem;
}

.signal-trace {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  padding-top: 1.25rem;
}

.signal-trace span {
  display: block;
  height: 0.22rem;
  background: rgba(91, 184, 232, 0.2);
}

.signal-trace span:nth-child(2),
.signal-trace span:nth-child(3) {
  background: var(--blue);
}

.service-section {
  padding-block: 7rem;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  align-items: start;
}

.section-heading h2 {
  max-width: 15ch;
}

.section-intro {
  max-width: 48rem;
  color: var(--paper-muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 18rem;
  padding: 2rem;
  background: var(--ink-900);
}

.service-card p:last-child {
  color: var(--paper-muted);
}

.service-card h3 a {
  text-decoration: none;
}

.service-card h3 a:hover {
  color: var(--copper-light);
}

.card-link {
  display: inline-flex;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--copper-light);
  font-size: 0.82rem;
  font-weight: 740;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
}

.service-index {
  margin-bottom: 4rem;
  color: var(--copper-light);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.process-section {
  padding-block: 7rem;
  background: var(--paper);
  color: var(--ink-950);
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 9vw, 8rem);
}

.eyebrow-light {
  color: #9a5927;
}

.process-copy {
  align-self: end;
  color: #34434a;
  font-size: 1.08rem;
}

.text-link {
  display: inline-flex;
  gap: 1.1rem;
  margin-top: 1.2rem;
  color: #813f14;
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;
}

.page-hero {
  min-height: 35rem;
  padding-block: 7rem 6rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 15ch;
}

.page-intro {
  max-width: 48rem;
  margin: 0;
  color: var(--paper-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.review-notice,
.contact-safety {
  max-width: 48rem;
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--copper);
  background: rgba(217, 151, 93, 0.08);
  color: #e9c6a5;
  font-size: 0.9rem;
}

.contact-safety {
  border-left-color: var(--blue);
  background: rgba(91, 184, 232, 0.08);
  color: #c6dfec;
}

.service-directory {
  display: grid;
  width: min(calc(100% - 3rem), var(--max-width));
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 auto 2rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-directory a {
  display: grid;
  min-height: 17rem;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  gap: 0.8rem;
  padding: 2rem;
  background: var(--ink-850);
  text-decoration: none;
}

.service-directory span,
.section-kicker {
  color: var(--copper-light);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-directory strong {
  grid-column: 1 / -1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.service-directory small {
  color: var(--paper-muted);
  font-size: 0.9rem;
}

.service-directory b {
  align-self: end;
  color: var(--copper-light);
  font-size: 1.2rem;
}

.service-directory a:hover {
  background: var(--ink-800);
}

.content-section {
  display: grid;
  grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 8vw, 7rem);
  padding-block: 6rem;
  border-bottom: 1px solid var(--line);
}

.content-heading h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.content-body > p {
  max-width: 49rem;
  margin-top: 0;
  color: var(--paper-muted);
  font-size: 1.05rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.content-card {
  padding: 1.75rem;
  background: var(--ink-850);
}

.content-card h3 {
  font-size: 1.25rem;
}

.content-card p {
  margin-bottom: 0;
  color: var(--paper-muted);
  font-size: 0.92rem;
}

.bullet-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding: 1.15rem 1rem 1.15rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--paper-muted);
}

.bullet-list li::before {
  position: absolute;
  left: 0.55rem;
  top: 1.62rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--blue);
  content: "";
  transform: rotate(45deg);
}

.compact-heading {
  grid-column: 1 / -1;
}

.cta-section {
  padding-block: 5rem;
  background: var(--paper);
  color: var(--ink-950);
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3rem;
}

.cta-panel h2 {
  max-width: 16ch;
}

.cta-panel p:not(.eyebrow) {
  max-width: 47rem;
  color: #34434a;
}

.button-dark {
  background: var(--ink-950);
  color: var(--paper);
  white-space: nowrap;
}

.not-found {
  min-height: 42rem;
}

.site-footer {
  padding-block: 3.5rem;
  border-top: 1px solid var(--line);
}

.footer-layout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.brand-footer {
  margin-bottom: 1.1rem;
}

.footer-layout p {
  margin: 0;
  color: #92a3aa;
  font-size: 0.82rem;
}

.footer-layout > a {
  color: var(--copper-light);
  font-size: 0.9rem;
  text-underline-offset: 0.3rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem 1.5rem;
  color: var(--copper-light);
  font-size: 0.86rem;
}

.footer-nav a {
  text-underline-offset: 0.3rem;
}

@media (max-width: 56rem) {
  .hero,
  .section-heading,
  .process-layout,
  .content-section,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 4rem;
    padding-block: 4.5rem;
  }

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

  .service-directory,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-index {
    margin-bottom: 2rem;
  }
}

@media (max-width: 42rem) {
  .section-shell,
  .site-header {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .site-header {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1.4rem;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.8rem 1.1rem;
  }

  .site-nav .nav-action {
    width: 100%;
    text-align: center;
  }

  .hero {
    min-height: 0;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-directory {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

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

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

@media print {
  :root {
    color-scheme: light;
  }

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

  .site-header,
  .hero-actions,
  .cta-section,
  .signal-panel,
  .card-link {
    display: none;
  }

  .hero,
  .page-hero,
  .content-section,
  .service-section,
  .process-section {
    min-height: 0;
    padding-block: 1.5rem;
    background: #fff;
    color: #111;
  }

  .hero-lede,
  .page-intro,
  .section-intro,
  .content-body > p,
  .content-card p,
  .service-card p:last-child,
  .process-copy,
  .bullet-list li,
  .hero-note,
  .service-index,
  .service-directory small,
  .service-directory b {
    color: #222;
  }

  .eyebrow,
  .eyebrow-light,
  .section-kicker,
  .review-notice,
  .contact-safety,
  .service-directory span {
    background: #fff;
    border-color: #222;
    color: #222;
  }

  .service-card,
  .content-card,
  .service-directory a {
    background: #fff;
    color: #111;
    break-inside: avoid;
  }

  .site-footer {
    padding-block: 1.5rem;
    background: #fff;
    border-color: #222;
    color: #111;
  }

  .footer-layout {
    align-items: flex-start;
  }

  .footer-layout p,
  .footer-nav {
    color: #111;
  }
}
