/* =====================================================================
   AI Healthcare — Design system & site styles
   Brand: crimson (logo) · cream (profile) · deep ink · gold accent
   ===================================================================== */

:root {
    --red: #d7193f;
    --red-600: #b0122f;
    --red-700: #8e0e26;
    --red-glow: rgba(215, 25, 63, .45);
    --gold: #f4c35a;
    --ink: #0b0d12;
    --ink-2: #11141b;
    --ink-3: #181c25;
    --ink-4: #232836;
    --cream: #fbf7ee;
    --cream-2: #f3ecdc;
    --paper: #ffffff;
    --text: #12151c;
    --muted: #5b6472;
    --line: #e7e1d3;
    --d-text: #f3f1ec;
    --d-muted: #9aa3b2;
    --d-line: rgba(255, 255, 255, .09);

    --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --container: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 22px;
    --radius-sm: 14px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --hdr-h: 76px;
    --section: clamp(80px, 11vw, 150px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--hdr-h) + 12px);
}

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

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 1000;
    background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.ico { flex: none; }

/* ------------------------------------------------------------ Typography */
.display {
    font-size: clamp(2.6rem, 6.6vw, 5.9rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    font-weight: 800;
}
.h1 { font-size: clamp(2.3rem, 5vw, 4.3rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; }
.h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.65; color: var(--muted); max-width: 62ch; }
.dark .lead, .is-dark .lead { color: var(--d-muted); }

.grad-text {
    background: linear-gradient(100deg, #ff5a76 0%, var(--red) 35%, var(--gold) 70%, #ff5a76 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--red);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    animation: pulse 2.4s var(--ease) infinite;
}
.is-dark .eyebrow, .dark .eyebrow { color: var(--gold); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); }
    70%, 100% { box-shadow: 0 0 0 10px transparent; }
}

