:root {
  --bg: #141414;
  --bg-elev: #1f1f1f;
  --bg-card: #2a2a2a;
  --text: #f5f5f1;
  --text-dim: #b3b3b3;
  --text-faint: #777;
  --accent: #e50914;
  --accent-soft: #46d369;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 60px);
  --card-w: clamp(220px, 23vw, 320px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 100%);
  transition: background-color .3s;
}
.nav.is-solid { background-color: var(--bg); }

.nav__logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 34px;
  letter-spacing: 1.5px;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}

.nav__links { display: flex; gap: 20px; font-size: 14px; }
.nav__links a { color: #e5e5e5; white-space: nowrap; transition: color .2s; }
.nav__links a:hover { color: var(--text-dim); }
.nav__links a.is-active { color: #fff; font-weight: 700; }

.nav__right { margin-left: auto; }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.search:focus-within,
.search.has-value { border-color: #fff; background: rgba(0,0,0,.75); }
.search svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; flex: none; }
.search input {
  width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  transition: width .3s;
}
.search:focus-within input,
.search.has-value input { width: 220px; }
.search input::-webkit-search-cancel-button { filter: invert(1); }

/* ---------- Hero ---------- */
.hero {
  --hero-pad-bottom: clamp(90px, 14vh, 170px);
  position: relative;
  min-height: min(56.25vw, 92vh);
  height: 92vh;
  max-height: 900px;
  overflow: hidden;
  background: #000;
}
.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) var(--hero-pad-bottom);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0s linear 1s;
}
.hero__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 0s;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__slide.is-active .hero__bg { animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__slide::before,
.hero__slide::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__slide::before { background: linear-gradient(77deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 35%, rgba(0,0,0,0) 70%); }
.hero__slide::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(20,20,20,.6) 18%, rgba(20,20,20,0) 45%); }

.hero__content {
  position: relative;
  z-index: 2;
  max-width: min(700px, 100%);
}
/* 切換時每一層由下而上淡入：越上面的層越快到位，越下面越慢 */
.hero__slide.is-active .hero__content > * { animation: heroIn var(--in-ms, .9s) cubic-bezier(.2,.8,.2,1) both; }
.hero__content > .hero__badge    { --in-ms: .6s; }
.hero__content > .hero__title    { --in-ms: .8s; }
.hero__content > .hero__subtitle { --in-ms: 1s; }
.hero__content > .hero__meta     { --in-ms: 1.2s; }
.hero__content > .hero__tagline  { --in-ms: 1.4s; }
.hero__content > .hero__actions  { --in-ms: 1.6s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(48px); } }

