/* =========================================================
   圓夢武士 v2: neon street (after samsy.ninja)
   ========================================================= */
:root {
  --void: #0A0A0E;
  --panel: rgba(14, 14, 20, 0.86);
  --panel-solid: #111118;
  --line: rgba(242, 194, 48, 0.22);
  --line-strong: rgba(242, 194, 48, 0.55);
  --gold: #F2C230;
  --gold-glow: rgba(242, 194, 48, 0.5);
  --text: #ECEAE3;
  --dim: #A29E8E;
  --rec: #FF2D55;
  --ok: #3DFF8E;

  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(96px, 14vh, 160px);
  --cut: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* z-index scale */
  --z-world: 0;
  --z-dim: 1;
  --z-content: 2;
  --z-menu: 28;
  --z-hud: 30;
  --z-tip: 40;
  --z-crt: 50;
  --z-boot: 60;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--void); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 100; padding: 8px 16px; border-radius: 999px; background: var(--gold); color: #111; font-weight: 700; transition: top 0.2s; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
main, .footer { position: relative; z-index: var(--z-content); }
/* Let clicks over the hero fall through to the 3D street: <main> itself must not catch them */
main { pointer-events: none; }
main > :not(.hero) { pointer-events: auto; }

/* =========================================================
   Stage layers
   ========================================================= */
.world {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: var(--z-world);
  display: block; outline: none; touch-action: pan-y; cursor: grab;
}
.world:focus-visible { outline: 2px solid var(--gold); outline-offset: -6px; }
.world.is-passive { pointer-events: none; }
.no-webgl .world { display: none; }
.dim { position: fixed; inset: 0; z-index: var(--z-dim); background: var(--void); opacity: 0; pointer-events: none; }

/* CRT scanlines over the whole page (the canvas has its own shader version) */
.crt {
  position: fixed; inset: 0; z-index: var(--z-crt); pointer-events: none; opacity: calc(0.55 * (1 - var(--hero-p, 0)));
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
}

.tip {
  position: fixed; left: 0; top: 0; z-index: var(--z-tip); pointer-events: none;
  max-width: 320px; padding: 6px 10px; font-size: 12px; line-height: 1.5; letter-spacing: 0.04em;
  background: rgba(10, 10, 14, 0.92); color: var(--gold); border: 1px solid var(--line-strong);
  opacity: 0; transition: opacity 0.2s;
}
.tip.is-on { opacity: 1; }

/* =========================================================
   Boot
   ========================================================= */
.boot {
  position: fixed; inset: 0; z-index: var(--z-boot); display: grid; place-items: center;
  background: var(--void); transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.reduce-motion .boot, .motion-failed .boot { display: none; }
.boot__inner { width: min(320px, 80vw); display: grid; gap: 16px; }
.boot__logo { height: 64px; width: auto; }
.boot__log { min-height: 120px; font-size: 13px; line-height: 1.8; color: var(--dim); }
.boot__log li::before { content: "> "; color: var(--gold); }
.boot__log li:last-child { color: var(--text); }
.boot__bar { height: 2px; background: rgba(242, 194, 48, 0.15); }
.boot__bar span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); box-shadow: 0 0 12px var(--gold-glow); }
.boot__pct { font-size: 13px; color: var(--gold); letter-spacing: 0.1em; }

.booting [data-scramble-load] { visibility: hidden; }

