/* =========================================================
   GFC Gamer's Fighting Club
   色彩：color_rules.ai ／ 字型：Panchang + Noto Sans CJK TC
   ========================================================= */

@font-face {
  font-family: "Panchang";
  src: url("../assets/fonts/Panchang-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Panchang";
  src: url("../assets/fonts/Panchang-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* brand tokens (color_rules.ai) */
  --ink: #141414;
  --mist: #efefef;
  --volt: #d1fc2c;
  --white: #ffffff;
  --pulse: #6831ff;

  --ink-deep: #0a0a0a;
  --line: rgba(239, 239, 239, 0.07);
  --glass-fill: rgba(28, 28, 28, 0.42);
  --glass-ring: rgba(239, 239, 239, 0.28);

  --f-display: "Panchang", "Noto Sans TC", sans-serif;
  --f-cjk: "Noto Sans CJK TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --ease-out: cubic-bezier(0.16, 0.84, 0.12, 1);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-deep);
  color: var(--mist);
  font-family: var(--f-cjk);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 900; }

:focus-visible { outline: 2px solid var(--volt); outline-offset: 4px; }

/* ---------- 斜角矩形 ---------- */
.chamfer {
  --c: clamp(18px, 2.2vw, 34px);
  clip-path: polygon(0 var(--c), var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
}
/* 按鈕與標籤：只切左上、右下兩角 */
.chamfer-4 {
  --c: 14px;
  clip-path: polygon(0 var(--c), var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
}

/* 1px 斜角描邊：外框 + 內框以 evenodd 挖空（左上、右下斜角） */
.chamfer-4.ring::after,
.tag::after,
.btn--glass::after,
.nav__bar::after {
  --b: 1px;
  --k: calc(var(--c) + var(--b) * 0.414);
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--ring-color, var(--glass-ring));
  clip-path: polygon(evenodd,
    0 var(--c), var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c),
    var(--b) var(--k), var(--k) var(--b), calc(100% - var(--b)) var(--b), calc(100% - var(--b)) calc(100% - var(--k)), calc(100% - var(--k)) calc(100% - var(--b)), var(--b) calc(100% - var(--b)), var(--b) var(--k));
}
.nav__bar::after {
  background: linear-gradient(100deg, rgba(239, 239, 239, 0.32), rgba(239, 239, 239, 0.06) 40%, rgba(209, 252, 44, 0.3));
}

/* ---------- 磨砂玻璃 ---------- */
.glass {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* ---------- 背景光暈 + 網格 ----------
   光暈只用放射漸層本身的柔邊，不加 filter: blur（大面積模糊每幀都要重算，是卡頓主因之一） */
.atmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--ink-deep);
}
.glow { position: absolute; }
.glow--volt {
  width: 70vmax; height: 70vmax;
  top: -30vmax; right: -24vmax;
  background: radial-gradient(circle, rgba(209, 252, 44, 0.11), rgba(209, 252, 44, 0.04) 35%, transparent 65%);
}
.glow--pulse {
  width: 80vmax; height: 80vmax;
  bottom: -38vmax; left: -30vmax;
  background: radial-gradient(circle, rgba(104, 49, 255, 0.16), rgba(104, 49, 255, 0.05) 38%, transparent 66%);
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}

/* ---------- 導航 ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 50;
}
.nav__bar {
  --c: 14px;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 72px);
  padding: 14px clamp(18px, 2.4vw, 36px);
  transition: background-color 0.4s ease;
}
.nav.is-scrolled .nav__bar { background: rgba(20, 20, 20, 0.62); }
.nav__logo img { width: clamp(112px, 9vw, 160px); height: auto; }
.nav__links {
  display: flex;
  gap: clamp(18px, 4.5vw, 84px);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  color: rgba(239, 239, 239, 0.78);
  transition: color 0.25s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.yt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(239, 239, 239, 0.78);
  transition: color 0.25s ease, transform 0.3s var(--ease-out);
}
.yt-icon svg { width: 22px; height: auto; fill: currentColor; }
.yt-icon:hover { color: var(--volt); transform: translateY(-1px); }
.nav .yt-icon { margin-left: auto; }
.nav__type {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.62rem;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: right;
  color: var(--mist);
}

/* ---------- 按鈕 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 13.5em;
  padding: 0.95em 1.9em;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  font-weight: 900;
  line-height: 1;
  transition: transform 0.35s var(--ease-out), background-color 0.3s ease, color 0.3s ease;
}
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--white); }
.btn__icon { width: 0.72em; height: 0.86em; fill: currentColor; transition: transform 0.35s var(--ease-out); }
.btn--solid { background: var(--volt); color: var(--ink); }
.btn--solid:hover { background: var(--white); }
.btn--solid:hover .btn__icon { transform: translateX(4px); }
.btn--glass {
  --ring-color: rgba(239, 239, 239, 0.4);
  background: rgba(239, 239, 239, 0.12);
  color: var(--white);
}
.btn--glass:hover { background: rgba(239, 239, 239, 0.22); }
.btn:active { transform: translateY(1px) scale(0.99); }

/* ---------- 標題動態（kinetic type） ----------
   筆刷式揭露：一道細斜的螢光筆刷由左向右快速劃過，文字跟在筆刷後方出現。
   同一組標題（例：近期賽事 → RECENT → SERIES）一行接一行輪流劃過。
   文字以 clip-path 隱藏，揭露邊緣與筆刷同步，筆刷前方的字永遠看不到。 */
.kinetic { position: relative; display: inline-block; }
.kinetic .ln {
  --d: 0.42s;
  --ld: calc(var(--l, 0) * 0.3s + var(--g, 0s));
  display: block;
}
.kinetic .ln__w { position: relative; display: inline-block; }
.kinetic .ln__t {
  display: inline-block;
  /* 用 padding 預留字形溢出空間，inset 只用非負值 */
  padding: 0.12em 0.12em 0.16em;
  margin: -0.12em -0.12em -0.16em;
  clip-path: inset(0 100% 0 0);
}
.kinetic .ln__b {
  position: absolute;
  top: 6%;
  bottom: 10%;
  left: 0;
  width: 0.16em;
  margin-left: -0.08em;
  background: var(--volt);
  transform: skewX(-16deg);
  opacity: 0;
  pointer-events: none;
}
.kinetic.is-in .ln__t { animation: brush-text var(--d) cubic-bezier(0.55, 0, 0.3, 1) var(--ld) forwards; }
.kinetic.is-in .ln__b { animation: brush-bar var(--d) cubic-bezier(0.55, 0, 0.3, 1) var(--ld) forwards; }
@keyframes brush-text {
  to { clip-path: inset(0 0 0 0); }
}
@keyframes brush-bar {
  0% { left: 0; opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Flow Party 式轉場：區塊帶著傾斜升起，隨捲動進度轉正（由 JS 寫入 transform） */
[data-tilt] { transform-origin: 50% 100%; will-change: transform; }

/* 手繪線條 */
.draw path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.4s var(--ease-out) 0.5s;
}
.draw.is-in path { stroke-dashoffset: 0; }
.draw.is-in path + path { transition-delay: 0.9s; }

/* ---------- 01 HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__ambient { display: none; }
/* 直式螢幕：影片完整顯示，上下用同一支影片的模糊光暈補滿 */
@media (orientation: portrait) {
  .hero__video {
    inset: var(--hero-top, 72px) 0 auto;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }
  /* 內容接在影片下方，按鈕壓在影片下緣 */
  .hero { min-height: 0; }
  .hero .hero__content { padding-top: calc(var(--hero-top, 72px) + 56.25vw); }
  .hero .hero__ctas {
    margin-bottom: 8px;
    transform: translateY(-50%);
  }
  .hero__ambient {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    filter: blur(24px) brightness(0.75);
    transform: scale(1.2);
  }
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--ink-deep) 0%, rgba(10, 10, 10, 0.55) 26%, transparent 55%),
    linear-gradient(to right, rgba(10, 10, 10, 0.55), transparent 50%),
    radial-gradient(ellipse 60% 50% at 18% 85%, rgba(104, 49, 255, 0.18), transparent 70%);
}
.hero__content {
  width: 100%;
  padding: 0 var(--gutter) clamp(48px, 9vh, 104px);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: clamp(24px, 4vh, 40px);
}
.hero__title {
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--white);
}
.hero__sub {
  margin-top: 14px;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 500;
  color: rgba(239, 239, 239, 0.86);
}

