/* ---------- Brand fonts, self-hosted (no Google Fonts dependency) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/SpaceGrotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --near-black: #0a0a0a;
  --panel: #111113;
  --gray: #808285;
  --silver: #c9cacc;
  --off-white: #f5f5f5;
  --white: #ffffff;
  --border: rgba(255,255,255,0.12);
  --ff-head: 'Space Grotesk', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle film grain baked into the page background (no fixed overlay: too heavy over videos) */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--white); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 3px;
  border-radius: 4px;
}

img, video { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0,0,0,0);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
/* Icon asset is black-on-transparent: invert it so it reads on the dark theme */
.brand-icon { height: 26px; width: auto; filter: invert(1); }
.brand-word {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--white);
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 14px;
  color: var(--silver);
  transition: color .25s;
}
.nav a:hover { color: var(--white); }
.nav a.active { color: var(--white); }
.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--white) !important;
}
.nav-cta:hover { background: var(--white); color: var(--black) !important; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.96) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 90px; }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  margin-bottom: 26px;
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 38%, #8a8d91 50%, #ffffff 62%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--white);
  animation: title-sheen 7s var(--ease) infinite;
}
@keyframes title-sheen {
  0%, 55% { background-position: 110% 0; }
  85%, 100% { background-position: -110% 0; }
}
.hero-sub {
  max-width: 560px;
  font-size: 17px;
  color: var(--silver);
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: var(--off-white); }
.btn-ghost { border-color: var(--border); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 7px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  border-radius: 2px;
  background: var(--silver);
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 7px; }
  70% { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 18px; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--near-black);
}
.marquee-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--ff-head);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Sections ---------- */
.section { padding: 130px 0; border-top: 1px solid var(--border); position: relative; overflow: hidden; }

/* Soft radial halos to give the black background depth */
.section::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -240px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0) 65%);
  pointer-events: none;
}
.section:nth-of-type(even)::before {
  right: auto;
  left: -240px;
}
.section-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(30px, 4vw, 46px);
  max-width: 780px;
  margin-bottom: 26px;
}

/* About */
.about-text {
  max-width: 720px;
  font-size: 17px;
  color: var(--silver);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 50px;
  border: 1px solid var(--border);
}
.service-card {
  background: var(--black);
  padding: 40px 32px;
  transition: background .35s var(--ease);
}
.service-card:hover { background: var(--panel); }
.service-index {
  display: block;
  font-family: var(--ff-head);
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 24px;
}
.service-card h3 { font-size: 21px; margin-bottom: 14px; }
.service-card p { font-size: 14.5px; color: var(--silver); }

/* Work */
.work-group { margin-bottom: 70px; }
.work-group:last-child { margin-bottom: 0; }
.work-group-title {
  font-size: 15px;
  font-family: var(--ff-head);
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 22px;
}
/* Bento layout: the first piece of each group is the featured one */
.gallery-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.gallery-card:first-child video {
  flex: 1;
  aspect-ratio: auto;
  min-height: 0;
}
.gallery-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery-card:hover {
  border-color: var(--silver);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.9);
}
.gallery-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
  transition: transform .6s var(--ease);
}
.gallery-card:hover video { transform: scale(1.03); }
.gallery-info { padding: 18px 20px 22px; }
.gallery-info h4 { font-size: 16px; margin-bottom: 6px; }
.gallery-info p { font-size: 13.5px; color: var(--gray); line-height: 1.5; }
.gallery-card:first-child .gallery-info { padding: 22px 24px 26px; }
.gallery-card:first-child .gallery-info h4 { font-size: 20px; }
.gallery-card:first-child .gallery-info p { font-size: 14.5px; }

/* Photo gallery (photoshoot professionnel) */
.photo-card { cursor: zoom-in; }
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
  transition: transform .6s var(--ease);
}
.photo-card:hover img { transform: scale(1.03); }
.photo-card:first-child {
  display: flex;
  flex-direction: column;
}
.photo-card:first-child img {
  flex: 1;
  aspect-ratio: auto;
  min-height: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border-radius: 12px;
  border: 1px solid var(--border);
  transform: scale(.96);
  transition: transform .35s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox-caption { color: var(--silver); font-size: 14px; }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 30px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.lightbox-close:hover { background: var(--white); color: var(--black); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 300;
  background: linear-gradient(90deg, var(--silver), var(--white));
  transition: width .1s linear;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 150;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .25s, color .25s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--white); color: var(--black); }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.process-num {
  display: block;
  font-family: var(--ff-head);
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 20px;
}
.process-step h3 { font-size: 18px; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--silver); }

/* Contact */
.contact-wrap { max-width: 640px; }
.contact-sub { color: var(--silver); font-size: 16px; margin-bottom: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.form-row { display: flex; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 14.5px;
  resize: vertical;
  transition: border-color .25s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--silver);
}
.contact-form button { align-self: flex-start; margin-top: 6px; }
.contact-alt { font-size: 14px; color: var(--gray); }
.contact-alt a { color: var(--white); border-bottom: 1px solid var(--border); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 50px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.footer-tagline { color: var(--gray); font-size: 13.5px; }
.footer-social { display: flex; gap: 20px; margin: 14px 0; }
.footer-social a { font-size: 13px; color: var(--silver); }
.footer-social a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: var(--gray); opacity: .7; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-card:first-child { grid-column: span 2; grid-row: auto; }
  .gallery-card:first-child video,
  .gallery-card:first-child img { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-card:first-child { grid-column: auto; }
}

@media (max-width: 720px) {
  .nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.97); flex-direction: column; justify-content: center; align-items: center; gap: 30px; transform: translateX(100%); transition: transform .4s var(--ease); }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 20px; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 24px; background: none; border: none; cursor: pointer; z-index: 101; }
  .nav-toggle span { display: block; width: 100%; height: 2px; background: var(--white); transition: transform .3s, opacity .3s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 90px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
}