/* =========================================================
   Pills, tags, HUD boxes
   ========================================================= */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(14, 14, 20, 0.72); color: var(--text); border: 1px solid var(--line);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.5s var(--ease);
}
.pill i { font-size: 1.1em; }
.pill:hover { border-color: var(--line-strong); color: var(--gold); }
.pill:active { transform: scale(0.98); }
.pill.is-current { color: var(--gold); border-color: var(--line-strong); }
.pill--gold.is-current { color: #111; border-color: var(--gold); }
.pill--gold { background: var(--gold); color: #111; border-color: var(--gold); box-shadow: 0 0 22px var(--gold-glow); }
.pill--gold:hover { background: #FFD45A; color: #111; box-shadow: 0 0 34px var(--gold-glow); }
.pill--line { background: transparent; border-color: var(--line-strong); }
.pill--line:hover { background: var(--gold); color: #111; }
.pill--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.pill--lg { min-height: 60px; padding: 0 40px; font-size: 18px; letter-spacing: 0.18em; }

.tag {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 4px;
  font-size: 12px; letter-spacing: 0.06em; color: var(--gold); border: 1px solid var(--line-strong);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.tag:hover { background: var(--gold); color: #111; }

.hud-box {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.hud-box__label { font-size: 12px; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 12px; }

.social { display: flex; gap: 10px; }
.social__btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(14, 14, 20, 0.6); font-size: 20px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.social__btn:hover { background: var(--gold); color: #111; }


/* =========================================================
   HUD top bar + menu
   ========================================================= */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-hud);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px var(--gutter); transition: background-color 0.4s var(--ease);
}
.hud-top.is-solid { background: rgba(10, 10, 14, 0.88); border-bottom: 1px solid var(--line); }
.hud-logo { justify-self: start; }
.hud-logo img { height: 42px; width: auto; }
.hud-nav { display: flex; gap: 8px; }
.hud-status { justify-self: end; display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.08em; color: var(--gold); white-space: nowrap; }
.hud-status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.hud-status__sep { color: var(--dim); }

.hud-menu {
  position: fixed; right: var(--gutter); bottom: 20px; z-index: var(--z-hud);
  width: 56px; height: 40px; border: 0; border-radius: 10px; background: var(--gold); color: #111;
  display: grid; place-items: center; box-shadow: 0 0 22px var(--gold-glow);
  transition: transform 0.5s var(--ease), background-color 0.3s var(--ease);
}
.hud-menu:hover { background: #FFD45A; }
.hud-menu:active { transform: scale(0.96); }
.hud-menu__dots { display: flex; gap: 4px; }
.hud-menu__dots i { width: 5px; height: 5px; border-radius: 50%; background: #111; transition: transform 0.5s var(--ease); }
.menu-open .hud-menu__dots i:nth-child(1) { transform: translateX(9px) scale(1.4); }
.menu-open .hud-menu__dots i:nth-child(3) { transform: translateX(-9px) scale(1.4); }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: rgba(8, 8, 12, 0.97);
  display: grid; align-content: center; gap: 48px; padding: 96px var(--gutter) 96px;
}
.menu[hidden] { display: none; }
.menu__links { display: grid; gap: 4px; }
.menu__links a {
  width: fit-content; font-size: clamp(30px, 6vw, 56px); font-weight: 900; line-height: 1.3;
  opacity: 0; transform: translateY(16px); animation: menu-in 0.5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.menu__links a:hover { color: var(--gold); text-shadow: 0 0 24px var(--gold-glow); }
.menu__jump { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--dim); }
.menu__more { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.menu__group { display: grid; align-content: start; gap: 2px; }
.menu__label { font-size: 12px; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 8px; }
.menu__group a { width: fit-content; min-height: 36px; display: flex; align-items: center; font-size: 15px; color: var(--dim); transition: color 0.3s var(--ease); }
.menu__group a:hover { color: var(--gold); }
@media (max-width: 767px) { .menu { align-content: start; overflow-y: auto; gap: 32px; } .menu__more { gap: 20px 40px; } }
.menu__jump a:hover { color: var(--gold); }
@keyframes menu-in { to { opacity: 1; transform: none; } }

@media (max-width: 1100px) { .hud-nav { display: none; } .hud-top { grid-template-columns: 1fr auto; } }
@media (max-width: 640px) { .hud-status { display: none; } .hud-logo img { height: 36px; } }

/* =========================================================
   HERO: HUD over the street
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; pointer-events: none; }
.hero a, .hero button, .zone { pointer-events: auto; }
/* Scroll fade is instant; the "exploring" fade eases in via a registered custom property */
@property --explore { syntax: "<number>"; inherits: true; initial-value: 0; }
.hero > * { opacity: calc((1 - var(--hero-p, 0) * 1.6) * (1 - var(--explore) * 0.85)); }
.hero__copy { transition: --explore 0.5s var(--ease); }
.world-focus .hero__copy { --explore: 1; }

.hero__controls {
  position: absolute; left: var(--gutter); top: 92px;
  width: 228px; padding: 18px 18px 16px;
}
.controls { display: grid; gap: 12px; font-size: 13px; color: var(--dim); }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.control-label { white-space: nowrap; }
@media (pointer: coarse) { .controls--fine { display: none; } }

/* Gold keycaps; the arrows form a real D-pad you can press and hold */
.key {
  display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px;
  border: 0; border-radius: 6px; background: var(--gold); color: #111;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  box-shadow: 0 3px 0 #8a6a10, 0 0 14px rgba(242, 194, 48, 0.25);
  touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease), background-color 0.2s var(--ease);
}
button.key:hover { background: #FFD45A; }
.key.is-down, button.key:active { transform: translateY(3px); box-shadow: 0 0 0 #8a6a10, 0 0 22px rgba(242, 194, 48, 0.6); }
.key i { font-size: 14px; }
.key--wide { min-width: 76px; }
.key--static { background: rgba(242, 194, 48, 0.15); color: var(--gold); box-shadow: inset 0 0 0 1px var(--line-strong); }
.dpad {
  display: grid; grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(2, 34px); gap: 5px;
  grid-template-areas: ". up ." "left down right";
}
.dpad__up { grid-area: up; } .dpad__left { grid-area: left; } .dpad__down { grid-area: down; } .dpad__right { grid-area: right; }
.hero__hint { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: 0.06em; color: var(--gold); }
.world-focus .hero__hint { color: var(--ok); }
@media (max-height: 760px) and (pointer: fine) {
  /* short laptop screens: keep the D-pad, drop the extras */
  .hero__controls { padding: 12px 14px; top: 84px; }
  .hero__controls .hud-box__label, .hero__controls .control-row[aria-hidden], .hero__hint { display: none; }
}

.zone {
  position: absolute; right: var(--gutter); top: 50%; width: min(380px, calc(100vw - 2 * var(--gutter)));
  padding: 20px 22px 22px; display: grid; justify-items: start; gap: 12px;
  opacity: 0; transform: translateY(-50%) translateX(24px);
  transition: opacity 0.3s var(--ease), transform 0.5s var(--ease);
}
.zone.is-on { opacity: 1; transform: translateY(-50%); }
.zone .hud-box__label { margin: 0; }
.zone__head { display: flex; align-items: center; gap: 12px; }
.zone__icon { font-size: 30px; color: var(--gold); }
.zone__title { font-size: 22px; line-height: 1.4; font-weight: 900; text-wrap: balance; }
.zone__body { font-size: 14px; line-height: 1.8; color: var(--dim); max-height: 7.2em; overflow: hidden; }

.hero__copy { position: absolute; left: var(--gutter); bottom: clamp(88px, 12vh, 128px); max-width: 680px; }
.hero__title { display: grid; font-size: clamp(44px, 6vw, 96px); font-weight: 900; line-height: 1.08; letter-spacing: 0.04em; text-shadow: 0 0 28px rgba(242, 194, 48, 0.35); }
.hero__line:nth-child(2) { color: var(--gold); }
.hero__sub { margin: 14px 0 20px; font-size: clamp(15px, 1.4vw, 18px); letter-spacing: 0.22em; color: var(--text); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }

.hero__skip { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); }
.hero__skip:active { transform: translateX(-50%) scale(0.98); }
.hero__fallback { display: none; }
.no-webgl .hero__controls { display: none; }
.no-webgl .hero__fallback {
  display: block; position: absolute; right: 8vw; top: 50%; width: min(44vw, 600px);
  transform: translateY(-50%); filter: drop-shadow(0 0 40px rgba(242, 194, 48, 0.35));
}

@media (max-width: 767px) {
  .hero__controls { top: 76px; transform: none; width: auto; padding: 10px 12px; }
  .hero__controls .hud-box__label, .hero__controls .controls { display: none; }
  .hero__hint { margin: 0; padding: 0; border: 0; }
  /* top of the screen so the character stays visible */
  .zone { top: 120px; transform: translateY(-12px); }
  .zone.is-on { transform: none; }
  .hero__copy { bottom: 76px; right: var(--gutter); }
  .hero__skip { left: var(--gutter); transform: none; font-size: 13px; }
  .hero__skip:active { transform: scale(0.98); }
  .zone.is-on ~ .hero__copy { opacity: 0; }
}

/* =========================================================
   Section scaffolding
   ========================================================= */
section:not(.hero) { padding-block: var(--section-y); }
.sec-head { margin-bottom: clamp(40px, 6vh, 64px); }
.sec-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.sec-num { display: flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 12px; }
.sec-num::after { content: ""; width: 48px; height: 1px; background: var(--line-strong); }
.sec-title { font-size: clamp(36px, 5vw, 72px); font-weight: 900; line-height: 1.15; letter-spacing: 0.04em; text-shadow: 0 0 24px rgba(242, 194, 48, 0.25); }
.motion [data-scramble-reveal]:not(.is-revealed) { opacity: 0; }

.motion .reveal { opacity: 0; transform: translateY(24px); }
.motion .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms); }

/* CRT monitor frame used by the reel, report screens and the lead story */
.monitor { position: relative; padding: 12px; border-radius: 20px; background: #07070A; border: 1px solid var(--line); box-shadow: 0 0 0 6px #111118, 0 30px 80px rgba(0, 0, 0, 0.6); }
.monitor__screen { position: relative; display: block; overflow: hidden; border-radius: 12px; background: #000; }
.monitor__screen::after, .screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55);
}
.monitor__bar { display: flex; align-items: center; gap: 10px; padding: 12px 6px 2px; font-size: 13px; letter-spacing: 0.08em; color: var(--dim); }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px var(--rec); animation: rec 1.4s steps(2) infinite; }
.reel-paused .rec { animation: none; opacity: 0.35; }
@keyframes rec { 50% { opacity: 0.2; } }
.monitor__toggle {
  margin-left: auto; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--gold); display: grid; place-items: center; font-size: 16px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.monitor__toggle:hover { background: var(--gold); color: #111; }

/* =========================================================
   Reel
   ========================================================= */
.reel { padding-top: clamp(64px, 10vh, 120px); }
.monitor--reel { max-width: 1100px; margin-inline: auto; }
.reel__video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(0.85) contrast(1.05); }

/* =========================================================
   01. Services
   ========================================================= */
.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.svc {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 280px;
  padding: 28px 24px 22px; background: var(--panel); border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.svc:hover { border-color: var(--line-strong); background: rgba(24, 22, 14, 0.9); box-shadow: inset 0 0 40px rgba(242, 194, 48, 0.08); }
.svc__icon { font-size: 40px; color: var(--gold); filter: drop-shadow(0 0 10px var(--gold-glow)); transition: transform 0.5s var(--ease); }
.svc:hover .svc__icon { transform: translateY(-3px); }
.svc__title { margin: 22px 0 10px; font-size: clamp(18px, 1.4vw, 22px); font-weight: 900; line-height: 1.4; text-wrap: balance; }
.svc:hover .svc__title { color: var(--gold); text-shadow: 0 0 16px var(--gold-glow); }
.svc__desc { color: var(--dim); font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.link-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; font-weight: 700; color: var(--gold); }
.link-arrow i { transition: transform 0.5s var(--ease); }
.link-arrow:hover i { transform: translate(2px, -2px); }

@media (max-width: 1023px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc { min-height: 0; } }
@media (max-width: 599px) {
  .services__grid { grid-template-columns: 1fr; gap: 8px; }
  .svc { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; padding: 18px 16px 10px; }
  .svc > * { grid-column: 2; }
  .svc__icon { grid-column: 1; grid-row: 1 / span 3; font-size: 32px; }
  .svc__title { margin: 0 0 4px; }
}

/* =========================================================
   Stats: LED digits with unlit "8" segments behind
   ========================================================= */
.stats { padding-block: clamp(48px, 8vh, 96px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 32px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dt { font-size: 14px; letter-spacing: 0.14em; color: var(--dim); margin-bottom: 8px; }
.stat dd { display: flex; align-items: baseline; gap: 10px; }
.stat__num {
  position: relative; font-size: clamp(56px, 6.6vw, 104px); font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--gold); text-shadow: 0 0 22px var(--gold-glow);
}
.stat__num::before { content: attr(data-ghost); position: absolute; inset: 0; color: rgba(242, 194, 48, 0.07); text-shadow: none; }
.stat__unit { font-size: 16px; font-weight: 700; color: var(--text); }
@media (max-width: 767px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat { padding: 24px 16px; }
}

/* =========================================================
   02. Reports
   ========================================================= */
.reports { position: relative; overflow: hidden; isolation: isolate; }
.reports__bg { position: absolute; z-index: -1; left: 50%; top: 6%; width: min(1700px, 140vw); max-width: none; translate: -50% 0; opacity: 0.06; pointer-events: none; }
.reports__intro { display: grid; justify-items: start; gap: 18px; max-width: 560px; }
.reports__lead { color: var(--dim); line-height: 1.9; }

.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.screens__item--feature { grid-column: span 2; grid-row: span 2; }
.screen {
  position: relative; display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.screens__item--feature .screen { aspect-ratio: auto; }
.screen img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.85); transition: filter 0.3s var(--ease), transform 0.8s var(--ease); }
.screen:hover { border-color: var(--gold); box-shadow: 0 0 30px rgba(242, 194, 48, 0.25); }
.screen:hover img { filter: saturate(1) brightness(1); transform: scale(1.04); animation: flicker 0.25s steps(2) 2; }
@keyframes flicker { 50% { opacity: 0.82; } }
.screen__play {
  position: absolute; left: 50%; top: 50%; z-index: 1; translate: -50% -50%;
  width: 56px; height: 56px; border-radius: 999px; background: var(--gold); color: #111;
  display: grid; place-items: center; font-size: 20px; box-shadow: 0 0 26px var(--gold-glow);
  transition: transform 0.5s var(--ease);
}
.screens__item--feature .screen__play { width: 84px; height: 84px; font-size: 30px; }
.screen:hover .screen__play { transform: scale(1.1); }
@media (max-width: 767px) {
  .reports__lead br { display: none; }
  .screens { grid-template-columns: 1fr 1fr; gap: 8px; }
  .screens__item--feature, .screens__item:last-child { grid-column: 1 / -1; grid-row: auto; }
  .screens__item--feature .screen { aspect-ratio: 16 / 9; }
  .screen__play { width: 44px; height: 44px; font-size: 16px; }
}

/* =========================================================
   03. Press
   ========================================================= */
.press__layout { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.pr-lead { position: sticky; top: 96px; display: grid; gap: 20px; }
.pr-lead__media { aspect-ratio: 732 / 544; border: 1px solid var(--line); }
.pr-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pr-lead:hover .pr-lead__media img { transform: scale(1.03); }
.pr-lead__body { display: grid; justify-items: start; gap: 12px; }
.pr-lead__title { font-size: clamp(22px, 2vw, 30px); font-weight: 900; line-height: 1.45; text-wrap: balance; }
.pr-lead__title a:hover { color: var(--gold); }

.feed { display: flex; flex-direction: column; }
.pr { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 0; }
.pr + .pr { border-top: 1px solid var(--line); }
.pr:first-child { padding-top: 0; }
.pr__thumb { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); transition: transform 0.5s var(--ease); }
.pr__body { display: grid; justify-items: start; gap: 6px; }
.pr__body .tag { position: relative; z-index: 1; }
.pr__title { font-size: clamp(15px, 1.15vw, 18px); font-weight: 700; line-height: 1.6; text-wrap: pretty; }
.pr__link { transition: color 0.3s var(--ease); }
.pr__link::after { content: ""; position: absolute; inset: 0; }
.pr__link:focus-visible { outline: none; }
.pr:has(.pr__link:focus-visible) { outline: 2px solid var(--gold); outline-offset: 6px; }
.pr__arrow { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; color: var(--gold); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.5s var(--ease); }
.pr:hover .pr__link { color: var(--gold); }
.pr:hover .pr__arrow { background: var(--gold); color: #111; transform: rotate(45deg); }
.pr:hover .pr__thumb { transform: scale(0.96); }
@media (max-width: 899px) { .press__layout { grid-template-columns: 1fr; gap: 40px; } .pr-lead { position: static; } }
@media (max-width: 599px) { .pr { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } .pr__thumb { width: 96px; } .pr__arrow { display: none; } }

/* =========================================================
   Website cases: crisp screenshots in browser frames
   ========================================================= */
.sites__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.sites__grid > li[hidden] { display: none; }
.site { display: grid; gap: 14px; outline: none; }
.site__frame {
  display: block; overflow: hidden; border-radius: 12px; background: #15151C;
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--ease), border-color 0.3s var(--ease), box-shadow 0.5s var(--ease);
}
.site__bar {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  background: #1C1C24; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: var(--dim); font-size: 12px;
}
.site__bar i { font-size: 14px; flex: 0 0 auto; }
.site__url { font-family: var(--mono); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s var(--ease); }
.site__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.site__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.site__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.site__meta i { color: var(--gold); font-size: 18px; flex: 0 0 auto; transition: transform 0.5s var(--ease); }
.site:hover .site__frame {
  transform: translateY(-6px); border-color: var(--line-strong);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(242, 194, 48, 0.15);
}
.site:hover .site__shot img { transform: scale(1.03); }
.site:hover .site__url, .site:hover .site__name { color: var(--gold); }
.site:hover .site__meta i { transform: translate(3px, -3px); }
.site:focus-visible .site__frame { outline: 2px solid var(--gold); outline-offset: 4px; }
.sites__foot { display: flex; justify-content: center; margin-top: 40px; }
.sites__foot .pill i { transition: transform 0.5s var(--ease); }
.sites__foot .pill.is-open i { transform: rotate(180deg); }
@media (max-width: 1023px) { .sites__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .sites__grid { grid-template-columns: 1fr; } }

/* =========================================================
   04. Partners (static, no motion by client request)
   ========================================================= */
.partners__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.partners__lead { color: var(--dim); max-width: 26em; margin-top: 20px; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.logos li { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.3s var(--ease); }
.logos li:hover { box-shadow: 0 0 0 2px var(--gold), 0 0 24px var(--gold-glow); }
.logos img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .partners__grid { grid-template-columns: 1fr; } }

/* =========================================================
   05. CTA
   ========================================================= */
.cta { overflow-x: clip; } /* the rotating halo's box would otherwise widen the page on phones */
.cta__grid { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.cta__figure { position: relative; display: grid; place-items: center; }
.cta__figure img { position: relative; width: min(100%, 380px); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7)); }
.cta__halo {
  position: absolute; width: min(110%, 460px); aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed rgba(242, 194, 48, 0.55); box-shadow: 0 0 60px rgba(242, 194, 48, 0.25), inset 0 0 60px rgba(242, 194, 48, 0.15);
  animation: halo 40s linear infinite;
}
@keyframes halo { to { transform: rotate(360deg); } }
.cta__title { display: grid; font-size: clamp(34px, 4.4vw, 70px); font-weight: 900; line-height: 1.2; letter-spacing: 0.03em; margin: 4px 0 28px; text-shadow: 0 0 24px rgba(242, 194, 48, 0.25); }
.cta__title span:nth-child(2) { color: var(--gold); }
.cta__lead { color: var(--dim); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.95; max-width: 30em; margin-bottom: 40px; }
@media (max-width: 899px) { .cta__grid { grid-template-columns: 1fr; } .cta__copy { order: -1; } .cta__figure img { width: min(64vw, 300px); } }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 80px 0 28px; border-top: 1px solid var(--line);
  background: linear-gradient(rgba(10, 10, 14, 0.9), rgba(10, 10, 14, 0.97)), url("https://adw360.com/wp-content/uploads/2021/06/footer-bg.png") center / cover no-repeat, var(--void);
}
.footer__grid { display: grid; grid-template-columns: 1.1fr 0.7fr 1.5fr; gap: 48px; }
.footer__brand { display: grid; gap: 24px; justify-items: start; }
.footer__brand img { height: 76px; width: auto; }
.footer__nav { display: grid; gap: 2px; align-content: start; }
.footer__nav a { width: fit-content; min-height: 40px; display: flex; align-items: center; color: var(--dim); transition: color 0.3s var(--ease); }
.footer__nav a:hover { color: var(--gold); }
.footer__info { display: grid; gap: 14px; color: var(--dim); align-content: start; }
.footer__info li { display: flex; gap: 12px; }
.footer__info i { color: var(--gold); font-size: 20px; margin-top: 4px; }
.footer__info a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.footer__info a:hover { color: var(--gold); }
.footer__base { margin-top: 64px; }
.footer__base p { padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
@media (max-width: 899px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__info { grid-column: 1 / -1; } }
@media (max-width: 559px) { .footer__grid { grid-template-columns: 1fr; } .footer { padding-bottom: 88px; } }

/* =========================================================
   INNER PAGES
   ========================================================= */
.sec-title--md { font-size: clamp(30px, 3.6vw, 52px); }
.sec-lead { color: var(--dim); max-width: 34em; }

/* ---------- Hero: neon alley ---------- */
section.page-hero {
  position: relative; display: grid; align-items: end; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh; padding: 0; background: var(--void);
}
section.page-hero--compact { min-height: 74vh; min-height: 74svh; }
.page-hero__scene { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.scene-ready .page-hero__scene { opacity: 1; }
.no-webgl .page-hero__scene { display: none; }
/* CSS neon sign: placeholder while the scene loads, fallback without WebGL */
.page-hero__sign {
  position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; padding: 0 var(--gutter) 22vh;
  transition: opacity 0.8s var(--ease);
}
.page-hero__sign span {
  padding: 18px 36px; border: 3px solid var(--accent); border-radius: 16px; max-width: 100%;
  font-size: clamp(36px, 7vw, 112px); font-weight: 900; letter-spacing: 0.12em; line-height: 1.2; text-align: center; color: #fff;
  text-shadow: 0 0 12px var(--accent), 0 0 40px var(--accent);
  box-shadow: 0 0 24px var(--accent), inset 0 0 24px var(--accent);
  opacity: 0.22;
}
.scene-ready .page-hero__sign { opacity: 0; }
.no-webgl .page-hero__sign span { opacity: 0.9; }
.page-hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--void) 0%, rgba(10, 10, 14, 0.72) 30%, rgba(10, 10, 14, 0) 66%);
}
.page-hero__copy {
  padding-top: 140px; padding-bottom: clamp(64px, 11vh, 120px);
  opacity: calc(1 - var(--hero-p, 0) * 1.5); transform: translateY(calc(var(--hero-p, 0) * -48px));
}
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; letter-spacing: 0.06em; color: var(--dim); margin-bottom: 20px; }
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { transition: color 0.3s var(--ease); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--text); }
.page-hero__title {
  max-width: 15em; font-size: clamp(40px, 6.2vw, 100px); font-weight: 900; line-height: 1.1; letter-spacing: 0.04em;
  text-shadow: 0 0 28px rgba(242, 194, 48, 0.35); text-wrap: balance;
}
.page-hero--compact .page-hero__title { max-width: 26em; font-size: clamp(26px, 3.3vw, 50px); line-height: 1.35; letter-spacing: 0.02em; }
.page-hero__lead { max-width: 40em; margin-top: 18px; font-size: clamp(15px, 1.3vw, 18px); letter-spacing: 0.08em; color: var(--text); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }
.page-hero__down {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0; display: flex; align-items: center; gap: 10px;
  min-height: 44px; font-size: 12px; letter-spacing: 0.12em; color: var(--gold);
  opacity: calc(1 - var(--hero-p, 0) * 3);
}
.page-hero__down i { font-size: 16px; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
@media (max-width: 767px) {
  section.page-hero { min-height: 88svh; }
  section.page-hero--compact { min-height: 70svh; }
  .page-hero__down { display: none; }
}

/* ---------- Shared bits ---------- */
.mosaic__tag {
  position: absolute; left: 12px; top: 12px; z-index: 1; display: flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: 4px; background: rgba(10, 10, 14, 0.78); font-size: 11px; letter-spacing: 0.1em; color: var(--text);
}
.mosaic__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 8px var(--rec); }

/* ---------- 報導案例: feature + photo mosaic ---------- */
.feature__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature__intro { margin: 24px 0 32px; color: var(--dim); max-width: 34em; }
.points { display: grid; gap: 4px; }
.point { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.point:last-child { border-bottom: 1px solid var(--line); }
.point__num { font-size: 14px; letter-spacing: 0.1em; color: var(--gold); padding-top: 3px; }
.point__title { font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 4px; }
.point p { color: var(--dim); }
.feature__outro { margin-top: 28px; max-width: 34em; line-height: 1.9; }
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mosaic__item { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); transition: transform 1.2s var(--ease), filter 0.3s var(--ease); }
.mosaic__item:hover img { transform: scale(1.04); filter: saturate(1.05); }
.mosaic__item--1 { grid-column: 1 / span 4; aspect-ratio: 16 / 9; }
.mosaic__item--2 { grid-column: 5 / span 2; align-self: end; aspect-ratio: 3 / 4; }
.mosaic__item--3 { grid-column: 1 / span 2; aspect-ratio: 3 / 4; }
.mosaic__item--4 { grid-column: 3 / span 4; align-self: start; aspect-ratio: 16 / 9; }
@media (max-width: 899px) { .feature__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 報導案例: channel wall ---------- */
.channels__lead { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: 0.12em; color: var(--gold); }
.channels__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 24px); }
.ch { display: grid; gap: 12px; align-content: start; }
.ch__screen {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: #000;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ch__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px); box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.55); }
.ch__screen img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) brightness(0.8); transition: filter 0.3s var(--ease), transform 0.8s var(--ease); }
.ch__screen:hover { border-color: var(--gold); box-shadow: 0 0 30px rgba(242, 194, 48, 0.25); }
.ch__screen:hover img { filter: saturate(1) brightness(1); transform: scale(1.04); animation: flicker 0.25s steps(2) 2; }
.ch__screen:hover .screen__play { transform: scale(1.1); }
.ch__num { position: absolute; left: 10px; top: 8px; z-index: 1; font-size: 12px; letter-spacing: 0.1em; color: var(--gold); text-shadow: 0 0 8px rgba(0, 0, 0, 0.9); }
.ch__title { font-size: 16px; font-weight: 700; line-height: 1.6; text-wrap: pretty; }
@media (max-width: 1023px) { .channels__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .channels__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 新聞稿案例: four service cards ---------- */
.intro4__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card4 {
  position: relative; padding: 32px 28px 28px; background: var(--panel); border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.card4:hover { border-color: var(--line-strong); background: rgba(24, 22, 14, 0.9); }
.card4__num { position: absolute; right: 24px; top: 18px; font-size: clamp(40px, 4vw, 64px); font-weight: 700; line-height: 1; color: rgba(242, 194, 48, 0.12); }
.card4__title { font-size: clamp(20px, 1.7vw, 24px); font-weight: 900; margin-bottom: 14px; }
.card4:hover .card4__title { color: var(--gold); }
.card4__list { display: grid; gap: 8px; color: var(--dim); }
.card4__list li { position: relative; padding-left: 18px; }
.card4__list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 7px; height: 7px; background: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }
@media (max-width: 767px) { .intro4__grid { grid-template-columns: minmax(0, 1fr); } .card4 { padding: 24px 20px; } }

/* ---------- 新聞稿案例: news wire ---------- */
.wire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 4vw, 64px); }
.wire__item { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.wire__media { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.wire__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.wire__item:hover .wire__media img { transform: scale(1.05); }
.wire__body { display: grid; align-content: start; gap: 6px; }
.wire__meta { font-size: 12px; letter-spacing: 0.08em; color: var(--gold); }
.wire__title { font-size: 17px; font-weight: 700; line-height: 1.6; text-wrap: pretty; }
.wire__link { transition: color 0.3s var(--ease); }
.wire__link::after { content: ""; position: absolute; inset: 0; }
.wire__item:hover .wire__link { color: var(--gold); }
.wire__src { position: relative; z-index: 1; font-size: 12px; color: var(--dim); }
.wire__src a { display: inline-flex; align-items: center; gap: 4px; color: var(--text); border-bottom: 1px solid var(--line-strong); }
.wire__src a:hover { color: var(--gold); }
@media (max-width: 899px) { .wire { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 559px) { .wire__item { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; } }

/* ---------- 服務方案 ---------- */
.plans__pay { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.plans__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px 26px 26px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color 0.3s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.plan:hover { border-color: var(--gold); box-shadow: 0 0 40px rgba(242, 194, 48, 0.18), inset 0 0 40px rgba(242, 194, 48, 0.06); transform: translateY(-4px); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__label { font-size: 14px; letter-spacing: 0.08em; color: var(--gold); }
.plan__meter { display: flex; gap: 4px; }
.plan__meter i { width: 18px; height: 6px; border-radius: 2px; background: rgba(242, 194, 48, 0.14); }
.plan__meter i.is-on { background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.plan__name { font-size: clamp(20px, 1.7vw, 24px); font-weight: 900; line-height: 1.4; }
.plan__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.plan__link:focus-visible { outline: none; }
.plan:has(.plan__link:focus-visible) { outline: 2px solid var(--gold); outline-offset: 4px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; font-size: clamp(44px, 4.6vw, 68px); font-weight: 700; line-height: 1; color: var(--gold); text-shadow: 0 0 22px var(--gold-glow); font-variant-numeric: tabular-nums; }
.plan__cur { font-size: 16px; color: var(--dim); text-shadow: none; }
.plan__note { color: var(--dim); padding-top: 16px; border-top: 1px solid var(--line); }
.plan__cta { margin-top: auto; align-self: flex-start; }
@media (max-width: 899px) { .plans__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 聯絡我們 ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.contact__tagline { margin: 20px 0 12px; font-size: clamp(18px, 1.5vw, 21px); font-weight: 700; color: var(--gold); }
.contact__intro { color: var(--dim); margin-bottom: 32px; max-width: 32em; }
.channels-list { display: grid; }
.cl { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.cl:last-child { border-bottom: 1px solid var(--line); }
.cl__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); font-size: 22px; color: var(--gold); }
.cl__label { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; color: var(--dim); }
.cl__value { font-size: 17px; font-weight: 700; word-break: break-word; }
.cl__value a:hover { color: var(--gold); }
.cl__action {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--gold);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.5s var(--ease);
}
.cl__action:hover, .cl__action.is-done { background: var(--gold); color: #111; }
.cl__action:active { transform: scale(0.98); }
.contact__social { margin-top: 28px; }
.contact__map { position: sticky; top: 96px; }
.contact__map .monitor__screen { aspect-ratio: 4 / 3; }
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: invert(0.92) hue-rotate(180deg) saturate(0.6) contrast(0.95); }
.rec--ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
@media (max-width: 899px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } .contact__map { position: static; } }
@media (max-width: 479px) { .cl { grid-template-columns: 40px minmax(0, 1fr); } .cl__icon { width: 40px; height: 40px; } .cl__action { grid-column: 2; justify-self: start; } }

/* ---------- Service pages: mission log ---------- */
.mission__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.mission__side { position: sticky; top: 96px; }
.mission__card { padding: 26px 24px 24px; display: grid; gap: 18px; }
.mission__card .hud-box__label { margin: 0; color: var(--accent); }
.mission__head { display: grid; gap: 14px; justify-items: start; }
.mission__icon { width: 64px; height: 64px; object-fit: contain; }
.mission__glyph { font-size: 44px; color: var(--accent); filter: drop-shadow(0 0 10px var(--accent)); }
.mission__title { font-size: clamp(22px, 1.9vw, 28px); font-weight: 900; line-height: 1.45; text-wrap: balance; }
.mission__intro { color: var(--dim); font-size: 15px; }
.mission__index { display: grid; border-top: 1px solid var(--line); }
.mission__index a { display: flex; gap: 12px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--dim); transition: color 0.3s var(--ease); }
.mission__index a span { color: var(--accent); }
.mission__index a:hover { color: var(--text); }
.mission__cta { justify-self: start; }
.mission__log { display: grid; gap: clamp(16px, 2vw, 24px); }
.entry {
  position: relative; display: grid; grid-template-columns: clamp(56px, 6vw, 96px) minmax(0, 1fr); gap: clamp(16px, 2vw, 32px);
  padding: clamp(24px, 3vw, 40px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; scroll-margin-top: 96px;
  transition: border-color 0.3s var(--ease);
}
.entry:hover { border-color: var(--line-strong); }
.entry__num { font-size: clamp(32px, 3.4vw, 56px); font-weight: 700; line-height: 1; color: var(--accent); text-shadow: 0 0 20px var(--accent); opacity: 0.85; }
.entry__title { font-size: clamp(22px, 2vw, 30px); font-weight: 900; line-height: 1.4; margin-bottom: 14px; }
.entry__body p { color: var(--dim); line-height: 1.95; max-width: 40em; }
.entry__body p + p, .entry__body p + .ticks { margin-top: 12px; }
.ticks { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.ticks__mark {
  flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--accent); color: var(--accent); font-size: 13px; box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 35%, transparent);
}
.filmstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.filmstrip__item { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 4 / 5; background: #000; }
.filmstrip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.filmstrip__item:hover img { transform: scale(1.04); }
@media (max-width: 899px) { .mission__grid { grid-template-columns: minmax(0, 1fr); } .mission__side { position: static; } .mission__index { display: none; } }
@media (max-width: 559px) { .entry { grid-template-columns: minmax(0, 1fr); gap: 8px; } .filmstrip { grid-template-columns: 1fr 1fr; } .filmstrip__item:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; } }

/* ---------- 影音製作: video works (layout E) ----------
   Films sit in a panel right after entry 01 (the first visible one is the lead, the rest two
   per row, page.js shows them in steps); Shorts are a swipeable strip that travels with the
   reader in the left column on wide screens and closes the films panel on narrow ones. */
.reel, .shorts { --pw: 216px; }
.reel { padding: clamp(24px, 3vw, 40px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.reel h3, .shorts h3 { margin: 0; }
.reel__kicker { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 12px; line-height: 1.5; letter-spacing: 0.14em; color: var(--accent); }
.reel__hint { letter-spacing: 0.08em; color: var(--dim); }
.reel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.reel__title { font-size: 18px; font-weight: 900; line-height: 1.4; }
.reel__meta { margin: 0; font-size: 11px; line-height: 1.5; letter-spacing: 0.12em; color: var(--dim); white-space: nowrap; }
.reel .reel__filters { margin: 0 0 24px; }
.reel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin: 0; padding: 0; list-style: none; }
.reel__item[hidden] { display: none; }
/* the lead: the first film, or the first one left by a category tab */
.reel__item:first-child, .reel__item.is-lead { grid-column: 1 / -1; }
.reel__item.is-new { animation: reel-in 0.6s var(--ease) both; }
@keyframes reel-in { from { opacity: 0; transform: translateY(16px); } }
.vbtn { display: grid; gap: 12px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.vbtn .ch__screen { display: block; }
.vbtn:hover .ch__screen, .vbtn:focus-visible .ch__screen { border-color: var(--gold); box-shadow: 0 0 30px rgba(242, 194, 48, 0.25); }
.vbtn:hover .ch__screen img { filter: saturate(1) brightness(1); transform: scale(1.04); }
.vbtn:hover .screen__play, .vbtn:focus-visible .screen__play { transform: scale(1.1); }
.vbtn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 12px; }
.vbtn:hover .reel__name { color: var(--gold); }
.reel__cap { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.reel__num { flex: none; margin-top: 2px; padding: 0 6px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 4px; font-size: 11px; line-height: 20px; letter-spacing: 0.08em; color: var(--accent); }
.reel__text { display: grid; gap: 2px; min-width: 0; }
.reel__name { font-size: 15px; font-weight: 700; line-height: 1.6; text-wrap: pretty; transition: color 0.3s var(--ease); }
.reel__cat { display: none; font-size: 12px; font-weight: 500; color: var(--dim); }
.reel:has(.reel__filters) .reel__cat { display: block; }
.reel__item:is(:first-child, .is-lead) .reel__name { font-size: 16px; }
.reel__item:is(:first-child, .is-lead) .screen__play { width: 72px; height: 72px; font-size: 26px; }
.reel__item:not(:first-child, .is-lead) .screen__play { width: 48px; height: 48px; font-size: 18px; }
.reel__more { margin-top: 24px; }
.reel__more[hidden] { display: none; }
.reel__left { font-weight: 500; color: var(--dim); }
.reel__more:hover .reel__left { color: inherit; }
/* seen only by logged-in editors on WordPress: not public yet */
.vdraft { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 2px 8px; border-radius: 4px; background: var(--rec); color: #fff; font-size: 11px; line-height: 1.6; letter-spacing: 0.1em; }

/* Shorts */
.shorts__track { display: flex; gap: 16px; margin: -6px; padding: 6px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 6px; scrollbar-width: none; }
.shorts__track::-webkit-scrollbar { display: none; }
.shorts__item { flex: 0 0 min(var(--pw), 78%); scroll-snap-align: start; }
.shorts__item:only-child { flex-basis: min(var(--pw), 100%); margin-inline: auto; }
.vbtn--short { justify-items: center; text-align: center; }
.ch__screen.vphone { width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; border-color: var(--line-strong); box-shadow: 0 0 0 5px #0b0b10, 0 0 0 6px var(--line); }
.vphone::before { content: ""; position: absolute; left: 50%; top: 10px; z-index: 2; translate: -50% 0; width: 48px; height: 5px; border-radius: 999px; background: rgba(8, 8, 12, 0.7); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.vbtn--short:hover .vphone, .vbtn--short:focus-visible .vphone { box-shadow: 0 0 0 5px #0b0b10, 0 0 0 6px var(--gold), 0 0 34px rgba(242, 194, 48, 0.25); }
.vbtn--short:focus-visible { border-radius: 26px; }
.vphone .screen__play { width: 56px; height: 56px; font-size: 20px; }
.shorts__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.shorts__nav[hidden] { display: none; }
.shorts__step { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(14, 14, 20, 0.6); font-size: 18px; color: var(--text); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease); }
.shorts__step:hover:not(:disabled) { background: var(--gold); color: #111; }
.shorts__step:disabled { opacity: 0.35; cursor: default; }
.shorts__count { margin: 0; font-size: 13px; letter-spacing: 0.12em; color: var(--dim); }
.shorts__count span { color: var(--accent); }
/* closing the films panel on narrow screens */
.reel__films + .shorts--inline { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

/* wide screens: the Shorts travel with the reader in the left column (only they stick, the card above
   scrolls away); the phone is sized from the window height so the whole panel always fits */
@media (min-width: 900px) {
  .mission__side:has(.shorts--side) { position: static; align-self: stretch; display: flex; flex-direction: column; gap: 24px; }
  .shorts--side { --pw: calc(clamp(300px, 100vh - 360px, 535px) * 9 / 16); position: sticky; top: 96px; padding: 24px; }
  .shorts--side .reel__name { font-size: 14px; }
  .shorts--inline { display: none; }
  .reel:not(:has(.reel__films)) { display: none; }
}
@media (min-width: 900px) and (max-height: 659px) { .shorts--side { position: relative; top: 0; } }
@media (max-width: 899px) { .shorts--side { display: none; } }
@media (max-width: 559px) {
  /* category tabs stay one swipeable row instead of stacking up */
  .reel .reel__filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -4px; padding: 0 32px 2px 4px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
  .reel .reel__filters::-webkit-scrollbar { display: none; }
  .reel .reel__filters .filter { flex: none; }
  .reel__grid { gap: 20px 12px; }
  .reel__item:not(:first-child, .is-lead) .reel__cap { flex-direction: column; gap: 6px; }
  .reel__item:not(:first-child, .is-lead) .reel__name { font-size: 14px; }
  .reel__item:is(:first-child, .is-lead) .screen__play { width: 56px; height: 56px; font-size: 20px; }
  .reel__item:not(:first-child, .is-lead) .screen__play { width: 40px; height: 40px; font-size: 15px; }
  .shorts--inline { --pw: min(200px, 56vw); }
}

/* ---------- Service switcher ---------- */
.svc-strip__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.svc-chip {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 15px; font-weight: 700; line-height: 1.45;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.svc-chip > i:first-child { font-size: 24px; color: var(--gold); }
.svc-chip__go { color: var(--gold); transition: transform 0.5s var(--ease); }
.svc-chip:hover { border-color: var(--line-strong); color: var(--gold); }
.svc-chip:hover .svc-chip__go { transform: translateX(3px); }
.svc-chip.is-current { border-color: var(--gold); background: rgba(242, 194, 48, 0.1); color: var(--gold); }
@media (max-width: 1023px) { .svc-strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .svc-strip__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA band on inner pages ---------- */
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* ---------- Website cases: category tabs ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 clamp(28px, 4vh, 40px); }
.filters[hidden] { display: none; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); font-size: 14px; font-weight: 700; color: var(--dim);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.5s var(--ease);
}
.filter:hover { border-color: var(--line-strong); color: var(--gold); }
.filter:active { transform: scale(0.98); }
.filter.is-on { background: var(--gold); border-color: var(--gold); color: #111; box-shadow: 0 0 18px var(--gold-glow); }
.filter__count { font-size: 12px; font-weight: 500; opacity: 0.7; }

/* ---------- Website case detail ---------- */
.work__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
.work__info { position: sticky; top: 96px; }
.work__caption { margin: 12px 0 28px; font-size: 14px; letter-spacing: 0.06em; color: var(--gold); }
.work__features { display: grid; border-top: 1px solid var(--line); }
.feat { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feat__icon { width: 30px; height: auto; margin-top: 6px; filter: drop-shadow(0 0 8px var(--gold-glow)); }
.feat__title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.feat p { color: var(--dim); }
.work__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.work__frame {
  overflow: hidden; border-radius: 14px; background: #15151C;
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 50px rgba(242, 194, 48, 0.08);
}
.work__frame .site__bar { gap: 10px; }
.work__frame .site__url { flex: 1; min-width: 0; }
.work__pct { flex: 0 0 auto; color: var(--gold); font-size: 11px; letter-spacing: 0.08em; }
.work__viewport { position: relative; height: min(72vh, 760px); overflow: auto; background: #fff; overscroll-behavior: contain; }
.work__shot { width: 100%; will-change: transform; }
/* scroll-scrubbed: the stage is tall, the frame sticks and the shot slides inside */
.scrollshot-on .work__stage { height: calc(min(72vh, 760px) + 34px + min(220vh, var(--shot-ratio) * 60vh)); }
.scrollshot-on .work__frame { position: sticky; top: 96px; }
.scrollshot-on .work__viewport { overflow: hidden; }
@media (max-width: 899px) {
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .work__info { position: static; }
  .work__viewport { height: 64vh; }
  .scrollshot-on .work__stage { height: calc(64vh + 34px + min(160vh, var(--shot-ratio) * 40vh)); }
  .scrollshot-on .work__frame { top: 80px; }
}

/* ---------- Newsroom ---------- */
.newsroom { padding-top: clamp(48px, 7vh, 80px); }
.newsroom__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.newsroom__count { font-size: 13px; letter-spacing: 0.12em; color: var(--gold); }
.search {
  position: relative; display: flex; align-items: center; gap: 10px; width: min(420px, 100%); min-height: 48px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--gold);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.search[hidden] { display: none; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 24px rgba(242, 194, 48, 0.2); }
.search i { font-size: 18px; }
.search__input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.search__input::placeholder { color: var(--dim); }
.search__status { font-size: 12px; color: var(--dim); white-space: nowrap; }
.news-lead { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 6vh, 64px); }
.news-lead__media { aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.news-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-lead:hover .news-lead__media img { transform: scale(1.03); }
.news-lead__body { display: grid; justify-items: start; gap: 14px; }
.news-lead__title { font-size: clamp(22px, 2.2vw, 32px); font-weight: 900; line-height: 1.45; text-wrap: balance; }
.news-lead__title a:hover { color: var(--gold); }
.news-lead__excerpt { color: var(--dim); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.news-grid[hidden], [data-news-page][hidden] { display: none; }
.nc { position: relative; display: grid; gap: 14px; align-content: start; }
.nc__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.nc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.3s var(--ease); filter: saturate(0.9); }
.nc:hover .nc__media img { transform: scale(1.04); filter: saturate(1.05); }
.nc__body { display: grid; gap: 8px; }
.nc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; letter-spacing: 0.06em; color: var(--gold); }
.nc__meta .tag { min-height: 22px; }
.nc__src { padding-left: 12px; border-left: 1px solid var(--line-strong); color: var(--dim); }
.nc__title { font-size: 17px; font-weight: 700; line-height: 1.6; text-wrap: pretty; }
.nc__link { transition: color 0.3s var(--ease); }
.nc__link::after { content: ""; position: absolute; inset: 0; }
.nc__link:focus-visible { outline: none; }
.nc:has(.nc__link:focus-visible) { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 12px; }
.nc:hover .nc__link { color: var(--gold); }
.news-empty { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--dim); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: clamp(48px, 7vh, 80px); }
.pager__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager__num, .pager__step {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 14px; color: var(--dim);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.pager__step { display: inline-flex; gap: 8px; border-color: var(--line-strong); color: var(--gold); }
.pager__num:hover, .pager__step:hover { border-color: var(--gold); color: var(--gold); }
.pager__num.is-current { background: var(--gold); border-color: var(--gold); color: #111; font-weight: 700; box-shadow: 0 0 18px var(--gold-glow); }
@media (max-width: 1023px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .news-lead { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 559px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .pager__list li:not(:has(.is-current)):not(:first-child):not(:last-child) { display: none; }
}

/* ---------- Press release article ---------- */
.article { padding-top: clamp(48px, 7vh, 80px); }
.article__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.article__meta { position: sticky; top: 96px; }
.article__card { padding: 22px 20px; display: grid; gap: 18px; justify-items: start; }
.article__card .hud-box__label { margin: 0; }
.article__facts { display: grid; gap: 14px; width: 100%; font-size: 13px; }
.article__facts dt { font-size: 11px; letter-spacing: 0.12em; color: var(--dim); }
.article__facts dd { margin: 2px 0 0; color: var(--text); }
.article__facts a { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); border-bottom: 1px solid var(--line-strong); }
.article__main { max-width: 780px; }
.article__cover { margin-bottom: 28px; }
.article__cover img { width: 100%; height: auto; }
.article__src { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 32px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.article__src span { color: var(--gold); font-weight: 700; }
.article__src a { min-width: 0; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 200px; }
.article__src a:hover { color: var(--gold); }
.prose { font-size: 17px; line-height: 2; color: #DAD7CE; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.2em; }
.prose p { margin: 0; }
.prose h2, .prose h3 { margin-top: 2em; font-size: clamp(20px, 1.8vw, 24px); font-weight: 900; line-height: 1.5; color: var(--text); }
.prose h2::before, .prose h3::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px; vertical-align: 0.15em; background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.prose strong { color: var(--text); }
.prose a { color: var(--gold); border-bottom: 1px solid var(--line-strong); word-break: break-all; transition: color 0.3s var(--ease); }
.prose a:hover { color: #FFD45A; }
.prose figure { margin: 2em 0; }
.prose img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #15151C; }
.prose figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; line-height: 1.7; letter-spacing: 0.02em; color: var(--dim); }
.prose figcaption::before { content: "▲ "; color: var(--gold); }
.prose blockquote { margin: 2em 0; padding: 20px 24px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(242, 194, 48, 0.05); color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--gold); }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.article__step { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.3s var(--ease); }
.article__step span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 0.1em; color: var(--gold); }
.article__step strong { font-size: 15px; line-height: 1.6; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article__step--next { text-align: right; justify-items: end; }
.article__step:hover { border-color: var(--gold); }
.article__step:hover strong { color: var(--gold); }
@media (max-width: 899px) { .article__grid { grid-template-columns: minmax(0, 1fr); } .article__meta { position: static; } }
@media (max-width: 559px) { .article__nav { grid-template-columns: minmax(0, 1fr); } .article__step--next { text-align: left; justify-items: start; } .prose { font-size: 16px; } }

/* ---------- Page changes (see the soft router in page.js) ---------- */
#content, .footer { transition: opacity 0.45s var(--ease); }
.is-swapping #content, .is-swapping .footer { opacity: 0; transition-duration: 0.25s; }
.page-hero__copy > * { transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.page-hero__copy > :nth-child(2) { transition-delay: 60ms; }
.page-hero__copy > :nth-child(4) { transition-delay: 160ms; }
.is-swapping .page-hero__copy > :not(.page-hero__title) { opacity: 0; transform: translateY(-12px); transition-duration: 0.25s; transition-delay: 0s; }
.page-hero__title:focus:not(:focus-visible) { outline: none; }
html.is-leaving body { opacity: 0; transform: scale(0.985); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
/* to or from the home street: the scene swings round the corner first, the page fades inside the smear,
   and the next page shows its scene straight away so it can finish the turn */
html.is-leaving.is-turning body { transform: none; transition-delay: 0.38s; }
.arrive-turn .page-hero__scene, .arrive-turn .page-hero__sign, .arrive-turn .boot { transition-duration: 0.3s; }

/* ---------- 404 ---------- */
.lost__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* =========================================================
   Video dialog
   ========================================================= */
.vdialog { width: min(1120px, 92vw); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; color: var(--text); }
.vdialog::backdrop { background: rgba(8, 8, 12, 0.9); }
.vdialog__frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line-strong); box-shadow: 0 0 40px rgba(242, 194, 48, 0.2); }
.vdialog__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vdialog__close { position: absolute; right: 0; top: -56px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(14, 14, 20, 0.7); display: grid; place-items: center; font-size: 20px; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.vdialog__close:hover { background: var(--gold); color: #111; }
.vdialog[open] { animation: dialog-in 0.5s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
/* 9:16 Shorts play in an upright frame that always fits the screen height */
.vdialog--portrait { width: min(92vw, 405px, calc((100svh - 128px) * 9 / 16)); }
.vdialog--portrait .vdialog__frame { aspect-ratio: 9 / 16; }

/* =========================================================
   Reduced motion: no movement, plain fades only
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .cta__halo { animation: none; }
}
