@font-face {
  font-family: "Bricolage Grotesque";
  src: url("bricolage-grotesque.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f7ef;
  --panel: #eeefe5;
  --ink: #172c23;
  --muted: #4f6258;
  --accent: #395c37;
  --rule: #d5dbcf;
  --lime: #dcf389;
  --lime-hover: #cce872;
  --green-black: #112f26;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4.4vw, 4.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #12241d;
  --panel: #192e24;
  --ink: #eef2e5;
  --muted: #b8c7b9;
  --accent: #c6df87;
  --rule: #3c5045;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; }
img { display: block; max-width: 100%; }
button, a { color: inherit; }
a { text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--lime); color: var(--green-black); }

.container {
  width: min(80rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.muted { color: var(--muted); }

.skip-link {
  position: fixed;
  top: .75rem;
  left: var(--gutter);
  z-index: 5;
  transform: translateY(-200%);
  padding: .7rem 1rem;
  background: var(--lime);
  color: var(--green-black);
}

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

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

.nav {
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 2.8vw, 3rem);
}

.nav__brand, .nav__tools, .nav__links {
  display: flex;
  align-items: center;
}

.nav__brand {
  justify-self: start;
  gap: .65rem;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.nav__brand img { flex: none; }

.nav__links {
  gap: clamp(.8rem, 2.05vw, 2rem);
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav__links a:hover, .nav__links a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: .35em;
}

.nav__tools {
  justify-self: end;
  gap: .35rem;
}

.nav__icon-btn {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  font-size: .8rem;
  font-weight: 700;
  transition: background-color 180ms, border-color 180ms;
}

.nav__icon-btn:hover { background: var(--panel); border-color: var(--rule); }
#theme-toggle { font-size: 1.2rem; line-height: 1; }
.nav__mobile-contact, .nav__burger { display: none; }

.nav__contact {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-inline-start: .3rem;
  padding: .6rem .9rem;
  border: 1px solid var(--rule);
  border-radius: 2rem;
  font-size: .86rem;
  font-weight: 700;
  transition: background-color 180ms, border-color 180ms, color 180ms;
}

.nav__contact:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.arrow-link::after {
  content: "";
  flex: none;
  width: .55em;
  height: .55em;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
  transition: translate 220ms var(--ease);
}

.arrow-link:hover::after { translate: .2em 0; }

.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 3.4vw, 3.65rem);
  padding-block: clamp(2.5rem, 4.4vw, 4.45rem) clamp(2rem, 4.15vw, 3.9rem);
}

.hero__intro { min-width: 0; }

.hero__role {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: clamp(1rem, 2.15vw, 1.8rem);
  color: var(--accent);
  font-size: clamp(.82rem, 1.14vw, 1rem);
  font-weight: 700;
}

.hero__role::before {
  content: "";
  flex: none;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(3rem, 7.18vw, 6.6rem);
  font-weight: 750;
  letter-spacing: -.042em;
  line-height: .91;
}

.hero h1 span { display: block; }

.hero__summary {
  max-width: 28rem;
  margin-top: clamp(1.3rem, 2.7vw, 2.35rem);
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.32rem);
  line-height: 1.46;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: clamp(1.5rem, 2.5vw, 2.2rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 3.2rem;
  padding: .65rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 3rem;
  font-size: .91rem;
  font-weight: 700;
  transition: background-color 180ms, border-color 180ms, translate 220ms var(--ease);
}

.button:hover { translate: 0 -2px; }
.button--primary { background: var(--lime); color: var(--green-black); border-color: #cbdc87; }
.button--primary:hover { background: var(--lime-hover); }
.button--secondary { background: transparent; border-color: var(--rule); }
.button--secondary:hover { background: var(--panel); border-color: var(--accent); }
.hero__print-location { display: none; }

.hero__visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.16;
  border-radius: 1.2rem;
  background: #082a23;
}

.hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms var(--ease);
}

.hero__visual:hover img { transform: scale(1.045); }

.hero__visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 24%;
  background: linear-gradient(transparent, #051d19b3);
  pointer-events: none;
}

.hero__location {
  position: absolute;
  bottom: clamp(.75rem, 1.7vw, 1.5rem);
  left: clamp(.75rem, 1.7vw, 1.5rem);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .65rem;
  max-width: calc(100% - 1.5rem);
  padding: .58rem .85rem;
  border: 1px solid #e6fff04d;
  border-radius: 2rem;
  background: #112b23;
  color: #f4f8eb;
  font-size: clamp(.74rem, 1.04vw, .87rem);
}

