/* =====================================================================
   Roberta Miranda — site público
   Paleta: #322D32 (base) · #7678DD (destaque, editável no painel) · #F34731 (ação).
   ===================================================================== */

:root {
  --bg: #322D32;
  --bg-2: #2B272B;
  --surface: #3A343A;
  --surface-2: #443D44;
  --ink: #231F23;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #F7F3F5;
  --muted: #B4ABB2;
  --dim: #857C83;
  --accent: #7678DD;
  --accent-2: #F34731;
  --accent-text: #989AE5;
  --accent-text: color-mix(in srgb, var(--accent) 75%, #fff);

  --display: 'Syne', system-ui, sans-serif;
  --body: 'Syne', system-ui, sans-serif;
  --mono: 'Syne', system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* Textura de granulado sutil */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn .ico { transition: transform .4s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-light { background: var(--accent-2); color: var(--ink); }
.btn-light:hover { background: var(--text); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { height: 40px; padding: 0 18px; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(50, 45, 50, .8);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--text); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.05rem;
}
.brand-name { font-size: 1.02rem; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: block; padding: 8px 14px; border-radius: 999px; font-size: .9rem; color: var(--muted);
  transition: color .3s, background .3s;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02);
}
.lang-switch a {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  padding: 5px 9px; border-radius: 999px; color: var(--muted); transition: all .3s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { background: var(--text); color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-1 { width: 520px; height: 520px; right: -120px; top: -80px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); animation: drift 18s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; left: -160px; bottom: -120px; background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 70%); animation: drift 22s ease-in-out infinite reverse; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.08); } }

.hero-grid > *, .pf-hero-grid > *, .split > * { min-width: 0; }
.hero-copy, .section-head, .pf-hero-info { container-type: inline-size; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted);
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 var(--accent-2); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-name {
  margin: 28px 0 26px;
  font-size: clamp(2.4rem, 7vw, 7rem); font-size: clamp(2.4rem, 14.5cqi, 7.5rem);
  font-weight: 800; line-height: .95; letter-spacing: -.045em; overflow-wrap: normal; word-break: normal;
}
.hero-name span { display: block; }
.hero-name .outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero-headline { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 600; line-height: 1.25; max-width: 32ch; letter-spacing: -.01em; }
.hero-bio { color: var(--muted); max-width: 54ch; margin-top: 18px; font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-social { margin-top: 34px; }

.social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-row a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--muted); transition: all .35s var(--ease);
}
.social-row a:hover { color: var(--ink); background: var(--text); border-color: var(--text); transform: translateY(-2px); }
.social-row-sm a { width: 36px; height: 36px; }
.social-row-sm .ico { width: 1rem; height: 1rem; }

.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 440px; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 240px 240px var(--radius) var(--radius);
  overflow: hidden; background: var(--surface); border: 1px solid var(--line);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.portrait:hover img { transform: scale(1.03); }
