/* ==========================================================================
   Million / GU — Interior & Construction studio
   Design system: Exaggerated Minimalism + Portfolio Grid
   Tokens → base → layout → components → sections
   ========================================================================== */

:root {
  /* colour */
  --night: #12100e;
  --night-2: #1b1815;
  --ivory: #f6f2ea;
  --paper: #fbf8f2;
  --ink: #1c1a17;
  --muted: #5f584d;
  --line: #dcd3c3;
  --line-dark: rgba(243, 238, 228, .16);
  --gold: #c9a24b;
  --gold-soft: #e2c98a;
  --bronze: #8a6420;
  --on-dark: #f3eee4;
  --on-dark-muted: #b9b0a0;
  --error: #b3261e;
  --error-dark: #ff9d94;

  /* type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* spacing (4/8 rhythm) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: clamp(72px, 10vw, 140px);
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --header-h: 80px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --z-header: 100;
  --z-panel: 99;
  --z-bar: 95;
  --z-modal: 200;
}
@media (max-width: 1023px) { :root { --header-h: 68px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { border-radius: 999px; position: absolute; left: var(--s4); top: -100px; z-index: 300; background: var(--gold); color: var(--night); padding: var(--s3) var(--s5); font-weight: 700; }
.skip-link:focus { top: var(--s4); }
::selection { background: var(--gold); color: var(--night); }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--dark { background: var(--night); color: var(--on-dark); }
.section--paper { background: var(--paper); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: var(--s3); font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--gold); }
.display { font-family: var(--font-display); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.h-xl { font-size: clamp(2.75rem, 7.2vw, 6.25rem); }
.h-lg { font-size: clamp(2.25rem, 5vw, 4.25rem); }
.h-md { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.display em { font-style: italic; color: var(--bronze); font-weight: 500; }
.section--dark .display em, .hero .display em { color: var(--gold-soft); }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.section--dark .lead { color: var(--on-dark-muted); }
.prose p + p { margin-top: var(--s4); }
.prose p { max-width: 62ch; color: var(--muted); }
.section--dark .prose p { color: var(--on-dark-muted); }
.sec-head { display: grid; gap: var(--s4); margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 48px; padding: 0 var(--s6); border: 1px solid transparent; border-radius: 999px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { background: var(--bronze); }
.btn--line { border-color: currentColor; }
.btn--line:hover { background: rgba(255, 255, 255, .1); }
.section:not(.section--dark) .btn--line:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 var(--s5); font-size: .75rem; }
.btn[disabled] { opacity: .55; cursor: wait; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-block: var(--s2); width: fit-content; transition: gap var(--t-med) var(--ease), color var(--t-fast); }
.link-arrow:hover { gap: var(--s4); color: var(--bronze); }
.section--dark .link-arrow:hover { color: var(--gold); }

.link-arrow svg, .svc__a svg { width: 18px; height: 18px; }
svg { flex-shrink: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(18, 16, 14, .94); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header__in { display: flex; align-items: center; gap: var(--s6); height: var(--header-h); max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); transition: height var(--t-med) var(--ease); }
.site-header.is-scrolled { --header-h: 64px; }
.brand { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }
.brand__logo { height: calc(var(--header-h) - 8px); width: auto; transition: height var(--t-med) var(--ease); }
.nav { margin-inline: auto; display: none; }
.nav-list { display: flex; align-items: center; gap: var(--s2); }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); transition: color var(--t-fast); }
.nav-link:hover, .nav-item.open > .nav-link, .nav-link[aria-current="page"] { color: var(--on-dark); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.nav-link svg { width: 10px; height: 10px; transition: transform var(--t-med) var(--ease); }
.nav-item.open > .nav-link svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 50%; min-width: 280px; transform: translate(-50%, 8px); background: var(--night-2); border: 1px solid var(--line-dark); padding: var(--s3); opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med); box-shadow: 0 24px 48px rgba(0, 0, 0, .45); }
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
@media (hover: hover) { .nav-item:hover > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; } .nav-item:hover > .nav-link { color: var(--on-dark); } .nav-item:hover > .nav-link svg { transform: rotate(180deg); } }
.dropdown a { display: block; padding: var(--s3) var(--s4); font-size: .9375rem; color: var(--on-dark); transition: background var(--t-fast), color var(--t-fast), padding var(--t-med) var(--ease); }
.dropdown a small { display: block; font-size: .8125rem; color: var(--on-dark-muted); margin-top: 2px; }
.dropdown a:hover, .dropdown a:focus-visible { background: rgba(201, 162, 75, .12); color: var(--gold-soft); padding-left: var(--s5); }
.header-actions { display: flex; align-items: center; gap: var(--s4); margin-left: auto; }
.header-phone { display: none; font-size: .875rem; font-weight: 600; color: var(--on-dark-muted); }
.header-phone:hover { color: var(--gold-soft); }
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 10px; margin-right: -10px; }
.burger span { height: 1.5px; background: var(--on-dark); transition: transform var(--t-med) var(--ease), opacity var(--t-fast); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.header-cta { display: none; }
@media (min-width: 1100px) {
  .nav { display: block; } .burger { display: none; } .header-cta { display: inline-flex; }
}
@media (min-width: 1240px) { .header-phone { display: inline; } }

/* mobile panel */
.mpanel { position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-panel); background: var(--night); color: var(--on-dark); overflow-y: auto; padding: var(--s5) var(--gutter) calc(var(--s9) + env(safe-area-inset-bottom)); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med); }
.mpanel.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mgroup { border-bottom: 1px solid var(--line-dark); }
.mgroup > .mlink, .mgroup > button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; text-align: left; }
.mgroup > button svg { width: 14px; height: 14px; transition: transform var(--t-med) var(--ease); }
.mgroup > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.msub { display: none; padding-bottom: var(--s4); }
.msub.open { display: grid; }
.msub a { display: block; min-height: 44px; padding: var(--s3) 0 var(--s3) var(--s4); color: var(--on-dark-muted); border-left: 1px solid var(--line-dark); }
.msub a:hover { color: var(--gold-soft); }
.mpanel .btn { width: 100%; margin-top: var(--s6); }
body.no-scroll { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; height: calc(100svh - var(--header-h)); min-height: 560px; max-height: 960px; background: var(--night); color: var(--on-dark); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity .8s ease; }
.hero__video.is-ready { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 16, 14, .35) 0%, rgba(18, 16, 14, 0) 30%, rgba(18, 16, 14, .55) 68%, rgba(18, 16, 14, .92) 100%), linear-gradient(90deg, rgba(18, 16, 14, .55) 0%, rgba(18, 16, 14, 0) 60%); }
.hero__inner { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding: 0 var(--gutter) clamp(40px, 7vw, 88px); }
.hero__title { max-width: 14ch; margin-top: var(--s5); text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.hero__text { max-width: 52ch; margin-top: var(--s5); font-size: clamp(.9375rem, 1.25vw, 1.0625rem); color: rgba(243, 238, 228, .88); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s6); }
@media (max-width: 719px) { .hero { align-items: flex-end; } .hero__cta .btn { flex: 1 1 100%; } }

