/* =========================================================
   MATYS OUVRARD — PORTFOLIO
   Global styles
   ========================================================= */

/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: #0b0b0c;
  color: #f5f3ee;
  font-family: "DM Sans", Arial, sans-serif;
  overflow-x: hidden;
  cursor: none;
}

a,
button {
  cursor: none;
}

img {
  max-width: 100%;
}


/* =========================================================
   CUSTOM CURSOR
   ========================================================= */

.cursor-plus {
  position: fixed;
  left: 0;
  top: 0;

  --cursor-x: 50vw;
  --cursor-y: 50vh;

  width: 52px;
  height: 52px;

  border: 1px solid rgba(184, 255, 106, 0.95);
  border-radius: 50%;

  display: grid;
  place-items: center;

  color: #b8ff6a;
  font-size: 25px;

  z-index: 100;
  pointer-events: none;

  opacity: 0;

  transform:
    translate3d(var(--cursor-x), var(--cursor-y), 0)
    translate(-50%, -50%)
    scale(0.7);

  will-change: transform, width, height, background;
  backface-visibility: hidden;

  transition:
    width 0.22s cubic-bezier(.2,.8,.2,1),
    height 0.22s cubic-bezier(.2,.8,.2,1),
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    opacity 0.16s ease,
    box-shadow 0.22s ease;

  mix-blend-mode: normal;
}

.cursor-plus span {
  display: block;
  line-height: 1;

  transition:
    transform 0.22s cubic-bezier(.2,.8,.2,1);
}

.cursor-plus.is-visible {
  opacity: 1;

  transform:
    translate3d(var(--cursor-x), var(--cursor-y), 0)
    translate(-50%, -50%)
    scale(1);
}

.cursor-plus.is-hover {
  width: 72px;
  height: 72px;

  background: rgba(184, 255, 106, 0.12);
  border-color: #b8ff6a;

  box-shadow:
    0 0 0 1px rgba(184, 255, 106, 0.08),
    0 0 45px rgba(184, 255, 106, 0.12);
}

.cursor-plus.is-hover span {
  transform: rotate(90deg) scale(1.15);
}

.cursor-plus.is-cta {
  width: 86px;
  height: 86px;

  background: #b8ff6a;
  color: #0b0b0c;
  border-color: #b8ff6a;
}


/* =========================================================
   THEME TOGGLE
   ========================================================= */

.theme-toggle {
  display: grid;
  place-items: center;
}

.theme-toggle .icon {
  width: 16px;
  height: 16px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition:
    transform 0.35s cubic-bezier(.2,.8,.2,1),
    opacity 0.2s ease;
}

.theme-toggle .icon-moon {
  display: none;
}

.light .theme-toggle .icon-sun {
  display: none;
}

.light .theme-toggle .icon-moon {
  display: block;
}

.theme-toggle:hover .icon {
  transform: rotate(18deg) scale(1.08);
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
  position: fixed;
  top: 22px;
  left: 28px;
  right: 28px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 40;

  mix-blend-mode: difference;
}

.top-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;

  display: flex;
  gap: 10px;
  align-items: center;
}

.dot {
  width: 4px;
  height: 4px;

  border-radius: 50%;
  background: #fff;
}


/* =========================================================
   LOGO
   ========================================================= */

.mark {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
}

.mark img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  transition:
    filter 0.35s ease,
    transform 0.35s ease;
}

/* DARK MODE */
.mark img {
  filter: brightness(0) invert(1);
}

/* LIGHT MODE */
.light .mark img {
  filter: brightness(0);
}

.mark:hover img {
  transform: scale(1.08);
}


/* =========================================================
   GLOBAL SECTIONS
   ========================================================= */

