/* ============================================
   CREATEXODUS — Cinematic Editorial Stylesheet
   ============================================ */

/* ---- Design Tokens ---- */
:root {
  --void-black: #080c18;
  --deep-charcoal: #0b0f1e;
  --surface-dark: #10152a;
  --surface-elevated: #181e2c;
  --accent: #B8C4D0;
  --accent-dim: #7A8A9A;
  --cream-text: #E0E2E8;
  --muted-text: #606878;
  --glass-border: rgba(255,255,255,0.07);
  --glass-fill: rgba(255,255,255,0.03);
  --glass-highlight: rgba(255,255,255,0.12);
  --accent-glow: rgba(184,196,208,0.1);
  --nav-height: 80px;
  --container: 1320px;
  --ease-out-expo: cubic-bezier(0.16,1,0.3,1);
  --ease-in-out: cubic-bezier(0.65,0,0.35,1);
}

/* ---- Reset / Base ---- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: var(--cream-text);
  background: #080c18;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

/* ---- Site-wide Space Background ---- */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    /* scattered silver stars */
    radial-gradient(1.5px 1.5px at 18% 12%, rgba(184,196,208,0.35) 50%, transparent 100%),
    radial-gradient(1px 1px at 62% 7%, rgba(184,196,208,0.25) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 82% 22%, rgba(184,196,208,0.2) 50%, transparent 100%),
    radial-gradient(1px 1px at 8% 42%, rgba(184,196,208,0.25) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 48% 52%, rgba(184,196,208,0.22) 50%, transparent 100%),
    radial-gradient(1px 1px at 73% 62%, rgba(184,196,208,0.2) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 28% 78%, rgba(184,196,208,0.25) 50%, transparent 100%),
    radial-gradient(1px 1px at 88% 82%, rgba(184,196,208,0.2) 50%, transparent 100%),
    radial-gradient(1px 1px at 42% 32%, rgba(184,196,208,0.18) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 3% 68%, rgba(184,196,208,0.22) 50%, transparent 100%),
    radial-gradient(1px 1px at 55% 90%, rgba(184,196,208,0.2) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 95% 45%, rgba(184,196,208,0.18) 50%, transparent 100%),
    /* nebula glows */
    radial-gradient(ellipse at 25% 20%, rgba(40,55,95,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 75%, rgba(30,45,80,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(25,35,60,0.2) 0%, transparent 65%),
    /* base — deep dark blue */
    linear-gradient(160deg, #080c18 0%, #0b0f1e 25%, #090d1a 50%, #0c1020 75%, #080c18 100%);
}

/* ---- CE Wall Logos Pattern Layer ---- */
.site-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-pattern-img {
  width: 250%;
  height: auto;
  min-height: 250%;
  object-fit: cover;
  opacity: 0.075;
  filter: invert(1) brightness(0.55) contrast(1.2);
  animation: patternDrift 180s ease-in-out infinite;
}

@keyframes patternDrift {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-8%, -10%) scale(1.03); }
  50%  { transform: translate(-15%, -15%) scale(1); }
  75%  { transform: translate(-6%, -5%) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}

body.loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: pointer; color: inherit; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* ---- Grain Overlay ---- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ---- Scroll Progress Bar ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  z-index: 10001;
}