.portrait-initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 9rem; font-weight: 800; color: var(--surface-2); -webkit-text-stroke: 1px var(--line-2); }
.portrait-ring { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 -120px 120px -60px rgba(50,45,50,.75); pointer-events: none; }
.float-badge {
  position: absolute; left: -28px; bottom: 36px; display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; font-size: .85rem;
  background: rgba(58,52,58,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2);
  animation: float 6s ease-in-out infinite;
}
.float-badge .ico { color: var(--accent-2); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid var(--line-2); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--text); animation: scroll 2s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 32px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 600; white-space: nowrap; color: var(--text); }
.marquee-track i { font-style: normal; color: var(--accent-2); align-self: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-index { display: inline-block; font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; color: var(--accent-text); margin-bottom: 18px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(2rem, 5vw, 4.6rem); font-size: clamp(2rem, 10.5cqi, 4.6rem); font-weight: 800; letter-spacing: -.04em; overflow-wrap: normal; word-break: normal; }
.section-head p { color: var(--muted); margin-top: 18px; max-width: 42ch; font-size: 1.05rem; }
.section-head.row { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: end; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head.row .section-index { grid-column: 1 / -1; }
.section-head.row h2 { grid-column: 1; }
.section-head.row p { grid-column: 2; justify-self: end; text-align: right; margin: 0; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.sticky { position: sticky; top: calc(var(--header-h) + 40px); }

/* ---------- Timeline ---------- */
.timeline { border-top: 1px solid var(--line); }
.timeline-item {
  display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line);
  position: relative; transition: padding .5s var(--ease);
}
.timeline-item::before {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--accent-2); transition: width .8s var(--ease);
}
.timeline-item:hover::before { width: 100%; }
.timeline-period { font-family: var(--mono); font-size: .8rem; color: var(--muted); padding-top: 8px; letter-spacing: .04em; }
.timeline-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; }
.timeline-company { color: var(--accent-text); margin-top: 6px; font-weight: 600; }
.timeline-desc { color: var(--muted); margin-top: 14px; max-width: 60ch; }
.timeline-head { display: flex; align-items: center; gap: 18px; }
.timeline-logo {
  flex: 0 0 auto; width: 68px; height: 68px; padding: 10px; border-radius: var(--radius-sm);
  background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-2); transition: transform .5s var(--ease);
}
.timeline-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.timeline-item:hover .timeline-logo { transform: scale(1.06) rotate(-2deg); }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.skill-group {
  padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .4s, transform .5s var(--ease);
}
.skill-group:hover { border-color: var(--line-2); transform: translateY(-4px); }
.skill-group h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.3rem; margin-bottom: 22px; }
.skill-group h3 span { font-family: var(--mono); font-size: .75rem; color: var(--dim); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 15px; border-radius: 999px; font-size: .88rem; border: 1px solid var(--line-2); color: #E6E0E4;
  transition: all .3s;
}
.chips li:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ---------- Cards de portfólio ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pf-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .4s, transform .6s var(--ease);
}
.pf-card:hover { border-color: var(--line-2); transform: translateY(-6px); }
.pf-card-media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--surface-2); display: block; }
.pf-card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85); transition: transform 1s var(--ease), filter .8s var(--ease); }
.pf-card:hover .pf-card-media img { transform: scale(1.06); filter: grayscale(0); }
.pf-card-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 6rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.pf-card-arrow {
  position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-2); color: var(--ink);
  transform: scale(.6) rotate(-45deg); opacity: 0; transition: all .5s var(--ease);
}
.pf-card:hover .pf-card-arrow { transform: scale(1) rotate(0); opacity: 1; }
.pf-card-body { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.pf-card-role { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.pf-card-company { font-size: 1.75rem; margin-top: 8px; letter-spacing: -.03em; }
.pf-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 24px; flex-wrap: wrap; }
.pf-card-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; padding: 10px 0; margin-left: auto; position: relative; }
.pf-card-cta::after { content: ''; position: absolute; left: 0; bottom: 6px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.pf-card-cta:hover::after { transform: scaleX(1); transform-origin: left; }
.pf-card-cta .ico { transition: transform .4s var(--ease); }
.pf-card-cta:hover .ico { transform: translateX(4px); }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  list-style: none; display: grid; grid-template-columns: 50px 1fr 40px; align-items: center; gap: 12px;
  padding: 28px 0; cursor: pointer;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-num { font-family: var(--mono); font-size: .8rem; color: var(--dim); }
.acc-title { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; }
.acc-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .5s var(--ease), background .3s, color .3s; }
.acc-item[open] .acc-icon { transform: rotate(45deg); background: var(--accent-2); border-color: var(--accent-2); color: var(--ink); }
.acc-body { padding: 0 52px 30px 62px; color: var(--muted); }

/* ---------- Contato ---------- */
.contact { padding-top: clamp(70px, 10vw, 130px); }
.contact-card {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 10px); padding: clamp(36px, 7vw, 90px);
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 55%), radial-gradient(90% 90% at 0% 100%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.contact-title { font-size: clamp(2.8rem, 9vw, 7.5rem); overflow-wrap: normal; word-break: normal; font-weight: 800; letter-spacing: -.05em; line-height: .92; max-width: 12ch; }
.contact-text { color: var(--muted); margin-top: 24px; font-size: 1.1rem; max-width: 46ch; }
.contact-email {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 42px;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 3.4vw, 2.4rem); letter-spacing: -.02em;
  border-bottom: 1px solid var(--line-2); padding-bottom: 6px; word-break: break-all; transition: color .3s, border-color .3s;
}
.contact-email:hover { color: var(--accent-2); border-color: var(--accent-2); }
.contact-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 48px; }
.contact-link {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(43,39,43,.5); transition: all .4s var(--ease); min-width: 0;
}
.contact-link .ico { width: 22px; height: 22px; color: var(--accent-text); }
.contact-link span { display: flex; flex-direction: column; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.contact-link small { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-link:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); transform: translateY(-3px); }
.cv-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; margin-top: clamp(60px, 8vw, 100px); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; font-family: var(--display); }
.footer-brand small { color: var(--muted); font-size: .82rem; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; transition: color .3s; }
.to-top:hover { color: var(--text); }