.section {
  position: relative;
  padding: 150px 8vw;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 100vh;

  display: flex;
  align-items: center;

  overflow: hidden;

  padding-top: 120px;

  background:
    linear-gradient(
      90deg,
      #102d13 0%,
      #173c17 15%,
      #09150b 47%,
      #0b1d0d 72%,
      #173b16 100%
    );

  position: relative;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: 0;

  z-index: 0;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(128,255,72,.64) 0%,
      rgba(80,207,59,.28) 12%,
      transparent 29%,
      transparent 66%,
      rgba(74,190,57,.20) 80%,
      rgba(111,240,67,.50) 100%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(218,255,202,.13) 0 2px,
      transparent 2px 5.7vw,
      rgba(0,0,0,.18) 5.7vw 6vw
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,.02),
      transparent 38%,
      rgba(0,0,0,.58) 100%
    );

  transform: none;
  filter: none;
  animation: none;
  will-change: auto;
}

.hero-glow::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      transparent 0 8%,
      rgba(179,255,112,.20) 10%,
      transparent 19%,
      transparent 78%,
      rgba(148,255,91,.13) 88%,
      transparent 97%
    );

  opacity: .8;
}

.hero-glow::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.05),
      transparent 32%,
      rgba(0,0,0,.68) 100%
    );
}

.hero-lines {
  position: absolute;
  inset: 0;

  z-index: 1;

  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 7vw,
      rgba(255,255,255,.035) 7.05vw 7.12vw
    );

  transform: skewX(-8deg);

  opacity: .28;

  filter: none;
}

.hero-mark {
  position: absolute;

  right: 8vw;
  top: 18vh;

  font-size: 12vw;
  font-weight: 700;

  opacity: .045;

  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;

  width: min(1100px, 100%);
}

.eyebrow,
.section-kicker {
  font-size: 11px;

  text-transform: uppercase;
  letter-spacing: .16em;

  color: #9a9895;
}

.hero h1 {
  font-size: clamp(62px, 9.7vw, 170px);
  line-height: .88;

  letter-spacing: -.075em;
  font-weight: 500;

  margin: 34px 0 70px;

  max-width: 1600px;
}

.serif {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;

  letter-spacing: -.04em;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;

  gap: 50px;
  max-width: 900px;
}

.hero-bottom p {
  max-width: 350px;

  color: #d2d8ce;

  line-height: 1.5;
  font-size: 14px;
}

.outline-btn,
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 28px;

  border: 1px solid #777;
  border-radius: 999px;

  padding: 15px 20px;

  color: #f5f3ee;

  text-decoration: none;

  font-size: 13px;

  transition:
    border-color .3s ease,
    background .3s ease,
    color .3s ease;
}

.outline-btn:hover,
.contact-email:hover {
  border-color: #b8ff6a;
  background: rgba(184,255,106,.07);
}


/* =========================================================
   ABOUT INTRO
   ========================================================= */

.intro {
  border-top: 1px solid #242426;
}

.intro-grid {
  display: grid;

  grid-template-columns: 1.15fr .85fr;

  gap: 10vw;

  margin-top: 100px;
}

.intro h2,
.services h2,
.about h2,
.contact h2 {
  font-size: clamp(50px, 7vw, 108px);

  line-height: .94;

  letter-spacing: -.065em;

  font-weight: 500;

  margin: 0;
}

.intro-text {
  max-width: 550px;
  padding-top: 15px;
}

.lead {
  font-size: clamp(20px, 2vw, 30px);

  line-height: 1.28;

  color: #e7e5df;
}

.intro-text > p:not(.lead),
.about-copy > p:not(.lead) {
  color: #8f8d8a;

  line-height: 1.7;

  font-size: 15px;
}

.mini-links {
  display: flex;

  gap: 30px;

  margin-top: 55px;
}

.mini-links a {
  color: #f5f3ee;

  text-decoration: none;

  border-bottom: 1px solid #454548;

  padding-bottom: 5px;
}


/* =========================================================
   WORK
   ========================================================= */

.work {
  padding-top: 100px;
}

.work-intro {
  display: flex;

  justify-content: space-between;
  align-items: end;

  margin: 75px 0 100px;
}

