:root {
  --ink: #0f2429;
  --ink-2: #163239;
  --line: #2b474e;
  --bone: #e8e5dd;
  --soft: #c9d1cf;
  --mute: #9fb2b4;
  --tungsten: #f2a33a;
  --daylight: #8db9e0;
  --accent: var(--tungsten);
  --accent-ink: #0f2429;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

html[data-temp="daylight"] {
  --accent: var(--daylight);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* Logo girando */
.logo {
  width: 1.7rem;
  height: 1.7rem;
  flex: none;
  fill: var(--accent);
  animation: spin 16s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Cabeçalho */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.9rem var(--pad);
  background: rgba(15, 36, 41, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 1.5rem;
}

.top nav a {
  color: var(--mute);
  font-size: 0.975rem;
  text-decoration: none;
}

.top nav a:hover {
  color: var(--bone);
}

.temp {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.temp:hover {
  border-color: var(--accent);
}

.temp-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Abertura */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 4.5rem);
  min-height: calc(100svh - 4.5rem);
  margin: 0 var(--pad);
  padding: clamp(4rem, 9vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.vf {
  position: absolute;
  width: clamp(18px, 3vw, 32px);
  aspect-ratio: 1;
  border: 0 solid rgba(232, 229, 221, 0.5);
  pointer-events: none;
}

.vf-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.rec {
  position: absolute;
  top: clamp(1.1rem, 3vw, 2rem);
  right: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.rec-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}

.hero-name {
  font-size: clamp(4.5rem, 21vw, 17rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.045em;
}

.hero-name .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-name .line > span {
  display: block;
  transform: translateY(105%);
  animation: rise 0.95s cubic-bezier(0.2, 0.7, 0.1, 1) forwards;
}

.hero-name .line-2 {
  padding-left: 0;
}

.hero-name .line-2 > span {
  animation-delay: 0.12s;
}

.hero-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-sub {
  margin-top: 0.9rem;
  color: var(--soft);
  font-size: clamp(1.05rem, 1.8vw, 1.375rem);
  line-height: 1.35;
}

.cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.cta:hover {
  filter: brightness(1.08);
}

@keyframes rise {
  to { transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Seções */
.sec {
  padding: clamp(4rem, 10vw, 8rem) var(--pad);
}

.sec h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Trabalhos */
.work-intro {
  max-width: 52ch;
  margin-top: 1rem;
  color: var(--mute);
}

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 clamp(2rem, 5vw, 3.5rem);
}

.formats a {
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mute);
  font-size: 0.9375rem;
  text-decoration: none;
}

.formats a:hover {
  border-color: var(--mute);
  color: var(--bone);
}

.format {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
}

.format-head h3 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.format-head p {
  max-width: 30ch;
  margin-top: 0.6rem;
  color: var(--mute);
  font-size: 0.975rem;
  line-height: 1.5;
}

.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-item h4 {
  margin-top: 0.8rem;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.work-item .brand {
  margin-top: 0.25rem;
  color: var(--mute);
  font-size: 0.95rem;
}

.empty {
  color: var(--mute);
}

.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink-2);
}

.frame--bars::before,
.frame--bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 7%;
  background: #081518;
}

.frame--bars::before { top: 0; }
.frame--bars::after { bottom: 0; }

.frame-note,
.frame-tc {
  position: absolute;
  bottom: 0.95rem;
  z-index: 1;
  color: rgba(232, 229, 221, 0.88);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.frame-note { left: 1rem; }
.frame-tc { right: 1rem; }

.g1 { background: radial-gradient(60% 90% at 80% 25%, rgba(242, 163, 58, 0.6), transparent 60%), linear-gradient(120deg, #1d5560, #0f2429 70%); }
.g4 { background: radial-gradient(60% 80% at 20% 30%, rgba(141, 185, 224, 0.55), transparent 60%), radial-gradient(40% 60% at 85% 80%, rgba(242, 163, 58, 0.45), transparent 60%), linear-gradient(90deg, #14333a, #0f2429); }

.more {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.more .logo {
  width: 2.75rem;
  height: 2.75rem;
}

.more-text {
  display: flex;
  flex-direction: column;
}

.more-text strong {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  letter-spacing: -0.01em;
}

.more-text span {
  color: var(--mute);
  font-size: 0.975rem;
}

.more:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

/* Faixa de marcas */
.band {
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.band:hover .band-track {
  animation-play-state: paused;
}

.band-list {
  display: flex;
  align-items: center;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.band-list li {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.band-list .logo {
  width: 0.55em;
  height: 0.55em;
  margin: 0 clamp(1.25rem, 3vw, 2.5rem);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Quem sou eu */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
}

.portrait {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: clamp(1rem, 2.5vw, 1.5rem);
  background: var(--ink-2);
}

.about .about-title {
  color: var(--accent);
  font-size: clamp(2.5rem, 6.5vw, 5.75rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.about-title span {
  display: block;
}

.about-title .logo {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-left: 0.15em;
  vertical-align: -0.02em;
}

.about-text p {
  max-width: 46ch;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  color: var(--soft);
  font-size: 1.125rem;
}

/* Contato */
.contact {
  background: var(--ink-2);
}

.contact h2 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  line-height: 0.98;
}

.contact-text {
  max-width: 48ch;
  margin-top: 1.5rem;
  color: var(--mute);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.links a {
  display: inline-flex;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.links a:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.soon {
  margin-top: 2rem;
  color: var(--mute);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.5rem var(--pad);
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.9rem;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--bone);
}

/* Telas menores */
@media (max-width: 860px) {
  .format,
  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .format-head p {
    max-width: 52ch;
  }
}

@media (max-width: 720px) {
  .top {
    flex-wrap: wrap;
  }

  .top nav {
    order: 3;
    width: 100%;
    gap: 1.25rem;
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .hero-name .line-2 {
    padding-left: 0;
  }

  .works {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-name .line > span {
    transform: none;
    animation: none;
  }

  .rec-dot,
  .logo {
    animation: none;
  }
}

/* Foto do retrato */
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

/* Faixa de marcas sem movimento */
@media (prefers-reduced-motion: reduce) {
  .band-track {
    width: auto;
    padding: 0 var(--pad);
    animation: none;
  }

  .band-list {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .band-list + .band-list {
    display: none;
  }
}

/* Foto à direita */
.portrait {
  justify-self: end;
}

@media (max-width: 860px) {
  .portrait {
    justify-self: start;
  }
}

/* Quem sou eu: linha em destaque */
.about-text .lead {
  max-width: none;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Frase da abertura */
.hero-sub span {
  display: block;
}

/* Botão do Instagram */
.more-cta {
  padding-top: clamp(1.75rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.cta .logo {
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.6rem;
  fill: var(--accent-ink);
}

/* Slogan na abertura */
.hero-slogan {
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hero-foot .cta {
  margin-top: 1.75rem;
}

/* Trabalhos com link */
.work-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-link:hover h4 {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.work-link:hover .frame {
  filter: brightness(1.12);
}

.g2 { background: radial-gradient(70% 80% at 25% 70%, rgba(141, 185, 224, 0.5), transparent 60%), linear-gradient(200deg, #2a3f55, #0f2429 75%); }
.g3 { background: radial-gradient(50% 70% at 70% 60%, rgba(242, 163, 58, 0.5), transparent 65%), linear-gradient(160deg, #3b2d2a, #0f2429 70%); }
.g5 { background: radial-gradient(60% 90% at 50% 100%, rgba(242, 163, 58, 0.5), transparent 60%), linear-gradient(180deg, #183a41, #0f2429); }
.g6 { background: radial-gradient(55% 75% at 75% 35%, rgba(141, 185, 224, 0.45), transparent 62%), linear-gradient(135deg, #31454a, #102328); }

/* Vídeos nos trabalhos */
.video-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.video-card .frame {
  display: block;
}

.video-card .preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink-2);
}

.video-card .frame-tc {
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: rgba(8, 21, 24, 0.7);
}

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: -1.75rem 0 0 -1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}

.play svg {
  width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.15rem;
  fill: currentColor;
}

.video-card:hover .play {
  filter: brightness(1.08);
}

.player {
  width: fit-content;
  max-width: 96vw;
  max-height: 94vh;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #000;
  color: var(--bone);
}

.player::backdrop {
  background: rgba(5, 15, 17, 0.92);
}

.player video {
  display: block;
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 88vh;
  background: #000;
}

.player-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.player-note {
  padding: 1rem 1.25rem;
  color: var(--soft);
}

/* Vídeos verticais e atalhos do Instagram */
.works--tall {
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
}

.frame--tall {
  aspect-ratio: 9 / 16;
}

.ig-links {
  margin-top: 2.25rem;
}

.ig-links p {
  color: var(--mute);
  font-size: 0.95rem;
}

.ig-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.ig-links a {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mute);
  font-size: 0.9rem;
  text-decoration: none;
}

.ig-links a:hover {
  border-color: var(--mute);
  color: var(--bone);
}

/* Vídeos dentro de um celular */
.phones {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0.25rem 0.25rem 1rem;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.phone-item {
  flex: 0 0 clamp(12.5rem, 22vw, 15rem);
  scroll-snap-align: start;
}

.phone {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  aspect-ratio: 9 / 17.5;
  overflow: hidden;
  border-radius: 2rem;
  background: #000;
  box-shadow: 0 0 0 1px rgba(232, 229, 221, 0.16);
  color: #fff;
}

.video-card:hover .phone {
  box-shadow: 0 0 0 1px var(--accent);
}

.phone svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-screen {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-2);
}

.phone-screen::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.phone-top {
  position: absolute;
  top: 1.1rem;
  left: 50%;
  z-index: 1;
  display: flex;
  gap: 0.6rem;
  transform: translateX(-50%);
}

.phone-top i {
  display: block;
  width: 3.1rem;
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.phone-top i + i {
  width: 2.5rem;
}

.phone-side {
  position: absolute;
  right: 0.55rem;
  bottom: 3.9rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.phone-side svg {
  width: 1.35rem;
  height: 1.35rem;
}

.phone-caption {
  position: absolute;
  right: 3.2rem;
  bottom: 0.9rem;
  left: 0.85rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.phone-caption strong {
  font-family: var(--display);
  font-size: 0.9rem;
  line-height: 1.15;
}

.phone-caption span {
  font-size: 0.78rem;
  line-height: 1.25;
  opacity: 0.88;
}

.phone-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.7rem 0.5rem 0.85rem;
  background: #000;
}

.phone-nav svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.nav-plus {
  display: grid;
  place-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #000;
}

.phone .play {
  width: 3rem;
  height: 3rem;
  margin: -1.5rem 0 0 -1.5rem;
}

.phone .play svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
  stroke: none;
}

.video-card .play {
  transition: opacity 0.2s;
}

.video-card.is-playing .play {
  opacity: 0;
}

.video-card.is-playing:hover .play {
  opacity: 1;
}

.phones-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.phones-nav button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
}

.phones-nav button:hover {
  border-color: var(--accent);
}

.phones-nav svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phones-nav button:first-child svg {
  transform: scaleX(-1);
}

/* Página de todos os trabalhos */
.page-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--mute);
  font-size: 0.95rem;
  text-decoration: none;
}

.back:hover {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

.brand-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.brand-filter button {
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--mute);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.brand-filter button:hover {
  border-color: var(--mute);
  color: var(--bone);
}

.brand-filter button[aria-pressed="true"] {
  border-color: var(--bone);
  background: var(--bone);
  color: var(--ink);
}

.format[hidden] {
  display: none;
}

.top nav a[aria-current="page"] {
  color: var(--bone);
}

.more-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.cta--ghost {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
}

.cta--ghost .logo {
  fill: var(--accent);
}

.cta--ghost:hover {
  background: var(--accent);
  color: var(--accent-ink);
  filter: none;
}

.cta--ghost:hover .logo {
  fill: var(--accent-ink);
}

/* Link para o post original */
.player-link {
  display: inline-flex;
  margin: 0.75rem 1rem 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.player-link[hidden] {
  display: none;
}

.player-link:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Link para ver todos os vídeos de um formato */
.format-more {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.format-more:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Botão do Instagram em cima do vídeo */
.phone-item {
  position: relative;
}

.ig-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  text-decoration: none;
}

.ig-badge svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ig-badge:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Vídeos que levam ao Instagram */
a.video-card {
  text-decoration: none;
}

a.video-card .play {
  display: none;
}

.video-card:hover .ig-badge {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Evita que a fileira de vídeos alargue a página no celular */
.format-body,
.about-text,
.phones {
  min-width: 0;
  max-width: 100%;
}

body {
  overflow-x: clip;
}

/* Sem linhas entre os blocos: espaço e faixas de cor */
.band {
  border: 0;
  background: var(--ink-2);
}

.format {
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 0;
}

.more-cta {
  margin-top: clamp(1rem, 3vw, 2rem);
  border-top: 0;
}

.foot {
  border-top: 0;
  background: var(--ink-2);
}

/* Rótulo embaixo dos vídeos da página inicial */
.phone-label {
  margin-top: 0.7rem;
  color: var(--mute);
  font-size: 0.9rem;
}

/* Grade de vídeos por marca */
.brand-group + .brand-group {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.brand-title {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.brand-title span {
  margin-left: 0.6rem;
  color: var(--mute);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
}

.clips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clip-item {
  min-width: 0;
}

.clip {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--ink-2);
}

.video-card:hover .clip {
  box-shadow: 0 0 0 2px var(--accent);
}

@media (max-width: 700px) {
  .clips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Seções divididas por faixas de cor, de ponta a ponta */
.work {
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
}

.work > h1,
.work > h2,
.work > .work-intro,
.work > .back,
.work > .more-cta {
  margin-inline: var(--pad);
}

.work > .work-intro {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.work .format {
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
}

.format--tint {
  background: var(--ink-2);
}

.work > .more-cta {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: clamp(4rem, 10vw, 8rem);
  padding-top: 0;
}

/* Cada marca num painel, para separar sem linhas */
.brand-group {
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  border-radius: 1.5rem;
  background: var(--ink-2);
}

.format--tint .brand-group {
  background: var(--ink);
}

.brand-group + .brand-group {
  margin-top: 1rem;
}

/* Créditos no rodapé */
.foot-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.credit a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

/* Animações da abertura */
.hero-title {
  position: relative;
  z-index: 1;
  width: fit-content;
}

.hero-foot {
  position: relative;
  z-index: 1;
}

.float {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  translate: 0 calc(var(--scroll, 0) * var(--speed, -0.1) * 1px);
  animation: bob 7s ease-in-out infinite;
}

.float .logo {
  display: block;
  width: 100%;
  height: auto;
}

.float-1 {
  top: 16%;
  right: 13%;
  width: clamp(3.5rem, 8vw, 7rem);
  --speed: -0.14;
}

.float-2 {
  top: 50%;
  right: 22%;
  width: clamp(2rem, 4vw, 3.25rem);
  --speed: -0.06;
  animation-duration: 9s;
  animation-delay: -3s;
}

.float-2 .logo {
  fill: var(--bone);
  opacity: 0.85;
  animation-duration: 11s;
  animation-direction: reverse;
}

.float-3 {
  bottom: 16%;
  right: 9%;
  width: clamp(2.5rem, 5vw, 4.5rem);
  --speed: -0.2;
  animation-duration: 8s;
  animation-delay: -5s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}

.hero-bubble {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transform: translate(30%, -45%);
  transform-origin: 20% 100%;
  animation: pop 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) 1.1s both;
}

.hero-bubble::after {
  content: "";
  position: absolute;
  bottom: -0.3rem;
  left: 18%;
  width: 0.8rem;
  height: 0.8rem;
  border-bottom-right-radius: 0.2rem;
  background: var(--accent);
  transform: rotate(45deg);
}

@keyframes pop {
  0% { transform: translate(30%, -45%) scale(0); }
  100% { transform: translate(30%, -45%) scale(1); }
}

.wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.6s ease-in-out 1.9s infinite;
}

@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

.scroll-hint {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  translate: -50% 0;
  color: var(--mute);
  font-size: 0.85rem;
  text-decoration: none;
}

.scroll-hint:hover {
  color: var(--bone);
}

.scroll-hint svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 1.8s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Entrada ao rolar a página */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Vídeos que sobem um pouco com o mouse */
@media (hover: hover) {
  .video-card .phone,
  .video-card .clip {
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1), box-shadow 0.2s;
  }

  .video-card:hover .phone,
  .video-card:hover .clip {
    transform: translateY(-6px) rotate(-1deg);
  }

  .cta {
    transition: transform 0.2s, filter 0.2s, background 0.2s, color 0.2s;
  }

  .cta:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 700px) {
  .float-2,
  .float-3 {
    display: none;
  }

  .float-1 {
    top: auto;
    right: 6%;
    bottom: 9%;
    width: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float,
  .hero-bubble,
  .wave,
  .scroll-hint svg {
    animation: none;
  }

  .float {
    translate: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Abertura do site */
.intro {
  display: none;
}

.intro-on .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--ink);
  animation: introOut 0.9s cubic-bezier(0.76, 0, 0.24, 1) 1.5s forwards;
}

.intro .intro-inner {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  animation: introInner 0.4s ease 1.3s forwards;
}

.intro .intro-logo {
  width: clamp(4rem, 10vw, 6.5rem);
  height: auto;
  animation: introSpin 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.intro-name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: introName 0.7s ease 0.5s forwards;
}

@keyframes introSpin {
  from { transform: rotate(-270deg) scale(0.2); opacity: 0; }
  to { transform: rotate(0deg) scale(1); opacity: 1; }
}

@keyframes introName {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes introInner {
  to { opacity: 0; transform: translateY(-10px); }
}

@keyframes introOut {
  0% { transform: translateY(0); visibility: visible; }
  99% { transform: translateY(-100%); visibility: visible; }
  100% { transform: translateY(-100%); visibility: hidden; }
}

.intro-on .hero-name .line > span {
  animation-delay: 1.95s;
}

.intro-on .hero-name .line-2 > span {
  animation-delay: 2.1s;
}

/* Cursor que acompanha o mouse */
.cursor-ring,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  translate: -50% -50%;
}

.cursor-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  transition: opacity 0.2s;
}

.cursor-ring {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  transition: width 0.25s, height 0.25s, background 0.25s, opacity 0.25s, scale 0.15s;
}

.cursor-label {
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
}

html.cursor-on .cursor-ring,
html.cursor-on .cursor-dot {
  opacity: 1;
}

.cursor-ring.is-link {
  width: 3.25rem;
  height: 3.25rem;
  background: rgba(242, 163, 58, 0.18);
}

html[data-temp="daylight"] .cursor-ring.is-link {
  background: rgba(141, 185, 224, 0.18);
}

.cursor-ring.is-label {
  width: 5rem;
  height: 5rem;
  background: var(--accent);
}

.cursor-ring.is-label .cursor-label {
  opacity: 1;
}

.cursor-ring.is-down {
  scale: 0.85;
}

.cursor-ring.is-link + .cursor-dot {
  opacity: 0;
}

html.cursor-on .cursor-ring.is-hidden {
  opacity: 0;
}

.cursor-ring.is-hidden + .cursor-dot {
  opacity: 0;
}

html.cursor-on,
html.cursor-on * {
  cursor: none !important;
}

html.cursor-on .player,
html.cursor-on .player * {
  cursor: auto !important;
}

/* Brilho e movimento na abertura, seguindo o mouse */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(32rem circle at var(--mx, 70%) var(--my, 40%), rgba(242, 163, 58, 0.12), transparent 65%);
  transition: opacity 0.6s;
}

html[data-temp="daylight"] .hero::before {
  background: radial-gradient(32rem circle at var(--mx, 70%) var(--my, 40%), rgba(141, 185, 224, 0.12), transparent 65%);
}

.hero:hover::before {
  opacity: 1;
}

.hero-title {
  transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -6px), 0);
  transition: transform 0.25s ease-out;
}

.hero-foot .cta {
  transition: translate 0.2s ease-out, transform 0.2s, filter 0.2s, background 0.2s, color 0.2s;
}

/* Bloco Trabalhos num fundo só */
.format--tint {
  background: transparent;
}

.format--tint .brand-group {
  background: var(--ink-2);
}

.format-head h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.format-mark {
  width: 0.8em;
  height: 0.8em;
}

/* Abertura: logo e nome mais juntos */
.intro .intro-inner {
  gap: 1rem;
}

.intro .intro-logo {
  width: clamp(4.5rem, 14vw, 7rem);
  height: auto;
  aspect-ratio: 1 / 1;
}

/* Sem o texto de apresentação: menos espaço entre o título e o primeiro bloco */
.work > h1 + .format,
.work > h2 + .format {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

/* Todos os trabalhos como uma tela dentro da página inicial */
#view-todos {
  display: none;
}

html.view-todos #view-todos {
  display: block;
}

html.view-todos #conteudo {
  display: none;
}


/* Celular: cada marca é uma linha que se arrasta, com setas em círculo */
.clips-wrap {
  position: relative;
}

.row-arrow,
.brand-count {
  display: none;
}

@media (max-width: 700px) {
  .brand-count {
    display: inline;
  }

  .clips {
    display: flex;
    gap: 0.75rem;
    margin-right: calc(-1 * clamp(1.1rem, 2.5vw, 1.75rem));
    padding: 0.25rem clamp(1.1rem, 2.5vw, 1.75rem) 0.25rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .clips::-webkit-scrollbar {
    display: none;
  }

  .clip-item {
    flex: 0 0 clamp(7.5rem, calc((100vw - 5.5rem) / 2.3), 11rem);
    scroll-snap-align: start;
  }

  .clips-wrap.is-scrollable::after {
    content: "";
    position: absolute;
    top: 0;
    right: calc(-1 * clamp(1.1rem, 2.5vw, 1.75rem));
    bottom: 0;
    width: 3rem;
    background: linear-gradient(90deg, rgba(22, 50, 57, 0), var(--ink-2));
    pointer-events: none;
    transition: opacity 0.2s;
  }

  .clips-wrap.at-end::after {
    opacity: 0;
  }

  .row-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    cursor: pointer;
    translate: 0 -50%;
  }

  .row-arrow[hidden] {
    display: none;
  }

  .row-arrow--prev {
    left: -0.4rem;
  }

  .row-arrow--next {
    right: -0.6rem;
  }

  .row-arrow svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .row-arrow--prev svg {
    transform: scaleX(-1);
  }
}

/* Aftermovies: um painel ao lado do outro, sem tarja comprida */
.format-body--side {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.format-body--side .brand-group,
.format-body--side .brand-group + .brand-group {
  flex: 0 0 auto;
  width: calc(11rem + 2 * clamp(1.1rem, 2.5vw, 1.75rem));
  margin-top: 0;
}

.format-body--side .clips {
  display: flex;
  gap: 0.75rem;
}

.format-body--side .clip-item {
  flex: 0 0 11rem;
}

.format-body--side .brand-count {
  display: none;
}

@media (max-width: 700px) {
  .format-body--side .brand-group,
  .format-body--side .brand-group + .brand-group {
    width: calc(clamp(7.5rem, calc((100vw - 5.5rem) / 2.3), 11rem) + 2 * clamp(1.1rem, 2.5vw, 1.75rem));
  }

  .format-body--side .clip-item {
    flex: 0 0 clamp(7.5rem, calc((100vw - 5.5rem) / 2.3), 11rem);
  }
}

/* Aftermovies: painéis com a mesma altura */
.format-body--side {
  align-items: stretch;
}

/* Texto menor embaixo do aftermovie */
.clip-note {
  margin: 0.75rem 0 0;
  color: var(--mute);
  font-size: 0.85rem;
  line-height: 1.35;
}

/* Aftermovies: títulos reservam duas linhas, para os vídeos ficarem alinhados */
.format-body--side .brand-title {
  min-height: 2.1em;
}

/* Aftermovies: título em duas partes, no estilo do Coala Festival */
.brand-title .t-line {
  display: block;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.format-body--side .brand-title {
  min-height: 3.15em;
  font-size: 1rem;
}

@media (max-width: 700px) {
  .format-body--side .brand-title {
    font-size: 0.9rem;
  }
}

/* Aftermovies: título de uma linha e texto cinza embaixo do vídeo */
.format-body--side .brand-title {
  min-height: 0;
  font-size: 1.125rem;
}

@media (max-width: 700px) {
  .format-body--side .brand-title {
    font-size: 0.9375rem;
  }
}

/* Brilho que acompanha o cursor em toda a página (sem corte na abertura) */
.hero::before {
  display: none;
}

.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(28rem circle at var(--gx, 50%) var(--gy, 50%), rgba(242, 163, 58, 0.09), transparent 65%);
  transition: opacity 0.4s;
}

html[data-temp="daylight"] .cursor-glow {
  background: radial-gradient(28rem circle at var(--gx, 50%) var(--gy, 50%), rgba(141, 185, 224, 0.09), transparent 65%);
}

html.cursor-on .cursor-glow {
  opacity: 1;
}

/* Celular: sem a contagem de vídeos ao lado do nome da marca */
@media (max-width: 700px) {
  .brand-count {
    display: none;
  }
}
