:root {
  --paper: #f2efe8;
  --paper-2: #e8e4da;
  --ink: #121212;
  --ink-soft: #55524c;
  --accent: #ff4a1c;
  --lime: #d6ff3d;
  --line: rgba(18, 18, 18, .14);

  --display: "Clash Display", "Arial Black", sans-serif;
  --body: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 3.2vw, 48px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 52px; height: auto; overflow: visible; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.mm { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.dot { fill: var(--accent); }
.brand:hover .mm { stroke-dasharray: 260; animation: draw 1.1s var(--ease); }
.brand:hover .dot { animation: hop .6s var(--ease); }
@keyframes draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes hop { 40% { transform: translateY(-14px); } }
.dot { transform-box: fill-box; transform-origin: center; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a, .link-btn {
  text-decoration: none; background: none; border: 0;
  font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  transition: background .2s;
}
.nav__links a:hover, .link-btn:hover { background: var(--paper-2); }
.nav__links .nav__cta { background: var(--ink); color: var(--paper); }
.nav__links .nav__cta:hover { background: var(--accent); }

/* ---------- HERO ---------- */
.hero { padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(40px, 6vh, 72px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px; font-size: 14px; font-weight: 500; letter-spacing: .02em;
  color: var(--ink-soft);
}
.eyebrow--light { color: rgba(242, 239, 232, .7); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #2bd46b; box-shadow: 0 0 0 0 rgba(43, 212, 107, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(43, 212, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 212, 107, 0); } }

.hero__title {
  margin: 0;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(44px, 9.4vw, 158px);
  line-height: .94; letter-spacing: -.035em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > * { vertical-align: middle; }
.hl { font-style: normal; color: var(--accent); }
.pill {
  display: inline-block; vertical-align: middle;
  width: 2.1em; height: .78em; margin: 0 .04em;
  border-radius: 999px; overflow: hidden; background: var(--paper-2);
  transform: translateY(-.06em);
}
.pill--sm { width: 1.5em; }
.pill video { width: 100%; height: 100%; object-fit: cover; }

.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-top: clamp(32px, 6vh, 64px);
}
.hero__lede { max-width: 520px; margin: 0; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); }

.sticker {
  position: relative; flex: none;
  width: clamp(124px, 13vw, 176px); aspect-ratio: 1;
  border: 0; border-radius: 50%; padding: 0;
  background: var(--accent); color: var(--ink);
  transition: transform .4s var(--ease), background .3s;
}
.sticker:hover { transform: scale(1.06) rotate(-6deg); background: var(--lime); }
.sticker__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.sticker__ring text { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .04em; fill: var(--ink); }
.sticker__play { position: absolute; inset: 0; margin: auto; width: 34%; fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 18px 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(26px, 3.2vw, 46px); letter-spacing: -.02em; white-space: nowrap;
  padding-right: .7em;
}
.marquee__track span::after { content: "✺"; color: var(--accent); margin-left: .7em; font-size: .7em; vertical-align: .15em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- WORK ---------- */
.work { padding: clamp(56px, 10vh, 120px) var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: clamp(28px, 5vh, 56px); }
.section-title {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(36px, 5.6vw, 84px); letter-spacing: -.03em; line-height: 1;
}
.section-count { margin: 0; color: var(--ink-soft); font-size: 15px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 40px);
  row-gap: clamp(48px, 9vh, 112px);
}
.card { grid-column: span 12; position: relative; }
.card a { text-decoration: none; display: block; cursor: none; }
@media (hover: none) { .card a { cursor: pointer; } }

.card__media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--radius);
  background: var(--paper-2);
  transform: translateZ(0);
}
.card--v .card__media { aspect-ratio: 4 / 5; }
.card__media img, .card__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), opacity .4s;
}
.card__media video { opacity: 0; }
.card__media video.is-playing { opacity: 1; }
.card a:hover .card__media img, .card a:hover .card__media video { transform: scale(1.035); }

.card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--paper); color: var(--ink);
  padding: 6px 10px; border-radius: 999px;
}
.card__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 16px; }
.card__client { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.card__title {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -.02em; line-height: 1.05;
}
.card a:hover .card__title { color: var(--accent); }
.card__year { font-size: 14px; color: var(--ink-soft); white-space: nowrap; margin-top: 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; }
.tags li { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-soft); }

@media (min-width: 820px) {
  .card--l { grid-column: span 7; }
  .card--s { grid-column: span 5; }
  /* desencontro editorial entre as colunas */
  .card:nth-child(even) { align-self: end; }
  .card:nth-child(4n+1), .card:nth-child(4n+2) { align-self: start; }
  .card:nth-child(4n+2) { margin-top: clamp(40px, 10vh, 120px); }
  .card:nth-child(4n+3) { margin-top: clamp(0px, 2vh, 24px); }
}

