:root {
  --tone-0003: #0003;
  --tone-0004: #0004;
  --tone-08060ded: #08060ded;
  --tone-111114: #111114;
  --tone-111a13: #111a13;
  --tone-141118: #141118;
  --tone-141417: #141417;
  --tone-141417f5: #141417f5;
  --tone-18101f: #18101f;
  --tone-19171d: #19171d;
  --tone-19191f: #19191f;
  --tone-1a171e: #1a171e;
  --tone-1b1621: #1b1621;
  --tone-1b211e: #1b211e;
  --tone-1c1723: #1c1723;
  --tone-1c1b19: #1c1b19;
  --tone-202027: #202027;
  --tone-21172e: #21172e;
  --tone-211a29: #211a29;
  --tone-211a2a: #211a2a;
  --tone-211e27: #211e27;
  --tone-212026: #212026;
  --tone-27202f: #27202f;
  --tone-28222f: #28222f;
  --tone-292032: #292032;
  --tone-292330: #292330;
  --tone-2b382c: #2b382c;
  --tone-2e2a34: #2e2a34;
  --tone-302a3a: #302a3a;
  --tone-303038: #303038;
  --tone-333: #333;
  --tone-37323e: #37323e;
  --tone-3a3144: #3a3144;
  --tone-3a443c: #3a443c;
  --tone-3b3046: #3b3046;
  --tone-3b3543: #3b3543;
  --tone-3b483d: #3b483d;
  --tone-403749: #403749;
  --tone-424446: #424446;
  --tone-48414f: #48414f;
  --tone-493c56: #493c56;
  --tone-494338: #494338;
  --tone-51405f: #51405f;
  --tone-514160: #514160;
  --tone-55416b: #55416b;
  --tone-59476c: #59476c;
  --tone-5b476e: #5b476e;
  --tone-60516e: #60516e;
  --tone-67507b: #67507b;
  --tone-67517f: #67517f;
  --tone-6b507f: #6b507f;
  --tone-776c84: #776c84;
  --tone-78608f: #78608f;
  --tone-797480: #797480;
  --tone-7c6393: #7c6393;
  --tone-806497: #806497;
  --tone-807787: #807787;
  --tone-81798c: #81798c;
  --tone-817a8c: #817a8c;
  --tone-888391: #888391;
  --tone-8a7a99: #8a7a99;
  --tone-8b7b9c: #8b7b9c;
  --tone-8d8598: #8d8598;
  --tone-8e859c: #8e859c;
  --tone-97909f: #97909f;
  --tone-9c94a5: #9c94a5;
  --tone-9f8bad: #9f8bad;
  --tone-9f96a8: #9f96a8;
  --tone-a38cb7: #a38cb7;
  --tone-a38db8: #a38db8;
  --tone-a39aaf: #a39aaf;
  --tone-a4a1ae: #a4a1ae;
  --tone-a58abf: #a58abf;
  --tone-a795b8: #a795b8;
  --tone-a795b9: #a795b9;
  --tone-a994bb: #a994bb;
  --tone-a99b84: #a99b84;
  --tone-aaa4b3: #aaa4b3;
  --tone-ab8ec3: #ab8ec3;
  --tone-ab9db5: #ab9db5;
  --tone-ada7b8: #ada7b8;
  --tone-afa18a: #afa18a;
  --tone-b1a58f: #b1a58f;
  --tone-b2c4b2: #b2c4b2;
  --tone-b3a0c2: #b3a0c2;
  --tone-b4a5c3: #b4a5c3;
  --tone-b5a0cc: #b5a0cc;
  --tone-b5a0ce: #b5a0ce;
  --tone-b5a2c8: #b5a2c8;
  --tone-b5b1bd: #b5b1bd;
  --tone-b7aabd: #b7aabd;
  --tone-b7adbf: #b7adbf;
  --tone-b8a1ee: #b8a1ee;
  --tone-b8a6c8: #b8a6c8;
  --tone-b9a9c9: #b9a9c9;
  --tone-beb0cf: #beb0cf;
  --tone-c1b0d1: #c1b0d1;
  --tone-c4afd9: #c4afd9;
  --tone-c6a6e4: #c6a6e4;
  --tone-c6b4d8: #c6b4d8;
  --tone-c7b2e3: #c7b2e3;
  --tone-cbb9f2: #cbb9f2;
  --tone-ccb7e2: #ccb7e2;
  --tone-ccc: #ccc;
  --tone-d6cedf: #d6cedf;
  --tone-dce5dc: #dce5dc;
  --tone-e0d7c6: #e0d7c6;
  --tone-e1d7ec: #e1d7ec;
  --tone-e3d4fc: #e3d4fc;
  --tone-e6dfec: #e6dfec;
  --tone-eee3fa: #eee3fa;
  --tone-efe5fa: #efe5fa;
  --tone-efedf3: #efedf3;
  --tone-f3f1f5: #f3f1f5;
}
:root {
  color-scheme: dark;
  --paper: var(--tone-111114);
  --surface: var(--tone-19191f);
  --raised: var(--tone-202027);
  --ink: var(--tone-efedf3);
  --muted: var(--tone-a4a1ae);
  --line: var(--tone-303038);
  --accent: var(--tone-b8a1ee);
  --accent-dark: var(--tone-21172e);
  --radius: 10px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input {
  font: inherit;
}
button, summary {
  cursor: pointer;
}
button {
  color: inherit;
}
img, svg {
  max-width: 100%;
}
button, a, summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: var(--tone-67517f);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
h1, h2, h3, h4, p {
  margin-top: 0;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4 {
  font-weight: 550;
  line-height: 1.2;
}
h1 {
  font-size: clamp(40px, 4.6vw, 66px);
  letter-spacing: -2.8px;
  margin-bottom: 26px;
}
h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -1px;
  margin-bottom: 0;
}
h3 {
  font-size: 24px;
  letter-spacing: -.6px;
}
h4 {
  font-size: 19px;
  letter-spacing: -.3px;
}
p {
  color: var(--muted);
}
.ui-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  vertical-align: middle;
}
.stack-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}
.unity-logo {
  filter: brightness(0) invert(1);
}
.sr-only, .skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-dark);
  border-radius: 6px;
}
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  border: 0;
  appearance: none;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.reading-progress::-webkit-progress-bar {
  background: transparent;
}
.reading-progress::-webkit-progress-value {
  background: var(--accent);
}
.reading-progress::-moz-progress-bar {
  background: var(--accent);
}
header {
  position: fixed;
  inset: 0 auto 0 0;
  width: 214px;
  border-right: 1px solid var(--line);
  background: var(--tone-141417);
  z-index: 30;
}
nav.wrap {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 38px 23px 26px;
  gap: 44px;
  overflow-y: auto;
}
.logo {
  font-size: 32px;
  letter-spacing: -2px;
  font-weight: 750;
  width: fit-content;
  line-height: 1;
}
.logo span {
  color: var(--accent);
}
.navlinks {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}
.nav-caption {
  margin: 0 10px 16px;
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--tone-888391);
}
.navlinks a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--tone-b5b1bd);
  border-radius: 6px;
  transition: color .18s, background .18s;
}
.navlinks .ui-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  opacity: .8;
}
.navlinks a:hover {
  background: var(--tone-212026);
  color: var(--ink);
}
.navlinks a[aria-current="page"] {
  background: var(--tone-292330);
  color: var(--tone-e3d4fc);
  box-shadow: inset 2px 0 var(--accent);
}
.nav-footer {
  margin-top: auto;
  display: grid;
  gap: 11px;
  font-size: 11px;
  color: var(--tone-aaa4b3);
}
.nav-footer > span {
  color: var(--tone-797480);
  margin-bottom: 8px;
}
.contact-email {
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.nav-footer .ui-icon {
  width: 13px;
  height: 13px;
}
.mobile-menu {
  display: none;
}
main {
  margin-left: 214px;
}
main > .wrap {
  width: 100%;
  max-width: 1190px;
  margin: auto;
  padding-inline: clamp(26px, 4.7vw, 76px);
}
.wrap {
  min-width: 0;
}
.hero {
  padding: 76px 0 30px;
}
.eyebrow, .section-no, .panel-label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--tone-a39aaf);
  line-height: 1.8;
}
.eyebrow {
  margin-bottom: 26px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 205px;
  gap: 35px;
  align-items: center;
  padding-bottom: 52px;
}
.hero-grid > *, .project > *, .section-top > * {
  min-width: 0;
}
.hero-copy h1 span {
  color: var(--accent);
}
.intro {
  max-width: 550px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--tone-ada7b8);
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--tone-48414f);
  border-radius: 7px;
  font-size: 13px;
  color: var(--tone-e6dfec);
  background: transparent;
  transition: background .18s, transform .18s, border-color .18s;
}
.btn:hover {
  border-color: var(--accent);
  background: var(--tone-28222f);
  transform: translateY(-2px);
}
.btn.dark, .btn.lime {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 600;
}
.btn.dark:hover, .btn.lime:hover {
  background: var(--tone-cbb9f2);
}
.hero-tools {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  color: var(--tone-817a8c);
  font-size: 11px;
}
.hero-art {
  width: 205px;
  justify-self: end;
  text-align: center;
}
.real-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.portrait-signature {
  margin: 18px 0 0;
  color: var(--tone-d6cedf);
  font-size: 13px;
}
.portrait-signature span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--tone-8d8598);
}
.hero-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--tone-8e859c);
  font-size: 10px;
  letter-spacing: 1px;
}
section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.hero + section {
  border-top: 0;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 30px;
}
.section-top .section-no {
  margin-bottom: 11px;
}
.section-top h2 {
  max-width: 560px;
}
.text-link, .deck-action, .back-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--tone-c7b2e3);
}
.text-link {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--tone-59476c);
  white-space: nowrap;
}
.text-link .ui-icon, .deck-action .ui-icon {
  transition: transform .18s;
}
a:hover > .ui-icon, a:hover .deck-action .ui-icon {
  transform: translate(2px, -2px);
}
.small-copy {
  max-width: 250px;
  font-size: 12px;
  margin: 0;
}
.service-list {
  border-top: 1px solid var(--line);
}
.service-row {
  border-bottom: 1px solid var(--line);
}
.service-row summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
}
.service-row summary::-webkit-details-marker {
  display: none;
}
.service-row summary > .ui-icon:first-child {
  color: var(--accent);
  width: 22px;
  height: 22px;
}
.service-row summary > span {
  flex: 1;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.4;
}
.service-row small {
  display: block;
  margin-top: 6px;
  color: var(--tone-97909f);
  font-size: 13px;
  font-weight: 400;
}
.service-row summary > .ui-icon:last-child {
  color: var(--tone-8b7b9c);
  transition: transform .2s;
}
.service-row[open] summary > .ui-icon:last-child {
  transform: rotate(45deg);
}
.service-body {
  padding: 0 38px 25px 42px;
  max-width: 720px;
}
.service-body p {
  font-size: 14px;
  line-height: 1.85;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--tone-3b3543);
  background: var(--tone-211e27);
  color: var(--tone-beb0cf);
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.project-deck {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 35px 22px 20px;
  margin-top: 20px;
  row-gap: 40px;
}
.deck-card {
  position: relative;
  flex: 0 0 min(355px, 100%);
  min-width: 0;
  margin-inline: -18px;
  padding: 26px;
  border: 1px solid var(--tone-403749);
  border-radius: 12px;
  background: var(--tone-1a171e);
  transform: rotate(-5deg);
  box-shadow: 0 18px 35px var(--tone-0003);
  transition: transform .25s, border-color .25s;
}
.deck-card:nth-child(even) {
  transform: rotate(5deg);
  z-index: 1;
  background: var(--tone-211a2a);
  border-color: var(--tone-5b476e);
}
.deck-card:only-child {
  transform: none;
}
.deck-card:hover, .deck-card:focus-visible {
  transform: translateY(-8px);
  border-color: var(--accent);
  z-index: 2;
}
.deck-type {
  font-size: 8px;
  letter-spacing: .8px;
  color: var(--tone-a994bb);
}
.deck-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 16px;
}
.deck-identity img, .clinic-monogram {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 9px;
}
.clinic-monogram {
  display: grid;
  place-items: center;
  background: var(--tone-302a3a);
  border: 1px solid var(--tone-60516e);
  font-size: 13px;
  color: var(--tone-ccb7e2);
}
.deck-identity h3 {
  font-size: 21px;
  margin: 0;
}
.deck-card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--tone-ab9db5);
}
.deck-card .tags {
  margin-bottom: 24px;
}
.home-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr));
  gap: 10px;
}
.stack-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  color: var(--tone-b7adbf);
  transition: border-color .2s, transform .2s;
}
.stack-item img {
  flex-shrink: 0;
  object-fit: contain;
}
.stack-item:hover {
  border-color: var(--tone-7c6393);
  transform: translateY(-3px);
}
.contact {
  padding: 36px;
  border: 1px solid var(--tone-51405f);
  background: var(--tone-211a29);
  border-radius: 12px;
}
.contact h2 {
  font-size: clamp(27px, 3vw, 38px);
  color: var(--tone-efe5fa);
  margin: 12px 0 24px;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.contact-row p {
  flex: 1 1 250px;
  max-width: 460px;
  margin: 0;
  font-size: 14px;
  color: var(--tone-b9a9c9);
}
.contact-row .btn {
  flex: 0 0 auto;
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--tone-c6b4d8);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.socials .ui-icon {
  width: 14px;
  height: 14px;
}
footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--tone-81798c);
}
.page-heading {
  padding-top: 55px;
  padding-bottom: 30px;
}
.page-heading h1 {
  font-size: 40px;
  margin: 16px 0 0;
  letter-spacing: -1.6px;
}
.project {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 30px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.project h3 {
  font-size: 27px;
  margin: 13px 0 17px;
}
.project p {
  font-size: 13px;
  line-height: 1.85;
}
.project-num {
  font-size: 9px;
  color: var(--tone-a58abf);
  letter-spacing: 1px;
  display: block;
}
.project-visual {
  min-width: 0;
  padding: 20px;
  background: var(--tone-19171d);
  border: 1px solid var(--tone-3a3144);
  border-radius: 10px;
}
.visual-label {
  display: block;
  margin-top: 14px;
  font-size: 8px;
  color: var(--tone-8a7a99);
  letter-spacing: .6px;
  line-height: 1.6;
}
.mock {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tone-424446);
  background: var(--tone-1b211e);
  color: var(--tone-dce5dc);
  border-radius: 6px;
  font-size: 9px;
}
.mock-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--tone-3a443c);
  font-size: 8px;
}
.mock-main {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
}
.mock-side {
  padding: 15px 8px;
  font-size: 6px;
  line-height: 2.9;
  background: var(--tone-111a13);
  color: var(--tone-b2c4b2);
}
.mock-body {
  padding: 14px;
  min-width: 0;
}
.mock-body h4 {
  font-size: 14px;
  margin-bottom: 6px;
}
.mock-body > span {
  font-size: 8px;
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-block: 17px;
}
.mock-stats > div {
  background: var(--tone-2b382c);
  padding: 9px 6px;
  font-size: 7px;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.mock-stats b {
  display: block;
  font-size: 20px;
  font-weight: 500;
}
.mock-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--tone-3b483d);
  padding: 8px 0;
  font-size: 8px;
}
.mock-row .ui-icon {
  width: 12px;
  height: 12px;
}
.project-details {
  margin-top: 23px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--tone-b4a5c3);
}
.project-details summary {
  padding: 8px 0;
}
.project-details ul {
  padding-left: 18px;
  line-height: 1.85;
}
.slide-open {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
}
.slide-open img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.slide-toolbar {
  margin-top: 14px;
  color: var(--tone-a795b9);
  font-size: 10px;
  line-height: 1.7;
}
.showcase-dialog {
  width: min(1000px, 96vw);
  max-height: 96dvh;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--tone-6b507f);
  border-radius: 12px;
  background: var(--tone-141118);
  color: var(--tone-eee3fa);
}
.showcase-dialog::backdrop {
  background: var(--tone-08060ded);
}
.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}
.showcase-header h2 {
  font-size: 18px;
  margin: 0;
}
.showcase-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  background: var(--tone-292032);
  color: var(--tone-eee3fa);
  border: 1px solid var(--tone-67507b);
  border-radius: 6px;
  padding: 9px 12px;
}
.showcase-stage {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
}
.showcase-stage img {
  display: block;
  width: 100%;
  height: min(73dvh, 800px);
  object-fit: contain;
}
.showcase-caption {
  text-align: center;
  font-size: 12px;
  color: var(--tone-c1b0d1);
  margin: 15px 0 0;
}
.showcase-open {
  overflow: hidden;
}
.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.skill {
  min-width: 0;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.skill-icon {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
}
.skill-icon .ui-icon {
  width: 24px;
  height: 24px;
}
.skill h3 {
  font-size: 21px;
  margin-bottom: 15px;
}
.skill p {
  font-size: 13px;
  line-height: 1.85;
}
.profile-layout {
  display: grid;
  gap: 24px;
}
.profile-left {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.background-panel {
  min-width: 0;
  padding: 27px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
}
.background-panel h3 {
  font-size: 23px;
  margin: 10px 0 22px;
}
.background-panel h4 {
  margin: 14px 0 8px;
}
.background-panel p {
  font-size: 13px;
  line-height: 1.85;
}
.panel-label {
  font-size: 9px;
  color: var(--tone-a38db8);
}
.education-panel {
  border-top: 2px solid var(--tone-806497);
}
.period {
  color: var(--tone-a795b8);
  font-size: 11px;
}
.education-completion {
  margin-top: 16px;
}
.university-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.university-identity img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
}
.university-identity .institution {
  color: var(--tone-e1d7ec);
  margin: 0;
  font-weight: 600;
}
.job-duties {
  padding-left: 18px;
  color: var(--tone-b3a0c2);
  line-height: 1.85;
}
.training-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.training-entry {
  min-width: 0;
  border: 1px solid var(--tone-3b3046);
  border-radius: 7px;
  overflow: hidden;
  background: var(--tone-1c1723);
}
.certificate-card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 18px;
  transition: background .18s;
}
.certificate-card:hover {
  background: var(--tone-27202f);
}
.certificate-thumbnail {
  flex-shrink: 0;
  width: 90px;
  height: 75px;
  object-fit: contain;
  background: var(--tone-f3f1f5);
  border-radius: 3px;
}
.certificate-info {
  min-width: 0;
}
.certificate-info .training-provider {
  font-size: 10px;
  margin: 0 0 8px;
  color: var(--tone-a38cb7);
  line-height: 1.6;
}
.certificate-info h4 {
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
.certificate-info .certificate-date {
  font-size: 10px;
  color: var(--tone-9f8bad);
  margin: 12px 0;
}
.certificate-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--tone-c6a6e4);
}
.certificate-action .ui-icon {
  width: 13px;
  height: 13px;
}
.reveal-ready {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}
@media (min-width: 1500px) {
  main > .wrap {
    max-width: 1260px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .hero-art {
    width: 230px;
  }
}
@media (max-width: 1150px) {
  header {
    width: 190px;
  }
  nav.wrap {
    padding-inline: 18px;
  }
  main {
    margin-left: 190px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 165px;
    gap: 24px;
  }
  .hero-art {
    width: 165px;
  }
  h1 {
    font-size: 49px;
  }
  .project {
    grid-template-columns: 1fr;
  }
  .project-visual {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
  }
  .profile-left, .training-grid {
    grid-template-columns: 1fr;
  }
  .deck-card {
    flex-basis: 330px;
  }
}
@media (max-width: 960px) {
  html {
    scroll-padding-top: 86px;
  }
  header {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: var(--tone-141417f5);
    backdrop-filter: blur(14px);
  }
  nav.wrap {
    position: relative;
    height: auto;
    padding: 12px 22px;
    overflow: visible;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  nav > .navlinks, .nav-footer {
    display: none;
  }
  .logo {
    font-size: 29px;
  }
  .mobile-menu {
    display: block;
    margin-left: auto;
  }
  .mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    min-height: 44px;
    font-size: 13px;
    border: 1px solid var(--tone-493c56);
    border-radius: 6px;
    list-style: none;
  }
  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .mobile-menu .navlinks {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    max-height: 75dvh;
    overflow-y: auto;
    padding: 14px 18px;
    background: var(--tone-1b1621);
    border-bottom: 1px solid var(--tone-55416b);
    box-shadow: 0 14px 20px var(--tone-0004);
  }
  .mobile-menu .navlinks a {
    min-height: 44px;
  }
  .mobile-menu .nav-caption {
    display: none;
  }
  main {
    margin-left: 0;
  }
  main > .wrap {
    padding-inline: clamp(22px, 5vw, 48px);
  }
  .hero {
    padding-top: 48px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 180px;
  }
  .hero-art {
    width: 180px;
  }
  .deck-card {
    transform: none;
    margin: 0;
    flex: 0 1 350px;
  }
  .deck-card:nth-child(even) {
    transform: none;
  }
  .project-deck {
    gap: 20px;
    padding-inline: 0;
  }
}
@media (max-width: 640px) {
  main > .wrap {
    padding-inline: 22px;
  }
  h1 {
    font-size: clamp(37px, 8.5vw, 52px);
    letter-spacing: -1.8px;
  }
  .hero {
    padding-top: 32px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
    margin-bottom: 24px;
  }
  .hero-grid {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 24px;
    padding-bottom: 30px;
  }
  .hero-art {
    width: 96px;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .real-portrait {
    width: 96px;
    flex-shrink: 0;
  }
  .portrait-signature {
    text-align: left;
    white-space: nowrap;
    font-size: 12px;
    margin: 0;
  }
  .portrait-signature span {
    font-size: 10px;
  }
  .intro {
    font-size: 15px;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .btn {
    width: 100%;
    min-height: 48px;
  }
  .hero-tools {
    gap: 15px;
    font-size: 10px;
  }
  .hero-foot {
    font-size: 9px;
    letter-spacing: .6px;
  }
  section {
    padding-block: 34px;
  }
  .section-top {
    align-items: start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
  }
  .section-top .text-link {
    font-size: 11px;
  }
  .service-row summary {
    gap: 14px;
    padding-block: 20px;
  }
  .service-row summary > span {
    font-size: 16px;
  }
  .service-row small {
    font-size: 12px;
  }
  .service-body {
    padding: 0 0 22px 36px;
  }
  .service-body p {
    font-size: 13px;
  }
  .project-deck {
    margin-top: 0;
    padding-block: 5px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .deck-card {
    width: 100%;
    padding: 23px;
  }
  .deck-card:hover {
    transform: translateY(-3px);
  }
  .home-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stack-item {
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
  }
  .contact {
    padding: 25px 20px;
  }
  .contact-row {
    display: block;
  }
  .contact-row p {
    margin-bottom: 24px;
  }
  .socials {
    flex-direction: column;
    gap: 15px;
    margin-top: 26px;
  }
  .socials a {
    font-size: 11px;
  }
  .page-heading {
    padding-top: 35px;
    padding-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .project {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 23px;
    padding-block: 27px;
  }
  .project h3 {
    font-size: 25px;
  }
  .project p {
    font-size: 14px;
  }
  .project-visual {
    padding: 14px;
  }
  .mock-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .mock-side {
    display: none;
  }
  .mock-stats {
    margin-block: 12px;
  }
  .small-copy {
    display: none;
  }
  .project .text-link, .project-details summary {
    min-height: 44px;
  }
  .showcase-dialog {
    padding: 12px;
  }
  .showcase-header h2 {
    font-size: 15px;
  }
  .showcase-stage {
    position: relative;
    display: block;
    padding-bottom: 60px;
  }
  .showcase-stage img {
    width: 100%;
    height: auto;
    max-height: 65dvh;
  }
  .showcase-prev, .showcase-next {
    position: absolute;
    bottom: 0;
    width: 48px;
    height: 48px;
  }
  .showcase-prev {
    left: calc(50% - 58px);
  }
  .showcase-next {
    right: calc(50% - 58px);
  }
  .skills {
    grid-template-columns: 1fr;
  }
  .skill, .background-panel {
    padding: 22px;
  }
  .certificate-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .certificate-thumbnail {
    width: 120px;
    height: 88px;
  }
  .certificate-info h4 {
    font-size: 14px;
  }
}
@media (max-width: 340px) {
  main > .wrap {
    padding-inline: 16px;
  }
  .hero-art {
    gap: 12px;
  }
  .real-portrait {
    width: 80px;
  }
  .portrait-signature {
    font-size: 11px;
  }
  .service-body {
    padding-left: 0;
  }
  .tag {
    font-size: 9px;
  }
}
@media (max-height: 640px) and (min-width: 961px) {
  nav.wrap {
    padding-block: 20px;
    gap: 24px;
  }
  .navlinks a {
    padding-block: 7px;
  }
  .nav-footer {
    gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal-ready {
    opacity: 1;
    transform: none;
  }
  [data-portrait], [data-pupil] {
    transform: none !important;
  }
}
@media print {
  main {
    margin: 0;
  }
  :root {
    --paper: white;
    --surface: white;
    --ink: black;
    --muted: var(--tone-333);
    --line: var(--tone-ccc);
  }
  .reveal-ready {
    opacity: 1;
    transform: none;
  }
  .project, .skills, .profile-left, .training-grid {
    display: block;
  }
  .deck-card, .deck-card:nth-child(even) {
    transform: none;
  }
  a {
    color: black;
  }
}
.contribution {
  border-left: 2px solid var(--tone-78608f);
  padding-left: 14px;
  margin-top: 23px;
}
.contribution > span {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: var(--tone-ab8ec3);
}
.contribution p {
  margin: 7px 0 0;
  font-size: 12px;
  color: var(--tone-b8a6c8);
}
.hero-tools {
  flex-wrap: wrap;
}
.hero-tools a {
  color: var(--tone-b5a0ce);
  border-bottom: 1px solid var(--tone-514160);
}
/* Monochrome brand marks need a light silhouette on the dark surface. */
.stack-logo[src$="/github.svg"],
.stack-logo[src$="/materialdesign.svg"] {
  filter: brightness(0) invert(1);
}

@media print { header, .reading-progress, .actions, .hero-art, .socials, .back-top { display: none; } }

.game-overview {
  padding: 30px;
  background: var(--tone-1c1b19);
  border-color: var(--tone-494338);
}
.game-overview > img {
  display: block;
  margin-bottom: 24px;
}
.game-overview .section-no {
  color: var(--tone-afa18a);
}
.game-overview h3 {
  margin: 16px 0;
  color: var(--tone-e0d7c6);
  font-size: 30px;
}
.game-overview h3 span {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 400;
  color: var(--tone-a99b84);
}
.game-overview p,
.game-overview ul {
  color: var(--tone-b1a58f);
  font-size: 12px;
}
.game-overview ul {
  padding-left: 17px;
  margin-bottom: 0;
  line-height: 2;
}

/* Three project summaries need their own reading space. */
.project-deck:has(> .deck-card:nth-child(3)) {
  gap: 18px;
  padding-inline: 8px;
}
.project-deck:has(> .deck-card:nth-child(3)) > .deck-card {
  flex: 1 1 260px;
  max-width: 355px;
  margin: 0;
  transform: rotate(-2deg);
}
.project-deck:has(> .deck-card:nth-child(3)) > .deck-card:nth-child(even) {
  transform: rotate(2deg);
}
.project-deck:has(> .deck-card:nth-child(3)) > .deck-card:hover,
.project-deck:has(> .deck-card:nth-child(3)) > .deck-card:focus-visible {
  transform: translateY(-6px);
}
@media (max-width: 960px) {
  .project-deck:has(> .deck-card:nth-child(3)) {
    padding-inline: 0;
  }
  .project-deck:has(> .deck-card:nth-child(3)) > .deck-card:nth-child(n) {
    transform: none;
  }
}
@media (max-width: 640px) {
  .project-deck:has(> .deck-card:nth-child(3)) > .deck-card {
    max-width: 100%;
  }
}

/* Work history uses dates and typography, with a quiet chronological rail. */
.work-history {
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
}
.work-heading {
  margin-bottom: 34px;
}
.work-heading h3 {
  margin: 10px 0 0;
  font-size: 27px;
}
.work-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.work-entry {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 38px;
  position: relative;
  padding-bottom: 34px;
}
.work-entry::before {
  content: '';
  position: absolute;
  left: 157px;
  top: 9px;
  bottom: -9px;
  width: 1px;
  background: var(--tone-37323e);
}
.work-entry::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 154px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--tone-776c84);
  background: var(--paper);
}
.work-entry.work-current::after {
  border-color: var(--tone-b5a0cc);
  background: var(--tone-b5a0cc);
}
.work-entry:last-child {
  padding-bottom: 0;
}
.work-entry:last-child::before {
  display: none;
}
.work-period {
  padding-top: 3px;
  color: var(--tone-9c94a5);
  font-size: 11px;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
}
.work-current .work-period {
  color: var(--tone-c4afd9);
}
.work-body {
  min-width: 0;
  padding-bottom: 29px;
  border-bottom: 1px solid var(--tone-2e2a34);
}
.work-entry:last-child .work-body {
  border-bottom: 0;
  padding-bottom: 0;
}
.work-body h4 {
  font-size: 21px;
  line-height: 1.4;
  margin: 0 0 8px;
  font-weight: 550;
  letter-spacing: -.5px;
}
.work-body .job-company {
  color: var(--tone-b7aabd);
  font-size: 13px;
  margin: 0;
}
.work-body .job-specialty {
  color: var(--tone-807787);
  font-size: 11px;
  margin: 4px 0 0;
}
.work-body .job-description {
  margin: 17px 0 0;
  max-width: 570px;
  color: var(--tone-9f96a8);
  font-size: 13px;
  line-height: 1.85;
}
.work-responsibilities {
  margin-top: 15px;
  font-size: 12px;
  color: var(--tone-b5a2c8);
}
.work-responsibilities summary {
  padding: 8px 0;
  width: fit-content;
}
.work-responsibilities .job-duties {
  max-width: 570px;
  font-size: 13px;
  color: var(--tone-9f96a8);
}
@media (max-width: 640px) {
  .work-heading {
    margin-bottom: 26px;
  }
  .work-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 0 0 27px 25px;
  }
  .work-entry::before {
    left: 3px;
    top: 10px;
    bottom: -10px;
  }
  .work-entry::after {
    left: 0;
    top: 9px;
  }
  .work-period {
    font-size: 10px;
  }
  .work-body h4 {
    font-size: 19px;
  }
  .work-body {
    padding-bottom: 23px;
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --tone-0003: #f7f7f733;
  --tone-0004: #f7f7f744;
  --tone-08060ded: #08060ded;
  --tone-111114: #eaeaed;
  --tone-111a13: #e6eee8;
  --tone-141118: #eae7ee;
  --tone-141417: #e9e9eb;
  --tone-141417f5: #e9e9ebf5;
  --tone-18101f: #e9e3ee;
  --tone-19171d: #e6e4ea;
  --tone-19191f: #e3e3e9;
  --tone-1a171e: #e6e4ea;
  --tone-1b1621: #e6e1eb;
  --tone-1b211e: #e2e7e5;
  --tone-1c1723: #e4e0eb;
  --tone-1c1b19: #e8e7e6;
  --tone-202027: #dedee4;
  --tone-21172e: #e1dbe9;
  --tone-211a29: #e2dce9;
  --tone-211a2a: #e1dce9;
  --tone-211e27: #e1dee6;
  --tone-212026: #e0dfe4;
  --tone-27202f: #ded9e5;
  --tone-28222f: #ded9e3;
  --tone-292032: #ded7e5;
  --tone-292330: #ddd8e3;
  --tone-2b382c: #d4ded4;
  --tone-2e2a34: #d9d6de;
  --tone-302a3a: #d7d2df;
  --tone-303038: #d4d4da;
  --tone-333: #d8d8d8;
  --tone-37323e: #d4d0d9;
  --tone-3a3144: #d3ccda;
  --tone-3a443c: #cdd4ce;
  --tone-3b3046: #d3cbdb;
  --tone-3b3543: #d1cdd7;
  --tone-3b483d: #cad4cb;
  --tone-403749: #d0c9d6;
  --tone-424446: #cccdcf;
  --tone-48414f: #cbc6d0;
  --tone-493c56: #cac1d4;
  --tone-494338: #51465f;
  --tone-51405f: #c7bbd1;
  --tone-514160: #c6bad1;
  --tone-55416b: #c1b3d1;
  --tone-59476c: #c0b3cd;
  --tone-5b476e: #51465f;
  --tone-60516e: #bcb2c6;
  --tone-67507b: #b9a9c7;
  --tone-67517f: #b6a7c7;
  --tone-6b507f: #baa7c7;
  --tone-776c84: #aca5b5;
  --tone-78608f: #ae9dbd;
  --tone-797480: #51465f;
  --tone-7c6393: #51465f;
  --tone-806497: #ab98bb;
  --tone-807787: #51465f;
  --tone-81798c: #51465f;
  --tone-817a8c: #51465f;
  --tone-888391: #51465f;
  --tone-8a7a99: #51465f;
  --tone-8b7b9c: #51465f;
  --tone-8d8598: #51465f;
  --tone-8e859c: #51465f;
  --tone-97909f: #51465f;
  --tone-9c94a5: #51465f;
  --tone-9f8bad: #51465f;
  --tone-9f96a8: #51465f;
  --tone-a38cb7: #51465f;
  --tone-a38db8: #51465f;
  --tone-a39aaf: #51465f;
  --tone-a4a1ae: #8b8798;
  --tone-a58abf: #51465f;
  --tone-a795b8: #51465f;
  --tone-a795b9: #51465f;
  --tone-a994bb: #51465f;
  --tone-a99b84: #51465f;
  --tone-aaa4b3: #51465f;
  --tone-ab8ec3: #51465f;
  --tone-ab9db5: #51465f;
  --tone-ada7b8: #51465f;
  --tone-afa18a: #51465f;
  --tone-b1a58f: #51465f;
  --tone-b2c4b2: #51465f;
  --tone-b3a0c2: #51465f;
  --tone-b4a5c3: #51465f;
  --tone-b5a0cc: #51465f;
  --tone-b5a0ce: #51465f;
  --tone-b5a2c8: #51465f;
  --tone-b5b1bd: #51465f;
  --tone-b7aabd: #51465f;
  --tone-b7adbf: #51465f;
  --tone-b8a1ee: #705e99;
  --tone-b8a6c8: #51465f;
  --tone-b9a9c9: #51465f;
  --tone-beb0cf: #51465f;
  --tone-c1b0d1: #51465f;
  --tone-c4afd9: #51465f;
  --tone-c6a6e4: #51465f;
  --tone-c6b4d8: #51465f;
  --tone-c7b2e3: #51465f;
  --tone-cbb9f2: #69578f;
  --tone-ccb7e2: #51465f;
  --tone-ccc: #797979;
  --tone-d6cedf: #51465f;
  --tone-dce5dc: #51465f;
  --tone-e0d7c6: #51465f;
  --tone-e1d7ec: #51465f;
  --tone-e3d4fc: #51465f;
  --tone-e6dfec: #51465f;
  --tone-eee3fa: #51465f;
  --tone-efe5fa: #51465f;
  --tone-efedf3: #5c4f76;
  --tone-f3f1f5: #615171;
  --paper: #f7f6f3;
  --surface: #ffffff;
  --raised: #eeecf2;
  --ink: #23202b;
  --muted: #5c5667;
  --line: #d8d3df;
  --accent: #6943a0;
  --accent-dark: #ffffff;
  --tone-cbb9f2: #58358b;
}
/* A quiet utility control in the brand row, separate from page navigation. */
.nav-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  flex: 0 0 36px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  transition: color .18s, background .18s;
}
.theme-toggle:hover {
  color: var(--accent);
  background: var(--raised);
}
.theme-toggle:focus-visible { outline-offset: 2px; }
.theme-toggle .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
.theme-toggle .theme-moon { display: none; }
html[data-theme="light"] .theme-sun { display: none; }
html[data-theme="light"] .theme-moon { display: inline-block; }
@media (max-width: 960px) {
  nav.wrap { gap: 12px; }
  .nav-brand { flex: 1; min-width: 0; width: auto; }
  .mobile-menu { margin-left: 0; }
}
@media (max-width: 960px), (pointer: coarse) {
  .theme-toggle { width: 44px; height: 44px; flex-basis: 44px; }
}
@media print { .theme-toggle { display: none; } }
html[data-theme="light"] .unity-logo,
html[data-theme="light"] .stack-logo[src$="/github.svg"],
html[data-theme="light"] .stack-logo[src$="/materialdesign.svg"] {
  filter: brightness(0);
}
