/*
 * 商道智联 — design system v3 "Silver Signal"
 * Light adaptation of the client-approved reference (stavrossymeonidis.dev):
 * one continuous silver canvas, floating white cards with hairline borders,
 * a techno display face (Orbitron, self-hosted) for EN headings & numbers,
 * mono "data-stamp" chips, oversized metric figures, and calm motion
 * (particle hero, marquees, counters). Blue #0066FF stays a *signal*, never
 * a wash. Hand-written CSS, no framework / build step.
 */

/* ------------------------------------------------------------------ fonts */
/* Orbitron variable (wght 400–900), latin+digits only — CJK text never hits
   it and falls through to the system heavy sans. OFL license alongside. */
@font-face {
    font-family: "Orbitron";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/orbitron-var-latin.51eee31e9cbb.woff2") format("woff2");
}

/* CJK display face — subset of 得意黑 / Smiley Sans (SIL OFL 1.1, license in
   fonts/OFL-SmileySans.txt), regenerated via scripts/subset-display-font.sh.
   Declared under a local alias per the OFL reserved-font-name clause. The
   weight range maps every weight to the single oblique cut so browsers never
   synthesize a faux bold. */
@font-face {
    font-family: "SDZL Display";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/smiley-sans-display.ad94191153dc.woff2") format("woff2");
}

/* ------------------------------------------------------------------ tokens */
:root {
    /* brand palette */
    --silver: #A9A9A9;
    --blue: #0066FF;
    --blue-600: #0052D4;
    --cyan: #00CBCD;

    /* surfaces — near-black canvas, lifted dark cards, tonal panels
       (dark replica of the client's reference direction) */
    --bg: #050506;
    --surface: #0E0E12;
    --panel: #0A0A0E;
    --ink: #F4F5F7;

    /* text */
    --text: #C3C8D1;
    --text-2: #969DA9;
    --text-3: #666D79;

    /* hairlines */
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.17);

    /* status */
    --success: #16A34A;
    --warning: #FA8C16;
    --error: #F5222D;

    /* radii — big, soft, reference-scale */
    --r-lg: 24px;
    --r-md: 16px;
    --r-sm: 10px;
    --r-pill: 999px;

    /* deep ambient shadows on black; hover carries a faint blue signal */
    --shadow-soft: 0 20px 44px -26px rgba(0, 0, 0, 0.85), 0 4px 12px -8px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 30px 64px -28px rgba(0, 0, 0, 0.9), 0 8px 22px -12px rgba(0, 102, 255, 0.18);
    --shadow-blue: 0 14px 34px -12px rgba(0, 102, 255, 0.5);

    /* spacing — 8px base */
    --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
    --s5: 40px; --s6: 56px; --s8: 72px; --s10: 96px;

    /* layout */
    --container: 1200px;
    --gutter: clamp(20px, 5vw, 40px);

    /* type — system sans (CN+EN, China-safe: no font CDN) + techno display */
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
        Roboto, system-ui, sans-serif;
    --font-display: "Orbitron", var(--font);
    --font-display-cjk: "SDZL Display", var(--font);
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

    /* motion */
    --ease: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 var(--s2);
}
/* EN locale: big headings switch to the techno display face, uppercase */
:lang(en) h1, :lang(en) h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700; }

p { margin: 0 0 var(--s2); }
a { color: var(--blue); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--blue-600); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--blue); color: #fff; padding: var(--s1) var(--s2); border-radius: var(--r-sm); }
.skip-link:focus { left: var(--s2); top: var(--s2); }

/* page-wide faint dot-matrix on the silver canvas */
.bg-texture {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 78%);
    mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 78%);
}

/* ------------------------------------------------------------------ layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding: clamp(72px, 11vh, 140px) 0; position: relative; }
.section--soft { background: var(--surface); border-block: 1px solid var(--line); }
/* tonal contrast band — deeper silver, same light world (no dark jumps) */
.section--panel { position: relative; isolation: isolate; overflow: hidden;
    background: linear-gradient(180deg, var(--panel), #0C0C11 90%);
    border-block: 1px solid var(--line); }
.section--panel > .container { position: relative; z-index: 1; }
.section--panel::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.8;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.4px); background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(110% 90% at 50% 0%, #000 10%, transparent 74%);
    mask-image: radial-gradient(110% 90% at 50% 0%, #000 10%, transparent 74%); }

.section__head { max-width: 760px; margin: 0 auto var(--s8); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__heading { font-family: var(--font-display-cjk); font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -0.005em; font-weight: 700; }
.section__intro { color: var(--text-2); font-size: 1.08rem; margin: 0; }

/* eyebrow — mono "data-stamp" capsule; the tiny blue dot is the signal */
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px; margin-bottom: var(--s2);
    padding: 6px 13px; border-radius: var(--r-pill);
    font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--text-2); background: var(--surface);
    border: 1px solid var(--line-strong);
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.14); }

