/* =============================================
   VARIABLES & RESET
============================================= */
:root {
  --bg:         #08010F;
  --bg-card:    #0E0118;
  --glass-bg:   rgba(124, 58, 237, 0.07);
  --glass-b:    rgba(168, 85, 247, 0.18);
  --v1:         #7C3AED;
  --v2:         #A855F7;
  --v3:         #C084FC;
  --vg:         linear-gradient(135deg, #7C3AED 0%, #A855F7 55%, #C084FC 100%);
  --vg-soft:    linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(192,132,252,0.04) 100%);
  --white:      #FFFFFF;
  --grey:       #8B8BAA;
  --grey-l:     #B8B8D0;
  --r-sm:       8px;
  --r:          16px;
  --r-lg:       24px;
  --r-xl:       32px;
  --r-full:     9999px;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Outfit', sans-serif;
  --lbl:        'Space Grotesk', sans-serif;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --t:          0.35s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* =============================================
   MOBILE OPTIMISATIONS
============================================= */
/* Supprime le flash bleu au tap sur mobile */
* { -webkit-tap-highlight-color: transparent; }

/* Empêche le overscroll bounce sur iOS */
html {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

/* Évite le zoom non désiré sur les inputs iOS */
input, select, textarea {
  font-size: 16px !important;
}

@media (min-width: 769px) {
  input, select, textarea {
    font-size: inherit !important;
  }
}

/* Smooth scroll natif + fallback */
@supports (scroll-behavior: smooth) {
  html { scroll-behavior: smooth; }
}

/* Touch action pour les éléments interactifs */
button, a, [onclick] {
  touch-action: manipulation;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--white); font-family: var(--sans); overflow-x: hidden; cursor: none; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: none; font-family: inherit; }

/* =============================================
   GRAIN OVERLAY
============================================= */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  opacity: 0.03; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(1) infinite;
}
@keyframes grain {
  0%{transform:translate(0,0)} 20%{transform:translate(-2%,-3%)}
  40%{transform:translate(3%,2%)} 60%{transform:translate(-1%,4%)}
  80%{transform:translate(4%,-2%)} 100%{transform:translate(-2%,1%)}
}

/* =============================================
   CURSOR
============================================= */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--vg); border-radius: var(--r-full);
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s;
}
.cursor-ring {
  position: fixed; width: 38px; height: 38px;
  border: 1.5px solid rgba(168,85,247,.5); border-radius: var(--r-full);
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .4s, height .4s;
}
.cursor.hov { width: 6px; height: 6px; }
.cursor-ring.hov { width: 56px; height: 56px; border-color: rgba(168,85,247,.2); }

@media (max-width: 1024px) {
  .cursor, .cursor-ring { display: none; }
  body, a, button, input, select, textarea, label,
  .pf-item, .srv-card, .pf-btn, .option-item { cursor: auto; }
  a, button, .pf-item, .srv-card, .pf-btn, .option-item,
  .filter-btn, .fbtn, input[type="submit"] { cursor: pointer; }
}

/* =============================================
   PRELOADER
============================================= */
#preloader {
  position: fixed; inset: 0; background: var(--bg); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 28px;
  transition: opacity .9s var(--ease), visibility .9s;
}
#preloader.out { opacity: 0; visibility: hidden; }

.pre-name {
  font-family: var(--serif); font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 900;
  background: var(--vg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: 0.08em;
}
.pre-name span {
  display: inline-block; opacity: 0; transform: translateY(110%);
  animation: preIn .7s var(--ease) forwards;
  animation-delay: calc(var(--i) * .07s);
}
.pre-bar {
  width: 0; height: 1px; background: var(--vg);
  border-radius: var(--r-full);
  animation: preBar 1.4s var(--ease) .5s forwards;
}
@keyframes preIn { to { opacity: 1; transform: translateY(0); } }
@keyframes preBar { to { width: 180px; } }

/* =============================================
   NAVBAR
============================================= */
nav {
  position: fixed; inset: 14px 14px auto 14px; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 64px;
  border-radius: var(--r-lg); border: 1px solid transparent;
  transition: all .4s var(--ease);
}
nav.scrolled {
  background: rgba(8,1,15,.8); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border-color: var(--glass-b);
  box-shadow: 0 8px 40px rgba(124,58,237,.12);
}

.nav-logo { font-family: var(--serif); font-size: 1.15rem; font-weight: 900; }
.nav-logo span { background: var(--vg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--lbl); font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--grey-l); transition: color .2s;
}
.nav-links a:hover { color: var(--v3); }

