/* =========================================================
   DOVAPU AGENCY – Redesign 2026 (Lusion-inspired dark WebGL)
   Brand: Night #0C0907 · Charcoal #1A1A1C · Flame #F78C26
          Ember #D53F2B · Soft White #FAF7F2 · Ash #8A817C
   ========================================================= */
:root {
  --night: #0c0907;
  --charcoal: #1a1a1c;
  --flame: #f78c26;
  --ember: #d53f2b;
  --white: #faf7f2;
  --ash: #8a817c;
  --line: rgba(250, 247, 242, .12);
  --grad: linear-gradient(180deg, #f78c26, #d83e27);
  --f-head: "Montserrat", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-wide: "Michroma", "Montserrat", sans-serif;
  --pad: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.65, .05, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--night);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--flame); color: var(--night); }

.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--flame); margin: 0 0 20px; display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--flame); }
.eyebrow.center { display: flex; justify-content: center; }
.flame-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.h2 {
  font-family: var(--f-head); font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(34px, 5.4vw, 80px); margin: 0 0 24px; max-width: 16ch;
}
.lead, .svc p, .proj__desc, .ceo blockquote, .step p { text-shadow: 0 1px 12px rgba(12,9,7,.9); }
.lead { color: rgba(250,247,242,.7); font-size: clamp(16px, 1.3vw, 19px); max-width: 52ch; margin: 0; }
section { position: relative; z-index: 2; padding: clamp(96px, 14vw, 200px) var(--pad); }
.section-head { margin-bottom: clamp(48px, 7vw, 96px); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* split text */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; will-change: transform; }

