/* TakeHK home1 — Apple gray + brand #696cff + scrollytelling */

:root {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --brand: #696cff;
  --brand-soft: rgba(105, 108, 255, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
  --header-h: 64px;
  --max: var(--me-site-max, 1440px);
  --font: "Inter", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

/* Do NOT set scroll-behavior: smooth here.
   ScrollTrigger.refresh() temporarily scrollTo(0) to remeasure pins;
   with CSS smooth scrolling that becomes a visible yank back to the hero
   when visitors scroll during/just after load. Intentional smooth moves
   use scrollIntoView({ behavior: "smooth" }) in home.js instead. */
html {
  scroll-behavior: auto;
}

/* Late-mounting hero chat iframe must not steal scroll via anchoring. */
#takehk-chat,
#takehk-chat iframe {
  overflow-anchor: none;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Prevent scrollytelling / marquee from widening the layout on small screens */
body.page-home {
  overflow-x: clip;
}

body.page-home #main {
  overflow-x: clip;
  max-width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.15rem;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.btn-primary:hover {
  background: #575bff;
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  font-weight: 500;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-primary {
  text-decoration: none;
}

/* Original take.com footer on home shell */
.page-home .content-backdrop {
  display: none;
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.22);
}

.text-link {
  color: var(--brand);
  font-weight: 500;
}

/* Shared */
.section-inner {
  margin: 0 auto;
  padding: 0;
}

.section-kicker {
  margin: 0 0 0.5rem;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-kicker.light {
  color: #c7c9ff;
}

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3.25rem) 1.25rem 2.75rem;
  overflow: visible;
  text-align: center;
  scroll-margin-top: 88px;
  background-color: #f5f5f7;
  background-image: url("/medias/home/hongkong.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}

#intents {
  scroll-margin-top: 88px;
}

#story {
  scroll-margin-top: 0;
}

.hero-copy {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.eyebrow-brand {
  font-weight: 700;
}

.eyebrow-line span {
  color: var(--brand);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-intents {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.15rem auto 0;
  max-width: 680px;
}

.ai-hero {
  max-width: 640px;
  margin: 1.15rem auto 0;
}

.ai-stream {
  position: relative;
  height: 172px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 18%, #000 46%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 18%, #000 46%, #000 100%);
}

.ai-bubble {
  position: absolute;
  top: 0;
  left: 0;
  max-width: min(26rem, 92%);
  margin: 0;
  padding: 0.48rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #1d1d1f;
  font-size: 0.94rem;
  line-height: 1.45;
  text-align: left;
  animation: ai-bubble-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ai-bubble.is-settled {
  animation: none;
}

@keyframes ai-bubble-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ai-dock {
  position: relative;
  height: 84px;
  margin: 0.6rem 0 0;
  max-width: none;
  overflow: hidden;
  border: 1px solid #c8c8cd;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  transition: border-color 0.2s ease;
}

.ai-dock:hover {
  border-color: #a1a1a6;
}

.ai-dock.is-fixed {
  position: fixed;
  z-index: 1200;
  max-width: none;
  margin: 0;
}

.ai-dock.is-animating {
  transition:
    top 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-dock.is-open {
  border-radius: 0;
  cursor: default;
}

.ai-dock.is-open:hover {
  border-color: #c8c8cd;
}

.ai-watermark {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  z-index: 0;
  transform: translateY(-52%);
  transform-origin: 100% 50%;
  color: rgba(29, 29, 31, 0.08);
  font-size: 3.65rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.ai-dock.is-animating .ai-watermark {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-dock.is-open .ai-watermark {
  transform: translate(-4vw, -2vh) scale(6.4);
}

.ai-dock-face {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 84px;
  padding: 0 6.5rem 0 1.25rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.ai-dock.is-open .ai-dock-face {
  opacity: 0;
  pointer-events: none;
}

.ai-caret {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 2px;
  background: #8e8e93;
  vertical-align: text-bottom;
  animation: ai-caret 1.05s steps(1) infinite;
}

@keyframes ai-caret {
  0%, 46% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.ai-dock-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.35rem 1.35rem;
  opacity: 0;
  pointer-events: none;
}

.ai-dock.is-open .ai-dock-stage {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.35s ease 0.18s;
}

.ai-dock-close {
  align-self: flex-end;
  border: 0;
  background: transparent;
  color: #6e6e73;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.35rem 0.15rem;
}

.ai-dock-close:hover {
  color: var(--text);
}

.ai-thread {
  flex: 1;
  min-height: 0;
}

.ai-composer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  width: min(720px, 100%);
  padding: 0.3rem 0.3rem 0.3rem 1rem;
  border: 1px solid #c8c8cd;
  border-radius: 16px;
  background: #fff;
}

.ai-composer input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.72rem 0;
  color: var(--text);
  font-size: 1rem;
}

.ai-composer input::placeholder {
  color: #a1a1a6;
}

.ai-composer button {
  border: 0;
  background: transparent;
  color: #6e6e73;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.ai-composer button:hover {
  color: var(--text);
}

html.ai-dock-lock,
html.ai-dock-lock body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .ai-dock.is-animating,
  .ai-dock.is-animating .ai-watermark,
  .ai-dock.is-open .ai-dock-stage {
    transition: none;
  }

  .ai-caret,
  .ai-bubble {
    animation: none;
  }
}

.intent-chip .chip-icon i {
  font-size: 1rem;
  line-height: 1;
}

.tag-pill {
  text-decoration: none;
}

@media (max-width: 700px) {
  .hero {
    padding: calc(var(--header-h) + 2.35rem) 1.1rem 2.1rem;
  }

  .hero-intents {
    margin-top: 1.05rem;
  }

  .ai-stream {
    height: 138px;
  }

  .ai-bubble {
    font-size: 0.9rem;
  }

  .ai-dock,
  .ai-dock-face {
    height: 76px;
  }

  .ai-watermark {
    font-size: 2.8rem;
    right: 0.85rem;
  }

  .ai-dock-face {
    padding-right: 4.6rem;
    font-size: 0.98rem;
  }

  .ai-dock.is-open .ai-watermark {
    transform: translate(-2vw, 0) scale(4.2);
  }

  .ai-dock-stage {
    padding: 1rem 1rem 1.1rem;
  }
}

.intent-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem 0.42rem 0.38rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.intent-chip:hover {
  border-color: rgba(105, 108, 255, 0.4);
  background: #fff;
}

.intent-chip.muted {
  padding-left: 0.9rem;
  color: var(--muted);
  background: transparent;
}

.chip-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}

/* Word ticker — bridge strip between section1 (gray) and section2 (white) */
.word-ticker {
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  padding: 1.5rem 0 1.75rem;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  user-select: none;
}

.word-ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.word-ticker-row {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding-right: 0.55em;
  white-space: nowrap;
  font-size: clamp(2.4rem, 7.2vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.wt-fill {
  color: #6e6e73;
}

.wt-stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px #c5c5c9;
  text-stroke: 1.5px #c5c5c9;
}

@media (max-width: 700px) {
  .word-ticker {
    padding: 0.9rem 0 1.1rem;
  }

  .word-ticker-row {
    font-size: clamp(1.7rem, 11vw, 2.6rem);
    gap: 0.45em;
    padding-right: 0.45em;
  }

  .wt-stroke {
    -webkit-text-stroke: 1.1px #c5c5c9;
  }
}

/* Story — section2 white band */
.story {
  position: relative;
  background: #ffffff;
}

.story-track {
  position: relative;
}

.story-pin {
  display: none;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #ffffff;
}

.story-stage {
  position: relative;
  width: var(--me-site-width, min(var(--max), calc(100% - 32px)));
  height: 100%;
  margin: 0 auto;
}

.story-emblem {
  --sat-far: 210;
  --sat-near: 118;
  --emblem-ink: #6e6e73;
  --hk-mask: url("/medias/home/hk-map.svg");
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, 56vw);
  aspect-ratio: 730 / 580;
  z-index: 2;
  will-change: transform, opacity;
}

.hk-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hk-map-layer {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--hk-mask) center / contain no-repeat;
  mask: var(--hk-mask) center / contain no-repeat;
  will-change: opacity;
}

.hk-map-base {
  background: #c5c5ca;
  opacity: 0.9;
}

.hk-map-mid {
  background: #e8e8ed;
  animation: hk-map-breathe 5.6s ease-in-out infinite;
}

.hk-map-svg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hk-map-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.hk-map-svg-wrap path {
  fill: #ffffff;
  opacity: 0;
  pointer-events: none;
}

.hk-map-svg-wrap path.is-shine {
  animation: hk-island-shine 1s ease-in-out 1;
}

@keyframes hk-map-breathe {
  0%,
  100% {
    opacity: 0.22;
  }
  45% {
    opacity: 0.58;
  }
  70% {
    opacity: 0.34;
  }
}

@keyframes hk-island-shine {
  0% {
    opacity: 0;
  }
  28% {
    opacity: 0.9;
  }
  55% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
  }
}

.emblem-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}

.emblem-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(3.6rem, 9vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  color: #1d1d1f;
  line-height: 0.88;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.9);
}

