:root {
  --bg: #fff;
  --surface: #f5f5f7;
  --surface-elevated: rgba(255, 255, 255, .86);
  --surface-strong: #e8e8ed;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .09);
  --line-strong: rgba(0, 0, 0, .14);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, .09);
  --danger: #b42318;
  --success: #16794a;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .045);
  --shadow-md: 0 22px 70px rgba(0, 0, 0, .09);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
  --text-caption: .8125rem;
  --text-small: .875rem;
  --text-body: clamp(1.0625rem, 1rem + .16vw, 1.1875rem);
  --leading-body: 1.85;
  color-scheme: light;
  font-family: var(--font-sans);
}

* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-height: 100vh; overflow-x: clip; color: var(--ink); background: var(--bg); font-size: 1rem; line-height: 1.65; letter-spacing: .012em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
input, select, textarea, button { font: inherit; }
button, input, select, textarea { color: inherit; }
button, a, input, select, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(0, 113, 227, .12); }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.018em; }
p, li, dd { text-wrap: pretty; }
h1[id], h2[id], h3[id] { scroll-margin-top: 88px; }
::selection { background: rgba(0, 113, 227, .18); }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .34); outline-offset: 3px; }
.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.skip-link, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; top: 10px; left: 10px; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: #fff; z-index: 10000; }
.kicker { margin: 0 0 10px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }

/* Global navigation */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { border-color: var(--line); background: rgba(255, 255, 255, .88); box-shadow: 0 1px 18px rgba(0, 0, 0, .035); }
.header-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { flex: 0 0 auto; color: var(--ink); font-size: 1.25rem; font-weight: 720; line-height: 1.4; letter-spacing: .06em; white-space: nowrap; }
.site-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a { position: relative; display: block; padding: 8px 10px; border-radius: 999px; color: var(--ink-soft); font-size: .9375rem; font-weight: 520; line-height: 1.55; transition: color .2s ease, background-color .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: rgba(0, 0, 0, .05); }
.nav-toggle { display: none; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 8px 11px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.nav-toggle > span:last-child { font-size: var(--text-small); }
.nav-toggle-icon { display: grid; gap: 4px; width: 14px; }
.nav-toggle-icon i { display: block; width: 14px; height: 1px; background: currentColor; transform-origin: center; transition: transform .25s ease; }
.site-nav.is-open .nav-toggle-icon i:first-child { transform: translateY(2.5px) rotate(45deg); }
.site-nav.is-open .nav-toggle-icon i:last-child { transform: translateY(-2.5px) rotate(-45deg); }

/* Buttons */
.button-row { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; font-size: .9375rem; font-weight: 650; line-height: 1.45; cursor: pointer; box-shadow: 0 7px 18px rgba(0, 113, 227, .16); transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.button:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 10px 25px rgba(0, 113, 227, .24); }
.button:active { transform: scale(.98); }
.button.secondary { border-color: transparent; background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.button.secondary:hover { background: rgba(0, 113, 227, .14); color: var(--accent-hover); }
.button.danger { border-color: #d92d20; background: #d92d20; color: #fff; box-shadow: 0 7px 18px rgba(180, 35, 24, .14); }
.button.danger:hover { border-color: var(--danger); background: var(--danger); color: #fff; box-shadow: 0 10px 24px rgba(180, 35, 24, .2); }
.button.small { min-height: 38px; padding: 7px 13px; font-size: var(--text-caption); }

/* Homepage */
.hero-slider { position: relative; width: min(1440px, 100%); margin-inline: auto; overflow: hidden; padding: clamp(28px, 5vw, 68px) 24px clamp(36px, 6vw, 76px); border-radius: 0 0 clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px); background: radial-gradient(circle at 50% -15%, #fff 0, #f4f4f6 52%, #e9e9ed 100%); }
.hero-slider::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.7), transparent 35%, rgba(255,255,255,.25)); }
.hero-track { position: relative; width: min(1080px, 100%); min-height: clamp(210px, 40vw, 500px); margin: auto; }
.hero-slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateX(14px); transition: opacity .7s ease, transform .7s var(--ease-out), visibility .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transform: translateX(0); }
.hero-slide img { width: 100%; max-height: 500px; object-fit: contain; border-radius: var(--radius-md); filter: drop-shadow(0 26px 42px rgba(0, 0, 0, .13)); }
.hero-dots { position: relative; display: flex; justify-content: center; gap: 2px; margin-top: 20px; }
.hero-dots button { position: relative; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.hero-dots button::after { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: #a9a9af; transform: translate(-50%, -50%); transition: background-color .2s ease, transform .2s ease; }
.hero-dots button.is-active::after { background: var(--ink); transform: translate(-50%, -50%) scale(1.32); }
.home-shell { padding-block: clamp(72px, 10vw, 140px); }
.home-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(50px, 9vw, 130px); padding-bottom: clamp(100px, 13vw, 180px); }
.home-intro h1, .page-hero h1, .work-heading h1, .team-profile h1 { margin: 0; font-size: clamp(2.75rem, 5.5vw, 4.75rem); font-weight: 720; line-height: 1.08; letter-spacing: -.025em; }
.home-intro .prose { max-width: 42rem; color: var(--ink-soft); font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.78; letter-spacing: .015em; }
.home-section { padding-bottom: clamp(100px, 13vw, 170px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2, .home-contact h2 { margin: 0; font-size: clamp(2.125rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.14; letter-spacing: -.02em; }
.section-head > a { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; background: var(--accent-soft); font-size: var(--text-small); font-weight: 650; line-height: 1.5; }
.section-head > a::after { content: "  ›"; }
.home-contact { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 44px; overflow: hidden; padding: clamp(46px, 7vw, 88px); border-radius: clamp(26px, 4vw, 42px); background: radial-gradient(circle at 10% 0, #343438 0, #1d1d1f 55%, #0d0d0e 100%); color: #fff; box-shadow: var(--shadow-md); }
.home-contact::after { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; bottom: -200px; border-radius: 50%; background: rgba(41, 151, 255, .2); filter: blur(30px); }
.home-contact .kicker { color: #a1a1a6; }
.home-contact > div { position: relative; z-index: 1; min-width: 0; }
.home-contact > div:last-child { display: flex; flex-direction: column; justify-content: center; gap: 10px; color: #d2d2d7; font-size: 1rem; line-height: 1.7; }
.home-contact a { color: #64a9ef; }

/* Cards and listing grids */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.card { min-width: 0; overflow: hidden; border: 1px solid rgba(0, 0, 0, .045); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; transform: translateZ(0); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s ease; }
.card > a { display: flex; height: 100%; min-width: 0; flex-direction: column; color: var(--ink); }
.card-image { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-strong); }
.card-image::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 65%, rgba(0,0,0,.06)); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out), filter .4s ease; }
.work-grid .card-image, .works-card .card-image { aspect-ratio: 3 / 4; }
.boss-card .card-image { aspect-ratio: 4 / 5; }
.home-section .team-grid .card-image { aspect-ratio: 4 / 3; }
.card-body { flex: 1; min-width: 0; padding: 20px 21px 24px; }
.card-body p { margin: 0 0 7px; color: var(--muted); font-size: var(--text-caption); line-height: 1.6; }
.card-body .card-project { color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.card-body h3 { margin: 0; overflow-wrap: anywhere; font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 680; line-height: 1.4; letter-spacing: -.012em; }
.image-placeholder { width: 54px; height: 54px; border: 1px solid #c6c6ca; border-radius: 16px; background: rgba(255,255,255,.45); }
@media (hover: hover) {
  .card:hover { border-color: rgba(0,0,0,.08); transform: translateY(-8px); box-shadow: 0 24px 58px rgba(0, 0, 0, .12); }
  .card:hover .card-image img { transform: scale(1.035); filter: saturate(1.04); }
}

/* Shared page layouts */
.page-shell, .listing-page { padding-block: clamp(64px, 9vw, 124px); }
.breadcrumbs { margin: 0 0 clamp(38px, 5vw, 68px); color: var(--muted); font-size: var(--text-caption); font-weight: 560; line-height: 1.65; letter-spacing: .015em; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; min-width: 0; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: "›"; color: #a1a1a6; font-size: 16px; font-weight: 400; line-height: 1; }
.breadcrumbs a { color: var(--muted); transition: color .2s ease; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current="page"] { max-width: min(64vw, 520px); color: var(--ink-soft); overflow-wrap: anywhere; }
.page-hero { max-width: 960px; margin-bottom: clamp(48px, 7vw, 82px); }
.page-hero .prose { max-width: 45rem; }
.page-hero.compact h1 { font-size: clamp(2.75rem, 5vw, 4.5rem); }
.page-hero time { display: block; margin-top: 18px; color: var(--muted); font-size: .9375rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
.prose { color: var(--ink-soft); font-size: var(--text-body); line-height: var(--leading-body); letter-spacing: .015em; overflow-wrap: anywhere; white-space: pre-line; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin-block: 0 1.45em; }
.prose h2, .prose h3 { margin-top: 2.4em; color: var(--ink); line-height: 1.3; letter-spacing: -.012em; }
.prose a { text-decoration: underline; text-decoration-color: rgba(0, 113, 227, .25); text-underline-offset: 3px; }
.prose img { margin: 34px auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.prose iframe { width: 100%; height: clamp(340px, 50vw, 500px); margin: 30px 0; border: 0; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.basic-page { max-width: 1100px; }
.basic-page > .prose { max-width: 45rem; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--surface); }
.centered-page-shell > .breadcrumbs ol { justify-content: center; }
.centered-full-page { width: 100%; max-width: none; text-align: center; }
.centered-full-page .page-hero { max-width: none; margin-inline: auto; }
.centered-full-page > .prose { width: 100%; max-width: none; padding: clamp(34px, 5vw, 64px); text-align: center; }
.centered-full-page > .prose > p { width: min(45rem, 100%); margin-inline: auto; }
.centered-full-page > .prose > br { display: none; }
.centered-full-page > .prose > div { width: 100%; margin-top: clamp(20px, 3vw, 36px); }
.centered-full-page > .prose img { width: 100%; margin-inline: auto; margin-block: 0; }
.centered-full-page > .prose iframe { width: 100%; margin-block: clamp(34px, 5vw, 62px); }
.page-lead-image { margin-bottom: 48px; }
.page-lead-image img { width: 100%; max-height: 680px; object-fit: contain; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.preview-banner { position: sticky; top: 58px; z-index: 90; margin-bottom: 24px; padding: 11px 16px; border-radius: 12px; background: #fff0c2; color: #5d4300; text-align: center; font-weight: 700; }
.error-page { min-height: 62vh; display: flex; flex-direction: column; align-items: start; justify-content: center; }
.error-page h1 { margin: 0 0 14px; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.04; letter-spacing: -.025em; }
.access-error { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(92px, 12vw, 168px); }
.access-error::before { content: ""; position: absolute; z-index: -1; width: min(74vw, 820px); aspect-ratio: 1; right: -28%; top: 50%; border-radius: 50%; background: radial-gradient(circle, rgba(0,113,227,.1) 0, rgba(0,113,227,.035) 42%, transparent 70%); transform: translateY(-50%); pointer-events: none; }
.access-error .error-status { margin: 0 0 18px; color: transparent; background: linear-gradient(135deg, #d2d2d7 0, #86868b 48%, #d2d2d7 100%); background-clip: text; -webkit-background-clip: text; font-size: clamp(96px, 21vw, 260px); font-weight: 750; line-height: .72; letter-spacing: -.08em; user-select: none; }
.access-error h1 { max-width: 900px; }
.access-error > p:not(.kicker) { max-width: 40rem; margin: 8px 0 0; color: var(--ink-soft); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.8; }
.access-error .button-row { margin-top: 34px; }

/* Albums */
.album-page .page-hero { max-width: 860px; }
.album-page .page-hero .prose { margin-top: 24px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 20px); margin-top: 46px; }
.gallery figure { min-width: 0; margin: 0; overflow: hidden; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; min-height: 240px; max-height: 620px; object-fit: cover; }
.gallery figcaption { padding: 11px 14px; color: var(--muted); font-size: var(--text-caption); line-height: 1.65; }
.project-context { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.project-context > span { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.project-context a { display: inline-flex; align-items: center; gap: 11px; min-height: 42px; padding: 8px 15px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--text-small); font-weight: 650; line-height: 1.55; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.project-context a:hover { background: rgba(0, 113, 227, .14); color: var(--accent-hover); transform: translateX(2px); }
.project-context b { font-weight: 500; }
.related-content-section { margin-top: clamp(80px, 11vw, 150px); padding: clamp(28px, 4.5vw, 56px); border: 1px solid rgba(0,0,0,.04); border-radius: clamp(26px, 4vw, 40px); background: var(--surface); }
.related-section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.related-section-head h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.18; letter-spacing: -.018em; }
.related-section-head > span { flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--text-caption); font-weight: 700; font-variant-numeric: tabular-nums; }
.related-album-grid { gap: 18px; }
.related-album-grid .card { background: #fff; content-visibility: auto; contain-intrinsic-size: 420px; }
.related-album-grid .card-body h3 { font-size: clamp(1.125rem, 1.3vw, 1.25rem); }

/* Work details */
.work-showcase { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: clamp(44px, 7vw, 96px); align-items: center; min-height: min(760px, 75vh); padding: clamp(28px, 4vw, 54px); border-radius: clamp(28px, 4vw, 44px); background: linear-gradient(145deg, #f8f8fa, #ececef); }
.work-cover { min-height: 340px; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-lg); background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); }
.work-cover:empty { display: none; }
.work-cover img { width: 100%; max-height: 720px; object-fit: contain; }
.work-heading { min-width: 0; }
.work-heading h1 { font-size: clamp(2.875rem, 5vw, 4.625rem); line-height: 1.08; letter-spacing: -.025em; overflow-wrap: anywhere; }
.work-year { display: flex; flex-direction: column; gap: 4px; margin: 30px 0; color: var(--ink); font-size: 1.625rem; font-weight: 650; line-height: 1.35; font-variant-numeric: tabular-nums; }
.work-year span { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.credits { display: grid; gap: 0; margin: 34px 0 0; }
.credits div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.credits dt { color: var(--muted); font-size: var(--text-caption); line-height: 1.7; }
.credits dd { min-width: 0; margin: 0; font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.work-body { display: grid; grid-template-columns: .55fr 1.45fr; gap: clamp(32px, 7vw, 90px); max-width: 1040px; margin: clamp(90px, 13vw, 170px) auto; }
.work-body .prose { max-width: 42rem; font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.9; }

/* Team profiles */
.team-profile-page { max-width: 1240px; }
.team-profile-back { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; margin-bottom: 22px; padding: 9px 14px; border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: var(--text-small); font-weight: 600; line-height: 1.55; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.team-profile-back:hover { background: var(--surface-strong); color: var(--ink); transform: translateX(-2px); }
.team-profile-hero { position: relative; min-height: clamp(520px, 65vw, 760px); display: grid; grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr); align-items: center; gap: clamp(42px, 8vw, 112px); overflow: hidden; padding: clamp(34px, 6vw, 82px); border: 1px solid rgba(0,0,0,.045); border-radius: clamp(30px, 4.5vw, 52px); background: radial-gradient(circle at 15% 5%, #fff 0, #f8f8fa 35%, #eeeeF2 100%); box-shadow: var(--shadow-sm); }
.team-profile-hero::before { content: ""; position: absolute; width: min(46vw, 590px); aspect-ratio: 1; left: -24%; bottom: -56%; border: 1px solid rgba(0,113,227,.11); border-radius: 50%; box-shadow: 0 0 0 66px rgba(0,113,227,.03), 0 0 0 132px rgba(0,113,227,.018); pointer-events: none; }
.team-profile-hero > * { position: relative; z-index: 1; }
.team-profile-heading { min-width: 0; }
.team-profile-heading h1 { margin: 0; font-size: clamp(3.25rem, 6.5vw, 5.75rem); font-weight: 720; line-height: 1.02; letter-spacing: -.028em; overflow-wrap: anywhere; }
.team-profile-roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.team-profile-roles span { padding: 7px 12px; border: 1px solid rgba(0,113,227,.08); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--text-caption); font-weight: 650; line-height: 1.5; }
.team-profile-visual { min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: clamp(22px, 3vw, 34px); background: var(--surface-strong); box-shadow: 0 26px 70px rgba(0,0,0,.14); }
.team-profile-visual img { width: 100%; height: 100%; object-fit: cover; }
.team-profile-story { max-width: 1080px; display: grid; grid-template-columns: minmax(200px, .52fr) minmax(0, 1.48fr); align-items: start; gap: clamp(40px, 8vw, 110px); margin: clamp(90px, 12vw, 160px) auto 0; }
.team-profile-story > header { position: sticky; top: 100px; }
.team-profile-story h2 { margin: 0; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.18; letter-spacing: -.018em; }
.team-profile-story .prose { max-width: 42rem; color: var(--ink-soft); font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.95; }
.team-profile-credits { margin-top: clamp(90px, 12vw, 150px); padding: clamp(30px, 5vw, 64px); border: 1px solid rgba(0,0,0,.045); border-radius: clamp(28px, 4vw, 44px); background: linear-gradient(145deg, #fafafa, var(--surface)); }
.team-profile-credits > header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr); align-items: end; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.team-profile-credits h2 { margin: 0; font-size: clamp(2.375rem, 4.2vw, 3.75rem); line-height: 1.12; letter-spacing: -.02em; }
.team-profile-credits > header > p { max-width: 26rem; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.team-profile-credits .accordions { margin-top: 16px; border-top: 0; }
.team-profile-credits .accordions summary { min-height: 72px; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.6; }
.team-profile-credits .accordions details > div { max-width: 48rem; padding: 4px 44px 34px 0; font-size: 1rem; }
.accordions { margin-top: 46px; border-top: 1px solid var(--line); }
.accordions details { border-bottom: 1px solid var(--line); }
.accordions summary { position: relative; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 40px 17px 0; font-weight: 650; cursor: pointer; list-style: none; }
.accordions summary::-webkit-details-marker { display: none; }
.accordions summary::after { content: "+"; position: absolute; right: 4px; color: var(--accent); font-size: 24px; font-weight: 350; transition: transform .3s var(--ease-out); }
.accordions details[open] summary::after { transform: rotate(45deg); }
.accordions details > div { padding: 0 0 24px; color: var(--ink-soft); line-height: 1.9; letter-spacing: .015em; white-space: pre-line; }
.content-details { margin-top: 46px; border-top: 1px solid var(--line); }
.detail-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail-row dt { color: var(--muted); font-size: var(--text-small); line-height: 1.65; }
.detail-row dd { min-width: 0; margin: 0; font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-line; }

/* Team directory */
.team-index { padding: clamp(64px, 9vw, 126px) 0 clamp(80px, 10vw, 140px); }
.team-index-hero { min-height: clamp(330px, 42vw, 520px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: end; gap: clamp(54px, 10vw, 150px); padding-bottom: clamp(72px, 9vw, 118px); }
.team-index-hero h1 { max-width: 760px; margin: 0; font-size: clamp(3.25rem, 7vw, 6rem); font-weight: 720; line-height: 1.02; letter-spacing: -.028em; }
.team-index-copy { min-width: 0; padding-bottom: 6px; }
.team-index-copy > p { max-width: 36rem; margin: 0; color: var(--ink-soft); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.82; letter-spacing: .015em; text-wrap: pretty; }
.team-index-stat { display: grid; grid-template-columns: minmax(110px, .55fr) minmax(0, 1fr); gap: 22px; margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.team-index-stat div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.team-index-stat dt { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }
.team-index-stat dd { min-width: 0; margin: 0; color: var(--ink); font-size: 1.125rem; font-weight: 650; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.team-roster { position: relative; width: min(1320px, calc(100% - 32px)); margin-inline: auto; overflow: hidden; padding: clamp(34px, 6vw, 84px); border: 1px solid rgba(0,0,0,.05); border-radius: clamp(28px, 4.5vw, 52px); background: radial-gradient(circle at 82% -8%, #fff 0, #f7f7f9 38%, #ededf1 100%); color: var(--ink); box-shadow: 0 32px 90px rgba(0, 0, 0, .09); }
.team-roster::before { content: ""; position: absolute; width: min(48vw, 620px); aspect-ratio: 1; top: -34%; right: -13%; border: 1px solid rgba(0,113,227,.1); border-radius: 50%; box-shadow: 0 0 0 70px rgba(0,113,227,.026), 0 0 0 140px rgba(0,113,227,.016); pointer-events: none; }
.team-roster > * { position: relative; z-index: 1; }
.team-roster-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: end; gap: clamp(40px, 8vw, 110px); margin-bottom: clamp(58px, 8vw, 100px); padding-bottom: clamp(30px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.team-roster .kicker { color: var(--muted); }
.team-roster-head h2 { max-width: 760px; margin: 0; color: var(--ink); font-size: clamp(2.625rem, 5vw, 4.5rem); font-weight: 680; line-height: 1.1; letter-spacing: -.022em; }
.team-roster-head > p { max-width: 28rem; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.82; text-wrap: pretty; }
.team-editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4.5vw, 62px); align-items: start; }
.team-member-card { min-width: 0; }
.team-member-card:nth-child(even) { margin-top: clamp(38px, 5vw, 76px); }
.team-member-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 16px); justify-self: center; margin-top: clamp(18px, 3vw, 40px); }
.team-member-card > a { display: block; min-width: 0; color: var(--ink); border-radius: 26px; }
.team-member-card > a:focus-visible { outline-color: rgba(0, 113, 227, .55); }
.team-member-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: clamp(20px, 3vw, 30px); background: var(--surface-strong); box-shadow: 0 18px 46px rgba(0,0,0,.11); }
.team-member-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.08), transparent 48%, rgba(0,0,0,.28)); }
.team-member-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out), filter .45s ease; }
.team-member-number { position: absolute; z-index: 1; top: 18px; left: 18px; display: grid; place-items: center; min-width: 46px; height: 30px; padding-inline: 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(13,13,14,.48); color: #fff; backdrop-filter: blur(16px); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.team-member-meta { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 21px 6px 10px; }
.team-member-meta > div { min-width: 0; }
.team-member-meta h3 { margin: 8px 0 0; color: var(--ink); font-size: clamp(1.75rem, 2.5vw, 2.5rem); font-weight: 650; line-height: 1.18; letter-spacing: -.018em; overflow-wrap: anywhere; }
.team-member-roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.team-member-roles span { padding: 5px 9px; border: 1px solid rgba(0,0,0,.045); border-radius: 999px; background: rgba(255,255,255,.78); color: var(--muted); font-size: .75rem; font-weight: 650; line-height: 1.5; letter-spacing: .03em; }
.team-member-arrow { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); font-size: 18px; transition: color .25s ease, background-color .25s ease, transform .35s var(--ease-out); }
@media (hover: hover) {
  .team-member-card > a:hover { color: var(--ink); }
  .team-member-card > a:hover .team-member-media img { transform: scale(1.035); filter: saturate(1.05); }
  .team-member-card > a:hover .team-member-arrow { background: var(--ink); color: #fff; transform: translate(3px, -3px); }
}

/* View listings and member filmography */
.listing-page .page-hero { margin-bottom: 50px; }
.view-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.works-index { max-width: 1160px; }
.works-index .page-hero { max-width: 980px; }
.works-index .page-hero h1 { white-space: nowrap; font-size: clamp(2rem, 4vw, 4.5rem); }
.works-lead { max-width: 42rem; margin: 22px 0 0; color: var(--muted); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.82; letter-spacing: .015em; }
.work-table-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg, #fafafa, var(--surface)); box-shadow: var(--shadow-sm); }
.work-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.work-year-column { width: 12%; }
.work-title-column { width: 34%; }
.work-credits-column { width: 54%; }
.work-table thead th { padding: 18px 22px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; font-size: .75rem; font-weight: 700; line-height: 1.5; letter-spacing: .08em; }
.work-table thead th:first-child { text-align: center; }
.work-table tbody tr { transition: background-color .2s ease; }
.work-table tbody tr:hover { background: rgba(0, 113, 227, .045); }
.work-table tbody td { padding: 21px 22px; border-bottom: 1px solid rgba(0, 0, 0, .055); vertical-align: middle; }
.work-table tbody tr:last-child td { border-bottom: 0; }
.work-table-year { text-align: center; }
.work-table-year time { display: inline-flex; justify-content: center; min-width: 66px; padding: 7px 10px; border: 1px solid rgba(0, 0, 0, .06); border-radius: 999px; background: rgba(255, 255, 255, .82); color: var(--muted); font-size: var(--text-small); font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; }
.work-table-title a { color: var(--ink); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 680; line-height: 1.6; letter-spacing: -.008em; }
.work-table-title a::after { content: "→"; display: inline-block; margin-left: 8px; color: var(--accent); opacity: 0; transform: translateX(-5px); transition: opacity .2s ease, transform .2s ease; }
.work-table tbody tr:hover .work-table-title a { color: var(--accent); }
.work-table tbody tr:hover .work-table-title a::after, .work-table-title a:focus-visible::after { opacity: 1; transform: translateX(0); }
.work-credit-list { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: var(--text-small); line-height: 1.75; }
.work-credit-list span { display: inline-flex; align-items: baseline; gap: 7px; min-width: 0; }
.work-credit-list strong { flex: 0 0 auto; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .055); color: #515154; font-size: .75rem; font-weight: 700; line-height: 1.5; letter-spacing: .03em; }
.work-credit-list a { color: var(--accent); font-weight: 550; }
.work-credit-list a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.work-credit-empty { color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 54px; }
.pagination a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px 10px; border: 1px solid transparent; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: var(--text-small); line-height: 1.4; font-variant-numeric: tabular-nums; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.pagination a:hover { background: var(--surface-strong); transform: translateY(-2px); }
.pagination a[aria-current="page"] { background: var(--ink); color: #fff; }

/* Footer */
.site-footer { margin-top: 30px; padding-block: 56px calc(56px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: var(--text-caption); line-height: 1.7; }
.footer-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.footer-inner > div { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.footer-inner strong { margin-bottom: 4px; color: var(--ink); font-size: 1.0625rem; line-height: 1.5; letter-spacing: .035em; }

/* Administration */
.admin-body { min-height: 100vh; background: var(--surface); }
.admin-header { position: sticky; top: 0; z-index: 100; min-height: 62px; display: flex; align-items: center; gap: 26px; padding: 0 max(24px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); }
.admin-brand { flex: 0 0 auto; color: var(--ink); font-size: 1.0625rem; font-weight: 720; line-height: 1.45; letter-spacing: .03em; white-space: nowrap; }
.admin-nav { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a, .admin-nav button { display: block; min-height: 38px; padding: 9px 11px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); white-space: nowrap; cursor: pointer; font-size: var(--text-caption); line-height: 1.5; transition: color .2s ease, background-color .2s ease; }
.admin-nav a:hover, .admin-nav button:hover, .admin-nav a[aria-current="page"] { background: rgba(0,0,0,.05); color: var(--ink); }
.admin-nav form { margin-left: auto; }
.admin-main { width: min(1360px, calc(100% - 48px)); min-height: calc(100vh - 62px); margin: auto; padding-block: clamp(40px, 6vw, 76px) 90px; }
.admin-page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.admin-page-head h1 { margin: 0; font-size: clamp(2.125rem, 4vw, 3.5rem); font-weight: 720; line-height: 1.14; letter-spacing: -.02em; }
.stat-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 13px; margin-bottom: 24px; }
.stat-card, .admin-panel { border: 1px solid rgba(0,0,0,.055); border-radius: var(--radius-md); background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); }
.stat-card { min-width: 0; display: flex; flex-direction: column; padding: 22px; }
.stat-card strong { font-size: clamp(26px, 3vw, 38px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.stat-card span { margin-top: 4px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.admin-panel { min-width: 0; padding: clamp(22px, 3vw, 32px); }
.admin-panel.narrow { max-width: 720px; margin-inline: auto; }
.admin-panel h1, .admin-panel h2 { margin-top: 0; letter-spacing: -.025em; }
.summary-list { margin: 0; padding: 0; list-style: none; }
.summary-list li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.summary-list li:last-child { border-bottom: 0; }
.system-list { margin: 0; }
.system-list div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.system-list div:last-child { border-bottom: 0; }
.system-list dt { color: var(--muted); }
.system-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.filter-bar { display: flex; align-items: end; gap: 11px; margin: 0 0 20px; }
.filter-bar label:first-child { flex: 1; min-width: 0; }
.filter-bar input, .filter-bar select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; }
.result-count, .admin-lead { color: var(--muted); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--text-small); line-height: 1.6; }
.admin-table th { padding: 13px 15px; color: var(--muted); background: #fafafa; text-align: left; font-size: .75rem; font-weight: 700; line-height: 1.5; letter-spacing: .06em; white-space: nowrap; }
.admin-table td { min-width: 0; padding: 14px 15px; border-top: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.admin-table tbody tr { transition: background-color .2s ease; }
.admin-table tbody tr:hover { background: rgba(0,113,227,.035); }
.admin-table code { white-space: nowrap; }
.status { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: .75rem; font-weight: 650; line-height: 1.45; white-space: nowrap; }
.status.published { background: #e8f7ee; color: var(--success); }
.status.draft { background: #efeff1; color: var(--muted); }
.admin-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; color: var(--muted); font-size: var(--text-small); line-height: 1.6; }
.admin-form { display: grid; gap: 20px; }
.admin-form label { min-width: 0; display: grid; gap: 8px; color: var(--ink-soft); font-size: var(--text-caption); font-weight: 650; line-height: 1.55; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #c7c7cc; border-radius: 12px; background: #fff; color: var(--ink); font-size: 1rem; line-height: 1.55; transition: border-color .2s ease, box-shadow .2s ease; }
.admin-form textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.6; }
.admin-form small { color: var(--muted); font-size: .75rem; font-weight: 450; line-height: 1.55; }
.admin-form hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
.rich-editor-shell { width: 100%; overflow: hidden; border: 1px solid #c7c7cc; border-radius: 14px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.rich-editor-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, .14); }
.rich-editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border-bottom: 1px solid var(--line); background: #f7f7f9; }
.rich-editor-format-tools { min-width: 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; padding-bottom: 1px; scrollbar-width: thin; }
.rich-editor-toolbar button, .rich-editor-toolbar select { flex: 0 0 auto; width: auto; min-width: 38px; min-height: 36px; margin: 0; padding: 7px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink-soft); font-family: var(--font-sans); font-size: .75rem; font-weight: 650; line-height: 1.35; cursor: pointer; box-shadow: none; }
.rich-editor-toolbar select { min-width: 92px; border-color: var(--line); background: #fff; }
.rich-editor-toolbar button:hover { border-color: var(--line); background: #fff; color: var(--ink); }
.rich-editor-modes { flex: 0 0 auto; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #e9e9ed; }
.rich-editor-modes button { min-width: 76px; }
.rich-editor-modes button[aria-pressed="true"] { border-color: rgba(0,113,227,.16); background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.rich-editor-canvas { min-height: 420px; padding: clamp(18px, 3vw, 28px); overflow-wrap: anywhere; color: var(--ink); background: #fff; font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 400; line-height: 1.85; letter-spacing: .012em; outline: 0; white-space: normal; }
.rich-editor-shell.is-compact .rich-editor-canvas { min-height: 220px; }
.rich-editor-canvas:empty::before { content: '在這裡輸入內容…'; color: #98989d; pointer-events: none; }
.rich-editor-canvas > :first-child { margin-top: 0; }
.rich-editor-canvas > :last-child { margin-bottom: 0; }
.rich-editor-canvas h2 { margin-block: 1.4em .55em; font-size: 1.75rem; line-height: 1.25; }
.rich-editor-canvas h3 { margin-block: 1.25em .5em; font-size: 1.375rem; line-height: 1.3; }
.rich-editor-canvas p, .rich-editor-canvas ul, .rich-editor-canvas ol, .rich-editor-canvas blockquote { margin-block: 0 1em; }
.rich-editor-canvas blockquote { padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); }
.rich-editor-canvas img { max-width: 100%; height: auto; border-radius: 10px; }
.rich-editor-canvas a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.admin-form textarea.rich-editor-source { min-height: 420px; border: 0; border-radius: 0; box-shadow: none; background: #1d1d1f; color: #f5f5f7; font-size: .8125rem; line-height: 1.7; tab-size: 2; }
.admin-form .rich-editor-shell.is-compact textarea.rich-editor-source { min-height: 220px; }
.admin-form textarea.rich-editor-source:focus { box-shadow: none; }
.slug-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; width: 100%; }
.slug-field input { min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.slug-field .button { min-height: 48px; margin: 0; white-space: nowrap; }
.url-entity-card { display: grid; gap: 5px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #f7f7f9; }
.url-entity-card span { color: var(--ink-muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.url-entity-card strong { font-size: 1.125rem; }
.url-entity-card code { width: max-content; max-width: 100%; overflow-wrap: anywhere; color: var(--ink-soft); }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus, .filter-bar input:focus, .filter-bar select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, .14); }
.admin-form input:disabled { background: var(--surface); color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.admin-form label.checkbox { display: flex; min-height: 44px; flex-direction: row; align-items: center; gap: 9px; cursor: pointer; }
.admin-form label.checkbox input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.raw-data { margin-top: 22px; }
.raw-data summary { min-height: 44px; display: flex; align-items: center; font-weight: 650; cursor: pointer; }
.raw-data pre { max-height: 700px; overflow: auto; padding: 18px; border-radius: 14px; background: #1d1d1f; color: #f5f5f7; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.message { margin-bottom: 20px; padding: 14px 17px; border-radius: 13px; }
.message.success { background: #e8f7ee; color: var(--success); }
.form-error { padding: 14px 16px; border-radius: 13px; background: #fff0ee; color: var(--danger); }
.login-card { width: min(480px, calc(100% - 32px)); margin: clamp(50px, 10vh, 110px) auto; padding: clamp(30px, 5vw, 46px); border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius-lg); background: rgba(255,255,255,.92); box-shadow: var(--shadow-md); }
.login-card > img { width: 64px; height: 64px; margin-bottom: 26px; border-radius: 16px; }
.login-card h1 { margin: 0 0 28px; font-size: clamp(30px, 5vw, 40px); letter-spacing: -.035em; }
.login-card .button { width: 100%; }
.media-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.media-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); content-visibility: auto; contain-intrinsic-size: 260px; }
.media-card > a, .file-icon { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-strong); }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease-out); }
.media-card:hover img { transform: scale(1.035); }
.file-icon { color: var(--muted); font-weight: 800; }
.media-card > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 13px; }
.media-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-caption); line-height: 1.5; }
.media-card span { color: var(--muted); font-size: .75rem; line-height: 1.5; }
.audit-badge { padding: 8px 13px; border-radius: 999px; font-size: var(--text-caption); font-weight: 700; line-height: 1.45; }
.audit-badge.ok { background: #e8f7ee; color: var(--success); }
.type-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.type-choice { display: flex; min-height: 160px; flex-direction: column; justify-content: space-between; gap: 24px; color: var(--ink); transition: transform .25s var(--ease-out), box-shadow .25s ease; }
.type-choice:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.type-choice strong { font-size: 1.5rem; line-height: 1.3; }
.type-choice span { color: var(--muted); font-size: var(--text-small); line-height: 1.7; }
.form-section { margin-top: 0; }
.form-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.form-section-head h2 { margin-bottom: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; }
.form-section-head a { color: var(--accent); font-size: var(--text-caption); font-weight: 650; }
.selected-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 5px; }
.selected-media span { min-width: 0; display: grid; grid-template-columns: 44px auto minmax(0, 1fr); align-items: center; gap: 7px; overflow: hidden; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: .6875rem; font-weight: 450; white-space: nowrap; text-overflow: ellipsis; }
.selected-media img { width: 44px; height: 34px; border-radius: 6px; object-fit: cover; }
.selected-media b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sticky-actions { position: sticky; bottom: 18px; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; width: fit-content; padding: 9px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-md); backdrop-filter: blur(18px); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-top: 22px; border-color: rgba(180,35,24,.18); }
.danger-zone h2 { margin-bottom: 5px; color: var(--danger); }
.danger-zone p { margin: 0; color: var(--muted); }
.danger-zone .button-row { margin: 0; }
.confirm-card { margin-top: clamp(30px, 8vh, 90px); }
.confirm-card h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; }
.upload-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.upload-panel h2, .upload-panel p { margin-block: 0 5px; }
.upload-panel p { color: var(--muted); }
.upload-form { display: flex; align-items: center; gap: 10px; }
.upload-form input[type="file"] { max-width: 360px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.media-card.is-disabled { opacity: .58; }
.media-card a { color: var(--accent); font-size: .75rem; font-weight: 650; }
.media-detail-grid { margin-bottom: 22px; }
.media-preview { display: grid; gap: 14px; align-content: start; }
.media-preview img { width: 100%; max-height: 520px; border-radius: 16px; object-fit: contain; background: var(--surface); }
.media-preview code { overflow-wrap: anywhere; white-space: normal; color: var(--muted); }
.revision-list > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.revision-list > div:first-child { border-top: 0; }
.revision-list span { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.revision-list time, .revision-list small { color: var(--muted); font-size: .75rem; }
.config-note { margin-top: 22px; }

@media (max-width: 1100px) {
  .site-nav a { padding-inline: 7px; font-size: var(--text-small); }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .work-showcase { grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); }
}

@media (max-width: 820px) {
  .container, .admin-main { width: min(100% - 32px, 1240px); }
  .header-inner { min-height: 58px; }
  .nav-toggle { display: inline-flex; }
  .site-nav ul { position: absolute; top: 58px; left: 12px; right: 12px; display: none; max-height: calc(100vh - 78px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-md); backdrop-filter: blur(26px); overscroll-behavior: contain; }
  .site-nav.is-open ul { display: flex; }
  .site-nav a { min-height: 46px; display: flex; align-items: center; padding: 11px 14px; border-radius: 12px; font-size: 1rem; line-height: 1.55; }
  .home-intro, .home-contact, .footer-inner, .work-showcase, .team-profile, .team-profile-hero, .team-profile-story, .work-body { grid-template-columns: 1fr; }
  .home-intro { gap: 34px; }
  .card-grid, .view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-showcase { min-height: auto; }
  .work-heading { padding: 8px 4px 4px; }
  .work-body { gap: 20px; }
  .profile-photo { position: static; max-width: 560px; }
  .team-profile-hero { min-height: auto; align-items: start; }
  .team-profile-heading { padding: 8px 4px 0; }
  .team-profile-visual { width: 100%; max-width: 760px; }
  .team-profile-story { gap: 28px; }
  .team-profile-story > header { position: static; }
  .team-profile-credits > header { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .team-index-hero { min-height: auto; grid-template-columns: 1fr; align-items: start; gap: 34px; }
  .team-index-copy { max-width: 650px; }
  .team-roster { width: calc(100% - 16px); padding: 42px 24px 54px; border-radius: 30px; }
  .team-roster-head { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .team-editorial-grid { grid-template-columns: 1fr; gap: 44px; }
  .team-member-card:nth-child(even), .team-member-card:last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; margin-top: 0; }
  .works-index .page-hero { margin-bottom: 34px; }
  .work-table-shell { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .work-table, .work-table tbody { display: block; }
  .work-table colgroup, .work-table thead { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; }
  .work-table tbody { display: grid; gap: 13px; }
  .work-table tbody tr { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 16px; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
  .work-table tbody tr:hover { background: var(--surface); }
  .work-table tbody td { display: block; padding: 0; border: 0; }
  .work-table-year { grid-row: 1 / span 2; text-align: left; }
  .work-table-year time { min-width: 58px; padding: 6px 8px; background: #fff; }
  .work-table-title, .work-table-credits { grid-column: 2; }
  .work-table-title a { font-size: 1.125rem; }
  .work-table-title a::after { opacity: 1; transform: none; }
  .admin-header { position: static; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px; }
  .admin-nav { width: 100%; }
  .admin-nav form { margin-left: 0; }
  .admin-main { min-height: auto; }
  .admin-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .type-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-panel { align-items: stretch; flex-direction: column; }
  .upload-form { align-items: stretch; flex-direction: column; }
  .upload-form input[type="file"] { max-width: none; }
}

@media (max-width: 560px) {
  .container, .admin-main { width: min(100% - 28px, 1240px); }
  .hero-slider { padding-inline: 14px; }
  .hero-track { min-height: 180px; }
  .home-shell, .page-shell, .listing-page { padding-block: 58px 82px; }
  .home-intro h1, .page-hero h1, .work-heading h1, .team-profile h1 { font-size: clamp(2.5rem, 10vw, 3.25rem); line-height: 1.12; }
  .team-profile-back { margin-bottom: 16px; }
  .team-profile-hero { padding: 28px 18px 18px; border-radius: 26px; }
  .team-profile-heading h1 { font-size: clamp(3rem, 14vw, 4rem); line-height: 1.06; }
  .team-profile-roles { margin-top: 22px; }
  .team-profile-visual { border-radius: 20px; }
  .team-profile-story { margin-top: 80px; }
  .team-profile-story h2 { font-size: 2rem; }
  .team-profile-credits { margin-top: 80px; padding: 28px 18px; border-radius: 26px; }
  .team-profile-credits h2 { font-size: 2.375rem; }
  .team-profile-credits .accordions details > div { padding-right: 0; }
  .team-index { padding-block: 58px 90px; }
  .team-index-hero { padding-bottom: 68px; }
  .team-index-hero h1 { font-size: clamp(3.25rem, 16vw, 4.25rem); line-height: 1.06; }
  .team-index-stat { grid-template-columns: 1fr 1.35fr; gap: 14px; }
  .team-index-stat dd { font-size: 1rem; }
  .team-roster { padding: 34px 16px 46px; }
  .team-roster-head h2 { font-size: clamp(2.375rem, 10vw, 3rem); line-height: 1.14; }
  .team-member-media { border-radius: 20px; }
  .team-member-number { top: 13px; left: 13px; }
  .team-member-meta { padding: 17px 3px 8px; }
  .team-member-meta h3 { font-size: 1.875rem; }
  .team-member-arrow { width: 42px; height: 42px; }
  .page-hero.compact h1 { font-size: clamp(2.5rem, 10vw, 3.25rem); }
  .home-section { padding-bottom: 96px; }
  .section-head { align-items: start; }
  .section-head h2, .home-contact h2 { font-size: 2.125rem; line-height: 1.18; }
  .card-grid, .view-grid, .gallery { grid-template-columns: 1fr; }
  .home-contact { padding: 34px 26px; }
  .card { border-radius: 18px; }
  .card-body { padding: 18px 18px 21px; }
  .gallery img { min-height: 210px; }
  .related-content-section { margin-inline: -14px; padding: 28px 14px; border-radius: 24px; }
  .related-section-head { align-items: flex-start; }
  .related-section-head h2 { font-size: 1.875rem; }
  .work-showcase { margin-inline: -4px; padding: 18px; border-radius: 24px; }
  .work-cover { min-height: 220px; border-radius: 18px; }
  .credits div, .detail-row, .system-list div { grid-template-columns: 1fr; gap: 6px; }
  .work-table tbody tr { grid-template-columns: 1fr; gap: 11px; padding: 18px; }
  .work-table-year, .work-table-title, .work-table-credits { grid-column: 1; grid-row: auto; }
  .work-table-year time { min-width: 0; }
  .footer-inner { gap: 26px; }
  .admin-page-head { align-items: flex-start; flex-direction: column; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-table th, .admin-table td { padding-inline: 12px; }
  .type-choice-grid { grid-template-columns: 1fr; }
  .type-choice { min-height: 130px; }
  .form-section-head, .danger-zone { align-items: flex-start; flex-direction: column; }
  .selected-media { grid-template-columns: 1fr; }
  .sticky-actions { position: static; width: 100%; border-radius: 18px; }
  .sticky-actions .button { flex: 1; }
  .rich-editor-toolbar { align-items: stretch; flex-direction: column; }
  .rich-editor-modes { order: -1; align-self: flex-start; }
  .rich-editor-format-tools { width: 100%; }
  .rich-editor-canvas, .admin-form textarea.rich-editor-source { min-height: 340px; }
  .rich-editor-canvas { padding: 17px; font-size: 1rem; }
  .slug-field { grid-template-columns: 1fr; }
  .slug-field .button { width: 100%; }
}

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