/* ============================================================
   K-VISUAL — style.css
   Dark & Bold · Studio créatif · Bienne
   ============================================================ */

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

/* ── Variables ── */
:root {
  --bg:       #07090E;
  --bg2:      #0D1017;
  --bg3:      #131720;
  --accent:   #00D4FF;
  --accent2:  #FF2D78;
  --white:    #F0F0F6;
  --muted:    rgba(240,240,246,.45);
  --border:   rgba(240,240,246,.08);
  --border2:  rgba(240,240,246,.15);
  --head:     'Space Grotesk', sans-serif;
  --body:     'Inter', sans-serif;
  --ease:     cubic-bezier(.22,1,.36,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  height: 64px;
  background: rgba(7,9,14,.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-mark {
  font-family: var(--head);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.5px;
  line-height: 1;
}
.nav-logo-text {
  font-family: var(--head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: .85;
}
@media (max-width: 480px) { .nav-logo-text { display: none; } }

.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-bar { display: flex; gap: 3px; }
.lang-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  transition: all .2s;
}
.lang-btn.active,
.lang-btn:hover { background: var(--bg3); color: var(--white); border-color: var(--border2); }
.lang-btn.active { color: var(--accent); }

/* ── Hero ── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px clamp(1.5rem, 6vw, 5rem) 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,212,255,.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(255,45,120,.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-line {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,.25), transparent);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .7s var(--ease) .3s forwards;
}
.hero-title {
  font-family: var(--head);
  font-size: clamp(3.8rem, 11vw, 9.5rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .45s forwards;
}
.hero-title .k { color: var(--accent); }
.hero-title .dot { color: var(--accent2); }

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .6s forwards;
}
.hero-sub strong { color: var(--white); font-weight: 500; }

.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .75s forwards;
}
.hero-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 5px 14px;
  transition: all .25s;
}
.hero-tag:hover { border-color: var(--accent); color: var(--accent); }

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .9s forwards;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--head);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 13px 28px;
  transition: all .25s var(--ease);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,212,255,.25);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--head);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 13px 28px;
  transition: all .25s var(--ease);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(240,240,246,.06);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.5s forwards;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-text {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Section base ── */
section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
}
.section-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.section-title {
  font-family: var(--head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 1.2rem;
}
.section-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Services ── */
#services { background: var(--bg2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin-top: 4rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.service-card {
  position: relative;
  background: var(--bg2);
  padding: 2.5rem 2rem;
  transition: background .3s var(--ease);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card:hover { background: var(--bg3); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent);
  opacity: .6;
  margin-bottom: 1.4rem;
}
.service-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  line-height: 1;
}
.service-title {
  font-family: var(--head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: .8rem;
  color: var(--white);
}
.service-desc {
  font-size: .875rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1.4rem;
}
.stag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(240,240,246,.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 9px;
  color: var(--muted);
  transition: all .2s;
}
.service-card:hover .stag { border-color: var(--border2); color: rgba(240,240,246,.7); }

/* ── About ── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
@media (max-width: 768px) { #about { grid-template-columns: 1fr; } }
.about-visual {
  aspect-ratio: 4/3;
  background: var(--bg3);
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.about-visual-inner {
  font-family: var(--head);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--accent);
  opacity: .08;
  letter-spacing: -.04em;
  user-select: none;
}
.about-logo-img {
  width: 55%;
  height: auto;
  object-fit: contain;
  filter: invert(1) brightness(10);
  opacity: .12;
  position: relative;
  z-index: 1;
}
.about-visual-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,212,255,.06) 0%, transparent 70%);
}
.about-quote {
  font-family: var(--head);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  font-style: italic;
  color: var(--white);
  line-height: 1.7;
  padding-left: 1.4rem;
  border-left: 2px solid var(--accent);
  margin: 2rem 0;
}
.about-quote cite {
  display: block;
  font-size: .8rem;
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  margin-top: .5rem;
}
.about-origin {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ── Work teaser ── */
#work { background: var(--bg2); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.work-card {
  aspect-ratio: 16/10;
  background: var(--bg3);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: border-color .3s, transform .3s var(--ease);
  cursor: default;
}
.work-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.work-card:hover .work-card-img { transform: scale(1.04); opacity: .85; }
.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease), opacity .3s;
  opacity: .75;
}
.work-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.2rem 1.2rem;
  background: linear-gradient(to top, rgba(7,9,14,.92) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.work-card-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--white);
}
.work-card-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(0,212,255,.12);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,.25);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ── Contact ── */
#contact {
  text-align: center;
  background: var(--bg);
}
.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}
.contact-title {
  font-family: var(--head);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.contact-title span { color: var(--accent); }
.contact-sub {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-size: clamp(.95rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--white);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 16px 28px;
  margin-bottom: 1.5rem;
  transition: all .25s var(--ease);
  text-decoration: none;
}
.contact-email:hover {
  border-color: var(--accent);
  background: rgba(0,212,255,.05);
  box-shadow: 0 0 30px rgba(0,212,255,.08);
}
.contact-location {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .75rem;
}

/* ── Footer ── */
footer {
  padding: 1.5rem clamp(1.5rem, 6vw, 5rem);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .04em;
}
.footer-copy strong { color: var(--accent); font-weight: 700; }
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  margin: 0;
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.15); }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; }
  #about { padding: 4rem 1.5rem; }
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
