:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #52615d;
  --paper: #fbfcf9;
  --panel: #ffffff;
  --line: #dce4df;
  --accent: #0f6a5d;
  --accent-strong: #183d36;
  --gold: #b7832f;
  --plum: #6b3658;
  --shadow: 0 24px 60px rgb(18 34 31 / 12%);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
}

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

.site-header {
  width: min(100% - 2rem, var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand,
.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-text {
  font-size: 1.02rem;
}

.site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.hero {
  width: min(100% - 2rem, var(--max-width));
  min-height: calc(100svh - 104px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding: 5rem 0 4rem;
}

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

.hero h1,
.section h2,
.profile-band h2,
.contact-band h2,
.document h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 7.8vw, 6.7rem);
  font-weight: 500;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 660px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  line-height: 1.35;
}

.hero-actions,
.contact-band {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-strong);
  border-radius: 6px;
  padding: 0.72rem 1rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button.primary {
  background: var(--accent-strong);
  color: var(--paper);
}

.button.secondary {
  background: transparent;
  color: var(--accent-strong);
}

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

.button.primary:hover {
  background: var(--accent);
  color: var(--paper);
}

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

a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgb(183 131 47 / 70%);
  outline-offset: 3px;
}

.identity-map {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 1rem;
  padding: 1rem 0 1rem 1.4rem;
  isolation: isolate;
}

.identity-map::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 2.2rem;
  bottom: 2.2rem;
  width: 1px;
  background: linear-gradient(var(--accent-strong), var(--gold), var(--plum));
}

.route-field {
  position: absolute;
  inset: -4.5rem -3rem -4rem -4.5rem;
  z-index: -1;
  width: calc(100% + 7.5rem);
  height: calc(100% + 8.5rem);
  opacity: 0.9;
  pointer-events: none;
}

.map-node {
  position: relative;
  display: grid;
  gap: 0.1rem;
  min-height: 84px;
  align-content: center;
  padding: 1rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.map-node:hover {
  border-color: rgb(15 106 93 / 45%);
  box-shadow: 0 28px 70px rgb(18 34 31 / 16%);
  transform: translateY(-2px);
}

.map-node::before {
  content: "";
  position: absolute;
  left: -1.22rem;
  top: 50%;
  width: 11px;
  height: 11px;
  border: 2px solid var(--paper);
  background: var(--accent);
  border-radius: 999px;
  transform: translateY(-50%);
}

.map-node.anchor {
  background: var(--accent-strong);
  color: var(--paper);
}

.node-label {
  font-weight: 800;
}

.node-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.anchor .node-note {
  color: rgb(251 252 249 / 78%);
}

.section,
.profile-band,
.contact-band,
.document-page {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section h2,
.profile-band h2,
.contact-band h2,
.document h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  font-weight: 500;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-card a,
.muted-link {
  font-weight: 800;
}

.status {
  display: inline-flex;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status.active {
  color: var(--accent);
}

.status.planned {
  color: var(--gold);
}

.status.private {
  color: var(--plum);
}

.profile-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.text-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 3rem);
  color: var(--muted);
  font-size: 1.12rem;
}

.text-columns p {
  margin: 0;
}

.compact {
  padding-bottom: 3rem;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  min-height: 64px;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: var(--panel);
}

.contact-band {
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.contact-band h2 {
  max-width: 760px;
}

.site-footer {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.document-page {
  min-height: calc(100svh - 180px);
}

.document {
  max-width: 820px;
}

.document h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.4rem;
}

.document p,
.document li {
  color: var(--muted);
}

code {
  background: #edf3ef;
  border-radius: 4px;
  padding: 0.1rem 0.25rem;
}

@media (max-width: 980px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3rem, 13.5vw, 5rem);
  }

  .identity-map {
    padding-top: 0;
  }

  .project-grid,
  .text-columns,
  .capability-list {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 240px;
  }

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    width: 100%;
    gap: 0.65rem 0.9rem;
  }

  .button {
    width: 100%;
  }

  .hero {
    padding-top: 2rem;
  }

  .map-node,
  .project-card {
    border-radius: 6px;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .hero-actions,
  .site-footer,
  .skip-link,
  script {
    display: none;
  }

  .hero,
  .section,
  .profile-band,
  .contact-band,
  .document-page {
    width: 100%;
    min-height: auto;
    padding: 1.5rem 0;
  }

  .project-grid,
  .text-columns,
  .capability-list {
    grid-template-columns: 1fr;
  }

  .project-card,
  .map-node,
  .capability-list li {
    box-shadow: none;
    break-inside: avoid;
  }
}
