:root {
  --bg: #0c0a08;
  --paper: #f2ede3;
  --muted: #8a847a;
  --line: rgba(242, 237, 227, .12);
  --soft: rgba(242, 237, 227, .05);
  --accent: #c9a876;         /* Âmbar quente — luz de tungstênio */
  --accent-deep: #8a6b3f;
  --film-strip: #141210;
  --max: 1380px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

/* ==== Fonte mono pra reforçar estética técnica/analógica ==== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  /* Textura de grão global — mais visível que antes */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(201, 168, 118, .04) 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(201, 168, 118, .03) 0%, transparent 40%);
}

body.locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }

/* ============================================================
   PRELOADER — "FILME ENTRANDO NA CÂMERA"
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: #050403;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  transition: opacity 1s ease, visibility 1s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Rolo de filme passando */
.preloader-strip {
  position: relative;
  width: min(80vw, 720px);
  height: 90px;
  background: #0f0d0b;
  border-top: 1px solid rgba(201, 168, 118, .25);
  border-bottom: 1px solid rgba(201, 168, 118, .25);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Perfurações do filme (buracos retangulares) */
.preloader-strip::before,
.preloader-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 14px,
    #050403 14px 26px
  );
  background-size: 26px 12px;
}
.preloader-strip::before { top: 6px; }
.preloader-strip::after { bottom: 6px; }

/* Fotogramas que passam dentro do rolo */
.preloader-frames {
  display: flex;
  gap: 4px;
  padding: 0 30px;
  animation: filmRoll 3s linear infinite;
  white-space: nowrap;
}

.preloader-frame {
  flex: 0 0 auto;
  width: 110px;
  height: 60px;
  background: linear-gradient(135deg, #1a1614 0%, #0a0807 100%);
  border: 1px solid rgba(201, 168, 118, .12);
  position: relative;
}

.preloader-frame::after {
  content: attr(data-num);
  position: absolute;
  top: 4px;
  left: 6px;
  font-family: var(--mono);
  font-size: 8px;
  color: rgba(201, 168, 118, .4);
}

@keyframes filmRoll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.preloader-meta {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
}

.preloader-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--paper);
  margin-bottom: 12px;
  font-style: italic;
}

.preloader-counter {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

/* ============================================================
   CURSOR — ANEL DE FOCO (DSLR)
   ============================================================ */
.camera-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  border: 1px solid rgba(242, 237, 227, .55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1500;
  mix-blend-mode: difference;
  transition: width .3s ease, height .3s ease, margin .3s ease, border-color .3s;
  display: none;
}

.camera-cursor::before,
.camera-cursor::after,
.camera-cursor .cross-v,
.camera-cursor .cross-h {
  content: "";
  position: absolute;
  background: rgba(242, 237, 227, .7);
}
.camera-cursor::before,
.camera-cursor .cross-h { height: 1px; width: 10px; top: 50%; }
.camera-cursor::after,
.camera-cursor .cross-v { width: 1px; height: 10px; left: 50%; }
.camera-cursor::before { left: -14px; }
.camera-cursor::after { top: -14px; }
.camera-cursor .cross-h { right: -14px; }
.camera-cursor .cross-v { bottom: -14px; }

.camera-cursor.focused {
  width: 90px; height: 90px;
  margin: -45px 0 0 -45px;
  border-color: var(--accent);
}

@media (pointer: fine) {
  .camera-cursor { display: block; }
}

/* ============================================================
   LINHA DE SCROLL — "AVANÇO DE FILME"
   ============================================================ */
.scroll-line {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, .05);
  z-index: 1100;
}
.scroll-line span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--paper));
  box-shadow: 0 0 12px rgba(201, 168, 118, .5);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 82px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 64px);
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
  transition: background .4s ease, backdrop-filter .4s ease;
}

.site-header.scrolled {
  background: rgba(12, 10, 8, .78);
  backdrop-filter: blur(14px);
  text-shadow: none;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: .04em;
}

.logo span {
  width: 35px; height: 35px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 16px;
  transition: border-color .3s;
}
.logo:hover span { border-color: var(--accent); color: var(--accent); }

