:root {
  --harbor: #123a3e;
  --harbor-2: #184a4f;
  --teal: #1f7471;
  --teal-bright: #2f8c8f;
  --line: #7cc7bf;
  --sea: #e8f3f1;
  --ink: #1b2627;
  --muted: #4b5c5e;
  --rule: #c6dad7;
  --paper: #ffffff;
  --on-dark: #e9f5f3;
  --on-dark-muted: #b4d4cf;
  --wrap: 72rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--harbor); }

:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-stretch: 85%;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--harbor); color: #fff; padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 5rem;
}
.brand img { height: 42px; width: auto; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
.site-nav a {
  display: block; padding: 0.5rem 0.8rem; color: var(--ink);
  text-decoration: none; font-weight: 500; border-radius: 4px;
}
.site-nav a:hover { color: var(--teal); }
.site-nav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.site-nav a.nav-cta { background: var(--teal); color: #fff; margin-left: 0.5rem; }
.site-nav a.nav-cta:hover { background: var(--harbor); }
.site-nav a.nav-cta[aria-current="page"] { box-shadow: none; border-radius: 4px; }

@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 4.25rem; gap: 0.75rem; }
  .brand img { height: 26px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font: inherit; font-weight: 600; color: var(--ink);
    background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 0.4rem 0.8rem; cursor: pointer;
  }
  .site-nav { display: none; width: 100%; padding-bottom: 1rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); padding-left: 0.75rem; }
  .site-nav a.nav-cta { margin: 0.75rem 0 0; text-align: center; border-radius: 4px; border: 0; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 0.8rem 1.3rem; border-radius: 4px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent; line-height: 1.2;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--harbor); color: #fff; }
