/* ============================================================
   Elisa Cuoco — Capa (direção: escuro / centralizado, à la Chuck Lepley)
   Claro↔escuro = flip de tokens.
   ============================================================ */

:root {
  --bg:       #eceef2;   /* cinza grafite leve, frio (puxado do fundo da foto) */
  --bg-2:     #e1e4ea;   /* faixa do hero, um tom mais fundo */
  --surface:  #fafbfd;
  --surface-2:#eef0f4;
  --line:     #d5d9e1;
  --text:     #1b212e;   /* grafite escuro */
  --text-soft:#525a68;
  --text-dim: #8a92a1;
  --accent:   #7b4c93;   /* roxo, eco da blusa */
  --accent-2: #5d3873;
  --on-accent:#ffffff;

  --sans:    'Inter', -apple-system, system-ui, sans-serif;
  --display: 'Schibsted Grotesk', 'Inter', sans-serif;

  --maxw: 1140px;
  --read: 600px;
  --gut:  clamp(1.25rem, 0.5rem + 4vw, 5rem);
  --r:    16px;
  --r-lg: 22px;
  --dur:  480ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--on-accent); }
img { max-width: 100%; display: block; }
em { font-style: normal; color: var(--accent); }

.banner { background: #000; color: var(--text-soft); font-size: 0.78rem; text-align: center; padding: 0.5rem 1rem; }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gut);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.nav__logo span { color: var(--text-dim); font-weight: 400; }
.nav__links { display: flex; gap: 1.75rem; }
.nav__links a { color: var(--text-soft); text-decoration: none; font-size: 0.9rem; transition: color var(--dur) var(--ease); }
.nav__links a:hover { color: var(--accent); }
@media (max-width: 640px) { .nav__logo span { display: none; } .nav__links { gap: 1.1rem; } }

/* ===================== HERO (centralizado) ===================== */
.hero {
  background: var(--bg-2);
  padding: clamp(3rem, 2rem + 4vw, 6rem) var(--gut);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center;
}
.hero__foto {
  position: relative; aspect-ratio: 4 / 5; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; box-shadow: 0 24px 50px -28px rgba(27,33,46,.4);
  display: grid; place-items: center; overflow: hidden;
}
.hero__foto img {
  grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; border-radius: 5px;
  object-position: 50% 78%; transform: scale(1.28); transform-origin: 50% 78%;
}
.hero__foto-ph { grid-area: 1 / 1; text-align: center; color: var(--text-dim); font-style: italic; font-size: 0.85rem; line-height: 1.5; }
.hero__foto-ph small { font-style: normal; opacity: .7; }
.hero__foto:has(img) .hero__foto-ph { display: none; }
.hero__txt { text-align: left; }
@media (max-width: 720px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; justify-items: start; }
  .hero__foto { width: 200px; }
}
.hero__h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.4rem);
  line-height: 1.12; letter-spacing: -0.025em; margin: 0; max-width: 18ch;
}
.hero__tag {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  color: var(--accent); letter-spacing: -0.01em;
  margin: 0.75rem 0 0;
}
.hero__lede { max-width: var(--read); margin: clamp(1.25rem, 1rem + 1.5vw, 2rem) 0 0; }
.hero__lede p { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); color: var(--text-soft); margin: 0 0 1rem; line-height: 1.55; }
.hero__lede strong { color: var(--text); font-weight: 600; }

.btn-pill {
  display: inline-flex; align-items: center; gap: 0.4ch;
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  padding: 0.85em 1.7em; border-radius: 100px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-pill:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: translateY(-2px); }
.btn-pill--solid { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-pill--solid:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }

/* ===================== FAIXA DE EMPRESAS ===================== */
.faixa {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
  max-width: var(--maxw); margin: 0 auto; padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--gut);
  border-bottom: 1px solid var(--line);
}
.faixa span {
  font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 0.85rem + 0.7vw, 1.35rem);
  color: var(--text-dim); letter-spacing: -0.01em; transition: color var(--dur) var(--ease);
}
.faixa:hover span { color: var(--text-soft); }

/* ===================== BLOCOS ===================== */
.bloco { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 2rem + 4vw, 6rem) var(--gut); }
.bloco__head { text-align: center; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.bloco__h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 1.3rem + 2.5vw, 3rem); letter-spacing: -0.025em; margin: 0; }
.bloco__nota { color: var(--text-soft); font-size: 0.98rem; margin: 0.75rem auto 0; max-width: 50ch; }