.logo b { font-weight: 500; }

.site-nav {
  display: flex;
  gap: 30px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.site-nav a { color: #fff; transition: opacity .25s, color .25s; }
.site-nav a:hover { color: var(--accent); }

.header-cta {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  border: 1px solid rgba(255, 255, 255, .4);
  padding: 10px 16px;
  border-radius: 2px;
  transition: all .3s ease;
}
.header-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(201, 168, 118, .08);
}
.header-cta span { margin-left: 8px; }

.menu-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  height: 100svh;
  min-height: 680px;
  position: relative;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: -4%;
  transform: translateY(var(--parallax, 0));
  will-change: transform;
}

.hero-image {
  height: 100%;
  object-fit: cover;
  /* Tratamento mais analógico */
  filter: grayscale(.15) contrast(1.12) sepia(.12);
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .18) 55%, rgba(0, 0, 0, .32)),
    linear-gradient(0deg, rgba(0, 0, 0, .72), transparent 45%);
}

/* Vinheta tipo lente */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .55) 100%);
}

.hero-top, .hero-bottom {
  position: absolute;
  left: clamp(22px, 4vw, 64px);
  right: clamp(22px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(242, 237, 227, .85);
}

.hero-top { top: 112px; }
.hero-bottom { bottom: 34px; align-items: center; }

/* Contador tipo viewfinder */
.hero-bottom span:last-child {
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: .3em;
}

.scroll-mark { font-size: 18px; }

.hero-title {
  position: absolute;
  left: clamp(22px, 9vw, 150px);
  bottom: 15vh;
  max-width: 800px;
  z-index: 2;
}

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title h1 {
  font-family: var(--serif);
  font-size: clamp(72px, 11vw, 168px);
  font-weight: 400;
  line-height: .77;
  letter-spacing: -.045em;
}
.hero-title h1 em,
.section-heading h2 em,
.process h2 em,
.about h2 em,
.contact h2 em { font-style: italic; }

.hero-intro {
  max-width: 410px;
  margin-top: 38px;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
  border-left: 1px solid var(--accent);
  padding-left: 18px;
}

/* ============================================================
   SEÇÕES
   ============================================================ */
.section-pad { padding: clamp(100px, 12vw, 190px) max(22px, 4vw); }

/* Divisor perfurado de filme */
.film-divider {
  height: 30px;
  width: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 20px,
    var(--line) 20px 22px
  );
  background-size: 22px 8px;
  background-repeat: repeat-x;
  background-position: center;
  position: relative;
  opacity: .6;
}
.film-divider::before {
  content: "FILM / 35MM";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .35em;
  color: var(--muted);
}

.section-index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--accent);
}

.manifesto {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}

.manifesto-copy { max-width: 850px; }

.manifesto-copy h2,
.section-heading h2,
.process h2,
.about h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 94px);
  line-height: .9;
  letter-spacing: -.035em;
}

.manifesto-text {
  max-width: 560px;
  color: var(--muted);
  margin-top: 38px;
  font-size: 17px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  margin-bottom: 70px;
}
.section-heading > p { max-width: 370px; color: var(--muted); font-size: 14px; }

/* ============================================================
   WORK LIST — reescrita com estética de FICHA DE FILME
   ============================================================ */
.work-list { border-top: 1px solid var(--line); }

.work-item {
  display: grid;
  grid-template-columns: 100px minmax(320px, 1.25fr) minmax(260px, .75fr);
  gap: 35px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .4s ease;
}
.work-item:hover {
  background: linear-gradient(90deg, transparent, rgba(201, 168, 118, .04), transparent);
}

.work-number {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: .15em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-image {
  height: 260px;
  overflow: hidden;
  position: relative;
}
.work-image img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(.35) contrast(1.05);
  transition: transform .9s cubic-bezier(.2, .65, .2, 1), filter .5s;
}
.work-item:hover .work-image img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.1) sepia(.05);
}

