/* =========================================================================
   Bia Pisciotta — Portfólio
   Layout desktop reproduz as páginas do mídia kit (1440 × 810 pt).
   Medidas em cqw = coordenada do PDF ÷ 14,4  (1cqw = 1% da largura).
   ========================================================================= */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/poppins-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/poppins-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F6F4F1;          /* fundo off-white do PDF (0.9647, 0.9569, 0.9451) */
  --paper: #FFFFFF;       /* painel branco da pág. 3 e linhas decorativas */
  --ink: #000000;
  --muted: rgba(0, 0, 0, .55);
  --hair: max(1px, .156cqw); /* traço de 2,25 pt */
  --pad: clamp(20px, 5.2vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 56px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 400; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { container-type: inline-size; overflow-x: clip; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--ink); color: var(--bg);
  padding: 10px 14px; font-size: 13px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* Tipografia base ------------------------------------------------------- */
.title { font-weight: 700; text-transform: uppercase; letter-spacing: -.0095em; line-height: 1.4; }
.title > span { display: block; }
.text { letter-spacing: .0427em; line-height: 1.3816; }
.text p + p { margin-top: 1.3816em; }
.rule { position: absolute; display: block; height: var(--hair); background: var(--paper); }

/* Fotografias: cobertura do quadro, sem filtros */
.cover__photo img, .about__photo img, .works__tile img, .tile img, .creator__avatar {
  width: 100%; height: 100%; object-fit: cover;
}

/* =========================================================================
   DESKTOP — composições fiéis às páginas (≥ 1024px)
   ========================================================================= */
@media (min-width: 1024px) {
  .page { position: relative; aspect-ratio: 1440 / 810; overflow: hidden; }

  /* 01 Capa */
  .cover__panel { position: absolute; inset: 0 auto 0 0; width: 51.535cqw; }
  .cover__line { position: absolute; left: 26cqw; width: var(--hair); background: var(--ink); transform: translateX(-50%); }
  .cover__line--top { top: 0; height: 11.306cqw; }
  .cover__line--bottom { bottom: 0; height: 11.36cqw; }
  .cover__label, .cover__name, .cover__year { position: absolute; white-space: nowrap; transform: translateX(-50%); line-height: 1.4; }
  .cover__label { top: 19.194cqw; left: 25.917cqw; font-size: 1.918cqw; letter-spacing: .039em; text-transform: uppercase; }
  .cover__name  { top: 21.764cqw; left: 26.076cqw; font-size: 5.38cqw; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
  .cover__year  { top: 29.104cqw; left: 25.92cqw;  font-size: 2.153cqw; letter-spacing: .033em; }
  .cover__photo { position: absolute; top: 0; bottom: 0; left: 51.535cqw; right: 0; }

  /* 02 Sobre mim */
  .about__photo { position: absolute; left: 2.34cqw; top: 7.1875cqw; width: 37.549cqw; bottom: 0; }
  .about__title { position: absolute; left: 48.979cqw; top: 7.683cqw; font-size: 5.6875cqw; line-height: 1.0085; white-space: nowrap; }
  .about__rule  { left: 69.243cqw; right: 0; top: 18.653cqw; }
  .about__text  { position: absolute; left: 50cqw; top: 23.701cqw; width: 33.4cqw; font-size: max(13px, 1.3194cqw); }

  /* 03 Trabalhos — metade esquerda branca, como no PDF */
  .works { background: linear-gradient(90deg, var(--paper) 53.625%, var(--bg) 53.625%); }
  .works__mosaic { position: absolute; left: 2.667cqw; top: 2.965cqw; width: 48.278cqw; }
  .works__title { position: absolute; left: 57.389cqw; top: 15.931cqw; font-size: 5.349cqw; white-space: nowrap; letter-spacing: -.0098em; }
  .works__rule  { left: 85.097cqw; right: 0; top: 23.741cqw; }
  .works__text  { position: absolute; left: 58.5cqw; top: 24.632cqw; width: 31.4cqw; font-size: max(13px, 1.3194cqw); }

  /* 04 Mobile Videos — páginas 4–8 em sequência contínua */
  .videos { padding: 1.271cqw 0 5.625cqw; }
  .videos__head { display: flex; align-items: flex-end; gap: 3cqw; padding: 0 7.031cqw; }
  .videos__title { font-size: 3.669cqw; white-space: nowrap; letter-spacing: 0; }
  .filters { margin-left: auto; padding-bottom: 1.05cqw; }
  .videos__intro { margin: 1.4cqw 7.031cqw 0; }
  .grid--videos {
    display: grid; grid-template-columns: repeat(3, 25.3125cqw);
    column-gap: 5cqw; row-gap: 11.25cqw; grid-auto-flow: row dense;
    padding: 1.36cqw 7.031cqw 0;
  }
  .grid--videos .tile { aspect-ratio: 720 / 1280; }
  .grid--videos .tile.is-featured { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

  /* 05 Storymaker */
  .storymaker { padding: 6cqw 0 5.611cqw; min-height: 56.25cqw; }
  .storymaker__title { margin-left: 10.299cqw; font-size: 4.53cqw; letter-spacing: 0; }
  .grid--storymaker {
    display: grid; grid-template-columns: repeat(3, 21.302cqw); gap: 4.424cqw;
    padding: .43cqw 0 0 23.854cqw;
  }
  .grid--storymaker .tile { aspect-ratio: 720 / 1280; }

  /* 06 Bia Creator */
  .creator {
    display: grid; grid-template-columns: 58.14cqw 27.188cqw; column-gap: 2.965cqw;
    padding: 2.417cqw 7.9cqw 2.153cqw 3.806cqw; align-items: start; min-height: 56.25cqw;
  }
  .creator__main { padding-bottom: 3.47cqw; }
  .creator__head { display: flex; align-items: flex-start; gap: 2.271cqw; }
  .creator__avatar { flex: none; width: 15.403cqw; height: 15.403cqw; border-radius: 50%; }
  .creator__id { padding-top: 3.248cqw; }
  .creator__title { font-size: 4.53cqw; line-height: .9658; letter-spacing: 0; }
  .creator__contacts { margin-top: 1.25cqw; font-size: max(11px, .903cqw); }
  .grid--creator-v { display: grid; grid-template-columns: repeat(3, 17.083cqw); gap: 3.4cqw; margin-top: 2.444cqw; }
  .grid--creator-v .tile { aspect-ratio: 246 / 437.25; }
  .grid--creator-h { display: grid; gap: 2.16cqw; margin-top: 1.364cqw; }
  .grid--creator-h .tile { aspect-ratio: 391.5 / 220.5; }

  .topbar__toggle { display: none; }
}

/* =========================================================================
   TABLET E CELULAR (< 1024px) — mesma ordem de leitura, reorganizada
   ========================================================================= */
@media (max-width: 1023.98px) {
  .text { font-size: 15px; }
  .title { letter-spacing: -.005em; }

  /* 01 Capa: painel tipográfico + fotografia */
  .cover__panel { position: relative; height: min(76svh, 640px); min-height: 380px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .cover__line { position: absolute; left: 50%; width: 2px; background: var(--ink); transform: translateX(-50%); height: 20%; }
  .cover__line--top { top: 0; }
  .cover__line--bottom { bottom: 0; }
  .cover__label { font-size: clamp(17px, 4.6vw, 26px); letter-spacing: .039em; text-transform: uppercase; }
  .cover__name { font-size: clamp(46px, 14vw, 96px); font-weight: 700; line-height: 1.25; text-transform: uppercase; }
  .cover__year { font-size: clamp(19px, 5.2vw, 30px); letter-spacing: .033em; }
  .cover__photo { aspect-ratio: 1209 / 1404; max-height: 120svh; }

  /* 02 Sobre mim */
  .about { position: relative; padding: clamp(40px, 9vw, 72px) 0 clamp(56px, 12vw, 96px); }
  .about__photo { margin: 0 var(--pad); aspect-ratio: 1239 / 1619; }
  .about__title { margin: clamp(36px, 8vw, 56px) var(--pad) 0; font-size: clamp(40px, 12.4vw, 92px); line-height: 1.0085; }
  .about__rule { position: relative; display: block; width: auto; margin: 14px 0 0 45%; }
  .about__text { margin: 26px var(--pad) 0; max-width: 34em; }

  /* 03 Trabalhos */
  .works__mosaic { background: var(--paper); padding: var(--pad); }
  .works__title { margin: clamp(40px, 9vw, 64px) var(--pad) 0; font-size: clamp(40px, 12.4vw, 88px); }
  .works__rule { position: relative; display: block; margin: 0 0 0 55%; }
  .works__text { margin: 22px var(--pad) clamp(56px, 12vw, 96px); max-width: 34em; }

  /* 04 Mobile Videos */
  .videos { padding: 0 var(--pad) clamp(56px, 12vw, 96px); }
  .videos__title { font-size: clamp(32px, 9.4vw, 64px); }
  .filters { margin-top: 14px; }
  .videos__intro { margin-top: 18px; }
  .grid--videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 12px; margin-top: 22px; grid-auto-flow: row dense; }
  .grid--videos .tile { aspect-ratio: 720 / 1280; }
  .grid--videos .tile.is-featured { grid-column: span 2; aspect-ratio: 720 / 1280; }

  /* 05 Storymaker */
  .storymaker { padding: 0 var(--pad) clamp(56px, 12vw, 96px); }
  .storymaker__title { font-size: clamp(32px, 9.4vw, 64px); }
  .grid--storymaker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
  .grid--storymaker .tile { aspect-ratio: 720 / 1280; }

  /* 06 Bia Creator */
  .creator { padding: 0 var(--pad) clamp(56px, 12vw, 96px); }
  .creator__head { display: flex; align-items: center; gap: 18px; }
  .creator__avatar { flex: none; width: clamp(92px, 26vw, 150px); aspect-ratio: 1; height: auto; border-radius: 50%; }
  .creator__title { font-size: clamp(32px, 9.4vw, 64px); line-height: .9658; }
  .creator__contacts { margin-top: 12px; font-size: 11px; }
  .grid--creator-v { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
  .grid--creator-v .tile { aspect-ratio: 246 / 437.25; }
  .grid--creator-h { display: grid; gap: 12px; margin-top: 12px; }
  .grid--creator-h .tile { aspect-ratio: 391.5 / 220.5; }

  @media (min-width: 600px) {
    .text { font-size: 16px; }
    .grid--videos { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
    .grid--storymaker, .grid--creator-v { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .grid--creator-h { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
    .grid--videos .tile.is-featured { grid-row: span 2; aspect-ratio: auto; }
  }
}

/* Mosaico da pág. 3 — proporções exatas dos recortes */
.works__mosaic::before { content: ''; display: block; aspect-ratio: 695.2 / 724.5; }
@media (max-width: 1023.98px) { .works__mosaic { position: relative; } }
.works__tile { position: absolute; overflow: hidden; }
@media (min-width: 1024px) {
  .works__tile--a { left: 0; top: 0; width: 66.34%; height: 66.05%; }
  .works__tile--b { left: 67.42%; top: 0; width: 32.58%; height: 66.05%; }
  .works__tile--c { left: 0; top: 66.98%; width: 32.68%; height: 33.02%; }
  .works__tile--d { left: 33.66%; top: 66.98%; width: 66.34%; height: 33.02%; }
}
@media (max-width: 1023.98px) {
  .works__tile--a { left: var(--pad); top: var(--pad); width: calc((100% - 2 * var(--pad)) * .6634); height: calc((100% - 2 * var(--pad)) * .6605); }
  .works__tile--b { left: calc(var(--pad) + (100% - 2 * var(--pad)) * .6742); top: var(--pad); width: calc((100% - 2 * var(--pad)) * .3258); height: calc((100% - 2 * var(--pad)) * .6605); }
  .works__tile--c { left: var(--pad); top: calc(var(--pad) + (100% - 2 * var(--pad)) * .6698); width: calc((100% - 2 * var(--pad)) * .3268); height: calc((100% - 2 * var(--pad)) * .3302); }
  .works__tile--d { left: calc(var(--pad) + (100% - 2 * var(--pad)) * .3366); top: calc(var(--pad) + (100% - 2 * var(--pad)) * .6698); width: calc((100% - 2 * var(--pad)) * .6634); height: calc((100% - 2 * var(--pad)) * .3302); }
}

/* =========================================================================
   Peças de galeria
   ========================================================================= */
.tile { position: relative; min-width: 0; }
.tile__btn { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; background: #e9e6e1; }
.tile__btn img { transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
@media (hover: hover) {
  .tile__btn:hover img { opacity: .9; transform: scale(1.015); }
}
.tile__empty { display: block; width: 100%; height: 100%; }
.tile__play {
  position: absolute; left: 12px; bottom: 12px; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.95); box-shadow: 0 0 12px rgba(0,0,0,.18);
}
.tile__play::after {
  content: ''; position: absolute; left: 11px; top: 8.5px;
  border-style: solid; border-width: 5.5px 0 5.5px 8.5px; border-color: transparent transparent transparent #fff;
}
.tile__flag {
  position: absolute; top: 0; left: 0; background: var(--bg); color: var(--ink);
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 6px 9px 5px;
  pointer-events: none;
}
.tile.is-hidden { display: none; }

/* Filtros por categoria — discretos, só texto */
.filters__list { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.filters button {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 0;
  border-bottom: 1px solid transparent; color: var(--muted); transition: color .2s, border-color .2s;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.videos__intro { display: flex; gap: 20px; align-items: flex-start; max-width: 720px; }
.videos__intro img { width: 84px; aspect-ratio: 720 / 1280; object-fit: cover; flex: none; }
.videos__intro strong { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.videos__intro p { font-size: 14px; letter-spacing: .03em; line-height: 1.55; }

.creator__contacts { display: flex; flex-wrap: wrap; gap: 6px 18px; text-transform: uppercase; letter-spacing: .14em; }
.creator__contacts a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.creator__contacts a[href^="mailto:"] { text-transform: none; letter-spacing: .04em; }

/* =========================================================================
   Barra de navegação — some na capa, aparece ao rolar
   ========================================================================= */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 56px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 3.8vw, 56px);
  background: rgba(246, 244, 241, .96); transform: translateY(-100%); transition: transform .45s var(--ease);
}
.topbar.is-visible { transform: none; }
.topbar__brand { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.topbar__nav ul { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.topbar__nav a { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.topbar__nav a:hover, .topbar__nav a[aria-current="true"] { border-bottom-color: var(--ink); }

@media (max-width: 1023.98px) {
  .topbar { background: transparent; transform: none; pointer-events: none; }
  .topbar > * { pointer-events: auto; }
  .topbar__brand { opacity: 0; transition: opacity .3s; }
  .topbar.is-visible { background: rgba(246, 244, 241, .96); }
  .topbar.is-visible .topbar__brand { opacity: 1; }
  .topbar__toggle { margin-left: auto; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; padding: 10px 0 10px 12px; }
  .topbar__nav {
    position: fixed; inset: 0; z-index: -1; background: var(--bg); padding: 96px var(--pad) 40px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .topbar.is-open .topbar__nav { opacity: 1; visibility: visible; }
  .topbar.is-open { background: var(--bg); }
  .topbar.is-open .topbar__brand { opacity: 1; }
  .topbar__nav ul { flex-direction: column; gap: 6px; }
  .topbar__nav a { font-size: clamp(30px, 9vw, 52px); font-weight: 700; letter-spacing: -.005em; border: 0; }
}

/* =========================================================================
   Lightbox
   ========================================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 14px clamp(16px, 4vw, 72px) 18px;
  animation: lb-in .3s var(--ease);
}
@keyframes lb-in { from { opacity: 0; } }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.lightbox__count, .lightbox__close { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; }
.lightbox__close { padding: 10px 0 10px 16px; }
.lightbox__stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 8px 0; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #000; }
.lightbox__stage img { background: transparent; }
.lightbox__stage iframe { width: min(100%, calc((100svh - 190px) * .5625)); aspect-ratio: 9 / 16; max-height: 100%; border: 0; background: #000; }
.lightbox__stage iframe.is-wide { width: min(100%, 1100px); aspect-ratio: 16 / 9; }
.lightbox__caption { text-align: center; max-width: 640px; margin: 0 auto; min-height: 20px; padding-top: 8px; }
.lightbox__caption h3 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lightbox__caption p { margin: 6px 0 0; font-size: 13px; letter-spacing: .03em; line-height: 1.55; color: rgba(0,0,0,.72); }
.lightbox__caption .meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lightbox__caption a { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 72px; font-size: 22px; }
.lightbox__nav--prev { left: clamp(4px, 1.5vw, 24px); }
.lightbox__nav--next { right: clamp(4px, 1.5vw, 24px); }
.lightbox__nav:disabled { opacity: .2; cursor: default; }
@media (max-width: 700px) {
  .lightbox__nav { top: auto; bottom: 8px; transform: none; height: 48px; }
}

.preview-flag {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--bg); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 14px;
}

/* Entrada suave (só com JS e sem preferência por menos movimento) */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .reveal-ready .reveal.is-in { opacity: 1; transform: none; }
  .reveal-ready .grid .tile { opacity: 0; transition: opacity .9s var(--ease); }
  .reveal-ready .grid .tile.is-in { opacity: 1; }
}

/* Enquanto o conteúdo atualizado carrega (máx. 2,5 s) */
main { transition: opacity .5s var(--ease); }
.is-loading main { opacity: 0; }
