@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --void: #0e1012;
  --panel: #15171b;
  --raised: #1c1f24;
  --overlay: #23262d;
  --steel: #333943;
  --border: #444d5a;
  --muted: #8b96aa;
  --body: #a0aaba;
  --silver: #bbc2ce;
  --white: #fff;
  --blue: #007afc;
  --blue-deep: #0062ca;
  --radius: 24px;
  --max-width: 1344px;
  --section-gap: 96px;
  font-family: "DM Sans", sans-serif;
  font-feature-settings: "lnum";
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--void);
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--white);
  line-height: 1.14;
}
h1,
h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(40px, 5.1vw, 68px);
}
h2 {
  font-size: clamp(30px, 3.4vw, 44px);
}
h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
p + p {
  margin-top: 16px;
}
a {
  color: var(--white);
  text-decoration: none;
}
a,
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a,
button {
  touch-action: manipulation;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a,
button {
  transition:
    background-color 0.18s,
    color 0.18s,
    border-color 0.18s;
}
a:hover {
  color: var(--silver);
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  color: var(--white);
}
:focus-visible {
  outline: 3px solid var(--silver);
  outline-offset: 5px;
}
::selection {
  background: var(--blue-deep);
  color: white;
}
[hidden] {
  display: none !important;
}
.container {
  width: min(var(--max-width), calc(100% - 96px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 50;
  background: var(--white);
  color: var(--void);
  padding: 12px 24px;
  border-radius: 100px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--void);
}
.nav-wrap {
  width: min(var(--max-width), calc(100% - 96px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--white);
  white-space: nowrap;
}
.brand svg {
  flex-shrink: 0;
}
#site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
#site-nav > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
}
#site-nav > a:hover,
#site-nav > a[aria-current] {
  color: var(--white);
}
#site-nav > a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  min-height: 48px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.button-primary {
  background: var(--blue);
  color: white;
  font-weight: 700;
  font-size: 19px;
}
.button-primary:hover {
  background: var(--blue-deep);
  color: white;
}
.button-outline {
  border-color: var(--silver);
  color: white;
}
.button-outline:hover {
  background: var(--raised);
  border-color: white;
  color: white;
}
#site-nav > .nav-contact {
  margin-left: 12px;
  color: white;
  min-height: 42px;
  padding: 10px 20px;
  font-size: 14px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}
