:root {
  --bg: #0c0d0e;
  --bg-2: #121415;
  --line: rgba(237, 234, 228, 0.1);
  --text: #edeae4;
  --muted: rgba(237, 234, 228, 0.52);
  --faint: rgba(237, 234, 228, 0.28);
  --pad: clamp(20px, 4vw, 56px);
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --display: "Anton", "Impact", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--text); color: var(--bg); }

/* Grain */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100; opacity: 0.07;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 32px;
  padding: 22px var(--pad);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 13, 14, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 16px; padding-bottom: 16px;
  border-color: var(--line);
}
.nav__logo { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 26px; font-weight: 500; }
.nav__links a, .nav__socials a { opacity: 0.85; transition: opacity 0.3s; }
.nav__links a:hover, .nav__socials a:hover { opacity: 1; }
.nav__socials { display: flex; gap: 16px; }
.nav__socials svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.nav__socials svg .fill { fill: currentColor; stroke: none; }

/* HERO */
.hero {
  position: relative; height: 100vh; min-height: 560px;
  display: grid; place-items: center; overflow: hidden;
}
.hero__bg, .band__bg {
  position: absolute; inset: 0;
  background:
    var(--img) center / cover no-repeat,
    radial-gradient(ellipse 60% 55% at 50% 38%, #3a3631 0%, #1b1a19 45%, var(--bg) 100%);
  filter: grayscale(0.35) contrast(1.05);
}
.hero__bg { animation: slowzoom 22s var(--ease) forwards; transform: scale(1.12); }
@keyframes slowzoom { to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,13,14,0.6) 0%, rgba(12,13,14,0.3) 40%, rgba(12,13,14,0.4) 72%, var(--bg) 100%);
}
.hero__center { position: relative; text-align: center; align-self: start; margin-top: 28vh; text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.hero__title {
  font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.01em;
}
.hero__stats {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 40px;
  display: flex; justify-content: space-between; gap: 24px;
}
.hero__stats div { font-size: 14px; font-weight: 500; }
.hero__stats div:nth-child(2) { text-align: center; }
.hero__stats div:last-child { text-align: right; }
.hero__stats span {
  display: block; font-size: 10px; font-weight: 400; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
}
.hero__scroll {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 0; display: none;
}

/* ABOUT */
.about {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 110px);
  align-items: end;
  padding: clamp(100px, 14vw, 200px) var(--pad) clamp(80px, 10vw, 150px);
}
.about__name { font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); max-width: 620px; }
.about__cols p { color: rgba(237, 234, 228, 0.8); }
.about em { font-style: italic; font-weight: 600; color: var(--text); }
.about strong { font-weight: 600; color: var(--text); }
.about__portrait {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2);
  max-width: 440px; justify-self: end; width: 100%;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.about__portrait.is-empty {
  background:
    radial-gradient(ellipse 45% 35% at 50% 34%, rgba(237,234,228,0.09), transparent 70%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(237,234,228,0.06), transparent 70%),
    var(--bg-2);
  position: relative;
}
.about__portrait.is-empty::after {
  content: "Portrait"; position: absolute; left: 16px; bottom: 14px;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint);
}

/* SECTION HEAD */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding-bottom: 18px; margin-bottom: 36px; border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.section-head p { color: var(--muted); }