.nav-cta {
  padding: 10px 22px; background: var(--vg); border-radius: var(--r-full);
  font-family: var(--lbl); font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--white) !important;
  box-shadow: 0 4px 20px rgba(124,58,237,.35);
  transition: opacity .2s, box-shadow .2s;
}
.nav-cta:hover { opacity: .88; box-shadow: 0 6px 28px rgba(124,58,237,.55); }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 26px; }
.hamburger span { display: block; width: 100%; height: 1.5px; background: var(--white); border-radius: var(--r-full); transition: var(--t) var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: rgba(8,1,15,.97); backdrop-filter: blur(20px);
  position: fixed; inset: 0; background: rgba(8,1,15,.97); -webkit-backdrop-filter: blur(20px);
  z-index: 999; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 36px;
  transform: translateX(100%); transition: transform .5s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--serif); font-size: clamp(2rem, 8vw, 3.5rem); font-weight: 900; transition: .2s; }
.mobile-menu a:hover { background: var(--vg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mobile-tel { font-family: var(--lbl); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-top: 10px; }

@media (max-width: 900px) { .nav-links { display: none; } .hamburger { display: flex; } }

/* =============================================
   UTILITIES
============================================= */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--lbl); font-size: .7rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--v2); margin-bottom: 18px;
}
.section-label::before {
  content: ''; display: block; width: 28px; height: 1.5px;
  background: var(--vg); border-radius: var(--r-full);
}

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.vis { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* =============================================
   BUTTONS
============================================= */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; background: var(--vg); border-radius: var(--r-full);
  font-family: var(--lbl); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--white);
  box-shadow: 0 4px 24px rgba(124,58,237,.4);
  transition: opacity .2s, box-shadow .2s, transform .2s;
}
.btn-primary:hover { opacity: .9; box-shadow: 0 8px 36px rgba(124,58,237,.6); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; background: var(--glass-bg);
  border: 1px solid var(--glass-b); border-radius: var(--r-full);
  font-family: var(--lbl); font-size: .8rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--grey-l);
  backdrop-filter: blur(12px); transition: var(--t) var(--ease);
  -webkit-backdrop-filter: blur(12px); transition: var(--t) var(--ease);
}
.btn-secondary:hover { border-color: var(--v2); color: var(--v3); }

/* =============================================
   HERO
============================================= */
#hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding: 110px 6% 70px; gap: 60px; position: relative;
}
#hero::before {
  content: ''; position: absolute; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,.18) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none; border-radius: var(--r-full);
}
#hero::after {
  content: ''; position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(192,132,252,.1) 0%, transparent 70%);
  bottom: 0; left: 0; pointer-events: none; border-radius: var(--r-full);
}

.hero-photo-wrap { position: relative; display: flex; justify-content: center; }

.hero-photo-glass {
  position: relative; width: 100%; max-width: 440px;
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--glass-b);
  box-shadow: 0 0 60px rgba(124,58,237,.2), 0 40px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-photo-glass::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(8,1,15,.4) 100%);
  pointer-events: none; z-index: 1;
}

.hero-photo-img { width: 100%; height: 580px; object-fit: cover; object-position: top center; display: block; filter: contrast(1.04); transition: transform 0.1s ease-out; will-change: transform; }