/* stats strip */
.stats { background: var(--night); color: var(--on-dark); border-top: 1px solid var(--line-dark); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: var(--s6) var(--s5); border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stat:nth-child(2n) { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 500; line-height: 1; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: var(--s2); font-size: .8125rem; color: var(--on-dark-muted); letter-spacing: .04em; }
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } .stat { border-bottom: 0; padding-block: var(--s7); } .stat:nth-child(2n) { border-right: 1px solid var(--line-dark); } .stat:last-child { border-right: 0; } }

/* ---------- featured (carousel) ---------- */
.featured { position: relative; display: grid; background: var(--night); color: var(--on-dark); margin-bottom: clamp(48px, 7vw, 96px); overflow: hidden; }
.featured__stage { position: relative; aspect-ratio: 4 / 5; max-height: 80svh; }
@media (min-width: 800px) { .featured__stage { aspect-ratio: 21 / 9; max-height: none; min-height: 440px; } }
.featured__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.featured__slide.is-active { opacity: 1; }
.featured__slide img { width: 100%; height: 100%; object-fit: cover; }
.featured__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 16, 14, .55) 0%, rgba(18, 16, 14, 0) 30%), linear-gradient(180deg, rgba(18, 16, 14, .45) 0%, rgba(18, 16, 14, 0) 22%); pointer-events: none; }
.featured__cap { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 4vw, 48px); z-index: 2; display: grid; gap: var(--s3); max-width: 640px; transition: opacity .4s ease, transform .4s ease; }
.featured__cap h3 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.featured__cap p { color: rgba(243, 238, 228, .85); }
.featured__bar { position: absolute; right: var(--gutter); bottom: clamp(24px, 4vw, 48px); z-index: 3; display: flex; align-items: center; gap: var(--s4); }
.featured__count { font-family: var(--font-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.iconbtn { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(243, 238, 228, .45); color: var(--on-dark); transition: background var(--t-fast), border-color var(--t-fast); }
.iconbtn:hover { border-color: var(--gold); background: rgba(18, 16, 14, .6); }
.iconbtn svg { width: 16px; height: 16px; }
@media (max-width: 799px) { .featured__bar { bottom: auto; top: var(--s4); } .featured__cap { bottom: var(--s5); } }

/* ---------- projects ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); margin-bottom: clamp(28px, 4vw, 48px); }
.chips { display: flex; flex-wrap: nowrap; gap: var(--s2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border-bottom: 2px solid transparent; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); scroll-snap-align: start; transition: color var(--t-fast), border-color var(--t-fast); }
.chip small { font-size: .6875rem; font-weight: 500; opacity: .75; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--bronze); }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.search { position: relative; width: min(100%, 320px); }
.search input { width: 100%; height: 44px; padding: 0 var(--s4) 0 44px; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; font: inherit; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }

.pj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 32px); }
.pj { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .pj { grid-column: span 6; }
}
@media (min-width: 1024px) {
  .pj:nth-child(5n + 1) { grid-column: span 7; }
  .pj:nth-child(5n + 2) { grid-column: span 5; }
  .pj:nth-child(5n + 3), .pj:nth-child(5n + 4), .pj:nth-child(5n) { grid-column: span 4; }
}
.pj a { display: block; }
.pj__img { position: relative; overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
@media (min-width: 1024px) {
  .pj:nth-child(5n + 1) .pj__img, .pj:nth-child(5n + 2) .pj__img { aspect-ratio: auto; height: clamp(320px, 36vw, 560px); }
  .pj:nth-child(5n + 3) .pj__img, .pj:nth-child(5n + 4) .pj__img, .pj:nth-child(5n) .pj__img { aspect-ratio: auto; height: clamp(260px, 25vw, 400px); }
}
.pj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pj a:hover .pj__img img { transform: scale(1.05); }
.pj__badge { border-radius: 999px; position: absolute; left: var(--s4); top: var(--s4); padding: var(--s1) var(--s3); background: rgba(18, 16, 14, .75); color: var(--on-dark); font-size: .75rem; letter-spacing: .06em; }
.pj__cap { display: flex; justify-content: space-between; align-items: start; gap: var(--s4); padding-top: var(--s4); border-bottom: 1px solid transparent; }
.pj__meta { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.pj__name { margin-top: var(--s1); font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.15; }
.pj__desc { margin-top: var(--s2); font-size: .9375rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pj__arrow { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background var(--t-med) var(--ease), border-color var(--t-med), color var(--t-med), transform var(--t-med) var(--ease); }
.pj__arrow svg { width: 14px; height: 14px; }
.pj a:hover .pj__arrow { background: var(--ink); border-color: var(--ink); color: var(--ivory); transform: translate(2px, -2px); }
.pj-foot { display: grid; justify-items: center; gap: var(--s4); margin-top: clamp(40px, 6vw, 72px); }
.pj-count { font-size: .875rem; color: var(--muted); }
.pj-empty { grid-column: 1 / -1; padding: var(--s8) 0; text-align: center; color: var(--muted); }

/* ---------- about ---------- */
.split { display: grid; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev .split__media { order: 2; } }
.split__media { position: relative; }
.split__media img { width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.split__media .tag { position: absolute; left: var(--s5); bottom: var(--s5); background: var(--ivory); padding: var(--s4) var(--s5); max-width: 220px; font-size: .875rem; }
.split__media .tag b { display: block; font-family: var(--font-display); font-size: 2.5rem; font-weight: 500; line-height: 1; color: var(--bronze); }
.split__body { display: grid; gap: var(--s5); }
.values { display: grid; gap: 0; margin-top: var(--s5); border-top: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s4); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.values b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--bronze); }
.values strong { display: block; font-weight: 700; }
.values p { color: var(--muted); font-size: .9375rem; }

/* ---------- services ---------- */
.svc { border-top: 1px solid var(--line-dark); }
.svc li { border-bottom: 1px solid var(--line-dark); }
.svc a { display: grid; grid-template-columns: 48px 1fr 32px; gap: var(--s4); align-items: center; padding: var(--s6) 0; transition: padding var(--t-med) var(--ease), background var(--t-med); }
.svc a:hover { padding-inline: var(--s4); background: rgba(201, 162, 75, .07); }
.svc__n { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold); }
.svc__t { font-family: var(--font-display); font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 500; line-height: 1.1; }
.svc__d { grid-column: 2; color: var(--on-dark-muted); font-size: .9375rem; max-width: 56ch; margin-top: var(--s1); }
.svc__a { width: 20px; height: 20px; color: var(--gold); transition: transform var(--t-med) var(--ease); }
.svc a:hover .svc__a { transform: translateX(6px); }
@media (min-width: 900px) {
  .svc a { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr) 32px; }
  .svc__d { grid-column: auto; margin-top: 0; }
  .svc__a { grid-column: 4; }
}

