/* ============================================================
   OIANKO DUFFIÉ — Apple Liquid Glass Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');

/* ── SITE LOADER ──────────────────────────────────────────── */
#siteLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #07070b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
#siteLoader.hidden {
  opacity: 0;
  pointer-events: none;
}
.ld-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  animation: ldIn 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes ldIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ld-logo {
  height: 42px;
  width: auto;
  display: block;
}
.ld-fallback {
  display: none;
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.ld-fallback span { color: #cc0018; }
.ld-bar-wrap {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.ld-bar {
  height: 100%;
  width: 0%;
  background: #cc0018;
  border-radius: 99px;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px #cc001870;
}

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:        #07070b;
  --bg-1:      #0e0e14;
  --bg-2:      #13131a;

  /* Glass surfaces */
  --glass:     rgba(255,255,255,0.042);
  --glass-2:   rgba(255,255,255,0.072);
  --glass-3:   rgba(255,255,255,0.10);

  /* Borders */
  --border:    rgba(255,255,255,0.075);
  --border-2:  rgba(255,255,255,0.13);
  --border-3:  rgba(255,255,255,0.20);

  /* Typography */
  --text:      #f5f5f7;
  --text-2:    rgba(245,245,247,0.55);
  --text-3:    rgba(245,245,247,0.32);

  /* Accent — vivid red */
  --accent:    #cc0018;
  --accent-fg: #fff;
  --accent-bg: rgba(204,0,24,0.12);

  /* Extended palette */
  --hero-bg:  hsl(0,0%,8%);
  --nav-btn:  hsl(0,0%,18%);

  /* Effects */
  --blur:      blur(24px) saturate(180%);
  --blur-sm:   blur(12px) saturate(140%);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.055);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.07);
  --shadow:    0 8px 32px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.09);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.11);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.50), inset 0 1px 0 rgba(255,255,255,0.13);

  /* Radius */
  --r-xs:   8px;
  --r-sm:   12px;
  --r:      18px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 999px;

  /* Typography */
  --font: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Easing */
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ── THEME FADE TRANSITION ───────────────────────────────── */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition:
    background-color 0.4s ease,
    background 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease !important;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
img   { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; border: none; background: none; }
textarea { resize: vertical; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; position: relative; }

/* ── PAGE TRANSITION ──────────────────────────────────────── */
#pageOverlay {
  position: fixed; inset: 0; z-index: 10001;
  background: var(--bg);
  transform: translateY(0);
  transition: transform .7s cubic-bezier(.77,0,.18,1);
}
#pageOverlay.reveal { transform: translateY(-100%); }
#pageOverlay.exit   { transform: translateY(0) !important; transition: transform .5s cubic-bezier(.77,0,.18,1); }
#pageOverlay.done   { display: none; }

/* ── SCROLL PROGRESS ──────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 1.5px;
  background: var(--accent);
  z-index: 9999; width: 0%;
  transition: width .08s linear;
}

/* ── AMBIENT BACKGROUND ───────────────────────────────────── */
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% -10%, rgba(255,255,255,0.022) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 110%, rgba(255,255,255,0.012) 0%, transparent 50%);
}

/* ── NAVBAR ───────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 16px 0;
  transition: all .35s var(--ease);
  /* needed for ::after green line */
  isolation: isolate;
}
#nav.solid {
  background: rgba(7,7,11,0.75);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
/* ── NAV LOGO ─────────────────────────────────────────────── */
.nav-logo {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 0;
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--text);
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .75; }
.logo-dot-red { color: #cc0018; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nl {
  font-size: 14px; font-weight: 500;
  color: var(--text-2); padding: 7px 14px;
  border-radius: var(--r-pill);
  transition: color .2s, background .2s;
}
.nl:hover { color: var(--text); background: var(--glass-2); }
.nl.active { color: var(--accent); background: var(--accent-bg); }

