/* =========================================================================
   HEVO — página de projetos
   A página muda de cor conforme o case na tela (tinta de fundo fixa),
   cada case usa a tipografia e a paleta da própria marca, e cada um tem
   um brinquedo próprio: paleta viva, lookbook arrastável, comparador,
   ilha de edição, lanterna e construção do símbolo.
   ========================================================================= */

@property --tA { syntax: "<color>"; inherits: true; initial-value: rgba(155, 60, 229, .22); }
@property --tB { syntax: "<color>"; inherits: true; initial-value: rgba(255, 120, 32, .12); }
@property --bg { syntax: "<color>"; inherits: true; initial-value: #070707; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --rr { syntax: "<length>"; inherits: true; initial-value: 0px; }

main > article, .pj-cta, .ix { overflow-x: clip; }
main article[id] { scroll-margin-top: var(--mb-h); }
main, .foot { position: relative; z-index: 1; }
.pg-projetos .foot { background: var(--ink); }

/* ---------- tinta de fundo ---------- */
.tint { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: --tA 1.4s var(--ease-out), --tB 1.4s var(--ease-out); }
.tint i { position: absolute; width: 90vmax; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; }
.tint-a { left: 88%; top: 8%; background: radial-gradient(closest-side, var(--tA), transparent); animation: drift 26s ease-in-out infinite alternate; }
.tint-b { left: 6%; top: 96%; background: radial-gradient(closest-side, var(--tB), transparent); animation: drift 32s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-8vw, 10vh) scale(1.15); } }

/* =========================================================================
   1 · ABERTURA
   ========================================================================= */
