/* Hallmark · macrostructure: Index-First · tone: atmospheric · theme: studied-DNA (source: image) · studied: yes · anchor hue: amber · nav: N2 Floating chip · footer: Ft2 Inline · pre-emit critique: P5 H5 E5 S5 R5 V5 */
/* Hallmark · component: natural-scene-motion · genre: atmospheric · theme: existing-project
 * pre-emit critique: P5 H5 E4 S5 R5 V5
 * states: active · crossfade · paused · reduced-motion · hidden · dialog · low-power · fallback
 */
@font-face {
  font-family: "Pacifico Local";
  font-display: swap;
  src: url("assets/fonts/Pacifico-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Unidream LED";
  font-display: swap;
  src: url("assets/fonts/UnidreamLED.ttf") format("truetype");
}

:root {
  --white: var(--color-ink);
  --muted: var(--color-muted);
  --glass: rgba(0, 0, 0, .25);
  --glass-hover: rgba(0, 0, 0, .4);
  --line: rgba(255, 255, 255, .18);
  --accent: var(--color-accent);
  --cursor-blue: #2563eb;
  --cursor-edge: rgba(255, 255, 255, .72);
  --shadow: 0 14px 40px rgba(0, 0, 0, .16);
  --sans: var(--font-body);
  --mono: var(--font-mono);
  --hand: "Pacifico Local", "Segoe Script", cursive;
  --clock: "Unidream LED", var(--mono);
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: clip; color-scheme: dark; }
body { margin: 0; min-width: 320px; height: 100vh; height: 100dvh; overflow: clip; color: var(--white); background: #333; font-family: var(--sans); line-height: 1.6; letter-spacing: 0; }
body.dialog-open { overflow: clip; }
button, a { color: inherit; font: inherit; }
button { border: 0; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; z-index: 1100; left: 110px; top: 12px; padding: 9px 13px; color: #111; background: #fff; transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cursor, .cursor-follower { --cursor-x: -40px; --cursor-y: -40px; position: fixed; z-index: 9999; left: 0; top: 0; display: none; border-radius: 50%; opacity: 0; pointer-events: none; transform: translate3d(var(--cursor-x), var(--cursor-y), 0); will-change: transform; transition: opacity .14s ease, border-color .16s ease, box-shadow .16s ease; }
.cursor { --cursor-scale: 1; width: 20px; height: 20px; border: 2px solid var(--cursor-blue); box-shadow: 0 0 0 1px var(--cursor-edge), 0 0 12px rgba(37, 99, 235, .28); transform: translate3d(var(--cursor-x), var(--cursor-y), 0) scale(var(--cursor-scale)); }
.cursor-follower { z-index: 9998; width: 8px; height: 8px; background: var(--cursor-blue); box-shadow: 0 0 8px rgba(37, 99, 235, .45); }
.cursor.is-visible, .cursor-follower.is-visible { opacity: 1; }
.cursor.is-hovering { --cursor-scale: 1.5; border-color: #fff; box-shadow: 0 0 0 2px var(--cursor-blue), 0 0 16px rgba(37, 99, 235, .46); }
.cursor.is-pressed { --cursor-scale: .82; }

@media (any-hover: hover) and (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor, .cursor-follower { display: block; }
}

.page-background { --ambient-rgb: 255, 190, 132; --ambient-accent-rgb: 255, 239, 184; --ambient-haze-opacity: .12; --ambient-glint-opacity: .1; --ambient-flow-opacity: .06; position: fixed; z-index: 0; inset: 0; overflow: hidden; contain: paint; opacity: 1; pointer-events: none; background-color: #333; filter: blur(20px) brightness(.3); transform: scale(1.6); transition: filter .8s cubic-bezier(.25,.46,.45,.94) .15s, transform .8s cubic-bezier(.25,.46,.45,.94) .15s; }
.background-layer { position: absolute; z-index: 0; inset: -4%; opacity: 0; background-image: url("assets/backgrounds/imsyy/background1.jpg"); background-position: center; background-size: cover; background-repeat: no-repeat; transform: translate3d(0, 0, 0) scale(1.04); transform-origin: center; backface-visibility: hidden; will-change: transform, opacity; transition: opacity 1.1s ease; animation-name: background-drift; animation-duration: 30s; animation-timing-function: cubic-bezier(.45, 0, .55, 1); animation-iteration-count: infinite; animation-direction: alternate; animation-play-state: paused; }
.localized-motion-canvas { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity .55s cubic-bezier(.22, 1, .36, 1); }
.background-layer.is-active .localized-motion-canvas.is-active { opacity: .94; }
.page-background.is-crossfading .background-layer .localized-motion-canvas { opacity: .36; }
.scene-effects-canvas { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity .42s cubic-bezier(.16, 1, .3, 1); }
.background-layer.is-active .scene-effects-canvas.is-active { opacity: .82; }
.page-background.is-crossfading .background-layer .scene-effects-canvas { opacity: .48; }
.background-layer.is-active { opacity: 1; }
body.is-ready .background-layer.is-active { animation-play-state: running; }
.page-background.is-paused .background-layer { animation-play-state: paused !important; }
body.background-motion-reduced .background-layer { animation: none !important; transition: none !important; transform: translate3d(0, 0, 0) scale(1.04) !important; }
body.background-motion-reduced .localized-motion-canvas, body.background-motion-reduced .scene-effects-canvas { display: none; }
.background-atmosphere { position: absolute; z-index: 1; inset: -10%; overflow: hidden; contain: paint; pointer-events: none; opacity: 1; transform: translate3d(0, 0, 0); transition: opacity .55s ease; }
.page-background.is-crossfading .background-atmosphere { opacity: .42; }
.ambient-haze, .ambient-glint, .ambient-flow, .ambient-particles { position: absolute; inset: 0; pointer-events: none; }
.ambient-haze { inset: -12%; opacity: var(--ambient-haze-opacity); background: linear-gradient(108deg, transparent 4%, rgba(var(--ambient-rgb), .08) 28%, rgba(var(--ambient-accent-rgb), .24) 49%, transparent 72%), linear-gradient(82deg, transparent 20%, rgba(var(--ambient-rgb), .12) 50%, transparent 78%); background-size: 145% 100%, 175% 100%; mix-blend-mode: screen; transform: translate3d(-4%, 0, 0) scale(1.04); animation: ambient-haze-drift 19s ease-in-out infinite alternate paused; }
.ambient-glint { inset: -18% -32%; opacity: var(--ambient-glint-opacity); background: linear-gradient(112deg, transparent 34%, rgba(var(--ambient-accent-rgb), .32) 47%, rgba(255, 255, 255, .2) 50%, transparent 63%); mix-blend-mode: screen; transform: translate3d(-24%, 0, 0); animation: ambient-light-sweep 14s ease-in-out infinite paused; }
.ambient-flow { top: 48%; bottom: -18%; opacity: var(--ambient-flow-opacity); background: repeating-linear-gradient(172deg, transparent 0 17px, rgba(var(--ambient-accent-rgb), .18) 19px, transparent 22px 40px); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%); mix-blend-mode: screen; transform: translate3d(-3%, 0, 0) skewX(-4deg); transform-origin: center bottom; animation: ambient-flow-shift 9s ease-in-out infinite alternate paused; }
.ambient-particles { overflow: hidden; }
.ambient-particle { --particle-size: 8px; --particle-opacity: .48; position: absolute; left: var(--particle-x); top: -12%; width: var(--particle-size); height: 4px; opacity: 0; background: rgba(var(--ambient-accent-rgb), .85); box-shadow: 0 0 10px rgba(var(--ambient-rgb), .24); animation-duration: var(--particle-duration); animation-delay: var(--particle-delay); animation-timing-function: linear; animation-iteration-count: infinite; animation-play-state: paused; will-change: transform, opacity; }
.page-background[data-motion-profile="sunset"] .ambient-particle, .page-background[data-motion-profile="lake"] .ambient-particle { top: var(--particle-y); width: calc(var(--particle-size) + 12px); height: 1px; border-radius: 0; animation-name: ambient-glint-pulse; animation-timing-function: ease-in-out; }
.page-background[data-motion-profile="mist"] .ambient-particle { top: var(--particle-y); width: calc(var(--particle-size) + 20px); height: 1px; border-radius: 0; animation-name: ambient-wind-drift; }
.page-background[data-motion-profile="wave"] .ambient-particle { top: auto; bottom: 2%; width: calc(var(--particle-size) + 8px); height: 2px; border-radius: 0; animation-name: ambient-spray-rise; }
.page-background[data-motion-profile="snow"] .ambient-particle { width: calc(var(--particle-size) + 7px); height: 1px; border-radius: 0; animation-name: ambient-snow-fall; }
.page-background[data-motion-profile="dust"] .ambient-particle, .page-background[data-motion-profile="leaves"] .ambient-particle { border-radius: 70% 0 70% 0; animation-name: ambient-leaf-fall; }
.page-background[data-motion-profile="cosmic"] .ambient-particle { width: calc(var(--particle-size) + 24px); height: 1px; border-radius: 0; animation-name: ambient-meteor-drift; }
body.is-ready:not(.background-motion-reduced):not(.dialog-open) .ambient-haze, body.is-ready:not(.background-motion-reduced):not(.dialog-open) .ambient-glint, body.is-ready:not(.background-motion-reduced):not(.dialog-open) .ambient-flow, body.is-ready:not(.background-motion-reduced):not(.dialog-open) .ambient-particle { animation-play-state: running; }
.page-background.is-paused .background-atmosphere *, body.dialog-open .background-layer { animation-play-state: paused !important; }
body.background-motion-reduced .background-atmosphere { display: none; }
.page-background::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 0, rgba(0, 0, 0, .5) 100%), radial-gradient(circle, transparent 33%, rgba(0, 0, 0, .3) 166%); }
body.is-ready .page-background { filter: blur(0) brightness(1); transform: scale(1); }

.glass-card { border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.project-home { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; opacity: 0; transform: scale(1.2); transition: opacity .65s cubic-bezier(.25,.46,.45,.94) .5s, transform .65s cubic-bezier(.25,.46,.45,.94) .5s; }
body.is-ready .project-home { opacity: 1; transform: scale(1); }
.home-content { width: min(calc(100% - 48px), 1140px); height: 100vh; height: 100dvh; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 580px); align-items: center; justify-content: center; gap: 72px; }

.identity-view { width: 100%; min-width: 0; height: 430px; display: flex; align-items: center; }
.identity-message { width: 100%; }
.brand-row { width: 100%; height: 140px; display: flex; align-items: center; gap: 20px; }
.brand-mark { position: relative; flex: 0 0 120px; height: 120px; overflow: hidden; border: 5px solid rgba(255, 255, 255, .95); border-radius: 50%; background: #208fe9; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .16), 0 0 0 2px rgba(255,255,255,.18), 0 8px 28px rgba(0, 0, 0, .25); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.brand-row h1 { min-width: 0; margin: 0; display: flex; align-items: baseline; overflow: hidden; color: #fff; line-height: 1; white-space: nowrap; text-overflow: ellipsis; }
.brand-row h1 span { font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif; font-size: 48px; font-weight: 800; }
.brand-row h1 small { margin-left: 5px; font-size: 20px; }

.intro-card { position: relative; width: 100%; height: 120px; margin-top: 38px; padding: 16px; display: flex; align-items: center; overflow: hidden; color: #15191c; background: rgba(246, 248, 249, .58); }
.intro-card > div { min-width: 0; flex: 1; margin: 0 28px 0 30px; }
.intro-card strong { font-family: var(--hand); font-size: 14px; }
.intro-card p { margin: 8px 0 0; color: rgba(21, 25, 28, .88); font-size: 14px; line-height: 1.7; }
.intro-card cite { margin-top: 3px; display: block; color: rgba(21, 25, 28, .72); font-size: 12px; font-style: normal; text-align: right; }
.quote-mark { position: absolute; left: 14px; top: 5px; font-size: 34px; font-weight: 900; }
.quote-end { left: auto; right: 14px; top: auto; bottom: -5px; }
.contact-links { height: 48px; margin-top: 14px; padding-left: 2px; display: flex; align-items: center; gap: 6px; }
.contact-links a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: transparent; font-size: 22px; font-weight: 700; transition: background .24s ease, transform .24s ease; }
.contact-links svg { width: 22px; height: 22px; display: block; fill: currentColor; }
.contact-links a:hover, .contact-links a:focus-visible { background: rgba(0, 0, 0, .3); transform: translateY(-2px); }
.contact-links a:nth-child(3) { font-size: 17px; }

.identity-side { width: 100%; min-width: 0; height: 470px; }
.projects-view { display: none; width: 100%; height: 481px; }
.projects-view:focus { outline: none; }
.mobile-project-brand { display: none; }
.projects-top { height: 165px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.method-card, .archive-card { position: relative; height: 165px; padding: 20px; color: #15191c; background: rgba(246, 248, 249, .58); }
.method-card { display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.method-card p { margin: 0 4px; color: rgba(21, 25, 28, .88); font-size: 14px; line-height: 1.9; }
.method-card strong { margin-top: 16px; align-self: flex-end; font-size: 13px; }
.archive-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.archive-card time { width: 100%; overflow: hidden; color: rgba(21, 25, 28, .88); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.archive-card .project-clock { margin: 8px 0 5px; font: 400 50px/1 var(--clock); letter-spacing: 2px; }
.archive-card span { color: rgba(21, 25, 28, .86); font-size: 13px; }
.archive-card .project-count { font: inherit; }
.site-directory { margin-top: 24px; }
.site-directory h2 { height: 28px; margin: 0 0 14px; display: flex; align-items: center; gap: 9px; color: #fff; font-size: 17px; line-height: 1; }
.site-directory h2 span { font-size: 24px; }
.site-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 100px; gap: 16px 18px; }
.site-link-card { min-width: 0; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #15191c; background: rgba(246, 248, 249, .62); cursor: pointer; line-height: 1.3; transition: transform .24s ease, background .24s ease, border-color .24s ease, box-shadow .24s ease; }
.site-link-card:hover, .site-link-card:focus-visible { border-color: rgba(255, 255, 255, .72); background: rgba(255, 255, 255, .8); box-shadow: 0 18px 38px rgba(0, 0, 0, .22); transform: translateY(-3px); }
.site-link-card:active { transform: translateY(0) scale(.98); }
.site-link-card strong { min-width: 0; font-size: 15px; font-weight: 650; white-space: nowrap; }
.site-link-icon { flex: 0 0 25px; width: 25px; display: grid; place-items: center; font-size: 25px; line-height: 1; }
.site-link-icon-bilibili { font-size: 17px; font-weight: 900; }
.site-link-google { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.project-list-header { min-height: 54px; margin: 0 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.projects-view h2 { min-width: 0; height: auto; margin: 0; display: flex; align-items: center; gap: 10px; font-size: 17px; }
.projects-view h2 span { font-size: 25px; }
.project-carousel-controls { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.project-carousel-controls button { width: 48px; height: 48px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .36); border-radius: 50%; color: #fff; background: rgba(6, 16, 20, .42); box-shadow: 0 10px 24px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .07); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); cursor: pointer; font: 700 22px/1 var(--sans); transition: transform .24s ease, border-color .24s ease, background .24s ease, opacity .24s ease; }
.project-carousel-controls button:hover:not(:disabled), .project-carousel-controls button:focus-visible { border-color: rgba(255, 255, 255, .82); background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.project-carousel-controls button:active:not(:disabled) { transform: translateY(0) scale(.94); }
.project-carousel-controls button:disabled { opacity: .3; cursor: default; }
.project-overview-toggle { font-size: 25px !important; }
.project-overview-toggle[aria-pressed="true"] { border-color: rgba(255, 255, 255, .86); background: rgba(37, 99, 235, .46); box-shadow: 0 12px 30px rgba(37, 99, 235, .3), inset 0 0 0 1px rgba(255, 255, 255, .16); }
.project-pages { position: relative; width: 100%; height: clamp(470px, 62vh, 640px); padding: 8px 0 18px; overflow: hidden; perspective: 1250px; perspective-origin: 50% 46%; touch-action: pan-y; }
.project-pages:focus { outline: none; }
.project-pages:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; }
.project-pages::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 51%; width: min(78vw, 920px); height: min(58vh, 460px); border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 255, 255, .14), rgba(54, 91, 126, .07) 38%, transparent 72%); filter: blur(18px); transform: translate(-50%, -50%); pointer-events: none; }
.project-pages-track { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.project-link { --card-accent-start: #30e7ff; --card-accent-end: #ff477e; --project-x: 0px; --project-y: 0px; --project-z: 0px; --project-rotation: 0deg; --project-scale: 1; --project-opacity: 1; --project-blur: 0px; position: absolute; left: 50%; top: 50%; width: min(34vw, 440px); height: clamp(360px, 52vh, 520px); min-width: 0; padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .24); border-radius: 8px; color: #fff; background: #10171b; box-shadow: 0 24px 60px rgba(0, 0, 0, .36), 0 0 0 1px rgba(255, 255, 255, .04); cursor: pointer; text-align: left; isolation: isolate; opacity: var(--project-opacity); filter: blur(var(--project-blur)); transform: translate(-50%, -50%) translate3d(var(--project-x), var(--project-y), var(--project-z)) rotateY(var(--project-rotation)) scale(var(--project-scale)); transform-style: preserve-3d; will-change: transform, opacity, filter; transition: transform .7s cubic-bezier(.22, 1, .36, 1), opacity .55s ease, filter .55s ease, border-color .3s ease, box-shadow .35s ease; }
.project-link::after { content: ""; position: absolute; z-index: 5; inset: 0; border: 1px solid transparent; border-radius: inherit; pointer-events: none; transition: border-color .3s ease, box-shadow .3s ease; }
.project-link:hover, .project-link:focus-visible { border-color: color-mix(in srgb, var(--card-accent-start) 55%, white); box-shadow: 0 30px 72px rgba(0, 0, 0, .46); transform: translate(-50%, calc(-50% - 5px)) translate3d(var(--project-x), var(--project-y), var(--project-z)) rotateY(var(--project-rotation)) scale(var(--project-scale)); }
.project-link:hover::after, .project-link:focus-visible::after { border-color: color-mix(in srgb, var(--card-accent-end) 34%, transparent); box-shadow: inset 0 0 28px color-mix(in srgb, var(--card-accent-start) 12%, transparent); }
.project-link[data-position="back-left"], .project-link[data-position="back-right"] { pointer-events: none; }
.project-link[data-position="overview"] { pointer-events: auto; }
.project-link[data-position="overview-hidden"] { pointer-events: none; visibility: hidden; }
.project-overview-active .project-link[data-position="overview-featured"] { width: min(54vw, 720px); height: min(46vh, 440px); pointer-events: auto; }
.project-overview-active .project-link[data-position="overview-featured"] .project-card-copy { padding: 24px 72px 28px 28px; }
.project-overview-active .project-link[data-position="overview-featured"] .project-card-copy > strong { min-height: 0; font-size: clamp(24px, 2.5vw, 36px); }
.project-overview-active .project-link[data-position="overview-featured"] .project-card-summary { max-width: 680px; min-height: 0; font-size: 14px; }
.project-overview-active .project-pages { height: clamp(500px, 68vh, 690px); perspective-origin: 50% 50%; }
.project-overview-active .project-link { width: clamp(190px, 22vw, 300px); height: clamp(260px, 38vh, 370px); }
.project-overview-active .project-card-copy { padding: 16px 18px 18px; }
.project-overview-active .project-card-copy > strong { font-size: clamp(15px, 1.4vw, 19px); }
.project-overview-active .project-card-summary { font-size: 10px; }
.project-card-media { position: absolute; z-index: 0; inset: 0; overflow: hidden; background: #11191d; }
.project-card-backdrop { position: absolute; z-index: 0; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(18px) saturate(.9) brightness(.55); transform: scale(1.08); transition: transform .8s cubic-bezier(.22, 1, .36, 1), filter .35s ease; }
.project-card-image { position: absolute; z-index: 1; left: 0; right: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top center; filter: saturate(.92) brightness(.9); transform: scale(1.002); transition: transform .7s cubic-bezier(.22, 1, .36, 1), filter .35s ease; }
.project-card-media .project-card-image { inset: 0; top: 0; height: 100%; object-fit: contain; object-position: center; }
.project-link.project-card-cover .project-card-image { object-fit: cover; object-position: center; }
.project-link[data-project-id="1688-competitor-shop-scraper"] .project-card-image { object-position: 66% center; }
.project-card-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(3, 7, 9, .03) 18%, rgba(3, 7, 9, .24) 48%, rgba(3, 7, 9, .94) 100%); pointer-events: none; }
.project-card-shade::before { content: ""; position: absolute; inset: auto 0 0; height: 4px; opacity: .86; background: linear-gradient(90deg, var(--card-accent-start), var(--card-accent-end)); }
.project-card-copy { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; min-width: 0; padding: 22px 54px 24px 18px; }
.project-card-kicker { display: flex; align-items: center; gap: 10px; }
.project-card-kicker b { display: block; color: var(--card-accent-start); font: 800 22px/1 var(--mono); text-shadow: 0 2px 12px rgba(0, 0, 0, .48); }
.project-card-kicker small { min-width: 0; display: block; overflow: hidden; color: rgba(255, 255, 255, .76); font: 8px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.project-card-copy > strong { min-height: 52px; margin-top: 10px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.2; text-wrap: balance; }
.project-card-summary { min-height: 35px; margin-top: 9px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: rgba(255, 255, 255, .67); font-size: 11px; line-height: 1.6; }
.project-card-open { position: absolute; z-index: 4; left: 50%; top: calc(50% + 20px); width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .75); border-radius: 50%; color: #13171a; background: rgba(255, 255, 255, .94); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); font-size: 23px; line-height: 1; opacity: 0; pointer-events: none; transform: translate(-50%, -42%) scale(.74); transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .24s ease; }
.project-link:hover .project-card-backdrop, .project-link:focus-visible .project-card-backdrop { filter: blur(15px) saturate(1.04) brightness(.62); transform: scale(1.13); }
.project-link:hover .project-card-image, .project-link:focus-visible .project-card-image { filter: saturate(1.04) brightness(.94); transform: scale(1.025); }
.project-link:hover .project-card-open, .project-link:focus-visible .project-card-open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.project-hover-preview {
  position: fixed;
  z-index: 100;
  width: min(420px, calc(100vw - 32px));
  height: clamp(240px, 32vh, 320px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 10px;
  color: #fff;
  background: #10171b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 32px color-mix(in srgb, var(--preview-accent-start) 16%, transparent);
  pointer-events: none;
  animation: project-preview-reveal .18s ease both;
}
.project-hover-preview[hidden] { display: none; }
.project-hover-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--preview-accent-start), var(--preview-accent-end));
}
.project-hover-preview__image { width: 100%; height: 100%; object-fit: cover; }
.project-hover-preview figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: 24px;
  background: linear-gradient(180deg, transparent 28%, rgba(3, 7, 9, .45) 60%, rgba(3, 7, 9, .94));
}
.project-hover-preview__sequence { color: var(--preview-accent-start); font: 800 22px/1 var(--mono); text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.project-hover-preview__title { font-size: clamp(21px, 1.7vw, 27px); line-height: 1.35; overflow-wrap: anywhere; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
@keyframes project-preview-reveal {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 720px) {
  .project-hover-preview { display: none; }
}
.project-pagination { min-height: 16px; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.project-pagination button, .project-pagination span { width: 22px; height: 4px; padding: 0; border-radius: 4px; background: rgba(255, 255, 255, .25); transition: width .25s ease, background .25s ease, opacity .25s ease; }
.project-pagination button { cursor: pointer; }
.project-pagination button:hover { background: rgba(255, 255, 255, .58); }
.project-pagination button.active { width: 34px; background: linear-gradient(90deg, #30e7ff, #ff477e); }
.project-control-bar { position: relative; z-index: 20; width: max-content; max-width: min(100%, 420px); margin: 12px auto 0; padding: 8px 10px 8px 14px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: var(--color-ink); background: rgba(15, 24, 28, .78); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.project-control-bar .project-carousel-controls { gap: 6px; }
.project-control-bar .project-carousel-controls button { width: 40px; height: 40px; border-color: rgba(255, 255, 255, .24); box-shadow: none; background: rgba(255, 255, 255, .06); font-size: 18px; }
.project-control-bar .project-carousel-controls button:hover:not(:disabled), .project-control-bar .project-carousel-controls button:focus-visible { transform: translateY(-1px); background: rgba(255, 255, 255, .16); }
.project-control-bar .project-carousel-controls button:active:not(:disabled) { transform: translateY(0) scale(.94); }
.project-control-bar .project-overview-toggle { font-size: 21px !important; }
.project-control-bar .project-autoplay-toggle[aria-pressed="true"] { color: var(--color-focus); border-color: var(--color-focus); background: rgba(216, 165, 88, .14); }

.page-footer { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; height: 46px; display: flex; align-items: center; justify-content: center; color: rgba(21, 25, 28, .9); background: rgba(246, 248, 249, .68); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12px; }
.mobile-switch { display: none; }
.project-view-switch { position: fixed; z-index: 45; right: max(24px, env(safe-area-inset-right)); top: calc(50% + 52px); width: 56px; height: 56px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; color: #fff; background: rgba(7, 23, 28, .34); box-shadow: 0 12px 30px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; transform: translateY(-50%); transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
.project-view-switch-icon { width: 30px; height: 30px; display: grid; place-items: center; font-size: 28px; line-height: 1; }
.project-view-switch-icon::before { content: "→"; display: block; }
.project-view-switch:hover { background: rgba(37, 99, 235, .52); transform: translateY(-50%) scale(1.06); box-shadow: 0 16px 38px rgba(0, 0, 0, .3); }
body.project-list-active .project-view-switch { right: max(28px, env(safe-area-inset-right)); top: max(24px, env(safe-area-inset-top)); transform: none; }
body.project-list-active .project-view-switch:hover { transform: scale(1.06); }
body.project-list-active .project-view-switch-icon::before { content: "↩"; font-size: 26px; }

.loading-screen { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; color: #fff; pointer-events: auto; visibility: visible; transition: visibility 0s linear 1.3s; }
.loading-screen::before, .loading-screen::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; width: 50.1%; background: #333; transition: transform .62s cubic-bezier(.77,0,.18,1) .48s; }
.loading-screen::before { left: 0; }
.loading-screen::after { right: 0; }
.loader-content { display: grid; justify-items: center; gap: 10px; transition: opacity .28s ease .28s; }
.loader-content strong { font-size: 24px; }
.loader-content small { color: rgba(255, 255, 255, .58); font-size: 14px; }
.loading-rings { position: relative; width: 150px; height: 150px; margin-bottom: 8px; }
.loading-rings i { position: absolute; inset: 15px; border: 3px solid transparent; border-top-color: #fff; border-radius: 50%; animation: ring-spin 1.15s linear infinite; }
.loading-rings i:nth-child(2) { inset: 27px; border-top-color: rgba(255, 255, 255, .65); animation-direction: reverse; animation-duration: 1.5s; }
.loading-rings i:nth-child(3) { inset: 39px; border-top-color: rgba(255, 255, 255, .38); animation-duration: .9s; }
body.is-ready .loading-screen { pointer-events: none; visibility: hidden; }
body.is-ready .loading-screen::before { transform: translateX(-101%); }
body.is-ready .loading-screen::after { transform: translateX(101%); }
body.is-ready .loader-content { opacity: 0; }

.project-dialog { width: min(1320px, calc(100% - 44px)); max-width: none; max-height: min(860px, calc(100dvh - 44px)); padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; color: #fff; background: rgba(9, 17, 19, .88); box-shadow: 0 30px 100px rgba(0, 0, 0, .62); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.project-dialog::backdrop { background: rgba(5, 10, 12, .78); backdrop-filter: blur(8px); }
.dialog-shell { position: relative; max-height: inherit; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); overflow: auto; }
.dialog-close, .dialog-nav { position: absolute; z-index: 5; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; color: #fff; background: rgba(10, 18, 20, .58); cursor: pointer; font-size: 24px; transition: background .2s ease, transform .2s ease; }
.dialog-close { right: 14px; top: 14px; font-size: 28px; }
.dialog-nav { top: 50%; transform: translateY(-50%); }
.dialog-nav:hover { background: rgba(255, 255, 255, .18); }
.dialog-prev { left: 14px; }
.dialog-next { right: 14px; }
.dialog-media { min-width: 0; min-height: 560px; padding: 54px 64px; display: grid; place-items: center; background: rgba(235, 237, 240, .95); }
.dialog-gallery { width: 100%; height: 100%; min-width: 0; display: grid; place-items: center; gap: 16px; }
.dialog-gallery img { width: 100%; height: 100%; min-width: 0; max-height: 650px; object-fit: contain; }
.dialog-media.has-gallery { padding: 32px; }
.dialog-media.has-gallery .dialog-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; place-items: stretch; align-content: center; }
.dialog-media.has-gallery .dialog-gallery img { width: 100%; height: auto; aspect-ratio: 1920 / 919; max-height: none; padding: 6px; border: 1px solid rgba(10, 18, 20, .12); background: #fff; object-fit: contain; cursor: zoom-in; touch-action: manipulation; }
.dialog-media.has-gallery.gallery-stacked .dialog-gallery { grid-template-columns: minmax(0, 1fr); align-content: start; }
.dialog-media.has-gallery.gallery-stacked .dialog-gallery img { aspect-ratio: auto; max-height: 680px; }
.dialog-gallery img[role="button"]:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.project-image-zoom { width: min(96vw, 1800px); height: 94dvh; max-width: none; max-height: none; padding: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .28); border-radius: 6px; color: #fff; background: rgba(4, 10, 13, .96); box-shadow: 0 30px 110px rgba(0, 0, 0, .72); }
.project-image-zoom[open] { display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; }
.project-image-zoom::backdrop { background: rgba(0, 0, 0, .9); backdrop-filter: blur(10px); }
.project-image-zoom figure { width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; display: grid; place-items: center; overflow: hidden; }
.project-image-zoom img { width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.project-image-zoom-close { position: absolute; z-index: 2; right: 18px; top: 18px; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .62); border-radius: 50%; color: #fff; background: rgba(8, 16, 20, .74); cursor: pointer; font-size: 28px; line-height: 1; }
.project-image-zoom-close:hover { background: rgba(255, 255, 255, .18); }
.project-image-zoom-close:active { transform: scale(.94); }
.project-image-zoom-nav { position: absolute; z-index: 2; top: 50%; width: 54px; height: 54px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .62); border-radius: 50%; color: #fff; background: rgba(8, 16, 20, .74); cursor: pointer; font-size: 26px; line-height: 1; transform: translateY(-50%); }
.project-image-zoom-nav:hover { background: rgba(255, 255, 255, .18); }
.project-image-zoom-nav:active { transform: translateY(-50%) scale(.94); }
.project-image-zoom-nav[hidden] { display: none; }
.project-image-zoom-prev { left: 22px; }
.project-image-zoom-next { right: 22px; }
.dialog-content { min-width: 0; padding: 78px 34px 36px; }
.dialog-kicker { display: flex; align-items: center; gap: 12px; color: var(--accent); font: 10px/1.3 var(--mono); }
.dialog-sequence { font-size: 22px; font-weight: 800; }
.dialog-content h2 { margin: 28px 0 18px; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; }
.dialog-summary { margin: 0; color: rgba(255, 255, 255, .74); font-size: 14px; line-height: 1.9; }
.dialog-scenario-title { margin: 24px 0 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.dialog-scenarios { margin: 16px 0 0; padding-left: 22px; color: rgba(255, 255, 255, .76); font-size: 13px; line-height: 1.75; }
.dialog-scenarios[hidden] { display: none; }
.dialog-scenarios li { padding-left: 5px; overflow-wrap: anywhere; }
.dialog-scenarios li + li { margin-top: 10px; }
.dialog-scenarios li::marker { color: var(--accent); font-family: var(--mono); font-weight: 800; }
.dialog-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.dialog-tags span { padding: 7px 9px; border: 1px solid var(--line); color: var(--muted); font: 9px/1 var(--mono); }
.dialog-engineering { margin-top: 30px; display: grid; gap: 26px; }
.dialog-engineering section { min-width: 0; }
.dialog-engineering section[hidden] { display: none; }
.dialog-engineering h3 { margin: 0 0 12px; color: #fff; font-size: 12px; line-height: 1.4; font-weight: 800; }
.dialog-tech-stack { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.dialog-tech-stack li { max-width: 100%; padding: 7px 9px; border: 1px solid rgba(199, 255, 56, .32); color: rgba(255, 255, 255, .82); background: rgba(199, 255, 56, .05); font: 10px/1.35 var(--mono); overflow-wrap: anywhere; }
.dialog-implementation { margin: 0; padding-left: 22px; color: rgba(255, 255, 255, .72); font-size: 13px; line-height: 1.8; }
.dialog-implementation li { padding-left: 5px; overflow-wrap: anywhere; }
.dialog-implementation li + li { margin-top: 9px; }
.dialog-implementation li::marker { color: var(--accent); font-family: var(--mono); font-weight: 800; }

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes background-drift {
  from { transform: translate3d(var(--background-from-x, -1%), var(--background-from-y, -.5%), 0) scale(1.04); }
  to { transform: translate3d(var(--background-to-x, 1%), var(--background-to-y, .5%), 0) scale(1.09); }
}
@keyframes ambient-haze-drift {
  from { transform: translate3d(-5%, 0, 0) scale(1.03); }
  to { transform: translate3d(5%, -1.2%, 0) scale(1.08); }
}
@keyframes ambient-light-sweep {
  0%, 18% { transform: translate3d(-25%, 0, 0); opacity: .18; }
  52% { opacity: 1; }
  82%, 100% { transform: translate3d(25%, 0, 0); opacity: .12; }
}
@keyframes ambient-flow-shift {
  from { transform: translate3d(-4%, 0, 0) skewX(-5deg) scaleX(1.02); }
  to { transform: translate3d(4%, -2%, 0) skewX(4deg) scaleX(1.08); }
}
@keyframes ambient-glint-pulse {
  0%, 100% { opacity: 0; transform: translate3d(-18px, 0, 0) scaleX(.4); }
  35%, 58% { opacity: var(--particle-opacity); transform: translate3d(12px, -2px, 0) scaleX(1.4); }
}
@keyframes ambient-wind-drift {
  0% { opacity: 0; transform: translate3d(-18vw, 0, 0) scaleX(.5); }
  18%, 70% { opacity: var(--particle-opacity); }
  100% { opacity: 0; transform: translate3d(118vw, var(--particle-drift), 0) scaleX(1.5); }
}
@keyframes ambient-spray-rise {
  0% { opacity: 0; transform: translate3d(0, 8vh, 0) rotate(-18deg); }
  18% { opacity: var(--particle-opacity); }
  100% { opacity: 0; transform: translate3d(var(--particle-drift), -52vh, 0) rotate(var(--particle-spin)); }
}
@keyframes ambient-snow-fall {
  0% { opacity: 0; transform: translate3d(-8vw, -14vh, 0) rotate(-24deg); }
  16%, 76% { opacity: var(--particle-opacity); }
  100% { opacity: 0; transform: translate3d(var(--particle-drift), 122vh, 0) rotate(34deg); }
}
@keyframes ambient-leaf-fall {
  0% { opacity: 0; transform: translate3d(0, -12vh, 0) rotate(0deg); }
  12%, 78% { opacity: var(--particle-opacity); }
  36% { transform: translate3d(0, 38vh, 0) rotate(150deg); }
  68% { transform: translate3d(var(--particle-drift), 78vh, 0) rotate(310deg); }
  100% { opacity: 0; transform: translate3d(calc(var(--particle-drift) + 4vw), 122vh, 0) rotate(var(--particle-spin)); }
}
@keyframes ambient-meteor-drift {
  0%, 55% { opacity: 0; transform: translate3d(-22vw, -18vh, 0) rotate(-28deg) scaleX(.4); }
  62% { opacity: var(--particle-opacity); }
  100% { opacity: 0; transform: translate3d(78vw, 82vh, 0) rotate(-28deg) scaleX(1.8); }
}

@media (max-width: 1280px) {
  .home-content { width: min(calc(100% - 48px), 1080px); grid-template-columns: minmax(0, 440px) minmax(0, 540px); gap: 56px; }
}

@media (min-width: 721px) and (max-width: 1160px) {
  .project-view-switch { top: 24px; transform: none; }
  .project-view-switch:hover { transform: scale(1.06); }
}

@media (max-width: 992px) {
  .home-content { width: min(calc(100% - 32px), 900px); grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: 24px; }
  .identity-view { height: 430px; }
  .identity-message { width: 100%; }
  .brand-row { height: 116px; gap: 14px; }
  .brand-mark { flex-basis: 96px; height: 96px; }
  .brand-row h1 span { font-size: 38px; }
  .brand-row h1 small { font-size: 15px; }
  .intro-card { width: 100%; height: 136px; margin-top: 42px; padding: 16px; }
  .intro-card > div { margin: 0 20px 0 26px; }
  .intro-card strong { font-size: 13px; }
  .intro-card p { font-size: 13px; line-height: 1.85; }
  .contact-links { width: 100%; margin-top: 14px; justify-content: flex-start; gap: 4px; }
  .contact-links a { width: 40px; }
  .identity-side { height: 444px; }
  .projects-top { height: 150px; gap: 14px; }
  .method-card, .archive-card { height: 150px; padding: 16px; }
  .method-card p { font-size: 12px; line-height: 1.8; }
  .archive-card time { font-size: 13px; }
  .archive-card .project-clock { font-size: 39px; }
  .site-directory { margin-top: 20px; }
  .site-directory h2 { margin-bottom: 12px; font-size: 15px; }
  .site-link-grid { grid-auto-rows: 92px; gap: 12px 14px; }
  .site-link-card { padding: 8px; gap: 7px; }
  .site-link-card strong { font-size: 13px; }
  .site-link-icon { flex-basis: 22px; width: 22px; font-size: 22px; }
  .site-link-icon-bilibili { font-size: 15px; }
  .project-card-copy { padding-right: 50px; padding-left: 16px; }
  .project-card-copy > strong { font-size: 18px; }
}

@media (max-width: 720px) {
  html, body { min-width: 0; }
  body { height: auto; min-height: 100dvh; overflow-x: clip; overflow-y: auto; }
  body.mobile-projects-active { height: 100dvh; overflow: clip; }
  .background-layer { animation-duration: 36s; }
  .ambient-particle:nth-child(n + 9) { display: none; }
  .ambient-glint { display: none; }
  .ambient-haze { animation-duration: 24s; }
  .project-home { min-height: 100dvh; }
  .home-content { width: min(calc(100% - 32px), 420px); height: auto; min-height: 100dvh; padding: 48px 0 128px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 30px; }
  .identity-view { width: 100%; height: auto; display: block; }
  .identity-message { width: 100%; transform: none; }
  .brand-row { width: 100%; height: 100px; gap: 14px; }
  .brand-mark { flex-basis: 92px; height: 92px; }
  .brand-row h1 span { font-size: 38px; }
  .brand-row h1 small { font-size: 14px; }
  .intro-card { width: 100%; height: 142px; margin-top: 28px; padding: 16px; }
  .intro-card > div { margin: 0 20px 0 26px; }
  .intro-card strong { font-size: 13px; }
  .intro-card p { font-size: 13px; line-height: 1.85; }
  .contact-links { margin-top: 12px; justify-content: center; gap: 6px; }
  .contact-links a { width: 40px; height: 40px; }

  .identity-view { transform: none; }
  .identity-side { display: block; width: 100%; height: auto; }
  .projects-top { height: 150px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .method-card, .archive-card { height: 150px; padding: 13px; }
  .method-card { display: flex; }
  .method-card p { margin: 0; font-size: 12px; }
  .method-card strong { margin-top: 10px; font-size: 11px; }
  .archive-card time { font-size: 11px; }
  .archive-card .project-clock { margin: 10px 0 6px; font-size: 31px; }
  .archive-card span { font-size: 11px; }
  .site-directory { margin-top: 22px; }
  .site-directory h2 { margin-bottom: 12px; font-size: 15px; }
  .site-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 84px; gap: 12px; }
  .site-link-card { padding: 8px; gap: 8px; }
  .site-link-card strong { font-size: 13px; }
  .projects-view { position: fixed; z-index: 20; inset: 0; display: none; width: 100%; height: 100dvh; padding: 28px 16px 110px; transform: none; }
  body.mobile-projects-active .identity-view { display: none; }
  body.mobile-projects-active .identity-side { display: none; }
  body.mobile-projects-active .projects-view { display: flex; flex-direction: column; }
  .mobile-project-brand, .project-list-header, .project-pagination, .project-control-bar { flex-shrink: 0; }
  .mobile-project-brand { height: 36px; margin: 0 0 18px; display: block; text-align: center; font-size: 17px; font-weight: 800; }
  .project-list-header { min-height: 46px; margin-bottom: 10px; }
  .projects-view h2 { margin: 0; font-size: 15px; }
  .projects-view h2 span { font-size: 21px; }
  .project-carousel-controls { gap: 8px; }
  .project-carousel-controls button { width: 42px; height: 42px; font-size: 19px; }
  .project-pages { width: 100%; flex: 1 1 0; min-height: 0; height: auto; max-height: 450px; overflow: hidden; perspective: none; }
  .project-pages::before { width: 125%; height: 82%; }
  .project-pages-track { transform-style: flat; }
  .project-link { width: 100%; height: 100%; transform: translate(-50%, -50%) translate3d(var(--project-x), var(--project-y), 0) scale(var(--project-scale)); }
  .project-link:hover, .project-link:focus-visible { transform: translate(-50%, calc(-50% - 3px)) translate3d(var(--project-x), var(--project-y), 0) scale(var(--project-scale)); }
  .project-link[data-position="hidden"] { pointer-events: none; }
  .project-overview-toggle { display: none !important; }
  .project-autoplay-toggle { display: none !important; }
  .project-control-bar { width: min(100%, 320px); margin-top: 10px; justify-content: center; padding: 6px 8px; }
  .project-control-bar .project-carousel-controls button { width: 38px; height: 38px; }
  .project-card-copy { padding: 22px 52px 22px 18px; }
  .project-card-kicker b { font-size: 21px; }
  .project-card-copy > strong { min-height: 50px; font-size: 21px; }
  .project-card-summary { font-size: 11px; }
  .project-card-open { width: 50px; height: 50px; font-size: 21px; }
  .project-pagination { margin-top: 7px; }

  .mobile-switch { position: fixed; z-index: 40; left: 50%; bottom: 60px; width: 56px; height: 36px; padding: 8px 16px; flex-direction: column; justify-content: center; gap: 4px; transform: translateX(-50%); cursor: pointer; }
  body.mobile-projects-active .mobile-switch { display: flex; }
  .mobile-switch i { width: 22px; height: 2px; display: block; border-radius: 2px; background: #fff; transition: transform .25s ease, opacity .2s ease; }
  body.mobile-projects-active .mobile-switch i:first-child { transform: translateY(6px) rotate(45deg); }
  body.mobile-projects-active .mobile-switch i:nth-child(2) { opacity: 0; }
  body.mobile-projects-active .mobile-switch i:last-child { transform: translateY(-6px) rotate(-45deg); }
  .project-view-switch { display: none; }

  .dialog-shell { grid-template-columns: 1fr; }
  .project-dialog { width: min(100% - 20px, 560px); max-height: calc(100dvh - 20px); }
  .dialog-media { min-height: 300px; padding: 56px 42px 30px; }
  .dialog-media.has-gallery .dialog-gallery { grid-template-columns: 1fr; }
  .dialog-media.has-gallery { padding: 44px 24px 28px; }
  .dialog-media.has-gallery .dialog-gallery img { width: 100%; max-height: none; }
  .project-image-zoom { width: calc(100% - 12px); height: calc(100dvh - 12px); padding: 8px; }
  .project-image-zoom-close { right: 12px; top: 12px; width: 44px; height: 44px; }
  .project-image-zoom-nav { width: 46px; height: 46px; font-size: 22px; }
  .project-image-zoom-prev { left: 10px; }
  .project-image-zoom-next { right: 10px; }
  .dialog-content { padding: 32px 22px 28px; }
  .dialog-nav { top: 180px; width: 44px; height: 44px; }
  .dialog-prev { left: 8px; }
  .dialog-next { right: 8px; }
}

@media (min-width: 721px) {
  .dialog-shell { height: min(860px, calc(100dvh - 44px)); overflow: hidden; }
  .dialog-media { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .dialog-content { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
  body.project-list-active .home-content { width: 100%; max-width: none; height: 100dvh; padding: 0; display: block; }
  body.project-list-active .projects-view { position: fixed; z-index: 20; inset: 0; display: block; width: 100%; height: 100dvh; margin: 0; padding: clamp(84px, 12vh, 128px) 0 clamp(96px, 13vh, 132px); }
  body.project-list-active .projects-view h2 { margin: 0; }
  body.project-list-active .project-list-header { position: absolute; z-index: 24; left: clamp(24px, 4vw, 64px); top: clamp(84px, 12vh, 128px); margin: 0; }
  body.project-list-active .project-pages, body.project-list-active.project-overview-active .project-pages { height: 100%; }
  body.project-list-active .project-pagination { position: absolute; z-index: 24; left: 50%; bottom: 112px; margin: 0; transform: translateX(-50%); }
  body.project-list-active .project-control-bar { position: fixed; z-index: 44; left: 50%; bottom: 54px; margin: 0; transform: translateX(-50%); }
  body.project-list-active .identity-view { display: none; }
  body.project-list-active .identity-side { display: none; }
}

@media (min-width: 721px) and (max-height: 760px) {
  body.project-list-active .projects-view { padding-top: clamp(72px, 10vh, 96px); padding-bottom: 92px; }
  body.project-list-active .project-list-header { top: clamp(72px, 10vh, 96px); }
  body.project-list-active .project-link { height: clamp(300px, 46vh, 390px); }
  body.project-list-active .project-pagination { bottom: 112px; }
  body.project-list-active .project-control-bar { bottom: 48px; }
}

@media (max-width: 410px) {
  .home-content { width: calc(100% - 28px); }
  .brand-mark { flex-basis: 84px; height: 84px; }
  .brand-row h1 span { font-size: 34px; }
  .brand-row h1 small { font-size: 12px; }
  .site-link-card { gap: 5px; }
  .site-link-card strong { font-size: 12px; }
}

@media (max-height: 720px) and (max-width: 720px) {
  .home-content { padding-top: 32px; align-content: start; }
  .identity-message { transform: none; }
  .projects-view { padding-top: 14px; transform: scale(.9); transform-origin: top center; }
  .mobile-switch { bottom: 58px; }
}

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

@supports not (backdrop-filter: blur(1px)) {
  .glass-card, .project-dialog, .page-footer { background: rgba(10, 26, 28, .84); }
}
