@font-face {
  font-family: Inter;
  src: url("/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  --page: #f5f5f3;
  --surface: #fff;
  --soft: #f5f5f3;
  --ink: #1c1f1c;
  --muted: #454b43;
  --shadow: 0 8px 32px #22282006, 0 1px 3px #22282005;
  --accent: #596943;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #171817;
  --surface: #222422;
  --soft: #2a2d29;
  --ink: #eeefeb;
  --muted: #c3c8bf;
  --accent: #b6c99a;
  --shadow: 0 8px 32px #0002;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}
body {
  display: flow-root;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
}
a,
button,
summary {
  transition:
    background 0.25s,
    color 0.25s,
    box-shadow 0.25s,
    transform 0.35s var(--ease);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
a:hover {
  color: var(--accent);
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
img {
  max-width: 100%;
  object-fit: contain;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h2 {
  font-size: 25px;
  line-height: 1.3;
  font-weight: 580;
  letter-spacing: -1px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.3px;
}
.skip {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  background: var(--surface);
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}

main {
  min-width: 0;
}

.biography p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.biography a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #9996;
}
.intro-link {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  margin-top: 26px;
  font-size: 12px;
  font-weight: 550;
}
.intro-link span {
  font-size: 20px;
}
.intro-link:hover span {
  transform: translate(3px, 3px);
}

.section {
  scroll-margin-top: 30px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.section-heading > span,
.subtle-link {
  font-size: 11px;
  color: var(--muted);
}
.experience-section {
  --ink: #202427;
  --muted: #4d5256;
  --accent: #353b40;
  --experience-sheet: #f3f4f4;
  --experience-logo-surface: #e9ebea;
  --experience-shadow: 0 5px 16px #2024270b;
  margin-bottom: 64px;
}
:root[data-theme="dark"] .experience-section {
  --ink: #f1f3f4;
  --muted: #c1c6c9;
  --accent: #d5dadd;
  --experience-sheet: #2c3033;
  --experience-logo-surface: #25292b;
  --experience-shadow: 0 5px 16px #00000020;
}
/* Each editorial role row shares an identity column and a work column. */
.experience-rows {
  display: grid;
  gap: 18px;
  --role-logo: 48px;
}
.experience-card {
  --role-accent: #68706d;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 32fr) minmax(0, 68fr);
  align-items: start;
  gap: 32px;
  padding: 26px 24px;
  margin: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 40px;
  isolation: isolate;
}
.experience-card + .experience-card {
  border-top: 1px solid #d8dade;
}
:root[data-theme="dark"] .experience-card + .experience-card {
  border-color: #454b51;
}
.experience-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  transform: none;
  transition:
    background-color 220ms var(--ease),
    box-shadow 220ms var(--ease),
    transform 220ms var(--ease);
}
.experience-card.is-reading::after {
  background: var(--experience-sheet);
  box-shadow: var(--experience-shadow);
  transform: translateY(-1px);
}
.experience-identity,
.experience-work {
  min-width: 0;
}
.experience-head {
  display: grid;
  grid-template-columns: var(--role-logo) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.experience-card .company-icon {
  width: var(--role-logo);
  height: var(--role-logo);
  border-radius: 10px;
  background: var(--experience-logo-surface);
}
.experience-card.brand-zyp {
  --role-accent: #168f83;
}
.experience-card.brand-next {
  --role-accent: #16865f;
}
.experience-title {
  display: block;
}
.experience-title h3 {
  font-size: 17px;
}
.experience-title p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.65;
}
.experience-card .period {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.experience-highlights {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.65;
}
.experience-highlights li {
  position: relative;
  padding-left: 18px;
}
.experience-highlights li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 7px;
  height: 1px;
  background: var(--role-accent);
}
.experience-tools {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.experience-card details {
  margin: 12px 0 0;
  max-width: 72ch;
}
.experience-card .experience-title h3,
.experience-card .experience-title p,
.experience-card .period,
.experience-card .experience-highlights {
  color: var(--muted);
  transition: color 220ms var(--ease);
}
.experience-card.is-reading .experience-title h3,
.experience-card.is-reading .experience-title p,
.experience-card.is-reading .period,
.experience-card.is-reading .experience-highlights {
  color: var(--ink);
}
@media (max-width: 1320px) {
  .experience-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .experience-work {
    margin-left: calc(var(--role-logo) + 14px);
  }
}
@media (max-width: 600px) {
  .experience-rows {
    --role-logo: 32px;
    gap: 14px;
  }
  .experience-card {
    padding: 20px 16px;
  }
  .experience-head {
    gap: 12px;
  }
  .experience-work {
    margin-left: 0;
  }
  .experience-card .company-icon img {
    max-width: 24px;
    max-height: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .experience-card.is-reading::after {
    transform: none;
  }
}

.company-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  flex-shrink: 0;
}
.company-icon img {
  width: 27px;
  height: 27px;
}
.brand-osu .company-icon img {
  width: 23px;
}
details {
  margin-left: 56px;
  overflow: visible;
}
summary {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  cursor: pointer;
  font-size: 11px;
  font-weight: 550;
  padding: 4px 0;
}
summary::-webkit-details-marker {
  display: none;
}
summary i {
  width: 6px;
  height: 6px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.25s;
}
details[open] summary i {
  transform: rotate(225deg);
  margin-top: 3px;
}
.contribution-body {
  padding: 18px 0 3px;
}
.contribution-list {
  display: grid;
  gap: 16px;
}
.contribution h4 {
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 4px;
}
.contribution p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
#projects {
  margin-bottom: 65px;
}

#viewer-error {
  padding: 35px 20px;
  font-size: 14px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: var(--surface);
  border-radius: 18px;
  padding: 27px;
  margin-top: 55px;
  box-shadow: var(--shadow);
}
footer h2 {
  font-size: 20px;
}
.contact-button {
  font-size: 12px;
}
.endnote {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding: 26px 0 0;
}
dialog {
  border: 0;
  padding: 0;
  border-radius: 18px;
  max-width: 1000px;
  width: calc(100% - 40px);
  max-height: 90dvh;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 100px #0003;
}
dialog::backdrop {
  background: #161b1966;
  backdrop-filter: blur(6px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.viewer-header,
.viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  gap: 20px;
}
.viewer-header h2 {
  font-size: 18px;
}
.viewer-close {
  background: var(--soft);
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 12px;
}
.viewer-stage {
  background: var(--soft);
  display: grid;
  place-items: center;
  padding: 10px;
}
.viewer-stage img {
  max-height: 65dvh;
  object-fit: contain;
}
.viewer-footer {
  font-size: 11px;
  color: var(--muted);
}
.viewer-footer > div {
  display: flex;
  gap: 18px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1099px) {
  .section-heading > span {
    display: none;
  }

  footer {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 24px;
  }

  .overline {
    font-size: 11px;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
  }

  .biography p {
    font-size: 12px;
  }

  .intro-link {
    margin-top: 20px;
  }
  .section-heading {
    margin-bottom: 18px;
  }
  h2 {
    font-size: 23px;
  }
  .experience-section,
  #projects {
    margin-bottom: 44px;
  }

  .viewer-footer {
    flex-direction: column;
    align-items: start;
  }
  .viewer-header {
    padding: 14px;
  }
  footer {
    padding: 24px;
    margin-top: 36px;
  }
  .contact-button {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* A single editorial surface: the profile and story share one grid. */
.shell {
  width: 90vw;
  max-width: 1720px;
  margin: 32px auto;
  padding: 36px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  --profile-gap: 48px;
  gap: var(--profile-gap);
  background: var(--surface);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.sidebar {
  position: sticky;
  top: 40px;
  align-self: start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.identity {
  position: relative;
  padding-inline-end: 52px;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 13px;
  align-items: center;
}
.avatar {
  width: 56px;
  height: 62px;
  object-fit: cover;
  border-radius: 15px;
  grid-row: 1 / 3;
}
.identity h2 {
  font-size: 18px;
  letter-spacing: -0.7px;
  line-height: 1.2;
  align-self: end;
}
.identity p {
  font-size: 11px;
  color: var(--muted);
  align-self: start;
  margin-top: 5px;
}
.profile-facts {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.profile-facts span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-facts svg {
  width: 14px;
  height: 14px;
}
.socials {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}
.socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 9px;
}
.socials svg {
  width: 15px;
  height: 15px;
}
#theme {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
#theme svg {
  width: 18px;
  height: 18px;
}
#theme:hover {
  background: var(--soft);
  color: var(--ink);
}
#theme .theme-sun {
  display: none;
}
:root[data-theme="dark"] #theme .theme-sun {
  display: block;
}
:root[data-theme="dark"] #theme .theme-moon {
  display: none;
}

.section-nav {
  display: grid;
  position: relative;
  margin: 34px 0 0;
}
.section-nav a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px 0 29px;
  font-size: 12px;
  color: var(--muted);
  position: relative;
  border-radius: 8px;
}
.section-nav a::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--muted);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.section-nav a.active {
  color: var(--ink);
  font-weight: 600;
  background: transparent;
}
.section-nav a.active::before {
  background: var(--accent);
  box-shadow: none;
}
.section-nav a.is-past::before {
  background: var(--accent);
  box-shadow: none;
}
.route-track {
  position: absolute;
  width: 1px;
  left: 7px;
  top: 22px;
  bottom: 22px;
  background: var(--soft);
  pointer-events: none;
}
.route-track i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleY(var(--route-progress, 0));
  transform-origin: top;
}