.nav-cta {
  font-size: 12px; font-weight: 600; letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #fff; background: #cc0018;
  padding: 10px 22px; border-radius: var(--r-sm);
  transition: background .2s, transform .2s, box-shadow .2s;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(204,0,24,0.4);
}
.nav-cta:hover {
  background: #a8001a;
  box-shadow: 0 4px 20px rgba(204,0,24,0.45);
}
.nav-cta:active { transform: scale(0.97); }
.hidden-mobile { display: inline-flex; }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; transition: all .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.1px;
  padding: 12px 28px; border-radius: var(--r-pill);
  transition: all .22s var(--ease); cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: var(--accent-fg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.btn-primary:hover { filter: brightness(1.08); transform: scale(0.97); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

.btn-glass {
  background: var(--glass-2); color: var(--text);
  border: 1px solid var(--border-2);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: var(--shadow-xs);
}
.btn-glass:hover { background: var(--glass-3); border-color: var(--border-3); transform: scale(0.97); }

.btn-text {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 8px 0; transition: color .2s;
}
.btn-text:hover { color: var(--text); }

/* ── SECTION LABELS ───────────────────────────────────────── */
.label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--text-3);
  display: block; margin-bottom: 16px;
}
.sec-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
  color: var(--text);
}
.sec-title em { font-style: normal; color: var(--text-2); font-weight: 700; }
.sec-sub {
  font-size: 17px; color: var(--text-2); line-height: 1.65;
  max-width: 480px; margin-top: 12px;
}

/* ── GLASS CARD ───────────────────────────────────────────── */
.glass-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-top-color: var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease);
}
.glass-card:hover {
  background: var(--glass-2);
  border-color: var(--border-2);
  border-top-color: var(--border-3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.sr {
  opacity: 0; transform: translateY(28px);
  filter: blur(2px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
}
.sr.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.sr:nth-child(2) { transition-delay: .08s; }
.sr:nth-child(3) { transition-delay: .16s; }
.sr:nth-child(4) { transition-delay: .24s; }
.sr:nth-child(5) { transition-delay: .32s; }
.sr:nth-child(6) { transition-delay: .40s; }
.sr:nth-child(7) { transition-delay: .48s; }

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  min-height: 100svh; display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
  background: var(--hero-bg);
}

.hero-spline {
  position: absolute; inset: 0; z-index: 0;
  background: #000; /* fond noir par défaut */
}
/* Lumière rouge PHYSIQUEMENT derrière le canvas WebGL (z-index inférieur)
   Le canvas Spline ayant un fond transparent, la lumière transparaît
   à travers les espaces entre les cubes — vrai effet "lumière derrière" */
#heroLight {
  position: absolute; z-index: 0;
  width: 700px; height: 600px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(204,0,24,1)    0%,
    rgba(160,0,18,0.7)  30%,
    rgba(100,0,12,0.25) 55%,
    transparent         72%);
  opacity: 0;
  transition: opacity .5s ease;
  will-change: left, top;
}
/* Canvas Spline — aucun filtre, scène d'origine intacte
   La lumière #heroLight (rouge) transparaît par les pixels transparents du canvas */
.hero-spline spline-viewer {
  position: relative; z-index: 1;
  width: 100%; height: 100%; display: block;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,0.30);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: min(90%, 680px);
  padding: 0 24px 48px;
  padding-top: 120px;
}

.hero-eyebrow {
  display: block;
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 20px;
  opacity: 0; animation: fadeUp .7s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-name {
  font-size: clamp(3rem,8vw,6rem);
  font-weight: 700; letter-spacing: -0.05em; line-height: 1.05;
  color: var(--text); text-transform: uppercase;
  opacity: 0; animation: fadeUp .7s cubic-bezier(.16,1,.3,1) forwards;
  margin-bottom: 12px;
}
.hero-name-accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(1.125rem,2.5vw,1.875rem); font-weight: 300;
  color: rgba(245,245,247,0.80); line-height: 1.45;
  margin-bottom: 14px;
  opacity: 0; animation: fadeUp .7s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-desc {
  font-size: clamp(0.875rem,1.5vw,1.125rem); font-weight: 300;
  color: var(--text-2); line-height: 1.7;
  margin-bottom: 32px; max-width: 560px;
  opacity: 0; animation: fadeUp .7s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .7s cubic-bezier(.16,1,.3,1) forwards;
}
.btn-hero-primary {
  display: inline-flex; align-items: center;
  background: var(--accent); color: var(--accent-fg);
  font-size: 14px; font-weight: 700;
  padding: 14px 32px; border-radius: 2px;
  transition: filter .2s, transform .2s; cursor: pointer;
}
.btn-hero-primary:hover  { filter: brightness(1.1); }
.btn-hero-primary:active { transform: scale(.97); }

.btn-hero-secondary {
  display: inline-flex; align-items: center;
  background: #fff; color: var(--bg);
  font-size: 14px; font-weight: 700;
  padding: 14px 32px; border-radius: 2px;
  transition: filter .2s, transform .2s; cursor: pointer;
}
.btn-hero-secondary:hover  { filter: brightness(.9); }
.btn-hero-secondary:active { transform: scale(.97); }

.hero-trust {
  font-size: 12px; font-weight: 300;
  color: rgba(245,245,247,0.40); margin-top: 20px;
  opacity: 0; animation: fadeUp .7s cubic-bezier(.16,1,.3,1) forwards;
}

.hero-scroll-hint {
  position: absolute; bottom: 36px; right: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); z-index: 3;
  opacity: 0; animation: fadeUp .7s cubic-bezier(.16,1,.3,1) 1.1s forwards;
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(245,245,247,0.3), transparent);
  animation: lineAnim 2.5s ease-in-out infinite;
}
@keyframes lineAnim {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30%  { opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

/* ── MARQUEE BAND ─────────────────────────────────────────── */
.marquee-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 14px 0;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.marquee-track span {
  white-space: nowrap; padding: 0 12px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
}
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ── PROJECT GRID ─────────────────────────────────────────── */
.work-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px;
}
.filter {
  font-size: 13px; font-weight: 500;
  color: var(--text-2); padding: 7px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--glass);
  transition: all .2s var(--ease); cursor: pointer;
}
.filter:hover { background: var(--glass-2); color: var(--text); border-color: var(--border-2); }
.filter.active {
  background: var(--accent); color: var(--accent-fg);
  border-color: transparent;
}