/* ------------------------------------------------------------------- brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { color: inherit; }
.brand__logo { width: 36px; height: 36px; object-fit: contain; }
.brand__name { font-weight: 700; font-size: 1.12rem; letter-spacing: 0.02em; color: var(--ink); white-space: nowrap; }

/* --------------------------------------------------- floating pill nav */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: var(--s2); pointer-events: none; }
.site-header__pill {
    pointer-events: auto;
    width: min(var(--container), calc(100% - 2 * var(--gutter)));
    margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
    padding: 10px 12px 10px 20px;
    border-radius: var(--r-pill);
    /* polished black glass: vertical sheen over a dark translucent base,
       edges drawn by inset highlights instead of a hard border */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.015) 42%, rgba(0, 0, 0, 0.22)),
        rgba(13, 13, 17, 0.66);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(0, 0, 0, 0.45),
        0 16px 40px -18px rgba(0, 0, 0, 0.95);
    transition: box-shadow 0.5s var(--ease), background 0.5s var(--ease);
}
.site-header.is-scrolled .site-header__pill {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.015) 42%, rgba(0, 0, 0, 0.22)),
        rgba(13, 13, 17, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(0, 0, 0, 0.45),
        0 20px 48px -20px rgba(0, 0, 0, 1);
}

.site-nav { display: flex; align-items: center; gap: var(--s4); }
.main-nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; position: relative; }
.main-nav__item { position: relative; z-index: 1; } /* labels ride above the blob */
.main-nav__link {
    display: inline-block; padding: 8px 14px; border-radius: var(--r-pill);
    color: var(--text); font-size: 0.92rem; white-space: nowrap;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
/* mid-width laptops: the pill carries nav + lang + theme toggle — tighten */
@media (max-width: 1320px) and (min-width: 769px) {
    .site-header__pill { gap: var(--s2); }
    .site-nav { gap: var(--s2); }
    .main-nav__link { padding: 8px 9px; font-size: 0.88rem; }
    .lang__link { padding: 4px 8px; }
}
.main-nav__link:hover { color: var(--ink);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10); }
/* springy hover blob (injected by JS on hover-capable devices) — it takes
   over the hover highlight, so the static one is suppressed */
.main-nav__blob { position: absolute; top: 0; left: 0; z-index: 0; border-radius: var(--r-pill);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    opacity: 0; transition: opacity 0.25s var(--ease);
    pointer-events: none; will-change: transform, width; }
.main-nav__blob.is-visible { opacity: 1; }
.main-nav.has-blob .main-nav__link:hover { background: none; box-shadow: none; }
.main-nav.has-blob .main-nav__link.is-active:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.35); }
/* current item = a raised lighter chip, like a polished key on the glass bar */
.main-nav__link.is-active { color: var(--ink);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.35); }
.main-nav__link.is-active:hover { color: var(--ink);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)); }

