:root {
  --bg: #06090f;
  --surface: #0c111a;
  --surface-2: #111824;
  --text: #f2f5fb;
  --muted: #9da7b8;
  --line: rgba(196, 211, 235, .16);
  --blue: #7ba7ff;
  --blue-strong: #4e7cff;
  --max: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

/* Visual entry */
.intro-page { min-height: 100svh; overflow: hidden; }
.intro { position: relative; min-height: 100svh; overflow: hidden; cursor: pointer; isolation: isolate; }
.intro-image { position: absolute; inset: -4%; z-index: -5; background: url("assets/intro-coast.webp") center 48% / cover no-repeat; filter: saturate(.72) contrast(1.08) brightness(.68); transform: scale(1.04); animation: intro-drift 16s ease-in-out infinite alternate; }
.intro-vignette { position: absolute; inset: 0; z-index: -4; background: radial-gradient(circle at 72% 40%, transparent 0 18%, rgba(6,9,15,.12) 38%, rgba(6,9,15,.84) 100%), linear-gradient(90deg, rgba(5,8,14,.92), rgba(5,8,14,.2) 60%, rgba(5,8,14,.52)); }
.intro-grid { position: absolute; inset: 0; z-index: -3; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 7.5vw 7.5vw; mask-image: linear-gradient(to bottom, black, transparent 86%); }
.intro::after { content: ""; position: absolute; inset: 0; z-index: -2; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px); pointer-events: none; }
.scan-line { position: absolute; inset: -20% 0 auto; height: 24vh; z-index: -1; background: linear-gradient(to bottom, transparent, rgba(123,167,255,.12), transparent); animation: scan 7s linear infinite; }
.intro-head, .intro-foot { position: absolute; left: 4vw; right: 4vw; z-index: 2; display: flex; justify-content: space-between; align-items: center; font-size: .76rem; letter-spacing: .16em; color: rgba(255,255,255,.68); }
.intro-head { top: 4vh; }
.intro-foot { bottom: 4vh; }
.intro-copy { position: absolute; left: 4vw; bottom: 15vh; z-index: 2; }
.intro-copy > p { margin: 0 0 1.4rem; color: var(--blue); font-size: .8rem; letter-spacing: .22em; }
.intro-copy h1 { margin: 0; display: flex; flex-direction: column; font-size: clamp(5.8rem, 14.5vw, 15rem); line-height: .84; letter-spacing: -.075em; font-weight: 600; text-shadow: 0 20px 80px rgba(0,0,0,.3); }
.intro-copy h1 span:last-child { margin-left: 12vw; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.66); }
.intro-name { margin: 3.7rem 0 0 1vw; }
.intro-identity { display: flex; align-items: baseline; gap: 1.4rem; }
.intro-identity strong { font-size: 1.25rem; }
.intro-identity span { color: rgba(255,255,255,.72); font-size: .95rem; }
.intro-name > p { margin: .85rem 0 0; color: rgba(255,255,255,.56); font-size: .82rem; letter-spacing: .07em; }
.enter-button { padding: .9rem 1.35rem; border: 1px solid rgba(255,255,255,.45); background: rgba(6,9,15,.28); backdrop-filter: blur(12px); cursor: pointer; transition: .25s; }
.enter-button:hover, .enter-button:focus-visible { background: var(--blue); color: #061022; border-color: var(--blue); outline: none; }
.intro-foot p { margin: 0; }
.intro.is-leaving { animation: intro-leave .7s cubic-bezier(.6,0,.4,1) both; }
@keyframes intro-drift { to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@keyframes scan { to { transform: translateY(140vh); } }
@keyframes intro-leave { to { opacity: 0; transform: scale(1.025); filter: blur(7px); } }

/* Navigation */
.site-nav { position: fixed; inset: 0 0 auto; z-index: 40; height: 76px; padding: 0 3.5vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; background: rgba(6,9,15,.78); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.site-mark { display: flex; align-items: center; gap: .9rem; width: fit-content; }
.site-mark span { font-size: 1.2rem; font-weight: 700; color: var(--blue); }
.site-mark small { font-size: .75rem; letter-spacing: .14em; color: var(--muted); }
.site-nav nav { display: flex; gap: 2.3rem; }
.site-nav nav a, .nav-contact { font-size: .86rem; color: #cbd2de; }
.site-nav nav a { position: relative; }
.site-nav nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.55rem; height: 1px; background: var(--blue); transition: .25s; }
.site-nav nav a:hover::after { right: 0; }
.nav-contact { justify-self: end; padding: .7rem 1rem; border: 1px solid var(--line); }

/* Shared */
.section { max-width: var(--max); margin: 0 auto; padding: 8.5rem 4vw; }
.section-label { margin: 0; color: var(--blue); font-size: .78rem; letter-spacing: .18em; }
.section-top { display: grid; grid-template-columns: .38fr 1fr .6fr; gap: 4vw; align-items: end; margin-bottom: 4.8rem; }
.section-top h2 { margin: 0; font-size: clamp(3.2rem, 6vw, 6.7rem); line-height: .98; letter-spacing: -.065em; font-weight: 520; }
.section-top > p:last-child { margin: 0; color: var(--muted); line-height: 1.8; font-size: 1rem; }
.button { min-height: 48px; padding: .9rem 1.3rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: .92rem; transition: .25s; }
.button.primary { color: #061022; background: var(--blue); border-color: var(--blue); }
.button.primary:hover { background: white; border-color: white; }
.button.secondary:hover { border-color: var(--blue); color: var(--blue); }

/* Portfolio hero */
.portfolio-hero { position: relative; min-height: 100svh; padding: 10rem 6vw 5rem; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.portfolio-hero-bg { position: absolute; inset: 0; z-index: -3; background: url("assets/hero-cathedral.png") center 48% / cover no-repeat; transform: scale(1.03); }
.portfolio-hero-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(4,7,12,.92) 0%, rgba(4,7,12,.64) 50%, rgba(4,7,12,.2) 100%), linear-gradient(0deg, rgba(4,7,12,.86), rgba(4,7,12,.08) 62%); }
.portfolio-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 9vw 9vw; mask-image: linear-gradient(to right, black, transparent 72%); }
.portfolio-hero-copy { width: min(930px, 82vw); }
.portfolio-hero h1 { margin: 1.6rem 0 2rem; font-size: clamp(4rem, 6.8vw, 7.6rem); line-height: 1.18; letter-spacing: -.065em; font-weight: 520; }
.portfolio-hero h1 span, .portfolio-hero h1 em { white-space: nowrap; }
.portfolio-hero h1 em { color: var(--blue); font-style: normal; }
.hero-summary { width: min(660px, 100%); margin: 0; color: #c0c9d7; font-size: 1.1rem; line-height: 1.85; }
.hero-actions { margin-top: 2.1rem; display: flex; gap: .8rem; }
.hero-index { position: absolute; right: 4vw; top: 16vh; color: rgba(255,255,255,.1); font-size: clamp(8rem, 18vw, 18rem); font-weight: 700; letter-spacing: -.08em; }
.hero-caption { position: absolute; right: 4vw; bottom: 4rem; display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; color: rgba(255,255,255,.7); font-size: .82rem; letter-spacing: .08em; }

/* Profile */
.about-section { border-bottom: 1px solid var(--line); }
.about-section .section-top { grid-template-columns: .28fr 1.72fr; }
.about-section .section-top h2 { font-size: clamp(3.1rem, 5vw, 5.6rem); line-height: 1.18; }
.about-section .section-top h2 span { white-space: nowrap; }
.about-layout { display: grid; grid-template-columns: minmax(260px, .58fr) 1fr; gap: 7vw; align-items: end; }
.portrait { margin: 0; background: var(--surface-2); border: 1px solid var(--line); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; filter: saturate(.72) contrast(1.06); }
.portrait figcaption { padding: 1rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .82rem; letter-spacing: .08em; }
.about-copy { max-width: 760px; }
.about-copy p { margin: 0 0 1.2rem; color: #b9c2d1; font-size: 1rem; line-height: 1.9; }
.about-copy .lead { color: var(--text); font-size: clamp(1.5rem, 2.3vw, 2.35rem); line-height: 1.5; letter-spacing: -.025em; }
.contact-lines { margin-top: 2.3rem; display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; }
.contact-lines a { padding-bottom: .35rem; border-bottom: 1px solid var(--line); color: var(--blue); }
.stats { margin-top: 6rem; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { min-height: 155px; padding: 1.6rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats strong { font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1; font-weight: 500; color: var(--blue); }
.stats sup { font-size: .42em; }
.stats span { color: var(--muted); font-size: .86rem; }

/* Projects */
.projects-section { max-width: none; padding-left: 3vw; padding-right: 3vw; background: #080c13; }
.projects-section .section-top { max-width: calc(var(--max) - 8vw); margin-left: auto; margin-right: auto; grid-template-columns: .38fr 1.62fr; }
.project-list { max-width: 1500px; margin: 0 auto; }
.project-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.project-featured { min-height: 72vh; display: grid; grid-template-columns: 1.4fr .6fr; }
.project-image { min-height: 430px; overflow: hidden; background: #11151d; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .45s; }
.project-card:hover .project-image img { transform: scale(1.035); filter: brightness(1.08); }
.project-info { padding: 2rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.project-info > span { color: var(--blue); font-size: .76rem; letter-spacing: .12em; }
.project-info h3 { margin: 1rem 0; font-size: clamp(2rem, 3.5vw, 4.4rem); line-height: 1.02; letter-spacing: -.05em; font-weight: 520; }
.project-info p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.project-info button, .project-info .project-link { margin-top: 2rem; padding: .75rem 1rem; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.project-card:hover .project-info button, .project-card:hover .project-info .project-link { border-color: var(--blue); color: var(--blue); }
.project-grid { margin-top: 1.1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.project-grid .project-card { display: grid; grid-template-rows: minmax(360px, 58vh) auto; }
.project-grid .project-info { min-height: 250px; }
.project-featured-followup { margin-top: 1.1rem; }
.ui-entry-grid { margin-top: 1.1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.ui-entry-card { display: grid; grid-template-rows: minmax(260px, 34vh) auto; }
.ui-entry-card .project-image { position: relative; min-height: 0; }
.ui-entry-card .project-info { min-height: 230px; padding: 1.6rem; }
.ui-entry-card .project-info h3 { font-size: clamp(1.65rem, 2.25vw, 2.55rem); }
.handdrawn-badge { position: absolute; z-index: 2; top: .85rem; left: .85rem; padding: .36rem .7rem; color: #4a4d52; background: rgba(232,233,235,.94); border: 0; border-radius: 999px; font-size: .68rem; font-weight: 600; line-height: 1; letter-spacing: .08em; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.split-image { display: grid; grid-template-columns: 1fr 1fr; }
.split-image img { min-width: 0; }

/* Strengths */
.strengths-section { max-width: none; padding-left: 5vw; padding-right: 5vw; background: #0b1019; }
.strengths-section .section-top, .strength-grid, .process { max-width: var(--max); margin-left: auto; margin-right: auto; }
.strengths-section .section-top h2 { font-size: clamp(2.4rem, 4.2vw, 4.8rem); line-height: 1.32; }
.strength-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.strength-card { min-height: 330px; padding: 2.2rem; background: var(--surface); }
.strength-card > span { color: var(--blue); font-size: .8rem; }
.strength-card h3 { margin: 3.5rem 0 1.2rem; font-size: clamp(2rem, 3.3vw, 3.6rem); letter-spacing: -.045em; font-weight: 520; }
.strength-card p { max-width: 590px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.process { margin-top: 5rem; }
.process > p { color: var(--blue); font-size: .78rem; letter-spacing: .16em; }
.process ol { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.process li { min-height: 130px; padding: 1.2rem 1rem 1rem 0; border-right: 1px solid var(--line); color: #c6ceda; font-size: .86rem; }
.process li::before { content: counter(list-item, decimal-leading-zero); display: block; margin-bottom: 2.7rem; color: var(--blue); font-size: .72rem; }

/* Contact */
.contact-section { position: relative; min-height: 88vh; padding: 8rem 5vw 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; isolation: isolate; background: #05070c; }
.contact-glow { position: absolute; z-index: -1; width: 70vw; height: 70vw; left: 48%; top: 43%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(72,115,255,.28), rgba(72,115,255,.06) 36%, transparent 68%); filter: blur(30px); }
.contact-section > h2 { margin: 2rem 0 1.7rem; max-width: 980px; font-size: clamp(2.2rem, 4.3vw, 4.6rem); line-height: 1.32; letter-spacing: -.045em; font-weight: 500; }
.contact-section > p:not(.section-label) { margin: 0; color: var(--muted); font-size: 1.05rem; }
.contact-actions { margin-top: 2.6rem; display: flex; gap: .8rem; }
.button.light { background: white; color: #080b11; border-color: white; }
.button.ghost:hover { border-color: var(--blue); color: var(--blue); }
.contact-section footer { margin-top: auto; min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; letter-spacing: .08em; }

/* Dialog and motion */
.project-dialog { width: min(1100px, 92vw); max-height: 90vh; padding: 0; border: 1px solid var(--line); background: #080c13; color: var(--text); box-shadow: 0 40px 120px rgba(0,0,0,.65); }
.project-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(10px); }
.project-dialog img { width: 100%; max-height: 65vh; object-fit: contain; background: #030508; }
.project-dialog > div { padding: 1.7rem 2rem 2rem; }
.project-dialog p { margin: 0; color: var(--blue); font-size: .76rem; letter-spacing: .14em; }
.project-dialog h2 { margin: .75rem 0 .65rem; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.05em; }
.project-dialog span { color: var(--muted); line-height: 1.75; }
.dialog-close { position: absolute; right: 1rem; top: 1rem; z-index: 2; padding: .7rem .9rem; border: 1px solid rgba(255,255,255,.35); background: rgba(5,8,13,.68); backdrop-filter: blur(10px); cursor: pointer; }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Fantasy project detail */
.case-page { background: #06090f; }
.case-hero { position: relative; min-height: 100svh; padding: 9rem 5vw 5rem; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.case-hero > img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.case-hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(3,5,9,.94), rgba(3,5,9,.58) 48%, rgba(3,5,9,.14)), linear-gradient(0deg, rgba(3,5,9,.9), transparent 58%); }
.case-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 9vw 9vw; mask-image: linear-gradient(90deg, #000, transparent 76%); }
.case-hero-copy { width: min(1080px, 90vw); }
.case-hero h1 { margin: 1.5rem 0 2.6rem; font-size: clamp(4.2rem, 8vw, 9rem); line-height: .98; letter-spacing: -.065em; font-weight: 520; }
.case-hero h1 em { color: #b8d37a; font-style: normal; }
.case-meta { max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.24); border-bottom: 1px solid rgba(255,255,255,.24); }
.case-meta div { min-height: 96px; padding: 1rem 1.4rem 1rem 0; display: flex; flex-direction: column; justify-content: space-between; }
.case-meta span { color: rgba(255,255,255,.55); font-size: .78rem; letter-spacing: .08em; }
.case-meta strong { font-size: 1rem; font-weight: 500; }
.case-intro { max-width: 1250px; margin: 0 auto; padding: 8rem 5vw; display: grid; grid-template-columns: .32fr 1fr; gap: 5vw; border-bottom: 1px solid var(--line); }
.case-intro > p:last-child { max-width: 930px; margin: 0; font-size: clamp(1.55rem, 2.7vw, 2.8rem); line-height: 1.55; letter-spacing: -.025em; }
.case-section { max-width: 1540px; margin: 0 auto; padding: 8rem 3vw 2rem; }
.case-heading { margin: 0 auto 3.4rem; max-width: 1400px; display: grid; grid-template-columns: 90px .8fr 1fr; gap: 3vw; align-items: start; }
.case-heading > span { color: #b8d37a; font-size: 1rem; }
.case-heading div p { margin: 0 0 .75rem; color: var(--blue); font-size: .75rem; letter-spacing: .16em; }
.case-heading h2 { margin: 0; font-size: clamp(2.8rem, 5.1vw, 6rem); line-height: 1; letter-spacing: -.06em; font-weight: 520; }
.case-heading > p { max-width: 650px; margin: .2rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.case-media { margin: 0; overflow: hidden; border: 1px solid var(--line); background: #090d14; }
.case-media img { width: 100%; height: auto; }
.light-media { background: #fff; }
.case-media figcaption { min-height: 74px; padding: 1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.case-media figcaption span { color: var(--blue); font-size: .75rem; letter-spacing: .12em; }
.case-media figcaption strong { color: #cbd2de; font-size: .9rem; font-weight: 500; }
.case-setting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.case-setting-grid .case-media:first-child { grid-column: 1 / -1; }
.case-setting-grid .case-media img { aspect-ratio: 16 / 9; object-fit: cover; }
.case-duo-grid, .case-triple-grid, .case-ink-grid { display: grid; gap: 1.2rem; }
.case-duo-grid, .case-ink-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-triple-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-duo-grid .case-media img, .case-triple-grid .case-media img { aspect-ratio: 16 / 9; object-fit: cover; }
.pixel-character-grid .case-media { position: relative; aspect-ratio: 16 / 9; background: #090d14; }
.pixel-character-grid .case-media img { position: absolute; inset: 10%; width: 80%; height: 80%; aspect-ratio: auto; object-fit: contain; display: block; }
.case-ink-grid .case-media { display: grid; place-items: center; background: #eee8dc; }
.case-ink-grid .case-media img { aspect-ratio: 16 / 9; object-fit: contain; }
.workflow-media img { min-height: 42vw; object-fit: contain; background: #111; }
.bjf-case .case-hero h1 { font-size: clamp(3.5rem, 6.6vw, 7.6rem); line-height: 1.02; }
.bjf-case .case-hero h1 em { color: #ffb56f; }
.poster-ui-case .case-hero h1 { font-size: clamp(3.4rem, 6.4vw, 7.2rem); line-height: 1.04; }
.poster-ui-case .case-hero h1 em { color: #70e5ff; }
.white-coast-case .case-hero h1, .snow-night-case .case-hero h1 { font-size: clamp(3.4rem, 6.2vw, 7rem); line-height: 1.04; }
.white-coast-case .case-hero h1 em { color: #ffe39a; }
.snow-night-case .case-hero h1 em { color: #ffc681; }
.guofeng-ui-case .case-hero h1, .cyber-ui-case .case-hero h1, .rhythm-ui-case .case-hero h1 { font-size: clamp(3.2rem, 6vw, 6.8rem); line-height: 1.04; }
.guofeng-ui-case .case-hero h1 em { color: #ffdc62; }
.cyber-ui-case .case-hero h1 em { color: #62e9ff; }
.rhythm-ui-case .case-hero h1 em { color: #ff8ec8; }
.racing-game-case .case-hero h1 em { color: #69e7ff; }
.gacha-game-case .case-hero h1 em { color: #ff8fcd; }
.pixel-game-case .case-hero h1 em { color: #ffd45f; }
.picture-book-case .case-hero h1 em { color: #f4bd76; }
.card-game-case .case-hero h1 { font-size: clamp(3rem, 5.6vw, 6.4rem); line-height: 1.06; }
.card-game-case .case-hero h1 em { color: #79efff; }
.ui-case-gallery { width: min(100%, 1320px); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.ui-case-gallery .case-media img { width: 100%; height: auto; object-fit: contain; display: block; }
.beijing-scene-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.beijing-scene-grid .case-media img { width: 100%; height: auto; object-fit: contain; display: block; }
.case-gallery-subheading { margin: 3.2rem 0 .2rem; padding: 0 0 1.15rem; border-bottom: 1px solid var(--line); }
.case-gallery-subheading p { margin: 0 0 .65rem; color: var(--accent); font-size: .75rem; letter-spacing: .16em; }
.case-gallery-subheading h3 { margin: 0; color: var(--text); font-size: clamp(1.65rem, 2.8vw, 2.8rem); line-height: 1.16; font-weight: 500; letter-spacing: -.025em; }
.card-draw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.card-draw-grid .case-media { min-width: 0; }
.card-comparison-wrap { width: 100%; overflow-x: auto; padding-bottom: .65rem; }
.card-comparison { min-width: 920px; display: grid; grid-template-columns: 130px repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--line); }
.card-comparison > * { background: #090d14; }
.card-comparison-corner, .card-column-title, .card-row-title { min-height: 74px; display: grid; place-items: center; padding: 1rem; text-align: center; }
.card-comparison-corner { color: var(--muted); font-size: .72rem; letter-spacing: .12em; }
.card-column-title { color: #dce5f4; font-size: 1rem; font-weight: 600; letter-spacing: .08em; }
.card-row-title { align-content: center; color: #79efff; font-weight: 500; line-height: 1.25; letter-spacing: .08em; }
.card-row-title span, .card-row-title strong { display: block; }
.card-row-title strong { margin-top: .35rem; font-size: 1.25rem; font-weight: 600; }
.card-comparison .case-media { aspect-ratio: 3 / 4; display: grid; place-items: center; padding: 1.4rem; border: 0; background: radial-gradient(circle, rgba(88,64,180,.24), transparent 66%), #090d14; }
.card-comparison .case-media img { width: 100%; height: 100%; object-fit: contain; }
.card-comparison .case-media.card-media--compact img { width: 78%; height: 78%; object-fit: contain; }
.poster-ui-case #visuals { max-width: none; padding-left: 0; padding-right: 0; }
.poster-ui-case #visuals .case-heading { padding-left: 3vw; padding-right: 3vw; }
.poster-ui-gallery { width: min(90vw, 620px); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1.5rem; justify-items: center; }
.poster-ui-sheet { width: 100%; margin: 0 auto; overflow: hidden; border-top: 1px solid rgba(112,229,255,.28); border-bottom: 1px solid rgba(112,229,255,.28); background: #087cca; }
.poster-ui-sheet img { display: block; width: 100%; height: auto; image-rendering: auto; }
.case-video { padding: 1px; background: linear-gradient(135deg, rgba(184,211,122,.8), rgba(123,167,255,.25), rgba(255,255,255,.08)); }
.case-video video { display: block; width: 100%; max-height: 86vh; background: #000; }
.case-return { min-height: auto; padding: 3.5rem 5vw 3rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: radial-gradient(circle at 68% 42%, rgba(151,181,89,.18), transparent 36%), #05070c; }
.case-return h2 { margin: 1.2rem 0 1.6rem; max-width: 920px; color: rgba(238,243,251,.42); font-size: clamp(1.5rem, 2.4vw, 2.7rem); line-height: 1.28; letter-spacing: -.035em; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .site-nav { grid-template-columns: 1fr auto; padding: 0 1.4rem; }
  .site-nav nav { display: none; }
  .portfolio-hero { padding-left: 1.5rem; padding-right: 1.5rem; }
  .portfolio-hero-copy { width: 100%; }
  .portfolio-hero h1 { font-size: clamp(3.7rem, 10vw, 6.2rem); }
  .hero-caption { display: none; }
  .section { padding: 6.5rem 1.5rem; }
  .section-top { grid-template-columns: 1fr; gap: 1.4rem; }
  .about-layout { grid-template-columns: .62fr 1fr; gap: 3rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .project-featured { min-height: auto; grid-template-columns: 1fr; }
  .project-featured .project-image { min-height: 55vw; }
  .process ol { grid-template-columns: repeat(3, 1fr); }
  .process li:nth-child(3) { border-right: 0; }
  .case-heading { grid-template-columns: 70px 1fr; }
  .case-heading > p { grid-column: 2; }
}

@media (max-width: 640px) {
  .intro-head { left: 1.2rem; right: 1.2rem; }
  .intro-head span:last-child, .intro-foot p { display: none; }
  .intro-copy { left: 1.2rem; right: 1.2rem; bottom: 18vh; }
  .intro-copy h1 { font-size: 22vw; line-height: .9; }
  .intro-copy h1 span:last-child { margin-left: 0; }
  .intro-name { margin: 2.6rem 0 0; }
  .intro-identity { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .intro-name > p { max-width: 19rem; line-height: 1.65; }
  .intro-foot { left: 1.2rem; bottom: 2rem; }
  .portfolio-hero { min-height: 92svh; padding-top: 8rem; padding-bottom: 3rem; }
  .portfolio-hero-bg { background-position: 50% center; }
  .portfolio-hero-overlay { background: linear-gradient(0deg, rgba(4,7,12,.96), rgba(4,7,12,.45) 80%, rgba(4,7,12,.62)); }
  .portfolio-hero h1 { font-size: 12vw; line-height: 1.2; }
  .hero-summary { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .about-layout { grid-template-columns: 1fr; }
  .about-section .section-top h2 { font-size: 9vw; line-height: 1.25; }
  .portrait { width: min(360px, 100%); }
  .about-copy .lead { font-size: 1.35rem; }
  .stats { margin-top: 4rem; }
  .stats div { min-height: 135px; padding: 1rem; }
  .stats strong { font-size: 2.8rem; }
  .project-grid { grid-template-columns: 1fr; }
  .ui-entry-grid { grid-template-columns: 1fr; }
  .ui-entry-card { grid-template-rows: minmax(250px, 52vw) auto; }
  .project-grid .project-card { grid-template-rows: 65vw auto; }
  .project-image { min-height: 0; }
  .project-info { padding: 1.4rem; }
  .project-grid .project-info { min-height: 220px; }
  .strength-grid { grid-template-columns: 1fr; }
  .strength-card { min-height: 290px; padding: 1.5rem; }
  .process ol { grid-template-columns: repeat(2, 1fr); }
  .process li:nth-child(3) { border-right: 1px solid var(--line); }
  .process li:nth-child(even) { border-right: 0; }
  .contact-section { min-height: 92svh; padding: 6rem 1.5rem 0; }
  .strengths-section .section-top h2 { font-size: 8vw; line-height: 1.36; }
  .contact-section > h2 { font-size: 8vw; line-height: 1.36; }
  .contact-actions { flex-direction: column; }
  .contact-section footer { padding: 1.5rem 0; align-items: flex-start; flex-direction: column; }
  .project-dialog > div { padding: 1.3rem; }
  .case-hero { min-height: 92svh; padding: 8rem 1.5rem 3rem; }
  .case-hero > img { object-position: 62% center; }
  .case-hero h1 { font-size: 13vw; line-height: 1.05; }
  .case-meta { grid-template-columns: 1fr; }
  .case-meta div { min-height: 72px; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .case-meta div:last-child { border-bottom: 0; }
  .case-intro { padding: 5rem 1.5rem; grid-template-columns: 1fr; gap: 1.5rem; }
  .case-intro > p:last-child { font-size: 1.45rem; }
  .case-section { padding: 5rem 1rem 1rem; }
  .case-heading { margin-bottom: 2rem; grid-template-columns: 44px 1fr; gap: 1rem; }
  .case-heading h2 { font-size: 10.5vw; }
  .case-heading > p { grid-column: 1 / -1; }
  .case-setting-grid { grid-template-columns: 1fr; }
  .case-duo-grid, .case-triple-grid, .case-ink-grid { grid-template-columns: 1fr; }
  .workflow-media img { min-height: 58vw; }
  .bjf-case .case-hero h1 { font-size: 11.2vw; line-height: 1.12; }
  .poster-ui-case .case-hero h1 { font-size: 10.8vw; line-height: 1.14; }
  .poster-ui-case #visuals .case-heading { padding-left: 1rem; padding-right: 1rem; }
  .poster-ui-gallery { width: calc(100% - 2rem); grid-template-columns: 1fr; gap: 1rem; }
  .card-draw-grid { grid-template-columns: 1fr; gap: 1rem; }
  .beijing-scene-grid { grid-template-columns: 1fr; gap: 1rem; }
  .case-gallery-subheading { margin-top: 2.2rem; }
  .case-media figcaption { align-items: flex-start; flex-direction: column; }
  .case-return { min-height: auto; padding: 3rem 1.5rem 2.5rem; }
  .case-return h2 { font-size: 5vw; line-height: 1.3; }
}