/* ------------------------------------------------------------ Buttons */
.btn {
    --bg: var(--ink); --fg: #fff;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 0 28px; border-radius: 999px;
    font-weight: 700; font-size: .98rem; letter-spacing: -.005em;
    background: var(--bg); color: var(--fg);
    transition: transform .5s var(--ease), box-shadow .4s var(--ease), background .3s;
    will-change: transform;
}
.btn > * { position: relative; z-index: 1; }
.btn .ico { transition: transform .4s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn::after {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn--primary {
    --bg: linear-gradient(135deg, #ef2d53, var(--red) 45%, var(--red-600));
    box-shadow: 0 10px 30px -10px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary:hover { box-shadow: 0 18px 44px -12px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--ghost { --bg: transparent; --fg: var(--d-text); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn--line { --bg: transparent; --fg: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9rem; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; color: var(--red);
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
    padding-bottom: 2px;
    transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow .ico { transition: transform .4s var(--ease); }
.link-arrow:hover .ico { transform: translate(3px, -3px); }
.is-dark .link-arrow { color: var(--gold); }

/* ------------------------------------------------------------ Scroll progress & to-top */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 300; pointer-events: none; }
.scroll-progress span {
    display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
    background: linear-gradient(90deg, var(--red), var(--gold));
}

.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 200;
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(11, 13, 18, .82); color: #fff;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
    transition: opacity .4s, transform .5s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.menu-open .to-top { opacity: 0; pointer-events: none; }
.to-top svg:first-child { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top circle {
    fill: none; stroke: var(--red); stroke-width: 2.5;
    stroke-dasharray: 126; stroke-dashoffset: calc(126 - 126 * var(--p, 0));
}

/* ------------------------------------------------------------ Header */
.hdr {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: var(--hdr-h);
    color: var(--d-text);
    transition: transform .5s var(--ease), background .4s, box-shadow .4s, height .4s;
}
.hdr::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(11, 13, 18, .72);
    backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
    opacity: 0; transition: opacity .4s;
    border-bottom: 1px solid var(--d-line);
}
.hdr.is-scrolled::before, .hdr.is-open::before { opacity: 1; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.hdr__brand img { height: 38px; width: auto; }
.hdr__nav { margin-inline: auto; }
.hdr__nav > ul { display: flex; gap: 4px; }
.hdr__link {
    position: relative; display: inline-flex; align-items: center; gap: 4px;
    padding: 10px 14px; border-radius: 999px;
    font-size: .93rem; font-weight: 600; color: rgba(243, 241, 236, .78);
    transition: color .3s, background .3s;
}
.hdr__link:hover, .hdr__link.is-active { color: #fff; }
.hdr__link.is-active::after {
    content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
    border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red);
}
.hdr__link:hover { background: rgba(255, 255, 255, .06); }
.has-mega { position: relative; }
.has-mega .ico { transition: transform .4s var(--ease); }
.has-mega:hover .hdr__link .ico, .has-mega:focus-within .hdr__link .ico { transform: rotate(180deg); }

.mega {
    position: absolute; left: 50%; top: calc(100% + 14px);
    width: min(1040px, 94vw);
    transform: translate(-50%, 10px); opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s;
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__inner {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 18px;
    padding: 22px; border-radius: var(--radius);
    background: rgba(17, 20, 27, .96);
    border: 1px solid var(--d-line);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.mega__title { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--d-muted); font-weight: 700; margin: 4px 10px 8px; }
.mega__item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; transition: background .3s; }
.mega__item:hover { background: rgba(255, 255, 255, .06); }
.mega__item strong { display: block; font-size: .92rem; color: #fff; line-height: 1.3; }
.mega__item small { display: block; font-size: .76rem; color: var(--d-muted); line-height: 1.3; }
.mega__ico {
    width: 38px; height: 38px; border-radius: 10px; flex: none;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, rgba(215, 25, 63, .9), rgba(142, 14, 38, .9));
}
.mega__own {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-bottom: 8px;
    padding: 14px 16px; border-radius: 14px; color: #fff;
    background: linear-gradient(110deg, rgba(215, 25, 63, .28), rgba(215, 25, 63, .06));
    border: 1px solid rgba(215, 25, 63, .35); transition: background .3s;
}
.mega__own:hover { background: linear-gradient(110deg, rgba(215, 25, 63, .4), rgba(215, 25, 63, .1)); }
.mega__own > span:nth-child(2) { flex: 1; }
.mega__own small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.mega__own strong { display: block; font-size: 1rem; }
.mega__all {
    grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 8px;
    margin-top: 8px; padding: 12px; border-radius: 12px;
    background: rgba(255, 255, 255, .04); font-weight: 600; font-size: .9rem; color: var(--gold);
}
.mega__all:hover { background: rgba(255, 255, 255, .08); }

.hdr__actions { display: flex; align-items: center; gap: 14px; }
.lang {
    display: inline-flex; padding: 4px; border-radius: 999px;
    background: rgba(255, 255, 255, .07); border: 1px solid var(--d-line);
}
.lang a {
    padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .06em;
    color: var(--d-muted); transition: background .3s, color .3s;
}
.lang a.is-active { background: #fff; color: var(--ink); }

.hdr__burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; background: rgba(255, 255, 255, .08); }
.hdr__burger span {
    position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff;
    transition: transform .5s var(--ease), top .5s var(--ease);
}
.hdr__burger span:first-child { top: 18px; }
.hdr__burger span:last-child { top: 26px; right: 18px; }
.hdr.is-open .hdr__burger span:first-child { top: 22px; transform: rotate(45deg); }
.hdr.is-open .hdr__burger span:last-child { top: 22px; right: 14px; transform: rotate(-45deg); }

.mnav { position: fixed; inset: 0; z-index: 90; color: #fff; }
.mnav[hidden] { display: none; }
.mnav__bg {
    position: absolute; inset: 0; background: var(--ink);
    clip-path: circle(0 at calc(100% - 44px) 38px);
    transition: clip-path .8s var(--ease);
}
.mnav.is-open .mnav__bg { clip-path: circle(150% at calc(100% - 44px) 38px); }
.mnav__inner {
    position: relative; height: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
    padding-top: calc(var(--hdr-h) + 24px); padding-bottom: 32px;
}
.mnav li a {
    display: block; padding: 8px 0;
    font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
    opacity: 0; transform: translateY(30px);
    transition: opacity .5s var(--ease), transform .7s var(--ease), color .3s;
    transition-delay: calc(.15s + var(--i) * .05s);
}
.mnav.is-open li a { opacity: 1; transform: none; }
.mnav li a:hover { color: var(--red); }
.mnav__contact { display: grid; gap: 4px; }
.mnav__contact a:first-child { color: #fff; font-weight: 700; font-size: 1.05rem; }
.info-row a.phone { font-size: 1.15rem; letter-spacing: .01em; }
.mnav__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--d-muted); font-size: .9rem; }

/* ------------------------------------------------------------ Sections */
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: clamp(60px, 8vw, 100px); }
.section--paper { background: var(--paper); }
.section--cream2 { background: var(--cream-2); }
.is-dark { background: var(--ink); color: var(--d-text); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head--split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; }
.sec-head--center { text-align: center; justify-items: center; }
.sec-head--center .lead { margin-inline: auto; }

/* Ambient background helpers */
.bg-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.orb {
    position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(70px); opacity: .55;
    animation: drift 18s var(--ease-in-out) infinite alternate;
}
.orb--red { background: radial-gradient(circle, var(--red), transparent 65%); }
.orb--gold { background: radial-gradient(circle, rgba(244, 195, 90, .85), transparent 65%); animation-duration: 22s; }
.orb--violet { background: radial-gradient(circle, rgba(110, 70, 220, .7), transparent 65%); animation-duration: 26s; }
@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(6%, -8%, 0) scale(1.12); }
    100% { transform: translate3d(-6%, 6%, 0) scale(.95); }
}
.noise::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ Home hero */
.hero {
    position: relative; min-height: 100svh; overflow: hidden;
    display: flex; align-items: center;
    padding: calc(var(--hdr-h) + 40px) 0 90px;
    background: radial-gradient(120% 80% at 70% 0%, #1b1220 0%, var(--ink) 55%);
    color: var(--d-text); isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero .orb--red { width: 620px; height: 620px; right: -140px; top: -120px; }
.hero .orb--gold { width: 420px; height: 420px; left: -120px; bottom: -160px; opacity: .3; }
.hero .orb--violet { width: 460px; height: 460px; left: 35%; top: 30%; opacity: .25; }
.hero__grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__title { margin: 6px 0 26px; font-size: clamp(2.5rem, 5.3vw, 5rem); }
.hero__title .line { display: block; }
.hero__rotate {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; color: var(--d-muted); margin-bottom: 18px;
}
.rotator {
    position: relative; display: inline-grid; height: 1.6em; overflow: hidden;
    padding: 0 14px; border-radius: 999px; align-items: center;
    background: rgba(215, 25, 63, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(215, 25, 63, .5);
}
.rotator span {
    grid-area: 1 / 1; line-height: 1.6em; white-space: nowrap;
    transform: translateY(110%); opacity: 0;
    transition: transform .7s var(--ease), opacity .5s;
}
.rotator span.is-in { transform: none; opacity: 1; }
.rotator span.is-out { transform: translateY(-110%); opacity: 0; }
.hero__desc { max-width: 56ch; color: var(--d-muted); font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__visual { position: relative; aspect-ratio: 4 / 5; max-height: 640px; }
.hero__frame {
    position: absolute; inset: 6% 8% 6% 4%;
    border-radius: 32px; overflow: hidden;
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
    transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
    transition: transform 1.2s var(--ease);
}
.hero__visual:hover .hero__frame { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero__frame::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(11, 13, 18, .7)), linear-gradient(120deg, rgba(215, 25, 63, .25), transparent 50%);
}
.hero__scanline {
    position: absolute; left: 0; right: 0; height: 30%; top: -30%; z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(244, 195, 90, .18), rgba(255, 255, 255, .5) 98%, transparent);
    animation: scan 4.5s var(--ease-in-out) infinite;
    mix-blend-mode: screen;
}
@keyframes scan { 0% { top: -30%; } 100% { top: 100%; } }
.float-card {
    position: absolute; z-index: 2;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border-radius: 18px;
    background: rgba(17, 20, 27, .72); border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
    animation: floaty 6s var(--ease-in-out) infinite;
}
.float-card strong { display: block; font-size: 1.35rem; line-height: 1.1; color: #fff; letter-spacing: -.02em; }
.float-card small { display: block; font-size: .78rem; color: var(--d-muted); line-height: 1.3; max-width: 16ch; }
.float-card .fc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; }
.float-card--1 { left: -6%; top: 14%; }
.float-card--2 { right: -2%; top: 46%; animation-delay: -2s; }
.float-card--3 { left: 6%; bottom: 4%; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.scroll-cue {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--d-muted);
}
.scroll-cue i { width: 1.5px; height: 46px; background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--red); animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ------------------------------------------------------------ Marquee */
.marquee {
    position: relative; overflow: hidden; padding-block: 26px;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 56s; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip-logo {
    flex: none; display: inline-flex; align-items: center; gap: 12px;
    height: 64px; padding: 0 22px; border-radius: 16px;
    background: var(--paper); border: 1px solid var(--line);
    font-weight: 700; font-size: .95rem; white-space: nowrap; color: var(--text);
}
.chip-logo img { height: 34px; width: auto; max-width: 120px; object-fit: contain; }
.chip-logo .flag { font-size: 1.15rem; }
.is-dark .chip-logo { background: rgba(255, 255, 255, .04); border-color: var(--d-line); color: var(--d-text); }

/* ------------------------------------------------------------ Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 34px 24px 6px 0; position: relative; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat__num em { font-style: normal; color: var(--red); }
.stat__label { margin-top: 12px; color: var(--muted); font-size: .95rem; max-width: 24ch; }
.is-dark .stats { border-color: var(--d-line); }
.is-dark .stat + .stat { border-color: var(--d-line); }
.is-dark .stat__num { color: #fff; }
.is-dark .stat__label { color: var(--d-muted); }

/* ------------------------------------------------------------ Split intro */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split--rev > :first-child { order: 2; }
.media-frame { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--ink); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.media-frame:hover img { transform: scale(1.05); }
/* Bộ ảnh: khung theo đúng tỉ lệ thật của ảnh, không viền trắng, không cắt */
.media-frame--contain { aspect-ratio: auto; align-self: start; background: #fff; border: 1px solid var(--line); }
.media-frame--contain img { height: auto; object-fit: initial; }
.media-frame--contain:hover img { transform: scale(1.02); }
.media-frame__badge {
    position: absolute; left: 20px; bottom: 20px;
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); font-weight: 700; font-size: .85rem; color: var(--ink);
    backdrop-filter: blur(8px);
}
.media-frame__badge b { color: var(--red); }

/* ------------------------------------------------------------ Cards (spotlight + tilt) */
.card {
    --mx: 50%; --my: 50%;
    position: relative; isolation: isolate; overflow: hidden;
    border-radius: var(--radius); background: var(--paper);
    border: 1px solid var(--line);
    transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
    transform-style: preserve-3d;
}
.card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(215, 25, 63, .12), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: 0 30px 60px -30px rgba(18, 21, 28, .35); border-color: rgba(215, 25, 63, .3); }
.is-dark .card { background: var(--ink-2); border-color: var(--d-line); color: var(--d-text); }
/* Thẻ tự mang nền tối (vd. khối Thông tin liên hệ): phải đè nền trắng của .card */
.card.is-dark { background: radial-gradient(120% 90% at 100% 0%, #2a1018 0%, var(--ink-2) 55%); border-color: var(--d-line); color: var(--d-text); }
.is-dark .card::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(215, 25, 63, .22), transparent 45%); }

/* Solution card */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sol-grid--4 { grid-template-columns: repeat(4, 1fr); }
.sol-card { display: flex; flex-direction: column; min-height: 100%; }
.sol-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--ink); }
.sol-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sol-card:hover .sol-card__media img { transform: scale(1.07); }
.sol-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 13, 18, .55)); }
.sol-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sol-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .78rem; color: var(--muted); font-weight: 600; }
.sol-card__name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.sol-card__tag { color: var(--muted); font-size: .96rem; flex: 1; }
.sol-card__go {
    margin-top: 8px; display: inline-flex; align-items: center; justify-content: space-between;
    font-weight: 700; font-size: .92rem; color: var(--red);
}
.sol-card__go span.circle {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    border: 1.5px solid currentColor; transition: background .4s, color .4s, transform .5s var(--ease);
}
.sol-card:hover .sol-card__go span.circle { background: var(--red); color: #fff; transform: rotate(-45deg); }
.sol-card__badges { position: absolute; top: 14px; left: 14px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    background: rgba(255, 255, 255, .9); color: var(--ink);
}
.badge--red { background: var(--red); color: #fff; }
.badge--soft { background: var(--cream-2); color: var(--text); }
.badge--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.is-dark .badge--line { box-shadow: inset 0 0 0 1px var(--d-line); color: var(--d-muted); }

/* Generated art for solutions without photos */
.art {
    position: absolute; inset: 0; overflow: hidden;
    background:
        radial-gradient(60% 80% at 80% 10%, rgba(215, 25, 63, .75), transparent 60%),
        radial-gradient(50% 60% at 10% 100%, rgba(244, 195, 90, .35), transparent 60%),
        linear-gradient(160deg, #1a1d27, var(--ink));
}
.art::before {
    content: ""; position: absolute; inset: -50%;
    background: repeating-radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .07) 0 1px, transparent 1px 26px);
    animation: spin 60s linear infinite;
}
.art__ico { position: absolute; right: 22px; bottom: 18px; color: rgba(255, 255, 255, .92); }
.art__ico .ico { width: 64px; height: 64px; stroke-width: 1.2; filter: drop-shadow(0 6px 20px rgba(215, 25, 63, .6)); }
.art__label { position: absolute; left: 22px; bottom: 20px; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ Modalities (sticky list) */
.mod { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); }
.mod__sticky { position: sticky; top: calc(var(--hdr-h) + 40px); align-self: start; }
.mod__list { display: grid; }
.mod__item {
    display: grid; grid-template-columns: 70px 1fr; gap: 6px 20px;
    padding: 30px 0; border-top: 1px solid var(--d-line);
    transition: padding .5s var(--ease);
}
.mod__item:last-child { border-bottom: 1px solid var(--d-line); }
.mod__num { font-size: .85rem; font-weight: 700; color: var(--d-muted); padding-top: 8px; font-variant-numeric: tabular-nums; }
.mod__name { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; transition: color .4s, transform .6s var(--ease); }
.mod__items { grid-column: 2; font-weight: 600; color: var(--gold); font-size: .95rem; }
.mod__desc { grid-column: 2; color: var(--d-muted); max-width: 52ch; }
.mod__item:hover .mod__name { color: var(--red); transform: translateX(8px); }

/* ------------------------------------------------------------ Why (stacked) */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why__card { padding: 30px 26px 30px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.why__ico {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    color: #fff; background: linear-gradient(135deg, #ef2d53, var(--red-700));
    box-shadow: 0 14px 30px -12px var(--red-glow);
    transition: transform .6s var(--ease);
}
.why__card:hover .why__ico { transform: rotate(-8deg) scale(1.08); }
.why__num { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--muted); }
.why__top { display: flex; align-items: flex-start; }
.why__card h3 { margin-top: auto; }
.why__card p { color: var(--muted); font-size: .97rem; }

/* ------------------------------------------------------------ Leader band */
.leader-band {
    position: relative; overflow: hidden; isolation: isolate;
    background: linear-gradient(135deg, var(--red-700), var(--red-600) 40%, #5a0919);
    color: #fff;
}
.leader-band .orb--gold { width: 520px; height: 520px; right: -10%; top: -30%; opacity: .35; }
.leader-band__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.leader-band__bio { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.45; font-weight: 600; letter-spacing: -.01em; color: rgba(255, 255, 255, .92); max-width: 40ch; }
.leader-band blockquote { font-size: clamp(1.5rem, 2.8vw, 2.35rem); line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.leader-band .quote-ico { color: var(--gold); margin-bottom: 18px; }
.leader-band cite { display: block; margin-top: 26px; font-style: normal; }
.leader-band cite strong { display: block; font-size: 1.1rem; }
.leader-band cite span { color: rgba(255, 255, 255, .7); font-size: .95rem; }
.leader-band .eyebrow { color: var(--gold); }

.avatar {
    --s: 220px;
    position: relative; width: var(--s); height: var(--s); border-radius: 50%;
    display: grid; place-items: center; flex: none;
}
.avatar::before {
    content: ""; position: absolute; inset: -10px; border-radius: 50%;
    background: conic-gradient(from 0deg, var(--gold), transparent 30%, rgba(255, 255, 255, .6) 55%, transparent 75%, var(--gold));
    animation: spin 8s linear infinite;
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
.avatar__inner {
    width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center;
    background: radial-gradient(circle at 30% 25%, #fff6e0, var(--cream-2) 50%, #e9dcc0);
    color: var(--red-700); font-weight: 800; font-size: calc(var(--s) * .26); letter-spacing: -.04em;
    box-shadow: inset 0 -10px 30px rgba(142, 14, 38, .15);
}
.avatar__inner img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ Orbit (partners) */
.orbit-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.orbit { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; margin-inline: auto; container-type: inline-size; }
.orbit__ring {
    position: absolute; inset: var(--inset); border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .14);
    animation: spin var(--dur) linear infinite;
}
.orbit__ring--rev { animation-direction: reverse; }
.orbit__node {
    position: absolute; left: 50%; top: 50%;
    width: var(--size, 70px); height: var(--size, 70px); margin: calc(var(--size, 70px) / -2);
    transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a)));
}
.orbit__node > span {
    width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
    background: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
    font-size: .65rem; font-weight: 800; text-align: center; line-height: 1.1; color: var(--ink); padding: 6px;
    animation: spin var(--dur) linear infinite reverse;
}
.orbit__ring--rev .orbit__node > span { animation-direction: normal; }
.orbit__node img { width: 78%; height: auto; object-fit: contain; }
.orbit__core {
    position: absolute; inset: 34%; border-radius: 50%;
    display: grid; place-items: center; text-align: center;
    background: radial-gradient(circle at 35% 30%, #ff4a6b, var(--red) 45%, var(--red-700));
    box-shadow: 0 0 0 12px rgba(215, 25, 63, .12), 0 0 0 28px rgba(215, 25, 63, .06), 0 30px 80px -10px var(--red-glow);
    color: #fff;
}
.orbit__core strong { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.orbit__core small { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.flags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.flag-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--d-line); font-weight: 600; font-size: .9rem;
}
.flag-pill b { color: var(--gold); }

/* ------------------------------------------------------------ News cards */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: flex; flex-direction: column; }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); font-weight: 600; }
.news-card__title { font-size: 1.2rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.news-card__excerpt { color: var(--muted); font-size: .95rem; flex: 1; }
.news-card--featured { grid-column: span 2; flex-direction: row; }
.news-card--featured .news-card__media { flex: 1.2; aspect-ratio: auto; min-height: 340px; }
.news-card--featured .news-card__body { flex: 1; padding: 36px; justify-content: center; }
.news-card--featured .news-card__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }

/* ------------------------------------------------------------ CTA band */
/* Dải giới thiệu giải pháp AIH tự phát triển (trang chủ) */
.own-band {
    margin-top: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
    padding: 28px 32px; color: var(--d-text);
}
.own-band.is-dark { background: radial-gradient(120% 140% at 0% 0%, #3a0f1c 0%, var(--ink-2) 55%); }
.own-band__ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ef2d53, var(--red-700)); box-shadow: 0 14px 30px -12px var(--red-glow); }
.own-band__text { display: grid; gap: 4px; }
.own-band__text .eyebrow { margin: 0; }
.own-band__text strong { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -.02em; }
.own-band__text > span:last-child { color: var(--d-muted); }
.process--light::before { background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }
.process--light .step__num { background: var(--paper); border-color: var(--line); color: var(--text); }
.process--light .step p { color: var(--muted); }
@media (max-width: 760px) { .own-band { grid-template-columns: 1fr; } }
.cta-band {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: 36px; padding: clamp(48px, 8vw, 100px) clamp(28px, 6vw, 80px);
    background: var(--ink); color: #fff;
    display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: end;
}
.cta-band .orb--red { width: 560px; height: 560px; left: -10%; top: -60%; opacity: .7; }
.cta-band .orb--gold { width: 380px; height: 380px; right: -5%; bottom: -60%; opacity: .35; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: var(--d-muted); margin-top: 18px; max-width: 54ch; }