/* ---- Preloader — Simple Logo + Bar ---- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: #080c18;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#preloader::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 250%;
  height: 250%;
  background: url('CE WALL LOGOS.png') repeat;
  background-size: cover;
  opacity: 0.075;
  filter: invert(1) brightness(0.55) contrast(1.2);
  animation: patternDrift 180s ease-in-out infinite;
  pointer-events: none;
}

#preloader.done {
  animation: preloaderOut 0.6s ease-in forwards;
}

#preloader.gone {
  display: none;
}

@keyframes preloaderOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

.pre-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.pre-logo {
  width: 90px;
  height: auto;
  opacity: 0;
  animation: preLogoIn 0.5s ease-out 0.1s forwards;
}

@keyframes preLogoIn {
  0%   { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.pre-bar-track {
  width: 180px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.3s ease-out 0.3s forwards;
}

.pre-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 2px;
  transition: width 0.15s linear;
}

@keyframes fadeIn { to { opacity: 1; } }

/* ---- Navigation ---- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 9000;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

#navbar.scrolled {
  background: rgba(8,12,24,0.7);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 1px 0 var(--glass-border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 28px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.nav-logo:hover img { opacity: 1; }

.nav-links { display: flex; gap: 32px; }

.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-text);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover, .nav-link.active { color: var(--cream-text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ---- Glass Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  color: var(--cream-text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-glass:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 40px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
  transform: scale(1.05);
}

.btn-glass:active {
  transform: scale(0.95);
  transition-duration: 0.1s;
}

.btn-glass:hover::before { opacity: 1; }
.btn-glass svg { transition: transform 0.3s var(--ease-out-expo); }
.btn-glass:hover svg { transform: translate(2px, -2px); }
.btn-full { width: 100%; justify-content: center; }
.btn-nav { padding: 10px 22px; font-size: 12px; }

.btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  transition: all 0.3s var(--ease-out-expo);
}

.btn-circle:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-sm-circle { width: 36px; height: 36px; font-size: 11px; font-weight: 500; letter-spacing: 0.05em; }

/* ---- Nav Toggle ---- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--cream-text);
  transition: all 0.3s var(--ease-out-expo);
  transform-origin: center;
}

.nav-toggle.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
.nav-toggle.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

/* ---- Mobile Menu ---- */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: rgba(8,12,24,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
  overflow: hidden;
}

#mobile-menu::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 250%;
  height: 250%;
  background: url('CE WALL LOGOS.png') repeat;
  background-size: cover;
  opacity: 0.075;
  filter: invert(1) brightness(0.55) contrast(1.2);
  animation: patternDrift 180s ease-in-out infinite;
  pointer-events: none;
}

#mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 32px; }

.mobile-link {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 200;
  letter-spacing: 0.06em;
  color: var(--cream-text);
  transition: color 0.3s;
}

.mobile-link:hover { color: var(--accent-dim); }
.mobile-cta { margin-top: 16px; }

/* ============================================
   HERO — Cinematic Video Background
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(8,12,24,0.2) 0%, rgba(8,12,24,0.6) 70%),
    linear-gradient(to bottom, rgba(8,12,24,0.3) 0%, transparent 30%, transparent 50%, transparent 100%);
}

/* Long seamless fade at hero bottom */
.hero-fade {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 45%;
  z-index: 2;
  background: linear-gradient(to bottom, transparent 0%, rgba(8,12,24,0.15) 30%, rgba(8,12,24,0.5) 65%, rgba(8,12,24,0.85) 100%);
  pointer-events: none;
}

/* Editorial Corner Elements */
.hero-corner {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.hc-tl { top: clamp(24px, 4vw, 60px); left: clamp(24px, 4vw, 60px); }
.hc-tr { top: clamp(24px, 4vw, 60px); right: clamp(24px, 4vw, 60px); text-align: right; align-items: flex-end; }
.hc-bl { bottom: clamp(24px, 4vw, 60px); left: clamp(24px, 4vw, 60px); }
.hc-br { bottom: clamp(24px, 4vw, 60px); right: clamp(24px, 4vw, 60px); text-align: right; align-items: flex-end; }

.hc-large {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 200;
  line-height: 0.85;
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.03em;
  opacity: 0;
  animation: cornerFade 1.2s var(--ease-out-expo) 2s forwards;
}

.hc-small {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-dim);
  opacity: 0;
  animation: cornerFade 1s var(--ease-out-expo) 2.4s forwards;
}

.hc-meta {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--muted-text);
  opacity: 0;
  animation: cornerFade 1s var(--ease-out-expo) 2.6s forwards;
}

@keyframes cornerFade {
  to { opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(20px, 4vw, 60px);
}

.hero-landing-img {
  width: 85%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 2s forwards;
}

.hero-headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(80px, 20vw, 280px);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--cream-text);
  margin-bottom: 24px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.h-line { display: block; overflow: hidden; }

.h-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: wordReveal 1s var(--ease-out-expo) forwards;
}

