/*
 * JOÃO SALANTI — PORTFÓLIO
 * CSS REVISADO A PARTIR DO ARQUIVO ENVIADO PELO AUTOR (V03.12)
 * Regras gerais agrupadas por seletor; media queries após as regras-base
 * de cada seção. Valores responsivos e estados interativos preservados.
 */

/* ============================================================================== */
/* 01. Variáveis, normalização e utilitários gerais */
/* ============================================================================== */

:root {
  --paper: #f1efe8;
  --ink: #131313;
  --blue: #354eff;
  --line: #c8c6c0;
  --muted: #75746f;
  --mono: "IBM Plex Mono","Courier New",monospace;
  --body: "Instrument Sans",Arial,sans-serif;
  --display: "Archivo Black","Arial Black",Arial,sans-serif;
  --gutter: clamp(16px,3.5vw,54px);
  --header-height: 72px;
  --mix-serif: Georgia, "Times New Roman", serif;
  --fs-fluid--2: clamp(.64rem,.16vw + .60rem,.74rem);
  --fs-fluid--1: clamp(.76rem,.20vw + .70rem,.88rem);
  --fs-fluid-0: clamp(.94rem,.24vw + .88rem,1.06rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  font-size: clamp(14px,.25vw + 13px,18px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: clip;
  font-size: 1rem;
}

body.menu-open {
  overflow: hidden;
}

button {
  touch-action: manipulation;
  font: inherit;
}

a {
  touch-action: manipulation;
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

[role="button"]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 999;
  background: var(--ink);
  color: white;
  padding: 12px;
}

.skip:focus {
  top: 10px;
}

.mono {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: .025em;
  font-size: var(--fs-fluid--2);
}

.blue {
  color: var(--blue);
}

.grid-paper {
  background-image: linear-gradient(to right,transparent calc(25% - .5px),rgba(40,40,40,.12) 25%,transparent calc(25% + .5px),transparent calc(50% - .5px),rgba(40,40,40,.12) 50%,transparent calc(50% + .5px),transparent calc(75% - .5px),rgba(40,40,40,.12) 75%,transparent calc(75% + .5px)),repeating-linear-gradient(to bottom,transparent 0px,transparent 134px,rgba(20,20,20,.12) 135px,transparent 136px);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 510;
  pointer-events: none;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
}

.mix-outline {
  text-stroke: 1.4px currentColor;
  color: transparent !important;
  -webkit-text-stroke: 2px #161616 !important;
  paint-order: stroke fill;
}

.mix-serif {
  font-family: var(--mix-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.03em;
}

@media (max-width:760px) {
  :root {
    --header-height: 3.9rem;
    --gutter: 18px;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  
  *:before {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  
  *:after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* ============================================================================== */
/* 02. Cabeçalho, idiomas e navegação móvel */
/* ============================================================================== */

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(241,239,232,.94);
  z-index: 500;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink);
  transition: transform .35s ease;
}

.masthead.is-hidden {
  transform: translateY(-102%);
}

.masthead-inner {
  height: var(--header-height);
  display: grid;
  align-items: center;
  padding: 0 var(--gutter);
  grid-template-columns: minmax(0,1.05fr) minmax(max-content,.55fr) minmax(0,1fr) auto;
  column-gap: clamp(.75rem,1.6vw,1.4rem);
}

.wordmark {
  font-family: var(--display);
  letter-spacing: -.07em;
  text-decoration: none;
  white-space: nowrap;
  font-size: clamp(1.35rem,1vw + 1.05rem,1.95rem);
}

.edition {
  display: flex;
  gap: 12px;
  font: 600 10px var(--mono);
  letter-spacing: .03em;
  white-space: nowrap;
  align-items: center;
  font-size: var(--fs-fluid--2);
}

.edition-circle {
  font-size: 22px;
  color: var(--blue);
  animation: rotate 18s linear infinite;
}

.desktop-nav {
  display: flex;
  gap: clamp(14px,2.2vw,40px);
  justify-content: flex-end;
}

.desktop-nav a {
  font: 650 13px var(--body);
  text-decoration: none;
  position: relative;
  font-size: clamp(.90rem,.18vw + .84rem,1rem);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--blue);
  bottom: -6px;
  transition: right .25s;
}

.desktop-nav a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-switch {
  display: flex;
  gap: 7px;
  align-items: center;
  font: 650 12px var(--mono);
  font-size: var(--fs-fluid--2);
}

.lang {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px 0;
  color: var(--muted);
}

.lang.is-active {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 33px;
  height: 33px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.mobile-nav[hidden] {
  display: none !important;
}

.language-switch a.lang {
  display: inline-block;
  text-decoration: none;
  line-height: 1.2;
}

.language-switch a.lang:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

@media (max-width:1080px) {
  .edition {
    display: none;
  }
}

@media (max-width:760px) {
  .desktop-nav {
    display: none;
  }
  
  .edition {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .mobile-nav {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100svh - var(--header-height));
    padding: 40px var(--gutter);
    background: var(--paper);
    flex-direction: column;
    border-top: 1px solid var(--ink);
    gap: 0;
    z-index: 600;
  }
  
  .mobile-nav a {
    display: block;
    font: clamp(45px,10vw,78px)/1 var(--display);
    letter-spacing: -.08em;
    padding: 23px 5px;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    font-size: clamp(2.1rem,8.8vw,4.3rem);
  }
  
  .mobile-nav a:hover {
    color: var(--blue);
  }
  
  .masthead-inner {
  height: var(--header-height);
  display: grid;
  align-items: center;
  padding: 0 var(--gutter);
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(.75rem,1.6vw,1.4rem);
}
  
  .wordmark {
    font-size: clamp(1.18rem,4.9vw,1.55rem);
  }
}

@media (max-width:500px) {
  .header-actions {
    gap: 11px;
  }
}


/* ============================================================================== */
/* 03. Hero: tipografia, fotografia, camadas e parallax */
/* ============================================================================== */

.hero {
  padding-top: var(--header-height);
  position: relative;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  min-height: 0;
}

.hero-overline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 5;
  margin: 0 var(--gutter);
  height: 53px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-fluid--2);
}

.hero-overline span:nth-child(2) {
  margin-left: auto;
}

.hero-stage {
  position: relative;
  margin: 0 var(--gutter);
  isolation: isolate;
  height: clamp(650px,80svh,1000px);
  --graphic-x: 0px;
  --graphic-scroll: 0px;
}

.hero-headlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.095em;
  line-height: .79;
  white-space: nowrap;
  z-index: 10;
}

.hero-line {
  display: block;
  position: absolute;
  font-size: clamp(70px,11.7vw,184px);
  transform: translate3d(var(--hx,0px),var(--hy,0px),0);
  transition: transform .12s linear;
  will-change: transform;
  width: max-content;
  max-width: 76%;
}

.hero-line.first {
  z-index: 1;
  top: 9%;
  left: 0;
  font-size: clamp(67px,9vw,150px);
}

.hero-line.second {
  z-index: 4;
  top: 33%;
  right: 0;
  left: auto;
  text-align: right;
  font-size: clamp(63px,8.45vw,138px);
}

.hero-line.third {
  z-index: 4;
  letter-spacing: -.075em;
  top: 67%;
  left: 0;
  right: auto;
  text-align: left;
  font-size: clamp(43px,6.55vw,108px);
}

.hero-dot {
  color: var(--blue);
}

.portrait-scene {
  position: absolute;
  pointer-events: none;
  overflow: visible;
  transform: translateX(var(--px,0px));
  z-index: 6;
  left: 32%;
  width: 37%;
  height: 84%;
  bottom: -1%;
}

.portrait-shadow {
  position: absolute;
  width: 68%;
  height: 76%;
  left: 18%;
  bottom: 2%;
  border-radius: 50%;
  background: radial-gradient(ellipse,rgba(53,78,255,.21),transparent 70%);
  filter: blur(22px);
}

.portrait-ghost {
  position: absolute;
  width: 100%;
  height: 100%;
  left: -6%;
  bottom: 0;
  clip-path: polygon(0 9%,100% 17%,100% 23%,0 31%,0 53%,100% 60%,100% 62%,0 56%,0 74%,100% 79%,100% 84%,0 82%);
  transform: translateX(-9%) skewX(-13deg);
  opacity: .7;
  filter: grayscale(1) contrast(2);
  z-index: 2;
}

.portrait-ghost img {
  height: 122%;
  width: 100%;
  object-fit: contain;
  object-position: bottom;
}

.portrait-grain {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to right,transparent 10%,black 50%,transparent 100%);
  background: repeating-linear-gradient(0deg,rgba(19,19,19,.21) 0 1px,transparent 1px 5px);
  opacity: .32;
  z-index: 5;
}

.portrait-streak {
  position: absolute;
  background: repeating-linear-gradient(to bottom,rgba(20,20,20,.16),rgba(20,20,20,.06) 2px,transparent 3px,transparent 8px);
  mask-image: linear-gradient(to right,transparent,black,transparent);
  transform: skewX(-15deg);
  animation: streakPulse 5s ease-in-out infinite alternate;
  opacity: .85;
  filter: contrast(1.4);
  z-index: 5;
}

.portrait-streak-a {
  width: 56%;
  height: 10%;
  top: 26%;
  left: -17%;
}

.portrait-streak-b {
  width: 72%;
  height: 8%;
  top: 59%;
  right: -20%;
  animation-delay: 1s;
}

.portrait-stamp {
  position: absolute;
  right: 2%;
  top: 11%;
  font: 600 10px/1.5 var(--mono);
  text-align: right;
  transform: rotate(90deg);
  opacity: .6;
}