/* ---------- 00 開場動畫（進站自動播放，原滾動序列幀） ---------- */
.intro { display: none; }
.intro-lock, .intro-lock body { overflow: hidden; }
.intro-on .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: var(--ink-deep);
  transition: opacity 0.9s var(--ease-out), visibility 0s linear 0.9s;
}
.intro__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.intro__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 75% at 50% 50%, transparent 55%, rgba(10, 10, 10, 0.7) 100%);
}
/* 結束：淡出並微微放大，露出 hero */
.intro.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.intro.is-out .intro__video { transform: scale(1.06); }

.intro__skip {
  position: absolute;
  right: var(--gutter);
  bottom: calc(clamp(28px, 6vh, 56px) + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85em 1.3em;
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--white);
  background: rgba(239, 239, 239, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.intro__skip svg { width: 0.7em; height: 0.84em; fill: currentColor; }
.intro__skip:hover { background: var(--volt); color: var(--ink); }
.intro__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(239, 239, 239, 0.08);
}
.intro__bar span {
  position: absolute;
  inset: 0;
  background: var(--volt);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* 直式螢幕（手機）：16:9 畫面若用 cover 只剩中間約 1/4，GFC 會被切掉。
   改成保留畫面中央約 62% 的寬度（標誌、RESTLESS 都在中央），
   垂直置中，上下緣漸隱到深色底，不會出現硬邊 */
.intro__ambient { display: none; }
@media (orientation: portrait) {
  /* 上下空白用同一支影片的模糊光暈補滿（與 hero 手機版一致） */
  .intro__ambient {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: blur(28px) brightness(0.55);
    transform: scale(1.25);
  }
  .intro__video {
    inset: 50% auto auto 50%;
    width: 170vw;
    height: auto;
    aspect-ratio: 16 / 9;
    translate: -50% -50%;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  }
  .intro__fade { background: radial-gradient(ellipse 120% 60% at 50% 50%, transparent 50%, rgba(10, 10, 10, 0.6) 100%); }
  .intro__skip { left: 50%; right: auto; translate: -50% 0; }
  /* 有 9:16 直式版影片時：直接滿版 cover，不用遮罩和光暈 */
  .intro--tall .intro__ambient { display: none; }
  .intro--tall .intro__video {
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    translate: none;
    object-fit: cover;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---------- 03 SERVICES ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: clamp(40px, 8vh, 96px) 6px;
}
.services__heading { display: none; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(560px, 88vh, 900px);
  padding: clamp(22px, 2.4vw, 40px);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.card__media--zoom {
  transform: scale(1);
  transition: transform 2.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.card--event:hover .card__media--zoom,
.card--event:focus-visible .card__media--zoom { transform: scale(1.08); }
.card__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.62) 0%, transparent 24%),
    linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.4) 30%, transparent 56%);
}
.card--custom .card__shade {
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.22) 0%, transparent 22%),
    linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.35) 28%, transparent 50%);
}
.card:focus-visible { outline: none; }
.card:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 3px var(--volt);
  pointer-events: none;
}
.card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.card__head p {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--white);
}
.card--custom .card__head p { color: var(--ink); }
.tag {
  --c: 5px;
  --ring-color: rgba(255, 255, 255, 0.8);
  position: relative;
  flex: none;
  padding: 3px 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}