.pj-hero {
  position: relative; min-height: max(660px, min(100svh, 1000px)); isolation: isolate; overflow-x: clip;
  padding: calc(var(--mb-h) + clamp(26px, 5vh, 60px)) var(--gut) clamp(96px, 13vh, 140px);
  display: flex; align-items: center;
}
.pj-hero-in { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; pointer-events: none; }
.pj-hero-in a { pointer-events: auto; }
.pj-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pj-top .eyebrow { margin: 0; }
.pj-back { font-size: 11px; color: var(--fg-3); transition: color .2s; }
.pj-back:hover { color: #fff; }

.pj-word { margin: clamp(18px, 3vh, 34px) 0 0; font: 700 clamp(64px, 19vw, 330px)/.84 var(--display); letter-spacing: -.055em; }
.pw-stack { display: grid; justify-items: start; }
.pw {
  grid-area: 1 / 1; white-space: nowrap; padding: .06em .08em .2em; margin: -.06em -.08em -.2em;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pw--base { background-image: var(--grad); opacity: .85; transition: opacity .9s var(--ease-out); }
/* com um case na janela, o degradê sai de cena: sem isso ele vaza pelas camadas de imagem */
.pw-stack.has-img .pw--base { opacity: 0; }
.pw--img {
  background-image: var(--img); background-size: 118% auto; background-repeat: no-repeat;
  background-position: var(--bpx, 50%) var(--bpy, 50%);
  opacity: 0; transition: opacity .9s var(--ease-out);
}
.pw--img.is-on { opacity: 1; }
.pw--line { -webkit-text-stroke: 1px rgba(255, 255, 255, .26); }
.pw[data-case="sens"] { --img: url(https://ihslowxmuekwsipmtxfg.storage.sa-east-1.nhost.run/v1/files/6ae53575-9f48-43fd-a388-cf47c5f98a73); }
.pw[data-case="daval"] { --img: url(https://ihslowxmuekwsipmtxfg.storage.sa-east-1.nhost.run/v1/files/127de3bb-7f56-4218-9acf-c486a12a11da); }
.pw[data-case="oasis"] { --img: url(https://ihslowxmuekwsipmtxfg.storage.sa-east-1.nhost.run/v1/files/d281613d-4183-4bc6-853f-61c1a0ecd58d); background-size: 100% auto; }
.pw[data-case="hevo"] { --img: url(https://ihslowxmuekwsipmtxfg.storage.sa-east-1.nhost.run/v1/files/075b031e-1977-4f92-92e5-76c38e0cb46c?v=2); background-size: 100% auto; }

.pj-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px 50px; align-items: end; margin-top: clamp(24px, 4vh, 44px); }
.pj-foot .lede { margin: 0; max-width: 46ch; }
.pj-foot .lede b { color: #fff; font-weight: 600; }
.on-touch { display: none; }
@media (hover: none) { .on-touch { display: inline; } .on-fine { display: none; } }
.pj-reel { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.pj-reel a { display: grid; justify-items: center; gap: 8px; }
.pj-reel img {
  width: 62px; height: 62px; border-radius: 18px; object-fit: cover; background: #EDEEEA;
  box-shadow: 0 0 0 1px var(--line-2); transition: transform .5s var(--ease-spring), box-shadow .3s, filter .3s;
  filter: saturate(.6) brightness(.8);
}
.pj-reel li:nth-child(6) img { object-fit: contain; padding: 8px; }
.pj-reel span { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); transition: color .3s; }
.pj-reel a.is-on img { transform: translateY(-6px) rotate(-4deg); filter: none; box-shadow: 0 0 0 2px #fff, 0 12px 30px -8px rgba(236, 56, 131, .7); }
.pj-reel a.is-on span { color: #fff; }

.pj-cue {
  position: absolute; z-index: 4; left: 50%; bottom: clamp(30px, 5vh, 46px); translate: -50% 0;
  display: inline-flex; align-items: center; gap: 10px; font-size: 11px; color: var(--fg-3); transition: color .2s;
}
.pj-cue svg { width: 14px; height: 14px; animation: nudge 1.8s var(--ease-out) infinite; }
.pj-cue:hover { color: #fff; }
@keyframes nudge { 50% { translate: 0 4px; } }

/* =========================================================================
   2 · ÍNDICE
   ========================================================================= */
.ix { position: relative; padding: clamp(30px, 5vw, 70px) var(--gut) clamp(80px, 10vw, 150px); }
.ix-bar {
  position: sticky; top: calc(var(--mb-h) + 10px); z-index: 20; max-width: var(--max); margin: 0 auto clamp(22px, 3vw, 38px);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px;
  border-radius: 18px; background: rgba(15, 13, 18, .74); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.ix-filters { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.ix-filters::-webkit-scrollbar { display: none; }
.ix-f { flex: none; padding: 9px 13px; border-radius: 12px; font-size: 14px; color: var(--fg-2); white-space: nowrap; transition: background .25s, color .25s; }
.ix-f:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.ix-f sup { font: 500 10px/1 var(--mono); color: var(--fg-3); margin-left: 3px; }
.ix-f.is-on { background: #fff; color: #070707; }
.ix-f.is-on sup { color: #6a6470; }
.ix-view { position: relative; flex: none; display: flex; padding: 3px; border-radius: 13px; background: rgba(255, 255, 255, .05); }
.ix-view button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; font-size: 13px; color: var(--fg-2); transition: color .25s; }
.ix-view button[aria-checked="true"] { color: #fff; }
.ix-view svg { width: 14px; height: 14px; }
.ix-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 70px; border-radius: 10px; background: var(--grad); transition: left .45s var(--ease-spring), width .45s var(--ease-spring); }

.ix-list { list-style: none; padding: 0; margin: 0 auto; max-width: var(--max); display: grid; }
.ix-item { --c1: #fff; position: relative; border-top: 1px solid var(--line); transition: opacity .35s; }
.ix-item:last-child { border-bottom: 1px solid var(--line); }
.ix-item.is-out { display: none; }
.ix-item[data-case="sens"] { --c1: #E8303F; }
.ix-item[data-case="daval"] { --c1: #A9AD6A; }
.ix-item[data-case="oasis"] { --c1: #E3974F; }
.ix-item[data-case="hevo"] { --c1: #EC3883; }
.ix-link {
  position: relative; display: grid; align-items: center; gap: 20px;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, .85fr) minmax(0, .7fr) 54px 50px;
  padding: clamp(14px, 1.8vw, 24px) 6px;
}
.ix-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--c1); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-out); }
.ix-cover { display: none; }
.ix-no { font-size: 11px; color: var(--fg-3); transition: color .3s; }
.ix-name { font: 700 clamp(40px, 7.2vw, 112px)/.92 var(--display); letter-spacing: -.05em; padding-bottom: .04em; transition: translate .6s var(--ease-spring), color .3s; }
.ix-kind { color: var(--fg-2); font-size: 15px; }
.ix-tags { font-size: 10.5px; color: var(--fg-3); letter-spacing: .1em; }
.ix-year { font-size: 11px; color: var(--fg-3); text-align: right; }
.ix-go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); justify-self: end; transition: background .3s, color .3s, transform .5s var(--ease-spring), border-color .3s; }
.ix-go svg { width: 40%; height: 40%; }
.ix-link:hover .ix-name, .ix-link:focus-visible .ix-name { translate: 14px 0; color: var(--c1); }
.ix-link:hover .ix-no { color: var(--c1); }
.ix-link:hover::after { transform: scaleX(1); }
.ix-link:hover .ix-go { background: #fff; color: #070707; border-color: #fff; transform: rotate(45deg); }
@media (hover: hover) { .ix-list:not(.is-grid):hover .ix-item:not(:hover) { opacity: .38; } }
.ix-empty { max-width: var(--max); margin: 30px auto 0; color: var(--fg-3); font-size: 12px; text-transform: none; letter-spacing: .04em; }
.ix-empty a { color: #fff; border-bottom: 1px solid var(--pink); }

/* grade */
.ix-list.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.is-grid .ix-item { border: 0; }
.is-grid .ix-link {
  height: 100%; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "cover cover cover" "no name year" "kind kind kind" "tags tags tags";
  gap: 6px 12px; padding: 10px 10px 20px; border-radius: 24px; background: rgba(20, 18, 24, .66); border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
.is-grid .ix-link::after { display: none; }
.is-grid .ix-link:hover { border-color: var(--c1); background: rgba(26, 23, 30, .8); }
.is-grid .ix-cover { grid-area: cover; display: block; position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; margin-bottom: 12px; background: #141217; }
.is-grid .ix-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.is-grid .ix-cover--tall img { object-position: 50% 42%; }
.is-grid .ix-cover--paper { background: #EDEEEA; }
.is-grid .ix-cover--paper img { object-fit: contain; padding: 12%; }
.is-grid .ix-link:hover .ix-cover img { transform: scale(1.05); }
.is-grid .ix-no { grid-area: no; padding-left: 8px; }
.is-grid .ix-name { grid-area: name; font-size: clamp(28px, 2.6vw, 40px); }
.is-grid .ix-link:hover .ix-name { translate: 0 0; }
.is-grid .ix-year { grid-area: year; padding-right: 8px; }
.is-grid .ix-kind { grid-area: kind; padding-inline: 8px; font-size: 14px; }
.is-grid .ix-tags { grid-area: tags; padding-inline: 8px; }
.is-grid .ix-go { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; background: rgba(7, 7, 7, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(255,255,255,.3); }

/* prévia flutuante (lista, só com mouse) */
.ix-peek {
  --on: .55; position: fixed; left: 0; top: 0; z-index: 60; width: clamp(240px, 24vw, 360px); aspect-ratio: 4 / 3;
  border-radius: 20px; overflow: hidden; pointer-events: none; opacity: 0; scale: .6;
  transition: opacity .3s, scale .5s var(--ease-spring); background: #141217;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 30px 80px -30px rgba(236, 56, 131, .6);
}
.ix-peek.is-on { opacity: 1; scale: 1; }
.ix-peek-in, .ix-peek-in img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ix-peek-in img { object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path .55s var(--ease-out); }
.ix-peek-in img.is-on { clip-path: inset(0 0 0 0); z-index: 1; }
.ix-peek-in img[data-case="crew"] { object-fit: contain; padding: 14%; background: #EDEEEA; }
.ix-peek-in img[data-case="hevo"] { object-position: 50% 42%; }
.ix-peek .hc-foil { opacity: .32; }

/* =========================================================================
   3 · CASES
   ========================================================================= */
.case { --c1: #fff; --c2: #fff; position: relative; padding: clamp(100px, 12vw, 180px) var(--gut) clamp(30px, 4vw, 60px); }
.case > * { position: relative; max-width: var(--max); margin-inline: auto; }
.case + .case::before {
  content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 1px; max-width: var(--max); margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.case-head {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-areas: "no no" "title meta" "lede meta"; gap: 26px clamp(30px, 5vw, 90px); align-items: end;
}
.case-no { grid-area: no; margin: 0; font-size: 11px; color: var(--fg-3); display: flex; align-items: center; gap: 10px; }
.case-no b { color: #fff; font-weight: 500; }
.case-no span { color: var(--c1); }
.case-no::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 14px var(--c1); }
.case-title { grid-area: title; margin: 0; font: 700 clamp(60px, 11vw, 176px)/.86 var(--display); letter-spacing: -.055em; padding-bottom: .04em; }
.case-title .grad { display: inline-block; padding-bottom: .06em; }
.case-logo { width: min(100%, 560px); height: auto; }
.case-logo--wide { width: min(100%, 620px); }
.case-title--serif { font: 500 clamp(64px, 11vw, 170px)/.9 "Cormorant Garamond", Georgia, serif; letter-spacing: .14em; text-transform: uppercase; color: #F7E4CE; }
.case-title--serif small { display: block; font: 500 clamp(12px, 1.1vw, 15px)/1 var(--mono); letter-spacing: .5em; color: var(--c1); margin-bottom: .9em; }
.case-title--wide { font: 300 clamp(36px, 7vw, 116px)/1 var(--body); letter-spacing: .34em; text-transform: uppercase; margin-right: -.34em; }
#crew .case-title { color: var(--c1); text-transform: uppercase; }
.case-meta { grid-area: meta; margin: 0; display: grid; }
.case-meta > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); align-items: baseline; }
.case-meta dt { font-size: 10px; color: var(--fg-3); }
.case-meta dd { margin: 0; font-size: 15px; }
.case-meta .chips { margin: 0; }
.case-lede { grid-area: lede; margin: 0; color: var(--fg-2); font-size: clamp(16px, 1.35vw, 19px); max-width: 56ch; text-wrap: pretty; }

.case-next {
  display: flex; width: max-content; align-items: center; gap: 10px; margin-top: clamp(50px, 6vw, 90px);
  font-size: 11px; color: var(--fg-3); padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); transition: color .2s, border-color .2s;
}
.case-next svg { width: 13px; height: 13px; }
.case-next:hover { color: #fff; border-color: var(--c1); }

/* capa com paralaxe */
.cv { margin: clamp(40px, 5vw, 72px) auto 0; position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: #120607; }
.cv img:first-child { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--ty, 0), 0) scale(1.12); will-change: transform; }
.cv-star { position: absolute; right: 6%; top: 9%; width: clamp(40px, 5vw, 76px); height: auto; filter: invert(1) drop-shadow(0 0 12px rgba(255, 255, 255, .7)); animation: star-shine 3.4s var(--ease-out) infinite; pointer-events: none; }
@keyframes star-shine {
  0%, 60%, 100% { transform: scale(1, 1); opacity: .9; }
  70% { transform: scale(.7, 1.35); opacity: 1; }
  80% { transform: scale(1.35, .8); opacity: 1; }
}

/* módulos */
.mod { margin-top: clamp(56px, 7vw, 110px); }
.mod-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.mod-k { margin: 0; font-size: 11px; color: var(--fg-3); }
.mod-copy h3 { font: 700 clamp(30px, 3.4vw, 52px)/.96 var(--display); letter-spacing: -.045em; margin: 14px 0 14px; text-wrap: balance; }
.mod-copy > p:not(.mod-k) { color: var(--fg-2); margin: 0; max-width: 44ch; }

/* paleta */
.pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 26px; }
.pal--static { margin-top: clamp(30px, 4vw, 48px); }
.mod--brand .pal, .mod--crew .pal { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; }
.pal--static { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sw {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 11px; row-gap: 2px; align-items: center;
  text-align: left; padding: 8px 10px 8px 8px; border-radius: 15px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  transition: border-color .25s, background .25s, transform .4s var(--ease-spring);
}
.sw:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); }
.sw:active { transform: scale(.96); }
.sw i { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 11px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.sw b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw span { font-size: 10px; color: var(--fg-3); letter-spacing: .08em; }
.sw[data-role]::after {
  content: attr(data-role); position: absolute; top: -8px; right: 8px; padding: 3px 7px; border-radius: 99px;
  font: 600 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: #fff; color: #070707;
}
.sw[data-role] { border-color: rgba(255, 255, 255, .55); }

/* marca viva */
.mod--brand { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4vw, 70px); align-items: center; }
.mod--flip .mod-copy { order: 2; }
.play {
  position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); transition: --bg .7s var(--ease-out), --ink .7s var(--ease-out);
}
.play-logo {
  width: 64%; aspect-ratio: var(--ar, 2); background: var(--ink);
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  transition: transform .7s var(--ease-spring);
}
.play.is-pop .play-logo { transform: scale(.94) rotate(-2deg); }
.play-tag, .play-shuffle { position: absolute; font-size: 10px; color: rgba(255, 255, 255, .7); }
.play-tag { left: 20px; bottom: 18px; }
.play-tag b { font-weight: 500; opacity: .6; }
.play-tag em { font-style: normal; }
.play-shuffle { right: 14px; top: 14px; padding: 8px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); transition: background .2s; }
.play-shuffle:hover { background: rgba(255, 255, 255, .18); }
.play.is-light .play-tag, .play.is-light .play-shuffle { color: rgba(7, 7, 7, .7); border-color: rgba(7, 7, 7, .25); }
.play.is-light .play-shuffle { background: rgba(7, 7, 7, .05); }

/* trilho arrastável */
.strip {
  position: relative; overflow: hidden; border-radius: 22px; touch-action: pan-y; user-select: none; outline: none;
  -webkit-mask: linear-gradient(90deg, #000 88%, transparent); mask: linear-gradient(90deg, #000 88%, transparent);
}
.strip:focus-visible { box-shadow: 0 0 0 2px var(--pink); }
.strip.is-end { -webkit-mask: none; mask: none; }
.strip-track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.strip img {
  flex: none; height: clamp(260px, 36vw, 500px); width: auto; border-radius: 20px; object-fit: cover; background: #141217;
  -webkit-user-drag: none; pointer-events: auto; transition: transform .5s var(--ease-out), filter .4s;
}
.strip.is-drag img { transform: scale(.97); }
.strip--tall img { height: clamp(300px, 40vw, 540px); }
.strip-bar { position: relative; height: 2px; margin-top: 18px; border-radius: 2px; background: var(--line); overflow: hidden; }
.strip-bar i { position: absolute; top: 0; bottom: 0; left: var(--x, 0%); width: var(--w, 20%); background: var(--grad); border-radius: 2px; }
.strip-count { margin: 0; font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.strip-count b { color: #fff; font-weight: 500; }

/* mosaico */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15vw, 210px); gap: 14px; margin-top: clamp(40px, 5vw, 72px) !important; }
.bt { margin: 0; position: relative; border-radius: 22px; overflow: hidden; background: #141217; }
.bt img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.bt:hover img { transform: scale(1.04); }
.bt--a { grid-column: 1 / 8; grid-row: span 3; }
.bt--b { grid-column: 8 / 13; grid-row: span 3; }
.bt--c { grid-column: 1 / -1; grid-row: span 4; }
.bento--oasis { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-auto-rows: auto; }
.bento--oasis .bt { aspect-ratio: 3 / 2; }
.bento--oasis .bt:last-child { aspect-ratio: 1; }
.bento--oasis .bt--wide { grid-column: 1 / -1; aspect-ratio: 2000 / 682; }

/* comparador */
.cmp { --p: 50%; position: relative; aspect-ratio: 3 / 2; border-radius: 28px; overflow: hidden; touch-action: pan-y; user-select: none; background: #1a0f0a; }
.cmp img, .cmp-top { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmp img { object-fit: cover; -webkit-user-drag: none; }
.cmp-top { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.cmp-l, .cmp-r { position: absolute; top: 18px; padding: 7px 12px; border-radius: 99px; font-size: 10px; background: rgba(7, 7, 7, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; }
.cmp-l { left: 18px; } .cmp-r { right: 18px; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 0; outline: none; }
.cmp-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 18px rgba(255, 233, 214, .9); }
.cmp-handle i {
  position: absolute; left: 0; top: 50%; width: 58px; height: 58px; translate: -50% -50%; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1.5px solid #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: scale .4s var(--ease-spring);
}
.cmp-handle i::before, .cmp-handle i::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; border: solid #fff; border-width: 0 0 2px 2px; translate: 0 -50%; }
.cmp-handle i::before { left: 14px; rotate: 45deg; } .cmp-handle i::after { right: 14px; rotate: -135deg; }
.cmp.is-drag .cmp-handle i, .cmp-handle:focus-visible i { scale: 1.12; }

/* ilha de edição */
.mod--editor { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.ed-phone {
  position: relative; width: clamp(220px, 22vw, 310px); aspect-ratio: 9 / 16; border-radius: 40px; padding: 8px;
  background: linear-gradient(160deg, #3a3640, #17141b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 40px 90px -40px rgba(236, 56, 131, .6);
}
.ed-phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; display: block; background: #0b0a0d; }
.ed-live { position: absolute; left: 50%; top: 20px; translate: -50% 0; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 99px; font-size: 9px; background: rgba(7, 7, 7, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; }
.ed-live i { width: 6px; height: 6px; border-radius: 50%; background: #ff3b3b; animation: blink 1.2s steps(2) infinite; }
.ed-panel { border-radius: 24px; padding: 16px; background: rgba(20, 18, 24, .78); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); min-width: 0; }
.ed-top { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ed-play { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); }
.ed-play svg { width: 18px; height: 18px; }
.ed-play .i-play { display: none; }
.ed-play.is-paused .i-play { display: block; } .ed-play.is-paused .i-pause { display: none; }
.ed-tc { font-size: clamp(16px, 1.6vw, 22px); letter-spacing: .08em; color: #fff; font-variant-numeric: tabular-nums; }
.ed-name { margin-left: auto; font-size: 9.5px; color: var(--fg-3); letter-spacing: .08em; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ed-tl { --lab: 40px; position: relative; margin-top: 12px; touch-action: pan-y; user-select: none; outline: none; padding-bottom: 4px; }
.ed-tl:focus-visible { box-shadow: 0 0 0 2px var(--pink); border-radius: 10px; }
.ed-ruler { position: relative; height: 22px; margin-left: var(--lab); font-size: 9px; color: var(--fg-3); letter-spacing: .04em;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px calc(100% / 47)) 0 100% / 100% 6px no-repeat; }
.ed-ruler span { position: absolute; top: 0; translate: -50% 0; }
.ed-ruler span:first-child { translate: 0 0; }
.ed-track { display: grid; grid-template-columns: calc(var(--lab) - 8px) minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 6px; }
.ed-lab { font-size: 9.5px; color: var(--fg-3); }
.ed-lane { position: relative; height: 62px; border-radius: 10px; background: rgba(255, 255, 255, .04); display: flex; gap: 2px; overflow: hidden; }
.ed-clip {
  position: relative; flex: 1; border-radius: 7px; overflow: hidden; background: #2a2032 var(--th) 0 50% / auto 100% repeat-x;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: box-shadow .25s;
}
.ed-clip::after { content: attr(data-n); position: absolute; left: 5px; top: 4px; font: 500 9px/1 var(--mono); padding: 2px 4px; border-radius: 4px; background: rgba(7, 7, 7, .6); }
.ed-clip.is-on { box-shadow: inset 0 0 0 2px #fff; }
.ed-lane--fx { height: 26px; }
.ed-fx { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; padding: 0 8px; display: flex; align-items: center; font: 500 9px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.ed-fx--a { background: linear-gradient(90deg, rgba(155, 60, 229, .8), rgba(236, 56, 131, .8)); }
.ed-fx--b { background: rgba(255, 120, 32, .75); }
.ed-lane--a { height: 34px; align-items: center; justify-content: center; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 6px, transparent 6px 12px); }
.ed-lane--a span { font-size: 9px; color: var(--fg-3); letter-spacing: .08em; text-transform: none; }
.ed-head { position: absolute; top: 14px; bottom: 0; left: var(--lab); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(236, 56, 131, .9); pointer-events: none; }
.ed-head b { position: absolute; top: -2px; left: 50%; width: 12px; height: 12px; translate: -50% 0; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.ed-hint { margin: 12px 0 0; font-size: 9.5px; color: var(--fg-3); }

/* lanterna */
.sf { --lx: 50%; --ly: 40%; --rr: clamp(140px, 17vw, 260px); position: relative; aspect-ratio: 2400 / 1482; border-radius: 28px; overflow: hidden; background: #020305; transition: --rr 1.2s var(--ease-out); }
.sf img { width: 100%; height: 100%; object-fit: cover; }
.sf-dark {
  position: absolute; inset: 0; pointer-events: none; background: rgba(2, 3, 5, .95);
  -webkit-mask: radial-gradient(circle var(--rr) at var(--lx) var(--ly), transparent 0, rgba(0,0,0,.35) 55%, #000 100%);
          mask: radial-gradient(circle var(--rr) at var(--lx) var(--ly), transparent 0, rgba(0,0,0,.35) 55%, #000 100%);
}
.sf.is-lit { --rr: 260vw; }
.sf-read { position: absolute; left: 18px; bottom: 16px; font-size: 10px; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; pointer-events: none; }
.sf-read b { color: #fff; font-weight: 500; }
.sf-toggle { padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line-2); transition: color .2s, border-color .2s, background .2s; }
.sf-toggle:hover, .sf-toggle[aria-pressed="true"] { color: #070707; background: #fff; border-color: #fff; }

/* construção */
.mod--crew { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 70px); align-items: center; }
.crew { position: relative; aspect-ratio: 1; border-radius: 28px; background: #EDEEEA; display: grid; place-items: center; overflow: hidden; }
.crew-logo { width: 48%; height: auto; position: relative; z-index: 1; transition: transform .8s var(--ease-spring); }
.crew.is-on .crew-logo { transform: scale(.94); }
.crew-grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.crew-grid * { vector-effect: non-scaling-stroke; }
.crew-grid .g { stroke: rgba(7, 7, 7, .09); stroke-width: 1; }
.crew-grid .k { stroke: #EC3883; stroke-width: 1.4; fill: none; }
.crew-grid .k--dash { stroke-dasharray: 5 6; }
.crew-grid .h { fill: #fff; stroke: #EC3883; stroke-width: 1.4; }
.crew-grid text { font: 600 11px var(--mono); fill: #EC3883; letter-spacing: .08em; }
.crew-grid .d { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-out) var(--dl, 0s); }
.crew-grid .f { opacity: 0; transition: opacity .5s var(--dl, 0s); }
.crew.is-on .crew-grid .d { stroke-dashoffset: 0; }
.crew.is-on .crew-grid .f { opacity: 1; }
.crew-tag { position: absolute; left: 20px; bottom: 18px; z-index: 3; font-size: 10px; color: rgba(7, 7, 7, .55); }
.crew-btn { margin-top: 26px; }
.crew-btn[aria-pressed="true"] { background: #fff; color: #070707; border-color: #fff; }

/* =========================================================================
   4 · PRÓXIMO CASE
   ========================================================================= */
.pj-cta { position: relative; padding: clamp(90px, 10vw, 150px) var(--gut); isolation: isolate; }
.slot {
  position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; min-height: clamp(620px, 88svh, 860px);
  border: 1px dashed var(--line-2); border-radius: 34px; display: grid; place-items: center; text-align: center; overflow: hidden;
}
.slot .bbox--static { inset: 18px; }
.slot-tag { position: absolute; left: 40px; top: 36px; margin: 0; font-size: 10px; color: var(--fg-3); z-index: 3; }
.slot-copy { position: relative; z-index: 3; display: grid; justify-items: center; padding: 60px 20px 120px; pointer-events: none; }
.slot-copy a { pointer-events: auto; margin-top: 34px; }
.slot-copy .lede { margin-inline: auto; }
.slot-title { margin: 0; font: 700 clamp(44px, 8vw, 128px)/.9 var(--display); letter-spacing: -.055em; }
.slot-title .grad { display: inline-block; padding-bottom: .06em; }
.slot-box { position: absolute; inset: 0; z-index: 2; }
.slot-box .toy { --s: 130px; }
.slot .pit-hint { top: 36px; right: 40px; left: auto; bottom: auto; translate: none; }

/* =========================================================================
   NAVEGAÇÃO ENTRE CASES
   ========================================================================= */
.hud {
  --c1: #fff; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 99px; translate: -50% 170%; opacity: 0;
  background: rgba(15, 13, 18, .8); border: 1px solid var(--line-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: translate .6s var(--ease-spring), opacity .3s;
}
.hud.is-on { translate: -50% 0; opacity: 1; }
.hud-b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: var(--fg-2); transition: background .2s, color .2s; }
.hud-b:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.hud-now { display: grid; justify-items: center; gap: 3px; min-width: 132px; padding: 0 12px; }
.hud-n { font-size: 9px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.hud-now b { font-size: 14px; font-weight: 600; line-height: 1; }
.hud-p { position: absolute; left: 22px; right: 22px; bottom: 3px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hud-p i { position: absolute; inset: 0; background: var(--c1); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: background .6s; }

/* =========================================================================
   VISUALIZADOR
   ========================================================================= */
.lb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(7, 7, 7, .9); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); opacity: 0; transition: opacity .3s; touch-action: pan-y; }
.lb[hidden] { display: none; }
.lb.is-on { opacity: 1; }
.lb-fig { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 70px 70px 40px; }
.lb-fig img { max-width: min(calc(100vw - 180px), 1600px); max-height: calc(100svh - 170px); width: auto; height: auto; border-radius: 16px; object-fit: contain; transform: scale(.95); transition: transform .5s var(--ease-spring), opacity .25s; }
.lb.is-on .lb-fig img { transform: none; }
.lb-fig img.is-swap { opacity: 0; }
.lb-fig figcaption { font-size: 10.5px; color: var(--fg-3); text-transform: none; letter-spacing: .06em; text-align: center; max-width: 60ch; }
.lb-x { position: absolute; top: 18px; right: 18px; padding: 10px 14px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 10px; color: var(--fg-2); }
.lb-x:hover { color: #fff; border-color: #fff; }
.lb-n { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 18px; color: var(--fg-2); background: rgba(255, 255, 255, .04); }
.lb-n:hover { color: #fff; border-color: #fff; }
.lb-n--p { left: 18px; } .lb-n--n { right: 18px; }
.lb-c { position: absolute; top: 28px; left: 24px; font-size: 10px; color: var(--fg-3); font-variant-numeric: tabular-nums; }

/* =========================================================================
   RESPONSIVO
   ========================================================================= */
@media (max-width: 1080px) {
  .ix-link { grid-template-columns: 44px minmax(0, 1fr) minmax(0, .9fr) 50px 46px; }
  .ix-tags { display: none; }
  .ix-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .is-grid .ix-tags { display: block; }
  .case-head { grid-template-columns: 1fr; grid-template-areas: "no" "title" "lede" "meta"; align-items: start; }
  .mod--brand, .mod--crew { grid-template-columns: 1fr; }
  .mod--flip .mod-copy { order: 0; }
  .pj-foot { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pj-hero { min-height: max(600px, min(100svh, 860px)); }
  .pj-reel { gap: 6px; }
  .pj-reel img { width: 46px; height: 46px; border-radius: 13px; }
  .pj-reel span { font-size: 8.5px; letter-spacing: .04em; }
  .pj-back { display: none; }
  .ix-bar { flex-direction: column; align-items: stretch; border-radius: 16px; }
  .ix-view { align-self: flex-end; }
  .ix-link { grid-template-columns: 30px minmax(0, 1fr) 40px; grid-template-areas: "no name go" ". kind go"; gap: 4px 12px; }
  .ix-no { grid-area: no; } .ix-name { grid-area: name; } .ix-kind { grid-area: kind; font-size: 13px; } .ix-go { grid-area: go; width: 40px; height: 40px; }
  .ix-year { display: none; }
  .is-grid .ix-link { grid-template-areas: "cover cover cover" "no name year" "kind kind kind" "tags tags tags"; }
  .is-grid .ix-year { display: block; }
  .bento { grid-auto-rows: clamp(110px, 30vw, 200px); gap: 10px; }
  .bt--a { grid-column: 1 / -1; grid-row: span 2; }
  .bt--b { grid-column: 1 / -1; grid-row: span 3; }
  .bt--c { grid-column: 1 / -1; grid-row: span 2; }
  .bento--oasis { grid-template-columns: 1fr; }
  .bento--oasis .bt, .bento--oasis .bt:last-child { grid-column: auto; aspect-ratio: 3 / 2; }
  .mod--editor { grid-template-columns: 1fr; justify-items: center; }
  .ed-panel { width: 100%; }
  .ed-name { display: none; }
  .cmp { aspect-ratio: 4 / 3; }
  .slot-tag { left: 26px; top: 28px; }
  .slot .pit-hint { display: none; }
  .slot-box .toy { --s: 84px; }
  .hud-now { min-width: 110px; }
  .lb-fig { padding: 70px 12px 90px; }
  .lb-fig img { max-width: calc(100vw - 24px); }
  .lb-n { top: auto; bottom: 22px; translate: none; }
  .lb-n--p { left: calc(50% - 64px); } .lb-n--n { right: calc(50% - 64px); }
}
@media (max-width: 600px) {
  .ix-list.is-grid { grid-template-columns: 1fr; }
  .cv { aspect-ratio: 4 / 3; }
  .pal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-meta > div { grid-template-columns: 78px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .tint i, .cv-star, .pj-cue svg, .ed-live i { animation: none !important; }
}
.pg-projetos .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
