/* Joshua Rogers · Portfolio v3
   Self-contained layout. No dependency on the original style.css or timeline.
   Change the tokens below to tune the palette and spacing. */
:root {
  --cyan: #00769b;
  --cyan-bright: #58d0ed;
  --ink: #293e48;
  --body-ink: #43545b;
  --muted: #5f7179;
  --night: #071c25;
  --line: rgba(40, 81, 98, .17);
  --paper: rgba(245, 249, 249, .94);
  --rail-width: 228px;
  --page-inset: clamp(30px, 4vw, 58px);
  --mono: "Anonymous Pro", "Liberation Mono", "Courier New", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body { margin: 0; background: var(--night); color: var(--body-ink); font: 17px/1.65 var(--mono); }
img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 4px; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button, summary { font: inherit; }
button, a, summary { touch-action: manipulation; }
button { color: inherit; }
button[hidden], [hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 5px; }
.desktop-rail :focus-visible, .mobile-header :focus-visible, .contact-section :focus-visible, .jetan-project :focus-visible { outline-color: var(--cyan-bright); }
::selection { color: #fff; background: #00769b; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); }
h1, h2, h3, h4, p, dd { overflow-wrap: break-word; }
ul, ol { padding-left: 1.25em; }
h2 { font-size: clamp(25px, 2.4vw, 33px); font-weight: 400; line-height: 1.25; letter-spacing: -.04em; color: var(--cyan); }
h3 { font-size: 24px; line-height: 1.3; letter-spacing: -.025em; }
h4 { font-size: 19px; line-height: 1.4; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 300; padding: 12px 18px; color: #fff; background: var(--night); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sky-background { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #092e3d url("../files/4k-optimized.jpg") center center / cover no-repeat; }
.site-frame { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); min-height: 100vh; }
/* The main area is explicitly in column 2. A fixed rail does not occupy grid space. */
.page-area { grid-column: 2; min-width: 0; padding: 44px clamp(24px, 3vw, 48px) 22px; }
.paper { max-width: 1100px; margin-inline: auto; background: var(--paper); border: 1px solid rgba(240,250,252,.75); box-shadow: 0 20px 70px rgba(0,12,19,.44); }
.paper:focus { outline: none; }
.spectrum { height: 6px; background: linear-gradient(90deg, #0088b2 0%, #0088b2 22%, #647880 22%, #647880 55%, #1596b8 55%, #1596b8 77%, #374c57 77%, #374c57 100%); }
.desktop-rail { position: fixed; inset: 0 auto 0 0; width: var(--rail-width); display: flex; flex-direction: column; padding: 50px 20px 22px; background: rgba(3, 17, 24, .89); border-right: 1px solid rgba(215,240,247,.13); box-shadow: 6px 0 34px rgba(0,13,20,.13); color: #bdced4; overflow-y: auto; z-index: 80; scrollbar-width: thin; }
.brand { display: block; text-decoration: none; color: #e1eaed; }
.brand-name { display: block; border: 1px solid #91a8b2; padding: 9px 5px; text-align: center; font-size: 19px; white-space: nowrap; letter-spacing: -.03em; }
.brand-caption { display: block; text-align: center; margin-top: 12px; font-size: 10px; letter-spacing: .12em; line-height: 1.8; color: #99b0bb; }
.section-navigation { display: grid; margin: 43px -20px 28px; }
.section-navigation a { display: flex; gap: 14px; align-items: center; min-height: 49px; padding: 9px 22px; border-left: 2px solid transparent; color: #bfcdd4; text-decoration: none; font-size: 15px; transition: background .18s ease, color .18s ease; }
.nav-index { font-size: 10px; color: #76929f; }
.nav-arrow { margin-left: auto; opacity: 0; font-size: 21px; line-height: 1; }
.section-navigation a:hover { color: #fff; background: rgba(121,202,230,.06); }
.section-navigation a.is-active { border-left-color: var(--cyan-bright); background: rgba(15,155,199,.13); color: #8cdff1; }
.section-navigation a.is-active .nav-index { color: #80c9df; }
.section-navigation a.is-active .nav-arrow { opacity: 1; }
.rail-bottom { margin-top: auto; padding: 24px 5px 0; }
.rail-label { font-size: 10px; letter-spacing: .15em; color: #91a7b0; margin-bottom: 10px; }
.rail-bottom > a { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 12px; color: #c3d3da; text-decoration: none; }
.rail-bottom > a:hover { color: #8bdff2; }
.rail-footer { padding-top: 27px; font-size: 10px; line-height: 1.9; color: #92a6af; }
.mobile-header { display: none; }
.eyebrow, .meta-label { font-size: 11px; line-height: 1.5; letter-spacing: .10em; font-weight: 700; color: var(--cyan); }
/* Main introduction */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; padding: 62px var(--page-inset) 48px; align-items: center; }
.hero .eyebrow { font-size: 10px; letter-spacing: .1em; }
h1 { margin-top: 19px; font-size: clamp(38px, 3.9vw, 59px); letter-spacing: -.065em; line-height: 1.06; font-weight: 700; }
.name-period { color: var(--cyan); }
.terminal-row { display: flex; align-items: center; gap: 4px; min-height: 48px; margin: 17px 0 19px; }
.terminal-line { color: var(--cyan); font-size: 16px; line-height: 1.4; }
.terminal-prompt { margin-right: 5px; color: #667b83; }
#typing { font-weight: 700; }
#cursor { animation: cursor-blink 1s step-end infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
#cursor.typing { animation: none; opacity: 1; }
.motion-button { width: 34px; height: 44px; flex: 0 0 34px; display: inline-flex; justify-content: center; align-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; opacity: .78; }
.motion-button:hover { opacity: 1; background: rgba(0,118,155,.06); }
.motion-icon { width: 8px; height: 10px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.motion-button[aria-pressed="true"] .motion-icon { width: 0; height: 0; border: 5px solid transparent; border-right: 0; border-left: 7px solid currentColor; }
.hero-description { color: var(--ink); font-size: 20px; line-height: 1.55; max-width: 570px; letter-spacing: -.025em; }
.hero-context { margin-top: 15px; font-size: 14px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 46px; padding: 11px 16px; border: 1px solid transparent; font-size: 13px; line-height: 1.4; text-decoration: none; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.button-primary { color: #fff; background: var(--cyan); border-color: var(--cyan); }
.button-primary:hover { background: #005a79; border-color: #005a79; }
.button-secondary { color: var(--ink); border-color: #8499a3; background: rgba(255,255,255,.18); }
.button-secondary:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(255,255,255,.7); }
.portrait-block { text-align: center; }
.portrait-frame { padding: 7px; border: 1px solid rgba(0,118,155,.4); border-radius: 50%; }
.portrait { display: block; width: 174px; height: 174px; object-fit: cover; border: 2px solid #fff; border-radius: 50%; outline: 1px solid var(--cyan); }
.portrait-caption { margin-top: 20px; color: var(--ink); font-size: 12px; }
.portrait-caption span { display: block; font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: .15em; margin-bottom: 4px; }
.portrait-github { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 34px; font-size: 11px; text-decoration: none; }
.portrait-github img { width: 15px; height: 15px; }
.portrait-github:hover { text-decoration: underline; }
.credentials { display: grid; grid-template-columns: 1.25fr 1fr 1.1fr; margin: 0 var(--page-inset); padding: 23px 0 25px; gap: 22px; border-block: 1px solid var(--line); }
.credentials > div { min-width: 0; }
.credentials .meta-label { display: block; font-size: 9px; color: var(--muted); margin-bottom: 6px; }
.credentials strong { display: block; color: var(--ink); font-size: 15px; font-weight: 700; }
.credentials small { font-size: 12px; font-weight: 400; }
.credentials div > span:last-child { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
/* Sections have no generated nodes, timeline, offsets, or branch lines. */
.content-section { padding: 62px var(--page-inset) 0; scroll-margin-top: 28px; }
.content-section + .content-section { padding-top: 70px; }
.section-heading { margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 11px; }
.section-heading > p:last-child:not(.eyebrow) { margin-top: 11px; color: var(--muted); font-size: 14px; }
.heading-with-link { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.heading-with-link .text-link { flex-shrink: 0; margin-bottom: 3px; }
.profile-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
.prose p + p { margin-top: 16px; }
.prose { font-size: 15px; }
.lead { font-size: 17px; line-height: 1.65; color: var(--ink); }
.focus-note { padding: 22px; background: rgba(228,238,242,.64); border: 1px solid rgba(44,101,123,.18); }
.focus-note > .meta-label { margin-bottom: 14px; font-size: 10px; }
.focus-note > div { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; }
.focus-note > div > span { font-size: 10px; color: var(--cyan); margin-top: 3px; }
.focus-note p { font-size: 12px; line-height: 1.65; }
.focus-note strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.opportunity-note { margin-top: 26px; padding: 16px 19px; background: rgba(0,118,155,.05); font-size: 13px; line-height: 1.65; }
.opportunity-note .meta-label { display: block; font-size: 9px; margin-bottom: 5px; }
.research-card { background: rgba(255,255,255,.45); border: 1px solid var(--line); padding: 30px; font-size: 15px; }
.entry-topline { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 17px; }
.entry-topline .meta-label { font-size: 10px; }
.status-label { display: inline-block; border: 1px solid rgba(0,118,155,.3); color: var(--cyan); padding: 4px 7px; font-size: 9px; line-height: 1.4; letter-spacing: .06em; white-space: nowrap; }
.entry-meta { font-size: 12px; color: var(--muted); margin-top: 8px; }
.entry-meta > span { margin-inline: 7px; }
.supervisor { font-size: 12px; margin-top: 3px; margin-bottom: 21px; }
.research-workflow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 26px 0 24px; border: 1px solid var(--line); background: rgba(232,241,244,.5); }
.research-workflow li { padding: 18px 16px; }
.research-workflow li + li { border-left: 1px solid var(--line); }
.step-number { display: block; color: var(--cyan); font-size: 9px; letter-spacing: .04em; }
.research-workflow strong { display: block; margin-top: 9px; color: var(--ink); font-size: 13px; line-height: 1.45; }
.research-workflow p { font-size: 12px; margin-top: 7px; line-height: 1.65; }
.research-detail { font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; margin-top: 22px; }
.tags li { padding: 3px 7px; border: 1px solid rgba(38,111,138,.24); background: rgba(240,247,248,.5); color: #326579; font-size: 10px; line-height: 1.5; }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; font-size: 12px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
/* Selected projects */
.jetan-project { position: relative; background: linear-gradient(120deg, rgba(8,32,44,.97), rgba(10,47,61,.94)), url("../files/4k-optimized.jpg") center / cover; color: #c9dce3; padding: 31px; border: 1px solid #305765; }
.jetan-project .meta-label { color: #8dcfe3; }
.jetan-project .status-label { color: #a2dfed; border-color: #507988; background: rgba(82,177,203,.07); font-size: 8px; }
.jetan-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; }
.jetan-intro h3 { font-size: 41px; color: #f2f8fa; letter-spacing: -.035em; font-weight: 400; }
.jetan-intro h3 > span { font-size: 27px; color: #66cbe7; margin-left: 13px; }
.project-subtitle { color: #8bd7ec; font-size: 13px; margin-top: 5px; }
.jetan-mark { color: rgba(136,219,241,.36); font-size: 57px; line-height: 1.3; letter-spacing: -.12em; margin-right: 7px; white-space: nowrap; }
.jetan-project > p { margin-top: 22px; max-width: 790px; font-size: 15px; }
.project-capabilities { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 25px 0; padding-block: 20px; border-block: 1px solid rgba(153,200,217,.19); }
.project-capabilities h4 { color: #b2e1ed; font-size: 9px; line-height: 1.5; letter-spacing: .04em; }
.project-capabilities p { margin-top: 8px; color: #c0d1d9; font-size: 12px; line-height: 1.7; }
.project-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.project-bottom .tags { margin-top: 0; }
.jetan-project .tags li { background: rgba(126,199,220,.06); color: #b4d3de; border-color: rgba(140,202,220,.23); }
.button-light { color: #e3f7fc; background: rgba(70,176,211,.08); border-color: #6399ac; white-space: nowrap; font-size: 12px; }
.button-light:hover { color: #092c3b; background: #ace3f1; border-color: #ace3f1; }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.project-card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); background: rgba(255,255,255,.35); font-size: 14px; }
.project-card > .meta-label { font-size: 9px; margin-bottom: 15px; }
.project-card h3 { font-size: 22px; margin-bottom: 15px; }
.detail-list { margin-top: 16px; font-size: 13px; }
.detail-list li { margin-bottom: 8px; padding-left: 2px; }
.detail-list li::marker { color: var(--cyan); }
.project-card .tags { padding-top: 18px; margin-top: auto; }
.card-link { margin-top: 18px; align-self: flex-start; }
/* Teaching and education */
.experience-entry { display: grid; grid-template-columns: 175px minmax(0,1fr); gap: 28px; padding: 27px 0; border-block: 1px solid var(--line); }
.experience-date .meta-label { font-size: 10px; margin-bottom: 10px; }
.experience-date > p:not(.meta-label) { font-size: 12px; }
.experience-date .status-label { margin-top: 14px; font-size: 8px; }
.experience-copy h3 { font-size: 21px; }
.experience-copy > p:not(.entry-meta) { font-size: 14px; margin-top: 16px; }
.experience-copy .text-link { margin-top: 12px; }
.education-card { border: 1px solid var(--line); background: rgba(255,255,255,.35); padding: 29px; }
.education-header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 11px; }
.education-header h3 { font-size: 24px; }
.education-header > p { font-size: 12px; }
.degree-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.degree-row .meta-label { font-size: 9px; margin-bottom: 5px; }
.degree-row h4 { font-size: 17px; }
.degree-date { text-align: right; font-size: 12px; }
.gpa-row { display: flex; gap: 55px; margin-top: 24px; }
.gpa-row dt { font-size: 9px; color: var(--muted); letter-spacing: .07em; }
.gpa-row dd { font-size: 30px; line-height: 1.35; color: var(--cyan); margin-top: 5px; }
.skill-list { border-top: 1px solid var(--line); }
.skill-list > div { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 26px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.skill-list dt { padding-top: 4px; font-size: 10px; color: var(--cyan); font-weight: 700; letter-spacing: .045em; }
.skill-list dd { color: var(--ink); font-size: 15px; }
.skill-list dd > span { color: #80929b; }
.skill-list small { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.interest-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 38px; }
.interest-grid article { padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.interest-symbol { display: block; font-size: 20px; color: #4c8194; margin-bottom: 8px; }
.interest-grid h3 { font-size: 19px; margin-bottom: 10px; }
.interest-grid p { font-size: 14px; }
.direction-note { margin-top: 31px; padding: 25px; background: rgba(223,234,238,.54); }
.direction-note .meta-label { font-size: 9px; }
.direction-note h3 { font-size: 20px; margin-top: 10px; }
.direction-note > p:last-child { margin-top: 12px; font-size: 14px; }
/* Contact closes the paper with the original dark / cyan palette. */
.contact-section { margin-top: 65px; padding: 43px var(--page-inset) 40px; background: rgba(6,30,41,.97); color: #c4d5dd; scroll-margin-top: 24px; }
.contact-section .eyebrow { color: #87cadf; margin-bottom: 16px; }
.contact-section h2 { color: #e3f1f5; font-size: clamp(25px, 2.35vw, 32px); }
.contact-section p:not(.eyebrow) { font-size: 14px; max-width: 670px; margin-top: 18px; }
.email-link { display: inline-block; font-size: clamp(15px, 1.7vw, 21px); color: #85d9ef; margin-top: 21px; text-decoration: none; overflow-wrap: anywhere; line-height: 1.6; }
.email-link:hover { text-decoration: underline; }
.email-link > span { white-space: nowrap; }
.contact-links { display: flex; flex-wrap: wrap; gap: 15px 28px; margin-top: 22px; padding-top: 19px; border-top: 1px solid rgba(153,200,217,.2); }
.contact-links > a { display: inline-flex; align-items: center; gap: 13px; min-height: 40px; color: #d0e2ea; text-decoration: none; font-size: 12px; }
.contact-links > a:hover { color: #80d8ee; }
.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px var(--page-inset); font-size: 10px; }
.page-footer > a { display: inline-flex; align-items: center; min-height: 32px; gap: 10px; text-decoration: none; }
.page-footer > a:hover { text-decoration: underline; }
.outside-footer { text-align: center; color: #d0dce3; font-size: 9px; letter-spacing: .13em; margin-top: 23px; text-shadow: 0 1px 5px #000; }
.outside-footer > span { padding-inline: 9px; }
/* Progressive enhancement: HTML is visible unless the observer successfully starts. */
.reveal-pending { opacity: 0; transform: translateY(16px); transition: opacity .65s ease-out, transform .65s ease-out; }
.reveal-pending.visible { opacity: 1; transform: none; }
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] #cursor { animation: none; }
html[data-motion="off"] .reveal-pending { opacity: 1; transform: none; transition: none; }
@media (min-width: 1051px) and (max-height: 800px) {
  .desktop-rail { padding-top: 26px; }
  .section-navigation { margin-top: 24px; margin-bottom: 15px; }
  .section-navigation a { min-height: 42px; }
  .rail-bottom { padding-top: 13px; }
  .rail-footer { padding-top: 15px; }
}
@media (min-width: 1051px) and (max-width: 1279px) {
  :root { --rail-width: 206px; --page-inset: 34px; }
  .page-area { padding-inline: 26px; }
  .desktop-rail { padding-inline: 16px; }
  .brand-name { font-size: 17px; }
  .section-navigation { margin-inline: -16px; }
  .hero { grid-template-columns: minmax(0, 1fr) 158px; gap: 20px; }
  .portrait { width: 142px; height: 142px; }
  .hero h1 { font-size: 43px; }
  .hero-description { font-size: 18px; }
  .terminal-line { font-size: 14px; }
  .project-capabilities { gap: 15px; }
  .jetan-project, .research-card { padding: 26px; }
  .profile-grid { gap: 22px; }
  .focus-note { padding: 18px; }
}
@media (max-width: 1050px) {
  :root { --page-inset: 42px; }
  html { scroll-padding-top: 0; }
  .site-frame { display: block; }
  .desktop-rail { display: none; }
  .page-area { padding: 28px 30px 20px; }
  .mobile-header { display: flex; position: sticky; top: 0; align-items: center; justify-content: space-between; gap: 20px; z-index: 100; min-height: 72px; padding: 12px 28px; background: rgba(3,20,29,.98); border-bottom: 1px solid rgba(184,217,230,.23); }
  .mobile-brand { text-decoration: none; color: #e0eef2; font-size: 16px; line-height: 1.45; }
  .mobile-brand > span { display: block; font-size: 8px; letter-spacing: .12em; color: #a3bbc6; margin-top: 3px; }
  .mobile-navigation > summary { cursor: pointer; display: flex; align-items: center; justify-content: center; list-style: none; gap: 14px; color: #c9e0e9; min-height: 44px; padding: 8px 13px; border: 1px solid #526d7b; font-size: 12px; }
  .mobile-navigation > summary::-webkit-details-marker { display: none; }
  .menu-symbol { display: inline-block; width: 13px; height: 8px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .menu-close-label { display: none; }
  .mobile-navigation[open] .menu-close-label { display: inline; }
  .mobile-navigation[open] .menu-open-label { display: none; }
  .mobile-navigation[open] .menu-symbol { height: 1px; border-bottom: 0; }
  .mobile-menu-panel { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; background: #092531; border-bottom: 1px solid #3b6477; box-shadow: 0 12px 25px rgba(0,12,19,.3); }
  .mobile-menu-panel .section-navigation { grid-template-columns: 1fr 1fr; margin: 0; padding: 13px 18px; }
  .mobile-menu-panel .section-navigation a { min-height: 46px; }
  .mobile-quick-links { display: flex; gap: 25px; padding: 10px 40px 17px; border-top: 1px solid rgba(137,193,214,.2); }
  .mobile-quick-links a { display: inline-flex; align-items: center; min-height: 40px; font-size: 12px; text-decoration: none; color: #a1d6e8; }
  .hero { padding-top: 43px; grid-template-columns: minmax(0, 1fr) 174px; }
  .hero h1 { font-size: clamp(38px, 5.6vw, 52px); }
  .portrait { width: 158px; height: 158px; }
  .content-section, .contact-section, .direction-note { scroll-margin-top: 91px; }
  .hero .eyebrow { max-width: 390px; }
  .hero-description { font-size: 18px; }
}
@media (max-width: 760px) {
  :root { --page-inset: 30px; }
  .page-area { padding: 20px 18px; }
  .hero { grid-template-columns: minmax(0, 1fr) 124px; gap: 22px; padding-top: 34px; padding-bottom: 33px; }
  .hero h1 { font-size: clamp(32px, 5.5vw, 41px); }
  .portrait { width: 108px; height: 108px; }
  .hero .eyebrow { font-size: 9px; }
  .hero-description { font-size: 17px; }
  .terminal-line { font-size: 13px; }
  .terminal-row { margin-block: 12px; }
  .hero-context { font-size: 12px; }
  .portrait-caption { font-size: 10px; margin-top: 15px; }
  .portrait-github { font-size: 9px; gap: 4px; }
  .portrait-github img { display: none; }
  .credentials { gap: 16px; grid-template-columns: 1.3fr 1fr; }
  .credentials > div:last-child { display: none; }
  .content-section, .content-section + .content-section { padding-top: 48px; }
  .profile-grid { grid-template-columns: 1fr; gap: 24px; }
  .focus-note { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 20px; }
  .focus-note > .meta-label { grid-column: 1 / -1; margin: 0; }
  .focus-note > div { display: block; margin-top: 0; }
  .focus-note > div > span { display: block; margin-bottom: 7px; }
  .focus-note p { font-size: 11px; }
  .focus-note strong { font-size: 12px; }
  .research-card, .jetan-project, .education-card { padding: 24px; }
  .heading-with-link { display: block; }
  .heading-with-link > .text-link { margin-top: 8px; }
  .project-capabilities { gap: 16px; }
  .project-bottom { flex-direction: column; align-items: flex-start; }
  .project-grid { gap: 14px; }
  .project-card { padding: 22px; }
  .project-card h3 { font-size: 20px; }
  .experience-entry { grid-template-columns: 1fr; gap: 21px; }
  .experience-date { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; }
  .experience-date p, .experience-date .status-label, .experience-date .meta-label { margin: 0; }
  .education-header { display: block; }
  .education-header > p { margin-top: 6px; }
  .skill-list > div { grid-template-columns: 140px minmax(0,1fr); gap: 20px; }
  .interest-grid { gap: 24px; }
  .contact-section { margin-top: 49px; }
}
@media (max-width: 560px) {
  :root { --page-inset: 23px; }
  body { font-size: 16px; }
  .mobile-header { padding: 10px 16px; min-height: 69px; }
  .mobile-brand { font-size: 15px; }
  .mobile-navigation > summary { padding-inline: 11px; gap: 10px; }
  .mobile-menu-panel .section-navigation { padding: 10px; grid-template-columns: 1fr 1fr; }
  .mobile-menu-panel .section-navigation a { font-size: 12px; padding: 11px 13px; gap: 10px; min-height: 47px; }
  .mobile-quick-links { padding-inline: 25px; gap: 20px; }
  .page-area { padding: 14px 10px 20px; }
  .paper { background: rgba(245,249,249,.96); }
  .spectrum { height: 4px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 25px; padding-top: 25px; padding-bottom: 29px; }
  .portrait-block { order: -1; display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 0 17px; align-items: center; text-align: left; }
  .portrait-frame { grid-row: 1 / 3; padding: 5px; }
  .portrait { width: 72px; height: 72px; }
  .portrait-caption { align-self: end; font-size: 12px; margin-top: 0; }
  .portrait-caption > span { font-size: 8px; }
  .portrait-github { align-self: start; justify-self: start; font-size: 10px; min-height: 30px; margin-top: 2px; }
  .portrait-github img { display: block; width: 12px; height: 12px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .04em; line-height: 1.7; }
  .hero h1 { font-size: clamp(32px, 8.5vw, 43px); letter-spacing: -.06em; margin-top: 12px; }
  .terminal-line { font-size: 13px; }
  .terminal-row { gap: 1px; min-height: 44px; margin: 8px 0 12px; }
  .hero-description { font-size: 17px; line-height: 1.55; }
  .hero-context { margin-top: 12px; font-size: 12px; line-height: 1.75; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
  .hero-actions .button { font-size: 10px; gap: 7px; padding: 11px 8px; min-height: 46px; }
  .credentials { grid-template-columns: 1fr; padding: 19px 0; gap: 17px; }
  .credentials > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 8px; }
  .credentials .meta-label { grid-column: 1 / -1; font-size: 8px; margin-bottom: 3px; }
  .credentials strong { font-size: 12px; line-height: 1.55; }
  .credentials small { font-size: 10px; }
  .credentials div > span:last-child { font-size: 9px; text-align: right; margin-top: 0; line-height: 1.65; }
  .credentials > div:last-child { display: none; }
  h2 { font-size: 25px; line-height: 1.25; }
  .content-section, .content-section + .content-section { padding-top: 41px; }
  .section-heading { margin-bottom: 23px; }
  .section-heading .eyebrow, .contact-section .eyebrow { font-size: 9px; }
  .section-heading > p:last-child:not(.eyebrow) { font-size: 12px; }
  .lead { font-size: 16px; }
  .prose { font-size: 14px; }
  .focus-note { display: block; padding: 20px; }
  .focus-note > .meta-label { margin-bottom: 15px; }
  .focus-note > div { display: flex; gap: 14px; margin-top: 15px; }
  .focus-note strong { font-size: 14px; }
  .focus-note p { font-size: 12px; }
  .opportunity-note { font-size: 12px; padding: 17px; }
  .research-card, .jetan-project, .education-card { padding: 21px 19px; }
  .entry-topline { align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
  .entry-topline .meta-label { font-size: 9px; }
  .research-card h3 { font-size: 23px; }
  .research-card { font-size: 14px; }
  .entry-meta, .supervisor { font-size: 11px; }
  .entry-meta > span { margin-inline: 3px; }
  .research-workflow { grid-template-columns: 1fr; margin-block: 23px; }
  .research-workflow li { padding: 15px 16px; }
  .research-workflow li + li { border-left: 0; border-top: 1px solid var(--line); }
  .research-workflow strong { margin-top: 5px; font-size: 14px; }
  .research-workflow p { margin-top: 4px; }
  .research-detail { font-size: 13px; }
  .tags { gap: 5px; }
  .tags li { font-size: 9px; }
  .jetan-project .entry-topline { gap: 9px; }
  .jetan-project .entry-topline .meta-label { font-size: 8px; }
  .jetan-intro { gap: 12px; margin-top: 20px; }
  .jetan-intro h3 { font-size: 34px; }
  .jetan-intro h3 > span { font-size: 21px; margin-left: 5px; }
  .jetan-mark { display: none; }
  .project-subtitle { font-size: 11px; }
  .jetan-project > p { font-size: 13px; margin-top: 18px; }
  .project-capabilities { grid-template-columns: 1fr; gap: 19px; margin-block: 22px; padding-block: 20px; }
  .project-capabilities h4 { font-size: 10px; }
  .project-capabilities p { font-size: 12px; margin-top: 5px; }
  .project-bottom { gap: 20px; }
  .project-bottom .button { min-height: 44px; }
  .project-grid { grid-template-columns: 1fr; gap: 15px; margin-top: 15px; }
  .project-card { padding: 23px 20px; font-size: 14px; }
  .project-card h3 { font-size: 22px; }
  .detail-list { font-size: 13px; }
  .experience-copy h3 { font-size: 21px; }
  .experience-copy .text-link { font-size: 11px; }
  .education-header h3 { font-size: 21px; }
  .degree-row { display: block; padding: 20px 0; }
  .degree-row h4 { font-size: 17px; }
  .degree-date { margin-top: 8px; text-align: left; font-size: 11px; }
  .gpa-row { gap: 33px; }
  .gpa-row dd { font-size: 28px; }
  .gpa-row dt { font-size: 8px; }
  .skill-list > div { grid-template-columns: 1fr; gap: 8px; padding-block: 18px; }
  .skill-list dt { font-size: 9px; }
  .skill-list dd { font-size: 14px; }
  .skill-list small { font-size: 11px; }
  .interest-grid { grid-template-columns: 1fr; gap: 23px; }
  .interest-grid h3 { font-size: 19px; }
  .interest-grid p { font-size: 13px; }
  .interest-symbol { font-size: 19px; margin-bottom: 7px; }
  .direction-note { padding: 22px 19px; margin-top: 25px; }
  .direction-note h3 { font-size: 21px; }
  .direction-note > p:last-child { font-size: 13px; }
  .contact-section { padding-top: 33px; padding-bottom: 28px; margin-top: 42px; }
  .contact-section h2 { font-size: 26px; }
  .contact-section p:not(.eyebrow) { font-size: 13px; }
  .email-link { font-size: 15px; }
  .contact-links { gap: 7px 21px; }
  .contact-links > a { font-size: 11px; }
  .page-footer { padding-block: 14px; font-size: 9px; gap: 13px; }
  .outside-footer { font-size: 7px; letter-spacing: .06em; }
  .outside-footer > span { padding-inline: 4px; }
}
@media (max-width: 359px) {
  :root { --page-inset: 18px; }
  .mobile-brand { font-size: 13px; }
  .mobile-brand > span { font-size: 7px; }
  .mobile-header { padding-inline: 13px; gap: 10px; }
  .hero h1 { font-size: 31px; }
  .hero-actions .button { font-size: 9px; }
  .terminal-line { font-size: 11px; }
  .motion-button { width: 28px; flex-basis: 28px; }
  .gpa-row { gap: 20px; }
  .mobile-menu-panel .section-navigation a { padding-inline: 9px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-pending { opacity: 1; transform: none; }
  #cursor { animation: none; }
}
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #222; font-size: 10pt; }
  .sky-background, .desktop-rail, .mobile-header, .outside-footer, .hero-actions, .motion-button, .spectrum, .skip-link, .portrait-github, .page-footer a { display: none !important; }
  .site-frame, .page-area { display: block; margin: 0; padding: 0; }
  .paper { max-width: none; margin: 0; padding: 0; border: 0; background: #fff; box-shadow: none; }
  .hero { padding: 0 0 20px; grid-template-columns: 1fr 95px; }
  .hero h1 { font-size: 27pt; }
  .hero-description { font-size: 12pt; }
  .portrait { width: 79px; height: 79px; }
  .portrait-caption { display: none; }
  .credentials { margin: 0; }
  .content-section, .content-section + .content-section { padding: 25px 0 0; }
  .section-heading { break-after: avoid; margin-bottom: 12px; }
  h2 { font-size: 19pt; }
  h3 { break-after: avoid; }
  .research-card, .education-card, .focus-note, .project-card { padding: 15px; }
  .jetan-project, .contact-section { color: #222; background: #f5f5f5; border: 1px solid #ccc; }
  .jetan-project *, .contact-section * { color: #222 !important; }
  .jetan-mark { display: none; }
  .project-grid { display: block; }
  .project-card { margin-top: 14px; }
  .contact-section { margin-top: 25px; padding: 20px; }
  .reveal-pending { opacity: 1 !important; transform: none !important; }
  .page-footer { padding-inline: 0; }
}
