/* ─────────────────────────────────────────────
   Camille Langlois — styles
   Colours and fonts live in the variables below:
   change them here and the whole site follows.
   ───────────────────────────────────────────── */

:root {
  --paper: #FEFEF9;      /* almost-white, a touch warm */
  --paper-2: #F1F1EA;    /* slightly darker paper */
  --ink: #1B1814;        /* near-black text */
  --earth: #7A6450;      /* earthy brown accent */
  --muted: #6F665C;      /* secondary text */
  --line: rgba(27, 24, 20, .14);

  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ol, ul { list-style: none; margin: 0; padding: 0; }

/* Film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -4%); }
  60%  { transform: translate(-4%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Slightly faded, vintage look on photos */
.card img, .services img, .bts img {
  filter: saturate(.82) contrast(1.04) sepia(.08);
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--ink); color: var(--paper); padding: 8px 12px; }

/* ───────── Shared pieces ───────── */
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity .3s;
}
.link:hover { opacity: .55; }

.button {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: transform .4s var(--ease), opacity .3s;
}
.button:hover { transform: translateY(-2px); opacity: .88; }
.button--light { background: var(--paper); color: var(--ink); }

/* Section marker: a small red dot (same red as the cursor) and the section number */
.marker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}
.marker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D2382B;
}
/* Very light hairlines on both sides of the centred marker */
.marker::before, .marker::after {
  content: "";
  flex: 1;
  height: 1px;
  transform: scaleY(.6);
  background: rgba(27, 24, 20, .16);
}
.marker--dark { color: rgba(242, 237, 228, .55); }
.marker--dark::after, .marker--dark::before { background: rgba(242, 237, 228, .16); }

.block { padding: clamp(80px, 11vw, 160px) var(--gutter) 0; }

.big-title {
  margin-top: clamp(64px, 9vw, 130px);
  font-size: clamp(38px, 6vw, 92px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 500;
  text-align: center;
}
.big-title--left { margin-top: 0; text-align: left; }

.centered-text {
  max-width: 34em;
  margin: 28px auto 0;
  text-align: center;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
  color: #3E3832;
}
.centered-text--small { font-size: 15px; color: var(--muted); max-width: 30em; }
.centered-cta { text-align: center; margin-top: clamp(48px, 6vw, 80px); }

/* Film-subtitle caption: place + GPS */
.subtitle {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 3vw, 32px);
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  text-align: center;
  font-family: var(--mono);
  font-size: clamp(10.5px, 1vw, 13px);
  letter-spacing: .06em;
  color: #F6EFE2;
  text-shadow: 0 1px 2px rgba(0,0,0,.65), 0 0 10px rgba(0,0,0,.35);
}

/* ───────── Navigation ───────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 14px;
  color: var(--paper);
  transition: background .5s var(--ease), color .5s var(--ease);
}
.nav.is-solid {
  background: rgba(254, 254, 249, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
}
.nav__brand, .nav__links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.nav__brand { font-weight: 600; }
.nav__links { display: flex; gap: clamp(14px, 3vw, 36px); }
.nav__links a { transition: opacity .3s; }
.nav__links a:hover { opacity: .55; }
.nav__links a[aria-current="page"] { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ───────── Hero video ───────── */
.hero {
  position: sticky;   /* stays in place while the page slides over it */
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  color: var(--paper);
  overflow: hidden;
  background: #0f0d0b url("media/showreel-poster.jpg") center / cover;
}
.hero__video, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video { object-fit: cover; }
.hero__shade {
  background:
    linear-gradient(to bottom, rgba(15,13,11,.4) 0%, rgba(15,13,11,0) 20%),
    linear-gradient(to top, rgba(15,13,11,.6) 0%, rgba(15,13,11,0) 55%);
}
.hero__content {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: env(safe-area-inset-bottom);
}
.hero__title {
  font-size: clamp(48px, 9.4vw, 168px);
  line-height: .92;
  letter-spacing: -.05em;
  font-weight: 500;
}
/* Bottom row sits centred between the grey line and the bottom of the video */
.hero__foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: clamp(20px, 3vw, 40px);
  padding: clamp(18px, 2.4vw, 30px) 0;
  border-top: 1px solid rgba(242, 237, 228, .35);
}
.hero__intro { max-width: 30em; font-size: 15px; line-height: 1.45; opacity: .9; }
.hero__kind { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; text-align: right; opacity: .8; }

