@font-face {
  font-family: Inter;
  src: url('./assets/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #262a30;
  --muted: #666c75;
  --link: #245a94;
  --line: #e2e5e8;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 26px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 15px/1.75 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 930px; padding: 0 38px; margin: 0 auto; }
a { color: var(--link); text-decoration: underline; text-decoration-color: #aabdd2; text-underline-offset: 3px; }
a:hover { color: #173b62; text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 24px 0 19px; border-bottom: 1px solid var(--line); font-size: 12px; }
.home-link { color: #555b63; text-decoration: none; }
nav { display: flex; gap: 24px; }
nav a { color: #555b63; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.profile { display: grid; grid-template-columns: 1fr 148px; column-gap: 44px; padding-top: 47px; }
.profile-heading { align-self: center; }
h1 { margin: 0 0 7px; font-size: 32px; font-weight: 600; letter-spacing: -1.1px; line-height: 1.25; }
.byline { color: var(--muted); font-size: 13px; margin: 0; }
.profile-links { display: flex; gap: 13px; align-items: center; font-size: 13px; margin-top: 16px; }
.profile-links span { color: #b8bec5; font-size: 11px; }
.portrait { width: 148px; height: 148px; object-fit: cover; border-radius: 3px; }
.bio { grid-column: 1 / -1; margin-top: 26px; }
p { margin: 0 0 15px; }
.bio p:last-child { margin-bottom: 0; }
.section { margin-top: 43px; }
h2 { font-size: 21px; line-height: 1.4; font-weight: 600; letter-spacing: -.45px; margin: 0 0 19px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
h3 { font-size: 15px; line-height: 1.6; font-weight: 600; margin: 0; }
.research-entry { margin-top: 22px; }
.research-entry p { margin-top: 6px; }
.entry-type { display: inline-block; font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 9px; }
.note { font-size: 12px; color: var(--muted); margin-top: 5px; }
.history { padding-top: 2px; }
.position { display: grid; grid-template-columns: 104px 1fr; gap: 25px; padding-bottom: 30px; }
.position:last-child { padding-bottom: 0; }
.period { font-size: 12px; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.company-logo { display: block; width: 94px; max-height: 36px; object-fit: contain; object-position: left center; margin-top: 14px; }
.logo-pranaalpha { width: 40px; max-height: 40px; }
.logo-samsung { width: 96px; }
.position-content { border-left: 1px solid var(--line); padding-left: 23px; position: relative; }
.position-content::before { content: ''; position: absolute; left: -3px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #a4adb8; }
.position-content h3 { font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.role { font-size: 12px; color: var(--muted); margin: 1px 0 12px; }
.position-content p, .position-content li { font-size: 14px; }
.position-content p:last-child, .position-content ul:last-child { margin-bottom: 0; }
.position-content ul { margin: 0 0 15px; padding-left: 18px; }
.position-content li { padding-left: 3px; margin-bottom: 12px; }
.position-content strong { font-weight: 600; }
.publication { margin: 0 0 24px; }
.publication p { margin-bottom: 0; font-size: 14px; }
.publication .meta { font-size: 12px; color: var(--muted); margin: 4px 0 7px; }
.patent-record { display: grid; grid-template-columns: 175px 1fr; gap: 25px; align-items: start; margin-top: 18px; }
.patent-preview { display: block; border: 1px solid var(--line); background: #fff; }
.patent-preview img { display: block; width: 100%; height: auto; }
.patent-facts { margin: 15px 0; font-size: 12px; }
.patent-facts div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; margin-bottom: 4px; }
.patent-facts dt { color: var(--muted); }
.patent-facts dd { margin: 0; }
.publication .patent-links { font-size: 12px; }
.publication .source-note { font-size: 11px; color: var(--muted); margin-top: 10px; }
.code-list { padding-left: 18px; margin: 0; }
.code-list li { margin-bottom: 15px; padding-left: 3px; }
.code-list a { font-size: 14px; font-weight: 500; }
.code-list p { font-size: 13px; color: #565e68; margin: 2px 0 0; }
#background p { font-size: 14px; }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 21px 0 32px; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); }
.skip { position: absolute; top: -100px; left: 15px; background: #fff; padding: 12px; }
.skip:focus { top: 12px; z-index: 10; }
@media (max-width: 650px) {
  .page { padding: 0 23px; }
  body { font-size: 14px; }
  .site-header { padding: 19px 0 15px; font-size: 11px; gap: 15px; }
  nav { gap: 16px; }
  .home-link { display: none; }
  .profile { grid-template-columns: 1fr 92px; gap: 19px; padding-top: 32px; }
  h1 { font-size: 26px; letter-spacing: -.75px; }
  .byline { font-size: 11px; line-height: 1.6; max-width: 210px; }
  .portrait { width: 92px; height: 104px; }
  .profile-links { font-size: 12px; gap: 10px; margin-top: 12px; }
  .bio { margin-top: 5px; }
  .section { margin-top: 34px; }
  h2 { font-size: 19px; margin-bottom: 17px; }
  .entry-type { display: block; margin: 2px 0 0; }
  .research-entry { margin-top: 20px; }
  .research-entry p { font-size: 13px; }
  .position { grid-template-columns: 1fr; gap: 4px; padding-bottom: 27px; }
  .period { font-size: 11px; padding-left: 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 32px; margin-bottom: 5px; }
  .company-logo { width: 83px; max-height: 25px; margin-top: 0; }
  .logo-pranaalpha { width: 30px; max-height: 30px; }
  .patent-record { grid-template-columns: 95px 1fr; gap: 16px; }
  .patent-facts div { display: block; margin-bottom: 8px; }
  .patent-facts dt { font-size: 10px; }
  .patent-facts dd { font-size: 11px; }
  .position-content { padding-left: 17px; }
  .position-content h3 { font-size: 16px; }
  .position-content p, .position-content li { font-size: 13px; }
  .role { font-size: 11px!important; }
  .publication h3 { font-size: 14px; }
  .publication p { font-size: 13px; }
  .publication .meta { font-size: 11px; }
  #background p { font-size: 13px; }
  #background a { overflow-wrap: anywhere; }
  footer { font-size: 10px; }
}
@media print {
  .site-header, .skip, footer a { display: none; }
  .page { max-width: none; padding: 0; }
  .profile { padding-top: 0; }
  body { font-size: 11px; }
  .section { margin-top: 25px; }
  a { color: inherit; }
  h2, h3 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
}

.work-figure { margin: 20px 0 0; }
.work-figure img { display: block; width: 100%; height: auto; border-radius: 2px; }
.work-figure a { display: block; }
.work-figure figcaption { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.work-figure figcaption a { display: inline; }
.neo-photo { max-width: 340px; }
.evidence-detail { margin: 16px 0 0; font-size: 12px; }
.evidence-detail summary { cursor: pointer; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.evidence-detail summary:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
.evidence-detail .work-figure { margin-top: 14px; }

/* GitHub contribution calendar, using the site's existing typography and colors. */
.github-contributions { margin: 3px 0 26px; }
.github-contributions-link { display: block; overflow-x: auto; }
.github-contributions-link img { width: 100%; min-width: 720px; max-width: none; }
.github-contributions figcaption { margin-top: 9px; }

/* Hand-drawn notebook cards for selected work. All content remains HTML text and links. */
.work-intro { font-size:14px; margin:0 0 25px; }
.work-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 19px;
  list-style:none;
  padding:0;
  margin:0;
}
.work-item {
  position:relative;
  min-width:0;
  display:grid;
  grid-template-columns:60px minmax(0,1fr);
  gap:17px;
  padding:19px 19px 18px;
  border:1px solid #b8bab9;
  border-radius:11px;
  background:#fffefa;
  box-shadow:0 2px 0 rgba(42,46,47,.045);
}
.work-item::after {
  content:"";
  position:absolute;
  inset:3px;
  border:1px solid rgba(80,82,82,.06);
  border-radius:8px;
  pointer-events:none;
}
.work-icon {
  width:60px;
  height:60px;
  display:grid;
  place-items:center;
  border-radius:8px;
  border:1px solid #e8e7e2;
  color:#636763;
  background:repeating-linear-gradient(135deg,#f7f7f3 0px,#f7f7f3 3px,#efefeb 3px,#efefeb 4px);
}
.work-icon svg { width:42px; height:42px; overflow:visible; }
.work-card-body { min-width:0; display:flex; flex-direction:column; }
.work-item h3 {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:4px 9px;
  justify-content:space-between;
  margin:0;
  font-size:15px;
  line-height:1.4;
  font-weight:600;
}
.work-item h3 a { min-width:0; overflow-wrap:anywhere; }
.work-item .entry-type {
  display:inline-block;
  flex:0 1 auto;
  max-width:100%;
  margin:0;
  padding:2px 8px 3px;
  border:1px solid #c9c8c2;
  border-radius:100px;
  font-size:10px;
  line-height:1.25;
  color:#5b5c59;
  background:transparent;
  white-space:normal;
}
.work-item p { font-size:13px; line-height:1.68; margin:9px 0 10px; }
.work-item .evidence { font-size:11px; line-height:1.7; color:var(--muted); margin-top:auto; }
.work-item .evidence a { white-space:normal; }
.work-item .evidence span { color:#a1a6a8; margin:0 4px; }
.work-item .publication { margin:0; }
.work-item .publication .meta { font-size:11px; margin:4px 0 7px; color:var(--muted); }
.work-item .publication p { margin:8px 0 10px; }
.work-item .evidence-detail { margin:7px 0 0; }
.work-item .neo-photo { max-width:100%; }
.work-item:focus-within { border-color:#8a9dad; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .work-item { transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
  .work-item:hover { border-color:#979d9b; box-shadow:0 5px 12px rgba(42,46,47,.055); transform:translateY(-2px); }
}
@media (max-width:750px) {
  .work-grid { grid-template-columns:1fr; gap:13px; }
}
@media (max-width:650px) {
  .work-intro { font-size:13px; }
  .work-item { grid-template-columns:52px minmax(0,1fr); gap:13px; padding:16px 14px; }
  .work-icon { width:52px; height:52px; }
  .work-icon svg { width:35px; height:35px; }
  .work-item p { font-size:13px; }
}

/* A natural-history illustration that follows scroll, without covering career content. */
.history { position:relative; isolation:isolate }
.position { display:grid; grid-template-columns:104px minmax(0,1fr); gap:120px; position:relative; z-index:1 }
.position-content { border-left:0; padding-left:0 }
.position-content::before { display:none }
.tree-svg { position:absolute; inset:0; width:100%; height:100%; display:block; overflow:visible; pointer-events:none; z-index:2; user-select:none }
.tree-trunk-shadow { fill:#34251a; opacity:.20; filter:url(#soft-shadow) }
.tree-trunk { fill:url(#bark-tile); stroke:#443225; stroke-opacity:.52; stroke-width:2 }
.tree-trunk-light { fill:none; stroke:#dec09a; stroke-width:8; opacity:.20; filter:url(#soft-shadow) }
.tree-bark-rift { fill:none; stroke:#35281f; stroke-width:1.3; opacity:.35; stroke-linecap:round }
.tree-bark-glint { fill:none; stroke:#dfb98a; stroke-width:1; opacity:.42; stroke-linecap:round }
.tree-limb { fill:none; stroke:#6c4c36; stroke-width:10; stroke-linecap:round; stroke-linejoin:round }
.tree-limb-shine { fill:none; stroke:#c19a6b; stroke-width:3; opacity:.7; stroke-linecap:round }
.tree-leaf { fill:#718268; opacity:.67 }
.tree-leaf-light { fill:#a2ad91; opacity:.50 }
.snake-behind-dark { fill:none; stroke:#241d18; stroke-width:66; stroke-linecap:round; stroke-linejoin:round; opacity:.92 }
.snake-behind-skin { fill:none; stroke:url(#snake-texture); stroke-width:59; stroke-linecap:round; stroke-linejoin:round; opacity:.83 }
.snake-behind-shade { fill:none; stroke:#1e1d17; stroke-width:9; stroke-linecap:round; opacity:.18 }
.snake-contact { fill:none; stroke:#1c2118; stroke-width:73; stroke-linecap:round; stroke-linejoin:round; opacity:.27; filter:url(#coil-contact) }
.snake-outer { fill:none; stroke:#2b271f; stroke-width:64; stroke-linecap:round; stroke-linejoin:round }
.snake-skin { fill:none; stroke:url(#snake-texture); stroke-width:58; stroke-linecap:round; stroke-linejoin:round }
.snake-cool-shade { fill:none; stroke:#322b23; stroke-width:16; stroke-linecap:round; opacity:.22; filter:url(#soft-shadow); transform:translate(8px,0) }
.snake-highlight { fill:none; stroke:#efd6a3; stroke-width:8; stroke-linecap:round; opacity:.33; filter:url(#soft-shadow); transform:translate(-10px,0) }
.snake-mark { fill:#3e3022; stroke:#c9aa72; stroke-width:2.1; stroke-opacity:.62; opacity:.88 }
.snake-mark-inside { fill:#a07f4d; opacity:.46 }
.snake-speck { fill:#e7cca0; opacity:.42 }
.python-head { filter:url(#head-shadow) }
.python-head .lower-jaw { fill:#ae9165; stroke:#443e2b; stroke-width:1.3 }
.python-head .head-top { fill:url(#head-shade); stroke:#433725; stroke-width:1.6 }
.python-head .head-mottle { fill:#4c3b27; opacity:.76 }
.python-head .head-mottle-light { fill:#d2b983; opacity:.68 }
.python-head .eyelid { fill:#423523 }
.python-head .eye { fill:#131b10; stroke:#dbc48f; stroke-width:.85 }
.python-head .eye-glint { fill:#fff4d0; opacity:.86 }
.python-head .mouth { fill:none; stroke:#514233; stroke-width:1.2; opacity:.68 }
.python-head .nostril { fill:#241d16 }
.tree-hint { display:inline-flex; align-items:center; gap:8px }
.tree-hint:before { content:''; display:inline-block; width:20px; height:7px; border-radius:10px; background:linear-gradient(90deg,#423824,#bda477,#4b3824) }
@media (max-width:650px) {
  .position { display:block; padding-left:75px; min-width:0 }
  .position .period { padding:0; display:flex; align-items:center; justify-content:space-between; min-height:25px; margin-bottom:6px }
  .position-content { padding:0 }
  .snake-behind-dark { stroke-width:36 }
  .snake-behind-skin { stroke-width:32 }
  .snake-behind-shade { stroke-width:5 }
  .snake-contact { stroke-width:42 }
  .snake-outer { stroke-width:40 }
  .snake-skin { stroke-width:34 }
  .snake-cool-shade { stroke-width:7; transform:translate(4px,0) }
  .snake-highlight { stroke-width:5; transform:translate(-5px,0) }
  .tree-limb { stroke-width:6 }
  .tree-limb-shine { stroke-width:2 }
  .tree-trunk-light { stroke-width:4 }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto }
  .snake-animated, .python-head { display:none }
}

/* Notebook-inspired writing and patent cards, matched to the Projects grid. */
.writing-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin:0 0 17px;
}
#writing .writing-card {
  min-width:0;
  position:relative;
  margin:0;
  padding:19px;
  border:1px solid #b8bab9;
  border-radius:11px;
  background:#fffefa;
  box-shadow:0 2px 0 rgba(42,46,47,.045);
}
#writing .writing-card::after {
  content:"";
  position:absolute;
  inset:3px;
  pointer-events:none;
  border:1px solid rgba(80,82,82,.06);
  border-radius:8px;
}
.writing-card-top {
  display:flex;
  gap:10px;
  align-items:flex-start;
  justify-content:space-between;
  margin:0 0 14px;
}
.writing-icon {
  width:52px;
  height:52px;
  flex:0 0 52px;
  display:grid;
  place-items:center;
  border-radius:8px;
  border:1px solid #e8e7e2;
  color:#636763;
  background:repeating-linear-gradient(135deg,#f7f7f3 0px,#f7f7f3 3px,#efefeb 3px,#efefeb 4px);
}
.writing-icon svg {width:38px;height:38px;}
.writing-kind {
  display:inline-block;
  max-width:calc(100% - 58px);
  font-size:10px;
  line-height:1.25;
  color:#5b5c59;
  border:1px solid #c9c8c2;
  border-radius:100px;
  padding:3px 8px;
  text-align:center;
}
#writing .writing-card h3 {
  font-size:15px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
#writing .writing-card p {
  font-size:13px;
  line-height:1.7;
  margin:9px 0 0;
}
#writing .writing-card .meta {
  font-size:11px;
  line-height:1.6;
  color:var(--muted);
  margin:7px 0 0;
}
#writing .writing-patent {
  padding:21px;
}
#writing .writing-patent .writing-card-top {
  margin-bottom:13px;
}
#writing .writing-patent .patent-record {
  grid-template-columns:175px minmax(0,1fr);
  gap:25px;
}
#writing .writing-patent .patent-preview {border-color:var(--line);}
#writing .writing-patent .patent-facts {font-size:12px;}
#writing .writing-patent .patent-facts dt {font-size:12px;}
#writing .writing-patent .patent-facts dd {font-size:12px;}
#writing .writing-patent .source-note {font-size:11px;}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  #writing .writing-card {
    transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
  }
  #writing .writing-card:hover {
    border-color:#979d9b;
    box-shadow:0 5px 12px rgba(42,46,47,.055);
    transform:translateY(-2px);
  }
}
@media (max-width:750px) {
  .writing-grid {grid-template-columns:1fr;gap:13px;}
}
@media (max-width:650px) {
  #writing .writing-card {padding:16px 14px;}
  .writing-icon {width:48px;height:48px;flex-basis:48px;}
  .writing-icon svg {width:35px;height:35px;}
  #writing .writing-patent .patent-record {
    grid-template-columns:minmax(80px,95px) minmax(0,1fr);
    gap:14px;
  }
}
@media (max-width:360px) {
  #writing .writing-patent .patent-record {grid-template-columns:1fr;}
  #writing .writing-patent .patent-preview {max-width:140px;}
}