.work-info span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
}
.work-info h3 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 57px);
  font-weight: 400;
  line-height: .9;
  margin: 18px 0;
}
.work-info p { font-size: 13px; color: var(--muted); }
.work-info b {
  display: inline-block;
  margin-top: 35px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  padding-bottom: 5px;
}
.work-info b i { font-style: normal; margin-left: 8px; }

/* ============================================================
   GALERIA HORIZONTAL
   ============================================================ */
.gallery-section { padding-right: 0; overflow: hidden; }
.gallery-heading { padding-right: max(22px, 4vw); }

.horizontal-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-right: max(22px, 4vw);
  padding-bottom: 20px;
  scrollbar-width: none;
  cursor: grab;
}
.horizontal-gallery:active { cursor: grabbing; }
.horizontal-gallery::-webkit-scrollbar { display: none; }

/* Moldura de cada foto — parece um slide de filme */
.gallery-frame {
  position: relative;
  flex: 0 0 clamp(280px, 29vw, 480px);
  height: 570px;
  overflow: hidden;
  padding: 14px;
  background: var(--film-strip);
  border: 1px solid rgba(201, 168, 118, .15);
}
.gallery-frame-wide { flex-basis: clamp(450px, 48vw, 780px); }
.gallery-frame-tall { height: 620px; }

.gallery-frame img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(.3) contrast(1.06) sepia(.08);
  transition: transform .9s cubic-bezier(.2, .65, .2, 1), filter .6s;
}
.gallery-frame:hover img {
  transform: scale(1.03);
  filter: grayscale(0) contrast(1.1);
}

.gallery-frame figcaption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--paper);
  text-shadow: 0 2px 12px #000;
  background: rgba(0, 0, 0, .5);
  padding: 4px 8px;
  border: 1px solid rgba(201, 168, 118, .3);
}

.gallery-end {
  flex: 0 0 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
}
.gallery-end strong { font-size: 32px; font-weight: 400; color: var(--accent); }

/* ============================================================
   PROCESSO
   ============================================================ */
.process {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  margin-top: 75px;
}
.process-copy { max-width: 550px; }
.process-copy p { color: var(--muted); margin-top: 30px; max-width: 430px; }

.process-steps { border-top: 1px solid var(--line); }
.process-steps article {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s ease;
}
.process-steps article:hover { padding-left: 12px; }

.process-steps article span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .15em;
}
.process-steps h3 {
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 400;
  line-height: 1;
}
.process-steps p {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  max-width: 390px;
  margin-top: -5px;
}

/* ============================================================
   SOBRE
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, .9fr);
  gap: 9vw;
  align-items: center;
}
.about-image {
  overflow: hidden;
  transform: translateY(var(--parallax, 0));
  position: relative;
  padding: 14px;
  background: var(--film-strip);
  border: 1px solid rgba(201, 168, 118, .15);
}
.about-image img {
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(.25) contrast(1.05);
}
.about-copy > p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin: 35px 0 45px;
  max-width: 570px;
}
.about-meta {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 18px;
  gap: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ============================================================
   CONTATO — invertido, papel fotográfico
   ============================================================ */
.contact {
  min-height: 80vh;
  background: #ede8dd;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
/* Grão sobre o papel */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.contact .eyebrow { color: var(--accent-deep); }

.contact-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: #666;
}

.contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(70px, 10vw, 150px);
  line-height: .78;
  letter-spacing: -.05em;
}