.work-intro h2 {
  font-size: clamp(58px, 7vw, 110px);

  line-height: .9;

  letter-spacing: -.07em;

  font-weight: 500;

  margin: 0;
}

.work-intro p {
  width: 270px;

  color: #8f8d8a;

  line-height: 1.5;
}

.project-list {
  display: flex;
  flex-direction: column;

  gap: 150px;
}

.project {
  cursor: none;
}


/* =========================================================
   PROJECT IMAGE — HOMEPAGE
   ========================================================= */

.project-image {
  position: relative;

  width: 100%;

  height: min(68vw, 760px);

  min-height: 500px;

  overflow: hidden;

  background: #111;

  border: 1px solid #242426;
}

/*
  IMPORTANT :
  Les anciennes images étaient remplacées par des backgrounds.
  Ces règles permettent maintenant aux <img> injectées par JS
  de remplir correctement toute la zone.
*/

.project-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;

  transition:
    transform .8s cubic-bezier(.22,1,.36,1),
    filter .8s ease;

  will-change: transform;
}

/* Les anciennes backgrounds ne doivent plus apparaître */
.image-event,
.image-auto {
  background: none !important;
}

/* Zoom subtil au hover */
.project:hover .project-image img {
  transform: scale(1.04);
}


/*
  Aucun voile sombre au-dessus des photos de la page d'accueil.
  Les images doivent être affichées telles quelles.
*/
.project-image::after {
  display: none;
}


/* =========================================================
   PLACEHOLDER IMAGE
   ========================================================= */

.image-label {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  font-size: 10px;

  letter-spacing: .16em;

  color: #777;

  z-index: 1;

  pointer-events: none;
}

/*
  Si une vraie image est présente,
  le placeholder disparaît visuellement.
*/

.project-image:has(img) .image-label {
  display: none;
}


/* =========================================================
   DESIGN PROJECT
   ========================================================= */

.image-design {
  position: relative;

  background:
    radial-gradient(
      circle at 25% 25%,
      rgba(184,255,106,.12),
      transparent 30%
    ),
    #111113;
}

.design-stack {
  position: absolute;

  z-index: 2;

  left: 6%;
  top: 10%;

  display: flex;
  flex-direction: column;

  font-size: clamp(48px, 8vw, 130px);

  font-weight: 700;

  line-height: .78;

  letter-spacing: -.08em;

  color: #f5f3ee;
}

.design-stack span:nth-child(2) {
  font-family: "Playfair Display";

  font-style: italic;

  font-weight: 500;

  margin-left: 13vw;
}

.design-stack span:nth-child(3) {
  font-size: .42em;

  margin-left: 32vw;
  margin-top: 18px;

  color: #b8ff6a;
}


/* =========================================================
   PROJECT INFORMATION
   ========================================================= */

.project-info {
  display: grid;

  grid-template-columns: 1fr 1fr;

  padding-top: 22px;

  border-bottom: 1px solid #29292b;

  padding-bottom: 28px;
}

.project-index {
  color: #777;

  font-size: 12px;
}

.project h3 {
  font-size: clamp(34px, 4vw, 65px);

  line-height: .9;

  letter-spacing: -.05em;

  font-weight: 500;

  margin: 12px 0 0;
}

.project h3 em {
  font-family: "Playfair Display";

  font-weight: 500;
}

.project-meta {
  display: flex;

  justify-content: flex-end;
  align-items: end;

  gap: 30px;

  color: #777;

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: .1em;
}


/* =========================================================
   NUMBERS
   ========================================================= */

.numbers {
  border-top: 1px solid #242426;
}

.numbers-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  margin-top: 80px;
}

.number-card {
  position: relative;

  min-height: 300px;

  padding: 30px;

  border-right: 1px solid #29292b;

  display: flex;
  flex-direction: column;

  justify-content: space-between;

  transition:
    transform .35s cubic-bezier(.2,.8,.2,1),
    background-color .25s ease,
    box-shadow .35s ease;
}

.number-card:first-child {
  border-left: 1px solid #29292b;
}