.hero-badge {
  position: absolute; bottom: 28px; left: -22px;
  background: rgba(14,1,24,.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-b); border-radius: var(--r); padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(124,58,237,.25); z-index: 3;
}
.hero-badge-val {
  display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 900;
  background: var(--vg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1;
}
.hero-badge-lbl { display: block; font-family: var(--lbl); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin-top: 4px; }

.hero-ring {
  position: absolute; width: 520px; height: 520px;
  border: 1px solid rgba(168,85,247,.1); border-radius: var(--r-full);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; animation: spinRing 35s linear infinite;
}
.hero-ring::after {
  content: ''; position: absolute; width: 8px; height: 8px;
  background: var(--vg); border-radius: var(--r-full);
  top: -4px; left: 50%; transform: translateX(-50%);
}
.hero-ring-2 {
  position: absolute; width: 420px; height: 420px;
  border: 1px dashed rgba(168,85,247,.07); border-radius: var(--r-full);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; animation: spinRing 22s linear infinite reverse;
}
@keyframes spinRing { to { transform: translate(-50%,-50%) rotate(360deg); } }

.hero-content { position: relative; z-index: 2; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--lbl); font-size: .72rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--v3);
  margin-bottom: 28px; padding: 8px 16px;
  background: rgba(124,58,237,.1); border: 1px solid rgba(168,85,247,.2);
  border-radius: var(--r-full); width: fit-content;
  opacity: 0; animation: fadeUp .7s var(--ease) .5s forwards;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: var(--r-full);
  background: var(--vg); animation: dotPulse 2s ease infinite;
}
@keyframes dotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

.hero-h1 { font-family: var(--serif); font-size: clamp(3rem,5.5vw,5.8rem); font-weight: 900; line-height: 1.02; letter-spacing: -.025em; margin-bottom: 6px; }
.hero-line { display: block; overflow: hidden; }
.hero-line-inner { display: block; transform: translateY(110%); animation: lineUp .9s var(--ease) forwards; }
.hero-line:nth-child(1) .hero-line-inner { animation-delay: .55s; }
.hero-line:nth-child(2) .hero-line-inner { animation-delay: .7s; }
.hero-line:nth-child(3) .hero-line-inner {
  animation-delay: .85s; font-style: italic;
  background: var(--vg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; } }

.hero-sub { font-size: 1.05rem; color: var(--grey-l); line-height: 1.75; max-width: 400px; margin: 26px 0 40px; opacity: 0; animation: fadeUp .7s var(--ease) 1.1s forwards; }
.hero-sub strong { color: var(--white); font-weight: 500; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fadeUp .7s var(--ease) 1.25s forwards; }

@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; padding: 0; min-height: 100svh; }
  #hero::before, #hero::after { display: none; }
  .hero-photo-wrap { position: absolute; inset: 0; max-width: none; }
  .hero-photo-glass { max-width: none; width: 100%; height: 100%; border-radius: 0; border: none; box-shadow: none; }
  .hero-photo-glass::after { background: linear-gradient(to top, rgba(8,1,15,.97) 0%, rgba(8,1,15,.6) 50%, rgba(8,1,15,.2) 100%); }
  .hero-photo-img { width: 100%; height: 100%; object-position: center top; }
  .hero-ring, .hero-ring-2 { display: none; }
  .hero-badge { bottom: auto; top: 88px; left: 5%; }
  .hero-content { position: relative; z-index: 3; padding: 0 6% 80px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; }
  .hero-h1 { font-size: clamp(2.8rem,11vw,4.5rem); }
  .hero-sub { max-width: 100%; }
}

