/* ==========================================================
   MATTEO TOUERY — portfolio
   mobile-first · typo éditoriale · scroll reveal
   ========================================================== */

:root {
  --bg: #0e0e0c;
  --ink: #f2efe9;
  --muted: #8f8b83;
  --accent: #ff4d00;
  --font-display: "Anton", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-body: "Space Grotesk", sans-serif;
  --pad: clamp(1rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.5;
  /* pas d'overflow-x ici : ça casserait position:sticky (le clip est sur html) */
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ============ GRAIN ============ */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ============ LOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader.is-done { transform: translateY(-100%); }
.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.loader__word {
  font-family: var(--font-display);
  font-size: clamp(3rem, 14vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  animation: loader-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.loader__word--serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 9vw, 5rem);
  color: var(--accent);
  animation-delay: 0.15s;
}
@keyframes loader-up {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

/* ============ BARRE DE PROGRESSION ============ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1000;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--pad);
  mix-blend-mode: difference;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.header__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}
.header__dot { color: var(--accent); }
.header__meta {
  display: flex;
  gap: 0.6rem;
  color: var(--muted);
}
.header__cta {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  transition: background 0.3s, color 0.3s;
}
.header__cta:hover { background: var(--ink); color: var(--bg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
  opacity: 0.35;
  will-change: transform;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(14,14,12,0.4) 0%, rgba(14,14,12,0.15) 50%, var(--bg) 100%);
}
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__video.is-live { opacity: 1; }
/* boucle YouTube plein cadre (16:9 recadré pour couvrir l'écran) */
.hero__yt {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
}
.hero__yt.is-live { opacity: 1; }
.hero__yt iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78svh);
  height: max(100svh, 56.25vw);
  transform: translate(-50%, -50%);
  border: none;
  filter: grayscale(1) contrast(1.1);
}
.hero__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(4rem, 19vw, 14rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero__line { display: block; }
.hero__line--offset { margin-left: clamp(1.2rem, 8vw, 7rem); }
.hero__sub {
  position: relative;
  z-index: 1;
  margin-top: 1.2rem;
  font-size: clamp(1.3rem, 5.5vw, 2.4rem);
  color: var(--ink);
}
.hero__sub em { color: var(--accent); }
.hero__coords {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.7rem;
  margin-top: 2.2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.hero__scroll {
  position: absolute;
  bottom: 1.4rem;
  right: var(--pad);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.hero__scroll-line {
  width: 1px;
  height: 3.2rem;
  background: var(--muted);
  transform-origin: top;
  animation: scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(242, 239, 233, 0.15);
  border-bottom: 1px solid rgba(242, 239, 233, 0.15);
  padding: 0.7rem 0;
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4.5vw, 2rem);
  text-transform: uppercase;
  color: var(--muted);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ SECTIONS COMMUNES ============ */
section { padding: clamp(4rem, 12vw, 9rem) var(--pad); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 16vw, 11rem);
  line-height: 0.9;
  text-transform: uppercase;
  overflow: hidden;
}
.section-title span { display: block; }
.section-title--outline span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
[data-drift] {
  overflow: visible;
  white-space: nowrap;
  will-change: transform;
}
.section-note {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ============ REVEALS ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}
.hero__line { overflow: hidden; opacity: 1; transform: none; } /* les lettres portent l'anim */
.hero__line > span { display: block; }
.hero__line .l {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d) * 0.045s);
}
.hero__line.in-view .l { transform: translateY(0); }

/* split words (manifesto / about) */
[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
[data-split] .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i) * 0.03s);
}
[data-split].in-view .w > span { transform: translateY(0); }

/* ============ MANIFESTO ============ */
.manifesto { max-width: 60rem; }
.manifesto__label,
.about__label,
.contact__label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7.5vw, 4.2rem);
  line-height: 1.1;
  text-transform: uppercase;
}
/* les mots s'allument au fil du scroll */
[data-fill] .w > span {
  color: rgba(242, 239, 233, 0.22);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), color 0.45s ease;
  transition-delay: calc(var(--i) * 0.03s), 0s;
}
[data-fill] .w > span.lit { color: var(--ink); }

/* ============ FILMS — stacked cards ============ */
.films__head { margin-bottom: clamp(2rem, 6vw, 4rem); }

.films__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 4vw, 2.5rem);
}

