/* =============================================
   CHỐNG THẤM UY VIỆT — LUXURY CATALOG v4
   Premium Design System — Full Overhaul
   ============================================= */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@property --shimmer-pos {
  syntax: '<percentage>';
  initial-value: -100%;
  inherits: false;
}
:root {
  /* === MARBLE TILE THEME — Optimized for readability === */
  --navy: #1B365D;
  --navy-dark: #0f2240;
  --navy-deep: #1a2540;
  --sky: #2a6cb5;
  --sky-light: #1e5a9e;
  --sky-glow: rgba(42,108,181,0.3);
  --gold: #b07020;
  --gold-light: #c88530;
  --gold-glow: rgba(176,112,32,0.35);
  --emerald: #14805a;
  --rose: #c0407a;
  --white: #FFFFFF;
  --gray-50: #f5f5f2;
  --gray-200: #2a2f3a;
  --gray-400: #4a4f5a;
  --gray-600: #6a6f7a;
  --dark: #1a2540;
  --glass: rgba(255,255,255,0.82);
  --glass-border: rgba(30,42,64,0.18);
  --shadow: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --corner-len: 28px;
  --corner-w: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Tile texture colors */
  --tile-bg: #f5f5f0;
  --tile-vein1: rgba(160,155,148,0.08);
  --tile-vein2: rgba(140,135,125,0.05);
  --tile-grid: rgba(200,195,190,0.15);
  --text-primary: #1a1f2e;
  --text-secondary: #3a3f50;
  --text-muted: #5a6070;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; overflow-x: hidden; }
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: #e8e8e8;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* === Fixed marble tile background — Base layer === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('images/marble-tile.jpg') center / cover no-repeat fixed;
}
/* === Animated vein overlay — slow drift === */
body::after {
  content: '';
  position: fixed;
  top: -20%; left: -20%;
  width: 140%;
  height: 140%;
  z-index: 0;
  pointer-events: none;
  background: url('images/marble-tile.jpg') center / 120% 120% no-repeat;
  opacity: 0.15;
  mix-blend-mode: multiply;
  filter: contrast(1.8) brightness(0.9);
  animation: marbleVeinDrift 60s ease-in-out infinite alternate;
}
@keyframes marbleVeinDrift {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  20% {
    transform: translate(3%, -2%) scale(1.02) rotate(0.3deg);
  }
  40% {
    transform: translate(-2%, 3%) scale(0.98) rotate(-0.2deg);
  }
  60% {
    transform: translate(2%, 1%) scale(1.01) rotate(0.15deg);
  }
  80% {
    transform: translate(-1%, -2%) scale(1.03) rotate(-0.3deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}
::selection { background: var(--gold); color: var(--white); }

/* =============================================
   HERO BACKGROUNDS
   ============================================= */
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg,
    rgba(26,31,46,0.82) 0%,
    rgba(44,62,90,0.65) 40%,
    rgba(26,31,46,0.85) 100%);
}
.hero-overlay.dark {
  background: linear-gradient(135deg,
    rgba(26,31,46,0.9) 0%,
    rgba(44,62,90,0.78) 40%,
    rgba(26,31,46,0.92) 100%);
}

/* =============================================
   SPLIT LAYOUT — Magazine style
   ============================================= */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
}
.split-layout.reverse { direction: rtl; }
.split-layout.reverse > * { direction: ltr; }

.split-image {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.split-image .hero-bg {
  animation: kenBurns1 20s ease-in-out infinite alternate;
}
.split-image:hover .hero-bg {
  animation-play-state: paused;
  transform: scale(1.05);
}
/* ====== Inner Double-Frame on Split Images ====== */
.split-image > .split-image-overlay::before {
  content: '';
  position: absolute;
  inset: 20px; z-index: 3;
  pointer-events: none;
  /* Double frame: outer gold, gap, inner sky */
  box-shadow:
    0 0 0 1px rgba(232,168,56,0.25),
    0 0 0 5px rgba(6,13,26,0.5),
    0 0 0 6px rgba(74,144,217,0.15),
    inset 0 0 60px rgba(232,168,56,0.04);
  border-radius: 4px;
  /* Corner bracket ornaments */
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 50px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 2px 50px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 50px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 2px 50px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 50px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 2px 50px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 50px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 2px 50px no-repeat,
    /* Corner dots */
    radial-gradient(circle 4px, var(--gold) 60%, transparent 61%) 0 0 / 8px 8px no-repeat,
    radial-gradient(circle 4px, var(--gold) 60%, transparent 61%) calc(100% - 0px) 0 / 8px 8px no-repeat,
    radial-gradient(circle 4px, var(--gold) 60%, transparent 61%) 0 calc(100% - 0px) / 8px 8px no-repeat,
    radial-gradient(circle 4px, var(--gold) 60%, transparent 61%) calc(100% - 0px) calc(100% - 0px) / 8px 8px no-repeat;
  opacity: 0.6;
  transition: all 0.7s var(--ease);
}
.split-image:hover > .split-image-overlay::before {
  inset: 14px;
  opacity: 1;
  box-shadow:
    0 0 0 2px rgba(232,168,56,0.4),
    0 0 0 6px rgba(6,13,26,0.4),
    0 0 0 7px rgba(74,144,217,0.25),
    0 0 30px rgba(232,168,56,0.08),
    inset 0 0 80px rgba(232,168,56,0.06);
  filter: drop-shadow(0 0 6px rgba(232,168,56,0.2));
}
.split-image-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(6,13,26,0.6), transparent 60%);
}
.split-layout.reverse .split-image-overlay {
  background: linear-gradient(to left, rgba(6,13,26,0.6), transparent 60%);
}
.split-image-stats {
  position: absolute;
  bottom: 40px; left: 40px;
  z-index: 3;
  display: flex; flex-direction: column; gap: 16px;
}
.float-stat {
  background: rgba(26,31,46,0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(200,135,46,0.2);
  border-radius: 16px;
  padding: 20px 28px;
  display: flex; align-items: baseline; gap: 4px;
  flex-wrap: wrap;
  box-shadow:
    inset 0 0 0 1px rgba(200,135,46,0.06),
    inset 0 0 0 4px rgba(26,31,46,0.7),
    inset 0 0 0 5px rgba(58,124,194,0.06),
    0 10px 40px rgba(0,0,0,0.25);
  animation: fadeInUp 0.8s 0.5s both;
  color: var(--white);
}
.float-stat.accent { border-color: rgba(74,144,217,0.3); }
.float-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px; font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.float-stat-plus {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px; font-weight: 800;
  color: var(--gold);
}
.float-stat-label {
  width: 100%;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gray-400);
}