/* ---------- process ---------- */
.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: var(--s4); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.step b { font-family: var(--font-display); font-size: 2rem; font-weight: 500; color: var(--bronze); line-height: 1; }
.step h3 { font-size: 1.125rem; font-weight: 700; font-family: var(--font-body); }
.step p { color: var(--muted); font-size: .9375rem; margin-top: var(--s1); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; column-gap: var(--s7); }
  .step { grid-template-columns: 1fr; border-top: 1px solid var(--line); border-bottom: 0; padding-block: var(--s6) var(--s7); }
}

/* ---------- pricing ---------- */
.plans { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.plan { display: grid; align-content: start; gap: var(--s4); padding: var(--s7) var(--s6); border: 1px solid var(--line); background: var(--paper); }
@media (min-width: 900px) { .plan + .plan { border-left: 0; } }
.plan--hot { background: var(--ink); color: var(--ivory); border-color: var(--ink); position: relative; }
.plan__flag { border-radius: 999px; position: absolute; top: 0; left: var(--s6); transform: translateY(-50%); background: var(--gold); color: var(--night); font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: var(--s1) var(--s3); }
.plan h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 500; }
.plan__en { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.plan--hot .plan__en { color: var(--on-dark-muted); }
.plan__price { font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 500; line-height: 1; color: var(--bronze); padding-block: var(--s2); }
.plan--hot .plan__price { color: var(--gold-soft); }
.plan__price small { font-family: var(--font-body); font-size: .9375rem; color: var(--muted); }
.plan--hot .plan__price small { color: var(--on-dark-muted); }
.plan ul { display: grid; margin-block: var(--s3) var(--s5); }
.plan li { padding: var(--s3) 0; border-top: 1px solid var(--line); font-size: .9375rem; display: flex; gap: var(--s3); }
.plan li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: .55em; background: var(--bronze); transform: rotate(45deg) scale(.7); }
.plan--hot li { border-color: var(--line-dark); }
.plan--hot li::before { background: var(--gold); }
.plan .btn { width: 100%; }
.plan:not(.plan--hot) .btn { background: transparent; color: var(--ink); border-color: var(--ink); }
.plan:not(.plan--hot) .btn:hover { background: var(--ink); color: var(--ivory); }
.fine { margin-top: var(--s5); font-size: .875rem; color: var(--muted); }