/* ===================== GRADE DE PROJETOS ===================== */
.grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 0.5rem + 1.5vw, 1.5rem); }
.proj {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.proj:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 24px 44px -26px rgba(27,33,46,.2); }
.proj__img { background: var(--bg-2); aspect-ratio: 16 / 10; overflow: hidden; display: flex; align-items: flex-end; padding: 1.25rem 1.25rem 0; }
.proj__img img { border-radius: 8px 8px 0 0; border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 16px 30px -18px rgba(27,33,46,.28); }
.proj__img--slot {
  align-items: center; justify-content: center; padding: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim); font-size: 0.8rem; font-style: italic; text-align: center;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(217,138,85,.05) 9px, rgba(217,138,85,.05) 10px);
}
.proj__txt { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.proj__txt h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem); margin: 0 0 0.4rem; letter-spacing: -0.02em; }
.proj__txt h3 span { font-family: var(--sans); font-weight: 500; font-size: 0.85rem; color: var(--text-dim); }
.proj__cat { margin: 0 0 1rem; color: var(--text-soft); font-size: 0.95rem; }
.proj__role { margin: 0; font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }

/* destaque (Arev, Ana): full-width, imagem ao lado */
.proj--big { grid-column: 1 / -1; flex-direction: row; }
.proj--big:nth-of-type(2) { flex-direction: row-reverse; }
.proj--big .proj__img { flex: 1.15; aspect-ratio: auto; align-items: center; }
.proj--big .proj__img img { border-radius: 8px; border-bottom: 1px solid var(--line); }
.proj--big .proj__txt { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* mini (autorais): sem imagem */
.proj--mini .proj__txt { padding: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
.proj--mini h3 { font-size: 1.3rem; }

@media (max-width: 720px) {
  .grade { grid-template-columns: 1fr; }
  .proj--big, .proj--big:nth-of-type(2) { flex-direction: column; }
  .proj--big .proj__img { padding: 1.25rem 1.25rem 0; }
}

/* ===================== EMPRESAS (cards estilo Chuck) ===================== */
.empresas { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 0.5rem + 1.5vw, 1.5rem); }
.empresas--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .empresas--4 { grid-template-columns: repeat(2, 1fr); } }

/* Painel expansível no hover (estilo galeria de fotos) */
.painel { display: flex; gap: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem); align-items: stretch; }
.painel .empresa {
  flex: 1 1 0; min-width: 0;
  transition: flex-grow 450ms var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.painel .empresa:hover { flex-grow: 2.6; transform: none; box-shadow: 0 28px 50px -28px rgba(27,33,46,.32); }
.painel .empresa__img { aspect-ratio: auto; height: clamp(170px, 16vw, 230px); }
@media (max-width: 760px) {
  .painel { flex-direction: column; }
  .painel .empresa__img { height: auto; aspect-ratio: 16 / 10; }
  .painel .empresa:hover { flex-grow: 1; }
}

/* Bloco "Trabalhos": projetos na largura padrão; empresas mais largas */
.trabalhos { padding: clamp(3rem, 2rem + 4vw, 6rem) 0; }
.trabalhos__top { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.trabalhos__wide { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1rem, 1rem + 1vw, 2.5rem); }

.divisor { display: flex; align-items: center; gap: 1.25rem; margin: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.divisor span { font-size: 0.85rem; font-weight: 300; letter-spacing: 0.05em; color: var(--text-dim); white-space: nowrap; }
.divisor::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.empresa {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: visible;
  cursor: pointer; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.empresa:hover, .empresa:focus-visible { border-color: var(--accent); outline: none; }
.empresa__img {
  aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 16%, var(--bg-2)), var(--bg-2));
  border-bottom: 1px solid var(--line);
}
.empresa__img span { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--accent-2); letter-spacing: 0.02em; }
.empresa--static { cursor: default; }
.empresa__img--shot { padding: 0; align-items: stretch; background: var(--bg-2); }
.empresa__img--shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.empresa__img--shot:has(img) span { display: none; }
.empresa__img--logo { background: #fff; }
.empresa__img--logo img { width: 100%; height: 100%; object-fit: contain; padding: 16%; }
.empresa__img--logo:has(img) span { display: none; }
.empresa__img--slot {
  color: var(--text-dim); font-size: 0.8rem; font-style: italic; text-align: center; padding: 1rem;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(217,138,85,.05) 9px, rgba(217,138,85,.05) 10px);
}
.empresa__img--slot span { font-family: var(--sans); font-size: 0.8rem; font-weight: 400; color: var(--text-dim); }

