:root {
  --canvas: #f5f6f4;
  --surface: #fbfcfa;
  --ink: #171a1c;
  --muted: #596164;
  --subtle: #666d6f;
  --rule: #d3d7d4;
  --rule-dark: #aeb5b1;
  --anchor: #163f46;
  --anchor-deep: #0d2e34;
  --focus: #2a527f;

  --biology: #336f59;
  --decision: #2a527f;
  --discovery: #48999c;
  --execution: #be682e;
  --materials: #c8a32c;
  --synthesis: #6d6497;
  --venture: #96a15b;

  --opal-spectrum: linear-gradient(
    90deg,
    var(--biology) 0 14.2%,
    var(--decision) 14.2% 28.4%,
    var(--discovery) 28.4% 42.6%,
    var(--execution) 42.6% 56.8%,
    var(--materials) 56.8% 71%,
    var(--synthesis) 71% 85.2%,
    var(--venture) 85.2% 100%
  );

  --max: 74rem;
  --content: 45rem;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 9%, rgba(72, 153, 156, 0.035), transparent 22rem),
    var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(72, 153, 156, 0.18);
  color: var(--ink);
}

a { color: inherit; }

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 120ms ease;
}

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

.opal-seam {
  height: 3px;
  background: var(--opal-spectrum);
  opacity: 0.8;
}

.site-header { border-bottom: 1px solid var(--rule); }

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-inner { min-height: 5rem; }

.wordmark,
.header-meta,
.section-kicker,
.detail-label,
.route-email,
.site-footer {
  font-family: var(--mono);
}

.wordmark,
.header-meta {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.wordmark {
  color: var(--ink);
  font-weight: 700;
}

.header-meta { color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 10.5rem);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(5rem, 10vw, 8rem);
}

.hero-content { min-width: 0; }

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p,
dl { margin-top: 0; }

h1 {
  max-width: 17ch;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  font-size: clamp(2.65rem, 6.4vw, 5.45rem);
  font-weight: 620;
  letter-spacing: -0.048em;
  line-height: 0.99;
}

.hero-copy {
  display: grid;
  gap: 1rem;
  max-width: var(--content);
  color: #2b3336;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.hero-copy p { margin-bottom: 0; }

.atom-mark {
  justify-self: end;
  width: 100%;
  max-width: 10.5rem;
  aspect-ratio: 1;
  color: var(--anchor-deep);
  filter: drop-shadow(0 1rem 2.5rem rgba(31, 55, 61, 0.08));
}

.atom-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.atom-orbit {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  opacity: 0.42;
}

.atom-orbit--soft { opacity: 0.24; }

.atom-electron {
  fill: var(--anchor-deep);
  stroke: var(--surface);
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.atom-nucleus-shell {
  fill: rgba(251, 252, 250, 0.88);
  stroke: rgba(23, 26, 28, 0.22);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.atom-nucleus {
  fill: url(#opal-nucleus);
  stroke: rgba(23, 26, 28, 0.24);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.atom-highlight { fill: rgba(255, 255, 255, 0.7); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--rule);
}

.section-heading { align-self: start; }

.section-kicker {
  margin-bottom: 0.7rem;
  color: var(--anchor);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-body {
  min-width: 0;
  max-width: var(--content);
}

.section-lede {
  margin-bottom: 2.5rem;
  color: #2b3336;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.68;
}

.scope-lines {
  position: relative;
  border-top: 1px solid var(--ink);
}

.scope-lines::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 7.5rem;
  height: 3px;
  background: var(--opal-spectrum);
  opacity: 0.72;
}

.scope-lines p {
  margin: 0;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--rule);
}

.scope-lines strong,
.scope-lines span { display: block; }

.scope-lines strong {
  margin-bottom: 0.24rem;
  color: var(--ink);
  font-weight: 650;
}

.scope-lines span {
  color: var(--muted);
  line-height: 1.58;
}

.clarifier {
  margin: 1.5rem 0 0;
  color: var(--subtle);
  font-size: 0.9rem;
}


.portal-section .section-body {
  max-width: none;
}

.portal-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: 13rem;
  padding: clamp(1.8rem, 4vw, 2.7rem);
  border: 1px solid var(--rule);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), rgba(225, 237, 237, 0.34) 46%, rgba(230, 224, 239, 0.28) 72%, rgba(240, 232, 198, 0.22)),
    var(--surface);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.portal-link::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--opal-spectrum);
  opacity: 0.72;
}

.portal-link:hover {
  border-color: var(--rule-dark);
  transform: translateY(-2px);
  box-shadow: 0 1rem 2.5rem rgba(17, 23, 27, 0.07);
}

.portal-copy {
  max-width: 38rem;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 610;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.portal-action {
  color: var(--anchor-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.contact-route {
  position: relative;
  min-height: 13.5rem;
  padding: 1.45rem 3rem 1.45rem 1.45rem;
  border: 1px solid var(--rule);
  background: rgba(251, 252, 250, 0.72);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.contact-route::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--opal-spectrum);
  opacity: 0.55;
}

.contact-route:hover {
  border-color: var(--rule-dark);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 0.9rem 2.25rem rgba(17, 23, 27, 0.07);
}

.route-label,
.route-detail,
.route-email { display: block; }

.route-label {
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-weight: 700;
}

.route-detail {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.route-email {
  margin-top: 1.35rem;
  color: var(--anchor-deep);
  font-size: 0.69rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.route-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--anchor);
  font-size: 1.15rem;
}

.details-grid {
  display: grid;
  gap: 3rem;
}

.detail-label {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.record {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.record > div {
  display: grid;
  grid-template-columns: minmax(9rem, 0.72fr) minmax(0, 1.4fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.record dt,
.record dd { margin: 0; }

.record dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.record dd {
  font-size: 0.92rem;
  font-weight: 600;
}

.record .status { color: var(--anchor); }

.office-block address {
  color: #2b3336;
  font-style: normal;
  line-height: 1.75;
}

.site-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.045em;
}

.footer-inner {
  min-height: 7rem;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}

.footer-inner p { margin-bottom: 0; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.error-page {
  min-height: calc(100vh - 11rem);
  display: grid;
  align-content: center;
  padding-block: 4rem;
}

.error-code {
  margin-bottom: 0.9rem;
  color: var(--anchor);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.error-page h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

.error-copy {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--anchor-deep);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

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

@media (max-width: 48rem) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
  }

  .header-inner { min-height: 5.75rem; }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .atom-mark {
    justify-self: start;
    width: 7.25rem;
    order: -1;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 0.85rem;
  }

  .section-kicker { margin-bottom: 0; }

  .record > div {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .portal-link {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 12rem;
  }

  .contact-routes { grid-template-columns: 1fr; }
  .contact-route { min-height: 10.5rem; }
  .footer-inner { min-height: 8rem; }
}

@media (max-width: 30rem) {
  .shell { width: min(calc(100% - 2rem), var(--max)); }
  h1 { letter-spacing: -0.04em; }
  .header-meta { font-size: 0.64rem; }
}

@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;
  }
}

@media print {
  body { background: #fff; }
  .opal-seam,
  .atom-mark { display: none; }
  .contact-route { box-shadow: none; }
}