/* PROJECTS */
.projects { padding: 40px var(--pad) clamp(90px, 10vw, 150px); }
.projects__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 4vw, 64px) clamp(16px, 2vw, 28px); }
.project--main { grid-column: 1 / -1; }
.project--main .project__media { aspect-ratio: 21 / 9; }
.project--main .project__logo { width: min(36%, 460px); }
.project--main .project__word { font-size: clamp(64px, 11vw, 180px); }
.project--main .project__meta { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 40px; }
.project--main .project__meta ul { border-top: 0; padding-top: 0; }
.project { display: flex; flex-direction: column; gap: 18px; }
.project__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2);
  display: grid; place-items: center;
}
.project__media::before {
  content: ""; position: absolute; inset: 0;
  background:
    var(--img, none) center / cover no-repeat,
    radial-gradient(ellipse 80% 70% at 30% 20%, #2a2724, #141516 70%);
  filter: grayscale(0.4) brightness(0.7);
  transition: transform 1.1s var(--ease), filter 0.8s var(--ease);
}
.project__media--solid::before { background: #0a0a0b; filter: none; }
.project__media--warm::before { filter: saturate(0.75) brightness(0.72); }
.project__media--blank::before { background: repeating-linear-gradient(135deg, #111213 0 10px, #131415 10px 20px); }
.project__word {
  position: relative; z-index: 1;
  font-family: var(--display); font-size: clamp(44px, 5.4vw, 86px);
  letter-spacing: 0.01em; line-height: 1; color: var(--text);
  transition: letter-spacing 0.9s var(--ease), opacity 0.6s;
}
.project--soon .project__word { color: transparent; -webkit-text-stroke: 1px rgba(237,234,228,0.35); }
.project--main .project__media:hover::before { transform: scale(1.06); filter: grayscale(0) brightness(0.8); }
.project__logo { position: relative; z-index: 1; width: min(46%, 420px); height: auto; transition: transform 1.1s var(--ease); }
.project--main .project__media:hover .project__logo { transform: scale(1.04); }
.project--main .project__media:hover .project__word { letter-spacing: 0.06em; }
.project__meta { display: flex; flex-direction: column; gap: 14px; }
.project__meta h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.project__meta p { color: var(--muted); max-width: 40ch; }
.project__links { display: flex; gap: 20px; margin-top: 12px; font-weight: 500; }
.project__links a { opacity: 0.8; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: opacity 0.3s, border-color 0.3s; }
.project__links a:hover { opacity: 1; border-color: var(--text); }
.project__meta ul { list-style: none; display: flex; gap: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.project__meta li { font-weight: 500; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.project__meta li span {
  width: 100%; font-size: 10px; font-weight: 400; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: #8fd18f; box-shadow: 0 0 10px #8fd18f; display: inline-block; }
.project--soon { opacity: 0.6; }

/* BAND */
.band {
  position: relative; height: 70vh; min-height: 420px;
  display: grid; place-items: center; overflow: hidden; padding: 0 var(--pad);
}
.band__bg {
  background:
    var(--img) center / cover no-repeat,
    radial-gradient(ellipse 50% 60% at 70% 50%, #2b2926 0%, #161718 55%, var(--bg) 100%);
  transform: scale(1.15); will-change: transform;
}
.band__veil { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(12,13,14,0.3) 30%, rgba(12,13,14,0.3) 70%, var(--bg) 100%); }
.band__quote {
  position: relative; max-width: 760px; text-align: center;
  font-size: clamp(20px, 2.4vw, 32px); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em;
}

/* TIMELINE */
.timeline { padding: clamp(80px, 10vw, 140px) var(--pad); }
.timeline__list { list-style: none; }
.timeline__list li {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.timeline__year { font-family: var(--display); font-size: 28px; color: var(--faint); line-height: 1; }
.timeline__list h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.timeline__list p { color: var(--muted); max-width: 52ch; }

/* FOLLOW */
.follow { padding: 20px var(--pad) clamp(90px, 10vw, 150px); }
.follow__list { list-style: none; }
.follow__list a {
  display: grid; grid-template-columns: 1fr 1fr auto; align-items: baseline; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease), color 0.4s;
}
.follow__list span {
  font-family: var(--display); font-size: clamp(34px, 5vw, 72px); line-height: 1;
  text-transform: uppercase; color: rgba(237,234,228,0.88); transition: color 0.4s;
}
.follow__list em { font-style: normal; color: var(--muted); }
.follow__list i { font-style: normal; font-size: 22px; transition: transform 0.5s var(--ease); }
.follow__list a:hover { padding-left: 14px; }
.follow__list a:hover span { color: var(--text); }
.follow__list a:hover i { transform: translate(4px, -4px); }
.follow__list:hover a:not(:hover) span { color: rgba(237,234,228,0.3); }

/* FOOTER */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 28px var(--pad); border-top: 1px solid var(--line); color: var(--muted);
}
.footer__logo { color: var(--text); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 14px; }
.footer__mark { height: 34px; width: auto; }
.footer a:hover { color: var(--text); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.project--soon.reveal.is-in { opacity: 0.6; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { justify-self: start; max-width: 100%; }
}
@media (max-width: 640px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .hero__stats { flex-direction: column; align-items: center; text-align: center; bottom: 32px; gap: 14px; }
  .hero__stats div, .hero__stats div:last-child { text-align: center; }
  .about__cols { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .project--main .project__media { aspect-ratio: 4 / 3; }
  .project--main .project__meta { flex-direction: column; gap: 14px; }
  .project--main .project__meta ul { border-top: 1px solid var(--line); padding-top: 14px; }
  .timeline__list li { grid-template-columns: 70px 1fr; }
  .follow__list a { grid-template-columns: 1fr auto; }
  .follow__list em { display: none; }
  .footer { flex-direction: column; text-align: center; }
  .section-head { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 369 : pleine intensité */
.project--369, .project--369.reveal.is-in { opacity: 1; }
.project--369 .project__word { -webkit-text-stroke: 1px rgba(237,234,228,0.55); }
/* 369 : chiffre en bas à gauche */
.project--369 .project__media::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(20deg, rgba(10,10,11,0.7) 0%, rgba(10,10,11,0) 45%);
}
.project--369 .project__word {
  position: absolute; left: clamp(18px, 2.4vw, 32px); bottom: clamp(16px, 2.2vw, 28px);
  font-size: clamp(36px, 4vw, 64px);
}

/* Instinct : photo gym + logo */
.project__media--photo::before { filter: grayscale(0.2) brightness(0.55); background-position: center 35%; }
.project__media--photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(10,10,11,0.45), rgba(10,10,11,0) 75%); pointer-events: none; }
.project--main .project__media--photo:hover::before { filter: grayscale(0) brightness(0.65); }
