/* ============================================================
   RUDNEY - Fotografia & Filme
   Estética: editorial cinematográfica noir
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --ink:      #0a0a0a;   /* fundo preto */
  --ink-2:    #141414;   /* superfície */
  --ink-3:    #1f1f1f;   /* superfície elevada */
  --bone:     #f2f2f0;   /* texto claro (branco) */
  --bone-dim: #c4c4c4;
  --taupe:    #8c8c8c;   /* texto secundário (cinza) */
  --taupe-2:  #565656;   /* bordas / muted */
  --accent:   #ffffff;   /* destaque (branco puro) */
  --line:     rgba(255, 255, 255, 0.13);
  --line-2:   rgba(255, 255, 255, 0.06);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Archivo", system-ui, sans-serif;

  --pad:   clamp(1.25rem, 5vw, 6rem);

  --ease:      cubic-bezier(0.65, 0.05, 0.1, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 92px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  position: relative;
}

body.is-locked { overflow: hidden; height: 100vh; height: 100dvh; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }

/* ---------- CUSTOM SCROLLBAR ---------- */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--taupe-2); }
::-webkit-scrollbar-thumb:hover { background: var(--taupe); }

/* ============================================================
   GRÃO + VINHETA
   ============================================================ */
.grain {
  position: fixed;
  inset: -150%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' 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.7s steps(4) infinite;
  will-change: transform;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -4%); }
  75%  { transform: translate(-2%, 3%); }
  100% { transform: translate(3%, -2%); }
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(130% 130% at 50% 40%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { text-align: center; }
.preloader__mark {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  display: flex; gap: 0.05em; overflow: hidden;
}
.preloader__mark span {
  display: inline-block;
  transform: translateY(110%);
}
.preloader__meta {
  margin-top: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--taupe);
  opacity: 0;
}
.preloader__count { color: var(--accent); font-variant-numeric: tabular-nums; }
.preloader.is-done { transform: translateY(-100%); transition: transform 1s var(--ease); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  mix-blend-mode: difference;
  transition: transform 0.5s var(--ease);
  /* força camada de composição própria: Safari tem um bug onde position:fixed
     + mix-blend-mode corrompe a repintura durante o scroll, deixando um
     resquício visual de outra parte da página. */
  will-change: transform;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; flex-direction: column; line-height: 1; }
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 500; letter-spacing: 0.18em;
  color: var(--bone);
}
.nav__sub {
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bone); opacity: 0.6; margin-top: 0.35rem;
}
.nav__links { display: flex; gap: 2.5rem; align-items: center; }
.nav__link {
  position: relative;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bone);
  overflow: hidden;
}
.nav__link span { display: inline-block; transition: transform 0.5s var(--ease-out); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: var(--bone);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link--cta { padding: 0.5rem 1.1rem; border: 1px solid rgba(255,255,255,0.5); border-radius: 100px; }
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--bone); color: var(--ink); }

.nav__toggle { display: none; width: 34px; height: 34px; position: relative; }
.nav__toggle span {
  position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--bone);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { bottom: 13px; }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- MENU MOBILE ---------- */
.menu {
  position: fixed; inset: 0; z-index: 800;
  background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--nav-h) var(--pad) var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
  pointer-events: none;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu__nav { display: flex; flex-direction: column; gap: 0.5rem; }
.menu__link {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 11vw, 5rem);
  font-weight: 300; line-height: 1.05;
  overflow: hidden;
  display: flex; align-items: baseline; gap: 1rem;
}
.menu__link::before {
  content: attr(data-index);
  font-family: var(--font-body);
  font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em;
  transform: translateY(-1.5em);
}
.menu__link span { display: inline-block; transform: translateY(110%); transition: transform 0.6s var(--ease-out); }
body.menu-open .menu__link span { transform: translateY(0); }
.menu__link:nth-child(1) span { transition-delay: 0.1s; }
.menu__link:nth-child(2) span { transition-delay: 0.18s; }
.menu__link:nth-child(3) span { transition-delay: 0.26s; }
.menu__link:nth-child(4) span { transition-delay: 0.34s; }
.menu__link:hover { color: var(--accent); }
.menu__foot { margin-top: 3rem; display: flex; gap: 2rem; }
.menu__social { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--taupe); }
.menu__social:hover { color: var(--bone); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--nav-h) var(--pad) clamp(2rem, 5vh, 4rem);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero__fill, .hero__media video, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__placeholder {
  position: absolute; inset: -5%;
  background:
    radial-gradient(60% 80% at 70% 30%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(50% 60% at 20% 70%, rgba(255,255,255,0.05), transparent 60%),
    linear-gradient(160deg, #1c1c1c 0%, #0a0a0a 55%, #0e0e0e 100%);
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.12) translate(-2%, -2%); }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,10,9,0.5) 0%, transparent 30%, transparent 60%, rgba(11,10,9,0.85) 100%);
}

