/* Ticker Saga: tickersaga.com. Brand tokens mirror branding/brand.py. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0e0f12;
  --ink-2: #1a1c21;
  --champagne: #e3c58e;
  --champagne-hi: #f0d6a4;
  --text: #f3f1ec;
  --muted: #8a8f98;
  --hair: #2a2d33;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --max: 1440px;
  color-scheme: dark;
}
html[lang="zh-TW"] { --font: "Inter", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; }
html[lang="ja"] { --font: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif; }
html[lang="ko"] { --font: "Inter", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="ja"] body, html[lang="zh-TW"] body, html[lang="ko"] body { line-height: 1.8; word-break: normal; line-break: strict; }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--champagne); color: var(--ink); }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--champagne); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }

/* film grain */
.grain { position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .055;
  background: url("/assets/grain.png"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-2%)}
  60%{transform:translate(-2%,-4%)} 80%{transform:translate(4%,2%)} 100%{transform:translate(0,0)} }

/* custom cursor (fine pointers only, see main.js) */
.cursor { position: fixed; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--champagne); z-index: 60; pointer-events: none; opacity: 0; mix-blend-mode: difference;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s; }
.has-cursor .cursor { opacity: 1; }
.cursor.big { width: 56px; height: 56px; margin: -28px 0 0 -28px; }

/* header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px var(--pad); transition: background .4s, padding .4s, border-color .4s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(14, 15, 18, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px);
  padding-block: 12px; border-color: var(--hair); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: 14px; }
.brand img { width: 30px; height: 30px; }
.site-header nav { display: flex; gap: 32px; font-size: 14px; }
.site-header nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.site-header nav a:hover { color: var(--text); }
.header-right { display: flex; align-items: center; gap: 14px; }
.lang { position: relative; font-size: 13px; }
.lang summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--hair); border-radius: 99px; color: var(--muted); }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary, .lang summary:hover { color: var(--text); border-color: #444; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; min-width: 150px;
  background: var(--ink-2); border: 1px solid var(--hair); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lang li a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.lang li a:hover, .lang li a[aria-current] { background: #24262c; color: var(--champagne-hi); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 99px; font-weight: 700; text-decoration: none;
  font-size: 15px; letter-spacing: .01em; transition: background .3s, color .3s, border-color .3s; will-change: transform; }
.btn-sm { padding: 10px 18px; font-size: 13px; background: var(--champagne); color: var(--ink); }
.btn-primary { background: var(--champagne); color: var(--ink); }
.btn-primary:hover, .btn-sm:hover { background: var(--champagne-hi); }
.btn-ghost { border: 1px solid #3a3d44; color: var(--text); }
.btn-ghost:hover { border-color: var(--champagne); color: var(--champagne-hi); }
.btn .play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; align-content: end; padding: 140px var(--pad) 0; overflow: hidden;
  background: radial-gradient(1200px 700px at 70% 30%, #1d2026 0%, var(--ink) 65%); }
.hero-line { position: absolute; left: 0; top: 12%; width: 100%; height: 50%; opacity: .5; }
.hero-line path { fill: none; stroke: var(--champagne); stroke-width: 1.4; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3.2s var(--ease) .5s; }
.is-loaded .hero-line path { stroke-dashoffset: 0; }
.hero-title { position: relative; margin: 0; font-weight: 900; font-size: clamp(64px, 13.5vw, 232px); line-height: .86;
  letter-spacing: -.045em; text-transform: uppercase; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(108%); transition: transform 1.2s var(--ease); }
.hero-title .line:nth-child(3) > span { transition-delay: .12s; }
.hero-title .line:nth-child(4) > span { transition-delay: .24s; color: var(--champagne); }
.is-loaded .hero-title .line > span { transform: none; }
.hero-bottom { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
  margin-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 48px); }
.hero-sub { margin: 0; max-width: 34em; color: #c9c6bf; font-size: clamp(17px, 1.4vw, 22px); text-wrap: balance; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.marquee { position: relative; border-block: 1px solid var(--hair); overflow: hidden; margin-inline: calc(var(--pad) * -1);
  padding: 18px 0; font-size: clamp(14px, 1.1vw, 17px); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.tri { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--champagne); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
section { position: relative; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.kicker { margin: 0 0 18px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--champagne); font-weight: 700; }
h2 { margin: 0; font-weight: 800; font-size: clamp(40px, 6vw, 96px); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
html[lang="zh-TW"] h2, html[lang="ja"] h2, html[lang="ko"] h2 { letter-spacing: -.01em; line-height: 1.15; }

.cover { padding: clamp(110px, 14vw, 200px) 0; }
.pillars { list-style: none; margin: clamp(48px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); }
.pillar { position: relative; padding: 32px 28px 40px 0; border-right: 1px solid var(--hair); }
.pillar + .pillar { padding-left: 28px; }
.pillar:last-child { border-right: 0; }
.pillar .num { display: block; font-size: 13px; color: var(--muted); letter-spacing: .1em; margin-bottom: 64px; font-variant-numeric: tabular-nums; }
.pillar h3 { margin: 0 0 12px; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.pillar p { margin: 0; color: #a9a6a0; }
.pillar::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--champagne); transition: width .7s var(--ease); }
.pillar + .pillar::after { left: 28px; }
.pillar:hover::after { width: calc(100% - 28px); }

/* scroll-drawn market chart */
.chart { height: 300vh; }
.chart-sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(280px, 0.8fr) 2fr; gap: clamp(24px, 4vw, 64px);
  align-items: center; padding: 90px var(--pad) 40px; max-width: var(--max); margin: 0 auto; }