.card--custom .tag { --ring-color: var(--ink); color: var(--ink); }
.card__title { display: flex; flex-direction: column; gap: 6px; color: var(--white); }
.card__zh {
  font-size: clamp(2rem, 3.1vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.card__en {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.75vw, 3.3rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.card--custom .card__en { text-transform: none; }

/* ---------- 04 WHAT IS GFC ---------- */
.about { position: relative; }
.about__stage {
  position: relative;
  min-height: clamp(560px, 100vh, 1000px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.about__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.about__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, var(--ink-deep), transparent 22%, transparent 70%, rgba(10, 10, 10, 0.7)),
    radial-gradient(ellipse 50% 40% at 50% 46%, rgba(209, 252, 44, 0.08), transparent 70%);
}
/* 標題圖在兩行之間的透明空隙切成兩張（WHAT IS ／ GFC?），各自完整、分別進場 */
.about__title {
  position: relative;
  display: flex;
  flex-direction: column;
  width: clamp(300px, 60vw, 1080px);
}
.about__part {
  display: block;
  width: 100%;
  height: auto;
  transition: clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1), transform 1.4s var(--ease-out);
}
.about__part--top {
  clip-path: inset(0 100% 0 0);
  transform: translateX(-4%);
}
.about__part--bottom {
  margin-top: 1.955%; /* 原圖兩行間距 55px / 寬 2813px */
  clip-path: inset(0 0 0 100%);
  transform: translateX(5%);
  transition-delay: 0.42s;
}
/* 原檔的手繪底線：GFC 出現後由左往右畫出 */
.about__part--line {
  margin-top: 2.488%; /* 原圖間距 70px / 寬 2813px */
  clip-path: inset(0 100% 0 0);
  transition-delay: 0.95s;
}
.about__title::before {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  top: 31.4%;    /* GFC 從整體高度 316/1006 開始 */
  bottom: 24.9%; /* 到 755/1006 結束，不蓋到底線 */
  background: var(--volt);
  clip-path: inset(0 0 0 100%);
  z-index: 2;
  pointer-events: none;
}
.about__title.is-in .about__part--top,
.about__title.is-in .about__part--bottom,
.about__title.is-in .about__part--line { clip-path: inset(0 0 0 0); transform: none; }
.about__title.is-in::before { animation: wipe-rtl 1s cubic-bezier(0.7, 0, 0.2, 1) 0.2s forwards; }
@keyframes wipe-rtl {
  0% { clip-path: inset(0 0 0 100%); }
  42% { clip-path: inset(0 0 0 0); }
  58% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 100% 0 0); }
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.crosses {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 6%;
  height: 72px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31' height='36'%3E%3Cpath d='M15.5 13v10M10.5 18h10' stroke='%23efefef' stroke-opacity='.55' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 31px 36px;
  background-position: center top;
  pointer-events: none;
}

.about__band {
  --tilt: clamp(28px, 5vw, 80px);
  position: relative;
  margin-top: calc(var(--tilt) * -1);
  padding: calc(var(--tilt) + clamp(48px, 8vh, 96px)) var(--gutter) clamp(64px, 12vh, 140px);
  padding-left: clamp(56px, 9vw, 180px);
  background: var(--volt);
  color: var(--ink);
  clip-path: polygon(0 var(--tilt), 100% 0, 100% 100%, 0 100%);
  overflow-x: clip;
}
.about__band::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: calc(var(--tilt) + 26px);
  background: var(--mist);
  clip-path: polygon(0 var(--tilt), 100% 0, 100% 26px, 0 calc(var(--tilt) + 26px));
}
.about__mark {
  position: absolute;
  left: clamp(8px, 1.6vw, 28px);
  top: calc(var(--tilt) + 26px);
  width: clamp(48px, 6vw, 110px);
  color: var(--ink);
}
.about__mark path { stroke-width: 10; }
.about__quote { margin: 0 0 clamp(28px, 5vh, 56px); }
.about__quote p {
  font-size: clamp(1.45rem, 3vw, 3.2rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.01em;
  max-width: 24em;
  text-indent: -0.62em; /* 開頭引號凸排 */
}
.about__body {
  max-width: 30em;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  font-weight: 500;
  line-height: 1.95;
}
/* 反白標示：底色撐滿整個行高，像選取文字；白字在黑底上看起來較粗，字重降一階修正 */
.about__hl {
  display: inline-block;
  /* 中文字身偏下：縮行高、補下方內距，讓字在底色中上下置中 */
  padding: 0 0.06em 0.1em;
  line-height: 1.35;
  text-indent: 0;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}
.about__zig {
  position: absolute;
  right: clamp(-20px, -1vw, 0px);
  bottom: clamp(24px, 6vh, 72px);
  width: clamp(140px, 18vw, 320px);
  color: var(--ink);
}
/* 簽名檔（黑線、透明底）：進場時由左往右寫出來 */
/* 外層負責進場偵測（不能被裁切，否則 IntersectionObserver 判定看不到），內層圖片做裁切動畫 */
.about__sign { display: block; width: clamp(200px, 30vw, 560px); }
.about__sign img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.6s var(--ease-out) 0.5s;
}
.about__sign.is-in img { clip-path: inset(0 0 0 0); }