.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}
.contact-bottom p { color: #666; font-size: 14px; }

.contact-link {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  border-bottom: 1px solid #111;
  padding-bottom: 8px;
  transition: color .3s, border-color .3s;
}
.contact-link:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
.contact-link span { margin-left: 12px; }

.contact-details {
  display: flex;
  gap: 30px;
  border-top: 1px solid rgba(0, 0, 0, .18);
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #666;
}
.contact-details a:hover { color: #111; }

footer {
  padding: 28px max(22px, 4vw);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #666;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  border-top: 1px solid var(--line);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 3, .97);
  z-index: 2000;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  grid-template-rows: 1fr 50px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox-media {
  width: min(88vw, 1250px);
  height: 82vh;
  margin: auto;
  display: grid;
  place-items: center;
}
.lightbox-media img { width: 100%; height: 100%; object-fit: contain; }

.lightbox button {
  font-size: 28px;
  color: #bbb;
  cursor: pointer;
  height: 100%;
  transition: color .3s;
}
.lightbox button:hover { color: var(--accent); }

.lightbox-close {
  position: absolute;
  right: 25px;
  top: 18px !important;
  height: auto !important;
  font-size: 36px !important;
}

.lightbox-caption {
  grid-column: 2;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
}

/* ============================================================
   REVEAL — "REVELAÇÃO FOTOGRÁFICA"
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .65, .2, 1), filter 1.1s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ============================================================
   PÁGINAS INTERNAS — PROJETOS
   ============================================================ */
.inner-main { padding-top: 82px; }

/* Intro do projeto */
.project-intro,
.inner-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding-bottom: 100px;
  max-width: 1000px;
}

.project-intro h1,
.inner-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(80px, 12vw, 180px);
  line-height: .78;
  letter-spacing: -.05em;
}
.project-intro h1 em,
.inner-hero h1 em { font-style: italic; }

.project-intro p,
.inner-hero p {
  margin-top: 35px;
  color: var(--muted);
  max-width: 470px;
  font-size: 15px;
}

/* Imagem hero do projeto — MOLDURA DE FILME */
.project-hero-image {
  margin: 0 max(22px, 4vw);
  height: min(80vh, 900px);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  padding: 16px;
  background: var(--film-strip);
  border: 1px solid rgba(201, 168, 118, .15);
  transition: border-color .4s ease;
}
.project-hero-image:hover { border-color: rgba(201, 168, 118, .4); }

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.15) contrast(1.08) sepia(.06);
  transition: transform 1s cubic-bezier(.2, .65, .2, 1), filter .6s ease;
}
.project-hero-image:hover img {
  transform: scale(1.02);
  filter: grayscale(0) contrast(1.1);
}

/* Etiqueta de filme */
.project-hero-image::after {
  content: "◆ 35MM — SESSION";
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(5, 4, 3, .75);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border: 1px solid rgba(201, 168, 118, .35);
  pointer-events: none;
}

/* Nota do projeto (descrição) */
.project-note {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.project-note > span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--accent);
  padding-top: 12px;
}

.project-note p {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.05;
  max-width: 900px;
  color: var(--paper);
  font-style: italic;
  letter-spacing: -.02em;
}

/* Galeria do projeto (grid) */
.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 max(22px, 4vw);
  padding-top: clamp(60px, 8vw, 110px);
}

.project-gallery figure {
  height: 620px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  padding: 12px;
  background: var(--film-strip);
  border: 1px solid rgba(201, 168, 118, .12);
  transition: border-color .4s ease;
}
.project-gallery figure:hover { border-color: rgba(201, 168, 118, .4); }

.project-gallery figure.wide {
  grid-column: 1 / -1;
  height: 85vh;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.06) sepia(.05);
  transition: transform .9s cubic-bezier(.2, .65, .2, 1), filter .6s ease;
}
.project-gallery figure:hover img {
  transform: scale(1.03);
  filter: grayscale(0) contrast(1.1);
}

/* Legenda FRAME 01, 02... */
.project-gallery figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(5, 4, 3, .7);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border: 1px solid rgba(201, 168, 118, .3);
  pointer-events: none;
}

/* Link de voltar */
.back-link { padding: 110px max(22px, 4vw); }
.back-link a {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  padding-bottom: 7px;
  transition: color .3s ease, border-color .3s ease;
}
.back-link a:hover {
  color: var(--paper);
  border-color: var(--paper);
}

/* Masonry gallery (usada em algumas páginas) */
.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  padding-top: 0;
}

.masonry-gallery figure {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.masonry-gallery figure:nth-child(3n+1) { grid-column: span 5; }
.masonry-gallery figure:nth-child(3n+2) { grid-column: span 3; }
.masonry-gallery figure:nth-child(4n)   { grid-column: span 4; }

.masonry-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.06);
  transition: transform .8s ease, filter .5s ease;
}
.masonry-gallery figure:hover img {
  transform: scale(1.03);
  filter: grayscale(0) contrast(1.1);
}