.hero-vertical {
  position: absolute;
  writing-mode: vertical-rl;
  color: var(--muted);
  z-index: 8;
  right: 0;
  top: 23%;
  opacity: .75;
}

.hero-bottom {
  position: relative;
  display: grid;
  grid-template-columns: 27% 35% 38%;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  min-height: 166px;
  z-index: 9;
  background: rgba(241,239,232,.85);
}

.hero-bottom>* {
  padding: 15px clamp(15px,3vw,45px);
  border-right: 1px solid var(--line);
}

.hero-bottom>*:last-child {
  border: 0;
}

.index {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
}

.identity-name {
  font: clamp(28px,3.1vw,49px)/.87 var(--display);
  letter-spacing: -.08em;
  margin: 0;
}

.hero-intro p {
  font-weight: 500;
  line-height: 1.28;
  max-width: 470px;
  margin: 0;
  font-size: var(--fs-fluid-0);
}

.hero-index {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.hero-index a {
  display: grid;
  text-decoration: none;
  font: 650 11px var(--mono);
  border-bottom: 1px solid var(--line);
  padding: 7px 3px;
  font-size: var(--fs-fluid--2);
  grid-template-columns: 2.2rem 1fr 1.1rem;
}

.hero-index a:hover {
  color: var(--blue);
}

.hero-index a span:last-child {
  text-align: right;
}

.hero-effect {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  will-change: transform;
}

.halftone-left {
  background-image: radial-gradient(circle at center,rgba(16,16,16,.72) 1.3px,transparent 1.65px);
  background-size: 7px 7px;
  mix-blend-mode: multiply;
  transform: translate3d(calc(var(--graphic-x,0px)*-.7),calc(var(--graphic-scroll,0px)*.2),0) rotate(-4deg);
  left: 29%;
  top: 16%;
  width: 15%;
  height: 38%;
  opacity: .38;
  mask-image: radial-gradient(ellipse 80% 80% at 52% 45%,#000 28%,transparent 80%);
  z-index: 3;
}

.halftone-right {
  background-image: radial-gradient(circle at center,rgba(16,16,16,.72) 1.3px,transparent 1.65px);
  mix-blend-mode: multiply;
  background-size: 5px 5px;
  transform: translate3d(calc(var(--graphic-x,0px)*.62),calc(var(--graphic-scroll,0px)*-.28),0) rotate(9deg);
  right: 24%;
  bottom: 15%;
  width: 14%;
  height: 28%;
  opacity: .3;
  mask-image: radial-gradient(ellipse 70% 70% at 45% 45%,#000 16%,transparent 78%);
  z-index: 3;
}

.registration-mark {
  border: 1px solid rgba(53,78,255,.6);
  border-radius: 50%;
  transform: translate3d(calc(var(--graphic-x,0px)*.38),calc(var(--graphic-scroll,0px)*-.24),0);
  left: 57%;
  top: 16%;
  width: 118px;
  height: 118px;
  opacity: .72;
  z-index: 7;
}

.registration-mark::before {
  content: "";
  position: absolute;
  background: rgba(53,78,255,.65);
  left: 50%;
  top: -12%;
  width: 1px;
  height: 124%;
}

.registration-mark::after {
  content: "";
  position: absolute;
  background: rgba(53,78,255,.65);
  top: 50%;
  left: -12%;
  height: 1px;
  width: 124%;
}

.stencil-number {
  font: 650 11px var(--mono);
  writing-mode: vertical-rl;
  color: #354eff;
  transform: translate3d(calc(var(--graphic-x,0px)*-.5),calc(var(--graphic-scroll,0px)*.36),0);
  z-index: 2;
  left: 31%;
  top: 20%;
  right: auto;
  opacity: .55;
}

.noise-slash {
  background: repeating-linear-gradient(90deg,rgba(18,18,18,.25),rgba(18,18,18,.25) 4px,rgba(53,78,255,.25) 5px,transparent 15px);
  clip-path: polygon(0 0,100% 0,92% 100%,3% 100%);
  transform: translate3d(calc(var(--graphic-x,0px)*-.9),calc(var(--graphic-scroll,0px)*-.2),0);
  left: 33%;
  bottom: 19%;
  width: 29%;
  height: 11px;
  opacity: .7;
  z-index: 8;
}

.hero-stage .halftone-left {
  opacity: .64;
  background-size: 5.7px 5.7px;
}

.hero-stage .halftone-right {
  opacity: .64;
  background-size: 5.7px 5.7px;
}

.hero-stage .portrait-grain {
  opacity: .49;
  z-index: 4;
}

.hero-stage .portrait-streak {
  opacity: 1;
}

.hero-stage .registration-mark {
  opacity: .92;
}

.hero-effect[data-gdepth] {
  --depth-x: 0px;
  --depth-y: 0px;
}

.graphic-glasses-orbit {
  position: absolute;
  aspect-ratio: 1;
  mix-blend-mode: multiply;
  transform: translate3d(var(--depth-x),var(--depth-y),0);
  left: 58%;
  top: 13%;
  width: 12%;
  opacity: .88;
  z-index: 7;
}

.graphic-glasses-orbit:before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(53,78,255,.8);
  border-radius: 50%;
  clip-path: polygon(0 0,67% 0,67% 100%,0 100%);
}

.graphic-glasses-orbit:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 16%;
  border: 2px dashed rgba(16,16,16,.55);
  clip-path: none;
}

.graphic-glasses-orbit span {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.graphic-glasses-orbit .ring-inner {
  inset: 34%;
  border: 2px solid #345aff;
}

.graphic-glasses-orbit .ring-outer {
  inset: -19%;
  border: 1px solid rgba(8,8,8,.35);
}

.graphic-lens-track {
  position: absolute;
  border-top: 1px solid rgba(15,15,15,.6);
  border-bottom: 1px solid rgba(15,15,15,.35);
  background: linear-gradient(90deg,transparent 12%,rgba(53,78,255,.16) 20%,transparent 80%);
  transform: translate3d(var(--depth-x),var(--depth-y),0) skewY(-6deg);
  left: 46%;
  top: 28%;
  width: 28%;
  height: 9%;
  z-index: 7;
}

.graphic-lens-track:after {
  content: "";
  position: absolute;
  right: 0;
  top: -18%;
  width: 24%;
  height: 135%;
  background: repeating-linear-gradient(90deg,rgba(13,13,13,.8) 0 2px,transparent 2px 7px);
  mask-image: linear-gradient(to right,black,transparent);
}

.graphic-print-bars {
  position: absolute;
  background: repeating-linear-gradient(90deg,rgba(0,0,0,.85) 0 2px,transparent 2px 5px,rgba(53,78,255,.8) 6px 8px,transparent 8px 14px);
  clip-path: polygon(0 10%,100% 0,78% 75%,0 85%);
  mask-image: linear-gradient(90deg,transparent,black 33%,black 75%,transparent);
  transform: translate3d(var(--depth-x),var(--depth-y),0) rotate(-7deg);
  left: 28%;
  bottom: 14%;
  width: 15%;
  height: 12%;
  opacity: .62;
  z-index: 8;
}

.graphic-editorial-crop {
  position: absolute;
  border: 1px solid rgba(0,0,0,.19);
  border-left: 0;
  border-bottom: 0;
  clip-path: polygon(0 0,100% 0,100% 15%,8% 15%,8% 100%,0 100%);
  transform: translate3d(var(--depth-x),var(--depth-y),0);
  left: 32%;
  top: 29%;
  width: 34%;
  height: 41%;
  opacity: .55;
  z-index: 3;
}

.graphic-editorial-crop:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-top: 4px solid #3557ff;
  border-left: 4px solid #3557ff;
}

.graphic-micro-halftone {
  position: absolute;
  background: radial-gradient(circle,#151515 1px,transparent 1.4px);
  background-size: 8px 8px;
  mask-image: linear-gradient(150deg,black,transparent 70%);
  transform: translate3d(var(--depth-x),var(--depth-y),0) rotate(-14deg);
  left: 60%;
  bottom: 13%;
  width: 11%;
  height: 16%;
  opacity: .26;
  z-index: 7;
}

.hero-stage .hero-line {
  font-family: var(--display);
  font-weight: 900;
  width: max-content;
  max-width: none;
  font-size: clamp(38px, min(5vw, 15svh), 112px) !important;
  line-height: .88;
  letter-spacing: -.075em;
}

.hero-stage .hero-line.first {
  font-family: var(--display);
  font-weight: 900;
  z-index: 5;
  width: max-content;
  max-width: none;
  font-size: clamp(38px, min(5vw, 15svh), 112px) !important;
  line-height: .88;
  letter-spacing: -.075em;
  top: 6%;
  left: 0;
  right: auto;
}

.hero-stage .hero-line.second {
  font-family: var(--display);
  font-weight: 900;
  z-index: 5;
  width: max-content;
  max-width: none;
  font-size: clamp(38px, min(5vw, 15svh), 112px) !important;
  line-height: .88;
  letter-spacing: -.075em;
  top: 37%;
  left: auto;
  right: 0;
  text-align: right;
}

.hero-stage .hero-line.third {
  font-family: var(--display);
  font-weight: 900;
  z-index: 5;
  width: max-content;
  max-width: none;
  font-size: clamp(38px, min(5vw, 15svh), 112px) !important;
  line-height: .88;
  letter-spacing: -.075em;
  top: 68%;
  left: 0;
  right: auto;
  text-align: left;
}

.portrait-main {
  width: 100%;
  object-fit: contain;
  object-position: bottom;
  display: block;
  position: absolute;
  left: 0;
  transform: translateY(var(--py,0px));
  filter: contrast(1.12) drop-shadow(4px 8px 16px rgba(0,0,0,.13));
  height: 100%;
  bottom: -2%;
}

.hero-headlines .hero-dot {
  color: var(--blue);
}

.hero-stage .portrait-scene {
  left: 29%;
  width: 42%;
  height: 96%;
  bottom: 0;
  z-index: 6;
}

.hero-stage .portrait-ghost {
  z-index: 1;
}

.hero-stage .portrait-stamp {
  z-index: 7;
}

.hero-stage .portrait-scene .halftone-left {
  left: 1%;
  top: 13%;
  width: 40%;
  height: 39%;
  opacity: .4;
  z-index: 2;
}

.hero-stage .portrait-scene .halftone-right {
  left: 69%;
  right: auto;
  bottom: 15%;
  width: 34%;
  height: 31%;
  opacity: .33;
  z-index: 2;
}

.hero-stage .portrait-scene .registration-mark {
  left: 56%;
  right: auto;
  top: 6%;
  width: 32%;
  height: auto;
  aspect-ratio: 1;
  opacity: .7;
  z-index: 2;
}

.hero-stage .portrait-scene .stencil-number {
  left: 1%;
  right: auto;
  top: 26%;
  opacity: .45;
  z-index: 2;
}

.hero-stage .portrait-scene .noise-slash {
  left: 5%;
  bottom: 20%;
  width: 73%;
  height: 2%;
  opacity: .62;
  z-index: 6;
}

.hero-stage .portrait-scene .graphic-glasses-orbit {
  left: 57%;
  top: 10%;
  width: 31%;
  opacity: .78;
  z-index: 6;
}

.hero-stage .portrait-scene .graphic-lens-track {
  left: 8%;
  top: 36%;
  width: 80%;
  height: 8%;
  z-index: 2;
}

.hero-stage .portrait-scene .graphic-print-bars {
  left: -3%;
  bottom: 21%;
  width: 46%;
  height: 14%;
  opacity: .57;
  z-index: 6;
}

.hero-stage .portrait-scene .graphic-editorial-crop {
  left: 14%;
  top: 19%;
  width: 70%;
  height: 67%;
  opacity: .46;
  z-index: 2;
}

.hero-stage .portrait-scene .graphic-micro-halftone {
  left: 66%;
  bottom: 12%;
  width: 31%;
  height: 22%;
  opacity: .26;
  z-index: 2;
}

.hero-stage .portrait-scene .graphic-editorial-crop:before {
  width: 10%;
  height: 10%;
  border-top-width: 3px;
  border-left-width: 3px;
}

.hero-stage .portrait-main {
  z-index: 7;
}

@media (min-width:761px) {
  .hero-line {
    letter-spacing: -.08em;
    font-size: clamp(55px,7.25vw,118px);
    line-height: .88;
  }
  
  .hero-line.first {
    line-height: .89;
    letter-spacing: -.08em;
  }
  
  .hero-line.second {
    line-height: .89;
    letter-spacing: -.08em;
  }
  
  .hero-line.third {
    line-height: .89;
    letter-spacing: -.08em;
  }
  
  .portrait-ghost img {
    height: 109%;
  }
  
  .hero {
    height: 78svh;
    max-height: none;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height);
    min-height: 590px;
  }
  
  .hero-overline {
    flex: 0 0 49px;
    height: 49px;
  }
  
  .hero-stage {
    flex: 1 1 auto;
    height: auto !important;
    max-height: none;
    margin: 0 var(--gutter);
    min-height: 260px !important;
  }
  
  .hero-bottom {
    flex: 0 0 auto;
    min-height: clamp(115px,13vh,160px);
  }
  
  .hero-headlines {
    letter-spacing: -.078em;
  }
  
  .portrait-ghost {
    opacity: .4;
  }
}

@media (min-width:761px) and (max-width:1100px) {
  .portrait-scene {
    left: 32%;
    width: 38%;
  }
}

@media (max-width:1080px) {
  .hero-stage {
    min-height: 450px;
    height: clamp(580px,78svh,860px);
  }
  
  .hero-line {
    font-size: 12.2vw;
  }
  
  .hero-line.second {
    font-size: 8.9vw;
  }
  
  .hero-bottom {
    grid-template-columns: 26% 41% 33%;
  }
  
  .hero-line.first {
    font-size: 9.4vw;
  }
  
  .hero-line.third {
    font-size: 6.9vw;
  }
}

@media (max-width:760px) {
  .hero-overline {
    height: 42px;
  }
  
  .overline-index {
    display: none;
  }
  
  .hero-overline span:nth-child(2) {
    display: none;
  }
  
  .hero-stage {
    margin: 0 var(--gutter);
    min-height: 0;
    height: clamp(430px,65svh,600px);
  }
  
  .hero-headlines {
    line-height: .87;
  }
  
  .portrait-streak-a {
    top: 28%;
  }
  
  .portrait-streak-b {
    top: 65%;
  }
  
  .hero-bottom {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }
  
  .hero-identity {
    border-bottom: 1px solid var(--line);
    padding: 15px 12px;
  }
  
  .hero-intro {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px 12px;
  }
  
  .identity-name {
    font-size: 34px;
  }
  
  .hero-index {
    grid-column: 1/-1;
    padding: 8px 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 18px;
  }
  
  .hero {
    display: block;
    height: auto;
    min-height: 0;
  }
  
  .hero-line.first {
    letter-spacing: -.072em;
    top: 3%;
    left: 0;
    font-size: clamp(50px,14vw,104px);
  }
  
  .hero-line.second {
    letter-spacing: -.072em;
    top: 16%;
    right: 0;
    left: auto;
    text-align: right;
    font-size: clamp(48px,13.2vw,98px);
  }
  
  .hero-line.third {
    letter-spacing: -.072em;
    top: 29%;
    left: 0;
    right: auto;
    font-size: clamp(40px,11vw,82px);
  }
  
  .hero-line {
    font-size: clamp(27px,8.55vw,68px) !important;
    letter-spacing: -.08em;
    line-height: .93;
    max-width: 100%;
  }
  
  .portrait-ghost {
    opacity: .25;
  }
  
  .halftone-left {
    left: 14%;
    top: 42%;
    width: 21%;
    height: 22%;
  }
  
  .halftone-right {
    right: 14%;
    bottom: 10%;
    width: 18%;
    height: 18%;
  }
  
  .portrait-stamp {
    font-size: 8px;
  }
  
  .graphic-glasses-orbit {
    left: 62%;
    top: 41%;
    width: 16%;
  }
  
  .registration-mark {
    left: auto;
    right: 12%;
    top: 40%;
    width: 90px;
    height: 90px;
  }
  
  .stencil-number {
    left: 13%;
    top: 49%;
  }
  
  .noise-slash {
    left: 22%;
    bottom: 17%;
    width: 48%;
  }
  
  .graphic-lens-track {
    left: 35%;
    top: 49%;
    width: 40%;
    height: 8%;
  }
  
  .graphic-print-bars {
    left: 19%;
    bottom: 9%;
    width: 24%;
    height: 10%;
  }
  
  .graphic-editorial-crop {
    left: 22%;
    top: 44%;
    width: 46%;
    height: 30%;
  }
  
  .graphic-micro-halftone {
    left: 58%;
    bottom: 8%;
    width: 16%;
    height: 12%;
  }
  
  .hero-vertical {
    display: none;
  }
  
  .portrait-scene {
    left: 18%;
    width: 65%;
    height: 61%;
    bottom: 1%;
    z-index: 6;
  }
  
  .hero-stage .hero-line {
    font-size: clamp(23px, 8.6vw, 60px) !important;
    letter-spacing: -.072em;
    line-height: .93;
  }
  
  .hero-stage .hero-line.first {
    font-size: clamp(23px, 8.6vw, 60px) !important;
    letter-spacing: -.072em;
    line-height: .93;
    left: 0;
    right: auto;
    top: 3%;
  }
  
  .hero-stage .hero-line.second {
    font-size: clamp(23px, 8.6vw, 60px) !important;
    letter-spacing: -.072em;
    line-height: .93;
    right: 0;
    left: auto;
    top: 14%;
    text-align: right;
  }
  
  .hero-stage .hero-line.third {
    font-size: clamp(23px, 8.6vw, 60px) !important;
    letter-spacing: -.072em;
    line-height: .93;
    left: 0;
    right: auto;
    top: 25%;
    text-align: left;
  }
  
  .hero-stage .portrait-scene {
    left: 19%;
    width: 62%;
    height: 61%;
    bottom: 2%;
  }
  
  .hero-stage .portrait-main {
    height: 103%;
    bottom: -2%;
  }
  
  .hero-stage .portrait-scene .registration-mark {
    width: 32%;
  }
  
  .hero-stage .portrait-scene .stencil-number {
    font-size: 8px;
  }
  
  .hero-intro p {
    font-size: clamp(.84rem,.45vw + .78rem,.98rem);
  }
  
  .index.mono {
    font-size: var(--fs-fluid--2);
  }
}

@media (max-width:500px) {
  .hero-identity {
    padding: 12px;
  }
  
  .identity-name {
    font-size: 29px;
  }
  
  .index {
    font-size: 8px;
  }
  
  .hero-index {
    gap: 0 10px;
  }
  
  .hero-index a {
    grid-template-columns: 1.6rem 1fr .8rem;
  }
  
  .hero-line.first {
    font-size: 15vw;
  }
  
  .hero-line.second {
    font-size: 14vw;
  }
  
  .hero-line.third {
    font-size: 11vw;
  }
  
  .hero-stage {
    height: clamp(390px,60svh,515px);
  }
  
  .hero-stage .hero-line {
    font-size: clamp(22px,8.5vw,42px) !important;
  }
  
  .hero-stage .hero-line.first {
    font-size: clamp(22px,8.5vw,42px) !important;
  }
  
  .hero-stage .hero-line.second {
    font-size: clamp(22px,8.5vw,42px) !important;
  }
  
  .hero-stage .hero-line.third {
    font-size: clamp(22px,8.5vw,42px) !important;
  }
  
  .hero-stage .portrait-scene {
    left: 17%;
    width: 66%;
    height: 59%;
    bottom: 1.5%;
  }
}

@media (max-width:480px) {
  .portrait-scene {
    height: 61%;
    width: 70%;
    left: 14%;
    bottom: 0;
  }
  
  .registration-mark {
    top: 49%;
    right: 6%;
  }
}

@media (max-width:360px) {
  .hero-line {
    font-size: 8.3vw !important;
  }
}

@media (min-width:761px) and (max-height:700px) {
  .hero-line {
    font-size: clamp(48px,6.2vw,97px);
  }
  
  .hero-bottom {
    min-height: 107px;
  }
  
  .hero-bottom>* {
    padding: 10px clamp(12px,2vw,24px);
  }
  
  .hero-intro p {
    line-height: 1.22;
  }
  
  .hero-index a {
    padding: 5px 3px;
  }
}

@media (max-height:550px) and (min-width:761px) {
  .hero-stage .hero-line {
    font-size: clamp(39px,min(6.1vw,15svh),74px) !important;
  }
  
  .hero-stage .hero-line.first {
    font-size: clamp(39px,min(6.1vw,15svh),74px) !important;
  }
  
  .hero-stage .hero-line.second {
    font-size: clamp(39px,min(6.1vw,15svh),74px) !important;
  }
  
  .hero-stage .hero-line.third {
    font-size: clamp(39px,min(6.1vw,15svh),74px) !important;
  }
}

@media (max-width:760px) and (prefers-reduced-motion:no-preference) {
  .hero-stage .portrait-scene .hero-effect {
    will-change: transform;
  }
}

@media (prefers-reduced-motion:reduce) {
  .hero-effect {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  .portrait-scene {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  .portrait-main {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  .hero-line {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  .hero-effect[data-gdepth] {
    transform: none !important;
  }
  
  .hero-stage .hero-line {
    transition: none;
    transform: none !important;
  }
}


/* ============================================================================== */
/* 04. Faixa animada / marquee */
/* ============================================================================== */

.scroll-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  position: relative;
  height: 48px;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: #111;
  color: #f1efe8;
  font-size: var(--fs-fluid--2);
}

.idea-band {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.idea-band-track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  font: 700 11px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: marquee-loop 28s linear infinite;
  will-change: transform;
}

.idea-band-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 26px;
  padding-right: 26px;
}

.idea-band-group span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 26px;
}

.idea-band-group span::after {
  content: "✳";
  color: var(--blue);
  font-size: 14px;
}

@media (min-width:761px) {
  .scroll-marker {
    flex: 0 0 30px;
  }
}

@media (max-width:760px) {
  .scroll-marker {
    height: 42px;
  }
  
  .idea-band-track {
    font-size: 10px;
  }
  
  .idea-band-group {
    gap: 18px;
    padding-right: 18px;
  }
  
  .idea-band-group span {
    gap: 18px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .idea-band-track {
    animation: none;
  }
}


/* ============================================================================== */
/* 05. Trabalhos selecionados: filtros, cards e grade */
/* ============================================================================== */

.section-top {
  padding: 66px var(--gutter) 38px;
  display: grid;
  grid-template-columns: 22% 53% 25%;
  border-bottom: 1px solid var(--ink);
  gap: 0;
  align-items: start;
}

.section-top>* {
  margin: 0;
}

.section-label {
  padding-top: 14px;
}

.section-top h2 {
  font: clamp(38px,5.8vw,90px)/.91 var(--display);
  letter-spacing: -.085em;
  line-height: .99;
}

.section-top p {
  line-height: 1.3;
  padding-top: 17px;
  max-width: 290px;
  font-size: var(--fs-fluid-0);
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 17px var(--gutter);
  border-bottom: 1px solid var(--ink);
}

.filter-buttons {
  display: flex;
  align-items: center;
  gap: clamp(.9rem,1.8vw,1.4rem);
}

.filter {
  border: 0;
  padding: 6px 0;
  background: none;
  font: 600 11px var(--mono);
  color: var(--muted);
  cursor: pointer;
  font-size: var(--fs-fluid--2);
}

.filter:hover {
  color: var(--blue);
}

.filter.is-active {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  gap: 0;
  grid-auto-flow: row dense;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--ink);
}

.project {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .3s ease;
  overflow: hidden;
}

.project:hover {
  background: #e7e5df;
}

.project:nth-child(2) {
  border-right: 1px solid var(--line);
}

.project:nth-child(5) {
  border-right: 1px solid var(--line);
}

.project:nth-child(8) {
  border-right: 1px solid var(--line);
}

.project[hidden] {
  display: none !important;
}

.project-1 {
  grid-column: span 7;
}

.project-2 {
  grid-column: span 5;
}

.project-3 {
  grid-column: span 4;
}

.project-4 {
  grid-column: span 5;
}

.project-5 {
  grid-column: span 3;
}

.project-6 {
  grid-column: span 3;
}

.project-7 {
  grid-column: span 5;
}

.project-8 {
  grid-column: span 4;
}

.project-media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(170px,20vw,300px);
  border-bottom: 1px solid var(--line);
  transition: filter .3s;
  isolation: isolate;
}

.project-1 .project-media {
  height: clamp(270px,34vw,490px);
}

.project-2 .project-media {
  height: clamp(270px,34vw,490px);
}

.project-3 .project-media {
  height: clamp(200px,23vw,345px);
}

.project-4 .project-media {
  height: clamp(200px,23vw,345px);
}

.project-5 .project-media {
  height: clamp(200px,23vw,345px);
}

.project-6 .project-media {
  height: clamp(160px,20vw,295px);
}

.project-7 .project-media {
  height: clamp(160px,20vw,295px);
}

.project-8 .project-media {
  height: clamp(160px,20vw,295px);
}

.project-9 .project-media {
  height: clamp(180px,21vw,310px);
}

.project-10 .project-media {
  height: clamp(180px,21vw,310px);
}

.project:hover .project-media>*:not(.image-index) {
  transform: scale(1.035);
}

.project-media>* {
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}

.project-media img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  mix-blend-mode: multiply;
  filter: grayscale(.7) contrast(1.06);
  opacity: .56;
}

