﻿/* ==========================================================================
   DESKTOP.CSS — Giao diện màn hình lớn (>=1024px)
   ========================================================================== */

/* 1. Thiết lập Lenis Scroll & Reset cơ sở */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  padding-bottom: 0;
}

nav.dock {
  display: none !important;
}

.wrap {
  max-width: 1240px;
  padding: 0 48px;
}

/* 2. Header viên thuốc nổi (Floating Pill) */
header.top {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 14, 27, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: transform 0.5s var(--ease);
}

html.dk-hide-nav header.top {
  transform: translate(-50%, -140%);
}

header.top > .wrap {
  display: flex;
  align-items: center;
  max-width: none;
  width: auto;
  height: 52px;
  padding: 0 8px 0 22px;
  gap: 28px;
}

/* Điều hướng Header chèn bởi JS */
.dk-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dk-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--mute);
  text-decoration: none;
  padding: 8px 4px;
  transition: color 0.3s var(--ease);
}

.dk-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.dk-nav a:hover {
  color: var(--ink);
}

.dk-nav a:hover::after,
.dk-nav a.on::after {
  transform: scaleX(1);
  transform-origin: left;
}

.dk-nav a.on {
  color: var(--ink);
}

/* 3. Bộ đếm chương góc dưới trái */
.dk-track {
  position: fixed;
  left: 18px;
  bottom: 32px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

html.dk-in-chap .dk-track {
  opacity: 1;
}

html:not(.dk-in-chap) .dk-track {
  opacity: 0;
}

.dk-track .dk-cur {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.dk-track .dk-tot {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.dk-track .dk-fill {
  display: block;
  width: 2px;
  height: 72px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.dk-track .dk-fill s {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--acc);
  transform-origin: top;
  transform: scaleY(0);
  text-decoration: none;
}

.dk-track .dk-name {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  max-height: 34vh;
  overflow: hidden;
  text-overflow: ellipsis;
  order: -1;
}

/* 4. Con trỏ tùy biến Desktop */
.dk-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), opacity 0.3s var(--ease);
}

.dk-cursor i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--acc2);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

html.dk-ready .dk-cursor {
  opacity: 1;
}

html.dk-hover .dk-cursor {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
}

html.dk-hover .dk-cursor i {
  background-color: rgba(255, 45, 139, 0.12);
  border-color: var(--acc);
}

/* 5. Tách chữ: style nằm trong desktop.js (giữ tiêu đề là khối) */

/* 6. Phân đoạn Hero */
section.hero {
  min-height: 100vh;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
}

.hero .wrap {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  column-gap: 64px;
  align-items: center;
  grid-template-areas:
    "ph   case"
    "beat case"
    "cta  case"
    "orgs case";
}

.hero .ph {
  grid-area: ph;
}

.hero .beats {
  grid-area: beat;
}

.hero .case {
  grid-area: case;
  align-self: center;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.hero .cta {
  grid-area: cta;
}

.hero .orgs {
  grid-area: orgs;
}

/* Ảnh chân dung sang cột phải, trên 2 thẻ so sánh → 5 câu hero vừa một màn hình */
.hero .wrap {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-areas:
    "beat ph"
    "beat case"
    "cta  case"
    "orgs case";
  row-gap: 0;
}

.hero .ph {
  justify-self: center;
  align-self: end;
  width: 132px;
  height: 132px;
  margin-bottom: 24px;
}

.hero .beats {
  margin-top: 0;
  gap: 10px;
}

section.hero {
  padding: 92px 0 48px;
}

.beats {
  gap: 14px;
}

.beats li {
  font-size: clamp(22px, 1.95vw, 31px);
}

.hero .case {
  max-width: 440px;
  justify-self: end;
  width: 100%;
}

.case b {
  font-size: 46px;
}

.case small,
.case p,
.case b > span {
  font-size: 13px;
}

.case .ca,
.case .cb {
  padding: 28px;
  border-radius: 26px;
}

.case .cx {
  transform: rotate(90deg);
  margin: 0 auto;
}

/* 7. Các phân đoạn nội dung chính (.sec) */
.sec {
  padding: 140px 0;
}

.sec h2 {
  font-size: clamp(44px, 4.4vw, 72px);
  max-width: 1000px;
  line-height: 1.04;
}

.sec .lead {
  font-size: 19px;
  max-width: 760px;
}

.punch {
  font-size: clamp(34px, 3.2vw, 52px);
  max-width: 1000px;
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rc {
  padding: 26px;
  border-radius: 26px;
  transform-style: preserve-3d;
}

article.wf {
  padding: 40px;
  border-radius: 32px;
}

.cols {
  gap: 28px;
}

.stage {
  padding: 34px;
  border-radius: 28px;
}

.photo,
.video {
  border-radius: 28px;
  overflow: hidden;
}

.kpis b {
  font-size: clamp(48px, 4vw, 72px);
  line-height: 1;
}

.tl {
  max-width: 920px;
}

.job h3 {
  font-size: 22px;
}

.job ul {
  font-size: 16px;
}

/* 8. Phân đoạn Kết thúc & Liên hệ */
section.end#contact {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

section.end#contact h2 {
  font-size: clamp(48px, 5.6vw, 92px);
  max-width: 1100px;
  line-height: 1.02;
  margin: 0 auto 40px;
}

/* 9. Tương tác thẻ & Card Hover */
.rc,
.wf,
.stage,
.web,
.job,
.photo,
.video {
  will-change: transform;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.rc:hover,
.wf:hover,
.stage:hover,
.web:hover,
.job:hover,
.photo:hover,
.video:hover {
  border-color: rgba(255, 122, 184, 0.45);
  box-shadow: 0 30px 80px -30px rgba(255, 45, 139, 0.35);
}

/* 11. Vệt sáng theo chuột trên thẻ (JS đặt --mx/--my) */
.rc,
.web,
.kpis > div,
.eq > div:not(.op) {
  background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 45, 139, 0.11), transparent 60%);
}