.nav-actions { display: flex; align-items: center; gap: var(--s2); }
.lang { display: inline-flex; gap: 2px; list-style: none; margin: 0; padding: 4px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.07); }
.lang__link { display: inline-block; padding: 4px 11px; border-radius: var(--r-pill); color: var(--text-3); font-size: 0.8rem; font-family: var(--font-mono); letter-spacing: 0.04em; }
.lang__link:hover { color: var(--ink); }
.lang__link.is-active { color: #fff; background: var(--blue); }
.lang__link.is-active:hover { color: #fff; }

.burger { display: none; width: 40px; height: 40px; border: 0; background: rgba(255, 255, 255, 0.07); border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.is-menu-open .burger span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.is-menu-open .burger span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ----------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 12px 13px 12px 24px; border-radius: var(--r-pill);
    font-weight: 500; font-size: 0.96rem; border: 1px solid transparent; cursor: pointer;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.4s var(--ease);
    will-change: transform;
}
:lang(en) .btn { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.btn:active { transform: scale(0.97); }
.btn__icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; transition: transform 0.5s var(--ease); }
.btn:hover .btn__icon { transform: translate(3px, -3px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { background: var(--blue-600); color: #fff; box-shadow: 0 20px 44px -14px rgba(0, 102, 255, 0.5); transform: translateY(-2px); }
.btn--primary .btn__icon { background: rgba(255, 255, 255, 0.2); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.10), var(--shadow-soft); }
.btn--ghost .btn__icon { background: rgba(255, 255, 255, 0.08); }

/* ------------------------------------------------------------------- cards */
/* .bezel kept as the shared card contract (templates use bezel + bezel__inner):
   now a single white float — hairline border, big radius, soft shadow. */
.bezel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
}
.bezel__inner { padding: var(--s5); height: 100%; border-radius: inherit; }
a.bezel:hover, .bezel--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.section--soft .bezel { box-shadow: none; }
.section--soft .bezel:hover, .section--soft a.bezel:hover { box-shadow: var(--shadow-hover); }

/* ------------------------------------------------------- hero (reference) */
.hero-xl {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: center;
    min-height: min(92dvh, 980px);
    padding: clamp(120px, 16vh, 180px) 0 84px;
}
/* site-wide drifting particles — fixed layer beside .bg-texture, visible
   wherever sections are transparent (the orb floats above it in the hero) */
.bg-particles { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-xl__inner { position: relative; z-index: 1; }
.hero-xl__title {
    margin: 0 0 clamp(28px, 5vh, 56px);
    font-family: var(--font-display-cjk);
    font-size: clamp(3rem, 9.4vw, 7rem);
    line-height: 1.04; font-weight: 700; letter-spacing: -0.005em;
    color: var(--ink); text-wrap: balance;
}
.hero-xl__title span { display: block; }
.hero-xl__title span:nth-child(2) { margin-left: clamp(0px, 9vw, 130px); } /* offset second line — break symmetry */
:lang(en) .hero-xl__title { font-size: clamp(2.1rem, 6.6vw, 4.9rem); letter-spacing: 0.01em; }
.hero-xl__row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s6); }
.hero-xl__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.hero-xl__note { max-width: 340px; margin: 0; color: var(--text-2); font-size: 1.02rem; line-height: 1.7; text-align: left; }

/* hero film orb — the brand video composited as a floating sphere behind
   the display type (the reference's particle-globe slot). The footage is
   white-backed: on dark it is inverted (hue rotated back so blues stay
   blue) and screen-blended so only the glowing network survives; on light
   it multiply-blends so the white melts into the silver canvas. A radial
   mask feathers the square frame into an orb. */
.hero-xl__film { position: absolute; inset: 0; z-index: 0;
    display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hero-xl__film video {
    width: min(88vw, 940px); aspect-ratio: 1 / 1; object-fit: cover;
    filter: invert(1) hue-rotate(180deg);
    mix-blend-mode: screen; opacity: 0.95;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 70%);
    mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 70%);
}
/* light: quieter than dark — the pale footage competes with the headline,
   so it sits at roughly half strength */
[data-theme="light"] .hero-xl__film video { filter: none; mix-blend-mode: multiply; opacity: 0.55; }
@media (prefers-reduced-motion: reduce) {
    /* the page-wide constellation stays (drawn static); the orb goes away */
    .hero-xl--film .hero-xl__film { display: none; }
}

/* status bar — mono, centered at hero foot, live clock */
.statusbar {
    position: absolute; left: 0; right: 0; bottom: 26px; z-index: 1;
    display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
    color: var(--text-2); padding-inline: var(--gutter);
}
.statusbar b { font-weight: 500; color: var(--text); }
.statusbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); animation: status-pulse 2.4s var(--ease) infinite; }
.statusbar__sep { color: var(--text-3); }
@keyframes status-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); } 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.07); } }

/* -------------------------------------------------------------- page hero */
.page-hero { position: relative; padding: clamp(130px, 18vh, 200px) 0 clamp(40px, 6vh, 64px); overflow: hidden; }
.page-hero__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(46% 62% at 82% 0%, rgba(0, 102, 255, 0.07), transparent 70%); }
.page-hero__inner { position: relative; z-index: 1; max-width: 860px; }
.page-hero__title { font-family: var(--font-display-cjk); font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 700; letter-spacing: -0.005em; }
.page-hero__intro { color: var(--text-2); font-size: 1.08rem; margin-top: var(--s2); max-width: 640px; }
/* mono "data-stamp" kicker above inner-page titles */
.page-hero__kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--s3);
    font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-3); }
.page-hero__kicker::before { content: ""; width: 22px; height: 1.5px; background: var(--blue); }
/* CMS-driven headings keep the system stack — arbitrary glyphs would fall out
   of the subsetted display face (see scripts/subset-display-font.sh) */
.news-detail .page-hero__title { font-family: var(--font); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }

/* ------------------------------------------------------- marquee (CSS-only) */
.marquee { overflow: hidden; padding-block: 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: var(--s2); }
.marquee__track { display: flex; gap: var(--s2); width: max-content; animation: marquee-x 36s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-x { to { transform: translateX(-50%); } }
.marquee .chip { flex-shrink: 0; }

/* ------------------------------------- metric cards (case-study language) */
.metric-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.metric-card { display: flex; flex-direction: column; }
.metric-card .bezel__inner { display: flex; flex-direction: column; gap: 14px; padding: var(--s4) var(--s4) var(--s3); }
.metric-card__meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.metric-card__title { font-size: 1.3rem; margin: 0; letter-spacing: -0.02em; }
:lang(en) .metric-card__title { font-family: var(--font); text-transform: none; letter-spacing: -0.01em; font-weight: 700; }
.metric-card__text { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.metric-card__value {
    margin-top: var(--s1);
    font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums;
    font-size: clamp(2.3rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.01em; color: var(--ink);
}
.metric-card__caption { color: var(--text-3); font-size: 0.86rem; margin: 0; }
.metric-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: var(--s2); }
.metric-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s2); font-weight: 500; font-size: 0.94rem; }
.metric-card__link svg { transition: transform 0.4s var(--ease); }
.metric-card:hover .metric-card__link svg { transform: translateX(4px); }