.split-content {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  background: transparent;
  position: relative;
  overflow: hidden;
}
.split-content::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,144,217,0.04), transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

/* =============================================
   CURSOR GLOW
   ============================================= */
#cursorGlow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,144,217,0.05) 0%, rgba(232,168,56,0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
  mix-blend-mode: screen;
}
body:hover #cursorGlow { opacity: 1; }

/* =============================================
   EDITABLE ELEMENTS
   ============================================= */
.editable {
  position: relative;
  transition: all 0.3s var(--ease);
  border-radius: 4px;
  outline: none;
  cursor: text;
}
.editable:hover { background: rgba(42,108,181,0.06); }
.editable:focus {
  background: rgba(42,108,181,0.08);
  box-shadow: inset 0 0 0 2px var(--sky), 0 0 20px rgba(42,108,181,0.06);
}
.editable[contenteditable="true"]::after {
  content: '';
  position: absolute; top: -3px; right: -6px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-glow);
  animation: editPulse 2.5s infinite;
}
@keyframes editPulse {
  0%,100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.8); opacity: 0.2; }
}

/* =============================================
   EDIT INDICATOR, LANG TOGGLE, PAGE NAV
   ============================================= */
.edit-indicator {
  position: fixed; bottom: 24px; left: 24px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  background: rgba(6,13,26,0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  font-size: 11px; color: var(--gray-400);
  z-index: 1000; opacity: 0.5;
  transition: all 0.4s var(--ease);
  letter-spacing: 0.5px;
}
.edit-indicator:hover { opacity: 1; border-color: var(--sky); }
.edit-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: editPulse 2.5s infinite;
}

.lang-toggle {
  position: fixed; top: 24px; right: 24px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,13,26,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  cursor: pointer; z-index: 1000;
  transition: all 0.4s var(--ease);
  font-size: 24px;
}
.lang-toggle:hover { transform: scale(1.15); background: rgba(74,144,217,0.2); border-color: var(--sky); }

.export-edge {
  position: fixed; top: 50%; right: 0;
  transform: translateY(-50%);
  z-index: 1001;
  display: flex; align-items: center;
}
.export-edge-tab {
  width: 32px; height: 64px;
  background: rgba(6,13,26,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-right: none;
  border-radius: 14px 0 0 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer;
  transition: all 0.4s var(--ease);
}
.export-edge-tab:hover { width: 38px; background: rgba(74,144,217,0.2); }
.export-panel {
  width: 0; overflow: hidden;
  background: rgba(26,31,46,0.95);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(200,135,46,0.15);
  border-right: none;
  border-radius: 20px 0 0 20px;
  transition: width 0.5s var(--ease), padding 0.5s;
  padding: 0;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  color: var(--white);
}
.export-edge:hover .export-panel { width: 260px; padding: 20px; }
.export-size-selector { margin-bottom: 10px; }
.export-size-label { font-size: 10px; color: var(--gray-400); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; display: block; white-space: nowrap; }
.export-size-pills { display: flex; gap: 3px; flex-wrap: wrap; }
.size-pill {
  padding: 5px 10px; border: 1px solid var(--glass-border); border-radius: 6px;
  background: transparent; color: var(--gray-400); font-size: 10px; font-weight: 700;
  cursor: pointer; transition: all 0.3s var(--ease); white-space: nowrap;
  font-family: 'Montserrat', sans-serif; letter-spacing: 0.5px;
}
.size-pill:hover { border-color: var(--sky); color: var(--sky-light); }
.size-pill.active { background: linear-gradient(135deg, var(--sky), var(--gold)); border-color: transparent; color: var(--navy-deep); }
.export-custom-size {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
}
.export-custom-size input {
  width: 56px; padding: 5px 8px; border: 1px solid var(--glass-border); border-radius: 6px;
  background: rgba(15,34,64,0.5); color: var(--white); font-size: 12px; font-family: 'Montserrat';
  text-align: center; outline: none;
}
.export-custom-size input:focus { border-color: var(--gold); }
.export-custom-size span { font-size: 11px; color: var(--gray-400); }
.export-title { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 10px; white-space: nowrap; letter-spacing: 2px; text-transform: uppercase; }
.export-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap;
  font-size: 13px;
  transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.export-option::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(74,144,217,0.1), transparent); opacity: 0; transition: opacity 0.3s; }
.export-option:hover::before { opacity: 1; }
.export-option:hover { transform: translateX(-6px); }
.export-icon { font-size: 18px; }
.export-progress { margin-top: 10px; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; position: relative; display: none; }
.export-progress.active { display: block; }
.export-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--sky), var(--gold), var(--emerald)); transition: width 0.3s; }
#exportProgressText { position: absolute; top: -20px; right: 0; font-size: 10px; color: var(--gray-600); }