.hero__side {
  position: absolute; top: 50%; z-index: 5;
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--taupe);
  writing-mode: vertical-rl;
}
.hero__side--left { left: clamp(0.5rem, 2vw, 1.5rem); transform: translateY(-50%); }
.hero__side--right { right: clamp(0.5rem, 2vw, 1.5rem); transform: translateY(-50%) rotate(180deg); }

.hero__content { position: relative; z-index: 4; width: 100%; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim);
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.hero__eyebrow-line { width: clamp(2rem, 6vw, 5rem); height: 1px; background: var(--accent); display: inline-block; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 12vw, 12rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.3em;
}
.hero__word { display: inline-block; overflow: hidden; }
.hero__word > * , .hero__word { will-change: transform; }
.hero__word--accent { font-style: italic; color: var(--accent); font-weight: 300; }

.hero__rotator {
  display: inline-block; overflow: hidden; height: 1.15em; position: relative;
  vertical-align: bottom;
}
.hero__rotator-track { display: flex; flex-direction: column; transition: transform 0.9s var(--ease); }
.hero__rotator-track > span { display: block; height: 1.15em; line-height: 1.15; font-style: italic; }

.hero__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  margin-top: clamp(2rem, 6vh, 4rem);
  flex-wrap: wrap;
}
.hero__desc { max-width: 34ch; color: var(--bone-dim); font-size: clamp(0.9rem, 1.1vw, 1.05rem); line-height: 1.65; }
.hero__scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.hero__scroll-text { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); }
.hero__scroll-line { width: 1px; height: 60px; background: linear-gradient(var(--bone), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: -60px; left: 0; width: 1px; height: 60px; background: var(--accent); animation: scrolldown 2s var(--ease) infinite; }
@keyframes scrolldown { 0% { top: -60px; } 60%,100% { top: 60px; } }

.hero__marquee {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  border-top: 1px solid var(--line);
  padding: 0.9rem 0; overflow: hidden; white-space: nowrap;
  display: none;
}
.marquee__track { display: inline-flex; gap: 2rem; align-items: center; animation: marquee 24s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--taupe); }
.marquee__track .dot { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   TIPOGRAFIA DE SEÇÃO
   ============================================================ */
.section-index {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.5rem;
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { padding: clamp(6rem, 16vh, 12rem) var(--pad); }
.manifesto__text {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.8rem, 6vw, 5rem); line-height: 1.08; letter-spacing: -0.015em;
}
.manifesto__text .line { display: block; overflow: hidden; }
.manifesto__text .line--muted { color: var(--taupe); font-style: italic; }

/* ============================================================
   TRANSIÇÃO (scroll fixo / imagem central cresce)
   ============================================================ */
.zoom { position: relative; height: 260vh; }
.zoom__pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center;
  padding: 0 var(--pad);
}
.zoom__side { position: relative; z-index: 1; height: 56vh; overflow: hidden; will-change: transform; }
.zoom__side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zoom__side--left { justify-self: start; width: 90%; }
.zoom__side--right { justify-self: end; width: 90%; }
.zoom__mid {
  position: relative; z-index: 2;
  justify-self: center; align-self: center;
  width: 55%; height: 28vh; overflow: hidden;
  will-change: transform;
}
.zoom__mid img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .zoom { height: 200vh; }
  .zoom__pin {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem; padding: 0 var(--pad);
  }
  .zoom__side, .zoom__side--left, .zoom__side--right { width: 72%; height: 18vh; }
  .zoom__mid { width: 90%; height: 26vh; }
}

@media (prefers-reduced-motion: reduce) {
  .zoom { height: auto; }
  .zoom__pin { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 1rem; padding: 3rem var(--pad); }
  .zoom__side, .zoom__mid { width: 100%; height: 40vh; }
}

/* ============================================================
   GALERIA
   ============================================================ */