/* ---------- canvas / overlays ---------- */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; will-change: transform;
}
@media (max-width: 760px) { .grain { display: none; } }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-5%,3%)} 40%{transform:translate(4%,-6%)} 60%{transform:translate(-3%,5%)} 80%{transform:translate(6%,2%)} 100%{transform:translate(0,0)} }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: radial-gradient(120% 90% at 30% 10%, #1d1612 0%, var(--night) 60%);
  display: grid; place-items: center; transition: clip-path 1.2s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__brand {
  font-family: var(--f-wide); font-size: clamp(28px, 6vw, 72px); letter-spacing: .35em; padding-left: .35em;
  position: relative; color: var(--white);
}
.loader__brand::before, .loader__brand::after {
  content: attr(data-text); position: absolute; inset: 0; padding-left: .35em; opacity: .7;
}
.loader__brand::before { color: var(--flame); transform: translateX(-3px); clip-path: inset(0 0 60% 0); animation: glitch 1.6s infinite steps(2); }
.loader__brand::after { color: var(--ember); transform: translateX(3px); clip-path: inset(55% 0 0 0); animation: glitch 1.3s infinite reverse steps(2); }
@keyframes glitch { 0%{transform:translate(-3px,0)} 25%{transform:translate(3px,-1px)} 50%{transform:translate(-1px,1px)} 75%{transform:translate(2px,0)} 100%{transform:translate(0,0)} }
.loader__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 72px; height: 1px; background: var(--line); }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--grad); }
.loader__meta { position: absolute; left: var(--pad); right: var(--pad); bottom: 40px; display: flex; justify-content: space-between; color: var(--ash); }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--flame);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s;
  display: grid; place-items: center; mix-blend-mode: normal;
}
.cursor.is-hover { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(247,140,38,.92); }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: transparent; border: 1px solid var(--flame); }
.cursor__label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--night); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-hover .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- HUD ---------- */
.hud { position: fixed; inset: auto 0 0 0; z-index: 40; pointer-events: none; padding: 0 var(--pad) 22px; display: flex; justify-content: space-between; color: var(--ash); }
.hud__bl, .hud__br { display: flex; gap: 18px; align-items: center; }
.hud__progress { width: 120px; height: 1px; background: var(--line); position: relative; }
.hud__progress i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--flame); }
@media (max-width: 720px) { .hud { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); transition: transform .6s var(--ease), background .4s;
}
.nav.is-scrolled { background: rgba(12,9,7,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(26,26,28,.4); backdrop-filter: blur(10px); }
.nav__links a { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; transition: background .3s, color .3s; }
.nav__links a:hover, .nav__links a.is-active { background: var(--white); color: var(--night); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.burger { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(26,26,28,.5); cursor: pointer; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--white); transition: transform .4s var(--ease); }
body.menu-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (max-width: 960px) { .nav__links { display: none; } }
@media (max-width: 480px) { .nav .btn--flame { display: none; } }

/* ---------- fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 110; background: rgba(12,9,7,.97);
  clip-path: circle(0% at calc(100% - 60px) 40px); transition: clip-path .9s var(--ease);
  overflow-y: auto; padding: 120px var(--pad) 60px;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 60px) 40px); }
.menu__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1400px; margin: 0 auto; }
.menu__col a { display: block; font-family: var(--f-head); font-weight: 700; font-size: clamp(18px, 2vw, 28px); padding: 6px 0; color: rgba(250,247,242,.8); transition: color .3s, transform .4s var(--ease); }
.menu__col a:hover { color: var(--flame); transform: translateX(10px); }
@media (max-width: 760px) { .menu__inner { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  padding: 14px 24px; border-radius: 999px; cursor: pointer; border: 0; color: var(--white);
}
.btn span { position: relative; z-index: 1; }
.btn::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: translateY(101%); transition: transform .5s var(--ease); border-radius: inherit; }
.btn:hover::after { transform: translateY(0); }
.btn:hover span { color: var(--night); }
.btn--flame { background: var(--grad); }
.btn--line { border: 1px solid rgba(250,247,242,.3); background: transparent; }
.btn--lg { padding: 20px 34px; font-size: 13px; }
.btn--block { width: 100%; padding: 18px; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 140px; padding-bottom: 80px; }
.hero__title { font-family: var(--f-head); font-weight: 900; letter-spacing: -.035em; line-height: .92; font-size: clamp(52px, 11vw, 190px); margin: 0 0 48px; text-transform: uppercase; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .word { display: inline-block; }
.hero__title .outline { color: transparent; -webkit-text-stroke: 1.5px rgba(250,247,242,.85); }
.hero__bottom { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: end; }
.hero__lead { color: rgba(250,247,242,.72); font-size: clamp(16px, 1.4vw, 20px); margin: 0; max-width: 40ch; }
.hero__tagline { border-left: 2px solid var(--flame); padding-left: 18px; }
.hero__tagline .mono { color: var(--flame); display: block; margin-bottom: 6px; }
.hero__tagline strong { font-family: var(--f-head); font-weight: 700; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.25; }
.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--ash); }
.scroll-hint__line { width: 1px; height: 64px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint__line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--flame); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 860px) { .hero__bottom { grid-template-columns: 1fr; } .scroll-hint { display: none; } }

/* ---------- banners (pinned stack) ---------- */
.banners { padding: 0; }
.banners__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 90px var(--pad) 60px; }
.banners__head, .banners__stage { width: min(100%, calc((100svh - 190px) * 16 / 9)); margin-left: auto; margin-right: auto; }
.banners__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.banners__count b { color: var(--flame); font-weight: 500; }
/* banner artwork is 1600x900 → lock the frame to 16:9 so nothing gets cropped */
.banners__stage { position: relative; aspect-ratio: 16 / 9; perspective: 1400px; }
.banner { position: absolute; inset: 0; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--charcoal); will-change: transform; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); backface-visibility: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: var(--night); opacity: var(--shade, 0); pointer-events: none; }
@media (max-width: 760px) { .banner { border-radius: 14px; } }

