/* ============================================================
   SYNQ Studio - home + Synq hub styles
   Black and white, one accent (orange). Motion = transform and
   opacity (plus canvas); everything is visible without JS.
   ============================================================ */
:root {
  --g: clamp(20px, 5vw, 72px);
  --maxw: 1600px;
  --ground: #f5f5f3; --ink: #0e0e10; --mute: #55555b; --soft: #e9e9e5; --card: #fff;
  --orange: #FF6B35; --on-orange: #1a0a03;
  --night: #0a0a0a; --night-ink: #f5f5f3; --night-mute: #a3a3a3;
  --e: cubic-bezier(.2, .7, .2, 1);
  --font: 'Be Vietnam Pro', 'BVP Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body.studio { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
body.studio img, body.studio video, body.studio canvas { display: block; max-width: 100%; }
:where(body.studio) :where(h1, h2, h3, p) { margin: 0; }   /* zero specificity: component margins below must win */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--g); padding-right: var(--g); }
.display { font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
:lang(vi) .display { letter-spacing: 0; line-height: 1.14; }
.h2 { font-size: clamp(38px, 6vw, 100px); }
.lede { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.45; max-width: 40ch; text-wrap: pretty; }
.hero .lede { text-wrap: balance; max-width: 36ch; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* buttons: flat pills. black by default, orange for the one main action */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--font); text-decoration: none; background: var(--ink); color: var(--ground); transition: transform .25s var(--e), background-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn.ghost { background: var(--soft); color: var(--ink); }
.btn.accent { background: var(--orange); color: var(--on-orange); }
.btn.light { background: var(--night-ink); color: var(--night); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--e); }
.btn:hover svg { transform: translateX(3px); }