/* ------------------------------------------------------------ Page hero (inner pages) */
.phero {
    position: relative; overflow: hidden; isolation: isolate;
    padding: calc(var(--hdr-h) + clamp(70px, 10vw, 130px)) 0 clamp(70px, 9vw, 120px);
    background: radial-gradient(100% 90% at 85% 0%, #24101a 0%, var(--ink) 60%);
    color: var(--d-text);
}
.phero .orb--red { width: 520px; height: 520px; right: -8%; top: -40%; }
.phero .orb--gold { width: 300px; height: 300px; left: 10%; bottom: -50%; opacity: .25; }
.phero__inner { position: relative; max-width: 920px; }
.phero .lead { margin-top: 22px; }
.phero__img { position: absolute; inset: 0; z-index: -2; }
.phero__img img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.phero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 25%, rgba(11, 13, 18, .6) 70%, rgba(11, 13, 18, .85)); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: var(--d-muted); margin-bottom: 26px; }
.crumbs a:hover { color: #fff; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; opacity: .4; }
.crumbs [aria-current] { color: var(--d-text); }

/* ------------------------------------------------------------ About: mission, timeline, process */
.mission {
    position: relative; text-align: center; max-width: 1000px; margin-inline: auto;
}
.mission__text { font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.18; font-weight: 800; letter-spacing: -.03em; }
.mission__text .w { display: inline-block; opacity: .15; transition: opacity .3s; }
.mission__text .w.is-lit { opacity: 1; }
.mission p { margin: 28px auto 0; }

.timeline { position: relative; display: grid; gap: 0; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 140px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline__fill { position: absolute; left: 140px; top: 10px; width: 2px; height: calc((100% - 20px) * var(--tp, 0)); background: linear-gradient(var(--red), var(--gold)); }
.tl-item { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 50px; padding: 26px 0; }
.tl-item::before {
    content: ""; position: absolute; left: 134px; top: 38px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--cream); border: 2px solid var(--red); transition: background .4s, box-shadow .4s;
}
.tl-item.is-in::before { background: var(--red); box-shadow: 0 0 0 6px rgba(215, 25, 63, .15); }
.tl-year { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--red); padding-top: 18px; }
.tl-body { padding: 20px 26px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); }
.tl-body h3 { margin-bottom: 6px; }
.tl-body p { color: var(--muted); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; position: relative; }
.process::before {
    content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--d-line) 0 8px, transparent 8px 16px);
}
.step { position: relative; padding: 0 6px; text-align: left; }
.step__num {
    position: relative; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
    background: var(--ink-3); border: 1px solid var(--d-line); font-weight: 800; font-size: 1.2rem; color: #fff;
    margin-bottom: 22px; transition: background .5s, box-shadow .5s, transform .6s var(--ease);
}
.step:hover .step__num { background: var(--red); box-shadow: 0 0 0 8px rgba(215, 25, 63, .15); transform: translateY(-4px); }
.step p { color: var(--d-muted); margin-top: 8px; font-size: .96rem; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.fact { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.fact:nth-child(odd) { padding-right: 30px; }
.fact:nth-child(even) { padding-left: 30px; border-left: 1px solid var(--line); }
.fact:last-child:nth-child(odd) { grid-column: 1 / -1; padding-right: 0; }
.fact dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact dd { margin: 0; font-weight: 600; }

/* ------------------------------------------------------------ Leadership page */
.person { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; padding: clamp(28px, 5vw, 60px); }
.person .avatar { --s: clamp(180px, 22vw, 280px); }
.person__role { color: var(--red); font-weight: 700; margin: 8px 0 18px; }
.person__bio { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.affil { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
.affil__card { padding: 22px; border-radius: var(--radius-sm); background: var(--cream); border: 1px solid var(--line); transition: transform .5s var(--ease), background .4s; }
.affil__card:hover { transform: translateY(-4px); background: #fff; }
.affil__code { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--red); line-height: 1; }
.affil__title { font-weight: 700; margin-top: 10px; }
.affil__org { color: var(--muted); font-size: .93rem; }

/* ------------------------------------------------------------ Partners page */
.country { display: grid; grid-template-columns: 260px 1fr; gap: 30px; padding: 34px 0; border-top: 1px solid var(--line); }
.country:last-child { border-bottom: 1px solid var(--line); }
.country__name { display: flex; align-items: center; gap: 14px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.country__name .flag { font-size: 2rem; }
.country__name small { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.country__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pcard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.pcard__logo { width: 56px; height: 56px; border-radius: 14px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--cream); border: 1px solid var(--line); font-weight: 800; color: var(--red); font-size: .95rem; }
.pcard__logo img { width: 86%; height: auto; object-fit: contain; }
.pcard strong { display: block; line-height: 1.3; font-size: .98rem; }
.pcard small { color: var(--muted); font-size: .8rem; }

.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.group { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.group__ico { color: var(--gold); }
.group ul { display: grid; gap: 8px; margin-top: 6px; }
.group li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--d-line); font-weight: 600; }
.group li a:hover { color: var(--gold); }
.group p { color: var(--d-muted); }

/* ------------------------------------------------------------ Solutions page */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
    padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem;
    background: var(--paper); border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s;
}
.filter:hover { border-color: var(--text); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-filter-item].is-hidden { display: none; }

.cat-block + .cat-block { margin-top: 70px; }
.cat-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 26px; }
.cat-head p { color: var(--muted); max-width: 52ch; }

/* Solution detail */
.sd-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.sd-hero__media { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px var(--d-line); }
.sd-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.sd-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.sd-meta .badge { background: rgba(255, 255, 255, .08); color: var(--d-text); box-shadow: inset 0 0 0 1px var(--d-line); }
.sd-meta .badge--red { background: var(--red); box-shadow: none; }

.hl-list { display: grid; gap: 14px; }
.hl-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.08rem; font-weight: 600; }
.hl-list .tick { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--red); color: #fff; margin-top: 1px; }

.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feat { padding: 30px; }
.feat__n { font-size: .8rem; font-weight: 700; color: var(--red); letter-spacing: .1em; }
.feat h3 { margin: 10px 0 8px; }
.feat p { color: var(--muted); }

.spec { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec > div { padding: 22px 0; }
.spec > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.spec dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.spec dd { margin: 6px 0 0; font-weight: 700; font-size: 1.05rem; }

.compare { position: relative; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; user-select: none; background: #000; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare__bar { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 20px rgba(0, 0, 0, .5); }
.compare__knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.compare__knob::before { content: "‹ ›"; font-weight: 800; letter-spacing: 2px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__label { position: absolute; top: 18px; padding: 7px 13px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(11, 13, 18, .7); color: #fff; backdrop-filter: blur(6px); }
.compare__label--l { left: 18px; }
.compare__label--r { right: 18px; background: var(--red); }

.note { font-size: .85rem; color: var(--muted); padding: 16px 20px; border-radius: 14px; background: var(--cream-2); border-left: 3px solid var(--gold); }

/* ------------------------------------------------------------ Article */
.article { max-width: 760px; margin-inline: auto; }
.article__cover { border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 50px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.prose p { font-size: 1.12rem; line-height: 1.85; color: #2a2f3a; }
.prose p + p { margin-top: 1.3em; }
.prose p:first-child::first-letter { float: left; font-size: 3.6em; line-height: .9; font-weight: 800; color: var(--red); padding: 6px 10px 0 0; }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 .6em; letter-spacing: -.02em; }
.share { display: flex; align-items: center; gap: 10px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); font-weight: 700; }
.share a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .3s, color .3s; }
.share a:hover { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------ Contact */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; align-items: stretch; }
.form-card { padding: clamp(26px, 4vw, 46px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text);
    padding: 26px 18px 10px; border-radius: 14px;
    background: var(--cream); border: 1.5px solid transparent;
    transition: border-color .3s, background .3s, box-shadow .3s;
    appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { padding-right: 44px; cursor: pointer; }
.field .chev { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.field label {
    position: absolute; left: 18px; top: 18px; color: var(--muted); font-size: 1rem; pointer-events: none;
    transform-origin: 0 0; transition: transform .35s var(--ease), color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 25, 63, .1); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-11px) scale(.76); color: var(--red); }
.field textarea::placeholder { color: transparent; }
.field textarea:focus::placeholder { color: #9aa1ad; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); background: #fff5f6; }
.field__err { display: block; font-size: .82rem; color: var(--red); margin-top: 6px; min-height: 0; }
.consent { font-size: .85rem; color: var(--muted); margin-top: 18px; }
.consent a { color: var(--red); text-decoration: underline; }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.form-msg { display: none; padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: .95rem; margin-bottom: 20px; }
.form-msg.is-ok { display: block; background: #e9f7ef; color: #146c3a; }
.form-msg.is-err { display: block; background: #fdecef; color: var(--red-700); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }

/* Hai khối Liên hệ cao bằng nhau: khối thông tin giãn theo form, Zalo nằm sát đáy */
.info-card { padding: clamp(26px, 4vw, 46px); display: flex; flex-direction: column; gap: 26px; height: 100%; }
.info-card .qr { margin-top: auto; }
.info-row { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.info-row .i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(215, 25, 63, .14); color: #ff6a84; }
.info-row small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--d-muted); font-weight: 700; }
.info-row a, .info-row p { font-weight: 600; color: var(--d-text); overflow-wrap: break-word; }
/* Email: chỉ xuống dòng tại dấu @ (thẻ <wbr>), không cắt giữa chữ */
.email { word-break: normal; overflow-wrap: normal; }
/* Không để nội dung dài (link Facebook...) đẩy khối rộng ra và bị cắt trên điện thoại */
.contact-grid > *, .info-card > *, .info-row > div, .qr > div { min-width: 0; }
.info-row a:not(.email):not(.link-arrow) { overflow-wrap: anywhere; }
.qr { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--d-line); }
.qr img { width: 96px; height: 96px; border-radius: 10px; background: #fff; }
.qr p { color: var(--d-muted); font-size: .9rem; }
.map { margin-top: 26px; border-radius: 26px; overflow: hidden; aspect-ratio: 21 / 8; border: 1px solid var(--line); background: var(--cream-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ------------------------------------------------------------ Legal / 404 */
.legal { max-width: 820px; }
.legal section + section { margin-top: 36px; }
.legal h2 { font-size: 1.3rem; margin-bottom: 10px; letter-spacing: -.01em; }
.legal p { color: #2a2f3a; }
.err {
    min-height: 100svh; display: grid; place-items: center; text-align: center;
    background: var(--ink); color: #fff; position: relative; overflow: hidden; padding: 120px 20px 60px;
}
.err__code {
    font-size: clamp(8rem, 28vw, 20rem); font-weight: 800; line-height: .85; letter-spacing: -.06em;
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .1)); -webkit-background-clip: text; background-clip: text; color: transparent;
    position: relative;
}
.err p { color: var(--d-muted); margin: 18px auto 34px; max-width: 44ch; }

/* ------------------------------------------------------------ Footer */
.ftr { position: relative; overflow: hidden; background: var(--ink); color: var(--d-text); padding-top: clamp(70px, 9vw, 110px); }
.ftr__glow { position: absolute; left: 50%; bottom: -320px; width: 900px; height: 500px; margin-left: -450px; background: radial-gradient(closest-side, rgba(215, 25, 63, .35), transparent); pointer-events: none; }
.ftr__top { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.ftr__brand img { height: 46px; width: auto; }
.ftr__brand p { color: var(--d-muted); margin: 18px 0 22px; max-width: 34ch; }
.ftr__social { display: flex; gap: 10px; }
.ftr__social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--d-line); transition: background .3s, transform .4s var(--ease); }
.ftr__social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }
.ftr__title { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--d-muted); font-weight: 700; margin-bottom: 18px; }
.ftr__col ul { display: grid; gap: 10px; }
.ftr__col a { color: rgba(243, 241, 236, .85); transition: color .3s; font-size: .95rem; }
.ftr__col a:hover { color: var(--gold); }
.ftr__contact li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: rgba(243, 241, 236, .85); font-size: .95rem; }
.ftr__contact .ico { color: var(--red); margin-top: 3px; }
.ftr__word {
    position: relative; margin-top: 70px;
    font-size: clamp(3.4rem, 13.5vw, 13rem); font-weight: 800; letter-spacing: -.06em; line-height: .8;
    white-space: nowrap; text-align: center;
    color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .14);
    background: linear-gradient(90deg, transparent, rgba(215, 25, 63, .5), transparent) -100% 0 / 50% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text;
    animation: sweep 8s var(--ease-in-out) infinite;
}
@keyframes sweep { to { background-position: 200% 0; } }
.ftr__bottom {
    position: relative; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 26px 0 30px; margin-top: 30px; border-top: 1px solid var(--d-line);
    font-size: .85rem; color: var(--d-muted);
}
.ftr__bottom strong { color: var(--d-text); }
.ftr__legal { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.ftr__legal a:hover { color: #fff; }

/* ------------------------------------------------------------ Reveal animations */
.js [data-reveal] {
    opacity: 0; transform: translate3d(0, 40px, 0);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="left"] { transform: translate3d(-50px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(50px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="clip"] { transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease), opacity .6s; }
.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* Đệm trên/dưới để không cắt dấu tiếng Việt (Ô, Ộ, Ệ...) và chân chữ (g, p, ợ) khi che chữ cho hiệu ứng. */
.js [data-split] .wd { display: inline-block; overflow: hidden; vertical-align: top; padding: .22em 0 .14em; margin: -.22em 0 -.14em; }
.js [data-split] .wd > span {
    display: inline-block; transform: translateY(105%);
    transition: transform 1.1s var(--ease); transition-delay: calc(var(--w) * 45ms + var(--base, 0ms));
}
.js [data-split].is-in .wd > span { transform: none; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1100px) {
    .hdr__nav { display: none; }
    .hdr__burger { display: block; }
    .hdr__actions { margin-left: auto; }
    .sol-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .why { grid-template-columns: repeat(2, 1fr); }
    .ftr__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    .hero__grid, .split, .orbit-wrap, .sd-hero, .contact-grid, .mod, .leader-band__grid, .person { grid-template-columns: 1fr; }
    .split--rev > :first-child { order: 0; }
    .hero__visual { max-width: 460px; width: 100%; margin-inline: auto; }
    .sec-head--split { grid-template-columns: 1fr; }
    .sol-grid, .news-grid, .groups { grid-template-columns: repeat(2, 1fr); }
    .news-card--featured { grid-column: 1 / -1; flex-direction: column; }
    .news-card--featured .news-card__media { min-height: 0; aspect-ratio: 16 / 9; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .is-dark .stat:nth-child(n+3) { border-color: var(--d-line); }
    .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .process::before { display: none; }
    .mod__sticky { position: static; }
    .cta-band { grid-template-columns: 1fr; align-items: start; }
    .country { grid-template-columns: 1fr; gap: 18px; }
    .leader-band .avatar { --s: 170px; }
    .spec { grid-template-columns: 1fr; }
    .spec > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .hdr__cta { display: none; }
    .sol-grid, .sol-grid--4, .news-grid, .groups, .why, .feat-grid, .affil, .facts, .form-grid { grid-template-columns: 1fr; }
    .fact:nth-child(even) { padding-left: 0; border-left: 0; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { padding-right: 12px; }
    .stat + .stat { padding-left: 12px; }
    .stat:nth-child(3) { padding-left: 0; }
    .float-card { padding: 10px 12px; }
    .float-card--1 { left: -2%; }
    .float-card--2 { right: -2%; }
    .timeline::before, .timeline__fill { left: 7px; }
    .tl-item { grid-template-columns: 1fr; gap: 8px; padding-left: 34px; }
    .tl-item::before { left: 1px; top: 26px; }
    .tl-year { padding-top: 0; }
    .process { grid-template-columns: 1fr; }
    .map { aspect-ratio: 4 / 3; }
    .lang a { padding: 5px 9px; }
    .to-top { right: 14px; bottom: 14px; }
    .ftr__top { grid-template-columns: 1fr; }
    .mod__item { grid-template-columns: 44px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js [data-reveal], .js [data-split] .wd > span { opacity: 1; transform: none; clip-path: none; }
    .mission__text .w { opacity: 1; }
}
