/* ============================================================
   Murillo Abreu — Portfólio (redator criativo)
   Base do sistema visual reaproveitada; tema em papel + serifada.
   ============================================================ */

:root {
  --bg: #f3f0ea;          /* papel quente */
  --bg-soft: #f7f5f0;     /* papel claro (cards/veil) */
  --bg-alt: #e8e3da;      /* bloco neutro (media placeholder) */
  --ink: #16130e;         /* preto quente */
  --ink-soft: #8a8477;    /* cinza quente */
  --line: #ddd7cb;        /* linhas */
  --accent: #2f6f6b;      /* teal discreto (links/ativo) */
  --accent-soft: #6ba39e;
  --maxw: 1760px;
  --readw: 1180px;
  --gut: clamp(18px, 3.5vw, 56px);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Sora", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }

/* textura sutil de papel/mármore no topo, atrás do header */
.top-veil {
  position: fixed; inset: 0 0 auto 0; height: 340px; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 140% at 50% -30%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, var(--bg-soft) 0%, rgba(243,240,234,0) 100%);
}
.top-veil::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='340'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.009 0.016' numOctaves='2' seed='11'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

.display { font-family: var(--sans); font-weight: 500; letter-spacing: -.02em; }
.serif { font-family: var(--serif); }

.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* ----------------------------- HEADER ----------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 24px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(247,245,240,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: 15px 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex-direction: column; gap: 4px; color: var(--ink); line-height: 1; }
.brand-name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: .005em; line-height: .9;
}
.brand-role {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(.6rem, .78vw, .72rem); letter-spacing: .12em;
  text-transform: lowercase; color: var(--ink); line-height: 1;
}
.nav-menu { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-menu a {
  font-size: .9rem; font-weight: 500; letter-spacing: .01em;
  position: relative; padding: 6px 2px; color: var(--ink-soft); transition: color .3s var(--ease);
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent);
  transition: width .35s var(--ease);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); }
.nav-menu a.active { color: var(--accent); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.hamburger { display: none; width: 30px; height: 18px; position: relative; background: none; border: 0; cursor: pointer; }
.hamburger span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--ink); transition: .3s var(--ease); }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

/* ----------------------------- HOME HERO ----------------------------- */
.home-hero { padding: clamp(128px, 18vh, 188px) 0 clamp(24px, 4vh, 44px); position: relative; z-index: 2; }
.home-hero-eyebrow { display: block; margin-bottom: 20px; }
.home-hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: 1.03; letter-spacing: 0;
  max-width: 20ch;
}
.home-hero-title em { font-style: italic; color: var(--ink-soft); }
.home-hero-sub { margin-top: 22px; max-width: 54ch; color: var(--ink-soft); font-size: 1.04rem; }

/* ----------------------------- WORK GRID ----------------------------- */
.work { padding: clamp(20px, 4vh, 48px) 0 0; position: relative; z-index: 2; }
.work .wrap { max-width: none; padding: 0; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.card { display: block; }
.card-media {
  position: relative; overflow: hidden; background: var(--bg-alt);
  aspect-ratio: 16 / 10;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card-media.fit { background: #0a1826; }
.card-media.fit img { object-fit: contain; }
.card-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(17,17,16,0);
  transition: background .55s var(--ease); pointer-events: none;
}
.card:hover .card-media::after { background: rgba(17,17,16,.22); }
.card-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s var(--ease); pointer-events: none;
}
.card:hover .card-video { opacity: 1; }
.card:hover .card-media img { transform: scale(1.04); }
.card-info {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 12px; padding: clamp(20px, 4vw, 48px);
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.card:hover .card-info { opacity: 1; transform: none; }
.card-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.1;
  letter-spacing: .01em; color: #fff; max-width: 22ch;
}
.card-client { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.8); font-weight: 600; }

/* ----------------------------- SUBPÁGINAS ----------------------------- */
.subpage { padding-top: clamp(120px, 16vh, 168px); position: relative; z-index: 2; }
.subpage .about, .subpage .contact { padding-top: 0; border-top: 0; }