.page-nav {
  position: fixed; left: 20px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 1000;
}
.page-dot {
  width: 6px; height: 6px;
  background: rgba(26,37,64,0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.5s var(--ease);
}
.page-dot:hover { background: rgba(26,37,64,0.45); transform: scale(1.8); }
.page-dot.active {
  background: var(--gold);
  height: 28px;
  border-radius: 4px;
  box-shadow: 0 0 16px var(--gold-glow);
}

.page-counter {
  position: fixed; bottom: 24px; right: 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 600;
  color: rgba(26,37,64,0.35);
  z-index: 1000;
  letter-spacing: 3px;
}
#currentPage {
  font-size: 22px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 32px;
  background: rgba(26,31,46,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(200,135,46,0.2);
  border-radius: 40px;
  font-size: 13px; color: var(--white);
  pointer-events: none; opacity: 0; z-index: 9999;
  transition: all 0.5s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================
   PAGES GENERAL
   ============================================= */
.catalog { width: 100%; position: relative; z-index: 1; }
.page {
  width: 100%; min-height: 100vh;
  scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  /* Transparent — fixed marble tile shows through */
  background: transparent;
}
/* Very subtle grain overlay */
.page::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(140,135,125,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
/* Soft warm orb accent */
.page::after {
  content: '';
  position: absolute; z-index: 0;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,135,46,0.03), rgba(58,124,194,0.02), transparent 70%);
  top: 10%; right: -10%;
  animation: orbDrift 18s ease-in-out infinite;
  pointer-events: none;
  filter: blur(60px);
}
.page:nth-child(odd)::after { top: auto; bottom: 10%; right: auto; left: -10%; animation-delay: -6s; }
/* Section divider between pages */
.page + .page { border-top: 1px solid rgba(180,175,165,0.12); }
.page-inner {
  max-width: 1000px; width: 100%;
  padding: 60px 48px;
  position: relative; z-index: 2;
}

/* =============================================
   TYPOGRAPHY — Luxury
   ============================================= */
.section-label {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0; transform: translateY(20px);
  text-shadow: none;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: '\25C6';
  font-size: 8px;
  color: var(--gold);
  animation: cornerFlash 3s ease-in-out infinite;
}
.section-label::after {
  content: '';
  flex: 1; max-width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--sky) 50%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 80px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sky), transparent);
  border-radius: 3px;
  transform: scaleX(0); transform-origin: left;
}
.animate-in .section-title::after {
  animation: accentLineIn 0.8s 0.4s forwards;
}
.section-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 40px; line-height: 1.7; }
.body-text { font-size: 15px; line-height: 1.9; color: var(--text-secondary); margin-bottom: 18px; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.85) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
@keyframes morphBlob { 0%,100% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; } 50% { border-radius: 30% 60% 70% 40%/50% 60% 30% 60%; } }
@keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes scrollArrow { 0% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(18px); opacity: 0.2; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 15px rgba(74,144,217,0.15); } 50% { box-shadow: 0 0 35px rgba(74,144,217,0.35); } }
@keyframes borderSpin { to { --border-angle: 360deg; } }
@keyframes accentLineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stampIn { 0% { transform: scale(2) rotate(-15deg); opacity: 0; } 60% { transform: scale(0.9) rotate(3deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes cornerFlash { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes kenBurns1 { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.12) translate(-2%,-1%); } }
@keyframes kenBurns2 { 0% { transform: scale(1.1) translate(-2%,-1%); } 100% { transform: scale(1) translate(1%,1%); } }
@keyframes orbDrift { 0%,100% { transform: translate(0,0) scale(1); opacity: 0.5; } 33% { transform: translate(40px,-25px) scale(1.15); opacity: 0.7; } 66% { transform: translate(-25px,20px) scale(0.9); opacity: 0.4; } }
@keyframes dotPulse { 0%,100% { opacity: 0.03; } 50% { opacity: 0.07; } }
@keyframes ribbonWave { 0%,100% { transform: perspective(200px) rotateY(0); } 50% { transform: perspective(200px) rotateY(5deg); } }

.animate-in .section-label { animation: fadeInUp 0.7s 0.1s forwards; }
.animate-in .section-title { animation: fadeInUp 0.7s 0.2s forwards; opacity: 0; transform: translateY(20px); }
.animate-in .section-sub { animation: fadeInUp 0.7s 0.35s forwards; opacity: 0; transform: translateY(20px); }
.animate-in .body-text { animation: fadeInUp 0.6s forwards; opacity: 0; transform: translateY(15px); }
.animate-in .body-text:nth-child(3) { animation-delay: 0.25s; }
.animate-in .body-text:nth-child(4) { animation-delay: 0.4s; }
.animate-in .body-text:nth-child(5) { animation-delay: 0.55s; }

/* =============================================
   GLASS CARD — Premium Double-Frame System
   ============================================= */
.glass-card {
  --corner-len: 44px;
  --corner-w: 3px;
  --frame-color: var(--gold);
  --frame-color2: var(--sky);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 2.5px solid rgba(30,42,64,0.12);
  border-radius: var(--radius);
  transition: all 0.55s var(--ease);
  position: relative; overflow: hidden;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image:
    linear-gradient(rgba(255,255,255,0.92), rgba(252,252,248,0.92)),
    conic-gradient(from var(--border-angle), rgba(27,54,93,0.25), rgba(176,112,32,0.4), rgba(20,128,90,0.2), rgba(27,54,93,0.25));
  animation: borderSpin 5s linear infinite;
  /* Strong inset frame for marble readability */
  box-shadow:
    inset 0 0 0 1px rgba(176,112,32,0.15),
    inset 0 0 0 4px rgba(255,255,255,0.8),
    inset 0 0 0 5px rgba(27,54,93,0.1),
    0 6px 24px rgba(0,0,0,0.1),
    0 1px 3px rgba(0,0,0,0.06);
  color: var(--text-primary);
}
/* ---- Corner Brackets (outer gold L + inner diamond dots) ---- */
.glass-card::before {
  content: '';
  position: absolute; inset: 6px; z-index: 2;
  pointer-events: none;
  border-radius: calc(var(--radius) - 6px);
  background:
    /* Top-left L */
    linear-gradient(var(--frame-color), var(--frame-color)) top left / var(--corner-len) var(--corner-w) no-repeat,
    linear-gradient(var(--frame-color), var(--frame-color)) top left / var(--corner-w) var(--corner-len) no-repeat,
    /* Top-right L */
    linear-gradient(var(--frame-color), var(--frame-color)) top right / var(--corner-len) var(--corner-w) no-repeat,
    linear-gradient(var(--frame-color), var(--frame-color)) top right / var(--corner-w) var(--corner-len) no-repeat,
    /* Bottom-left L */
    linear-gradient(var(--frame-color), var(--frame-color)) bottom left / var(--corner-len) var(--corner-w) no-repeat,
    linear-gradient(var(--frame-color), var(--frame-color)) bottom left / var(--corner-w) var(--corner-len) no-repeat,
    /* Bottom-right L */
    linear-gradient(var(--frame-color), var(--frame-color)) bottom right / var(--corner-len) var(--corner-w) no-repeat,
    linear-gradient(var(--frame-color), var(--frame-color)) bottom right / var(--corner-w) var(--corner-len) no-repeat,
    /* Diamond dots at each corner intersection */
    radial-gradient(circle 3px, var(--frame-color) 70%, transparent 71%) 2px 2px / 6px 6px no-repeat,
    radial-gradient(circle 3px, var(--frame-color) 70%, transparent 71%) calc(100% - 2px) 2px / 6px 6px no-repeat,
    radial-gradient(circle 3px, var(--frame-color) 70%, transparent 71%) 2px calc(100% - 2px) / 6px 6px no-repeat,
    radial-gradient(circle 3px, var(--frame-color) 70%, transparent 71%) calc(100% - 2px) calc(100% - 2px) / 6px 6px no-repeat;
  opacity: 0.7;
  transition: all 0.5s var(--ease);
}
/* ---- Shimmer sweep on hover ---- */
.glass-card::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 45%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 55%, transparent 60%);
  transition: left 0.7s var(--ease);
  pointer-events: none; z-index: 3;
}
.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    inset 0 0 0 1px rgba(176,112,32,0.25),
    inset 0 0 0 4px rgba(255,255,255,0.6),
    inset 0 0 0 5px rgba(27,54,93,0.18),
    0 20px 50px rgba(0,0,0,0.15),
    0 0 40px rgba(176,112,32,0.08);
}
.glass-card:hover::before {
  opacity: 1;
  --corner-len: 54px;
  filter: drop-shadow(0 0 6px var(--gold-glow));
}
.glass-card:hover::after { left: 150%; }