/* ---------- gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 800px) { .gal { grid-template-columns: repeat(4, 1fr); gap: var(--s4); } }
.gal button { position: relative; display: block; aspect-ratio: 1; overflow: hidden; width: 100%; background: var(--line); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity var(--t-med); }
.gal button:hover img { transform: scale(1.06); opacity: .92; }
.gal button:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (min-width: 800px) { .gal button:first-child { grid-row: span 2; aspect-ratio: auto; } }
.lb { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; background: rgba(10, 9, 8, .96); }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb .iconbtn { position: absolute; background: rgba(18, 16, 14, .6); }
.lb__x { top: var(--s4); right: var(--s4); } .lb__p { left: var(--s4); top: 50%; transform: translateY(-50%); } .lb__n { right: var(--s4); top: 50%; transform: translateY(-50%); }
.lb__c { position: absolute; bottom: var(--s4); left: 50%; transform: translateX(-50%); color: var(--on-dark); font-family: var(--font-display); font-size: 1.125rem; }

/* ---------- testimonials ---------- */
.quotes { display: grid; gap: var(--s7); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: var(--s8); } }
.quote { display: grid; align-content: space-between; gap: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--ink); }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.3; font-weight: 500; }
.quote figcaption b { display: block; font-weight: 700; }
.quote figcaption span { font-size: .875rem; color: var(--muted); }