.image-index {
  position: absolute;
  bottom: 11px;
  left: 13px;
  z-index: 9;
  background: var(--paper);
  padding: 5px 8px;
  font-size: 9px;
}

.project-info {
  padding: 17px 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-meta {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: var(--fs-fluid--2);
}

.project h3 {
  font-family: var(--display);
  font-size: clamp(21px,2.2vw,34px);
  line-height: 1.03;
  letter-spacing: -.06em;
  margin: 18px 0 10px;
}

.project-1 h3 {
  font-size: clamp(28px,3vw,49px);
}

.project-2 h3 {
  font-size: clamp(28px,3vw,49px);
}

.project h3 .light {
  font-family: var(--body);
  font-weight: 500;
  letter-spacing: -.05em;
}

.project-info p {
  line-height: 1.28;
  margin: auto 0 0;
  max-width: 440px;
  font-size: var(--fs-fluid-0);
}

.project:after {
  content: "↗";
  position: absolute;
  right: 15px;
  bottom: 12px;
  color: var(--blue);
  font-size: 25px;
  transition: transform .2s;
}

.project:hover:after {
  transform: translate(3px,-3px);
}

.work-foot {
  padding: 15px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted);
  font-size: var(--fs-fluid--2);
}

.work-foot a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.work-foot a:hover {
  color: var(--blue);
}