.gallery { padding: clamp(2rem, 6vh, 5rem) var(--pad) clamp(6rem, 14vh, 10rem); }
.gallery__head { max-width: 620px; margin-bottom: clamp(3rem, 8vh, 6rem); }
.gallery__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; margin-bottom: 1.5rem; }
.gallery__lead { color: var(--taupe); font-size: 1.02rem; line-height: 1.7; max-width: 44ch; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  grid-auto-flow: dense;
  align-items: start;
}
/* escalonamento assimétrico (mosaico, não grade uniforme) */
.tile:nth-child(2) { margin-top: clamp(2rem, 7vw, 5.5rem); }
.tile:nth-child(4) { margin-top: clamp(1.5rem, 5vw, 3.5rem); }
.tile:nth-child(6) { margin-top: clamp(2rem, 6vw, 4.5rem); }
.tile {
  position: relative; overflow: hidden; grid-column: span 2;
  aspect-ratio: 4 / 5; cursor: pointer;
}
.tile--tall { grid-column: span 3; aspect-ratio: 3 / 4; }
.tile--wide { grid-column: span 4; aspect-ratio: 16 / 10; }
.tile__media {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 28% 22%, rgba(255,255,255,0.08), transparent 62%),
    radial-gradient(70% 90% at 85% 100%, rgba(0,0,0,0.45), transparent 60%),
    var(--g, var(--ink-3));
  will-change: transform;
}
/* textura sutil no placeholder (some quando há foto) */
.tile__media::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06; mix-blend-mode: overlay;
}
.tile__img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
/* moldura editorial fina */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border: 1px solid rgba(255,255,255,0.10);
  transition: border-color 0.5s;
}
.tile:hover::before { border-color: rgba(255,255,255,0.28); }
/* scrim permanente para leitura da legenda */
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(7,6,6,0.72));
  opacity: 0.85; transition: opacity 0.6s;
}
.tile:hover::after { opacity: 1; }
.tile:hover .tile__img { transform: scale(1.06); }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(1rem, 2vw, 1.75rem);
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 0.35rem 1rem;
  opacity: 0.72; transform: translateY(0); transition: opacity 0.6s var(--ease-out);
}
.tile:hover .tile__cap { opacity: 1; }
.tile__num { font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; align-self: center; }
.tile__name { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: 400; line-height: 1; }
.tile__tag { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-dim); align-self: center; }

/* reveal de tiles (clip) */
.tile { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); }
.tile.in { clip-path: inset(0 0 0 0); }

.gallery__more { margin-top: clamp(3rem, 8vh, 5rem); display: flex; justify-content: center; }

/* botão contorno */
.btn-line {
  display: inline-flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.75rem; border: 1px solid var(--line);
  border-radius: 100px; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: border-color 0.4s, color 0.4s;
}
.btn-line svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.btn-line:hover { border-color: var(--bone); }
.btn-line:hover svg { transform: translateY(4px); }
#loadMoreBtn.is-open svg { transform: rotate(180deg); }
#loadMoreBtn.is-open:hover svg { transform: rotate(180deg) translateY(4px); }

/* ============================================================
   FILMES / VÍDEO
   ============================================================ */
.films { padding: clamp(4rem, 10vh, 8rem) 0; background: var(--ink-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.films__head { margin-bottom: clamp(3rem, 7vh, 5rem); padding-inline: var(--pad); }
.films__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.5rem, 8vw, 6rem); line-height: 1; margin-bottom: 1.5rem; }
.films__lead { color: var(--taupe); font-size: 1.02rem; line-height: 1.7; max-width: 46ch; }

/* linhas borda a borda: texto à esquerda, vídeo grande à direita (sem max-width, sem gutter) */
.films__list { display: flex; flex-direction: column; }
.film {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: stretch;
  min-height: clamp(360px, 52vh, 620px);
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.film:last-child { border-bottom: 1px solid var(--line); }
.film__info {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 0.9rem;
  padding: clamp(2rem, 5vw, 4rem) var(--pad);
}
.film__media {
  position: relative; overflow: hidden; min-height: clamp(320px, 50vh, 560px);
  background: var(--g, var(--ink-3));
}
.film__media::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
  transition: opacity 0.6s; opacity: 0;
}
.film:hover .film__media::before { opacity: 1; }
.film__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.6s;
}
.film:hover .film__preview { opacity: 1; }
.film__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
  width: clamp(56px, 6vw, 84px); height: clamp(56px, 6vw, 84px); border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  display: grid; place-items: center; color: var(--bone);
  transition: transform 0.5s var(--ease-out), background 0.5s, color 0.5s; z-index: 2;
  backdrop-filter: blur(2px);
}
.film__play svg { width: 40%; height: 40%; }
.film:hover .film__play { transform: translate(-50%, -50%) scale(1); background: var(--bone); color: var(--ink); }