.overview {
  padding: 0 0 58px;
}
h1 {
  font-size: clamp(31px, 3.25vw, 44px);
  letter-spacing: -1.8px;
  line-height: 1.16;
  font-weight: 560;
}
h1 span {
  color: var(--muted);
}
.biography {
  max-width: 560px;
  margin-top: 25px;
}
.experience-section,
#projects {
  margin-bottom: 64px;
}

.contribution p {
  font-size: 13px;
}

footer {
  background: var(--soft);
  box-shadow: none;
  border-radius: 14px;
  scroll-margin-top: 40px;
}
@media (max-width: 1279px) {
  .shell {
    margin: 24px auto;
    width: calc(100% - 48px);
    padding: 32px;
    grid-template-columns: 220px minmax(0, 1fr);
    --profile-gap: 34px;
    gap: var(--profile-gap);
  }
  .sidebar {
    top: 32px;
  }
}
@media (min-width: 801px) and (max-height: 640px) {
  .sidebar {
    position: static;
  }
}
@media (max-width: 1000px) and (min-width: 801px) {
  .shell {
    padding: 28px;
    grid-template-columns: 200px minmax(0, 1fr);
    --profile-gap: 28px;
    gap: var(--profile-gap);
  }
  .identity {
    grid-template-columns: 48px 1fr;
    gap: 10px;
  }
  .avatar {
    width: 48px;
    height: 55px;
  }
  .identity h2 {
    font-size: 17px;
  }
  .section-heading > span {
    display: none;
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
    margin: 16px auto;
    width: calc(100% - 32px);
    max-width: 640px;
    padding: 25px;
    border-radius: 20px;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 14px;
    margin-bottom: 38px;
  }
  .identity {
    grid-column: 1;
  }
  .identity h2 {
    font-size: 19px;
  }
  .identity p {
    font-size: 11px;
  }
  .profile-facts {
    margin-top: 14px;
    font-size: 11px;
    grid-column: 1;
    padding: 0;
  }
  .socials {
    grid-column: 2;
    grid-row: 1;
    position: static;
    align-self: center;
    margin: 0;
  }
  .section-nav {
    grid-column: 1 / -1;
    display: flex;
    margin-top: 22px;
    justify-content: space-between;
    gap: 3px;
  }
  .section-nav a {
    padding: 0 7px;
    height: 40px;
    font-size: 11px;
  }
  .section-nav a::before,
  .route-track {
    display: none;
  }
  .overview {
    padding-bottom: 44px;
  }
  h1 {
    font-size: clamp(28px, 5.5vw, 38px);
    letter-spacing: -1.3px;
  }
  .biography {
    margin-top: 20px;
  }

  .experience-section,
  #projects {
    margin-bottom: 44px;
  }
}
@media (max-width: 460px) {
  .shell {
    margin: 10px;
    width: calc(100% - 20px);
    padding: 20px 16px;
  }
  .identity {
    grid-template-columns: 46px 1fr;
    gap: 10px;
  }
  .avatar {
    width: 46px;
    height: 52px;
    border-radius: 12px;
  }
  .identity h2 {
    font-size: 16px;
  }
  .identity p {
    font-size: 11px;
  }
  .socials {
    gap: 5px;
  }
  .socials a {
    width: 28px;
    height: 30px;
  }
  .section-nav a {
    font-size: 11px;
    padding: 0 5px;
  }
  .profile-facts {
    font-size: 11px;
  }
  h1 {
    font-size: 29px;
  }
}
/* Project evidence reads as a list; only its preview needs a surface. */