/* ---- Card-type frame variants ---- */

/* Service cards: smaller elegant corners + top accent line */
.svc-card.glass-card { --corner-len: 24px; --corner-w: 1.5px; }
.svc-card.glass-card::after {
  top: 0; left: 0; right: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--sky), var(--gold), var(--sky), transparent);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.svc-card.glass-card:hover::after { left: 0; opacity: 1; }

/* Why-us cards: left accent bar */
.why-card.glass-card { --frame-color: var(--sky); }

/* Vision cards: emerald-tinted frame */
.vision-card.glass-card { --frame-color: var(--sky-light); --frame-color2: var(--emerald); }

/* Value items: compact diamond frame */
.value-item.glass-card { --corner-len: 18px; --corner-w: 1.5px; --frame-color: var(--gold-light); }

/* Detail cards: strong left accent + golden frame */
.detail-card.glass-card { --corner-len: 36px; }

/* Project cards: photo frame style */
.project-card.glass-card { --corner-len: 28px; }
.project-card.glass-card {
  box-shadow:
    inset 0 0 0 1px rgba(232,168,56,0.12),
    inset 0 0 0 4px rgba(6,13,26,0.7),
    inset 0 0 0 5px rgba(232,168,56,0.08);
}

/* Commit cards: seal frame with thicker corners */
.commit-card.glass-card { --corner-len: 32px; --corner-w: 2.5px; --frame-color: var(--emerald); }

/* =============================================
   COVER PAGE — Cinematic Full-bleed
   ============================================= */
.page-cover {
  background: transparent;
}
.cover-particles { position: absolute; inset: 0; overflow: hidden; z-index: 2; }
.particle {
  position: absolute;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.2;
  animation: float 6s ease-in-out infinite;
}
.cover-content {
  text-align: center;
  z-index: 3;
  position: relative;
  padding: 40px;
}
.cover-badge {
  display: inline-block;
  padding: 6px 24px;
  border: 1px solid rgba(232,168,56,0.3);
  border-radius: 30px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s 0.2s both;
  opacity: 0; transform: translateY(20px);
}
.cover-logo-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-bottom: 36px;
  animation: fadeInScale 1.2s 0.3s both;
}
.cover-logo-img {
  margin-bottom: 12px;
}
.cover-logo-icon {
  width: clamp(80px, 12vw, 140px);
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 0 25px rgba(232,168,56,0.35)) drop-shadow(0 0 60px rgba(232,168,56,0.15));
  animation: float 6s ease-in-out infinite, fadeInScale 1s 0.1s both;
}
.back-logo-icon {
  width: 80px; height: auto;
  margin-bottom: 8px;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 0 15px rgba(232,168,56,0.3));
}
.back-logo {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.logo-text-main {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 12px;
  color: var(--sky-light);
  text-shadow: 0 0 30px rgba(74,144,217,0.25);
}
.logo-text-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900; font-size: clamp(52px, 8vw, 84px);
  letter-spacing: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 30%, #fff 50%, var(--gold-light) 70%, var(--gold) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
  filter: drop-shadow(0 0 30px rgba(232,168,56,0.25));
  line-height: 1;
}
.cover-divider {
  width: 80px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 24px auto 28px;
  animation: fadeInUp 0.8s 0.5s both;
  opacity: 0;
}
.cover-title {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 400;
  color: var(--gray-200);
  margin-bottom: 10px; line-height: 1.6;
  animation: fadeInUp 0.8s 0.6s both;
  letter-spacing: 0.5px;
}
.cover-tagline {
  font-size: 14px; font-style: italic;
  color: var(--sky-light); opacity: 0.5;
  margin-bottom: 52px;
  animation: fadeInUp 0.8s 0.75s both;
}
.cover-contact {
  display: flex; gap: 28px; justify-content: center;
  flex-wrap: wrap; align-items: center;
  animation: fadeInUp 0.8s 0.9s both;
}
.cover-phone {
  display: flex; align-items: center; gap: 12px;
}
.phone-icon { font-size: 18px; }
.cover-hotline {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
}
.cover-sep {
  width: 1px; height: 24px;
  background: rgba(255,255,255,0.15);
}
.cover-web { font-size: 15px; color: var(--gray-400); letter-spacing: 2px; }
.cover-scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.4;
}
.cover-scroll-hint span { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gray-400); }
.scroll-arrow {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--sky-light), transparent);
  animation: scrollArrow 2.5s infinite;
}