/* ---------- 05 CONTACT ---------- */
.contact {
  position: relative;
  padding: clamp(150px, 22vh, 220px) var(--gutter) clamp(96px, 16vh, 180px);
  background: var(--ink-deep);
  text-align: center;
  overflow: hidden;
}
.contact::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 62%;
  width: min(900px, 120vw);
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(209, 252, 44, 0.1), rgba(104, 49, 255, 0.08) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.crosses--tall { top: 0; bottom: auto; height: 108px; }
.contact__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact__kicker {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.contact__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 0 clamp(32px, 5vh, 52px);
}
.contact__lead {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--white);
}
.contact__slant {
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--volt);
  transform: skewX(-13deg);
}
.contact__links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.contact__mail {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.contact__mail:hover { color: var(--volt); border-color: var(--volt); }

.foot {
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  background: var(--ink-deep);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(239, 239, 239, 0.45);
}

/* ---------- RWD ---------- */
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; gap: 10px; padding-inline: var(--gutter); }
  .card { min-height: 78vh; }
  .card__zh { font-size: clamp(2rem, 8vw, 3rem); }
  .card__en { font-size: clamp(1.7rem, 7.4vw, 3rem); }
  .nav__type { display: none; }
  .nav__links { margin-left: auto; }
  .nav .yt-icon { margin-left: 0; }
}
@media (max-width: 600px) {
  .nav { top: 10px; }
  /* 內容左右都對齊導覽列斜角 */
  :root { --edge: 16px; }
  .nav__bar { --c: var(--edge); gap: 16px; padding: 12px var(--edge); }
  .nav__logo { flex: none; }
  .nav__logo img { width: 84px; }
  .nav__bar { gap: 12px; }
  .nav__links { gap: 8px; letter-spacing: 0; }
  /* 導覽列四個連結時放不下，YouTube 留在頁尾聯絡區 */
  .nav .yt-icon { display: none; }
  .nav__links { flex: 1; justify-content: space-between; margin-left: 0; font-size: 0.62rem; letter-spacing: 0.02em; }
  .nav__links a::before { content: ""; position: absolute; inset: -12px -6px; }
  .nav .yt-icon { margin-right: -7px; }
  .hero .hero__content { padding-inline: calc(var(--gutter) + var(--edge)); }
  .hero__ctas { flex-wrap: nowrap; gap: 10px; }
  .hero__ctas .btn { flex: 1 1 0; min-width: 0; padding: 0.9em 0.6em; gap: 8px; font-size: 0.88rem; }
  .hero__sub { font-size: clamp(10px, 3vw, 13px); white-space: nowrap; }
  .btn { min-width: 0; }
  .services { padding-top: 0; }
  .services__heading {
    display: block;
    padding: 12px 0 48px;
    text-align: center;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--white);
  }
  .services__heading .ln__t { margin-inline: 0; margin-bottom: 0; padding: 0 0 0.1em; border-bottom: 2px solid var(--white); }
  .card { padding-inline: var(--edge); }
  .contact .btn { width: auto; min-width: 12em; }
  .about__band { padding-left: var(--gutter); padding-top: calc(var(--tilt) + 110px); }
  /* 手機：簽名不再浮在內文上，改排在內文下方、靠右，像信末落款 */
  .about__sign {
    position: static;
    width: min(49.3vw, 204px);   /* 原 58vw / 240px × 0.85 */
    margin: 24px 0 0 auto;
  }
}