footer {
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-top: 48px;
}

/* Reading hierarchy uses contrast and measure, not faded text. */
.biography p {
  font-size: 14px;
  line-height: 1.8;
}
.section-nav a {
  font-size: 13px;
}

.endnote {
  font-size: 11px;
}
@media (max-width: 800px) {
  .section-nav a {
    font-size: 12px;
  }
}
@media (max-width: 460px) {
  .section-nav {
    gap: 0;
  }
  .section-nav a {
    font-size: 11px;
    padding: 0 3px;
  }
}
/* Final interaction and type alignment pass. */
h1 {
  letter-spacing: -0.03em;
  text-wrap: balance;
}
html {
  scrollbar-color: var(--muted) var(--page);
}
::selection {
  background: var(--ink);
  color: var(--surface);
}
.action-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: -0.15em;
}
.intro-link .action-icon {
  width: 20px;
  height: 20px;
}
.socials a {
  width: 44px;
  height: 44px;
  background: transparent;
}
.socials a:hover {
  background: var(--soft);
}
summary,
.viewer-close,
.viewer-footer a {
  min-height: 44px;
}
summary {
  align-items: center;
}
.viewer-close,
.viewer-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 800px) {
  .sidebar {
    row-gap: 0;
  }
  .identity {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .profile-facts {
    grid-row: 2;
    align-self: center;
  }
  .socials {
    grid-column: 2;
    grid-row: 2;
    margin-top: 14px;
  }
  .section-nav {
    grid-row: 3;
  }
  .section-nav a {
    height: 44px;
    min-width: 44px;
  }
}
@media (max-width: 460px) {
  .section-nav a {
    padding-inline: 2px;
  }
}
/* Education is a biographical ledger, with rules only between records. */
.education-ledger {
  margin: 0;
}
.ledger-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
}
.ledger-row:first-child {
  padding-top: 0;
}
.ledger-row:last-child {
  padding-bottom: 0;
}
.ledger-row + .ledger-row {
  border-top: 1px solid #dedfda;
}
:root[data-theme="dark"] .ledger-row + .ledger-row {
  border-color: #454b43;
}
.ledger-row dt {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  padding-top: 2px;
}
.ledger-row dd {
  margin: 0;
  min-width: 0;
}
.ledger-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 7px;
}
.ledger-head h3 {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.ledger-row p {
  font-size: 13px;
  line-height: 1.75;
}
.ledger-head .ledger-date {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ledger-date span {
  display: block;
  text-align: right;
}
.ledger-row .ledger-note {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  max-width: 66ch;
}
.ledger-head a {
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 4px;
}
@media (max-width: 1100px) {
  .ledger-head {
    display: block;
  }
  .ledger-head .ledger-date {
    margin-top: 5px;
  }
  .ledger-date span {
    display: inline;
  }
}
@media (max-width: 600px) {
  .ledger-row {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 12px;
    padding-block: 22px;
  }
}

.contribution p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 66ch;
}
/* Contact finishes the navigation; theme lives with the profile icons. */
.sidebar-bottom {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding-left: 29px;
}
.section-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sidebar-contact {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 0;
}
.sidebar-contact:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-stage {
  margin-left: 7px;
  color: var(--muted);
  font-size: 10px;
}
.nav-stage::before {
  content: "·";
  margin-right: 6px;
}
#about {
  margin-bottom: 44px;
}
.personal-about {
  margin: 0;
}
.about-copy {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.85;
  margin: 22px 0 0;
}
.about-copy p + p {
  margin-top: 18px;
}
/* Disclosure focus must not be clipped by its parent. */
details {
  overflow: visible;
}
@media (max-width: 1000px) {
  .nav-stage {
    display: none;
  }
}
@media (max-width: 800px) {
  .sidebar-bottom {
    grid-column: 1 / -1;
    grid-row: 4;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding-left: 2px;
  }
  .about-copy {
    font-size: 14px;
    line-height: 1.8;
  }
}
@media (max-width: 360px) {
  .sidebar-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .sidebar-contact {
    justify-content: start;
  }
}