/* =========================================================
   METRIC FOCUS
   ========================================================= */

.focus-overlay {
  position: fixed;
  inset: 0;

  z-index: 90;

  pointer-events: none;

  opacity: 0;

  background: rgba(7,7,8,.06);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition: opacity .28s ease;
}

body.metric-focus .focus-overlay {
  opacity: 1;
}

body.metric-focus .number-card {
  filter: blur(1px);

  opacity: .42;

  transform: scale(.985);

  transition:
    filter .28s ease,
    opacity .28s ease,
    transform .35s cubic-bezier(.2,.8,.2,1),
    background-color .25s ease;
}

body.metric-focus .number-card.metric-active {
  position: relative;

  z-index: 110;

  filter: none !important;

  opacity: 1 !important;

  transform: scale(1.035) !important;

  background: #b8ff6a !important;

  color: #0b0b0c;

  box-shadow:
    0 24px 70px rgba(0,0,0,.32);

  transition:
    transform .35s cubic-bezier(.2,.8,.2,1),
    background-color .25s ease,
    box-shadow .35s ease;
}

body.metric-focus
.number-card.metric-active p {
  color: #222 !important;
}

.number-card:hover {
  background: #b8ff6a;

  color: #0b0b0c;

  transform: scale(1.02);

  z-index: 100;

  box-shadow:
    0 18px 55px rgba(0,0,0,.24);
}

.number-card:hover p {
  color: #222;
}

.number-card:hover strong {
  transform: translateY(-2px);
}

.number-card strong {
  display: block;

  font-size: clamp(72px, 9vw, 145px);

  font-weight: 500;

  line-height: .7;

  letter-spacing: -.08em;

  transition:
    transform .35s cubic-bezier(.2,.8,.2,1);
}

.number-card span {
  text-transform: uppercase;

  font-size: 10px;

  letter-spacing: .15em;
}

.number-card p {
  font-size: 13px;

  line-height: 1.5;

  max-width: 220px;

  margin: 0;

  color: #858383;
}

.number-card.accent {
  background: #b8ff6a;

  color: #0b0b0c;
}

.accent p {
  color: #222;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services {
  padding-top: 120px;
}

.services-heading {
  margin: 80px 0;
}

.service-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  border-top: 1px solid #29292b;
}

.service {
  display: grid;

  grid-template-columns: 60px 1fr 1fr;

  gap: 25px;

  padding: 28px 0;

  border-bottom: 1px solid #29292b;
}

.service:nth-child(odd) {
  padding-right: 60px;

  border-right: 1px solid #29292b;
}

.service:nth-child(even) {
  padding-left: 60px;
}

.service span {
  color: #666;

  font-size: 12px;
}

.service h3 {
  margin: 0;

  font-size: 25px;

  font-weight: 500;
}

.service p {
  margin: 0;

  color: #777;

  font-size: 13px;

  line-height: 1.5;
}


/* =========================================================
   STATEMENT
   ========================================================= */

.statement {
  min-height: 90vh;

  display: grid;
  place-items: center;

  overflow: hidden;
}

.statement-orbit {
  position: absolute;

  width: 65vw;
  height: 65vw;

  border: 1px solid #28282a;

  border-radius: 50%;

  animation: spin 35s linear infinite;
}

.statement-orbit::before,
.statement-orbit::after {
  content: "";

  position: absolute;

  border: 1px solid #28282a;

  border-radius: 50%;
}

.statement-orbit::before {
  inset: 12% -25%;

  transform: rotate(28deg);
}

.statement-orbit::after {
  inset: -20% 20%;

  transform: rotate(-20deg);
}

.statement-content {
  position: relative;

  text-align: center;

  z-index: 2;
}

.statement h2 {
  font-size: clamp(60px, 9vw, 150px);

  line-height: .86;

  letter-spacing: -.08em;

  font-weight: 500;

  margin: 0;
}

.statement p {
  color: #777;

  font-size: 15px;

  margin-top: 45px;
}