/* reveal */
html.anim [data-r] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--e), transform .9s var(--e); transition-delay: var(--d, 0s); }
html.anim [data-r].in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 64px); padding: clamp(40px, 8vh, 96px) 0 clamp(48px, 9vh, 112px); overflow: hidden; }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hero-fx.on { opacity: 1; }
.hero-in { position: relative; z-index: 1; width: 100%; }
.hero h1 { font-size: clamp(42px, 9vw, 152px); max-width: 15ch; }
.hero h1 .ln { display: block; overflow: hidden; padding: .16em 0 .1em; margin: -.16em 0 -.1em; }
.hero h1 .ln > span { display: block; }
html.anim .hero h1 .ln > span { animation: rise 1.1s var(--e) both; animation-delay: calc(var(--i) * .09s + .05s); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-row { display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: flex-end; justify-content: space-between; margin-top: clamp(28px, 5vh, 64px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
html.anim .hero-row { animation: fade 1s var(--e) .45s both; }
@keyframes fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }


/* ---------- featured: Kagezan ---------- */
/* featured: Kagezan - same white page, no panel */
.feat { padding: clamp(80px, 12vw, 180px) 0 clamp(40px, 6vw, 96px); position: relative; }
.feat-head { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px 64px; align-items: end; }
.feat-head h2 { font-size: clamp(52px, 8vw, 132px); }
.feat-head h2 small { display: block; font-size: .4em; letter-spacing: -0.02em; color: var(--mute); margin-top: .18em; }
.feat-head p { color: var(--ink); max-width: 38ch; font-size: clamp(18px, 1.5vw, 22px); }
.feat-head .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.feat-soon { color: var(--mute) !important; font-weight: 500; font-size: 16px !important; margin-top: 30px; }

.stage { height: 150vh; margin-top: clamp(48px, 7vw, 96px); position: relative; }
.stage-pin { position: sticky; top: 64px; height: calc(100svh - 64px); display: grid; place-items: center; padding: 12px; }
.stage-media { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #e9e9e5; transform: scale(calc(.5 + .5 * var(--p, 0))); }
.stage-media video { width: 100%; height: 100%; object-fit: cover; }
.no-scrub .stage { height: auto; margin-top: 56px; } .no-scrub .stage-pin { position: static; height: auto; } .no-scrub .stage-media { transform: none; aspect-ratio: 16/9; height: auto; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; margin-top: clamp(64px, 9vw, 128px); }
.pillar h3, .pillar h2 { font-size: clamp(26px, 2.9vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
:lang(vi) .pillar h3, :lang(vi) .cell h3, :lang(vi) .about-statement { letter-spacing: 0; }
.pillar p { margin-top: 16px; color: var(--mute); max-width: 34ch; font-size: 18px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(64px, 9vw, 128px); }
.shots figure { margin: 0; border-radius: 20px; overflow: hidden; background: var(--soft); }
.shots img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform 1.2s var(--e); }
.shots figure:hover img { transform: scale(1.04); }
.feat-foot { margin-top: clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.feat-foot p { color: var(--ink); max-width: 52ch; font-size: 20px; font-weight: 500; }

/* ---------- products: dot cells ---------- */
.products { position: relative; padding: clamp(96px, 14vw, 200px) 0 clamp(56px, 8vw, 120px); }
.products-head { display: flex; flex-wrap: wrap; gap: 24px 64px; justify-content: space-between; align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.products-head h2 { max-width: 10ch; }
.field-fx { position: absolute; left: 0; width: 100%; pointer-events: none; z-index: 0; }
.products .wrap { position: relative; z-index: 1; }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cell { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; min-height: min(78vh, 640px); padding: 32px 24px clamp(36px, 4vw, 60px); color: var(--ink); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cell:focus-visible { outline: 3px solid var(--ink); outline-offset: -12px; border-radius: 32px; }
.cell-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 34ch; }
.cell-tag { font-size: 15px; font-weight: 500; color: var(--mute); }
.cell h3 { white-space: nowrap; font-size: clamp(36px, 4.2vw, 70px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.cell p { font-size: 18px; color: var(--ink); }
.cell .go { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--on-orange); margin-top: 8px; opacity: 0; transform: translateX(-8px); transition: opacity .3s var(--e), transform .3s var(--e); }
.cell .go svg { width: 18px; height: 18px; }
.cell:hover .go, .cell:focus-visible .go { opacity: 1; transform: none; }
@media (hover: none) { .cell .go { opacity: 1; transform: none; } }

/* ---------- about ---------- */
.about { padding-top: clamp(80px, 12vw, 180px); padding-bottom: clamp(60px, 8vw, 120px); }
.about-statement { font-size: clamp(28px, 4vw, 62px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; max-width: 26ch; text-wrap: balance; }
.about-statement .w { opacity: .46; transition: opacity .5s ease; }
.about-statement .w.on { opacity: 1; }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: clamp(48px, 7vw, 104px); }
.about-cols h3 { font-size: 15px; font-weight: 600; color: var(--mute); margin-bottom: 12px; }
.about-cols p, .about-cols a { font-size: 20px; line-height: 1.4; color: var(--ink); }
.about-cols a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.giant { font-size: 29vw; font-weight: 700; letter-spacing: -0.05em; line-height: .8; color: var(--ink); text-align: center; margin: clamp(32px, 6vw, 96px) 0 0; padding: 0; overflow: hidden; user-select: none; }

/* ---------- product landing (Synq, SynqTag, Music Check): white page, orange accent ---------- */
.pf-hero { display: block; padding: 0; }
.sh-hero { padding-top: clamp(48px, 9vh, 120px); padding-bottom: clamp(40px, 7vh, 96px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px 64px; align-items: end; }
.sh-hero h1 { font-size: clamp(36px, 5.6vw, 96px); max-width: 18ch; text-wrap: balance; }
.crumb { color: var(--mute); font-size: 16px; margin-bottom: 28px; display: block; }
.crumb a { color: inherit; }
.sh-hero .lede { color: var(--mute); margin-top: 28px; }
.sh-hero .hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.sh-phones { display: flex; gap: clamp(10px, 2vw, 24px); align-items: flex-end; justify-content: center; align-self: center; }
.sh-phones img { width: clamp(130px, 16vw, 260px); height: auto; border-radius: 26px; }
.sh-phones img:nth-child(2) { margin-bottom: 56px; }
.sh-phones img.appicon { width: clamp(150px, 20vw, 300px); border-radius: 22.5%; box-shadow: 0 1px 0 #0000000d, 0 24px 60px -24px #00000040; margin-bottom: 24px; }
.sh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 96px; align-items: center; padding-top: clamp(72px, 10vw, 160px); }
.sh-row.flip .sh-media { order: -1; }
.sh-row h2 { font-size: clamp(32px, 4.6vw, 72px); max-width: 12ch; }
.sh-row p { color: var(--mute); margin-top: 30px; max-width: 42ch; }
.sh-row ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.sh-row li { display: flex; gap: 12px; font-size: 17px; }
.sh-row li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .6em; border-radius: 50%; background: var(--orange); }
.sh-media img { width: min(100%, 400px); height: auto; border-radius: 32px; margin: 0 auto; }
.sh-section { padding: clamp(96px, 13vw, 200px) 0 0; }
.sh-section h2.display { font-size: clamp(36px, 5.6vw, 92px); max-width: 12ch; }
.sh-section .sec-sub { color: var(--mute); max-width: 44ch; margin-top: 20px; }
.sec-head { display: flex; flex-wrap: wrap; gap: 24px 64px; justify-content: space-between; align-items: end; margin-bottom: clamp(24px, 4vw, 48px); }
.sh-section .news-list { padding-bottom: 0; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini a { display: flex; gap: 18px; align-items: center; border: 1px solid var(--line, #0000001a); border-radius: 24px; padding: 24px; text-decoration: none; color: var(--ink); transition: transform .35s var(--e), border-color .25s; }
.mini a:hover { transform: translateY(-4px); border-color: var(--orange); }
.mini img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.mini b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.mini span { color: var(--mute); font-size: 15px; line-height: 1.35; display: block; }
.sh-cta { margin-top: clamp(96px, 12vw, 180px); padding: clamp(56px, 8vw, 120px) 0 clamp(72px, 9vw, 140px); border-top: 1px solid var(--line, #0000001a); }
.sh-cta .wrap { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; align-items: end; }
.sh-cta h2 { font-size: clamp(36px, 5.6vw, 92px); max-width: 11ch; }
.sh-cta .stores { display: flex; flex-wrap: wrap; gap: 12px; }
.sh-cta .sec-sub { color: var(--mute); margin-top: 20px; max-width: 44ch; }
.sh-cta .sec-sub a { color: inherit; }
.pf-sec { padding-top: clamp(72px, 10vw, 150px); }
.pf-sec > h2.h2 { font-size: clamp(30px, 4vw, 60px); max-width: 18ch; margin-bottom: clamp(24px, 3.5vw, 48px); text-wrap: balance; }
.pf-sec .pillars { margin-top: 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { border: 1px solid var(--line, #0000001a); border-radius: 24px; padding: clamp(24px, 3vw, 40px); }
.plan.pro { border-color: var(--orange); }
.plan h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 12px; font-size: 17px; }
.plan li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .6em; border-radius: 50%; background: var(--orange); }
.pf-faq { max-width: 860px; }

/* ---------- 404 ---------- */
.hero.nf { min-height: min(72svh, 720px); }
.nf-code { font-size: 16px; font-weight: 600; color: var(--mute); margin-bottom: 20px; letter-spacing: .02em; }
.hero.nf h1 { font-size: clamp(34px, 5vw, 80px); max-width: 16ch; text-wrap: balance; }
.hero.nf .lede { margin-top: 24px; color: var(--mute); }
.hero.nf .hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .feat-head, .sh-hero, .sh-row { grid-template-columns: 1fr; }
  .sh-row.flip .sh-media { order: 0; }
  .pillars { grid-template-columns: 1fr; gap: 40px; }
  .shots { grid-template-columns: 1fr 1fr; } .shots figure:nth-child(3) { display: none; }
  .about-cols, .mini, .plans { grid-template-columns: 1fr; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 520px; }
  .sh-phones { margin-top: 24px; }
}
@media (max-width: 560px) {
  .sh-hero { padding-bottom: 28vh; }
  body.studio { font-size: 17px; }
  .shots { grid-template-columns: 1fr; } .shots figure:nth-child(2) { display: none; }
  .hero h1 { font-size: 9.6vw; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .stage { height: 140vh; } .stage-pin { padding: 0 12px; } .stage-media { border-radius: 20px; height: auto; max-height: 100%; aspect-ratio: 4 / 5; }
  .cell { min-height: 480px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.anim [data-r] { opacity: 1; transform: none; transition: none; }
  html.anim .hero h1 .ln > span, html.anim .hero-row { animation: none; }
  .btn, .shots img, .cell .go { transition: none; }
}

/* trailer pause/play */
.vid-toggle { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center; cursor: pointer; background: rgba(14, 14, 16, .62); color: #fff; transform-origin: 100% 100%; transform: scale(calc(1 / (.5 + .5 * var(--p, 0)))); transition: background-color .2s; -webkit-tap-highlight-color: transparent; }
.no-scrub .vid-toggle { transform: none; }
.vid-toggle:hover { background: rgba(14, 14, 16, .85); }
.vid-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--orange); }
.vid-toggle svg { width: 20px; height: 20px; }
.vid-toggle .i-play { display: none; }
.vid-toggle.is-paused .i-play { display: block; }
.vid-toggle.is-paused .i-pause { display: none; }

/* help page */
.help-head { padding-top: clamp(48px, 9vh, 112px); padding-bottom: clamp(32px, 5vw, 64px); }
.help-head h1 { font-size: clamp(40px, 7vw, 116px); max-width: 14ch; }
.help-head .lede { margin-top: 24px; }
.help-block { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px clamp(24px, 4vw, 64px); align-items: start; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.help-shape { width: 140px; height: 140px; }
.help-block h2 { font-size: clamp(32px, 3.6vw, 56px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.help-block h2 + p { margin-top: 8px; color: var(--mute); font-size: 18px; }
.help-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.help-links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 12px; transition: transform .25s var(--e); }
.help-links a svg { width: 18px; height: 18px; flex: none; opacity: .35; transition: opacity .2s, transform .25s var(--e); }
.help-links a:hover { transform: translateX(4px); }
.help-links a:hover svg, .help-links a:focus-visible svg { opacity: 1; transform: translateX(3px); color: var(--orange); }
.help-contact { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 140px); }
.help-contact p { color: var(--mute); font-size: 18px; margin-bottom: 8px; }
.help-contact a { font-size: clamp(26px, 4.4vw, 68px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration-thickness: 3px; text-decoration-color: var(--orange); text-underline-offset: 8px; word-break: break-word; }
@media (max-width: 900px) { .help-block { grid-template-columns: 96px minmax(0, 1fr); } .help-shape { width: 96px; height: 96px; } .help-links { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .help-links a, .help-links a svg { transition: none; } }

/* Kagezan landing */
.pill { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 500; font-size: 15px; cursor: default; user-select: none; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.kz-hero .hero-row { align-items: flex-end; }
.kz-hero h1 .sub > span { font-size: .38em; letter-spacing: -0.01em; color: var(--mute); font-weight: 600; padding-top: .35em; display: block; }
.kz-hero .lede { max-width: 30ch; }
.kz-stores { display: flex; gap: 12px; flex-wrap: wrap; }
.kz-trailer .stage { margin-top: 0; }
.kz-intro { padding-top: clamp(64px, 9vw, 140px); }
.kz-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px clamp(32px, 6vw, 96px); align-items: center; padding-top: clamp(48px, 7vw, 110px); }
.kz-row.flip .kz-clip { order: -1; }
.kz-row h2 { font-size: clamp(30px, 4vw, 62px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
:lang(vi) .kz-row h2 { letter-spacing: 0; line-height: 1.2; }
.kz-row p { margin-top: 20px; font-size: clamp(18px, 1.5vw, 22px); color: var(--mute); max-width: 34ch; }
.kz-clip { border-radius: 24px; overflow: hidden; background: var(--soft); aspect-ratio: 16 / 9; }
.kz-clip video { width: 100%; height: 100%; object-fit: cover; }
.kz-bosses { padding-top: clamp(96px, 13vw, 200px); }
.kz-bosses .lede { margin-top: 20px; color: var(--mute); }
.kz-boss-list { list-style: none; margin: clamp(36px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px); }
.kz-boss-list li { display: flex; flex-direction: column; gap: 4px; }
.kz-ch { font-size: 14px; font-weight: 600; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.kz-ch::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.kz-boss-list h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 2px 0 0; }
.kz-ti { font-size: 16px; color: var(--mute); }
.kz-boss-list p { margin-top: 8px; font-size: 17px; line-height: 1.45; max-width: 30ch; }
.kz-news { padding-top: clamp(96px, 13vw, 200px); }
.kz-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(28px, 4vw, 56px); }
.kz-post { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); background: var(--soft); border-radius: 24px; padding: 28px; transition: transform .3s var(--e); }
.kz-post:hover { transform: translateY(-4px); }
.kz-post h3 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.kz-date { font-size: 14px; color: var(--mute); }
.kz-free { padding-top: clamp(96px, 13vw, 200px); padding-bottom: clamp(72px, 10vw, 160px); }
.kz-free .about-statement { max-width: 20ch; }
.kz-cta { margin-top: 32px; }
.kz-links { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.kz-links a { font-size: 18px; color: var(--ink); text-underline-offset: 5px; }
@media (max-width: 1000px) { .kz-row { grid-template-columns: 1fr; } .kz-row.flip .kz-clip { order: 0; } .kz-boss-list { grid-template-columns: repeat(2, 1fr); } .kz-posts { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .kz-boss-list { grid-template-columns: 1fr; } .kz-hero { padding-bottom: 38vh; } }

/* Kagezan news */
.news-head { padding-top: clamp(48px, 9vh, 112px); padding-bottom: clamp(24px, 4vw, 56px); }
.news-head h1 { font-size: clamp(40px, 7vw, 116px); }
.news-head .lede { margin-top: 20px; color: var(--mute); }
.news-back { font-size: 16px; color: var(--mute); margin-bottom: 24px; }
.news-back a { color: inherit; }
.news-list { list-style: none; margin: 0 auto; padding-bottom: clamp(72px, 10vw, 160px); }
.news-list a { display: grid; grid-template-columns: 140px minmax(0, 1fr) 24px; gap: 4px 32px; align-items: baseline; padding: 28px 0; text-decoration: none; color: var(--ink); border-radius: 16px; transition: transform .3s var(--e); }
.news-list a:hover { transform: translateX(6px); }
.news-list h2, .news-list h3.news-h { font-size: clamp(24px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.news-list p { grid-column: 2; color: var(--mute); font-size: 18px; max-width: 56ch; }
.news-list svg { grid-column: 3; grid-row: 1; width: 22px; height: 22px; align-self: center; color: var(--orange); opacity: .5; transition: opacity .2s; }
.news-list a:hover svg, .news-list a:focus-visible svg { opacity: 1; }
.news-date { font-size: 15px; color: var(--mute); font-weight: 500; }
.news-post { padding-top: clamp(40px, 7vh, 88px); padding-bottom: clamp(72px, 10vw, 160px); }
.news-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.news-media { position: sticky; top: 88px; }
.yt-facade { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: #0a0a0a; cursor: pointer; }
.yt-facade img, .news-media iframe { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-media iframe { aspect-ratio: 9 / 16; border: 0; border-radius: 24px; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--orange); color: var(--on-orange); display: grid; place-items: center; transition: transform .25s var(--e); }
.yt-play svg { width: 32px; height: 32px; margin-left: 3px; }
.yt-facade:hover .yt-play { transform: scale(1.08); }
.yt-facade:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.news-yt { display: inline-block; margin-top: 12px; font-size: 15px; color: var(--mute); }
.news-text { max-width: 62ch; }
.news-text h1 { font-size: clamp(32px, 4.4vw, 68px); margin: 8px 0 28px; }
.news-body p, .news-body li { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.65; }
.news-body p { margin: 0 0 1.1em; }
.news-body ul { margin: 0 0 1.4em; padding-left: 1.2em; }
.news-body li { margin-bottom: .5em; }
.news-body li::marker { color: var(--orange); }
.news-body a { color: var(--ink); text-decoration-color: var(--orange); text-underline-offset: 4px; }
.news-all { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.kz-allnews { margin-top: 32px; }
@media (max-width: 800px) { .news-grid { grid-template-columns: 1fr; } .news-media { position: static; max-width: 320px; } .news-list a { grid-template-columns: 1fr 24px; } .news-list p { grid-column: 1; } .news-date { grid-column: 1 / -1; } .news-list svg { grid-column: 2; grid-row: 2; } }

/* Kagezan story strip: pinned + scroll-driven on desktop, native swipe with snap elsewhere */
.kz-story { padding-top: clamp(96px, 13vw, 200px); }
.kz-story .lede { margin-top: 20px; max-width: 54ch; color: var(--mute); }
.story-rail { margin-top: clamp(32px, 5vw, 64px); }
.story-pin { display: block; }
.story-track { list-style: none; margin: 0; padding: 0 var(--g); display: flex; gap: 20px; align-items: stretch; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.story-track::-webkit-scrollbar { display: none; }
.story-card { flex: 0 0 min(78vw, 540px); scroll-snap-align: center; }
.story-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; background: var(--soft); }
.story-ch { display: block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--mute); }
.story-card h3 { margin: 2px 0 0; font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.story-mark, .story-end { flex: 0 0 min(70vw, 340px); scroll-snap-align: center; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 0 12px; }
.story-mark b, .story-end b { font-size: clamp(40px, 4.6vw, 72px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.story-mark span { font-size: 18px; line-height: 1.45; color: var(--mute); }
.story-mark b::after { content: ""; display: block; width: 44px; height: 6px; margin-top: 14px; border-radius: 3px; background: var(--orange); }
.rail-pin .story-pin { position: sticky; top: 64px; height: calc(100svh - 64px); display: flex; align-items: center; overflow: hidden; }
.rail-pin .story-track { overflow: visible; width: max-content; scroll-snap-type: none; transform: translate3d(calc(var(--sp, 0) * var(--max, 0) * -1px), 0, 0); }
.rail-pin .story-card { flex-basis: min(36vw, 560px); }
.rail-pin .story-mark, .rail-pin .story-end { flex-basis: 340px; }
:lang(vi) .story-mark b, :lang(vi) .story-end b { letter-spacing: 0; }

.story-part { padding-top: clamp(56px, 8vw, 120px); }
.story-part b { display: block; font-size: clamp(36px, 4.6vw, 72px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
:lang(vi) .story-part b { letter-spacing: 0; }
.story-part b::after { content: ""; display: block; width: 44px; height: 6px; margin-top: 14px; border-radius: 3px; background: var(--orange); }
.story-part span { display: block; margin-top: 14px; max-width: 46ch; font-size: 18px; line-height: 1.45; color: var(--mute); }
.story-rail { margin-top: clamp(24px, 3vw, 40px); }
.kz-news .kz-allnews { margin-top: 44px; }

/* story cards are buttons that open the chapter viewer */
.story-open { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; border-radius: 22px; -webkit-tap-highlight-color: transparent; }
.story-open:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.story-open img { transition: transform .6s var(--e); }
.story-open:hover img { transform: scale(1.025); }
.story-card .story-open > img { overflow: hidden; }

/* bosses: art gallery */
.boss-grid { list-style: none; margin: clamp(36px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(36px, 4vw, 64px) clamp(16px, 2.4vw, 40px); }
.boss-card { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; width: 100%; cursor: pointer; text-align: center; border-radius: 20px; -webkit-tap-highlight-color: transparent; }
.boss-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.boss-art { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; aspect-ratio: 3 / 4; }
.boss-art img { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; transition: transform .6s var(--e); }
.boss-card:hover .boss-art img, .boss-card:focus-visible .boss-art img { transform: translateY(-8px) scale(1.04); }
.boss-ch { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.boss-ch::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.boss-name { margin-top: 2px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.boss-card.locked { cursor: default; }
.boss-card.locked .boss-art svg:first-child { position: absolute; left: 50%; bottom: 0; height: 92%; width: auto; transform: translateX(-50%); }
.boss-lock { position: absolute; left: 50%; top: 52%; width: 34px; height: 34px; margin: -17px 0 0 -17px; color: var(--orange); }
.boss-soon { margin-top: 2px; font-size: 15px; color: var(--mute); }

/* modals (chapter viewer, boss detail) */
.kz-lock { overflow: hidden; padding-right: var(--sbw, 0); }
.kz-modal { position: fixed; inset: 0; z-index: 200; }
.kz-modal button { font: inherit; }
.kz-x, .kz-nav { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--btnbg); color: var(--btnfg); transition: background-color .2s, transform .25s var(--e); -webkit-tap-highlight-color: transparent; }
.kz-x:hover, .kz-nav:hover { background: var(--btnhover); }
.kz-x:focus-visible, .kz-nav:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.kz-x svg, .kz-nav svg { width: 22px; height: 22px; }
.kz-x { position: absolute; top: 16px; right: 16px; z-index: 3; }
/* chapter viewer: dark, the slide flies out of its card */
.kz-viewer { --btnbg: rgba(255,255,255,.14); --btnfg: #fff; --btnhover: rgba(255,255,255,.26); color: #f5f5f3; }
.kz-viewer .kz-scrim { position: absolute; inset: 0; background: #0a0a0a; }
.kz-view-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 72px 24px 28px; overflow-y: auto; }
.kz-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; max-width: 1320px; }
.kz-fig { position: relative; flex: 0 1 auto; width: min(100%, 1060px, calc((100svh - 300px) * 1.5)); aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; background: #16161a; transform-origin: 0 0; touch-action: pan-y; }
.kz-fig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .22s ease; }
.kz-fig img.out { opacity: 0; }
.kz-cap { width: min(100%, 1060px); opacity: 1; }
.kz-cap .kz-chn { font-size: 15px; font-weight: 600; color: #a3a3a3; display: flex; align-items: center; gap: 8px; }
.kz-cap .kz-chn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.kz-cap h2 { margin: 4px 0 0; font-size: clamp(26px, 3vw, 44px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
:lang(vi) .kz-cap h2 { letter-spacing: 0; }
.kz-cap p { margin: 12px 0 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: #d6d6d3; max-width: 62ch; min-height: 3.2em; transition: opacity .22s ease; }
.kz-cap p.out { opacity: 0; }
.kz-dots { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.kz-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.28); transition: background-color .2s, transform .2s; }
.kz-dots i.on { background: var(--orange); transform: scale(1.3); }
.kz-nav { position: absolute; top: 50%; margin-top: -24px; z-index: 3; }
.kz-nav.prev { left: clamp(12px, 2vw, 32px); } .kz-nav.next { right: clamp(12px, 2vw, 32px); }
.kz-nav[hidden] { display: none; }
/* boss detail: light, full screen, opens out of the card */
.kz-boss { --btnbg: rgba(14,14,16,.08); --btnfg: #0e0e10; --btnhover: rgba(14,14,16,.16); color: var(--ink); }
.kz-boss .kz-scrim { position: absolute; inset: 0; background: #fff; }   /* a touch lighter than the page so the opening card reads as a card */
.kz-boss .kz-scrim { clip-path: inset(0 0 0 0); }
.kz-boss-in { position: absolute; inset: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; padding: 88px var(--g) 48px; max-width: 1500px; margin: 0 auto; }
.kz-boss-in img { width: 100%; height: auto; display: block; }
.kz-boss-text .kz-chn { font-size: 15px; font-weight: 600; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.kz-boss-text .kz-chn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.kz-boss-text h2 { margin: 6px 0 0; font-size: clamp(36px, 4.4vw, 68px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
:lang(vi) .kz-boss-text h2 { letter-spacing: 0; line-height: 1.18; }
.kz-boss-text .kz-ti { display: block; margin-top: 6px; font-size: 20px; color: var(--mute); }
.kz-boss-text p { margin: 22px 0 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; max-width: 46ch; }
.kz-boss-text .kz-tip { padding-left: 16px; border-left: 4px solid var(--orange); }
.kz-boss-text .kz-tip b { display: block; font-size: 14px; color: var(--mute); margin-bottom: 2px; font-weight: 600; }
.kz-boss-text .btn { margin-top: 28px; }
@media (max-width: 900px) {
  .boss-grid { grid-template-columns: repeat(3, 1fr); }
  .kz-boss-in { grid-template-columns: 1fr; align-items: start; padding-top: 80px; }
  .kz-nav { top: auto; bottom: 18px; margin-top: 0; width: 52px; height: 52px; }
  .kz-fig { width: 100%; }
  .kz-view-in { justify-content: center; padding-top: 72px; padding-bottom: 96px; }
}
@media (max-width: 560px) { .boss-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .boss-art img, .story-open img, .kz-fig img, .kz-cap p { transition: none; } }

/* story strips: heading + cards share one pinned screen, sized from both viewport width and height */
.story-part { padding-top: 0; margin-bottom: 28px; }
.story-part b { font-size: clamp(32px, min(4.6vw, 8svh), 72px); }
.story-rail { margin-top: clamp(48px, 7vw, 104px); }
.rail-pin { --ch: clamp(190px, calc(100svh - 64px - 440px), 520px); }
.rail-pin.story-rail { margin-top: 0; }
.rail-pin .story-pin { flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; }
.rail-pin .story-part { width: 100%; max-width: none; margin: 0 0 clamp(24px, 4svh, 44px); padding-left: var(--g); padding-right: var(--g); }
.rail-pin .story-part span { margin-top: 10px; }
.rail-pin .story-part b::after { margin-top: 10px; }
.rail-pin .story-card { flex-basis: min(calc(var(--ch) * 1.5), 42vw); }
.rail-pin .story-card img { border-radius: clamp(14px, 1.6vw, 22px); }
.rail-pin .story-card h3 { font-size: clamp(20px, min(2vw, 3.4svh), 30px); }

/* long-text template (Kagezan legal pages) */
.lg { padding-bottom: clamp(64px, 9vw, 140px); }
.lg-head { padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(28px, 4vw, 56px); max-width: 900px; }
.lg-eyebrow { font-size: 16px; color: var(--mute); margin-bottom: 20px; }
.lg-eyebrow a { color: inherit; text-underline-offset: 4px; }
.lg-head h1 { font-size: clamp(34px, 5.2vw, 84px); max-width: 22ch; text-wrap: balance; }
.lg-head h1 .lg-pre { display: block; font-size: .42em; letter-spacing: 0; color: var(--muted, #6b6b6b); margin-bottom: .35em; }
.lg-sub { margin-top: 22px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; max-width: 64ch; }
.lg-updated { margin-top: 18px; font-size: 15px; color: var(--mute); }
.lg-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 112px); align-items: start; }
.lg-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100svh - 112px); overflow-y: auto; }
.lg-toc summary { display: none; list-style: none; cursor: pointer; align-items: center; justify-content: space-between; height: 48px; padding: 0 20px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 16px; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--e); }
.lg-toc details[open] summary::after { transform: rotate(-135deg); }
.lg-toc summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lg-toc a { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--mute); font-size: 15px; line-height: 1.4; box-shadow: inset 3px 0 0 transparent; transition: color .2s, box-shadow .2s; }
.lg-toc a:hover { color: var(--ink); }
.lg-toc a.on { color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--orange); }
.lg-toc a:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.lg-n { min-width: 1.3em; color: var(--mute); font-variant-numeric: tabular-nums; }
.lg-toc a.on .lg-n { color: var(--ink); }
.lg-body { max-width: 70ch; }
.lg-sec { margin-bottom: clamp(40px, 5vw, 72px); scroll-margin-top: 92px; }
.lg-sec h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; font-size: clamp(24px, 2.5vw, 34px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.28; }
:lang(vi) .lg-sec h2 { letter-spacing: 0; line-height: 1.35; }
.lg-sec h2 .num { flex: none; display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--mute); font-size: 14px; font-weight: 600; transform: translateY(-3px); }   /* quiet: the section number */
.lg-anchor { margin-left: 4px; color: var(--mute); text-decoration: none; font-weight: 500; opacity: 0; transition: opacity .2s; }
.lg-sec h2:hover .lg-anchor, .lg-anchor:focus-visible { opacity: 1; }
.lg-anchor:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.lg-body p, .lg-body li { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.75; }
.lg-body p { margin: 0 0 1.1em; }
.lg-body ul, .lg-body ol { list-style: none; padding: 0; margin: 0 0 1.3em; }
.lg-body li { display: flex; gap: 14px; margin-bottom: .65em; }
.lg-body ul li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .68em; border-radius: 50%; background: var(--orange); }
.lg-body a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lg-body a.btn { text-decoration: none; color: var(--ground); }
.lg-body a.btn.accent { color: var(--on-orange); }
.lg-body { min-width: 0; overflow-wrap: break-word; }
.lg-body code { overflow-wrap: anywhere; font: .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.lg-body strong { font-weight: 600; }
.lg-steps { counter-reset: st; }
.lg-steps li { counter-increment: st; gap: 18px; align-items: flex-start; margin-bottom: 1em; }
.lg-steps li::before { content: counter(st); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--on-orange); font-weight: 700; font-size: 15px; margin-top: 2px; }   /* the only orange badges: the steps to take */
.lg-steps li > span { padding-top: 0; }
.lg-body .lg-cta { margin-top: 26px; }
.lg-contact { margin-top: clamp(32px, 5vw, 56px); padding-top: 28px; }
.lg-contact .contact-label { font-size: 15px; color: var(--mute); margin: 0 0 6px; }
.lg-contact h2 { margin: 0 0 18px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; }
.lg-body .lg-top { margin-top: 56px; font-size: 15px; }
.lg-top a { color: var(--mute); }
@media (max-width: 1023px) {
  .lg-grid { grid-template-columns: minmax(0, 1fr); }
  .lg-toc { position: static; max-height: none; overflow: visible; }
  .lg-toc summary { display: flex; }
  .lg-toc details[open] nav { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .lg-toc a, .lg-anchor, .lg-toc summary::after { transition: none; } }
@media print {
  .sq-header, .sq-footer, .sq-skip, .lg-toc, .lg-anchor, .lg-top, .lg-cta, .btn { display: none !important; }
  body.studio { background: #fff; color: #000; font-size: 11pt; }
  .lg-grid { display: block; } .lg-body { max-width: none; }
  .lg-sec { break-inside: avoid-page; margin-bottom: 18pt; }
  .lg-sec h2 .num, .lg-steps li::before { background: none; color: #000; border: 1px solid #000; }
  .lg-body a { color: #000; text-decoration: underline; }
  .lg-body a[href^="http"]::after, .lg-body a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}

/* support FAQ */
.fq-search { margin-top: 32px; max-width: 640px; }
.fq-label { display: block; margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--mute); }
.fq-input { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 56px; padding: 0 22px 0 52px; border: 0; border-radius: 999px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355555b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 20px 50% / 22px; color: var(--ink); font: 500 17px/1 var(--font); }
.fq-input::placeholder { color: var(--mute); }
.fq-input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.fq-input::-webkit-search-cancel-button { cursor: pointer; }
.fq-group h2 { margin-bottom: 8px; }
.fq-item { margin: 0; }
.fq-item[hidden], .fq-group[hidden], .fq-empty[hidden] { display: none; }
.fq-item summary { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; line-height: 1.4; border-radius: 12px; }
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fq-q { flex: 1; min-width: 0; }
.fq-item .lg-anchor { opacity: 0; }
.fq-item summary:hover .lg-anchor, .fq-item summary:focus-within .lg-anchor { opacity: 1; }
.fq-chev { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); position: relative; transition: transform .3s var(--e), background-color .2s; }
.fq-chev::before { content: ""; position: absolute; left: 11px; top: 9px; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.fq-item[open] .fq-chev { transform: rotate(180deg); background: var(--orange); }
.fq-a { overflow: hidden; }
.fq-a-in { margin: 0 0 18px; padding: 2px 0 6px 18px; border-left: 4px solid var(--orange); }
.fq-a-in p { margin: 0; }
.fq-empty { padding: 8px 0 32px; }
.fq-empty p { font-size: 19px; }
.lg-body .lg-contact .fq-hint { margin: 24px 0 0; color: var(--mute); font-size: 17px; }
.lg-body .fq-links { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.fq-links li { display: block; margin: 0; }
.fq-links li::before { display: none; }
.fq-links a { font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .fq-chev { transition: none; } }
@media print { .fq-search, .fq-chev { display: none !important; } .fq-item .fq-a { height: auto !important; } .fq-item:not([open]) .fq-a { display: block; } }

/* ---- shared small things ---- */
[hidden] { display: none !important; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
/* Official store badges (tools/templates.py store_badge). Artwork untouched: same height for both, never stretched, no recolour.
   The Google Play PNGs ship with transparent padding (vi 646x250, badge 646x192 at y29; en badge 564x168 at 41,41),
   trimmed here with negative margins inside an overflow box so the visible badge is exactly --bh tall, like the App Store SVG.
   Width and height are both set from the artwork's own ratio, so nothing can stretch it. */
.store-badge { --bh: 44px; display: inline-block; flex: none; align-self: center; vertical-align: middle; height: var(--bh); overflow: hidden; line-height: 0; text-decoration: none; transition: transform .25s var(--e); }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: scale(.97); }
a.store-badge img { display: block; max-width: none; margin: 0; border-radius: 0; box-shadow: none; }
a.store-badge.as img { width: calc(var(--bh) * 119.66407 / 40); height: var(--bh); }
a.store-badge.gp img.vi { width: calc(var(--bh) * 646 / 192); height: calc(var(--bh) * 250 / 192); margin: calc(var(--bh) * -29 / 192) 0; }
a.store-badge.gp img.en { width: calc(var(--bh) * 646 / 168); height: calc(var(--bh) * 250 / 168); margin: calc(var(--bh) * -41 / 168); }
.store-badge:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.store-badge.detected { outline: 3px solid var(--orange); outline-offset: 4px; }
.stores, .kz-stores, .hero-cta, .feat-head .btns, .news-body .store-btns, .news-body .cta-row { align-items: center; }
@media (max-width: 560px) { .store-badge { --bh: 40px; } }
@media (prefers-reduced-motion: reduce) { .store-badge { transition: none; } }
.btn svg:first-child:not(:last-child) { width: 18px; height: 18px; }
.btn.detected { box-shadow: 0 0 0 3px var(--orange); }

/* /get */
.get { min-height: calc(100svh - 64px); display: grid; place-items: center; padding: 48px var(--g); }
.get-card { text-align: center; max-width: 520px; display: grid; justify-items: center; gap: 0; }
.get-mark { width: 96px; height: 96px; border-radius: 24px; margin-bottom: 28px; }
.get-card h1 { font-size: clamp(40px, 7vw, 80px); }
.get-card .lede { margin-top: 18px; color: var(--mute); }
.get-card .stores { margin-top: 36px; justify-content: center; }
.get-apk { margin-top: 28px; font-size: 15px; }
.get-apk a { color: var(--mute); }
.get-wait { margin-top: 36px; display: grid; justify-items: center; gap: 16px; }
.get-wait p { font-size: 17px; color: var(--mute); }
.get-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--soft); border-top-color: var(--orange); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* /changelog */
.cl { padding-bottom: clamp(72px, 10vw, 160px); }
.cl-latest { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: end; justify-content: space-between; margin: 12px 0 clamp(48px, 7vw, 96px); }
.cl-latest-h { margin: 16px 0 0; font-size: clamp(36px, 5vw, 72px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.cl-latest-h span { color: var(--mute); }
.cl-latest-p { margin: 8px 0 0; color: var(--mute); font-size: 18px; }
.cl-list { list-style: none; margin: 0; padding: 0; }
.cl-rel { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px clamp(32px, 6vw, 96px); padding: clamp(28px, 4vw, 52px) 0; }
.cl-meta { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px 12px; align-items: center; }
.cl-ver { flex-basis: 100%; font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.cl-rel:not(.is-latest) .cl-ver { color: var(--mute); }
.cl-date { font-size: 16px; color: var(--mute); }
.cl-plat { flex-basis: 100%; font-size: 14px; color: var(--mute); }
.cl-notes { list-style: none; margin: 0 0 8px; padding: 0; max-width: 70ch; }
.cl-notes li { display: flex; gap: 14px; margin-bottom: .75em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; }
.cl-notes li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .72em; border-radius: 50%; background: var(--orange); }
.cl-group { margin: 22px 0 10px; font-size: 15px; font-weight: 600; color: var(--mute); }
.cl-rel.is-latest .cl-notes li { font-size: clamp(18px, 1.5vw, 21px); }
@media (max-width: 800px) { .cl-rel { grid-template-columns: 1fr; } }

/* guides: index rows and article components (light, no colour blocks) */
.news-list h2 .t, .guides-list h2, .guides-list h3.news-h { font-size: clamp(22px, 2.3vw, 34px); }
.guides-list a { grid-template-columns: 220px minmax(0, 1fr) 24px; }
.guides-list h2 span { display: inline; }
@media (max-width: 800px) { .guides-list a { grid-template-columns: 1fr 24px; } }
:root { --text-primary: var(--ink); --text-secondary: var(--mute); --text-tertiary: var(--mute); --accent: #c2410c; --surface-1: var(--soft); --surface-2: var(--soft); --border-subtle: #0e0e1018; --font-display: var(--font); --font-body: var(--font);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px; --space-9: 48px; }
.art-lede { margin: 0 0 clamp(28px, 4vw, 48px); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; color: var(--mute); }
.art-wide { max-width: 72ch; min-width: 0; }
.news-body h2 { margin: clamp(40px, 5vw, 64px) 0 16px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; scroll-margin-top: 92px; }
:lang(vi) .news-body h2 { letter-spacing: 0; line-height: 1.32; }
.news-body h3, .news-body h4 { margin: 28px 0 8px; font-size: 20px; font-weight: 600; line-height: 1.35; }
.news-body em { font-style: italic; }
.news-body strong { font-weight: 600; }
.news-body figure { margin: clamp(28px, 4vw, 48px) 0; }
.news-body figure svg { display: block; width: 100%; height: auto; border-radius: 20px; background: #0e0e10; }
.news-body figure img { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 20px; }
.news-body figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--mute); text-align: center; }
.news-body figure.shot { max-width: 300px; margin-left: auto; margin-right: auto; }
.news-body code.inline, .news-body pre code { font: .88em ui-monospace, SFMono-Regular, Menlo, monospace; }
.news-body code.inline { background: var(--soft); padding: 2px 7px; border-radius: 6px; }
.news-body pre { margin: 18px 0; padding: 16px 20px; background: var(--soft); border-radius: 14px; overflow-x: auto; }
.news-body .callout { display: flex; gap: 14px; align-items: flex-start; margin: 28px 0; padding: 2px 0 2px 20px; border-left: 4px solid var(--orange); }
.news-body .callout svg { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--orange); }
.news-body .callout > div { font-size: 18px; line-height: 1.65; }
.news-body .table-wrap { overflow-x: auto; margin: 28px 0; border-radius: 16px; background: var(--soft); }
.news-body table.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.news-body table.cmp th, .news-body table.cmp td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #0e0e1014; vertical-align: top; }
.news-body table.cmp thead th { font-size: 14px; font-weight: 600; color: var(--mute); }
.news-body table.cmp tbody tr:last-child td { border-bottom: 0; }
.news-body table.cmp td.fmt, .news-body table.cmp td.yes, .news-body table.cmp td.good, .news-body table.cmp td.hi { font-weight: 600; }
.news-body table.cmp td.no, .news-body table.cmp td.warn { color: var(--mute); }
.news-body hr.rule { border: 0; height: 0; margin: clamp(36px, 5vw, 64px) 0; }
.news-body ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 16px; }
.news-body ol.steps > li { counter-increment: step; position: relative; display: block; padding-left: 48px; margin: 0; }
.news-body ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--ink); font-weight: 600; font-size: 15px; margin: 0; }
.news-body .fmt-cats, .news-body .verdict, .news-body .case-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 24px 0 32px; }
.news-body .fmt-cat, .news-body .verdict-card, .news-body .case-card, .news-body .dl-app { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: var(--soft); text-decoration: none; color: var(--ink); }
.news-body .case-card:hover { background: #dfdfda; }
.news-body .fmt-cat .tag, .news-body .verdict-card .vc-tag, .news-body .case-card .cc-tag { font-size: 14px; font-weight: 600; color: var(--mute); text-transform: none; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.news-body .fmt-cat .tag::before, .news-body .verdict-card .vc-tag::before, .news-body .case-card .cc-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.news-body .verdict-card.bad .vc-tag::before, .news-body .verdict-card.alt .vc-tag::before, .news-body .fmt-cat.lossy .tag::before { background: var(--ink); }
.news-body .fmt-cat h3, .news-body .verdict-card h3, .news-body .case-card h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.news-body .fmt-cat p, .news-body .verdict-card p, .news-body .case-card p, .news-body .fmt-cat .fl, .news-body .fmt-cat .fd { margin: 0; font-size: 16px; line-height: 1.55; }
.news-body .result { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--orange); }
.news-body .result .rl-label { font-size: 14px; font-weight: 600; color: var(--mute); }
.news-body .tier { display: flex; gap: 18px; align-items: flex-start; margin: 0 0 16px; padding: 22px; border-radius: 20px; background: var(--soft); }
.news-body .tier .num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--ground); font-weight: 700; }
.news-body .tier .body h3 { margin: 0 0 4px; font-size: 19px; }
.news-body .tier .body p { margin: 0; }
.news-body .cta-box { margin: clamp(48px, 6vw, 80px) 0 24px; padding: 28px 0 0; }
.news-body .cta-box h3 { margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.25; }
.news-body .cta-row, .news-body .store-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.news-body .dl-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.news-body .dl-head { display: flex; align-items: center; gap: 12px; }
.news-body .dl-head .ic, .news-body .dl-head img.ic { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; }
.news-body .dl-head .nm, .news-body .dl-app .dl-name { font-weight: 600; font-size: 19px; }
.news-body .dl-top { margin: 24px 0 16px; }
.art-related { margin-top: clamp(56px, 8vw, 112px); }
.art-related h2 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.art-related .news-list { padding: 0; }
.art-related .news-list a { grid-template-columns: 220px minmax(0, 1fr); }
.art-related .news-list h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 600; margin: 0; line-height: 1.3; }
@media (max-width: 800px) { .art-related .news-list a { grid-template-columns: 1fr; } }

/* Kagezan at a glance: the short factual block AI answers and skimmers quote */
.kz-glance { padding-top: clamp(80px, 11vw, 168px); }
.kz-glance-lead { margin-top: 24px; max-width: 58ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--mute); text-wrap: pretty; }
.kz-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 64px); margin: clamp(32px, 4.5vw, 64px) 0 0; padding: 0; }
.kz-fact { padding: 22px 0 26px; border-top: 1px solid var(--line, #0000001a); }
.kz-fact dt { font-size: 14px; font-weight: 600; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.kz-fact dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.kz-fact dd { margin: 8px 0 0; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; max-width: 26ch; text-wrap: pretty; }
@media (max-width: 1023px) { .kz-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .kz-facts { grid-template-columns: 1fr; } .kz-fact dd { max-width: none; } }
/* Kagezan store buttons on the news list and under each post (tools/kagezan/news.py store_block) */
.news-stores { margin-top: 28px; }
.news-stores .kz-stores { align-items: center; }
.news-head .news-stores { margin-top: 24px; }
