:root {
  --orange: #fa400a;
  --ink: #111d36;
  --paper: #f9f4e9;
  --accent: #bc2c05;
  --mono: "Andale Mono", "Courier New", monospace;
  --pad: clamp(1rem, 5vw, 5.25rem);
  --bar: 4.5rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--mono); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2761f0; outline-offset: 5px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
section, main { scroll-margin-top: var(--bar); }
.bar { position: sticky; top: 0; z-index: 3; display: flex; min-height: var(--bar); align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem var(--pad); background: var(--orange); color: var(--paper); }
.brand img { width: clamp(8.5rem, 16vw, 13rem); }
nav { display: flex; gap: clamp(.5rem, 1.5vw, 1.25rem); flex-wrap: wrap; }
nav a { font-weight: 700; font-size: .875rem; text-decoration: none; }
.bar nav a[aria-current] span, footer nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: .07em;
  text-underline-offset: .35em;
}
.bar nav a:hover span { opacity: .8; }
.hero { background: var(--orange); color: var(--paper); display: grid; grid-template-columns: 54% 46%; align-items: center; overflow: hidden; }
.portrait { align-self: end; }
.portrait img { width: 100%; }
.hero-copy { padding: 2rem var(--pad) 3rem 0; position: relative; }
.hero h1 { font: 700 clamp(3.5rem, 6.7vw, 8rem)/.92 Georgia, serif; letter-spacing: -.065em; }
.hero-copy p { margin-top: clamp(1.5rem, 4vw, 3.5rem); font-size: clamp(.875rem, 1.2vw, 1.05rem); }
.strip { grid-column: 1/-1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; background: var(--orange); }
.strip img { width: 100%; height: clamp(4.1rem, 10vw, 9rem); object-fit: cover; object-position: top; }
.block { padding: clamp(3.5rem, 8vw, 8rem) var(--pad); }
.heading { display: flex; justify-content: space-between; align-items: end; gap: 1.25rem; border-bottom: 1px solid currentColor; padding-bottom: 1.1rem; margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.heading h2, .case-intro h2 { font-size: clamp(2.5rem, 6.1vw, 6.5rem); font-weight: 400; line-height: .94; letter-spacing: -.075em; }
.heading > :last-child:not(:first-child), .case-intro > div { text-align: right; }
.heading h3, .case-intro h3 { font-size: clamp(.95rem, 1.65vw, 1.35rem); line-height: 1.3; margin-bottom: .35rem; }
.creas .heading, .bio .heading, .marques .heading { color: var(--accent); }
.gallery, .logos, .bio ul { list-style: none; padding: 0; margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.25rem,3vw,3rem) clamp(.75rem,2vw,2rem); }
.project { width: 100%; display: block; text-align: left; color: inherit; background: none; border: none; padding: 0; }
.project img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .3rem; transition: filter .2s ease; }
.project:hover img { filter: brightness(.84); }
.project strong { display: block; margin-top: .6rem; font-size: clamp(1.1rem,2.1vw,1.7rem); letter-spacing: -.05em; }
.project:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.project span { display: block; font-size: .94rem; }
.skills, .contact { background: var(--orange); color: var(--ink); }
.skills .heading, .contact .heading { color: var(--paper); }
.skill { margin-left: auto; max-width: 58rem; text-align: right; padding: 1.7rem 0; border-bottom: 1px solid var(--ink); }
.skill h3 { color: var(--paper); font-size: clamp(1.55rem,3vw,3.2rem); font-weight: 400; margin-bottom: .4rem; }
.skill-end { margin-top: .45rem; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: clamp(2rem,6vw,6rem); text-align: center; }
.stats dt { font-size: clamp(2.25rem,6vw,6rem); line-height: 1; color: var(--paper); }
.stats dd { margin-top: .5rem; font-size: .9rem; }
.bio { padding-bottom: 0; }
.bio-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(1rem,4vw,4rem); }
.bio-layout h3 { color: var(--accent); text-decoration: underline; }
.bio-layout li { margin-top: clamp(.7rem,2vw,1.5rem); }
.bio-layout img { width: 100%; }
.logos { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 1px; padding: 1px; background: #ddd4c4; }
.logos li { aspect-ratio: 1.45; background: white; display: grid; place-items: center; padding: 14%; }
.logos img { width: 100%; height: 100%; max-height: 5rem; object-fit: contain; filter: grayscale(1); mix-blend-mode: multiply; }
.contact-layout { max-width: 70rem; margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(1rem,5vw,5rem); }
.contact-layout img { width: 100%; }
form label { display: block; margin-bottom: .75rem; font-weight: 700; }
input, textarea { display: block; width: 100%; background: var(--paper); color: var(--ink); border: 1px solid transparent; margin-top: .25rem; padding: .65rem .8rem; border-radius: .2rem; }
textarea { resize: vertical; }
.send, .return { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: .2rem; padding: .65rem 1rem; }
.send:hover, .return:hover { background: var(--paper); color: var(--ink); }
address { margin-top: 1.35rem; font-style: normal; }
footer { padding: 2.5rem var(--pad); display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
footer img { width: 10rem; }
dialog { position: fixed; inset: 0; max-width: none; max-height: none; height: 100%; width: 100%; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
body:has(dialog[open]) { overflow: hidden; }
.case-bar { position: sticky; top: 0; z-index: 1; background: var(--paper); padding: .85rem var(--pad); border-bottom: 1px solid #d9c9b8; }
.case-content { padding: clamp(2rem,5vw,5rem) var(--pad); max-width: 103rem; margin-inline: auto; }
.case-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 1.35rem; border-bottom: 1px solid var(--accent); }
.case-intro h2 { color: var(--accent); overflow-wrap: anywhere; }
.sequence { display: grid; grid-template-columns: minmax(0,1fr); gap: .8rem; margin-bottom: clamp(1rem,3vw,3rem); }
.cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.sequence img { width: 100%; height: auto; max-height: 105svh; object-fit: contain; }
.close-bottom { margin-block: 1rem; }
@media (max-width: 720px) {
  :root { --bar: 6rem; }
  .bar { justify-content: center; gap: .15rem; flex-direction: column; }
  nav { justify-content: center; }
  .hero h1 { font-size: clamp(2.3rem,7vw,4rem); }
  .hero-copy { padding: 1rem 1rem 1.5rem 0; }
  .hero-copy p { font-size: .8rem; margin-top: .8rem; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .logos { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .heading, .case-intro { display: grid; grid-template-columns: 1fr; }
  .heading > :last-child:not(:first-child), .case-intro > div { text-align: left; }
}
@media (max-width: 460px) {
  .bar { padding-inline: .65rem; }
  nav a { font-size: .8rem; }
  .hero { grid-template-columns: 1fr; }
  .portrait { grid-row: 2; }
  .hero-copy { padding: 1rem var(--pad) 0; }
  .hero h1 { font-size: clamp(3rem,11vw,4.5rem); }
  .bio-layout, .contact-layout { grid-template-columns: 1fr; }
  .bio-layout img { grid-row: 2; }
  .stats { gap: .45rem; }
  .stats dd { font-size: .78rem; overflow-wrap: anywhere; }
  .cols-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.brand img, .portrait img, .bio-layout img, .contact-layout img, footer img { height: auto; }
.project img { height: auto; }

@font-face {
  font-family: Portfolio Editorial;
  src: url(assets/editorial.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Portfolio Mono;
  src: url(assets/andale.ttf) format("truetype");
  font-display: swap;
}
.bar, .hero { font-family: "Portfolio Mono", var(--mono); color: #fffaf0; }
.bar nav a, .hero-copy strong { font-weight: 400; }
.hero h1 { font-family: Georgia, serif; font-weight: 400; letter-spacing: 0; }
.strip {
  display: block;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-inline: contain;
  user-select: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; }
.strip:focus-visible { outline-offset: -4px; }
.strip-track { display: flex; width: max-content; gap: clamp(6px, .56vw, 14px); }
.strip img { flex: none; width: clamp(9rem, 18.2vw, 28rem); height: clamp(6rem, 10.05vw, 16rem); border-radius: .75rem .75rem 0 0; }
@media (min-width: 721px) {
  :root { --bar: 5.65vw; }
  .bar { background: transparent; padding: 0 2.6vw 0 1.65vw; }
  .bar.scrolled { background: var(--orange); }
  .bar .brand img { width: 14vw; }
  .bar nav { gap: 0; }
  .bar nav a { font-size: clamp(.75rem, 1.16vw, 1.6rem); }
  .bar nav a + a::before { content: " - "; white-space: pre; }
  main { margin-top: calc(-1 * var(--bar)); }
  main#accueil { scroll-margin-top: 0; }
  .hero { position: relative; display: block; height: 56.3vw; }
  .portrait { position: absolute; inset: 0 auto auto 0; width: 57.8125vw; }
  .hero-copy { position: absolute; inset: 11.85vw 2vw auto 53.65vw; padding: 0; }
  .hero h1 { font-size: 5.52vw; line-height: .91; }
  .hero-copy p { margin-top: 3.75vw; font-size: 1.065vw; line-height: 1.35; }
  .hero-copy strong { font-size: 1.22vw; }
  .strip { position: absolute; inset: auto 0 0; }
}
@media (max-width: 720px) {
  .portrait { align-self: end; }
  .portrait img { object-fit: cover; object-position: center bottom; }
}
.hero h1 { font-weight: 700; }
.strip img {
  height: clamp(9rem, 18.2vw, 28rem);
  object-fit: contain;
  border-radius: .75rem;
}
@media (min-width: 721px) {
  .hero { height: calc(46.25vw + clamp(9rem, 18.2vw, 28rem)); }
}

.skills { color: var(--paper); }
.skill { border-bottom-color: currentColor; }
.bio, .bio .heading, .bio-layout h3 { color: var(--orange); }
.logos {
  max-width: 94rem;
  margin-inline: auto;
  gap: clamp(3px, .3vw, 6px);
  padding: 0;
  background: transparent;
}
.logos li {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 203 / 136;
  border-radius: .25rem;
  background: #fff;
  box-shadow: 0 1px 6px #b9441213;
}
.logos img {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  max-height: none;
  filter: none;
}
.carousel { position: relative; grid-column: 1 / -1; min-width: 0; }
.carousel .strip { position: static; }
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: clamp(2.75rem, 4vw, 3.75rem);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 1.6rem/1 system-ui, sans-serif;
}
.carousel-control:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.carousel-control:disabled { opacity: .35; cursor: default; }
.carousel-control.prev { left: .65rem; }
.carousel-control.next { right: .65rem; }
@media (min-width: 721px) {
  .carousel { position: absolute; inset: auto 0 0; }
}
.logos img[alt="Saint Jean"] { filter: brightness(1.07); }
@media (max-width: 460px) {
  .logos { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

.skills, .skills .heading, .skill h3, .stats dt { color: #fff; }
.marques .heading h2 { color: var(--orange); }
.carousel-control {
  border: 0;
  background: rgb(17 29 26 / 30%);
  color: #fff;
}
.carousel-control:hover { background: rgb(17 29 26 / 48%); color: #fff; }
.carousel-control span {
  width: .65em;
  height: .65em;
  border-right: 3px solid currentColor;
  border-top: 3px solid currentColor;
  border-radius: 1px;
  transform: translateX(-16%) rotate(45deg);
}
.carousel-control.prev span { transform: translateX(16%) rotate(-135deg); }

.creas .heading { color: var(--orange); }
.gallery .project img { border-radius: .5rem; }

.case-intro h2 { color: var(--orange); }
.case-cover img { width: auto; margin-inline: auto; border-radius: .5rem; }

.hollywood-slide {
  flex: none;
  display: grid;
  grid-template-rows: 49% 51%;
  justify-items: center;
  width: clamp(9rem, 18.2vw, 28rem);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: .75rem;
  background: #e9dbb8;
}
.strip .hollywood-slide img {
  width: auto;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  object-fit: contain;
}

.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: .3rem;
}
.whatsapp-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #087c50;
  color: #fff;
}

.home-projects-link {
  display: flex;
  justify-content: center;
  padding: .9rem var(--pad) 1.1rem;
  background: var(--orange);
}
.home-projects-link a { text-decoration: none; }
.home-projects-link a:focus-visible { outline-color: var(--paper); }

.case-role { margin-top: .8rem; }

.bar.bio-view { background: var(--paper); color: var(--orange); }
.bar.bio-view .brand {
  background: var(--orange);
  mask: url(assets/home-logo.webp) center / contain no-repeat;
}
.bar.bio-view .brand img { opacity: 0; }
.bio { position: relative; overflow: hidden; font-family: "Portfolio Mono", var(--mono); }
.bio .heading { margin: 0; padding: 0; border: 0; }
.bio .heading h2 { letter-spacing: 0; }
.bio-copy h3 { font-size: inherit; font-weight: 400; text-decoration: none; }
.bio-copy li { position: relative; padding-left: 1.25em; }
.bio-copy li::before { content: "/"; position: absolute; left: 0; }
@media (min-width: 721px) {
  .bar.bio-view { padding-inline: 2.6vw; }
  .bar.bio-view .brand img { width: clamp(6rem, 8.4vw, 12rem); }
  .bio { min-height: 50.6vw; padding: 2.65vw 2.8vw 0; }
  .bio .heading { position: relative; z-index: 1; }
  .bio .heading h2 { font-size: 5.35vw; }
  .bio-layout { display: block; }
  .bio-layout img { position: absolute; width: 55.2%; left: 12.2%; top: .4vw; }
  .bio-copy {
    position: absolute;
    top: 8.25vw;
    left: 55.5%;
    right: 3%;
    font-size: clamp(.95rem, 1.2vw, 1.65rem);
    line-height: 1.4;
  }
  .bio-copy li { margin-top: 2.3vw; }
}
@media (max-width: 720px) {
  .bio { padding-top: 2.5rem; }
  .bio-layout { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .bio-copy { grid-row: 1; }
  .bio-layout img { grid-row: 2; width: min(100%, 30rem); justify-self: center; }
  .bio .heading { margin-bottom: 1.35rem; }
}

.skill-harder { max-width: 67rem; }
.skill-harder p:first-of-type { text-wrap: balance; }

.tartare-cover {
  position: relative;
  justify-self: center;
  width: min(100%, 105svh, 1186px);
}
.tartare-cover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 23.75%;
  width: 1.42%;
  height: 1.36%;
  background: #faf6ed;
  pointer-events: none;
}


.marques .heading { border-bottom: 1px solid #111d3630; }
.marques .logos { gap: clamp(12px,3vw,46px) clamp(14px,3vw,46px); grid-template-columns:repeat(5,minmax(0,1fr)); background:none; }
.marques .logos li { background:transparent; box-shadow:none; border:0; border-radius:0; }
.marques .logos img { filter:grayscale(1) url(#logos-bleu-nuit); mix-blend-mode:multiply; }
@media(max-width:720px){.marques .logos{grid-template-columns:repeat(3,minmax(0,1fr));}}

.bio-copy .bio-aside::before { content: none; }

.case-film figure {
  width: min(100%, 64rem);
  margin-inline: auto;
}

.case-film iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: .5rem;
  background: var(--ink);
}

.case-film figcaption {
  margin-top: .65rem;
  text-align: right;
}

.sequence video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 105svh;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: .5rem;
}
