/* =========================================================
   Thinh Studio landing page
   Màu sắc, font, bo góc: sửa ở :root
   ========================================================= */
:root {
  --bg: #070707;
  --surface: #121212;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f4;
  --muted: #a3a3a3;
  --orange: #ff7a1a;
  --orange-2: #ff5400;
  --orange-3: #ffb070;
  --card: #ffffff;
  --card-text: #111111;
  --card-muted: #5e5e5e;
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --header-h: 76px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Token đổi theo chế độ sáng / tối (mặc định: tối) */
  --orange-text: var(--orange);
  --line-strong: rgba(255, 255, 255, 0.22);
  --header-bg: rgba(7, 7, 7, 0.55);
  --header-bg-scrolled: rgba(7, 7, 7, 0.82);
  --menu-bg: rgba(7, 7, 7, 0.97);
  --invert-bg: #ffffff;
  --invert-text: #111111;
  --surface-grad: linear-gradient(180deg, #161616, #0d0d0d);
  --soft: rgba(255, 255, 255, 0.06);
  --soft-2: rgba(255, 255, 255, 0.02);
  --tag-text: #d4d4d4;
  --card-border: transparent;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-strong: 0 16px 40px rgba(0, 0, 0, 0.45);
  --big-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f1ec;
  --text: #141210;
  --muted: #5f5a55;
  --line: rgba(0, 0, 0, 0.1);
  --orange-text: #e35a00;
  --line-strong: rgba(0, 0, 0, 0.2);
  --header-bg: rgba(245, 241, 236, 0.6);
  --header-bg-scrolled: rgba(245, 241, 236, 0.9);
  --menu-bg: rgba(245, 241, 236, 0.98);
  --invert-bg: #111111;
  --invert-text: #ffffff;
  --surface-grad: linear-gradient(180deg, #ffffff, #fbf8f5);
  --soft: rgba(0, 0, 0, 0.05);
  --soft-2: rgba(255, 255, 255, 0.65);
  --tag-text: #3d3a37;
  --card-border: rgba(0, 0, 0, 0.07);
  --shadow-card: 0 24px 60px rgba(70, 35, 10, 0.12);
  --shadow-strong: 0 16px 40px rgba(70, 35, 10, 0.12);
  --big-shadow: none;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s, color 0.35s;
}
body.no-scroll { overflow: hidden; }

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }

.page-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(255, 110, 20, 0.16), transparent 70%),
    radial-gradient(35% 30% at 0% 70%, rgba(255, 90, 0, 0.07), transparent 70%),
    radial-gradient(35% 30% at 100% 40%, rgba(255, 90, 0, 0.06), transparent 70%);
}