.emblem-sub {
  position: relative;
  z-index: 1;
  margin: 0.25rem 0 0;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--emblem-ink);
  opacity: 0.78;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.85);
}

.emblem-sats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.emblem-sat {
  --sat-base: 1.85rem;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  padding: 0;
  width: max-content;
  height: auto;
  display: block;
  text-align: center;
  font-size: var(--sat-base);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--emblem-ink, #6e6e73);
  white-space: nowrap;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  will-change: transform, opacity;
}

.emblem-sat.size-sm {
  --sat-base: 1.35rem;
  font-weight: 500;
  color: #86868b;
}

.emblem-sat.size-md {
  --sat-base: 1.7rem;
}

.emblem-sat.size-lg {
  --sat-base: 2.15rem;
  font-weight: 700;
  color: #1d1d1f;
}

.emblem-sat.is-static {
  /* orbit radius must be a length — % here is of the label itself (too small) */
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--sat-orbit, 6.5rem))) rotate(calc(var(--a) * -1)) scale(var(--s, 1));
  opacity: 1;
}

.story-emblem-static .emblem-sat {
  --sat-base: 1.05rem;
}

.story-emblem-static .emblem-sat.size-sm { --sat-base: 0.88rem; }
.story-emblem-static .emblem-sat.size-md { --sat-base: 1rem; }
.story-emblem-static .emblem-sat.size-lg { --sat-base: 1.15rem; }

