@font-face {
  font-family: "BWCKKT";
  src: url("./assets/fonts/bwckkt-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "ZCOOL WenYi";
  src: url("./assets/fonts/zcool-wenyiti.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "D-DIN";
  src: url("./assets/fonts/d-din-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Mosk";
  src: url("./assets/fonts/mosk-medium-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "A-OTF FutoGo B101";
  src: url("./assets/fonts/a-otf-futogo-b101-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "A-OTF Kakumin";
  src: url("./assets/fonts/a-otf-kakumin-medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #34485f;
  --ink-soft: #65778d;
  --line: rgba(255, 255, 255, 0.58);
  --glass: rgba(246, 251, 255, 0.34);
  --glass-strong: rgba(250, 253, 255, 0.62);
  --blue: #8bb8e7;
  --blue-deep: #5f8fbe;
  --shadow: 0 18px 55px rgba(77, 112, 151, 0.16), inset 0 1px 0 rgba(255,255,255,.8);
  --radius: 28px;
  --topbar-h: 64px;
  --ease: cubic-bezier(.2,.75,.18,1);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #c7ddf2;
  overflow: hidden;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
.skip-link {
  position: fixed; z-index: 1000; left: 16px; top: -80px; padding: 10px 15px;
  border-radius: 999px; background: #fff; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.site-shell { position: relative; height: 100dvh; overflow: hidden; isolation: isolate; }
.glass {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.52), rgba(220,238,252,.23));
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
  backdrop-filter: blur(24px) saturate(1.12);
}
.topbar {
  position: fixed; z-index: 80; top: 14px; left: 22px; right: 22px;
  height: var(--topbar-h); display: flex; justify-content: center;
  align-items: center; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.main-nav {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  padding: 5px; border-radius: 999px;
}
.nav-button, .locale-button {
  position: relative; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-soft); cursor: pointer; white-space: nowrap; transition: color .25s, transform .25s;
}
.nav-button { padding: 11px 15px; font-size: 13px; }
.nav-button::before, .locale-button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(255,255,255,.68); box-shadow: 0 5px 18px rgba(87,124,163,.11);
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .35s var(--ease);
}
.nav-button:hover, .nav-button[aria-current="page"], .locale-button:hover, .locale-button.is-active { color: var(--ink); }
.nav-button:hover::before, .nav-button[aria-current="page"]::before, .locale-button:hover::before, .locale-button.is-active::before { opacity: 1; transform: scale(1); }
.nav-button:focus-visible, .locale-button:focus-visible, .glass-button:focus-visible, .chime-hotspot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.locale-switch { position: absolute; right: 0; display: flex; gap: 2px; padding: 5px; border-radius: 999px; }
.locale-button { padding: 9px 11px; font-size: 12px; z-index: 0; }
.glass-button {
  border: 1px solid rgba(255,255,255,.7); background: rgba(248,252,255,.48);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(72,110,151,.15), inset 0 1px rgba(255,255,255,.85);
  cursor: pointer;
}
.motion-toggle {
  position: fixed; z-index: 75; right: 24px; bottom: 22px; display: flex; align-items: center;
  gap: 8px; padding: 10px 14px; border-radius: 999px; font-size: 12px;
}
.page-deck {
  height: 100dvh; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.75) transparent;
}
.page {
  position: relative; min-height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always;
  overflow: clip; isolation: isolate; opacity: .45; transition: opacity .55s var(--ease);
}
.page.is-active { opacity: 1; }
.page-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -4; }
.page::before {
  content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(202,222,242,.06) 40%, rgba(218,231,245,.28));
}
.hero { background: #c7dff6; }
.hero-bg-full { object-position: center; }
.hero-canvas {
  position: absolute; width: min(100vw, calc(100dvh * 1.6)); aspect-ratio: 1.6; height: auto;
  left: 50%; top: 50%; transform: translate(-50%, -50%); isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wordmark { position: absolute; z-index: 1; object-fit: contain; pointer-events: none; user-select: none; }
.wordmark.dot-a { left: 14.58%; top: -7.99%; width: 65.29%; height: 42.51%; opacity: .24; }
.wordmark.silver { left: 24.80%; top: .38%; width: 48.60%; height: 25.92%; z-index: 4; }
.wordmark.dot-b { left: 15.85%; top: -2.42%; width: 58.64%; height: 32.88%; opacity: .29; z-index: 3; }
.chime-stage { position: absolute; left: 28.75%; top: 13.8%; width: 42.5%; height: 98.5%; z-index: 2; touch-action: none; }
.chime-stage canvas, .chime-fallback { width: 100%; height: 100%; display: block; }
.chime-fallback { object-fit: contain; filter: drop-shadow(0 15px 18px rgba(52,90,129,.16)); }
.hero-hint {
  position: absolute; z-index: 9; top: 88px; left: 50%; transform: translateX(-50%);
  margin: 0; color: rgba(64,86,111,.68); font-size: 13px; letter-spacing: .08em;
  white-space: nowrap; text-shadow: 0 1px rgba(255,255,255,.78); pointer-events: none;
}
.hero-copy {
  position: absolute; z-index: 8; left: clamp(18px, 4vw, 66px); bottom: clamp(22px, 5vh, 58px);
  max-width: 390px; text-shadow: 0 1px 2px rgba(255,255,255,.75);
}
.eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--blue-deep); }
.hero-copy h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4.2vw, 64px); font-weight: 400; line-height: .96; }
.hero-copy p { margin: 13px 0 0; color: var(--ink-soft); font-size: clamp(12px, 1vw, 15px); }
.rain { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.rain i {
  position: absolute; top: -8%; width: var(--size, 3px); height: var(--size, 3px); border-radius: 50%;
  animation: fall var(--dur) linear var(--delay) infinite;
}
.rain i::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; background: white;
  box-shadow: 0 0 8px 3px rgba(255,255,255,.95), 0 0 20px 7px rgba(216,239,255,.68);
  animation: sparkle var(--twinkle, 1.7s) ease-in-out var(--delay) infinite alternate;
}
.rain i:nth-child(4n)::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1px; height: calc(var(--size, 3px) * 8);
  transform: translate(-50%,-50%); border-radius: 50%;
  background: linear-gradient(transparent, rgba(255,255,255,.95), transparent);
  filter: drop-shadow(0 0 6px white);
}
@keyframes fall { to { transform: translate3d(var(--drift), 116dvh, 0) scale(.45); opacity: .08; } }
@keyframes sparkle { from { opacity: .35; transform: scale(.55); } to { opacity: 1; transform: scale(1.55); } }
.section-inner {
  width: min(1180px, calc(100% - 48px)); min-height: 100dvh; margin: 0 auto;
  padding: 112px 0 68px; display: grid; align-content: center;
}
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-index { display: block; margin-bottom: 8px; color: rgba(79,112,147,.68); font: 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .18em; }
.section-head h2 { margin: 0; color: #f9fcff; text-shadow: 3px 1px 0 rgba(74,84,96,.38), 0 3px 22px rgba(60,87,119,.24); font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 7vw, 94px); font-weight: 400; line-height: .88; }
html[lang="zh-CN"] .section-head h2,
html[lang="zh-TW"] .section-head h2 {
  font-family: "BWCKKT", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  letter-spacing: .015em;
  text-shadow: 3px 1px 0 rgba(74,84,96,.38), 0 3px 22px rgba(60,87,119,.24);
}
.section-note { max-width: 380px; margin: 0; color: var(--ink-soft); line-height: 1.65; text-align: right; }
.about-layout { display: block; }
.identity-panel { display: flex; align-items: baseline; justify-content: space-between; gap: 28px; padding: 24px 28px; border-radius: var(--radius); }
.identity-monogram {
  width: 92px; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 44px;
  border: 1px solid rgba(255,255,255,.8); border-radius: 50%; color: white;
  font-family: Georgia, serif; font-size: 35px; background: rgba(161,195,228,.48); box-shadow: inset 0 1px #fff, 0 15px 35px rgba(74,112,152,.14);
}
.identity-panel h3 { margin: 0; font: 400 clamp(30px,3.6vw,50px)/1 Georgia,serif; color: white; white-space: nowrap; }
.identity-panel p { margin: 0; color: var(--ink-soft); line-height: 1.55; text-align: right; }
.native-name { color: #596f87; }
.english-name { margin-left: .18em; color: var(--ink-soft); font-size: .46em; font-family: Inter, "SF Pro Display", sans-serif; font-weight: 500; letter-spacing: .02em; }
.about-content { padding: 38px 14px 10px; }
.skills-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px 42px; }
.skill-group { border-top: 1px solid rgba(255,255,255,.72); padding-top: 13px; }
.skill-group h3, .awards h3 { margin: 0 0 11px; font-size: clamp(16px,1.4vw,19px); letter-spacing: .09em; text-transform: uppercase; }
.skill-group p, .award-list { margin: 0; color: var(--ink-soft); font-size: clamp(15px,1.4vw,17px); line-height: 1.82; }
.skill-group:nth-child(3) p { white-space: normal; overflow-wrap: anywhere; }
.awards { grid-column: 1/-1; margin-top: 8px; }
.award-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 36px; padding: 0; list-style: none; }
.award-list li { position: relative; padding-left: 15px; }
.award-list li::before { content: "✦"; position: absolute; left: 0; color: white; }
.projects-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(16px,4vw,66px); align-items: center; min-height: 540px; }
.folder-stage { position: relative; min-height: 520px; display: grid; place-items: center; }
.folder-art { position: absolute; width: min(96%, 520px); filter: drop-shadow(0 22px 34px rgba(68,104,143,.16)); }
.card-stack { position: relative; z-index: 2; width: min(80%, 390px); height: 360px; perspective: 1000px; }
.project-card {
  position: absolute; inset: 0; padding: 31px; border-radius: 26px; border: 1px solid rgba(255,255,255,.8);
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(210,232,250,.9));
  box-shadow: 0 24px 54px rgba(70,107,146,.17), inset 0 1px #fff; cursor: pointer;
  transform: translate3d(calc(var(--offset) * 14px), calc(var(--offset) * -12px), calc(var(--offset) * -34px)) rotate(calc(var(--offset) * 1.4deg));
  opacity: calc(1 - (abs(var(--offset)) * .12)); transition: transform .55s var(--ease), opacity .4s; overflow: hidden;
}
.project-card:not([data-active="true"]) { pointer-events: none; filter: blur(.45px); }
.project-card[data-distance="far"] { opacity: 0; pointer-events: none; }
.project-card h3 { margin: 0 0 14px; font: 400 clamp(23px,2.3vw,36px)/1.12 Georgia,serif; }
.project-card p { margin: 0; color: var(--ink-soft); line-height: 1.6; font-size: 13px; }
.card-number { font: 12px/1 ui-monospace,monospace; letter-spacing: .12em; color: var(--blue-deep); }
.project-index { display: grid; gap: 0; }
.project-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; padding: 14px 0;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.55); background: transparent; text-align: left; cursor: pointer;
  transition: padding .25s, color .25s;
}
.project-row:hover, .project-row.is-current { padding-left: 8px; color: white; }
.project-row span:first-child { font: 11px/1 ui-monospace,monospace; color: var(--blue-deep); }
.project-row time { color: var(--ink-soft); font-size: 11px; }
html[lang="en"] #projects .project-row { padding-block: 9px; font-size: clamp(13px,1.35vw,15px); line-height: 1.25; }
html[lang="en"] #projects .project-row time { font-size: 11px; }
.projects-note { font-size: clamp(15px,1.35vw,19px); letter-spacing: .035em; }
.reel-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.reel-tabs { display: flex; gap: 8px; }
.pill {
  border: 1px solid rgba(255,255,255,.7); padding: 10px 17px; border-radius: 999px; background: rgba(255,255,255,.24); cursor: pointer;
}
.pill.is-active { background: rgba(255,255,255,.68); box-shadow: 0 8px 24px rgba(70,107,146,.13); }
.reel-window { overflow: hidden; margin-inline: calc((100vw - min(1180px, calc(100vw - 48px))) / -2); padding: 14px max(24px, calc((100vw - 1180px)/2)); touch-action: pan-y; }
.reel-track { display: flex; gap: clamp(18px,3vw,44px); align-items: center; will-change: transform; transform-style: preserve-3d; }
.reel-item { flex: 0 0 min(28vw, 320px); border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .45s var(--ease), opacity .35s; }
.reel-item figure { margin: 0; }
.reel-frame { aspect-ratio: 9/16; border: 1px solid rgba(255,255,255,.72); border-radius: 24px; padding: 10px; background: rgba(255,255,255,.28); box-shadow: 0 25px 56px rgba(58,91,130,.2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.reel-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; background: rgba(214,231,247,.3); }
.visual-foot { margin-top: 26px; display: grid; grid-template-columns: 1fr; align-items: start; gap: 16px; }
.visual-description { max-width: none; margin: 0; color: var(--ink-soft); line-height: 1.75; }
.text-link { color: white; text-decoration-color: rgba(255,255,255,.5); font-size: 13px; }
.modal-action { margin: 34px 0 0; }
.primary-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 34px;
  min-width: min(100%, 330px); padding: 18px 22px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.9); color: var(--ink); text-decoration: none;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(218,237,252,.82));
  box-shadow: 0 16px 36px rgba(63,99,138,.18), inset 0 1px #fff;
  font-size: clamp(17px,2vw,22px); font-weight: 650; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.project-board-button { font-family: inherit; cursor: pointer; }