/* =============================================
   ABOUT PAGE — Split with floating stats
   ============================================= */
.page-about { background: transparent; }
.about-mini-stats {
  display: flex; gap: 32px;
  margin-top: 24px; margin-bottom: 20px;
}
.mini-stat {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px;
}
.mini-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px; font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mini-plus {
  font-family: 'Montserrat'; font-size: 18px; font-weight: 800;
  color: var(--gold);
}
.mini-label {
  width: 100%; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--gray-400);
}
.about-address {
  margin-top: 12px;
  font-size: 13px; color: var(--gray-600);
  display: flex; align-items: center; gap: 8px;
}

/* =============================================
   TOC
   ============================================= */
.page-toc { background: transparent; }
.toc-list { display: flex; flex-direction: column; gap: 2px; }
.toc-item {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative; overflow: hidden;
  border: 1px solid transparent;
  border-left: 3px solid rgba(176,112,32,0.12);
}
.toc-item::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 0; height: 100%;
  background: linear-gradient(90deg, rgba(42,108,181,0.06), transparent);
  transition: width 0.5s var(--ease);
}
.toc-item:hover::before { width: 100%; }
.toc-item:hover {
  transform: translateX(10px);
  border-color: var(--glass-border);
  border-left-color: var(--gold);
  box-shadow: -4px 0 15px rgba(176,112,32,0.08);
}
.toc-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900; font-size: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 28px;
}
.toc-text { font-size: 15px; color: var(--gray-200); font-weight: 500; }
.toc-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(30,42,64,0.12), rgba(30,42,64,0.04));
}
.toc-page {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 12px;
  color: var(--gray-600); min-width: 24px; text-align: right;
}

/* =============================================
   VISION — Full bleed with overlay
   ============================================= */
.page-vision { background: transparent; }
.vision-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 36px;
}
.vision-card {
  padding: 36px;
  transition: all 0.5s var(--ease);
}
.vision-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 30px rgba(74,144,217,0.06);
}
.vision-icon { font-size: 40px; margin-bottom: 16px; }
.vision-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.vision-card p { font-size: 14px; line-height: 1.8; color: var(--gray-200); }

.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.value-item {
  text-align: center; padding: 28px 16px;
  background: rgba(232,168,56,0.03);
  border: 1px solid rgba(232,168,56,0.1);
  border-radius: var(--radius);
  transition: all 0.5s var(--ease);
}
.value-item:hover { transform: scale(1.08) translateY(-4px); border-color: rgba(232,168,56,0.25); }
.value-icon { font-size: 36px; margin-bottom: 12px; display: block; }
.value-item h4 {
  font-size: 12px; font-weight: 800;
  color: var(--white); letter-spacing: 2px; text-transform: uppercase;
}

/* =============================================
   WHY US
   ============================================= */
.page-why { background: transparent; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card {
  padding: 36px 28px;
  transition: all 0.5s var(--ease);
  position: relative; overflow: hidden;
  border-left: 3px solid transparent;
  background-origin: border-box;
}
.why-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--gold), var(--emerald));
  background-size: 200% 100%;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease), background-position 1s;
}
.why-card:hover::after { transform: scaleX(1); background-position: 100% 0; }
.why-card:hover {
  transform: translateY(-10px);
  border-left-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25), -4px 0 20px rgba(232,168,56,0.06);
}
.why-num {
  font-family: 'Montserrat'; font-size: 56px; font-weight: 900;
  background: linear-gradient(180deg, rgba(74,144,217,0.06), transparent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  position: absolute; top: 8px; right: 16px;
  transition: all 0.5s var(--ease);
}
.why-card:hover .why-num {
  background: linear-gradient(180deg, rgba(232,168,56,0.12), transparent);
  -webkit-background-clip: text; background-clip: text;
}
.why-card h4 {
  font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.why-card p { font-size: 13px; line-height: 1.7; color: var(--gray-200); }

/* =============================================
   SERVICES
   ============================================= */
.page-services { background: transparent; }
.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.svc-card {
  text-align: center; padding: 30px 12px;
  transition: all 0.5s var(--ease); cursor: default;
  --corner-len: 20px;
}
.svc-card:hover {
  transform: translateY(-10px) scale(1.06);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px rgba(74,144,217,0.08);
}
.svc-icon {
  font-size: 36px; margin-bottom: 14px; display: block;
  transition: transform 0.5s var(--ease-bounce);
  animation: float 5s ease-in-out infinite;
}
.svc-card:nth-child(2) .svc-icon { animation-delay: -0.5s; }
.svc-card:nth-child(3) .svc-icon { animation-delay: -1s; }
.svc-card:nth-child(4) .svc-icon { animation-delay: -1.5s; }
.svc-card:nth-child(5) .svc-icon { animation-delay: -2s; }
.svc-card:hover .svc-icon { transform: scale(1.25) translateY(-6px); animation-play-state: paused; }
.svc-card span { font-size: 12px; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.5px; }

/* =============================================
   DETAIL
   ============================================= */
.page-detail { background: transparent; }
.detail-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.detail-card {
  padding: 40px 28px; text-align: center;
  transition: all 0.5s var(--ease);
  border-left: 3px solid rgba(232,168,56,0.15);
}
.detail-card:hover {
  transform: translateY(-12px);
  border-left-color: var(--gold);
  box-shadow: 0 25px 60px rgba(0,0,0,0.3), -4px 0 30px rgba(232,168,56,0.06);
}
.detail-badge {
  font-size: 48px; margin-bottom: 20px;
  transition: transform 0.5s var(--ease-bounce);
  position: relative;
}
.detail-badge::after {
  content: '';
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sky-light), transparent);
}
.detail-card:hover .detail-badge { transform: scale(1.2) rotate(-5deg); }
.detail-card h3 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.detail-card p { font-size: 13px; line-height: 1.7; color: var(--gray-200); margin-bottom: 18px; }
.detail-materials {
  font-size: 10px; color: var(--sky-light);
  letter-spacing: 2px; font-weight: 700;
  padding: 10px 14px;
  border-top: 1px solid rgba(74,144,217,0.08);
  text-transform: uppercase;
  background: rgba(74,144,217,0.03);
  border-radius: 8px;
  margin-top: 4px;
}