/* ---------- posts ---------- */
.posts { display: grid; gap: var(--s7); }
@media (min-width: 800px) { .posts { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.post a { display: grid; gap: var(--s4); }
.post__img { overflow: hidden; aspect-ratio: 16 / 10; background: var(--line); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post a:hover .post__img img { transform: scale(1.05); }
.post__k { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.post h3 { font-family: var(--font-display); font-size: 1.625rem; font-weight: 500; line-height: 1.15; margin-top: var(--s1); }
.post p { color: var(--muted); font-size: .9375rem; margin-top: var(--s2); }

/* ---------- consultation / form ---------- */
.contact { display: grid; gap: clamp(40px, 6vw, 96px); }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 6fr; } }
.contact__info { display: grid; align-content: start; gap: var(--s5); }
.next { display: grid; gap: var(--s4); margin-top: var(--s4); padding-top: var(--s5); border-top: 1px solid var(--line-dark); counter-reset: n; }
.next li { display: grid; grid-template-columns: 32px 1fr; gap: var(--s3); font-size: .9375rem; color: var(--on-dark-muted); counter-increment: n; }
.next li::before { content: counter(n); font-family: var(--font-display); font-size: 1.25rem; color: var(--gold); line-height: 1.3; }
.chans { display: grid; gap: 0; border-top: 1px solid var(--line-dark); margin-top: var(--s3); }
.chans a { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: 56px; padding: var(--s3) 0; border-bottom: 1px solid var(--line-dark); transition: color var(--t-fast), padding var(--t-med) var(--ease); }
.chans a:hover { color: var(--gold-soft); padding-left: var(--s3); }
.chans small { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.chans b { font-weight: 600; }
.form { display: grid; gap: var(--s5); align-content: start; }
.form__row { display: grid; gap: var(--s5); }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s2); }
.field label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.field label i { color: var(--gold); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: var(--s3) var(--s4); background: transparent; border: 1px solid rgba(243, 238, 228, .35); border-radius: 2px; color: var(--on-dark); font: inherit; font-size: 1rem; transition: border-color var(--t-fast), background var(--t-fast); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23c9a24b' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field select option { color: #1c1a17; }
.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(243, 238, 228, .45); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(243, 238, 228, .6); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: var(--error-dark); }
.field__err { min-height: 1.25em; font-size: .875rem; color: var(--error-dark); }
.field__hint { font-size: .8125rem; color: var(--on-dark-muted); }
.form__note { font-size: .8125rem; color: var(--on-dark-muted); }
.form__summary { padding: var(--s4); border: 1px solid var(--error-dark); color: var(--error-dark); font-size: .9375rem; }
.form__summary a { text-decoration: underline; }
.form__status { padding: var(--s4); border: 1px solid var(--gold); color: var(--on-dark); font-size: .9375rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* light form (contact page) */
.form--light .field label { color: var(--muted); }
.form--light .field input, .form--light .field select, .form--light .field textarea { border-color: var(--line); color: var(--ink); background: var(--paper); }
.form--light .field input::placeholder, .form--light .field textarea::placeholder { color: #8a8174; }
.form--light .field input:hover, .form--light .field select:hover, .form--light .field textarea:hover { border-color: var(--ink); }
.form--light .field input:focus-visible, .form--light .field select:focus-visible, .form--light .field textarea:focus-visible { outline-color: var(--bronze); border-color: var(--bronze); }
.form--light .field__err, .form--light .form__summary { color: var(--error); border-color: var(--error); }
.form--light .field [aria-invalid="true"] { border-color: var(--error); }
.form--light .form__note, .form--light .field__hint { color: var(--muted); }
.form--light .form__status { color: var(--ink); border-color: var(--bronze); }
.map { border: 1px solid var(--line); height: 320px; background: var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.5) sepia(.15); }

/* ---------- page hero (inner pages) ---------- */
.phero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(320px, 46vw, 520px); background: var(--night); color: var(--on-dark); overflow: hidden; }
.phero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18, 16, 14, .9) 0%, rgba(18, 16, 14, .35) 60%, rgba(18, 16, 14, .5) 100%); }
.phero .container { padding-bottom: clamp(32px, 5vw, 64px); }
.crumbs { display: flex; gap: var(--s3); font-size: .8125rem; color: var(--on-dark-muted); margin-bottom: var(--s4); }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs [aria-current] { color: var(--on-dark); }
.col { display: grid; gap: var(--s3); align-content: start; padding-top: var(--s5); border-top: 1px solid var(--ink); }
.col h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 500; }
.col p { color: var(--muted); }
.col__list { display: grid; gap: var(--s3); color: var(--muted); }
.col__list li { position: relative; padding-left: 1.25em; }
.col__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5em; height: 1px; background: var(--bronze); }
.sec-head__title--long { font-size: clamp(2rem, 3.6vw, 3.25rem); max-width: 30ch; text-wrap: balance; }
/* Triết lý doanh nghiệp (gioi-thieu) */
.philo__head { gap: var(--s5); }
.philo__title { display: grid; gap: var(--s4); }
.philo__cols { display: grid; gap: var(--s7); }
.philo__core { margin-top: clamp(48px, 6vw, 80px); padding: clamp(28px, 4vw, 56px); background: #efe8db; display: grid; gap: var(--s5); }
.philo__core h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 500; }
.philo__core-list { gap: var(--s4) var(--s8); }
@media (min-width: 900px) {
  .philo__head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: var(--s8); }
  .philo__cols { grid-template-columns: repeat(2, 1fr); gap: var(--s8); }
  .philo__core-list { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, auto); grid-auto-flow: column; }
}
.promises { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
@media (min-width: 800px) { .promises { grid-template-columns: repeat(4, 1fr); } .promises li + li { border-left: 1px solid var(--line-dark); } }
.promises li { padding: var(--s6) var(--s5); border-bottom: 1px solid var(--line-dark); }
.promises b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--gold-soft); }
.promises span { display: block; margin-top: var(--s2); color: var(--on-dark-muted); font-size: .9375rem; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 800px) { .mini-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
.mini { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--line); }
.mini img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mini:hover img { transform: scale(1.06); }
.mini span { position: absolute; inset: auto 0 0 0; padding: var(--s6) var(--s4) var(--s4); color: var(--on-dark); font-family: var(--font-display); font-size: 1.375rem; background: linear-gradient(0deg, rgba(18, 16, 14, .8), transparent); opacity: 0; transform: translateY(8px); transition: opacity var(--t-med), transform var(--t-med) var(--ease); }
.mini:hover span, .mini:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .mini span { opacity: 1; transform: none; } }
.info-list { display: grid; border-top: 1px solid var(--line); }
.info-list li { display: grid; gap: 2px; padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.info-list small { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-list a, .info-list b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; overflow-wrap: anywhere; }
.info-list a:hover { color: var(--bronze); }

/* ---------- cta band ---------- */
.band { text-align: center; display: grid; justify-items: center; gap: var(--s5); }
.band .lead { margin-inline: auto; }
.band__cta { display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-dark); background: var(--night); color: var(--on-dark); padding-top: clamp(56px, 8vw, 96px); padding-bottom: calc(var(--s6) + env(safe-area-inset-bottom)); }
.foot { display: grid; gap: var(--s7); }
@media (min-width: 900px) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.foot img { height: 96px; width: auto; margin-bottom: var(--s4); }
.foot p { color: var(--on-dark-muted); font-size: .9375rem; max-width: 36ch; }
.foot h2 { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s4); }
.foot li a { display: inline-block; padding: var(--s2) 0; min-height: 36px; color: var(--on-dark-muted); font-size: .9375rem; transition: color var(--t-fast), padding var(--t-med) var(--ease); }
.foot li a:hover { color: var(--on-dark); padding-left: var(--s2); }
.copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line-dark); font-size: .8125rem; color: var(--on-dark-muted); }