/* ---------- clients marquee ---------- */
.clients { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); padding-left: 0; padding-right: 0; }
.marquee { overflow: hidden; margin-top: 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 22px; width: max-content; will-change: transform; }
.logo-tile { width: clamp(120px, 13vw, 180px); aspect-ratio: 1; border-radius: 22px; background: var(--white); display: grid; place-items: center; padding: 16px; flex: none; transition: transform .5s var(--ease); }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.logo-tile:hover { transform: translateY(-8px) rotate(-2deg); }

/* ---------- services ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  position: relative; display: grid; grid-template-columns: 120px 1fr auto; gap: 32px; align-items: start;
  padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); overflow: hidden;
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(247,140,38,.16), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.svc:hover::before { opacity: 1; }
.svc__num { font-family: var(--f-wide); font-size: clamp(28px, 3vw, 44px); color: transparent; -webkit-text-stroke: 1px var(--flame); }
.svc h3 { font-family: var(--f-head); font-weight: 700; font-size: clamp(22px, 2.6vw, 40px); line-height: 1.1; margin: 0 0 14px; transition: transform .6s var(--ease); }
.svc:hover h3 { transform: translateX(14px); }
.svc p { color: rgba(250,247,242,.68); margin: 0 0 18px; max-width: 60ch; }
.svc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.svc li { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: rgba(250,247,242,.8); }
.svc__link { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--flame); white-space: nowrap; align-self: center; }
.svc__link i { display: inline-block; font-style: normal; transition: transform .4s var(--ease); }
.svc:hover .svc__link i { transform: rotate(45deg); }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; gap: 12px; } .svc__link { align-self: start; } }

/* ---------- AI grid ---------- */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.ai-card { position: relative; background: rgba(12,9,7,.88); padding: clamp(28px, 3.4vw, 52px); min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: background .5s; }
.ai-card .mono { color: var(--ash); }
.ai-card h4 { font-family: var(--f-wide); font-weight: 400; font-size: clamp(18px, 1.8vw, 26px); margin: 40px 0 8px; letter-spacing: .04em; }
.ai-card p { margin: 0; color: rgba(250,247,242,.62); }
.ai-card__glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(247,140,38,.45), transparent 65%); right: -120px; bottom: -120px; opacity: 0; transition: opacity .5s, transform .8s var(--ease); }
.ai-card:hover { background: rgba(26,26,28,.85); }
.ai-card:hover .ai-card__glow { opacity: 1; transform: translate(-40px, -40px) scale(1.2); }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ai-grid { grid-template-columns: 1fr; } }

/* ---------- ways ---------- */
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }
.way {
  position: relative; border-radius: 26px; padding: clamp(28px, 3vw, 44px); background: linear-gradient(160deg, rgba(26,26,28,.92), rgba(12,9,7,.92));
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; transform-style: preserve-3d; transition: border-color .4s;
}
.way:hover { border-color: rgba(247,140,38,.45); }
.way__idx { font-family: var(--f-wide); font-size: 64px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateZ(40px); }
.way h3 { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 1.8vw, 26px); margin: 0; transform: translateZ(30px); }
.way p { margin: 0; color: rgba(250,247,242,.66); }
.way .btn { margin-top: auto; align-self: flex-start; transform: translateZ(20px); }
.way__tools { display: flex; flex-direction: column; }
.way__tools a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); transition: color .3s, padding .4s var(--ease); }
.way__tools a:hover { color: var(--flame); padding-left: 8px; }
.way__tools i { font-style: normal; }
.checks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: "✓"; color: var(--flame); font-weight: 600; }
@media (max-width: 960px) { .ways-grid { grid-template-columns: 1fr; } }

