/* ==========================================================
   SUONGCHEZ PORTFOLIO — style.css
   Design tokens theo design system (đen/trắng, bo góc lớn) + 1 màu nhấn
   Đổi màu nhấn: sửa --color-accent bên dưới.
   ========================================================== */
:root {
  color-scheme: dark;
  /* Color (mặc định: giao diện tối) */
  --color-surface-base: #000000;
  --color-surface-raised: #0f0f0f;
  --color-surface-card: #161616;
  --color-surface-muted: #fafafa;
  --color-surface-strong: #f2f2f2;
  --color-text-primary: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.64);
  --color-text-inverse: #000000;
  --color-text-inverse-muted: rgba(0, 0, 0, 0.62);
  --color-border: rgba(255, 255, 255, 0.14);
  --color-border-inverse: rgba(0, 0, 0, 0.1);
  --color-accent: #c6ff3d;
  --color-accent-ink: #000000;
  --color-error: #ff6b6b;
  --color-header-bg: rgba(20, 20, 20, 0.6);
  --color-hover: rgba(255, 255, 255, 0.1);
  --color-inverse-card: #ffffff;
  --color-accent-text: #c6ff3d;
  --color-focus: #c6ff3d;
  --color-focus-inverse: #000000;
  --hl-fg: #c6ff3d; --hl-bg: transparent; --hl-pad: 0;
  --hl-inv-fg: #000000; --hl-inv-bg: #c6ff3d; --hl-inv-pad: 0 .18em;
  --stack-alt: #0a0a0a;
  --color-frame: #3d3d3d;
  --d-sun: block; --d-moon: none;

  /* Type */
  --font-primary: "Be Vietnam Pro", "Matter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-base: 1.125rem;
  --font-size-lg: 1.40625rem;
  --font-size-h3: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  --font-size-h2: clamp(2.1rem, 1.2rem + 3.6vw, 4.5rem);
  --font-size-h1: clamp(2.6rem, 1rem + 6.6vw, 7.5rem);
  --font-size-display: clamp(3.5rem, 1rem + 11vw, 13rem);

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 36px;
  --space-7: 54px;
  --space-8: 72px;
  --space-section: clamp(72px, 10vw, 160px);
  --gutter: clamp(16px, 3vw, 36px);
  --container: 1560px;

  /* Radius / shadow / motion */
  --radius-xs: 4.5px;
  --radius-sm: 18px;
  --radius-md: 27px;
  --radius-lg: 36px;
  --radius-xl: 39.6px;
  --radius-pill: 50px;
  --shadow-1: rgba(0, 0, 0, 0.1) 0px 4.5px 63px 0px;
  --dur-instant: 200ms;
  --dur-fast: 450ms;
  --dur-slow: 900ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Giao diện sáng: theo cài đặt máy, hoặc theo nút chuyển (data-theme) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --color-surface-base: #f6f6f3;
    --color-surface-raised: #ffffff;
    --color-surface-card: #ffffff;
    --color-surface-muted: #0b0b0b;
    --color-text-primary: #000000;
    --color-text-muted: rgba(0, 0, 0, 0.62);
    --color-text-inverse: #ffffff;
    --color-text-inverse-muted: rgba(255, 255, 255, 0.64);
    --color-border: rgba(0, 0, 0, 0.13);
    --color-border-inverse: rgba(255, 255, 255, 0.14);
    --color-header-bg: rgba(255, 255, 255, 0.72);
    --color-hover: rgba(0, 0, 0, 0.06);
    --color-inverse-card: #161616;
    --color-accent-text: #4f7d00;
    --color-focus: #000000;
    --color-focus-inverse: #c6ff3d;
    --hl-fg: #000000; --hl-bg: #c6ff3d; --hl-pad: 0 .18em;
    --hl-inv-fg: #c6ff3d; --hl-inv-bg: transparent; --hl-inv-pad: 0;
    --stack-alt: #1c1c1c;
    --color-frame: #0b0b0b;
    --d-sun: none; --d-moon: block;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --color-surface-base: #f6f6f3;
  --color-surface-raised: #ffffff;
  --color-surface-card: #ffffff;
  --color-surface-muted: #0b0b0b;
  --color-text-primary: #000000;
  --color-text-muted: rgba(0, 0, 0, 0.62);
  --color-text-inverse: #ffffff;
  --color-text-inverse-muted: rgba(255, 255, 255, 0.64);
  --color-border: rgba(0, 0, 0, 0.13);
  --color-border-inverse: rgba(255, 255, 255, 0.14);
  --color-header-bg: rgba(255, 255, 255, 0.72);
  --color-hover: rgba(0, 0, 0, 0.06);
  --color-inverse-card: #161616;
  --color-accent-text: #4f7d00;
  --color-focus: #000000;
  --color-focus-inverse: #c6ff3d;
  --hl-fg: #000000; --hl-bg: #c6ff3d; --hl-pad: 0 .18em;
  --hl-inv-fg: #c6ff3d; --hl-inv-bg: transparent; --hl-inv-pad: 0;
  --stack-alt: #1c1c1c;
    --color-frame: #0b0b0b;
  --d-sun: none; --d-moon: block;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-surface-base);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.16; letter-spacing: -0.025em; word-spacing: 0.08em; text-wrap: balance; }
