* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
button { font: inherit; }
p { line-height: 1.9; }
figure, h1, h2, h3, p { margin: 0; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 20px; padding: 16px; background: var(--primary); z-index: 20; }
.skip:focus { top: 12px; }
.navigation { position: sticky; top: 0; z-index: 10; min-height: 84px; padding: 20px 48px; display: flex; align-items: center; justify-content: space-between; background: var(--background); border-bottom: 1px solid var(--border); }
.brand { font-size: 26px; font-weight: 800; letter-spacing: -1px; }
.brand span { color: var(--success); }
nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
nav a { padding: 8px 0; color: var(--muted); border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current] { color: var(--foreground); border-color: var(--primary-ink); }
.nav-contact { color: var(--foreground); }
.hero { display: grid; grid-template-columns: 1.5fr 1fr; column-gap: 70px; padding-top: 56px; }
.eyebrow { color: var(--success); font-size: 13px; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
h1 { font-size: clamp(90px, 10.5vw, 132px); line-height: 1.12; letter-spacing: -8px; margin: 22px 0 16px; font-weight: 800; }
.name-dot { color: var(--success); }
.hero-note { font-size: 24px; font-weight: 600; margin-bottom: 20px; }
.intro-text { color: var(--muted); font-size: 16px; max-width: 570px; }
.intro-text + .intro-text { margin-top: 14px; }
.actions { display: flex; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; padding: 17px 22px; border-radius: 6px; font-size: 15px; font-weight: 600; transition: transform var(--motion), background var(--motion); }
.button:hover { transform: translateY(-3px); }
.primary { background: var(--primary); }
.secondary { border: 1px solid var(--border); }
.secondary:hover { background: var(--surface); }
.portrait { position: relative; align-self: center; width: 100%; max-width: 345px; justify-self: end; margin: 20px 16px 0 0; }
.portrait::before { content: ''; position: absolute; inset: 15px -17px -15px 17px; background: var(--primary); border-radius: var(--radius); transform: rotate(4deg); }
.portrait-sheet { position: relative; background: var(--success-soft); border: 1px solid var(--border); border-radius: var(--radius); transform: rotate(-3deg); overflow: hidden; }
.portrait-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.portrait-label { font-size: 11px; color: var(--success); letter-spacing: 4px; }
.portrait figcaption { padding: 16px 22px; line-height: 1; }
.portrait-sticker { position: absolute; right: -28px; bottom: 50px; background: var(--primary); width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center; transform: rotate(12deg); font-size: 13px; line-height: 1.7; color: var(--primary-ink); }
.hero-bottom { grid-column: 1 / -1; margin-top: 70px; padding: 24px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.hero-bottom a:hover { color: var(--success); }
.section { padding-block: 108px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.section-index { font-size: 11px; letter-spacing: 2px; color: var(--primary-ink); margin-bottom: 20px; font-weight: 600; }
h2 { font-size: clamp(36px, 4.5vw, 58px); line-height: 1.3; font-weight: 750; letter-spacing: -2px; }
.section-heading > p { color: var(--muted); font-size: 14px; padding-bottom: 5px; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cover { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); transition: transform var(--motion); }
.cover:hover { transform: translateY(-5px); }
.project-cover-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.medical { background: var(--dark); color: var(--on-dark); }
.travel { background: var(--primary); color: var(--foreground); }
.cover-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--on-dark); }
.cover-top > span { padding: 8px 10px; border-radius: 4px; background: var(--dark); }
.cover-caption { position: absolute; left: 16px; bottom: 14px; padding: 5px 8px; border-radius: 3px; background: var(--dark); color: var(--on-dark); font-size: 10px; }
.project-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); margin: 22px 0 12px; }
h3 { font-size: 24px; line-height: 1.5; margin-bottom: 12px; font-weight: 650; }
.project > p { color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 20px 0; color: var(--muted); font-size: 11px; }
details { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); scroll-margin-top: 110px; }
summary { cursor: pointer; list-style: none; padding: 17px 0; font-size: 13px; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
details[open] summary span { transform: rotate(45deg); }
.detail-content { padding-bottom: 18px; color: var(--muted); font-size: 14px; }
.detail-content p + p { margin-top: 12px; }
.project > .missing-link { font-size: 11px; margin-top: 12px; }
#now { border-top: 1px solid var(--border); }
.now-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.now-list article { padding-top: 26px; border-top: 1px solid var(--border); }
.status { display: inline-block; color: var(--success); font-size: 12px; margin-bottom: 22px; }
.status::before { content: '●'; font-size: 7px; margin-right: 8px; vertical-align: middle; }
.now-list h3 { font-size: 20px; }
.now-list p { font-size: 14px; color: var(--muted); }
.now-list small { font-size: 10px; display: block; margin-top: 20px; color: var(--muted); }
.skills-line { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }
.experience-band { background: var(--success-soft); }
.timeline article { display: grid; grid-template-columns: 230px 1fr; gap: 40px; padding: 30px 0; border-top: 1px solid var(--border); }
.timeline h3 { font-size: 21px; }
.timeline p { color: var(--muted); font-size: 14px; }
.timeline .time { font-size: 12px; padding-top: 6px; }
.timeline .organization { color: var(--success); margin-bottom: 10px; }
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 100px; align-items: center; }
.about h2 { margin-bottom: 28px; }
.about p:not(.section-index) { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.about-signature { display: block; margin-top: 30px; font-size: 14px; }
.life-placeholder { padding: 16px 16px 24px; background: var(--surface); transform: rotate(3deg); border: 1px solid var(--border); box-shadow: 0 12px 24px #20211f09; }
.life-placeholder > div { background: var(--success-soft); min-height: 240px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; }
.life-placeholder span { font-size: 30px; color: var(--success); margin-bottom: 20px; }
.life-placeholder small { color: var(--muted); font-size: 11px; }
.life-placeholder figcaption { padding-top: 20px; font-size: 13px; }
.contact { background: var(--dark); color: var(--on-dark); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding-block: 85px; align-items: center; }
.contact .section-index { color: var(--primary); }
.contact h2 { font-size: clamp(32px, 4vw, 50px); }
.contact-links { display: flex; flex-direction: column; gap: 24px; }
.contact-links > p, .contact-links > span { color: #c2c8bd; font-size: 12px; }
.contact-links a { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #75806f; padding-bottom: 20px; font-size: clamp(14px, 2vw, 24px); overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--primary); }
footer { border-top: 1px solid #75806f; padding-block: 25px; display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: #c2c8bd; }
.entering { animation: enter 300ms ease-out both; }
@keyframes enter { from { opacity: .65; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.portfolio { padding-top: 100px; }
.portfolio-intro { padding-bottom: 48px; }
.portfolio-intro .section-heading { margin-bottom: 30px; }
.hand-underline { position: relative; display: inline-block; }
.hand-underline::after { content: ''; position: absolute; bottom: -8px; left: 0; right: 0; height: 10px; border-top: 4px solid var(--success); border-radius: 50%; transform: rotate(-2deg); }
.portfolio-categories { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; }
.portfolio-categories a { padding: 11px 17px; border: 1px solid var(--border); border-radius: 24px; font-size: 12px; color: var(--foreground); transition: background var(--motion), transform var(--motion); }
.portfolio-categories a:hover { background: var(--primary); border-color: var(--primary-ink); transform: translateY(-2px); }
.vlog-zone { width: min(1120px, calc(100% - 96px)); margin: 0 auto 28px; color: var(--vlog-ink); padding-block: 56px; border: 2px solid var(--vlog-ink); border-radius: 6px 18px 8px 14px; overflow: hidden; }
.vlog-zone > .wrap { width: calc(100% - 80px); }
.campus-zone { background: var(--vlog-campus); --zone-color: var(--vlog-campus); }
.internship-zone { background: var(--vlog-internship); --zone-color: var(--vlog-internship); }
.travel-zone { background: var(--vlog-travel); --zone-color: var(--vlog-travel); }
.learning-zone { background: var(--vlog-learning); --zone-color: var(--vlog-learning); }
.vlog-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.vlog-intro { position: relative; padding: 20px 0; }
.vlog-category { font-size: 12px; font-weight: 650; letter-spacing: 1px; margin-bottom: 24px; }
.vlog-intro h3 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.35; letter-spacing: -2px; font-weight: 800; margin-bottom: 24px; }
.vlog-intro > p:last-of-type { font-size: 14px; line-height: 1.9; }
.marker-word { position: relative; display: inline-block; z-index: 0; }
.marker-word::after { content: ''; position: absolute; inset: 48% -6px 0; background: var(--vlog-tape); transform: rotate(-3deg); z-index: -1; }
.scribble-star { display: block; width: fit-content; font-size: 64px; line-height: 1; margin-bottom: 24px; transform: rotate(-13deg); }
.doodle-arrow { position: absolute; bottom: 8px; right: 5px; font: 86px/1 Georgia, serif; transform: rotate(-20deg); }
.video-collection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; min-width: 0; }
.video-collection.single-video { grid-template-columns: minmax(0, 1fr); }
.video-work { min-width: 0; padding: 10px 6px 0; }
.video-trigger { display: block; position: relative; width: 100%; padding: 6px; background: var(--vlog-paper); border: 2px solid var(--vlog-ink); border-radius: 3px 12px 5px 9px; box-shadow: 5px 6px 0 var(--vlog-ink); transform: rotate(2deg); cursor: pointer; transition: transform var(--motion), box-shadow var(--motion); }
.video-work:nth-child(even) .video-trigger { transform: rotate(-2deg); }
.video-trigger:hover, .video-trigger:focus-visible, .video-work:nth-child(even) .video-trigger:hover, .video-work:nth-child(even) .video-trigger:focus-visible { transform: translateY(-4px) rotate(0); box-shadow: 5px 10px 0 var(--vlog-ink); }
.video-trigger img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px 6px 2px 5px; }
.video-play { display: grid; place-items: center; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; padding-left: 3px; border: 2px solid var(--vlog-ink); border-radius: 50%; background: var(--vlog-paper); color: var(--vlog-ink); font-size: 18px; box-shadow: 2px 3px 0 var(--vlog-ink); }
.video-duration { position: absolute; right: 12px; bottom: 12px; padding: 3px 6px; border-radius: 3px; background: var(--dark); color: var(--on-dark); font-size: 10px; font-variant-numeric: tabular-nums; }
.tape { position: absolute; width: 110px; height: 28px; top: -15px; left: calc(50% - 55px); background: var(--vlog-tape); border-left: 1px dashed var(--vlog-line); border-right: 1px dashed var(--vlog-line); transform: rotate(-6deg); z-index: 1; }
.video-caption { margin-top: 18px; }
.video-caption h4 { font-size: 14px; line-height: 1.6; margin: 0 0 5px; }
.video-caption p { font-size: 11px; }
.internship-zone .vlog-intro, .learning-zone .vlog-intro { grid-column: 2; grid-row: 1; }
.internship-zone .video-collection, .learning-zone .video-collection { grid-column: 1; grid-row: 1; }
.internship-zone .vlog-layout, .learning-zone .vlog-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.internship-zone .doodle-arrow, .learning-zone .doodle-arrow { transform: rotate(100deg); right: 10px; }
.video-open { overflow: hidden; }
.video-dialog { width: min(1100px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); color: var(--foreground); overflow: auto; }
.video-dialog::backdrop { background: var(--video-scrim); }
.video-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.video-dialog-heading h2 { margin: 0; font-size: 20px; line-height: 1.5; letter-spacing: 0; }
.video-close, .video-retry { flex-shrink: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--foreground); cursor: pointer; min-height: 44px; font-size: 13px; }
.video-close:hover, .video-retry:hover { background: var(--primary); }
.video-close span { margin-left: 8px; font-size: 20px; line-height: 1; }
.video-dialog video { display: block; width: 100%; max-height: calc(100dvh - 170px); aspect-ratio: 16 / 9; object-fit: contain; background: var(--dark); border-radius: 6px; }
.video-feedback { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.video-feedback:has(p:empty):has(button[hidden]) { display: none; }
.video-feedback p { font-size: 13px; padding-top: 12px; color: var(--muted); }
.video-retry { margin-top: 12px; }
.video-original { margin: 12px 0 0; font-size: 13px; }
.video-original a { color: var(--foreground); text-underline-offset: 3px; }
@media (max-width: 900px) {
  .vlog-zone { width: calc(100% - 64px); }
  .vlog-zone > .wrap { width: calc(100% - 48px); }
  .vlog-layout { gap: 30px; }
  .video-collection { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .doodle-arrow { font-size: 60px; }
}
@media (max-width: 700px) {
  .navigation nav { column-gap: 10px; row-gap: 4px; flex-wrap: wrap; }
  .portfolio { padding-top: 65px; }
  .portfolio-intro { padding-bottom: 30px; }
  .portfolio-intro h2 { max-width: 100%; }
  .portfolio-categories { width: auto; gap: 8px; }
  .portfolio-categories a { font-size: 11px; padding: 9px 12px; }
  .vlog-zone { width: calc(100% - 32px); padding-block: 32px; margin-bottom: 20px; }
  .vlog-zone > .wrap { width: calc(100% - 40px); }
  .vlog-layout, .internship-zone .vlog-layout, .learning-zone .vlog-layout { grid-template-columns: 1fr; gap: 25px; }
  .internship-zone .vlog-intro, .internship-zone .video-collection, .learning-zone .vlog-intro, .learning-zone .video-collection { grid-column: auto; grid-row: auto; }
  .vlog-intro { padding: 0; }
  .vlog-intro h3 { font-size: 40px; }
  .vlog-category { margin-bottom: 18px; padding-right: 45px; font-size: 11px; }
  .scribble-star { position: absolute; top: -3px; right: 0; font-size: 42px; }
  .doodle-arrow { right: 10px; bottom: 0; font-size: 65px; }
  .internship-zone .doodle-arrow, .learning-zone .doodle-arrow { transform: rotate(10deg); }
  .video-caption h4 { font-size: 15px; }
  .video-dialog { width: calc(100% - 24px); padding: 12px; max-height: calc(100dvh - 24px); }
  .video-dialog-heading { gap: 8px; margin-bottom: 12px; }
  .video-dialog-heading h2 { font-size: 16px; }
}
@media (max-width: 900px) {
  .hero { gap: 40px; }
  .portrait-sticker { right: -10px; }
  .about { gap: 45px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 115px; }
  .wrap { width: calc(100% - 44px); }
  .navigation { padding: 14px 22px 10px; flex-wrap: wrap; gap: 10px; }
  .brand { font-size: 22px; }
  nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 12px; }
  nav a { padding: 5px 0; }
  .hero { padding-top: 48px; grid-template-columns: 1fr; gap: 0; }
  h1 { font-size: 80px; letter-spacing: -5px; margin: 23px 0 14px; }
  .eyebrow { font-size: 10px; }
  .hero-note { font-size: 20px; }
  .intro-text { font-size: 14px; }
  .button { padding: 15px 20px; gap: 28px; font-size: 13px; }
  .portrait { width: 75%; max-width: 300px; justify-self: center; margin: 60px 12px 0 0; }
  .hero-bottom { margin-top: 50px; font-size: 10px; align-items: center; }
  .hero-bottom > span { max-width: 150px; line-height: 1.8; }
  .section { padding-block: 70px; }
  .section-heading { align-items: start; flex-direction: column; gap: 22px; margin-bottom: 30px; }
  h2 { font-size: 36px; letter-spacing: -1px; }
  .section-index { font-size: 10px; margin-bottom: 16px; }
  .section-heading > p { font-size: 13px; }
  .projects-grid, .now-list, .about, .contact-inner { grid-template-columns: 1fr; }
  .projects-grid { gap: 48px; }
  .cover-top { top: 12px; left: 12px; right: 12px; font-size: 12px; }
  .cover-top > span { padding: 6px 8px; }
  .cover-caption { left: 12px; bottom: 10px; font-size: 9px; }
  .project-meta { font-size: 10px; }
  .now-list { gap: 28px; }
  .now-list h3 { margin-bottom: 8px; }
  .status { margin-bottom: 12px; }
  .skills-line { flex-direction: column; gap: 10px; }
  .timeline article { grid-template-columns: 1fr; gap: 15px; }
  .timeline h3 { font-size: 20px; }
  .about { gap: 40px; }
  .life-placeholder { margin: 0 10px; }
  .contact-inner { padding-block: 60px; gap: 35px; }
  .contact-links a { font-size: 19px; }
  footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
