/* Página de estudo de caso (frame 1430). Usa style.css e apps.css (cabeçalho). */
.project { background: #fffffe; color: #121210; }
.project .page-header { margin: 0 auto; max-width: 1322px; }
.project main.case { max-width: 1322px; margin: 10px auto 0; display: flex; flex-direction: column; gap: 46px; padding-inline: 0; }
.project img { display: block; }

.back { align-self: flex-start; padding: 10px; color: rgb(18 18 16 / 0.6); font-size: 13px; font-weight: 600; text-decoration: none; transition: color .3s, translate .3s; }
.back:is(:hover, :focus-visible) { color: #121210; translate: -4px 0; }

.case-title { display: flex; flex-direction: column; gap: 11px; }
.case-title > p:first-child { color: #f04d9e; font-size: 12px; font-weight: 600; }
.case-title h1 { margin-top: 4px; font-size: clamp(32px, 3.33vw, 48px); font-weight: 600; }
.case-title .by { margin-top: -0px; color: rgb(18 18 16 / 0.6); font-size: 16px; font-weight: 400; }

.case-meta { display: flex; flex-wrap: wrap; gap: 24px 183px; font-weight: 600; }
.case-meta div { display: flex; flex-direction: column; gap: 9px; }
.case-meta dt { color: rgb(18 18 16 / 0.5); font-size: 11px; }
.case-meta dd { font-size: 15px; }
.case-meta dd span { margin-left: 9px; }

.case-hero { height: clamp(220px, 39.6vw, 524px); overflow: hidden; }
.case-hero img { width: 100%; height: 100%; object-fit: cover; }

.case-text { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-text > div { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.case-text section { display: flex; flex-direction: column; gap: 12px; }
.case-text h2, .gallery-title, .case-icons h2 { font-size: 20px; font-weight: 600; }
.case-text p { color: rgb(18 18 16 / 0.6); font-size: 14px; }

.case-wide { aspect-ratio: 1322 / 743.625; overflow: hidden; }
.case-wide img { width: 100%; height: 100%; object-fit: cover; }

.gallery-title { padding: 10px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; list-style: none; }
.cell { aspect-ratio: 651 / 538.5; overflow: hidden; background: #f1eee4; }
.cell > img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s cubic-bezier(0.22, 1, 0.36, 1); }
.cell:hover > img { scale: 1.04; }
.cell.g1 { aspect-ratio: 4 / 3; align-self: start; }
.cell.wide { aspect-ratio: 647 / 355; align-self: start; }
.cell.gray { display: grid; place-content: center; background: #727272; }
.cell.art { background: none; }

/* logotipos claro e escuro lado a lado: 511×107 no frame original */
.lockups { display: flex; flex-direction: column; gap: 10px; width: min(511px, 78.5vw); }
.lockup { position: relative; display: block; aspect-ratio: 511 / 107.27; }
.lockup > * { position: absolute; }
.lk-icon { left: 0; top: 6.01%; width: 29.02%; height: 90.2%; }
.lk-text { left: 33.44%; top: 0; width: 66.56%; height: 100%; }
.lk-bar { left: 30.9%; top: 3%; width: 0.95%; height: 96.2%; background: linear-gradient(180deg, #fbd609 8.871%, #ee8f42 21.309%, #d73562 60.112%, #2a803f 103.23%); }

.phones { overflow: hidden; }
.phones img { width: 100%; height: auto; }

.case-icons { display: grid; grid-template-columns: 651fr 671fr; gap: 20px; max-width: 1322px; margin: 10px auto 0; }
.case-icons section { display: flex; flex-direction: column; gap: 10px; }
.case-icons img { width: 100%; max-width: 612px; height: auto; }

.case-footer { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 1322px; margin: 10px auto 0; padding: 44px 48px; background: #121210; color: rgb(250 250 246 / 0.6); font-size: 13px; }
.socials { display: flex; align-items: center; gap: 36px; }
.socials a { display: grid; place-content: center; width: 28px; height: 28px; color: #fafaf6; transition: scale .3s, translate .3s; }
.socials a:is(:hover, :focus-visible) { scale: 1.15; translate: 0 -3px; }
.socials .box { border: 1.6px solid #fafaf6; border-radius: 6px; font: 700 13px Montserrat, sans-serif; text-decoration: none; }

@media (max-width: 900px) {
  .project .page-header { margin-inline: 16px; }
  .project main.case, .case-icons { margin-inline: 16px; }
  .case-meta { gap: 20px 40px; }
  .case-text { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .cell, .cell.g1, .cell.wide { aspect-ratio: 4 / 3; }
  .cell.wide { aspect-ratio: 647 / 355; }
  .case-icons { grid-template-columns: 1fr; }
  .case-footer { margin-inline: 0; padding-inline: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .project [data-reveal] { transition: opacity .8s, translate .9s cubic-bezier(0.22, 1, 0.36, 1); }
  .project [data-reveal].will-reveal:not(.in-view) { opacity: 0; translate: 0 40px; }
}

/* célula do degradê: ampulheta branca por cima (688×449 em 651×538 no Figma) */
.cell.art { position: relative; }
.cell.art .art-fg { position: absolute; left: -2.76%; top: 24.49%; width: 105.8%; height: 83.34%; max-width: none; object-fit: fill; }

/* Página Hana */
.hana-hero { height: auto; aspect-ratio: 1322 / 589.23; }
.case-wide.video { aspect-ratio: 1410 / 1142; }
.case-wide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-grid.three { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid.three .cell { aspect-ratio: 450 / 276; background: #fffff0; }
.gallery-grid.three .cell.btn { aspect-ratio: 555 / 299; align-self: start; }
.shots { overflow: hidden; }
.shots img { width: 100%; height: auto; }
.case-wide.chars { aspect-ratio: 1322 / 667; }
@media (max-width: 900px) {
  .gallery-grid.three { grid-template-columns: 1fr; }
  .gallery-grid.three .cell, .gallery-grid.three .cell.btn { aspect-ratio: 450 / 276; }
}

/* Página FriedUp */
.fr-hero, .fr-photo { aspect-ratio: 1322 / 743.625; }
.gallery-grid.fr { align-items: start; }
.gallery-grid.fr .cell { background: none; }
.gallery-grid.fr .r1 { aspect-ratio: 651 / 538.5; }
.gallery-grid.fr .r1.zoom img { height: 161.19%; width: 100.1%; max-width: none; margin: -47.83% 0 0 -0.05%; object-fit: fill; }
.gallery-grid.fr .r2 { aspect-ratio: 651 / 561; padding: 10px; }
.gallery-grid.fr .r3, .gallery-grid.fr .r3b { aspect-ratio: 651 / 538.5; display: grid; place-content: center; }
.gallery-grid.fr .vid video { height: 100%; width: auto; max-width: 100%; display: block; }
.gallery-grid.fr .r3 video { aspect-ratio: 1; }
.gallery-grid.fr .r3b video { aspect-ratio: 535 / 539; }
.gallery-grid.fr .r4 { aspect-ratio: 651 / 539; }
.gallery-grid.fr .contain img { object-fit: contain; }
@media (max-width: 900px) {
  .gallery-grid.fr .r1, .gallery-grid.fr .r2, .gallery-grid.fr .r3, .gallery-grid.fr .r3b, .gallery-grid.fr .r4 { aspect-ratio: 651 / 561; }
  .gallery-grid.fr .r3 video, .gallery-grid.fr .r3b video { height: 100%; }
}

/* Página Blue Sky */
.bs-hero { aspect-ratio: 1322 / 710; }
.bs-meta { gap: 24px 209px; }
.bs-meta div:nth-child(2) { min-width: 137px; }
.bs-meta div:nth-child(3), .bs-meta div:nth-child(4) { width: 202px; }
.bs-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bs-row { overflow: hidden; }
.bs-row video, .bs-row img { display: block; width: 100%; height: auto; }
.bs-row.light { width: 99.55%; background: #fff; aspect-ratio: 1316 / 740.25; }
.bs-row.dark { background: #013e52; aspect-ratio: 1322 / 738.2; }
.bs-row.light-pad { padding: 10px; }
.bs-row.dark-shot { width: 99.55%; background: #013e52; }
@media (max-width: 900px) { .bs-meta div:nth-child(3), .bs-meta div:nth-child(4), .bs-meta div:nth-child(2) { width: auto; } }

/* Página Ferreira Gullar */
.gu-hero { aspect-ratio: 1322 / 634; border-radius: 14px; }
.gu-meta { gap: 24px 0; }
.gu-meta div:nth-child(1) { width: 68px; margin-right: 217px; }
.gu-meta div:nth-child(2) { width: 37px; margin-right: 217px; }
.gu-meta div:nth-child(3) { width: 129px; margin-right: 217px; }
.gallery-grid.gu .cell { aspect-ratio: 651 / 542.5; background: #a8a8a8; }
@media (max-width: 900px) { .gu-meta div { margin-right: 40px !important; width: auto !important; } }

/* Página Prêmio Pallas */
.pl-meta { gap: 24px 0; }
.pl-meta div:nth-child(1) { width: 68px; margin-right: 209px; }
.pl-meta div:nth-child(2) { width: 137px; margin-right: 209px; }
.pl-meta div:nth-child(3) { width: 202px; margin-right: 209px; }
.pl-hero { aspect-ratio: 1322 / 746; }
.case-text strong { color: #121210; font-weight: 600; }
.gallery-grid.pl .cell { background: #f9f9f9; }
.gallery-grid.pl .pl-card { display: grid; place-content: center; background: #f2eadc; color: #0d0d0e; }
.pl-card > div { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 411px; padding: 24px; }
.pl-eyebrow { color: #e07a2d; font-size: 11px; font-weight: 600; letter-spacing: 1.54px; text-transform: uppercase; }
.pl-eyebrow:last-of-type { color: #0d0d0e; }
.pl-year { font-size: clamp(72px, 9.2vw, 132px); font-weight: 500; letter-spacing: -0.03em; line-height: .9; }
.pl-pill { padding: 5px 15px; border-radius: 999px; background: #e07a2d; color: #f2eadc; font-size: 10.5px; font-weight: 600; letter-spacing: 1.47px; text-transform: uppercase; }
.pl-card p { color: #0d0d0e; font-size: 16px; line-height: 1.55; }
.pl-sw { display: flex; gap: 6px; }
.pl-sw i { width: 36px; height: 36px; border-radius: 4px; }
@media (max-width: 900px) { .pl-meta div { margin-right: 40px !important; width: auto !important; } .pl-year { font-size: 84px; } .gallery-grid.pl .pl-card { aspect-ratio: auto; } }

/* Página Capitães da Areia */
.ca-meta div:nth-child(4) { white-space: nowrap; }
.ca-crop { position: relative; overflow: hidden; }
.ca-crop img { position: absolute; max-width: none; }
.gallery-grid.ca .cell { aspect-ratio: 651 / 539; background: none; }
.gallery-grid.ca .ca-pad { padding: 10px; }
.ca-in { width: 168.78%; aspect-ratio: 1065 / 599; }
.ca-capa { aspect-ratio: 4096 / 2560; }
.ca-last { aspect-ratio: 1303 / 722; }
@media (max-width: 900px) { .ca-meta div { width: auto !important; } }

/* Página MeetRio */
.gallery-grid.mr .cell { aspect-ratio: 651 / 538.5; background: none; }
.gallery-grid.mr .mr-chair-cell { position: relative; overflow: visible; container-type: inline-size; border-radius: 20px; background: linear-gradient(180deg, #119e65, #02518b); }
.mr-chair { position: absolute; inset: 0; }
.mr-chair > * { position: absolute; }
.mr-chair .a { left: 17.05cqw; top: 7.67cqw; width: 20.12cqw; height: 21.87cqw; display: flex; align-items: center; justify-content: center; }
.mr-chair .a img { flex: none; width: 14.97cqw; height: 17.51cqw; rotate: -21.54deg; transform: skewX(-0.83deg); }
.mr-chair .b { left: 19.13cqw; top: 9.97cqw; width: 26.16cqw; height: 37.85cqw; }
.gallery-grid.mr .mr-cristo { border-radius: 20px; box-shadow: 0 4px 4px rgb(0 0 0 / .25); }
.gallery-grid.mr .mr-cristo img { object-fit: cover; }
.mr-last { aspect-ratio: 3840 / 2160; }
.mr-last img { width: 100%; height: 100%; object-fit: cover; }

/* Página Lumiera Milano */
.lu-hero { aspect-ratio: 1322 / 675; border-radius: 14px; }
.lu-last { aspect-ratio: 1322 / 750; }

/* Página Izabour Azevedo (ID Visual) */
.iz-meta div:nth-child(3) { width: 291px; }
.iz-banner { background: #d5f35e; aspect-ratio: 1322 / 354; }
.iz-banner.pink { background: #e30b63; aspect-ratio: 1322 / 442; border-radius: 14px; }
.iz-banner video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .iz-meta div:nth-child(3) { width: auto; } }

/* Projetos de Animação & Ilustração */
.an-back { align-self: flex-start; padding: 0; color: #f04d9e; font-size: 12px; }
.an-back:is(:hover, :focus-visible) { color: #f04d9e; }
.project .case-title .an-back + h1 { margin-top: 4px; }
.an-gallery { display: flex; flex-direction: column; gap: 24px; }
.an-img { overflow: hidden; }
.an-img img { width: 100%; height: 100%; object-fit: cover; }

/* Segue o Baile */
.sb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sb-tile { background: #12120f; aspect-ratio: 639 / 460; }
.sb-row3 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.sb-row3 > div { aspect-ratio: 2044 / 1221; }
.sb-row4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sb-row4 > div { aspect-ratio: 646 / 351; }
@media (max-width: 900px) { .sb-row2, .sb-row3, .sb-row4 { grid-template-columns: 1fr; gap: 16px; } }

/* Exercícios de efeito */
.project .case-title .ef-by { color: #0d0d0e; font-size: 19px; line-height: 1.45; }
.ef-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ef-tile { aspect-ratio: 1920 / 1080; background: #12120f; overflow: hidden; }
.ef-tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .ef-grid { grid-template-columns: 1fr; } }

/* Anima! */
.ef-tile.an-row { background: none; }
.an-gallery:has(.an-row) { gap: 36px; }

/* Cosmic Ancestors (Brasil e Afrofuturismo) */
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cc-people { row-gap: 37px; }
.cc-tile { background: #12120f; overflow: hidden; }
.cc-top .cc-tile { aspect-ratio: 639 / 479; }
.cc-people .cc-tile { aspect-ratio: 621.8 / 466.1; background: none; }
.cc-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .cc-grid { grid-template-columns: 1fr; row-gap: 16px; } }

/* Ícones animados */
.an-gallery.ic { gap: 0; }
.ic .ic-b2 { margin-top: 45px; }
.ic .ic-b3 { margin-top: 56px; }
.ic .ic-b4 { margin-top: 22px; }
.ic .ef-tile { background: none; }

/* Blue Tie */
.an-gallery.bt { gap: 36px; }
.bt-img { overflow: hidden; }
.bt-img img { width: 100%; height: 100%; object-fit: cover; }

/* Página de contato */
.project main.case.ct { gap: 24px; margin-top: 10px; }
.ct-a { display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; min-height: 244px; padding: 24px; background: #f04d9e; color: #fff; }
.ct-a h1 { color: #f1eee4; font-size: 56px; font-weight: 700; line-height: 1; }
.ct-a > div { display: flex; flex-direction: column; gap: 16px; }
.ct-a .ct-lead { font-size: 24px; font-weight: 500; }
.ct-a p { font-size: 15px; }
.ct-a p.ct-lead { font-size: 24px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; }
.ct-c, .ct-d { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 24px; min-height: 274px; padding: 20px 24px; }
.ct-c { border: 1px solid #000; background: #fff; }
.ct-d { background: #d5f35e; color: #12120f; }
.ct-k { color: #e30b63; font-size: 11px; font-weight: 600; }
.ct-v { color: #000; font-size: 22px; font-weight: 600; text-decoration: none; }
a.ct-v:is(:hover, :focus-visible) { color: #e30b63; }
.ct-cv { display: flex; align-items: center; justify-content: space-between; width: 204px; padding: 0 16px; height: 27px; border: 1px solid #f04d9e; border-radius: 4px; color: #000; font-size: 12px; font-weight: 600; text-decoration: none; transition: background-color .3s; }
.ct-cv:is(:hover, :focus-visible) { background: #f04d9e1a; }
.ct-n { align-self: stretch; text-align: right; font-size: 12px; font-weight: 600; color: #12120f; }
.ct-d .ct-n { text-align: left; }
.ct-r { font-size: 16px; font-weight: 600; }
.ct-d ul { display: flex; flex-direction: column; gap: 16px; list-style: none; }
.ct-d a { display: flex; align-items: center; gap: 16px; color: #0d0d0e; font-size: 24px; font-weight: 700; text-decoration: none; transition: translate .3s; }
.ct-d a:is(:hover, :focus-visible) { translate: 6px 0; }
.ct-box { display: grid; place-content: center; width: 28px; height: 28px; border: 1.6px solid #0d0d0e; border-radius: 6px; font-size: 13px; font-weight: 700; }
@media (max-width: 900px) { .ct-row { grid-template-columns: 1fr; } .ct-a h1 { font-size: 44px; } }
.ct-a, .ct-c, .ct-d { line-height: normal; }
.ct-a { min-height: 0; }
.ct-c, .ct-d { min-height: 0; }

/* Sobre mim */
.project main.case.sm { display: grid; grid-template-columns: 617px 1fr; gap: 24px; align-items: end; margin-top: 10px; }
.sm-left { display: flex; flex-direction: column; gap: 10px; align-self: end; }
.sm-mark { position: relative; padding: 24px 24px 0; }
.sm-mark img { display: block; max-width: 100%; height: auto; }
.sm-iz { width: 78%; margin-left: 8.5%; }
.sm-az { width: 91%; margin-top: -2%; }
.sm-photo { position: relative; aspect-ratio: 597 / 797; overflow: hidden; margin: 0; }
.sm-img { position: absolute; max-width: none; height: 143.59%; left: -27.81%; top: -16.21%; width: 127.81%; object-fit: cover; }
.sm-smile { position: absolute; left: 24px; bottom: 38px; width: 211px; height: 147px; }
.sm-smile img { position: absolute; max-width: none; box-sizing: content-box; }
.sm-right { display: grid; grid-template-columns: 1fr 357px; grid-template-rows: auto auto auto; gap: 24px; }
.sm-right section { display: flex; flex-direction: column; gap: 24px; padding: 24px; line-height: normal; }
.sm-right h2 { font-size: 40px; font-weight: 600; }
.sm-right p { font-size: 16px; font-weight: 500; }
.sm-who { grid-column: 1; min-height: 462px; border: 1px solid #000; color: #12120f; }
.sm-who h2 { width: 5em; }
.sm-persp { grid-column: 1; min-height: 313px; justify-content: flex-end; background: #f04d9e; color: #fff; }
.sm-jornada { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; padding: 20px 24px !important; background: #d5f35e; color: #12120f; }
.sm-jornada p { font-size: 15px; line-height: 1.5; }
.sm-comove { grid-column: 1 / -1; background: #0d0d0e; color: #fff; }
@media (max-width: 1100px) { .project main.case.sm { grid-template-columns: 1fr; } .sm-right { grid-template-columns: 1fr; } .sm-jornada { grid-column: 1; grid-row: auto; } .sm-left { order: 2; } }