.location-dot {
  flex: none;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px #dcf38926;
}

.hero__availability { padding-inline-start: .65rem; border-inline-start: 1px solid #e6fff057; }
.focus-strip { border-block: 1px solid var(--rule); }

.focus-strip ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
}

.focus-strip li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  padding: 1.15rem .6rem;
  font-size: clamp(.8rem, 1.2vw, 1rem);
  font-weight: 650;
}

.focus-strip li + li { border-inline-start: 1px solid var(--rule); }

.focus-mark {
  position: relative;
  display: block;
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

.focus-mark--ai::before, .focus-mark--ai::after {
  content: "";
  position: absolute;
  inset: 0 44%;
  background: currentColor;
  border-radius: 50%;
}

.focus-mark--ai::after { transform: rotate(90deg); }
.focus-mark--stack { width: .8rem; height: .8rem; border: 1.5px solid; transform: rotate(45deg); }
.focus-mark--ops { border: 1.5px solid; border-radius: 50%; }
.focus-mark--ops::after { content: ""; position: absolute; inset: 28%; background: currentColor; border-radius: 50%; }

.section { padding-block: clamp(3.75rem, 7.1vw, 7rem); }
.section-title {
  margin-bottom: clamp(1.6rem, 3.05vw, 2.65rem);
  font-size: clamp(2.5rem, 5.5vw, 5.2rem);
  font-weight: 740;
  letter-spacing: -.042em;
  text-wrap: balance;
}

.section--work { padding-top: clamp(3rem, 5.2vw, 4.75rem); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3.1vw, 2.8rem); }
.case { min-width: 0; }

.case-art {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 1.82;
  border-radius: 1rem;
}