/* ----------------------------- ABOUT / SOBRE MIM ----------------------------- */
.about { padding: clamp(20px, 4vh, 50px) 0 clamp(60px, 10vh, 110px); }
.about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-photo { border-radius: 3px; overflow: hidden; background: var(--bg-alt); aspect-ratio: 4/5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
/* placeholder de foto (enquanto não há retrato) */
.photo-ph {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.018) 0 14px, rgba(0,0,0,0) 14px 28px),
    var(--bg-alt);
  color: var(--ink-soft);
}
.photo-ph svg { width: 42px; height: 42px; opacity: .5; }
.photo-ph span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.about-body .ola { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: .01em; margin-bottom: 26px; }
.facts { list-style: none; margin-bottom: 26px; }
.facts li { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--ink); }
.facts li b { font-weight: 600; }
.about-body p { color: var(--ink-soft); max-width: 54ch; margin-bottom: 18px; font-size: 1.05rem; }
.about-body p.lead-note { color: var(--ink); }
.about-contact { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.about-contact h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin-bottom: 14px; }
.about-contact a { color: var(--accent); position: relative; }
.about-contact a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.about-contact a:hover::after { transform: scaleX(1); }
.about-contact .row { margin-bottom: 8px; color: var(--ink-soft); }

/* ----------------------------- PROJETOS PESSOAIS ----------------------------- */
.pp { padding: clamp(6px, 2vh, 24px) 0 clamp(50px, 9vh, 100px); position: relative; z-index: 2; }
.pp .wrap { max-width: var(--readw); }
.pp-lead { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.18; letter-spacing: .005em; max-width: 24ch; }
.pp-text { font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--ink-soft); max-width: 52ch; margin-top: 22px; }
.caderno-card {
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(240px, 40vh, 380px); margin: clamp(36px, 6vh, 64px) 0;
  border: 1px solid var(--line); background: var(--bg-soft);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.caderno-card:hover { background: #fbfaf6; border-color: var(--accent-soft); transform: translateY(-2px); }
.caderno-card .cc-in { text-align: center; padding: 24px; }
.caderno-card .cc-title { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 6vw, 4.4rem); letter-spacing: .16em; line-height: 1; }
.caderno-card .cc-cta { display: inline-block; margin-top: 22px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; font-family: var(--sans); }
.pp-close { font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink); }
.pp-close a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------- CADERNO ABERTO (livro) ----------------------------- */
.book { max-width: 720px; margin: 0 auto; padding: clamp(112px, 15vh, 158px) 0 clamp(60px, 10vh, 110px); position: relative; z-index: 2; }
.book-back { display: inline-block; margin-bottom: clamp(30px, 5vh, 56px); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-family: var(--sans); }
.book-back:hover { color: var(--accent); }
.book-title { font-family: var(--serif); font-weight: 500; text-align: center; font-size: clamp(2.3rem, 8vw, 4.2rem); letter-spacing: .16em; line-height: 1; }
.book-sub { font-family: var(--serif); font-style: italic; text-align: center; color: var(--ink-soft); font-size: clamp(1.1rem, 2.2vw, 1.5rem); margin-top: 10px; }
.book-rule { width: 44px; height: 1px; background: var(--ink-soft); margin: clamp(30px, 5vh, 48px) auto; opacity: .6; }
.book-manifesto { text-align: center; font-family: var(--serif); }
.book-manifesto b { display: block; font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.book-manifesto span { display: block; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--ink-soft); margin-top: 4px; }
.book-sumario { text-align: center; margin: clamp(20px, 4vh, 36px) 0 clamp(40px, 7vh, 72px); }
.book-sumario h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 16px; }
.book-sumario ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.book-sumario a { font-family: var(--serif); font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); transition: text-decoration-color .3s var(--ease); }
.book-sumario a:hover { text-decoration-color: var(--accent); color: var(--accent); }
.poem { display: grid; grid-template-columns: 56px 1fr; gap: clamp(16px, 3vw, 34px); padding: clamp(34px, 6vh, 60px) 0; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.poem-num { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--ink); line-height: 1.1; }
.poem-num::after { content: ""; display: block; width: 22px; height: 1px; background: var(--ink-soft); margin-top: 12px; opacity: .5; }
.poem-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: .005em; margin-bottom: 22px; }
.poem-body { font-family: var(--serif); font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.5; color: var(--ink); }
.poem-body p { margin-bottom: 1.15em; }
.poem-body em { font-style: italic; }
.book-end { text-align: center; font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: clamp(1.1rem, 2vw, 1.35rem); margin-top: clamp(40px, 7vh, 70px); padding-top: clamp(30px, 5vh, 48px); border-top: 1px solid var(--line); }