/* mono data chips (shared by chips rows / metric-card tags / marquees) */
.chip {
    display: inline-block; padding: 5px 12px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
    color: var(--text-2); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.03em;
}

/* --------------------------------------------------------------- card grid */
.card-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card__icon { width: 72px; height: 72px; object-fit: contain; margin-bottom: var(--s3);
    background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.09), transparent 66%); border-radius: 50%; }
.card__index { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; color: var(--blue); margin-bottom: var(--s2); }
.card__title { font-size: 1.2rem; margin-bottom: var(--s1); }
.card__text { color: var(--text-2); margin: 0; font-size: 0.96rem; }

/* generic grid / bento cards: ghost index watermark + hover accent bar */
.card-grid .bezel__inner, .bento .bezel__inner { position: relative; overflow: hidden; }
.card-grid .card__index { position: absolute; top: 18px; right: 20px; margin: 0;
    font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: 0; color: rgba(255, 255, 255, 0.08); }
.card-grid .bezel--hover .bezel__inner::after, .bento .bezel--hover .bezel__inner::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.card-grid .bezel--hover:hover .bezel__inner::after, .bento .bezel--hover:hover .bezel__inner::after { transform: scaleX(1); }

/* ------------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s3); }
.bento > * { grid-column: span 3; }
.bento > *:first-child { grid-column: span 6; }
.bento > *:nth-child(2) { grid-column: span 6; }
.bento > :first-child .bezel__inner, .bento > :nth-child(2) .bezel__inner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 55%); }

/* ------------------------------------------- pain-point cards (problems) */
.section--problems { background: transparent; }
.problem-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .problem-grid { grid-template-columns: 1fr; } }

.problem-card .bezel__inner { position: relative; overflow: hidden; padding: var(--s4) var(--s3); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.problem-card__num { position: absolute; top: 10px; right: 14px; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, 0.08); pointer-events: none; }
.problem-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--r-sm); color: var(--ink); background: rgba(255, 255, 255, 0.07); transition: background 0.6s var(--ease), color 0.6s var(--ease), transform 0.6s var(--ease); }
.problem-card__icon svg { width: 23px; height: 23px; }
.problem-card__title { font-size: 1.18rem; margin: 0; color: var(--ink); }
.problem-card__gap { margin: 0; padding-top: 12px; width: 100%; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.95rem; line-height: 1.55; }
.problem-card .bezel__inner::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.problem-card.bezel--hover:hover .bezel__inner::after { transform: scaleX(1); }
.problem-card.bezel--hover:hover .problem-card__icon { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* ----------------------------------------------------------------- metrics */
.metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s5); }
.metric { text-align: center; }
.metric__value {
    font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums;
    font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -0.01em; color: var(--ink);
}
.metric__label { color: var(--text-2); margin-top: var(--s2); font-size: 0.95rem; }

/* ---------------------------------------------------------------- feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.feature--img-left .feature__media { order: -1; }
.feature__img { border-radius: calc(var(--r-lg) - 6px); }

/* --------------------------------------------------------------- cta band */
.cta-band { position: relative; isolation: isolate; overflow: hidden;
    background: linear-gradient(180deg, var(--panel), #0C0C11);
    border-block: 1px solid var(--line); }
.cta-band::after { content: ""; position: absolute; z-index: 0; top: 50%; left: 50%; width: 72%; height: 170%; transform: translate(-50%, -50%); pointer-events: none; border-radius: 50%; filter: blur(56px); background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.16), transparent 62%); }
.cta-band__inner { position: relative; z-index: 1; text-align: center; max-width: 780px; margin: 0 auto; }
.cta-band__heading { color: var(--ink); font-family: var(--font-display-cjk); font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.005em; }
.cta-band__text { color: var(--text-2); margin: var(--s2) auto var(--s6); }
.cta-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s2); }

/* mission / vision */
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s4); }
.mv-card__text { margin: 0; color: var(--ink); font-family: var(--font-display-cjk); font-size: 1.7rem; font-weight: 700; line-height: 1.45; letter-spacing: 0; }
:lang(en) .mv-card__text { font-family: var(--font); font-weight: 700; font-size: 1.4rem; }

