/* ==========================================================================
   Charte graphique — noir & blanc (logo)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --surface: #ffffff;
  --ink: #000000;
  --ink-muted: #444444;
  --border: #000000;
  --border-soft: #d0d0d0;
  --accent: #000000;
  --accent-invert: #ffffff;
  --focus: #000000;
  --radius: 0;
  --font-display: "Syne", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Segoe UI", sans-serif;
  --container: 1120px;
  --header-h: 4.5rem;
  --space-section: clamp(4.5rem, 8vw, 7rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--accent-invert);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border-soft);
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-header p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-list a:hover,
.nav-list a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--accent-invert) !important;
  text-decoration: none !important;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: #222;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--bg);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: clip;
  color: var(--accent-invert);
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(255, 255, 255, 0.04) 47px,
      rgba(255, 255, 255, 0.04) 48px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(255, 255, 255, 0.04) 47px,
      rgba(255, 255, 255, 0.04) 48px
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 10vh, 6.5rem) clamp(3.5rem, 10vh, 6rem);
  max-width: 46rem;
  width: min(100% - 2rem, var(--container));
  margin-left: max(1rem, calc((100% - var(--container)) / 2));
}

.hero-logo {
  width: clamp(7rem, 16vw, 10rem);
  height: auto;
  margin-bottom: 1.5rem;
  filter: invert(1);
  animation: logo-in 0.8s var(--ease) both;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
  animation: rise-in 0.7s var(--ease) 0.1s both;
}

.hero-role {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  font-weight: 500;
  color: #c8c8c8;
}

.hero h1 {
  margin: 0 0 1.25rem;
  animation: rise-in 0.7s var(--ease) 0.18s both;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.7vw, 1.15rem);
  color: #d4d4d4;
  animation: rise-in 0.7s var(--ease) 0.26s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise-in 0.7s var(--ease) 0.34s both;
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(0.9rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Reveal
   ========================================================================== */

.reveal,
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible,
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.07s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.14s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.21s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.28s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  [data-reveal-stagger] > *,
  .hero-logo,
  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .nav-cta:hover,
  .btn:hover,
  .project-card:hover {
    transform: none;
  }
}
