:root {
  color-scheme: light;
  --ink: #1a2b3c;
  --muted: #5a6b7d;
  --line: #d8e0e8;
  --accent: #1e5a8a;
  --accent-soft: #e8f0f7;
  --bg: #f5f7fa;
  --panel: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.filter-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.shell {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.site-nav-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.site-nav-tab {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav-tab:hover,
.site-nav-tab:focus-visible {
  color: var(--ink);
}

.site-nav-tab.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.site-nav-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--ink);
  text-decoration: none;
}

.brand-image {
  display: block;
  width: auto;
  max-width: min(280px, 58vw);
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.brand-image[hidden] { display: none; }

.brand-fallback {
  display: none;
  align-items: center;
  gap: 14px;
}

.brand-fallback.is-visible { display: flex; }

.brand-symbol {
  position: relative;
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.brand-symbol::before,
.brand-symbol::after {
  position: absolute;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.brand-symbol::before {
  width: 18px;
  height: 18px;
}

.brand-symbol::after {
  width: 6px;
  height: 6px;
  border: 0;
  background: var(--accent);
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.system-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: right;
}

main {
  min-height: calc(100vh - 188px);
  padding-block: 72px 88px;
}

.page-panel { display: none; }

.page-panel.is-active { display: block; }

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

.intro {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.intro-note {
  margin-top: 28px;
  font-size: 0.9375rem;
}

.home-capabilities {
  max-width: 540px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.home-capabilities li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.home-capabilities li:last-child {
  border-bottom: 1px solid var(--line);
}

.home-capabilities strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 600;
}

.text-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.text-link:hover,
.text-link:focus-visible {
  color: #164a72;
}

.project-page {
  max-width: 720px;
}

.project-header {
  margin-bottom: 40px;
}

.project-lead {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.7;
}

.project-content {
  display: grid;
  gap: 32px;
}

.project-content h2 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
}

.project-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.project-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.75;
}

.project-list li + li {
  margin-top: 8px;
}

.identity-panel {
  display: grid;
  width: min(100%, 380px);
  justify-self: end;
  place-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.hero-logo {
  display: block;
  width: min(100%, 300px);
  height: auto;
  filter: url(#remove-white-fringe);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

.intranet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.intranet:hover,
.intranet:focus-visible { color: #164a72; }

@media (max-width: 820px) {
  .shell { width: min(100% - 36px, 680px); }
  header {
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 84px;
    padding-block: 18px;
  }

  .site-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
  }

  main {
    min-height: auto;
    padding-block: 56px 64px;
  }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .identity-panel {
    width: min(88vw, 340px);
    justify-self: center;
    order: -1;
  }

  .system-state {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 28px, 680px); }
  .brand-image { height: 44px; }
  .brand-symbol { width: 40px; }
  .brand-copy strong { font-size: 0.9rem; }
  .site-nav-tab { padding: 7px 13px; font-size: 0.8125rem; }
  main { padding-top: 40px; }
  .identity-panel { width: min(88vw, 300px); padding: 24px; }
  .eyebrow { margin-bottom: 16px; }
  .intro { margin-top: 20px; font-size: 1rem; }
  .project-lead { font-size: 1.05rem; }
  .project-header { margin-bottom: 32px; }
  .project-content { gap: 28px; }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-block: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
