/* ==========================================================
   Demo v3: modern, calm, a little "tech".
   Cool neutral page, indigo-to-cyan accent, mono labels,
   soft grid in the background. Loaded after styles.css;
   remove this file's <link> to go back to the current look.
   ========================================================== */
:root {
  --ink: #0b0d14;
  --muted: #5b6275;
  --page: #f7f8fb;
  --surface: #ffffff;
  --soft: #f1f3f8;
  --warm: #f7f8fb;
  --line: #e4e7ee;
  --line-strong: #d4d9e3;
  --accent: #4f46e5;
  --accent-ink: #4338ca;
  --accent-soft: #eef0ff;
  --accent-line: #c7cdfb;
  --accent-grad: linear-gradient(100deg, #4f46e5 0%, #7c3aed 48%, #0ea5e9 100%);
  --on-dark-muted: #a3aac0;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius-outer: 24px;
  --radius-inner: 18px;
  --radius-small: 12px;
  --shadow: 0 1px 2px rgba(11, 13, 20, 0.04), 0 12px 32px -16px rgba(11, 13, 20, 0.14);
  --shadow-hover: 0 2px 4px rgba(11, 13, 20, 0.05), 0 24px 48px -20px rgba(79, 70, 229, 0.28);
}
::selection { background: #dfe3ff; color: var(--ink); }
body { background: var(--page); }

/* Background: soft aurora plus a fading grid at the top of every page */
body::before {
  height: 820px;
  background:
    radial-gradient(620px 360px at 86% 20px, rgba(124, 58, 237, 0.13), transparent 70%),
    radial-gradient(560px 340px at 6% 0, rgba(14, 165, 233, 0.12), transparent 70%);
}
body::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 820px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 13, 20, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 13, 20, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0, #000 30%, transparent 75%);
}

/* Type */
h1, h2 { letter-spacing: -0.035em; }
h1 { font-weight: 700; }
.lede { color: var(--muted); }

/* Labels: mono, small caps feel, glowing dot */
.eyebrow {
  padding: 5px 12px; gap: 8px; border-color: var(--line); background: rgba(255, 255, 255, 0.8);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.eyebrow::before { width: 6px; height: 6px; background: var(--accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16), 0 0 10px rgba(79, 70, 229, 0.6); }
.case-result-label, .case-meta, .link-type, .phase-step, .ticker-label, .dates {
  font-family: var(--mono); letter-spacing: 0.02em;
}
.principle .case-result-label { color: var(--accent-ink); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* Header */
.header-row { background: rgba(255, 255, 255, 0.72); border-color: rgba(228, 231, 238, 0.9); }
.brand-mark { background: var(--accent-grad); box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.6); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.site-nav .nav-contact { background: var(--ink); border-color: var(--ink); }
.site-nav .nav-contact:hover { background: var(--accent); border-color: var(--accent); }

/* Buttons */
.btn { border-radius: 12px; }
.btn.primary { background: var(--ink); border-color: var(--ink); box-shadow: 0 10px 24px -12px rgba(11, 13, 20, 0.6); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); box-shadow: 0 12px 28px -12px rgba(79, 70, 229, 0.7); }
.btn:not(.primary):hover { border-color: var(--accent-line); background: var(--surface); }
.dark .btn.primary:hover { background: var(--accent-soft); }

/* Gradient words */
.h1-accent, .case-stat strong { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Home hero */
.hero2-photo { border-radius: 28px; box-shadow: 0 40px 70px -36px rgba(11, 13, 20, 0.5); }
.hero2-visual::before { background: linear-gradient(150deg, #dcdcff, #e3f4fb 60%, transparent); }
.hero-chip { border-radius: 16px; border-color: rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.86); box-shadow: 0 18px 40px -18px rgba(11, 13, 20, 0.35); }
.chip-1 .hero-chip-value, .chip-4 .hero-chip-value { color: var(--accent-ink); }
.status { background: rgba(255, 255, 255, 0.85); }

/* Press ticker: deep night band */
.ticker { background: #0b0d14; background-image: radial-gradient(600px 120px at 50% 0, rgba(79, 70, 229, 0.25), transparent 70%); }
.ticker-item.muted, a.ticker-item:hover { color: #a5b4fc; }
.ticker-dot { background: var(--accent-grad); }

/* Cards */
.case-card, .frame, .principle, .skill, .link-card, .kpi, .metric, .pair-card, .phase, .outcome, .play, .media-card, .detail-list li, .timeline li, .step, .process li, .contact-list a, .work-card, .case-row, .cap-row, .video-feature, .bars, .prose-card {
  border-color: var(--line);
}
.frame-inner { background: linear-gradient(180deg, #ffffff 60%, #f8f9fc 100%); }
.case-card { border-radius: 24px; }
.case-badge { font-family: var(--mono); background: rgba(11, 13, 20, 0.72); }
.case-card:hover .case-arrow, .case-row:hover .case-go, .link-card:hover .case-go { background: var(--accent); border-color: var(--accent); color: #fff; }
.case-card:hover, .case-row:hover, .link-card:hover, .work-card:hover, .skill:hover { border-color: var(--accent-line); box-shadow: var(--shadow-hover); }
.cap-row:hover, .principle:hover { border-color: var(--accent-line); box-shadow: var(--shadow-hover); }
.case-outcome { background: linear-gradient(180deg, var(--soft), #f8f9fc); }
.cap-icon, .case-num, .skill-icon, .h1-chip { background: linear-gradient(145deg, #f1f0ff, #e0e7ff); color: var(--accent-ink); box-shadow: inset 0 0 0 1px #d9dcfb; }
.metric::before { background: var(--accent-grad); }

/* Video strip */
.reels-section { background: linear-gradient(180deg, transparent, #eef1f8 18%, #eef1f8 82%, transparent); }
.reel-brand { background: var(--accent); font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.02em; }
.reel.vthumb { border-radius: 18px; }

/* "How I think" band: light indigo glass with a grid */
.think-band {
  background:
    linear-gradient(rgba(79, 70, 229, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(79, 70, 229, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(135deg, #f3f2ff 0%, #e7f5fb 100%);
  border-color: #dcdcfb;
}
.think-band::after { color: rgba(79, 70, 229, 0.14); }

/* Footer call to action: night card with an indigo and cyan glow */
.footer-cta.dark { background: #0b0d14; }
.footer-cta::before {
  inset: auto -8% -70% auto; width: 640px; height: 460px;
  background: radial-gradient(closest-side, rgba(79, 70, 229, 0.45), transparent);
}
.footer-cta::after {
  content: ""; position: absolute; left: -10%; top: -60%; width: 520px; height: 380px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(14, 165, 233, 0.22), transparent);
}

/* Small parts */
.chip { background: var(--accent-soft); color: var(--accent-ink); }
.chip-list .chip { background: var(--surface); border: 1px solid var(--line); }
.dot-yes { background: var(--accent-grad); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12); }
.dot-no { background: #e9ecf3; }
.bar-fill { background: var(--accent-grad); }
.kpi-value, .metric-value, .play-num, .funnel-value, .bar-value { letter-spacing: -0.03em; }
.inline-link { text-decoration-color: var(--accent-line); }
.inline-link:hover { color: var(--accent-ink); text-decoration-color: var(--accent); }
.process li::before { background: var(--accent-soft); color: var(--accent-ink); font-family: var(--mono); }
.step::before { font-family: var(--mono); }
.jump a:hover { border-color: var(--accent-line); color: var(--accent-ink); }
.back-link:hover { color: var(--accent-ink); }
:focus-visible { outline-color: var(--accent); }

@media (max-width: 720px) {
  body::after { background-size: 40px 40px; height: 600px; }
}
.funnel-step:last-child { background: var(--accent-grad); }

/* Centred footer card: glows sit symmetrically */
.footer-cta::before { inset: auto auto -75% 50%; transform: translateX(-50%); width: 760px; height: 460px; }
.footer-cta::after { left: 50%; top: -70%; transform: translateX(-50%); }

/* Centred "How I think" band: quote mark sits inside the card, above the label */
.think-band { padding-top: clamp(84px, 9vw, 104px); }
.think-band::after { top: 18px; font-size: 6rem; line-height: 1; }

/* Chapter numbers use the v3 gradient */
.ch-num { font-weight: 500; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Reel brand tag: top-left, frosted glass */
.reel .reel-info { inset: 14px; top: 14px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.reel .reel-brand {
  position: absolute; top: 0; left: 0;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(11, 13, 20, 0.38); border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-family: inherit; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em;
}

/* Hero stat chips link to their proof */
a.hero-chip { color: inherit; text-decoration: none; cursor: pointer; transition: translate .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease; }
a.hero-chip:hover { translate: 0 -3px; background: rgba(255, 255, 255, 0.97); border-color: var(--accent-line); box-shadow: 0 22px 44px -18px rgba(79, 70, 229, 0.45); }
a.hero-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Hero stat chips: tag + value + label */
.hero-chip { width: 188px; max-width: none; gap: 0; padding: 14px 16px 13px; border-radius: 18px;
  background: rgba(255,255,255,.74); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.95); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 14px 34px -14px rgba(30,27,75,.30); }
.hero-chip-tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: .6875rem; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.hero-chip-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero-chip .hero-chip-value, .chip-1 .hero-chip-value, .chip-4 .hero-chip-value { color: var(--ink); font-size: 1.625rem; line-height: 1.05; letter-spacing: -.035em; }
.hero-chip-label { margin-top: 3px; font-size: .8125rem; line-height: 1.35; text-wrap: balance; }
.chip-2 { right: -7%; }
@media (max-width: 720px) { .hero-chip { width: auto; } }

/* Press ticker: light, compact */
.ticker { padding: 14px 0 16px; background: #eef0fa; background-image: none; color: var(--ink); border-top: 1px solid var(--line, #e3e6ef); border-bottom: 1px solid var(--line, #e3e6ef); }
.ticker-label { margin-bottom: 8px; font-size: .6875rem; color: var(--muted); }
.ticker-run { gap: 22px; padding-right: 22px; }
.ticker-item { font-size: clamp(.95rem, 1.4vw, 1.1rem); font-weight: 600; letter-spacing: -.01em; color: #4b5068; }
.ticker-item.muted { color: #8a8fa6; }
a.ticker-item:hover { color: var(--accent-ink); }
.ticker-dot { width: 4px; height: 4px; background: #b9bdd3; }

/* Language switch (VI | EN segmented) */
.lang-switch { order: 3; margin-left: -12px; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(15, 23, 42, .05); border: 1px solid var(--line, #e3e6ef); }
.lang-opt { font-family: var(--mono); font-size: .75rem; font-weight: 600; letter-spacing: .04em; line-height: 1; padding: 6px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; }
a.lang-opt:hover { color: var(--accent-ink); background: rgba(255, 255, 255, .8); }
a.lang-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lang-opt.is-current { color: #fff; background: var(--accent); box-shadow: 0 2px 8px -2px rgba(79, 70, 229, .55); }
.site-nav { order: 2; }
@media (max-width: 720px) { .lang-switch { order: 1; margin-left: auto; } .site-nav { order: 2; } }

/* Vietnamese headings: extra line gap so stacked diacritics (ự, ề…) don't touch */
html[lang="vi"] :is(h1, h2):not(.hero-name) { line-height: 1.28; }
