@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fafaf8;
  --surface: #ffffff;
  --ink: #1a1b1a;
  --ink-soft: #3f423f;
  --muted: #555752;
  --stone: #e5e5e1;
  --stone-dark: #d2d3ce;
  --action: #292b29;
  --action-dark: #151615;
  --bordeaux: #762d36;
  --bordeaux-dark: #5b2029;
  --content: 900px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --header-height: 68px;
  --display: "Archivo", sans-serif;
  --body: "Source Sans 3", sans-serif;
  --fs-xs: 13px;
  --fs-sm: 15px;
  --fs-base: 17px;
  --fs-lg: 20px;
  --fs-xl: clamp(24px, 3vw, 30px);
  --fs-2xl: clamp(30px, 4vw, 42px);
  --fs-3xl: clamp(36px, 5vw, 50px);
}

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

html {
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

::selection {
  color: var(--surface);
  background: var(--bordeaux);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--surface);
  background: var(--ink);
  transform: translateY(-160%);
}

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

.section-shell,
.header-inner,
.footer-inner {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--stone-dark);
  background: var(--paper);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-family: var(--display);
  font-size: var(--fs-base);
  font-weight: 670;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.5vw, 30px);
}

.main-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 580;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--bordeaux);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-nav a:hover::after,
.main-nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="location"] {
  color: var(--ink);
  font-weight: 720;
}

.menu-toggle {
  display: none;
  min-width: 72px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 650;
}

.hero {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(44px, 6vw, 64px);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-3xl);
  font-variation-settings: "wdth" 96;
  font-weight: 640;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.role-line {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: var(--fs-xl);
  font-weight: 520;
  letter-spacing: -0.018em;
  line-height: 1.35;
}

.hero-summary {
  max-width: 68ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: var(--fs-lg);
  line-height: 1.55;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  max-width: 72ch;
  margin: 24px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--stone);
  list-style: none;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.proof-strip strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-family: var(--display);
  font-size: var(--fs-sm);
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button-primary {
  border-color: var(--action);
  color: var(--surface);
  background: var(--action);
}

.button-primary:hover {
  border-color: var(--action-dark);
  background: var(--action-dark);
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover {
  color: var(--surface);
  background: var(--ink);
}

.depth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.depth-panel h2 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: var(--fs-base);
  font-weight: 680;
  letter-spacing: -0.01em;
}

.depth-panel p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.depth-control {
  display: flex;
  border: 1px solid var(--stone-dark);
  border-radius: 2px;
}

.depth-button {
  min-height: 44px;
  min-width: 94px;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 650;
}

.depth-button + .depth-button {
  border-left: 1px solid var(--stone-dark);
}

.depth-button.is-active {
  color: var(--surface);
  background: var(--ink);
}

.content-section {
  padding-top: clamp(76px, 9vw, 112px);
  padding-bottom: clamp(76px, 9vw, 112px);
  border-top: 1px solid var(--stone-dark);
}

.section-heading {
  max-width: 72ch;
  margin-bottom: 38px;
}

.section-heading h2,
.personal-section h2,
.education-block > h2,
.site-footer h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 640;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.section-heading h2,
.personal-section h2,
.education-block > h2 {
  font-size: var(--fs-2xl);
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: var(--fs-lg);
}

.project-ledger {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--stone-dark);
}

.project-record {
  border-bottom: 1px solid var(--stone);
}

.project-record:last-child {
  border-bottom: 0;
}

.project-record summary {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto 18px;
  gap: 18px;
  min-height: 78px;
  align-items: center;
  padding: 15px 4px;
  cursor: pointer;
  list-style: none;
}

.record-marker {
  position: relative;
  width: 14px;
  height: 14px;
}

.record-marker::before,
.record-marker::after {
  position: absolute;
  top: 6px;
  left: 1px;
  width: 12px;
  height: 1.5px;
  background: var(--bordeaux);
  content: "";
}