.primary-link:hover { transform: translateY(-3px); box-shadow: 0 22px 42px rgba(63,99,138,.24), inset 0 1px #fff; }
.primary-link span:last-child { font-size: 1.35em; font-weight: 400; }
.timeline { margin-left: clamp(0px,10vw,150px); border-left: 1px solid rgba(255,255,255,.63); }
.timeline-entry { position: relative; display: grid; grid-template-columns: minmax(150px,.35fr) 1fr; gap: 25px; padding: 2px 0 42px 42px; }
.timeline-entry::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: white; box-shadow: 0 0 0 7px rgba(255,255,255,.2); }
.timeline-meta { color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.timeline-entry h3 { margin: 0 0 12px; font: 400 clamp(22px,2.6vw,38px)/1.1 Georgia,serif; color: white; text-shadow: 0 3px 18px rgba(69,99,131,.16); }
.work-role { margin: -4px 0 14px; color: var(--ink-soft); font: 500 clamp(14px,1.5vw,19px)/1.35 Inter,"SF Pro Display",sans-serif; letter-spacing: .04em; }
.timeline-entry ul { margin: 0; padding-left: 18px; color: var(--ink-soft); line-height: 1.65; font-size: 13px; }
.timeline-entry li + li { margin-top: 5px; }
.campus-timeline .timeline-entry { grid-template-columns: 1fr; padding-bottom: 48px; }
.campus-timeline .timeline-entry ul { font-size: clamp(15px,1.5vw,18px); line-height: 1.78; }
.folder-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.folder-link { display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.38); border: 1px solid rgba(255,255,255,.7); font-size: 12px; text-decoration: none; }
.folder-link::before { content: "▰"; color: #8eb7df; }
.visual-plan-link {
  justify-self: start; padding: 12px 17px; border-radius: 15px; font-size: 15px;
  background: rgba(255,255,255,.52); box-shadow: 0 12px 28px rgba(70,107,146,.13);
}
.transition-grid { position: fixed; z-index: 200; inset: 0; display: grid; grid-template-columns: repeat(8,1fr); pointer-events: none; visibility: hidden; }
.transition-grid i { background: rgba(222,238,251,.92); transform: scaleY(0); transform-origin: bottom; }
.transition-grid.is-running { visibility: visible; }
.transition-grid.is-running i { animation: grid-wipe .9s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes grid-wipe { 0%{transform:scaleY(0)} 45%,55%{transform:scaleY(1)} 100%{transform:scaleY(0);transform-origin:top} }
.modal-root:empty { display: none; }
.modal-root { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(102,132,164,.27); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.modal { width: min(880px,100%); max-height: min(780px,calc(100dvh - 44px)); overflow: auto; padding: clamp(26px,5vw,64px); border-radius: 34px; }
.modal-close { position: sticky; z-index: 2; top: 0; float: right; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.58); cursor: pointer; }
.modal h2 { margin: 8px 0 12px; max-width: 720px; font: 400 clamp(32px,5vw,66px)/1.02 Georgia,serif; color: white; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ink-soft); font-size: clamp(15px,1.4vw,17px); line-height: 1.5; }
.modal ul { margin: 28px 0 0; padding-left: 20px; line-height: 1.8; }
.modal-recognition { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.55); color: var(--ink-soft); }
.modal-image { width: min(720px,100%); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 18px; }
.project-board-modal {
  position: relative; display: flex; flex-direction: column; width: min(1120px,100%);
  height: min(900px,calc(100dvh - 44px)); max-height: calc(100dvh - 44px);
  overflow: hidden; padding: clamp(22px,3vw,40px);
}
.project-board-modal .modal-close { position: absolute; top: 22px; right: 22px; float: none; }
.project-board-head { flex: 0 0 auto; padding-right: 58px; }
.project-board-modal .project-board-head h2 { margin: 0 0 6px; font-size: clamp(26px,3vw,42px); }
.project-board-head p { margin: 0 0 16px; color: var(--ink-soft); font-size: 13px; }
.project-board-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid rgba(255,255,255,.78); border-radius: 18px;
  background: rgba(243,237,216,.78); box-shadow: inset 0 1px rgba(255,255,255,.88);
  scrollbar-color: rgba(93,127,162,.58) rgba(255,255,255,.22); scrollbar-width: thin;
}
.project-board-scroll:focus-visible { outline: 2px solid rgba(255,255,255,.95); outline-offset: 3px; }
.project-board-image { display: block; width: 100%; height: auto; }
.board-back {
  align-self: flex-start; flex: 0 0 auto; margin-top: 14px; padding: 8px 0;
  border: 0; color: var(--ink-soft); background: none; cursor: pointer; font: inherit;
}
html[lang="zh-CN"] :is(.identity-panel h3, .project-card h3, .project-row strong, .timeline-entry h3, .modal h2, .pill),
html[lang="zh-TW"] :is(.identity-panel h3, .project-card h3, .project-row strong, .timeline-entry h3, .modal h2, .pill) {
  font-family: "ZCOOL WenYi", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
}
html[lang="zh-CN"] :is(.skill-group h3, .awards h3, .work-role, .modal-meta, .modal-recognition strong),
html[lang="zh-TW"] :is(.skill-group h3, .awards h3, .work-role, .modal-meta, .modal-recognition strong) {
  font-family: "ZCOOL WenYi", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
}
html[lang="zh-TW"] .section-head h2 {
  font-family: "A-OTF FutoGo B101", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 700;
}
html[lang="zh-TW"] :is(
  .identity-panel h3, .project-card h3, .project-row strong, .timeline-entry h3, .modal h2, .pill,
  .skill-group h3, .awards h3, .work-role, .modal-meta, .modal-recognition strong
) {
  font-family: "A-OTF Kakumin", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 500;
}
html[lang="en"] .section-head h2 {
  font-family: "D-DIN", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
}
html[lang="en"] :is(
  .identity-panel h3, .project-card h3, .project-row strong, .timeline-entry h3, .modal h2, .pill,
  .skill-group h3, .awards h3, .work-role, .modal-meta, .modal-recognition strong
) {
  font-family: "Mosk", Inter, sans-serif;
  font-weight: 500;
}
:is(
  .identity-monogram, .identity-panel h3, .project-row:hover, .project-row.is-current,
  .text-link, .timeline-entry h3, .modal h2, .cursor-label
) {
  text-shadow: 3px 1px 0 rgba(74,84,96,.32), 0 3px 18px rgba(60,87,119,.2);
}
.award-list li::before { text-shadow: 2px 1px 0 rgba(74,84,96,.3), 0 2px 10px rgba(60,87,119,.18); }
@media (min-width: 981px) {
  #projects .section-inner,
  #work .section-inner { height: 100dvh; min-height: 100dvh; padding-top: 88px; padding-bottom: 24px; align-content: center; }
  #projects .section-head,
  #work .section-head { margin-bottom: 14px; }
  #projects .projects-layout { min-height: 0; height: min(500px,calc(100dvh - 205px)); }
  #projects .folder-stage { min-height: 0; height: 100%; }
  #projects .card-stack { height: min(300px,42dvh); }
  #projects .project-card { padding: 24px; }
  #projects .project-card h3 { font-size: clamp(21px,2vw,31px); }
  #projects .project-row { padding: 10px 0; }
  #work .timeline { margin-left: 40px; transform: translateY(10px); }
  #work .timeline-entry {
    grid-template-columns: 165px minmax(0,1fr); gap: 22px;
    padding: 1px 0 30px 34px;
  }
  #work .timeline-meta { font-size: clamp(15px,1.4vw,18px); line-height: 1.35; }
  #work .timeline-entry h3 { margin-bottom: 8px; font-size: clamp(22px,2.4vw,33px); }
  #work .work-role { margin: -1px 0 7px; font-size: clamp(13px,1.2vw,16px); }
  #work .timeline-entry ul { font-size: clamp(12px,1.05vw,14px); line-height: 1.45; white-space: nowrap; }
  #work .timeline-entry li + li { margin-top: 5px; }
  #work .folder-links { margin-top: 9px; }
  #work .folder-link { padding: 7px 10px; }
}
.cursor-label { position: fixed; z-index: 250; left: 0; top: 0; transform: translate(-50%,-50%); opacity: 0; pointer-events: none; padding: 8px 11px; border-radius: 999px; color: white; background: rgba(82,116,151,.58); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 11px; transition: opacity .15s; }
.cursor-label.is-visible { opacity: 1; }
.empty-state { padding: 40px; text-align: center; color: var(--ink-soft); }
.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }
@media (max-width: 980px) {
  .topbar { left: 12px; right: 12px; justify-content: flex-start; }
  .main-nav { margin: 0 auto; max-width: calc(100% - 178px); overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-button { padding: 10px 11px; font-size: 12px; }
  .projects-layout { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .folder-stage { min-height: 370px; }
  .folder-art { width: min(78%,420px); }
  .card-stack { height: 300px; width: min(70%,360px); }
  .project-index { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px; }
  .timeline { margin-left: 0; }
  #work .section-inner { height: 100dvh; min-height: 100dvh; padding-top: 96px; padding-bottom: 12px; align-content: start; }
  #work .section-head { margin-bottom: 30px; }
  #work .timeline { margin-left: 0; transform: translateY(18px); }
  #work .timeline-entry {
    grid-template-columns: 170px minmax(0,1fr); gap: 18px;
    padding: 1px 0 25px 26px;
  }
  #work .timeline-meta { font-size: 17px; line-height: 1.3; white-space: nowrap; }
  #work .timeline-entry h3 { margin-bottom: 6px; font-size: clamp(23px,3.1vw,27px); }
  #work .work-role { margin: 0 0 6px; font-size: 14px; }
  #work .timeline-entry ul { font-size: 13px; line-height: 1.48; white-space: normal; }
  #work .timeline-entry li + li { margin-top: 5px; }
  #work .folder-links { margin-top: 7px; }
  #work .folder-link { padding: 6px 10px; font-size: 11px; }
  #projects .section-inner { height: 100dvh; min-height: 100dvh; padding-top: 76px; padding-bottom: 16px; align-content: center; }
  #projects .section-head { margin-bottom: 6px; }
  #projects .projects-layout { min-height: 0; gap: 22px; }
  #projects .folder-stage { min-height: 255px; }
  #projects .folder-art { width: min(56%,340px); }
  #projects .card-stack { width: min(54%,330px); height: 220px; }
  #projects .project-card { padding: 20px; }
  #projects .project-card h3 { margin-bottom: 9px; font-size: clamp(19px,3.2vw,27px); }
  #projects .project-row { padding: 8px 0; }
  #projects .project-index { grid-auto-rows: minmax(64px,1fr); align-self: stretch; }
  #projects .project-row { padding: 14px 0; font-size: 17px; line-height: 1.34; }
  #projects .project-row time { font-size: 13px; }
}
html[lang="en"] #work .section-head { margin-bottom: 18px; }
html[lang="en"] #work .timeline { transform: translateY(8px); }
html[lang="en"] #work .timeline-entry { padding-bottom: 12px; }
html[lang="en"] #work .timeline-entry h3 { font-size: clamp(20px,2.5vw,27px); }
html[lang="en"] #work .work-role { margin-bottom: 4px; }
html[lang="en"] #work .timeline-entry ul { font-size: clamp(11px,1.15vw,12px); line-height: 1.35; }
html[lang="en"] #work .timeline-entry li + li { margin-top: 3px; }
html[lang="en"] #work .folder-links { margin-top: 4px; }
html[lang="en"] #work .folder-link { padding: 5px 9px; }
@media (max-width: 680px) {
  :root { --topbar-h: 54px; }
  .topbar { top: 8px; left: 8px; right: 8px; height: auto; align-items: flex-start; }
  .main-nav { max-width: calc(100% - 134px); padding: 3px; }
  .nav-button { padding: 8px 9px; font-size: 10px; }
  .locale-switch { padding: 3px; }
  .locale-button { padding: 8px; font-size: 10px; }
  .motion-toggle { right: 14px; bottom: 14px; }
  .motion-label { display: none; }
  .hero-canvas { width: calc(100dvh * 1.6); max-width: none; }
  .chime-stage { left: 28.75%; top: 13.8%; width: 42.5%; height: 98.5%; }
  .hero-copy { max-width: 245px; }
  .hero-hint { top: 70px; font-size: 12px; }
  .section-inner { width: min(100% - 28px,1180px); padding-top: 100px; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-note { text-align: left; }
  .skills-grid, .award-list { grid-template-columns: 1fr; }
  .identity-panel { flex-direction: column; align-items: flex-start; gap: 10px; }
  .identity-panel p { text-align: left; }
  .skill-group:nth-child(3) p { white-space: normal; }
  .identity-monogram { margin-bottom: 26px; }
  .project-index { grid-template-columns: 1fr; }
  .project-row { padding: 9px 0; }
  .folder-stage { min-height: 330px; }
  .card-stack { width: 78%; height: 275px; }
  .project-card { padding: 24px; }
  #projects .section-inner { height: auto; min-height: 100dvh; padding-top: 100px; padding-bottom: 48px; }
  #projects .folder-stage { min-height: 300px; }
  #projects .card-stack { width: 78%; height: 250px; }
  #work .timeline-entry ul { white-space: normal; }
  #work .timeline { transform: none; }
  #work .section-inner { height: auto; min-height: 100dvh; padding-top: 100px; padding-bottom: 48px; }
  .reel-item { flex-basis: min(68vw,300px); }
  .visual-foot { grid-template-columns: 1fr; gap: 14px; }
  .timeline-entry { grid-template-columns: 1fr; gap: 8px; padding-left: 28px; }
  .transition-grid { grid-template-columns: repeat(5,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .rain { display: none; }
}
@media (forced-colors: active) {
  .glass, .glass-button, .project-card, .reel-frame { background: Canvas; border: 1px solid CanvasText; }
}
