:root {
  --bg: #0e0b09;
  --bg-2: #1b1410;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f2efe9;
  --muted: rgba(242, 239, 233, 0.55);
  --orange: #ff8a2b;   /* luz das fotos do ensaio */
  --brown: #6b3418;    /* fundo marrom do ensaio */
  --brown-deep: #241209;
  --sans: "Poppins", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.hl { color: var(--orange); }
::selection { background: var(--orange); color: #1a0d02; }

/* ---------- Placeholders (somem quando entrar foto/vídeo) ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255, 138, 43, 0.16), transparent 60%),
    radial-gradient(90% 90% at 90% 100%, rgba(255, 255, 255, 0.06), transparent 60%),
    var(--bg-2);
  background-size: 200% 200%;
  animation: phShift 12s ease-in-out infinite alternate;
}
.ph--photo {
  background:
    radial-gradient(100% 70% at 70% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(160deg, #1c1c1c, #0f0f0f);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 16px; bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ph--video::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px; height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 60%, rgba(255,255,255,0.03));
  -webkit-mask: none;
}
.ph video, .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--filled { animation: none; background: var(--bg-2); }
.ph--filled::before, .ph--filled::after { display: none; }
@keyframes phShift { to { background-position: 100% 100%; } }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--brown-deep);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter);
}
.loader__count { font-size: clamp(64px, 14vw, 200px); font-weight: 600; line-height: 0.9; letter-spacing: -0.04em; }
.loader__pct { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--orange); }
.loader__logo { width: min(320px, 60vw); height: auto; margin-bottom: auto; opacity: .9; }
.loader__bar { height: 2px; background: var(--line); margin-top: 24px; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--orange); }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 95;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--orange);
  pointer-events: none;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
}
.cursor__label { font-size: 12px; font-weight: 500; opacity: 0; transition: opacity .2s; }
.cursor.is-play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.is-play .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
}
.nav__logo { font-weight: 700; letter-spacing: 0.04em; font-size: 15px; }
.nav__logo img { display: block; height: 15px; width: auto; }
.nav__links { display: flex; gap: 36px; font-size: 14px; }
.nav__links a, .nav__cta { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { font-size: 14px; border: 1px solid currentColor; padding: 9px 18px; border-radius: 99px; }
.nav__cta i, .btn i { font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.nav__cta:hover i, .btn:hover i { transform: translateX(4px); }
.nav__burger { display: none; width: 32px; height: 20px; position: relative; }
.nav__burger span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:first-child { top: 5px; }
.nav__burger span:last-child { top: 14px; }
body.menu-open .nav__burger span:first-child { top: 10px; transform: rotate(45deg); }
body.menu-open .nav__burger span:last-child { top: 10px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
}
.menu a { font-size: clamp(40px, 12vw, 64px); font-weight: 600; letter-spacing: -0.03em; }
body.menu-open .menu { clip-path: inset(0 0 0 0); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { filter: brightness(0.72) saturate(0.95); }
.hero__media.ph::after { left: auto; right: var(--gutter); bottom: 28px; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,11,9,0.35) 0%, rgba(14,11,9,0) 35%, rgba(14,11,9,0.88) 100%); }
.hero__content {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(40px, 7vh, 80px);
}
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.hero__title {
  font-size: clamp(44px, 9.2vw, 152px);
  font-weight: 600; line-height: 0.92; letter-spacing: -0.045em;
}
.hero__title em { font-size: 1.08em; letter-spacing: -0.02em; }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line > span { display: block; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero__sub { max-width: 420px; color: var(--muted); font-size: 15px; }
.hero__scroll {
  position: absolute; right: var(--gutter); top: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
}
.hero__scroll-line { width: 1px; height: 60px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--orange); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border: 1px solid var(--line); border-radius: 99px;
  font-size: 14px; font-weight: 500;
  position: relative; overflow: hidden; isolation: isolate;
  transition: border-color .4s, color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--text); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--text); }
.btn:hover::before { transform: translateY(0); }
.btn--accent { background: var(--orange); border-color: var(--orange); color: #1a0d02; }

/* ---------- Clientes ---------- */
.clients { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; }
.marquee__track { display: flex; gap: 48px; width: max-content; align-items: center; animation: marquee 45s linear infinite; }
.marquee__track span { font-size: clamp(28px, 4vw, 52px); font-weight: 600; letter-spacing: -0.03em; color: var(--muted); transition: color .3s; }
.marquee__track span:hover { color: var(--text); }
.marquee__track b { color: var(--orange); font-size: 18px; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(100px, 18vh, 200px) var(--gutter); }
.manifesto__text {
  font-size: clamp(28px, 4.4vw, 68px);
  font-weight: 500; line-height: 1.12; letter-spacing: -0.03em;
  max-width: 1300px;
}
.manifesto__text .w { opacity: 0.15; }

/* ---------- Cabeçalho de seção ---------- */
.section-head { display: flex; align-items: baseline; gap: 20px; padding: 0 var(--gutter); margin-bottom: 48px; }
.section-head__num { font-size: 13px; color: var(--orange); font-weight: 500; }
.section-head__title { font-size: clamp(36px, 6vw, 96px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }

/* ---------- Trabalhos ---------- */
.work { padding-bottom: clamp(80px, 14vh, 160px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 var(--gutter); margin-bottom: 36px; }
.filter { padding: 9px 18px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; color: var(--muted); transition: all .3s; }
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--orange); border-color: var(--orange); color: #1a0d02; }

.grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 20px);
  padding: 0 var(--gutter);
}
/* quase todo o material é vertical, então os cards são 9:16 */
.card { position: relative; aspect-ratio: 9 / 16; max-width: 100%; cursor: none; outline: none; }
.card:focus-visible .card__media { box-shadow: 0 0 0 2px var(--orange); }
.card.is-hidden { display: none; }
.card__media { background: var(--bg-2); }
.card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; transition: transform .8s var(--ease); }
.card__media::after { transition: opacity .3s; }
.card:hover .card__media { transform: scale(0.97); }
.card__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
  border-radius: 0 0 6px 6px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s, transform .5s var(--ease);
}
.card:hover .card__info { opacity: 1; transform: none; }
.card:hover .card__media::after { opacity: 0; }
.card__info h3 { font-size: 16px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.card__info span { font-size: 12px; color: var(--muted); }
@media (hover: none) { .card__info { opacity: 1; transform: none; } .card__media::after { display: none; } .card { cursor: pointer; } }

/* ---------- Player ---------- */
.player { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.player[hidden] { display: none; }
.player__backdrop { position: absolute; inset: 0; background: rgba(14, 11, 9, 0.92); backdrop-filter: blur(8px); }
.player__box { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: min(1100px, 100%); max-height: 100%; }
.player__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.player__title { font-size: 14px; color: var(--muted); min-width: 0; }
.player__close { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; flex-shrink: 0; transition: background .3s, color .3s; }
.player__close:hover, .player__close:focus-visible { background: var(--text); color: var(--bg); }
.player__video { display: block; max-width: 100%; max-height: calc(100svh - 110px); border-radius: 6px; background: #000; }

/* ---------- Sobre ---------- */
.about { padding-bottom: clamp(80px, 14vh, 160px); }
.about__wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); padding: 0 var(--gutter); align-items: center; }
.about__photos { position: relative; aspect-ratio: 4 / 5; }
.about__photo { position: absolute; overflow: hidden; border-radius: 6px; }
.about__photo .ph { position: absolute; inset: -10% 0; }
.about__photo--main { inset: 0 18% 8% 0; }
.about__photo--small { right: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4; border: 6px solid var(--bg); }
.about__text p { color: var(--muted); font-size: 16px; max-width: 480px; margin-bottom: 18px; }
.about__text .about__lead { color: var(--text); font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; border-top: 1px solid var(--line); padding-top: 28px; }
.stat strong { display: block; font-size: clamp(36px, 4vw, 60px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat strong::before { content: "+"; color: var(--orange); font-weight: 400; }
.stat:last-child strong::before { content: ""; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Faixa do ensaio ---------- */

/* ---------- Serviços ---------- */
.services { padding-bottom: clamp(80px, 14vh, 160px); }
.service-list { list-style: none; margin: 0 var(--gutter); border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid; grid-template-columns: 60px 1fr 1fr 40px; align-items: center; gap: 24px;
  padding: clamp(24px, 3.5vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate; overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brown); transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease);
}
.service:hover::before { transform: scaleY(1); }
.service__n { font-size: 13px; color: var(--orange); transition: color .3s; padding-left: 8px; }
.service:hover .service__n { color: #fff; }
.service h3 { font-size: clamp(28px, 4vw, 60px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; transition: transform .6s var(--ease); }
.service:hover h3 { transform: translateX(14px); }
.service p { color: var(--muted); font-size: 15px; max-width: 380px; transition: color .3s; }
.service:hover p { color: rgba(255,255,255,.85); }
.service__arrow { font-size: 26px; transition: transform .5s var(--ease); }
.service:hover .service__arrow { transform: rotate(45deg); }

/* ---------- Contato ---------- */
.contact { padding: clamp(80px, 14vh, 160px) var(--gutter); border-top: 1px solid var(--line); }
.contact__big { display: block; font-size: clamp(64px, 16vw, 260px); font-weight: 600; line-height: 0.88; letter-spacing: -0.055em; margin-bottom: 48px; }
.contact__big em { font-size: 1.05em; letter-spacing: -0.02em; }
.contact__links { display: flex; gap: 12px; flex-wrap: wrap; }
.contact__area { margin-top: 28px; font-size: 14px; color: var(--muted); }

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px var(--gutter); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer a:hover { color: var(--text); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero__scroll { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .about__wrap { grid-template-columns: 1fr; }
  .service { grid-template-columns: 40px 1fr 30px; }
  .service p { grid-column: 2 / 3; }
  .service__arrow { grid-row: 1; grid-column: 3; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card__info { padding: 10px; }
  .card__info h3 { font-size: 14px; }
  .card__info span { font-size: 11px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:last-child { grid-column: span 2; }
  .contact__links .btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
