/* =========================================================
   Giovanna Machado — Portfólio
   Paleta: off-white, bege, areia, marrom + terracota de destaque
   ========================================================= */

:root {
  --off-white: #F4F1EB;
  --paper:     #FBF8F3;
  --bege:      #EDE5D9;
  --areia:     #D9CAB3;
  --areia-esc: #BFAA8C;
  --marrom:    #3E2C22;
  --marrom-md: #6B5546;
  --texto:     #282320;
  --muted:     #7C6B5E;
  --linha:     #DDD2C3;
  --destaque:  #9A4A2C;   /* terracota */
  --destaque-hover: #7E3A21;

  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans:  "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 68px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .9s var(--ease);
}

img, video, iframe { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

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

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

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--marrom); color: var(--off-white);
  padding: 8px 14px; border-radius: 6px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

/* ============ CABEÇALHO ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(244, 241, 235, .9);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), transform .45s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header { border-bottom-color: var(--linha); }

.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--texto);
  display: inline-flex; align-items: baseline; gap: 10px;
}
.brand small {
  font-family: var(--sans); font-weight: 500;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}

.main-nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.main-nav a {
  position: relative;
  font-size: .9rem;
  text-decoration: none;
  color: var(--marrom-md);
  transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--destaque);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--texto); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px;
  background: var(--marrom); transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child  { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child  { top: 19.5px; transform: rotate(-45deg); }

/* ============ APRESENTAÇÃO ============ */
.intro { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(20px, 2.5vw, 32px); }

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  border-bottom: 1px solid var(--linha);
  padding-bottom: clamp(22px, 2.6vw, 32px);
}

.intro-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  line-height: .98;
  letter-spacing: -.025em;
  color: var(--marrom);
}

.intro-role {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--destaque);
  margin-bottom: 12px;
  font-weight: 500;
}
.intro-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.4;
  color: var(--marrom-md);
  max-width: 40ch;
}

.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--linha); border-radius: 50%;
  color: var(--marrom-md);
  transition: color .2s, border-color .2s, background-color .2s;
}
.social a:hover { color: var(--off-white); background: var(--marrom); border-color: var(--marrom); }
.social a.is-pending { opacity: .45; }
.social svg { width: 16px; height: 16px; }

/* ============ SEÇÕES ============ */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-videos .section-head { margin-bottom: 14px; }
.section-videos { padding-top: clamp(20px, 2.5vw, 32px); }

.section-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.section-index {
  font-size: .75rem; letter-spacing: .12em;
  color: var(--destaque); font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--marrom);
}
.section-sub {
  max-width: 60ch;
  color: var(--muted);
  margin: -8px 0 clamp(32px, 5vw, 56px);
}

/* ============ FILTROS ============ */
.filters {
  display: flex; flex-wrap: wrap; gap: 4px 2px;
  margin-bottom: clamp(24px, 3vw, 36px);
  font-size: .88rem;
}
.filter-btn {
  background: none; border: 0; cursor: pointer;
  padding: 6px 12px;
  color: var(--muted);
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.filter-btn:first-child { padding-left: 0; }
.filter-btn + .filter-btn::before {
  content: "|"; color: var(--areia); margin-right: 14px; margin-left: -2px;
}
.filter-btn:hover { color: var(--texto); }
.filter-btn.is-active { color: var(--destaque); }
.filters { position: relative; }
.filter-indicator {
  position: absolute; left: 0; top: 0; height: 1px; width: 0;
  background: var(--destaque);
  transition: transform .5s var(--ease), width .5s var(--ease), top .3s;
  pointer-events: none;
}

/* ============ GRADE DE VÍDEOS (9:16) ============ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px);
}

.video-card { display: flex; flex-direction: column; }

.video-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bege);
  border: 0; padding: 0; cursor: pointer; width: 100%;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.video-thumb:hover img { transform: scale(1.035); }

.video-thumb::after { /* leve véu para legibilidade do play */
  content: ""; position: absolute; inset: 0;
  background: rgba(43, 32, 26, 0);
  transition: background-color .3s;
}
.video-thumb:hover::after { background: rgba(43, 32, 26, .12); }

.placeholder-cover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 8px;
  padding: 16px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(191,170,140,.18) 14px 15px),
    var(--bege);
  color: var(--muted);
  text-align: left;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.placeholder-cover strong {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: 2.4rem; letter-spacing: 0; text-transform: none;
  color: var(--areia-esc); line-height: 1;
}