/* cursor customizado sobre os cards */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 16px;
  transform: translate(var(--x, -200px), var(--y, -200px)) scale(0);
  transition: transform .25s var(--ease);
}
.cursor.is-on { transform: translate(var(--x), var(--y)) scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- SERVICES ---------- */
.services { padding: clamp(56px, 10vh, 120px) var(--gutter); border-top: 1px solid var(--line); }
.services__list {
  list-style: none; padding: 0; margin: clamp(28px, 5vh, 56px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px);
}
.services__list li {
  background: var(--paper-2); border-radius: var(--radius);
  padding: 24px 24px 28px; min-height: 260px;
  display: flex; flex-direction: column;
  transition: background .3s, transform .4s var(--ease);
}
.services__list li:hover { background: var(--lime); transform: translateY(-6px) rotate(-.6deg); }
.services__list .num { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.services__list h3 { margin: auto 0 10px; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2vw, 30px); letter-spacing: -.02em; line-height: 1.05; }
.services__list p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 1000px) { .services__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services__list { grid-template-columns: 1fr; } .services__list li { min-height: 0; } .services__list h3 { margin-top: 32px; } }

/* ---------- ABOUT ---------- */
.about {
  position: relative;
  padding: clamp(64px, 12vh, 160px) var(--gutter);
  border-top: 1px solid var(--line);
}
.about__text {
  margin: 0;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(30px, 4.4vw, 66px); line-height: 1.06; letter-spacing: -.025em;
  max-width: 1100px;
}
.about__sticker {
  position: absolute; right: var(--gutter); top: clamp(24px, 6vh, 64px);
  width: clamp(90px, 10vw, 140px); aspect-ratio: 1; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center;
  transform: rotate(-12deg);
}
.about__sticker svg { width: 66%; overflow: visible; }
@media (min-width: 701px) { .about { padding-right: calc(var(--gutter) + clamp(110px, 12vw, 170px)); } }
@media (max-width: 700px) { .about__sticker { position: static; margin-bottom: 28px; } }

/* ---------- CONTACT ---------- */
.contact {
  background: var(--ink); color: var(--paper);
  padding: clamp(64px, 12vh, 140px) var(--gutter) 28px;
  border-radius: 28px 28px 0 0;
}
.contact__title {
  margin: 0 0 clamp(20px, 3vh, 32px);
  font-family: var(--display); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -.02em;
  color: var(--lime);
}
.contact__mail {
  display: block; text-decoration: none;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 7.6vw, 128px); line-height: 1; letter-spacing: -.035em;
  overflow-wrap: anywhere;
  transition: color .25s;
}
.contact__mail:hover { color: var(--accent); }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.copy {
  background: var(--paper); color: var(--ink); border: 0;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: background .2s;
}
.copy:hover { background: var(--lime); }
.socials { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.socials a { text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(242, 239, 232, .35); }
.socials a:hover { color: var(--lime); border-color: var(--lime); }
.contact__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: clamp(64px, 14vh, 160px); padding-top: 20px;
  border-top: 1px solid rgba(242, 239, 232, .16);
  font-size: 14px; color: rgba(242, 239, 232, .65);
}
.contact__foot p { margin: 0; }
.contact__foot a { text-decoration: none; }
.contact__foot a:hover { color: var(--paper); }

/* ---------- MODAL ---------- */
.modal {
  width: min(1240px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 22px;
  background: var(--paper); color: var(--ink);
  overflow: auto;
}
.modal::backdrop { background: rgba(10, 10, 10, .78); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal__inner { position: relative; }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--paper); font-size: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.modal__close:hover { background: var(--accent); }
.modal__player { background: #000; display: grid; place-items: center; }
.modal__player video { width: 100%; max-height: 72dvh; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.modal__player.is-vertical video { aspect-ratio: auto; width: auto; height: 72dvh; max-width: 100%; }
.modal__info {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px 48px;
  padding: clamp(20px, 3vw, 36px);
}
.modal__client { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.modal__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.025em; line-height: 1; }
.modal__desc { margin: 0; font-size: 17px; }
.episodes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.episodes button {
  border: 1px solid var(--line); background: transparent;
  border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500;
}
.episodes button:hover { border-color: var(--ink); }
.episodes button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 760px) { .modal__info { grid-template-columns: 1fr; } }

/* ---------- MOBILE ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__name { display: none; }
  .nav__links a, .link-btn { padding: 8px 10px; font-size: 14px; }
  .hero__foot { flex-direction: column-reverse; align-items: flex-start; }
  .pill { width: 1.6em; }
  .pill--sm { display: none; }
}

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