@media (max-width: 800px) {
  .socials {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 8px;
  }
  .section-nav {
    grid-row: 4;
    margin-top: 16px;
  }
  .sidebar-bottom {
    grid-row: 5;
    margin-top: 8px;
  }
}

/* Public GitHub history is the concluding evidence block inside Projects. */
.github-activity {
  --activity-ink: #f1f4f5;
  --activity-muted: #c1c8cb;
  --activity-0: #424b50;
  --activity-1: #748e9b;
  --activity-2: #a4bac4;
  --activity-3: #cfdee5;
  --activity-4: #ffffff;
  margin-top: 36px;
  padding: 22px 24px 18px;
  min-width: 0;
  border-radius: 14px;
  background: #252b2f;
  color: var(--activity-ink);
  color-scheme: dark;
}
:root[data-theme="dark"] .github-activity {
  background: #2b3237;
}
.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.activity-header h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.activity-header a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 12px;
  color: var(--activity-ink);
}
.activity-header a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.github-activity :focus-visible {
  outline: 2px solid #e2edf2;
  outline-offset: 3px;
}
.github-activity ::selection {
  background: #e2edf2;
  color: #252b2f;
}
.activity-summary {
  font-size: 13px;
  margin: 6px 0 20px;
  color: var(--activity-ink);
  font-variant-numeric: tabular-nums;
}
.activity-summary span {
  color: var(--activity-muted);
}
.activity-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 14px;
  scrollbar-color: #879ba5 #252b2f;
}
.activity-calendar {
  width: max-content;
  --activity-cell: 10px;
  --activity-gap: 3px;
}
.activity-months {
  display: grid;
  grid-template-columns: repeat(var(--week-count), var(--activity-cell));
  column-gap: var(--activity-gap);
  height: 22px;
  margin-left: 30px;
  font-size: 10px;
  color: var(--activity-muted);
}
.activity-body {
  display: grid;
  grid-template-columns: 22px auto;
  gap: 8px;
}
.activity-weekdays {
  display: grid;
  grid-template-rows: repeat(7, var(--activity-cell));
  gap: var(--activity-gap);
  font-size: 9px;
  line-height: 10px;
  color: var(--activity-muted);
}
.activity-weeks {
  display: grid;
  grid-template-columns: repeat(var(--week-count), var(--activity-cell));
  gap: var(--activity-gap);
}
.activity-week {
  display: grid;
  grid-template-rows: repeat(7, var(--activity-cell));
  gap: var(--activity-gap);
  border-radius: 2px;
  transition: transform 160ms ease-out;
}
.activity-week:hover,
.activity-week:focus-visible {
  transform: translateY(-2px);
  outline: 1px solid #e2edf2;
  outline-offset: 2px;
}
.activity-cell,
.activity-legend i {
  display: block;
  width: var(--activity-cell, 10px);
  height: var(--activity-cell, 10px);
  border-radius: 2px;
  background: var(--activity-0);
}
.github-activity [data-level="1"] {
  background: var(--activity-1);
}
.github-activity [data-level="2"] {
  background: var(--activity-2);
}
.github-activity [data-level="3"] {
  background: var(--activity-3);
}
.github-activity [data-level="4"] {
  background: var(--activity-4);
}
.activity-cell.is-outside {
  visibility: hidden;
}
.activity-reveal .activity-cell:not([data-level="0"]):not(.is-outside) {
  animation: activity-record 180ms ease-out both;
  animation-delay: calc(var(--day-order) * 1.8ms);
}
@keyframes activity-record {
  from {
    clip-path: inset(100% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
.activity-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}
#activity-detail {
  font-size: 11px;
  color: var(--activity-ink);
  height: 5em;
  max-width: 52ch;
  font-variant-numeric: tabular-nums;
}
.activity-career-detail {
  color: var(--activity-muted);
  font-size: 10px;
  margin-top: 3px;
}
.activity-legend {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 10px;
  color: var(--activity-muted);
  flex-shrink: 0;
}
.activity-legend span:first-child {
  margin-right: 4px;
}
.activity-legend span:last-child {
  margin-left: 4px;
}
.activity-note {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--activity-muted);
}
.activity-scroll-hint {
  display: none;
}
.activity-unavailable {
  min-height: 180px;
}
.activity-chapters {
  display: grid;
  grid-template-columns: repeat(var(--week-count), var(--activity-cell));
  column-gap: var(--activity-gap);
  margin: 4px 0 -8px 30px;
}
.activity-chapter {
  justify-self: start;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 450;
  color: var(--activity-muted);
  background: transparent;
  padding: 7px 0;
  min-height: 32px;
  text-underline-offset: 4px;
}
.activity-chapter:hover,
.activity-chapter:focus-visible {
  color: var(--activity-ink);
  text-decoration: underline;
}
.activity-cell {
  transition: opacity 150ms ease-out;
}
.activity-cell.is-outside-chapter {
  opacity: 0.72;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1100px) {
  .activity-chapters {
    display: none;
  }
  .activity-scroll-hint {
    display: inline;
  }
}
@media (max-width: 800px) {
  .github-activity {
    padding: 18px 18px 16px;
  }
}
@media (max-width: 600px) {
  .section-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 8px;
  }
  .activity-header {
    align-items: start;
  }
  .activity-header h3 {
    padding-top: 10px;
  }
  .activity-header a {
    font-size: 11px;
  }
  .activity-summary span {
    display: block;
    margin-top: 4px;
  }
  .activity-footer {
    display: block;
  }
  #activity-detail {
    height: 7.5em;
  }
  .activity-legend {
    justify-content: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  .activity-week:hover,
  .activity-week:focus-visible {
    transform: none;
  }
  .activity-cell,
  .activity-week {
    transition: none;
  }
  .activity-reveal .activity-cell {
    animation: none !important;
  }
}