/* The page content: a second layer that covers the video as you scroll */
.sheet {
  position: relative;
  z-index: 1;
  background: var(--paper);
  box-shadow: 0 -24px 48px rgba(15, 13, 11, .28);
  clip-path: inset(-100px 0 0 0);   /* shadow only above the sheet, not below */
}

/* ───────── Logo band ───────── */
.logos {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
/* Same hairline as the section separators */
.logos::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  transform: scaleY(.6);
  background: rgba(27, 24, 20, .16);
}
.logos__track { display: flex; width: max-content; }
.logos__row {
  display: flex;
  flex-shrink: 0;
  animation: marquee 48s linear infinite;
}
.logo {
  display: grid;
  place-items: center;
  width: clamp(170px, 19vw, 290px);
  height: clamp(104px, 11vw, 150px);
  color: var(--ink);
  perspective: 600px;
  white-space: nowrap;
}
.logo img {
  height: calc(var(--h, 22px) * 1.25);  /* logos 25% bigger than their base size */
  width: auto;
  max-width: 72%;
  object-fit: contain;
  filter: brightness(0);      /* turns every logo into one dark colour */
  opacity: .78;
  will-change: transform, opacity;
}
/* Logos with a light detail inside (Garnier's G): grey tones instead of solid black */
.logo img.logo--keep-white { filter: grayscale(1) brightness(.55) contrast(1.6); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ───────── 01 Who I am: big split words, short text (Laher-inspired) ───────── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
  padding: clamp(96px, 13vw, 190px) var(--gutter) 0;
}
.split__title { display: contents; }
.split__word {
  font-size: clamp(42px, 8vw, 140px);
  font-weight: 500;
  line-height: .85;
  letter-spacing: -.055em;
}
.split__word--one { justify-self: start; }
.split__word--two { justify-self: end; text-align: right; }
.split__body {
  max-width: 23em;
  line-height: 1.45;
  margin-top: clamp(16px, 3vw, 40px);
  color: #3E3832;
}
.split__body .link { display: inline-block; margin-top: 24px; color: var(--ink); }