.fabrica-media {
  background: #e5e2da;
}

.poster-mark {
  font-family: var(--display);
  font-size: clamp(75px,11vw,172px);
  line-height: .76;
  letter-spacing: -.12em;
  color: #132b73;
  transform: rotate(-9deg) translate(-7%,-2%);
  opacity: .85;
}

.poster-mark span {
  color: #f26724;
}

.fabrica-media:before {
  content: "BIENAL / LIVROS / AUTORIA";
  position: absolute;
  left: 3%;
  top: 9%;
  font: 600 12px var(--mono);
  transform: rotate(-90deg) translate(-70%,-20%);
  z-index: 3;
}

.sala-media {
  color: #f1efe8;
  background: #e9e4da;
}

.sala-media img {
  width: 84%;
  height: 67%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: invert(1) contrast(1.5);
  opacity: .96;
}

.sala-columns {
  position: absolute;
  inset: 0;
  transform: rotate(-12deg) scale(1.5) skewX(-9deg);
  opacity: .21;
  background: repeating-linear-gradient(to right, transparent 0 calc(20% - 3px), #f1efe8 calc(20% - 3px) 20%);
}

.sala-corner {
  position: absolute;
  right: 15px;
  top: 16px;
  text-align: right;
  color: #adb0b0;
}

.beer-media {
  background: #d9dbd0;
  color: #171c12;
}

.beer-media strong {
  font: clamp(140px,19vw,275px)/.8 var(--display);
  letter-spacing: -.14em;
  transform: translate(-6%,8%) rotate(-6deg);
}

.beer-media strong span {
  color: #c86b39;
}

.beer-media::before {
  content: "";
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  right: -2%;
  border: 28px solid #c86b39;
  border-radius: 50%;
  mix-blend-mode: multiply;
  box-sizing: border-box;
}

.vertical-beer {
  position: absolute;
  top: 12px;
  right: 10px;
  writing-mode: vertical-rl;
  font: 600 10px var(--mono);
}

.destrava-media {
  background: #f7bcc7;
}

.destrava-media strong {
  font: clamp(85px,12vw,180px)/.8 var(--display);
  letter-spacing: -.1em;
  transform: rotate(-12deg);
}

.destrava-media strong span {
  color: var(--blue);
}

.destrava-ribbon {
  position: absolute;
  top: 20px;
  left: -4%;
  width: 110%;
  background: var(--blue);
  color: white;
  white-space: nowrap;
  padding: 8px;
  font: 600 12px var(--mono);
  transform: rotate(7deg);
  z-index: 3;
}

.arrow-diag {
  position: absolute;
  bottom: -22%;
  right: 4%;
  font-size: 280px;
  font-family: var(--body);
  font-weight: 500;
  color: var(--blue);
  opacity: .56;
}

/* Aymee Una — mantém as cores originais da apresentação de branding. */
.aymee-media {
  background: #f6f0e7;
}

.aymee-media img.project-real-media {
  object-fit: cover;
  object-position: 50% 50%;
  filter: none;
  mix-blend-mode: normal;
}

.marista-media {
  background: #cfd6dd;
  color: #183e62;
}

.marista-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,transparent 0 29px,rgba(24,62,98,.16) 30px 31px),repeating-linear-gradient(0deg,transparent 0 29px,rgba(24,62,98,.16) 30px 31px);
  transform: rotate(10deg) scale(1.3);
}

