/* Yuzhi Huang homepage, styled after the Mind2Act World site */
@font-face { font-family: "Google Sans Flex"; src: url("fonts/GoogleSansFlex-latin.woff2") format("woff2"); font-weight: 300 750; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Google Sans Flex"; src: url("fonts/GoogleSansFlex-latin-ext.woff2") format("woff2"); font-weight: 300 750; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "OrbPixel"; src: url("fonts/PixelifySans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "OrbMono"; src: url("fonts/JetBrainsMono-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #203542;
  --ink-deep: #17232e;
  --body: #303740;
  --muted: #5a6875;
  --faint: #8195a4;
  --line: #dde3e6;
  --line-mint: #c7dcd1;
  --soft: #f6f8f9;
  --mint: #bfe3d3;
  --mint-soft: #eaf4ee;
  --green: #629888;
  --accent: #4a8878;
  --num: #99bead;
  --link: #205fbd;
  --c1: #4a8878;
  --c2: #36566f;
  --c3: #8a6a2f;
  --c4: #6a4f72;
  --sans: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --pixel: "OrbPixel", var(--sans);
  --mono: "OrbMono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --w: 1180px;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--body); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong, b { font-weight: 650; color: var(--ink); }
button { font: inherit; }
.wrap { width: min(var(--w), calc(100% - 48px)); margin-inline: auto; }
.kicker { margin: 0 0 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.kicker .dot { width: 7px; height: 7px; border-radius: 2px; background: #f2b7a8; display: inline-block; }

/* ---------- header (floating pill, as on mind2act-world.com) ---------- */
.header { position: sticky; top: 0; z-index: 60; padding: 14px 0 0; pointer-events: none; }
.header-inner { pointer-events: auto; display: flex; align-items: center; gap: 22px; height: 46px; padding: 0 10px 0 14px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 24px rgba(32,53,66,.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 650; font-size: 15px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 30px; height: 30px; border-radius: 50%; filter: drop-shadow(0 0 6px rgba(191,227,211,.9)) drop-shadow(0 2px 4px rgba(20,35,46,.25)); transition: transform .5s; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand:hover .brand-mark { transform: rotate(-14deg) scale(1.08); }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; font-size: 13.5px; }
.nav a { color: var(--ink); padding: 6px 13px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--mint-soft); text-decoration: none; }
.nav a.active { background: var(--ink); color: #fff; }
.nav .nav-cv { margin-left: auto; border: 1px solid var(--line-mint); color: var(--accent); font-weight: 600; }
.nav .nav-cv:hover { background: var(--ink); color: var(--mint); border-color: var(--ink); }
.menu-button { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; color: var(--ink); cursor: pointer; font-size: 13px; }

/* ---------- intro card (moon theme) ---------- */
.intro { padding-top: 34px; }
.intro-card { position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 30px 48px; align-items: center; padding: 40px 44px 38px; border: 1px solid #d5e3dc; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(520px 300px at 88% 8%, rgba(191,227,211,.55), transparent 70%),
    radial-gradient(600px 360px at 6% 100%, rgba(207,222,236,.6), transparent 70%),
    linear-gradient(160deg, #f5faf8 0%, #f1f6f8 55%, #f7f9fb 100%); }
.intro-sky { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; fill: none; stroke: #9cc0b3; stroke-width: 1.3; opacity: .5; transform: rotate(var(--rot)); }
.star--tw { animation: twinkle 3.6s ease-in-out infinite; animation-delay: var(--d); }
.spark { position: absolute; width: 4px; height: 4px; background: #8fb3c5; opacity: .5; box-shadow: 4px 0 0 -1px #8fb3c5, -4px 0 0 -1px #8fb3c5, 0 4px 0 -1px #8fb3c5, 0 -4px 0 -1px #8fb3c5; animation: twinkle 4.2s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: .75; } }
.intro-photo { position: relative; z-index: 1; margin: 0; }
.intro-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 32%; border-radius: 18px; border: 4px solid #fff; box-shadow: 10px 10px 0 rgba(98,152,136,.22), 0 14px 34px rgba(32,53,66,.16); }
.intro-photo figcaption { margin-top: 14px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.intro-text { position: relative; z-index: 1; }
.intro-hello { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.intro-hello h1 { margin: 0; font: 600 clamp(34px, 4.3vw, 54px)/1.05 var(--pixel); color: var(--ink); letter-spacing: -.01em; }
.intro-hello h1 span { color: var(--green); text-shadow: 3px 3px 0 #deeee6; }
.moon { float: right; position: relative; z-index: 2; width: 104px; height: 104px; margin: -18px -10px 4px 22px; shape-outside: circle(58%); animation: bob 7s ease-in-out infinite; }
.moon { cursor: pointer; }
.moon svg { position: relative; z-index: 1; filter: drop-shadow(0 0 14px rgba(214,240,229,.95)) drop-shadow(4px 8px 12px rgba(32,53,66,.18)); }
.mface .moon-face { transform: translate(calc(var(--lx, 0) * 4px), calc(var(--ly, 0) * 3.4px)); transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.mface .moon-pits { transform: translate(calc(var(--lx, 0) * -1.5px), calc(var(--ly, 0) * -1.2px)); transition: transform .35s ease-out; }
.mface .moon-eyes { transform: translate(calc(var(--lx, 0) * 2.6px), calc(var(--ly, 0) * 2.6px)); transition: transform .2s ease-out; }
.mface .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.8s infinite; }
.mface .eye:nth-child(2) { animation-delay: .04s; }
@keyframes blink { 0%, 90%, 97%, 100% { transform: scaleY(1); } 93.5% { transform: scaleY(.08); } }
.mface .eye-happy, .mface .mouth-happy { opacity: 0; transition: opacity .15s; }
.mface .eye, .mface .mouth { transition: opacity .15s; }
.moon.is-happy .eye, .moon.is-happy .mouth { opacity: 0; }
.moon.is-happy .eye-happy, .moon.is-happy .mouth-happy { opacity: 1; }
.moon.is-happy svg { animation: boing .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes boing { 0% { transform: scale(1); } 30% { transform: scale(1.12, .92); } 60% { transform: scale(.96, 1.05); } 100% { transform: scale(1); } }
.intro-recruit { grid-column: 1 / -1; position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 16px; border: 1px dashed #b4d3c6; border-radius: 14px; background: rgba(255,255,255,.62); color: var(--ink); font-size: 13.5px; line-height: 1.45; transition: background .2s, border-color .2s; }
.intro-recruit b { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--mint); color: var(--accent); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.recruit-text { flex: 1; min-width: 0; color: var(--body); }
.recruit-go { flex: none; padding: 5px 13px; border-radius: 999px; background: var(--ink); color: var(--mint); font-size: 12.5px; font-weight: 600; }
.recruit-go span { display: inline-block; transition: transform .2s; }
.intro-recruit:hover { background: var(--mint-soft); border-style: solid; border-color: #9ccbb8; text-decoration: none; }
.intro-recruit:hover .recruit-go span { transform: translateX(3px); }
.recruit-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3fae8c; box-shadow: 0 0 0 0 rgba(63,174,140,.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(63,174,140,0); } 100% { box-shadow: 0 0 0 0 rgba(63,174,140,0); } }
.moon::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(circle at 42% 40%, rgba(191,227,211,.75), rgba(191,227,211,.18) 45%, transparent 68%); animation: halo 6s ease-in-out infinite; }
@keyframes halo { 50% { opacity: .55; transform: scale(.94); } }
.moon::after { content: ""; position: absolute; inset: -10px; z-index: 0; border-radius: 50%; border: 1px dashed rgba(74,136,120,.35); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.moon svg { width: 100%; height: 100%; display: block; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
.intro-text p { text-wrap: pretty; margin: 0 0 11px; font-size: 16.5px; line-height: 1.72; color: var(--body); }
.intro-text p a { color: var(--accent); font-weight: 600; }
.lab-logo img { display: inline-block; height: 1.5em; width: auto; vertical-align: -0.42em; margin: 0 1px; }
.lab-logo:hover { opacity: .85; }
.intro-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.intro-tags li { padding: 4px 12px; border-radius: 999px; background: var(--mint-soft); border: 1px solid var(--line-mint); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.intro-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.intro-links a, .intro-links button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.85); color: var(--ink); font-size: 12.5px; cursor: pointer; }
.intro-links a:hover, .intro-links button:hover { background: var(--mint-soft); border-color: var(--line-mint); text-decoration: none; }
.intro-links .is-dark { background: var(--ink); color: var(--mint); border-color: var(--ink); font-weight: 600; }
.intro-links .is-dark:hover { background: var(--accent); color: #fff; }
.intro-links svg { width: 13px; height: 13px; }
@media (prefers-reduced-motion: reduce) { .moon, .moon::before, .moon::after, .mface .eye, .recruit-dot, .star--tw, .spark { animation: none; } }

/* pill groups (filters), as on the Mind2Act leaderboard */
.pill-group { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line-mint); border-radius: 22px; background: #fff; }
.pill-group a, .pill-group button { border: 0; background: none; border-radius: 20px; padding: 6px 13px; color: var(--ink); font-size: 12.5px; line-height: 1.3; cursor: pointer; white-space: nowrap; }
.pill-group a:hover, .pill-group button:hover { background: var(--mint-soft); text-decoration: none; }
.pill-group .is-on, .pill-group .is-on:hover { background: var(--ink); color: var(--mint); }
.pill-group--dark { border-color: var(--line); }

/* ---------- sections ---------- */
.chapter { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.chapter-no { font: 44px/1 var(--pixel); color: var(--num); border-right: 1px solid #dce8e0; padding-right: 16px; }
.chapter h2 { margin: 0; font-size: 26px; font-weight: 650; color: var(--ink); letter-spacing: -.015em; line-height: 1.2; }
.chapter--tools { flex-wrap: wrap; }
.chapter--tools > div:nth-child(2) { flex: 1; }
.section { padding-top: 76px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }

.about-card { padding: 24px 28px; font-size: 16.5px; line-height: 1.75; }
.about-card p { margin: 0 0 12px; }
.about-card p:last-child { margin-bottom: 0; }
.about-contact { color: var(--muted); }
.lab-logo-inline { display: inline-block; height: 1.3em; width: auto; vertical-align: -.3em; }

.interests { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.interest { padding: 20px 22px 20px; position: relative; overflow: hidden; }
.interest::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--tone); }
.interest .kicker { color: var(--tone); }
.interest h3 { margin: 2px 0 8px; font-size: 18px; font-weight: 650; color: var(--ink); }
.interest p { margin: 0; font-size: 14.5px; color: var(--body); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); font-size: 12px; color: var(--ink); font-weight: 550; }
.chips a:hover { border-color: var(--tone); text-decoration: none; }
.chips b { color: var(--tone); font-family: var(--mono); font-size: 10.5px; font-weight: 600; margin-left: 3px; }

/* publications as a leaderboard table */
.tally { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; }
.tally-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.tally > span:not(.tally-label):not(.tally-note) { padding: 3px 10px; border: 1px solid var(--line-mint); border-radius: 999px; background: var(--mint-soft); color: var(--ink); }
.tally b { color: var(--accent); }
.tally-note { margin-left: auto; font-size: 12px; color: var(--muted); }
.pub-groups { display: grid; gap: 18px; }
.pub-group { overflow: hidden; scroll-margin-top: 92px; }
.pub-group-head { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 2px 14px; padding: 14px 20px; background: var(--soft); border-bottom: 1px solid var(--line); }
.pub-group-no { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pub-group-head h3 { margin: 0; font-size: 16.5px; font-weight: 650; color: var(--ink); }
.pub-group-head p { grid-column: 2; margin: 0; font-size: 13px; color: var(--muted); }
.pub-group-count { grid-column: 3; grid-row: 1; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.table-head { display: grid; grid-template-columns: 44px 168px minmax(0, 1fr) 128px; gap: 18px; padding: 11px 18px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 650; color: var(--ink); }
.table-head span:first-child { text-align: center; }
.pub { display: grid; grid-template-columns: 44px 168px minmax(0, 1fr) 128px; gap: 18px; align-items: start; padding: 16px 18px; border-top: 1px solid var(--line); transition: background .15s; }
.pubs .pub:first-child { border-top: 0; }
.pub:hover { background: #fbfcfc; }
.pub[hidden] { display: none; }
.pub-no { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: center; padding-top: 4px; }
.pub-thumb { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.pub-thumb img, .pub-thumb video { width: 100%; height: 100px; object-fit: cover; transition: transform .4s; }
.pub:hover .pub-thumb img, .pub:hover .pub-thumb video { transform: scale(1.04); }
.pub-title { margin: 0 0 4px; font-size: 15.5px; font-weight: 650; line-height: 1.38; }
.pub-title a { color: var(--link); }
.pub-star { color: #d4a12a; margin-right: 5px; }
.paper-authors { margin: 0 0 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.paper-authors .me { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.authors-ellipsis { color: var(--faint); }
.paper-authors-toggle { margin-left: 4px; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: 10.5px; color: var(--accent); }
.pub-note-line { margin: 0 0 4px; font-size: 12.5px; color: var(--body); }
.pub-note-line b { color: #b0582d; }
.pub-links { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; font-size: 11.5px; }
.pub-links > a, .pub-links summary { display: inline-block; padding: 2px 8px; border-radius: 5px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 550; cursor: pointer; list-style: none; }
.pub-links summary::-webkit-details-marker { display: none; }
.pub-links > a:hover, .pub-links summary:hover { background: var(--mint-soft); border-color: var(--line-mint); text-decoration: none; }
.pub-links > a.arxiv { color: #b31b1b; }
.pub-links > a.code { color: var(--accent); }
.pub-links > a.rednote, .pub-links > a.douyin { color: #e8173a; }
.pub-links > a.media { color: #b0582d; }
.pub-links details { display: contents; }
.pub-links details[open] summary { background: var(--ink); color: var(--mint); border-color: var(--ink); }
.pub-links .abstract { flex-basis: 100%; margin: 6px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--body); }
.pub-links .abstract ul { margin: 0; padding-left: 18px; }
.pub-venue { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 2px; }
.venue-chip { display: inline-block; padding: 2px 8px; border-radius: 5px; background: #eef1f3; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.venue-chip.is-accepted { background: var(--ink); color: var(--mint); }

/* news */
.news-card { padding: 4px 0 12px; }
.news { margin: 0; padding: 0; list-style: none; }
.news li { display: grid; grid-template-columns: 96px 82px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.news time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.news-tag { justify-self: start; font-family: var(--mono); font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 5px; background: #eef1f3; color: var(--muted); }
.news-tag--paper { background: var(--ink); color: var(--mint); }
.news-tag--release { background: #e6eef7; color: #2a5a8f; }
.news-tag--honor { background: #f5ecdc; color: #8a6a2f; }
.news-tag--media { background: #fbe9e4; color: #b0582d; }
.news-tag--talk { background: #efe8f1; color: #6a4f72; }
.news p { margin: 0; font-size: 14.5px; }
.news.is-collapsed .news-more { display: none; }
.news-toggle { margin: 12px 22px 0; padding: 5px 14px; border: 1px solid var(--line-mint); border-radius: 999px; background: #fff; color: var(--ink); font-size: 12.5px; cursor: pointer; }
.news-toggle:hover { background: var(--mint-soft); }

/* experience */
.rows { overflow: hidden; }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row--industry { background: var(--soft); }
.row-logo { width: 56px; height: 56px; object-fit: contain; mix-blend-mode: multiply; }
.row-main h3 { margin: 0 0 2px; font-size: 16.5px; font-weight: 650; }
.row-main h3 a { color: var(--ink); }
.row-main p { margin: 0; font-size: 14px; }
.row-main .row-sub { color: var(--muted); font-size: 13px; }
.row-zh { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* honors */
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
.list-card { overflow: hidden; }
.list-head { padding: 11px 20px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--ink); }
.awards { margin: 0; padding: 0; list-style: none; }
.awards li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 20px; border-top: 1px solid var(--line); font-size: 14.5px; }
.awards li:first-child { border-top: 0; }
.awards p { margin: 0; }
.awards span { flex: none; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* footer, toast, reveal */
.footer { margin-top: 90px; border-top: 1px solid var(--line); background: var(--soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 30px; font-size: 12.5px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--mint); font-size: 13.5px; padding: 9px 16px; border-radius: 999px; transition: all .25s; z-index: 90; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 6px 10px; }
}
@media (max-width: 920px) {
  .intro-card { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding: 30px; }
  .moon { width: 76px; height: 76px; margin: -10px -6px 4px 16px; }
  .menu-button { display: block; }
  .nav { position: absolute; top: 54px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(32,53,66,.12); }
  .nav.open { display: flex; }
  .nav .nav-cv { margin-left: 0; text-align: center; }
  .header-inner { position: relative; }
  .table-head { display: none; }
  .pub { grid-template-columns: 40px 140px minmax(0, 1fr); }
  .pub-venue { grid-column: 3; flex-direction: row; flex-wrap: wrap; align-items: center; order: -1; padding-top: 0; }
  .pub-main { grid-column: 3; }
  .pub-thumb { grid-row: 1 / span 2; grid-column: 2; }
  .pub-no { grid-row: 1 / span 2; }
  .interests, .two-col { grid-template-columns: 1fr; }
  .chapter--tools .pill-group { order: 3; }
}
@media (max-width: 640px) {
  .pub-group-head { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .pub-group-head h3 { grid-column: 1 / -1; grid-row: 2; }
  .pub-group-head p { grid-column: 1 / -1; }
  .pub-group-count { grid-column: 2; grid-row: 1; }
  .intro { padding-top: 22px; }
  .intro-card { grid-template-columns: 1fr; padding: 22px 18px; gap: 22px; border-radius: 18px; }
  .intro-photo { max-width: 190px; margin: 0 auto; }
  .intro-photo figcaption { white-space: nowrap; font-size: 10px; letter-spacing: .03em; }
  .intro-hello { gap: 10px; }
  .intro-recruit { flex-wrap: wrap; gap: 8px 10px; font-size: 12.5px; }
  .recruit-text { order: 3; flex-basis: 100%; }
  .recruit-go { margin-left: auto; }
  .intro-hello h1 { font-size: 30px; }
  .moon { width: 58px; height: 58px; margin: -6px -4px 2px 10px; }
  .intro-text p { font-size: 15.5px; }
  .wrap { width: calc(100% - 28px); }
  .chapter-no { font-size: 34px; padding-right: 12px; }
  .chapter h2 { font-size: 22px; }
  .section { padding-top: 56px; }
  .about-card { padding: 18px; font-size: 15.5px; }
  .pub { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .pub-no { display: none; }
  .pub-thumb, .pub-venue, .pub-main { grid-column: 1; grid-row: auto; }
  .pub-venue { order: 0; }
  .pub-thumb img, .pub-thumb video { height: auto; aspect-ratio: 16 / 9; }
  .tally-note { margin-left: 0; }
  .news li { grid-template-columns: auto 1fr; gap: 4px 10px; padding: 12px 16px; }
  .news li p { grid-column: 1 / -1; }
  .row { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
  .row-logo { width: 44px; height: 44px; }
  .row-meta { grid-column: 2; flex-direction: row; align-items: center; gap: 10px; }
  .awards li { flex-direction: column; gap: 2px; padding: 10px 16px; }
  .footer-inner { flex-direction: column; }
}
