/* ==========================================================================
   C NET Thailand — site styles
   Concept: the warehouse floor. Brand indigo for structure, safety-yellow
   floor marking for the one thing that moves (routes, focus, key actions).
   ========================================================================== */

@font-face { font-family: "Anuphan"; src: url("../fonts/anuphan-thai-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Anuphan"; src: url("../fonts/anuphan-latin-600-normal.woff2") format("woff2"); font-weight: 600; 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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anuphan"; src: url("../fonts/anuphan-thai-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Anuphan"; src: url("../fonts/anuphan-latin-700-normal.woff2") format("woff2"); font-weight: 700; 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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Thai Looped"; src: url("../fonts/ibm-plex-sans-thai-looped-thai-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Thai Looped"; src: url("../fonts/ibm-plex-sans-thai-looped-latin-400-normal.woff2") format("woff2"); font-weight: 400; 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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Thai Looped"; src: url("../fonts/ibm-plex-sans-thai-looped-thai-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Plex Thai Looped"; src: url("../fonts/ibm-plex-sans-thai-looped-latin-600-normal.woff2") format("woff2"); font-weight: 600; 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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #181083;          /* brand indigo (from the C.Net logo) */
  --ink-2: #2b22c4;
  --ink-deep: #0e0a52;
  --signal: #ffc42e;       /* floor-marking yellow */
  --signal-ink: #1a1400;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f5fb;
  --text: #141833;
  --muted: #565d7e;
  --line: #dde0ee;
  --link: #2b22c4;
  --ok: #08664a;
  --warn: #b4410f;
  --plan-bg: #ffffff;
  --plan-grid: rgba(24, 16, 131, .06);
  --bay: #e3e5f3;
  --bay-stroke: #c9cce3;

  --shadow-1: 0 1px 2px rgba(20, 24, 51, .06), 0 2px 8px rgba(20, 24, 51, .05);
  --shadow-2: 0 1px 2px rgba(20, 24, 51, .05), 0 10px 24px -8px rgba(24, 16, 131, .16), 0 30px 60px -28px rgba(24, 16, 131, .22);
  --shadow-3: 0 2px 4px rgba(20, 24, 51, .06), 0 18px 36px -10px rgba(24, 16, 131, .22), 0 50px 90px -40px rgba(24, 16, 131, .35);

  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --f-display: "Anuphan", "Noto Sans Thai", "Leelawadee UI", "Thonburi", system-ui, sans-serif;
  --f-body: "Plex Thai Looped", "Sarabun", "Leelawadee UI", "Thonburi", system-ui, sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --head-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #6c64ff; --ink-2: #8c86ff; --ink-deep: #07051c;
  --bg: #0d0b26; --surface: #15123a; --surface-2: #1c1948; --text: #eceefa; --muted: #a6aacd; --line: #2d2968;
  --link: #b4b0ff; --ok: #4fd3a0; --warn: #ff9a62;
  --plan-bg: #110f31; --plan-grid: rgba(180, 176, 255, .07); --bay: #221f56; --bay-stroke: #35317a;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 12px 28px -10px rgba(0, 0, 0, .6); --shadow-3: 0 24px 60px -20px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.75 var(--f-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); line-height: 1.22; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: var(--signal-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--signal); color: var(--signal-ink); padding: 10px 16px; border-radius: var(--r-s); font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.ic { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- buttons ---------- */
.btn { --bx: 0px; --by: 0px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .6em 1.35em; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transform: translate(var(--bx), var(--by)); transition: transform .35s var(--ease), box-shadow .3s var(--ease), background-color .25s, color .25s, border-color .25s; -webkit-tap-highlight-color: transparent; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .28) 50%, transparent 80%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translate(var(--bx), var(--by)) scale(.97); }
.btn-sm { min-height: 46px; padding: .55em 1.25em; font-size: 1.02rem; }
.btn-lg { min-height: 54px; padding: .7em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 6px 18px -6px rgba(24, 16, 131, .55); }
.btn-primary:hover { background: var(--ink-2); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 12px 28px -8px rgba(24, 16, 131, .6); }
.btn-signal { background: var(--signal); color: var(--signal-ink); box-shadow: 0 8px 22px -8px rgba(255, 196, 46, .7); }
.btn-signal:hover { background: #ffd35e; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
:root[data-theme="dark"] .btn-ghost:hover { color: var(--text); }
.btn-ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .28; pointer-events: none; animation: ripple .6s var(--ease) forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn .ic { width: 20px; height: 20px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head-h); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, height .3s; }
@supports not (background: color-mix(in srgb, red, blue)) { .site-head { background: rgba(255, 255, 255, .88); } }
.site-head.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -18px rgba(20, 24, 51, .35); }
.head-row { height: 100%; display: flex; align-items: center; gap: 20px; }
.head-cta { white-space: nowrap; }
.brand-sub { display: none; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); flex: none; }
.brand-logo { height: 32px; width: auto; }
:root[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }
.brand-sub { font: 600 .9rem/1 var(--f-display); color: var(--muted); letter-spacing: .02em; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { position: relative; display: block; white-space: nowrap; padding: 10px 11px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.1rem; border-radius: 999px; transition: background-color .2s, color .2s; }
.main-nav ul a:hover { background: var(--surface-2); }
.main-nav ul a[aria-current="page"] { color: var(--ink); }
:root[data-theme="dark"] .main-nav ul a[aria-current="page"] { color: var(--link); }
.main-nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--signal); }
.nav-extra { display: flex; align-items: center; gap: 4px; }
.lang { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 1rem; font-weight: 600; }
.lang:hover { color: var(--text); background: var(--surface-2); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.ic-sun, :root[data-theme="dark"] .ic-moon { display: none; }
:root[data-theme="dark"] .ic-sun { display: block; }
.ic-close { display: none; }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-grid; }
  .head-cta { display: none; }
  .head-actions { margin-left: auto; }
  .main-nav { position: fixed; inset: var(--head-h) 0 auto 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gut) 24px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-3); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .25s, visibility 0s .3s; max-height: calc(100dvh - var(--head-h)); overflow: auto; }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .3s var(--ease), opacity .25s; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 14px 8px; border-radius: var(--r-s); font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .main-nav ul a[aria-current="page"]::after { left: 8px; right: auto; width: 28px; bottom: 6px; }
  .nav-extra { padding-top: 12px; }
  .nav-toggle[aria-expanded="true"] .ic-open { display: none; }
  .nav-toggle[aria-expanded="true"] .ic-close { display: block; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { padding-top: 18px; font-size: .9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 .55em; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(8px, 2vw, 24px); overflow: clip; }
:root[data-theme="dark"] .hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 14%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-kicker { color: var(--muted); font-weight: 600; margin-bottom: .8rem; }
.hero-h { max-width: 20ch; }
.ph { display: inline-block; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero-plan { margin: 0; perspective: 1400px; }
.plan-card { --rx: 8deg; --ry: -10deg; background: var(--plan-bg); border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px; box-shadow: var(--shadow-3); transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.hero-plan figcaption { margin-top: 14px; color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.hero-plan figcaption::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--signal); flex: none; }

/* floor plan svg */
.plan { width: 100%; height: auto; }
.plan-grid { stroke: var(--plan-grid); stroke-width: 1; }
.plan-label { font: 600 13px var(--f-display); fill: var(--muted); }
.plan-dock { fill: none; stroke: var(--bay-stroke); stroke-width: 1.5; stroke-dasharray: 6 5; }
.plan-dock-t { letter-spacing: .3em; font-size: 11px; }
.bay { fill: var(--bay); stroke: var(--bay-stroke); stroke-width: 1; transition: fill .3s; }
.bay.lit { animation: lit .5s var(--ease) forwards; }
.route-shadow { fill: none; stroke: var(--bay-stroke); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.route { fill: none; stroke: var(--signal); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2020; stroke-dashoffset: 2020; animation: draw 5s linear .6s forwards; filter: drop-shadow(0 2px 3px rgba(180, 120, 0, .35)); }
.pick { fill: var(--surface); stroke: var(--ink); stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .45s var(--ease) forwards; }
.bot { offset-path: path("M260 400V330H100V20H180V330H340V20H420V330H260V400"); offset-rotate: 0deg; offset-distance: 0%; animation: drive 5s linear .6s forwards; }
.bot-body { fill: var(--ink); stroke: #fff; stroke-width: 2.5; }
.bot-eye { fill: var(--signal); }
.p1, .l1 { animation-delay: 1.39s; } .p2, .l2 { animation-delay: 1.71s; } .p3, .l3 { animation-delay: 2.23s; } .p4, .l4 { animation-delay: 2.58s; }
.p5, .l5 { animation-delay: 3.42s; } .p6, .l6 { animation-delay: 3.79s; } .p7, .l7 { animation-delay: 4.41s; } .p8, .l8 { animation-delay: 4.83s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 60% { transform: scale(1.35); } to { transform: scale(1); } }
@keyframes lit { to { fill: var(--signal); stroke: #d99a00; } }
@keyframes drive { to { offset-distance: 100%; } }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(36px, 5vw, 56px) 0 0; border-top: 1px solid var(--line); }
.fact { padding: 20px 20px 4px 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact dt { font: 700 clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem)/1.1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .fact dt { color: var(--text); }
.fact dd { margin: 6px 0 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.facts-src { margin-top: 14px; font-size: .8rem; }
.facts-src a { color: var(--muted); }
.intro-video { max-width: 880px; margin: 36px auto 0; }
.news-cat + .news-cat { margin-top: 44px; }
.news-cat-head { margin-bottom: 18px; }
.news-cat-head .zone-h { margin: 0; }
.acat + .acat { padding-top: 8px; }

/* ---------- sections ---------- */
.sec { padding: clamp(48px, 7vw, 88px) 0; }
.sec-top0 { padding-top: 0; }
.sec-tint { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .sec-tint { background: var(--surface-2); border: 0; }
.sec-ink { background: var(--ink-deep); color: #e9eaff; }
.sec-ink h2, .sec-ink h3 { color: #fff; }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.sec-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.sec-head-row h2 { margin: 0; }
.sec-title { margin-bottom: 1.2em; }
.link-more { font-weight: 600; }
.page-head { padding: clamp(28px, 4vw, 48px) 0 clamp(32px, 5vw, 56px); }
.page-head .lead, .lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* challenges */
.ch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px; box-shadow: var(--shadow-1); }
.ch h3 { font-size: 1.25rem; }
.ch p { font-size: .98rem; }
.ch-p { color: var(--muted); }
.ch-s { margin: 0; padding-top: 14px; border-top: 1px dashed var(--line); }
.tag { display: block; width: max-content; margin-bottom: 6px; font: 600 .8rem/1 var(--f-body); padding: 5px 9px; border-radius: 6px; }
.tag-warn { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.tag-ok { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }

/* product zones + cards */
.zone { padding-top: 8px; }
.zone + .zone { margin-top: clamp(40px, 6vw, 64px); }
.zone-head { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 8px 32px; align-items: baseline; padding: 14px 0 22px; border-top: 3px solid var(--text); margin-bottom: 6px; }
.zone-h { font-size: 1.35rem; margin: 0; }
.zone-head p { margin: 0; color: var(--muted); }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pgrid-3 { grid-template-columns: repeat(3, 1fr); }
.pcard { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .45s var(--ease), box-shadow .35s var(--ease), border-color .3s; will-change: transform; }
.pcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255, 255, 255, .22), transparent 45%); opacity: 0; transition: opacity .3s; }
.pcard:hover { box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.pcard:hover::after { opacity: 1; }
.pcard-big { grid-column: span 2; }
.pcard-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border-radius: inherit; }
.pcard-media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-m) var(--r-m) 0 0; background: var(--surface-2); }
.pcard-big .pcard-media { aspect-ratio: 16 / 8; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.pcard-line { font: 600 .82rem/1.4 var(--f-display); color: var(--ink); margin: 0 0 6px; }
:root[data-theme="dark"] .pcard-line { color: var(--link); }
.pcard-title { font-size: 1.12rem; margin-bottom: 8px; }
.pcard-big .pcard-title { font-size: 1.35rem; }
.pcard-text { color: var(--muted); font-size: .95rem; line-height: 1.65; margin: 0; }
.pcard-link:focus-visible { outline-offset: 4px; border-radius: var(--r-m); }

/* steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 4px; background: repeating-linear-gradient(90deg, var(--signal) 0 14px, transparent 14px 22px); }
.step { position: relative; padding-right: 20px; }
.step-n { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 1.15rem/1 var(--f-display); box-shadow: 0 0 0 6px var(--bg); margin-bottom: 18px; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* video + cases */
.cs-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.cs-grid h2 { font-size: clamp(1.35rem, 1rem + 1.2vw, 1.8rem); }
.muted-light { color: #b9bbe6; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; background: #000; box-shadow: var(--shadow-3); }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--signal); color: var(--signal-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .3s var(--ease); }
.yt-play .ic { width: 30px; height: 30px; margin-left: 4px; }
.yt:hover .yt-play { transform: scale(1.08); }
.cases { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.cases li { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r-s); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.cases strong { font-family: var(--f-display); font-size: 1.05rem; }
.cases span { color: #c8caf0; font-size: .95rem; }
.cases-light li { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-1); }
.cases-light span { color: var(--muted); }

/* logos */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; list-style: none; margin: 0; padding: 6px 0 14px; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; width: 168px; height: 84px; display: grid; place-items: center; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--shadow-1); }
.marquee-track img { max-height: 54px; width: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partners { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; margin-top: 32px; }
.partners h3 { margin: 0; font-size: 1.05rem; color: var(--muted); }
.partners ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.partners li { width: 120px; height: 64px; display: grid; place-items: center; background: #fff; border-radius: var(--r-s); border: 1px solid var(--line); padding: 8px; }
.partners img { max-height: 46px; width: auto; }

/* faq / accordions */
.faq-wrap { max-width: 900px; }
.faq { display: grid; gap: 10px; }
.faq-item, .fn-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); transition: box-shadow .3s, border-color .3s; }
.faq-item[open], .fn-group[open] { box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.faq-item summary, .fn-group summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font: 600 1.05rem/1.5 var(--f-display); }
.faq-item summary::-webkit-details-marker, .fn-group summary::-webkit-details-marker { display: none; }
.faq-item summary span:first-child, .fn-group summary span:first-child { flex: 1; }
.faq-ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--surface-2); transition: transform .35s var(--ease), background-color .3s; }
details[open] > summary .faq-ic { transform: rotate(45deg); background: var(--signal); color: var(--signal-ink); }
.faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-a ul { margin: 0 0 1em; }
.faq-a :last-child { margin-bottom: 0; }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--line); border-radius: var(--r-s); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); color: var(--text); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* articles */
.agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.acard a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .4s var(--ease), box-shadow .35s; }
.acard a:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.acard-media { aspect-ratio: 3 / 2; background: var(--surface-2); overflow: hidden; }
.acard-media img { width: 100%; height: 100%; object-fit: cover; }
.acard-body { padding: 18px 20px 22px; }
.acard time { color: var(--muted); font-size: .85rem; }
.acard h3 { font-size: 1.1rem; margin: 4px 0 0; }
.empty { color: var(--muted); padding: 40px 0; }

/* contact band */
.band { position: relative; background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 80px) 0; overflow: hidden; }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--signal) 0 14px, #111 14px 28px); }
:root[data-theme="dark"] .band, .band { background: #181083; }
.band-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.band-h { color: #fff; margin-bottom: .4em; }
.band-p { color: #d5d6ff; max-width: 60ch; font-size: 1.08rem; }
.band-qr { text-align: center; background: #fff; color: #181083; border-radius: var(--r-m); padding: 14px 14px 10px; box-shadow: var(--shadow-3); }
.band-qr img { margin: 0 auto; }
.band-qr p { font-size: .82rem; margin: 6px 0 0; max-width: 14ch; line-height: 1.4; }

/* footer */
.site-foot { background: #0a0833; color: #c3c5ea; padding: 56px 0 24px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.1fr; gap: 32px; }
.foot-co img { height: 26px; width: auto; margin-bottom: 14px; }
.foot-name { color: #fff; font-weight: 600; margin-bottom: 4px; }
.foot-tag { font-family: var(--f-display); color: var(--signal); margin-top: 12px; }
.foot-h { font-size: 1rem; color: #fff; margin-bottom: 12px; }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-list a, .foot-list span { color: #c3c5ea; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.foot-list a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: #fff; transition: background-color .2s, transform .2s; }
.social a:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.social .ic { width: 20px; height: 20px; }
.foot-base { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #9093c4; }
.foot-base p { margin: 0; }

/* ---------- product page ---------- */
.prod-hero { padding: clamp(20px, 3vw, 36px) 0 clamp(32px, 5vw, 56px); }
.prod-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.prod-line { color: var(--muted); font-weight: 600; font-size: .95rem; }
.prod-line a { color: inherit; }
.prod-media { --rx: 0deg; --ry: 0deg; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-3); transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); aspect-ratio: 4 / 3; background: var(--surface-2); }
.prod-media img { width: 100%; height: 100%; object-fit: cover; }
.prose-wrap { max-width: 900px; }
.intro { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.8; padding-left: 22px; border-left: 4px solid var(--signal); }
.source { font-size: .85rem; color: var(--muted); }
.source a { color: var(--muted); }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fgrid-3 { grid-template-columns: repeat(3, 1fr); }
.fgrid-4 { grid-template-columns: repeat(4, 1fr); }
.prod .fgrid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1100px) { .prod .fgrid-4 { grid-template-columns: repeat(4, 1fr); } }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; box-shadow: var(--shadow-1); transition: transform .4s var(--ease), box-shadow .35s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.feat-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); margin-bottom: 14px; }
:root[data-theme="dark"] .feat-ic { color: var(--link); }
.feat p { color: var(--muted); font-size: .97rem; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ticks .ic { color: var(--ok); margin-top: .3em; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-tier { --rx: 0deg; --ry: 0deg; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; box-shadow: var(--shadow-1); transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .45s var(--ease), box-shadow .3s; }
.plan-tier h3 { font-size: 1.5rem; margin-bottom: 4px; }
.plan-cap { font-weight: 600; color: var(--ink); }
:root[data-theme="dark"] .plan-cap { color: var(--link); }
.plan-tier p:last-child { color: var(--muted); margin: 0; }
.plan-mid { border: 2px solid var(--ink); box-shadow: var(--shadow-2); }
.screens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.screen { margin: 0; }
.screen figcaption { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.screen figcaption strong { color: var(--text); display: block; }
.zoom { display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--surface); cursor: zoom-in; box-shadow: var(--shadow-1); transition: box-shadow .3s, transform .4s var(--ease); width: 100%; }
.zoom:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.zoom img { width: 100%; height: auto; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery .zoom { aspect-ratio: 3 / 2; }
.gallery .zoom img { height: 100%; object-fit: cover; }
.fn-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; margin-top: 20px; }
.fn-count { font: 400 .85rem var(--f-body); color: var(--muted); }
.fn-group ul { margin: 0; padding: 0 22px 18px 42px; columns: 1; color: var(--muted); font-size: .95rem; }
.fn-group li { padding: 3px 0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(8, 6, 30, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(8, 6, 30, .86); }
.lightbox img { max-width: min(1400px, 100%); max-height: 86vh; width: auto; height: auto; border-radius: var(--r-s); box-shadow: var(--shadow-3); }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-img { --rx: 0deg; --ry: 0deg; margin: 0; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-3); transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); }
.tagline { font: 700 1.3rem/1.4 var(--f-display); color: var(--ink); }
:root[data-theme="dark"] .tagline { color: var(--link); }
.map-fig { margin: 24px 0 0; background: #fff; border-radius: var(--r-l); padding: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.map-fig img { margin: 0 auto; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 86px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl { display: grid; grid-template-columns: 70px 1fr; gap: 32px; padding: 14px 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 81px; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); }
.tl-year { font: 700 1.2rem/1.6 var(--f-display); color: var(--ink); text-align: right; }
:root[data-theme="dark"] .tl-year { color: var(--link); }
.tl ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.tl li { margin-bottom: 4px; }
.ceo { max-width: 860px; }
.ceo blockquote { margin: 0; font-size: 1.08rem; line-height: 1.85; color: #dcdcff; }
.ceo footer { display: grid; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.ceo footer strong { color: #fff; font-family: var(--f-display); font-size: 1.15rem; }
.ceo footer span { color: #b9bbe6; font-size: .92rem; }
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-weight: 600; }
.spec dd { margin: 0; }

/* ---------- prose (articles, policy) ---------- */
.prose { overflow-wrap: anywhere; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3, .prose h4, .prose h5 { margin-top: 1.5em; font-size: 1.2rem; }
.prose img { border-radius: var(--r-s); margin: 1.2em 0; height: auto; }
.prose figure { margin: 1.5em 0; }
.prose .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.prose .gallery { margin: 1.5em 0; }
.post-head { padding-top: 24px; }
.post-head time { color: var(--muted); font-size: .95rem; }
.post-head h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); margin-top: .3em; }
.post-hero { margin: 24px auto 40px; max-width: 980px; }
.post-hero img { width: 100%; border-radius: var(--r-l); box-shadow: var(--shadow-2); }
.post-body { padding-bottom: 32px; }

/* ---------- contact ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; transition: border-color .2s, transform .2s; }
.chip span { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; background: var(--surface-2); font-size: .8rem; }
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.cinfo dl { margin: 0; display: grid; gap: 4px; }
.ci { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci .ic { grid-row: span 2; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
:root[data-theme="dark"] .ci .ic { color: var(--link); }
.ci dt { font-weight: 600; font-size: .9rem; color: var(--muted); }
.ci dd { margin: 0; }
.cqr { display: flex; gap: 18px; align-items: center; margin-top: 24px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.cqr img { background: #fff; border-radius: 8px; }
.cqr p { margin: 0; color: var(--muted); }
.cqr .social a { color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .cqr .social a { color: var(--text); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow-3); }
.form-card h2 { font-size: 1.5rem; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .97rem; }
.req { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s, background-color .2s; -webkit-appearance: none; appearance: none; }
textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
input:hover, textarea:hover, select:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 18%, transparent); }
[aria-invalid="true"] { border-color: var(--warn) !important; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { padding-right: 40px; }
.field-check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--ink); }
.field-check label { font-weight: 400; color: var(--muted); }
.field-check .f-err { grid-column: 2; }
.f-err { color: var(--warn); font-size: .9rem; margin: 6px 0 0; }
.f-summary { background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-ok { text-align: center; padding: 32px 8px; }
.f-ok-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.f-ok-ic .ic { width: 32px; height: 32px; }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.cf-turnstile { margin-bottom: 18px; }

/* 404 */
.nf { text-align: left; }
.nf-code { font: 700 clamp(4rem, 12vw, 8rem)/1 var(--f-display); color: transparent; -webkit-text-stroke: 2px var(--ink); margin: 0 0 .1em; }

/* ---------- reveal on scroll (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .prod-hero-grid, .cs-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-plan { max-width: 560px; }
  .plan-card { --rx: 0deg; --ry: 0deg; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ch-grid, .agrid, .plans, .pgrid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 22px; right: auto; top: 24px; bottom: 24px; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--signal) 0 14px, transparent 14px 22px); }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding: 0 0 22px; }
  .step-n { grid-row: span 2; margin: 0; }
  .zone-head { grid-template-columns: 1fr; }
  .fgrid, .fgrid-3, .fgrid-4, .screens, .fn-groups { grid-template-columns: 1fr 1fr; }
  .band-grid { grid-template-columns: 1fr; }
  .band-qr { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .pgrid, .pgrid-3, .ch-grid, .agrid, .plans, .fgrid, .fgrid-3, .fgrid-4, .prod .fgrid-4, .screens, .fn-groups, .ticks-grid, .f-row { grid-template-columns: 1fr; }
  .pcard-big { grid-column: auto; }
  .pcard-big .pcard-media { aspect-ratio: 16 / 10; }
  .foot-grid { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 2px; }
  .timeline::before { left: 6px; }
  .tl { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
  .tl::before { left: 1px; top: 22px; }
  .tl-year { text-align: left; }
  .btn-row .btn { flex: 1 1 100%; }
  .brand-sub { display: none; }
  .head-row { gap: 12px; }
  .cqr { flex-direction: column; text-align: center; }
}

/* touch devices: no hover-only effects */
@media (hover: none) {
  .pcard:hover, .feat:hover, .acard a:hover, .zoom:hover { transform: none; }
  .pcard:active { transform: scale(.985); }
  .acard a:active { transform: scale(.985); }
}

/* reduced motion: show the final state immediately */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask: none; mask: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-head, .site-foot, .band, .btn, .hero-plan, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}

/* ---------- article blocks (written in the editor) ---------- */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.post-upd { font-size: .88rem; }
.post-lead { margin-top: .4rem; }
.chip-sm { padding: 4px 12px; font-size: .85rem; }
.toc { margin: 0 0 32px; padding: 18px 22px; border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--r-s); background: var(--surface); }
.toc-h { font: 600 1rem var(--f-display); margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { padding: 2px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose h2[id], .prose h3[id] { scroll-margin-top: calc(var(--head-h) + 20px); }
.prose .b-img { margin: 1.8em 0; }
.prose .b-img .zoom { cursor: zoom-in; }
.prose .b-img img, .prose .b-mt img { margin: 0; width: 100%; }
.prose .b-img figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; text-align: center; }
@media (min-width: 1000px) {
  .prose .b-img-wide { margin-left: -80px; margin-right: -80px; }
  .prose .b-img-full { margin-left: calc(50% - 50vw + 40px); margin-right: calc(50% - 50vw + 40px); }
}
.prose .b-gallery { margin: 1.8em 0; }
.prose .b-gallery img { margin: 0; }
.b-mt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; margin: 2em 0; }
.b-mt-right { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.b-mt-right .b-mt-media { order: 2; }
.b-mt-media { margin: 0; border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-2); }
.b-mt-text > :last-child { margin-bottom: 0; }
.prose .b-feat { margin: 1.6em 0; }
.prose .b-feat h3 { margin-top: 0; font-size: 1.08rem; }
.b-steps { list-style: none; padding: 0; margin: 1.8em 0; display: grid; gap: 0; position: relative; }
.b-steps::before { content: ""; position: absolute; left: 22px; top: 24px; bottom: 24px; width: 4px; background: repeating-linear-gradient(180deg, var(--signal) 0 14px, transparent 14px 22px); }
.b-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding-bottom: 20px; position: relative; }
.b-steps .step-n { margin: 0; }
.b-steps h3 { margin: 8px 0 4px !important; font-size: 1.1rem; }
.b-steps p { color: var(--muted); margin: 0; }
.prose .b-ticks { margin: 1.4em 0; }
.prose .b-callout { margin: 1.8em 0; font-size: 1.08rem; }
.prose .b-callout p:last-child { margin-bottom: 0; }
.b-quote { margin: 2em 0; padding: 22px 26px; border-radius: var(--r-m); background: var(--surface-2); font: 600 1.15rem/1.7 var(--f-display); color: var(--text); position: relative; }
.b-quote::before { content: "“"; position: absolute; top: -18px; left: 18px; font: 700 4rem/1 var(--f-display); color: var(--signal); }
.b-quote p:last-of-type { margin-bottom: 0; }
.b-quote footer { margin-top: 12px; font: 400 .95rem var(--f-body); color: var(--muted); }
.prose .b-facts { margin: 1.8em 0; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.prose .b-facts .fact { padding-top: 16px; }
.prose .b-faq { margin: 1.6em 0; }
.prose .b-faq .faq-a p:last-child { margin-bottom: 0; }
.prose .b-yt { margin: 1.8em 0; }
.prose .b-yt img { margin: 0; border-radius: 0; }
.b-cta { margin: 2.2em 0; padding: 26px 28px; border-radius: var(--r-l); background: #181083; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-3); }
.b-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--signal) 0 12px, #111 12px 24px); }
.prose .b-cta h3 { color: #fff; margin: 4px 0 6px; font-size: 1.3rem; }
.b-cta p { color: #d5d6ff; }
.b-cta .btn { text-decoration: none; }
.b-hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.acard-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; font-size: .85rem; color: var(--muted); }
.acard-type { font-weight: 600; color: var(--ink); }
.acard-press { color: #b45309; }
.acard-event { color: var(--ok); }
:root[data-theme="dark"] .acard-type { color: var(--link); }
.acard-ex { color: var(--muted); font-size: .92rem; line-height: 1.6; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on span { background: rgba(255, 255, 255, .2); color: #fff; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; color: var(--muted); }
.preview-bar { position: sticky; top: var(--head-h); z-index: 30; background: var(--signal); color: var(--signal-ink); text-align: center; font-weight: 700; padding: 8px 16px; }
@media (max-width: 760px) {
  .b-mt, .b-mt-right { grid-template-columns: 1fr; }
  .b-mt-right .b-mt-media { order: 0; }
}