.chart-copy p:last-child { color: #a9a6a0; max-width: 28em; margin-top: 24px; }
.chart-fig { margin: 0; }
.chart-fig svg { width: 100%; height: auto; overflow: visible; }
.chart-fig .area { opacity: calc(var(--p, 0) * .9); }
.chart-fig .chart-mobile { display: none; }
.chart-fig .mline { fill: none; stroke: var(--champagne); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.chart-fig .tick text, .chart-fig .ev text { font-family: var(--font); }
.chart-fig .tick text { fill: var(--muted); }
.chart-fig .tick line { stroke: var(--hair); }
.chart-fig .ev { opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease); }
.chart-fig .ev.on { opacity: 1; transform: none; }
.chart-fig .ev circle { fill: var(--ink); stroke: var(--champagne-hi); stroke-width: 2; }
.chart-fig .ev line { stroke: #4a4d55; stroke-dasharray: 3 4; }
.chart-fig .ev text { fill: var(--text); font-weight: 600; paint-order: stroke; stroke: var(--ink); stroke-width: 6px; stroke-linejoin: round; }
.chart-fig .chart-mobile .ev text { stroke-width: 12px; }
.chart-fig .chart-mobile .mline { stroke-width: 4; }
.chart-fig .chart-mobile .ev circle { stroke-width: 3.5; }
.chart-fig figcaption { margin-top: 18px; font-size: 12px; color: var(--muted); }

/* videos */
.videos { padding: clamp(110px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.video-grid .empty { grid-column: 1 / -1; margin: 0; padding: 48px; border: 1px dashed #3a3d44; border-radius: 20px; color: #c9c6bf; font-size: clamp(18px, 1.6vw, 24px); }
.vcard { text-decoration: none; display: block; }
.vcard .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--ink-2); }
.vcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.vcard:hover img { transform: scale(1.05); }
.vcard h3 { margin: 16px 0 6px; font-size: 18px; line-height: 1.35; }
.vcard time { color: var(--muted); font-size: 13px; }

/* languages */
.langs { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--hair); }
.langs .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.langs p { color: #a9a6a0; margin: 20px 0 0; }
.lang-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.lang-chips a { display: block; padding: 14px 22px; border: 1px solid var(--hair); border-radius: 99px; text-decoration: none; font-size: 17px; transition: border-color .3s, color .3s; }
.lang-chips a:hover, .lang-chips a[aria-current] { border-color: var(--champagne); color: var(--champagne-hi); }

/* footer */
.site-footer { padding: clamp(90px, 12vw, 180px) var(--pad) 40px; background: linear-gradient(180deg, var(--ink) 0%, #121317 100%); border-top: 1px solid var(--hair); }
.schedule { margin: 0 0 24px; color: var(--muted); }
.footer-cta { display: inline-flex; align-items: baseline; gap: .25em; font-weight: 900; font-size: clamp(44px, 8.5vw, 150px); line-height: .95;
  letter-spacing: -.045em; text-decoration: none; background: linear-gradient(90deg, var(--text) 0 50%, var(--champagne) 50% 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position .8s var(--ease); }
.footer-cta:hover { background-position: -100% 0; }
html[lang="zh-TW"] .footer-cta, html[lang="ja"] .footer-cta, html[lang="ko"] .footer-cta { letter-spacing: -.01em; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--hair); font-size: 15px; }
.footer-grid div { display: grid; gap: 4px; }
.footer-grid span { color: var(--muted); font-size: 13px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--champagne-hi); }
.disclaimer { margin: 48px 0 8px; max-width: 70em; font-size: 12px; color: #6f737b; }
.copy { margin: 0; font-size: 12px; color: #6f737b; }

/* language suggestion toast */
.lang-suggest { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; gap: 14px; align-items: center; padding: 14px 18px;
  background: var(--ink-2); border: 1px solid var(--hair); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); font-size: 14px; }
.lang-suggest[hidden] { display: none; }
.lang-suggest a { color: var(--champagne-hi); font-weight: 700; }
.lang-suggest button { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.pillars .reveal:nth-child(2) { transition-delay: .08s; }
.pillars .reveal:nth-child(3) { transition-delay: .16s; }
.pillars .reveal:nth-child(4) { transition-delay: .24s; }

@media (max-width: 960px) {
  .site-header nav { display: none; }
  .hero-bottom { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(3) { padding-left: 0; }
  .pillar:nth-child(3)::after { left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .chart { height: 240vh; }
  .chart-sticky { grid-template-columns: 1fr; align-content: center; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .langs .wrap { grid-template-columns: 1fr; }
  .lang-chips { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0 32px; border-right: 0; border-top: 1px solid var(--hair); }
  .pillar + .pillar::after { left: 0; }
  .pillar .num { margin-bottom: 24px; }
  .video-grid { grid-template-columns: 1fr; }
  .chart-fig .chart-desktop { display: none; }
  .chart-fig .chart-mobile { display: block; }
  .hero-line { top: 10%; height: 34%; opacity: .4; }
  .header-right .btn-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title .line > span { transform: none; transition: none; }
  .hero-line path { stroke-dashoffset: 0; transition: none; }
  .chart { height: auto; }
  .chart-sticky { position: static; height: auto; padding-block: 120px; }
  .chart-fig { --p: 1; }
  .chart-fig .ev { opacity: 1; transform: none; }
}
.hero.center { align-content: center; }
.ph { display: inline-block; }