.play {
  position: absolute; z-index: 2;
  left: 50%; top: 50%;
  width: 58px; height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(251, 248, 243, .92);
  display: flex; align-items: center; justify-content: center;
  color: var(--marrom);
  transition: transform .35s var(--ease), background-color .25s;
}
.play svg { width: 18px; height: 18px; margin-left: 3px; }
.video-thumb:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--paper); }
.video-thumb .badge {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(251, 248, 243, .9); color: var(--marrom-md);
  padding: 3px 8px; border-radius: 999px;
}

.video-info { padding-top: 14px; }
.kicker {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--destaque); font-weight: 500;
}
.video-title {
  font-family: var(--serif);
  font-size: 1.22rem; line-height: 1.2;
  margin: 6px 0 6px;
  color: var(--texto);
}
.video-desc { font-size: .88rem; color: var(--muted); line-height: 1.5; }

.roles {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.roles li {
  font-size: .7rem; letter-spacing: .04em;
  border: 1px solid var(--linha); color: var(--marrom-md);
  padding: 2px 9px; border-radius: 999px;
}

.text-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px;
  font-size: .82rem; color: var(--marrom);
  text-decoration: none;
  border-bottom: 1px solid var(--areia);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
  align-self: flex-start;
}
.text-link:hover { color: var(--destaque); border-color: var(--destaque); }
.text-link.is-pending { color: var(--muted); border-color: transparent; cursor: default; }

/* ============ BOTÕES ============ */
.more-wrap { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 56px); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: .9rem; text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn-outline { background: transparent; border: 1px solid var(--marrom); color: var(--marrom); }
.btn-outline:hover { background: var(--marrom); color: var(--off-white); }
.btn-solid { background: var(--destaque); border: 1px solid var(--destaque); color: var(--paper); }
.btn-solid:hover { background: var(--destaque-hover); border-color: var(--destaque-hover); }

.empty-state { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.1rem; padding: 24px 0; }

/* ============ SEÇÃO EDITORIAL ============ */
.section-editorial { border-top: 1px solid var(--linha); }
.masthead {
  display: grid;
  grid-template-columns: 1fr minmax(0, 360px);
  gap: 24px; align-items: end;
  border-bottom: 2px solid var(--marrom);
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.masthead .section-head { margin-bottom: 0; }
.masthead-note { font-size: .86rem; color: var(--muted); }

.article-tools {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--linha);
}
.field { position: relative; display: block; }
.field input, .field select {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  background: var(--off-white);
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit; font-size: .88rem; color: var(--texto);
  transition: border-color .2s, background-color .2s;
}
.field select {
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%237C6B5E' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--marrom-md); background-color: var(--paper); }
.field-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.field-search input { padding-left: 40px; }
.field input::placeholder { color: var(--muted); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 52px) clamp(18px, 2.2vw, 32px);
}

.article-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border-top: 1px solid var(--linha);
  padding-top: 16px;
}
.article-card[aria-disabled="true"] { cursor: default; }

.article-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bege);
  margin-bottom: 16px;
}
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.article-card:hover .article-img img { transform: scale(1.04); }
.article-img .placeholder-cover { font-size: .66rem; }
.article-img .placeholder-cover strong { font-size: 1.8rem; }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.article-meta .veiculo { color: var(--destaque); font-weight: 500; }
.article-meta .dot { color: var(--areia-esc); }

.article-title {
  font-family: var(--serif);
  font-size: 1.32rem; line-height: 1.18;
  letter-spacing: -.01em;
  margin: 10px 0 10px;
  color: var(--texto);
  transition: color .2s;
}
.article-card:hover .article-title { color: var(--destaque); }
.article-summary {
  font-size: .88rem; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-cta {
  margin-top: 14px;
  font-size: .8rem; color: var(--marrom);
  display: inline-flex; gap: 4px;
}
.article-card:hover .article-cta { color: var(--destaque); }

/* ============ PROJETOS ESPECIAIS ============ */
.section-projects { padding-top: 0; }
.section-projects .container { border-top: 1px solid var(--linha); padding-top: clamp(56px, 8vw, 112px); }

.project-list { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 100px); }

.project {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.project:nth-child(even) { grid-template-columns: 1fr 1.45fr; }
.project:nth-child(even) .project-img { order: 2; }

.project-img {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bege);
}
.project-img img { width: 100%; height: 100%; object-fit: cover; }