.h-line:nth-child(1) .h-word:nth-child(1) { animation-delay: 2.3s; }
.h-line:nth-child(1) .h-word:nth-child(2) { animation-delay: 2.5s; }

@keyframes wordReveal { to { opacity: 1; transform: translateY(0); } }

.h-accent { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-text);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1s var(--ease-out-expo) 3s forwards;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Hero Side Labels */
.hero-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 2.8s forwards;
}

.hero-side-left {
  left: clamp(24px, 4vw, 60px);
}

.hero-side-right {
  right: clamp(24px, 4vw, 60px);
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: clamp(24px, 4vw, 60px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 3.2s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

.scroll-text {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent-dim);
}

/* ---- CLIENT LOGO MARQUEE ---- */
#logo-marquee {
  padding: clamp(20px, 3vw, 40px) 0;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  width: max-content;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.marquee-inner:active {
  cursor: grabbing;
}

.marquee-logo {
  width: clamp(100px, 12vw, 140px);
  height: clamp(32px, 4vw, 44px);
  object-fit: contain;
  object-position: center;
  opacity: 0.35;
  transition: opacity 0.4s;
  flex-shrink: 0;
}

.marquee-logo:hover { opacity: 0.8; }

/* ---- Section Labels (Editorial Numbers) ---- */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-label span:first-child {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--accent-dim);
}

.section-label span:last-child {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-text);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-dim);
  display: none;
}

/* ---- (Manifesto/Marquee removed) ---- */

/* ---- Scroll Reveal ---- */
.reveal-up, .reveal-mask {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-mask { transform: translateY(30px); }

.reveal-up.revealed, .reveal-mask.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Section Headlines ---- */
.section-headline {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream-text);
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.sh-accent { font-style: normal; color: var(--accent); }
.section-headline-vert { margin-bottom: 0; }

/* ---- ABOUT ---- */
#about { padding: clamp(32px, 4vw, 56px) 0; }

.about-compact {
  max-width: 1200px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
  margin-bottom: 0;
}

.about-col-text {
  padding-right: clamp(16px, 2vw, 32px);
}

.about-p {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.7;
  color: var(--cream-text);
  margin-bottom: 0;
}

.about-col-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 320px;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: brightness(0.9) contrast(1.05);
  mask-image: linear-gradient(to right, transparent 0%, black 40%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
}

/* ---- STATS (after hero — seamless) ---- */
#stats {
  position: relative;
  padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 5vw, 72px);
  z-index: 1;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  text-align: center;
  padding: 28px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s, border-color 0.4s, background 0.4s;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.1);
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 200;
  color: var(--accent);
  line-height: 1;
}

.stat-suffix {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 200;
  color: var(--accent-dim);
}

.stat-label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-top: 8px;
  line-height: 1.4;
}

/* ---- SERVICES ---- */
#services { padding: clamp(48px, 6vw, 80px) 0; }

/* Glass Card — still used by testimonials + contact form */
.glass-card {
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.02) 50%,
    rgba(255,255,255,0.04) 100%
  );
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(255,255,255,0.03);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out-expo);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 20px 20px 0 0;
}

.glass-card::after {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.2) 50%, transparent 90%);
  pointer-events: none;
}

/* --- Service Card Grid (liquid glass) --- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  perspective: 1000px;
}

.svc-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: clamp(24px, 2.5vw, 36px);
  cursor: default;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.5s var(--ease-out-expo), border-color 0.4s, box-shadow 0.5s, background 0.4s;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.svc-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 40px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}

.svc-card:hover::before { opacity: 1; }

.svc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
}

.svc-card-num {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--accent-dim);
}

.svc-card-arrow {
  color: var(--accent-dim);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out-expo);
}

.svc-card:hover .svc-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.svc-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 400;
  margin-top: 32px;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.svc-card:hover .svc-card-title { color: #fff; }

.svc-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-text);
  transition: color 0.4s;
}

.svc-card:hover .svc-card-desc { color: rgba(224,226,232,0.6); }

/* --- Service Detail Popup --- */
.svc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6,8,16,0);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.6s ease;
}

.svc-overlay.active {
  background: rgba(6,8,16,0.82);
  pointer-events: auto;
}

