/* ─────────────────────────────────────────────────────────────
   KELEV — main.css
   Tokens, reset, tipografia, layout base, componentes, animações
   ───────────────────────────────────────────────────────────── */

:root {
  /* paleta */
  --bg: #10004F;
  --bg-elev: #1A0A6E;
  --ink: #FFF2E2;
  --ink-mute: rgba(255, 242, 226, 0.6);
  --ink-faint: rgba(255, 242, 226, 0.3);
  --accent: #8F7EFF;
  --brand: #6519F1;
  --ink-deep: #121315;

  /* acentos por case */
  --accent-sulboro: #D68521;
  --accent-dose: #ECE94F;
  --accent-unicpo: #8F7EFF;
  --accent-ajx: #ED5335;

  /* tipografia */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* escala fluida */
  --fs-display: clamp(4rem, 14vw, 18rem);
  --fs-h1: clamp(2.5rem, 6vw, 6rem);
  --fs-h2: clamp(1.75rem, 3vw, 3rem);
  --fs-lead: clamp(1.125rem, 1.5vw, 1.5rem);
  --fs-body: 1rem;
  --fs-caption: 0.8125rem;

  /* espaçamento */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 40px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 160px;
  --s-9: 240px;

  /* grid */
  --max-w: 1440px;
  --gutter: 24px;
  --pad-x: clamp(1.5rem, 4vw, 4rem);
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}

/* filme de grão */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../img/noise.svg');
  mix-blend-mode: overlay;
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; background: none; border: none; }
input:focus, textarea:focus, a:focus, button:focus { outline: 2px solid var(--accent); outline-offset: 4px; }

/* tipografia base */
.font-display { font-family: var(--font-display); font-weight: 400; line-height: 0.9; letter-spacing: -0.01em; }
.font-body { font-family: var(--font-body); }
.fs-display { font-size: var(--fs-display); }
.fs-h1 { font-size: var(--fs-h1); }
.fs-h2 { font-size: var(--fs-h2); }
.fs-lead { font-size: var(--fs-lead); }
.fs-caption { font-size: var(--fs-caption); letter-spacing: 0.08em; text-transform: uppercase; }

/* container */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-7) 0; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── HEADER ──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: var(--s-4) 0;
  transition: padding 0.4s ease;
}
.site-header.is-scrolled { padding: var(--s-3) 0; }
.site-header__bg {
  position: absolute;
  inset: 0;
  background: rgba(16, 0, 79, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.site-header.is-scrolled .site-header__bg { opacity: 1; }
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.site-header__logo img {
  height: 32px;
  width: auto;
  transition: height 0.4s ease;
}
.site-header.is-scrolled .site-header__logo img { height: 26px; }
.site-header__nav {
  display: flex;
  gap: var(--s-5);
  align-items: center;
}
.site-header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s ease;
}
.site-header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.site-header__nav a:hover::after { width: 100%; }
.site-header__cta {
  border: 1px solid var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, color 0.3s ease;
}
.site-header__cta:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 768px) {
  .site-header__nav { display: none; }
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--s-9) 0 var(--s-7);
  position: relative;
}
.hero__eyebrow {
  color: var(--ink-mute);
  margin-bottom: var(--s-5);
  display: block;
}
.hero__title {
  font-size: var(--fs-display);
  margin-bottom: var(--s-6);
  line-height: 1.0;
}
.hero__line {
  display: block;
  overflow: hidden;
  padding: 0.08em 0;
}
.hero__line.is-revealed {
  overflow: visible;
}
.hero__line > span {
  display: inline-block;
  will-change: transform;
}
.hero__lead {
  color: var(--ink);
  max-width: 680px;
  margin-bottom: var(--s-4);
  font-weight: 500;
}
.hero__extra {
  color: var(--accent);
  margin-bottom: var(--s-6);
}
.hero__scroll {
  position: absolute;
  bottom: var(--s-6);
  right: var(--pad-x);
  color: var(--ink-mute);
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}
@media (max-width: 768px) {
  .hero__scroll { display: none; }
}

/* ── APPROACH COPY ───────────────────────────────────────────── */
.approach { border-top: 1px solid var(--ink-faint); }
.approach__eyebrow { color: var(--accent); margin-bottom: var(--s-5); display: block; }
.approach__title {
  font-size: clamp(2.5rem, 8vw, 8rem);
  margin-bottom: var(--s-5);
  line-height: 0.95;
}
.approach__lead { color: var(--ink-mute); max-width: 720px; }

