/* Min Kyu / editorial refinement. One visual system, no accumulated overrides. */
@font-face {
  font-family: 'Pretendard';
  src: url('./assets/PretendardVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --surface-about: #1d1c19;
  --bg: var(--surface-about);
  --surface: var(--surface-about);
  --surface-resume: var(--surface-about);
  --surface-skills: var(--surface-about);
  --surface-hover: #191815;
  --work-hover: #c7ed7824;
  --gallery-plate: #000;
  --gallery-plate-hover: #090909;
  --ink: #f2f1ed;
  --muted: #c4c0b7;
  --line: #ffffff24;
  --accent: #c7ed78;
  --accent-text: #d7e5b7;
  --pad: max(40px, calc((100vw - 1320px) / 2));
  --gutter: 64px;
  --header: 76px;
  --type-section: clamp(40px, 4.4vw, 64px);
  --type-item: clamp(25px, 2.2vw, 32px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: var(--header); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: 'Pretendard', sans-serif; font-size: 17px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
body.detail-open, body.intro-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button, input { caret-color: var(--accent); }
::selection { color: var(--bg); background: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: #656b5d var(--bg); }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: var(--type-section); line-height: 1.2; font-weight: 700; letter-spacing: -.035em; }
.chapter-waiting { transform: translate3d(0, 36px, 0); opacity: .45; }
.page-end-marker { position: absolute; bottom: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.text-accent { color: var(--accent); }
ul { padding-left: 1.15em; margin: 0; }
li + li { margin-top: 7px; }
.section-pad { padding: 72px var(--pad); }
.direction-icon { width: 22px; height: 22px; flex: 0 0 auto; display: block; }
.text-link { display: inline-flex; align-items: center; gap: 26px; min-height: 48px; width: max-content; max-width: 100%; font-size: 15px; }
.text-link > span { position: relative; }
.text-link > span::after { content: ''; position: absolute; inset: auto 0 -4px; height: 1px; background: currentColor; transform: scaleX(.25); transform-origin: left; transition: transform .4s var(--ease); }
.text-link > b { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #71816f; border-radius: 50%; transition: background .3s, color .3s, transform .4s var(--ease); }
.text-link:hover > span::after, .text-link:focus-visible > span::after { transform: scaleX(1); }
.text-link:hover > b, .text-link:focus-visible > b { background: var(--accent); color: var(--bg); transform: translateX(4px); }
.text-link:active > b { transform: translateX(2px) scale(.94); }
.section-watch { scroll-margin-top: 0; }
.section-kicker, .accent-word, .hero-nav-hotspots, .hero-location, .hero-manifesto,
.about-index, .chronicle-guide, .project-intro-index, .page-count { display: none; }

/* Quiet navigation, with a single line indicating the current chapter. */
.site-header { position: fixed; inset: 0 0 auto; height: var(--header); z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); background: var(--bg); border-bottom: 1px solid var(--line); }
.wordmark { font-size: 16px; letter-spacing: .12em; font-weight: 650; white-space: nowrap; }
.site-header nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: clamp(20px, 2.7vw, 44px); height: 100%; align-items: center; }
.site-header nav a { font-size: 13px; letter-spacing: .065em; color: var(--muted); position: relative; padding: 13px 0; transition: color .2s; }
.site-header nav a::after { content: ''; position: absolute; bottom: 2px; left: 0; right: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-header nav a:hover, .site-header nav a.active { color: var(--accent); }
.site-header nav a.active::after, .site-header nav a:hover::after, .site-header nav a:focus-visible::after { transform: scaleX(1); }
.wordmark { transition: opacity .2s; }
a.wordmark:hover { opacity: .65; }
.menu-toggle { display: none; }

/* One opening title sequence, with the original photograph left intact. */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: #0c1215; }
.hero-media { position: absolute; inset: 0; background: url('./assets/hero-master.png') center / cover; transform-origin: 60% 55%; animation: quietZoom 14s ease-in-out infinite alternate; }
@keyframes quietZoom { from { transform: scale(1.015); } to { transform: scale(1.095); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #080e1259, #080e128c 50%, #080e1226), linear-gradient(0deg, #080e12d9, #080e1226 72%); }
.hero-grid { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding: calc(var(--header) + clamp(24px, 4svh, 44px)) var(--pad) clamp(24px, 4svh, 42px); gap: clamp(24px, 4svh, 44px); }
.hero-statement { min-width: 0; width: 100%; max-width: 920px; margin-inline: auto; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero-intro { margin-top: clamp(20px, 3.4svh, 36px); }
.hero-intro p { color: #d3d6d2; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.75; text-shadow: 0 2px 12px #080e12; }
.hero-intro strong { color: var(--ink); font-size: clamp(21px, 1.9vw, 27px); font-weight: 550; }
.hero-intro-line { display: block; overflow: hidden; }
.hero-intro-line > span { display: block; }
.hero-title { width: max-content; max-width: 100%; margin-inline: auto; font-size: clamp(40px, min(5.7vw, 9.2svh), 86px); font-weight: 480; line-height: 1.22; letter-spacing: -.03em; text-align: center; text-shadow: 0 4px 24px #080e1233; }
.hero-type-line { display: block; overflow: hidden; padding: .04em .05em .1em; margin-bottom: -.04em; }
.hero-type-line > span { display: block; width: max-content; max-width: 100%; margin-inline: auto; transform-origin: center bottom; }
.hero-type-human { font-weight: 420; }
.hero-type-connect { font-weight: 530; color: var(--accent); }
.hero-footer { display: flex; align-items: center; justify-content: center; }
.hero-credit { display: flex; align-items: center; justify-content: center; gap: 26px; }
.hero-signature { width: 172px; height: auto; flex: 0 0 auto; }
.hero-role { padding-left: 26px; border-left: 1px solid #ffffff38; font-size: 12px; font-weight: 500; letter-spacing: .085em; line-height: 1.8; color: var(--ink); }
.scroll-cue { white-space: nowrap; margin: clamp(18px, 3svh, 30px) auto 0; justify-content: center; }
.section-jump > span::after { transform: scaleX(0); }
.section-jump:hover > span::after, .section-jump:focus-visible > span::after { transform: scaleX(1); }
/* Both invitations share a centered label and a small arrow underneath. */
.section-jump { flex-direction: column; gap: 8px; text-align: center; }
.section-jump > span { overflow: hidden; padding-bottom: 4px; }
.section-jump > span::after { bottom: 0; }
.scroll-cue-text, .about-career-text { display: block; }
.section-jump > b { width: 28px; height: 28px; border: 0; border-radius: 0; background: transparent; }
.section-jump .direction-icon { width: 18px; height: 18px; }
.section-jump:hover > b, .section-jump:focus-visible > b { background: transparent; color: var(--accent); transform: translateY(3px); }
.section-jump:active > b { transform: translateY(1px) scale(.94); }

.about { background: var(--surface-about); }
.about .about-body p { color: #d3cfc4; }
.about .about-greeting { color: #dcd8ce; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: center; align-content: center; min-height: calc(100svh - var(--header)); min-height: calc(100dvh - var(--header)); margin: 0 auto; padding: 48px var(--pad); }
.about-portrait { margin: 0; aspect-ratio: 6 / 5; overflow: hidden; border: 1px solid var(--line); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.about-copy { width: 100%; max-width: none; text-align: center; }
.about-introduction { width: 100%; margin: 0; font-size: clamp(36px, 3.65vw, 52px); font-weight: 650; line-height: 1.36; letter-spacing: -.03em; text-wrap: initial; }
.about-greeting { display: block; font-size: 20px; line-height: 1.6; margin-bottom: 20px; color: #d3dada; font-weight: 400; letter-spacing: 0; }
.about-name { font-weight: 750; color: var(--accent); }
.about-body { margin-top: 30px; }
.about-body p { color: #c6cfd2; font-size: 20px; line-height: 1.8; text-wrap: balance; }
.about-body p + p { margin-top: 16px; }
.about-body strong { color: var(--accent-text); font-weight: 600; }
.about-career-link { margin: 26px auto 0; }
@media (min-width: 821px) {
  .about-layout { padding-left: calc(var(--pad) + 12px); padding-right: calc(var(--pad) - 12px); }
}

/* A readable career ledger: chronology is the organizing line. */
.resume { position: relative; border-bottom: 1px solid var(--line); background: var(--surface-resume); padding-top: 0; }
.resume::before { content: ''; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: #ffffff30; pointer-events: none; }
.resume-head { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; margin: 0 calc(-1 * var(--pad)) 20px; padding: 28px var(--pad); background: linear-gradient(180deg, var(--surface-resume), transparent 24%, transparent 76%, var(--surface-resume)), linear-gradient(90deg, var(--surface-resume) 22%, #1d1c19eb 42%, #1d1c1966 78%), url('./assets/project-camera.png') center 52% / cover; }
.resume-head > p { max-width: 680px; color: var(--muted); font-size: 17px; }
.resume-head > p > span { display: block; margin-bottom: 8px; color: var(--ink); font-variant-numeric: tabular-nums; }
.resume-chronicle { position: relative; }
.resume-chronicle::before { content: ''; position: absolute; top: 38px; bottom: 45px; left: 195px; width: 1px; background: var(--line); }
.chronicle-entry { position: relative; display: grid; grid-template-columns: 170px 1fr; column-gap: 50px; padding: 30px 0; border-top: 1px solid var(--line); }
.chronicle-entry time { font-variant-numeric: tabular-nums; }
.chronicle-entry time strong { display: block; font-size: 34px; line-height: 1.3; font-weight: 350; letter-spacing: -.025em; color: #d6c4a8; }
.chronicle-entry time span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.chronicle-dot { position: absolute; left: 192px; top: 38px; width: 7px; height: 7px; border-radius: 50%; background: #8d9680; }
.chronicle-featured .chronicle-dot { background: var(--accent); outline: 4px solid var(--surface-resume); }
.chronicle-story { position: relative; padding-left: 26px; }
.chronicle-story > header small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.chronicle-story h3 { font-size: var(--type-item); line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.chronicle-story > header p { color: var(--muted); margin-top: 10px; max-width: 68ch; }
.chronicle-detail { display: grid; grid-template-columns: 1fr minmax(180px, .6fr); gap: 36px; margin-top: 24px; }
.chronicle-detail ul { color: #cdcec5; font-size: 16px; }
.chronicle-result { align-self: start; padding-left: 24px; border-left: 1px solid var(--line); }
.chronicle-result small, .chronicle-result span { display: block; color: var(--muted); font-size: 14px; }
.chronicle-result strong { display: block; margin: 5px 0; font-size: 24px; font-weight: 500; color: var(--accent-text); }
.chronicle-featured time strong, .chronicle-featured .chronicle-result strong { color: var(--accent); }
.chronicle-list { margin-top: 20px; display: grid; gap: 10px; }
.chronicle-list p { display: grid; grid-template-columns: minmax(160px, .55fr) 1fr; gap: 16px; font-size: 16px; }
.chronicle-list b { font-weight: 500; }
.chronicle-list span { color: var(--muted); }
.resume-accolades { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); padding-top: 36px; border-top: 1px solid var(--line); }
.accolade-section header { display: flex; justify-content: space-between; font-size: 22px; margin-bottom: 18px; color: var(--accent-text); }
.accolade-section header b { display: none; }
.accolade-row { display: grid; grid-template-columns: 85px 1fr; gap: 16px; padding: 11px 0; font-size: 16px; }
.accolade-row time, .license-index { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.accolade-row strong { font-weight: 500; }
.accolade-row p span { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.accolade-licenses .license-index { display: none; }
.accolade-licenses .accolade-row { display: block; }

/* Four retained folders, each treated as an uncluttered logo plate. */
.projects { padding-bottom: 64px; background: var(--bg); }
.projects-intro { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; min-height: 310px; padding-top: 48px; padding-bottom: 48px; margin-bottom: 36px; background: linear-gradient(90deg, #181714d9, #1817146b 52%, #18171422), url('./assets/project-intro-cinematic-v2.png') center 56% / cover; border-bottom: 1px solid var(--line); }
.projects-intro h2 { max-width: 800px; font-size: var(--type-section); font-weight: 700; }
.projects-intro > p { color: #d2d8da; max-width: 500px; font-size: 16px; }
.projects-intro > p br { display: none; }
.project-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 var(--pad); }
.project-gallery-card { position: relative; display: flex; flex-direction: column; background: var(--surface-about); border: 1px solid var(--line); padding: 0; text-align: left; min-width: 0; transition: border-color .35s, transform .45s var(--ease), background .35s; }
.project-gallery-visual { height: clamp(220px, 19vw, 270px); width: 100%; background: var(--gallery-plate); position: relative; overflow: hidden; }
.project-gallery-visual::before { content: ''; position: absolute; inset: 0; background: var(--gallery-plate-hover); opacity: 0; transition: opacity .45s var(--ease); }
.project-folder-meta { position: absolute; inset: 20px 24px auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; line-height: 1.4; color: #c5cdd1; z-index: 1; }
.project-folder-meta > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.project-logo-stage { position: absolute; inset: 48px 24px 24px; display: flex; align-items: center; justify-content: center; transition: transform .5s var(--ease); }
.project-gallery-backdrop, .project-gallery-top { display: none; }
.project-gallery-logo { width: 340px; max-width: 78%; height: auto; max-height: 150px; object-fit: contain; }
.project-gallery-logo.logo-field { width: 230px; height: 164px; max-height: 164px; }
.project-gallery-logo.logo-luxiai { filter: brightness(0) invert(.94); }
.project-gallery-logo.logo-donga { width: 172px; height: 172px; max-height: 172px; filter: brightness(0) invert(.94); }
.project-gallery-news-logo { width: 360px; max-width: 82%; position: relative; }
.news-logo-mono { width: 100%; filter: brightness(0) invert(.94); }
.news-logo-accent { position: absolute; inset: 0; width: 100%; clip-path: inset(0 88.2% 0 0); }
.project-gallery-copy { display: block; padding: 24px 26px 18px; flex: 1; transition: transform .45s var(--ease); }
.project-gallery-copy small { font-size: 14px; color: var(--muted); display: block; margin-bottom: 5px; }
.project-gallery-copy strong { display: block; font-size: var(--type-item); line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.project-gallery-copy > span { display: block; max-width: 55ch; margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.project-gallery-hover-label { order: 3; display: flex; gap: 16px; justify-content: space-between; align-items: center; margin: 2px 26px 26px; padding: 15px 18px; min-height: 72px; border: 1px solid #a6b18c80; border-radius: 4px; color: var(--accent); background: #c7ed7808; transition: color .25s, background .25s, border-color .25s; }
.project-gallery-hover-label > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.project-gallery-hover-label strong { font-size: 17px; font-weight: 650; }
.project-gallery-hover-label small { font-size: 13px; font-weight: 400; opacity: .78; }
.project-gallery-hover-label b { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; }
.project-gallery-hover-label .direction-icon { transition: transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) and (min-width: 821px) {
  .project-gallery-card:hover { transform: translateY(-6px); border-color: #a6b18c; }
  .project-gallery-card:hover .project-gallery-visual::before { opacity: 1; }
  .project-gallery-card:hover .project-logo-stage { transform: scale(1.04); }
  .project-gallery-card:hover .project-gallery-hover-label { background: var(--accent); border-color: var(--accent); color: #1d2411; }
  .project-gallery-card:hover .project-gallery-hover-label .direction-icon { transform: translateX(5px); }
}
.project-gallery-card:focus-visible .project-gallery-visual::before { opacity: 1; }
.project-gallery-card:focus-visible .project-logo-stage { transform: scale(1.04); }
.project-gallery-card:focus-visible .project-gallery-hover-label { background: var(--accent); border-color: var(--accent); color: #1d2411; }
.project-gallery-card:focus-visible .project-gallery-hover-label .direction-icon { transform: translateX(5px); }
.project-gallery-card:active { transform: translateY(-1px) scale(.995); }
@media (hover: none), (pointer: coarse), (max-width: 820px) {
  .project-gallery-hover-label { background: var(--accent); border-color: var(--accent); color: #1d2411; }
}

.skills { border-top: 1px solid var(--line); background: var(--surface-skills); }
.skills-layout { display: grid; gap: 36px; }
.skills-layout > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.skills-layout h2 br { display: none; }
.skills-layout h2 { max-width: 780px; }
.skills-copy { max-width: 640px; color: var(--muted); }
.skill-lines { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
.skill-lines > div { position: relative; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.skill-lines > div::before { content: ''; position: absolute; bottom: 0; left: 46px; right: 0; height: 2px; background: #ffffff12; }
.skill-lines > div::after { content: ''; position: absolute; bottom: 0; left: 46px; height: 2px; width: calc((100% - 46px) * var(--level)); background: var(--accent); transform-origin: left; }
.skill-lines > div > span { display: none; }
.skill-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.skill-icon img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) invert(.93); }
.icon-camera img { filter: brightness(0) invert(.93); }
.skill-lines strong { font-weight: 500; font-size: 19px; line-height: 1.4; }
.skill-lines small { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.skill-lines b { font-size: 24px; font-weight: 450; color: var(--accent); font-variant-numeric: tabular-nums; }

.contact { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.contact-media { position: absolute; inset: 0; background: url('./assets/contact-river.png') center / cover; opacity: .65; }
.contact-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #181714eb, #1817149c); }
.contact-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); row-gap: 30px; }
.contact h2 { font-size: clamp(36px, 3.7vw, 54px); }
.contact-links a { position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 20px 0; border-bottom: 1px solid #626958; transition: background .3s; }
.contact-links a::before { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.contact-links small { color: var(--accent); font-size: 13px; letter-spacing: .08em; grid-column: 1; }
.contact-links a > span { font-size: clamp(20px, 2vw, 27px); line-height: 1.5; grid-column: 1; white-space: nowrap; }
.contact-links b { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #75826d; border-radius: 50%; transition: background .3s, color .3s; }
.contact-links .direction-icon { transition: transform .4s var(--ease); }
.contact-links a:hover b, .contact-links a:focus-visible b { background: var(--accent); color: var(--bg); }
.contact-links a:hover .direction-icon { transform: translate(2px, -2px); }
.contact-links a:hover::before, .contact-links a:focus-visible::before { transform: scaleX(1); }
.contact-links a:active b { transform: scale(.94); }
.contact-inner > p { font-size: 15px; color: var(--muted); }

/* The same editorial rhythm continues inside every project. */
.project-view { display: none; position: fixed; inset: 0; overflow-y: auto; overscroll-behavior: contain; z-index: 60; background: var(--bg); }
.project-view[aria-hidden='false'] { display: block; animation: detailArrival .4s var(--ease); }
@keyframes detailArrival { from { opacity: .7; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.detail-top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 0 var(--pad); height: var(--header); border-bottom: 1px solid var(--line); background: var(--bg); }
.detail-top button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; border: 0; background: none; padding: 8px 0; font-size: 15px; transition: color .2s; }
.detail-top button .direction-icon { transition: transform .35s var(--ease); }
.back-button:hover .direction-icon { transform: translateX(-5px); }
.close-button:hover .direction-icon { transform: rotate(90deg); }
.detail-top button:hover { color: var(--accent); }
.detail-top .wordmark { color: var(--muted); position: absolute; left: 50%; transform: translateX(-50%); }
.detail-hero { padding: 44px var(--pad) 32px; border-bottom: 1px solid var(--line); }
.detail-hero-bg, .detail-eyebrow { display: none; }
.detail-hero h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.2; letter-spacing: -.035em; font-weight: 700; }
/* This static heading is an entry announcement, not an interactive control. */
.detail-hero h1[tabindex="-1"]:focus { outline: none; }
.detail-title-row { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.detail-brand { width: 240px; height: 92px; flex: 0 0 240px; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); padding-left: 30px; }
.detail-brand .project-gallery-logo, .detail-brand .project-gallery-news-logo { width: 100%; max-height: 70px; }
.detail-brand .logo-donga { width: 70px; height: 70px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 24px 56px; margin-top: 30px; font-size: 17px; }
.detail-meta > div + div { border-left: 1px solid var(--line); padding-left: 32px; }
.detail-meta small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.detail-body { padding: 36px var(--pad) 64px; }
.detail-intro { display: grid; grid-template-columns: 220px 1fr; gap: 28px; margin-bottom: 36px; }
.detail-intro h2 { font-size: 22px; color: var(--accent); }
.detail-intro p { max-width: 72ch; color: #cecfc5; font-size: 19px; line-height: 1.8; }
.duties-section { margin-bottom: 42px; }
.detail-body .section-kicker { display: block; font-size: 26px; font-weight: 650; padding: 18px 0; border-top: 1px solid var(--line); }
.detail-body .section-kicker span + span { display: none; }
.duties-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 60px; }
.duty-block { display: block; }
.duty-block > span { display: none; }
.duty-block h3 { font-size: 19px; font-weight: 550; margin-bottom: 10px; color: var(--accent-text); }
.duty-block ul { font-size: 16px; color: var(--muted); }
.works-caption { margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.works-caption > span { display: none; }
.work-entry { border-top: 1px solid var(--line); }
.work-entry:last-child { border-bottom: 1px solid var(--line); }
.work-item { display: grid; grid-template-columns: 120px minmax(160px, .8fr) minmax(180px, 1fr) 190px; gap: 24px; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: 22px 16px; transition: background .3s; }
.work-item > * { min-width: 0; }
.work-item[aria-expanded='true'] { background: var(--surface-hover); }
.work-item:focus-visible { background: var(--work-hover); }
.work-preview { position: relative; display: block; width: 120px; height: 80px; overflow: hidden; background: #060a0d; }
.work-preview img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .5s var(--ease), opacity .3s; }
.work-preview svg { position: absolute; width: 30px; height: 30px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #0b1013bb; border-radius: 50%; }
.work-item h3 { font-size: clamp(23px, 2.5vw, 32px); line-height: 1.35; font-weight: 550; letter-spacing: -.025em; }
.work-item h3 small { display: block; font-size: 13px; letter-spacing: 0; font-weight: 400; color: var(--muted); margin-top: 6px; }
.work-item > p { font-size: 15px; color: var(--muted); }
.work-item > p b { font-size: 14px; color: #d7dacd; font-weight: 450; }
.work-action { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 16px; border: 1px solid #a6b18c80; border-radius: 4px; background: #c7ed7808; color: var(--accent); font-size: 16px; font-weight: 650; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.expand-icon { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.work-item .collapse-label { display: none; }
.work-item[aria-expanded='true'] .expand-label { display: none; }
.work-item[aria-expanded='true'] .collapse-label { display: inline; }
.work-item[aria-expanded='true'] .work-action { background: transparent; color: var(--accent-text); border-color: #a6b18c80; }
.work-item:focus-visible .work-action { background: var(--accent); color: #1d2411; border-color: var(--accent); }
.work-item:focus-visible .work-preview img { transform: scale(1.06); opacity: 1; }
.work-item:focus-visible .expand-icon { transform: translateY(3px); }
@media (hover: hover) and (pointer: fine) and (min-width: 821px) {
  .work-item:hover { background: var(--work-hover); }
  .work-item:hover .work-preview img { transform: scale(1.06); opacity: 1; }
  .work-item:hover .work-action { background: var(--accent); color: #1d2411; border-color: var(--accent); }
  .work-item:hover .expand-icon { transform: translateY(3px); }
}
@media (hover: none), (pointer: coarse), (max-width: 820px) {
  .work-item[aria-expanded='false'] .work-action { background: var(--accent); color: #1d2411; border-color: var(--accent); }
}
.work-item[aria-expanded='true'] .expand-icon { transform: rotate(180deg); }
.work-item:active { background: var(--work-hover); }
.work-item:active .work-action { background: #b6d96d; color: #1d2411; }
.work-panel { display: none; overflow: clip; }
.work-entry.open .work-panel { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr); gap: 36px; padding: 20px 0 30px; align-items: start; animation: panelArrival .4s var(--ease); }
@keyframes panelArrival { from { opacity: .5; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.work-gallery { display: grid; gap: 22px; min-width: 0; }
.work-gallery.is-portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-media { margin: 0; min-width: 0; }
.work-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #050605; }
.is-portrait .work-media video { aspect-ratio: 9 / 16; }
.work-media figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }
.work-media figcaption > span { margin-right: 12px; font-variant-numeric: tabular-nums; }
.work-copy { transform: translateY(var(--note-follow-y, 0px)); padding-left: 24px; border-left: 1px solid var(--line); }
.work-copy > small { display: none; }
.work-copy > strong { display: block; font-size: 24px; line-height: 1.4; font-weight: 550; margin-bottom: 16px; color: var(--accent-text); }
.work-copy > p { margin-bottom: 20px; color: #d0d2c7; }
.work-copy li { font-size: 15px; color: var(--muted); }
.detail-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }
.detail-outcomes small { color: var(--muted); font-size: 15px; }
.detail-outcomes h3 { font-size: 28px; font-weight: 500; margin: 9px 0 18px; }
.detail-outcomes h3 br { display: none; }
.detail-outcomes p, .detail-outcomes li { color: var(--muted); font-size: 16px; }

/* Retain the requested first-visit note; remove the decorative badge and glow. */
.intro-notice[hidden] { display: none; }
.intro-notice { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .25s; }
.intro-notice.is-visible { opacity: 1; }
.intro-notice-backdrop { position: absolute; inset: 0; background: #050805b8; }
.intro-notice-card { position: relative; max-width: 490px; width: 100%; padding: 36px; background: var(--surface); }
.intro-notice-top, .intro-notice-mark, .intro-notice-eyebrow, .intro-notice-card > small { display: none; }
.intro-notice-card h2 { font-size: 32px; }
.intro-notice-card h2 em { font-style: normal; }
.intro-notice-copy { margin-top: 24px; color: #cdd1c3; }
.intro-notice-copy strong { color: var(--accent); font-weight: 600; }
.intro-notice-button { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: #d9decd; color: #171b13; padding: 13px 18px; margin-top: 28px; transition: background .25s, transform .25s; }
.intro-notice-button:hover { background: #eef3e6; }
.intro-notice-button:active { transform: scale(.985); }
.intro-notice-button .direction-icon { transition: transform .4s var(--ease); }
.intro-notice-button:hover .direction-icon { transform: translate(3px, -3px); }
.intro-notice-button b { font-weight: 400; }
.page-paused .hero-media { animation-play-state: paused; }

@media (max-width: 1000px) {
  :root { --pad: 32px; --gutter: 36px; }
  .about-layout { padding-left: calc(var(--pad) + 12px); padding-right: calc(var(--pad) - 12px); }
  .chronicle-entry { grid-template-columns: 145px 1fr; gap: 28px; }
  .resume-chronicle::before { left: 158px; }
  .chronicle-dot { left: 155px; }
  .chronicle-detail { grid-template-columns: 1fr; gap: 20px; }
  .chronicle-result { padding-left: 0; border: 0; }
  .chronicle-result strong { font-size: 22px; }
  .chronicle-list p { display: block; }
  .chronicle-list span { display: block; margin-top: 3px; }
  .project-gallery-logo.logo-donga { width: 108px; height: 108px; }
  .work-item { grid-template-columns: 100px minmax(0, 1fr) 190px; gap: 20px; }
  .work-preview { width: 100px; }
  .work-item > p { display: none; }
}
@media (max-width: 820px) {
  :root { --header: 64px; --pad: 24px; }
  body { font-size: 16px; }
  .section-pad { padding: 48px var(--pad); }
  .resume { padding-top: 0; }
  :root { --type-section: 36px; --type-item: 26px; }
  h2 { font-size: var(--type-section); }
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; justify-content: center; align-items: center; width: 44px; height: 44px; border: 0; background: none; }
  .menu-toggle span { width: 22px; height: 1px; 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); }
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; transform: none; height: auto; background: var(--bg); padding: 16px var(--pad) 24px; border-bottom: 1px solid var(--line); }
  .site-header nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
  .site-header nav a { font-size: 15px; padding: 12px 0; }
  .hero-media { background-position: 54% center; }
  .hero-title { font-size: clamp(38px, min(9.1vw, 9.2svh), 72px); line-height: 1.25; }
  .hero-intro p { font-size: clamp(18px, 4.6vw, 20px); line-height: 1.7; }
  .hero-intro strong { font-size: clamp(20px, 5.2vw, 24px); }
  .hero-shade { background: linear-gradient(90deg, #080e1280, #080e1299 50%, #080e1266), linear-gradient(0deg, #080e12d9, transparent 75%); }
  .hero-credit { gap: 20px; }
  .hero-signature { width: 148px; }
  .hero-role { padding-left: 20px; }
  .about-layout { grid-template-columns: 1fr; gap: 28px; padding: 40px var(--pad) 36px; }
  .about-portrait { width: 100%; max-width: 620px; justify-self: center; }
  .about-copy { width: 100%; min-width: 0; max-width: 620px; padding: 0; margin: 0 auto; }
  .about-introduction { width: 100%; max-width: 620px; margin: 0 auto; font-size: clamp(32px, 9.2vw, 40px); }
  .about-body { max-width: none; margin-top: 24px; }
  .about-body p { font-size: 18px; }
  .about-career-link { margin-top: 20px; }
  .resume-head, .projects-intro, .skills-layout, .contact-inner { grid-template-columns: 1fr; gap: 24px; }
  .resume-head { gap: 14px; background-position: center, center, 68% center; }
  .resume-head > p { max-width: 100%; }
  .resume-head > p > span { display: block; margin: 0 0 8px; }
  .chronicle-entry { grid-template-columns: 1fr; padding: 24px 0; gap: 14px; }
  .chronicle-entry time { display: flex; align-items: baseline; gap: 16px; }
  .chronicle-entry time strong { font-size: 20px; }
  .chronicle-entry time span { margin: 0; font-size: 14px; }
  .chronicle-dot { display: none; }
  .resume-chronicle::before { display: none; }
  .chronicle-story { margin-left: 5px; padding-left: 18px; border-left: 1px solid var(--line); }
  .chronicle-story h3 { font-size: 26px; }
  .chronicle-detail { margin-top: 18px; }
  .chronicle-story > header p, .chronicle-detail ul, .chronicle-list p { font-size: 15px; }
  .resume-accolades { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .accolade-section header { margin-bottom: 8px; }
  .projects { padding-bottom: 48px; }
  .projects-intro { min-height: 300px; padding-top: 36px; padding-bottom: 36px; gap: 18px; background-position: 64% center; margin-bottom: 24px; }
  .project-list { gap: 20px; }
  .project-gallery-visual { height: 220px; }
  .project-gallery-copy { padding: 20px; }
  .project-gallery-copy strong { font-size: 25px; }
  .project-gallery-hover-label { margin: 0 20px 20px; padding: 13px 16px; }
  .project-gallery-hover-label > span { display: grid; gap: 0; }
  .project-folder-meta { inset: 18px 20px auto; font-size: 12px; }
  .project-logo-stage { inset: 50px 20px 26px; }
  .project-gallery-logo { width: 280px; max-width: 86%; max-height: 126px; }
  .project-gallery-logo.logo-field { width: 208px; height: 148px; max-height: 148px; }
  .project-gallery-logo.logo-donga { width: 154px; height: 154px; max-height: 154px; }
  .project-gallery-news-logo { width: 280px; max-width: 90%; }
  .skills-layout > div:first-child { grid-template-columns: 1fr; gap: 18px; }
  .skills-copy { margin-top: 0; }
  .skill-lines { grid-template-columns: 1fr; }
  .skills-layout h2 br { display: none; }
  .skills-layout h2 { max-width: 400px; }
  .contact-links { max-width: 500px; width: 100%; }
  .contact-links a > span { font-size: 23px; }
  .contact-inner > p { font-size: 14px; }
  .detail-top .wordmark { display: none; }
  .detail-hero { padding: 30px var(--pad) 24px; }
  .detail-hero h1 { font-size: 38px; }
  .detail-brand { display: none; }
  .detail-meta { gap: 18px 30px; margin-top: 20px; font-size: 15px; }
  .detail-meta > div + div { border: 0; padding-left: 0; }
  .detail-body { padding: 26px var(--pad) 40px; }
  .detail-intro { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .detail-intro p { font-size: 17px; }
  .duties-grid { gap: 24px; }
  .duty-block ul { font-size: 15px; }
  .duties-section { margin-bottom: 26px; }
  .work-item { grid-template-columns: 80px minmax(0, 1fr); gap: 18px 16px; padding: 20px 12px; }
  .work-preview { width: 80px; height: 72px; }
  .work-item h3 { font-size: 23px; }
  .work-item h3 small { font-size: 14px; }
  .work-action { grid-column: 1 / -1; width: 100%; min-height: 56px; padding: 14px 16px; }
  .work-entry.open .work-panel { grid-template-columns: 1fr; gap: 22px; }
  .work-copy { grid-row: 1; transform: none; padding-left: 0; border-left: 0; }
  .work-copy > strong { font-size: 21px; margin-bottom: 12px; }
  .work-copy > p { margin-bottom: 14px; }
  .detail-outcomes { grid-template-columns: 1fr; gap: 28px; margin-top: 30px; }
  .detail-outcomes h3 { font-size: 26px; }
  .intro-notice-card { padding: 28px; }
  .intro-notice-card h2 { font-size: 29px; }
}
@media (max-width: 580px) {
  .hero-title { font-size: clamp(38px, min(14.9vw, 8.5svh), 66px); }
  .project-list, .duties-grid { grid-template-columns: 1fr; }
  .project-gallery-visual { height: 230px; }
  .project-gallery-copy strong { font-size: 28px; }
  .project-gallery-copy > span { font-size: 16px; }
  .hero-credit { gap: 16px; }
  .hero-signature { width: clamp(104px, 30vw, 120px); }
  .hero-role { padding-left: 16px; font-size: 11px; letter-spacing: .035em; white-space: nowrap; }
  .contact-links a > span { font-size: clamp(18px, 5.4vw, 23px); }
}
@media (max-height: 700px) {
  .hero-grid { padding-top: calc(var(--header) + 24px); padding-bottom: 16px; gap: 16px; }
  .hero-intro { margin-top: 16px; }
  .hero-intro p { line-height: 1.6; }
  .scroll-cue { margin-top: 16px; }
}
@media (max-width: 820px) and (max-height: 700px) {
  .hero-title { font-size: clamp(36px, min(13.8vw, 8.1svh), 66px); line-height: 1.2; }
  .hero-intro p { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .work-copy { transform: none; }
  .chapter-waiting { transform: none; opacity: 1; }
}
@media print { .chapter-waiting { transform: none; opacity: 1; } }

/* One slow camera move across both photos: the join moves with the scene,
   while the title stays still. The v4 image already shades the face locally. */
.diagonal-hero { background: #0b1013; }
.hero-media.diagonal-stage { inset: var(--header) 0 0; overflow: hidden; background: none; transform-origin: 50% 50%; animation: quietZoom 12s ease-in-out infinite alternate; }
.diagonal-hero .photo-half { position: absolute; inset: 0; overflow: hidden; }
.diagonal-hero .photo-half img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.diagonal-hero .photo-field img { transform: scale(1.38); transform-origin: 78% 36%; filter: brightness(.9); }
.diagonal-hero .photo-editing { clip-path: polygon(0 0, 74% 0, 30% 100%, 0 100%); }
.diagonal-hero .photo-editing img { object-position: 20% 50%; filter: brightness(.9) saturate(.84); }
.diagonal-hero .hero-shade { top: var(--header); background: linear-gradient(90deg, #080e1208 12%, #080e1220 28%, #080e1294 44%, #080e128c 59%, #080e1210 77%), linear-gradient(0deg, #080e12c7, #080e121a 55%, #080e1233); }
@media (min-width: 821px) and (min-height: 701px) {
  .diagonal-hero .hero-grid { gap: 24px; }
  .diagonal-hero .hero-intro { margin-top: 28px; }
}
@media (max-width: 820px) {
  /* Keep a full-height photograph behind the original centered mobile layout.
     Use the natural center crop; faces need not be kept in the narrow frame. */
  .diagonal-hero .photo-half img { object-position: 50% 50%; }
  .diagonal-hero .photo-field img { transform: none; }
  .diagonal-hero .hero-shade { background: linear-gradient(90deg, #080e1233, #080e1266 50%, #080e1233), linear-gradient(0deg, #080e12bf, #080e1226 60%, #080e121a); }
}
