@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f5f4f8;
  --surface: #eeedf4;
  --text: #13121b;
  --muted: #57566a;
  --accent: #5141d6;
  --line: #dbd9e7;
  --display: "Bricolage Grotesque", Arial, sans-serif;
  --body: var(--display);
  --gutter: clamp(20px, 5vw, 72px);
  --ease: 180ms ease-out;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: radial-gradient(ellipse at 75% 5%, #eeedf8 0, transparent 46%), var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 var(--body);
}
body::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("/assets/paper-grain.png") repeat;
  opacity: .44;
  content: "";
  pointer-events: none;
}
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: var(--bg); background: var(--accent); }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 96px; }

.shell { width: min(1240px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; top: 12px; left: 12px; padding: 12px 16px; background: var(--accent); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 4; top: 0; background: rgb(245 244 248 / 82%); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; flex: none; gap: 10px; font: 700 1.2rem/1 var(--display); letter-spacing: -.03em; }
.brand-punctuation { color: var(--accent); }
.brand-mark { display: inline-block; flex: 0 0 27px; width: 27px; height: 27px; background: url("/assets/logo.webp") center / contain no-repeat; }
.site-menu { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 48px); color: var(--muted); font-size: .91rem; font-weight: 500; }
.site-menu a { transition: color var(--ease), background var(--ease), border-color var(--ease); }
.site-menu a:hover, .site-menu a[aria-current="page"] { color: var(--text); }
.site-menu .nav-project { padding: 10px 16px; color: #fff; background: var(--text); border: 1px solid transparent; border-radius: 999px; }
.site-menu .nav-project:hover { background: #352e56; color: #fff; }
.menu-toggle { display: none; min-width: 64px; min-height: 44px; align-items: center; justify-content: center; padding: 8px 12px; background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }

.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .875rem; font-weight: 500; }
.section-title { margin-top: 12px; font: 600 clamp(1.95rem, 4.1vw, 3.75rem)/1.08 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.section-description { max-width: 32ch; margin-top: 20px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; gap: 9px; min-height: 48px; align-items: center; justify-content: center; padding: 10px 17px; border: 1px solid transparent; border-radius: 999px; font-size: .91rem; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.button--primary { background: var(--text); color: #fff; }
.button--primary:hover { background: #352e56; }
.button--secondary { border-color: var(--line); background: transparent; color: var(--text); }
.button--secondary:hover { border-color: var(--muted); background: var(--surface); }
.text-link { display: inline-block; color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: .3em; transition: color var(--ease), text-decoration-color var(--ease); }
.text-link:hover { color: var(--accent); text-decoration-color: var(--accent); }

.play-icon { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgb(246 245 251 / 55%); border-radius: 50%; background: rgb(17 17 26 / 72%); color: #fff; transition: color var(--ease), background var(--ease), border-color var(--ease); }
.play-icon::after { width: 12px; height: 15px; margin-left: 2px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); content: ""; }
.film-format { display: inline-flex; flex: none; min-height: 31px; align-items: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.work-card { min-width: 0; }
.work-poster { display: block; position: relative; isolation: isolate; overflow: hidden; width: 100%; padding: 0; border: 0; background: var(--surface); cursor: pointer; }
.work-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter var(--ease); }
.work-poster:hover .play-icon { border-color: var(--accent); background: var(--accent); color: #fff; }
.work-poster { height: clamp(180px, 20.25vw, 292px); border-radius: 12px; }
.work-poster img { filter: saturate(.9) brightness(.93); }
.work-poster:hover img { filter: saturate(1.04) brightness(1); }
.work-poster--carplay img { object-position: 50% 34%; }
.work-poster--new-la img { object-position: 50% 53%; }
.work-poster--gestion img { object-position: 50% 42%; }
.work-poster .play-icon { bottom: 12px; left: 12px; width: 44px; height: 44px; }
.work-caption { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-top: 14px; }
.work-caption h3 { font: 550 1.12rem/1.2 var(--display); letter-spacing: -.045em; }
.work-caption p { margin-top: 3px; color: var(--muted); font-size: .91rem; }

.site-footer { background: #eae8f1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-block: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); font-size: .875rem; }
.footer-links a:hover { color: var(--text); }
.footer-inner small { color: var(--muted); font-size: .825rem; }

.portfolio-main { padding-block: 72px 96px; }
.portfolio-head { max-width: 55ch; margin-bottom: 40px; }
.portfolio-head .section-title { font-size: clamp(2.4rem, 7vw, 5rem); }
.portfolio-head .section-description { max-width: 50ch; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
.portfolio-grid .work-poster { height: auto; aspect-ratio: 1.48; }
.portfolio-grid .work-poster--showreel img { object-position: 50% 33%; }
.portfolio-cta { margin-top: 44px; }

.clip-dialog { position: fixed; inset: 0; width: min(100% - 32px, 420px); max-height: calc(100dvh - 32px); margin: auto; padding: 14px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); }
.clip-dialog::backdrop { background: rgb(6 8 7 / 85%); }
.clip-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.clip-dialog h2 { font: 550 .95rem/1.35 var(--display); }
.clip-close { min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }
.clip-close:hover { background: var(--bg); }
.clip-dialog video { width: auto; height: min(64dvh, 640px); aspect-ratio: 9 / 16; margin-inline: auto; border-radius: 6px; background: #090a09; }
.clip-error { margin-top: 12px; color: var(--muted); }

@media (max-width: 760px) {
  .header-inner { min-height: 68px; flex-wrap: wrap; gap: 0 16px; }
  .menu-toggle { display: inline-flex; }
  .site-menu { display: none; flex: 1 0 100%; align-items: stretch; gap: 0; max-height: calc(100dvh - 68px); overflow: auto; overscroll-behavior: contain; padding: 4px 4px 12px; }
  .site-menu.is-open { display: grid; }
  .site-menu a { display: flex; min-height: 48px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
  .site-menu .nav-project { width: fit-content; margin-block: 8px; padding: 8px 16px; }
  .footer-inner { flex-direction: column; align-items: start; gap: 20px; padding-block: 24px; }
  .portfolio-main { padding-block: 48px 64px; }
  .clip-dialog { width: min(100% - 24px, 420px); padding: 12px; }
  .clip-dialog video { width: min(100%, 38dvh, 360px); height: auto; object-fit: contain; }
}

@media (max-width: 420px) {
  .button { padding-inline: 12px; font-size: .865rem; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