/* ----------------------------------------------------- layered architecture */
.layer-stack { display: flex; flex-direction: column; gap: var(--s3); max-width: 980px; margin: 0 auto; }
.layer__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); border-left: 3px solid var(--blue); }
.layer__head { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }
.layer__index { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.layer__name { font-size: 1.2rem; margin: 0; }
.layer__note { margin: 2px 0 0; color: var(--text-2); font-size: 0.92rem; }
.layer__tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* ------------------------------------------------------------ process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5) var(--s4); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.step { position: relative; padding-top: 60px; }
.step__num { position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--blue); box-shadow: var(--shadow-blue); }
.step__title { font-size: 1.1rem; margin: var(--s1) 0; }
.step__text { color: var(--text-2); font-size: 0.95rem; margin: 0; }
@media (min-width: 760px) {
    .steps { position: relative; }
    .steps::before { content: ""; position: absolute; top: 22px; left: 9%; right: 9%; height: 2px; z-index: 0;
        background: linear-gradient(90deg, transparent, var(--line-strong), var(--line-strong), transparent); }
    .step { z-index: 1; }
}

/* --------------------------------------------------------------- timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.timeline__item { position: relative; padding-top: var(--s5); }
.timeline__item::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--silver), var(--blue)); opacity: 0.3; }
.timeline__item:last-child::before { right: 50%; }
.timeline__node { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(0, 102, 255, 0.12); }
.timeline__label { display: inline-block; color: var(--blue); font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.08em; }
.timeline__title { font-size: 1.15rem; margin: var(--s1) 0; }
.timeline__text { color: var(--text-2); font-size: 0.95rem; margin: 0; }

/* ------------------------------------------------------------------- news */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: var(--s4); }
.news-card { display: block; }
.news-card .bezel__inner { padding: 0; overflow: hidden; }
.news-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card__pad { padding: var(--s4); }
.news-card__date { color: var(--text-3); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; }
.news-card__title { font-size: 1.18rem; margin: var(--s1) 0; color: var(--ink); }
:lang(en) .news-card__title { font-family: var(--font); text-transform: none; }
.news-card__intro { color: var(--text-2); font-size: 0.95rem; margin: 0; }
.news-empty { color: var(--text-3); text-align: center; padding: var(--s10) 0; }
.news-detail__date { color: var(--blue); font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: 0.06em; }
.news-detail__figure { margin: var(--s5) auto; }
.news-detail__img { border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info p { color: var(--text-2); margin-bottom: var(--s3); }
.contact-info strong { display: block; color: var(--text-3); font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.contact-note { color: var(--text-2); margin-top: var(--s3); }
.contact-methods { display: flex; justify-content: center; }
.contact-qr { text-align: center; }
.contact-qr__box { width: 220px; height: 220px; max-width: 100%; margin: 0 auto var(--s3); border: 2px dashed rgba(0, 102, 255, 0.3); border-radius: var(--r-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--text-2); background: rgba(0, 102, 255, 0.03); }
.contact-qr__box span { font-weight: 500; }
.contact-qr__box small { color: var(--text-3); font-size: 0.85rem; }
.contact-qr__img { width: 220px; height: 220px; max-width: 100%; border-radius: var(--r-md); margin: 0 auto var(--s3); display: block; }
.contact-qr__hint { margin: 0; color: var(--text-2); }

/* --------------------------------------------------------------- richtext */
.rich-text { color: var(--text); font-size: 1.05rem; }
.rich-text h2 { font-size: 1.7rem; margin-top: var(--s6); }
.rich-text h3 { font-size: 1.3rem; margin-top: var(--s5); }
.rich-text ul, .rich-text ol { padding-left: 1.4em; }
.rich-text img { border-radius: var(--r-md); margin: var(--s3) 0; }

/* ----------------------------------------------------------------- footer */
.site-footer { position: relative; background: var(--surface); color: var(--text-2); padding-top: var(--s8); overflow: hidden; border-top: 1px solid var(--line); }
.site-footer__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s6); padding-bottom: var(--s6); }
.site-footer__tagline { margin-top: var(--s3); color: var(--text-2); max-width: 300px; }
.site-footer__heading { color: var(--text-3); font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: var(--s3); }
.site-footer__contact p { margin: 0 0 var(--s1); }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--blue); }
.site-footer__bar { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: var(--s3) 0; }
.site-footer__bar-inner { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.site-footer__copy { margin: 0; font-size: 0.85rem; font-family: var(--font-mono); letter-spacing: 0.02em; color: var(--text-3); }

/* ------------------------------------------------------------ brand film */
/* Client video is 4:3 (1280x960); cropped to a cinematic 16:9 inside a
   floating frame. Overlays sit on the footage itself, so they stay
   dark-glass in both the light and dark themes. */
.film { padding-top: 0; }
.film .section__head { margin-bottom: var(--s4); }
.film__frame { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); background: #000; }
.film__video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.film__tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 12px; border-radius: var(--r-pill);
    background: rgba(5, 5, 6, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.film__sound { position: absolute; bottom: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; background: rgba(5, 5, 6, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s var(--ease), background 0.3s var(--ease); }
.film__sound:hover { transform: translateY(-2px); background: rgba(5, 5, 6, 0.78); }
.film__sound .icon-sound { display: none; }
.film__sound.is-on .icon-muted { display: none; }
.film__sound.is-on .icon-sound { display: block; }
.film__play { position: absolute; inset: 0; margin: auto; z-index: 2; width: 68px; height: 68px; border-radius: 50%; border: 0;
    cursor: pointer; display: none; align-items: center; justify-content: center; color: #fff;
    background: var(--blue); box-shadow: var(--shadow-blue); padding-left: 4px; transition: transform 0.3s var(--ease); }
.film__play:hover { transform: scale(1.06); }
.film--paused .film__play { display: inline-flex; }
.film--paused .film__sound { display: none; }

/* ------------------------------------------- single-page replica pieces */
section[id] { scroll-margin-top: 96px; }

/* methodology card: numbered loop rows */
.step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step-list li { display: flex; align-items: baseline; gap: var(--s3); padding: 14px 0; border-bottom: 1px solid var(--line); }
.step-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.step-list__num { font-family: var(--font-display); color: var(--blue); font-size: 0.95rem; flex-shrink: 0; }
.step-list__title { font-weight: 700; color: var(--ink); margin: 0; font-size: 1.05rem; }
.step-list__text { margin: 0 0 0 auto; color: var(--text-2); font-size: 0.92rem; text-align: right; }

/* compact value rows (icon + copy), stacked beside the methodology card */
.value-rows { display: flex; flex-direction: column; gap: var(--s2); height: 100%; }
.value-row { display: flex; align-items: center; gap: var(--s2); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.02); flex: 1; }
.value-row img { width: 44px; height: 44px; object-fit: contain; margin: 0; background: none; }
.value-row h4 { margin: 0 0 2px; font-size: 0.98rem; }
.value-row p { margin: 0; color: var(--text-2); font-size: 0.85rem; }

/* how-grid: methodology (wide) + values (narrow) */
.how-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: var(--s3); margin-bottom: var(--s6); }

/* two-col split with sticky rail (case studies) */
.case-split { display: grid; grid-template-columns: 230px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.case-rail { position: sticky; top: 110px; display: flex; flex-direction: column; }
.case-rail__item { padding: 14px 0 14px 18px; border-left: 2px solid var(--line); }
.case-rail__item.is-hot { border-left-color: var(--blue); }
.case-rail__name { display: block; color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.case-rail__count { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--text-3); text-transform: uppercase; }

/* capability wall — joined-border cells, logo-wall rhythm */
.wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: rgba(255, 255, 255, 0.015); }
.wall__cell { padding: var(--s4) var(--s3); border: 0 solid var(--line); border-right-width: 1px; border-bottom-width: 1px;
    font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text-2);
    display: flex; align-items: center; justify-content: center; text-align: center; min-height: 92px;
    transition: background 0.4s var(--ease), color 0.4s var(--ease); }
