@font-face {
  font-family: Pretendard;
  src: url('./assets/PretendardVariable.woff2') format('woff2');
  font-weight: 45 920;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbf7ed;
  --ivory: #fffdf7;
  --ink: #25251e;
  --sub: #5e584e;
  --line: #d7cdbb;
  --blue: #293da0;
  --blue-dark: #1b2b80;
  --sky: #e5eaff;
  --peach: #ffe1c7;
  --yellow: #ffe5a9;
  --sage: #e8ecdc;
  --pad: clamp(20px, 5vw, 76px);
  --head: 72px;
  --max: 1280px;
  --ease: cubic-bezier(.2,.7,.2,1);
  font-family: Pretendard, 'Apple SD Gothic Neo', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head) + 12px); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; }
body.detail-open { overflow: hidden; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure { margin: 0; }
ul { padding-inline-start: 1.2em; margin: 0; }
.direction-icon { display: block; width: 1.25rem; height: 1.25rem; }
.wrap, .section-pad, .project-list { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.text-accent { color: var(--blue); }
.skip-link { position: fixed; z-index: 100; top: 12px; left: var(--pad); transform: translateY(-150%); background: var(--ivory); padding: 8px 16px; }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; inset-block-start: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: max(var(--pad), calc((100% - var(--max)) / 2)); min-height: var(--head);
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 16px; font-weight: 850; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.wordmark small { display: block; margin-top: 4px; font-size: 11px; font-weight: 650; letter-spacing: .08em; color: var(--sub); }
.brand-mark { width: 38px; height: 38px; flex: none; }
#main-nav { display: flex; align-items: center; gap: clamp(5px, 1.15vw, 18px); }
#main-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 10px; font-size: 15px; font-weight: 650; color: var(--sub); white-space: nowrap; }
#main-nav a:is(.active, :hover) { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.header-credit { justify-self: end; font-size: 12px; font-weight: 650; color: var(--sub); }
.menu-toggle { display: none; }

.hero { padding-block: clamp(44px, 5.7vw, 80px) clamp(45px, 6vw, 86px); }
.hero-grid { display: grid; grid-template-columns: minmax(0,.70fr) minmax(0,1.30fr); gap: clamp(23px, 2.7vw, 40px); align-items: center; }
.hero-title { font-size: clamp(40px, 5.1vw, 76px); font-weight: 780; line-height: 1.04; letter-spacing: -.04em; }
.hero-type-line, .hero-intro-line { display: block; overflow: clip; padding-bottom: .12em; }
.hero-type-line > span, .hero-intro-line > span, .scroll-cue-text, .about-career-text { display: inline-block; }
.hero-type-line:not(.hero-type-connect) { overflow: visible; }
.hero-type-line:not(.hero-type-connect) > span { transform-origin: 40% 70%; }
.hero-type-connect { color: var(--blue); overflow: visible; }
.hero-type-connect > span {
  position: relative;
  z-index: 1;
  transform-origin: 50% 94%;
  background: linear-gradient(var(--yellow), var(--yellow)) left 97% / 100% .19em no-repeat;
}
.hero-intro { font-size: clamp(16px, 1.48vw, 21px); color: var(--sub); margin-top: clamp(15px, 2vw, 27px); }
.hero-intro strong { color: var(--ink); font-weight: 720; }
.text-link { display: inline-flex; gap: 16px; min-height: 48px; align-items: center; justify-content: center; padding: 10px 16px 10px 19px; border: 1px solid var(--blue); border-radius: 99px; font-size: 15px; font-weight: 730; color: var(--blue); transition: background .2s, color .2s, transform .2s var(--ease); }
.text-link > span { overflow: clip; }
.text-link:hover { color: var(--ivory); background: var(--blue); transform: translateY(-2px); }
.text-link:active { transform: translateY(1px); }
.scroll-cue { margin-top: 24px; background: var(--blue); color: var(--ivory); }
.scroll-cue:hover { background: var(--blue-dark); }
/* The landscape insert leaves the operator on the right of the main frame in view. */
.hero-folio { position: relative; min-width: 0; padding: 0 0 30px 14px; isolation: isolate; }
.hero-media {
  border-radius: 16px; aspect-ratio: 1.82; overflow: hidden; background: #24232a;
  box-shadow: 0 13px 32px #30251b27;
}
.hero-media img { height: 100%; width: 100%; object-fit: cover; object-position: 72% 50%; }
.folio-cut {
  position: absolute; z-index: 1; width: 45%; left: 0; bottom: 0;
  padding: clamp(4px, .6vw, 9px); background: var(--sky); border-radius: 11px;
  box-shadow: 0 7px 22px #231c2636; transform: rotate(-3deg);
}
.folio-cut img { width: 100%; height: auto; aspect-ratio: 2; border-radius: 6px; filter: brightness(1.24); }

.projects { padding-block: clamp(40px, 5vw, 72px) clamp(50px, 7vw, 96px); background: var(--sage); border-block: 1px solid #d6dccb; }
.section-kicker, .project-intro-index, .chronicle-guide, .accent-word { display: none; }
.projects-intro h2, .about h2, .resume h2, .skills h2, .contact h2 { font-size: clamp(36px, 5vw, 66px); font-weight: 780; line-height: 1.12; letter-spacing: -.04em; }
.projects-intro p, .resume-head p, .skills-copy { color: var(--sub); font-size: clamp(16px, 1.55vw, 20px); margin-top: 12px; }
.projects-intro { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.projects-intro p { color: #4a5340; }
.projects-count { color: #4a5340; white-space: nowrap; display: flex; align-items: baseline; gap: 5px; font-size: 14px; font-weight: 650; padding: 3px 13px; border: 1px solid #bcc5b0; border-radius: 999px; width: fit-content; }
.projects-count b { color: var(--blue); font-size: 24px; font-variant-numeric: tabular-nums; }
.project-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(16px, 2vw, 28px); margin-top: 25px; }
.project-gallery-card { min-width: 0; width: 100%; display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--ivory); text-align: left; border: 1px solid #c9cbbb; border-radius: 16px; transition: transform .25s var(--ease), border-color .25s; }
.project-gallery-card:hover { border-color: var(--blue); transform: translateY(-4px); }
.project-gallery-card:active { transform: translateY(0); }
.project-gallery-visual { display: grid; position: relative; overflow: hidden; width: 100%; aspect-ratio: 1.78; background: #e2d9c6; }
.cover-frame { min-width: 0; min-height: 0; overflow: hidden; }
.cover-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.card-luxiai { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); align-items: stretch; }
.card-luxiai .project-gallery-visual { aspect-ratio: auto; height: clamp(235px, 25vw, 365px); grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; background: #24293e; }
.card-luxiai .cover-frame img { object-position: 50% 34%; }
.card-luxiai .cover-frame:nth-child(2) img { object-position: 53% 57%; }
.card-luxiai .cover-frame:nth-child(3) img { object-position: 51% 43%; }
.card-news .cover-frame img { object-position: 50% 50%; }
.card-field .cover-frame img { object-position: 50% 42%; }
.card-donga .cover-frame img { object-position: 50% 43%; }
.project-gallery-card:is(:hover,:focus-visible) .cover-frame img { transform: scale(1.035); }
.cover-index { position: absolute; top: 12px; left: 12px; display: grid; place-items: center; height: 33px; min-width: 33px; border-radius: 50%; color: var(--blue-dark); background: var(--ivory); font-weight: 750; font-size: 13px; font-variant-numeric: tabular-nums; }
.project-gallery-copy { display: flex; flex-direction: column; flex: 1; width: 100%; padding: clamp(16px, 1.8vw, 24px); }
.card-luxiai .project-gallery-copy { background: #f8f3df; justify-content: center; padding: clamp(20px, 2.5vw, 34px); }
.card-luxiai .project-gallery-copy > strong { font-size: clamp(28px, 3.6vw, 46px); margin-top: 10px; }
.card-luxiai .project-gallery-hover-label { margin-top: 8px; }
.card-news .project-gallery-copy { background: #f4f1ff; }
.card-field .project-gallery-copy { background: #fff2e6; }
.card-donga .project-gallery-copy { background: #f2f4e9; }
.project-folder-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--sub); font-weight: 650; }
.project-gallery-copy > strong { font-size: clamp(21px, 2vw, 28px); margin-block: 4px 3px; line-height: 1.25; letter-spacing: -.03em; }
.project-description { color: var(--sub); font-size: 15px; margin-bottom: 16px; }
.project-gallery-hover-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); color: var(--blue); font-weight: 760; font-size: 14px; }
.project-logo-slot { display: grid; place-items: center; width: 76px; height: 39px; flex: none; background: var(--paper); border-radius: 8px; padding: 5px; }
.project-logo-slot img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) saturate(100%); }
.project-logo-slot .logo-donga { width: 28px; }
.project-logo-slot .logo-field { width: 40px; }
.project-card-action { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.project-gallery-hover-label b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sky); transition: background .2s, color .2s; }
.project-gallery-card:is(:hover,:focus-visible) .project-gallery-hover-label b { background: var(--blue); color: var(--ivory); }

.about { padding-block: clamp(54px, 7vw, 100px); }
.about-layout { width: min(100% - 2 * var(--pad), var(--max)); margin: auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(28px, 4.4vw, 64px); }
.about-portrait { background: var(--peach); border-radius: 16px; padding: 10px; }
.about-portrait img { width: 100%; height: auto; aspect-ratio: 1.62; object-fit: cover; object-position: 48% 53%; border-radius: 10px; }
.about h2 { font-size: clamp(29px, 3.5vw, 52px); }
.about-greeting { display: block; font-size: max(18px, .61em); margin-bottom: .3em; letter-spacing: -.025em; font-weight: 670; color: var(--sub); }
.about-name { color: var(--blue); }
.about-body { margin-block: 18px 22px; padding-block-start: 13px; border-top: 1px solid var(--line); color: var(--sub); }
.about-body p + p { margin-top: 10px; }
.about-key { color: var(--ink); font-weight: 720; }

/* Each chapter uses the same outer grid, with layouts suited to its content. */
.resume {
  display: grid; grid-template-columns: minmax(0,.73fr) minmax(0,1.27fr); gap: clamp(24px, 5vw, 66px);
  align-items: start; border-top: 1px solid var(--line); padding-block: clamp(46px, 6.5vw, 91px);
}
.resume-head { position: sticky; top: calc(var(--head) + 32px); }
.resume-head h2 { max-width: 12em; font-size: clamp(30px, 4.2vw, 57px); }
.resume-head p { max-width: 26ch; }
.resume-date { display: inline-block; margin-top: 14px; background: var(--sky); color: var(--blue-dark); border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 720; font-variant-numeric: tabular-nums; }
.skills h2 br { display: none; }
.resume-chronicle { --year-column: max(126px, 18%); --entry-gap: clamp(16px, 2vw, 26px); border-top: 1px solid var(--line); }
.chronicle-entry { position: relative; display: grid; grid-template-columns: var(--year-column) minmax(0, 1fr); gap: var(--entry-gap); padding-block: 28px; border-bottom: 1px solid var(--line); }
.chronicle-entry time strong { display: block; color: var(--blue); font-size: 28px; font-weight: 780; line-height: 1.2; }
.chronicle-entry time span { color: var(--sub); font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.chronicle-dot {
  position: absolute; top: 40px; left: calc(var(--year-column) + var(--entry-gap) / 2);
  width: 7px; height: 7px; background: var(--blue); border-radius: 50%; transform: translateX(-50%);
}
.chronicle-story header small { color: var(--sub); font-weight: 650; }
.chronicle-story h3 { font-size: clamp(22px, 2.55vw, 34px); letter-spacing: -.03em; line-height: 1.2; margin: 3px 0 7px; }
.chronicle-story p, .chronicle-story li, .accolade-row { color: var(--sub); }
.chronicle-detail { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; margin-top: 14px; }
.chronicle-detail ul { font-size: 15px; }
.chronicle-result { min-width: min(100%, 168px); padding: 12px 16px; background: var(--yellow); border-radius: 12px; }
.chronicle-result small, .chronicle-result span { color: #5b441f; display: block; font-size: 13px; }
.chronicle-result strong { display: block; color: var(--ink); font-size: 19px; }
.chronicle-list { margin-top: 12px; }
.chronicle-list p { display: grid; grid-template-columns: minmax(125px,.35fr) minmax(0,1fr); gap: 10px; padding: 8px 0; }
.chronicle-list b { color: var(--ink); }
.resume-accolades { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.accolade-section { background: var(--ivory); padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.accolade-section header { display: flex; justify-content: space-between; gap: 8px; font-size: 19px; color: var(--blue); font-weight: 780; margin-bottom: 10px; }
.accolade-section header b { font-size: 14px; }
.accolade-row { display: flex; gap: 12px; align-items: baseline; padding-block: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.accolade-row :is(time,.license-index) { flex: none; font-variant-numeric: tabular-nums; }
.accolade-row p span { display: block; }
.accolade-row strong { color: var(--ink); }

.skills { border-top: 1px solid var(--line); padding-block: clamp(44px, 6vw, 85px); }
.skills-layout { display: grid; gap: clamp(19px, 3vw, 32px); }
.skills h2 { font-size: clamp(31px, 4vw, 57px); }
.tool-deck { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.tool-group { padding: 15px 17px 12px; background: #f1effa; border-radius: 13px; }
.tool-group:nth-child(2) { background: #f8ecdc; }
.tool-group:nth-child(3) { background: #edf0e3; }
.tool-group h3 { color: var(--blue-dark); font-size: 18px; border-bottom: 1px solid #bdb8ce; padding-bottom: 8px; }
.skill-lines { display: grid; gap: 0; }
.skill-lines > div { position: relative; min-width: 0; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: center; gap: 7px; min-height: 57px; border-bottom: 1px solid var(--line); padding: 8px 0 9px; }
.skill-lines > div::after { content: ''; position: absolute; height: 2px; width: calc(var(--level) * 100%); bottom: -1px; left: 0; background: var(--blue); }
.skill-lines > div > span { display: none; }
.skill-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--sky); }
.skill-icon img { width: 21px; height: 21px; }
.icon-camera img, .icon-openai img { filter: brightness(0); }
.skill-lines strong { line-height: 1.25; font-size: 15px; }
.skill-lines small { display: block; color: var(--sub); font-size: 11px; margin-top: 3px; font-weight: 550; }
.skill-lines b { color: var(--blue); font-size: 12px; font-variant-numeric: tabular-nums; }

.contact { background: var(--sky); padding-top: clamp(28px, 4vw, 57px); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0,.9fr); align-items: center; gap: clamp(20px, 5vw, 72px); padding: clamp(20px, 3.7vw, 52px); background: var(--ivory); border: 1px solid #c2c8e6; border-radius: 16px; margin-bottom: 18px; }
.contact h2 { font-size: clamp(29px, 4.2vw, 55px); }
.contact-links { display: grid; gap: 9px; }
.contact-links a { display: grid; grid-template-columns: 57px minmax(0,1fr) auto; align-items: center; min-height: 52px; gap: 8px; background: var(--sky); border: 1px solid #b8c2eb; border-radius: 13px; padding: 9px 13px; color: var(--blue-dark); font-size: clamp(14px, 1.7vw, 19px); font-weight: 740; }
.contact-links a:hover { color: var(--ivory); background: var(--blue-dark); }
.contact-links small { font-size: 11px; letter-spacing: .03em; }
.contact-links b .direction-icon { width: 15px; height: 15px; }
.contact-message p { margin-top: 11px; color: #3e4670; }
.site-colophon { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 9px; border-top: 1px solid #b8c2eb; color: #3e4670; font-size: 13px; font-weight: 680; }
.colophon-brand { display: inline-flex; align-items: center; gap: 8px; }
.site-colophon a { display: flex; align-items: center; min-height: 44px; gap: 8px; }
.site-colophon a:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-end-marker { display: block; height: 1px; }

.project-view { display: none; position: fixed; z-index: 60; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); }
.project-view[aria-hidden="false"] { display: block; animation: sheet-in .29s var(--ease); }
@keyframes sheet-in { from { opacity: .5; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.detail-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: sticky; top: 0; z-index: 5; min-height: var(--head); padding-inline: max(var(--pad), calc((100% - var(--max)) / 2)); background: var(--paper); border-bottom: 1px solid var(--line); }
.detail-top button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; width: fit-content; border: 0; background: transparent; padding: 4px 0; color: var(--blue); font-weight: 720; }
.detail-top button:hover span { text-decoration: underline; text-underline-offset: 4px; }
.close-button { justify-self: end; }
.detail-hero, .detail-body { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.detail-hero {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.75fr); gap: clamp(19px, 4vw, 54px);
  align-items: center; padding-block: clamp(24px, 3.5vw, 45px); border-bottom: 1px solid var(--line);
}
.detail-deck { color: var(--sub); margin-top: 12px; font-size: clamp(15px, 1.55vw, 19px); }
.detail-cover { display: grid; gap: 8px; background: var(--sky); border-radius: 15px; padding: 9px; }
.cover-luxiai .detail-cover { background: #f4e5bb; }
.cover-field .detail-cover { background: var(--peach); }
.cover-donga .detail-cover { background: var(--sage); }
.detail-frames { display: grid; aspect-ratio: 2; border-radius: 9px; overflow: hidden; }
.cover-luxiai .detail-frames { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; background: #24293e; }
.cover-luxiai .cover-frame img { object-position: center 36%; }
.detail-logo { height: 37px; display: grid; place-items: center; }
.detail-logo img { width: auto; max-width: 136px; height: 29px; object-fit: contain; filter: brightness(0) saturate(100%); }
.detail-logo .logo-news { width: 132px; }
.detail-title-row { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.detail-title-row h1 { font-size: clamp(39px, 6vw, 77px); letter-spacing: -.04em; font-weight: 800; line-height: 1.1; outline: 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 14px 35px; margin-top: 20px; font-size: 15px; font-weight: 680; }
.detail-meta small { display: block; color: var(--sub); font-size: 12px; margin-bottom: 2px; }
.detail-body { padding-block: 27px 55px; }
.detail-intro { display: grid; grid-template-columns: .28fr 1fr; gap: 15px; margin-bottom: 31px; }
.detail-intro h2, .detail-body .section-kicker { color: var(--blue); font-size: 21px; font-weight: 780; }
.detail-intro p { color: var(--sub); font-size: 17px; max-width: 66ch; }
.detail-body .section-kicker { display: block; margin-bottom: 12px; }
.detail-body .section-kicker > span + span, .works-caption span { display: none; }
.duties-section { margin-bottom: 40px; }
.duties-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duty-block { display: flex; gap: 12px; padding: 15px 17px; border-radius: 12px; background: var(--ivory); border: 1px solid var(--line); }
.duty-block > span { font-size: 12px; font-weight: 750; color: var(--blue); margin-top: 3px; }
.duty-block h3 { font-size: 17px; }
.duty-block ul { color: var(--sub); font-size: 14px; margin-top: 4px; }
.works-caption { color: var(--sub); margin-bottom: 14px; }
.work-entry { border-top: 1px solid var(--line); }
.work-entry:last-child { border-bottom: 1px solid var(--line); }
.work-item { width: 100%; display: grid; grid-template-columns: 112px minmax(140px,.62fr) minmax(0,1fr) auto; gap: 15px; align-items: center; text-align: left; padding: 14px 9px; border: 0; background: transparent; transition: background .2s; }
.work-item:is(:hover,[aria-expanded="true"],:active) { background: var(--sky); }
.work-preview { position: relative; width: 100%; aspect-ratio: 1.55; border-radius: 8px; overflow: hidden; background: #252521; }
.work-preview img { width: 100%; height: 100%; object-fit: cover; }
.work-preview svg { position: absolute; width: 32px; height: 32px; top: 50%; left: 50%; translate: -50% -50%; color: #fff; background: #252525bb; border-radius: 50%; padding: 4px; }
.work-item h3 { font-size: clamp(18px, 2.2vw, 28px); line-height: 1.2; }
.work-item h3 small { display: block; color: var(--sub); font-size: 13px; margin-top: 4px; }
.work-item p { color: var(--sub); font-size: 14px; }
.work-action { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 99px; background: var(--blue); color: var(--ivory); font-size: 14px; font-weight: 700; min-height: 44px; }
.expand-icon { height: 18px; width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.collapse-label, .open .expand-label { display: none; }
.open .collapse-label { display: inline; }
.open .expand-icon { transform: rotate(180deg); }
.work-panel { display: none; overflow: clip; }
.work-entry.open .work-panel { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(240px,1fr); gap: 25px; align-items: start; padding-block: 16px 28px; animation: sheet-in .3s var(--ease); }
.work-gallery { display: grid; gap: 16px; min-width: 0; }
.work-gallery.is-portrait { grid-template-columns: repeat(2, minmax(0,1fr)); }
.work-media { min-width: 0; }
.work-media video { width: 100%; aspect-ratio: 16 / 9; background: #070707; border-radius: 10px; object-fit: contain; }
.is-portrait video { aspect-ratio: 9 / 16; }
.work-media figcaption { color: var(--sub); margin-top: 5px; font-size: 12px; }
.work-media figcaption span { color: var(--blue); font-weight: 750; margin-right: 6px; }
.work-copy { transform: translateY(var(--note-follow-y, 0px)); border-left: 1px solid var(--line); padding-left: 19px; color: var(--sub); }
.work-copy > small { display: block; font-size: 11px; color: var(--blue); font-weight: 700; }
.work-copy strong { display: block; color: var(--ink); font-size: 21px; margin: 3px 0 6px; }
.work-copy p { margin-bottom: 8px; }
.work-copy li { font-size: 14px; }
.detail-outcomes { display: grid; grid-template-columns: .7fr 1fr; gap: 20px; margin-top: 32px; }
.detail-outcomes > div { padding: 16px 18px; background: var(--sage); border-radius: 13px; }
.detail-outcomes small { color: var(--sub); }
.detail-outcomes h3 { color: var(--blue); font-size: 23px; margin-block: 3px; }
.detail-outcomes h3 br { display: none; }
.detail-outcomes p, .detail-outcomes li { color: var(--sub); font-size: 15px; }

.chapter-waiting { opacity: .74; transform: translateY(16px); }
@media (max-width: 960px) {
  .header-credit { display: none; }
  .site-header { grid-template-columns: 1fr auto 1fr; }
  .project-gallery-hover-label { gap: 6px; }
  .project-logo-slot { width: 59px; }
}
@media (max-width: 760px) {
  :root { --head: 60px; }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { display: grid; align-content: center; justify-items: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 50%; }
  .menu-toggle span { width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  #main-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 8px var(--pad) 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
  #main-nav.open { display: grid; grid-template-columns: repeat(3,1fr); }
  .hero { padding-block: 26px 15px; }
  .hero-grid { grid-template-columns: 1fr; gap: 21px; text-align: center; }
  .hero-title { font-size: clamp(38px, 10vw, 64px); }
  .hero-intro { margin-top: 10px; }
  .scroll-cue { margin-top: 17px; }
  .hero-folio { width: min(100%, 520px); justify-self: center; padding: 0 0 17px 8px; }
  .hero-media { aspect-ratio: 1.8; border-radius: 12px; }
  .folio-cut { width: 47%; border-radius: 8px; }
  .chronicle-dot { display: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 16px; }
  .contact-links { max-width: 480px; }
  .resume { grid-template-columns: 1fr; gap: 17px; }
  .resume-head { position: static; }
  .resume-head h2, .resume-head p { max-width: none; }
  .resume-head h2 br { display: none; }
  .resume-accolades { grid-column: 1; }
  .tool-deck { grid-template-columns: 1fr; gap: 10px; }
  .tool-group { padding: 10px 13px; }
  .project-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-list .card-donga { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .card-donga .project-gallery-visual { aspect-ratio: auto; }
  .about-layout { grid-template-columns: 1fr; gap: 22px; }
  .about-portrait img { aspect-ratio: 1.65; }
  .chronicle-entry { grid-template-columns: 1fr; gap: 9px; }
  .chronicle-entry time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; }
  .chronicle-detail { flex-wrap: wrap; }
  .detail-top .wordmark { font-size: 12px; }
  .detail-top button { font-size: 14px; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-frames { aspect-ratio: 2.4; }
  .detail-intro { grid-template-columns: 1fr; gap: 4px; }
  .work-item { grid-template-columns: 82px minmax(0,1fr) auto; gap: 10px; }
  .work-item p { display: none; }
  .work-action { font-size: 12px; padding: 7px 10px; }
  .work-entry.open .work-panel { grid-template-columns: 1fr; gap: 14px; }
  .work-copy { grid-row: 1; transform: none; padding: 10px 12px; border: 0; background: var(--ivory); border-radius: 10px; }
}
@media (max-width: 510px) {
  .project-list, .resume-accolades, .duties-grid, .detail-outcomes { grid-template-columns: 1fr; gap: 13px; }
  .project-list { margin-top: 21px; }
  .projects-intro { display: block; }
  .projects-count { margin-top: 7px; }
  .projects-count b { font-size: 19px; }
  .project-list .card-donga, .card-luxiai { display: flex; }
  .project-gallery-visual, .card-donga .project-gallery-visual { aspect-ratio: 1.85; }
  .card-luxiai .project-gallery-visual { height: auto; aspect-ratio: 1.8; }
  .project-logo-slot { width: 72px; }
  .chronicle-list p { grid-template-columns: 1fr; gap: 0; }
  .detail-top .wordmark { display: none; }
  .detail-top { grid-template-columns: 1fr 1fr; }
  .detail-meta { gap: 10px 19px; }
  .work-item { grid-template-columns: 74px minmax(0,1fr); }
  .work-action { grid-column: 1 / -1; }
  .contact-links a { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .chapter-waiting { opacity: 1; transform: none; }
}
