/* ==========================================================================
 * Portefólio (9/11/2026): /projetos/, estudos de caso, bloco da página inicial e referências.
 * Real screenshots in device frames are the visual; type and space do the rest.
 * ======================================================================== */

.pf-kicker { margin: 0 0 10px; font-size: .86rem; font-weight: 600; color: var(--blue); }
.pf-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; }
.pf-link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
a:hover .pf-link .icon, .pf-link:hover .icon { transform: translateX(3px); }

/* Device composition --------------------------------------------------- */
.pdev { position: relative; }
.pdev__screen { position: relative; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(8,18,37,.08), 0 30px 60px -30px rgba(8,18,37,.45); }
.pdev__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #EEF1F6; border-bottom: 1px solid #E1E6EE; }
.pdev__bar span { width: 9px; height: 9px; border-radius: 50%; background: #CBD3DF; }
.pdev__bar em { margin-left: 10px; padding: 2px 10px; border-radius: 6px; background: #fff; font-style: normal; font-family: var(--mono); font-size: .72rem; color: var(--slate-600); }
.pdev__screen img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.pdev__phone { position: absolute; right: -4%; bottom: -10%; width: 22%; border-radius: 22px; border: 5px solid #0B1730; overflow: hidden; background: #0B1730; box-shadow: 0 30px 50px -20px rgba(8,18,37,.55); }
.pdev__phone img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1240; object-fit: cover; object-position: top; }
.pdev__float { position: absolute; left: -6%; bottom: -14%; width: 52%; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -24px rgba(8,18,37,.55), 0 0 0 1px rgba(8,18,37,.06); }
.pdev__float img { display: block; width: 100%; height: auto; }

/* Archive hero + filters ----------------------------------------------- */
.pf-hero { background: #06102A; color: var(--night-text); padding: calc(var(--header-h) + 48px) 0 34px; }
.pf-hero .breadcrumbs, .pf-hero .breadcrumbs a { color: var(--night-muted); }
.pf-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin: 18px 0 40px; }
.pf-hero__title { margin: 0; font-family: var(--display); font-size: clamp(3rem, 2rem + 4vw, 5.6rem); line-height: .95; letter-spacing: -.045em; color: #fff; }
.pf-hero__lead { margin: 0; max-width: 46ch; font-size: var(--step-1); line-height: 1.55; color: rgba(226,234,248,.78); }
.pf-hero { padding-bottom: 0; }
.pf-hero__grid { position: relative; z-index: 6; }
/* Filter row: its own band under the floating header; stays fully visible while scrolling the list.
   The navy strip above it fills the gap behind the header once the bar is stuck (the hero text sits above it). */
.pf-filterbar { --pf-bar-top: calc(var(--header-h) + 14px); position: sticky; top: var(--pf-bar-top); z-index: 5; background: #06102A; padding: 0 0 16px; box-shadow: 0 1px 0 rgba(148,178,230,.12); }
.pf-filterbar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--pf-bar-top); background: #06102A; pointer-events: none; }
.pf-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid rgba(148,178,230,.16); }
.pf-body [data-types] { scroll-margin-top: calc(var(--header-h) + 96px); }
.pf-filter { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 99px; background: rgba(255,255,255,.06); color: rgba(241,245,251,.8); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s; }
.pf-filter span { font-family: var(--mono); font-size: .72rem; color: var(--night-muted); }
.pf-filter:hover { background: rgba(255,255,255,.12); color: #fff; }
.pf-filter[aria-pressed="true"] { background: #fff; color: var(--navy); }
.pf-filter[aria-pressed="true"] span { color: var(--slate-500); }
.pf-filter:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 2px; }

/* Featured case --------------------------------------------------------- */
.pf-body { background: var(--paper); }
.pf-feature { background: linear-gradient(180deg, #06102A 0, #06102A 38%, var(--paper) 38%); padding: 40px 0 clamp(110px, 11vw, 160px); }
.pf-feature[hidden] { display: none; }
.pf-feature__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.pf-feature__copy { padding-top: 6px; color: var(--night-text); }
.pf-feature .pf-kicker { color: #F5C16B; }
.pf-feature__title { margin: 0 0 14px; font-family: var(--display); font-size: clamp(2rem, 1.4rem + 1.6vw, 2.7rem); line-height: 1.04; letter-spacing: -.035em; }
.pf-feature__title a { color: #fff; text-decoration: none; }
.pf-feature__headline { margin: 0 0 120px; font-size: 1.14rem; line-height: 1.45; color: rgba(241,245,251,.86); max-width: 34ch; }
.pf-feature__text { margin: 0 0 22px; color: var(--slate-600); line-height: 1.6; max-width: 46ch; }
.pf-feature__media { padding: 0 6% 15% 10%; }
/* Featured composition: the Parques site is the main screen; dashboard bottom-left and phone bottom-right
   overlap its corners by the same amount, and the padding above reserves room for both. */
.pf-feature .pdev__float { left: -12%; bottom: -16%; width: 46%; }
.pf-feature .pdev__phone { right: -7%; bottom: -15%; width: 21%; border-width: 4px; border-radius: 20px; }
.pf-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 28px; padding: 18px 0 0; border-top: 1px solid var(--slate-200, #E3E8F0); }
.pf-facts dt { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.03em; color: var(--ink); }
.pf-facts dd { margin: 4px 0 0; font-size: .86rem; line-height: 1.4; color: var(--slate-600); }

/* Case-study rows -------------------------------------------------------- */
.pf-cases { display: grid; gap: clamp(88px, 10vw, 136px); padding-bottom: clamp(88px, 10vw, 128px); }
.pf-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pf-row[hidden] { display: none; }
.pf-row.is-reverse { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.pf-row.is-reverse .pf-row__media { order: 2; }
.pf-row__media { padding: 0 4% 9% 0; }
.pf-row.is-reverse .pf-row__media { padding: 0 0 9% 4%; }
.pf-row__title { margin: 0 0 12px; font-family: var(--display); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); line-height: 1.08; letter-spacing: -.03em; }
.pf-row__title a { color: var(--ink); text-decoration: none; }
.pf-row__title a:hover { color: var(--blue); }
.pf-row__text { margin: 0 0 18px; font-size: 1.06rem; line-height: 1.55; color: var(--slate-600); max-width: 38ch; }
.pf-row__caps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pf-row__caps li { position: relative; padding-left: 14px; font-size: .92rem; color: var(--ink-2, var(--ink)); }
.pf-row__caps li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* Older projects --------------------------------------------------------- */
.pf-more { padding-bottom: clamp(80px, 9vw, 120px); }
.pf-more[hidden] { display: none; }
.pf-more__title { margin: 0 0 22px; padding-top: 26px; border-top: 1px solid var(--slate-200, #E3E8F0); font-family: var(--display); font-size: 1.3rem; letter-spacing: -.02em; }
.pf-more__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 22px; }
.pf-more__list li[hidden] { display: none; }
.pf-more__item { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.pf-more__thumb { display: block; margin-bottom: 8px; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: #E9EDF3; }
.pf-more__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.pf-more__item:hover img { transform: scale(1.03); }
.pf-more__name { font-weight: 600; }
.pf-more__meta { font-size: .86rem; color: var(--slate-500); }
.pf-empty { padding: 40px 0 80px; color: var(--slate-600); }

/* Case study ------------------------------------------------------------- */
.cs-hero { background: #06102A; color: var(--night-text); padding: calc(var(--header-h) + 48px) 0 0; }
.cs-hero .breadcrumbs, .cs-hero .breadcrumbs a { color: var(--night-muted); }
.cs-hero .pf-kicker { color: #F5C16B; }
.cs-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin: 22px 0 34px; }
.cs-hero__title { margin: 0; font-family: var(--display); font-size: clamp(2.4rem, 1.6rem + 3vw, 4.2rem); line-height: 1; letter-spacing: -.04em; color: #fff; text-wrap: balance; }
.cs-hero__lead { margin: 0; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.45; color: rgba(241,245,251,.86); max-width: 34ch; }
.cs-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0 0 48px; padding-top: 20px; border-top: 1px solid rgba(148,178,230,.16); }
.cs-meta dt { font-size: .78rem; color: var(--night-muted); }
.cs-meta dd { margin: 2px 0 0; font-weight: 500; color: #fff; }
.cs-meta a { color: #fff; }
.cs-hero__media { position: relative; margin-bottom: -14%; padding: 0 6% 0 0; }
.cs-hero__media .pdev__phone { bottom: 6%; right: -2%; width: 18%; }

.cs-facts { padding-top: calc(14% + 72px); }
.cs-facts .pf-facts { border-top: 0; padding-top: 0; }
.pf-facts--lg dt { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); }
.pf-facts--lg dd { font-size: .95rem; max-width: 26ch; }
.cs-story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 72px; padding-block: clamp(64px, 8vw, 104px); }
.cs-facts + .cs-story { padding-top: clamp(48px, 6vw, 72px); }
.cs-hero + .cs-story { padding-top: calc(14% + 72px); }
.cs-label { margin: 0 0 10px; font-size: .86rem; font-weight: 600; color: var(--blue); font-family: inherit; letter-spacing: 0; }
.cs-story p { margin: 0; font-size: 1.06rem; line-height: 1.65; color: var(--slate-700, var(--ink)); }
.cs-story__item--solution { grid-column: 1 / -1; max-width: 860px; }
.cs-story__item--solution p { font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); line-height: 1.4; letter-spacing: -.015em; color: var(--ink); }
.cs-section-title { margin: 0 0 32px; font-family: var(--display); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem); letter-spacing: -.03em; line-height: 1.1; }

.cs-platforms { background: #06102A; color: var(--night-text); padding-block: clamp(72px, 8vw, 112px); }
.cs-platforms .cs-section-title { color: #fff; }
.cs-platforms__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cs-platform__shot { border-radius: 10px; overflow: hidden; background: #fff; margin-bottom: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.cs-platform__shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.cs-platform__name { margin: 0 0 6px; font-family: var(--display); font-size: 1.12rem; color: #fff; }
.cs-platform__text { margin: 0; font-size: .95rem; line-height: 1.55; color: rgba(226,234,248,.74); }

.cs-caps { padding-block: clamp(72px, 8vw, 112px); }
.cs-caps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.cs-cap { padding: 22px 0 26px; border-top: 1px solid var(--slate-200, #E3E8F0); }
.cs-cap h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.08rem; letter-spacing: -.01em; }
.cs-cap p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--slate-600); }

.cs-gallery { background: #EEF1F6; padding-block: clamp(72px, 8vw, 112px); }
.cs-shot { max-width: 1000px; margin: 0 auto 56px; }
.cs-shot__frame { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(8,18,37,.06), 0 30px 60px -36px rgba(8,18,37,.4); }
.cs-shot__frame img { display: block; width: 100%; height: auto; }
.cs-shot figcaption, .cs-phone figcaption { margin-top: 12px; font-size: .88rem; color: var(--slate-600); }
.cs-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.cs-phone { margin: 0; width: min(300px, 100%); }
.cs-phone__frame { border-radius: 28px; border: 6px solid #0B1730; overflow: hidden; background: #0B1730; box-shadow: 0 30px 50px -24px rgba(8,18,37,.5); }
.cs-phone__frame img { display: block; width: 100%; height: auto; }

.cs-close { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: clamp(64px, 8vw, 96px); }
.cs-close p { margin: 0; line-height: 1.6; color: var(--slate-700, var(--ink)); }
.cs-tech { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-tech li { padding: 6px 12px; border-radius: 99px; background: #EEF1F6; font-size: .88rem; font-weight: 500; }
.cs-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cs-services a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; }
.cs-services a:hover { color: var(--blue); }
.cs-services .icon { width: 16px; height: 16px; }

.cs-next { padding-bottom: clamp(64px, 8vw, 96px); }
.cs-next a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 6px 40px; padding: 32px; border-radius: 18px; background: #06102A; color: #fff; text-decoration: none; overflow: hidden; }
.cs-next__label { font-size: .86rem; color: var(--night-muted); }
.cs-next__title { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); letter-spacing: -.03em; }
.cs-next__kicker { color: #F5C16B; font-size: .9rem; }
.cs-next img { grid-column: 2; grid-row: 1 / -1; width: 100%; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.cs-next a:hover img { transform: translateY(-4px); }
.cs-next a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Home block -------------------------------------------------------------- */
.pf-home__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; }
.pf-home__main { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; background: #06102A; color: #fff; text-decoration: none; overflow: hidden; }
.pf-home__media { padding: 32px 40px 0; }
.pf-home__media .pdev__phone { bottom: -8%; }
.pf-home__copy { padding: 36px 40px 34px; }
.pf-home__copy .pf-kicker { color: #F5C16B; }
.pf-home__title { margin: 0 0 8px; font-family: var(--display); font-size: 1.7rem; letter-spacing: -.03em; color: #fff; }
.pf-home__text { margin: 0 0 18px; color: rgba(241,245,251,.8); line-height: 1.5; max-width: 46ch; }
.pf-home__main .pf-link { color: #fff; }
.pf-home__side { display: grid; gap: 28px; align-content: start; }
.pf-home__item { display: grid; gap: 2px; text-decoration: none; color: var(--ink); }
.pf-home__thumb { display: block; margin-bottom: 12px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: #E9EDF3; box-shadow: 0 0 0 1px rgba(8,18,37,.06); }
.pf-home__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.pf-home__item:hover img { transform: scale(1.03); }
.pf-home__item .pf-kicker { margin: 0; font-size: .82rem; }
.pf-home__name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.pf-home__main:focus-visible, .pf-home__item:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 14px; }

/* Service pages: «Projetos nesta área» ------------------------------------- */
.pf-refs__list { display: grid; gap: 22px; }
.pf-refs__item { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: 18px; border-radius: 18px; background: var(--surface, #fff); box-shadow: inset 0 0 0 1px var(--slate-200, #E3E8F0); text-decoration: none; color: var(--ink); transition: box-shadow .2s; }
.pf-refs__item:hover { box-shadow: inset 0 0 0 1px var(--blue-300, #8AB8FF); }
.pf-refs__media { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: #E9EDF3; }
.pf-refs__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pf-refs__body { display: grid; gap: 6px; padding-right: 12px; }
.pf-refs__title { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }
.pf-refs__text { color: var(--slate-600); line-height: 1.55; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .pf-hero__grid, .cs-hero__grid { grid-template-columns: 1fr; gap: 16px; }
  /* Sticky filter row: one line that scrolls sideways, so the bar stays short. */
  .pf-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .pf-filter { flex: none; }
  .pf-filters::-webkit-scrollbar { display: none; }
  /* Narrower screens: text first, then the composition, with less overlap. */
  .pf-feature { background: var(--paper); padding-top: 48px; }
  .pf-feature__grid { grid-template-columns: 1fr; gap: 44px; }
  .pf-feature__headline { margin-bottom: 18px; max-width: 46ch; }
  .pf-feature__copy { order: 0; max-width: 640px; }
  .pf-feature__media { order: 1; padding: 0 5% 12% 8%; }
  .pf-feature .pdev__float { left: -8%; bottom: -12%; width: 40%; }
  .pf-feature .pdev__phone { right: -5%; bottom: -12%; width: 19%; }
  .pf-feature__copy { color: var(--ink); }
  .pf-feature__title a { color: var(--ink); }
  .pf-feature__headline { color: var(--slate-600); }
  .pf-feature .pf-kicker { color: var(--blue); }
  .pf-row, .pf-row.is-reverse { grid-template-columns: 1fr; gap: 28px; }
  .pf-row.is-reverse .pf-row__media { order: 0; padding: 0 6% 9% 0; }
  .cs-platforms__grid, .cs-caps__grid, .cs-close { grid-template-columns: 1fr 1fr; }
  .pf-home__grid { grid-template-columns: 1fr; }
  .pf-home__side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .pf-hero__title { font-size: 3rem; }
  .pf-facts { grid-template-columns: 1fr; gap: 12px; }
  .pf-facts dt { font-size: 1.4rem; }
  .cs-story, .cs-platforms__grid, .cs-caps__grid, .cs-close { grid-template-columns: 1fr; }
  .cs-story { gap: 32px; }
  .cs-next a { grid-template-columns: 1fr; padding: 24px; }
  .cs-next img { grid-column: 1; grid-row: auto; margin-top: 14px; }
  .pf-home__media { padding: 20px 20px 0; }
  .pf-home__copy { padding: 28px 22px 26px; }
  .pf-home__side { grid-template-columns: 1fr; }
  .pf-refs__item { grid-template-columns: 1fr; gap: 16px; }
  .pdev__float { display: none; }
  .pdev__bar em { display: none; }
  .pf-feature { padding-top: 36px; }
  .pf-feature__media { padding: 0 4% 13% 0; }
  .pf-feature .pdev__phone { right: -3%; bottom: -13%; width: 26%; border-width: 3px; border-radius: 14px; }
  .cs-hero__media { margin-bottom: -18%; }
  .cs-hero + .cs-story, .cs-facts { padding-top: calc(18% + 48px); }
}
@media (prefers-reduced-motion: reduce) {
  .pf-more__thumb img, .pf-home__thumb img, .cs-next img, .pf-link .icon { transition: none; }
}