.wall__cell:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.wall-cta { display: flex; align-items: center; justify-content: center; gap: var(--s3); margin-top: var(--s5); flex-wrap: wrap; }
.wall-cta p { margin: 0; color: var(--text-2); }

/* about: company profile card */
.profile-card { display: flex; align-items: center; gap: var(--s3); }
.profile-card .brand__logo { width: 56px; height: 56px; }
.profile-card__meta h3 { margin: 0 0 4px; }
.profile-card__meta p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.profile-card__addr { margin-top: var(--s2); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--text-3); }

@media (max-width: 900px) {
    .how-grid { grid-template-columns: 1fr; }
    .case-split { grid-template-columns: 1fr; }
    .case-rail { position: static; flex-direction: row; flex-wrap: wrap; gap: var(--s2); }
    .case-rail__item { border-left: 0; border-top: 2px solid var(--line); padding: 10px 4px 0; flex: 1 1 30%; }
    .step-list li { flex-wrap: wrap; gap: 6px var(--s2); }
    .step-list__text { margin-left: 0; text-align: left; }
}

/* ----------------------------------------------------- scroll reveal */
/* Progressive enhancement: only hide-then-reveal when JS is active (html.js). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .marquee__track { animation: none; }
    .statusbar__dot { animation: none; }
    html { scroll-behavior: auto; }
}

/* --------------------------------------------------------- responsive */
@media (max-width: 900px) {
    .bento > *, .bento > *:first-child, .bento > *:nth-child(2) { grid-column: span 6; }
    .metric-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .burger { display: block; }
    .site-nav {
        position: fixed; inset: 0; z-index: 60;
        flex-direction: column; justify-content: center; align-items: center; gap: var(--s5);
        background: rgba(5, 5, 6, 0.94);
        backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        opacity: 0; visibility: hidden; transform: translateY(-12px);
        transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
    }
    .is-menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
    .main-nav { flex-direction: column; align-items: center; gap: var(--s3); }
    .main-nav__link { font-size: 1.4rem; padding: 10px 22px; opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease); }
    .is-menu-open .main-nav__link { opacity: 1; transform: none; }
    .is-menu-open .main-nav__item:nth-child(1) .main-nav__link { transition-delay: 0.08s; }
    .is-menu-open .main-nav__item:nth-child(2) .main-nav__link { transition-delay: 0.13s; }
    .is-menu-open .main-nav__item:nth-child(3) .main-nav__link { transition-delay: 0.18s; }
    .is-menu-open .main-nav__item:nth-child(4) .main-nav__link { transition-delay: 0.23s; }
    .is-menu-open .main-nav__item:nth-child(5) .main-nav__link { transition-delay: 0.28s; }
    .is-menu-open .main-nav__item:nth-child(6) .main-nav__link { transition-delay: 0.33s; }
    .burger { position: relative; z-index: 70; }
    /* the pill's backdrop-filter re-anchors fixed children — drop it while the
       fullscreen menu is open so the overlay covers the viewport */
    .is-menu-open .site-header__pill { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; border-color: transparent; }
    .is-menu-open .brand { position: relative; z-index: 70; }

    .hero-xl { min-height: 88dvh; padding-top: 130px; }
    .hero-xl__title span:nth-child(2) { margin-left: 0; }
    .hero-xl__row { flex-direction: column; align-items: flex-start; gap: var(--s4); }
    .statusbar { justify-content: flex-start; }
    .feature, .contact-grid { grid-template-columns: 1fr; gap: var(--s5); }
    .feature--img-left .feature__media { order: 0; }
    .site-footer__inner { grid-template-columns: 1fr; gap: var(--s5); }
    .layer__inner { flex-direction: column; align-items: flex-start; gap: var(--s3); }
    .layer__tags { justify-content: flex-start; }
    .timeline { grid-template-columns: 1fr; gap: var(--s4); }
    .timeline__item { padding: 0 0 0 28px; }
    .timeline__item::before { top: 6px; bottom: -16px; left: 7px; right: auto; width: 2px; height: auto; background: var(--blue); opacity: 0.25; }
    .timeline__item:last-child::before { display: none; }
    .timeline__node { top: 4px; }
}