/* ---------- Página de portfólio ---------- */
.pf-hero { position: relative; padding: calc(var(--header-h) + 36px) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 36px; transition: color .3s, gap .3s; position: relative; }
.back-link:hover { color: var(--text); gap: 12px; }
.pf-hero-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.pf-hero-cover { position: relative; aspect-ratio: 4/3.4; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.pf-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.pf-role { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-text); }
.pf-company { font-size: clamp(1.6rem, 6vw, 6.4rem); font-size: clamp(1.6rem, 11cqi, 6.4rem); overflow-wrap: normal; word-break: normal; hyphens: manual; max-width: 100%; font-weight: 800; letter-spacing: -.05em; line-height: .92; margin-top: 14px; }
.pf-period { color: var(--muted); font-family: var(--mono); font-size: .85rem; margin-top: 16px; }
.pf-summary { color: var(--muted); margin-top: 22px; max-width: 56ch; font-size: 1.05rem; }
.pf-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pf-socials a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: .88rem; color: #E6E0E4; transition: all .3s;
}
.pf-socials a:hover { background: var(--text); color: var(--ink); border-color: var(--text); }
.pf-stats { display: flex; gap: 40px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.pf-stats strong { display: block; font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.pf-stats span { color: var(--muted); font-size: .85rem; }

.pf-content { padding-top: clamp(40px, 6vw, 70px); }
.tabs { position: relative; display: inline-flex; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 40px; }
.tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .35s; }
.tab.is-active { color: var(--ink); }
.tab-count { font-family: var(--mono); font-size: .72rem; opacity: .7; }
.tab-indicator { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; border-radius: 999px; background: var(--text); transition: transform .5s var(--ease), width .5s var(--ease); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.masonry { columns: 3 300px; column-gap: 16px; }
.masonry-item { break-inside: avoid; margin: 0 0 16px; }
.masonry-btn { display: block; width: 100%; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); cursor: zoom-in; position: relative; }
.masonry-btn img { width: 100%; height: auto; transition: transform .9s var(--ease), opacity .4s; }
.masonry-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.45)); opacity: 0; transition: opacity .4s; }
.masonry-btn:hover img { transform: scale(1.04); }
.masonry-btn:hover::after { opacity: 1; }
.masonry-item figcaption, .video-card figcaption { color: var(--muted); font-size: .86rem; padding: 10px 4px 0; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.video-card { margin: 0; }
.video-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
}
.video-thumb img, .video-thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); filter: brightness(.8); }
.video-thumb:hover img, .video-thumb:hover video { transform: scale(1.05); }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(243,241,238,.92); color: var(--ink); transition: transform .5s var(--ease), background .3s;
}
.video-play .ico { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.video-thumb.is-link .video-play .ico { fill: none; margin: 0; }
.video-thumb:hover .video-play { transform: scale(1.12); background: var(--accent-2); }
.video-link-label { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: .85rem; color: var(--muted); }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 80px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty-state .ico { width: 32px; height: 32px; color: var(--dim); }

.notfound { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding-top: var(--header-h); }
.notfound-code { font-family: var(--display); font-size: clamp(6rem, 20vw, 14rem); font-weight: 800; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.notfound p { color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(30,27,30,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; padding: 70px 80px; animation: fadeIn .3s; }
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lb-stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 170px); width: auto; height: auto; border-radius: 10px; object-fit: contain; }
.lb-stage .lb-frame { width: min(1100px, 86vw); aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.lb-stage .lb-frame.is-vertical { width: auto; height: min(80svh, 760px); aspect-ratio: 9/16; }
.lb-stage iframe, .lb-stage video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.lb-stage figcaption { color: var(--muted); font-size: .9rem; text-align: center; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(58,52,58,.7); transition: all .3s; }
.lb-btn:hover { background: var(--text); color: var(--ink); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -25px; }
.lb-next { right: 18px; top: 50%; margin-top: -25px; }
.lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .8rem; color: var(--muted); }
body.no-scroll { overflow: hidden; }

/* ---------- Animação de entrada ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0; padding: calc(var(--header-h) + 30px) var(--gutter) 40px;
    background: rgba(43,39,43,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { background: transparent; border-color: transparent; backdrop-filter: none; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { font-family: var(--display); font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 700; color: var(--text); padding: 10px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .nav-mobile-extra { display: block; }
  .nav-toggle { display: block; }
  .hide-mobile { display: none; }
  .hero-grid, .pf-hero-grid, .split { grid-template-columns: 1fr; }
  .hero { padding-bottom: 110px; }
  .hero-visual { justify-self: start; max-width: 380px; order: -1; }
  .hero-name { margin-top: 22px; }
  .sticky { position: static; }
  .section-head.row { grid-template-columns: 1fr; }
  .section-head.row p { grid-column: 1; justify-self: start; text-align: left; margin-top: 16px; }
  .float-badge { left: auto; right: -10px; }
}
@media (max-width: 640px) {
  .brand-name { display: none; }
  .pf-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-period { padding: 0; }
  .timeline-logo { width: 54px; height: 54px; padding: 8px; }
  .timeline-head { gap: 14px; }
  .acc-item summary { grid-template-columns: 34px 1fr 40px; }
  .acc-body { padding: 0 0 26px 46px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact-title { font-size: clamp(1.8rem, 8vw, 3rem); max-width: none; }
  .hero-visual { max-width: 300px; }
  .lightbox { padding: 64px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; margin: 0; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 12px 10px; }
  .pf-stats { gap: 28px; }
  .video-grid { grid-template-columns: 1fr; }
  .lang-switch a { padding: 5px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}