/* ---------- 減少動態 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kinetic .ln__t { clip-path: none; animation: none !important; }
  .kinetic .ln__b { display: none; }
  [data-tilt] { transform: none !important; }
  .draw path { stroke-dashoffset: 0; transition: none; }
  .card__media--zoom { transition: none; }
  .about__part { transition: none; }
  .about__sign img { clip-path: none; transition: none; }
  .about__part--top,
  .about__part--bottom,
  .about__part--line { clip-path: none; transform: none; }
  .about__title::before { display: none; }
  .card--event:hover .card__media--zoom { transform: none; }
}

/* ---------- 直播狀態卡（hero 下方） ---------- */
:root { --live: #ff3b5c; }
.livecard {
  --c: 12px;
  --ring-color: rgba(239, 239, 239, 0.28);
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  max-width: 100%;
  margin-top: clamp(18px, 3vh, 28px);
  padding: 12px 20px 12px 16px;
  color: var(--white);
  font-size: clamp(0.85rem, 1vw, 1rem);
  line-height: 1.3;
  transition: background-color 0.3s ease;
}
.livecard::after {
  --b: 1px;
  --k: calc(var(--c) + var(--b) * 0.414);
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--ring-color);
  clip-path: polygon(evenodd,
    0 var(--c), var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c),
    var(--b) var(--k), var(--k) var(--b), calc(100% - var(--b)) var(--b), calc(100% - var(--b)) calc(100% - var(--k)), calc(100% - var(--k)) calc(100% - var(--b)), var(--b) calc(100% - var(--b)), var(--b) var(--k));
}
.livecard:hover { background: rgba(239, 239, 239, 0.16); }
.livecard__dot {
  width: 9px; height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--volt);
}
.livecard__label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.72em;
  letter-spacing: 0.08em;
  color: var(--volt);
}
.livecard__main { font-weight: 700; font-variant-numeric: tabular-nums; }
.livecard__meta { color: rgba(239, 239, 239, 0.72); min-width: 0; }
.livecard__meta:empty { display: none; }
.livecard__arrow { width: 0.6em; height: 0.72em; fill: currentColor; opacity: 0.7; transition: transform 0.35s var(--ease-out); }
.livecard:hover .livecard__arrow { transform: translateX(3px); }

.livecard[data-state="idle"] .livecard__dot { background: rgba(239, 239, 239, 0.5); }
.livecard[data-state="idle"] .livecard__label { color: rgba(239, 239, 239, 0.7); }
.livecard[data-state="live"] { --ring-color: rgba(255, 59, 92, 0.75); background: rgba(255, 59, 92, 0.16); }
.livecard[data-state="live"] .livecard__label { color: var(--live); }
.livecard[data-state="live"] .livecard__dot { background: var(--live); animation: live-ping 1.6s ease-out infinite; }
.livecard[data-state="live"] .livecard__meta { color: var(--white); font-weight: 700; }
@keyframes live-ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.7); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(255, 59, 92, 0); }
}
.btn--glass.is-live { --ring-color: rgba(255, 59, 92, 0.8); background: rgba(255, 59, 92, 0.28); }
.btn--glass.is-live:hover { background: rgba(255, 59, 92, 0.42); }

@media (max-width: 600px) {
  .livecard { display: flex; width: 100%; padding: 10px 14px; font-size: 0.85rem; }
  .livecard__arrow { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .livecard[data-state="live"] .livecard__dot { animation: none; }
}