/* ----------------------------- PÁGINAS DE PROJETO ----------------------------- */
.project { padding: clamp(112px, 15vh, 150px) 0 clamp(40px, 7vh, 80px); position: relative; z-index: 2; }
.project > .wrap { max-width: 1220px; }
.project-back { display: inline-block; margin-bottom: clamp(28px, 4vh, 46px); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.project-back:hover { color: var(--accent); }
.project-hero .eyebrow { display: block; margin-bottom: 16px; }
.project-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 5.8vw, 4.8rem); line-height: 1.02; letter-spacing: .005em; max-width: 20ch; }
.project-lead { color: var(--ink-soft); max-width: 62ch; margin-top: 24px; font-size: clamp(1.02rem, 1.3vw, 1.16rem); }
.project-meta { display: flex; flex-wrap: wrap; gap: 24px 56px; margin-top: clamp(34px, 5vh, 50px); padding-top: 30px; border-top: 1px solid var(--line); }
.project-meta-item { display: flex; flex-direction: column; gap: 7px; }
.project-meta-label { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.project-meta-value { font-family: var(--sans); font-weight: 500; font-size: 1.02rem; }
.project-feature { margin: clamp(36px, 6vh, 72px) 0; }
.project-feature img { width: 100%; height: auto; display: block; background: var(--bg-alt); border-radius: 2px; }

/* diagramação editorial */
.media-stack { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 20px); margin: clamp(36px, 6vh, 72px) 0; }
.media-stack .m-2, .media-stack .m-3 { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.media-stack .m-2 { grid-template-columns: 1fr 1fr; }
.media-stack .m-3 { grid-template-columns: repeat(3, 1fr); }
.media-stack img { width: 100%; height: auto; display: block; border-radius: 2px; background: var(--bg-alt); }

.gallery { column-count: 2; column-gap: clamp(12px, 1.6vw, 20px); }
.gallery img { width: 100%; height: auto; display: block; break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 20px); border-radius: 2px; background: var(--bg-alt); }
.gallery img.full, .gallery .full { column-span: all; }

.project-next { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(60px, 10vh, 110px); padding: clamp(28px, 5vh, 48px) 0; border-top: 1px solid var(--line); }
.project-next .lbl { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.project-next a { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.6rem); letter-spacing: .005em; text-align: right; }
.project-next a:hover { color: var(--accent); }

/* vídeos de projeto */
.project-video { margin: clamp(36px, 6vh, 72px) 0; }
.project-video video { width: 100%; height: auto; display: block; background: #000; border-radius: 2px; }
.project-verticals { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 20px); margin: clamp(36px, 6vh, 72px) 0; }
.project-verticals video { width: 100%; height: auto; display: block; background: #000; aspect-ratio: 9 / 16; object-fit: cover; }

/* case narrativo */
.case-narrative { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 52px); margin: clamp(40px, 7vh, 76px) 0; padding-top: clamp(30px, 5vh, 46px); border-top: 1px solid var(--line); }
.case-block { display: flex; flex-direction: column; gap: 12px; }
.case-label { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.case-block p { color: var(--ink); font-size: clamp(.98rem, 1.2vw, 1.12rem); line-height: 1.5; max-width: 42ch; }

/* seções por conteúdo (tc-section) */
.tc-section { margin: clamp(50px, 9vh, 110px) 0; }
.tc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: clamp(24px, 4vh, 40px); border-bottom: 1px solid var(--line); }
.tc-section-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: .005em; }
.tc-section-head .count { font-size: .75rem; color: var(--ink-soft); letter-spacing: .08em; white-space: nowrap; }
.tc-lead { color: var(--ink-soft); max-width: 60ch; margin: -14px 0 clamp(24px, 4vh, 40px); font-size: 1.04rem; }
.tc-masonry { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 8px; gap: 0 clamp(12px, 1.6vw, 22px); align-items: start; }
.tc-item { grid-row-end: span 30; }
.tc-item img { width: 100%; display: block; border-radius: 2px; background: var(--bg-alt); }
.tc-video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.tc-video-grid video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; display: block; }