.story-emblem-static .emblem-title {
  font-size: clamp(2.2rem, 11vw, 3.1rem);
  color: #1d1d1f;
}

.story-emblem-static .emblem-sub {
  font-size: clamp(0.78rem, 2.8vw, 0.95rem);
  letter-spacing: 0.12em;
  color: #6e6e73;
}

.story-rail {
  position: absolute;
  top: 0;
  right: 0;
  width: min(46%, 680px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 8vh 0;
  opacity: 0;
  will-change: opacity, transform;
}

.story-rail-head {
  flex: 0 0 auto;
  padding-right: 0.25rem;
}

.story-rail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 0%, #000 94%, transparent);
}

.story-panels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.35rem 0.25rem 0.85rem;
  will-change: transform;
}

.story-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.35rem 1.3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.03);
}

.story-kicker {
  margin: 0 0 0.7rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-heading {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.story-intro-text {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 34rem;
}

.story-panel-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.panel-num {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--brand);
  line-height: 1;
  min-width: 2.2rem;
  padding-top: 0.15rem;
}

.panel-body h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.panel-body p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.panel-body .text-link {
  display: inline-block;
  margin-top: 0.75rem;
}

.story-trust {
  margin: 0.15rem 0 0;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(105, 108, 255, 0.08), rgba(105, 108, 255, 0.03));
  border: 1px solid rgba(105, 108, 255, 0.18);
  display: grid;
  gap: 0.35rem;
}

.story-trust-brand {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.35;
}

.story-trust-brand em {
  font-style: normal;
  color: var(--brand);
}