.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.work-card {
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  background: var(--glass);
  border: 1px solid var(--border);
  border-top-color: var(--border-2);
  box-shadow: var(--shadow-sm);
  transition: all .35s var(--ease);
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-2);
  border-top-color: var(--border-3);
}
.wc-media {
  position: relative;
  aspect-ratio: 16/10; /* fallback — écrasé par JS au chargement de l'image */
  overflow: hidden;
  background: #0a0a0a;
}
.wc-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: brightness(.92) saturate(.9);
  transition: transform .6s var(--smooth), filter .4s;
  display: block;
}
.work-card:hover .wc-media img { transform: scale(1.03); filter: brightness(.78) saturate(.85); }

.wc-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s var(--ease);
}
.work-card:hover .wc-overlay { opacity: 1; }
.wc-play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(245,245,247,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245,245,247,0.25);
  display: flex; align-items: center; justify-content: center;
  transform: scale(.7);
  transition: transform .35s var(--spring);
}
.work-card:hover .wc-play-btn { transform: scale(1); }
.wc-play-btn svg { width: 20px; height: 20px; fill: var(--text); margin-left: 3px; }

.wc-info { padding: 20px 22px 24px; }
.wc-cat {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3);
  display: block; margin-bottom: 6px;
}
.wc-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.wc-desc  { font-size: 13px; color: var(--text-2); }
.wc-featured {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(245,245,247,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(245,245,247,0.18);
  font-size: 10px; font-weight: 600; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--text-2);
  padding: 4px 10px; border-radius: var(--r-pill);
}