h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); letter-spacing: -0.02em; line-height: 1.2; }
p { text-wrap: pretty; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
.section--light :focus-visible { outline-color: var(--color-focus-inverse); }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 300;
  background: var(--color-accent); color: var(--color-accent-ink);
  padding: 12px 20px; border-radius: var(--radius-pill); font-size: var(--font-size-sm);
  transition: top var(--dur-instant);
}
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); position: relative; }
.section--light {
  background: var(--color-surface-muted); color: var(--color-text-inverse);
  border-radius: var(--radius-lg); margin-inline: clamp(6px, 1vw, 16px);
}
.section--light .muted { color: var(--color-text-inverse-muted); }
.muted { color: var(--color-text-muted); }
.accent { color: var(--hl-fg); background: var(--hl-bg); padding: var(--hl-pad); border-radius: .18em; }
.section--light .accent { color: var(--hl-inv-fg); background: var(--hl-inv-bg); padding: var(--hl-inv-pad); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--font-size-sm); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent); }
.eyebrow::before { box-shadow: 0 0 0 1px var(--color-border); }

.section-head {
  display: grid; grid-template-columns: 1fr; gap: var(--space-5);
  margin-bottom: clamp(36px, 5vw, 80px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.5fr 1fr; align-items: end; }
  .section-head > :last-child { justify-self: end; max-width: 46ch; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--color-text-primary); --btn-ink: var(--color-surface-base);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 8px 8px 26px;
  border-radius: var(--radius-pill); background: var(--btn-bg); color: var(--btn-ink);
  font-size: var(--font-size-md); font-weight: 500; line-height: 1;
  overflow: hidden; isolation: isolate;
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--color-accent); transform: translateY(101%);
  transition: transform var(--dur-fast) var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--color-accent-ink); }