.story-trust-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.story-trust-line strong {
  color: var(--brand);
  font-weight: 700;
}

.story-mobile .story-trust {
  margin-top: 0.15rem;
}

.intent-chip.is-active {
  border-color: rgba(105, 108, 255, 0.45);
  box-shadow: 0 6px 20px rgba(105, 108, 255, 0.12);
}

/* Mobile stack (default visible under 901px) */
.story-mobile {
  display: block;
  padding: 3rem 1.15rem 2.75rem;
  background: #ffffff;
}

@media (max-width: 900px) {
  .story {
    overflow-x: clip;
  }

  .story-mobile {
    overflow-x: clip;
  }
}

.story-emblem-static {
  --sat-orbit: 48cqmin;
  container-type: size;
  position: relative;
  width: min(360px, 90vw);
  aspect-ratio: 730 / 580;
  margin: 0 auto 2rem;
  left: auto;
  top: auto;
}

.story-mobile-panels {
  display: grid;
  gap: 0.9rem;
  max-width: 560px;
  margin: 0 auto;
}

.story-panel-intro {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 1.35rem 1.25rem 1.4rem;
}

.story-panel-intro .story-heading {
  margin-top: 0.15rem;
}

.story-mobile .story-panel-actions {
  flex-direction: column;
}

.story-mobile .story-panel-actions .btn-primary,
.story-mobile .story-panel-actions .btn-secondary {
  width: 100%;
  justify-content: center;
}

@media (min-width: 600px) and (max-width: 900px) {
  .story-emblem-static {
    width: min(440px, 72vw);
    --sat-orbit: 50cqmin;
    margin-bottom: 2.4rem;
  }

  .story-emblem-static .emblem-sat.size-sm { --sat-base: 0.95rem; }
  .story-emblem-static .emblem-sat.size-md { --sat-base: 1.1rem; }
  .story-emblem-static .emblem-sat.size-lg { --sat-base: 1.28rem; }

  .story-mobile .story-panel-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .story-mobile .story-panel-actions .btn-primary,
  .story-mobile .story-panel-actions .btn-secondary {
    width: auto;
  }
}

@media (max-width: 420px) {
  .story-emblem-static {
    width: min(320px, 94vw);
    --sat-orbit: 50cqmin;
  }
}

@media (min-width: 901px) {
  .story-pin {
    display: block;
  }

  .story-mobile {
    display: none;
  }
}

@media (max-width: 900px) {
  .story-track {
    height: auto !important;
  }

  .story-pin {
    position: static;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-emblem,
  .story-rail,
  .story-panels {
    transform: none !important;
    opacity: 1 !important;
  }

  .hk-map-mid {
    animation: none !important;
    opacity: 0.4;
  }

  .hk-map-svg-wrap path {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* Stats */
.stats {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--brand);
  line-height: 1;
}

.stat-label {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Why — section 純白；stage/media/video 統一 #f2f2f5，人物像浮出 */
.why {
  background: #ffffff;
  color: var(--text);
  padding: 2.5rem 1.25rem 3.75rem;
}

.why-stage {
  --why-radius: 28px;
  --why-surface: #f2f2f5;
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  min-height: min(78vh, 680px);
  border-radius: var(--why-radius);
  overflow: hidden;
  background: var(--why-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 40px rgba(29, 29, 31, 0.06);
}

.why-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--why-surface);
  transition: inset 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.why-stage.is-settled .why-media {
  inset: 8% 2.5% 8% 42%;
  border-radius: 22px;
}

.why-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 40%;
  display: block;
  background: var(--why-surface);
}

.why-glass-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* 疊在視頻上的單一多行徽章：磨砂玻璃 + 細紋理 */
.why-chip {
  position: absolute;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 0.42rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(242, 242, 245, 0.36) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 18px 42px rgba(29, 29, 31, 0.14);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  color: var(--text);
  width: max-content;
  max-width: min(52%, 228px);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.why-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

.why-chip > * {
  position: relative;
  z-index: 1;
}

.why-chip.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.why-chip.is-stack {
  gap: 0.48rem;
}

.why-chip-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.why-chip-ico {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  color: #34c759;
}

.why-chip-main {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #1d1d1f;
}

.why-chip-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.01em;
}

.why-chip-head {
  padding-bottom: 0.42rem;
  margin-bottom: 0.08rem;
  border-bottom: 1px solid rgba(29, 29, 31, 0.1);
}

.why-chip-rating {
  display: grid;
  gap: 0.16rem;
}

.why-chip-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #1d1d1f;
}

.why-chip-stars {
  display: inline-flex;
  gap: 0.12rem;
  color: #ffb340;
}

.why-chip-star {
  width: 0.9rem;
  height: 0.9rem;
}

.why-copy {
  position: relative;
  z-index: 3;
  width: min(40%, 480px);
  padding: 3.2rem 1.6rem 3rem 2.2rem;
  opacity: 0;
  pointer-events: none;
}

.why-stage.is-ready .why-copy {
  opacity: 1;
  pointer-events: auto;
}

.why-kicker {
  margin: 0 0 0.65rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: none;
}

.why-kicker .why-char,
.why-title .why-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
}