/* Footer actions belong to the profile edge, independently of route labels. */
@media (min-width: 801px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - 116px);
  }
  .sidebar-bottom {
    margin-top: auto;
    padding-top: 24px;
  }
}
.sidebar-bottom {
  padding-left: 0;
  gap: 0;
}
.sidebar-contact,
.sidebar-resume {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 4px 0;
}
.sidebar-resume {
  font-size: 11px;
  font-weight: 450;
  color: var(--muted);
}
.sidebar-resume:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (min-width: 801px) and (max-height: 740px) {
  .sidebar {
    position: static;
    min-height: 0;
  }
  .sidebar-bottom {
    margin-top: 0;
    padding-top: 24px;
  }
}
@media (max-width: 800px) {
  .sidebar-bottom {
    margin-top: 12px;
    padding: 0;
  }
}
.role-contributions {
  display: grid;
  gap: 18px;
}
.role-contributions > h4 {
  font-size: 13px;
  font-weight: 650;
  margin: 8px 0 0;
}
.role-contributions + .role-contributions {
  margin-top: 8px;
}
.contribution h5 {
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  margin: 0 0 5px;
  color: var(--ink);
}
/* Shared ProjectCard: all seven rows use the same grid contract. */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}
.project-card {
  container-type: inline-size;
  display: grid;
  grid-template-rows: 56px auto 44px 56px minmax(min-content, 1fr) 44px 56px;
  min-width: 0;
  background: var(--soft);
  border-radius: 14px;
}
.project-meta-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  min-width: 0;
}
.project-category {
  font-size: 10px;
  line-height: 14px;
  color: var(--muted);
}
.project-outcome {
  display: grid;
  gap: 1px;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.project-outcome-primary {
  font-size: 12px;
  line-height: 15px;
  font-weight: 600;
  color: var(--ink);
}
.project-outcome-secondary {
  font-size: 10.5px;
  line-height: 13px;
  font-weight: 400;
  color: var(--muted);
}
.project-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0 16px;
}
.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.project-media-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
}
.preview-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0;
  font-size: 11px;
  color: var(--ink);
}
.preview-action svg {
  width: 12px;
  height: 12px;
}
.project-heading {
  min-width: 0;
  padding: 8px 20px 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}
