@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #15151a;
  --navy: #1b0e60;
  --coral: #fd6631;
  --red: #d00b2b;
  --paper: #f7f7f7;
  --line: #dfdfe4;
  --muted: #74747b;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Noto Sans TC', system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }

button { font: inherit; }

.site-shell { width: min(1320px, calc(100% - 64px)); margin: 0 auto; }

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  font: 600 11px/1 'Space Grotesk', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer { margin-top: 140px; border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); }
.home-float { position: fixed; right: 24px; bottom: 24px; z-index: 10; display: grid; width: 54px; height: 54px; place-items: center; color: #fff; background: var(--red); border: 1px solid rgba(255,255,255,.5); border-radius: 50%; box-shadow: 0 14px 28px rgba(21,21,26,.2); transition: transform .2s ease, background .2s ease; }
.home-float:hover, .home-float:focus-visible { background: var(--navy); transform: translateY(-3px); }
.home-float svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.mobile-filter-menu { position: fixed; right: 24px; bottom: 92px; z-index: 12; display: block; }
.mobile-filter-menu__toggle { display: grid; width: 54px; height: 54px; place-items: center; gap: 2px; padding: 5px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; background: var(--navy); box-shadow: 0 14px 28px rgba(21,21,26,.2); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.mobile-filter-menu__toggle:hover, .mobile-filter-menu__toggle:focus-visible { color: #fff; background: var(--red); transform: translateY(-3px); }
.mobile-filter-menu__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.mobile-filter-menu__label { display: block; font: 700 8px/1 'Space Grotesk', sans-serif; letter-spacing: .12em; }
.mobile-filter-menu__panel { position: absolute; right: 0; bottom: 64px; width: min(210px, calc(100vw - 32px)); max-height: min(60vh, 360px); padding: 0; overflow-y: auto; border: 0; background: transparent; box-shadow: none; }
.mobile-filter-menu__pills { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; justify-items: stretch; }
.mobile-filter-btn__item { display: block; width: 100%; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.96); cursor: pointer; font-size: 12px; line-height: 1.25; text-align: center; transition: .2s ease; }
.mobile-filter-btn__item:hover, .mobile-filter-btn__item:focus-visible, .mobile-filter-btn__item.is-active { border-color: var(--navy); color: #fff; background: var(--navy); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { display: grid; width: 34px; height: 34px; place-items: center; color: white; background: var(--red); font-size: 18px; font-weight: 700; }
.header-note { color: var(--muted); }

.hero-section { padding: 86px 0 42px; }
.eyebrow { margin: 0 0 24px; color: var(--red); font: 600 11px/1.4 'Space Grotesk', sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.hero-section h1 { max-width: 100%; margin: 0; color: var(--navy); font-size: clamp(32px, 4vw, 64px); font-weight: 400; letter-spacing: -.06em; line-height: 1; }
.hero-line { display: flex; align-items: center; gap: 18px; margin-top: 46px; color: var(--muted); font-size: 14px; }
.hero-line span:first-child { width: 68px; height: 3px; flex: 0 0 auto; background: var(--coral); }
.hero-banner { position: relative; width: 100vw; height: clamp(360px, 52vw, 680px); margin: 0 0 74px calc(50% - 50vw); overflow: hidden; background: #101923; }
.hero-banner::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,21,26,.02), rgba(21,21,26,.22)); content: ''; pointer-events: none; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-banner__content { position: absolute; z-index: 1; inset: 0; display: flex; width: min(1320px, calc(100% - 64px)); height: 100%; margin: 0 auto; flex-direction: column; align-items: flex-start; justify-content: center; pointer-events: none; }
.hero-banner__content .eyebrow { margin-bottom: 20px; color: #ff7350; }
.hero-banner__content h1 { max-width: 520px; margin: 0; color: white; font-size: clamp(36px, 5.2vw, 76px); font-weight: 400; letter-spacing: -.06em; line-height: 1; }
.hero-banner__content .hero-line { margin-top: 30px; color: rgba(255,255,255,.8); }

.filter-btn { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter-btn__item { padding: 11px 18px; border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; transition: .25s ease; }
.filter-btn__item:hover,
.filter-btn__item.is-active { border-color: var(--navy); color: white; background: var(--navy); }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 32px; }
.work-card { position: relative; display: block; min-width: 0; }
.work-card[hidden] { display: none; }
.work-card__image { position: relative; display: grid; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; background: #e8e8ed; }
.work-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.work-card:hover .work-card__image img { transform: scale(1.04); }
.work-card__image::after { position: absolute; inset: 0; background: linear-gradient(135deg, transparent 60%, rgba(27,14,96,.22)); content: ''; pointer-events: none; }
.work-card__overlay { position: absolute; z-index: 1; bottom: 22px; left: 50%; width: 90%; transform: translateX(-50%); }
.work-card__content { padding: 30px 35px; background: #fff; box-shadow: 0 10px 30px rgba(195,195,195,.27); text-align: right; }
.work-card__content h3 { margin: 0 0 5px; color: var(--ink); font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; line-height: 1.25; letter-spacing: -.04em; }
.work-card__category { margin: 0; color: var(--red); font: 600 12px/1.4 'Space Grotesk', sans-serif; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.work-card__category-badge { display: none; position: absolute; z-index: 2; top: 14px; right: 14px; max-width: calc(100% - 28px); padding: 7px 12px; overflow-wrap: anywhere; border: 1px solid rgba(253,102,49,.72); border-radius: 999px; color: #fff; background: var(--coral); box-shadow: 0 8px 18px rgba(21,21,26,.14); font: 600 11px/1.25 'Space Grotesk', sans-serif; letter-spacing: .04em; text-align: right; }
.work-card:focus-visible { outline: 3px solid var(--coral); outline-offset: 6px; }
.work-card__placeholder { color: var(--muted); font-size: 13px; }
.empty-state { grid-column: 1 / -1; padding: 100px 0; border-top: 1px solid var(--line); }
.empty-state h2 { max-width: 560px; color: var(--navy); font-size: 48px; letter-spacing: -.06em; }

@media (max-width: 720px) {
  .site-shell { width: min(100% - 36px, 1320px); }
  .site-header { min-height: 72px; }
  .header-note { display: none; }
  .hero-section { padding: 72px 0 34px; }
  .hero-banner { height: clamp(320px, 72vw, 500px); margin-bottom: 56px; }
  .hero-banner__content { width: min(100% - 36px, 1320px); }
  .hero-section h1 { font-size: clamp(26px, 8vw, 42px); }
  .hero-banner__content h1 { font-size: clamp(28px, 8vw, 44px); }
  .work-grid { grid-template-columns: 1fr; gap: 42px; }
  .work-card__image::after { background: none; }
  .work-card__overlay { position: static; width: auto; transform: none; }
  .work-card__content { padding: 14px 2px 0; background: transparent; box-shadow: none; text-align: left; }
  .work-card__content h3 { font-size: 20px; }
  .work-card__content .work-card__category { display: none; }
  .work-card__category-badge { display: inline-flex; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 26px 0; }
  .filter-btn { display: none; }
  .mobile-filter-menu { position: fixed; right: 16px; bottom: 80px; z-index: 12; display: block; }
  .mobile-filter-menu__toggle { width: 48px; height: 48px; padding: 5px; }
  .mobile-filter-menu__icon { display: block; height: 22px; }
  .home-float { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .home-float svg { width: 22px; height: 22px; }
}