.btn-light { background: var(--line); color: var(--harbor); }
.btn-light:hover { background: #fff; color: var(--harbor); }
.btn-ghost { border-color: var(--on-dark-muted); color: var(--on-dark); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Hero */
.hero { background: var(--harbor); color: var(--on-dark); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem;
}
.hero h1 { color: #fff; font-stretch: 80%; font-weight: 600; font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.hero h1 span { display: block; color: var(--line); }
.hero p { color: var(--on-dark-muted); font-size: 1.15rem; }
.hero :focus-visible { outline-color: #fff; }

.topology { width: 100%; height: auto; }
.topology .run { fill: none; stroke: var(--line); stroke-width: 2; }
.topology .run-faint { fill: none; stroke: #2e6266; stroke-width: 1; }
.topology .node rect { fill: var(--harbor-2); stroke: var(--line); stroke-width: 1.5; }
.topology .node text { fill: var(--on-dark); font-family: "Archivo", sans-serif; font-size: 17px; font-weight: 600; font-stretch: 85%; }
.topology .node .sub { fill: var(--on-dark-muted); font-size: 13.5px; font-weight: 400; }
.topology .core rect { fill: var(--teal-bright); stroke: #fff; stroke-width: 1.5; }
.topology .core text { fill: #fff; font-size: 20px; font-weight: 650; }
.topology .port { fill: var(--line); }
.topology a:hover rect, .topology a:focus rect { fill: var(--teal); }
.topology a:focus { outline: none; }
.topology a:focus-visible rect { stroke: #fff; stroke-width: 3; }

@media (prefers-reduced-motion: no-preference) {
  .topology .run { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.1s ease-out forwards; }
  .topology .run:nth-of-type(2) { animation-delay: 0.15s; }
  .topology .run:nth-of-type(3) { animation-delay: 0.3s; }
  .topology .run:nth-of-type(4) { animation-delay: 0.45s; }
  .topology .node { opacity: 0; animation: lightup 0.5s ease-out forwards; animation-delay: 0.9s; }
  .topology .core { opacity: 1; animation: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes lightup { to { opacity: 1; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 3rem; gap: 2rem; }
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-tint { background: var(--sea); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }

.intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.intro .lead { font-size: 1.3rem; line-height: 1.5; font-stretch: 92%; }
.intro figure { margin: 0; }
.intro figure { justify-self: end; }
.intro img { border-radius: 4px; width: 225px; max-width: 100%; }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; gap: 2rem; } .intro figure { justify-self: start; } }

.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.area { border-top: 3px solid var(--teal); padding-top: 1.1rem; }
.area h3 a { color: var(--ink); text-decoration: none; }
.area h3 a:hover { color: var(--teal); text-decoration: underline; }
.area p { color: var(--muted); }
.area .more { font-weight: 600; }
@media (max-width: 700px) { .areas { grid-template-columns: 1fr; } }

.principles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; }
.principles li { padding-left: 1.25rem; border-left: 2px solid var(--rule); }
.principles strong { display: block; font-stretch: 85%; font-size: 1.15rem; margin-bottom: 0.2rem; }
.principles span { color: var(--muted); }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; } }

.platforms { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.platforms li { font-stretch: 80%; font-weight: 600; font-size: 1.6rem; color: var(--harbor); }

.contact-band { background: var(--harbor); color: var(--on-dark); }
.contact-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-top: 3rem; padding-bottom: 3rem; }
.contact-band h2 { color: #fff; margin-bottom: 0.3rem; }
.contact-band p { color: var(--on-dark-muted); margin: 0; }
.contact-band a:not(.btn) { color: var(--line); }
.contact-band :focus-visible { outline-color: #fff; }

/* Interior pages */
.page-head { background: var(--sea); border-bottom: 1px solid var(--rule); padding: 2.75rem 0 2.5rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
.crumbs a { color: var(--muted); }
.page-head h1 { margin-bottom: 0.4rem; }
.page-head .lede { font-size: 1.2rem; color: var(--muted); margin: 0; max-width: 60ch; }

.content { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 3.5rem; padding: 3.5rem 0 4.5rem; }
.content.full { grid-template-columns: minmax(0, 1fr); }
.content aside figure { margin: 0; position: sticky; top: 1.5rem; }
.content aside img { border-radius: 4px; width: 100%; }
@media (max-width: 860px) {
  .content { grid-template-columns: 1fr; gap: 2rem; }
  .content aside { order: -1; }
  .content aside img { max-height: 220px; object-fit: cover; }
}

.prose h2 { margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }

.spec { list-style: none; padding: 0; margin: 0 0 1.5rem; columns: 2 18rem; column-gap: 2.5rem; }
.spec li { break-inside: avoid; padding: 0.55rem 0 0.55rem 1.1rem; border-bottom: 1px solid var(--rule); position: relative; }
.spec li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 0.45rem; height: 2px; background: var(--teal); }
.spec li small { display: block; color: var(--muted); font-size: 0.92rem; }
.spec.single { columns: 1; }

.sec-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.5rem; }
.sec-table th, .sec-table td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
.sec-table th { font-stretch: 85%; font-weight: 650; width: 38%; }
.sec-table td { color: var(--muted); }
@media (max-width: 600px) {
  .sec-table, .sec-table tbody, .sec-table tr, .sec-table th, .sec-table td { display: block; width: 100%; }
  .sec-table th { border-bottom: 0; padding-bottom: 0.1rem; }
}

.cert-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.cert-group img { height: 32px; width: auto; margin-bottom: 0.75rem; }
.cert-group h3 { margin-bottom: 0.4rem; }
@media (max-width: 700px) { .cert-groups { grid-template-columns: 1fr; } }

.cta-box { margin-top: 2.5rem; padding: 1.5rem 1.75rem; background: var(--sea); border-left: 4px solid var(--teal); }
.cta-box h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.cta-box p { color: var(--muted); }
.cta-box .btn { margin-top: 0.25rem; }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.link-list a { font-weight: 650; font-stretch: 85%; font-size: 1.2rem; }
.link-list p { margin: 0.2rem 0 0; color: var(--muted); }

.sitemap-tree, .sitemap-tree ul { list-style: none; padding-left: 0; }
.sitemap-tree > li { margin-bottom: 1rem; }
.sitemap-tree > li > a { font-weight: 650; font-size: 1.15rem; }
.sitemap-tree ul { padding-left: 1.25rem; border-left: 2px solid var(--rule); margin-top: 0.4rem; }
.sitemap-tree ul li { padding: 0.15rem 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 3.5rem; padding: 3.5rem 0 4.5rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.contact-details dl { margin: 0; }
.contact-details dt { font-weight: 650; font-stretch: 85%; margin-top: 1.25rem; }
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd { margin: 0.15rem 0 0; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #93b2ae; border-radius: 4px; padding: 0.65rem 0.75rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 1px; border-color: var(--teal); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks label { display: flex; gap: 0.6rem; align-items: center; font-weight: 400; margin-bottom: 0.35rem; }
.checks input { width: 1.1rem; height: 1.1rem; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 1.5rem; }
.form-actions button { font: inherit; cursor: pointer; }
.notice { padding: 1rem 1.25rem; border-radius: 4px; margin-bottom: 1.5rem; }
.notice[hidden] { display: none; }
.notice.error { background: #fbeceb; border-left: 4px solid #b3261e; color: #5c1410; }
.notice.ok { background: var(--sea); border-left: 4px solid var(--teal); }

/* Footer */
.site-footer { background: var(--harbor); color: var(--on-dark-muted); font-size: 0.95rem; border-top: 1px solid #24575c; }
.contact-band + .site-footer { border-top-color: #24575c; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
.site-footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer .legal { grid-column: 1 / -1; max-width: none; border-top: 1px solid #24575c; padding-top: 1.25rem; margin-top: 0.5rem; font-size: 0.88rem; }
.site-footer .wordmark { font-stretch: 80%; font-weight: 600; font-size: 1.5rem; color: #fff; margin-bottom: 0.4rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media print {
  .site-header nav, .nav-toggle, .contact-band, .site-footer, .cta-box .btn { display: none; }
  .page-head { background: none; }
}
.cert-group h3:first-child { margin-top: 2.75rem; }
