/* ZONG ZHI / V22 R4: compact mobile works and quiet background controls. */
:root {
  color-scheme: light;
  --paper: #f5f5f3;
  --ink: #171916;
  --muted: #585e55;
  --line: #d9ddd3;
  --acid: #e8ff2a;
  --dark: #171c18;
  --light-text: #f5f7ef;
  --light-muted: #bcc6b8;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 12px;
  --font: "Satoshi", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; position: relative; isolation: isolate; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
.background-system { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; isolation: isolate; }
.glass-image-base { position: absolute; inset: -5%; background: url("assets/images/background.webp") center / cover; opacity: .68; filter: blur(14px) saturate(.95) brightness(1.08); transform: scale(1.04); }
.glass-blob { position: absolute; width: 42vmax; height: 34vmax; border-radius: 50%; filter: blur(24px); opacity: .48; animation: glass-drift 30s ease-in-out infinite alternate; }
.blob-1 { top: 2%; left: -8%; background: radial-gradient(ellipse,#faffefa8,#90fff73d 50%,transparent 72%); }
.blob-2 { top: 23%; right: -8%; background: radial-gradient(ellipse,#aabaff70,#ffd5bf36 55%,transparent 74%); animation-delay: -11s; animation-duration: 39s; }
.blob-3 { bottom: -10%; left: 30%; background: radial-gradient(ellipse,#e8ff2a50,#e3b8ff26 54%,transparent 73%); animation-delay: -19s; animation-duration: 43s; }
.glass-frosted-base { position: absolute; inset: 0; background: linear-gradient(115deg,rgba(255,255,255,.74),rgba(245,247,246,.58) 48%,rgba(236,239,235,.66)); -webkit-backdrop-filter: blur(11px) saturate(1.12); backdrop-filter: blur(11px) saturate(1.12); }
.glass-frosted-base::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#ffffff28,transparent 40%,#ffffff15),radial-gradient(ellipse at center,transparent 40%,#ffffff2e); }
.glass-grid { position: absolute; inset: 0; background-image: linear-gradient(#17221406 1px,transparent 1px),linear-gradient(90deg,#17221406 1px,transparent 1px); background-size: 64px 64px; }
.ambient-paused .glass-blob { animation-play-state: paused; }
@keyframes glass-drift { from { transform: translate3d(-2%,0,0) scale(1); opacity: .36; } to { transform: translate3d(9%,6%,0) scale(1.06); opacity: .52; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-image-base { filter: blur(22px) saturate(.95) brightness(1.08); }
  .glass-frosted-base { background: linear-gradient(115deg,#ffffffb0,#f5f7f698 48%,#ecefebb0); }
}
::selection { background: var(--acid); color: var(--ink); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, a { -webkit-tap-highlight-color: #e8ff2a60; }
button { font: inherit; cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p { margin: 0; }
dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #526700; outline-offset: 5px; }
section[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
.dark-section :is(a,button,[tabindex="0"]):focus-visible { outline-color: var(--acid); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 100; background: var(--acid); color: var(--ink); padding: 12px 18px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.container { width: min(100% - var(--gutter) * 2, 1280px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-kicker, .eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; line-height: 1.5; color: var(--muted); }
.section-kicker { margin-bottom: 20px; }
.section-kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.section-heading { font-size: clamp(32px, 4.3vw, 58px); line-height: 1.25; letter-spacing: -.035em; font-weight: 650; text-wrap: balance; }
.english { display: block; font-size: .42em; font-weight: 450; letter-spacing: -.01em; color: var(--muted); margin-top: 10px; }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-aside { font-size: 14px; color: var(--muted); }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(245,245,243,.74); -webkit-backdrop-filter: blur(16px) saturate(1.08); backdrop-filter: blur(16px) saturate(1.08); }
.nav-wrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; letter-spacing: -.045em; text-decoration: none; min-height: 44px; white-space: nowrap; }
.brand-mark { width: 14px; height: 14px; background: var(--acid); box-shadow: inset 0 0 0 1px #17191630; border-radius: 50%; }
.menu-toggle { min-width: 64px; min-height: 44px; border: 1px solid #697160; background: transparent; border-radius: 6px; padding: 6px 12px; }
.site-nav { width: 100%; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.nav-links a { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; font-size: 14px; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.nav-links small { font-size: 12px; color: var(--muted); }
.nav-contact { background: var(--ink); color: #fff; padding: 6px 18px; border-radius: 4px; }
.hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: 24px; position: relative; isolation: isolate; }
.hero-effects { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#hero-lines-canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.hero-shell { position: relative; z-index: 1; pointer-events: none; }
.hero-content, .hero-foot, .visual-controls { pointer-events: auto; }
.hero-content { position: relative; z-index: 2; }
.hero-content::before { content: ""; position: absolute; inset: -24px -20px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 30% 45%,rgba(248,249,245,.68),rgba(248,249,245,.24) 62%,transparent 80%); }
.hero-scene-space { position: relative; min-width: 0; height: clamp(280px,72vw,390px); pointer-events: none; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; background: #526700; border-radius: 50%; }
.hero h1 { margin-top: 28px; font-size: clamp(42px, 7vw, 94px); line-height: 1.22; font-weight: 750; letter-spacing: -.045em; }
.hero h1 span { display: block; }
.hero h1 .title-second { color: var(--ink); }
.hero h1 em { font-style: normal; font-weight: 400; color: #66705e; }
.hero-desc { margin-top: 28px; max-width: 36em; font-size: 17px; line-height: 1.85; color: var(--muted); }
.hero-desc .en-copy { display: block; font-size: 14px; margin-top: 10px; }
.hero-disciplines { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-disciplines span { display: block; font-size: 12px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 28px; border: 1px solid var(--ink); border-radius: 5px; padding: 12px 20px; font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background .2s, transform .2s; }
.button-primary { background: var(--ink); color: var(--paper); }
.button-secondary { background: transparent; color: var(--ink); }
.button-primary:hover { background: #343d2f; }
.button-secondary:hover { background: #e7eadd; }
#art-surface { position: absolute; inset: 0; pointer-events: auto; touch-action: pan-y; }
#hero-poly-canvas, #hero-poly-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
#art-surface[data-visual-state] { cursor: grab; }
#art-surface.is-dragging { cursor: grabbing; }
/* Decoration controls remain in document flow, with a native disclosure. */
.hero-utility-row { display: flex; justify-content: flex-end; padding-top: 8px; min-width: 0; }
.visual-disclosure { display: block; width: fit-content; max-width: 100%; margin-left: auto; pointer-events: auto; }
.visual-summary { display: flex; align-items: center; justify-content: flex-end; gap: 8px; width: fit-content; min-height: 44px; margin-left: auto; padding: 8px 10px; border-radius: 6px; color: #4a5145; font-size: 12px; line-height: 1.5; list-style: none; cursor: pointer; background: transparent; }
.visual-summary::-webkit-details-marker { display: none; }
.visual-summary::after { content: ""; width: 5px; height: 5px; margin: -3px 2px 0 4px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.visual-disclosure[open] > .visual-summary::after { transform: rotate(225deg); margin-top: 3px; }
.visual-summary:hover, .visual-summary:focus-visible { background: #ffffff30; }
.visual-summary:focus-visible { outline: 3px solid #526700; outline-offset: 2px; }
.visual-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; max-width: 640px; padding: 8px; margin-top: 2px; border: 1px solid #77816c26; border-radius: 8px; background: rgba(247,249,243,.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: none; }
.visual-hint { flex-basis: 100%; margin: 0; padding: 0 4px 4px; color: #4a5145; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.visual-controls button { min-height: 44px; min-width: 44px; border: 1px solid transparent; border-radius: 5px; padding: 8px; background: transparent; font-size: 12px; }
.visual-controls button:hover { background: #5267000d; }
.visual-controls button:disabled { cursor: default; color: #555e4b; background: #edf0e626; }
.visual-controls button:focus-visible { outline-offset: 1px; }
.object-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; min-width: 0; }
.solid-select-label { font-size: 12px; color: #4a5145; padding-inline: 4px; }
.solid-select { font: inherit; font-size: 12px; min-height: 44px; min-width: 0; max-width: 100%; padding: 8px 24px 8px 8px; border: 1px solid #77816c55; border-radius: 5px; background-color: #f5f7ef40; }
.global-controls { display: flex; border-inline-start: 1px solid #77816c26; padding-inline-start: 6px; }
.visual-controls #solid-toggle[aria-pressed="true"] { background: #52670010; color: #334126; text-decoration: underline; text-underline-offset: 4px; }
.hero-foot { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line); }
.hero-stats { display: flex; gap: clamp(24px, 5vw, 60px); flex-wrap: wrap; }
.stat-num { font-size: 28px; font-weight: 650; letter-spacing: -.04em; line-height: 1.25; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 6px; }
.hero-location { font-size: 12px; color: var(--muted); }
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 20px; border-block: 1px solid var(--line); }
.filter-button { min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font-size: 14px; }
.filter-button[aria-pressed="true"] { background: var(--ink); color: var(--acid); border-color: var(--ink); }
.filter-button:hover { border-color: #697160; }
.filter-status { font-size: 13px; color: var(--muted); margin-top: 12px; }
.works-zone { margin-top: 40px; }
.zone-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.zone-heading h3 { font-size: 19px; line-height: 1.5; font-weight: 600; }
.zone-heading h3 small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
.zone-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.work-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 28px 24px; }
.work-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #ffffffb8; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-decoration: none; transition: border-color .2s, transform .2s; }
.work-card:hover { border-color: #788466; transform: translateY(-3px); }
.work-media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 16px; border-radius: 7px 7px 0 0; background: #e9ece4; }
.work-cover { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; padding: 16px; }
.image-fallback { color: var(--muted); font-size: 14px; padding: 24px; text-align: center; }
.work-caption { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.work-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .04em; margin-bottom: 10px; }
.work-title { font-size: 18px; font-weight: 650; line-height: 1.6; margin-bottom: 8px; overflow-wrap: anywhere; }
.work-category { font-size: 13px; line-height: 1.7; color: var(--muted); }
.work-category small { display: block; font-size: 11px; margin-top: 2px; }
.work-link-hint { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; font-weight: 550; margin-top: auto; padding-top: 22px; }
.work-link-hint span:last-child { width: 24px; height: 24px; border: 1px solid #c3caba; display: grid; place-items: center; border-radius: 50%; }
.work-card:hover .work-link-hint span:last-child { background: var(--acid); border-color: #526700; }
.manifesto { border-top: 1px solid var(--line); }
.manifesto-grid { display: grid; gap: 28px; }
.manifesto-statement { font-size: clamp(24px, 3vw, 38px); line-height: 1.65; letter-spacing: -.025em; text-wrap: pretty; }
.manifesto-statement .highlight { background: linear-gradient(transparent 58%,#e8ff2a 58%,#e8ff2a 92%,transparent 92%); }
.manifesto-statement .italic { font-style: normal; }
.manifesto-translation { display: block; font-size: 16px; color: var(--muted); margin-top: 20px; }
.manifesto-footer { display: grid; gap: 32px; margin-top: 44px; }
.manifesto-values { display: grid; gap: 24px; }
.value-item { border-top: 1px solid #bbc3b2; padding-top: 20px; }
.value-num { font-size: 12px; color: var(--muted); display: block; margin-bottom: 12px; }
.value-text { font-size: 17px; font-weight: 600; display: block; }
.value-text small { display: block; font-weight: 450; font-size: 12px; color: var(--muted); }
.value-desc { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }
.value-desc small { display: block; font-size: 12px; margin-top: 6px; }
.manifesto-cn { font-size: 14px; color: var(--muted); border-left: 2px solid #b7c49c; padding-left: 18px; }
.disciplines { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.disciplines li { font-size: 12px; padding: 6px 10px; border: 1px solid #c4ccbb; border-radius: 4px; }
.dark-section { background: var(--dark); color: var(--light-text); }
.dark-section .section-kicker, .dark-section .english { color: var(--light-muted); }
.cap-intro { color: var(--light-muted); max-width: 40em; font-size: 16px; margin-top: 24px; }
.cap-intro .en-copy { display: block; font-size: 14px; margin-top: 10px; }
.cap-grid { display: grid; gap: 16px; margin-top: 40px; }
.cap-item { padding: 28px; border: 1px solid #4b5847; border-radius: 8px; background: #ffffff04; min-width: 0; }
.cap-icon { font-size: 22px; margin-bottom: 20px; }
.cap-name { font-size: 19px; font-weight: 600; line-height: 1.5; }
.cap-name small { display: block; font-size: 13px; font-weight: 400; color: var(--light-muted); margin-top: 6px; }
.cap-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cap-tool { border: 1px solid #4b5847; padding: 5px 8px; border-radius: 3px; font-size: 12px; color: var(--light-muted); }
.cap-skill-bars { display: grid; gap: 48px; margin-top: 56px; padding-top: 40px; border-top: 1px solid #4b5847; }
.skill-heading { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.skill-note { font-size: 12px; color: var(--light-muted); margin-bottom: 20px; }
.skill-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 12px; row-gap: 8px; padding-block: 14px; }
.skill-name { font-size: 14px; overflow-wrap: anywhere; }
.skill-pct { font-size: 13px; color: var(--light-muted); }
.skill-meter { grid-column: 1 / -1; width: 100%; height: 6px; appearance: none; border: none; border-radius: 3px; background: #4b5847; }
.skill-meter::-webkit-meter-bar { background: #4b5847; border: none; border-radius: 3px; }
.skill-meter::-webkit-meter-optimum-value { background: var(--acid); border-radius: 3px; }
.skill-meter::-moz-meter-bar { background: var(--acid); border-radius: 3px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.s-tag { font-size: 13px; padding: 8px 10px; border: 1px solid #5b6656; border-radius: 4px; color: var(--light-text); }
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-portrait { position: relative; aspect-ratio: 4 / 5; width: min(100%,420px); border: 1px solid var(--line); border-radius: 8px; background: #e7ebdf; padding: 14px; margin: 0; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.about-bio { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.6; font-weight: 450; letter-spacing: -.025em; }
.about-content .section-heading { margin-bottom: 24px; }
.about-bio strong { font-weight: 650; }
.about-body { color: var(--muted); line-height: 1.9; margin-top: 24px; max-width: 40em; }
.about-facts { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.about-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-width: 0; }
.fact-label { color: var(--muted); font-size: 12px; display: block; }
.fact-value { display: block; font-size: 16px; font-weight: 600; margin: 0; overflow-wrap: anywhere; text-align: right; }
.contact-section { background: #141914; }
.contact-inner { display: grid; gap: 44px; }
.contact-headline { font-size: clamp(32px, 4.4vw, 62px); line-height: 1.3; letter-spacing: -.04em; font-weight: 650; }
.contact-headline .yellow { color: var(--acid); }
.contact-headline small { display: block; font-size: 17px; color: var(--light-muted); font-weight: 400; margin-top: 14px; letter-spacing: 0; }
.contact-email-link { display: inline-block; font-size: clamp(16px, 2vw, 23px); font-weight: 550; color: var(--light-text); margin-top: 28px; padding-block: 8px; overflow-wrap: anywhere; max-width: 100%; }
.contact-email-link:hover { color: var(--acid); }
.contact-info-list { margin-top: 24px; display: grid; gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-icon { flex: 0 0 24px; width: 24px; }
.info-content { min-width: 0; }
.info-label { font-size: 12px; color: var(--light-muted); }
.info-value { font-size: 16px; overflow-wrap: anywhere; }
a.info-value { display: inline-flex; align-items: center; min-height: 44px; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 30px; }
.social-pending { font-size: 12px; color: var(--light-muted); }
.social-note { color: var(--light-muted); font-size: 12px; margin-top: 8px; }
.contact-right { display: grid; gap: 14px; }
.contact-card { border: 1px solid #4b5847; background: #ffffff08; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 8px; padding: 24px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-title { font-size: 18px; font-weight: 600; }
.card-title small { display: block; font-size: 12px; font-weight: 400; color: var(--light-muted); }
.card-desc { font-size: 14px; color: var(--light-muted); margin-block: 12px 20px; }
.download-note { font-size: 12px; color: var(--light-muted); margin-top: 12px; }
.contact-card .button { width: 100%; justify-content: space-between; background: var(--acid); color: #171916; border-color: var(--acid); }
.contact-card .button:hover { background: #f3ff94; }
.site-footer { padding-block: 28px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.footer-logo { font-size: 14px; font-weight: 650; }
.footer-copy, .footer-right { font-size: 12px; color: var(--muted); }
.footer-copy { margin-top: 4px; }
.footer-right span { display: block; }
.back-top { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; }
/* Entry uses CSS so an unavailable enhancement cannot leave a loading lock. */
.entry-intro { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; pointer-events: none; background: rgba(239,242,233,.83); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: entry-dismiss 1.25s cubic-bezier(.16,1,.3,1) both; }
.entry-brand { display: flex; flex-direction: column; gap: 8px; text-align: center; padding: 20px; }
.entry-name { display: block; font-size: clamp(38px,8vw,110px); font-weight: 750; line-height: 1.2; letter-spacing: -.06em; animation: entry-name .65s cubic-bezier(.16,1,.3,1) both; }
.entry-sub { color: #4b5542; font-size: clamp(10px,1.4vw,14px); letter-spacing: .08em; animation: entry-name .7s .1s cubic-bezier(.16,1,.3,1) both; }
.entry-rule { position: absolute; bottom: 22%; width: min(240px,60vw); height: 2px; background: #697940; transform-origin: left; animation: entry-rule .8s cubic-bezier(.16,1,.3,1) both; }
[data-enter] { animation: hero-enter .8s cubic-bezier(.16,1,.3,1) both; }
[data-enter="0"] { animation-delay: .26s; }
[data-enter="1"] { animation-delay: .38s; }
[data-enter="2"] { animation-delay: .50s; }
[data-enter="3"] { animation-delay: .58s; }
[data-enter="4"] { animation-delay: .65s; }
[data-enter="5"] { animation-delay: .75s; }
@keyframes entry-dismiss { 0%,32% { opacity: 1; visibility: visible; } 99% { opacity: 0; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes entry-name { from { opacity: 0; transform: translate3d(0,26px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes entry-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-enter { from { opacity: 0; transform: translate3d(0,24px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
/* Candidates are visible by default; motion.js enables only observed, unseen items. */
[data-reveal].reveal-ready { transition: opacity .7s cubic-bezier(.16,1,.3,1) var(--reveal-delay,0ms), transform .7s cubic-bezier(.16,1,.3,1) var(--reveal-delay,0ms), border-color .2s; }
[data-reveal].reveal-ready.reveal-pending { opacity: 0; transform: translate3d(0,24px,0); }
[data-reveal].reveal-ready.is-revealed { opacity: 1; transform: none; }
.work-card.is-revealed:hover { transform: translateY(-3px); }
[data-reveal].reveal-pending:focus-within { opacity: 1; transform: none; transition: none; }
.motion-disabled .entry-intro { display: none; }
.motion-disabled { scroll-behavior: auto; }
.motion-disabled [data-enter], .motion-disabled [data-reveal] { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
.motion-disabled .glass-blob { animation: none; }
.entry-complete .entry-intro { display: none; }
.entry-complete [data-enter] { animation: none; opacity: 1; transform: none; }
/* Viewport width drives this layout, including resized desktop windows. */
@media (max-width: 767px) {
  :root { --gutter: clamp(12px, 3vw, 20px); --section: 48px; }
  html { scroll-padding-top: 72px; }
  .nav-wrap { min-height: 64px; gap: 12px; padding-block: 10px; }
  .hero { padding-top: 28px; padding-bottom: 12px; }
  .hero h1 { margin-top: 20px; font-size: clamp(36px, 9.2vw, 60px); }
  .hero-desc { margin-top: 20px; font-size: 16px; line-height: 1.75; }
  .hero-desc .en-copy { font-size: 13px; }
  .hero-disciplines { margin-top: 12px; }
  .actions { margin-top: 20px; gap: 8px; }
  .actions .button { padding-inline: 16px; gap: 16px; }
  .hero-scene-space { height: clamp(240px, 64vw, 340px); }
  .hero-foot { gap: 12px; padding-top: 20px; margin-top: 16px; }
  .hero-stats { gap: 28px; }
  .stat-num { font-size: 24px; }
  .hero-location { font-size: 11px; }
  .hero-utility-row { padding-top: 4px; }
  .visual-controls { width: 100%; justify-content: flex-start; }
  .object-controls { flex: 1 1 100%; justify-content: flex-start; }
  .global-controls { border-inline-start: 0; border-top: 1px solid #77816c26; padding: 4px 0 0; flex: 1 1 100%; justify-content: flex-end; }
  #works { padding-top: 24px; }
  #works .section-header { align-items: center; flex-wrap: nowrap; gap: 8px; margin-bottom: 14px; }
  #works .section-heading { font-size: 28px; }
  #works .section-aside { font-size: 11px; white-space: nowrap; }
  .work-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding-block: 6px; }
  .filter-button { padding: 8px 2px; min-width: 0; min-height: 44px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
  .filter-status { font-size: 12px; line-height: 1.5; margin-top: 6px; }
  .works-zone { margin-top: 18px; }
  .zone-heading { gap: 8px; margin-bottom: 10px; }
  .zone-heading h3 { font-size: 16px; }
  .zone-count { font-size: 11px; }
  .work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .work-card { border-radius: 6px; }
  .work-media { height: clamp(88px, 27vw, 156px); aspect-ratio: auto; padding: 6px; border-radius: 5px 5px 0 0; }
  .work-cover { padding: 6px; object-fit: contain; }
  .work-caption { padding: 8px; }
  .work-title { font-size: 16px; line-height: 1.4; margin-bottom: 4px; }
  .work-category { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .work-link-hint { display: none; }
  .work-media .image-fallback { font-size: 12px; padding: 4px; line-height: 1.5; }
  /* Keep duplicate labels/translations available to assistive tech and desktop. */
  #works .section-kicker, #works .section-heading .english, .zone-heading h3 small,
  .filter-translation, .work-meta, .work-category small {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .cap-item { padding: 20px; }
  .cap-grid { gap: 12px; margin-top: 24px; }
  .cap-skill-bars { gap: 28px; margin-top: 32px; padding-top: 28px; }
  .about-grid { gap: 28px; }
  .about-facts > div { flex-wrap: wrap; gap: 4px 16px; }
  .contact-inner { gap: 28px; }
  .contact-card { padding: 20px; }
  .contact-card .button { max-width: 100%; gap: 12px; padding-inline: 14px; }
  .glass-image-base { filter: blur(10px) saturate(.95) brightness(1.08); }
  .glass-frosted-base { -webkit-backdrop-filter: blur(7px) saturate(1.08); backdrop-filter: blur(7px) saturate(1.08); }
  .glass-blob { filter: blur(16px); }
  .blob-3 { display: none; }
  .hero-grid { gap: 4px; }
  .nav-enhanced .site-header { position: sticky; top: 0; }
  .nav-enhanced .site-nav:not([data-open="true"]) { display: none; }
  .nav-enhanced .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 8px; }
  .nav-enhanced .nav-links a { width: 100%; }
}
/* A short viewport needs shallower thumbnails, not smaller/clipped project titles. */
@media (max-width: 767px) and (max-height: 700px) {
  #works { padding-top: 16px; }
  #works .section-heading { font-size: 24px; }
  #works .section-header { margin-bottom: 10px; }
  .work-filters { padding-block: 4px; }
  .works-zone { margin-top: 12px; }
  .zone-heading { margin-bottom: 8px; }
  .work-media { height: clamp(64px, 20vw, 112px); }
  .filter-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}
@media (min-width: 768px) {
  .site-header { position: sticky; top: 0; }
  .nav-wrap { flex-wrap: nowrap; }
  .site-nav { width: auto; }
  #menu-toggle { display: none !important; }
  .nav-links { gap: 24px; flex-wrap: nowrap; }
  .nav-links small { display: none; }
  .hero-grid { grid-template-columns: 1.08fr 1fr; gap: 36px; }
  .hero h1 { font-size: clamp(48px, 6.4vw, 94px); }
  .hero-scene-space { height: clamp(440px,52vw,620px); }
  #art-surface { inset: -24px -2vw -24px -1vw; }
  .work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .manifesto-values { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cap-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about-grid { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 48px; }
  .about-facts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
  .about-facts > div { display: block; }
  .fact-value { text-align: left; margin-top: 8px; }
  .contact-inner { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: 48px; }
}
@media (min-width: 1024px) {
  .nav-links small { display: inline; }
  .hero-grid { gap: 64px; }
  .hero-desc { max-width: 32em; }
  .work-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .manifesto-grid { grid-template-columns: minmax(0,1fr) minmax(0,2.15fr); gap: 64px; }
  .manifesto-footer { grid-template-columns: minmax(0,3fr) minmax(0,1fr); gap: 48px; align-items: end; }
  .cap-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cap-skill-bars { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 72px; }
  .about-grid { gap: 80px; }
  .contact-inner { gap: 80px; }
}
@media (hover: none) { .work-card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .entry-intro { display: none; }
  [data-enter], [data-reveal].reveal-ready.reveal-pending { opacity: 1; transform: none; }
  .work-card:hover, .work-card.is-revealed:hover { transform: none; }
}
@media (forced-colors: active) {
  .button, .filter-button, .cap-item, .work-card, .contact-card, .visual-summary, .visual-controls { border: 1px solid ButtonText; }
  .filter-button[aria-pressed="true"] { outline: 2px solid Highlight; }
  .hero h1 em, .contact-headline .yellow { color: CanvasText; }
}
@media print {
  .background-system, .entry-intro, .hero-effects, .hero-scene-space, .hero-utility-row { display: none !important; }
  [data-enter], [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .site-header { position: static; }
  .visual-controls, .work-filters, .menu-toggle, .back-top { display: none !important; }
  .dark-section { --light-text: #171916; --light-muted: #454545; background: white; color: black; }
  .contact-headline .yellow { color: #171916; }
  .works-zone[hidden] { display: block !important; }
  .section { padding-block: 32px; }
  .work-card, .cap-item { break-inside: avoid; }
}