/* approach com vídeo de background */
.approach--video {
  position: relative;
  overflow: hidden;
  min-height: 100vw; /* sempre quadrado: altura = largura da viewport */
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--s-8);
  background: var(--bg);
}
.approach__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.approach__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.approach__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(16,0,79,0.35) 0%,
    rgba(16,0,79,0) 35%,
    rgba(16,0,79,0) 65%,
    rgba(16,0,79,0.85) 100%);
}
.approach__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ── PILLARS ─────────────────────────────────────────────────── */
.pillars { padding-top: var(--s-7); }
.pillar {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: var(--s-6);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--ink-faint);
}
.pillar:last-child { border-bottom: 1px solid var(--ink-faint); }
.pillar__num {
  font-size: clamp(5rem, 14vw, 14rem);
  color: var(--accent);
  line-height: 1;
  will-change: transform;
}
.pillar__body { padding-top: var(--s-5); max-width: 720px; }
.pillar__title {
  font-size: clamp(2rem, 4vw, 4rem);
  margin-bottom: var(--s-4);
  line-height: 1;
}
.pillar__text { font-size: var(--fs-lead); color: var(--ink); line-height: 1.5; }

@media (max-width: 768px) {
  .pillar { grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-6) 0; }
  .pillar__body { padding-top: 0; }
}

/* ── GALLERY ─────────────────────────────────────────────────── */
.gallery { overflow: hidden; }
.gallery__eyebrow { color: var(--accent); margin-bottom: var(--s-6); display: block; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  padding: 0 var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.gallery__item { overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--a { grid-column: 1 / 5;  aspect-ratio: 4/5; margin-top: 0; }
.gallery__item--b { grid-column: 6 / 12; aspect-ratio: 16/9; margin-top: var(--s-8); }
.gallery__item--c { grid-column: 2 / 6;  aspect-ratio: 1/1;  margin-top: var(--s-6); }
.gallery__item--d { grid-column: 8 / 12; aspect-ratio: 4/5; margin-top: var(--s-7); }
.gallery__item--e { grid-column: 1 / 7;  aspect-ratio: 16/9; margin-top: var(--s-5); }
.gallery__item--f { grid-column: 9 / 13; aspect-ratio: 1/1;  margin-top: var(--s-6); }

@media (max-width: 768px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item { grid-column: 1 / -1 !important; margin-top: 0 !important; margin-bottom: var(--s-4); aspect-ratio: 16/9 !important; }
}

/* ── WORKS ───────────────────────────────────────────────────── */
.works {
  padding-top: var(--s-9);
  background: linear-gradient(180deg, var(--bg) 0%, #08001f 100%);
}
.works__head { margin-bottom: var(--s-7); }
.works__eyebrow { color: var(--accent); margin-bottom: var(--s-4); display: block; }
.works__title { font-size: clamp(3rem, 8vw, 8rem); line-height: 0.95; }

.works__list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); }
.work-card {
  display: block;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, filter 0.5s ease;
}
.work-card:nth-child(odd) { margin-top: 0; }
.work-card:nth-child(even) { margin-top: var(--s-6); }
.work-card__media {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-elev);
  margin-bottom: var(--s-4);
  position: relative;
}
.work-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,0,79,0) 40%, rgba(16,0,79,0.55) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  will-change: transform;
}
.work-card__badge {
  /* substituído pelo cursor pill que segue o mouse — escondido aqui */
  display: none;
}
.work-card:hover .work-card__media img {
  transform: scale(1.08);
  filter: brightness(0.78);
}
.work-card:hover .work-card__media::after { opacity: 1; }

/* dim outros cards quando há um hover ativo */
@media (hover: hover) {
  .works__list:hover .work-card:not(:hover) {
    opacity: 0.35;
    filter: blur(2px);
    transform: scale(0.97);
  }
}

.work-card__meta { display: flex; flex-direction: column; gap: var(--s-2); }
.work-card__num { color: var(--accent); }
.work-card__name { font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1; }
.work-card__tag { color: var(--ink-mute); }

@media (max-width: 900px) {
  .works__list { grid-template-columns: 1fr; gap: var(--s-7); }
  .work-card:nth-child(even) { margin-top: 0; }
}

