:root {
  --bg: #181918;
  --panel: #222322;
  --panel-soft: #2a2b2a;
  --profile-panel: #303230;
  --surface: #323332;
  --text: #f1f2ef;
  --muted: #a3a7a2;
  --line: #3d3f3d;
  --line-light: #595c59;
  --accent: #d6ddd6;
  --focus: #8ec8e0;
  --wrap: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 8px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--text);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  font-family: inherit;
  line-height: 1.2;
}

h1 {
  margin: 0;
  max-width: 19ch;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h2 {
  margin: 0;
  max-width: 25ch;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 14px;
  padding: 9px 12px;
  color: var(--bg);
  background: var(--text);
  transform: translateY(-160%);
}

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

.eyebrow,
.project-type,
.method,
.case-index,
.organization,
.experience-item time,
.education-item time,
.carousel-status {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.45;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: #d8ddd8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.085em;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.site-nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-role {
  color: var(--muted);
  font-weight: 500;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2vw, 27px);
}

.primary-nav a {
  color: var(--text);
  font-size: 0.86rem;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--muted);
}

.menu-toggle {
  display: none;
  padding: 7px 11px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  cursor: pointer;
}

main {
  background: var(--panel);
  border-inline: 1px solid var(--line);
}

.hero {
  display: grid;
  min-height: 320px;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 82px);
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 26px;
}

.headshot {
  width: 156px;
  height: 156px;
  flex: 0 0 156px;
  object-fit: cover;
  object-position: center 28%;
  background: var(--surface);
  border: 2px solid var(--line-light);
  border-radius: 50%;
}

.hero-intro > p {
  margin: 0;
  max-width: 36ch;
  font-size: 1.05rem;
}

.hero-proof {
  display: flex;
  margin: 22px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 7px 18px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.45;
  list-style: none;
  text-transform: uppercase;
}

.hero-proof li + li::before {
  margin-right: 18px;
  color: var(--line-light);
  content: "/";
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 22px;
  margin-top: 24px;
}

.hero-actions {
  gap: 10px;
  margin-top: 26px;
}

.hero-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--text);
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.hero-action-primary {
  color: var(--bg);
  background: var(--text);
}

.hero-action-primary:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.hero-action-secondary {
  background: transparent;
}

.hero-action-secondary:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.contact-links a {
  font-weight: 500;
}

.capability-strip {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  padding-block: clamp(68px, 8vw, 104px);
  scroll-margin-top: 76px;
}

.section-tinted {
  background: var(--panel-soft);
  border-block: 1px solid var(--line);
}

.section-intro {
  margin-bottom: clamp(36px, 5vw, 58px);
}

.split-heading,
.profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(300px, 1.25fr);
  gap: 48px;
  align-items: start;
}

.split-heading > p,
.profile-intro > p {
  margin: 0;
  max-width: 52ch;
}

.case-study {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) minmax(300px, 0.92fr);
  gap: clamp(22px, 3.5vw, 46px);
  align-items: center;
  padding-block: clamp(42px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.case-study:last-child {
  border-bottom: 1px solid var(--line);
}

.case-study-reverse .case-media {
  order: 3;
}

.case-study-reverse .case-copy {
  order: 2;
}

.case-index {
  align-self: start;
  color: var(--muted);
}

.case-index span {
  display: block;
}

.case-index span:first-child {
  margin-bottom: 3px;
  color: var(--text);
}

.case-media {
  min-width: 0;
}

.case-media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.map-trigger {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-light);
  text-decoration: none;
}

.map-trigger:hover {
  color: var(--text);
  border-color: var(--muted);
}

.map-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-media .map-trigger {
  height: 350px;
  padding: 9px;
}

.case-media-landscape .map-trigger {
  height: 300px;
}

.case-project-link {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-light);
  text-decoration: none;
}

.case-project-link:hover {
  color: var(--text);
  border-color: var(--muted);
}

.case-project-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-trigger > span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 6px 9px;
  color: var(--text);
  background: rgba(33, 34, 33, 0.9);
  border: 1px solid var(--line-light);
  font-size: 0.72rem;
}

.case-copy h3 {
  max-width: 22ch;
  margin-bottom: 18px;
}

.case-copy > p:not(.method) {
  margin: 0;
  max-width: 56ch;
}

.method {
  margin: 20px 0 0;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.case-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 24px;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.project-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--line-light);
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.project-type {
  margin: 0 0 8px;
  color: var(--muted);
}

.project-content h3 {
  margin-bottom: 12px;
}

.project-content > p:not(.project-type):not(.method) {
  margin: 0;
}

.project-content .method {
  margin-top: 15px;
}

.project-content > a {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 500;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 22px;
}

.map-card {
  min-width: 0;
}

.map-card .map-trigger {
  height: 285px;
  padding: 9px;
}

.map-card h3 {
  margin-top: 13px;
  font-size: 1.26rem;
}

.map-card > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-intro {
  align-items: start;
}

#profile {
  background: var(--profile-panel);
}

.profile-block {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 48px;
  padding-block: 48px;
  border-top: 1px solid var(--line-light);
}

.profile-block-heading h3 {
  font-size: 1.55rem;
}

.experience-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-item {
  display: grid;
  grid-template-columns: 150px 58px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 32px;
}