.film {
  position: sticky;
  top: clamp(4.5rem, 12vw, 7rem);
  border: 1px solid rgba(242, 239, 233, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  background: #151513;
  cursor: pointer;
  transform-origin: center top;
}
.film__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.film__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.7) contrast(1.05);
  transform: scale(1.05);
  transition: filter 0.6s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.film:hover .film__media img,
.film:active .film__media img {
  filter: grayscale(0) contrast(1);
  transform: scale(1);
}
.film__info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  align-items: baseline;
  padding: 1.1rem 1.2rem 1.3rem;
}
.film__index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
}
.film__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 400;
}
.film__meta {
  grid-column: 2;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.film__play {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.3s, background 0.3s;
}
.film:hover .film__play { background: var(--accent); color: var(--ink); transform: scale(1.1); }

/* ============ TRAVAUX — index ============ */
.work__head { margin-bottom: clamp(1.6rem, 5vw, 3rem); }
.work__index { max-width: 62rem; }
.work__cat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: clamp(2.4rem, 8vw, 4.5rem);
  padding-bottom: 0.6rem;
}
.work__cat:first-child { margin-top: 0; }
.work__cat-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 4.5vw, 1.7rem);
  color: var(--accent);
}
.work__cat-note {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-align: right;
}
.work-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid rgba(242, 239, 233, 0.16);
  cursor: pointer;
}
.work-row:last-child { border-bottom: 1px solid rgba(242, 239, 233, 0.16); }
.work-row__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
}
.work-row__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 4.4vw, 1.9rem);
  line-height: 1.05;
  text-transform: uppercase;
  transition: color 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-row:hover .work-row__title,