.masonry-gallery figcaption {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(5, 4, 3, .65);
  padding: 4px 8px;
  border: 1px solid rgba(201, 168, 118, .3);
}

/* ============================================================
   RESPONSIVO — GERAL
   ============================================================ */
@media (max-width: 900px) {
  /* ===== NAV MOBILE ===== */
  .site-nav { display: none; }
  .site-nav.open {
    position: absolute;
    top: 70px;
    left: 15px; right: 15px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    background: rgba(12, 10, 8, .97);
    border: 1px solid var(--line);
  }
  .site-nav.open a { padding: 13px 0; border-bottom: 1px solid var(--line); }

  /* ===== HEADER — CORREÇÃO DO BUG ===== */
  .site-header {
    gap: 12px;
  }

  .header-cta {
    font-size: 10px;
    padding: 8px 12px;
    margin-left: auto;
    margin-right: 56px; /* reserva espaço pro hambúrguer */
  }

  .menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    width: 23px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .55);
  }

  /* ===== LAYOUTS ===== */
  .manifesto, .process-layout, .about { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }

  .work-item { grid-template-columns: 40px 1fr; gap: 15px; }
  .work-number {
    writing-mode: horizontal-tb;
    transform: none;
    align-self: start;
    padding-top: 6px;
  }
  .work-image { grid-column: 2; height: 280px; }
  .work-info { grid-column: 2; }

  .about { gap: 55px; }
  .contact-bottom { align-items: start; flex-direction: column; }
  .contact-details { flex-wrap: wrap; }

  /* ===== PÁGINAS INTERNAS MOBILE ===== */
  .project-gallery figure { height: 450px; }
}

@media (max-width: 600px) {
  .site-header {
    height: 70px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .logo b { display: none; }

  .header-cta {
    margin-right: 52px; /* espaço pro hambúrguer */
    padding: 7px 10px;
    font-size: 9px;
  }

  .menu-toggle {
    right: 22px;
  }

  .hero { min-height: 620px; }
  .hero-top { top: 90px; font-size: 8px; }
  .hero-top span:last-child { display: none; }
  .hero-bottom { font-size: 8px; }
  .hero-title { bottom: 18vh; }
  .hero-intro { font-size: 12px; max-width: 300px; }

  .section-pad { padding-top: 90px; padding-bottom: 90px; }

  .manifesto-copy h2,
  .section-heading h2,
  .process h2,
  .about h2 { font-size: 54px; }

  .work-image { height: 230px; }

  .gallery-frame { flex-basis: 78vw; height: 500px; }
  .gallery-frame-wide { flex-basis: 115vw; }

  .about-meta { grid-template-columns: 1fr; }
  .contact { min-height: 90vh; }
  .contact h2 { font-size: 70px; }
  .contact-details { flex-direction: column; gap: 12px; }

  .preloader-meta strong { font-size: 32px; }

  /* ===== PÁGINAS INTERNAS — MOBILE ===== */
  .project-intro,
  .inner-hero {
    min-height: 60vh;
    padding-bottom: 70px;
  }

  .project-intro h1,
  .inner-hero h1 { font-size: 72px; }

  .project-hero-image {
    height: 60vh;
    margin: 0 16px;
    padding: 10px;
  }

  .project-hero-image::after {
    top: 16px;
    right: 16px;
    font-size: 8px;
    padding: 4px 8px;
  }

  .project-note {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-note p { font-size: 26px; }

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 16px;
    padding-top: 60px;
  }
  .project-gallery figure {
    height: 70vh;
    padding: 10px;
  }
  .project-gallery figure.wide { height: 70vh; }
  .project-gallery figcaption {
    left: 18px;
    bottom: 18px;
    font-size: 8px;
  }

  .masonry-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .masonry-gallery figure,
  .masonry-gallery figure:nth-child(n) {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .gallery-frame img, .work-image img { transition: none; }
  .hero-image-wrap, .about-image { transform: none !important; }
  .preloader-frames { animation: none; }
}