/* ── ABOUT ────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.about-image-wrap {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  border-top-color: var(--border-2);
}
.about-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.78) saturate(.75);
  transition: transform .6s var(--smooth), filter .5s;
}
.about-image-wrap:hover img { transform: scale(1.03); filter: brightness(.85) saturate(.85); }

.available-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(245,245,247,0.10); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245,245,247,0.15);
  border-top-color: rgba(245,245,247,0.22);
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; color: var(--text);
  padding: 10px 18px; display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow);
  animation: badgeFloat 3.5s ease-in-out infinite;
}
@keyframes badgeFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-5px);} }
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #cc0018; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(204,0,24,0.25);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{opacity:1;} 50%{opacity:.55;} }

.about-lead {
  font-size: 19px; font-weight: 400; color: rgba(245,245,247,0.82);
  line-height: 1.6; margin: 16px 0 12px;
}
.about-lead strong { color: var(--text); font-weight: 600; }
.about-body { font-size: 16px; color: var(--text-2); line-height: 1.7; margin-bottom: 10px; }
.about-actions { display: flex; gap: 12px; align-items: center; margin-top: 28px; }

/* Skills */
.skills { margin-top: 28px; }
.skill-row { margin-bottom: 14px; }
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.skill-name { font-size: 13px; font-weight: 500; color: var(--text-2); }
.skill-pct  { font-size: 12px; font-weight: 600; color: var(--text-3); }
.skill-bar  { height: 2px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.skill-fill {
  height: 100%; width: 0%; border-radius: 2px;
  background: var(--accent);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── SERVICES ─────────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.svc-card {
  background: var(--glass); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-top-color: var(--border-2);
  border-radius: var(--r-lg); padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.svc-card:hover {
  background: var(--glass-2); border-color: var(--border-2);
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
}
.svc-icon {
  width: 40px; height: 40px; margin-bottom: 20px;
  color: var(--text-2);
}
.svc-icon svg { width: 100%; height: 100%; }
.svc-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.svc-card p  { font-size: 14px; color: var(--text-2); line-height: 1.65; }
.svc-num {
  position: absolute; top: 20px; right: 22px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text-3);
}
.svc-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 16px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: color .2s, gap .2s;
}
.svc-link:hover { color: var(--text); gap: 8px; }

/* ── PROCESS ──────────────────────────────────────────────── */
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.proc-item {
  background: var(--glass); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-top-color: var(--border-2);
  border-radius: var(--r-lg); padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease);
}
.proc-item:hover { background: var(--glass-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.proc-num {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 12px;
}
.proc-item h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.proc-item p  { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ── TOOLS ────────────────────────────────────────────────── */
.tools-section {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.tools-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.tools-list  { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-badge {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  background: var(--glass); border: 1px solid var(--border);
  padding: 8px 18px; border-radius: var(--r-pill);
  transition: all .2s var(--ease);
}
.tool-badge:hover { background: var(--glass-2); color: var(--text); border-color: var(--border-2); }

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi-card {
  background: var(--glass); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-top-color: var(--border-2);
  border-radius: var(--r-lg); padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease);
}
.testi-card:hover { background: var(--glass-2); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.testi-stars { font-size: 14px; color: #cc0018; margin-bottom: 14px; letter-spacing: 2px; }
.testi-quote { font-size: 15px; color: rgba(245,245,247,0.75); line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.testi-name   { font-size: 14px; font-weight: 600; }
.testi-role   { font-size: 12px; color: var(--text-3); margin-top: 1px; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 64px; align-items: start;
}
.contact-info-block { margin-bottom: 32px; }
.contact-info-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.contact-info-item:first-child { border-top: 1px solid var(--border); }
.contact-info-icon { color: var(--text-3); width: 18px; flex-shrink: 0; font-size: 16px; }
.contact-info-item a:hover { color: var(--text-2); }

.avail-indicator { display: flex; align-items: center; gap: 8px; }
.avail-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #cc0018; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(204,0,24,0.22);
  animation: dotPulse 2s ease-in-out infinite;
}
.social-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.social-link {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--glass); border: 1px solid var(--border);
  padding: 8px 18px; border-radius: var(--r-pill);
  transition: all .2s var(--ease);
}
.social-link:hover { background: var(--glass-2); color: var(--text); border-color: var(--border-2); }

/* ── FORM ─────────────────────────────────────────────────── */
.form-wrap {
  background: var(--glass); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-top-color: var(--border-2);
  border-radius: var(--r-xl); padding: 36px;
  box-shadow: var(--shadow);
}
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field   { position: relative; margin-bottom: 14px; }
.f-field input, .f-field textarea {
  width: 100%; background: rgba(255,255,255,0.045);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px 16px 6px;
  color: var(--text); font-size: 15px; outline: none;
  transition: border-color .2s, background .2s;
}
.f-field input:focus, .f-field textarea:focus {
  border-color: var(--border-3); background: rgba(255,255,255,0.065);
}
.f-field label {
  position: absolute; left: 16px; top: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
  pointer-events: none; transition: all .2s var(--ease);
}
.f-field input:focus ~ label,
.f-field input:not(:placeholder-shown) ~ label,
.f-field textarea:focus ~ label,
.f-field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-5px); font-size: 9.5px;
}

/* ── CONTACT PAGE ─────────────────────────────────────────── */
.contact-info-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.ci-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  color: inherit;
}
.ci-item:first-child { border-top: 1px solid var(--border); }
.ci-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r-xs); display: flex; align-items: center;
  justify-content: center; color: var(--text-2);
}
.ci-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.ci-val   { font-size: 14px; font-weight: 500; color: var(--text-2); }
.ci-item a .ci-val { transition: color .2s; }
.ci-item:hover .ci-val { color: var(--text); }

.contact-socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.social-pill {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--glass); border: 1px solid var(--border);
  padding: 8px 18px; border-radius: var(--r-pill);
  transition: all .2s var(--ease);
}
.social-pill:hover { background: var(--glass-2); color: var(--text); border-color: var(--border-2); }

.process-step { display: flex; align-items: flex-start; gap: 12px; }
.process-num  { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-3); flex-shrink: 0; margin-top: 1px; }

