/* =========================================================
   Đồng Creator Studio — Video Editor Portfolio
   Lấy cảm hứng trực tiếp từ "Introducing Apple Creator Studio"
   (https://youtu.be/ISYIEmQxs2M): Nền đen sâu, dock icon squircle
   xếp lớp 3D, Bento প্রো-studio, Timeline tương tác & chữ lớn.
   ========================================================= */
:root {
  --bg: #000000;
  --bg-elevated: #0c0c0f;
  --card: #121216;
  --card-hover: #18181f;
  --fg: #f5f5f7;
  --muted: #86868b;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent1: #2997ff;
  --accent2: #a855f7;
  --accent3: #ff5f6d;
  --emerald: #34d399;
  --amber: #fbbf24;
  --radius: 28px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.grad {
  background: linear-gradient(95deg, #60a5fa 0%, #c084fc 48%, #fb7185 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  color: var(--accent1);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.inline-link {
  color: var(--accent1);
  font-weight: 600;
}
.inline-link:hover { text-decoration: underline; }

/* ---------- Reveal on Scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.static .reveal, .static .step { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- 1. Intro Kinetic Sequence ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity 0.75s var(--ease), visibility 0.75s;
  animation: introFailsafe 0.6s 4.5s forwards;
}
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.intro-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.intro-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #a1a1a6;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}
.intro-word {
  font-size: clamp(54px, 13vw, 175px);
  font-weight: 800;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: introIn 0.48s var(--ease) both;
}
@keyframes introIn {
  from { opacity: 0; transform: translateY(24px) scale(0.95); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}
.intro-skip {
  position: absolute;
  bottom: 36px;
  right: 36px;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  transition: color 0.2s, border-color 0.2s;
}
.intro-skip:hover { color: #fff; border-color: #fff; }

/* ---------- 2. Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logo-mark { font-size: 20px; color: #fff; }
.logo-sub { font-weight: 500; color: #a1a1a6; font-size: 15px; margin-left: 2px; }
.nav nav { display: flex; gap: 26px; align-items: center; font-size: 13.5px; color: #d2d2d7; }
.nav nav a { transition: color 0.2s; }
.nav nav a:hover { color: #fff; }
.nav-cta {
  background: var(--fg);
  color: #000 !important;
  padding: 7px 16px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { transform: scale(1.04); background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn-primary {
  background: linear-gradient(135deg, #2997ff, #7c3aed);
  color: #fff;
  box-shadow: 0 12px 32px -8px rgba(124, 58, 237, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px -8px rgba(41, 151, 255, 0.65);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  color: var(--fg);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}
.btn-link { color: #60a5fa; padding: 10px 14px; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }

/* ---------- 3. Hero (Apple Creator Studio Style) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 112px 22px 90px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.hero-ambient {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 95vw);
  height: 540px;
  background: radial-gradient(50% 50% at 50% 45%, rgba(168, 85, 247, 0.22) 0%, rgba(41, 151, 255, 0.12) 45%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.creator-lockup {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  margin-bottom: 22px;
}
.creator-apple-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
}
.creator-suite-name {
  font-size: 15px;
  letter-spacing: -0.01em;
  color: #e4e4e7;
}
.creator-suite-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  color: #fff;
}

.hero-title {
  position: relative;
  z-index: 2;
  font-size: clamp(46px, 8.2vw, 108px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 1020px;
}
.hero-sub {
  position: relative;
  z-index: 2;
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 400;
  color: #a1a1aa;
  max-width: 780px;
  margin-top: 22px;
  line-height: 1.55;
}
.hero-sub strong { color: #fff; font-weight: 600; }

/* ---------- THE ICONIC APPLE CREATOR STUDIO SQUIRCLE DOCK ---------- */
.studio-dock-wrap {
  position: relative;
  z-index: 3;
  margin-top: 44px;
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.studio-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px 28px;
  perspective: 1000px;
}
.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 -10px;
  transition: transform 0.45s var(--ease), z-index 0s;
}
.dock-item .squircle {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  background: linear-gradient(160deg, #27272c 0%, #121215 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.85),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  padding: 16px;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.dock-item svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5)); }

/* Depth Hierarchy matching Apple Creator Studio thumbnail */
.dock-item.pos-C { z-index: 10; transform: scale(1.22) translateY(-6px); }
.dock-item.pos-L1, .dock-item.pos-R1 { z-index: 8; transform: scale(1.05); }
.dock-item.pos-L2, .dock-item.pos-R2 { z-index: 6; transform: scale(0.92); opacity: 0.92; }
.dock-item.pos-L3, .dock-item.pos-R3 { z-index: 4; transform: scale(0.8); opacity: 0.82; }

.dock-item:hover, .dock-item.active {
  z-index: 15 !important;
  opacity: 1 !important;
}
.dock-item:hover .squircle, .dock-item.active .squircle {
  transform: translateY(-10px) scale(1.08);
  border-color: rgba(255, 255, 255, 0.55);
}
.sq-purple { box-shadow: 0 24px 55px rgba(168, 85, 247, 0.4), inset 0 1px 2px rgba(255,255,255,0.35) !important; }
.sq-coral  { box-shadow: 0 20px 45px rgba(244, 63, 94, 0.28), inset 0 1px 1px rgba(255,255,255,0.25) !important; }
.sq-blue   { box-shadow: 0 20px 45px rgba(59, 130, 246, 0.28), inset 0 1px 1px rgba(255,255,255,0.25) !important; }
.sq-amber  { box-shadow: 0 20px 45px rgba(245, 158, 11, 0.25), inset 0 1px 1px rgba(255,255,255,0.25) !important; }
.sq-emerald{ box-shadow: 0 20px 45px rgba(16, 185, 129, 0.25), inset 0 1px 1px rgba(255,255,255,0.25) !important; }
.sq-cyan   { box-shadow: 0 20px 45px rgba(6, 182, 212, 0.25), inset 0 1px 1px rgba(255,255,255,0.25) !important; }
.sq-pink   { box-shadow: 0 20px 45px rgba(236, 72, 153, 0.25), inset 0 1px 1px rgba(255,255,255,0.25) !important; }

.dock-label {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  color: #a1a1aa;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: color 0.2s, opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.dock-item:hover .dock-label, .dock-item.active .dock-label {
  color: #fff;
  opacity: 1;
  transform: translateY(0);
}

.dock-readout {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  max-width: 680px;
  text-align: left;
}
.dock-readout-badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.22);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #e9d5ff;
}
.dock-readout-text {
  font-size: 13.5px;
  color: #d4d4d8;
  line-height: 1.45;
}

.hero-actions {
  position: relative;
  z-index: 3;
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* ---------- Hero 3D Device & Floating Flagship Reels ---------- */
.hero-reel {
  position: relative;
  margin-top: 56px;
  width: 100%;
  max-width: 1140px;
  height: 700px;
  z-index: 2;
}
.device {
  position: relative;
  width: 336px;
  aspect-ratio: 9 / 19.2;
  margin: 0 auto;
  border-radius: 52px;
  padding: 11px;
  background: linear-gradient(145deg, #3f3f46, #18181b);
  box-shadow:
    0 0 0 2px #27272a,
    0 50px 120px -20px rgba(168, 85, 247, 0.35),
    0 30px 60px rgba(0, 0, 0, 0.85);
  z-index: 3;
}
.device video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 42px;
  background: #000;
}
.device::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  border-radius: 20px;
  background: #000;
  z-index: 4;
}
.device-overlay {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.device-tag, .device-mute-btn {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  padding: 5px 11px;
  border-radius: 99px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.device-mute-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: scale(1.04);
}
.device-mute-btn.unmuted {
  background: #34d399;
  color: #000;
}
.device-expand {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent1);
  padding: 4px 10px;
  border-radius: 99px;
}

.float {
  position: absolute;
  width: 196px;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.75);
  opacity: 0.9;
  will-change: transform;
  transition: opacity 0.3s, border-color 0.3s;
}
.float:hover {
  opacity: 1;
  border-color: var(--accent1);
  z-index: 6;
}
.float video { width: 100%; height: 100%; object-fit: cover; }
.float-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-align: left;
}
.f1 { left: 3%;  top: 30px; }
.f2 { left: 15%; top: 350px; width: 172px; }
.f3 { right: 3%; top: 30px; }
.f4 { right: 15%; top: 350px; width: 172px; }