.marista-media strong {
  font: clamp(60px,9vw,140px)/.84 var(--display);
  letter-spacing: -.12em;
  transform: translateY(10%) rotate(-4deg);
}

.marista-media strong span {
  color: #db582d;
}

.marista-small {
  position: absolute;
  left: 15px;
  top: 20px;
  z-index: 2;
}

.casa-media {
  color: #30302b;
  background: #e9e4da;
}

.casa-arch {
  position: absolute;
  border: 26px solid rgba(73,66,56,.72);
  border-bottom: 0;
  border-radius: 200px 200px 0 0;
  width: 57%;
  height: 100%;
  top: 10%;
  left: 17%;
  transform: rotate(-8deg);
}

.casa-arch span {
  position: absolute;
  font-size: 110px;
  left: 50%;
  top: 24%;
  transform: translateX(-50%);
  color: #abafa5;
}

.casa-media strong {
  font: clamp(32px,5vw,70px)/.95 var(--display);
  letter-spacing: -.07em;
  text-align: center;
  z-index: 2;
  background: rgba(241,239,232,.55);
  padding: 9px;
}

.ve-media {
  color: #e9e5dc;
  background: #eff0f5;
}

.ve-media strong {
  font: clamp(120px,15vw,255px)/.8 var(--display);
  letter-spacing: -.11em;
  transform: rotate(9deg);
}

.ve-media strong span {
  color: var(--blue);
}

.ve-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg,transparent 0 18px,rgba(255,255,255,.2) 20px 21px,transparent 23px 36px);
  opacity: .6;
}

.grupos-media {
  background: #cadcc7;
  color: #183428;
}

.grupos-media strong {
  font: clamp(82px,11vw,180px)/.8 var(--display);
  letter-spacing: -.12em;
  position: relative;
  z-index: 3;
  transform: rotate(-8deg);
}

.grupos-circles {
  position: absolute;
  inset: 0;
}

.grupos-circles::before {
  content: "";
  position: absolute;
  width: 36%;
  aspect-ratio: 1;
  border: 6px solid #396a4e;
  border-radius: 50%;
  box-sizing: border-box;
  top: -15%;
  left: 10%;
}

.grupos-circles::after {
  content: "";
  position: absolute;
  width: 36%;
  aspect-ratio: 1;
  border: 6px solid #396a4e;
  border-radius: 50%;
  box-sizing: border-box;
  top: 10%;
  right: 0;
}

.grupos-media::before {
  content: "";
  bottom: -28%;
  left: 29%;
  position: absolute;
  width: 36%;
  aspect-ratio: 1;
  border: 6px solid #396a4e;
  border-radius: 50%;
  box-sizing: border-box;
}

.grupos-caption {
  position: absolute;
  top: 12px;
  right: 12px;
}

.wa-media {
  background: #dad8d0;
  color: #242a2e;
}

.wa-media strong {
  font: clamp(112px,16vw,270px)/.8 var(--display);
  letter-spacing: -.1em;
  transform: translateX(-3%);
}

.wa-media strong span {
  color: var(--blue);
}

.wa-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,rgba(31,40,45,.22) 0 2px,transparent 3px 43px);
}

.project-media img.project-real-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  mix-blend-mode: normal;
  opacity: 0;
  z-index: 7;
  transition: opacity .45s ease,transform .8s cubic-bezier(.2,.8,.2,1);
  object-position: center;
}

.project-media img.project-real-media.fit-contain {
  object-fit: contain;
  padding: 6%;
}

.project-media.has-real-media img.project-real-media {
  opacity: 1;
}

.project-media.has-real-media > :not(.project-real-media):not(.image-index):not(.site-preview-label) {
  opacity: 0;
  pointer-events: none;
}

.project-media .image-index {
  z-index: 12;
  color: #0c0c0c !important;
  background: #f1efe8 !important;
  font: 700 10px/1.15 var(--mono);
  padding: 7px 9px;
  box-shadow: 0 1px 0 rgba(0,0,0,.26);
  isolation: isolate;
  font-size: var(--fs-fluid--2);
}

.project-media .site-preview-label {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 13;
  border: 1px solid var(--line);
  font: 600 9px var(--mono);
  transition: none;
  color: #0c0c0c !important;
  background: #f1efe8 !important;
  padding: 6px 9px;
  font-size: var(--fs-fluid--2);
}

.project-media:hover img.project-real-media {
  transform: scale(1.045);
}

.project-media.has-real-media img.project-real-media.fit-contain {
  background: #f1efe8;
  object-fit: contain;
}

.project-media img.project-screenshot {
  opacity: 0 !important;
  z-index: 11;
  transition: opacity .35s ease,transform .6s ease;
  object-fit: cover;
}

.project-media img.project-screenshot.is-ready:not([hidden]) {
  opacity: 1 !important;
}

.project-media img.project-screenshot[hidden] {
  display: none !important;
}

.project-media:hover img.project-screenshot.is-ready {
  transform: scale(1.025);
}

.section-top h2 .mix-outline {
  display: inline-block;
  -webkit-text-stroke: 2.3px #161616 !important;
}

.project-screenshot {
  object-position: top center;
}

.section-top h2 .mix-serif {
  font-style: italic;
  font-weight: 500;
  font-size: 1.07em;
}