/* =============================================
   PROCESS — Split layout with compact timeline
   ============================================= */
.page-process-hero { background: transparent; }
.page-process-hero .split-content { padding: 40px 48px; }
.process-subtitle {
  font-size: 14px; color: var(--sky-light);
  margin-top: -20px; margin-bottom: 24px;
  font-style: italic; opacity: 0.6;
}

.timeline.compact { padding-left: 54px; position: relative; }
.timeline.compact::before {
  content: ''; position: absolute;
  left: 18px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--sky), var(--gold), var(--emerald), transparent);
  box-shadow: 0 0 15px rgba(74,144,217,0.2), 0 0 30px rgba(74,144,217,0.1);
}
.timeline-item {
  position: relative;
  margin-bottom: 18px;
  opacity: 0; transform: translateX(-20px);
}
.animate-in .timeline-item { animation: slideInLeft 0.6s forwards; }
.animate-in .timeline-item:nth-child(1) { animation-delay: 0.1s; }
.animate-in .timeline-item:nth-child(2) { animation-delay: 0.2s; }
.animate-in .timeline-item:nth-child(3) { animation-delay: 0.3s; }
.animate-in .timeline-item:nth-child(4) { animation-delay: 0.4s; }
.animate-in .timeline-item:nth-child(5) { animation-delay: 0.5s; }

.tl-num {
  position: absolute; left: -54px; top: 2px;
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  border: 2px solid var(--sky);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat'; font-weight: 900; font-size: 12px;
  color: var(--white); z-index: 1;
  box-shadow: 0 0 20px rgba(74,144,217,0.25), 0 0 40px rgba(74,144,217,0.1);
  animation: glowPulse 3s ease-in-out infinite;
}
/* Connector dot between timeline items */
.timeline-item::before {
  content: '';
  position: absolute; left: -40px; top: 42px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-glow);
  z-index: 1;
}
.timeline-item:last-child::before { display: none; }
.tl-content {
  background: rgba(15,34,64,0.35);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid rgba(74,144,217,0.2);
  border-radius: 14px;
  padding: 20px 24px;
  transition: all 0.4s var(--ease);
}
.tl-content:hover {
  border-left-color: var(--gold);
  background: rgba(74,144,217,0.06);
  transform: translateX(6px);
  box-shadow: -4px 0 20px rgba(232,168,56,0.04);
}
.tl-content h4 {
  font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.tl-content p { font-size: 12px; line-height: 1.7; color: var(--gray-200); }

/* =============================================
   PRICING
   ============================================= */
.page-pricing { background: transparent; }
.price-table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  border: 2.5px solid rgba(27,54,93,0.12);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(176,112,32,0.08),
    inset 0 0 0 4px rgba(255,255,255,0.8),
    inset 0 0 0 5px rgba(27,54,93,0.06),
    0 6px 24px rgba(0,0,0,0.1);
}
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table th {
  background: linear-gradient(135deg, rgba(27,54,93,0.06), rgba(176,112,32,0.03));
  padding: 16px 22px; text-align: left;
  font-weight: 800; font-size: 11px;
  color: var(--navy); text-transform: uppercase; letter-spacing: 2px;
  border-bottom: 2px solid rgba(27,54,93,0.1);
}
.price-table td {
  padding: 14px 22px;
  border-bottom: 1px solid rgba(27,54,93,0.06);
  color: var(--text-secondary); transition: all 0.3s;
}
.price-table tr { transition: all 0.3s var(--ease); }
.price-table tr:hover { background: rgba(176,112,32,0.04); }
.price-table tr:hover td { color: var(--text-primary); }
.price-cell {
  font-family: 'Montserrat'; font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-note { font-size: 12px; color: var(--text-muted); margin-top: 16px; font-style: italic; }

/* =============================================
   PROJECTS — With real images
   ============================================= */
.page-projects { background: transparent; }
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
/* Staggered layout */
.project-card:nth-child(2) { transform: translateY(30px); }
.project-card:nth-child(4) { transform: translateY(20px); }
.project-card:nth-child(5) { transform: translateY(30px); }
.project-card {
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.5s var(--ease);
  --corner-len: 22px;
}
.project-card:hover {
  transform: translateY(-10px) scale(1.03) !important;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35), 0 0 40px rgba(74,144,217,0.08);
}
.project-img {
  height: 180px;
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.project-img::before {
  content: '';
  position: absolute; inset: 0;
  background: inherit; background-size: inherit; background-position: inherit;
  animation: kenBurns2 25s ease-in-out infinite alternate;
  z-index: 0;
}
.project-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6,13,26,0.95) 0%, rgba(6,13,26,0.3) 40%, transparent);
}
/* Ribbon badge instead of pill */
.project-area {
  position: absolute; top: 0; right: 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  font-family: 'Montserrat'; font-weight: 800; font-size: 11px;
  padding: 8px 14px 12px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 1px;
  z-index: 3;
  box-shadow: 0 4px 15px rgba(232,168,56,0.3);
  animation: ribbonWave 4s ease-in-out infinite;
}
.project-area::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), transparent);
}
.project-card h4 { font-size: 14px; font-weight: 700; color: var(--white); padding: 16px 18px 4px; }
.project-card p { font-size: 11px; color: var(--gray-400); padding: 0 18px 18px; line-height: 1.5; }