.contact-form-card {
  background: var(--glass); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-top-color: var(--border-2);
  border-radius: var(--r-xl); padding: 40px;
  box-shadow: var(--shadow);
}
.cf-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-field { margin-bottom: 16px; }
.cf-field label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px;
}
.cf-field input,
.cf-field textarea,
.cf-field select {
  width: 100%;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px; color: var(--text);
  font-size: 15px; font-family: var(--font);
  outline: none; transition: border-color .2s, background .2s;
}
.cf-field input:focus,
.cf-field textarea:focus,
.cf-field select:focus {
  border-color: var(--border-3);
  background: rgba(255,255,255,0.065);
}
.cf-field select option { background: #13131a; }
.cf-field textarea { resize: vertical; min-height: 120px; }

/* ── PAGE HERO (inner pages) ──────────────────────────────── */
.page-hero {
  min-height: 44vh; display: flex; align-items: flex-end;
  padding: 140px 0 56px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.1) saturate(.3);
}
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3);
  display: block; margin-bottom: 12px;
}
.page-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900; letter-spacing: -0.04em; line-height: 0.95;
}

/* ── ABOUT PAGE ───────────────────────────────────────────── */
.about-page-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; }
.timeline { position: relative; }
.tl-item {
  padding: 28px 0 28px 36px; position: relative;
  border-bottom: 1px solid var(--border);
}
.tl-item:first-child { border-top: 1px solid var(--border); }
.tl-item::before {
  content: ''; position: absolute; left: 0; top: 36px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid rgba(245,245,247,0.3);
}
.tl-year { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.tl-title  { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2px; }
.tl-org    { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.tl-body   { font-size: 14px; color: var(--text-2); line-height: 1.65; }

.sidebar-card {
  background: var(--glass); backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-top-color: var(--border-2);
  border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.sidebar-card h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.badge-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: var(--r-pill);
  transition: all .2s;
}
.badge:hover { background: var(--glass-2); color: var(--text); }

/* ── PROJECT DETAIL ───────────────────────────────────────── */
.proj-hero {
  min-height: 65vh; display: flex; align-items: flex-end;
  padding: 120px 0 60px; position: relative; overflow: hidden;
}
.proj-hero-bg { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.proj-hero-bg img { width: 100%; height: 115%; object-fit: cover; filter: brightness(.22) saturate(.45); }
.proj-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(7,7,11,.6) 45%, transparent 100%);
}
.proj-hero-content { position: relative; z-index: 2; }
.proj-cat-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 10px;
}
.proj-title { font-size: clamp(48px, 9vw, 100px); font-weight: 900; letter-spacing: -0.04em; line-height: .92; }
.proj-meta-row {
  display: flex; gap: 32px; flex-wrap: wrap; margin-top: 20px;
}
.proj-meta-item { }
.proj-meta-label { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.proj-meta-val   { font-size: 15px; font-weight: 500; color: var(--text-2); }

.proj-body-grid { display: grid; grid-template-columns: 1fr 300px; gap: 56px; }
.proj-description { font-size: 17px; color: rgba(245,245,247,.75); line-height: 1.8; margin-bottom: 28px; }
.proj-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.proj-tool-tag {
  font-size: 12px; font-weight: 500; color: var(--text-3);
  background: var(--glass); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: var(--r-pill);
}

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
.gallery-item { border-radius: var(--r); overflow: hidden; position: relative; background: #0a0a0a; aspect-ratio: 16/10; }
.gallery-item:first-child { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%; display: block;
  object-fit: contain;
  filter: saturate(.85);
  transition: transform .5s var(--smooth), filter .4s;
  cursor: zoom-in;
}
.gallery-item:hover img { transform: scale(1.02); filter: saturate(1); }

/* ── LIGHTBOX ─────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 99000;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#lightbox.open { display: flex; }
#lbImgWrap {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lbImg {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  object-fit: contain;
  user-select: none;
}
#lbCounter {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
}
#lbClose {
  position: fixed; top: 20px; right: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 20px;
  width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .18s;
  z-index: 1;
}
#lbClose:hover { background: rgba(255,255,255,.18); }
#lbPrev, #lbNext {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 28px;
  width: 50px; height: 50px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .18s, opacity .18s;
  z-index: 1;
}
#lbPrev { left: 20px; }
#lbNext { right: 20px; }
#lbPrev:hover, #lbNext:hover { background: rgba(255,255,255,.2); }
#lbPrev:disabled, #lbNext:disabled { opacity: .2; pointer-events: none; }
@media (max-width: 600px) {
  #lbPrev { left: 8px; }
  #lbNext { right: 8px; }
}

/* Video player overlay */
.vid-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 1;
  transition: opacity 0.3s ease;
}
.vid-play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.vid-play-btn:hover { background: #cc0018; transform: scale(1.08); }
.vid-play-btn svg { width: 20px; height: 20px; }
.vid-fs-btn {
  position: absolute; bottom: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.vid-fs-btn:hover { background: rgba(204,0,24,0.7); }
.vid-fs-btn svg { width: 14px; height: 14px; }

.proj-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0; border-top: 1px solid var(--border); margin-top: 56px;
}
.proj-nav-link {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .2s; display: flex; align-items: center; gap: 6px;
}
.proj-nav-link:hover { color: var(--text); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.f-logo   { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.f-logo em { font-style: normal; color: var(--text-2); }
.f-copy   { font-size: 13px; color: var(--text-3); }
.f-tag    { font-size: 12px; font-weight: 500; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── TOAST ────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(30,30,36,0.88); backdrop-filter: blur(20px);
  border: 1px solid var(--border-2); border-top-color: var(--border-3);
  border-radius: var(--r-pill); color: var(--text);
  font-size: 14px; font-weight: 500;
  padding: 12px 24px; z-index: 9500; opacity: 0;
  transition: transform .5s var(--spring), opacity .3s;
  white-space: nowrap; box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,.8); backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.modal-bg.open { opacity: 1; pointer-events: auto; }
.modal-box { width: 90%; max-width: 900px; transform: scale(.9); transition: transform .4s var(--spring); }
.modal-bg.open .modal-box { transform: scale(1); }
.modal-close-btn {
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: color .2s; background: none; border: none; cursor: pointer;
}
.modal-close-btn:hover { color: var(--text); }
.modal-video-wrap {
  aspect-ratio: 16/9; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-direction: column;
}
.modal-play-icon { font-size: 40px; color: var(--text-2); }
.modal-video-wrap p { font-size: 14px; color: var(--text-3); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .work-grid    { grid-template-columns: repeat(2, 1fr); }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(3, 1fr); }
  .about-grid   { grid-template-columns: 1fr; }
  .testi-grid   { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .proj-body-grid { grid-template-columns: 1fr; }
  .about-page-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  #nav .nav-links {
    display: none; position: fixed; inset: 0;
    background: rgba(7,7,11,0.97); backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; z-index: 899;
  }
  #nav .nav-links.open { display: flex; }
  #nav .nl { font-size: 20px; font-weight: 600; padding: 12px 24px; }
  .hidden-mobile { display: none !important; }
  .burger  { display: flex; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .work-grid  { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .cf-row-2   { grid-template-columns: 1fr; }
  .contact-form-card { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; aspect-ratio: 16/10; }
  .proj-nav { flex-direction: column; gap: 12px; }
  .hero-scroll-hint { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   LIGHT MODE
══════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --bg:       #f0f0f5;
  --bg-1:     #e8e8ef;
  --bg-2:     #dededf;
  --hero-bg:  #e8e8f0;

  --glass:   rgba(255,255,255,0.65);
  --glass-2: rgba(255,255,255,0.82);
  --glass-3: rgba(255,255,255,0.95);

  --border:   rgba(0,0,0,0.09);
  --border-2: rgba(0,0,0,0.14);
  --border-3: rgba(0,0,0,0.22);

  --text:   #1d1d1f;
  --text-2: rgba(29,29,31,0.58);
  --text-3: rgba(29,29,31,0.36);

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.10), 0 1px 0 rgba(255,255,255,0.6);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.10), 0 1px 0 rgba(255,255,255,0.7);
  --shadow:    0 8px 32px rgba(0,0,0,0.12), 0 1px 0 rgba(255,255,255,0.8);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14), 0 1px 0 rgba(255,255,255,0.9);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.18);
}

[data-theme="light"] body { background: var(--bg); }

[data-theme="light"] #nav.solid {
  background: rgba(240,240,245,0.80);
  border-bottom-color: var(--border);
}

[data-theme="light"] .ambient {
  background:
    radial-gradient(ellipse 70% 50% at 20% -10%, rgba(204,0,24,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 110%, rgba(204,0,24,0.04) 0%, transparent 50%);
}

[data-theme="light"] .marquee-band {
  background: var(--bg-1);
}

[data-theme="light"] .hero-content {
  text-shadow: 0 1px 8px rgba(240,240,245,0.6);
}

[data-theme="light"] .wc-media {
  background: #f0f0f0;
}
[data-theme="light"] .wc-media img {
  filter: brightness(.97) saturate(.95);
}

[data-theme="light"] .work-card:hover .wc-media img {
  filter: brightness(.88) saturate(1);
}

[data-theme="light"] .about-image-wrap img {
  filter: brightness(.88) saturate(.8);
}

[data-theme="light"] .page-hero-bg img {
  filter: brightness(.18) saturate(.3);
}

[data-theme="light"] .cf-field input,
[data-theme="light"] .cf-field textarea,
[data-theme="light"] .cf-field select,
[data-theme="light"] .f-field input,
[data-theme="light"] .f-field textarea {
  background: rgba(255,255,255,0.7);
  color: var(--text);
}

[data-theme="light"] .cf-field select option { background: #e8e8ef; }

[data-theme="light"] .scroll-progress { background: var(--accent); }

[data-theme="light"] .hero-overlay {
  background: rgba(240,240,245,0.25);
}

/* ══════════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
══════════════════════════════════════════════════════════════ */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--glass-2); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background .2s, transform .2s;
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
}
.theme-toggle:hover  { background: var(--glass-3); transform: scale(1.08); }
.theme-toggle:active { transform: scale(0.93); }
.theme-toggle svg {
  width: 16px; height: 16px; color: var(--text-2);
  transition: color .2s, transform .4s cubic-bezier(.34,1.56,.64,1);
}
.theme-toggle:hover svg { color: var(--text); transform: rotate(22deg) scale(1.15); }
.theme-toggle:active svg { transform: rotate(180deg) scale(.9); }

/* Sun icon — show in dark mode */
.icon-sun  { display: block; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ══════════════════════════════════════════════════════════════
   CUSTOM CURSOR — hide OS cursor on ALL elements
══════════════════════════════════════════════════════════════ */
@media (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

/* Cursor dot */
.cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  z-index: 99999;
  transition: width .18s cubic-bezier(.34,1.56,.64,1),
              height .18s cubic-bezier(.34,1.56,.64,1),
              background .18s ease,
              box-shadow .18s ease;
  box-shadow: 0 0 6px var(--accent), 0 0 14px rgba(204,0,24,0.35);
  will-change: transform;
}

/* Outer ring */
.cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(204,0,24,0.45);
  z-index: 99998;
  transition: width .28s cubic-bezier(.34,1.56,.64,1),
              height .28s cubic-bezier(.34,1.56,.64,1),
              border-color .2s ease,
              background .2s ease,
              opacity .2s ease;
  will-change: transform;
}

/* ── HOVER: clickable element — ring pulses inward, dot brightens */
.cursor-dot.hovered {
  width: 12px; height: 12px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(204,0,24,0.9),
              0 0 18px rgba(204,0,24,0.55);
}
.cursor-ring.hovered {
  width: 44px; height: 44px;
  border-color: rgba(204,0,24,0.85);
  border-width: 2px;
  background: rgba(204,0,24,0.06);
  animation: ringPulse .7s ease-out infinite;
}
@keyframes ringPulse {
  0%   { box-shadow: 0 0 0 0 rgba(204,0,24,0.3); }
  70%  { box-shadow: 0 0 0 8px rgba(204,0,24,0); }
  100% { box-shadow: 0 0 0 0 rgba(204,0,24,0); }
}

/* ── CLICKED */
.cursor-dot.clicked { width: 5px; height: 5px; }
.cursor-ring.clicked {
  width: 22px; height: 22px;
  background: rgba(204,0,24,0.15);
  animation: none;
}

/* ══════════════════════════════════════════════════════════════
   NAV LOGO (image)
══════════════════════════════════════════════════════════════ */
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 26px; width: auto; display: block;
  transition: opacity .2s;
}
.nav-logo:hover .nav-logo-img { opacity: .8; }