.why-kicker .why-char.is-space,
.why-title .why-char.is-space {
  width: 0.28em;
}

.why-title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
  min-height: 2.6em;
}

.why-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 34rem;
  opacity: 0;
  transform: translateY(18px);
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.why-item {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  opacity: 0;
  transform: translateY(22px);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    transform 0.25s ease;
}

.why-item.is-active,
.why-item:hover {
  border-color: rgba(105, 108, 255, 0.35);
  background: rgba(105, 108, 255, 0.06);
  box-shadow: 0 10px 28px rgba(105, 108, 255, 0.08);
}

.why-item strong {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.why-item span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 959px) {
  .why {
    padding: 1.75rem 1rem 2.75rem;
  }

  .why-stage {
    --why-radius: 22px;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .why-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: min(42vh, 320px);
    border-radius: 0;
    flex: 0 0 auto;
  }

  .why-stage.is-settled .why-media {
    inset: auto;
    border-radius: 0;
  }

  .why-video {
    object-position: 78% 40%;
  }

  .why-copy {
    width: 100%;
    padding: 1.4rem 1.15rem 1.6rem;
  }

  .why-title {
    min-height: 0;
    font-size: clamp(1.4rem, 6vw, 1.85rem);
  }

  .why-glass-layer {
    inset: 0;
  }

  .why-chip {
    max-width: min(64%, 200px);
    padding: 0.75rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-media,
  .why-chip,
  .why-item,
  .why-lead,
  .why-kicker,
  .why-title .why-char {
    transition: none !important;
    animation: none !important;
  }
}

/* Providers — image cards + infinite marquee */
.providers {
  padding: 5rem 0 3.5rem;
  overflow: hidden;
}

.providers-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.firm-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.firm-marquee::-webkit-scrollbar {
  display: none;
}

.firm-marquee.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.firm-marquee.is-dragging * {
  cursor: grabbing;
  user-select: none;
}

.firm-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding: 0.35rem 0 0.5rem;
}

.firm-panel {
  position: relative;
  flex: 0 0 auto;
  width: min(300px, 78vw);
  border-radius: 24px;
  overflow: hidden;
  min-height: 380px;
  background: #111;
  cursor: pointer;
  isolation: isolate;
  -webkit-user-drag: none;
}

.firm-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 0.55s ease;
  filter: saturate(0.92);
}

.firm-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.78));
  pointer-events: none;
}

.firm-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.46);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.firm-panel:hover .firm-bg,
.firm-panel.is-hot .firm-bg {
  transform: scale(1.12);
}

.firm-panel:hover::before,
.firm-panel.is-hot::before {
  opacity: 1;
}

.firm-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -42%);
  opacity: 0;
  pointer-events: none;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1d1d1f;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: opacity 0.3s ease, transform 0.35s ease;
  white-space: nowrap;
  cursor: pointer;
}