.floating-symbol {
  position: absolute;

  color: #b8ff6a;

  font-size: 50px;

  left: -30px;
  top: -30px;

  animation: pulse 2s ease-in-out infinite;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {
  border-top: 1px solid #242426;
}

.about-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 9vw;

  margin-top: 90px;

  align-items: center;
}

.portrait-placeholder {
  height: 620px;

  position: relative;

  background:
    linear-gradient(
      135deg,
      #171719,
      #050506
    );

  overflow: hidden;

  display: grid;
  place-items: center;

  border: 1px solid #29292b;
}


.portrait-pattern {
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(
      #fff .6px,
      transparent .7px
    );

  background-size: 5px 5px;

  opacity: .16;
}

.portrait-placeholder span {
  position: relative;

  font-size: 12px;

  letter-spacing: .2em;

  color: #777;

  text-align: center;
}

.about-copy h2 {
  margin-bottom: 45px;
}

.about-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 45px;
}

.about-tags span {
  border: 1px solid #353537;

  border-radius: 999px;

  padding: 9px 13px;

  font-size: 11px;

  color: #aaa;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  min-height: 95vh;

  display: flex;

  align-items: center;

  overflow: hidden;

  border-top: 1px solid #242426;
}

.contact-bg {
  position: absolute;

  right: -4vw;
  bottom: -7vw;

  font-size: 20vw;

  line-height: .7;

  font-weight: 700;

  letter-spacing: -.1em;

  color: #141416;

  pointer-events: none;
}

.contact-content {
  position: relative;

  z-index: 2;
}

.contact h2 {
  margin: 65px 0 35px;
}

.contact-content > p {
  max-width: 450px;

  color: #777;

  line-height: 1.6;

  margin-bottom: 45px;
}

.contact-email {
  font-size: 16px;
}


/* =========================================================
   NAVIGATION DOCK
   ========================================================= */

.dock {
  position: fixed;

  will-change:
    transform,
    background,
    backdrop-filter;

  left: 0;
  right: 0;
  bottom: 0;

  transform: none;

  z-index: 60;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding:
    17px
    clamp(28px,14vw,220px)
    18px;

  border: 0;

  border-top:
    1px solid rgba(255,255,255,.03);

  background:
    linear-gradient(
      180deg,
      rgba(11,11,12,0),
      rgba(11,11,12,.92) 55%,
      rgba(11,11,12,.98)
    );

  backdrop-filter: blur(4px);

  box-shadow: none;

  border-radius: 0;

  transition:
    left .42s cubic-bezier(.22,.7,.2,1),
    right .42s cubic-bezier(.22,.7,.2,1),
    bottom .42s cubic-bezier(.22,.7,.2,1),
    transform .42s cubic-bezier(.22,.7,.2,1),
    padding .42s cubic-bezier(.22,.7,.2,1),
    border-radius .42s cubic-bezier(.22,.7,.2,1),
    background .35s ease,
    backdrop-filter .35s ease,
    box-shadow .42s ease,
    border .35s ease;
}

.dock a,
.theme-toggle {
  border: 0;

  background: transparent;

  color: #d7d5d1;

  text-decoration: none;

  padding: 9px 14px;

  font:
    500 12px "DM Sans";

  border-radius: 9px;

  cursor: none;

  white-space: nowrap;

  transition:
    background .3s ease,
    color .3s ease,
    transform .3s ease;
}

.dock a:hover,
.theme-toggle:hover {
  background: #1d1d1f;

  color: #fff;

  transform: translateY(-2px);
}

.dock.scrolled {
  left: 50%;
  right: auto;

  bottom: 24px;

  transform: translateX(-50%);

  justify-content: center;

  width: max-content;

  min-width: 430px;

  padding: 6px;

  border: 1px solid rgba(255,255,255,.12);

  border-radius: 18px;

  background: rgba(15,15,16,.66);

  backdrop-filter:
    blur(24px)
    saturate(125%);

  box-shadow:
    0 18px 60px rgba(0,0,0,.48),
    0 0 0 1px rgba(255,255,255,.025) inset;
}