/* ── MARQUEE ─────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  margin: var(--s-9) 0;
}
.marquee__track {
  display: flex;
  gap: var(--s-5);
  white-space: nowrap;
  animation: marqueeRoll 30s linear infinite;
  will-change: transform;
}
.marquee__item {
  font-size: clamp(2rem, 5vw, 5rem);
  color: var(--ink);
  line-height: 1;
}
.marquee__dot {
  font-size: clamp(2rem, 5vw, 5rem);
  color: var(--accent);
  line-height: 1;
}
@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ── CLIENTS MARQUEE ─────────────────────────────────────────── */
.clients {
  padding: var(--s-6) 0 var(--s-7);
  overflow: hidden;
  background: linear-gradient(180deg, #08001f 0%, #08001f 100%);
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
}
.clients__eyebrow {
  color: var(--ink-mute);
  text-align: center;
  margin-bottom: var(--s-5);
  display: block;
}
.clients__marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.clients__track {
  display: flex;
  align-items: center;
  gap: var(--s-7);
  width: max-content;
  animation: clientsRoll 50s linear infinite;
}
.clients__track img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.clients__track img:hover {
  opacity: 1;
  transform: scale(1.08);
}
@keyframes clientsRoll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: none; }
}
@media (max-width: 768px) {
  .clients__track { gap: var(--s-5); }
  .clients__track img { height: 32px; }
}

/* ── SERVICES ────────────────────────────────────────────────── */
.services {
  position: relative;
  padding-bottom: var(--s-9);
  background: linear-gradient(180deg, #08001f 0%, var(--ink-deep) 45%, var(--ink-deep) 55%, #08001f 100%);
}
.services__head { margin-bottom: var(--s-6); }
.services__eyebrow { color: var(--accent); margin-bottom: var(--s-4); display: block; }
.services__title { font-size: clamp(3rem, 8vw, 8rem); line-height: 0.95; }
.services__lead {
  margin-top: var(--s-6);
  max-width: 720px;
  color: var(--ink-mute);
}
.pillar__lead {
  font-style: italic;
  color: var(--accent);
  margin-bottom: var(--s-4);
  display: block;
}

/* lista vertical tipográfica */
.service-list {
  list-style: none;
  border-top: 1px solid var(--ink-faint);
  margin-top: var(--s-6);
}
.service-row {
  border-bottom: 1px solid var(--ink-faint);
  position: relative;
  cursor: pointer;
  transition: background 0.4s ease;
}
.service-row__inner {
  display: grid;
  grid-template-columns: 60px 1fr auto 60px;
  align-items: center;
  gap: var(--s-5);
  padding: clamp(28px, 5vw, 56px) 0;
  position: relative;
  z-index: 2;
}
.service-row__num {
  color: var(--ink-faint);
  transition: color 0.4s ease;
}
.service-row__name {
  font-size: clamp(3rem, 10vw, 11rem);
  line-height: 0.9;
  color: var(--ink-faint);
  transition: color 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.service-row__tags {
  color: var(--ink-faint);
  transition: color 0.4s ease, opacity 0.4s ease;
  text-align: right;
  max-width: 280px;
}
.service-row__arrow {
  font-size: 2rem;
  color: var(--ink-faint);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
  justify-self: end;
}

/* hover state — alvo */
@media (hover: hover) {
  .service-row:hover .service-row__num,
  .service-row:hover .service-row__name {
    color: var(--ink);
  }
  .service-row:hover .service-row__name {
    transform: translateX(12px);
  }
  .service-row:hover .service-row__arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--ink);
  }
  .service-row:hover .service-row__tags {
    color: var(--ink-mute);
  }
  /* outros itens perdem peso enquanto um está ativo */
  .service-list:hover .service-row:not(:hover) .service-row__name {
    color: rgba(255, 242, 226, 0.12);
  }
}

@media (max-width: 768px) {
  .service-row__inner { grid-template-columns: 40px 1fr; }
  .service-row__tags { grid-column: 1 / -1; text-align: left; padding-left: 56px; }
  .service-row__arrow { display: none; }
  .service-row__name { font-size: clamp(2.5rem, 14vw, 5rem); }
}

/* preview lateral — só desktop com hover */
.service-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(280px, 28vw, 460px);
  aspect-ratio: 4/5;
  pointer-events: none;
  opacity: 0;
  z-index: 50;
  /* JS controla translate; scale fica como var pra animar entrada */
  --preview-scale: 0.92;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  will-change: transform, opacity;
}
.service-preview.is-visible {
  opacity: 1;
  --preview-scale: 1;
}
.service-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (hover: none), (max-width: 1024px) {
  .service-preview { display: none; }
}