.film__num { font-size: 0.75rem; letter-spacing: 0.15em; color: var(--accent); }
.film__name {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.05; transition: transform 0.5s var(--ease-out);
}
.film:hover .film__name { transform: translateX(0.5rem); }
.film__desc { color: var(--bone-dim); font-size: 0.98rem; line-height: 1.7; max-width: 40ch; }
.film__meta { color: var(--taupe); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================
   SOBRE
   ============================================================ */
.about {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(6rem, 14vh, 11rem) var(--pad);
}
.about__portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; will-change: transform; }
.about__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--bone);
  mix-blend-mode: difference;
}
.about__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 4.5vw, 3.6rem); line-height: 1.1; margin-bottom: 2rem; }
.about__title em { color: var(--accent); }
.about__text { display: flex; flex-direction: column; gap: 1.25rem; max-width: 60ch; }
.about__text p { color: var(--bone-dim); line-height: 1.75; font-size: 1.02rem; }

/* ============================================================
   CONTATO
   ============================================================ */
.contact { padding: clamp(5rem, 12vh, 9rem) 0; max-width: 1400px; margin: 0 auto; }
.contact__head { margin-bottom: clamp(3rem, 8vh, 5rem); text-align: center; }
.contact__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.8rem, 10vw, 8rem); line-height: 0.98; letter-spacing: -0.02em; }
.contact__title .line { display: block; overflow: hidden; }
.contact__title .line:nth-child(2) { color: var(--taupe); font-style: italic; }

.contact__grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(2.5rem, 6vw, 6rem); }

.contact__form { display: flex; flex-direction: column; gap: 2.25rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: none; border: none; color: var(--bone);
  font-family: var(--font-body); font-size: 1.15rem; padding: 0.5rem 0; resize: none;
}
.field textarea { line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; }
.field label {
  position: absolute; left: 0; top: 0.5rem;
  color: var(--taupe); font-size: 1.15rem; pointer-events: none;
  transition: transform 0.4s var(--ease-out), font-size 0.4s var(--ease-out), color 0.4s;
  transform-origin: left;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.6rem) scale(0.72); color: var(--accent);
}
.field__line { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--line); }
.field__line::after { content: ""; position: absolute; inset: 0; background: var(--bone); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.field input:focus ~ .field__line::after, .field textarea:focus ~ .field__line::after { transform: scaleX(1); }
.field.invalid .field__line { background: rgba(255,255,255,0.55); }

.btn-fill {
  position: relative; align-self: flex-start; overflow: hidden;
  padding: 1.1rem 2.5rem; border-radius: 100px; border: 1px solid var(--bone);
  margin-top: 0.5rem;
}
.btn-fill__text { position: relative; z-index: 2; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.5s; }
.btn-fill__bg { position: absolute; inset: 0; background: var(--bone); transform: translateY(101%); transition: transform 0.5s var(--ease-out); }
.btn-fill:hover .btn-fill__bg { transform: translateY(0); }
.btn-fill:hover .btn-fill__text { color: var(--ink); }
.contact__status { font-size: 0.85rem; color: var(--accent); min-height: 1.2em; letter-spacing: 0.03em; }

.contact__aside { display: flex; flex-direction: column; gap: 2.25rem; }
.contact__block { display: flex; flex-direction: column; gap: 0.5rem; }
.contact__label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); }
.contact__big { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 300; }
.contact__big:hover, .contact__link:hover { color: var(--accent); }
.contact__link { font-size: 1.1rem; }
.contact__social { display: flex; flex-direction: column; gap: 0.35rem; }
.contact__social a { font-size: 1rem; color: var(--bone-dim); width: fit-content; }
.contact__social a:hover { color: var(--bone); }
.contact__addr { color: var(--bone-dim); line-height: 1.6; }

/* ============================================================
   RODAPÉ
   ============================================================ */
