:root {
  --bg: #000;
  --text: #fff;
  --muted: #9a9a9a;
  --accent: #eef36f;
  --menu-h: 56px;
  --gap: 4px;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--menu-h); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Menu fixo ---------- */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--menu-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent);
  transition: background .3s;
}
.menu.is-solid { background: var(--bg); }
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity .2s;
}
.logo img {
  display: block;
  height: 18px;
  width: auto;
}
.logo:hover { opacity: .8; }
.menu nav { display: flex; gap: 22px; }
.menu nav a {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  opacity: .85;
  transition: opacity .2s, color .2s;
}
.menu nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}
.menu nav a:hover { opacity: 1; color: var(--accent); }
.menu nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Banner (vídeo de fundo em tela cheia) ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  background: #0b1018 radial-gradient(ellipse at 70% 40%, #1c2635 0%, #0b1018 70%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 16s cubic-bezier(.2,.6,.2,1) both;
}
@keyframes hero-zoom {
  from { transform: scale(1.14); }
  to   { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, .35);
  pointer-events: none;
}
/* Título e subtítulo centralizados por cima do vídeo */
.hero-text {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  will-change: transform, opacity;
}
.hero-text h1 { animation: hero-in 1.3s cubic-bezier(.2,.7,.2,1) .25s both; }
.hero-text p  { animation: hero-in 1.3s cubic-bezier(.2,.7,.2,1) .65s both; }
.hero-text h1 {
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-text p {
  margin-top: 22px;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 400;
  max-width: 46ch;
  text-wrap: balance;
  opacity: .9;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
}

/* linha fina no pé do banner, convidando a rolar */
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 56px;
  margin-left: -.5px;
  background: rgba(255,255,255,.25);
  overflow: hidden;
  animation: fade-in 1s ease 1.4s both;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 22px;
  background: #fff;
  animation: cue 1.9s cubic-bezier(.6,0,.3,1) infinite;
}
@keyframes cue {
  from { top: -22px; }
  to   { top: 56px; }
}
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Efeito de entrada ao rolar (fade-in de baixo para cima) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 1s cubic-bezier(.2,.7,.2,1) var(--d, 0ms),
    transform 1s cubic-bezier(.2,.7,.2,1) var(--d, 0ms);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Grade de vídeos ---------- */
.work { padding: 0 8px 8px; }

/* Frase de impacto entre o banner e os vídeos */
.intro {
  padding: 92px 20px 78px;
  text-align: center;
}
.intro h2 {
  font-weight: 300;
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto;
  text-wrap: balance;
}
.intro-link {
  display: inline-block;
  text-wrap: balance;
  margin-top: 26px;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--muted);
  transition: color .25s;
}
.intro-link span {
  display: inline-block;
  margin-left: 6px;
  color: var(--accent);
  animation: nudge 1.8s ease-in-out infinite;
}
.intro-link:hover { color: var(--text); }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
/* Vídeos horizontais: duas colunas */
.grid {
  display: flex;
  gap: var(--gap);
  align-items: stretch;
}
.col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.col .tile { flex: 1 0 auto; }

/* Vídeos verticais: fileira embaixo dos horizontais, em formato de celular (9:16) */
.grid-vertical {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}
.grid-vertical:empty { display: none; }

/* Última fileira: horizontais em 2 colunas, embaixo dos verticais */
.grid-final {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}
.grid-final:empty { display: none; }
/* dois verticais lado a lado ocupando o espaço de um horizontal */
.final-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  aspect-ratio: 16 / 9;
}
.final-pair .tile.vertical { aspect-ratio: auto; height: 100%; }
.tile.vertical { aspect-ratio: 9 / 16; }
.tile.vertical .caption strong { font-size: 16px; }

.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111 center / cover no-repeat;
}
/* botão invisível que cobre a miniatura inteira (é nele que se clica para assistir) */
.tile-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  background: none;
}
.tile video.thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s;
}
.tile.previewing video.thumb { opacity: 1; }
/* cópia da capa que aproxima ao passar o mouse */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.tile:hover::before,
.tile:hover video.thumb { transform: scale(1.06); }
.tile video.thumb { transition: opacity .4s, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .35s;
}
.tile:hover::after,
.tile:focus-within::after { background: rgba(0,0,0,.45); }