.project-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.1; letter-spacing: -.015em;
  margin: 10px 0 16px;
  color: var(--marrom);
}
.project-desc { color: var(--marrom-md); max-width: 46ch; }
.project-roles-label {
  margin-top: 22px;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.project .roles { margin-top: 8px; }

/* ============ SOBRE ============ */
.section-about { border-top: 1px solid var(--linha); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.about-photo {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bege);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text p {
  color: var(--marrom-md);
  font-size: 1.04rem;
  margin-bottom: 18px;
  max-width: 58ch;
}
.about-text p:first-of-type {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.4;
  color: var(--texto);
}
.about-text .btn { margin-top: 12px; }

/* ============ CONTATO ============ */
.section-contact {
  background: var(--marrom);
  color: var(--off-white);
  text-align: center;
}
.section-contact .section-index { color: var(--areia); }
.contact-title {
  font-family: var(--serif);
  font-weight: 300; font-style: italic;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1; letter-spacing: -.02em;
  margin: 18px 0 clamp(32px, 4vw, 48px);
}
.contact-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px 40px;
}
.contact-list a, .contact-list span {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--bege);
  font-size: .98rem;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(217, 202, 179, .35);
  transition: color .2s, border-color .2s;
}
.contact-list a:hover { color: var(--paper); border-color: var(--paper); }
.contact-list span { opacity: .6; border-bottom-style: dashed; }
.contact-list svg { width: 16px; height: 16px; }

/* ============ RODAPÉ ============ */
.site-footer { background: var(--marrom); color: var(--areia); font-size: .8rem; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 24px;
}
.site-footer { border-top: 1px solid rgba(217, 202, 179, .18); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

/* ============ PLAYER ============ */
.player {
  border: 0; padding: 0; margin: auto;
  background: transparent;
  max-width: none; max-height: none;
  width: 100%; height: 100%;
}
.player::backdrop { background: rgba(30, 22, 17, .86); backdrop-filter: blur(4px); }
.player[open] { display: flex; align-items: center; justify-content: center; animation: fade .3s var(--ease); }
.player-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  max-height: 100%; padding: 56px 16px 24px;
}
.player-frame {
  height: min(78vh, 760px);
  aspect-ratio: 9 / 16;
  max-width: calc(100vw - 32px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #120d0a;
}
.player-frame.is-wide { aspect-ratio: 16 / 9; height: auto; width: min(90vw, 1100px); }
.player-frame iframe, .player-frame video { width: 100%; height: 100%; border: 0; }
.player-frame video { object-fit: contain; background: #000; }
.player-message {
  height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 10px; padding: 24px; text-align: center;
  color: var(--areia); font-family: var(--serif); font-size: 1.15rem;
}
.player-message small { font-family: var(--sans); font-size: .8rem; color: var(--areia-esc); }
.player-meta { margin-top: 14px; text-align: center; color: var(--bege); }
.player-title { font-family: var(--serif); font-size: 1.1rem; }
.player-link { display: inline-block; margin-top: 4px; font-size: .82rem; color: var(--areia); }
.player-link:hover { color: var(--paper); }
.player-link[hidden] { display: none; }
.player-close {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  color: var(--bege);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background-color .2s;
}
.player-close:hover { background: rgba(255,255,255,.08); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ============ ANIMAÇÕES DE ROLAGEM ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.card-in { animation: cardIn .7s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

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

/* ============ RESPONSIVO ============ */
@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-tools { grid-template-columns: 1fr 1fr 1fr; }
  .field-search { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }

  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--linha);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav a { font-family: var(--serif); font-size: 1.4rem; padding: 10px 0; color: var(--marrom); border-bottom: 1px solid var(--linha); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }

  .intro-grid { grid-template-columns: 1fr; gap: 16px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead { grid-template-columns: 1fr; gap: 8px; }

  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-img { order: 0; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 440px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .filters {
    flex-wrap: nowrap; overflow-x: auto;
    margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; }
  .video-grid { gap: 28px 12px; }
  .video-title { font-size: 1.05rem; }
  .video-desc { font-size: .82rem; }
  .play { width: 46px; height: 46px; }
  .article-tools { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}


/* =========================================================
   V2 — ANIMAÇÕES E INTERAÇÕES
   ========================================================= */

/* barra de progresso de leitura */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: var(--destaque);
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

/* palavras que sobem dentro de uma máscara */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i) * 70ms);
}
.split.is-visible .w > span { transform: none; }

/* cards em cascata */
.reveal-card {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-card.is-visible { opacity: 1; transform: none; }

/* imagens que se revelam como uma cortina */
.clip-reveal { background: transparent !important; }
.clip-reveal > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); background-color: var(--bege); }
.clip-reveal.is-visible > * { clip-path: inset(0 0 0 0); }
.about-photo.clip-reveal > * { position: absolute; inset: 0; }
.parallax { position: absolute; inset: 0; transform: scale(1.04); will-change: transform; }
.parallax img { width: 100%; height: 100%; object-fit: cover; }

/* troca de filtro */
.video-grid, .article-grid { transition: opacity .22s var(--ease), transform .22s var(--ease); }
.is-switching { opacity: 0; transform: translateY(8px); }

/* faixa de funções */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--linha);
  padding: clamp(18px, 2.4vw, 30px) 0;
  white-space: nowrap;
  user-select: none;
}
.marquee-track { display: inline-flex; align-items: center; will-change: transform; }
.marquee span {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1; letter-spacing: -.02em;
  color: var(--marrom);
  padding: 0 clamp(16px, 2vw, 32px);
}
.marquee span:nth-of-type(even) { font-style: italic; color: var(--areia-esc); }
.marquee i { font-style: normal; color: var(--destaque); font-size: clamp(.8rem, 1.4vw, 1.2rem); }

