/* ===================================================================
   MINE — Agência de Conteúdo & Performance
   Design tokens + layout (estático, alta performance)
   =================================================================== */

:root {
  /* Cores da marca */
  --ink: #0e0e0e;          /* preto da logo */
  --ink-soft: #1a1a1a;
  --paper: #f6f5ef;        /* off-white quente (fundo) */
  --paper-2: #efeee6;
  --cream: #fbfbef;        /* creme da logo clara */
  --yellow: #f3ce17;       /* amarelo da marca */
  --yellow-deep: #e7bf00;
  --muted: #6c6b63;
  --line: rgba(14, 14, 14, 0.12);

  /* Tipografia */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-logo: "Baloo 2", system-ui, sans-serif;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-display);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- Tipos auxiliares ---------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--yellow);
}
.eyebrow--light { color: rgba(251, 251, 239, 0.6); }
.hl { color: var(--yellow-deep); }
.studio .hl { color: var(--yellow); }

/* ===================================================================
   LOGO
   =================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  user-select: none;
}
.logo img { height: 28px; width: auto; display: block; transition: transform .25s ease; }
.logo:hover img { transform: scale(1.04); }
.footer .logo img { height: 28px; }
.logo__text { position: relative; display: inline-block; }
.logo__i { position: relative; }
/* ponto amarelo flutuante sobre o "i" */
.logo__i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.30em;
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateX(-50%);
}
/* esconde o pingo original do "i" da fonte */
.logo__i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.04em;
  width: 0.4em;
  height: 0.34em;
  background: currentColor;
  transform: translateX(-50%);
}
.logo--light { color: var(--cream); }

/* ===================================================================
   HEADER / NAV
   =================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding-block: 18px;
}
.site-header.is-scrolled {
  background: rgba(246, 245, 239, 0.82);
  backdrop-filter: saturate(150%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 10px;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width .25s ease;
}
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 22px;
  border-radius: 100px;
  transition: transform .2s ease, background .2s ease;
}
.nav__cta:hover { background: var(--yellow); color: var(--ink); transform: translateY(-1px); }

.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .3s ease, opacity .3s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px var(--pad) 24px;
  background: rgba(246, 245, 239, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-menu a { font-size: 1.5rem; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }

/* ===================================================================
   HERO
   =================================================================== */
.hero { padding-top: 0; padding-bottom: 0; }