.btn:active { transform: scale(0.97); }
.btn__icon {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--color-surface-base); color: var(--color-text-primary);
  transition: transform var(--dur-fast) var(--ease);
}
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn__icon svg { width: 14px; height: 14px; }
.btn--accent { --btn-bg: var(--color-accent); --btn-ink: var(--color-accent-ink); }
.btn--accent .btn__icon, .btn:hover .btn__icon, .btn:focus-visible .btn__icon { background: #000; color: #fff; }
.btn--accent::before { background: var(--color-text-primary); }
.btn--accent:hover, .btn--accent:focus-visible { color: var(--color-surface-base); }
.btn--accent:hover .btn__icon, .btn--accent:focus-visible .btn__icon { background: var(--color-surface-base); color: var(--color-text-primary); }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--color-text-primary); box-shadow: inset 0 0 0 1px var(--color-border); }
.btn--ghost .btn__icon { background: var(--color-text-primary); color: var(--color-surface-base); }
.btn--dark { --btn-bg: #000; --btn-ink: #fff; }
.btn--dark .btn__icon { background: #fff; color: #000; }
.btn--plain { padding-inline: 26px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__icon { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--font-size-md); font-weight: 500; padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size var(--dur-fast) var(--ease), gap var(--dur-fast) var(--ease); }
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; gap: 14px; }

.tag {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--color-border);
  font-size: var(--font-size-sm); white-space: nowrap;
}
.section--light .tag { border-color: var(--color-border-inverse); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Màn hình chào (preloader) ---------- */
.preloader { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: var(--gutter); background: var(--color-surface-base); color: var(--color-text-primary); transition: transform .9s var(--ease); animation: preSafety 0s 8s forwards; }
@keyframes preSafety { to { visibility: hidden; } }
.preloaded .preloader { display: none; }
.preloader.is-done { transform: translateY(-100%); }
.preloader__inner { text-align: center; }
.preloader__word { position: relative; display: inline-flex; align-items: baseline; min-height: 1.25em; padding-bottom: .16em; font-size: clamp(2.6rem, 10vw, 7.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.preloader__dot { width: .17em; height: .17em; margin-left: .04em; border-radius: 50%; background: var(--color-accent); transform: scale(0); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.preloader__caret { align-self: center; width: .045em; min-width: 2px; height: .82em; margin-left: .06em; background: var(--color-accent); animation: preBlink .7s steps(1) infinite; }
@keyframes preBlink { 50% { opacity: 0; } }
.preloader__line { position: absolute; left: 0; right: 0; bottom: 0; height: .055em; min-height: 3px; border-radius: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.preloader__welcome { margin-top: clamp(16px, 2.4vw, 28px); font-size: clamp(.95rem, 1.8vw, 1.35rem); letter-spacing: .42em; text-indent: .42em; text-transform: uppercase; color: var(--color-text-muted); opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.preloader.is-typed .preloader__caret { display: none; }
.preloader.is-typed .preloader__dot { transform: scale(1); }
.preloader.is-lined .preloader__line { transform: scaleX(1); }
.preloader.is-welcome .preloader__welcome { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .is-preloading .reveal { opacity: 0 !important; transform: translateY(40px) !important; }
  .is-preloading .split .w > span { transform: translateY(110%) !important; }
  .is-preloading .reveal-img { opacity: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { .preloader { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 12px 0 auto 0; z-index: 100;
  transition: transform var(--dur-fast) var(--ease);
}
.header.is-hidden { transform: translateY(-140%); }
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 64px; padding: 8px 8px 8px 24px;
  border-radius: var(--radius-pill);
  background: var(--color-header-bg); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--color-border);
}
.logo { display: inline-flex; align-items: baseline; gap: 2px; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.04em; }
.logo i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); display: inline-block; }
.nav { display: none; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-pill); font-size: var(--font-size-md);
  transition: background var(--dur-instant), color var(--dur-instant);
}
.nav__link:hover { background: var(--color-hover); }
.nav__link[aria-current="page"] { background: var(--color-text-primary); color: var(--color-surface-base); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__cta { display: none; min-height: 48px; }
.menu-toggle {
  width: 48px; height: 48px; border-radius: 50%; background: var(--color-text-primary); color: var(--color-surface-base);
  display: grid; place-items: center; position: relative;
}
.menu-toggle span { position: absolute; width: 18px; height: 2px; background: currentColor; transition: transform var(--dur-fast) var(--ease); }
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
@media (min-width: 1024px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--color-accent); color: var(--color-accent-ink);
  padding: 110px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 700ms var(--ease), visibility 0s 700ms;
}
.mobile-menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 700ms var(--ease); }
.mobile-menu a.mm-link { display: block; font-size: clamp(2.2rem, 10vw, 4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.15; padding-block: 6px; }
.mobile-menu__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--font-size-md); }
.mobile-menu :focus-visible { outline-color: #000; }

.theme-toggle { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--color-border); transition: background var(--dur-instant), transform var(--dur-fast) var(--ease); }
.theme-toggle:hover { background: var(--color-hover); transform: rotate(20deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: var(--d-sun); }
.theme-toggle .moon { display: var(--d-moon); }
body, .section--light, .header__bar, .stat, .post, .skill { transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__smoke { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero > .container { position: relative; z-index: 1; }
.hero { padding-top: clamp(130px, 16vw, 220px); padding-bottom: var(--space-7); }
.hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: var(--space-6); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: var(--font-size-sm); padding: 8px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198,255,61,.6);} 100% { box-shadow: 0 0 0 12px rgba(198,255,61,0);} }
.hero__title { max-width: 16ch; }
.hero__bottom { display: grid; gap: var(--space-6); margin-top: var(--space-7); align-items: end; }
.hero__lead { font-size: var(--font-size-lg); max-width: 34ch; line-height: 1.35; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .hero__bottom { grid-template-columns: 1fr auto; } }
.hero__media {
  position: relative; margin-top: var(--space-7); border-radius: var(--radius-lg); overflow: hidden;
  height: clamp(320px, 50vw, 780px); background: var(--color-surface-card);
}
.hero__media img { width: 100%; height: 120%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.65)); }
.hero__facts { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(16px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 10px; }
.chip { color: #fff; background: rgba(0,0,0,.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-pill); padding: 8px 16px; font-size: var(--font-size-sm); }
.badge-spin {
  position: absolute; z-index: 2; right: clamp(16px, 3vw, 36px); top: clamp(16px, 3vw, 36px);
  width: clamp(92px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%;
  background: var(--color-accent); color: var(--color-accent-ink); display: grid; place-items: center;
}
.badge-spin svg.ring { position: absolute; inset: 6%; animation: spin 14s linear infinite; }
.badge-spin svg.arrow { width: 26%; }
.badge-spin text { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; fill: currentColor; }

.hero__media--video .hero__poster { width: 100%; height: 120%; object-fit: cover; }
.hero__video { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; background: #000; }
.hero__play { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; justify-items: center; gap: 12px; transform: translate(-50%, -50%); color: #fff; }
.hero__play-icon { position: relative; width: clamp(76px, 8vw, 112px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: var(--color-accent-ink); transition: transform var(--dur-fast) var(--ease); }
.hero__play-icon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--color-accent); animation: playRing 2s var(--ease) infinite; }
@keyframes playRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.hero__play-icon svg { width: 32%; height: 32%; margin-left: 6%; }
.hero__play-label { font-size: var(--font-size-sm); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero__play:hover .hero__play-icon { transform: scale(1.08); }
.hero__media--video.is-playing::after, .hero__media--video.is-playing .hero__play, .hero__media--video.is-playing .hero__facts, .hero__media--video.is-playing .badge-spin { display: none; }

/* Page hero (trang con) */
.page-hero { padding-top: clamp(140px, 17vw, 240px); padding-bottom: var(--space-8); }
.page-hero h1 { max-width: 18ch; }
.page-hero p { margin-top: var(--space-6); max-width: 52ch; font-size: var(--font-size-lg); line-height: 1.4; }
.breadcrumb { display: flex; gap: 8px; font-size: var(--font-size-sm); margin-bottom: var(--space-5); color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-text-primary); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; display: flex; user-select: none; }
.marquee__track { display: flex; flex: none; align-items: center; gap: var(--mq-gap, 48px); padding-right: var(--mq-gap, 48px); animation: marquee var(--mq-speed, 30s) linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee--text { padding-block: var(--space-7); border-block: 1px solid var(--color-border); }
.marquee--text span { font-size: clamp(2.4rem, 7vw, 6.5rem); font-weight: 500; letter-spacing: -0.04em; white-space: nowrap; line-height: 1; }
.marquee--text .star { width: clamp(28px, 4vw, 60px); height: clamp(28px, 4vw, 60px); color: var(--color-accent-text); flex: none; animation: spin 8s linear infinite; }
.logo-pill {
  flex: none; min-width: 210px; height: 96px; padding: 0 32px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--color-border-inverse);
  display: grid; place-items: center; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.03em; color: #000;
  transition: background var(--dur-instant), transform var(--dur-fast) var(--ease);
}
.logo-pill img { max-height: 48px; max-width: 150px; width: auto; object-fit: contain; }
.logo-pill:hover { background: var(--color-accent); transform: translateY(-4px); }
.marquee--logos { --mq-gap: 16px; --mq-speed: 38s; margin-bottom: 16px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee--gallery { --mq-gap: 16px; --mq-speed: 50s; }
.marquee--gallery img { height: clamp(220px, 30vw, 420px); width: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius-md); flex: none; }
.marquee--gallery img:nth-child(even) { aspect-ratio: 4/3; }

/* ---------- Project cards ---------- */
.projects-grid { display: grid; gap: clamp(28px, 4vw, 64px) var(--gutter); }
@media (min-width: 800px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid--offset > :nth-child(even) { margin-top: clamp(40px, 8vw, 140px); }
}
.project-card { display: block; }
.project-card[hidden] { display: none; }
.project-card__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--color-surface-card); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-card:hover .project-card__media img, .project-card:focus-visible .project-card__media img { transform: scale(1.06); }
.project-card__year { position: absolute; top: 16px; left: 16px; }
.project-card__body { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-top: var(--space-5); }
.project-card__title { font-size: var(--font-size-h3); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.project-card__desc { margin-top: 8px; font-size: var(--font-size-md); color: var(--color-text-muted); max-width: 44ch; }
.section--light .project-card__desc { color: var(--color-text-inverse-muted); }
.project-card__arrow { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1px solid currentColor; transition: background var(--dur-fast) var(--ease), color var(--dur-fast), transform var(--dur-fast) var(--ease); }
.project-card__arrow svg { width: 16px; }
.project-card:hover .project-card__arrow { background: var(--color-accent); color: #000; border-color: var(--color-accent); transform: rotate(45deg); }
.project-card .tags { margin-top: 14px; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: var(--space-7); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; min-height: 48px; padding: 0 22px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); font-size: var(--font-size-md); transition: background var(--dur-instant), color var(--dur-instant); }
.filter:hover { background: var(--color-hover); }
.filter[aria-pressed="true"] { background: var(--color-accent); color: #000; border-color: var(--color-accent); }
.filters--big { flex-wrap: wrap; align-items: baseline; gap: 0 clamp(18px, 3.4vw, 60px); overflow: visible; margin-bottom: 0; padding-bottom: 0; font-size: clamp(2rem, 5.4vw, 5.25rem); }
.filters__label { display: inline-flex; align-items: center; gap: 10px; align-self: center; min-width: clamp(90px, 16vw, 250px); font-size: var(--font-size-md); }
.filters__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.filters--big .filter { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: inherit; font-weight: 500; letter-spacing: -0.045em; line-height: 1.22; text-transform: lowercase; color: var(--color-text-primary); opacity: .38; transition: opacity var(--dur-fast) var(--ease); }
.filters--big .filter:hover { background: none; opacity: .75; }
.filters--big .filter[aria-pressed="true"] { background: none; color: var(--color-text-primary); opacity: 1; }
.filters--big .filter sup { font-size: max(.2em, 11px); margin-left: .35em; letter-spacing: 0; vertical-align: baseline; font-variant-numeric: tabular-nums; }
.empty-state { padding: var(--space-8) 0; text-align: center; color: var(--color-text-muted); }

/* ---------- Services: sticky stacking cards ---------- */
.stack { display: grid; gap: 16px; }
.stack__card {
  position: sticky; top: calc(96px + var(--i, 0) * 14px);
  display: grid; gap: var(--space-6);
  padding: clamp(24px, 4vw, 54px); border-radius: var(--radius-lg);
  --color-text-inverse-muted: rgba(0,0,0,.62); --color-border-inverse: rgba(0,0,0,.1);
  background: #fff; color: #000; border: 1px solid rgba(0,0,0,.1); box-shadow: var(--shadow-1);
  min-height: min(70vh, 560px); transform-origin: top center;
}
.stack__card:nth-child(even) { --color-text-inverse-muted: rgba(255,255,255,.64); --color-border-inverse: rgba(255,255,255,.14); background: var(--stack-alt); color: #fff; border-color: rgba(255,255,255,.12); }
.stack__card:nth-child(even) .tag { border-color: rgba(255,255,255,.14); }
.stack__card:nth-child(even) .muted { color: rgba(255,255,255,.64); }
.stack__num { font-size: var(--font-size-sm); letter-spacing: .08em; }
.stack__body { display: flex; flex-direction: column; gap: var(--space-5); justify-content: space-between; }
.stack__body p { max-width: 46ch; }
.stack__media { border-radius: var(--radius-md); overflow: hidden; min-height: 220px; background: #ddd; }
.stack__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .stack__card { grid-template-columns: 1.1fr 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-md); background: var(--color-surface-card); border: 1px solid var(--color-border); display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(170px, 20vw, 280px); transition: background var(--dur-fast), color var(--dur-fast); }
.stat:hover { background: var(--color-accent); color: #000; }
.stat:hover .muted { color: rgba(0,0,0,.7); }
.stat__num { font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.stat__label { font-size: var(--font-size-md); }

/* ---------- Process tabs ---------- */
.process { display: grid; gap: var(--space-6); }
@media (min-width: 1000px) { .process { grid-template-columns: 1fr 1fr; align-items: start; } }
.process__list { display: grid; }
.process__tab { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: baseline; width: 100%; text-align: left; padding: 26px 0; border-top: 1px solid var(--color-border-inverse); position: relative; }
.process__tab::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--color-text-inverse); }
.process__tab[aria-selected="true"]::after { width: 100%; transition: width var(--process-dur, 6s) linear; }
.process__tab-num { font-size: var(--font-size-sm); opacity: .6; }
.process__tab-title { font-size: var(--font-size-h3); font-weight: 500; letter-spacing: -0.03em; opacity: .35; transition: opacity var(--dur-fast); }
.process__tab[aria-selected="true"] .process__tab-title, .process__tab:hover .process__tab-title { opacity: 1; }
.process__tab-plus { width: 14px; height: 14px; position: relative; }
.process__tab-plus::before, .process__tab-plus::after { content: ""; position: absolute; inset: 6px 0; background: currentColor; transition: transform var(--dur-fast) var(--ease); }
.process__tab-plus::after { transform: rotate(90deg); }
.process__tab[aria-selected="true"] .process__tab-plus::after { transform: rotate(0); }
.process__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-fast) var(--ease); }
.process__panel > div { overflow: hidden; }
.process__panel.is-open { grid-template-rows: 1fr; }
.process__panel p { padding-bottom: 20px; max-width: 48ch; color: var(--color-text-inverse-muted); }
.process__panel .tags { padding-bottom: 28px; }
.process__media { position: sticky; top: 110px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/4.4; background: #ddd; }
.process__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 700ms var(--ease), transform 1.2s var(--ease); }
.process__media img.is-active { opacity: 1; transform: scale(1); }

/* ---------- Timeline / about ---------- */
.about-grid { display: grid; gap: var(--space-7); }
@media (min-width: 1000px) { .about-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.portrait { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--color-surface-card); position: relative; }
.portrait img { width: 100%; height: 115%; object-fit: cover; }
.lead-lg { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); line-height: 1.25; letter-spacing: -0.025em; }
.prose p + p { margin-top: 1.1em; }
.timeline__item { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 28px 0; border-top: 1px solid var(--color-border); transition: padding var(--dur-fast) var(--ease); }
.section--light .timeline__item { border-color: var(--color-border-inverse); }
.timeline__item:hover { padding-left: 16px; }
@media (min-width: 800px) { .timeline__item { grid-template-columns: 180px 1fr 1fr; gap: 24px; } }
.timeline__role { font-size: var(--font-size-lg); font-weight: 500; letter-spacing: -0.02em; }
.skills { display: grid; gap: 12px; }
@media (min-width: 800px) { .skills { grid-template-columns: repeat(2, 1fr); } }
.skill { padding: 28px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface-raised); }
.skill h3 { font-size: var(--font-size-lg); margin-bottom: 14px; }

/* ---------- Team (tự chạy, lặp vô hạn) ---------- */
.marquee--team { --mq-gap: clamp(16px, 2.4vw, 40px); --mq-speed: 46s; padding-bottom: 8px; }
.marquee--team .marquee__track { align-items: flex-start; }
.team-card { --r: 27px; position: relative; flex: none; width: clamp(230px, 24vw, 340px); }
.team-card:nth-child(odd) { margin-top: clamp(32px, 5vw, 72px); }
.team-card__media { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-card); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.team-card:hover .team-card__media img { transform: scale(1.05); }
.team-card__label { position: absolute; left: 0; bottom: 0; min-width: 44%; max-width: 78%; padding: 14px 24px 0 0; background: var(--color-surface-base); border-top-right-radius: var(--r); transition: background-color var(--dur-fast) var(--ease); }
.team-card__label::before, .team-card__label::after { content: ""; position: absolute; width: var(--r); height: var(--r); background: radial-gradient(circle at 100% 0, transparent calc(var(--r) - .5px), var(--color-surface-base) var(--r)); }
.team-card__label::before { left: 0; top: calc(var(--r) * -1); }
.team-card__label::after { right: calc(var(--r) * -1); bottom: 0; }
.team-card__label h3 { font-size: var(--font-size-lg); letter-spacing: -0.02em; line-height: 1.2; }
.team-card__label p { font-size: var(--font-size-md); margin-top: 2px; }
.team-card__actions { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.team-card__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: var(--color-accent-ink); transition: transform var(--dur-fast) var(--ease), background var(--dur-instant); }
.team-card__btn:hover { transform: scale(1.1); background: #fff; }
.team-card__btn svg { width: 20px; height: 20px; }
.team-card__more span { position: relative; width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.team-card__more span::before, .team-card__more span::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: currentColor; }
.team-card__more span::after { transform: rotate(90deg); }
.team-card.is-open .team-card__more span { transform: rotate(45deg); }
.team-card__bio { position: absolute; inset: 0; margin: 0; padding: 76px 22px 96px; display: flex; align-items: flex-start; background: rgba(0,0,0,.72); color: #fff; font-size: var(--font-size-md); line-height: 1.45; opacity: 0; transform: translateY(12px); transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); pointer-events: none; }
.team-card.is-open .team-card__bio { opacity: 1; transform: none; }

/* ---------- Blog ---------- */
.posts { display: grid; gap: var(--gutter); }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-card); border: 1px solid var(--color-border); transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast); }
.section--light .post { background: var(--color-inverse-card); border-color: var(--color-border-inverse); }
.post:hover { transform: translateY(-8px); border-color: var(--color-accent); }
.post__media { aspect-ratio: 16/10.5; overflow: hidden; background: #222; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .post__media img { transform: scale(1.06); }
.post__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.post__meta { display: flex; justify-content: space-between; align-items: center; font-size: var(--font-size-sm); }
.post__title { font-size: var(--font-size-lg); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post--featured { grid-column: 1 / -1; }
@media (min-width: 900px) { .post--featured { flex-direction: row; } .post--featured .post__media { flex: 1.3; aspect-ratio: auto; min-height: 420px; } .post--featured .post__body { flex: 1; justify-content: space-between; padding: 40px; } .post--featured .post__title { font-size: var(--font-size-h3); } }

/* ---------- Chi tiết bài viết ---------- */
.post-title { font-size: var(--font-size-h2); max-width: 22ch; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: var(--space-6); font-size: var(--font-size-md); color: var(--color-text-muted); }
.post-meta .tag { color: var(--color-text-primary); }
.article { display: grid; gap: var(--space-7); }
@media (min-width: 1000px) { .article { grid-template-columns: 240px minmax(0, 760px); justify-content: center; gap: clamp(48px, 7vw, 120px); } }
.article__toc { align-self: start; }
@media (min-width: 1000px) { .article__toc { position: sticky; top: 120px; } }
.article__toc li a { display: block; padding: 9px 0 9px 16px; border-left: 2px solid var(--color-border); font-size: var(--font-size-md); color: var(--color-text-muted); transition: color var(--dur-instant), border-color var(--dur-instant); }
.article__toc li a:hover, .article__toc li a.is-active { color: var(--color-text-primary); border-left-color: var(--color-accent-text); }
.article__body { min-width: 0; }
.article__body > p, .article__body li { line-height: 1.7; }
.article__body > p + p { margin-top: 1.2em; }
.article__body h2 { font-size: var(--font-size-h3); margin: 2em 0 .7em; scroll-margin-top: 110px; }
.article__body ol { margin: 1.4em 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.article__body ol li { position: relative; padding: 18px 20px 18px 68px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-raised); }
.article__body ol li::before { content: attr(value); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: var(--color-accent-ink); font-size: var(--font-size-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.article__body figure { margin: 2.4em 0 0; }
.article__body figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); background: var(--color-surface-card); }
.article__body figure.img-fallback { border-radius: var(--radius-md); }
.article__body figcaption { margin-top: 12px; font-size: var(--font-size-sm); color: var(--color-text-muted); }
.article__body blockquote { margin: 2.4em 0 0; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-md); background: var(--color-accent); color: var(--color-accent-ink); }
.article__body blockquote p { font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; }
.article__author { display: flex; gap: 20px; align-items: center; margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.article__author img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.btn--inverse { --btn-bg: transparent; --btn-ink: var(--color-text-inverse); box-shadow: inset 0 0 0 1px var(--color-border-inverse); }
.btn--inverse .btn__icon { background: var(--color-text-inverse); color: var(--color-surface-muted); }

/* ---------- Hoạt động ---------- */
.activities { display: grid; gap: clamp(28px, 3.4vw, 48px) var(--gutter); align-items: start; }
@media (min-width: 700px) { .activities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .activities { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.activity { min-width: 0; }
.activity[hidden] { display: none; }
.activity__media { position: relative; display: block; width: 100%; padding: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface-card); text-align: left; cursor: pointer; }
.activity__media > img, .activity__media > video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.activity__media:hover > img, .activity__media:hover > video { transform: scale(1.05); }
.activity__count { position: absolute; top: 14px; right: 14px; z-index: 2; }
.activity__body { padding-top: 16px; display: grid; gap: 8px; }
.activity__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--font-size-sm); }
.activity__title { font-size: var(--font-size-lg); line-height: 1.25; letter-spacing: -0.02em; }
.activity__text { font-size: var(--font-size-md); }

/* Thẻ video */
.activity__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: var(--color-accent-ink); transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast); }
.activity__play svg { width: 26px; height: 26px; margin-left: 3px; }
.activity--video .activity__media:hover .activity__play { transform: scale(1.12); }
.activity--video.is-playing .activity__play { opacity: 0; }
.activity--video .activity__media > video { background: var(--color-surface-card); }