/* ---------- process (horizontal) ---------- */
.process { padding: 0; }
.process__pin { height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.process__head { display: flex; align-items: center; gap: 32px; padding: 0 var(--pad); margin-bottom: 48px; }
.process__head .eyebrow { margin: 0; white-space: nowrap; }
.process__rail { flex: 1; height: 1px; background: var(--line); position: relative; }
.process__rail i { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.process__track { display: flex; gap: 24px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.step {
  width: clamp(280px, 34vw, 480px); aspect-ratio: 4 / 5; flex: none; border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(200deg, rgba(26,26,28,.9), rgba(12,9,7,.6)); padding: clamp(24px, 3vw, 44px);
  display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden;
}
.step__n { position: absolute; top: 10px; right: 20px; font-family: var(--f-wide); font-size: clamp(90px, 12vw, 180px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(247,140,38,.4); }
.step h3 { font-family: var(--f-head); font-weight: 800; font-size: clamp(28px, 3vw, 48px); margin: 0 0 10px; text-transform: uppercase; }
.step p { margin: 0; color: rgba(250,247,242,.7); font-size: 17px; }

/* ---------- projects ---------- */
.link-arrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--flame); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-arrow i { font-style: normal; }
.proj-list { position: relative; border-top: 1px solid var(--line); }
.proj { display: grid; grid-template-columns: 60px 1.2fr 160px 1.4fr auto; gap: 24px; align-items: center; padding: clamp(28px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.proj__n { color: var(--ash); }
.proj__name { font-family: var(--f-head); font-weight: 800; font-size: clamp(26px, 3.6vw, 56px); letter-spacing: -.02em; line-height: 1; transition: color .3s, transform .6s var(--ease); }
.proj:hover .proj__name { color: var(--flame); transform: translateX(16px); }
.proj__tag { color: var(--ash); }
.proj__desc { margin: 0; color: rgba(250,247,242,.62); font-size: 14px; }
.proj__cta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; transition: background .3s, color .3s; }
.proj__cta:hover { background: var(--flame); color: var(--night); }
.proj-preview { position: fixed; top: 0; left: 0; width: 220px; height: 220px; border-radius: 24px; overflow: hidden; pointer-events: none; z-index: 60; background: var(--white); padding: 18px; opacity: 0; transform: scale(.6); }
.proj-preview img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 960px) { .proj { grid-template-columns: 40px 1fr; } .proj__tag, .proj__desc, .proj__cta { grid-column: 2; } .proj-preview { display: none; } }

/* ---------- stats ---------- */
.stats { text-align: center; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat { padding: 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--f-wide); font-size: clamp(48px, 6.4vw, 112px); white-space: nowrap; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--ash); margin-top: 16px; }
@media (max-width: 720px) { .stats-row { grid-template-columns: 1fr; } .stat { border-left: 0; border-top: 1px solid var(--line); } .stat:first-child { border-top: 0; } }

/* ---------- CEO ---------- */
.ceo { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.ceo__media { position: relative; }
.ceo__img { border-radius: 28px; overflow: hidden; aspect-ratio: 1; clip-path: inset(100% 0 0 0 round 28px); }
.ceo__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.08); will-change: transform; }
.ceo__badge { position: absolute; left: -12px; bottom: 32px; background: var(--grad); color: var(--white); padding: 10px 16px; border-radius: 999px; }
.ceo blockquote { margin: 0 0 32px; font-size: clamp(17px, 1.5vw, 21px); color: rgba(250,247,242,.8); border-left: 2px solid var(--flame); padding-left: 22px; }
.ceo__facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ceo__facts li { border-top: 1px solid var(--line); padding-top: 14px; }
.ceo__facts b { display: block; font-family: var(--f-wide); font-weight: 400; font-size: 28px; color: var(--flame); }
.ceo__facts span { font-size: 13px; color: var(--ash); }
@media (max-width: 860px) { .ceo { grid-template-columns: 1fr; } .ceo__facts { grid-template-columns: 1fr; } }

/* ---------- CTA + form ---------- */
.cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.cta .checks { margin: 28px 0 36px; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.cta__phone { font-family: var(--f-wide); font-size: clamp(20px, 2vw, 30px); letter-spacing: .04em; }
.audit { background: rgba(26,26,28,.94); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.audit .eyebrow { margin-bottom: 0; }
.audit__sub { margin: 0 0 8px; color: rgba(250,247,242,.65); }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(250,247,242,.22); color: var(--white);
  font: inherit; font-size: 16px; padding: 22px 0 10px; outline: none; resize: vertical; transition: border-color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--flame); }
.field span { position: absolute; left: 0; top: 22px; color: var(--ash); pointer-events: none; transition: transform .35s var(--ease), color .3s, font-size .3s; transform-origin: left; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-20px) scale(.78); color: var(--flame); }
.audit .btn { margin-top: 10px; }
.form-note { font-size: 13px; color: var(--flame); margin: 0; min-height: 1em; }
@media (max-width: 960px) { .cta { grid-template-columns: 1fr; } }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; gap: 14px; }
.post__img { border-radius: 20px; overflow: hidden; aspect-ratio: 7 / 5; background: var(--charcoal); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.4) brightness(.85); }
.post:hover .post__img img { transform: scale(1.08); filter: none; }
.post .mono { color: var(--flame); }
.post h4 { font-family: var(--f-head); font-weight: 700; font-size: 18px; line-height: 1.3; margin: 0; transition: color .3s; }
.post:hover h4 { color: var(--flame); }
@media (max-width: 1000px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; background: var(--charcoal); border-radius: 36px 36px 0 0; padding: clamp(60px, 8vw, 110px) var(--pad) 28px; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer__grid a, .footer__grid span { color: rgba(250,247,242,.72); font-size: 15px; transition: color .3s; }
.footer__grid a:hover { color: var(--flame); }
.footer__grid p:not(.eyebrow) { color: rgba(250,247,242,.6); max-width: 34ch; margin: 0; }
.footer__logo { height: 52px; width: auto; margin-bottom: 12px; }
.footer__giant { font-family: var(--f-wide); font-size: 13vw; white-space: nowrap; line-height: .9; letter-spacing: -.02em; text-align: center; margin: 60px 0 20px; overflow: hidden; }
.footer__giant span { display: inline-block; background: linear-gradient(180deg, rgba(247,140,38,.9), rgba(213,63,43,.1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ash); border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- floating CTA ---------- */
.float-cta { position: fixed; right: 18px; bottom: 64px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.float-cta a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--white); box-shadow: 0 10px 30px -8px rgba(247,140,38,.6); transition: transform .4s var(--ease); }
.float-cta a:first-child { background: #fff; }
.float-cta a img { width: 30px; height: 30px; }
.float-cta a:hover { transform: scale(1.12); }
.float-cta a:last-child::before { content: ""; position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--flame); animation: ping 2s infinite; }
@keyframes ping { to { transform: scale(1.7); opacity: 0; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ceo__img { clip-path: none; }
}

/* =========================================================
   CASE STUDY PAGE
   ========================================================= */
.hero--cs .hero__title { font-size: clamp(48px, 10vw, 170px); }
.cs-kpis { display: flex; gap: clamp(20px, 3vw, 44px); }
.cs-kpis b { display: block; font-family: var(--f-wide); font-weight: 400; font-size: clamp(30px, 3.4vw, 52px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-kpis .mono { color: var(--ash); display: block; margin-top: 10px; }

.cases { padding-top: clamp(40px, 6vw, 80px); }
.cs-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 56px); position: sticky; top: 84px; z-index: 30; padding: 10px 0; }
.cs-chip {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--white);
  background: rgba(26,26,28,.9); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; transition: background .3s, color .3s, border-color .3s;
}
.cs-chip i { font-style: normal; font-size: 10px; min-width: 22px; padding: 3px 6px; border-radius: 999px; background: rgba(250,247,242,.1); }
.cs-chip:hover { border-color: rgba(247,140,38,.6); }
.cs-chip.is-active { background: var(--grad); border-color: transparent; }
.cs-chip.is-active i { background: rgba(12,9,7,.25); }

.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  position: relative; border-radius: 24px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(165deg, rgba(26,26,28,.95), rgba(12,9,7,.92));
  display: flex; flex-direction: column; transition: border-color .4s, transform .6s var(--ease);
}
.case::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(247,140,38,.18), transparent 60%);
}
.case:hover { border-color: rgba(247,140,38,.45); }
.case:hover::before { opacity: 1; }
.case.is-hidden { display: none; }
.case__media { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 120% at 50% 100%, rgba(213,63,43,.28), transparent 70%), repeating-linear-gradient(90deg, rgba(250,247,242,.04) 0 1px, transparent 1px 48px); }
.case__logo { width: 42%; max-width: 150px; aspect-ratio: 1; background: var(--white); border-radius: 20px; padding: 12px; transition: transform .7s var(--ease); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.case__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.case__mono { font-family: var(--f-wide); font-size: clamp(44px, 5vw, 76px); letter-spacing: .06em; color: transparent; -webkit-text-stroke: 1px var(--flame); transition: transform .7s var(--ease), color .5s; }
.case:hover .case__logo, .case:hover .case__mono { transform: scale(1.08) rotate(-2deg); }
.case:hover .case__mono { color: rgba(247,140,38,.15); }
.case__body { padding: clamp(20px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case__meta { display: flex; justify-content: space-between; color: var(--ash); }
.case__meta span:first-child { color: var(--flame); }
.case h3 { font-family: var(--f-head); font-weight: 800; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.2; margin: 0; }
.case__result { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.case__result .mono { color: var(--ash); font-size: 10px; }
.case__result strong { font-family: var(--f-head); font-weight: 700; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.3; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case__links { display: flex; gap: 8px; flex-wrap: wrap; }
.case__links a { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; transition: background .3s, color .3s; }
.case__links a:hover { background: var(--flame); color: var(--night); }

/* featured: wide, media beside text */
.case--wide { grid-column: span 3; flex-direction: row; }
.case--wide .case__media { flex: 1.1; aspect-ratio: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--line); }
.case--wide .case__body { flex: 1; justify-content: center; }
.case--wide h3 { font-size: clamp(26px, 2.8vw, 42px); }
.case--wide .case__result strong { font-size: clamp(20px, 2vw, 28px); }
@media (min-width: 1101px) { .case--wide { grid-column: span 3; } .cs-grid .case--wide + .case--wide { flex-direction: row-reverse; } .cs-grid .case--wide + .case--wide .case__media { border-right: 0; border-left: 1px solid var(--line); } }

.case--more { justify-content: center; border-style: dashed; background: transparent; min-height: 260px; }
.case--more h3 { font-size: clamp(22px, 2vw, 30px); }

@media (max-width: 1100px) { .cs-grid { grid-template-columns: 1fr 1fr; } .case--wide { grid-column: span 2; } }
@media (max-width: 680px) {
  .cs-grid { grid-template-columns: 1fr; }
  .case--wide { grid-column: span 1; flex-direction: column; }
  .case--wide .case__media { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .cs-filter { top: 70px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); }
  .cs-filter::-webkit-scrollbar { display: none; }
  .cs-chip { flex: none; }
  .cs-kpis { flex-wrap: wrap; }
}

.cs-cta { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cs-cta__title { font-family: var(--f-head); font-weight: 900; letter-spacing: -.03em; line-height: 1; font-size: clamp(40px, 7vw, 120px); margin: 0 0 24px; max-width: 14ch; }
.cs-cta .lead { margin: 0 auto 36px; }
.cs-cta .cta__actions { justify-content: center; }
.case__logo--dark { background: #0f0d0b; padding: 0; border: 1px solid rgba(247,140,38,.35); overflow: hidden; }
.case__logo--dark img { border-radius: 0; object-fit: cover; }

/* ---------- logo / project-logo fixes (2026-10-22) ---------- */
.nav__logo img { height: 38px; width: auto; }
.footer__logo { height: 56px; width: auto; align-self: flex-start; object-fit: contain; }
.proj { grid-template-columns: 40px 84px 1.1fr 150px 1.4fr auto; }
.proj__logo { width: 84px; height: 84px; border-radius: 18px; background: var(--white); padding: 8px; display: grid; place-items: center; transition: transform .6s var(--ease); }
.proj__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.proj:hover .proj__logo { transform: rotate(-4deg) scale(1.06); }
@media (max-width: 960px) {
  .proj { grid-template-columns: 64px 1fr; column-gap: 18px; row-gap: 10px; }
  .proj__n { display: none; }
  .proj__logo { width: 64px; height: 64px; border-radius: 14px; grid-row: span 2; align-self: start; }
  .proj__tag, .proj__desc, .proj__cta { grid-column: 2; }
}

/* banners: keep the header clear of the fixed nav, and size the 16:9 frame to what is left */
.banners__pin { padding-top: 110px; padding-bottom: 40px; }
.banners__head, .banners__stage { width: min(100%, calc((100svh - 220px) * 16 / 9)); }
.banner { transform-origin: 50% 60%; }
.proj__logo--dark { background: #0f0d0b; padding: 0; border: 1px solid rgba(247,140,38,.35); overflow: hidden; }
.proj__logo--dark img { border-radius: 0; object-fit: cover; }
.proj__name { font-size: clamp(22px, 2.5vw, 40px); }
.proj { padding-top: clamp(20px, 2.4vw, 34px); padding-bottom: clamp(20px, 2.4vw, 34px); }

/* =========================================================
   POLISH 2026-10-22: uniform logo tiles + smoother rendering
   ========================================================= */
/* logos fill their tile edge-to-edge (no "frame inside a frame") */
.logo-tile, .proj__logo, .case__logo { padding: 0; overflow: hidden; background: var(--white); }
.logo-tile img, .proj__logo img, .case__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.logo-tile--dark, .proj__logo--dark, .case__logo--dark { background: #0f0d0b; border: 1px solid rgba(247,140,38,.35); }
.logo-tile { box-shadow: 0 18px 36px -22px rgba(0,0,0,.9); }

/* backdrop blur over an animated WebGL canvas forces a full re-blur every frame: use solid glass instead */
.nav.is-scrolled { background: rgba(12,9,7,.86); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav__links { background: rgba(26,26,28,.82); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* grain: smaller compositor layer */
.grain { inset: -6%; animation-name: grain-sm; }
@keyframes grain-sm { 0%{transform:translate(0,0)} 25%{transform:translate(-2%,1.5%)} 50%{transform:translate(1.5%,-2%)} 75%{transform:translate(-1%,2%)} 100%{transform:translate(0,0)} }

/* images fade in when decoded instead of popping */
img.is-fading { opacity: 0; transition: opacity .6s ease; }
img.is-fading.is-loaded { opacity: 1; }

/* =========================================================
   MOBILE PERFORMANCE MODE (html.is-mobile, set by main.js)
   ========================================================= */
.is-mobile #gl { height: 100lvh; }
/* banners: plain stacked list instead of a pinned 3D stack */
.is-mobile .banners { padding: clamp(64px, 12vw, 96px) var(--pad) 24px; }
.is-mobile .banners__pin { height: auto; padding: 0; display: block; }
.is-mobile .banners__head, .is-mobile .banners__stage { width: 100%; }
.is-mobile .banners__count { display: none; }
.is-mobile .banners__stage { aspect-ratio: auto; perspective: none; display: grid; gap: 14px; }
.is-mobile .banner { position: relative; inset: auto; aspect-ratio: 16 / 9; will-change: auto; box-shadow: none; }
/* process: native swipe with snap instead of a pinned horizontal scroll */
.is-mobile .process { padding: clamp(64px, 12vw, 96px) 0; }
.is-mobile .process__pin { height: auto; overflow: visible; display: block; }
.is-mobile .process__head { margin-bottom: 24px; }
.is-mobile .process__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; will-change: auto; }
.is-mobile .process__track::-webkit-scrollbar { display: none; }
.is-mobile .step { width: 78vw; aspect-ratio: 4 / 4.2; scroll-snap-align: start; }
.is-mobile .process__track::after { content: ""; flex: none; width: 1px; }
/* lighter paint work on phones */
.is-mobile .lead, .is-mobile .svc p, .is-mobile .proj__desc, .is-mobile .ceo blockquote, .is-mobile .step p { text-shadow: none; }
.is-mobile .marquee { -webkit-mask-image: none; mask-image: none; }
.is-mobile .float-cta a:last-child::before { animation: none; display: none; }
.is-mobile .logo-tile { box-shadow: none; }
.is-mobile .scroll-hint__line::after { animation: none; }

/* logos: no white plates – every logo sits on a dark tile, transparent logos keep breathing room */
.logo-tile, .proj__logo, .case__logo { background: #14110e; border: 1px solid rgba(247,140,38,.28); }
.logo-tile img, .proj__logo img, .case__logo img { object-fit: contain; padding: 9%; border-radius: 14px; }
.logo-tile--dark img, .proj__logo--dark img, .case__logo--dark img { padding: 0; border-radius: 0; object-fit: cover; }
.is-mobile .logo-tile { box-shadow: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note.is-err { color: #ff8a7a; }

/* ---------- BẢNG GIÁ (24/10/2026) ---------- */
.pr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
@media (min-width: 1100px) { .pr-grid { grid-template-columns: repeat(3, 1fr); } .pr-card:last-child { grid-column: 1 / -1; } }
.pr-card { position: relative; background: var(--charcoal); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px 26px; display: flex; flex-direction: column; gap: 16px; transition: border-color .4s, transform .6s var(--ease); }
.pr-card:hover { border-color: rgba(247,140,38,.45); transform: translateY(-4px); }
.pr-card__num { position: absolute; top: 18px; right: 22px; font-family: var(--f-wide); font-size: 34px; color: transparent; -webkit-text-stroke: 1px rgba(247,140,38,.55); }
.pr-card h3 { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(18px, 1.6vw, 22px); margin: 0; padding-right: 48px; }
.pr-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pr-card li { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: rgba(250,247,242,.78); }
.pr-card li b { font-family: var(--f-mono); font-weight: 700; color: var(--flame); white-space: nowrap; font-size: 15px; }
.pr-card__gift { margin: auto 0 0; padding: 10px 14px; border: 1px solid rgba(247,140,38,.4); border-radius: 12px; background: rgba(247,140,38,.07); font-size: 14px; font-weight: 600; }
.pr-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.pr-note { margin-top: 22px; font-size: 12px; letter-spacing: .04em; color: var(--ash); }
@media (max-width: 560px) { .pr-card li { font-size: 14px; } .pr-card li b { font-size: 14px; } }

/* ============ HỆ SINH THÁI DOVAPU ============ */
.eco { position: relative; z-index: 2; }
.eco-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
.eco-card { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(26,26,28,.72); transition: border-color .3s, transform .3s; }
.eco-card:hover { border-color: var(--flame); transform: translateY(-4px); }
.eco-card img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 8px; border-radius: 14px; }
.eco-card b { font-family: var(--f-head); font-size: 18px; color: var(--white); }
.eco-card small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--flame); }
.eco-card p { flex: 1; margin: 4px 0 8px; font-size: 14px; line-height: 1.55; color: rgba(250,247,242,.72); }
.eco-card span { font-size: 14px; font-weight: 600; color: var(--flame); }
.ceo__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; }
.ceo__links a { font-size: 14px; color: var(--flame); }
.pr-card__more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--flame); }
.footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; }
@media (max-width: 1100px) { .eco-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .eco-grid { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* 2026-11-03: menu không xuống dòng ở màn 961–1180px, không cắt dấu tiếng Việt trên tiêu đề hero */
.nav__links a { white-space: nowrap; }
@media (max-width: 1180px) { .nav__links { display: none; } }
.hero__title .line { padding-top: .16em; margin-top: -.16em; }