/* ---------- Section Heads ---------- */
.section-head {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}
.section-title {
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.section-lead {
  font-size: 19px;
  color: #a1a1aa;
  max-width: 720px;
  margin-top: 16px;
  line-height: 1.55;
}
.section-lead strong { color: #fff; }

/* ---------- 4. Featured 4 Projects (Bento Grid) ---------- */
.featured-section {
  padding: 130px 0 80px;
}
.featured-grid {
  max-width: 1180px;
  margin: 52px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feat-card {
  background: linear-gradient(165deg, #16161d 0%, #0d0d11 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.feat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 28px 60px -15px rgba(0, 0, 0, 0.85);
}
.feat-media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}
.feat-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feat-play-btn {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  transition: transform 0.2s;
}
.feat-media:hover .feat-play-btn { transform: scale(1.06); }
.feat-len {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.feat-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.feat-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.feat-client-pill {
  font-size: 12px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(41, 151, 255, 0.14);
  padding: 4px 10px;
  border-radius: 99px;
}
.feat-res-pill {
  font-family: var(--mono);
  font-size: 11px;
  color: #a1a1aa;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 99px;
}
.feat-body h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.feat-sub {
  font-size: 13.5px;
  font-weight: 600;
  color: #c084fc;
  margin-top: 4px;
}
.feat-desc {
  font-size: 14.5px;
  color: #a1a1aa;
  line-height: 1.55;
  margin-top: 12px;
}
.feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.feat-tags span {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.feat-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.feat-watch-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 99px;
  transition: background 0.2s;
}
.feat-watch-link:hover { background: var(--accent1); color: #fff; }

/* ---------- 5. Scroll Statement ---------- */
.statement { height: 220vh; position: relative; }
.statement-text {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 22px;
  gap: 0 0.26em;
  font-size: clamp(32px, 5.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-align: center;
}
.statement-text .w { color: #27272a; transition: color 0.25s; }
.statement-text .w.on { color: var(--fg); }
.statement-text em { font-style: normal; display: contents; }
.statement-text .w.em.on {
  background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 6. Stats ---------- */
.stats {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 22px 130px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}
.stat .num {
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.stat .plus {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent2);
  margin-left: 6px;
}
.stat p { color: var(--muted); font-size: 16px; margin-top: 6px; }

/* ---------- 7. Sticky Feature + CapCut Pro PC Timeline UI ---------- */
.feature {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
}
.feature-sticky {
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  display: grid;
  place-items: center;
}
.studio-monitor {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.device-sm { width: 256px; }
.feature-sticky video { transition: opacity 0.3s; }

/* CapCut Pro PC Mini Timeline */
.timeline-ui {
  width: 100%;
  max-width: 500px;
  background: #111116;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}
.tl-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.tl-dot { width: 9px; height: 9px; border-radius: 50%; }
.tl-dot.red { background: #ff5f56; }
.tl-dot.yellow { background: #ffbd2e; }
.tl-dot.green { background: #27c93f; }
.tl-title { font-size: 11.5px; font-weight: 700; color: #d4d4d8; margin-left: 6px; }
.tl-tc { margin-left: auto; font-family: var(--mono); font-size: 11px; color: #38bdf8; }

.tl-tracks {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tl-playhead {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 35%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 8px #fff;
  z-index: 5;
  animation: playheadMove 6s linear infinite alternate;
}
.tl-playhead::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 10px;
  height: 10px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
@keyframes playheadMove {
  from { left: 18%; }
  to { left: 88%; }
}
.tl-track {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 8px;
}
.tl-lbl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.tl-clips {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: 6px;
}
.tl-clip {
  font-size: 9.5px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.c-coral   { background: rgba(244, 63, 94, 0.45); border-left: 3px solid #fb7185; }
.c-amber   { background: rgba(245, 158, 11, 0.45); border-left: 3px solid #fbbf24; }
.c-purple  { background: rgba(168, 85, 247, 0.45); border-left: 3px solid #c084fc; }
.c-blue    { background: rgba(59, 130, 246, 0.45); border-left: 3px solid #60a5fa; }
.c-emerald { background: rgba(16, 185, 129, 0.38); border-left: 3px solid #34d399; color: #a7f3d0; }

.feature-steps { padding: 20vh 0; }
.step {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.22;
  transition: opacity 0.45s var(--ease);
}
.step.active { opacity: 1; }
.step-no {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent1);
  margin-bottom: 12px;
}
.step h2 {
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.step p {
  font-size: 18px;
  line-height: 1.6;
  color: #a1a1aa;
  margin-top: 16px;
  max-width: 480px;
}

/* ---------- 8. Work Rails (23 Videos) ---------- */
.work { padding: 140px 0 60px; }
.rail-block { margin-top: 64px; }
.rail-head {
  max-width: 1180px;
  margin: 0 auto 20px;
  padding: 0 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.rail-head h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.rail-head p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1d1d22;
  border: 1px solid var(--line);
  font-size: 18px;
  transition: background 0.2s;
}
.rail-nav button:hover { background: #2e2e36; }
.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px max(22px, calc((100vw - 1180px) / 2)) 30px;
}
.rail::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 auto;
  width: 248px;
  scroll-snap-align: start;
  cursor: pointer;
  text-align: left;
  transition: transform 0.45s var(--ease);
}
.card:hover { transform: translateY(-8px); }
.card-media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.card.is-featured .card-media {
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 12px 30px -8px rgba(168, 85, 247, 0.35);
}
.card-badge-star {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, #2997ff, #a855f7);
  color: #fff;
}
.card-media img, .card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media video { opacity: 0; transition: opacity 0.35s; }
.card:hover .card-media video, .card.playing .card-media video { opacity: 1; }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.75));
  pointer-events: none;
}
.card-len {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 4px 9px;
  border-radius: 99px;
}
.card-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  display: grid;
  place-items: center;
  font-size: 12px;
  transform: scale(0.85);
  opacity: 0;
  transition: 0.3s var(--ease);
}
.card:hover .card-play { transform: none; opacity: 1; }
.card h4 { font-size: 16px; font-weight: 700; margin-top: 12px; letter-spacing: -0.01em; }
.card span.client { font-size: 13.5px; color: var(--muted); }

/* ---------- 9. Clients ---------- */
.clients { padding: 130px 0; }
.client-grid {
  max-width: 1180px;
  margin: 48px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.client {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 540px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 38px;
  isolation: isolate;
}
.client video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}
.client:hover video { transform: scale(1.1); }
.client::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 10%, rgba(0, 0, 0, 0.94) 82%);
}
.client .tag {
  font-size: 12.5px;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.client h3 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 10px;
}
.client p {
  color: #d4d4d8;
  font-size: 16px;
  line-height: 1.55;
  max-width: 460px;
}
.client-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.client-pills span {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.client .handle {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
  background: var(--accent1);
  padding: 10px 18px;
  border-radius: 99px;
  align-self: flex-start;
  transition: transform 0.2s, background 0.2s;
}
.client .handle:hover { transform: translateY(-2px); background: #0077ed; }

/* ---------- 10. Tools ---------- */
.tools {
  text-align: center;
  padding: 150px 22px;
  background: radial-gradient(60% 50% at 50% 50%, rgba(168, 85, 247, 0.18), transparent 70%);
}
.tools-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #e9d5ff;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  margin-bottom: 16px;
}
.tools-title {
  font-size: clamp(56px, 10vw, 136px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.tools-sub { font-size: 22px; color: #a1a1aa; margin-top: 18px; }
.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 880px;
  margin: 46px auto 0;
}
.skills li {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #e4e4e7;
}

/* ---------- 11. About Đồng ---------- */
.about {
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 22px;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
  align-items: center;
}
.about-card {
  position: relative;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(160deg, #27272c, #111115);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}
.about-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-badge-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}
.about-text p:not(.eyebrow) {
  font-size: 18.5px;
  line-height: 1.65;
  color: #a1a1aa;
  margin-top: 18px;
}
.about-text strong { color: var(--fg); font-weight: 600; }
.about-highlights {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ah-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.ah-item strong { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.ah-item span { display: block; font-size: 14.5px; font-weight: 700; color: #fff; margin-top: 4px; }

/* ---------- 12. Contact ---------- */
.contact {
  text-align: center;
  padding: 150px 22px 140px;
}
.contact-title {
  font-size: clamp(48px, 8.5vw, 112px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.contact-sub { font-size: 20px; color: #a1a1aa; margin-top: 20px; }
.contact-links {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-links a {
  padding: 15px 28px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
.contact-links a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
}
.contact-links a.primary {
  background: linear-gradient(135deg, #2997ff, #7c3aed);
  color: #fff;
  border-color: transparent;
}

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 13. Modal Player ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(30px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.35s var(--ease);
  padding: 20px;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-body {
  display: flex;
  gap: 36px;
  align-items: center;
  max-width: 920px;
  transform: scale(0.95);
  transition: transform 0.45s var(--ease);
}
.modal.open .modal-body { transform: none; }
.modal video {
  height: min(84vh, 820px);
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  background: #000;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}
.modal-info { max-width: 360px; }
.modal-info h3 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.modal-desc {
  font-size: 15px;
  color: #a1a1aa;
  line-height: 1.55;
  margin-top: 12px;
}
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.modal-meta span {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
}
.modal-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1d1d22;
  border: 1px solid var(--line-strong);
  font-size: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .studio-dock { transform: scale(0.82); margin: -12px 0; }
  .hero-reel { height: 620px; }
  .float { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; gap: 0; }
  .feature-sticky { height: auto; position: relative; top: 0; padding: 30px 0; }
  .feature-steps { padding: 20px 0 60px; }
  .step { min-height: auto; padding: 36px 0; opacity: 1; }
  .client-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about-card { max-width: 340px; margin: 0 auto; }
  .about-highlights { grid-template-columns: 1fr; }
  .modal-body { flex-direction: column; gap: 16px; }
  .modal video { height: 68vh; }
  .modal-info { text-align: center; }
  .modal-meta { justify-content: center; }
}
@media (max-width: 600px) {
  .studio-dock { transform: scale(0.64); }
  .feat-card { grid-template-columns: 1fr; }
  .feat-media { max-width: 260px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* =========================================================
   14. DIRECT STUDIO EDITOR MODE (CHẾ ĐỘ SỬA TRỰC TIẾP TRÊN WEB)
   ========================================================= */
.admin-fab-bar {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 350;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 99px;
  background: rgba(18, 18, 24, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}
.admin-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s;
}
.admin-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.admin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #71717a;
  transition: background 0.25s, box-shadow 0.25s;
}
body.edit-mode .admin-toggle-btn {
  background: rgba(168, 85, 247, 0.22);
  border-color: #a855f7;
  color: #fff;
}
body.edit-mode .admin-dot {
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}
.admin-act-btn {
  padding: 9px 15px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: transform 0.2s, background 0.2s;
}
.admin-act-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.admin-save-btn {
  background: linear-gradient(135deg, #2997ff, #7c3aed);
  border-color: transparent;
}
.admin-reset-btn {
  color: #fca5a5;
}

/* Inline Edit / Delete Action Overlays on Video Cards */
.card-admin-bar, .feat-admin-bar {
  display: none;
  gap: 6px;
  z-index: 20;
}
body.edit-mode .card-admin-bar {
  display: flex;
  position: absolute;
  top: 10px;
  right: 10px;
}
body.edit-mode .feat-admin-bar {
  display: flex;
  margin-left: auto;
}
.adm-pill {
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.adm-pill:hover {
  transform: scale(1.06);
  background: var(--accent1);
  border-color: var(--accent1);
}
.adm-pill.del:hover {
  background: #e11d48;
  border-color: #e11d48;
}
body.edit-mode .feat-card,
body.edit-mode .card-media {
  outline: 1.5px dashed rgba(168, 85, 247, 0.55);
  outline-offset: 3px;
}
body.edit-mode [contenteditable="true"] {
  outline: 1px dashed rgba(96, 165, 250, 0.5);
  outline-offset: 4px;
  border-radius: 6px;
  cursor: text;
}
body.edit-mode [contenteditable="true"]:focus {
  outline: 2px solid #2997ff;
  background: rgba(41, 151, 255, 0.08);
}

/* Edit Project Modal */
.edit-modal {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(22px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s var(--ease);
}
.edit-modal.open {
  opacity: 1;
  visibility: visible;
}
.edit-dialog {
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  background: #14141b;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9);
}
.edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.edit-header h3 { font-size: 22px; font-weight: 800; }
.edit-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
}
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ef-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ef-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #a1a1aa;
}
.ef-field input[type="text"],
.ef-field select,
.ef-field textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0b0b0f;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}
.ef-field input:focus,
.ef-field select:focus,
.ef-field textarea:focus {
  outline: none;
  border-color: var(--accent1);
}
.ef-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #e9d5ff;
  cursor: pointer;
}
.ef-checkbox input { width: 17px; height: 17px; accent-color: #a855f7; }
.ef-featured-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.ef-video-replace {
  padding: 14px;
  border-radius: 14px;
  background: rgba(41, 151, 255, 0.07);
  border: 1px dashed rgba(41, 151, 255, 0.4);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ef-vr-title { font-size: 13px; font-weight: 700; color: #93c5fd; }
.ef-vr-controls { display: flex; flex-direction: column; gap: 8px; }
.ef-vr-controls input[type="file"] { font-size: 12.5px; color: #d4d4d8; }
.ef-vr-controls input[type="text"] {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0b0f;
  color: #fff;
  font-size: 12.5px;
}
.ef-hint { font-size: 11.5px; color: #a1a1aa; line-height: 1.45; }

.edit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.edit-footer-right { display: flex; gap: 10px; }
.btn-danger {
  padding: 10px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(225, 29, 72, 0.16);
  border: 1px solid rgba(225, 29, 72, 0.45);
  color: #fda4af;
}
.btn-danger:hover { background: #e11d48; color: #fff; }
.btn-cancel {
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
}
.btn-save {
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 700;
  background: linear-gradient(135deg, #2997ff, #7c3aed);
  color: #fff;
}

.studio-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%) translateY(20px);
  z-index: 500;
  padding: 11px 22px;
  border-radius: 99px;
  background: #18181f;
  border: 1px solid var(--accent1);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s var(--ease);
}
.studio-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


/* =========================================================
   15. APPLE STUDIO WHITE THEME (PHÔNG NỀN TRẮNG MẶC ĐỊNH)
   Có thể chuyển đổi qua lại giữa Trắng (Mặc định) & Đen (.dark-theme)
   ========================================================= */
.theme-toggle-btn {
  padding: 6px 13px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  background: rgba(128, 128, 128, 0.12);
  color: var(--fg);
  transition: transform 0.2s, background 0.2s;
}
.theme-toggle-btn:hover {
  transform: scale(1.04);
  background: rgba(128, 128, 128, 0.22);
}

body:not(.dark-theme) {
  --bg: #fbfbfd;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-hover: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.15);
  --accent1: #0066cc;
  --accent2: #7c3aed;
  --accent3: #e11d48;
  background: var(--bg);
  color: var(--fg);
}

/* Intro on White Theme */
body:not(.dark-theme) .intro {
  background: #fbfbfd;
}
body:not(.dark-theme) .intro-badge {
  color: #515154;
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
}
body:not(.dark-theme) .intro-word {
  background: linear-gradient(180deg, #1d1d1f 20%, #6e6e73 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body:not(.dark-theme) .intro-skip {
  color: #515154;
  background: rgba(0, 0, 0, 0.05);
}

/* Header Nav on White Theme */
body:not(.dark-theme) .nav {
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
body:not(.dark-theme) .logo-mark { color: #1d1d1f; }
body:not(.dark-theme) .logo-sub { color: #6e6e73; }
body:not(.dark-theme) .nav nav { color: #424245; }
body:not(.dark-theme) .nav nav a:hover { color: #000; }
body:not(.dark-theme) .nav-cta {
  background: #1d1d1f;
  color: #fff !important;
}
body:not(.dark-theme) .nav-cta:hover {
  background: #0066cc;
}

/* Hero Section on White Theme */
body:not(.dark-theme) .hero-ambient {
  background: radial-gradient(50% 50% at 50% 45%, rgba(124, 58, 237, 0.14) 0%, rgba(0, 102, 204, 0.1) 45%, transparent 75%);
}
body:not(.dark-theme) .creator-lockup {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
body:not(.dark-theme) .creator-suite-name { color: #1d1d1f; }
body:not(.dark-theme) .hero-sub { color: #515154; }
body:not(.dark-theme) .hero-sub strong { color: #1d1d1f; }

/* Squircle Dock on White Theme: keep icons sleek dark-glass like macOS dock on light wallpaper */
body:not(.dark-theme) .dock-item .squircle {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}
body:not(.dark-theme) .dock-label { color: #515154; }
body:not(.dark-theme) .dock-item:hover .dock-label,
body:not(.dark-theme) .dock-item.active .dock-label {
  color: #1d1d1f;
}
body:not(.dark-theme) .dock-readout {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
body:not(.dark-theme) .dock-readout-badge {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.3);
  color: #6d28d9;
}
body:not(.dark-theme) .dock-readout-text { color: #3a3a3c; }

body:not(.dark-theme) .btn-glass {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #1d1d1f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
body:not(.dark-theme) .btn-glass:hover {
  background: #f5f5f7;
}

/* Hero Device & Floating Cards on White Theme */
body:not(.dark-theme) .device {
  box-shadow:
    0 0 0 2px #d2d2d7,
    0 45px 100px -20px rgba(124, 58, 237, 0.22),
    0 25px 50px rgba(0, 0, 0, 0.18);
}
body:not(.dark-theme) .float {
  border: 2px solid #ffffff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}

/* Featured 4 Projects Bento on White Theme */
body:not(.dark-theme) .section-lead { color: #515154; }
body:not(.dark-theme) .section-lead strong { color: #1d1d1f; }
body:not(.dark-theme) .feat-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}
body:not(.dark-theme) .feat-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.11);
}
body:not(.dark-theme) .feat-client-pill {
  color: #0066cc;
  background: rgba(0, 102, 204, 0.1);
}
body:not(.dark-theme) .feat-res-pill {
  color: #515154;
  border-color: rgba(0, 0, 0, 0.14);
}
body:not(.dark-theme) .feat-body h3 { color: #1d1d1f; }
body:not(.dark-theme) .feat-sub { color: #7c3aed; }
body:not(.dark-theme) .feat-desc { color: #515154; }
body:not(.dark-theme) .feat-tags span {
  background: #f5f5f7;
  color: #3a3a3c;
  border-color: rgba(0, 0, 0, 0.08);
}
body:not(.dark-theme) .feat-watch-link {
  background: #1d1d1f;
  color: #ffffff;
}
body:not(.dark-theme) .feat-watch-link:hover {
  background: #0066cc;
}

/* Scroll Statement on White Theme */
body:not(.dark-theme) .statement-text .w { color: #d2d2d7; }
body:not(.dark-theme) .statement-text .w.on { color: #1d1d1f; }

/* Sticky Workflow & Timeline on White Theme */
body:not(.dark-theme) .step p { color: #515154; }
body:not(.dark-theme) .timeline-ui {
  background: #18181f;
  color: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16);
}

/* Archive Rails on White Theme */
body:not(.dark-theme) .rail-nav button {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1d1d1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
body:not(.dark-theme) .rail-nav button:hover {
  background: #f5f5f7;
}
body:not(.dark-theme) .card-media {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.08);
}
body:not(.dark-theme) .card-len {
  color: #ffffff;
}
body:not(.dark-theme) .card h4 { color: #1d1d1f; }

/* Keep Client Showcase overlay text crisp white since it sits over video */
body:not(.dark-theme) .client {
  color: #ffffff;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.14);
}
body:not(.dark-theme) .client h3 { color: #ffffff; }
body:not(.dark-theme) .client p { color: #e4e4e7; }

/* Tools & Skills on White Theme */
body:not(.dark-theme) .tools {
  background: radial-gradient(60% 50% at 50% 50%, rgba(124, 58, 237, 0.09), transparent 70%);
}
body:not(.dark-theme) .tools-badge {
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.07);
}
body:not(.dark-theme) .tools-sub { color: #515154; }
body:not(.dark-theme) .skills li {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

/* About Section on White Theme */
body:not(.dark-theme) .about-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}
body:not(.dark-theme) .about-badge-overlay {
  color: #ffffff;
}
body:not(.dark-theme) .about-text p:not(.eyebrow) { color: #515154; }
body:not(.dark-theme) .about-text strong { color: #1d1d1f; }
body:not(.dark-theme) .ah-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}
body:not(.dark-theme) .ah-item span { color: #1d1d1f; }

/* Contact Section on White Theme */
body:not(.dark-theme) .contact-sub { color: #515154; }
body:not(.dark-theme) .contact-links a:not(.primary) {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.14);
  color: #1d1d1f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
body:not(.dark-theme) .contact-links a:not(.primary):hover {
  background: #f5f5f7;
}