.dock.scrolled a,
.dock.scrolled .theme-toggle {
  padding: 11px 16px;
}

.dock.scrolled a.active {
  background: #232325;

  color: #fff;
}


/* =========================================================
   PROJECT MODAL / FULLSCREEN OVERLAY
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;

  display: none;
  overflow-x: hidden;
  overflow-y: auto;

  background: #0b0b0c;
  color: #f5f3ee;
}

.modal.open {
  display: block;
  animation: fadeIn .35s ease both;
}

.modal-close {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 100;

  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;

  font-family: inherit;
  font-size: 30px;
  line-height: 1;

  cursor: none;

  transition:
    transform .35s cubic-bezier(.2,.8,.2,1),
    opacity .25s ease;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
}

.modal-inner {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 150px 6vw 120px;
}

.modal-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #777;
}

.modal h2 {
  margin: 40px 0 30px;

  max-width: 1250px;

  font-size: clamp(60px, 9vw, 150px);
  line-height: .85;
  letter-spacing: -.08em;
  font-weight: 500;
}

.modal-description {
  max-width: 650px;
  margin: 0;

  color: #999;
  line-height: 1.7;
}

/* =========================================================
   MODAL GALLERY
   ========================================================= */

.modal-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: minmax(420px, 32vw);
  gap: 18px;

  margin-top: 80px;
}

.modal-gallery-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;

  overflow: hidden;
  background: #151517;
  border: 1px solid #252527;
}

.modal-gallery-item:first-child {
  grid-row: span 2;
}

.modal-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform .8s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}

.modal-gallery-item:hover img {
  transform: scale(1.035);
}

.modal-gallery-item.is-broken {
  display: grid;
  place-items: center;
}

.modal-gallery-item.is-broken::after {
  content: "IMAGE NOT FOUND";
  color: #555;
  font-size: 10px;
  letter-spacing: .15em;
}

.modal-gallery-empty {
  min-height: 420px;

  display: grid;
  place-items: center;

  border: 1px solid #252527;
  color: #555;

  font-size: 10px;
  letter-spacing: .15em;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes greenFloat {

  0% {
    transform:
      scale(1.08)
      translate3d(-1%,0,0);
  }

  50% {
    transform:
      scale(1.11)
      translate3d(1.5%,1%,0);
  }

  100% {
    transform:
      scale(1.09)
      translate3d(-1%,2%,0);
  }

}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  50% {
    transform: scale(1.25);
    opacity: .5;
  }

}

@keyframes fadeIn {

  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }

}