.firm-panel:hover .firm-cta,
.firm-panel.is-hot .firm-cta {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.firm-body {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #fff;
  transition: transform 0.35s ease;
}

.firm-panel:hover .firm-body,
.firm-panel.is-hot .firm-body {
  transform: translateY(-14px);
}

.firm-tag {
  align-self: flex-start;
  margin-bottom: 0.7rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
}

.firm-tag.is-on {
  background: rgba(52, 199, 89, 0.88);
}

.firm-body h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.firm-body p {
  margin: 0.22rem 0 0;
  opacity: 0.78;
  font-size: 0.82rem;
}

@media (min-width: 900px) {
  .firm-panel {
    width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .firm-track {
    padding-inline: 1.25rem;
  }
}

/* Firm business-card dialog */
.firm-card-dialog {
  width: min(420px, calc(100vw - 1.5rem));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.firm-card-dialog::backdrop {
  background: rgba(29, 29, 31, 0.48);
  backdrop-filter: blur(2px);
}

.firm-card {
  position: relative;
  padding: 1.45rem 1.4rem 1.2rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(105, 108, 255, 0.08), transparent 42%),
    #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
}

.firm-card-close {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.firm-card-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.firm-card-head {
  padding-right: 2rem;
  margin-bottom: 1.05rem;
}

.firm-card-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.firm-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.firm-card-title-main {
  min-width: 0;
  flex: 1 1 auto;
}

.firm-card-licence {
  flex: 0 0 auto;
  max-width: 7.5rem;
  margin-top: 0.12rem;
  text-align: right;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.firm-card-licence-k {
  display: block;
  opacity: 0.78;
}

.firm-card-licence[hidden] {
  display: none !important;
}

.firm-card-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.firm-card-name-alt {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.firm-card-name-alt:empty {
  display: none;
}

.firm-card-meta {
  display: grid;
  gap: 0.78rem;
  margin: 0;
  padding: 1rem 0 0.2rem;
  border-top: 1px solid var(--line);
}

.firm-card-row {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  min-width: 0;
}

.firm-card-row[hidden] {
  display: none !important;
}

.firm-card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.08rem;
  color: var(--brand);
  font-size: 1.05rem;
  line-height: 1;
}

.firm-card-values {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.firm-card-value {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.firm-card-value-main {
  flex: 1 1 auto;
  min-width: 0;
}

.firm-card-value-k {
  margin-right: 0.28rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}

.firm-card-value a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(105, 108, 255, 0.35);
  text-underline-offset: 0.14em;
}

.firm-card-value a:hover {
  color: var(--brand);
  text-decoration-color: rgba(105, 108, 255, 0.7);
}

.firm-card-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0.05rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.firm-card-value.is-copyable:hover .firm-card-copy,
.firm-card-value.is-copyable:focus-within .firm-card-copy {
  opacity: 1;
  pointer-events: auto;
}

.firm-card-copy:hover,
.firm-card-copy.is-copied {
  background: var(--brand-soft);
  color: var(--brand);
}

@media (hover: none) {
  .firm-card-value.is-copyable .firm-card-copy {
    opacity: 0.55;
    pointer-events: auto;
  }
}

.firm-card-note {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.firm-card-note[hidden] {
  display: none !important;
}

/* Districts & Industries */
.districts {
  padding: 2rem 0 1.5rem;
}

.industries {
  padding: 1.5rem 0 4rem;
}

.tag-cloud,
.district-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.tag-pill,
.district-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.tag-pill em,
.district-pill em {
  font-style: normal;
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* CTA */
.cta {
  padding: 0 1.25rem 5rem;
}

.cta-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.75rem;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, #5b5fff 0%, #696cff 45%, #4b4fe0 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 50px rgba(105, 108, 255, 0.28);
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.cta-panel .cta-keep {
  white-space: nowrap;
}

.cta-panel p {
  margin: 0.75rem auto 0;
  max-width: 46rem;
  opacity: 0.9;
}

.cta-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.cta-actions .btn-primary {
  background: #fff;
  color: var(--brand);
}

.cta-actions .btn-primary:hover {
  background: #f2f2ff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .why-kicker,
  .why-lead,
  .why-item,
  .why-title .why-char,
  .story-emblem,
  .story-rail,
  .story-panels {
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
  }
}