/* Vídeo de destaque (vinheta) — full-bleed, ocupa o topo de borda a borda */
.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  overflow: hidden;
  background: var(--ink);
}
.hero-video__el { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-video__sound {
  position: absolute;
  right: clamp(12px, 1.4vw, 20px);
  bottom: clamp(12px, 1.4vw, 20px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  background: rgba(14, 14, 14, 0.5);
  color: var(--cream);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 251, 239, 0.28);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.hero-video__sound:hover { background: var(--yellow); color: var(--ink); transform: translateY(-1px); }
.hero-video__sound svg { width: 18px; height: 18px; fill: currentColor; }
.hero-video__sound .ic-wave { display: none; }
/* estado: som LIGADO */
.hero-video__sound[aria-pressed="true"] .ic-x { display: none; }
.hero-video__sound[aria-pressed="true"] .ic-wave { display: block; }

/* Mensagem abaixo do vídeo */
.hero__copy {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-top: clamp(28px, 4vh, 52px);
}
.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero__copy-side .eyebrow { margin-bottom: 14px; }
.hero__text {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 26px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 100px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: var(--yellow); color: var(--ink); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }

.hero__reel { justify-self: center; width: 100%; max-width: 320px; }

/* ===================================================================
   MURAL DE TRABALHOS (mosaico seamless) + MODAL DO REEL
   =================================================================== */
.section.works { padding-top: 0; }
.mural { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  display: block;
  -webkit-tap-highlight-color: transparent;
}
.tile:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; z-index: 4; }

/* fundo da tile de mídia (placeholder, ou poster via --tile-bg) */
.tile--media::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--tile-bg, radial-gradient(120% 80% at 30% 0%, rgba(243,206,23,.16), transparent 60%), linear-gradient(160deg, #1c1c1c, #0b0b0b 72%));
  background-size: cover;
  background-position: center;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.tile--media:hover::before,
.tile--media:focus-visible::before { transform: scale(1.06); }
.tile--media.has-poster .tile__ph { display: none; }

.tile__ph {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  font-size: clamp(1.8rem, 3.4vw, 3.2rem); font-weight: 700;
  color: rgba(251,251,239,.12); letter-spacing: -.04em;
  opacity: 0; /* placeholder limpo — sem escrita por padrão */
}

.tile__play {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  transform: translate(-50%,-50%) scale(.85);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(251,251,239,.16); backdrop-filter: blur(4px);
  border: 1.5px solid rgba(251,251,239,.55);
  display: grid; place-items: center;
  opacity: 0; transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
.tile__play svg { width: 22px; height: 22px; fill: var(--cream); margin-left: 2px; }
.tile:hover .tile__play,
.tile:focus-visible .tile__play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.tile:hover .tile__play { background: var(--yellow); border-color: var(--yellow); }
.tile:hover .tile__play svg { fill: var(--ink); }

.tile__info {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(12px, 1.3vw, 20px);
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.tile:hover .tile__info,
.tile:focus-visible .tile__info { opacity: 1; transform: none; }
.tile--media .tile__info { background: linear-gradient(to top, rgba(7,7,7,.92), rgba(7,7,7,.25) 60%, transparent); }
.tile__cat {
  display: inline-block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--ink); background: var(--yellow);
  padding: 3px 9px; border-radius: 100px; margin-bottom: 8px;
}
.tile__title { font-size: clamp(.95rem, 1.05vw, 1.15rem); font-weight: 600; line-height: 1.12; }
.tile__sub { font-size: .8rem; color: rgba(251,251,239,.6); margin-top: 2px; }

/* tiles de texto (cor sólida, estilo editorial) */
.tile--text { display: flex; align-items: flex-end; }
.tile--text .tile__info { position: static; background: none; padding: clamp(16px, 1.8vw, 26px); }
.tile--text .tile__title { font-size: clamp(1.1rem, 1.6vw, 1.7rem); }
.tile--yellow { background: var(--yellow); color: var(--ink); }
.tile--yellow .tile__cat { background: var(--ink); color: var(--yellow); }
.tile--yellow .tile__sub { color: rgba(14,14,14,.6); }
.tile--ink { background: var(--ink); color: var(--cream); }
.tile--ink .tile__sub { color: rgba(251,251,239,.55); }
.tile--cream { background: var(--paper-2); color: var(--ink); }
.tile--cream .tile__cat { background: var(--ink); color: var(--cream); }
.tile--cream .tile__sub { color: var(--muted); }

/* ---------- MODAL DO REEL ---------- */
.reel-modal[hidden] { display: none; }
.reel-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.reel-modal__backdrop { position: absolute; inset: 0; background: rgba(7,7,7,.86); backdrop-filter: blur(6px); }
.reel-modal__dialog {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  animation: modalIn .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.reel-modal__player {
  position: relative; flex: 0 0 auto;
  aspect-ratio: 9 / 16; height: min(80vh, 720px);
  background: #000; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 90px -30px rgba(0,0,0,.85);
}
.reel-modal__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-modal__video[hidden] { display: none; }
.reel-modal__ph[hidden] { display: none; }
.reel-modal__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(251,251,239,.45); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  background: radial-gradient(120% 80% at 30% 0%, rgba(243,206,23,.14), transparent 60%), linear-gradient(160deg, #1c1c1c, #0b0b0b 72%);
}
.reel-modal__meta { color: var(--cream); max-width: 260px; }
.reel-modal__cat {
  display: inline-block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--ink); background: var(--yellow);
  padding: 4px 11px; border-radius: 100px; margin-bottom: 14px;
}
.reel-modal__title { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.reel-modal__sub { color: rgba(251,251,239,.6); margin-top: 8px; font-size: 1rem; }
.reel-modal__close {
  position: absolute; top: -16px; right: -16px; z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--cream); color: var(--ink); font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s ease, transform .2s ease;
}
.reel-modal__close:hover { background: var(--yellow); transform: rotate(90deg); }
body.modal-open { overflow: hidden; }

/* ===================================================================
   MARQUEE
   =================================================================== */
.marquee { background: var(--yellow); color: var(--ink); overflow: hidden; padding: 16px 0; border-block: 2px solid var(--ink); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: scroll 26s linear infinite; }
.marquee__track span { font-size: clamp(1.1rem, 2.2vw, 1.8rem); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.marquee__track .dot { color: rgba(14,14,14,.5); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===================================================================
   SECTIONS
   =================================================================== */
.section { padding-block: clamp(64px, 11vh, 140px); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vh, 60px); }
.section__title { font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-top: 14px; }
.section__lead { color: var(--muted); font-size: 1.1rem; margin-top: 18px; max-width: 48ch; }

/* ===================================================================
   SERVIÇOS
   =================================================================== */
.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 90px 1fr 1.2fr;
  align-items: baseline;
  gap: 24px;
  padding: clamp(22px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s ease;
}
.service:hover { padding-left: 16px; }
.service__num { font-size: .95rem; color: var(--muted); font-weight: 600; }
.service__name { font-size: clamp(1.5rem, 3.4vw, 2.7rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; transition: color .25s ease; }
.service:hover .service__name { color: var(--yellow-deep); }
.service__desc { color: var(--muted); font-size: 1.02rem; }

/* ===================================================================
   ESTÚDIO
   =================================================================== */
.studio { background: var(--paper-2); }
.studio__grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.studio__statement { font-size: clamp(1.7rem, 4vw, 3.1rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin: 18px 0 24px; }
.studio__p { color: var(--muted); font-size: 1.1rem; max-width: 46ch; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.stat { border-top: 2px solid var(--ink); padding-top: 14px; }
.stat__num { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat__label { color: var(--muted); font-size: .95rem; margin-top: 6px; display: block; }

/* ===================================================================
   CLIENTES
   =================================================================== */
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.client {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.client:hover { background: var(--paper-2); }
.client img { max-width: 64%; max-height: 56%; object-fit: contain; filter: grayscale(1); opacity: .6; mix-blend-mode: multiply; transition: filter .25s ease, opacity .25s ease; }
.client:hover img { filter: none; opacity: 1; }
.client__name { font-size: .92rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
/* remove bordas externas que sobram */
.clients-grid .client:nth-child(3n) { border-right: none; }
.clients-grid .client:nth-last-child(-n+3) { border-bottom: none; }

/* ===================================================================
   CONTATO
   =================================================================== */
.contact { background: var(--paper); color: var(--ink); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }

.contact__title { margin-top: 16px; font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 0.95; }

.contact__links { display: flex; flex-direction: column; }
.contact__row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px 0; border-top: 1px solid var(--line);
  transition: padding-left .25s ease;
}
.contact__row:last-child { border-bottom: 1px solid var(--line); }
.contact__row:hover { padding-left: 12px; }
.contact__label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__value { font-size: clamp(1.2rem, 2.6vw, 1.9rem); font-weight: 600; transition: color .2s ease; }
.contact__row:hover .contact__value { color: var(--yellow-deep); }

/* Linhas com botão (WhatsApp / Instagram) */
.contact__row--cta { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.contact__txt { display: flex; flex-direction: column; gap: 4px; }
.contact__btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 100px;
  background: var(--ink); color: var(--cream);
  font-size: .95rem; font-weight: 600; white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.contact__btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.contact__row--cta:hover .contact__btn { background: var(--yellow); color: var(--ink); }
.contact__row--cta:hover .contact__btn svg { transform: translateX(3px); }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--ink); color: var(--cream); padding-block: 32px 18px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid rgba(251,251,239,.14); }
.footer__tag { color: rgba(251,251,239,.55); margin-top: 8px; font-size: .85rem; }
.footer__nav, .footer__social { display: flex; flex-direction: column; gap: 7px; padding-top: 4px; }
.footer__nav a, .footer__social a { color: rgba(251,251,239,.7); font-size: .88rem; width: fit-content; transition: color .2s ease; }
.footer__nav a:hover, .footer__social a:hover { color: var(--yellow); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; color: rgba(251,251,239,.5); font-size: .8rem; }
.footer__dot { color: var(--yellow); }

/* ===================================================================
   ANIMAÇÕES DE ENTRADA
   =================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVO
   =================================================================== */
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .hero__copy { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .studio__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .service { grid-template-columns: 50px 1fr; }
  .service__desc { grid-column: 2; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .mural { grid-template-columns: repeat(3, 1fr); }

  /* Modal empilha em telas menores */
  .reel-modal__dialog { flex-direction: column; gap: 18px; }
  .reel-modal__player { height: min(64vh, 560px); }
  .reel-modal__meta { max-width: min(82vw, 360px); text-align: center; }
  .reel-modal__close { top: 8px; right: 8px; }
}

@media (max-width: 620px) {
  .mural { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid .client:nth-child(3n) { border-right: 1px solid var(--line); }
  .clients-grid .client:nth-child(2n) { border-right: none; }
  .clients-grid .client { border-bottom: 1px solid var(--line) !important; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

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