:root {
  color-scheme: light dark;
  /* --background: #f6f6f3; */
  --background: #fff;
  --surface: #ececea;
  --text: #10110f;
  --muted: #62635f;
  --line: #cecfca;
  --accent: #165dff;
  --accent-contrast: #ffffff;
  --dark-section: #111310;
  --dark-text: #f5f5f1;
  --dark-muted: #a8aaa3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #10110f;
    --surface: #1a1b18;
    --text: #f4f4f0;
    --muted: #a5a69f;
    --line: #343630;
    --accent: #6f98ff;
    --accent-contrast: #0a142c;
    --dark-section: #e8e9e4;
    --dark-text: #111310;
    --dark-muted: #55574f;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

@layer base {
  body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
      Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
      "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

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

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--background);
  font-weight: 700;
  transform: translateY(-200%);
}

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

.site-header,
footer {
  width: min(100% - 48px, 1380px);
  margin: 0 auto;
}

.site-header {
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.wave-mark {
  width: 32px;
  height: 24px;
}

.wave-mark path {
  stroke: currentColor;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

nav {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

nav a,
footer a {
  transition: color 150ms ease;
}

nav a:hover,
footer a:hover {
  color: var(--accent);
}

.header-contact {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.header-contact svg,
.text-link svg,
.contact-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transition: transform 150ms ease;
}

.header-contact:hover svg,
.text-link:hover svg,
.contact-button:hover svg {
  transform: translateX(3px);
}

.hero,
.section {
  width: min(100% - 48px, 1380px);
  margin: 0 auto;
}

.hero {
  padding-top: clamp(64px, 9vw, 136px);
  overflow: hidden;
}

.hero-kicker,
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 1200px;
  margin-top: 32px;
  font-size: clamp(54px, 8.5vw, 126px);
  font-weight: 580;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

h1 span {
  color: var(--accent);
}

.hero-bottom {
  max-width: 680px;
  margin: clamp(48px, 7vw, 96px) 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}

.hero-bottom p {
  color: var(--muted);
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.hero-diagram {
  height: clamp(110px, 14vw, 190px);
  margin-top: clamp(48px, 7vw, 92px);
}

.hero-diagram svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-diagram .guide {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 7;
}

.hero-diagram .wave {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.section {
  padding: clamp(96px, 11vw, 168px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: clamp(64px, 8vw, 112px);
}

.section-heading h2,
.standards-intro h2 {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 40px;
  padding: 38px 0 42px;
  border-bottom: 1px solid var(--line);
}

.service-number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.service h3 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.service p {
  max-width: 530px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.service small {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.standards-section {
  padding: clamp(96px, 11vw, 168px) max(24px, calc((100vw - 1380px) / 2));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(72px, 10vw, 160px);
  background: var(--dark-section);
  color: var(--dark-text);
}

.standards-intro h2 {
  margin: 30px 0 40px;
}

.standards-intro > p:last-child {
  max-width: 550px;
  color: var(--dark-muted);
  font-size: 19px;
  line-height: 1.6;
}

.standards-section .eyebrow {
  color: var(--accent);
}

.standards-list {
  margin: 0;
  border-top: 1px solid color-mix(in srgb, var(--dark-text) 22%, transparent);
}

.standards-list div {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  border-bottom: 1px solid
    color-mix(in srgb, var(--dark-text) 22%, transparent);
}

.standards-list dt {
  font-size: 18px;
  font-weight: 700;
}

.standards-list dd {
  margin: 0;
  color: var(--dark-muted);
  line-height: 1.55;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sector-grid > div {
  min-height: 310px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.sector-grid > div:first-child {
  padding-left: 0;
}

.sector-grid > div:last-child {
  border-right: 0;
}

.sector-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.sector-grid h3 {
  margin-top: auto;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.sector-grid p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.contact-section {
  padding: clamp(100px, 14vw, 210px) 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  margin: 26px 0;
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 580;
  letter-spacing: -0.06em;
  line-height: 1;
}

.contact-section > p:not(.eyebrow) {
  max-width: 540px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
  padding: 16px 22px;
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 15px;
  font-weight: 750;
}

footer {
  min-height: 130px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-brand {
  color: var(--text);
}

footer > div {
  display: flex;
  gap: 28px;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .section-heading,
  .service,
  .standards-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 24px;
  }

  .service {
    gap: 16px;
  }

  .service h3 {
    font-size: 25px;
  }

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

  .sector-grid > div {
    min-height: 230px;
    border-bottom: 1px solid var(--line);
  }

  .sector-grid > div:nth-child(2) {
    border-right: 0;
  }

  .sector-grid > div:first-child {
    padding-left: 28px;
  }

  .sector-grid > div:nth-child(3),
  .sector-grid > div:nth-child(4) {
    border-bottom: 0;
  }

  footer {
    padding: 38px 0;
    grid-template-columns: 1fr 1fr;
  }

  footer > p {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  footer {
    width: min(100% - 32px, 1380px);
  }

  .site-header {
    height: 72px;
  }

  .header-contact {
    font-size: 0;
  }

  .header-contact::before {
    content: "Contact";
    font-size: 14px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 74px);
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .standards-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .standards-list div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

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

  .sector-grid > div {
    min-height: 200px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sector-grid > div:first-child {
    padding-left: 0;
  }

  .sector-grid > div:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }

  footer {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  footer > div {
    flex-wrap: wrap;
    gap: 14px 24px;
  }
}