/* ───────── 02 Services ───────── */
.services__intro { margin-top: clamp(64px, 9vw, 130px); }
.services__intro > p { margin-top: 24px; max-width: 30em; color: #3E3832; }
.services__grid {
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(48px, 6vw, 80px);
}
.services__image { margin: 0; }
.services__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* Side by side: the photo is exactly as tall as the list, top and bottom aligned */
@media (min-width: 900px) {
  .services__grid { grid-template-columns: 5fr 7fr; align-items: stretch; }
  .services__image { position: relative; min-height: 380px; }
  .services__image img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}

.service {
  display: grid;
  grid-template-columns: clamp(48px, 6vw, 90px) 1fr;
  gap: 16px;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service:last-child { padding-bottom: 0; }
.service__num { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: .6em; }
.service__title {
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 14px;
}
.service p { color: #3E3832; max-width: 32em; }
.service .service__tags {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ───────── 03 Approach ───────── */
.steps {
  display: grid;
  gap: clamp(28px, 3vw, 40px);
  margin-top: clamp(56px, 7vw, 96px);
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step__num {
  display: block;
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -.04em;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.step__title {
  margin: 18px 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.step p { color: var(--muted); font-size: 15.5px; max-width: 24em; }

/* ───────── 04 Work cards ───────── */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 7vw, 110px) clamp(16px, 2.4vw, 36px);
  margin-top: clamp(56px, 7vw, 96px);
}
@media (min-width: 820px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: 1 / -1; }
  .card:not(.card--wide):nth-child(3n) { margin-top: 18vh; }
}
.card { display: block; }
.card__frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
.card--wide .card__frame { aspect-ratio: 2 / 1; }
@media (max-width: 819px) {
  .card__frame, .card--wide .card__frame { aspect-ratio: 4 / 5; }
}
.card__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease);
}
.card:hover .card__frame img { transform: scale(1.07); }
.card__text { padding-top: 18px; }
.card__brand {
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: .9;
  letter-spacing: -.045em;
  font-weight: 500;
  text-transform: uppercase;
}
.card:not(.card--wide) .card__brand { font-size: clamp(40px, 4.6vw, 76px); }
.card__film {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.card__film span { color: var(--muted); }
.card__film span::before { content: "— "; }
.card--soon .card__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  background:
    radial-gradient(ellipse at 30% 20%, #D9CDB9 0%, transparent 60%),
    linear-gradient(160deg, #CBBBA2, #9C8569);
}

/* ───────── 05 BTS strip ───────── */
.bts__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(62%, 1fr);
  gap: 12px;
  margin-top: clamp(48px, 6vw, 80px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.bts__strip::-webkit-scrollbar { display: none; }
.bts__strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
@media (min-width: 820px) {
  .bts__strip { grid-auto-columns: 1fr; overflow: visible; padding-bottom: 48px; }
  .bts__strip img:nth-child(even) { transform: translateY(48px); }
}

/* ───────── 06 Contact ───────── */
.contact {
  margin-top: clamp(96px, 12vw, 180px);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(56px, 7vw, 96px);   /* compact block */
  text-align: center;
}
.contact__title {
  margin-top: clamp(28px, 3.5vw, 48px);
  font-size: clamp(32px, 4.4vw, 68px);
  line-height: .92;
  letter-spacing: -.05em;
}
.contact__text { margin: 18px auto 28px; max-width: 30em; font-size: 15px; opacity: .7; }
.contact__title:first-child { margin-top: 0; }

/* ───────── Footer ───────── */
.footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(64px, 8vw, 120px);
  background: var(--paper);
  color: var(--muted);
  padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom));
}
.footer__top {
  display: grid;
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid rgba(242, 237, 228, .16);
}
.footer__name { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.04em; line-height: 1; }
.footer__cols { display: grid; gap: 28px; font-size: 15px; }
@media (min-width: 640px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > :last-child { text-align: right; }   /* menu sits on the right edge */
}
.footer__cols a { border-bottom: 1px solid rgba(242,237,228,.3); overflow-wrap: anywhere; }
.footer__label { opacity: .5; margin-bottom: 8px; font-size: 11px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ───────── Phone tweaks ───────── */
@media (max-width: 640px) {
  .nav__brand { display: none; }
  .nav { justify-content: center; }
  .hero__foot { grid-template-columns: auto 1fr; }
  .hero__intro { grid-column: 1 / -1; grid-row: 1; }
}

/* ───────── Reveal on scroll ───────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  body::after, .logos__row { animation: none; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ───────── Cursor dot (computer only, not on phones) ───────── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 150;
    width: 12px; height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: #D2382B;       /* change the dot colour here */
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
    will-change: transform;
  }
  .cursor.is-visible { opacity: 1; }
}

/* ───────── Work page: project cards with video previews (Mason-inspired) ───────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.6vw, 20px);
  padding: calc(64px + clamp(16px, 2vw, 28px)) var(--gutter) 0;
}
/* 12-column grid: wide = full row, normal = half */
@media (min-width: 820px) {
  .projects { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .projects .project { grid-column: span 6; aspect-ratio: auto; height: clamp(460px, 72vh, 780px); }
  .projects .project--wide { grid-column: 1 / -1; height: auto; min-height: 0; aspect-ratio: 16 / 9; }   /* cinema-style 16:9 banners */
  /* never taller than the window: the whole banner stays visible, centred */
  .projects .project--wide { justify-self: center; width: min(100%, calc((100vh - 150px) * 16 / 9)); width: min(100%, calc((100svh - 150px) * 16 / 9)); }
}
.project {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #1B1814;
  color: #F6EFE2;
  aspect-ratio: 4 / 5;
}
.project--wide { aspect-ratio: auto; height: 82vh; height: 82svh; min-height: 420px; }
@media (max-width: 819px) {
  .project, .project--wide { aspect-ratio: 4 / 5; height: auto; min-height: 0; }
}
.project__media, .project__media img, .project__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* No colour filter here: the films keep their own grade */
.project__media img, .project__media video {
  transform: scale(1.02);
  transition: transform 1.4s var(--ease), opacity .8s ease;
}
.project__media video { opacity: 0; }
.project.is-playing .project__media video { opacity: 1; }
.project:hover .project__media img,
.project:hover .project__media video { transform: scale(1.06); }
/* Dark fade at the bottom so the white text stays readable */
.project__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,13,11,.55) 0%, rgba(15,13,11,0) 38%);
}
.project__text {
  position: absolute;
  left: clamp(18px, 2.4vw, 36px);
  right: clamp(18px, 2.4vw, 36px);
  bottom: clamp(18px, 2.4vw, 36px);
}
.project__brand {
  font-size: clamp(34px, 4.4vw, 72px);
  line-height: .92;
  letter-spacing: -.04em;
  font-weight: 500;
  text-transform: uppercase;
}
.project--wide .project__brand { font-size: clamp(40px, 6vw, 104px); }
.project__film {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.project__place {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  opacity: .75;
}
.projects + .contact { margin-top: clamp(80px, 10vw, 140px); }

/* ───────── Project page (case study), Mason-inspired ───────── */
.case { padding-top: calc(64px + clamp(32px, 5vw, 72px)); }
.case__head { padding: 0 var(--gutter); }
.case__back { display: inline-block; margin-bottom: clamp(28px, 4vw, 48px); color: var(--muted); font-size: 11px; transition: color .3s; }
.case__back:hover { color: var(--ink); }
.case__brand {
  font-size: clamp(46px, 7.6vw, 128px);
  margin-left: -.055em;   /* optical alignment: the big letters line up with the text below */
  line-height: .88;
  letter-spacing: -.05em;
  font-weight: 500;
  text-transform: uppercase;
}
.case__film {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.case__place, .case__by {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}
.case__film-frame {
  margin: clamp(36px, 5vw, 64px) var(--gutter) 0;
  border-radius: 14px;
  overflow: hidden;
  background: #1B1814;
  aspect-ratio: 16 / 9;
}
.case__video { display: block; width: 100%; height: 100%; object-fit: cover; background: #1B1814; }

.case__about {
  display: grid;
  gap: 28px;
  padding: clamp(72px, 9vw, 130px) var(--gutter) 0;
}
.case__text {
  max-width: 40em;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.45;
  letter-spacing: -.01em;
}

.case__credits { padding: clamp(64px, 8vw, 110px) var(--gutter) 0; }
.case__label {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 18px;
}
.credits {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 0 clamp(40px, 5vw, 64px);
}
@media (min-width: 700px)  { .credits { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 1100px) { .credits { grid-template-columns: repeat(3, 1fr); } }
.credits > div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.credits dt { color: var(--muted); }
.credits dd { margin: 0; }
.case__gear {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.case__stills {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.6vw, 20px);
  padding: clamp(64px, 8vw, 110px) var(--gutter) 0;
}
@media (min-width: 820px) { .case__stills { grid-template-columns: 1fr 1fr; } }
.case__stills img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }

.case__next { padding-top: clamp(80px, 10vw, 140px); }
.case__next-label { font-size: 11px; letter-spacing: .08em; opacity: .8; margin-bottom: 10px; }

/* ───────── More work: two videos per row, title appears on hover (dannygevirtz-inspired) ───────── */
.more-work { padding: clamp(80px, 10vw, 140px) 0 0; }
.more-work > .marker { padding: 0 var(--gutter); margin-bottom: clamp(28px, 4vw, 48px); }
.more-work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  padding: 0 var(--gutter);
}
.project.project--tile { aspect-ratio: 16 / 9; height: auto; border-radius: 0; }
.project--tile .project__media::after {
  background: rgba(15, 13, 11, .35);
  opacity: 0;
  transition: opacity .4s ease;
}
.project__tile-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  white-space: pre;
  padding: 12px;
  text-align: center;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #F6EFE2;
  opacity: 0;
  transition: opacity .4s ease;
}
.project__tile-label span { opacity: .6; margin: 0 .3em; }
.project--tile:hover .project__media::after,
.project--tile:hover .project__tile-label,
.project--tile:focus-visible .project__tile-label { opacity: 1; }
/* Phones and tablets have no hover: keep the titles visible */
@media (hover: none) {
  .project--tile .project__media::after { opacity: 1; background: rgba(15, 13, 11, .25); }
  .project__tile-label { opacity: 1; }
}

/* ───────── Project page: "The film" as an editorial layout ───────── */
.case__story {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  margin-top: clamp(16px, 2vw, 32px);
}
@media (min-width: 900px) {
  .case__story { grid-template-columns: 7fr 4fr; column-gap: clamp(48px, 7vw, 120px); align-items: end; }
}
.case__statement {
  font-size: clamp(30px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 500;
  text-wrap: balance;
}
.case__aside { display: grid; gap: 28px; font-size: 15px; line-height: 1.55; color: #3E3832; }
.case__facts { margin: 0; display: grid; }
.case__facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.case__facts > div:last-child { border-bottom: 1px solid var(--line); }
.case__facts dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.case__facts dd {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}



/* ───────── More work: one project at a time, scroll / swipe sideways ───────── */
.more-work__track {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  padding: 0 var(--gutter);
  scroll-padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.more-work__track::-webkit-scrollbar { display: none; }
.more-work__track:focus-visible { outline: 1px solid var(--line); outline-offset: 6px; }
.more-work__track .project--tile {
  flex: 0 0 100%;
  scroll-snap-align: start;
  max-height: 82vh;
  border-radius: 14px;
}
.more-work__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: clamp(18px, 2.4vw, 28px);
  padding: 0 var(--gutter);
}
.more-work__arrow {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition: background .3s, color .3s, opacity .3s;
}
.more-work__arrow:hover { background: var(--ink); color: var(--paper); }
.more-work__arrow:disabled { opacity: .3; cursor: default; background: none; color: var(--ink); }
.more-work__count { font-size: 11px; letter-spacing: .08em; color: var(--muted); min-width: 5.5em; text-align: center; }

/* ───────── Clouds seen from the sky, in dots, behind "Stories that matter" (ntrl-inspired) ───────── */
.split { position: relative; min-height: 100vh; min-height: 100svh; align-content: center; }
.split__sky {
  position: absolute;
  left: 0;
  top: 0;              /* moved up under the logo band by script.js */
  width: 100%;
  height: 100%;
  /* no hard edges: the dots fade in under the logos and fade out before "My mission" */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 240px, #000 calc(100% - 260px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 240px, #000 calc(100% - 260px), transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.split__word, .split__body { position: relative; z-index: 1; }
/* the logo band and the next section sit above the dots, with see-through backgrounds */
.logos { z-index: 1; background: transparent; }
.split + .block { position: relative; z-index: 1; }


/* ───────── More work: small cards with square corners and a caption underneath ───────── */
.more-work__track .project--card {
  flex: 0 0 clamp(260px, 30vw, 440px);
  aspect-ratio: auto;
  height: auto;
  max-height: none;
  border-radius: 0;
  border: 1px solid var(--line);
  background: #FAF7F1;
  display: flex;
  flex-direction: column;
}
.project--card .project__media { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; overflow: hidden; }
.project--card .project__media::after { display: none; }
.project__caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 14px;
  row-gap: 8px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.project__cap-num { font-size: 11px; color: var(--muted); transition: color .3s; }
.project--card:hover .project__cap-num { color: #D2382B; }
.project__cap-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.project__cap-title { font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; letter-spacing: -.01em; text-transform: uppercase; line-height: 1; }
.project__cap-film { font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.project__cap-kind { font-size: 11px; color: var(--ink); }
.project__cap-tags { grid-column: 2 / -1; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 819px) {
  .more-work__track .project--card { flex-basis: 78%; }
}

/* ───────── Project page: sound on / off button over the film ───────── */
.case__film-frame { position: relative; }
.case__video { cursor: pointer; }
.case__sound {
  position: absolute;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  border: 1px solid rgba(246, 239, 226, .35);
  border-radius: 999px;
  background: rgba(15, 13, 11, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #F6EFE2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s, border-color .3s;
}
.case__sound[hidden] { display: none; }   /* only shown when the full film is there */
.case__sound:hover { background: rgba(15, 13, 11, .6); border-color: rgba(246, 239, 226, .6); }
.case__sound-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; transition: background .3s, border-color .3s; }
.case__sound[aria-pressed="true"] .case__sound-dot { background: #D2382B; border-color: #D2382B; }

/* ───────── Canon page: blue ink lines flowing behind the title, across the whole width ───────── */
.case__head { position: relative; }
.case__ink { position: absolute; pointer-events: none; z-index: 0; }
.case__head > :not(canvas) { position: relative; z-index: 1; }
/* the menu fades out softly, so the ink lines carry on underneath it with no hard edge */
.page--ink .nav.is-solid {
  background: linear-gradient(to bottom, rgba(254, 254, 249, .94) 0%, rgba(254, 254, 249, .7) 55%, rgba(254, 254, 249, 0) 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding-bottom: 34px;
}
/* the film sits above the ink lines, which carry on softly behind it */
.case__film-frame { z-index: 1; }

/* ───────── Garnier page: soft blurred flower under the title (drawn and placed by script.js) ───────── */
.case { overflow-x: clip; }   /* the flower may poke out on the side without widening the page */
.case__flower {
  position: absolute;               /* placed behind the title by script.js */
  z-index: 0;
  pointer-events: none;
  filter: blur(9px);
  opacity: .72;   /* soft, in the background */
}
@media (max-width: 699px) {
  .case__flower { opacity: .6; }
}

/* ───────── More work: the block sits centred between the "More work" line and the footer line ───────── */
:root { --more-gap: clamp(56px, 6.5vw, 96px); }
.more-work > .marker { margin-bottom: var(--more-gap); }
.case + .footer { margin-top: calc(var(--more-gap) + 8px); }   /* + half the marker's height, so both gaps match */

/* the caption under each project: warm brown instead of white */
.more-work__track .project--card { background: #1F1D1B; border-color: #1F1D1B; }
.project--card .project__caption { color: #F1ECE3; border-top-color: rgba(241, 236, 227, .12); }
.project--card .project__cap-num,
.project--card .project__cap-film,
.project--card .project__cap-tags { color: rgba(241, 236, 227, .62); }
.project--card .project__cap-film { border-bottom-color: rgba(241, 236, 227, .25); }
.project--card .project__cap-kind { color: #F1ECE3; }
.project--card:hover .project__cap-num { color: #E8654F; }

/* ───────── About page: one screen — title and words top left, big photo bottom left, a list bottom right ───────── */
:root { --about-edge: clamp(20px, 2.4vw, 36px); }   /* distance from the left edge of the screen to the text and photo */
.about {
  display: grid;
  gap: clamp(24px, 2.6vw, 40px) clamp(24px, 3vw, 48px);   /* "About me" sits close to the photo */
  padding: calc(64px + clamp(48px, 6vw, 96px)) var(--gutter) clamp(20px, 2vw, 32px);   /* well clear of the menu */
}
.about__head h1 { font-size: clamp(28px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.03em; text-transform: uppercase; line-height: 1; }
.about__head p { margin-top: 1.1em; font-size: clamp(13px, 1vw, 15px); line-height: 1.45; max-width: 36em; color: var(--ink); }
.about__head p:first-of-type { margin-top: 1.4em; }
.about__photo { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.about__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about__list h2 { font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.03em; text-transform: uppercase; line-height: 1; }
.about__list ul { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3.4vw, 52px) clamp(20px, 3vw, 44px); margin-top: clamp(20px, 2vw, 28px); }
.about__list small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; }
.about__list a, .about__list span { display: block; font-family: var(--mono); font-size: clamp(11px, .9vw, 13px); letter-spacing: .02em; line-height: 1.35; text-transform: uppercase; }
.about__list a { transition: color .3s; }
.about__list a:hover { color: #D2382B; }
.about + .footer { margin-top: 0; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .about__head { grid-column: 1; grid-row: 1; margin-left: calc(-1 * var(--gutter) + var(--about-edge)); }   /* lined up with the photo's left edge */
  .about__photo { grid-column: 1; grid-row: 2; align-self: end; margin-left: calc(-1 * var(--gutter) + var(--about-edge)); }
  .about__list { grid-column: 2; grid-row: 2; align-self: end; padding-left: clamp(0px, 2vw, 32px); }
}

/* ───────── Contact page: role, email and icons centred on the left, the polaroid on the right ───────── */
.reach {
  display: grid;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
  min-height: calc(100vh - 70px); min-height: calc(100svh - 70px);
  padding: calc(64px + clamp(32px, 4vw, 64px)) var(--gutter) clamp(40px, 5vw, 72px);
}
.reach__text { text-align: center; }
.reach__role { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.reach__mail {
  display: inline-block; margin-top: 14px;
  font-size: clamp(18px, 2vw, 28px); font-weight: 500; letter-spacing: -.01em; text-transform: uppercase;
  overflow-wrap: anywhere; transition: color .3s;
}
.reach__mail:hover { color: #D2382B; }
.reach__icons { display: flex; justify-content: center; gap: 18px; margin-top: 22px; }
.reach__icons a { display: block; color: var(--muted); transition: color .3s; }
.reach__icons a:hover { color: #D2382B; }
.reach__icons svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.reach__icons svg .fill { fill: currentColor; stroke: none; }
.reach__photo { margin: 0 auto; width: min(100%, 420px); }
.reach__photo img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 18px 40px -18px rgba(27, 24, 20, .35); }
@media (min-width: 820px) {
  .reach { grid-template-columns: 1fr 1fr; }
  .reach__photo { order: -1; }   /* photo on the left, text on the right */
}
.reach__icons a { position: relative; }
.reach__icons a[data-copy]::after {
  content: "Copied!";
  position: absolute; left: 50%; top: calc(100% + 8px);
  transform: translate(-50%, 4px);
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: #D2382B; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.reach__icons a.is-copied::after { opacity: 1; transform: translate(-50%, 0); }