.svc-overlay-inner {
  position: relative;
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  padding: clamp(28px, 3vw, 44px);
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: 0 32px 100px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.5s cubic-bezier(0.16,1,0.3,1);
}

.svc-overlay.active .svc-overlay-inner {
  transform: translateY(0);
  opacity: 1;
}

.svc-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--accent-dim);
  padding: 8px;
  transition: color 0.3s;
}

.svc-close:hover { color: #fff; }

.svc-overlay-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 200;
  margin-bottom: 12px;
}

.svc-overlay-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-text);
  margin-bottom: 32px;
  max-width: 600px;
}

.svc-clients-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 16px;
}

.svc-clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.svc-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  font-weight: 400;
  color: var(--cream-text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.svc-client:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}

.svc-client-arrow {
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s, transform 0.3s;
  flex-shrink: 0;
  margin-left: 8px;
}

.svc-client:hover .svc-client-arrow {
  opacity: 0.6;
  transform: translate(0, 0);
}

/* ---- PORTFOLIO / WORK ---- */
#work {
  padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
}

/* ---- Seamless section transitions ---- */
#work,
#services,
#location,
#about,
#contact {
  position: relative;
}

#work > .container,
#services > .container,
#location > .container,
#about > .container,
#contact > .container {
  position: relative;
  z-index: 1;
}

.desktop-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 28px 16px;
  justify-items: center;
  padding: 40px 0 20px;
}

/* --- Folder Item --- */
.desktop-folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: default;
  transition: transform 0.3s var(--ease-out-expo);
  contain: layout style paint;
  will-change: transform;
}

.desktop-folder:hover {
  transform: scale(1.08);
}

/* --- Folder Icon Container --- */
.folder-icon {
  position: relative;
  width: 90px;
  height: 78px;
}

/* Base folder image — faded to allow glass through */
.folder-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.15;
  filter: brightness(1.6) saturate(0.3);
  transition: opacity 0.4s, filter 0.4s;
}

.desktop-folder:hover .folder-base {
  opacity: 0.25;
  filter: brightness(1.8) saturate(0.5);
}

/* Liquid glass overlay on the folder body */
.folder-glass {
  position: absolute;
  top: 17%;
  left: 3%;
  width: 94%;
  height: 80%;
  border-radius: 6px 8px 8px 8px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.04) 40%,
    rgba(255,255,255,0.08) 100%
  );
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 4px 20px rgba(0,0,0,0.25);
  transition: all 0.4s var(--ease-out-expo);
}

/* Glass tab (top-left folder ear) */
.folder-glass::before {
  content: '';
  position: absolute;
  top: -13px;
  left: 0;
  width: 36%;
  height: 14px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(
    145deg,
    rgba(140,160,190,0.18) 0%,
    rgba(140,160,190,0.10) 100%
  );
  border: 1px solid rgba(255,255,255,0.14);
  border-bottom: none;
}

/* Specular highlight sweep */
.folder-glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  border-radius: 6px 8px 0 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0) 100%
  );
  pointer-events: none;
}

.desktop-folder:hover .folder-glass {
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.06) 40%,
    rgba(255,255,255,0.12) 100%
  );
  border-color: rgba(255,255,255,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(255,255,255,0.06),
    0 8px 32px rgba(0,0,0,0.3);
}

/* --- Client Logo on Folder --- */
.folder-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -38%);
  width: 36px;
  height: 36px;
  object-fit: contain;
  z-index: 3;
  opacity: 0.85;
  transition: opacity 0.4s;
}

.folder-logo-wide {
  width: 52px;
  height: 28px;
}

.folder-logo-lg {
  width: 44px;
  height: 44px;
  transform: translate(-50%, -33%);
}

.desktop-folder:hover .folder-logo {
  opacity: 1;
}

/* Text-based logos for clients without image files */
.folder-logo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -38%);
  z-index: 3;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}

/* --- Folder Label --- */
.folder-name {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.65);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s;
}

.desktop-folder:hover .folder-name {
  color: rgba(255,255,255,0.9);
}

/* --- Folder inner link (when folder is a div) --- */
.folder-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