/* ---------------------------------------------- theme toggle (A/B demo) */
.theme-toggle button.lang__link { border: 0; background: none; cursor: pointer; }
.theme-toggle button.lang__link.is-active { background: var(--blue); }

/* ============================================================ light theme
   A/B demo override driven by <html data-theme="light"> (sdzl_theme cookie).
   Re-declares the tokens plus every component fill that is hard-coded
   white-on-black in the dark base. Remove once the client picks a side. */
[data-theme="light"] {
    --bg: #F2F3F6;
    --surface: #FFFFFF;
    --panel: #E8EAEF;
    --ink: #0C1220;
    --text: #343B49;
    --text-2: #5C6472;
    --text-3: #98A0AC;
    --line: rgba(12, 18, 32, 0.08);
    --line-strong: rgba(12, 18, 32, 0.14);
    --shadow-soft: 0 18px 40px -24px rgba(12, 18, 32, 0.18), 0 4px 12px -8px rgba(12, 18, 32, 0.06);
    --shadow-hover: 0 30px 60px -28px rgba(12, 18, 32, 0.22), 0 8px 20px -12px rgba(0, 102, 255, 0.10);
    --shadow-blue: 0 14px 34px -12px rgba(0, 102, 255, 0.42);
}
[data-theme="light"] .bg-texture { background-image: radial-gradient(rgba(12, 18, 32, 0.05) 1px, transparent 1px); }
[data-theme="light"] .section--panel { background: linear-gradient(180deg, var(--panel), #EDEFF3 90%); }
[data-theme="light"] .section--panel::after { background-image: radial-gradient(rgba(12, 18, 32, 0.06) 1px, transparent 1.4px); }
[data-theme="light"] .site-header__pill {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.5) 45%, rgba(233, 235, 240, 0.55)),
        rgba(255, 255, 255, 0.5);
    border-color: rgba(12, 18, 32, 0.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(12, 18, 32, 0.06),
        0 16px 38px -18px rgba(12, 18, 32, 0.35);
}
[data-theme="light"] .site-header.is-scrolled .site-header__pill {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78) 45%, rgba(233, 235, 240, 0.8)),
        rgba(255, 255, 255, 0.8);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(12, 18, 32, 0.06),
        0 20px 46px -20px rgba(12, 18, 32, 0.42);
}
[data-theme="light"] .main-nav__link:hover { background: rgba(12, 18, 32, 0.05); box-shadow: none; }
[data-theme="light"] .main-nav__link.is-active,
[data-theme="light"] .main-nav.has-blob .main-nav__link.is-active:hover {
    color: #fff;
    background: linear-gradient(180deg, #1C2536, var(--ink));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 8px -3px rgba(12, 18, 32, 0.5);
}
[data-theme="light"] .main-nav.has-blob .main-nav__link:hover { background: none; box-shadow: none; }
[data-theme="light"] .main-nav__blob {
    background: linear-gradient(180deg, rgba(12, 18, 32, 0.08), rgba(12, 18, 32, 0.045));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
[data-theme="light"] .lang { background: rgba(12, 18, 32, 0.05); }
[data-theme="light"] .burger { background: rgba(12, 18, 32, 0.05); }
[data-theme="light"] .btn--ghost .btn__icon { background: rgba(12, 18, 32, 0.06); }
[data-theme="light"] .card__icon { background: radial-gradient(circle at 50% 42%, rgba(169, 169, 169, 0.18), transparent 66%); }
[data-theme="light"] .card-grid .card__index { color: rgba(12, 18, 32, 0.06); }
[data-theme="light"] .problem-card__num { color: rgba(12, 18, 32, 0.06); }
[data-theme="light"] .problem-card__icon { background: rgba(12, 18, 32, 0.05); }
[data-theme="light"] .chip { background: rgba(12, 18, 32, 0.03); }
[data-theme="light"] .bento > :first-child .bezel__inner,
[data-theme="light"] .bento > :nth-child(2) .bezel__inner {
    background: linear-gradient(135deg, rgba(169, 169, 169, 0.10), transparent 55%);
}
[data-theme="light"] .cta-band { background: linear-gradient(180deg, var(--panel), #EDEFF3); }
[data-theme="light"] .cta-band::after { background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.10), transparent 62%); }
[data-theme="light"] .value-row { background: rgba(12, 18, 32, 0.02); }
[data-theme="light"] .wall { background: rgba(12, 18, 32, 0.015); }
[data-theme="light"] .wall__cell:hover { background: rgba(12, 18, 32, 0.03); }
@media (max-width: 768px) {
    [data-theme="light"] .site-nav { background: rgba(242, 243, 246, 0.94); }
}

/* light: duotone card washes — bare white squares read undesigned, so cards
   alternate a blue / cyan corner bloom, ghost indexes take the matching
   tint, icon tiles go blue, and metric figures become blue→cyan gradient
   type ("data nodes wear the signal"). The base stays white and airy —
   colour lives in blooms and accents, never solid fills. */
[data-theme="light"] .card-grid > .bezel:nth-child(odd) .bezel__inner,
[data-theme="light"] .bento > .bezel:nth-child(odd) .bezel__inner,
[data-theme="light"] .problem-grid > .bezel:nth-child(odd) .bezel__inner,
[data-theme="light"] .metric-cards > .bezel:nth-child(odd) .bezel__inner,
[data-theme="light"] .mv-grid > .bezel:nth-child(odd) .bezel__inner {
    background:
        radial-gradient(130% 110% at 100% 0%, rgba(0, 102, 255, 0.11), transparent 52%),
        linear-gradient(165deg, rgba(0, 102, 255, 0.045), transparent 42%);
}
[data-theme="light"] .card-grid > .bezel:nth-child(even) .bezel__inner,
[data-theme="light"] .bento > .bezel:nth-child(even) .bezel__inner,
[data-theme="light"] .problem-grid > .bezel:nth-child(even) .bezel__inner,
[data-theme="light"] .metric-cards > .bezel:nth-child(even) .bezel__inner,
[data-theme="light"] .mv-grid > .bezel:nth-child(even) .bezel__inner {
    background:
        radial-gradient(130% 110% at 100% 0%, rgba(0, 203, 205, 0.13), transparent 52%),
        linear-gradient(165deg, rgba(0, 203, 205, 0.055), transparent 42%);
}
[data-theme="light"] .card-grid > .bezel:nth-child(odd) .card__index,
[data-theme="light"] .bento > .bezel:nth-child(odd) .card__index,
[data-theme="light"] .problem-grid > .bezel:nth-child(odd) .problem-card__num {
    color: rgba(0, 102, 255, 0.20);
}
[data-theme="light"] .card-grid > .bezel:nth-child(even) .card__index,
[data-theme="light"] .bento > .bezel:nth-child(even) .card__index,
[data-theme="light"] .problem-grid > .bezel:nth-child(even) .problem-card__num {
    color: rgba(0, 172, 174, 0.26);
}
[data-theme="light"] .problem-card__icon { background: rgba(0, 102, 255, 0.08); color: var(--blue); }
[data-theme="light"] .metric__value,
[data-theme="light"] .metric-card__value {
    background: linear-gradient(120deg, var(--blue) 20%, #00A8C8 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