.case-art--ops {
  background-color: #123b30;
  background-image:
    radial-gradient(ellipse at center, #32614a 0, transparent 66%),
    linear-gradient(#e0f3d71c 1px, transparent 1px),
    linear-gradient(90deg, #e0f3d71c 1px, transparent 1px);
  background-size: auto, 2rem 2rem, 2rem 2rem;
  background-position: center;
}

.agent-orbit {
  position: relative;
  width: 41%;
  max-width: 14rem;
  aspect-ratio: 1;
  border: 1px solid #dcf3898c;
  border-radius: 50%;
  transition: transform 750ms var(--ease);
}

.case:hover .agent-orbit { transform: rotate(12deg); }

.agent-orbit::before, .agent-orbit::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px dashed #dcf3897b;
  border-radius: 50%;
}

.agent-orbit::after { inset: -13%; border: 1px solid #dcf38935; }

.agent-orbit > i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 0;
  transform: rotate(var(--angle));
  transform-origin: left center;
}

.agent-orbit > i::before {
  content: "";
  position: absolute;
  right: 0;
  width: clamp(.55rem, 1vw, .8rem);
  aspect-ratio: 1;
  background: #dcf389;
  border-radius: 50%;
  transform: translate(50%, -50%);
  box-shadow: 0 0 0 5px #dcf38927;
}

.agent-orbit > i:nth-child(1) { --angle: 0deg; }
.agent-orbit > i:nth-child(2) { --angle: 60deg; }
.agent-orbit > i:nth-child(3) { --angle: 120deg; }
.agent-orbit > i:nth-child(4) { --angle: 180deg; }
.agent-orbit > i:nth-child(5) { --angle: 240deg; }
.agent-orbit > i:nth-child(6) { --angle: 300deg; }

.agent-core {
  position: absolute;
  inset: 35%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8%;
  gap: 15%;
  border: 1px solid #dcf389c4;
  border-radius: 24%;
  background: #173a2d;
  box-shadow: 0 0 1.5rem #dcf38940;
  transform: rotate(45deg);
}

.agent-core i { border-radius: 50%; background: #dcf389; }

.case-art--os {
  background-color: #dceba9;
  background-image: repeating-radial-gradient(ellipse at 50% 58%, #1f4d321c 0 1px, transparent 2px 1.6rem);
}

.system-stack { position: relative; width: 40%; aspect-ratio: 1; transform: translateY(-4%); }

.system-stack i {
  position: absolute;
  display: block;
  inset: 19%;
  border: 1px solid #325440;
  border-radius: 13%;
  background: var(--layer);
  transform: translateY(var(--offset)) rotateX(54deg) rotateZ(-45deg);
  transition: transform 650ms var(--ease);
  box-shadow: -6px 7px 0 #163a2c6b;
}

.system-stack i:nth-child(1) { --layer: #244c3c; --offset: 31%; --lift: 40%; }
.system-stack i:nth-child(2) { --layer: #66936c; --offset: 5%; --lift: 5%; }
.system-stack i:nth-child(3) { --layer: #eafaab; --offset: -21%; --lift: -30%; }

.system-stack i:last-child::after {
  content: "";
  position: absolute;
  inset: 17%;
  border: 1px solid #527153;
  border-radius: 11%;
  background-image: radial-gradient(#527153 1px, transparent 1px);
  background-size: .45rem .45rem;
}
.case:hover .system-stack i { transform: translateY(var(--lift)) rotateX(54deg) rotateZ(-45deg); }

.case__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .85rem;
  margin: clamp(1rem, 2vw, 1.65rem) 0 .85rem;
}

.case h3 { font-size: clamp(2rem, 3.35vw, 3.1rem); letter-spacing: -.035em; }

.case__role {
  margin-top: .4rem;
  color: var(--accent);
  font-size: .87rem;
  font-weight: 650;
}

.case__summary { max-width: 52ch; color: var(--muted); text-wrap: pretty; }

.tags, .case__stats { display: flex; flex-wrap: wrap; gap: .35rem; }

.tag {
  padding: .25rem .62rem;
  border: 1px solid var(--rule);
  border-radius: 2rem;
  font-size: .78rem;
  line-height: 1.25;
}

.case__details { margin-top: 1.2rem; border-block: 1px solid var(--rule); }

.case__details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
  padding-block: .6rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.case__details summary::-webkit-details-marker { display: none; }
.case__details summary:hover { color: var(--accent); }

.case__details summary::after {
  content: "+" / "";
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}

.case__details[open] summary::after { content: "−" / ""; }
.case__body { padding-block: .55rem 1.35rem; }
.case__body h4 { margin-block: 1rem .25rem; }
.case__body p, .case__body li { color: var(--muted); }
.case__body ul { padding-inline-start: 1.2rem; }
.case__body li + li { margin-top: .45rem; }

.architecture {
  padding: 1rem;
  border-radius: .7rem;
  background: var(--panel);
  text-align: center;
  font-size: .83rem;
}

.architecture__agents, .architecture__ends {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
}

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

.architecture__agents span, .architecture__ends span {
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: .35rem;
  padding: .35rem .2rem;
}

.architecture__router {
  position: relative;
  margin: .95rem 0;
  padding: .55rem;
  border: 1px solid var(--accent);
  border-radius: .35rem;
}

.architecture__router::before, .architecture__router::after {
  content: "";
  position: absolute;
  left: 50%;
  height: .95rem;
  border-left: 1px solid var(--accent);
}
.architecture__router::before { bottom: 100%; }
.architecture__router::after { top: 100%; }
.architecture figcaption { margin-top: .7rem; color: var(--muted); font-size: .75rem; }

.section-layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 5vw, 5rem);
}

.section-layout > .section-title { margin: 0; text-wrap: unset; }

.section--profile, .section--education { background: var(--panel); }
.about__grid { display: grid; gap: 1rem; max-width: 61ch; }
.about__lead { font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.48; text-wrap: pretty; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-top: clamp(1.5rem, 4vw, 2.8rem);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.stat { display: grid; align-content: start; gap: .25rem; }

.stat__num {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1;
}

.stat__label { color: var(--muted); font-size: .85rem; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border-radius: .9rem;
  background: var(--rule);
  overflow: hidden;
}

.skill-card {
  grid-column: span 2;
  padding: clamp(1.15rem, 2.5vw, 2rem);
  background: var(--paper);
}

.skill-card:nth-last-child(-n+2) { grid-column: span 3; }
.skill-card h3 { margin-bottom: 1rem; font-size: clamp(1.25rem, 2.4vw, 1.8rem); letter-spacing: -.025em; }

.section--experience { padding-top: 0; }

.section--experience .container {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--rule);
}

.timeline { padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.timeline__item { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }

.timeline__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: .9rem;
  row-gap: .35rem;
  margin-bottom: .3rem;
}

.timeline__role, .edu-card h3 { font-size: clamp(1.25rem, 2.4vw, 1.8rem); letter-spacing: -.025em; }
.timeline time, .edu-card__period { white-space: nowrap; font-size: .86rem; font-weight: 650; }
.timeline__org, .edu-card__school { margin-bottom: .35rem; color: var(--accent); font-weight: 650; }

.edu-grid { display: grid; gap: 1rem; }

.edu-card {
  padding: clamp(1rem, 2.5vw, 1.55rem);
  border: 1px solid var(--rule);
  border-radius: .8rem;
  background: var(--paper);
}

.edu-card h3 { margin-block: .3rem .55rem; }
.edu-card__school { margin: .55rem 0 0; }

.section--contact {
  background: #16352b;
  color: #f3f6e9;
  --accent: #dcf389;
  --muted: #c1cec2;
  --rule: #ffffff35;
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.8rem, 6vw, 6rem);
}

.contact__intro .section-title {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: clamp(3.15rem, 7.35vw, 7rem);
  text-wrap: unset;
}

.contact__lead { max-width: 35ch; font-size: clamp(1rem, 1.6vw, 1.22rem); }
.contact__note { margin-top: .85rem; color: var(--muted); font-size: .9rem; }

.contact__links { border-top: 1px solid var(--rule); }

.contact__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 3rem;
  padding-block: .65rem;
  border-bottom: 1px solid var(--rule);
}

.contact__link::after {
  content: "↗" / "";
  grid-area: 1 / 2 / 3;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
  transition: translate 220ms var(--ease);
}

.contact__link:hover::after { translate: .18rem -.18rem; }
.contact__link:hover .contact__link-label { color: var(--accent); }
.contact__link-label { font-weight: 700; }
.contact__link-value { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }

.site-footer { padding-block: 1.2rem; color: var(--muted); font-size: .87rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; }
.back-to-top { color: var(--ink); font-weight: 700; }
.back-to-top:hover { text-decoration: underline; text-underline-offset: .3em; }

@media (max-width: 64rem) {
  html { scroll-padding-top: 5.5rem; }
  .site-header { position: static; }
  .site-header:has(.nav--enhanced) { position: sticky; }
  .nav { position: relative; grid-template-columns: 1fr auto; min-height: 4.25rem; }
  .nav__links { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; gap: 0; }
  .nav__links a { padding: .65rem .85rem; }
  .nav__mobile-contact { display: block; }
  .nav__contact { display: none; }
  .nav__burger { display: grid; }
  .nav__burger span, .nav__burger span::before {
    display: block;
    width: 1rem;
    height: 1.5px;
    background: currentColor;
  }
  .nav__burger span { position: relative; translate: 0 -.19rem; }
  .nav__burger span::before { content: ""; position: absolute; top: .4rem; }
  .nav__burger[aria-expanded="true"] span { transform: rotate(45deg); translate: none; }
  .nav__burger[aria-expanded="true"] span::before { top: 0; transform: rotate(90deg); }

  .nav--enhanced .nav__links {
    position: absolute;
    inset: 100% 0 auto;
    padding: .55rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 0 0 .8rem .8rem;
    box-shadow: 0 12px 24px #10271d1c;
  }

  .nav--enhanced .nav__links:not(.is-open) { display: none; }
  .nav--enhanced .nav__links.is-open { display: grid; }
}

@media (max-width: 46rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; }
  .hero h1 { font-size: clamp(3.1rem, 12.2vw, 5.7rem); }
  .hero__visual { aspect-ratio: 1.3; }
  .section-layout, .work-grid, .contact__inner { grid-template-columns: minmax(0, 1fr); }
  .focus-strip li { gap: .4rem; padding: .75rem .45rem; line-height: 1.3; }
  .focus-mark { scale: .8; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-card, .skill-card:nth-last-child(-n+2) { grid-column: auto; }
  .skill-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 25rem) {
  .nav { gap: .45rem; }
  .nav__tools { gap: .15rem; }
  .nav__brand { gap: .45rem; font-size: .94rem; }
  .nav__brand img { width: 2.1rem; height: 2.1rem; }
  .hero h1 { font-size: clamp(2.72rem, 12vw, 3.14rem); }
  .focus-strip li { flex-direction: column; text-align: center; }
  .skill-card { padding: .9rem .7rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__intro, .hero__visual { animation: enter 600ms var(--ease) both; }
  .hero__visual { animation-delay: 100ms; }
  .case__details[open] .case__body { animation: enter 240ms var(--ease) both; }

  @keyframes enter {
    from { opacity: 0; transform: translateY(.65rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  .hero__visual:hover img, .case:hover .agent-orbit { transform: none; }
  .case:hover .system-stack i { transform: translateY(var(--offset)) rotateX(54deg) rotateZ(-45deg); }
  .button:hover, .arrow-link:hover::after, .contact__link:hover::after { translate: none; }
}

@page { margin: 1.25cm; }

@media print {
  :root, :root[data-theme="dark"] {
    color-scheme: light;
    --paper: #fff;
    --panel: #fff;
    --ink: #111;
    --muted: #333;
    --accent: #222;
    --rule: #aaa;
  }

  body { font-size: 9pt; line-height: 1.28; }
  .site-header, .skip-link, .hero__actions, .hero__visual, .focus-strip,
  .case-art, .case__stats, .case__details summary, .architecture,
  .site-footer, .contact__link::after { display: none !important; }

  .container { width: 100%; }
  .hero, .section-layout, .work-grid, .contact__inner { display: block; }
  .hero__intro, .case__body { animation: none !important; }
  .hero { padding: 0 0 .45rem; }
  .hero h1 { font-size: 22pt; letter-spacing: -.04em; }
  .hero h1 span { display: inline; }
  .hero__role { margin: 0 0 .3rem; font-size: 10pt; }
  .hero__role::before { display: none; }
  .hero__print-location { display: block; margin-top: .28rem; }
  .hero__summary { margin-top: .35rem; font-size: inherit; }
  .section { padding-block: .25rem; }
  .section--experience .container { padding-top: 0; border: 0; }
  .section .section-title {
    margin: 0 0 .35rem;
    padding-bottom: .14rem;
    border-bottom: 1px solid var(--rule);
    font-size: 14pt;
    letter-spacing: -.04em;
    break-after: avoid;
  }

  .case__head { margin: .45rem 0 .2rem; }
  .case h3, .timeline__role, .edu-card h3, .skill-card h3 { font-size: 11pt; }
  .case__role { margin-top: .15rem; font-size: 8.5pt; }
  .case__summary, .about__grid, .contact__lead { max-width: none; }
  .case__details { margin-top: .2rem; border: 0; }
  .case__details::details-content { content-visibility: visible; }
  .case__body { padding: 0 0 .18rem; line-height: 1.23; }
  .case__body h4 { margin-block: .2rem .08rem; break-after: avoid; }
  .case__body li + li { margin-top: .08rem; }
  .case__body li { break-inside: avoid; }
  .about__lead, .contact__lead { font-size: inherit; }
  .section--profile { break-inside: avoid; }
  .about__grid, .about__stats { gap: .3rem; }
  .about__stats { margin: .35rem 0; padding: .3rem 0; }
  .stat__num { font-size: 12pt; }
  .skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: none; gap: .2rem .45rem; }
  .skill-card, .skill-card:nth-last-child(-n+2), .skill-card:last-child { grid-column: auto; padding: .25rem 0; }
  .skill-card h3 { margin-bottom: .2rem; }
  .tag { padding: .07rem .28rem; font-size: 7.5pt; }
  .timeline, .contact__links { border: 0; }
  .timeline__item, .edu-card { padding: .13rem 0; border: 0; }
  .timeline__top, .timeline__org, .edu-card h3, .edu-card__school { margin-bottom: .12rem; }
  .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .section--contact { background: white; color: var(--ink); --muted: #333; --accent: #222; --rule: #aaa; }
  .contact__note { margin-top: .25rem; font-size: 8.5pt; }
  .contact__links { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .6rem; margin-top: .3rem; }
  .contact__link { display: flex; flex-wrap: wrap; gap: .1rem .3rem; min-height: 0; padding: .1rem 0; border: 0; }
  .contact__link-value { font-size: 8.5pt; }
  .timeline__item, .edu-card, .skill-card, .contact__link { break-inside: avoid; }
}