/* indicador de seção */
.section-indicator {
  position: fixed; left: 22px; bottom: 28px; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  writing-mode: vertical-rl; transform-origin: center;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--marrom-md);
  opacity: 0; transform: rotate(180deg) translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), color .4s;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.section-indicator.is-on { opacity: 1; transform: rotate(180deg); }
.section-indicator.is-dark { color: var(--areia); }
.section-indicator .ind-line { height: 28px; width: 1px; background: currentColor; opacity: .5; }

/* cursor com rótulo */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90;
  pointer-events: none;
  opacity: 0; transition: opacity .25s;
}
.cursor.is-shown { opacity: 1; }
.cursor-label {
  position: absolute; left: 0; top: 0;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--destaque); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  transform: scale(0);
  transition: transform .35s var(--ease);
}
.cursor.is-active .cursor-label { transform: scale(1); }
.has-cursor [data-cursor] { cursor: none; }
.has-cursor [data-cursor]:hover .play { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.play { transition: transform .35s var(--ease), background-color .25s, opacity .3s; }

/* botões magnéticos */
[data-magnetic] { transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s; }

/* copiar e-mail */
.copy-email {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid rgba(217, 202, 179, .4);
  color: var(--bege); border-radius: 999px;
  padding: 10px 20px; font-size: .84rem; cursor: pointer;
}
.copy-email:hover { background: var(--bege); color: var(--marrom); }
.copy-email.is-done { background: var(--destaque); border-color: var(--destaque); color: var(--paper); }

/* projetos: títulos acompanham a cortina */
.project-title.reveal { transition-delay: .25s; }

@media (max-width: 1240px) {
  .section-indicator { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .split .w > span, .reveal-card, .clip-reveal > * { transform: none !important; opacity: 1 !important; clip-path: none !important; transition: none !important; }
  .parallax { transform: none; }
}

/* ---------- ajustes finos de responsividade (v2) ---------- */
@media (max-width: 860px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters {
    flex-wrap: nowrap; overflow-x: auto;
    margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; }
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* matérias em lista editorial: imagem pequena ao lado do texto */
  .article-grid { grid-template-columns: 1fr; gap: 0; }
  .article-card {
    display: grid; grid-template-columns: 112px 1fr; column-gap: 16px;
    padding: 18px 0; border-top: 1px solid var(--linha);
  }
  .article-card > * { grid-column: 2; }
  .article-img { grid-column: 1; grid-row: 1 / span 4; margin: 0; aspect-ratio: 1 / 1; align-self: start; }
  .article-img .placeholder-cover { padding: 10px; font-size: .55rem; }
  .article-img .placeholder-cover strong { font-size: 1.3rem; }
  .article-title { font-size: 1.12rem; margin: 6px 0; }
  .article-summary { -webkit-line-clamp: 2; font-size: .84rem; }
  .article-cta { margin-top: 8px; }
  .marquee span { font-size: 2.2rem; }
}
.parallax .placeholder-cover { padding: 6% 8%; }


/* =========================================================
   V3 — PRIMEIRA TELA (referência enviada)
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.hero::after { /* linha inferior */
  content: ""; position: absolute; bottom: 0;
  left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--linha);
}
.hero-kicker {
  font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: #A8664B;
  margin-bottom: clamp(24px, 3.4vw, 44px);
}
.hero-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4rem, 9vw, 7.8rem);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--texto);
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.hero-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-line > span { display: inline-block; }
.hero-line-it { font-style: italic; font-weight: 400; color: #74584A; }
.hero-role {
  font-weight: 600;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  color: var(--texto);
  margin-bottom: 14px;
}
.hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 40ch;
}
.hero .social { margin-top: clamp(28px, 3.4vw, 40px); gap: 10px; }
.hero .social a { width: 44px; height: 44px; color: #74584A; border-color: var(--areia); }
.hero .social a.is-pending { opacity: 1; }
.hero .social a:hover { color: var(--off-white); background: #74584A; border-color: #74584A; }
.hero .social svg { width: 17px; height: 17px; }

.hero-aside {
  display: flex; align-items: center; gap: 18px;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}
.hero-aside span { writing-mode: vertical-rl; transform: rotate(180deg); }
.hero-aside i { display: block; width: 1px; height: 96px; margin-top: 52px; background: #A8664B; transform-origin: top; }

/* entrada da primeira tela */
.motion-ready .hero-line > span { transform: translateY(105%); animation: heroUp 1.1s var(--ease) forwards; animation-delay: calc(var(--d) * 120ms + 100ms); }
.motion-ready .hero-in { opacity: 0; transform: translateY(14px); animation: heroIn .9s var(--ease) forwards; animation-delay: calc(var(--d) * 120ms + 100ms); }
.motion-ready .hero-aside i { transform: scaleY(0); animation: heroLine 1.2s var(--ease) 1s forwards; }
@keyframes heroUp { to { transform: none; } }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes heroFade { to { opacity: 1; } }
@keyframes heroLine { to { transform: scaleY(1); } }

.section-videos { padding-top: clamp(56px, 7vw, 96px); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-aside { display: none; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .hero-line > span, .motion-ready .hero-in, .motion-ready .hero-aside i { animation: none; opacity: 1; transform: none; }
}
/* dobra do envelope acompanha o fundo */
.contact-list svg path[stroke="#F4F1EB"] { stroke: var(--marrom); }
.hero .social a:hover svg path[stroke="#F4F1EB"] { stroke: #74584A; }
/* barra de busca se ajusta ao número de filtros visíveis */
.article-tools { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.article-tools .field-search { grid-column: span 2; }
@media (max-width: 560px) { .article-tools .field-search { grid-column: 1 / -1; } }
/* projeto com vídeo */
button.project-img { display: block; width: 100%; border: 0; padding: 0; cursor: pointer; font: inherit; }
.project-img .play { width: 72px; height: 72px; }
.project-img .play svg { width: 22px; height: 22px; }
.project-img.is-playable:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.clip-reveal > .play { clip-path: none; background-color: rgba(251, 248, 243, .92); }
.player-frame.is-wide { width: min(90vw, 1100px, calc(76vh * 16 / 9)); }
/* cabeçalho só com o menu */
.header-inner { justify-content: flex-end; }
.hero { grid-template-columns: minmax(0, 1fr); }

/* vídeos dentro de um projeto (ex.: CNN Review) */
.project-videos {
  grid-column: 1 / -1; order: 3;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px) clamp(12px, 1.6vw, 22px);
  margin-top: clamp(8px, 2vw, 24px);
}
.project-videos .video-title { font-size: 1.02rem; }
.project-videos .reveal-card { opacity: 1; transform: none; }
.video-thumb.is-static { cursor: default; }
.video-thumb.is-static:hover img { transform: none; }
.video-thumb.is-static:hover::after { background: transparent; }
@media (max-width: 1100px) { .project-videos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .project-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.project-desc + .project-desc { margin-top: 12px; }
.project.no-media, .project.no-media:nth-child(even) { grid-template-columns: 1fr; }
.project.no-media .project-desc { max-width: 72ch; }
.project-videos-label {
  grid-column: 1 / -1; order: 3; margin-top: clamp(4px, 1vw, 12px);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.project-videos-label + .project-videos { margin-top: 0; }
/* texto do projeto vem antes do vídeo/imagem */
.project:not(.no-media), .project:not(.no-media):nth-child(even) { grid-template-columns: 1fr 1.45fr; }
.project:not(.no-media) .project-img { order: 2; }
@media (max-width: 860px) {
  .project:not(.no-media), .project:not(.no-media):nth-child(even) { grid-template-columns: 1fr; }
}
/* foto do Sobre mim menor */
.about-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.about-photo { width: 100%; max-width: 340px; justify-self: center; aspect-ratio: 3 / 4; }
@media (max-width: 860px) { .about-photo { max-width: 280px; justify-self: start; } }
/* Sobre mim: retrato e foto de bastidores, uma embaixo da outra */
.about-collage { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 300px; justify-self: center; }
.about-collage .about-photo { width: 100%; max-width: none; justify-self: auto; }
.about-photo-2 { margin: 0; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; }
.about-photo-2 img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .about-collage { max-width: 280px; justify-self: start; } }