/* ── STUDIO ──────────────────────────────────────────────────── */
.studio {
  border-top: 1px solid var(--ink-faint);
  background: linear-gradient(180deg, #08001f 0%, var(--bg) 60%);
}
.studio__head { margin-bottom: var(--s-7); }
.studio__eyebrow { color: var(--accent); margin-bottom: var(--s-4); display: block; }
.studio__title {
  font-size: clamp(4rem, 16vw, 16rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* citação lead com aspas tipográficas */
.studio__lead-block {
  position: relative;
  max-width: 1100px;
  margin: 0 auto var(--s-8);
  padding: var(--s-7) 0 var(--s-6);
  text-align: center;
}
.studio__quote-mark {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -10%);
  font-size: clamp(8rem, 18vw, 18rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
  pointer-events: none;
}
.studio__lead {
  position: relative;
  z-index: 2;
  font-size: clamp(1.75rem, 4vw, 4rem);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.studio__lead em {
  color: var(--accent);
  font-style: normal;
}

/* split asymmetric grid */
.studio__split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-7);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--ink-faint);
  align-items: start;
}
.studio__split--reverse {
  grid-template-columns: 7fr 5fr;
}
.studio__split--reverse .studio__col--label { order: 2; }
.studio__split--reverse .studio__col--body { order: 1; }

.studio__col-eyebrow {
  color: var(--accent);
  margin-bottom: var(--s-4);
  display: block;
}
.studio__col-label {
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.studio__col--body {
  padding-top: var(--s-5);
  max-width: 620px;
}
.studio__p {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: var(--s-4);
}
.studio__p:last-child { margin-bottom: 0; }
.studio__p--strong {
  color: var(--accent);
  font-weight: 500;
}

/* pull quote central */
.studio__pull {
  padding: var(--s-8) 0;
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  text-align: center;
  margin: var(--s-4) 0;
}
.studio__pull-text {
  font-size: clamp(2.25rem, 6.5vw, 7rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.studio__pull-mark {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-style: italic;
}
.studio__pull-mark::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15em;
  height: 0.08em;
  background: var(--accent);
  opacity: 0.4;
}

@media (max-width: 900px) {
  .studio__lead-block { padding: var(--s-6) 0 var(--s-5); }
  .studio__split, .studio__split--reverse {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  .studio__split--reverse .studio__col--label { order: 0; }
  .studio__split--reverse .studio__col--body { order: 0; }
  .studio__col--body { padding-top: 0; }
}

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact { border-top: 1px solid var(--ink-faint); }
.contact__head { margin-bottom: var(--s-8); }
.contact__eyebrow { color: var(--accent); margin-bottom: var(--s-4); display: block; }
.contact__title { font-size: clamp(4rem, 12vw, 12rem); line-height: 0.9; margin-bottom: var(--s-5); }
.contact__lead { font-size: clamp(1.5rem, 2.5vw, 2.5rem); color: var(--ink); font-weight: 500; line-height: 1.25; }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-7);
  align-items: start;
}
.contact__copy { max-width: 480px; }
.contact__p { font-size: var(--fs-lead); color: var(--ink-mute); line-height: 1.5; }

.contact__form { display: flex; flex-direction: column; gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field__label { color: var(--ink-mute); }
.field input, .field textarea {
  border: none;
  border-bottom: 1px solid var(--ink-faint);
  padding: var(--s-3) 0;
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-lead);
  width: 100%;
  resize: vertical;
  transition: border-color 0.3s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.checkbox { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--ink-mute); font-size: 0.95rem; }
.checkbox input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); }
.contact__submit {
  align-self: flex-start;
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-5);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, color 0.3s ease;
}
.contact__submit:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--ink-faint);
  padding: var(--s-7) 0 var(--s-4);
  margin-top: var(--s-9);
  overflow: hidden;
}
.site-footer__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
.site-footer__col { display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer__label { color: var(--ink-mute); margin-bottom: var(--s-2); }
.site-footer__link {
  font-size: var(--fs-lead);
  color: var(--ink);
  position: relative;
  width: fit-content;
  transition: color 0.3s ease;
}
.site-footer__link:hover { color: var(--accent); }

.site-footer__wordmark {
  width: 100%;
  overflow: hidden;
  margin: var(--s-7) 0 var(--s-5);
  padding: 0;
  line-height: 0;
}
.site-footer__wordmark-svg {
  display: block;
  width: 100%;
  height: clamp(10rem, 24vw, 24vw);
  will-change: transform;
  transform-origin: center bottom;
}
.site-footer__wordmark-svg text {
  font-family: var(--font-display);
  font-size: 240px; /* casa com viewBox height; lengthAdjust força o stretch horizontal */
  fill: var(--accent);
  letter-spacing: -0.02em;
  dominant-baseline: auto;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  color: var(--ink-mute);
  padding-top: var(--s-5);
  border-top: 1px solid var(--ink-faint);
}

@media (max-width: 768px) {
  .site-footer__top { grid-template-columns: 1fr; gap: var(--s-5); }
  .site-footer__bottom { flex-direction: column; gap: var(--s-2); }
}

/* ── CURSOR (companheiro Kelev — não substitui o nativo) ────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 99998;
  color: var(--ink);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}
.cursor__dog {
  position: absolute;
  inset: 0;
  background-color: currentColor;
  -webkit-mask: url('../img/mascots/kelev-dog.svg') no-repeat center / contain;
          mask: url('../img/mascots/kelev-dog.svg') no-repeat center / contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: 30% 30%;
}
.cursor.is-hover {
  color: var(--accent);
  width: 56px;
  height: 56px;
}
.cursor.is-hover .cursor__dog {
  transform: rotate(-8deg);
}

/* pill com nome do projeto — substitui o cachorro no hover de work-card */
.cursor__pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: var(--cursor-pill-bg, var(--accent));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  padding: 0.18em 0.6em 0.24em;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.cursor.is-work-hover { width: auto; height: auto; }
.cursor.is-work-hover .cursor__dog { opacity: 0; transform: scale(0.5); }
.cursor.is-work-hover .cursor__pill {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (hover: none), (max-width: 768px) {
  .cursor { display: none; }
}

/* ── REVEAL ──────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(40px); }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── PAGE MASK ───────────────────────────────────────────────────── */
.page-mask {
  position: fixed;
  inset: 0;
  background: var(--ink-deep);
  transform-origin: bottom center;
  transform: scaleY(0);
  z-index: 99997;
  pointer-events: none;
}
.page-mask.is-covering { pointer-events: all; }

/* ── CASE PAGE ───────────────────────────────────────────────── */
.case-hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-9) 0 var(--s-7);
  position: relative;
}
.case-hero__eyebrow { color: var(--case-accent, var(--accent)); display: block; margin-bottom: var(--s-3); }
.case-hero__title { font-size: var(--fs-display); line-height: 0.85; margin-bottom: var(--s-5); color: var(--ink); }
.case-hero__synopsis { font-size: clamp(1.5rem, 2.5vw, 2.5rem); max-width: 880px; line-height: 1.2; font-weight: 500; }
.case-hero__media {
  margin: var(--s-7) 0 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elev);
}
.case-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.case-section { padding: var(--s-7) 0; }
.case-section .container { max-width: 880px; }
.case-p { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); margin-bottom: var(--s-4); }