.work-row:active .work-row__title {
  color: var(--accent);
  transform: translateX(0.5rem);
}
.work-row__role {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.work-row__tags {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}
.work-row__format {
  border: 1px solid rgba(242, 239, 233, 0.25);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

/* ============ VU DU CIEL — bande horizontale ============ */
.sky { padding-right: 0; }
.sky__head { margin-bottom: clamp(1.6rem, 5vw, 3rem); }
.sky__strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.2rem;
  padding-right: var(--pad);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sky__strip::-webkit-scrollbar { display: none; }

.sky-card {
  flex: 0 0 min(72vw, 24rem);
  scroll-snap-align: start;
  border: 1px solid rgba(242, 239, 233, 0.2);
  border-radius: 0.8rem;
  overflow: hidden;
  background: #151513;
  cursor: pointer;
}
.sky-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.sky-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6);
  transition: filter 0.5s, transform 0.6s;
}
.sky-card:hover .sky-card__media img { filter: grayscale(0); transform: scale(1.04); }
.sky-card__body {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem 1rem;
  align-items: baseline;
}
.sky-card__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sky-card__year {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============ PHOTOGRAPHIE — séries ============ */
.photo .section-note { margin-bottom: clamp(2.4rem, 8vw, 5rem); }

.series { position: relative; }
.series + .series { margin-top: clamp(5rem, 16vw, 10rem); }
.series__label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
}
.series__text {
  margin: 1.2rem 0 0;
  max-width: 36rem;
  display: grid;
  gap: 0.9rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 4.2vw, 1.45rem);
  line-height: 1.5;
  color: #cfcbc2;
}
.series__text p:last-child { color: var(--ink); }
.series__title {
  position: sticky;
  top: 16vh;
  z-index: 0; /* sous les photos, visible dans les vides */
  pointer-events: none;
  margin: clamp(2rem, 7vw, 4rem) 0 -0.5em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 16vw, 11rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--ink);
  mix-blend-mode: difference;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.9rem, 3vw, 2rem);
  align-items: start;
}
.g-item {
  position: relative;
  z-index: 1; /* au-dessus du titre de série */
  cursor: pointer;
  will-change: transform;
  transform: translateY(var(--py, 0));
}
/* rythme éditorial : certaines photos cassent la grille */
.g-item:nth-child(7n+1) {
  grid-column: 1 / -1;
  width: min(82%, 32rem);
}
.g-item:nth-child(7n+4) {
  grid-column: 1 / -1;
  width: min(64%, 26rem);
  margin-left: auto;
}
.g-item:nth-child(2n) { margin-top: clamp(1.6rem, 6vw, 4rem); }
.g-item__frame {
  overflow: hidden;
  border-radius: 0.35rem;
  transform: skewY(var(--skew, 0deg));
}
.g-item img {
  width: 100%;
  height: auto;
}
/* série 01 : rideau (clip-path) + zoom */
.series--wipe .g-item__frame {
  clip-path: inset(14% 10% 14% 10%);
  transition: clip-path 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.series--wipe .g-item.in-view .g-item__frame { clip-path: inset(0 0 0 0); }
.series--wipe .g-item img {
  transform: scale(1.12);
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.series--wipe .g-item.in-view img { transform: scale(1); }
/* série 02 : tirage posé (montée + rotation) */
.series--tilt .g-item__frame {
  opacity: 0;
  transform: translateY(3.5rem) rotate(2.5deg) scale(0.95) skewY(var(--skew, 0deg));
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
}
.series--tilt .g-item:nth-child(2n) .g-item__frame {
  transform: translateY(3.5rem) rotate(-2.5deg) scale(0.95) skewY(var(--skew, 0deg));
}
.series--tilt .g-item.in-view .g-item__frame {
  opacity: 1;
  transform: skewY(var(--skew, 0deg));
}
.g-item__num {
  position: absolute;
  bottom: -1.4rem;
  right: 0.1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.8s 0.4s;
}
.g-item.in-view .g-item__num { opacity: 1; }

/* ============ ABOUT ============ */
.about { max-width: 60rem; }
.about__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6.5vw, 3.6rem);
  line-height: 1.12;
  text-transform: uppercase;
}
.cv {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.timeline {
  list-style: none;
  margin-top: 1.2rem;
}
.timeline__item {
  padding: 1rem 0;
  border-top: 1px solid rgba(242, 239, 233, 0.16);
}
.timeline__dates {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
}
.timeline__role {
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 4.4vw, 1.7rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.timeline__org {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.about__dispo {
  margin-top: 2.6rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34rem;
}
.about__dispo em { color: var(--ink); }
.about__sublabel {
  margin-top: 2.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1rem;
}
.about__gear {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  list-style: none;
}
.about__gear li {
  border: 1px solid rgba(242, 239, 233, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ============ CONTACT ============ */
.contact {
  padding: clamp(5rem, 14vw, 10rem) var(--pad) 2rem;
  border-top: 1px solid rgba(242, 239, 233, 0.15);
}
.contact__big {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 12.5vw, 10rem);
  line-height: 0.92;
  text-transform: uppercase;
  transition: color 0.3s;
}
.contact__big:hover { color: var(--accent); }
.contact__big-serif {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  color: var(--accent);
  margin-left: clamp(1.5rem, 10vw, 8rem);
}
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 3rem;
  list-style: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}
.contact__links a {
  border-bottom: 1px solid var(--muted);
  padding-bottom: 0.15rem;
  transition: color 0.3s, border-color 0.3s;
}
.contact__links a:hover { color: var(--accent); border-color: var(--accent); }
.contact__foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ============ MODAL VIDEO ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(10, 10, 9, 0.96);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal__frame {
  width: min(100%, 70rem);
  aspect-ratio: 16 / 9;
}
.modal__frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.6rem;
}
.modal__frame--portrait {
  aspect-ratio: 9 / 16;
  width: min(100%, calc(86svh * 9 / 16));
  height: auto;
}
.modal__frame--img {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.modal__frame--img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86svh;
  border-radius: 0.6rem;
}
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.modal__close:hover { background: var(--ink); color: var(--bg); }

/* ============ DESKTOP ============ */
@media (min-width: 768px) {
  .cv { flex-direction: row; gap: 3rem; }
  .cv__block { flex: 1; }
  .film__info { padding: 1.4rem 1.8rem 1.6rem; }
  .films__stack { max-width: 62rem; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .g-item:nth-child(7n+1) { grid-column: span 2; width: 88%; }
  .g-item:nth-child(7n+4) { grid-column: span 2; width: 70%; }
  .g-item:nth-child(3n) { margin-top: clamp(1.6rem, 4vw, 3.5rem); }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .hero__scroll-line, .marquee__track { animation: none; }
  [data-reveal], .hero__line span, [data-split] .w > span {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-fill] .w > span { color: var(--ink); }
  [data-drift] { transform: none !important; }
  .g-item { transform: none !important; }
  .g-item__frame { clip-path: none !important; transform: none !important; opacity: 1 !important; }
  .g-item img { transform: none !important; }
  .hero__video { display: none; }
  .hero__yt { display: none; }
  .progress { display: none; }
  .hero__line .l { transform: none !important; transition: none !important; }
  .series__title { position: static; mix-blend-mode: normal; margin-bottom: 1rem; }
  .loader { display: none; }
}