.footer { padding: clamp(3rem, 8vh, 5rem) var(--pad) 2rem; border-top: 1px solid var(--line); }
.footer__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: clamp(3rem, 8vh, 5rem); }
.footer__mark { font-family: var(--font-display); font-size: clamp(3.5rem, 16vw, 13rem); font-weight: 300; letter-spacing: 0.02em; line-height: 0.9; }
.footer__mark:hover { color: var(--accent); }
.footer__back { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--taupe); }
.footer__back svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.footer__back:hover { color: var(--bone); }
.footer__back:hover svg { transform: translateY(-4px); }
.footer__bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; letter-spacing: 0.05em; color: var(--taupe); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(6,5,5,0.95); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: clamp(1rem, 5vw, 4rem);
  opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage {
  width: min(100%, 1100px); aspect-ratio: 16 / 9; position: relative;
  transform: scale(0.96); transition: transform 0.6s var(--ease-out);
  background: var(--ink-3); overflow: hidden;
}
.lightbox.is-open .lightbox__stage { transform: scale(1); }
.lightbox__stage iframe, .lightbox__stage img, .lightbox__stage .lb-ph {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover;
}
.lb-ph { display: grid; place-items: center; background: var(--g, var(--ink-3)); color: var(--taupe); font-family: var(--font-display); font-style: italic; font-size: 1.2rem; text-align: center; padding: 2rem; }

/* mini-galeria de fotos (proporção real da imagem, sem cortar em 16:9) */
.lightbox__stage.is-photo { width: auto; height: auto; aspect-ratio: auto; background: none; }
.lightbox__stage.is-photo .lb-img {
  position: static; display: block;
  width: auto; height: auto;
  max-width: min(92vw, 1400px); max-height: 88vh;
  object-fit: contain;
}

/* filme vertical (retrato, formato Reels) */
.lightbox__stage.is-video { width: auto; height: auto; aspect-ratio: auto; background: none; }
.lightbox__stage.is-video video {
  position: static; display: block;
  width: auto; height: auto;
  max-width: min(92vw, 640px); max-height: 88vh;
  object-fit: contain;
}
.lb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10,10,10,0.35); backdrop-filter: blur(4px);
  display: grid; place-items: center; color: var(--bone);
  transition: border-color 0.3s, background 0.3s;
}
.lb-arrow svg { width: 20px; height: 20px; }
.lb-arrow:hover { border-color: var(--bone); background: rgba(10,10,10,0.65); }
.lb-arrow--prev { left: clamp(0.5rem, 3vw, 2rem); }
.lb-arrow--next { right: clamp(0.5rem, 3vw, 2rem); }
.lb-dots { position: fixed; bottom: clamp(1rem, 4vh, 2.5rem); left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 0.6rem; }
.lb-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); background: transparent; padding: 0; transition: background 0.3s, transform 0.3s; }
.lb-dot.is-active { background: var(--bone); transform: scale(1.2); }
.lightbox__close {
  position: absolute; top: clamp(1rem, 3vw, 2.5rem); right: clamp(1rem, 3vw, 2.5rem);
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%;
}
.lightbox__close span { position: absolute; top: 50%; left: 50%; width: 18px; height: 1.5px; background: var(--bone); }
.lightbox__close span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
.lightbox__close span:nth-child(2) { transform: translate(-50%,-50%) rotate(-45deg); }
.lightbox__close:hover { border-color: var(--bone); transform: rotate(90deg); transition: transform 0.5s var(--ease-out); }

/* ============================================================
   REVEAL (base)
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }

/* revelação de linhas (sobe para o lugar a partir da máscara) */
[data-reveal-line] { display: block; transform: translateY(105%); transition: transform 1s var(--ease-out); }
[data-reveal-line].in { transform: translateY(0); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 420px; }
  .contact__grid { grid-template-columns: 1fr; }
  .film { grid-template-columns: 1fr; min-height: 0; }
  .film__media { min-height: clamp(280px, 60vw, 420px); }
}

@media (max-width: 720px) {
  :root { --nav-h: 74px; }
  .nav__sub { display: none; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 2.5rem; }
  .hero__scroll { flex-direction: row; align-items: center; }
  .hero__scroll-line { height: 1px; width: 60px; background: linear-gradient(90deg, var(--bone), transparent); }
  .hero__scroll-line::after { display: none; }
  .hero__side { display: none; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--tall, .tile--wide { grid-column: span 2; aspect-ratio: 4 / 5; }
  .tile__cap { transform: translateY(0); opacity: 1; }
  .contact { padding-inline: var(--pad); }
}

/* ============================================================
   ACESSIBILIDADE - reduzir movimento
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
  [data-reveal], [data-reveal-line] { opacity: 1 !important; transform: none !important; }
}