.case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  padding: var(--s-6) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.case-gallery__item {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-elev);
}
.case-gallery__item:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.case-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.case-closing {
  padding: var(--s-9) 0;
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
}
.case-closing__text {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 7rem);
  line-height: 1;
  color: var(--case-accent, var(--accent));
  max-width: 1100px;
}
.case-closing__text span { display: inline-block; overflow: hidden; }

.case-next {
  padding: var(--s-7) 0 var(--s-9);
}
.case-next__eyebrow { color: var(--ink-mute); display: block; margin-bottom: var(--s-3); }
.case-next__link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  transition: padding 0.4s ease;
}
.case-next__link:hover { padding: var(--s-6) 0; }
.case-next__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.9;
}
.case-next__arrow {
  font-size: clamp(2rem, 4vw, 4rem);
  text-align: right;
  color: var(--accent);
}

@media (max-width: 768px) {
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery__item:first-child { grid-column: span 1; }
  .case-next__link { grid-template-columns: 1fr; }
  .case-next__arrow { text-align: left; }
}

/* ── BURGER & MOBILE MENU ────────────────────────────────────── */
.site-header__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
}
.site-header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: all; }
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
}
.mobile-menu__nav a {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 6rem);
  color: var(--ink);
  line-height: 1;
}
.mobile-menu__nav a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .site-header__burger { display: flex; }
  .site-header__cta { display: none; }
}

/* ── A11Y POLISH ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  font-weight: 600;
  z-index: 100000;
}
.skip-link:focus {
  left: var(--s-4);
  top: var(--s-4);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}