/* =============================================
   TICKER
============================================= */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(168,85,247,.12);
  border-bottom: 1px solid rgba(168,85,247,.12);
  background: rgba(124,58,237,.04); padding: 14px 0;
}
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: flex; align-items: center; gap: 24px; padding: 0 24px;
  font-family: var(--lbl); font-size: .7rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--grey); white-space: nowrap;
}
.ticker-item b { background: var(--vg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ticker-gem { width: 5px; height: 5px; background: var(--vg); border-radius: 50%; flex-shrink: 0; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.ticker-track { will-change: transform; }

/* =============================================
   MANIFESTO
============================================= */
#manifesto {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 6%; text-align: center; position: relative;
}
#manifesto::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,.1) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; border-radius: var(--r-full);
}

.mf-inner { max-width: 780px; position: relative; z-index: 1; }
.mf-line {
  display: block; font-family: var(--serif); font-size: clamp(1.5rem,3.2vw,2.6rem);
  font-weight: 400; line-height: 1.4; color: rgba(255,255,255,.14);
  transition: color .7s var(--ease); margin-bottom: 4px;
}
.mf-line.on { color: var(--white); }
.mf-line.grad {
  background: var(--vg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  color: transparent !important; font-style: italic;
  font-size: clamp(2rem,4.5vw,3.8rem); font-weight: 900;
}
.mf-line.sm { font-family: var(--lbl); font-size: clamp(.7rem,1.4vw,.85rem); letter-spacing: .25em; text-transform: uppercase; font-weight: 500; margin-top: 18px; }
.mf-gap { height: 22px; display: block; }

/* =============================================
   SERVICES
============================================= */
#services { padding: 120px 6%; position: relative; }
#services::before {
  content: ''; position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,.07) 0%, transparent 70%);
  bottom: 0; right: 0; pointer-events: none; border-radius: var(--r-full);
}

.sh { margin-bottom: 64px; }
.sh h2 { font-family: var(--serif); font-size: clamp(2.2rem,4vw,3.4rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 14px; }
.sh h2 em { background: var(--vg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: italic; }
.sh p { font-size: 1rem; color: var(--grey-l); line-height: 1.75; max-width: 520px; }

.srv-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

.srv-card {
  background: rgba(14,1,24,.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-b); border-radius: var(--r-xl); padding: 44px 40px;
  transition: var(--t) var(--ease); position: relative; overflow: hidden; cursor: none;
}
.srv-card::before { content: ''; position: absolute; inset: 0; background: var(--vg-soft); opacity: 0; transition: opacity .4s; border-radius: inherit; }
.srv-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--vg); border-radius: var(--r-full); opacity: 0; transition: opacity .4s; }
.srv-card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,.35); box-shadow: 0 20px 60px rgba(124,58,237,.15); }
.srv-card:hover::before { opacity: 1; }
.srv-card:hover::after { opacity: 1; }

.srv-icon {
  width: 50px; height: 50px; border-radius: var(--r);
  background: rgba(124,58,237,.12); border: 1px solid rgba(168,85,247,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; position: relative; z-index: 1;
  transition: background .3s, border-color .3s;
  color: var(--v2);
}
.srv-card:hover .srv-icon { background: rgba(124,58,237,.25); border-color: rgba(168,85,247,.4); }
.srv-icon svg { width: 22px; height: 22px; }

.srv-num { font-family: var(--lbl); font-size: .65rem; letter-spacing: .2em; color: var(--v2); margin-bottom: 12px; position: relative; z-index: 1; }
.srv-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; margin-bottom: 12px; position: relative; z-index: 1; transition: .3s; }
.srv-card:hover .srv-title { background: var(--vg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.srv-desc { font-size: .92rem; color: var(--grey-l); line-height: 1.75; margin-bottom: 22px; position: relative; z-index: 1; }
.srv-tags { display: flex; flex-wrap: wrap; gap: 7px; position: relative; z-index: 1; }
.srv-tag {
  font-family: var(--lbl); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--grey); background: rgba(124,58,237,.08); border: 1px solid rgba(168,85,247,.12);
  padding: 5px 12px; border-radius: var(--r-full); transition: .3s;
}
.srv-card:hover .srv-tag { border-color: rgba(168,85,247,.25); color: var(--grey-l); }

@media (max-width: 768px) { .srv-grid { grid-template-columns: 1fr; } .srv-card { padding: 32px 26px; } }

/* =============================================
   PORTFOLIO
============================================= */
#portfolio { padding: 120px 6%; }

.pf-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 44px; }
.pf-btn {
  font-family: var(--lbl); font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--grey-l);
  padding: 9px 20px; background: rgba(124,58,237,.06);
  border: 1px solid rgba(168,85,247,.12); border-radius: var(--r-full);
  cursor: none; transition: var(--t) var(--ease);
}
.pf-btn.on, .pf-btn:hover { background: var(--vg); color: var(--white); border-color: transparent; box-shadow: 0 4px 20px rgba(124,58,237,.35); }