.experience-item + .experience-item {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.experience-item:last-child {
  padding-bottom: 0;
}

.experience-item time,
.education-item time {
  color: var(--muted);
  white-space: nowrap;
}

.organization-logo {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  background: var(--text);
  border: 1px solid var(--line-light);
  border-radius: 50%;
}

.organization-logo img {
  display: block;
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.organization-monogram {
  color: var(--bg);
  font-size: 1rem;
  font-weight: 700;
}

.organization {
  margin: 0 0 4px;
  color: var(--muted);
}

.experience-item h4,
.education-item h4 {
  margin-bottom: 8px;
}

.experience-item > div:last-child > p:last-child,
.education-item p {
  margin: 0;
  max-width: 72ch;
}

.education-block {
  border-bottom: 1px solid var(--line-light);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
}

.education-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
}

.education-item time {
  display: block;
  margin-bottom: 6px;
}

.tool-summary {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 48px;
  padding-top: 38px;
}

.tool-summary p,
.tool-summary h4 {
  margin: 0;
}

.tool-summary-heading h3 {
  font-size: 1.55rem;
}

.tool-groups {
  display: grid;
  gap: 24px;
}

.tool-group {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-light);
}

.tool-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.tool-group h4 {
  color: var(--text);
  font-size: 0.79rem;
  letter-spacing: 0.065em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tool-group p {
  color: var(--muted);
}

.photo-carousel {
  border-top: 1px solid var(--line);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 16px;
}

.carousel-controls > div {
  display: flex;
  gap: 8px;
}

.carousel-status {
  margin: 0;
  color: var(--muted);
}

.carousel-button,
.map-controls button {
  padding: 8px 12px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  cursor: pointer;
}

.carousel-button:hover,
.map-controls button:hover {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.carousel-button:disabled,
.map-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--line-light) transparent;
  scrollbar-width: thin;
}

.photo-slide {
  flex: 0 0 calc((100% - 32px) / 3);
  margin: 0;
  scroll-snap-align: start;
}

.photo-slide img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--line-light);
}

.photo-slide figcaption {
  padding-top: 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-section {
  padding-block: clamp(74px, 8vw, 108px);
  background: var(--bg);
  border-top: 1px solid var(--line);
  scroll-margin-top: 76px;
}

.contact-inner h2 {
  max-width: 25ch;
}

.contact-inner > p:not(.eyebrow) {
  max-width: 55ch;
  margin: 20px 0 0;
  color: var(--muted);
}

.site-footer {
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 18px 18px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 26px;
  font-size: 0.8rem;
}

.footer-inner p {
  margin: 0;
}

.map-dialog {
  width: min(96vw, 1500px);
  max-width: none;
  height: calc(100dvh - 30px);
  max-height: none;
  margin: auto;
  padding: 18px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  overflow: hidden;
}

.map-dialog[open] {
  display: flex;
  flex-direction: column;
}

.map-dialog::backdrop {
  background: rgba(7, 8, 7, 0.88);
}

.map-dialog-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.map-dialog-header h2 {
  max-width: 30ch;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.map-stage {
  position: relative;
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  place-items: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background: #111211;
  border: 1px solid var(--line);
}

.map-stage.is-dragging {
  cursor: grabbing;
}

.map-stage img {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  pointer-events: none;
  transform-origin: center center;
  user-select: none;
}

.map-help {
  flex: 0 0 auto;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 1000px) {
  .primary-nav {
    gap: 14px;
  }

  .primary-nav a {
    font-size: 0.79rem;
  }

  .map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-slide {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: relative;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 9px 0;
    font-size: 0.86rem;
  }

  .hero,
  .split-heading,
  .profile-intro,
  .case-study,
  .profile-block,
  .tool-summary {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
  }

  .split-heading,
  .profile-intro,
  .profile-block,
  .tool-summary {
    gap: 24px;
  }

  .case-study {
    gap: 22px;
  }

  .case-index,
  .case-media,
  .case-copy,
  .case-study-reverse .case-media,
  .case-study-reverse .case-copy {
    order: initial;
  }

  .case-index {
    display: flex;
    gap: 7px;
  }

  .case-index span {
    display: inline;
  }

  .case-index span:first-child::after {
    content: " /";
  }

  .experience-item {
    grid-template-columns: 150px 56px minmax(0, 1fr);
  }

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

@media (max-width: 640px) {
  body {
    padding: 0;
  }

  .site-header {
    top: 0;
    border-inline: 0;
    border-radius: 0;
  }

  main {
    border-inline: 0;
  }

  .site-footer {
    border-inline: 0;
    border-bottom: 0;
    border-radius: 0;
  }

  .wrap {
    width: min(calc(100% - 30px), var(--wrap));
  }

  .wordmark-role {
    display: none;
  }

  .hero {
    min-height: 0;
    padding-block: 48px 58px;
  }

  .hero-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .headshot {
    width: 116px;
    height: 116px;
    flex-basis: 116px;
  }

  .hero-proof {
    display: grid;
    gap: 6px;
  }

  .hero-proof li + li::before {
    margin-right: 9px;
  }

  .hero-action {
    flex: 1 1 140px;
  }

  .capability-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: initial;
    column-gap: 16px;
    row-gap: 10px;
  }

  .project-grid,
  .map-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .project-card:not(:last-child),
  .map-card:not(:last-child) {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line-light);
  }

  .case-media-pair {
    grid-template-columns: 1fr;
  }

  .case-media .map-trigger,
  .case-media-landscape .map-trigger {
    height: 330px;
  }

  .map-card .map-trigger {
    height: 350px;
  }

  .tool-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .experience-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 13px;
  }

  .experience-item time {
    grid-column: 1 / -1;
  }

  .organization-logo {
    width: 50px;
    height: 50px;
  }

  .education-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .photo-slide {
    flex-basis: 86%;
  }

  .photo-slide img {
    height: 420px;
  }

  .carousel-controls,
  .footer-inner,
  .map-dialog-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-dialog {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    padding: 10px;
  }

  .map-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .wordmark {
    font-size: 0.82rem;
  }

  .map-card .map-trigger,
  .case-media .map-trigger,
  .case-media-landscape .map-trigger {
    height: 285px;
  }

  .photo-slide {
    flex-basis: 92%;
  }
}

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