.record-marker::after {
  transform: rotate(90deg);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-record[open] .record-marker::after {
  transform: rotate(0deg);
}

.project-record summary::-webkit-details-marker {
  display: none;
}

.project-record summary::after {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-record[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.project-record[open] summary {
  color: var(--bordeaux-dark);
}

.project-heading {
  display: grid;
  gap: 3px;
}

.project-heading strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--fs-xl);
  font-weight: 650;
  letter-spacing: -0.018em;
}

.project-heading span {
  color: var(--muted);
  font-size: var(--fs-xs);
}

.summary-action {
  color: var(--bordeaux-dark);
  font-size: var(--fs-xs);
  font-weight: 680;
}

.project-body {
  padding: 30px 4px 38px;
  border-top: 1px solid var(--stone);
  animation: reveal-record 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes reveal-record {
  from {
    opacity: 0.7;
    clip-path: inset(0 0 12% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}

.project-abstract {
  max-width: 68ch;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: var(--fs-lg);
}

.project-narrative {
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  padding: 22px 0;
}

.project-narrative p {
  max-width: 72ch;
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.project-narrative p:last-child {
  margin-bottom: 0;
}

.implementation-details {
  margin-top: 26px;
  padding: 22px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--stone);
}

.implementation-details h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: var(--fs-lg);
  font-weight: 670;
}

.implementation-details p {
  max-width: 72ch;
  margin: 0;
  color: var(--ink-soft);
}

body[data-depth="overview"] .evidence-copy {
  display: none;
}

.stack-list {
  margin: 26px 0 0;
  border-top: 1px solid var(--stone);
  font-size: var(--fs-sm);
}

.stack-list > div {
  display: grid;
  grid-template-columns: minmax(140px, 170px) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--stone);
}

.stack-list dt {
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--fs-xs);
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stack-list dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.project-live {
  margin: 0 0 6px;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--bordeaux-dark);
  font-weight: 700;
}

.capability-list,
.experience-list {
  margin: 0;
  border-top: 2px solid var(--ink);
}

.experience-list {
  position: relative;
  padding-left: 30px;
}

.experience-list::before {
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 5px;
  width: 1px;
  background: var(--stone-dark);
  content: "";
}

.capability-list > div {
  padding: 25px 0;
  border-bottom: 1px solid var(--stone);
}

.capability-list dt {
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: var(--fs-lg);
  font-weight: 650;
  letter-spacing: -0.015em;
}

.capability-list dd {
  max-width: 70ch;
  margin: 0;
  color: var(--ink-soft);
}

.experience-item {
  position: relative;
  padding: 28px 0;
  border-bottom: 1px solid var(--stone);
}

.experience-item::before {
  position: absolute;
  top: 36px;
  left: -29px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--bordeaux);
  content: "";
}

.experience-item header {
  margin-bottom: 10px;
}

.experience-item h3,
.education-block h3 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-lg);
  font-weight: 660;
  letter-spacing: -0.015em;
}

.experience-item header p,
.education-block article > p:first-of-type {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.experience-item > p,
.education-block article > p:first-of-type ~ p {
  max-width: 70ch;
  margin: 0;
  color: var(--ink-soft);
}

.experience-item > p + p,
.education-block article > p:first-of-type ~ p {
  margin-top: 14px;
}

.education-block {
  margin-top: 72px;
  padding-top: 46px;
  border-top: 2px solid var(--ink);
}

.education-block article {
  margin-top: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--stone);
}

.education-block ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 20px;
}

.education-block li::marker {
  color: var(--bordeaux);
}

.personal-section {
  padding-top: clamp(72px, 8vw, 100px);
  padding-bottom: clamp(72px, 8vw, 100px);
  border-top: 1px solid var(--stone-dark);
}

.personal-section p {
  max-width: 68ch;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: var(--fs-base);
}

.personal-section p:last-child {
  padding-left: 14px;
  border-left: 1px solid var(--bordeaux);
  color: var(--ink);
}

.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--surface);
}

.footer-inner {
  padding-top: clamp(68px, 8vw, 96px);
  padding-bottom: 42px;
}

.site-footer h2 {
  max-width: 760px;
  font-size: var(--fs-2xl);
}

.site-footer p {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 34px;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 680;
}

.footer-links a:first-child {
  color: var(--bordeaux-dark);
}

@media (max-width: 59.99rem) {
  :root {
    --header-height: 64px;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
    gap: 0;
  }

  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    width: 100%;
    padding: 10px 0 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .main-nav[hidden] {
    display: none;
  }

  .main-nav a {
    min-height: 48px;
    border-bottom: 1px solid var(--stone);
  }

  .main-nav a::after {
    right: auto;
    bottom: 9px;
    width: 34px;
  }

  .hero {
    padding-top: clamp(40px, 8vw, 56px);
  }

  .proof-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .depth-panel {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .depth-control {
    width: fit-content;
  }
}

@media (max-width: 40rem) {
  :root {
    --fs-base: 16px;
    --fs-lg: 18px;
  }

  .hero h1 {
    letter-spacing: -0.03em;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .depth-control {
    width: 100%;
  }

  .depth-button {
    flex: 1;
  }

  .content-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .project-record summary {
    grid-template-columns: 16px minmax(0, 1fr) 16px;
    gap: 12px;
    min-height: 72px;
  }

  .summary-action {
    display: none;
  }

  .project-body {
    padding-top: 24px;
  }

  .project-narrative {
    padding: 18px 0;
  }

  .stack-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .footer-links {
    display: grid;
    gap: 2px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    --paper: #ffffff;
    --surface: #ffffff;
  }

  body {
    color: #000000;
    background: #ffffff;
    font-size: 11pt;
  }

  .site-header,
  .skip-link,
  .depth-panel,
  .hero-actions,
  .footer-links {
    display: none !important;
  }

  .section-shell,
  .footer-inner {
    width: 100%;
    padding-inline: 0;
  }

  .hero,
  .content-section,
  .personal-section,
  .footer-inner {
    padding-top: 24pt;
    padding-bottom: 24pt;
  }

  .project-record {
    break-inside: avoid;
  }

  .project-record:not([open]) > :not(summary) {
    display: block;
  }

  .project-record summary::after {
    display: none;
  }

  .evidence-copy {
    display: block !important;
  }
}