/* Hộp xem chi tiết (lightbox) */
.lightbox { width: min(1240px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--color-surface-base); color: var(--color-text-primary); overflow: auto; }
.lightbox::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; animation: lbIn .5s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@media (min-width: 1000px) { .lightbox[open] { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.lightbox__media { position: relative; background: #000; min-width: 0; }
.lightbox__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; height: 100%; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__track > * { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; max-height: 80vh; object-fit: contain; scroll-snap-align: center; background: #000; }
.lightbox__track > .img-fallback { display: block; }
.lightbox__nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #000; }
.lightbox__nav[data-dir="-1"] { left: 14px; }
.lightbox__nav[data-dir="1"] { right: 14px; }
.lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__nav[hidden], .lightbox__counter[hidden] { display: none; }
.lightbox__counter { position: absolute; left: 14px; bottom: 14px; }
.lightbox__info { display: grid; align-content: start; gap: 14px; padding: clamp(24px, 3.4vw, 48px); padding-top: clamp(24px, 3.4vw, 72px); }
.lightbox__title { font-size: var(--font-size-h3); }
.lightbox__text p { line-height: 1.7; color: var(--color-text-muted); }
.lightbox__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); }
.lightbox__close span::before, .lightbox__close span::after { content: ""; position: absolute; left: 15px; right: 15px; top: 23px; height: 2px; background: currentColor; transform: rotate(45deg); }
.lightbox__close span::after { transform: rotate(-45deg); }
html.lb-open { overflow: hidden; }

/* ---------- FAQ ---------- */
.faq { max-width: 1040px; margin-inline: auto; }
.faq__item { border-top: 1px solid var(--color-border); }
.faq__item:last-child { border-bottom: 1px solid var(--color-border); }
.faq__q { display: flex; justify-content: space-between; gap: 24px; align-items: center; width: 100%; text-align: left; padding: 28px 0; font-size: var(--font-size-lg); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.faq__icon { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--color-border); position: relative; transition: background var(--dur-fast), transform var(--dur-fast) var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 1.5px; background: currentColor; }
.faq__icon::after { transform: rotate(90deg); transition: transform var(--dur-fast) var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--color-accent); color: #000; border-color: var(--color-accent); transform: rotate(180deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-fast) var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a.is-open { grid-template-rows: 1fr; }
.faq__a p { padding-bottom: 28px; max-width: 70ch; color: var(--color-text-muted); }

/* ---------- Case study ---------- */
.case-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-block: var(--space-6); border-block: 1px solid var(--color-border); margin-top: var(--space-7); }
@media (min-width: 800px) { .case-meta { grid-template-columns: repeat(4, 1fr); } }
.case-meta dt { font-size: var(--font-size-sm); color: var(--color-text-muted); margin-bottom: 6px; }
.case-meta dd { margin: 0; font-size: var(--font-size-lg); letter-spacing: -0.02em; }
.case-cover { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--color-surface-card); }
.case-cover img { width: 100%; height: 118%; object-fit: cover; }
.case-block { display: grid; gap: var(--space-5); padding-block: var(--space-7); border-top: 1px solid var(--color-border-inverse); }
@media (min-width: 900px) { .case-block { grid-template-columns: 1fr 2fr; } }
.case-block ul li { padding: 12px 0 12px 28px; position: relative; border-bottom: 1px solid var(--color-border-inverse); }
.case-block ul li::before { content: ""; position: absolute; left: 0; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.gallery { display: grid; gap: 16px; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery > :first-child { grid-column: 1 / -1; } }
.gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--color-surface-card); }
.gallery figure:first-child { aspect-ratio: 16/8; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
/* Thư viện ảnh: slider desktop, khung điện thoại, ảnh toàn cảnh */
.section--tight { padding-block: clamp(20px, 3vw, 40px); }
.showcase { padding: clamp(24px, 5vw, 80px) 0; border-radius: var(--radius-lg); background: var(--color-surface-raised); border: 1px solid var(--color-border); overflow: hidden; }
.showcase > .eyebrow { margin-inline: clamp(20px, 5vw, 80px); }
.screen { margin: 0; flex: none; border: 6px solid var(--color-frame); border-radius: 22px; overflow: hidden; background: var(--color-surface-card); }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.slider__track { display: flex; gap: clamp(16px, 3vw, 44px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-inline: clamp(20px, 5vw, 80px); scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track .screen { width: min(78%, 980px); aspect-ratio: 16 / 10.4; scroll-snap-align: center; }
.slider__nav { display: flex; justify-content: center; gap: 12px; margin-top: clamp(24px, 3.5vw, 48px); }
.slider__btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--color-text-primary); color: var(--color-surface-base); transition: background var(--dur-instant), color var(--dur-instant), opacity var(--dur-instant), transform var(--dur-fast) var(--ease); }
.slider__btn svg { width: 22px; height: 22px; }
.slider__btn:hover { background: var(--color-accent); color: var(--color-accent-ink); transform: scale(1.06); }
.slider__btn[disabled] { opacity: .35; pointer-events: none; }
.phones { display: grid; grid-auto-flow: column; grid-auto-columns: min(64%, 260px); gap: clamp(14px, 2.6vw, 44px); overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: clamp(20px, 5vw, 80px); scrollbar-width: none; }
.phones::-webkit-scrollbar { display: none; }
.screen--phone { aspect-ratio: 9 / 19; border-radius: 30px; scroll-snap-align: center; }
@media (min-width: 900px) { .phones { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 300px)); justify-content: center; overflow: visible; } }
.gallery-duo { display: grid; gap: 16px; }
@media (min-width: 800px) { .gallery-duo { grid-template-columns: 1fr 1fr; } }
.gallery-duo figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-surface-card); }
.gallery-duo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-duo figure:hover img { transform: scale(1.04); }
.gallery-full { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--color-surface-card); }
@media (min-width: 800px) { .gallery-full { aspect-ratio: 21 / 9; } }
.gallery-full { position: relative; }
.gallery-full img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.1s var(--ease), transform 6.5s linear; }
.gallery-full img.is-active { opacity: 1; transform: scale(1); }
.gallery-full.img-fallback img.is-broken { visibility: hidden; }
.gallery-full__dots { position: absolute; left: 50%; bottom: clamp(14px, 2vw, 24px); z-index: 2; display: flex; gap: 8px; padding: 8px 12px; border-radius: var(--radius-pill); background: rgba(0,0,0,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateX(-50%); }
.gallery-full__dots:empty { display: none; }
.gallery-full__dot { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.55); transition: width var(--dur-fast) var(--ease), background var(--dur-instant); }
.gallery-full__dot[aria-current="true"] { width: 28px; background: var(--color-accent); }
.gallery-full__dot:hover { background: #fff; }
.gallery-full__dot { position: relative; }
.gallery-full__dot::after { content: ""; position: absolute; inset: -12px -6px; }
.btn--lg { min-height: 68px; padding: 10px 10px 10px 36px; font-size: var(--font-size-lg); }
.btn--lg .btn__icon { width: 48px; height: 48px; }
.btn--lg .btn__icon svg { width: 17px; height: 17px; }

/* Trước & sau */
@media (min-width: 800px) { .compare { aspect-ratio: 16 / 9 !important; } }
.compare { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-card); user-select: none; }
.compare__side { position: absolute; inset: 0; }
.compare__side img { width: 100%; height: 100%; object-fit: cover; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__before.img-fallback { background: linear-gradient(135deg, #2a2a2a, #8a8a8a) !important; }
.compare__tag { position: absolute; top: 16px; z-index: 2; pointer-events: none; }
.compare__tag--before { left: 16px; }
.compare__tag--after { right: 16px; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; z-index: 2; pointer-events: none; }
.compare__handle i { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--color-accent); box-shadow: var(--shadow-1); }
.compare__handle i::before, .compare__handle i::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; border: solid #000; border-width: 2px 2px 0 0; }
.compare__handle i::before { left: 12px; transform: translateY(-50%) rotate(-135deg); }
.compare__handle i::after { right: 12px; transform: translateY(-50%) rotate(45deg); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; touch-action: pan-y; }
.compare:focus-within .compare__handle i { outline: 2px solid #fff; outline-offset: 3px; }

.next-project { display: block; text-align: center; padding-block: var(--space-section); }
.next-project h2 { font-size: var(--font-size-h1); transition: color var(--dur-fast); }
.next-project:hover h2 { color: var(--color-accent-text); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-7); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-list li { padding: 22px 0; border-top: 1px solid var(--color-border); }
.contact-list small { display: block; font-size: var(--font-size-sm); color: var(--color-text-muted); margin-bottom: 4px; }
.contact-list a, .contact-list span { font-size: var(--font-size-lg); letter-spacing: -0.02em; }
.contact-list a:hover { color: var(--color-accent-text); }
.form { background: #fff; border: 1px solid var(--color-border); color: #000; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 54px); display: grid; gap: 22px; }
.form :focus-visible { outline-color: #000; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: var(--font-size-sm); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 56px; padding: 14px 20px; font: inherit; font-size: var(--font-size-md); color: #000;
  background: #fff; border: 1px solid rgba(0,0,0,.18); border-radius: var(--radius-sm);
  transition: border-color var(--dur-instant), box-shadow var(--dur-instant);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #000; }
.field input:focus, .field textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px var(--color-accent); }
.field.has-error input, .field.has-error textarea { border-color: #c62828; }
.field__error { font-size: var(--font-size-sm); color: #c62828; min-height: 1.2em; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.check span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid rgba(0,0,0,.18); font-size: var(--font-size-md); cursor: pointer; transition: background var(--dur-instant), color var(--dur-instant); }
.check span:hover { border-color: #000; }
.check input:checked + span { background: #000; color: #fff; border-color: #000; }
.check input:focus-visible + span { outline: 2px solid #000; outline-offset: 3px; }
.form__success { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--color-accent); font-weight: 500; }

/* ---------- CTA + Footer ---------- */
.cta { text-align: center; padding-block: var(--space-section); overflow: hidden; }
.cta__title { font-size: var(--font-size-h1); max-width: 14ch; margin-inline: auto; }
.cta__mail { display: inline-block; margin-top: var(--space-6); font-size: clamp(1.2rem, 3.4vw, 3rem); letter-spacing: -0.03em; background: linear-gradient(var(--color-accent), var(--color-accent)) 0 100% / 100% 2px no-repeat; transition: background-size var(--dur-fast) var(--ease), color var(--dur-fast); padding: 0 .15em; }
.cta__mail:hover { background-size: 100% 100%; color: #000; }
.cta .hero__cta { justify-content: center; margin-top: var(--space-6); }
.footer { border-top: 1px solid var(--color-border); padding-top: var(--space-8); overflow: hidden; }
.footer__grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__grid > :first-child { grid-column: auto; } }
.footer h4 { font-size: var(--font-size-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: 16px; font-weight: 400; }
.footer li a { display: inline-block; padding: 5px 0; font-size: var(--font-size-md); transition: color var(--dur-instant), transform var(--dur-fast) var(--ease); }
.footer li a:hover { color: var(--color-accent-text); transform: translateX(6px); }
.footer__word { display: block; font-size: var(--font-size-display); font-weight: 600; letter-spacing: -0.05em; line-height: 1.1; text-align: center; margin-top: var(--space-7); padding-bottom: var(--space-5); white-space: nowrap; }
.footer__word > span { display: inline-block; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 24px; font-size: var(--font-size-sm); color: var(--color-text-muted); margin-top: var(--space-7); border-top: 1px solid var(--color-border); }

.backtop { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text-primary); transition: color var(--dur-instant); }
.backtop__icon { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: var(--color-accent-ink); transition: transform var(--dur-fast) var(--ease); }
.backtop__icon svg { width: 16px; height: 16px; }
.backtop:hover .backtop__icon, .backtop:focus-visible .backtop__icon { transform: translateY(-4px); }
.backtop:hover { color: var(--color-accent-text); }

/* ---------- Effects ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(14% 7% 14% 7% round var(--radius-lg)); opacity: 0; transition: clip-path 1.2s var(--ease), opacity .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal-img.is-in { clip-path: inset(0 round var(--radius-lg)); opacity: 1; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .22em .14em .16em; margin: -.22em -.14em -.16em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 45ms); }
.split.is-in .w > span { transform: none; }

.cursor { position: fixed; left: 0; top: 0; z-index: 200; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--color-accent); color: #000; display: grid; place-items: center; font-size: var(--font-size-sm); font-weight: 500; pointer-events: none; transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0); transition: transform 350ms var(--ease); }
.cursor.is-active { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (hover: none) { .cursor { display: none; } }

.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 150; }
.page-transition { position: fixed; inset: 0; z-index: 250; background: var(--color-accent); transform: translateY(100%); pointer-events: none; visibility: hidden; }
.page-transition.is-leaving, .page-transition.is-entering { visibility: visible; }
.page-transition.is-leaving { transform: translateY(0); transition: transform 500ms var(--ease); }
.page-transition.is-entering { transform: translateY(-100%); transition: transform 700ms var(--ease); }

.img-fallback { background: linear-gradient(135deg, #1d1d1d, #3a3a3a 60%, var(--color-accent)) !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .reveal, .split .w > span { opacity: 1; transform: none; }
  .reveal-img { clip-path: none; opacity: 1; }
  .page-transition, .cursor { display: none; }
}