/* Dark mode → white logo. Light mode → black logo */
.logo-for-dark  { display: block;  }
.logo-for-light { display: none;   }
[data-theme="light"] .logo-for-dark  { display: none;  }
[data-theme="light"] .logo-for-light { display: block; }

/* Fallback text logo: hidden when images load, shown on error */
.nav-logo-fallback {
  display: none;
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
}
.nav-logo.logo-img-failed .nav-logo-img   { display: none !important; }
.nav-logo.logo-img-failed .nav-logo-fallback { display: inline !important; }

/* ══════════════════════════════════════════════════════════════
   HERO PARTICLES CANVAS
══════════════════════════════════════════════════════════════ */
#heroParticles {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; width: 100%; height: 100%;
}

/* ══════════════════════════════════════════════════════════════
   ANIMATED GRADIENT ORBS
══════════════════════════════════════════════════════════════ */
.hero-orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 1;
  filter: blur(90px);
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(204,0,24,0.12) 0%, transparent 70%);
  top: -100px; right: 5%;
  animation: orbFloat1 14s ease-in-out infinite;
}
.orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(245,245,247,0.06) 0%, transparent 70%);
  bottom: 10%; left: 5%;
  animation: orbFloat2 18s ease-in-out infinite;
}
.orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(204,0,24,0.08) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation: orbFloat3 22s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0);} 33%{transform:translate(40px,-60px);} 66%{transform:translate(-30px,30px);} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0);} 40%{transform:translate(-50px,40px);} 70%{transform:translate(30px,-20px);} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0);} 50%{transform:translate(60px,50px);} }