/* =============================================
   COMMITMENTS
   ============================================= */
.page-commit { background: transparent; }
.commit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.commit-card {
  padding: 32px 24px;
  transition: all 0.5s var(--ease);
  --corner-len: 24px;
}
.commit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px rgba(74,144,217,0.06);
}
/* Stamp seal effect */
.commit-check {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--sky), var(--gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: var(--white);
  margin-bottom: 18px;
  transition: all 0.4s var(--ease-bounce);
  box-shadow: 0 0 0 3px rgba(232,168,56,0.1), 0 0 0 6px rgba(74,144,217,0.05);
}
.animate-in .commit-card:nth-child(1) .commit-check { animation: stampIn 0.6s 0.1s both; }
.animate-in .commit-card:nth-child(2) .commit-check { animation: stampIn 0.6s 0.2s both; }
.animate-in .commit-card:nth-child(3) .commit-check { animation: stampIn 0.6s 0.3s both; }
.animate-in .commit-card:nth-child(4) .commit-check { animation: stampIn 0.6s 0.4s both; }
.animate-in .commit-card:nth-child(5) .commit-check { animation: stampIn 0.6s 0.5s both; }
.animate-in .commit-card:nth-child(6) .commit-check { animation: stampIn 0.6s 0.6s both; }
.commit-card:hover .commit-check {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 0 0 4px rgba(232,168,56,0.2), 0 0 0 8px rgba(74,144,217,0.1), 0 0 30px rgba(232,168,56,0.15);
}
.commit-card h4 {
  font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.commit-card p { font-size: 13px; line-height: 1.7; color: var(--gray-200); }

/* =============================================
   BACK COVER
   ============================================= */
.page-back { background: transparent; }
.back-inner {
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}
.back-logo {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin-bottom: 4px;
}
.back-tagline {
  font-size: 18px; font-style: italic;
  color: var(--sky-light); opacity: 0.7;
  margin-bottom: 8px;
}
.back-info { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.back-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--gray-200);
  transition: color 0.3s;
}
.back-row:hover { color: var(--white); }
.back-icon { font-size: 20px; }
.back-qr {
  margin-top: 16px;
  background: var(--white);
  padding: 14px; border-radius: var(--radius-sm);
  display: inline-block;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  transition: all 0.4s var(--ease);
}
.back-qr:hover { transform: scale(1.06); }
.back-qr canvas, .back-qr img { display: block; }
.back-qr-label { font-size: 11px; color: var(--gray-600); margin-top: 8px; letter-spacing: 1px; }
.back-partners {
  display: flex; gap: 28px; flex-wrap: wrap;
  justify-content: center; margin-top: 20px;
}
.back-partners span {
  font-family: 'Montserrat'; font-weight: 800; font-size: 14px;
  color: rgba(255,255,255,0.12); letter-spacing: 3px; text-transform: uppercase;
  transition: all 0.4s;
}
.back-partners span:hover { color: var(--sky-light); text-shadow: 0 0 20px var(--sky-glow); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .split-layout { grid-template-columns: 1fr; }
  .split-layout.reverse { direction: ltr; }
  .split-image { min-height: 40vh; }
  .split-content { padding: 40px 32px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-cards { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card:nth-child(n) { transform: none; }
  .polygon-frame.hex, .polygon-frame.diamond, .polygon-frame.trapezoid { clip-path: none; }
}
@media (max-width: 600px) {
  .page-inner { padding: 40px 20px; }
  .page-nav { left: 8px; }
  .why-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .commit-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
  .about-mini-stats { flex-direction: column; gap: 16px; }
  .split-content { padding: 32px 20px; }
}

/* =============================================
   SVG ICON SYSTEM
   ============================================= */
.icon-sm { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.icon-md { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.icon-lg { width: 36px; height: 36px; fill: currentColor; flex-shrink: 0; }
.icon-xl { width: 48px; height: 48px; fill: currentColor; flex-shrink: 0; }

/* Icon within cards — gradient glow effect */
.svc-icon svg, .vision-icon svg, .detail-badge svg, .value-icon svg {
  color: var(--sky-light);
  filter: drop-shadow(0 0 8px rgba(74,144,217,0.25));
  transition: all 0.5s var(--ease-bounce);
}
.glass-card:hover .svc-icon svg,
.glass-card:hover .vision-icon svg,
.glass-card:hover .detail-badge svg,
.glass-card:hover .value-icon svg {
  color: var(--gold);
  filter: drop-shadow(0 0 16px var(--gold-glow));
  transform: scale(1.15);
}

/* Commit check SVG */
.commit-check svg { color: var(--white); }

/* =============================================
   POLYGON CLIP-PATH IMAGE FRAMES
   ============================================= */
.polygon-frame.hex {
  clip-path: polygon(5% 0%, 95% 0%, 100% 50%, 95% 100%, 5% 100%, 0% 50%);
}
.polygon-frame.diamond {
  clip-path: polygon(50% 0%, 100% 8%, 100% 92%, 50% 100%, 0% 92%, 0% 8%);
}
.polygon-frame.trapezoid {
  clip-path: polygon(0% 0%, 100% 5%, 95% 100%, 5% 95%);
}

/* Animated gradient border glow */
.polygon-frame::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  border: 3px solid transparent;
  background: conic-gradient(from var(--border-angle), rgba(232,168,56,0.35), rgba(74,144,217,0.25), rgba(52,211,153,0.15), rgba(232,168,56,0.35)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  clip-path: inherit;
  animation: borderSpin 5s linear infinite;
}

/* Corner L-ornaments: top-right + bottom-left */
.polygon-frame .split-image-overlay::after {
  content: '';
  position: absolute; z-index: 4;
  pointer-events: none;
  /* Bottom-left corner ornament */
  bottom: 24px; left: 24px;
  width: 60px; height: 60px;
  border-left: 2.5px solid rgba(232,168,56,0.4);
  border-bottom: 2.5px solid rgba(232,168,56,0.4);
  box-shadow:
    inset 6px -6px 0 0 rgba(6,13,26,0.5),
    inset 7px -7px 0 0 rgba(74,144,217,0.12);
  transition: all 0.6s var(--ease);
}
.polygon-frame:hover .split-image-overlay::after {
  width: 80px; height: 80px;
  border-color: rgba(232,168,56,0.7);
  box-shadow:
    inset 6px -6px 0 0 rgba(6,13,26,0.4),
    inset 7px -7px 0 0 rgba(74,144,217,0.2),
    0 0 20px rgba(232,168,56,0.1);
}

/* =============================================
   IMAGE REPLACE OVERLAY — Universal v3
   ============================================= */
.replaceable-img {
  position: relative;
  cursor: pointer;
  /* overflow: hidden chỉ cho ảnh nền, KHÔNG cho logo */
}

/* Override cho các ảnh nền cần clip */
.hero-bg.replaceable-img,
.project-img.replaceable-img {
  overflow: hidden;
}

/* Logo containers — KHÔNG clip, KHÔNG frame */
.cover-logo-img.replaceable-img,
.cover-logo-img {
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Camera button pill — shows on hover */
.img-replace-btn {
  position: absolute;
  bottom: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(6,13,26,0.88);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(232,168,56,0.5);
  border-radius: 40px;
  cursor: pointer; z-index: 20;
  opacity: 0;
  transform: translateY(6px) scale(0.94);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
  white-space: nowrap;
}
.img-replace-btn svg {
  width: 16px; height: 16px;
  fill: var(--gold);
  flex-shrink: 0;
}
.img-replace-btn span {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--gold);
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

/* Trigger visibility on hover of any image container */
.replaceable-img:hover > .img-replace-btn,
.split-image:hover .img-replace-btn,
.project-img:hover .img-replace-btn,
.hero-bg:hover .img-replace-btn,
.cover-logo-img:hover .img-replace-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Active hover state on the button itself */
.img-replace-btn:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  transform: translateY(0) scale(1.08) !important;
  box-shadow: 0 4px 20px rgba(232,168,56,0.4);
}
.img-replace-btn:hover svg { fill: var(--navy-deep); }
.img-replace-btn:hover span { color: var(--navy-deep); }

/* ---- Subtle overlay CHỈ cho ảnh nền (hero/project), KHÔNG cho logo ---- */
.hero-bg.replaceable-img::after,
.project-img.replaceable-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,13,26,0.45) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 5;
}
.hero-bg.replaceable-img:hover::after,
.project-img.replaceable-img:hover::after { opacity: 1; }

/* ---- Cover-logo: tắt mọi overlay/frame ---- */
.cover-logo-img::after,
.cover-logo-img::before { display: none !important; }

.cover-logo-img .img-replace-btn {
  bottom: -8px; right: 50%;
  transform: translateX(50%) translateY(6px) scale(0.94);
}
.cover-logo-img:hover .img-replace-btn {
  opacity: 1;
  transform: translateX(50%) translateY(0) scale(1);
}

/* ---- Back logo wrap ---- */
.back-logo {
  cursor: pointer;
  overflow: visible;
  transition: transform 0.3s ease;
}
.back-logo:hover { transform: scale(1.03); }
.back-logo::after, .back-logo::before { display: none !important; }
.back-logo .img-replace-btn {
  bottom: -8px; right: 50%;
  transform: translateX(50%) translateY(6px) scale(0.94);
}
.back-logo:hover .img-replace-btn {
  opacity: 1;
  transform: translateX(50%) translateY(0) scale(1);
}
.cover-logo-img:hover .img-replace-btn {
  opacity: 1;
  transform: translateX(50%) translateY(0) scale(1);
}

/* =============================================
   COVER PAGE v2 — Enhanced (added 2025-04)
   ============================================= */
.cover-shimmer-top {
  position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 10;
  background: linear-gradient(90deg, transparent 0%, rgba(232,168,56,0.5) 30%, rgba(232,168,56,0.95) 50%, rgba(232,168,56,0.5) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
}
.cover-frame-ornament {
  position: absolute; inset: 22px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(232,168,56,0.1);
}
.cover-frame-ornament::before {
  content: '';
  position: absolute; inset: -1px;
  background:
    linear-gradient(var(--gold-light), var(--gold-light)) top left / 50px 2px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) top left / 2px 50px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) top right / 50px 2px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) top right / 2px 50px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) bottom left / 50px 2px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) bottom left / 2px 50px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) bottom right / 50px 2px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) bottom right / 2px 50px no-repeat;
  opacity: 0.55;
}
.cover-stats-bar {
  position: absolute; bottom: 44px; left: 52px;
  z-index: 10;
  display: flex; align-items: stretch; gap: 0;
  animation: fadeInUp 0.9s 1.1s both;
  opacity: 0; transform: translateY(20px);
  cursor: pointer;
}
/* Ensure all editable elements on cover have high z-index */
.page-cover .editable { position: relative; z-index: 10; }
.cover-stat-block {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0 20px 0 0;
}
.cover-stat-block:not(:last-child) {
  border-right: 1px solid rgba(232,168,56,0.2);
  margin-right: 20px;
}
.cover-stat-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px; font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.cover-stat-val sup { font-size: 12px; }
.cover-stat-lbl {
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}