:root {
  --ink: #1d1a14;
  --cream: #d9cfc0;
  --text: #cfc6b8;
  --muted: #a69d90;
  --teal: #62c6c4;
  --gold: #f0c36d;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 300 18px/1.45 var(--serif);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--cream); margin: 0; line-height: 1.05; }
h2 { font-size: clamp(32px, 4vw, 46px); }
h3 { font-size: clamp(26px, 3vw, 34px); }
.small { font: 400 14px/1.5 var(--sans); color: var(--muted); }
.tiny { font: 400 12px/1.4 var(--sans); color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
hr { border: 0; border-top: 3px double rgb(217 207 192 / .7); margin: 48px 0; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; padding: 0 clamp(16px, 4vw, 56px);
  background: var(--ink);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 18px; color: var(--cream); }
.brand svg, .studio-head svg { width: 28px; height: 28px; fill: currentColor; }
.nav nav { display: flex; gap: clamp(14px, 2.5vw, 30px); }
.nav nav a { text-decoration: none; font-size: 17px; white-space: nowrap; }
.brand { white-space: nowrap; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--teal); }

/* Hero */
.hero { padding: 20px 40px 20px; background: linear-gradient(#a59d92, var(--ink)); }
.hero-frame { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 1360 / 656; max-height: 82vh; width: 100%; }
.hero-frame video { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after { /* faint scanlines, as on the old site */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(transparent 0 2px, rgb(0 0 0 / .12) 2px 3px);
}
.hero-title { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center; color: #fff; text-shadow: 0 2px 24px rgb(0 0 0 / .35); }
.hero-title h1 { color: #fff; font-weight: 700; font-size: clamp(48px, 9vw, 128px); text-transform: uppercase; letter-spacing: -.01em; }
.hero-title p { margin: 0; font-size: clamp(20px, 3.4vw, 46px); text-transform: uppercase; font-weight: 400; }

/* Commercial */
.commercial {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px;
  padding: 56px max(16px, calc((100% - 1000px) / 2)) 64px;
  background: linear-gradient(#7d756a, #2a251e);
  border-bottom: 1px solid rgb(217 207 192 / .6);
}
.commercial h2 { margin-bottom: 56px; }
.commercial .lead { font-size: 21px; margin: 0 0 48px; }
.commercial p { max-width: 360px; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 44px; }
.logos img { height: auto; filter: grayscale(1); opacity: .92; transition: opacity .2s; }
.logos a:hover img { opacity: 1; }
/* Dark logos are shown as white silhouettes, as on the old site */
img.mono { filter: brightness(0) invert(1); }
.logos .more { font: 600 24px var(--sans); color: #fff; }

/* Studio */
.studio {
  padding: 48px max(16px, calc((100% - 864px) / 2)) 72px;
  background: linear-gradient(#25222f 0%, #2f2533 45%, #4a2b1d 100%);
}
.studio-head { text-align: center; border-bottom: 3px double rgb(217 207 192 / .7); padding-bottom: 20px; margin: 0 -40px 24px; }
.studio-head svg { margin: 0 auto 10px; color: var(--cream); }
.studio-intro { margin: 0 0 40px; }
.studio-intro::after { content: ""; display: block; width: 114px; margin: 48px auto 0; border-top: 1px solid var(--muted); }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; }
.project-meta > div { max-width: 260px; }
.project-meta h3 { margin-bottom: 12px; }
.soul { display: grid; grid-template-columns: 289px 1fr; gap: 48px 15%; align-items: start; }
.soul figure { margin: 0; }
.soul figcaption { margin-bottom: 12px; }
.soul h3 { margin: 28px 0 12px; }

.slideshow { position: relative; margin-top: 40px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 2px; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 862 / 457; object-fit: cover; }
.slideshow button {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgb(0 0 0 / .45); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.slideshow .prev { left: 10px; }
.slideshow .next { right: 10px; }

/* Featured */
.featured { background: #24211e; padding-top: 48px; }
.featured > h2 { text-align: center; }
.client { padding: 40px max(16px, calc((100% - 900px) / 2)) 72px; text-align: center; }
.client > p { max-width: 640px; margin: 24px auto 40px; font-size: 16px; }
.client-logo { margin: 0 auto; max-height: 84px; width: auto; }
.client-ikea { background: radial-gradient(ellipse at 50% 40%, #2b2622, #1c1915 75%); }
.client-stanford {
  background: linear-gradient(rgb(29 26 20 / .82), rgb(29 26 20 / .9)), url("/img/stanford-hospital.jpg") center / cover;
}
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }

.video-tile {
  position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 2px; overflow: hidden; color: inherit;
}
.video-tile img { width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; transition: transform .4s, filter .4s; }
.video-tile.wide img { aspect-ratio: 864 / 529; }
.video-tile:hover img, .video-tile:focus-visible img { transform: scale(1.03); filter: brightness(1.1); }
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 34px; height: 34px; border: 2px solid #fff; border-radius: 50%;
}
.play::after { content: ""; position: absolute; left: 12px; top: 8px; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; }

/* Contact */
.contact { padding: 28px max(16px, calc((100% - 940px) / 2)) 96px; }
.about img { filter: grayscale(1); }
.about { display: grid; grid-template-columns: 379px 1fr; align-items: center; gap: 40px; }
.social { display: flex; justify-content: center; align-items: center; gap: 64px; }
.social img { width: 80px; height: auto; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; max-width: 492px; margin: 0 auto; font: 400 13px var(--sans); color: var(--muted); }
.contact-form label { display: grid; gap: 6px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  font: 400 16px var(--sans); color: var(--cream); background: transparent;
  border: 0; border-bottom: 1px solid var(--muted); padding: 8px 0; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--gold); }
.contact-form button {
  justify-self: start; width: 148px; height: 38px; border: 0; border-radius: 19px;
  background: var(--gold); color: var(--ink); font: 600 14px var(--serif); cursor: pointer;
}
.contact-form button:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; margin: 0; min-height: 1.4em; color: var(--cream); }

.foot { padding: 24px; text-align: center; font: 400 12px var(--sans); color: var(--muted); }

/* Video player */
.player { width: min(1100px, 92vw); padding: 0; border: 0; background: #000; overflow: visible; }
.player::backdrop { background: rgb(0 0 0 / .85); }
.player-body { aspect-ratio: 16 / 9; }
.player-body video, .player-body iframe { width: 100%; height: 100%; border: 0; }
.player .close {
  position: absolute; right: -6px; top: -44px; border: 0; background: none;
  color: #fff; font-size: 36px; line-height: 1; cursor: pointer;
}

@media (max-width: 760px) {
  .nav { height: 52px; }
  .brand { font-size: 16px; }
  .nav nav { gap: 14px; }
  .nav nav a { font-size: 14px; }
  .wide-only { display: none; }
  .nav nav a[href="#top"], .nav nav a[href="#films"] { display: none; }
  .hero { padding: 12px 16px; }
  .hero-frame { aspect-ratio: 4 / 5; }
  .commercial, .soul, .about { grid-template-columns: 1fr; }
  .commercial h2 { margin-bottom: 24px; }
  .commercial .lead { margin-bottom: 24px; }
  .logos { gap: 20px 28px; }
  .logos img { max-width: 120px; }
  .studio-head { margin: 0 0 24px; }
  .project-meta { flex-direction: column; align-items: flex-start; }
  .soul figure img { max-width: 240px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .about img { max-width: 300px; margin: 0 auto; }
  .contact-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .video-tile img { transition: none; }
}

/* Cross-links between the two sites */
.crosslink { margin: 0 0 8px; font-size: 14px; color: var(--text); }

/* Élément Magique site */
.em .studio { padding-top: 64px; }
.em-hero h1 { font-size: clamp(44px, 8vw, 96px); }
.em-hero svg { width: 44px; height: 44px; }
.em .contact { text-align: center; padding-top: 64px; }
.contact-title { margin-bottom: 32px; }
.em .contact .contact-form { text-align: left; }