.pf-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

.pf-item {
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  aspect-ratio: 4/3; background: var(--bg-card);
  border: 1px solid rgba(168,85,247,.1); cursor: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .35s;
}
.pf-item.hide { display: none; }
.pf-item:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(124,58,237,.2); border-color: rgba(168,85,247,.3); }
.pf-item.big { grid-column: span 2; aspect-ratio: 16/9; }
.pf-item.hide { display: none !important; }

.pf-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; display: block; }
.pf-item:hover .pf-img { transform: scale(1.05); filter: brightness(.8); }

.pf-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(124,58,237,.08) 0%, rgba(192,132,252,.04) 100%);
  font-family: var(--serif); font-size: 2.2rem; font-weight: 900; color: rgba(168,85,247,.12); letter-spacing: .06em;
}

.pf-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,1,15,.95) 0%, rgba(8,1,15,.4) 55%, transparent 100%);
  opacity: 0; transition: opacity .4s;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
  border-radius: inherit;
}
.pf-item:hover .pf-overlay { opacity: 1; }

.pf-cat { font-family: var(--lbl); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--v3); margin-bottom: 6px; transform: translateY(8px); transition: transform .4s .05s var(--ease); }
.pf-item:hover .pf-cat { transform: none; }
.pf-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; transform: translateY(8px); transition: transform .4s .1s var(--ease); }
.pf-item:hover .pf-name { transform: none; }
.pf-item.big .pf-name { font-size: 1.5rem; }

.pf-arrow {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px;
  background: rgba(124,58,237,.8); backdrop-filter: blur(8px);
  background: rgba(124,58,237,.8); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translate(8px,-8px); transition: opacity .3s, transform .3s;
}
.pf-item:hover .pf-arrow { opacity: 1; transform: none; }
.pf-arrow svg { width: 14px; height: 14px; }

.pf-behance {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
  padding: 13px 24px; background: rgba(124,58,237,.08);
  border: 1px solid rgba(168,85,247,.2); border-radius: var(--r-full);
  font-family: var(--lbl); font-size: .75rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--grey-l);
  transition: var(--t) var(--ease);
}
.pf-behance:hover { border-color: var(--v2); color: var(--v3); background: rgba(124,58,237,.12); }

@media (max-width: 768px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-item.big { grid-column: span 1; aspect-ratio: 4/3; }
  .pf-overlay { opacity: 1; }
}

/* =============================================
   STATS
============================================= */
#stats {
  padding: 90px 6%;
  background: rgba(124,58,237,.04);
  border-top: 1px solid rgba(168,85,247,.1);
  border-bottom: 1px solid rgba(168,85,247,.1);
}

.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  background: rgba(168,85,247,.08); border-radius: var(--r-xl); overflow: hidden;
}
.stat-item { text-align: center; padding: 44px 24px; background: var(--bg); transition: background .3s; }
.stat-item:first-child { border-radius: var(--r-xl) 0 0 var(--r-xl); }
.stat-item:last-child { border-radius: 0 var(--r-xl) var(--r-xl) 0; }
.stat-item:hover { background: rgba(124,58,237,.06); }

.stat-num {
  display: block; font-family: var(--serif); font-size: clamp(2.4rem,4.5vw,4rem); font-weight: 900;
  background: var(--vg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 10px;
}
.stat-lbl { font-family: var(--lbl); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); border-radius: var(--r-lg); }
  .stat-item { border-radius: 0 !important; }
  .stat-item:first-child { border-radius: var(--r-lg) 0 0 0 !important; }
  .stat-item:nth-child(2) { border-radius: 0 var(--r-lg) 0 0 !important; }
  .stat-item:nth-child(3) { border-radius: 0 0 0 var(--r-lg) !important; }
  .stat-item:last-child { border-radius: 0 0 var(--r-lg) 0 !important; }
}