/* --- Instagram icon under folder --- */
.folder-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s, transform 0.3s;
}
.folder-ig:hover {
  color: rgba(255,255,255,0.9);
  transform: scale(1.2);
}

/* ---- (Testimonials removed) ---- */

/* ---- LOCATION ---- */
#location { padding: clamp(48px, 6vw, 80px) 0; }

.globe-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(32px, 4vw, 56px);
  overflow: visible;
}

#globe-canvas {
  width: min(550px, 85vw);
  height: min(550px, 85vw);
  cursor: grab;
}

#globe-canvas:active {
  cursor: grabbing;
}

.globe-label {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.globe-city {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  color: var(--cream-text);
  letter-spacing: 0.1em;
}

.globe-country {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.location-details-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}

.loc-item { display: flex; flex-direction: column; gap: 4px; }

.loc-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.loc-value {
  font-size: 16px;
  font-weight: 300;
  color: var(--cream-text);
  transition: color 0.3s;
}

a.loc-value:hover { color: var(--accent); }
.social-row { display: flex; gap: 8px; margin-top: 4px; }

/* ---- CTA / CONTACT ---- */
#contact { padding: clamp(48px, 6vw, 80px) 0; }

.cta-headline {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: clamp(42px, 8vw, 110px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream-text);
  margin-bottom: 0;
}

.cta-center {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}

#contact > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Contact Form */
#contact-form {
  padding: clamp(32px, 4vw, 56px);
  max-width: 800px;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }
#contact-form > .form-field { margin-bottom: 20px; }

label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

input, select, textarea {
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--cream-text);
  font-size: 14px;
  font-weight: 300;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(184,196,208,0.35);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 4px 20px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
}

textarea { resize: vertical; min-height: 120px; }

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6860' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select option { background: var(--surface-dark); color: var(--cream-text); }

.form-success { text-align: center; padding: 40px 0; }

.form-success h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 12px;
}

.form-success p { color: var(--muted-text); font-size: 14px; }
#contact-form .btn { margin-top: 8px; }

/* ---- FOOTER ---- */
#footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, transparent 0%, rgba(8,12,24,0.3) 100%);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left { display: flex; align-items: center; gap: 20px; }

.footer-logo {
  height: 22px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.3s;
  cursor: pointer;
}

.footer-logo:hover { opacity: 1; }
.footer-copy { font-size: 12px; color: var(--muted-text); }
.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 12px;
  color: var(--muted-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--cream-text); }
.footer-social { display: flex; gap: 8px; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .svc-oval { width: clamp(190px, 22vw, 240px); height: clamp(300px, 36vw, 400px); }
}

@media (max-width: 968px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-col-image { min-height: 240px; }
  .about-photo {
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  }
  .location-details-row { flex-direction: column; gap: 24px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-corner { display: none; }
  .hero-side { display: none; }
  .desktop-grid { grid-template-columns: repeat(5, 1fr); gap: 24px 10px; }
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-headline { font-size: clamp(100px, 25vw, 200px); }
  .cta-headline { font-size: clamp(36px, 9vw, 80px); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .svc-card { min-height: 160px; }
  .desktop-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 12px; }
  .folder-icon { width: 76px; height: 66px; }
  .folder-logo { width: 28px; height: 28px; }
  .folder-logo-wide { width: 42px; height: 22px; }
  #work { overflow: visible; }
  .stat, .desktop-folder, .svc-card, .section-headline, .section-label,
  .globe-wrap, .cta-center { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .desktop-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 8px; }
  .folder-icon { width: 64px; height: 56px; }
  .folder-logo { width: 24px; height: 24px; }
  .folder-logo-wide { width: 36px; height: 18px; }
  .folder-name { font-size: 9px; max-width: 75px; }
  .folder-logo-text { font-size: 13px; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-up, .reveal-mask { opacity: 1 !important; transform: none !important; }
  .h-word { opacity: 1 !important; transform: none !important; }
  .hero-label, .hero-sub, .hero-scroll { opacity: 1 !important; transform: none !important; }
  .hc-large, .hc-small, .hc-meta { opacity: 1 !important; }
}