/* ══════════════════════════════════════════════════════════════
   GLITCH EFFECT
══════════════════════════════════════════════════════════════ */
@keyframes glitch1 {
  0%,100%{ clip-path:inset(0 0 90% 0); transform:translate(-3px,0); }
  50%    { clip-path:inset(50% 0 30% 0); transform:translate(3px,0); }
}
@keyframes glitch2 {
  0%,100%{ clip-path:inset(60% 0 20% 0); transform:translate(3px,0); }
  50%    { clip-path:inset(10% 0 70% 0); transform:translate(-3px,0); }
}

.hero-name.glitch { position: relative; }
.hero-name.glitch::before,
.hero-name.glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-name.glitch::before {
  color: rgba(204,0,24,0.7);
  animation: glitch1 .2s steps(2) both;
}
.hero-name.glitch::after {
  color: rgba(245,245,247,0.6);
  animation: glitch2 .2s steps(2) both;
}

/* ══════════════════════════════════════════════════════════════
   CARD GLOW ON HOVER
══════════════════════════════════════════════════════════════ */
.work-card:hover {
  box-shadow: 0 0 0 1px rgba(204,0,24,0.2),
              var(--shadow-lg),
              0 0 40px rgba(204,0,24,0.06);
}
.svc-card:hover {
  box-shadow: 0 0 0 1px rgba(204,0,24,0.15),
              var(--shadow-lg),
              0 0 24px rgba(204,0,24,0.05);
}