.project-1 h3 .light {
  font-family: var(--mix-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.03em;
}

.project-4 h3 .light {
  font-family: var(--mix-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.03em;
}

.project-9 h3 .light {
  font-family: var(--mix-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.03em;
}

.project-6 h3 .light {
  font-family: var(--mono);
  font-size: .55em;
  letter-spacing: -.04em;
  display: inline-block;
  vertical-align: baseline;
  text-transform: uppercase;
}

.project-9 {
  grid-column: span 4;
}

.project-10 {
  grid-column: span 4;
}

.project-11 {
  grid-column: span 4;
}

.project-11 .project-media {
  height: clamp(180px,21vw,310px);
  min-height: 0;
}

.project:nth-child(10) {
  border-right: 0;
}

.project:nth-child(11) {
  border-right: 1px solid var(--line);
}

.performance-media {
  background: #090909;
}

.performance-media img.project-real-media {
  mix-blend-mode: normal;
  filter: none;
  opacity: 1;
  object-position: center;
}

@media (max-width:1080px) {
  .section-top {
    grid-template-columns: 19% 53% 28%;
  }
  
  .section-top h2 {
    font-size: 6vw;
  }
  
  .project h3 {
    font-size: clamp(20px,2.6vw,34px);
  }
  
  .project-1 h3 {
    font-size: 3.2vw;
  }
  
  .project-2 h3 {
    font-size: 3.2vw;
  }
  
  .project-info p {
    padding-right: 20px;
  }
}

@media (max-width:760px) {
  .section-top {
    padding: 43px var(--gutter) 30px;
    grid-template-columns: 1fr 1fr;
    gap: 22px 10px;
  }
  
  .section-label {
    grid-column: 1/-1;
    padding: 0;
  }
  
  .section-top h2 {
    font-size: clamp(43px,7vw,65px);
  }
  
  .section-top p {
    padding: 0;
    font-size: clamp(.84rem,.45vw + .78rem,.98rem);
  }
  
  .filter-bar {
    padding: 14px var(--gutter);
    flex-wrap: wrap;
    font-size: 9px;
  }
  
  .filter-buttons {
    flex-wrap: wrap;
  }
  
  .project-grid {
    grid-template-columns: repeat(6,minmax(0,1fr));
    padding: 0 12px;
  }
  
  .project-1 {
    grid-column: span 3;
  }
  
  .project-2 {
    grid-column: span 3;
  }
  
  .project-3 {
    grid-column: span 2;
  }
  
  .project-4 {
    grid-column: span 4;
  }
  
  .project-5 {
    grid-column: span 2;
  }
  
  .project-6 {
    grid-column: span 4;
  }
  
  .project-7 {
    grid-column: span 3;
  }
  
  .project-8 {
    grid-column: span 3;
  }
  
  .project-media {
    height: 230px;
    min-height: 0;
  }
  
  .project-1 .project-media {
    height: 230px;
    min-height: 0;
  }
  
  .project-2 .project-media {
    height: 230px;
    min-height: 0;
  }
  
  .project-3 .project-media {
    height: 170px;
    min-height: 0;
  }
  
  .project-4 .project-media {
    height: 170px;
    min-height: 0;
  }
  
  .project-5 .project-media {
    height: 170px;
    min-height: 0;
  }
  
  .project-6 .project-media {
    height: 170px;
    min-height: 0;
  }
  
  .project-7 .project-media {
    height: 170px;
    min-height: 0;
  }
  
  .project-8 .project-media {
    height: 170px;
    min-height: 0;
  }
  
  .project-9 .project-media {
    height: 170px;
    min-height: 0;
  }
  
  .project-10 .project-media {
    height: 170px;
    min-height: 0;
  }
  
  .project-info {
    padding: 11px;
  }
  
  .project h3 {
    font-size: clamp(18px,3.7vw,29px);
    margin: 12px 0 9px;
  }
  
  .project-1 h3 {
    font-size: clamp(18px,3.7vw,29px);
    margin: 12px 0 9px;
  }
  
  .project-2 h3 {
    font-size: clamp(18px,3.7vw,29px);
    margin: 12px 0 9px;
  }
  
  .project-info p {
    padding-right: 4px;
    font-size: clamp(.84rem,.45vw + .78rem,.98rem);
  }
  
  .project:after {
    font-size: 19px;
    right: 7px;
    bottom: 7px;
  }
  
  .poster-mark {
    font-size: 14vw;
  }
  
  .beer-media strong {
    font-size: 18vw;
  }
  
  .destrava-media strong {
    font-size: 15vw;
  }
  
  .marista-media strong {
    font-size: 15vw;
  }
  
  .casa-media strong {
    font-size: 6vw;
  }
  
  .ve-media strong {
    font-size: 20vw;
  }
  
  .grupos-media strong {
    font-size: 15vw;
  }
  
  .wa-media strong {
    font-size: 21vw;
  }
  
  .project-11 {
    grid-column: span 2;
  }
  
  .project-11 .project-media {
    height: 170px;
  }
  
  .project-grid .project-9 {
    grid-column: span 3;
  }
  
  .project-grid .project-10 {
    grid-column: span 3;
  }
  
  .project-grid .project-11 {
    grid-column: span 6;
  }
  
  .project-grid .project-11 .project-media {
    height: clamp(190px,52vw,290px);
  }
  
  .project-grid .project-9 h3 {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  
  .project-grid .project-10 h3 {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  
  .filter-bar.mono {
    font-size: var(--fs-fluid--2);
  }
}

@media (max-width:500px) {
  .section-top {
    grid-template-columns: 1fr;
  }
  
  .section-top h2 {
    font-size: 52px;
  }
  
  .section-top p {
    max-width: 380px;
  }
  
  .project-grid {
    grid-template-columns: repeat(6,minmax(0,1fr));
    padding: 0 10px;
  }
  
  .project-1 {
    grid-column: span 3;
  }
  
  .project-2 {
    grid-column: span 3;
  }
  
  .project-3 {
    grid-column: span 3;
  }
  
  .project-4 {
    grid-column: span 3;
  }
  
  .project-5 {
    grid-column: span 3;
  }
  
  .project-6 {
    grid-column: span 3;
  }
  
  .project-7 {
    grid-column: span 3;
  }
  
  .project-8 {
    grid-column: span 3;
  }
  
  .project-1 .project-media {
    height: 240px;
  }
  
  .project-2 .project-media {
    height: 240px;
  }
  
  .project-3 .project-media {
    height: 165px;
  }
  
  .project-4 .project-media {
    height: 165px;
  }
  
  .project-5 .project-media {
    height: 165px;
  }
  
  .project-6 .project-media {
    height: 165px;
  }
  
  .project-7 .project-media {
    height: 165px;
  }
  
  .project-8 .project-media {
    height: 165px;
  }
  
  .project-9 .project-media {
    height: 165px;
  }
  
  .project-10 .project-media {
    height: 165px;
  }
  
  .project h3 {
    font-size: clamp(17px,5vw,26px);
  }
  
  .project-1 h3 {
    font-size: clamp(17px,5vw,26px);
  }
  
  .project-2 h3 {
    font-size: clamp(17px,5vw,26px);
  }
  
  .project-info p {
    line-height: 1.3;
  }
  
  .project-info {
    padding: 9px;
  }
  
  .work-foot {
    flex-direction: column;
  }
  
  .project-11 {
    grid-column: span 3;
  }
  
  .project-11 .project-media {
    height: 165px;
  }
  
  .project-grid .project-9 {
    grid-column: span 3;
  }
  
  .project-grid .project-10 {
    grid-column: span 3;
  }
  
  .project-grid .project-11 {
    grid-column: span 6;
  }
  
  .project-grid .project-9 .project-media {
    height: clamp(145px,44vw,185px);
  }
  
  .project-grid .project-10 .project-media {
    height: clamp(145px,44vw,185px);
  }
  
  .project-grid .project-11 .project-media {
    height: clamp(210px,61vw,290px);
  }
}

@media (max-width:360px) {
  .project-media {
    height: 180px;
  }
  
  .project-1 .project-media {
    height: 180px;
  }
  
  .project-2 .project-media {
    height: 180px;
  }
  
  .project h3 {
    font-size: 16px;
  }
  
  .project-1 h3 {
    font-size: 16px;
  }
  
  .project-2 h3 {
    font-size: 16px;
  }
  
  .project-info {
    min-height: 170px;
  }
  
  .section-top h2 {
    font-size: 43px;
  }
}


/* ============================================================================== */
/* 06. Manifesto: arte, design e tecnologia */
/* ============================================================================== */

.manifesto {
  background: #151515;
  color: var(--paper);
  min-height: 750px;
  padding: 0 var(--gutter);
  overflow: hidden;
}

.manifesto-rule {
  padding: 20px 0;
  border-bottom: 1px solid #484848;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.manifesto-type {
  position: relative;
  min-height: clamp(440px,38vw,650px);
  padding: 65px 0 42px;
}

.manifesto-word {
  font: clamp(69px,12vw,180px)/.87 var(--display);
  margin: 0;
  white-space: nowrap;
  line-height: 1.03;
  letter-spacing: -.065em;
  font-size: clamp(48px,8.3vw,140px);
  transition: transform .1s linear;
  transform: translateX(var(--mx,0px)) !important;
}

.manifesto-word span {
  color: var(--blue);
}

.word-design {
  text-align: right;
}

.manifesto-footer {
  display: grid;
  grid-template-columns: 1.1fr .6fr;
  gap: 60px;
  border-top: 1px solid #4d4d4d;
  padding: 26px 0 80px;
  align-items: start;
}

.manifesto-footer h2 {
  font: clamp(26px,3.3vw,53px)/1.02 var(--display);
  letter-spacing: -.055em;
  margin: 0;
}

.manifesto-footer p {
  font-size: clamp(16px,1.3vw,19px);
  line-height: 1.33;
  max-width: 470px;
  margin: 0;
  color: #d5d5d5;
}

.word-code {
  line-height: 1.03;
  letter-spacing: -.065em;
  font-size: clamp(48px,8.3vw,140px);
  transition: transform .1s linear;
  transform: translateX(var(--mx,0px)) !important;
}

.manifesto-notes {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: 1px solid #555;
  margin: 0 0 65px;
}

.manifesto-note {
  padding: 23px clamp(12px,2vw,30px);
  border-right: 1px solid #555;
  min-height: 190px;
}

.manifesto-note:last-child {
  border-right: 0;
}

.manifesto-note .mono {
  color: #7f86a8;
  display: block;
  margin-bottom: 25px;
}

.manifesto-note h3 {
  font: clamp(20px,2vw,32px)/1.03 var(--display);
  letter-spacing: -.035em;
  margin: 0 0 13px;
}

.manifesto-note p {
  font: 400 clamp(14px,1.15vw,17px)/1.42 var(--body);
  color: #d1d1cf;
  margin: 0;
  max-width: 35ch;
}

.manifesto-footer h2 .mix-outline {
  display: inline-block;
}

.manifesto .mix-outline {
  -webkit-text-stroke: 2px #f1efe8 !important;
}

.manifesto-footer h2 .mix-serif {
  font-weight: 400;
  font-size: 1.08em;
}

.manifesto-note:nth-child(2) h3 {
  color: transparent;
  -webkit-text-stroke: 1.4px #f1efe8;
}

.manifesto-note:nth-child(3) h3 {
  font-family: var(--mix-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px,2.55vw,43px);
}

@media (max-width:760px) {
  .manifesto {
    min-height: 0;
  }
  
  .manifesto-type {
    min-height: 430px;
  }
  
  .manifesto-footer {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-bottom: 55px;
  }
  
  .manifesto-footer h2 {
    font-size: clamp(30px,6vw,48px);
  }
  
  .manifesto-notes {
    grid-template-columns: 1fr;
  }
  
  .manifesto-note {
    border-bottom: 1px solid #555;
    border-right: 0;
    min-height: 0;
  }
  
  .manifesto-note:last-child {
    border-bottom: 0;
  }
  
  .manifesto-word {
    font-size: clamp(39px,8.5vw,76px);
  }
  
  .word-code {
    font-size: clamp(39px,8.5vw,76px);
  }
}

@media (max-width:500px) {
  .manifesto-footer h2 {
    font-size: 30px;
  }
  
  .manifesto-type {
    min-height: 310px;
    padding-top: 48px;
  }
  
  .manifesto-note {
    padding: 19px 12px;
  }
  
  .manifesto-word {
    font-size: 9.1vw;
  }
  
  .word-code {
    font-size: 9.1vw;
  }
}

@media (prefers-reduced-motion:reduce) {
  .manifesto-word {
    animation: none !important;
    transition: none !important;
  }
  
  .word-code {
    transition: none !important;
  }
}


/* ============================================================================== */
/* 07. Trajetória e apresentação pessoal */
/* ============================================================================== */

.about {
  padding: 60px var(--gutter) 110px;
  overflow: hidden;
}

.about-kicker {
  border-top: 1px solid var(--ink);
  padding-top: 15px;
}

.about-title-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 20% 1fr;
  border-bottom: 1px solid var(--ink);
  padding: 30px 0 45px;
}

.big-numeral {
  font: clamp(120px,18vw,270px)/.8 var(--display);
  letter-spacing: -.1em;
  color: rgba(20,20,20,.12);
  font-family: var(--mix-serif);
  font-style: italic;
  opacity: .4;
}

.about-title-wrap h2 {
  font: clamp(44px,7.8vw,120px)/.88 var(--display);
  letter-spacing: -.09em;
  margin: 0;
}

.about-title-wrap em {
  font-style: normal;
  color: var(--blue);
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  padding-top: 38px;
}

.about-lead {
  line-height: 1.1;
  letter-spacing: -.05em;
  font-weight: 650;
  margin: 0;
  font-size: clamp(1.42rem,.9vw + 1.14rem,2rem);
}

.about-detail>p {
  max-width: 490px;
  line-height: 1.35;
  margin: 0 0 19px;
  font-size: var(--fs-fluid-0);
}

.facts {
  margin-top: 40px;
  border-top: 1px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-top: 18px;
  color: var(--muted);
}

.about-title-wrap h2 .mix-outline {
  display: inline-block;
}

.about-title-wrap h2 .mix-serif {
  font-weight: 400;
  font-size: 1.09em;
}

@media (max-width:760px) {
  .about {
    padding: 50px var(--gutter) 80px;
  }
  
  .about-title-wrap {
    grid-template-columns: 16% 1fr;
    gap: 10px;
  }
  
  .big-numeral {
    font-size: 20vw;
  }
  
  .about-title-wrap h2 {
    font-size: clamp(42px,7.5vw,74px);
  }
  
  .about-columns {
    gap: 25px;
  }
  
  .facts {
    font-size: 9px;
  }
  
  .about-detail>p {
    font-size: clamp(.84rem,.45vw + .78rem,.98rem);
  }
  
  .facts.mono {
    font-size: var(--fs-fluid--2);
  }
}

@media (max-width:500px) {
  .about-title-wrap {
    grid-template-columns: 1fr;
    padding: 35px 0 25px;
  }
  
  .big-numeral {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 36vw;
  }
  
  .about-title-wrap h2 {
    position: relative;
    z-index: 2;
    font-size: 11.5vw;
  }
  
  .about-columns {
    grid-template-columns: 1fr;
  }
  
  .facts {
    margin-top: 28px;
  }
}


/* ============================================================================== */
/* 08. Contato, rodapé e WhatsApp */
/* ============================================================================== */

.footer {
  background: #151515;
  color: var(--paper);
  padding: 0 var(--gutter);
  overflow: hidden;
}

.footer-top {
  padding: 21px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #555;
}

.footer-huge {
  font: clamp(63px,12.1vw,184px)/.86 var(--display);
  letter-spacing: -.095em;
  margin: 58px 0 62px;
}

.footer-huge span {
  color: var(--blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
}

.footer-grid>div>span {
  color: #aaa;
}

.footer-grid p {
  max-width: 480px;
  line-height: 1.28;
  margin: 18px 0;
  font-size: var(--fs-fluid-0);
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-link-group a {
  width: fit-content;
  text-decoration: none;
  border-bottom: 1px solid #777;
  padding-bottom: 12px;
}

.footer-link-group .email-link {
  font-size: clamp(19px,2.3vw,36px);
  font-weight: 700;
  letter-spacing: -.05em;
}

.footer-link-group .email-link span {
  color: var(--blue);
  margin-left: 12px;
}

.footer-link-group a:hover {
  color: #a7b1ff;
}

.footer-last {
  border-top: 1px solid #555;
  padding: 20px 0 30px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  color: #aaa;
}

.footer-last a {
  color: var(--paper);
  text-decoration: none;
}

.whatsapp-link {
  font-size: clamp(17px,1.65vw,26px);
  font-weight: 650;
}

.footer-huge .mix-outline {
  display: inline-block;
}

.footer .mix-outline {
  -webkit-text-stroke: 2px #f1efe8 !important;
}

.footer-huge .mix-serif {
  color: var(--blue);
  font-size: 1.1em;
  font-weight: 400;
}

@media (max-width:760px) {
  .footer-huge {
    font-size: clamp(60px,12vw,105px);
  }
  
  .footer-grid {
    gap: 20px;
  }
  
  .footer-last {
    font-size: 8px;
  }
  
  .footer-top.mono {
    font-size: var(--fs-fluid--2);
  }
  
  .footer-last.mono {
    font-size: var(--fs-fluid--2);
  }
}

@media (max-width:500px) {
  .footer-top {
    font-size: 8px;
  }
  
  .footer-huge {
    font-size: 13vw;
    margin: 55px 0 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .footer-link-group .email-link {
    font-size: 23px;
  }
  
  .footer-last {
    flex-wrap: wrap;
  }
  
  .whatsapp-link {
    font-size: 18px;
  }
}


/* ============================================================================== */
/* 09. Modais de projetos, galerias e visualizador de sites */
/* ============================================================================== */

body.dialog-open {
  overflow: hidden;
}

.project-dialog {
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0,0,0,.22);
  height: min(880px,calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #171717;
  background: #f1efe8;
  width: min(1280px,calc(100vw - 28px));
  max-width: min(1280px,calc(100vw - 28px));
  overflow: hidden;
}

.project-dialog::backdrop {
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(4px);
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  flex: 0 0 auto;
  padding-bottom: 9px;
  gap: 12px;
}

.dialog-close {
  border: 1px solid var(--ink);
  background: none;
  cursor: pointer;
  font-size: 20px;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
}

.dialog-panel h2 {
  font: clamp(40px,5vw,72px)/.97 var(--display);
  letter-spacing: -.08em;
  margin: 22px 0;
  font-size: clamp(32px,4.5vw,65px);
  max-width: none;
}

.dialog-panel>p:not(.mono) {
  font-size: clamp(17px,2vw,21px);
  line-height: 1.4;
  margin: 0 0 30px;
}

.dialog-disclaimer {
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.dialog-visit {
  background: var(--blue);
  color: white;
  display: inline-flex;
  text-decoration: none;
  padding: 17px 22px;
  font: 650 12px var(--mono);
  margin-top: 20px;
}

.dialog-visit:hover {
  background: var(--ink);
}

.dialog-visit[hidden] {
  display: none;
}

.dialog-panel > p:not(.mono) {
  max-width: 810px;
}

.dialog-tabs {
  display: flex;
  margin: 0 0 10px;
  flex: 0 0 auto;
  justify-content: flex-start;
  flex-wrap: wrap;
  border: 0;
  padding: 0 0 9px;
  margin-bottom: 8px;
  padding-bottom: 10px;
  gap: .65rem !important;
}

.dialog-tab {
  cursor: pointer;
  border: 1.5px solid #272727;
  background: #f7f5f0;
  color: #161616;
  letter-spacing: .005em;
  text-decoration: none !important;
  font: 700 var(--fs-fluid--1)/1.2 var(--mono);
  padding: .85rem 1.15rem !important;
  min-height: 0 !important;
}

.dialog-tab.is-active {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  color: white;
  background: #171717;
  border-color: #171717;
}

.dialog-tab[hidden] {
  display: none;
}

.dialog-gallery {
  grid-template-columns: repeat(2,minmax(0,1fr));
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.dialog-gallery figure {
  padding: 0;
  margin: 0;
  background: #e6e3db;
  border: 1px solid var(--line);
  overflow: hidden;
}

.dialog-gallery figure img {
  width: 100%;
  display: block;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: #eae7df;
}

.dialog-gallery figcaption {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  font: 500 12px var(--body);
  color: #4f4d49;
}

.dialog-live p {
  font-size: 10px !important;
  color: var(--muted);
}

.dialog-live iframe {
  display: block;
  border: 1px solid var(--line);
  width: 100%;
  height: min(63vh,670px);
  background: white;
}

.dialog-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(16px,2.2vw,32px);
  overflow: hidden;
}

.dialog-top-caption {
  color: #666;
  margin-left: auto;
  margin-right: 20px;
  font-size: var(--fs-fluid--2);
}

.dialog-layout {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 16px;
  gap: clamp(20px,2.2vw,34px);
  grid-template-columns: minmax(230px,23%) minmax(0,1fr);
  overflow: hidden;
}

.dialog-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.dialog-case-category {
  line-height: 1.4;
  color: #565656;
  font-size: var(--fs-fluid--2);
}

.dialog-panel .dialog-info h2 {
  font: clamp(28px,3vw,48px)/.96 var(--display);
  letter-spacing: -.07em;
  margin: 8px 0;
  max-width: 100%;
  overflow-wrap: break-word;
  font-size: clamp(1.5rem, 2.3vw, 2.5rem);
}

.dialog-info>p:not(.mono) {
  line-height: 1.38;
  margin: 0;
  color: #45433e;
  overflow: hidden;
  font-size: var(--fs-fluid-0);
}

.dialog-info .dialog-disclaimer {
  margin-top: auto;
  line-height: 1.4;
  color: #666;
  border-top: 1px solid var(--line);
  width: 100%;
  padding-top: 13px;
  font-size: var(--fs-fluid--2);
}

.dialog-info .dialog-visit {
  margin: 0 0 2px;
  padding: 13px 16px;
  max-width: 100%;
  font-size: var(--fs-fluid--2);
}

.dialog-info .dialog-visit[hidden] {
  display: none;
}

.dialog-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.dialog-gallery[hidden] {
  display: none !important;
}

.dialog-live[hidden] {
  display: none !important;
}

.dialog-groups {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  flex: 0 0 auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.dialog-groups[hidden] {
  display: none;
}

.gallery-group {
  border: 1px solid #aaa;
  background: transparent;
  color: #242424;
  cursor: pointer;
  white-space: nowrap;
  font: 750 clamp(10px,.9vw,12px)/1.25 var(--mono);
  padding: 9px 12px;
  min-height: 36px;
}

.gallery-group:hover {
  background: #111;
  color: white;
  border-color: #111;
}

.gallery-group.is-active {
  background: #111;
  color: white;
  border-color: #111;
}

.gallery-stage {
  position: relative;
  flex: 1 1 auto;
  background: #e3dfd5;
  border: 1px solid #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 420px;
}

.gallery-stage>img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  min-height: 0;
}

.gallery-stage>video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  min-height: 0;
}

.gallery-stage>img[hidden] {
  display: none !important;
}

.gallery-stage>video[hidden] {
  display: none !important;
}

.gallery-stage>.gallery-missing[hidden] {
  display: none !important;
}

.gallery-missing {
  font: 500 14px/1.5 var(--body);
  padding: 24px;
  max-width: 350px;
  text-align: center;
  font-size: var(--fs-fluid-0);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 48px;
  background: rgba(241,239,232,.9);
  border: 1px solid #555;
  cursor: pointer;
  font: 700 21px var(--mono);
  z-index: 4;
}

.gallery-arrow[hidden] {
  display: none;
}

.gallery-prev {
  left: 8px;
}

.gallery-next {
  right: 8px;
}

.gallery-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  color: #45433e;
  flex: 0 0 auto;
  line-height: 1.4;
  min-height: 17px;
  font-size: var(--fs-fluid--2);
}

.gallery-caption>span:first-child {
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.gallery-caption>span:last-child {
  text-align: right;
}

.gallery-thumbs {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.gallery-thumbs:empty {
  display: none;
}

.gallery-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #d0d0c9;
  overflow: hidden;
  width: 82px;
  min-width: 82px;
  height: 62px;
}

.gallery-thumb.is-active {
  border-color: #3557ff;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb .thumb-video {
  color: #111;
  font-size: 23px;
}

.dialog-live {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
}

.live-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #484848;
  flex: 0 0 auto;
  font-size: var(--fs-fluid-0);
}

.device-switch {
  display: flex;
  align-items: center;
  gap: 5px;
}

.device-button {
  border: 1px solid #bbb;
  color: #333;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 34px;
  font: 700 10px var(--mono);
  font-size: var(--fs-fluid--2);
  padding: .6rem .8rem;
}

.device-button.is-active {
  background: #111;
  color: white;
  border-color: #111;
}

.browser-shell {
  border: 1px solid #555;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto !important;
  align-self: center;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  background: #fff;
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 11px;
  background: #e6e6e4;
  border-bottom: 1px solid #bbb;
  min-height: 32px;
  flex: 0 0 auto;
  font: 500 9px var(--mono);
  white-space: nowrap;
  font-size: var(--fs-fluid--2);
}

.browser-chrome span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-chrome>a {
  font-size: 16px;
}

.browser-surface {
  height: 100%;
  max-height: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  background: #fff;
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
  max-width: none;
}

.browser-surface iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  background: white;
  max-width: none !important;
  max-height: none !important;
  display: block;
  width: 1440px;
  height: 900px;
  transform-origin: 0 0;
  overflow: auto;
}

.live-help {
  flex: 0 0 auto;
  margin: 5px 0 0;
  font: 400 10px/1.3 var(--body);
  color: #555;
  line-height: 1.35;
  font-size: var(--fs-fluid--2);
}

.dialog-info-toggle {
  display: none;
  background: none;
  border: 0;
  border-bottom: 1px solid #111;
  cursor: pointer;
  color: #111;
  font: 750 12px/1.25 var(--mono);
  padding: 10px 0;
}

.dialog-tab:hover {
  background: #e2dfd8;
  color: #111;
}

.gallery-stage img.is-site-capture {
  object-fit: contain;
}

.browser-screen {
  aspect-ratio: 16/9;
  min-height: 0;
  flex: 0 0 auto !important;
  width: 100%;
  height: auto;
  padding: 0 !important;
  background: #fff !important;
  max-height: none;
  overflow: hidden;
  display: flex;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.browser-screen.is-mobile {
  flex: 0 0 auto !important;
  width: 100%;
  height: auto;
  padding: 0 !important;
  background: #fff !important;
  max-height: none;
  overflow: hidden;
  display: flex;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.browser-screen.is-mobile .browser-surface {
  border: 0;
}

.browser-shell.mobile-viewport {
  border-color: #141414;
  box-shadow: 0 7px 28px rgba(0,0,0,.12);
}

.browser-shell.mobile-viewport .browser-chrome {
  background: #eceae4;
}

.dialog-tabs .dialog-tab {
  font-size: clamp(12px,1vw,14px);
  letter-spacing: .035em;
}

@media (max-width:900px) {
  .project-dialog {
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
  }
  
  .dialog-tab {
    font-size: 11px;
  }
  
  .gallery-group {
    font-size: 10.5px;
    min-height: 32px;
    padding: 7px 9px;
  }
  
  .dialog-panel .dialog-info h2 {
    font-size: clamp(1.35rem, 2.8vw, 2rem);
  }
}

@media (max-width:760px) {
  .dialog-layout {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  
  .dialog-info {
    overflow: hidden;
    max-height: 27%;
  }
  
  .project-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }
  
  .browser-shell {
    align-self: center;
  }
  
  .gallery-stage {
    min-height: 230px;
  }
  
  .project-dialog.previewing-mobile .dialog-info {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  
  .project-dialog.previewing-mobile .dialog-layout {
    padding-top: 4px;
    gap: 0;
  }
  
  .project-dialog.previewing-mobile .dialog-content {
    flex: 1 1 auto;
    min-height: 0;
  }
  
  .dialog-info>p:not(.mono) {
    font-size: clamp(.84rem,.45vw + .78rem,.98rem);
  }
  
  .dialog-tab {
    padding: .78rem 1rem !important;
  }
}

@media (max-width:630px) {
  .project-dialog {
    height: 100dvh;
    max-height: 100dvh;
  }
  
  .dialog-top-caption {
    display: none;
  }
  
  .dialog-info {
    flex: 0 0 auto;
    gap: 5px;
  }
  
  .dialog-panel .dialog-info h2 {
    margin: 4px 0;
    line-height: .97;
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  
  .dialog-info>p:not(.mono) {
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .dialog-info .dialog-disclaimer {
    display: none;
  }
  
  .dialog-info .dialog-visit {
    padding: 7px 12px;
    margin-top: 3px;
  }
  
  .dialog-content {
    flex: 1 1 auto;
    min-height: 0;
  }
  
  .dialog-tabs {
    margin: 0 0 3px;
    margin-bottom: 5px;
  }
  
  .live-toolbar {
    flex-wrap: wrap;
  }
  
  .dialog-info-toggle {
    display: block;
  }
  
  .project-dialog.dialog-show-description .dialog-info {
    flex: 1 1 auto;
    max-height: none;
    overflow: visible;
  }
  
  .project-dialog.dialog-show-description .dialog-info>p:not(.mono) {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    font-size: clamp(14px,3.5vw,16px);
    line-height: 1.5;
  }
  
  .project-dialog.dialog-show-description .dialog-content {
    display: none;
  }
  
  .dialog-tab {
    font-size: 10.5px;
  }
  
  .device-button {
    min-height: 30px;
  }
}

@media (max-width:500px) {
  .dialog-gallery {
    grid-template-columns: 1fr;
  }
  
  .dialog-live iframe {
    height: 55vh;
  }
  
  .dialog-tab {
    padding: .72rem .92rem !important;
  }
}

@media (max-width:480px) {
  .dialog-panel {
    padding: 10px;
  }
  
  .dialog-tabs .dialog-tab {
    font-size: 11px;
  }
}

@media (max-height:620px) {
  .dialog-info>p:not(.mono) {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .dialog-info .dialog-disclaimer {
    display: none;
  }
  
  .dialog-groups {
    max-height: 32px;
  }
}

/* ============================================================================== */
/* ANIMAÇÕES / KEYFRAMES */
/* ============================================================================== */

@keyframes rotate {to{transform:rotate(360deg)}}

@keyframes streakPulse {to{transform:translateX(13%) skewX(-16deg);opacity:.5}}

@keyframes marquee-loop {to{transform:translateX(-50%)}}