/* ---------- Buttons ---------- */
.btn-orange {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  background: linear-gradient(180deg, #ff9233, var(--orange-2));
  color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(255, 100, 10, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 100, 10, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35); filter: brightness(1.05); }
.btn-block { width: 100%; }

.btn-dark {
  display: inline-block; margin-top: 12px; padding: 8px 18px; border-radius: 999px;
  background: #111; color: #fff; font-size: 12px; font-weight: 600;
  transition: background 0.2s;
}
.btn-dark:hover { background: var(--orange-2); }

.text-link { display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 700; border-bottom: 1.5px solid currentColor; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.is-scrolled { border-color: var(--line); background: var(--header-bg-scrolled); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { font-weight: 800; font-size: 22px; letter-spacing: 0.04em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.logo span { color: var(--orange); }

.nav { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 18px; border-radius: 999px; font-size: 13px; color: var(--muted);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active {
  color: #fff; background: linear-gradient(180deg, #ff9233, var(--orange-2));
  box-shadow: 0 0 22px rgba(255, 110, 20, 0.45);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch button {
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.lang-switch button[aria-pressed="true"] { background: var(--invert-bg); color: var(--invert-text); }

.icon-btn, .theme-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: border-color 0.2s, color 0.2s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover, .theme-btn:hover { border-color: var(--orange); color: var(--orange); }

.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .icon-moon, [data-theme="light"] .theme-btn .icon-sun { display: none; }
[data-theme="light"] .theme-btn .icon-moon { display: block; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 4px 4px 16px; border-radius: 999px;
  background: var(--invert-bg); color: var(--invert-text); font-size: 13px; font-weight: 600;
}
.pill-arrow { width: 28px; height: 28px; border-radius: 50%; background: var(--invert-text); color: var(--invert-bg); display: grid; place-items: center; transition: background 0.2s, color 0.2s; }
.pill-arrow svg { width: 14px; height: 14px; }
.pill-btn:hover .pill-arrow { background: var(--orange-2); color: #fff; }

.menu-btn { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--menu-bg);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; padding: 24px 0 40px; }
.mobile-nav .nav-link { font-size: 26px; padding: 12px 18px; color: var(--text); }
.mobile-nav .btn-orange { margin-top: 18px; padding: 16px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 16px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 1; pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}
.hero-inner { position: relative; min-height: clamp(580px, 54vw, 680px); }

.hero-glyph {
  position: absolute; top: 46%; left: 54%; transform: translate(-50%, -50%);
  font-size: clamp(320px, 42vw, 600px); font-weight: 800; line-height: 1;
  color: rgba(255, 120, 30, 0.05); user-select: none; pointer-events: none;
}

.hero-head {
  position: absolute; top: 44px; left: 0; z-index: 3;
  max-width: min(500px, 40%);
}
.hero-title {
  font-size: clamp(34px, 4.1vw, 58px); font-weight: 400; line-height: 1.07; letter-spacing: -0.02em;
}
.hero-sub {
  margin-top: 18px; max-width: 400px;
  font-size: clamp(13.5px, 1.15vw, 16px); line-height: 1.55; color: var(--muted);
}

.hero-portrait {
  position: absolute; left: 50%; bottom: 0; z-index: 1;
  width: clamp(300px, 37vw, 460px); aspect-ratio: 400 / 520;
  transform: translateX(-50%);
  animation: portrait-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
}
.hero-portrait svg, .hero-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-portrait img { object-fit: cover; object-position: center top; }
.hero-portrait.has-img svg { display: none; }
.hero-portrait .rim { animation: rim 5s ease-in-out infinite; }
.hero-portrait .fade-stop { stop-color: var(--bg); }

@keyframes portrait-in { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }
@keyframes rim { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }

.card { background: var(--card); color: var(--card-text); border-radius: var(--radius); border: 1px solid var(--card-border); }

.card-future {
  position: absolute; top: 52px; right: 0; z-index: 3;
  width: clamp(290px, 31vw, 380px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 12px 12px 16px;
  box-shadow: var(--shadow-card);
}
.card-future-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 6px 0; }
.card-future h3 { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; margin-bottom: 8px; }
.card-future p { font-size: 11.5px; line-height: 1.45; color: var(--card-muted); }
.card-future-media { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; min-height: 150px; background: #120500; }
.live-pill {
  position: absolute; left: 8px; bottom: 8px; z-index: 1;
  padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: var(--orange-2);
}
.card-future-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-future-media .mark { position: absolute; top: 8px; right: 10px; z-index: 1; color: #fff; font-weight: 800; font-size: 14px; }

.hero-mini { position: absolute; left: 0; bottom: 48px; z-index: 3; display: flex; gap: 10px; }

.card-orange {
  width: 136px; min-height: 124px; padding: 14px; border-radius: 16px;
  background: linear-gradient(160deg, #ff9a3c, var(--orange-2));
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 16px 40px rgba(255, 90, 0, 0.3);
  transition: transform 0.25s;
}
.card-orange:hover { transform: translateY(-3px); }
.card-orange strong { font-size: 12px; font-weight: 700; line-height: 1.25; text-transform: uppercase; }
.bars { display: flex; flex-direction: column; gap: 4px; }
.bars i { display: block; height: 3px; width: 26px; background: rgba(255, 255, 255, 0.9); border-radius: 2px; }
.bars i + i { width: 16px; }

.card-full {
  width: 280px; padding: 12px 12px 12px 14px; border-radius: 16px;
  display: grid; grid-template-columns: 1fr 104px; gap: 10px;
  box-shadow: var(--shadow-strong);
}
.card-full h3 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.card-full p { font-size: 10.5px; line-height: 1.45; color: var(--card-muted); }

.silk {
  position: relative; border-radius: 12px; min-height: 96px;
  background:
    radial-gradient(90% 70% at 25% 15%, rgba(255, 255, 255, 0.95) 0 18%, transparent 55%),
    conic-gradient(from 210deg at 62% 62%, #f7e6d6, #d98c4f, #fff4ea, #c56a2c, #f2d2b6, #f7e6d6);
}
.silk-arrow {
  position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: #111; color: #fff; display: grid; place-items: center;
}
.silk-arrow svg { width: 13px; height: 13px; }

.hero-brandline {
  position: absolute; right: 0; bottom: 30px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right;
}
.hero-big {
  display: flex; flex-direction: column; align-items: flex-end;
  font-size: clamp(60px, 9.4vw, 136px); font-weight: 800; line-height: 0.84; letter-spacing: -0.06em;
  text-shadow: var(--big-shadow);
}
.hero-big span:first-child { margin-right: 0.55em; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }

.eyebrow { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 16px; }
.eyebrow span:first-child { color: var(--orange-text); font-weight: 600; }

.split-head { display: grid; grid-template-columns: 1fr 2.3fr; gap: 40px; align-items: start; margin-bottom: clamp(40px, 6vw, 72px); }

.statement { font-size: clamp(26px, 3.2vw, 44px); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
.statement em, .section-title em, .contact-title em { font-style: normal; color: var(--orange-text); }

.section-title { font-size: clamp(30px, 3.8vw, 54px); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 14px; }
.section-lead { color: var(--muted); max-width: 560px; }

/* ---------- Philosophy ---------- */
.phil-grid { display: grid; grid-template-columns: 1fr 1.9fr 1fr; gap: 20px; align-items: end; }
.phil-note h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 8px; }
.phil-note p { font-size: 13.5px; color: var(--muted); max-width: 260px; }

.arch { position: relative; height: clamp(240px, 25vw, 320px); border-radius: var(--radius); overflow: hidden; }
.arch svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.card-zero { padding: 24px; height: clamp(240px, 25vw, 320px); display: flex; flex-direction: column; justify-content: space-between; }
.card-zero h3 { font-size: clamp(24px, 2.5vw, 34px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 10px; }
.card-zero p { font-size: 12.5px; line-height: 1.5; color: var(--card-muted); }
.dots { display: flex; justify-content: flex-end; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.dots i:first-child { width: 28px; border-radius: 4px; background: #111; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.service-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--radius);
  background: var(--surface-grad);
  border: 1px solid var(--line);
  transition: transform 0.35s, border-color 0.35s;
}
.service-card::before {
  content: ""; position: absolute; left: -40%; right: -40%; bottom: -55%; height: 80%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 110, 20, 0.35), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(255, 122, 26, 0.45); }
.service-card:hover::before { opacity: 1; }

.service-top { display: flex; justify-content: space-between; align-items: center; }
.service-meta { display: flex; align-items: center; gap: 10px; }
.service-badge {
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: rgba(0, 0, 0, 0.28);
}
.service-num { font-size: 13px; color: var(--muted); font-weight: 600; }
.service-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 122, 26, 0.12); color: var(--orange); }
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 22px; font-weight: 600; line-height: 1.2; margin-top: 8px; letter-spacing: -0.01em; }
.service-card > p { font-size: 14px; color: var(--muted); }

.tags { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--tag-text); }

.service-cta {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: var(--soft); font-size: 13px; font-weight: 600;
  transition: background 0.25s, color 0.25s;
}
.service-cta i { width: 30px; height: 30px; border-radius: 50%; background: var(--invert-bg); color: var(--invert-text); display: grid; place-items: center; }
.service-cta svg { width: 14px; height: 14px; }
.service-cta:hover { background: var(--orange-2); color: #fff; }

.service-card--accent { background: linear-gradient(165deg, #ff9a3c 0%, var(--orange-2) 55%, #b53800 100%); border-color: transparent; color: #fff; }
.service-card--accent::before { display: none; }
.service-card--accent:hover { border-color: transparent; }
.service-card--accent > p, .service-card--accent .service-num { color: rgba(255, 255, 255, 0.86); }
.service-card--accent .service-icon { background: rgba(255, 255, 255, 0.2); color: #fff; }
.service-card--accent .tags li { border-color: rgba(255, 255, 255, 0.38); color: #fff; }
.service-card--accent .service-cta { background: rgba(0, 0, 0, 0.22); }
.service-card--accent .service-cta i { background: #fff; color: #111; }
.service-card--accent .service-cta:hover { background: #111; }

/* ---------- Process ---------- */
.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--soft-2); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 48px; right: -12px; z-index: 1;
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 14px var(--orange);
}
.step-num {
  display: block; font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--orange-3), var(--orange-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 18px; font-weight: 600; margin: 20px 0 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Work ---------- */
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }

.filters { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { padding: 8px 16px; border-radius: 999px; font-size: 13px; color: var(--muted); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #ff9233, var(--orange-2)); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 270px; grid-auto-flow: dense; gap: 16px; }
.work-grid.is-filtered .tile.wide { grid-column: auto; }

.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; border-radius: var(--radius); border: 1px solid var(--line);
  color: #fff;
}
.tile.wide { grid-column: span 2; }
.tile[hidden] { display: none; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.78)); }
.tile h3 { font-size: 20px; font-weight: 600; line-height: 1.25; }
.tile p { font-size: 13px; color: rgba(255, 255, 255, 0.72); margin-top: 4px; }
.tile-tag {
  position: absolute; top: 16px; left: 16px;
  padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tile-art { position: absolute; inset: 0; z-index: -2; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile:hover .tile-art { transform: scale(1.05); }
.tile-art > svg, .tile-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile-art img { object-fit: cover; }

.tile-play {
  position: absolute; top: 42%; left: 50%; z-index: 1; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tile-play svg { width: 22px; height: 22px; margin-left: 3px; }

/* Ô dự án có video: bấm để mở trình xem */
.tile.has-gallery { cursor: pointer; }
.tile.has-gallery .tile-play { opacity: 0; background: var(--orange-2); border-color: transparent; transition: opacity 0.25s; }
.tile.has-gallery:hover .tile-play, .tile.has-gallery:focus-visible .tile-play { opacity: 1; }
.tile-count {
  position: absolute; top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  background: var(--orange-2); color: #fff; box-shadow: 0 6px 18px rgba(255, 84, 0, 0.4);
}
.tile-count::before { content: ""; border-left: 7px solid #fff; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }

/* Ô có video dọc (Shorts): 3 ảnh bìa xếp như 3 điện thoại */
.tile-shorts {
  position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 10px;
  padding-bottom: 80px;
  background: radial-gradient(60% 70% at 50% 30%, rgba(255, 122, 26, 0.35), transparent 70%), #120700;
}
.tile-art .tile-shorts img {
  position: static; width: auto; height: 72%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 12px; border: 3px solid #1d1d1d; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}
.tile-shorts img:nth-child(1) { transform: translateY(10px) rotate(-7deg); }
.tile-art .tile-shorts img:nth-child(2) { height: 80%; }
.tile-shorts img:nth-child(3) { transform: translateY(10px) rotate(7deg); }

/* Ô có bộ ảnh: nhãn đếm dùng biểu tượng khung ảnh thay cho nút play */
.tile.is-photos .tile-count::before { width: 9px; height: 7px; border: 1.5px solid #fff; border-radius: 2px; }

/* ---------- Trình xem video ---------- */
.video-modal {
  width: min(980px, 100% - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius);
  background: #0e0e0e; color: #f5f5f4; overflow: auto;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.video-modal::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.video-modal[open] { animation: vm-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes vm-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.vm-inner { padding: clamp(16px, 3vw, 28px); display: grid; gap: 18px; }
.vm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.vm-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.vm-head h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.vm-close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid; place-items: center; color: #fff; transition: background 0.2s, border-color 0.2s;
}
.vm-close:hover { background: var(--orange-2); border-color: transparent; }
.vm-close svg { width: 18px; height: 18px; }
.vm-player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.vm-player iframe, .vm-poster, .vm-poster img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vm-poster img { object-fit: cover; }
.vm-poster .tile-play {
  top: 50%; width: 76px; height: 76px; background: var(--orange-2); border-color: transparent;
  box-shadow: 0 10px 30px rgba(255, 84, 0, 0.5); transition: transform 0.25s;
}
.vm-poster .tile-play svg { width: 28px; height: 28px; }
.vm-poster:hover .tile-play { transform: translate(-50%, -50%) scale(1.06); }
.vm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.vm-list button {
  width: 100%; display: grid; gap: 8px; padding: 6px; text-align: left;
  border-radius: 12px; border: 1px solid transparent; transition: background 0.2s, border-color 0.2s;
}
.vm-list button:hover { background: rgba(255, 255, 255, 0.06); }
.vm-list button[aria-current="true"] { border-color: var(--orange); background: rgba(255, 122, 26, 0.1); }
.vm-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #222; }
.vm-list span { font-size: 12.5px; font-weight: 600; line-height: 1.3; }

/* Trình xem cho video dọc (Shorts) */
.video-modal.is-vertical { width: min(760px, 100% - 32px); }
.is-vertical .vm-player { aspect-ratio: 9 / 16; height: min(68vh, 640px); width: auto; margin-inline: auto; }
.is-vertical .vm-list { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.is-vertical .vm-list img { aspect-ratio: 9 / 16; }
@media (min-width: 720px) {
  /* Màn hình rộng: trình phát dọc bên trái, danh sách bên phải */
  .video-modal.is-vertical { width: min(840px, 100% - 32px); }
  .is-vertical .vm-inner { grid-template-columns: auto 1fr; grid-template-areas: "head head" "player list"; align-items: start; }
  .is-vertical .vm-head { grid-area: head; }
  .is-vertical .vm-player { grid-area: player; height: min(72vh, 640px); }
  .is-vertical .vm-list { grid-area: list; grid-template-columns: repeat(3, 1fr); align-content: start; }
}

/* Trình xem ảnh: ảnh hiện trọn trong khung (nhiều tỉ lệ khác nhau), không bị cắt */
.is-photo .vm-player { aspect-ratio: auto; height: min(68vh, 620px); }
.vm-player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.is-photo .vm-list { grid-template-columns: repeat(5, 1fr); }
.is-photo .vm-list img { aspect-ratio: 1; }

.art-video {
  background:
    radial-gradient(60% 90% at 78% 25%, rgba(255, 140, 50, 0.9), transparent 60%),
    radial-gradient(45% 60% at 15% 85%, rgba(255, 80, 0, 0.45), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 90px),
    linear-gradient(135deg, #1c0902, #070707);
}
.art-video-2 {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 3px, transparent 3px 46px),
    radial-gradient(80% 80% at 70% 40%, #ff6a00, #2a0c00 72%);
}
.art-ai {
  inset: -25%;
  background: conic-gradient(from 120deg at 58% 48%, var(--orange-2), var(--orange-3), #3a1200, var(--orange), #1a0700, var(--orange-2));
  filter: blur(26px) saturate(1.1);
}
.art-ai-2 {
  background:
    radial-gradient(circle at 62% 42%, #fff3e6 0 4%, var(--orange-3) 10%, var(--orange-2) 24%, #3a1200 46%, transparent 66%),
    radial-gradient(40% 70% at 15% 70%, rgba(255, 110, 20, 0.35), transparent 70%),
    #0a0605;
}
.art-web { background: radial-gradient(70% 70% at 50% 20%, rgba(255, 122, 26, 0.28), transparent 70%), linear-gradient(160deg, #1c1c1c, #0b0b0b); }
.mock {
  position: absolute; left: 14%; right: 14%; top: 18%; height: 62%;
  border-radius: 12px; background: #fff; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  transform: rotate(-4deg);
  padding: 26px 12px 12px;
  display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr auto; gap: 8px;
}
.mock::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 16px; background: #f0f0f0;
  background-image: radial-gradient(circle, #ff5f57 3px, transparent 3.5px), radial-gradient(circle, #ffbd2e 3px, transparent 3.5px), radial-gradient(circle, #28c840 3px, transparent 3.5px);
  background-size: 12px 16px; background-repeat: no-repeat; background-position: 8px 0, 20px 0, 32px 0;
}
.mock i { display: block; border-radius: 6px; background: #ececec; }
.mock i:first-child { grid-row: span 2; background: linear-gradient(160deg, #ff9a3c, var(--orange-2)); }
.mock i:last-child { background: #111; height: 18px; border-radius: 999px; }

.art-ads { background: radial-gradient(60% 70% at 50% 30%, rgba(255, 122, 26, 0.35), transparent 70%), #120700; }
.phones { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 10px; padding-bottom: 50px; }
.phones i {
  display: block; width: 22%; max-width: 74px; aspect-ratio: 9 / 16; border-radius: 12px;
  border: 3px solid #1d1d1d; background: linear-gradient(170deg, var(--orange-3), var(--orange-2) 55%, #4a1700);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}
.phones i:nth-child(1) { transform: translateY(12px) rotate(-8deg); opacity: 0.8; }
.phones i:nth-child(2) { transform: translateY(-6px); background: linear-gradient(170deg, #fff1e3, var(--orange) 50%, #5a1c00); }
.phones i:nth-child(3) { transform: translateY(12px) rotate(8deg); opacity: 0.8; }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(45% 60% at 0% 55%, rgba(255, 100, 10, 0.13), transparent 70%); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-title { font-size: clamp(34px, 4.6vw, 64px); font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 18px; }

.contact-links { display: grid; gap: 10px; margin-top: 30px; }
.contact-link {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--soft-2);
  transition: border-color 0.25s, background 0.25s;
}
.contact-link:hover { border-color: rgba(255, 122, 26, 0.55); background: rgba(255, 122, 26, 0.06); }
.contact-link .ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 122, 26, 0.14); color: var(--orange); }
.contact-link .ic svg { width: 19px; height: 19px; }
.contact-link .txt { display: flex; flex-direction: column; min-width: 0; }
.contact-link small { font-size: 12px; color: var(--muted); }
.contact-link strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.contact-link .go { margin-left: auto; color: var(--muted); transition: transform 0.25s, color 0.25s; }
.contact-link:hover .go { color: var(--orange); transform: translateX(3px); }

.contact-form {
  background: var(--card); color: var(--card-text); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}
.contact-form h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: #333; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 15px; font-weight: 400; color: #111;
  padding: 12px 14px; border: 1px solid #e3e3e3; border-radius: 12px; background: #f6f6f6;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.contact-form select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--orange); background-color: #fff; box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.18);
}
.contact-form .btn-orange { margin-top: 4px; padding: 15px; font-size: 15px; }
.form-note { font-size: 12px; color: var(--card-muted); text-align: center; }
.contact-form .btn-orange:disabled { opacity: 0.65; cursor: wait; transform: none; }
.form-status { font-size: 13.5px; font-weight: 600; text-align: center; padding: 10px 12px; border-radius: 12px; }
.form-status[data-state="success"] { color: #166534; background: #dcfce7; }
.form-status[data-state="error"] { color: #9a3412; background: #ffedd5; }
.form-status:empty { display: none; }
.form-mailto { display: block; width: fit-content; margin: 8px auto 0; padding: 8px 16px; border-radius: 999px; background: #9a3412; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.form-mailto:hover, .form-mailto:focus-visible { background: #7c2d12; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-tag { margin-top: 10px; font-size: 13px; color: var(--muted); max-width: 320px; }
.footer-tools { display: flex; align-items: center; gap: 10px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}

@media (max-width: 960px) {
  .nav, .icon-btn, .pill-btn { display: none; }
  .menu-btn { display: flex; }
  .header-inner { display: grid; grid-template-columns: 40px 1fr auto; }
  .header-inner .logo { justify-self: center; }

  .split-head { grid-template-columns: 1fr; gap: 0; }
  .phil-grid { grid-template-columns: 1fr 1fr; }
  .phil-note { grid-column: 1 / -1; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  /* 2 cột: ô rộng thu về 1 ô để lưới (số ô chẵn) không bị trống chỗ */
  .work-grid > .tile.wide { grid-column: auto; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; --radius: 18px; }
  .container { width: calc(100% - 32px); }
  .header-inner { gap: 10px; }
  .header .logo { font-size: 17px; letter-spacing: 0.02em; }

  /* Hero xếp dọc như bản mobile trong mẫu */
  .hero-inner { display: flex; flex-direction: column; min-height: 0; padding: 12px 0 40px; }
  .hero::after { display: none; }
  .hero-head, .hero-portrait, .card-future, .hero-mini, .hero-brandline { position: relative; inset: auto; }
  .hero-glyph { font-size: 120vw; top: 34%; }

  .hero-head { order: 1; max-width: none; }
  .hero-title { font-size: clamp(32px, 9.4vw, 44px); }
  .hero-sub { max-width: 34em; font-size: 15px; }
  .hero-portrait { order: 2; left: auto; transform: none; align-self: center; width: min(100%, 380px); margin-top: 4px; }
  .hero-brandline { order: 3; margin-top: -34%; align-items: stretch; text-align: center; flex-direction: column-reverse; gap: 20px; }
  .hero-big { align-items: center; font-size: clamp(60px, 18vw, 92px); }
  .hero-big span:first-child { margin-right: 0.4em; }
  .hero-brandline .btn-orange { padding: 16px; font-size: 15px; }
  .hero-mini { order: 4; margin-top: 28px; }
  .card-full { flex: 1; min-width: 0; grid-template-columns: 1fr 84px; }
  .card-future { order: 5; width: 100%; margin-top: 12px; }

  .phil-grid { grid-template-columns: 1fr; }
  .arch, .card-zero { height: auto; min-height: 220px; }
  .card-zero { gap: 40px; }

  .work-head { flex-direction: column; align-items: stretch; }
  .filters { align-self: flex-start; }
  .filters button { padding: 7px 11px; font-size: 12.5px; }
  .work-grid { grid-auto-rows: 230px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .services-grid, .process-grid, .work-grid { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .vm-list { grid-template-columns: repeat(2, 1fr); }
  .is-vertical .vm-list { grid-template-columns: repeat(3, 1fr); }
  .is-vertical .vm-player { height: min(60vh, 520px); }
  .is-photo .vm-player { height: min(56vh, 480px); }
  .is-photo .vm-list { gap: 6px; }
  .is-photo .vm-list button { padding: 3px; }
  .is-photo .vm-list span { display: none; }
}

@media (max-width: 400px) {
  .card-orange { width: 112px; }
  .card-full { grid-template-columns: 1fr 70px; }
  .card-future { grid-template-columns: 1fr; }
  .card-future-media { min-height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