/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(28px);

  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
  opacity: 1;

  transform: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

  body,
  a,
  button {
    cursor: auto;
  }

  .cursor-plus {
    display: none;
  }

  .topbar {
    left: 18px;
    right: 18px;
  }

  .top-meta {
    display: none;
  }

  .section {
    padding: 100px 6vw;
  }

  .hero {
    min-height: 95vh;
  }

  .hero h1 {
    font-size: clamp(56px,15vw,100px);

    margin:
      28px 0
      55px;
  }

  .hero-bottom {
    display: block;
  }

  .hero-bottom p {
    margin-bottom: 28px;
  }

  .intro-grid,
  .about-grid {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .work-intro {
    display: block;

    margin: 55px 0;
  }

  .work-intro p {
    margin-top: 30px;
  }

  .project-list {
    gap: 90px;
  }

  .project-image {
    height: 105vw;

    min-height: 0;
  }

  .project-info {
    grid-template-columns: 1fr;

    gap: 22px;
  }

  .project-meta {
    justify-content: space-between;
  }

  .numbers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .number-card {
    min-height: 220px;
  }

  .number-card:nth-child(odd) {
    border-left: 1px solid #29292b;
  }

  .number-card:nth-child(even) {
    border-right: 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service:nth-child(odd) {
    padding-right: 0;

    border-right: 0;
  }

  .service:nth-child(even) {
    padding-left: 0;
  }

  .service {
    grid-template-columns: 40px 1fr;
  }

  .service p {
    grid-column: 2;
  }

  .statement {
    min-height: 70vh;
  }

  .statement-orbit {
    width: 110vw;
    height: 110vw;
  }

  .portrait-placeholder {
    height: 100vw;
  }


  /* Mobile navigation */

  .dock {
    bottom: 0;

    left: 0;
    right: 0;

    width: 100%;

    max-width: none;

    padding:
      13px 5vw
      14px;

    border-radius: 0;

    justify-content: space-between;

    background:
      linear-gradient(
        180deg,
        rgba(11,11,12,0),
        rgba(11,11,12,.98) 60%
      );
  }

  .dock.scrolled {
    left: 50%;
    right: auto;

    bottom: 12px;

    width: max-content;

    min-width: 0;

    max-width: 92vw;

    padding: 5px;

    border-radius: 16px;

    justify-content: center;

    background:
      rgba(15,15,16,.72);

    backdrop-filter: blur(22px);

    box-shadow:
      0 15px 50px rgba(0,0,0,.5);
  }

  .dock a,
  .theme-toggle {
    padding: 9px 10px;
  }

  .dock.scrolled a,
  .dock.scrolled .theme-toggle {
    padding: 9px 10px;
  }


  /* Mobile modal */

  .modal-inner {
    padding: 110px 6vw;
  }

  .modal h2 {
    font-size: clamp(48px, 13vw, 90px);
  }

  .modal-gallery {
    grid-template-columns: 1fr;
  }

  .modal-gallery-item:first-child {
    grid-row: auto;
  }

  .modal-gallery-item {
    min-height: 240px;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .hero-glow,
  .statement-orbit {
    animation: none;
  }

  .reveal {
    transition: none;
  }

  .cursor-plus {
    transition: none;
  }

  .focus-overlay {
    transition: none;
  }

  .number-card,
  .number-card strong {
    transition: none !important;
  }

}


/* =========================================================
   LIGHT THEME
   ========================================================= */

html.light,
html.light body {
  background: #f3f1eb;

  color: #121212;
}

html.light body {
  color-scheme: light;
}

html.light .topbar {
  mix-blend-mode: normal;
}

html.light .mark {
  border-color: #151515;
  color: #151515;
}

html.light .dot {
  background: #151515;
}


/* Hero */

html.light .hero {
  background:
    linear-gradient(
      90deg,
      #d9f6cf 0%,
      #eaf8e5 18%,
      #f3f1eb 50%,
      #e7f6df 78%,
      #cfeec2 100%
    );
}

html.light .hero-glow {
  background:
    linear-gradient(
      90deg,
      rgba(99,211,67,.30),
      rgba(132,231,93,.08) 26%,
      transparent 52%,
      rgba(114,219,75,.08) 74%,
      rgba(92,204,65,.26)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(30,60,25,.08) 0 2px,
      transparent 2px 5.7vw
    );
}

html.light .hero-glow::after {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.16),
      transparent 45%,
      rgba(255,255,255,.30)
    );
}

html.light .hero-lines {
  opacity: .16;

  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 7vw,
      rgba(20,30,20,.10) 7.05vw 7.12vw
    );
}


/* Typography */

html.light .eyebrow,
html.light .section-kicker {
  color: #777;
}

html.light .hero-bottom p {
  color: #4f554c;
}

html.light .outline-btn,
html.light .contact-email {
  color: #121212;

  border-color: #777;
}

html.light .outline-btn:hover,
html.light .contact-email:hover {
  border-color: #5db63f;

  background:
    rgba(112,214,70,.10);
}


/* Sections */

html.light .intro,
html.light .numbers,
html.light .about,
html.light .contact {
  border-color: #d8d6d0;
}

html.light .intro-text > p:not(.lead),
html.light .about-copy > p:not(.lead),
html.light .work-intro p,
html.light .number-card p,
html.light .service p,
html.light .statement p,
html.light .contact-content > p {
  color: #696762;
}

