/* One scene at a time; long content may scroll inside a scene on small screens. */
body.deck-ready { height: 100svh; overflow: hidden; }
.deck-ready #main { position: relative; width: 100%; height: 100svh; overflow: hidden; }
.deck-ready #main > .deck-screen { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-width: var(--max-width); padding: 112px var(--gutter) 55px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #414538 transparent; outline: none; }
.deck-ready #main > .deck-screen:not(.is-current) { visibility: hidden; pointer-events: none; }
.deck-ready #main > .deck-screen.is-current { visibility: visible; }
.deck-ready #main > .deck-screen.is-leaving { pointer-events: none; }
.deck-ready .reveal { opacity: 1; transform: none; transition: none; }
.deck-ready .site-header { height: 76px; }
.deck-ready .desktop-nav { gap: clamp(18px, 2vw, 32px); }
.deck-controls { display: flex; align-items: center; gap: 9px; margin-left: 16px; padding-left: 22px; border-left: 1px solid var(--line); white-space: nowrap; }
#deck-current-label { color: var(--muted); font-size: 12px; min-width: 42px; text-align: right; }
#deck-counter { color: var(--quiet); font: 11px/1.4 "Courier New", monospace; min-width: 50px; text-align: center; }
.deck-controls button { width: 28px; height: 32px; display: grid; place-items: center; font-size: 18px; color: var(--ink); transition: color .2s, background .2s; border-radius: 50%; }
.deck-controls button:hover:not(:disabled) { color: var(--brass); background: rgba(182,151,102,.08); }
.deck-controls button:disabled { opacity: .25; cursor: default; }
.deck-ready .hero { align-content: center; }
.deck-ready .hero-overview { margin-top: 32px; }
.deck-ready .section-index { display: none; }
.deck-ready .hero-portrait { max-width: 350px; }
.deck-ready .section-heading { margin-bottom: 20px; }
.deck-ready .section-heading h2 { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.35; margin-top: 10px; }
.deck-ready .section-heading h2 br { display: none; }
.deck-ready .section-heading > p:last-child:not(.eyebrow) { margin-top: 16px; font-size: 13px; }
.deck-ready .split-heading > p:last-child { max-width: 320px; padding-top: 0; font-size: 12px; }
.deck-ready .research-section { display: flex; flex-direction: column; }
.deck-ready .research-section > * { width: 100%; max-width: none; }
.deck-ready .project-tabs { margin-top: 0; flex: 0 0 auto; }
.deck-ready .project-tabs button { padding-top: 13px; padding-bottom: 13px; min-height: 48px; }
.deck-ready .project-panel { flex: 1; align-items: center; margin-top: 24px; gap: clamp(32px, 5vw, 70px); min-height: 0; }
.deck-ready .project-image-wrap { max-width: 410px; aspect-ratio: 4 / 3; justify-self: center; }
.deck-ready .project-copy { padding: 0; }
.deck-ready .project-copy h3 { font-size: clamp(24px, 2.25vw, 33px); line-height: 1.4; margin-top: 13px; }
.deck-ready #project-summary { margin-top: 17px; font-size: 13px; }
.deck-ready .project-methods { margin-top: 14px; }
.deck-ready .project-output { padding: 18px 0 8px; }
.deck-ready .project-output strong { font-size: 34px; }
.deck-ready .workflow { display: none; }
.deck-ready .publication-section { display: flex; flex-direction: column; justify-content: center; }
.deck-ready .publication-list { max-height: 66svh; overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain; }
.deck-ready .publication-item summary { padding: 24px 0; }
.deck-ready .publication-item summary h3 { font-size: clamp(23px, 2.1vw, 29px); }
.deck-ready .publication-body { padding-bottom: 24px; }
.deck-ready .publication-body p { font-size: 13px; }
.deck-ready .publication-body .paper-title { font-size: 17px; }
.deck-ready .beyond-section { display: flex; flex-direction: column; justify-content: center; }
.deck-ready .experience-grid { grid-template-columns: 1.1fr 1fr; gap: 70px; margin-top: 16px; }
.deck-ready .experience-secondary { margin-top: 35px; }
.deck-ready .experience-feature .photo-frame { max-width: 360px; aspect-ratio: 3 / 2; }
.deck-ready .experience-secondary .photo-frame { max-width: 310px; aspect-ratio: 3 / 2; }
.deck-ready .experience-caption { padding-top: 18px; max-width: 440px; }
.deck-ready .experience-caption h3 { font-size: 24px; margin-top: 12px; }
.deck-ready .experience-caption > p:not(.eyebrow) { font-size: 13px; line-height: 1.8; margin-top: 12px; }
.deck-ready .small-tags { margin-top: 14px; }
.deck-ready .contact-section { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.deck-ready .contact-section h2 { margin-top: 22px; font-size: clamp(44px, 6.3vw, 88px); line-height: 1.35; }
.deck-ready .contact-section h2 span { color: var(--muted); margin-left: 0; }
.deck-ready .contact-intro { margin-top: 26px; }
.closing-link { margin-top: 35px; }
.deck-ready footer { width: 100%; margin-top: 70px; padding-bottom: 0; }
.deck-ready #journey { display: flex; flex-direction: column; overflow: hidden; }

@media (max-height: 780px) and (min-width: 901px) {
  .deck-ready #main > .deck-screen { padding-top: 95px; padding-bottom: 35px; }
  .deck-ready .hero h1 { font-size: 68px; }
  .deck-ready .english-name { font-size: 20px; margin-top: 12px; }
  .deck-ready .hero-overview { margin-top: 25px; }
  .deck-ready .profile-row { padding: 18px 0; }
  .deck-ready .hero-portrait { max-width: 310px; }
  .deck-ready .split-heading > p:last-child { display: none; }
  .deck-ready .project-image-wrap { max-width: 330px; }
  .deck-ready .project-copy h3 { font-size: 26px; margin-top: 8px; }
  .deck-ready #project-summary { margin-top: 12px; }
  .deck-ready .project-output { padding-top: 12px; }
  .deck-ready .project-output strong { font-size: 29px; }
  .deck-ready .project-copy > .text-link { margin-top: 0; padding-block: 8px; }
  .deck-ready .project-panel { margin-top: 18px; }
  .deck-ready .section-heading { margin-bottom: 14px; }
  .deck-ready .experience-feature .photo-frame { max-width: 285px; }
  .deck-ready .experience-secondary .photo-frame { max-width: 260px; }
  .deck-ready .experience-caption h3 { font-size: 22px; }
  .deck-ready .experience-caption > p:not(.eyebrow) { font-size: 12px; }
  .deck-ready .experience-grid { margin-top: 6px; }
}

@media (max-width: 1100px) {
  .deck-ready .site-header { gap: 18px; }
  .deck-ready .desktop-nav { gap: 17px; }
  #deck-current-label { display: none; }
  .deck-controls { padding-left: 15px; margin-left: 3px; gap: 4px; }
  .deck-ready .experience-grid { gap: 35px; }
}

@media (max-width: 900px) {
  .deck-ready #main > .deck-screen { padding-top: 103px; padding-bottom: 40px; }
  .deck-ready .hero { grid-template-columns: minmax(0,1fr) 200px; gap: 15px 30px; align-content: center; }
  .deck-ready .hero-overview { margin-top: 8px; }
  .deck-ready .hero h1 { font-size: 64px; }
  .deck-ready .hero-portrait { max-width: 200px; }
  .deck-ready .profile-row { padding: 20px 0; }
  .deck-ready .project-panel { grid-template-columns: .8fr 1.2fr; align-items: start; gap: 25px; margin-top: 24px; }
  .deck-ready .project-image-wrap { margin-top: 15px; }
  .deck-ready .section-heading h2 { font-size: 29px; }
  .deck-ready .split-heading > p:last-child { display: none; }
  .deck-ready .experience-caption h3 { font-size: 22px; }
}

@media (max-width: 800px) {
  .deck-ready .site-header { height: 68px; }
  .deck-ready .deck-controls { margin-left: auto; border: 0; padding: 0; }
  .deck-ready .mobile-nav { top: 68px; }
  .deck-ready .menu-toggle { width: 24px; }
  .deck-ready .publication-list { max-height: 70svh; }
}

@media (max-width: 600px) {
  .deck-ready #main > .deck-screen { padding: 92px var(--gutter) 30px; }
  .deck-ready .site-header { gap: 14px; }
  .deck-controls button { width: 27px; }
  #deck-counter { min-width: 45px; font-size: 10px; }
  .deck-ready .hero { grid-template-columns: minmax(0,1fr) 125px; gap: 18px 12px; align-content: center; }
  .deck-ready .hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .deck-ready .hero-portrait { max-width: 125px; margin-top: 10px; }
  .deck-ready .hero-overview { margin-top: 5px; }
  .deck-ready .profile-row { padding: 19px 0; gap: 11px; }
  .deck-ready .education-list { gap: 16px; }
  .deck-ready .research-section { justify-content: flex-start; }
  .deck-ready .section-heading { margin-bottom: 14px; }
  .deck-ready .section-heading h2 { font-size: 26px; margin-top: 9px; }
  .deck-ready .section-heading > p:last-child:not(.eyebrow) { font-size: 12px; margin-top: 12px; }
  .deck-ready .project-tabs { gap: 14px; }
  .deck-ready .project-tabs button { min-height: 0; padding: 7px 0 10px; font-size: 11px; }
  .deck-ready .project-tabs button span { display: inline; margin-right: 4px; font-size: 10px; }
  .deck-ready .project-panel { display: flex; flex-direction: column; align-items: stretch; flex: 0 0 auto; gap: 17px; margin-top: 16px; }
  .deck-ready .project-image-wrap { width: 100%; max-width: 240px; aspect-ratio: 16 / 9; margin: 0 auto; flex-shrink: 0; }
  .deck-ready .project-image-no { font-size: 28px; top: 10px; left: 13px; }
  .deck-ready .image-label { font-size: 9px; bottom: 9px; left: 13px; }
  .deck-ready .project-copy h3 { font-size: 23px; margin-top: 7px; }
  .deck-ready .project-partner { margin-top: 6px; font-size: 11px; }
  .deck-ready #project-summary { font-size: 12px; line-height: 1.8; margin-top: 10px; }
  .deck-ready .project-methods { margin-top: 10px; }
  .deck-ready .project-methods span { font-size: 10px; padding: 2px 8px; }
  .deck-ready .project-output { gap: 30px; padding-top: 12px; padding-bottom: 0; }
  .deck-ready .project-output > div { flex-direction: row; align-items: baseline; gap: 8px; }
  .deck-ready .project-output strong { font-size: 22px; }
  .deck-ready .project-output span { font-size: 10px; }
  .deck-ready .project-copy > .text-link { margin-top: 5px; font-size: 12px; padding-block: 7px; }
  .deck-ready .publication-section { justify-content: flex-start; }
  .deck-ready .publication-list { max-height: none; flex: 1; min-height: 0; }
  .deck-ready .publication-item summary { padding: 20px 0; gap: 8px; }
  .deck-ready .publication-item summary h3 { font-size: 22px; }
  .deck-ready .publication-no, .deck-ready .publication-status { font-size: 10px; }
  .deck-ready .publication-item summary p { font-size: 12px; }
  .deck-ready .publication-body .paper-title { font-size: 15px; }
  .deck-ready .publication-body p { font-size: 12px; }
  .deck-ready .beyond-section { justify-content: flex-start; }
  .deck-ready .experience-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 4px; }
  .deck-ready .experience-grid > article { display: flow-root; }
  .deck-ready .experience-feature .photo-frame, .deck-ready .experience-secondary .photo-frame { float: right; width: 120px; max-width: 40%; margin: 5px 0 10px 17px; aspect-ratio: 3 / 2; }
  .deck-ready .experience-secondary { margin: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .deck-ready .experience-caption { padding: 0; }
  .deck-ready .experience-caption h3 { font-size: 21px; margin-top: 8px; }
  .deck-ready .experience-caption .eyebrow { font-size: 10px; }
  .deck-ready .experience-caption > p:not(.eyebrow) { font-size: 12px; line-height: 1.85; margin-top: 10px; }
  .deck-ready .small-tags { margin-top: 12px; gap: 7px; }
  .deck-ready .small-tags span { font-size: 10px; }
  .deck-ready .contact-section h2 { font-size: clamp(40px, 11vw, 56px); }
  .deck-ready .contact-intro { font-size: 13px; }
  .deck-ready footer { margin-top: 45px; gap: 22px; }
  .deck-ready footer p { flex-basis: auto; margin-left: auto; }
}

@media (max-height: 700px) and (max-width: 600px) {
  .deck-ready #main > .deck-screen { padding-top: 85px; padding-bottom: 25px; }
  .deck-ready .hero { align-content: start; gap: 12px; }
  .deck-ready .hero h1 { font-size: 44px; }
  .deck-ready .hero-portrait { max-width: 105px; }
  .deck-ready .profile-row { padding: 14px 0; }
  .deck-ready .education-list { gap: 11px; }
  .deck-ready .hero .english-name { font-size: 17px; margin-top: 10px; }
  .deck-ready .hero-birth { margin-top: 6px; }
  .deck-ready .section-heading h2 { font-size: 23px; }
  .deck-ready .project-image-wrap { max-width: 180px; }
  .deck-ready .project-copy h3 { font-size: 21px; }
  .deck-ready .project-output { display: none; }
}

/* Desktop reading scale stays readable even when the browser is short. */
@media screen and (min-width: 901px) {
  .deck-ready .desktop-nav a, .deck-ready .header-contact { font-size: 15px; }
  #deck-current-label, #deck-counter { font-size: 14px; }
  .deck-ready .eyebrow, .deck-ready .project-copy .eyebrow, .deck-ready .experience-caption .eyebrow { font-size: 13px; }
  .deck-ready .hero-birth { font-size: 17px; }
  .deck-ready .hero-overview { margin-top: 25px; }
  .deck-ready .profile-row { grid-template-columns: 80px minmax(0,1fr); gap: 20px; padding: 18px 0; }
  .deck-ready .profile-label { font-size: 14px; }
  .deck-ready .education-list { gap: 16px; }
  .deck-ready .education-entry h3, .deck-ready .internship-summary h3 { font-size: 20px; }
  .deck-ready .education-entry > p, .deck-ready .internship-role, .deck-ready .internship-detail { font-size: 16px; line-height: 1.65; }
  .deck-ready .education-entry .education-lab { grid-column: 1 / -1; font-size: 14px; line-height: 1.65; }
  .deck-ready .education-honors { font-size: 14px; }
  .deck-ready .education-date, .deck-ready .education-date > span, .deck-ready .internship-period { font-size: 14px; }
  .deck-ready .section-heading > p:last-child:not(.eyebrow), .deck-ready .split-heading > p:last-child,
  .deck-ready #project-summary, .deck-ready .publication-body p,
  .deck-ready .experience-caption > p:not(.eyebrow), .deck-ready .contact-intro { font-size: 16px; line-height: 1.75; }
  .deck-ready .project-tabs button { font-size: 16px; }
  .deck-ready .project-tabs button span, .deck-ready .project-partner,
  .deck-ready .project-methods span, .deck-ready .project-output span,
  .deck-ready .image-label, .deck-ready .small-tags span,
  .deck-ready .publication-no, .deck-ready .publication-status,
  .deck-ready footer p, .deck-ready footer > a:last-child { font-size: 14px; }
  .deck-ready .publication-item summary p { font-size: 16px; }
  .deck-ready .publication-body .paper-title { font-size: 20px; line-height: 1.6; }
  .deck-ready .text-link { font-size: 15px; }
}

@media screen and (min-width: 901px) and (max-height: 780px) {
  .deck-ready .hero-overview { margin-top: 18px; }
  .deck-ready .profile-row { padding: 13px 0; }
  .deck-ready .education-list { gap: 12px; }
  .deck-ready .internship-summary h3 { margin-top: 7px; }
  .deck-ready .experience-grid { gap: 45px; }
  .deck-ready .experience-caption { padding-top: 12px; }
  .deck-ready .experience-caption > p:not(.eyebrow) { margin-top: 8px; }
}
@media screen and (min-width: 901px) and (max-height: 850px) {
  .deck-ready .research-section > .section-heading { margin-bottom: 14px; }
  .deck-ready .project-panel { margin-top: 18px; }
  .deck-ready .project-copy h3 { margin-top: 10px; }
  .deck-ready #project-summary { margin-top: 12px; }
  .deck-ready .project-output { padding-top: 14px; padding-bottom: 4px; }
  .deck-ready .project-copy > .action-button { margin-top: 8px; }
}
.project-output.has-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 24px; }
.deck-ready .project-output.has-photos > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 14px; }
.project-output-photo { display: block; width: 70px; height: 96px; object-fit: contain; background: #f5f4ef; border: 1px solid rgba(235,231,211,.2); }
.project-output-text { display: flex; flex-direction: column; min-width: 0; }
.project-output-text span { line-height: 1.5; }
@media (max-width: 600px) {
  .deck-ready .project-output.has-photos { display: grid; gap: 14px; }
  .deck-ready .project-output.has-photos > div { grid-template-columns: 54px minmax(0, 1fr); gap: 10px; }
  .project-output-photo { width: 54px; height: 76px; }
  .project-output-text span { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .deck-ready * { scroll-behavior: auto; }
}

@media print {
  body.deck-ready { height: auto; overflow: visible; }
  .deck-ready #main { height: auto; overflow: visible; }
  .deck-ready #main > .deck-screen { position: static; height: auto; overflow: visible; padding: 20px 0; visibility: visible !important; display: block !important; }
  .deck-controls { display: none; }
}