/* =============================================
   ABOUT
============================================= */
#about { padding: 120px 6%; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-content { order: 1; }
.about-visual { order: 2; }

.about-h2 { font-family: var(--serif); font-size: clamp(2rem,3.5vw,3rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 26px; }
.about-h2 em { background: var(--vg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: italic; }
.about-p { font-size: .98rem; color: var(--grey-l); line-height: 1.8; margin-bottom: 14px; }
.about-p strong { color: var(--white); font-weight: 500; }
.about-sep { width: 50px; height: 2px; background: var(--vg); border-radius: var(--r-full); margin: 28px 0; }
.about-loc { font-family: var(--lbl); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-bottom: 18px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about-tag {
  font-family: var(--lbl); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--v3); border: 1px solid rgba(168,85,247,.25);
  padding: 6px 14px; border-radius: var(--r-full); background: rgba(124,58,237,.06);
}

.about-photo-wrap { position: relative; }
.about-img { width: 100%; height: 560px; object-fit: cover; object-position: top center; border-radius: var(--r-xl); display: block; border: 1px solid var(--glass-b); box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 0 40px rgba(124,58,237,.15); }
.about-ph { width: 100%; height: 560px; border-radius: var(--r-xl); border: 1px solid var(--glass-b); background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(192,132,252,.04)); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 4rem; font-weight: 900; color: rgba(168,85,247,.1); }
.about-deco { position: absolute; top: 24px; right: -18px; bottom: -18px; left: 24px; border: 1px solid rgba(168,85,247,.12); border-radius: var(--r-xl); z-index: -1; }
.about-badge {
  position: absolute; bottom: 28px; left: -24px;
  background: rgba(14,1,24,.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-b); border-radius: var(--r); padding: 18px 22px;
  box-shadow: 0 8px 32px rgba(124,58,237,.3); z-index: 2;
}
.about-badge-num { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 900; background: var(--vg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.about-badge-txt { display: block; font-family: var(--lbl); font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--grey); margin-top: 5px; }

@media (max-width: 900px) {
  #about { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { order: 1; } .about-content { order: 2; }
  .about-img, .about-ph { height: 400px; }
  .about-badge { left: 0; } .about-deco { display: none; }
}

/* =============================================
   CONTACT
============================================= */
#contact { padding: 120px 6%; position: relative; }
#contact::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,.1) 0%, transparent 70%);
  top: -100px; left: -100px; pointer-events: none; border-radius: var(--r-full);
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; position: relative; z-index: 1; }

.contact-h2 { font-family: var(--serif); font-size: clamp(2.2rem,4vw,3.4rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 14px; }
.contact-h2 em { background: var(--vg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-style: italic; }
.contact-sub { font-size: 1rem; color: var(--grey-l); line-height: 1.75; margin-bottom: 44px; }

.contact-opts { display: flex; flex-direction: column; }
.contact-opt { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(168,85,247,.1); transition: var(--t) var(--ease); color: inherit; }
.contact-opt:first-child { border-top: 1px solid rgba(168,85,247,.1); }
.contact-opt:hover { padding-left: 8px; }

.contact-opt-icon {
  width: 42px; height: 42px; border-radius: var(--r);
  background: rgba(124,58,237,.1); border: 1px solid rgba(168,85,247,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: var(--t); color: var(--v2);
}
.contact-opt:hover .contact-opt-icon { background: var(--vg); border-color: transparent; color: var(--white); }
.contact-opt-icon svg { width: 18px; height: 18px; transition: color .3s; }

.contact-opt-lbl { font-family: var(--lbl); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin-bottom: 3px; }
.contact-opt-val { font-size: .95rem; font-weight: 500; color: var(--white); transition: color .3s; }
.contact-opt:hover .contact-opt-val { color: var(--v3); }
.contact-opt-arr { margin-left: auto; color: var(--grey); font-size: 1rem; transition: var(--t); }
.contact-opt:hover .contact-opt-arr { color: var(--v2); transform: translateX(4px); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grp { display: flex; flex-direction: column; gap: 7px; }
.form-lbl { font-family: var(--lbl); font-size: .63rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.form-inp, .form-sel, .form-ta {
  background: rgba(124,58,237,.06); border: 1px solid rgba(168,85,247,.15);
  border-radius: var(--r); color: var(--white); padding: 13px 16px;
  font-family: var(--sans); font-size: .92rem; outline: none; width: 100%;
  transition: border-color .3s, box-shadow .3s; -webkit-appearance: none;
}
.form-inp::placeholder, .form-ta::placeholder { color: rgba(139,139,170,.5); }
.form-inp:-webkit-autofill,
.form-inp:-webkit-autofill:hover,
.form-inp:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(14,1,24,.95) inset;
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
  border-color: var(--v2);
}
.form-inp:focus, .form-sel:focus, .form-ta:focus { border-color: var(--v2); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.form-sel { cursor: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B8BAA' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-sel option { background: var(--bg-card); }
.form-ta { resize: vertical; min-height: 120px; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 50px; } .form-row { grid-template-columns: 1fr; } }

/* =============================================
   FOOTER
============================================= */
footer { padding: 44px 6%; border-top: 1px solid rgba(168,85,247,.1); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-logo { font-family: var(--serif); font-size: 1.1rem; font-weight: 900; }
.footer-logo span { background: var(--vg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-copy { font-family: var(--lbl); font-size: .67rem; letter-spacing: .1em; color: var(--grey); }
.footer-links { display: flex; gap: 22px; list-style: none; }
.footer-links a { font-family: var(--lbl); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); transition: color .2s; }
.footer-links a:hover { color: var(--v3); }

/* =============================================
   WHATSAPP + BTT + MODAL
============================================= */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 54px; height: 54px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: var(--r-full); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.4);
  transition: transform .3s, box-shadow .3s;
  animation: waFloat 3.5s ease infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.6); }
.wa-float svg { width: 26px; height: 26px; }
@keyframes waFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

.btt {
  position: fixed; bottom: 100px; right: 28px; z-index: 800;
  width: 42px; height: 42px;
  background: rgba(14,1,24,.8); border: 1px solid var(--glass-b);
  border-radius: var(--r-full); display: flex; align-items: center; justify-content: center;
  cursor: none; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--t) var(--ease); backdrop-filter: blur(12px); color: var(--grey-l); font-size: 1rem;
  transition: var(--t) var(--ease); -webkit-backdrop-filter: blur(12px); color: var(--grey-l); font-size: 1rem;
}
.btt.show { opacity: 1; visibility: visible; transform: none; }
.btt:hover { border-color: var(--v2); color: var(--v2); }

@media (max-width: 768px) { .wa-float { bottom: 20px; right: 20px; } .btt { right: 20px; bottom: 86px; } }

.modal-bg {
  position: fixed; inset: 0; background: rgba(8,1,15,.92); backdrop-filter: blur(24px);
  position: fixed; inset: 0; background: rgba(8,1,15,.92); -webkit-backdrop-filter: blur(24px);
  z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 40px 5%;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.modal-bg.open { opacity: 1; visibility: visible; }
.modal-box {
  max-width: 860px; width: 100%; background: var(--bg-card);
  border: 1px solid var(--glass-b); border-radius: var(--r-xl); overflow: hidden;
  transform: scale(.95) translateY(16px); transition: transform .4s var(--ease);
  box-shadow: 0 40px 100px rgba(124,58,237,.2);
}
.modal-bg.open .modal-box { transform: none; }
.modal-img { width: 100%; max-height: 65vh; object-fit: cover; display: block; }
.modal-info { padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal-cat-txt { font-family: var(--lbl); font-size: .63rem; letter-spacing: .2em; text-transform: uppercase; color: var(--v2); margin-bottom: 5px; }
.modal-ttl { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.modal-lnk { flex-shrink: 0; padding: 10px 20px; border: 1px solid rgba(168,85,247,.3); border-radius: var(--r-full); font-family: var(--lbl); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--v3); transition: var(--t); }
.modal-lnk:hover { background: var(--vg); border-color: transparent; color: var(--white); }
.modal-close-btn {
  position: absolute; top: 20px; right: 20px; width: 36px; height: 36px;
  background: rgba(14,1,24,.8); border: 1px solid var(--glass-b); border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center; cursor: none;
  color: var(--grey-l); font-size: 1rem; backdrop-filter: blur(8px); transition: var(--t);
  color: var(--grey-l); font-size: 1rem; -webkit-backdrop-filter: blur(8px); transition: var(--t);
}
.modal-close-btn:hover { background: var(--vg); border-color: transparent; color: var(--white); }

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .grain { animation: none; }
  .ticker-track { animation-play-state: paused; }
}
/* =============================================
   NAV ACTIVE STATE
============================================= */
.nav-links .nav-active {
  color: var(--v3) !important;
  position: relative;
}
.nav-links .nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--vg);
  border-radius: var(--r-full);
}

/* =============================================
   PAGE HERO (inner pages)
============================================= */
.page-hero {
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 6% 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,.13) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none; border-radius: var(--r-full);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(8,1,15,.6) 100%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}
.page-hero-deco {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(168,85,247,.2), transparent);
}
.page-hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 18px;
}
.page-hero-h1 em {
  background: var(--vg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}
.page-hero-sub {
  font-size: 1.05rem;
  color: var(--grey-l);
  line-height: 1.7;
  max-width: 520px;
}

/* =============================================
   PORTFOLIO PLACEHOLDERS (no image)
============================================= */
.pf-placeholder-design,
.pf-placeholder-social {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pf-placeholder-design {
  background: linear-gradient(135deg, rgba(124,58,237,.12) 0%, rgba(192,132,252,.06) 50%, rgba(124,58,237,.04) 100%);
}
.pf-placeholder-social {
  background: linear-gradient(135deg, rgba(168,85,247,.1) 0%, rgba(124,58,237,.06) 50%, rgba(192,132,252,.04) 100%);
}
.pf-placeholder-design::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(124,58,237,.04) 0, rgba(124,58,237,.04) 1px,
    transparent 1px, transparent 28px
  );
}
.pf-placeholder-social::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(168,85,247,.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.pf-placeholder-inner {
  position: relative; z-index: 1;
  text-align: center; padding: 20px;
}
.pf-placeholder-label {
  display: block;
  font-family: var(--lbl);
  font-size: .55rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--v2);
  opacity: .7;
  margin-bottom: 12px;
}
.pf-placeholder-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  background: var(--vg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}
.pf-placeholder-sub {
  display: block;
  font-family: var(--lbl);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--grey);
}

/* =============================================
   CTA BAND
============================================= */
.cta-band {
  margin: 0 6% 80px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(124,58,237,.15) 0%, rgba(168,85,247,.08) 100%);
  border: 1px solid rgba(168,85,247,.2);
  padding: 56px 60px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,.15) 0%, transparent 70%);
  top: -150px; right: -100px;
  pointer-events: none; border-radius: var(--r-full);
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}
.cta-band-h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.cta-band-sub {
  font-family: var(--lbl);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
}
.cta-band-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .cta-band { padding: 36px 28px; margin: 0 0 60px; border-radius: var(--r-lg); }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   IMAGE PERFORMANCE
============================================= */
.pf-img {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.hero-photo-img {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Aspect ratio placeholders to avoid layout shift */
.pf-item { contain: layout style; }

@media (prefers-reduced-motion: reduce) {
  .page-hero::before { display: none; }
}