.hero {
  text-align: center;
  padding-top: 64px;
}
.hero > .eyebrow {
  margin-bottom: 24px;
}
.hero-copy {
  font-size: 18px;
  line-height: 1.6;
  margin: 24px auto 28px;
}
.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-map {
  display: block;
  position: relative;
  height: 450px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 52px;
  text-align: left;
  background: #000;
  isolation: isolate;
}
.hero-map > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
  opacity: 0.88;
  transition: transform 0.7s;
}
.hero-map:hover > img {
  transform: scale(1.025);
}
.hero-map:after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -180px 160px -70px var(--void);
  pointer-events: none;
  z-index: 1;
}
.map-top,
.map-caption {
  position: absolute;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.map-top {
  top: 24px;
}
.map-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--silver);
  background: var(--void);
  border-radius: 4px;
  padding: 7px 10px;
}
.map-north {
  font-size: 14px;
  color: white;
}
.map-caption {
  bottom: 32px;
  gap: 20px;
}
.map-caption .eyebrow {
  font-size: 10px;
  margin-bottom: 8px;
  color: var(--silver);
}
.map-caption h2 {
  font-size: 28px;
}
.map-caption p {
  font-size: 12px;
  margin-top: 10px;
  color: var(--silver);
}
.round-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 24px;
  flex-shrink: 0;
}
.expertise-rail {
  text-align: center;
  padding: 36px 0 0;
}
.expertise-rail .eyebrow {
  font-size: 10px;
  margin-bottom: 24px;
}
.expertise-rail > div {
  display: flex;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 18px;
  font-weight: 500;
  color: var(--silver);
}
.section {
  margin-top: var(--section-gap);
}
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 96px;
}
.about-portrait {
  max-width: 370px;
  margin: auto;
}
.about-portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  filter: grayscale(1);
}
.about-portrait .eyebrow {
  display: block;
  margin: 20px 0 0;
  font-size: 10px;
  text-align: center;
}
.about h2 {
  margin-bottom: 24px;
}
.about .text-link {
  margin-top: 24px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  min-height: 44px;
}
.text-link:hover {
  color: var(--silver);
}
.text-link span {
  color: var(--blue);
  font-size: 22px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.section-heading > p {
  font-size: 16px;
  padding-bottom: 4px;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.project-card {
  border-radius: 24px;
  background: var(--panel);
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.project-number {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}
.project-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}
.project-body h3 {
  font-size: 32px;
  margin: 0 0 16px;
}
.project-body p {
  max-width: 490px;
  margin-bottom: 20px;
}
.project-body > .text-link {
  margin-top: auto;
  padding-top: 16px;
}
.badge {
  display: inline-block;
  background: var(--blue-deep);
  color: white;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.project-body > .badge {
  margin-bottom: 12px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  font-size: 12px;
  background: var(--raised);
  border-radius: 12px;
  padding: 5px 10px;
  color: var(--silver);
}
.project-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.project-stat strong {
  font-size: 34px;
  letter-spacing: -0.03em;
  color: white;
  white-space: nowrap;
}
.project-stat span {
  font-size: 12px;
  max-width: 150px;
}
.experience {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
}
.experience-heading {
  align-self: start;
  position: sticky;
  top: 120px;
}
.experience-heading > p:not(.eyebrow) {
  margin: 24px 0;
}
.timeline {
  padding: 0;
  margin: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  padding: 0 0 40px 28px;
  border-left: 1px solid var(--steel);
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--silver);
  box-shadow: 0 0 0 6px var(--void);
}
.job-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.09em;
  margin-bottom: 14px;
  color: var(--muted);
}
.timeline h3 {
  font-size: 22px;
}
.job-role {
  font-size: 14px;
  color: var(--silver);
  margin: 8px 0 12px;
}
.timeline p:last-child {
  font-size: 15px;
  line-height: 1.7;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-group {
  background: var(--panel);
  border-radius: 24px;
  padding: 28px;
}
.skill-icon {
  display: block;
  font-size: 30px;
  color: var(--silver);
  margin-bottom: 24px;
}
.skill-group h3 {
  font-size: 18px;
  margin-bottom: 24px;
}
.skill-group p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-top: 14px;
}
.skill-group p span {
  font-size: 11px;
  color: var(--muted);
}
.skill-group .text-link {
  margin-top: 16px;
  font-size: 13px;
}
.contact {
  background: var(--panel);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact h2 {
  font-size: 38px;
  margin-bottom: 24px;
}
.contact > div > p:not(.eyebrow) {
  max-width: 390px;
}
.contact-email {
  display: inline-block;
  margin-top: 28px;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.social-links {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  font-size: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  color: var(--silver);
  font-size: 12px;
  margin-bottom: 8px;
}
input,
textarea {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--void);
  color: white;
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  min-height: 46px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
input:focus,
textarea:focus {
  border-color: var(--silver);
}
textarea {
  resize: vertical;
  min-height: 130px;
}
.form-row + label {
  margin-top: 20px;
}
.form-note {
  font-size: 11px;
  margin: 12px 0 20px;
}
.form-status {
  font-size: 13px;
  margin-top: 16px;
}
.form-status:empty {
  display: none;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 64px;
  font-size: 12px;
}
.site-footer > p {
  margin: 0;
}
.site-footer p span {
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.page-heading {
  padding: 64px 0 48px;
  max-width: 850px;
}
.page-heading > p:last-child {
  font-size: 18px;
  margin-top: 24px;
  max-width: 650px;
}
.page-heading h1 {
  font-size: clamp(40px, 5vw, 64px);
}
.page-heading .actions {
  justify-content: flex-start;
  margin-top: 28px;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.map-card {
  background: var(--panel);
  border-radius: 24px;
  overflow: hidden;
  scroll-margin-top: 100px;
}
.map-preview {
  display: block;
  position: relative;
  background: #000;
}
.map-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  transition: opacity 0.2s;
}
.map-preview:hover img {
  opacity: 0.8;
}
.map-preview .round-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--void);
}
.map-details {
  padding: 28px;
}
.map-details h2 {
  font-size: 28px;
  margin: 16px 0;
}
.map-details > p {
  font-size: 14px;
}
.map-details details {
  font-size: 14px;
  margin-top: 20px;
}
.map-details summary {
  color: var(--silver);
  cursor: pointer;
  padding: 8px 0;
}
.map-details details p {
  margin-top: 12px;
}
.gallery-note {
  margin-top: 28px;
  font-size: 13px;
}
.image-dialog {
  width: min(1320px, 94vw);
  max-height: 92dvh;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  color: var(--body);
  overscroll-behavior: contain;
}
.image-dialog::backdrop {
  background: rgb(0 0 0 / 0.88);
}
.dialog-head {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-head h2 {
  font-size: 24px;
}
.dialog-close {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 44px;
  min-height: 44px;
  font-size: 24px;
}
.image-dialog > img {
  max-height: 70dvh;
  width: 100%;
  object-fit: contain;
}
.image-dialog > .text-link {
  margin-top: 12px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.code-card {
  background: var(--panel);
  padding: 32px;
  border-radius: 24px;
}
.code-card > h2 {
  font-size: 28px;
  margin: 24px 0 16px;
}
.code-card > p {
  margin-bottom: 24px;
}
.code-card .availability {
  font-size: 12px;
  margin-top: 24px;
  color: var(--silver);
}
.note-panel {
  margin-top: 40px;
  background: var(--panel);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.note-panel h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.note-panel p {
  max-width: 620px;
}
.post-list {
  max-width: 950px;
}
.post-card {
  background: var(--panel);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 24px;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.post-card h2 {
  font-size: 32px;
  margin-bottom: 16px;
}
.post-card > .text-link {
  margin-top: 24px;
}
.post {
  max-width: 820px;
  margin: auto;
  padding-top: 64px;
}
.post h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 24px 0;
}
.post-content {
  margin: 40px 0 48px;
  font-size: 18px;
  line-height: 1.8;
}
.post-content h2 {
  font-size: 28px;
  margin: 40px 0 16px;
}
.post-content h3 {
  font-size: 22px;
  margin: 32px 0 16px;
}
.post-content a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.post-content pre {
  padding: 24px;
  background: var(--panel);
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
}
.post-content code {
  font-family: ui-monospace, monospace;
  color: var(--silver);
}
.post-content img {
  border-radius: 12px;
}
.post-content iframe {
  width: 100%;
  min-height: 400px;
  border: 0;
}
.post-content blockquote {
  margin-left: 0;
  border-left: 2px solid var(--border);
  padding-left: 24px;
}
.post-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.post-content td,
.post-content th {
  padding: 8px 16px;
}
.highlight .k,
.highlight .kn,
.highlight .s,
.highlight .s1,
.highlight .s2 {
  color: #9dc8ff;
}
.highlight .c,
.highlight .c1 {
  color: var(--muted);
}
@media (min-width: 1600px) {
  .hero {
    padding-top: 80px;
  }
  .hero-map {
    height: 480px;
  }
}
@media (max-width: 1000px) {
  .container,
  .nav-wrap {
    width: calc(100% - 48px);
  }
  #site-nav {
    gap: 24px;
  }
  .about {
    gap: 48px;
  }
  .experience {
    gap: 40px;
  }
  .contact {
    padding: 32px;
    gap: 32px;
  }
  .contact h2 {
    font-size: 32px;
  }
  .skills-grid {
    gap: 16px;
  }
  .skill-group {
    padding: 24px;
  }
  .skill-group p {
    flex-wrap: wrap;
  }
  .hero-map {
    height: 410px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-row > div + div {
    margin-top: 4px;
  }
}
@media (max-width: 720px) {
  :root {
    --section-gap: 64px;
  }
  .container,
  .nav-wrap {
    width: calc(100% - 40px);
  }
  .nav-wrap {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 0;
  }
  .brand {
    font-size: 21px;
  }
  .brand svg {
    width: 28px;
    height: 28px;
  }
  #site-nav {
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
    padding: 16px 0 24px;
  }
  #site-nav > .nav-contact {
    margin-left: 0;
  }
  html.js #site-nav {
    display: none;
  }
  html.js #site-nav.is-open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    padding-top: 44px;
  }
  .hero > .eyebrow {
    font-size: 9px;
    letter-spacing: 0.12em;
    max-width: 310px;
    margin: 0 auto 24px;
  }
  .hero-copy {
    font-size: 16px;
    margin-top: 20px;
  }
  .desktop-break {
    display: none;
  }
  .button {
    gap: 14px;
    padding: 12px 20px;
  }
  .button-primary {
    font-size: 19px;
  }
  .hero-map {
    margin-top: 36px;
    height: 350px;
  }
  .hero-map > img {
    object-position: 50% 48%;
    transform: scale(1.45);
  }
  .hero-map:hover > img {
    transform: scale(1.47);
  }
  .map-top,
  .map-caption {
    left: 20px;
    right: 20px;
  }
  .map-caption {
    bottom: 24px;
    align-items: flex-end;
  }
  .map-caption h2 {
    font-size: 23px;
    max-width: 240px;
  }
  .map-caption p {
    font-size: 10px;
    max-width: 230px;
  }
  .map-label {
    font-size: 8px;
  }
  .round-arrow {
    width: 40px;
    height: 40px;
  }
  .expertise-rail > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 13px;
    gap: 20px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-portrait {
    width: 240px;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: 20px;
    font-size: 15px;
  }
  .section-heading > p br {
    display: none;
  }
  .project-grid,
  .experience,
  .skills-grid,
  .contact,
  .gallery,
  .code-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 28px;
    min-height: 280px;
  }
  .experience {
    gap: 32px;
  }
  .experience-heading {
    position: static;
  }
  .timeline li {
    padding-left: 24px;
  }
  .skill-group p {
    font-size: 14px;
    flex-wrap: nowrap;
  }
  .contact {
    padding: 28px 24px;
    gap: 36px;
  }
  .contact h2 {
    font-size: 30px;
  }
  .contact-email {
    font-size: 14px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-block: 40px;
  }
  .footer-links {
    gap: 28px;
  }
  .page-heading {
    padding-top: 44px;
  }
  .page-heading > p:last-child {
    font-size: 16px;
  }
  .map-details {
    padding: 24px;
  }
  .map-details h2 {
    font-size: 24px;
  }
  .note-panel {
    display: block;
    padding: 28px;
  }
  .note-panel > .button {
    margin-top: 24px;
  }
  .post-card {
    padding: 28px;
  }
  .post-card h2 {
    font-size: 27px;
  }
  .post {
    padding-top: 40px;
  }
  .post-content {
    font-size: 16px;
  }
  .image-dialog {
    padding: 16px;
  }
  .dialog-head h2 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 720px) {
  .brand,
  .scroll-cue,
  .technology-area li > a,
  .technology-source a,
  .contact-email,
  .social-links a,
  .footer-links a,
  .project-index a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
  }
  main summary {
    min-height: 44px;
  }
}
