:root {
  --paper: #fff;
  --ink: #091c43;
  --muted: #4b6081;
  --plum: #e8263c;
  --blue: #215cff;
  --line: #dce4f1;
  --card: #fff;
  --shadow: 0 18px 42px #091c4312;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.65 'DM Sans', sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
.shell { max-width: 1180px; margin: auto; padding-inline: 40px; }
.topbar { position: sticky; top: 0; z-index: 30; background: #fffffff2; backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.topin { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { font-size: 27px; font-weight: 700; letter-spacing: -1.7px; }
.brand span { color: var(--plum); }
.nav { display: flex; align-items: center; gap: 25px; font-size: 12px; font-weight: 600; }
.nav a:hover, .footer a:hover { color: var(--blue); }
.outline-btn, .solid-btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 6px; padding: 12px 19px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; transition: background .2s, transform .2s; }
.solid-btn { background: var(--plum); border-color: var(--plum); color: white; }
.solid-btn:hover { background: #cb1c30; transform: translateY(-2px); }
.outline-btn:hover { background: #eff4ff; transform: translateY(-2px); }
.hero { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 65px; padding-block: 83px 96px; }
.eyebrow, .section-kicker, .micro, .interest-overline { font: 10px/1.7 'DM Mono', monospace; letter-spacing: 1.4px; text-transform: uppercase; color: #c71c32; }
h1 { font-size: clamp(70px, 8vw, 108px); line-height: 1.02; letter-spacing: -.075em; margin: 23px 0 26px; font-weight: 700; }
h1 em, h2 em { color: var(--plum); font-style: normal; }
.hero-desc { max-width: 540px; font-size: 19px; line-height: 1.75; color: #405473; }
.hero-desc strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.note { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 27px; }
.dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #215cff12; }
.portrait-wrap { position: relative; width: 100%; max-width: 340px; justify-self: center; }
.portrait { height: 408px; border: 9px solid white; outline: 1px solid #dce4f1; box-shadow: var(--shadow); transform: rotate(3deg); overflow: hidden; background: #edf2fc; }
.hero-portrait { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 24%; }
.photo-caption { position: absolute; bottom: -18px; left: 14px; padding: 12px 18px; background: #fff; box-shadow: 0 4px 18px #091c4310; font: 10px 'DM Mono', monospace; transform: rotate(-3deg); letter-spacing: 1px; }
.sticker { position: absolute; top: 18px; right: -27px; width: 86px; height: 86px; display: grid; align-content: center; text-align: center; border-radius: 50%; background: var(--plum); color: white; font: 10px/1.5 'DM Mono', monospace; transform: rotate(12deg); z-index: 2; }
.star { position: absolute; top: -37px; left: -35px; color: var(--blue); font-size: 58px; z-index: 2; }
.ticker { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 21px; border-block: 1px solid var(--line); background: #f5f8ff; padding: 17px 24px; color: #3b547c; font: 10px 'DM Mono', monospace; }
.ticker b { color: var(--plum); font-weight: 400; }
.section { padding-block: 91px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 13px 0 35px; }
.section-head h2 { margin: 0; font-size: clamp(40px, 5vw, 61px); line-height: 1.1; letter-spacing: -.06em; max-width: 670px; }
.section-head p { max-width: 350px; font-size: 14px; color: var(--muted); margin: 0 0 3px; }
.work-overview { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.work-area { display: flex; flex-direction: column; position: relative; min-width: 0; padding: 28px 30px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.work-area:hover, .work-area:focus-within { transform: translateY(-3px); box-shadow: var(--shadow); }
.work-ml, .work-quant { grid-column: span 7; }
.work-ai, .work-stats { grid-column: span 5; }
.work-ml { background: var(--ink); color: white; border-color: var(--ink); }
.work-ai { background: #2152dc; color: white; border-color: #2152dc; }
.work-stats { background: #f1f5ff; }
.work-quant { background: #fff1f3; border-color: #f1d1d7; }
.work-area-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; font: 9px 'DM Mono', monospace; letter-spacing: .9px; color: #426084; }
.work-area-top>span:last-child { font-size: 20px; line-height: 1; }
.work-ml .work-area-top, .work-ai .work-area-top { color: #cfdeff; }
.work-area h3 { font-size: clamp(26px, 3vw, 37px); font-weight: 600; letter-spacing: -1.4px; line-height: 1.15; margin: 21px 0 14px; }
.work-area p { font-size: 13px; line-height: 1.8; max-width: 470px; margin-bottom: 23px; color: #405473; }
.work-ml p, .work-ai p { color: #dce7ff; }
.work-area>a { font-size: 11px; font-weight: 700; align-self: flex-start; margin-top: auto; padding-bottom: 3px; border-bottom: 1px solid #091c4340; }
.work-ml>a, .work-ai>a { border-color: #ffffff55; }
.work-area>a span { display: inline-block; margin-left: 9px; transition: transform .2s; }
.work-area>a:hover span { transform: translate(2px, -2px); }
.model-diagram { display: flex; align-items: center; gap: 18px; padding-top: 27px; font: 28px Georgia, serif; color: #a9c6ff; }
.model-diagram span { display: inline-block; border: 1px solid #ffffff35; padding: 5px 15px 8px; border-radius: 5px; min-width: 68px; text-align: center; }
.model-diagram span:last-child { background: #fa2738; border-color: #fa2738; color: white; }
.model-diagram sub { font-size: 12px; }
.model-diagram i, .workflow-diagram i, .research-sequence i { font-style: normal; opacity: .65; }
.workflow-diagram { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; min-height: 86px; padding-top: 25px; font: 12px 'DM Mono', monospace; }
.workflow-diagram span { padding-block: 10px; border-block: 1px solid #ffffff4d; }
.distribution-sketch { width: min(100%, 260px); height: 65px; margin-top: 23px; overflow: visible; }
.distribution-axis { stroke: #a5b7d4; stroke-width: 1; stroke-dasharray: 3 4; }
.distribution-curve { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.research-sequence { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 88px; padding-top: 23px; color: #a3162b; font: 12px 'DM Mono', monospace; }
.research-sequence span { padding: 10px 13px; border-radius: 5px; background: #fff; border: 1px solid #efcdd3; }
.work-background { border-bottom: 1px solid var(--line); margin-top: 22px; }
.work-background summary { display: flex; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; padding: 17px 2px; color: #3b547c; font-size: 12px; font-weight: 600; }
.work-background summary span { color: #c71c32; font-size: 18px; line-height: 1; }
.work-background[open] summary span { transform: rotate(45deg); }
.work-background-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; padding: 4px 2px 22px; }
.work-background-copy p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; }
.work-background-copy .quote-mottos { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 8px; font-size: 12px; }
.quote-mottos strong { color: var(--ink); }
.quote-mottos span { color: #315b9b; font-size: 10px; }
.experience { background: #f6f8fc; border-block: 1px solid var(--line); }
.timeline { border-left: 1px solid #b4c5e1; margin-left: 8px; padding-left: 29px; }
.experience-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 26px; padding-bottom: 32px; position: relative; }
.experience-row::before { content: ''; position: absolute; top: 8px; left: -34px; width: 9px; height: 9px; background: var(--plum); border-radius: 50%; box-shadow: 0 0 0 4px #f6f8fc; }
.experience-row time { color: #526889; font: 10px/2 'DM Mono', monospace; }
.experience-row h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.4px; }
.experience-row .role { font-size: 13px; color: #194ac2; font-weight: 600; margin-bottom: 6px; }
.experience-row p { font-size: 13px; color: var(--muted); margin-bottom: 0; max-width: 660px; }
.pill { display: block; padding-top: 5px; color: #516888; font: 9px/1.6 'DM Mono', monospace; letter-spacing: 1px; }
.experience-row:first-child .pill { color: #bb1d33; }
.experience-row:nth-child(2) .pill { color: #174cd8; }
.tag { font: 9px 'DM Mono', monospace; border: 1px solid #c9d7ed; color: #345685; padding: 6px 9px; border-radius: 4px; display: inline-block; }
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; }
.research-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; background: white; }
.research-top { display: flex; align-items: center; justify-content: space-between; font: 10px 'DM Mono', monospace; padding: 14px 22px; color: #315b9b; }
.research-arrow { color: var(--plum); font-size: 17px; }
.research-graphic { height: 128px; position: relative; display: flex; align-items: center; padding: 20px 27px; overflow: hidden; color: white; background: var(--ink); }
.graphic-2 { background: #2152dc; }
.graphic-3 { background: #d7273e; }
.graphic-4 { background: #153776; }
.graphic-5 { background: #163e88; }
.diary-diagram { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 10px 'DM Mono', monospace; }
.diary-diagram>span { padding: 10px 13px; border: 1px solid #a8c5ff; border-radius: 5px; }
.diary-diagram i { font-style: normal; color: #ff9caa; }
.research-diary .research-content>p { max-width: 760px; min-height: 0; }
@media(max-width:630px) { .diary-diagram { gap: 8px; flex-wrap: wrap; font-size: 9px; } .diary-diagram>span { padding: 8px; } .graphic-5 { height: auto; min-height: 112px; } }
.graph-grid { position: absolute; inset: 0; background-image: linear-gradient(#ffffff16 1px, transparent 1px), linear-gradient(90deg, #ffffff16 1px, transparent 1px); background-size: 28px 28px; }
.graph-symbol { position: relative; font: italic 75px/1 Georgia, serif; letter-spacing: -6px; }
.graph-code { position: absolute; bottom: 18px; right: 22px; font: 10px 'DM Mono', monospace; }
.research-content { padding: 25px; display: flex; flex-direction: column; flex: 1; }
.research-content h3 { font-size: 25px; letter-spacing: -.7px; margin-bottom: 10px; line-height: 1.2; }
.research-content>p { font-size: 13px; color: var(--muted); line-height: 1.75; min-height: 68px; }
.research-result { display: flex; gap: 17px; align-items: center; padding: 15px 0; margin: 2px 0 16px; border-block: 1px solid var(--line); }
.research-result strong { font-size: 28px; letter-spacing: -1px; color: #c71c32; white-space: nowrap; }
.research-result span { font-size: 11px; color: var(--muted); max-width: 240px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.research-link { color: #174cd8; font-size: 12px; font-weight: 700; margin-top: auto; }
.research-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-footer { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-top: 25px; }
.work-footer p { color: var(--muted); font-size: 13px; max-width: 640px; margin: 0; }
.work-footer strong { color: var(--ink); }
.lab-section { padding-block: 0 16px; }
.lab { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; background: #091c43; color: white; padding: 32px; border-radius: 8px; }
.lab .section-kicker { color: #acc6ff; }
.lab h2 { font-size: 36px; line-height: 1.1; letter-spacing: -1.7px; margin: 10px 0 15px; }
.lab h2 em { color: #ff7b8c; }
.lab p { font-size: 12px; color: #cfddf7; }
.lab canvas { width: 100%; height: 205px; background: #071632; border: 1px solid #3e577e; border-radius: 4px; }
.lab-knobs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lab-knobs label { font: 11px 'DM Mono', monospace; }
.lab-knobs output { color: #ff9dab; }
.lab-knobs input { width: 100%; display: block; margin-top: 12px; accent-color: #fa5367; }
.lab-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.lab-controls button { border: 0; background: #e8263c; color: white; font-weight: 700; font-size: 11px; padding: 10px 14px; border-radius: 4px; }
.lab-meta { color: #c3d4f3; font: 9px/1.5 'DM Mono', monospace; }
.lab-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font: 9px/1.6 'DM Mono', monospace; color: #bbcfef; }
.lab-stats span { padding: 6px 8px; border: 1px solid #3e577e; border-radius: 4px; }
.lab-stats strong { color: white; }
.interests-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 17px; }
.interest-column { display: flex; flex-direction: column; gap: 17px; min-width: 0; }
.interest-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--plum); border-radius: 8px; padding: 25px; }
.interest-books { border-top-color: var(--blue); }
.interest-music { border-top-color: var(--ink); }
.interest-page-link { display: block; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); color: #174cd8; font-size: 11px; font-weight: 700; }
.interest-page-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.interest-overline { color: #315b9b; font-size: 9px; letter-spacing: .6px; }
.interest-symbol { position: absolute; right: 22px; top: 35px; font-size: 45px; color: #e6ecf8; }
.interest-card h3 { font-size: 31px; letter-spacing: -1.2px; margin: 25px 0 12px; }
.interest-card p { font-size: 13px; color: var(--muted); }
.featured-line { font-size: 11px; font-weight: 600; padding: 13px 0; margin-top: auto; color: #214986; }
.featured-line span { color: var(--plum); padding: 0 3px; }
.interest-card details { border-top: 1px solid var(--line); padding-top: 14px; overflow: hidden; }
.interest-card summary { display: flex; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; font-size: 11px; font-weight: 700; color: #174cd8; }
summary::-webkit-details-marker { display: none; }
.interest-card details[open] summary span { transform: rotate(45deg); }
.interest-chips { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 15px; }
.interest-chip { padding: 6px 8px; background: #f1f5ff; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; }
.hobby-card { display: flex; gap: 17px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fe; padding: 21px; }
.hobby-card h3 { font-size: 19px; letter-spacing: -.5px; line-height: 1.25; margin: 0 0 7px; }
.hobby-card p { font-size: 12px; line-height: 1.7; margin: 0; color: var(--muted); }
.hobby-card svg, .hobby-card img { width: 40px; height: 42px; flex: 0 0 40px; object-fit: contain; }
.hobby-card svg { fill: none; stroke: #2152dc; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hobby-lego { background: #fff4f5; }
.hobby-lego svg { stroke: #d32036; }
.hobby-languages { background: #f0f4ff; }
.language-mark { font: 26px/1.4 Georgia, serif; letter-spacing: -2px; width: 40px; flex: 0 0 40px; color: #2152dc; }
.hobby-puzzles { background: white; }
.hobby-puzzles h3 { font-size: 16px; }
.hobby-puzzles img { width: 34px; height: 36px; flex-basis: 34px; }
.hobby-puzzles a { display: inline-block; font-size: 10px; font-weight: 600; color: #174cd8; margin-top: 9px; }
.life-footnote { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.life-footnote>div { padding: 15px 0; border-top: 1px solid var(--line); }
.life-footnote span { font-size: 19px; color: var(--plum); margin-right: 9px; }
.life-footnote strong { font-size: 12px; }
.life-footnote p { font-size: 12px; color: var(--muted); margin: 7px 0 0; }
.camera-roll-top { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin: 40px 0 17px; }
.camera-roll-top>span:last-child { color: var(--muted); font-size: 11px; }
.camera-roll { display: grid; grid-template-columns: 1.18fr 1fr 1fr; gap: 17px; }
.camera-card { position: relative; height: 260px; border-radius: 8px; overflow: hidden; background: var(--ink); }
.camera-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.camera-card:hover img { transform: scale(1.04); }
.camera-card::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #04112be6); }
.camera-card span { position: absolute; bottom: 18px; left: 20px; right: 15px; display: flex; flex-direction: column; z-index: 1; color: white; }
.camera-card b { font-size: 15px; }
.camera-card small { font: 10px/1.8 'DM Mono', monospace; color: #e0ebff; }
#more { border-top: 1px solid var(--line); padding-top: 70px; }
.explore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.explore-grid a { display: flex; flex-direction: column; gap: 13px; position: relative; padding: 25px; min-height: 210px; border: 1px solid transparent; border-radius: 8px; background: #2152dc; color: white; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.explore-grid a:hover, .explore-grid a:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.explore-grid a:nth-child(2) { background: var(--ink); color: white; }
.explore-grid a:nth-child(3) { background: #ffe7ec; color: var(--ink); border-color: #f1d0d7; }
.explore-grid a:nth-child(4) { background: #dee8ff; color: var(--ink); border-color: #cedbfa; }
.explore-grid a:nth-child(5) { background: #dc2038; color: white; }
.explore-grid span { color: #e1eaff; font: 9px 'DM Mono', monospace; letter-spacing: 1px; }
.explore-grid a:nth-child(2) span { color: #ffb1bb; }
.explore-grid a:nth-child(3) span { color: #a5182c; }
.explore-grid a:nth-child(4) span { color: #1843a4; }
.explore-grid a:nth-child(5) span { color: white; }
.explore-grid strong { font-size: 24px; line-height: 1.2; letter-spacing: -1px; }
.explore-grid small { font-size: 12px; line-height: 1.7; max-width: 230px; }
.explore-grid b { position: absolute; right: 5px; bottom: -38px; font-size: 130px; line-height: 1; opacity: .07; pointer-events: none; }
.contact { text-align: center; background: #f5f8ff; border-top: 1px solid var(--line); padding: 88px 24px 80px; }
.contact h2 { font-size: clamp(58px, 7vw, 85px); letter-spacing: -.06em; line-height: 1.1; margin: 15px 0 23px; }
.contact>p { max-width: 580px; margin-inline: auto; color: var(--muted); font-size: 15px; line-height: 1.8; }
.contact-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 29px 0 21px; }
.contact-email { font-weight: 600; font-size: 14px; color: #174cd8; overflow-wrap: anywhere; }
.contact-email:hover { text-decoration: underline; }
.contact .contact-note { font-size: 12px; margin-top: 12px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 27px 90px; font: 10px/1.6 'DM Mono', monospace; color: var(--muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.float-cmd { position: fixed; right: 22px; bottom: 20px; border: 1px solid #425576; border-radius: 30px; padding: 11px 16px; background: var(--ink); color: white; box-shadow: var(--shadow); z-index: 20; font: 10px 'DM Mono', monospace; }
.palette { position: fixed; inset: 0; z-index: 70; background: #07152aab; display: none; justify-content: center; align-items: flex-start; padding: 15vh 18px 20px; }
.palette.open { display: flex; }
.palette-dialog { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 100px #0005; max-width: 560px; width: 100%; }
.palette input { width: 100%; border: 0; background: white; color: var(--ink); padding: 23px; font: 14px 'DM Mono', monospace; }
.palette-results { border-top: 1px solid var(--line); padding: 8px; max-height: 330px; overflow: auto; }
.palette-results button { width: 100%; display: block; text-align: left; padding: 12px 15px; border: 0; border-radius: 5px; background: transparent; font: 12px 'DM Mono', monospace; color: var(--ink); }
.palette-hint { padding: 13px 20px; border-top: 1px solid var(--line); font: 9px 'DM Mono', monospace; color: var(--muted); }
.toast { position: fixed; bottom: 75px; right: 22px; background: var(--ink); color: white; border-radius: 6px; padding: 13px 18px; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 80; }
.toast.visible { opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
::selection { background: #d7e4ff; color: var(--ink); }
@media (max-width: 1000px) {
  .nav { gap: 16px; }
  .hero { gap: 36px; }
  .experience-row { grid-template-columns: 105px 1fr; gap: 16px 22px; }
  .experience-row .pill { grid-column: 2; padding-top: 0; margin-top: -8px; }
  .work-area { padding: 25px; }
  .interest-card { padding: 22px; }
}
@media (max-width: 760px) {
  .shell { padding-inline: 24px; }
  .topin { flex-wrap: wrap; gap: 7px; padding-block: 14px; }
  .nav { overflow-x: auto; max-width: 100%; gap: 20px; padding-bottom: 3px; }
  .nav a { flex-shrink: 0; }
  .nav-contact { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 50px 60px; gap: 52px; }
  h1 { font-size: clamp(66px, 13vw, 96px); }
  .hero-desc { max-width: 590px; font-size: 17px; }
  .portrait-wrap { max-width: 300px; }
  .portrait { height: 350px; }
  .ticker { gap: 12px; font-size: 9px; }
  .section { padding-block: 65px; }
  .section-head { display: block; }
  .section-head p { margin-top: 18px; max-width: 510px; }
  .research-grid { gap: 17px; }
  .research-content { padding: 20px; }
  .research-content h3 { font-size: 22px; }
  .research-result { flex-wrap: wrap; gap: 4px 13px; }
  .research-content>p { min-height: 0; }
  .graph-code { font-size: 8px; right: 12px; }
  .work-footer { flex-wrap: wrap; }
  .lab { grid-template-columns: 1fr; padding: 25px; }
  .work-overview { grid-template-columns: 1fr 1fr; }
  .work-area { grid-column: auto; padding: 24px; }
  .work-area h3 { font-size: 27px; }
  .model-diagram { gap: 10px; font-size: 22px; }
  .model-diagram span { padding-inline: 10px; min-width: 48px; }
  .research-sequence { gap: 10px; font-size: 10px; }
  .research-sequence span { padding: 8px 9px; }
  .interests-grid { grid-template-columns: 1fr; }
  .interest-card { padding: 25px 28px; }
  .camera-roll { grid-template-columns: 1fr 1fr; }
  .camera-card:first-child { grid-column: span 2; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .life-footnote { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 520px) {
  .shell { padding-inline: 20px; }
  .topin { gap: 8px; }
  .nav { font-size: 11px; gap: 19px; width: 100%; }
  .hero-actions { gap: 9px; }
  .hero-actions a { padding: 12px 14px; font-size: 11px; }
  .hero .note { font-size: 10px; align-items: flex-start; }
  .note .dot { margin-top: 5px; }
  .portrait-wrap { max-width: 265px; }
  .portrait { height: 315px; }
  .sticker { right: -13px; }
  .work-overview, .work-background-copy, .research-grid, .explore-grid { grid-template-columns: 1fr; }
  .experience-row { grid-template-columns: 1fr; gap: 5px; }
  .experience-row .pill { grid-column: 1; margin-top: 3px; }
  .research-content>p { min-height: 0; }
  .research-result { flex-wrap: nowrap; gap: 15px; }
  .camera-card { height: 215px; }
  .camera-card span { left: 14px; bottom: 13px; }
  .camera-card b { font-size: 13px; }
  .explore-grid a { min-height: 170px; }
  .contact { padding-block: 65px; }
  .footer { font-size: 9px; }
}