/* ══════════════════════════════════════════════════════════════
   NAV SCROLLED GREEN LINE
══════════════════════════════════════════════════════════════ */
#nav.scrolled::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(204,0,24,0.3), transparent);
}

/* ══════════════════════════════════════════════════════════════
   FILTER ACTIVE GLOW
══════════════════════════════════════════════════════════════ */
.filter.active {
  box-shadow: 0 0 0 1px rgba(204,0,24,0.4), 0 0 12px rgba(204,0,24,0.2);
}

/* ══════════════════════════════════════════════════════════════
   MARQUEE PAUSE
══════════════════════════════════════════════════════════════ */
.marquee-track {
  animation-play-state: var(--play, running);
}

/* ══════════════════════════════════════════════════════════════
   STAT POP ANIMATION
══════════════════════════════════════════════════════════════ */
@keyframes statPop {
  0%   { color: var(--text); }
  40%  { color: var(--accent); text-shadow: 0 0 20px rgba(204,0,24,0.6); }
  100% { color: var(--text); }
}
.hero-stat-num.stat-pop {
  animation: statPop 1.2s ease forwards;
}

/* ══════════════════════════════════════════════════════════════
   SKILL BARS — RED GLOW
══════════════════════════════════════════════════════════════ */
.skill-fill {
  box-shadow: 0 0 8px rgba(204,0,24,0.4);
}

/* ══════════════════════════════════════════════════════════════
   AVAILABLE DOT — PULSE
══════════════════════════════════════════════════════════════ */
.badge-dot, .avail-dot {
  background: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(204,0,24,0.2) !important;
  animation: redPulse 2s ease-in-out infinite !important;
}
@keyframes redPulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(204,0,24,0.2); opacity: 1; }
  50%     { box-shadow: 0 0 0 5px rgba(204,0,24,0.08); opacity: .75; }
}

/* (scroll reveal already defined above with blur) */

/* ══════════════════════════════════════════════════════════════
   BTN-PRIMARY GLOW
══════════════════════════════════════════════════════════════ */
.btn-primary:hover, .btn-hero-primary:hover {
  box-shadow: 0 0 0 1px rgba(204,0,24,0.4), 0 0 24px rgba(204,0,24,0.3) !important;
}

/* ══════════════════════════════════════════════════════════════
   HERO CONTENT Z-INDEX FIX (above canvas + orbs)
══════════════════════════════════════════════════════════════ */
.hero-content { z-index: 10; }