/* reels / grids verticais */
.reel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.reel-grid video, .reel-grid img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: #000; border-radius: 2px; cursor: pointer; }
.reels-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: clamp(12px, 2vw, 26px); }
.reels-grid video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: #000; border-radius: 4px; cursor: pointer; }
.slides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.slides-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 2px; background: var(--bg-alt); }
.static-center { max-width: 560px; margin: 0 auto; }
.static-center img { width: 100%; display: block; border-radius: 2px; background: var(--bg-alt); }
.film-vertical { max-width: 380px; margin: 0 auto; }
.film-vertical video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: #000; border-radius: 4px; cursor: pointer; }
.takes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.takes-grid video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; border-radius: 2px; cursor: pointer; }
@media (max-width: 760px) { .takes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .takes-grid { grid-template-columns: 1fr; } }

video:fullscreen { object-fit: contain !important; aspect-ratio: auto !important; width: 100% !important; height: 100% !important; background: #000; }
video:-webkit-full-screen { object-fit: contain !important; aspect-ratio: auto !important; width: 100% !important; height: 100% !important; background: #000; }

/* ----------------------------- REVEAL ----------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ----------------------------- RODAPÉ ----------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(24px, 4vh, 48px); padding: clamp(44px, 6vh, 72px) 0 clamp(30px, 4vh, 48px); position: relative; z-index: 2; }
.site-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: flex-start; }
.sf-brand { display: flex; flex-direction: column; gap: 5px; }
.sf-name { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: .005em; }
.sf-role { font-size: .7rem; letter-spacing: .12em; color: var(--ink-soft); font-weight: 600; }
.sf-links { display: flex; flex-wrap: wrap; gap: 20px; }
.sf-links a { font-size: .82rem; font-weight: 500; color: var(--ink-soft); transition: color .3s var(--ease); }
.sf-links a:hover { color: var(--accent); }
.sf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(32px, 5vh, 52px); padding-top: 22px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--ink-soft); letter-spacing: .04em; }
.sf-bottom a { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.sf-bottom a:hover { color: var(--accent); }

/* botão flutuante voltar ao topo */
.floating-top {
  position: fixed; right: clamp(16px, 3vw, 34px); bottom: clamp(16px, 3vw, 34px); z-index: 40;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg); font-size: 1.1rem; line-height: 1;
  box-shadow: 0 8px 24px rgba(17,17,16,.18); opacity: .9; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.floating-top:hover { opacity: 1; transform: translateY(-3px); }

/* ----------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 400px; }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; gap: 0; }
  .card-media { aspect-ratio: 4 / 3; }
  .card-info { position: static; inset: auto; opacity: 1; transform: none; align-items: flex-start; text-align: left; gap: 6px; padding: 12px var(--gut) 26px; }
  .card-title { color: var(--ink); font-size: 1.5rem; }
  .card-client { color: var(--ink-soft); }
  .card-media::after { display: none; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--bg-soft); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px; padding: 0 var(--gut); transform: translateX(100%); transition: transform .42s var(--ease);
    box-shadow: -20px 0 60px rgba(17,17,16,.12); z-index: 60;
  }
  .nav-menu a { font-size: 1.2rem; }
  .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(247,245,240,.98); }
  body.menu-open .nav-menu { transform: none; }
  body.menu-open .site-header { z-index: 60; }
  body.menu-open { overflow: hidden; }
  body.menu-open::before { content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(17,17,16,.38); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  .hamburger { display: block; z-index: 70; }
  body.menu-open .hamburger span:nth-child(1) { top: 8px; transform: rotate(45deg); }
  body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
  body.menu-open .hamburger span:nth-child(3) { top: 8px; transform: rotate(-45deg); }
  .case-narrative { grid-template-columns: 1fr; gap: 28px; }
  .tc-masonry { grid-template-columns: 1fr; }
  .tc-video-grid { grid-template-columns: 1fr; }
  .project-verticals { grid-template-columns: 1fr; }
  .poem { grid-template-columns: 1fr; gap: 6px; }
  .poem-num::after { display: none; }
}
@media (max-width: 680px) { .gallery { column-count: 1; } .media-stack .m-2, .media-stack .m-3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .reel-grid { grid-template-columns: repeat(3, 1fr); } .slides-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .reel-grid { grid-template-columns: repeat(2, 1fr); } .slides-grid { grid-template-columns: repeat(2, 1fr); } .reels-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; } }

/* ----------------------------- TRANSIÇÕES DE PÁGINA ----------------------------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; } }