/* pequeno ícone de play no centro, discreto como na referência */
.tile .play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1.5px solid rgba(255,255,255,.75);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .35s, border-color .35s;
}
.tile .play svg { width: 8px; height: 8px; margin-left: 1px; fill: rgba(255,255,255,.85); }
.tile:hover .play { transform: scale(2.2); border-color: #fff; }

.tile .caption {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.tile:hover .caption,
.tile:focus-within .caption { opacity: 1; transform: none; }
.caption strong { display: block; font-size: 18px; font-weight: 500; line-height: 1.3; }
.caption span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #ddd; }

.tile .placeholder-note {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 16px;
  font-size: 11px;
  background: rgba(0,0,0,.5);
  padding: 4px 10px;
  border-radius: 99px;
}

/* ---------- Vídeo tocando dentro da miniatura ---------- */
.tile.is-playing { background-image: none !important; background-color: #000; }
.tile.is-playing::after { display: none; }
/* fundo desfocado atrás dos vídeos verticais, para não sobrar faixa preta */
.blur-bg {
  position: absolute;
  inset: -40px;
  background: center / cover no-repeat;
  filter: blur(30px) brightness(.45);
}
.tile.is-playing .player { background: transparent; }
.tile .player,
.tile iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 36px 12px 8px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  opacity: 0;
  transition: opacity .3s;
}
.tile.show-controls .controls,
.tile.is-paused .controls,
.tile:focus-within .controls { opacity: 1; }
.tile.is-playing:not(.show-controls):not(.is-paused) { cursor: none; }

.c-btn {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  display: grid;
  place-items: center;
  transition: background .2s, color .2s;
}
.c-btn:hover { background: rgba(255,255,255,.12); color: var(--accent); }
.c-btn svg { width: 20px; height: 20px; }
.c-time {
  flex: none;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #ddd;
  margin: 0 4px;
}
.controls input[type="range"] {
  accent-color: var(--accent);
  height: 4px;
  cursor: pointer;
}
.c-seek { flex: 1; min-width: 40px; }
.c-vol { display: flex; align-items: center; }
.c-volume {
  width: 0;
  opacity: 0;
  transition: width .25s, opacity .25s;
}
.c-vol:hover .c-volume,
.c-vol:focus-within .c-volume { width: 80px; opacity: 1; margin-right: 6px; }

/* em tela cheia o vídeo ocupa a tela toda */
.tile:fullscreen { aspect-ratio: auto !important; width: 100%; height: 100%; }
.tile:-webkit-full-screen { aspect-ratio: auto !important; width: 100%; height: 100%; }
.tile:fullscreen .controls { padding: 60px 24px 18px; }

/* ---------- Sobre ---------- */
.about {
  padding: 120px 20px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.about > h2 { margin-bottom: 28px; }
.about h2,
.contact h2 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.about-text p {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 300;
  line-height: 1.35;
  text-wrap: balance;
}
.about-text p + p { margin-top: 24px; color: #bdbdbd; }

/* Etapas de criação */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
  margin-top: 48px;
}
.steps li {
  border-top: 1px solid #2a2a2a;
  padding-top: 20px;
}
.step-num {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent);
}
.steps h3 {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 500;
}
.about-text .steps p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--muted);
}

/* Botão de contato (CTA) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  padding: 18px 30px;
  background: var(--accent);
  color: #000;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  transition: background .25s, color .25s, transform .25s;
}
.btn-cta span { transition: transform .25s; }
.btn-cta:hover { background: #fff; transform: translateY(-2px); }
.btn-cta:hover span { transform: translateX(4px); }
.btn-cta:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ---------- Contato / rodapé ---------- */
.contact {
  padding: 100px 20px 28px;
  border-top: 1px solid #222;
}
.contact h2 { color: var(--muted); }
.mail {
  display: inline-block;
  margin-top: 16px;
  font-size: clamp(20px, 2.8vw, 40px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  word-break: break-word;
  transition: color .2s;
}
.mail:hover { color: var(--accent); }
.footer-row {
  margin-top: 100px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.socials { display: flex; gap: 22px; }
.socials a:hover { color: var(--accent); }
.copy { color: var(--muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 700px) {
  :root { --menu-h: 52px; }
  .menu { padding: 0 16px; }
  .menu nav { gap: 14px; }
  .menu nav a { font-size: 11px; }
  .logo img { height: 11px; }
  .work { padding-left: 0; padding-right: 0; }
  .intro { padding: 64px 16px 52px; }
  /* no celular vira uma coluna só, na ordem original */
  .grid { flex-direction: column; align-items: stretch; }
  .col { display: contents; }
  .grid-vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-final { grid-template-columns: 1fr; }
  .final-pair { aspect-ratio: auto; }
  .final-pair .tile.vertical { aspect-ratio: 9 / 16; height: auto; }
  .tile.vertical .caption { left: 10px; right: 10px; }
  .tile.vertical .caption strong { font-size: 13px; }
  /* no celular não existe "passar o mouse", então a legenda fica sempre visível */
  .tile::after { background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.6)); }
  .tile .caption { opacity: 1; transform: none; left: 16px; bottom: 12px; }
  .caption strong { font-size: 15px; }
  .about { padding: 80px 16px; }
  .about > h2 { margin-bottom: 20px; }
  .steps { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
  .contact { padding: 70px 16px 24px; }
  .mail { font-size: clamp(15px, 4.2vw, 20px); }
  .footer-row { margin-top: 60px; }
  .c-time { display: none; }
  .c-vol:hover .c-volume,
  .c-vol:focus-within .c-volume { width: 0; opacity: 0; } /* no celular o volume é pelo botão do aparelho */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-text h1, .hero-text p, .hero-video, .scroll-cue, .scroll-cue::after,
  .intro-link span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