/* ---------- sticky mobile bar & floating contact ---------- */
.mbar { position: fixed; inset: auto 0 0 0; z-index: var(--z-bar); display: flex; gap: var(--s2); padding: var(--s3) var(--s3) calc(var(--s3) + env(safe-area-inset-bottom)); background: rgba(18, 16, 14, .96); border-top: 1px solid var(--line-dark); transform: translateY(110%); transition: transform var(--t-med) var(--ease); }
.mbar.show { transform: none; }
.mbar a { border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s4); border: 1px solid var(--line-dark); color: var(--on-dark); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mbar a.btn--gold { flex: 1; border-color: var(--gold); color: var(--night); white-space: nowrap; }
.mbar a.mbar__icon { flex: none; width: 48px; padding: 0; border-radius: 50%; letter-spacing: 0; text-transform: none; }
.mbar__icon svg { width: 20px; height: 20px; }
@media (min-width: 1100px) { .mbar { display: none; } }
.float { position: fixed; right: var(--s5); bottom: var(--s5); z-index: 90; display: none; flex-direction: column; gap: var(--s2); }
@media (min-width: 1100px) { .float { display: flex; } }
.float a { border-radius: 50%; display: grid; place-items: center; width: 48px; height: 48px; background: var(--night); color: var(--on-dark); border: 1px solid var(--line-dark); font-size: .75rem; font-weight: 700; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.float a:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.float svg { width: 20px; height: 20px; }
@media (max-width: 1099px) { body.has-mbar { padding-bottom: 0; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- refinements ---------- */
.stat b, .plan__price, .values b, .step b, .svc__n, .featured__count, .next li::before, .pj__badge { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1; }
.featured .eyebrow { color: var(--gold-soft); }
@media (min-width: 1024px) {
  .pj:nth-child(5n + 1):last-child, .pj:nth-child(5n + 3):last-child { grid-column: 1 / -1; }
  .pj:nth-child(5n + 4):last-child { grid-column: span 8; }
  .pj:nth-child(5n + 1):last-child .pj__img, .pj:nth-child(5n + 3):last-child .pj__img { height: clamp(300px, 34vw, 520px); }
}
.phero .eyebrow { color: var(--gold); }
.phero .display em { color: var(--gold-soft); }
@media (max-width: 1099px) { .site-footer { padding-bottom: calc(var(--s9) + env(safe-area-inset-bottom)); } }

/* ---------- soft corners for rectangles & squares ---------- */
.featured, .pj__img, .split__media img, .post__img, .gal button, .mini, .map, .lb img { border-radius: var(--r-md); }
.split__media .tag, .dropdown, .form__summary, .form__status, .field input, .field select, .field textarea { border-radius: var(--r-sm); }
.plan { border-radius: var(--r-lg); }
@media (min-width: 900px) {
  .plan:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .plan:last-child { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
  .plan:not(:first-child):not(:last-child) { border-radius: 0; }
}
.featured__slide img, .gal img, .mini img, .pj__img img, .post__img img { border-radius: inherit; }
.map { overflow: hidden; }
@media (min-width: 1100px) { .copy { padding-right: 72px; } }

/* ---------- smooth motion ---------- */
:root { --ease-io: cubic-bezier(.65, 0, .35, 1); }
.reveal:not(.in) { will-change: opacity, transform; }
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
#pj-grid { transition: opacity .2s ease; }
#pj-grid.is-swapping { opacity: 0; }
.featured__slide { transition: opacity 1.1s var(--ease-io); }
.featured__slide img { transform: scale(1.04); transition: transform 7s linear; }
.featured__slide.is-active img { transform: scale(1); }
.hero__inner > * { animation: rise 1s var(--ease) both; }
.hero__inner > :nth-child(1) { animation-delay: .1s; }
.hero__inner > :nth-child(2) { animation-delay: .22s; }
.hero__inner > :nth-child(3) { animation-delay: .38s; }
.hero__inner > :nth-child(4) { animation-delay: .52s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.lb { animation: lb-in .28s ease both; }
.lb img { transition: opacity .28s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.btn, .link-arrow, .chip, .iconbtn, .nav-link, .dropdown a, .chans a, .foot li a { transition-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .featured__slide img { transform: none; transition: none; }
}

/* ---------- plan CTA outline on dark card ---------- */
.plan--hot .btn { border-color: var(--gold-soft); color: var(--on-dark); }
.plan--hot .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }

/* ---------- hero text: sequential reveal ---------- */
.hero__title { max-width: min(20em, 100%); font-size: clamp(1.375rem, 2.6vw, 2.25rem); line-height: 1.14; animation: none; }
.hero__text { max-width: 62ch; }
.js .hero__title:not(.is-split) { visibility: hidden; }
.hero__title .w { display: inline-block; opacity: 0; animation: word-in .9s var(--ease) both; animation-delay: calc(.3s + var(--i, 0) * 55ms); }
@keyframes word-in { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }
/* stronger scrim behind the hero copy so it stays legible over bright video frames */
.hero__scrim { background: linear-gradient(180deg, rgba(18, 16, 14, .35) 0%, rgba(18, 16, 14, 0) 26%, rgba(18, 16, 14, .62) 52%, rgba(18, 16, 14, .94) 100%), linear-gradient(90deg, rgba(18, 16, 14, .7) 0%, rgba(18, 16, 14, .2) 55%, rgba(18, 16, 14, 0) 100%); }
.hero__title, .hero__text { text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 24px rgba(0, 0, 0, .55); }

/* ---------- header overlays the hero (video/image starts at the very top) ---------- */
.site-header--overlay { position: fixed; top: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(18, 16, 14, .78) 0%, rgba(18, 16, 14, .35) 60%, rgba(18, 16, 14, 0) 100%); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.site-header--overlay.is-scrolled, .site-header--overlay.menu-open { background: rgba(18, 16, 14, .94); border-bottom-color: var(--line-dark); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero { height: 100svh; min-height: 600px; max-height: 1000px; }
.phero { padding-top: var(--header-h); }

/* ---------- hero text + scroll reveals keep playing even when the OS asks to reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease) !important; }
  .hero__inner > :not(.hero__title) { animation-name: rise !important; animation-duration: 1s !important; }
  .hero__title .w { animation-name: word-in !important; animation-duration: .9s !important; }
}
.site-header--overlay { background-origin: border-box; background-repeat: no-repeat; }


/* ---------- project categories ---------- */
.cats { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 32px); }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cat__btn { display: block; width: 100%; text-align: left; cursor: pointer; color: inherit; }
.cat__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); border-radius: var(--r-md); }
.cat__track { display: flex; height: 100%; transition: transform .8s var(--ease); }
.cat__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.cat__dots { position: absolute; left: 50%; bottom: var(--s4); transform: translateX(-50%); display: flex; gap: 5px; opacity: 0; transition: opacity .3s ease; max-width: 80%; flex-wrap: wrap; justify-content: center; }
.cat__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background .3s ease, transform .3s ease; }
.cat__dots i.on { background: #fff; transform: scale(1.3); }
.cat__btn:hover .cat__dots, .cat__btn:focus-visible .cat__dots { opacity: 1; }
.cat__btn:hover .pj__arrow, .cat__btn:focus-visible .pj__arrow { background: var(--ink); border-color: var(--ink); color: var(--ivory); transform: translate(2px, -2px); }
.cat__btn:hover .pj__name { color: var(--bronze); }
.cv { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--ivory); overflow-y: auto; animation: lb-in .28s ease both; }
.cv__in { width: min(1280px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(24px, 4vw, 56px) 0 var(--s8); }
.cv__head { display: flex; justify-content: space-between; align-items: start; gap: var(--s5); margin-bottom: clamp(24px, 3vw, 40px); }
.cv__desc { margin-top: var(--s2); color: var(--muted); max-width: 60ch; }
.cv__desc span { display: block; margin-top: var(--s1); font-size: .875rem; }
.cv__x { flex: 0 0 auto; position: sticky; top: var(--s4); }
.cv__grid { columns: 1; column-gap: var(--s4); }
@media (min-width: 560px) { .cv__grid { columns: 2; } }
@media (min-width: 960px) { .cv__grid { columns: 3; } }
.cv__item { display: block; width: 100%; margin: 0 0 var(--s4); break-inside: avoid; overflow: hidden; border-radius: var(--r-md); cursor: zoom-in; background: var(--line); }
.cv__item img { width: 100%; height: auto; display: block; transition: transform .8s var(--ease); }
.cv__item:hover img { transform: scale(1.04); }
.cv__foot { display: flex; justify-content: center; margin-top: var(--s6); }
@media (prefers-reduced-motion: reduce) {
  .cat__track { transition: transform .8s var(--ease) !important; }
  .cat__dots i, .cat__dots { transition-duration: .3s !important; }
  .featured__slide { transition: opacity 1.1s var(--ease-io) !important; }
}
.cv .cv__x { color: var(--ink); background: var(--ivory); border: 1px solid var(--line); z-index: 2; }
.cv .cv__x:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* scrub-to-reveal hover */
.cat__track { display: block; position: relative; transition: none !important; transform: none !important; }
.cat__track img { position: absolute; inset: 0; flex: none; }
.cat__img { cursor: ew-resize; }
.cat__img::after { content: ""; position: absolute; inset: 0; z-index: 90; pointer-events: none; background: linear-gradient(to top, rgba(10,9,8,.45), transparent 40%); opacity: 0; transition: opacity .4s ease; }
.cat__img.is-live::after { opacity: 1; }
.cat__segs { position: absolute; z-index: 95; left: var(--s4); right: var(--s4); top: var(--s3); display: flex; gap: 4px; opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s var(--ease); pointer-events: none; }
.cat__segs i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); transition: background .35s ease; }
.cat__segs i.on { background: #fff; }
.cat__img.is-live .cat__segs { opacity: 1; transform: none; }
.cat__img .pj__badge { z-index: 96; transition: opacity .3s ease; }
.cat__img.is-live .pj__badge { opacity: 0; }

/* ---------- Thi công trọn gói: stage list (ảnh một bên, nội dung một bên) ---------- */
.stages { display: grid; gap: clamp(56px, 8vw, 112px); counter-reset: none; }
.stage { align-items: start; }
.stage__media img { aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .stage__media { position: sticky; top: calc(var(--header-h, 80px) + var(--s5)); } }
.stage__n { font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); display: flex; align-items: center; gap: var(--s3); }
.stage__n::after { content: ""; flex: 0 0 48px; height: 1px; background: currentColor; opacity: .5; }
.stage .prose { display: grid; gap: var(--s4); }
.stage .prose p + p { margin-top: 0; }
.stage__list { display: grid; gap: var(--s3); max-width: 62ch; color: var(--muted); }
.stage__list li { position: relative; padding-left: var(--s5); }
.stage__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--bronze); }
.stage__list strong, .stage__goal strong { color: var(--ink); font-weight: 600; }
.stage .prose p.stage__goal { padding: var(--s4) var(--s5); border-left: 2px solid var(--bronze); background: var(--paper); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
@media (min-width: 800px) { .promises--5 { grid-template-columns: repeat(5, 1fr); } }
.promises--5 b { font-size: 1.25rem; }