.project-heading a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--muted);
}
.project-description {
  padding: 8px 20px 14px;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0 7px;
  padding: 0 20px;
  font-size: 11px;
  line-height: 18px;
  color: var(--muted);
}
.project-tech span:not(:last-child)::after {
  content: " ·";
  margin-left: 7px;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0 8px;
  padding: 0 20px 12px;
}
.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.project-card a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.project-card :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}
/* Education and Technical Skills share ledger anchors, including the date column. */
.education-ledger {
  --ledger-date-column: 180px;
}
.ledger-head {
  grid-template-columns: minmax(0, 1fr) var(--ledger-date-column);
}
.ledger-head .ledger-date {
  text-align: right;
}
#education,
#technical-skills {
  margin-bottom: 64px;
}
.skills-ledger .ledger-row {
  padding-block: 24px;
}
.skills-ledger .ledger-head {
  margin: 0;
}
.skills-ledger .ledger-head > p {
  max-width: 66ch;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
}
@media (max-width: 1100px) {
  .ledger-head .ledger-date {
    text-align: left;
  }
}
@media (max-width: 800px) {
  #education,
  #technical-skills {
    margin-bottom: 44px;
  }
}
@media (max-width: 600px) {
  .skills-ledger .ledger-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .skills-ledger .ledger-spacer {
    display: none;
  }
}
/* The 53-week visualization is one centered grid, including labels and legend. */
.github-activity {
  container-type: inline-size;
  --activity-label-width: 24px;
  --activity-label-gap: 8px;
}
.activity-visualization {
  max-width: calc(
    var(--activity-label-width) + var(--activity-label-gap) +
      var(--week-count) * 16px + (var(--week-count) - 1) * 4px + 8px
  );
  margin-inline: auto;
}
.activity-calendar {
  --activity-gap: clamp(2px, 0.3cqw, 4px);
  --activity-cell: clamp(
    10px,
    calc(
      (
          100cqw - var(--activity-label-width) - var(--activity-label-gap) -
            8px - (var(--week-count) - 1) * var(--activity-gap)
        ) /
        var(--week-count)
    ),
    16px
  );
  display: grid;
  grid-template-columns: var(--activity-label-width) max-content;
  column-gap: var(--activity-label-gap);
  width: max-content;
  margin-inline: auto;
}
.activity-months {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
.activity-body {
  display: contents;
}
.activity-weekdays {
  grid-column: 1;
  grid-row: 2;
  align-items: center;
}
.activity-weeks {
  grid-column: 2;
  grid-row: 2;
}
.activity-chapters {
  grid-column: 2;
  grid-row: 3;
  margin: 4px 0 0;
}
.activity-legend {
  --activity-cell: 10px;
  grid-column: 2;
  grid-row: 4;
  justify-self: end;
  margin-top: 10px;
}
/* One centered narrative frame inside the area remaining after the profile. */
.shell > main {
  width: min(100%, 1160px);
  margin-inline: auto;
}
#overview h1 {
  max-width: 100%;
  text-wrap: balance;
}
.biography {
  max-width: 720px;
}
.biography p {
  max-width: 72ch;
}
#about {
  margin-bottom: 64px;
}
.personal-about {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}
.personal-about > h2 {
  margin-bottom: 22px;
}
.about-copy {
  display: grid;
  gap: 30px;
  width: 100%;
  max-width: 920px;
  margin: 0;
}
.about-lead {
  margin: 0;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
}
.about-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
}
.about-detail {
  display: grid;
  align-content: start;
  gap: 10px;
}
.about-detail h3 {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.about-detail p {
  margin: 0;
  max-width: 43ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
@media (min-width: 1101px) {
  #overview h1 {
    font-size: clamp(44px, 4vw, 64px);
    letter-spacing: -0.035em;
    line-height: 1.12;
  }
}
@media (max-width: 800px) {
  #about {
    margin-bottom: 44px;
  }
  .about-copy {
    gap: 24px;
  }
  .about-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

.experience-role-history {
  margin: 14px 0 0 56px;
}
.experience-role-history p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.experience-role-history .period {
  margin-top: 5px;
}
@media (max-width: 600px) {
  .experience-role-history {
    margin-left: 44px;
  }
  .about-lead {
    font-size: 16px;
    line-height: 1.65;
  }
}

@container (max-width: 240px) {
  .project-meta-rail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 14px 30px;
    gap: 0;
    padding: 6px 16px;
  }
}

@media (min-width: 801px) and (max-height: 740px) {
  .sidebar {
    position: relative;
  }
}