/* 輪播指示條：進度動畫跑完就換下一張；滑過文字區或開啟詳細資訊時暫停 */
.hero__dots {
  position: absolute;
  right: var(--gutter);
  bottom: var(--hero-pad-bottom);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero__dot {
  position: relative;
  width: 36px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255,255,255,.3);
  overflow: hidden;
}
.hero__dot::before { content: ""; position: absolute; inset: -10px 0; }
.hero__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dot.is-active::after { animation: heroProgress var(--slide-ms, 7000ms) linear forwards; }
@keyframes heroProgress { to { transform: scaleX(1); } }
.hero:has(.hero__content:hover) .hero__dot.is-active::after,
body.is-locked .hero__dot.is-active::after { animation-play-state: paused; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ddd;
  margin-bottom: 12px;
}
.hero__badge b {
  font-family: "Bebas Neue", sans-serif;
  color: var(--accent);
  font-size: 24px;
  letter-spacing: 1px;
  font-weight: 400;
}
.hero__title {
  margin: 0;
  font-size: clamp(36px, 5.6vw, 76px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 1px;
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
}
.hero__subtitle {
  margin: 6px 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: 3px;
  color: #ddd;
}
.hero__meta { margin-top: 16px; }
.hero__tagline {
  margin: 14px 0 0;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.65;
  color: #e5e5e5;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.hero__actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 14px;
  color: #ddd;
}
.meta__match { color: var(--accent-soft); font-weight: 700; }
.meta__box {
  border: 1px solid rgba(255,255,255,.45);
  padding: 0 6px;
  font-size: 12px;
  line-height: 20px;
  border-radius: 3px;
}
.meta__dot { color: var(--text-faint); }
.meta__badge {
  padding: 0 8px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
  border: 1px solid #fff;
  border-radius: 3px;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 26px 0 20px;
  border: 0;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 700;
  transition: background-color .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 24px; height: 24px; flex: none; }
/* hover 時斜塊從左側掃入蓋滿按鈕：白、灰按鈕掃成紅底白字，紅按鈕掃成白底黑字
   （isolation 讓 ::before 疊在底色之上、文字之下） */
.btn--primary,
.btn--ghost,
.btn--red {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color .3s ease, transform .15s, box-shadow .3s;
}
.btn--primary::before,
.btn--ghost::before,
.btn--red::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50%;
  right: -50%;
  z-index: -1;
  background: var(--accent);
  transform: translateX(-100%) skewX(0deg);
  transition: transform .35s ease;
}
.btn--primary:hover::before,
.btn--ghost:hover::before,
.btn--red:hover::before { transform: translateX(0) skewX(45deg); }
.btn--primary { background: #fff; color: #000; }
.btn--primary:hover { color: #fff; }
.btn--red { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(229,9,20,.35); }
.btn--red::before { background: #fff; }
.btn--red:hover { color: #000; box-shadow: 0 8px 26px rgba(255,255,255,.25); }
.btn.btn--cta { margin-top: 10px; height: 52px; padding: 0 30px 0 24px; font-size: 18px; }
.btn--ghost { background: rgba(109,109,110,.7); color: #fff; }
.modal__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.modal__links .btn.btn--cta { margin-top: 0; }

/* ---------- Rows ---------- */
.rows { position: relative; z-index: 2; margin-top: clamp(-120px, -8vw, -40px); padding-bottom: 40px; scroll-margin-top: 80px; }
.row { margin-bottom: 44px; }
.row:first-child { margin-top: 48px; }
.row__title {
  margin: 0 0 12px;
  padding: 0 var(--gutter);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 700;
}
.row__count { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--text-dim); }
.row__viewport { position: relative; }
.row__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  /* 預留上下空間給 hover 放大的卡片與資訊面板，再用負 margin 抵銷 */
  padding: 64px var(--gutter) 200px;
  margin: -56px 0 -176px;
  scrollbar-width: none;
  pointer-events: none;
}
.row__track > * { pointer-events: auto; }
/* 無限循環的橫列會一直被程式捲動，關掉吸附才不會一卡一卡 */
.row__track.is-looping { scroll-snap-type: none; }
.row__track::-webkit-scrollbar { display: none; }

.row__arrow {
  position: absolute;
  /* 對齊卡片：64px 是 .row__track 的上方 padding，高度跟著卡片寬度（16:9）變 */
  top: 64px;
  height: calc(var(--card-w) * 9 / 16);
  z-index: 11;
  width: calc(var(--gutter) - 4px);
  min-width: 40px;
  border: 0;
  background: rgba(20,20,20,.55);
  opacity: 0;
  transition: opacity .2s, background-color .2s;
}
.row__arrow svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.5; }
.row__arrow--prev { left: 0; }
.row__arrow--next { right: 0; }
.row__viewport:hover .row__arrow:not([disabled]) { opacity: 1; }
.row__arrow:hover { background: rgba(20,20,20,.8); }
.row__arrow[disabled] { pointer-events: none; }

/* ---------- Card ---------- */
.card {
  position: relative;
  flex: 0 0 var(--card-w);
  scroll-snap-align: start;
  border-radius: var(--radius);
  background: var(--bg-elev);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  cursor: pointer;
  outline: none;
}
.card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__video,
.modal__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.card__video.is-playing,
.modal__video.is-playing { opacity: 1; }
.card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 55%);
}
.card__name {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
.card__new {
  position: absolute;
  top: 0;
  right: 10px;
  z-index: 1;
  padding: 4px 8px 5px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.card__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: flex;
  gap: 4px;
}
.card__badges span {
  padding: 1px 7px;
  border: 1px solid #fff;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}

.card__info {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: -6px;
  padding: 14px 14px 16px;
  background: var(--bg-elev);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 24px rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.card__actions { display: flex; gap: 8px; margin-bottom: 12px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  background: rgba(42,42,42,.6);
  transition: border-color .2s;
}
.icon-btn:hover { border-color: #fff; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn--solid { background: #fff; border-color: #fff; color: #000; }
.icon-btn--solid:hover { background: rgba(255,255,255,.8); }
.icon-btn--end { margin-left: auto; }
.card__info .meta { font-size: 12px; }
.card__tags { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 12px; color: #e5e5e5; }
.card__tags li:not(:last-child)::after { content: "•"; margin: 0 6px; color: var(--text-faint); }

@media (hover: hover) and (min-width: 768px) {
  .card:hover,
  .card:focus-visible {
    z-index: 10;
    /* --rx/--ry 由 app.js 依游標位置設定：游標所在的角往下壓 */
    transform: perspective(1000px) scale(1.18) translateY(-18%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    box-shadow: 0 10px 30px rgba(0,0,0,.7);
  }
  .card:hover .card__thumb,
  .card:focus-visible .card__thumb { border-radius: var(--radius) var(--radius) 0 0; }
  /* 卡牌高光：落在翹起來的那一側（--gx/--gy 由 app.js 設定，與游標相反的位置） */
  .card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--gh, 100%); /* 延伸到下方灰色資訊區 */
    z-index: 2;
    border-radius: var(--radius);
    background:
      radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.6) 0%, rgba(255,255,255,.2) 28%, rgba(255,255,255,0) 60%),
      linear-gradient(var(--ga, 135deg), rgba(255,255,255,0) 38%, rgba(255,255,255,.16) 50%, rgba(255,255,255,0) 62%);
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .card:hover::after { opacity: var(--glare, 0); }
  /* 翹起那一側的 1px 邊緣高光：漸層只透出 1px 外框（mask 挖掉內部） */
  .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--gh, 100%);
    z-index: 3;
    padding: 1px;
    border-radius: var(--radius);
    background: linear-gradient(var(--ea, 135deg), rgba(255,255,255,0) 45%, rgba(255,255,255,.95) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .card:hover::before { opacity: var(--edge, 0); }
  .card:hover .card__info,
  .card:focus-visible .card__info { opacity: 1; visibility: visible; }
  .row__track > .card:first-child:hover,
  .row__track > .card:first-child:focus-visible { transform-origin: left center; }
}

/* 觸控裝置沒有 hover 放大，不需要預留空間；讓整條橫列都能左右滑動 */
@media (hover: none), (max-width: 767px) {
  .row__track {
    pointer-events: auto;
    padding: 4px var(--gutter) 8px;
    margin: 0;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .row__arrow { display: none; }
}

.card--soon { cursor: default; }
.card--soon .card__thumb {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, #222 0 12px, #1c1c1c 12px 24px);
  border: 1px dashed #3a3a3a;
}
.card--soon .card__thumb::after { display: none; }
.card--soon span {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  color: #555;
}
.card--soon small { display: block; text-align: center; font-family: "Noto Sans TC", sans-serif; font-size: 12px; letter-spacing: 1px; color: #555; }

/* ---------- Search results ---------- */
.results { padding: 110px var(--gutter) 60px; min-height: 70vh; }
.results__title { margin: 0 0 24px; font-size: 16px; font-weight: 400; color: var(--text-dim); }
.results__title b { color: #fff; }
.results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 40px 10px;
}
.results__grid .card { flex: none; }
.results__empty { color: var(--text-dim); line-height: 1.8; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; overflow-y: auto; padding: 32px 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.72); animation: fade .25s; }
.modal__dialog {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: #181818;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
  animation: pop .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #181818;
}
.modal__close svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.2; }

.modal__hero { position: relative; aspect-ratio: 16 / 9; }
.modal__hero img { width: 100%; height: 100%; object-fit: cover; }
.modal__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #181818 0%, rgba(24,24,24,0) 50%);
}
.modal__heading {
  position: absolute;
  left: clamp(16px, 5%, 48px);
  right: clamp(16px, 5%, 48px);
  bottom: clamp(12px, 5%, 40px);
  z-index: 1;
}
.modal__heading h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4.4vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.modal__heading .hero__actions { margin-top: 0; }

.modal__body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  padding: 8px clamp(16px, 5%, 48px) 40px;
}
.modal__body .meta { margin-bottom: 18px; }
.modal__desc p { margin: 0 0 14px; font-size: 15px; line-height: 1.9; color: #ddd; }
.modal__side { font-size: 14px; line-height: 1.7; }
.modal__side dl { margin: 0; }
.modal__side dt { display: inline; color: var(--text-faint); }
.modal__side dd { display: inline; margin: 0; color: #ddd; }
.modal__side dl div { margin-bottom: 12px; }

.share { margin-top: 24px; padding-top: 20px; border-top: 1px solid #333; }
.share__label { margin: 0 0 12px; color: var(--text-faint); }
.share__list { display: flex; flex-wrap: wrap; gap: 10px; }
.share__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2f2f2f;
  color: #fff;
  transition: background-color .2s, transform .15s;
}
.share__btn svg { width: 19px; height: 19px; }
.share__btn:hover { transform: translateY(-2px); }
.share__btn--facebook:hover { background: #1877f2; }
.share__btn--x:hover { background: #000; box-shadow: inset 0 0 0 1px #555; }
.share__btn--line:hover { background: #06c755; }
.share__btn--linkedin:hover { background: #0a66c2; }
.share__btn--email:hover { background: #555; }
.share__copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid #555;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  transition: border-color .2s, background-color .2s, color .2s;
}
.share__copy svg { width: 16px; height: 16px; }
.share__copy:hover { border-color: #fff; }
.share__copy.is-done { border-color: var(--accent-soft); color: var(--accent-soft); }

.modal__section { padding: 0 clamp(16px, 5%, 48px) 44px; }
.modal__section h3 { margin: 0 0 18px; font-size: 22px; font-weight: 700; }
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.highlights li {
  padding: 16px 18px;
  background: #2f2f2f;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
}
.highlights b { display: block; margin-bottom: 6px; font-size: 15px; }
.highlights span { font-size: 13px; line-height: 1.7; color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer { padding: 40px var(--gutter) 60px; color: var(--text-faint); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .nav { gap: 16px; height: 58px; }
  .nav__logo { font-size: 28px; }
  .nav__links a[data-nav="projects"] { display: none; }
  .search:focus-within input,
  .search.has-value input { width: min(46vw, 200px); }
  .hero { height: 78vh; min-height: 480px; }
  .hero__bg { object-position: 30% center; }
  .hero__slide::before { background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 60%); }
  .hero__dots { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(var(--hero-pad-bottom) - 44px); }
  .hero__slide { justify-content: center; }
  .hero__content { text-align: center; }
  .hero__content .meta,
  .hero__actions { justify-content: center; }
  .btn { height: 42px; font-size: 15px; padding: 0 20px 0 16px; }
  .rows { margin-top: -30px; }
  :root { --card-w: 72vw; }
  .modal { padding: 0; }
  .modal__dialog { border-radius: 0; min-height: 100%; }
  .modal__body { grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Cursor ---------- */
/* 白色圓形 + difference 混合，顯示底下畫面的反色；外層負責位置，::before 負責大小 */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .2s;
}
.cursor.is-visible { opacity: 1; }
.cursor::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: width .3s cubic-bezier(.2,.8,.2,1), height .3s cubic-bezier(.2,.8,.2,1);
}
.cursor.is-hover::before { width: 64px; height: 64px; }
.cursor.is-down::before { width: 7px; height: 7px; }
.cursor.is-hover.is-down::before { width: 52px; height: 52px; }