html.light .lead {
  color: #20211f;
}

html.light .mini-links a {
  color: #171717;

  border-color: #b9b7b1;
}


/* Projects */

html.light .project-image {
  background: #e3e1db;

  border-color: #d2d0ca;
}

html.light .project-image::after {
  opacity: .72;
}

html.light .image-label {
  color: #777;
}

html.light .project-info,
html.light .service-grid,
html.light .service,
html.light .number-card {
  border-color: #d5d3cd;
}

html.light .project-meta,
html.light .project-index,
html.light .service span {
  color: #777;
}


/* Numbers */

html.light .number-card {
  background: #eceae4;
}

html.light .number-card.accent {
  background: #a9ee7c;

  color: #10150e;
}

html.light .number-card p {
  color: #555750;
}

html.light .accent p {
  color: #20251d;
}

html.light .number-card:first-child {
  border-left-color: #d5d3cd;
}


/* Statement */

html.light .statement-orbit,
html.light .statement-orbit::before,
html.light .statement-orbit::after {
  border-color: #d3d1cb;
}

html.light .floating-symbol {
  color: #63bd45;
}


/* About */

html.light .portrait-placeholder {
  background:
    linear-gradient(
      135deg,
      #e4e2dc,
      #cbc9c2
    );

  border-color: #d1cfc9;
}

html.light .portrait-pattern {
  opacity: .10;
}

html.light .about-tags span {
  border-color: #c9c7c1;

  color: #555;
}


/* Contact */

html.light .contact {
  border-color: #d8d6d0;
}

html.light .contact-bg {
  color: #e7e5df;
}


/* Navigation */

html.light .dock {
  border-top-color: rgba(0,0,0,.04);

  background:
    linear-gradient(
      180deg,
      rgba(243,241,235,0),
      rgba(243,241,235,.92) 55%,
      rgba(243,241,235,.98)
    );
}

html.light .dock a,
html.light .theme-toggle {
  color: #444;
}

html.light .dock a:hover,
html.light .theme-toggle:hover {
  background: #dedcd6;

  color: #111;
}

html.light .dock.scrolled {
  background:
    rgba(248,247,243,.72);

  border-color:
    rgba(0,0,0,.12);

  box-shadow:
    0 18px 60px rgba(0,0,0,.12),
    0 0 0 1px rgba(255,255,255,.7) inset;
}

html.light .dock.scrolled a.active {
  background: #e3e1dc;

  color: #111;
}


/* Modal */

html.light .modal {
  background: #f3f1eb;

  color: #111;
}

html.light .modal-close {
  color: #111;
}

html.light .modal-gallery-item,
html.light .modal-gallery-empty {
  background: #e7e5df;
  border-color: #d4d2cc;
}


/* Cursor */

html.light .cursor-plus {
  border-color: #4f9e36;

  color: #4f9e36;
}

html.light .cursor-plus.is-hover {
  background:
    rgba(95,190,57,.12);

  border-color: #5cae3d;

  box-shadow:
    0 0 0 1px rgba(95,190,57,.08),
    0 0 45px rgba(95,190,57,.12);
}

html.light .cursor-plus.is-cta {
  background: #69c64b;

  color: #10150e;

  border-color: #69c64b;
}

/* Images principales des projets sur la landing */
.project-image.image-event {
  background-image: url("assets/event 2.jpg") !important;
  background-size: cover;
  background-position: center;
}

.project-image.image-auto {
  background-image: url("assets/car 5.jpg") !important;
  background-size: cover;
  background-position: center;
}

/* =========================================================
   PORTRAIT
   ========================================================= */

.portrait-placeholder {
  position: relative;
  overflow: hidden;
  background: #e8e5e7;
  aspect-ratio: 1 / 0.78;
}

.portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(.22, 1, .36, 1);
}

.portrait-placeholder:hover .portrait-image {
  transform: scale(1.025);
}