/* Painel de hover: o card cresce flutuando e mostra tudo */
.empresa__pop {
  position: absolute; top: -10px; left: -12px;
  width: calc(100% + 24px); max-height: 80vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--r-lg);
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.6rem);
  box-shadow: 0 36px 70px -30px rgba(27,33,46,.5);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease), visibility 280ms;
  z-index: 30; pointer-events: none;
}
.empresa:hover { z-index: 40; }
.empresa:hover .empresa__pop, .empresa:focus-within .empresa__pop {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
}
.pop__nome { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin: 0 0 0.1rem; letter-spacing: -0.02em; }
.pop__periodo { margin: 0 0 0.5rem; font-size: 0.72rem; font-weight: 300; letter-spacing: 0.05em; color: var(--text-dim); }
.pop__cargo { margin: 0 0 0.6rem; font-weight: 600; color: var(--accent); font-size: 0.92rem; }
.pop__sobre { margin: 0 0 0.85rem; color: var(--text-soft); font-size: 0.88rem; line-height: 1.5; }
.pop__funcoes { list-style: none; margin: 0 0 0.85rem; padding: 0; }
.pop__funcoes li { position: relative; padding: 0.3rem 0 0.3rem 1.1rem; color: var(--text-soft); font-size: 0.84rem; line-height: 1.4; border-top: 1px solid var(--line); }
.pop__funcoes li:first-child { border-top: 0; }
.pop__funcoes li::before { content: "›"; position: absolute; left: 0.15rem; color: var(--accent); font-weight: 700; }
.pop__funcoes li strong { color: #12151e; font-weight: 800; }
.pop__funcoes a { color: var(--accent); }
.pop__destaque { margin: 0; padding: 0.7rem 0.9rem; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-2); font-weight: 600; font-size: 0.85rem; }
@media (max-width: 760px) {
  .empresa__pop { position: static; width: auto; max-height: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding-top: 1rem; display: none; }
}
.empresa__nome { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin: 1.25rem 1.35rem 0.35rem; letter-spacing: -0.02em; }
.empresa--texto { padding: 0.75rem 0 1rem; }
.empresa--texto .empresa__nome { margin-top: 0.75rem; }
.empresa__periodo { margin: 0 1.35rem 0.4rem; font-size: 0.75rem; font-weight: 300; letter-spacing: 0.05em; color: var(--text-dim); }
.empresa__cat { margin: 0 1.35rem 1rem; color: var(--text-soft); font-size: 0.9rem; line-height: 1.4; }
.empresa__role { margin: 0 1.35rem 1.4rem; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); }
@media (max-width: 760px) { .empresas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .empresas { grid-template-columns: 1fr; } }

/* ===================== DEPOIMENTOS ===================== */
.depo { text-align: center; max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 2rem + 3vw, 5rem) var(--gut); border-top: 1px solid var(--line); }
.depo__aspas { font-family: var(--display); font-size: 5rem; line-height: 0.5; color: var(--accent); display: block; }
.depo__nota { color: var(--text-dim); font-style: italic; margin: 1.5rem auto 0; max-width: 44ch; }

/* ===================== CONTATO ===================== */
.contato { text-align: center; max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 2rem + 4vw, 6rem) var(--gut); }
.contato__h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); letter-spacing: -0.03em; margin: 0 0 1rem; }
.contato p { color: var(--text-soft); font-size: 1.1rem; margin: 0 auto 2rem; max-width: 44ch; }
.link-grande {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.8vw, 2.2rem);
  color: var(--accent); text-decoration: none; letter-spacing: -0.02em;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); padding-bottom: 4px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link-grande:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ===================== RODAPÉ ===================== */
.rodape {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  max-width: var(--maxw); margin: 0 auto; padding: 2rem var(--gut);
  border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--text-dim);
}

/* ===================== MODAL ===================== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.aberto { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(3px); animation: fade var(--dur) var(--ease); }
.modal__card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 2.5rem)); max-height: calc(100vh - 3rem); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: 0 40px 80px -30px rgba(27,33,46,.28);
  animation: pop var(--dur) var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.modal__x { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); color: var(--text-soft); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.modal__x:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.modal__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-right: 2rem; }
.modal__logo { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; background: var(--bg-2); color: var(--accent-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.modal__empresa { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin: 0; letter-spacing: -0.02em; }
.modal__meta { margin: 0.2rem 0 0; font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.modal__cargo { font-weight: 600; color: var(--accent); margin: 0 0 0.75rem; font-size: 1.02rem; }
.modal__sobre { color: var(--text-soft); margin: 0 0 1.5rem; font-size: 0.96rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.modal__rotulo { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); margin: 0 0 0.75rem; }
.modal__funcoes { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.modal__funcoes li { position: relative; padding: 0.4rem 0 0.4rem 1.4rem; color: var(--text-soft); font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.modal__funcoes li::before { content: "›"; position: absolute; left: 0.2rem; color: var(--accent); font-weight: 700; }
.modal__destaque { margin: 0; padding: 1rem 1.2rem; border-radius: var(--r); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-2); font-weight: 600; font-size: 0.96rem; }
.modal__destaque::before { content: "★ "; }

/* ===================== MOTION ===================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .proj:hover, .empresa:hover, .btn-pill:hover { transform: none; }
}
