:root {
  --gutter: clamp(16px, 4vw, 80px);
  --ink: #0d0d0d;
  --cream: #ebe6c8;
  --cream-2: #f3efd8;
  --gold: #d8b55e;
  --gold-2: #e6c97f;
  --muted: #5a5544;
  --radius: 28px;
  --notch-r: 22px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  padding: 14px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* subtle retro grain */
.panel {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  height: calc(100svh - 28px);
  display: flex;
  flex-direction: column;
}
.panel::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 50;
}

/* ---------- HEADER ---------- */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 84px;
  flex: none;
  position: relative;
  z-index: 45;
}
.header__right { display: flex; align-items: flex-start; gap: 14px; }
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  margin-top: 22px;
  letter-spacing: -.02em;
}
.logo span { color: var(--muted); font-weight: 600; }

.notch {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: var(--ink);
  padding: 14px 56px 18px;
  border-radius: 0 0 var(--notch-r) var(--notch-r);
}
.notch::before, .notch::after {
  content: "";
  position: absolute;
  top: 0;
  /* 2px a mais sobrepondo o menu: evita a emenda de subpixel (fio claro) entre a curva e o bloco preto */
  width: calc(var(--notch-r) + 2px);
  height: var(--notch-r);
}
.notch::before { left: calc(var(--notch-r) * -1); background: radial-gradient(circle at 0 100%, transparent calc(var(--notch-r) - .5px), var(--ink) var(--notch-r)); }
.notch::after  { right: calc(var(--notch-r) * -1); background: radial-gradient(circle at 100% 100%, transparent calc(var(--notch-r) - .5px), var(--ink) var(--notch-r)); }
.notch ul { display: flex; gap: 40px; position: relative; }
.notch__ind {
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 3px; border-radius: 3px;
  background: var(--gold);
  pointer-events: none;
}
.notch a {
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .02em;
  position: relative;
  padding-bottom: 6px;
}
.notch a { transition: color .25s; }
.notch__ic { display: none; }
.notch a:not(.active) { color: rgba(255,255,255,.62); }
.notch a:hover { color: var(--gold-2); }

/* pager */
.pager {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px;
  padding: 3px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream-2);
}
.pager__btn {
  width: 30px; height: 30px;
  border: 0; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  font-size: 15px; line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.pager__btn:hover { background: var(--gold); color: var(--ink); transform: scale(1.08); }
.pager__btn:disabled { opacity: .3; cursor: default; transform: none; background: var(--ink); color: var(--cream); }
.pager__dots { display: flex; gap: 6px; }
.pager__dots i {
  width: 8px; height: 8px; border-radius: 99px;
  background: var(--ink); opacity: .25;
  transition: width .4s cubic-bezier(.2,.9,.3,1.3), opacity .3s;
}
.pager__dots i.on { width: 22px; opacity: 1; background: var(--ink); }

/* ---------- SLIDES ---------- */
.viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.track { display: flex; height: 100%; will-change: transform; }
.slide {
  flex: 0 0 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(13,13,13,.35) transparent;
}
.slide--hero { display: flex; flex-direction: column; }
@media (min-width: 1001px) { .slide { overflow-y: hidden; } } /* desktop: sem rolagem, o JS encaixa o conteúdo */
.slide:not(.slide--hero) { display: flex; }
.slide:not(.slide--hero) > .section { margin: auto 0; width: 100%; }

/* ---------- OBJETOS FLUTUANTES ---------- */
.slide { position: relative; }
.slide > .hero, .slide > .section, .slide > .marquee { position: relative; z-index: 1; }
.floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.floaters--back { z-index: 0; }
.floaters--front { z-index: 2; }
.slide--hero .floaters { bottom: 70px; } /* não cobre a faixa */
.fl {
  --s: 60px;
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  rotate: var(--r);
  /* parallax: JS escreve na propriedade `translate` (independente do transform do anime.js) */
}
.fl__in { display: block; width: 100%; height: 100%; }
.fl svg { width: 100%; height: 100%; overflow: visible; display: block; }
.fl--sparkle svg { filter: drop-shadow(3px 3px 0 var(--ink)); }
.fl--bolt { width: calc(var(--s) * .66); }
.fl--bolt svg { filter: drop-shadow(3px 3px 0 var(--ink)); }
.fl--sun { opacity: .7; }
.fl__halftone {
  display: block; width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ink) 1.7px, transparent 2px) 0 0 / 13px 13px;
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,.6) 45%, transparent 70%);
          mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,.6) 45%, transparent 70%);
  opacity: .32;
}
/* eyecatch wipe */
.wipe { position: absolute; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.wipe__bar {
  position: absolute; top: -20%; bottom: -20%; left: 0;
  transform: translateX(-200vw) skewX(-14deg);
  will-change: transform;
}
.wipe__bar--gold { width: 46vw; background: var(--gold); }
.wipe__bar--ink {
  width: 38vw; background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 0 0 6px var(--gold-2);
}
.wipe__bar--cream {
  width: 14vw;
  background: repeating-linear-gradient(90deg, var(--cream-2) 0 10px, transparent 10px 18px);
}
.wipe__label {
  font-size: clamp(48px, 7vw, 120px);
  font-weight: 900;
  letter-spacing: .05em;
  transform: skewX(14deg);
  white-space: nowrap;
}
.wipe__sub {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: clamp(12px, 1vw, 16px);
  color: var(--gold-2);
  transform: skewX(14deg);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream-2);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
  box-shadow: 0 0 0 var(--ink);
}
.pill-btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.pill-btn--dark { background: var(--ink); color: var(--cream); }
.pill-btn--dark:hover { box-shadow: 3px 3px 0 var(--gold); }
.pill-btn--cv .dl-ic {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s cubic-bezier(.2,.9,.3,1.6);
}
.pill-btn--cv:hover .dl-ic { transform: translateY(2px); }
.pill-btn--dark.pill-btn--cv { background: var(--gold); color: var(--ink); }
.pill-btn--dark.pill-btn--cv:hover { box-shadow: 3px 3px 0 var(--ink); }
.li-ic { display: none; font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: -.02em; line-height: 1; }

/* cabeçalho em telas médias: tudo cabe sem encostar no menu central */
@media (min-width: 721px) and (max-width: 1599px) { .pager { display: none; } }
@media (min-width: 721px) and (max-width: 1280px) {
  .notch { padding: 14px 28px 18px; }
  .notch ul { gap: 24px; }
  .header__right { gap: 10px; }
  .pill-btn--li { padding: 8px 13px; }
  .pill-btn--li .lbl { display: none; }
  .pill-btn--li .li-ic { display: block; }
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 80px);
  padding: 8px var(--gutter) clamp(24px, 4vh, 48px);
  flex: 1;
  min-height: 0;
}
.hero__text { container-type: inline-size; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream-2);
  margin-bottom: 24px;
}
.dot {
  position: relative;
  flex: none;
  width: 9px; height: 9px; border-radius: 50%;
  background: #3fa45b;
}
.dot::after { /* anel pulsando: só transform + opacity (GPU) */
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #3fa45b;
  animation: ping 2s cubic-bezier(.2,.6,.3,1) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.8); opacity: 0; } }

/* ---------- LOOPS CONTÍNUOS (CSS = compositor/GPU) ---------- */
@keyframes spin360 { to { transform: rotate(360deg); } }
@keyframes nudgeX { from { transform: translateX(0); } to { transform: translateX(8px); } }
@keyframes fade35 { from { opacity: 1; } to { opacity: .35; } }
/* cada objeto tem seu próprio trajeto (vars sorteadas no JS) */
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(var(--x1, 0px), var(--y1, -6px)) rotate(var(--r1, 3deg)); }
  50% { transform: translate(var(--x2, 0px), var(--y2, 6px)) rotate(var(--r2, -3deg)); }
  75% { transform: translate(var(--x3, 0px), var(--y3, -3px)) rotate(var(--r3, 2deg)); }
}
@keyframes twinkle { from { transform: scale(.82); opacity: .75; } to { transform: scale(1.14); opacity: 1; } }
.loops .badge__ring { animation: spin360 18s linear infinite; }
.loops .frame__arrow { animation: nudgeX .9s ease-in-out infinite alternate; }
.loops .frame__bar .star { animation: fade35 1.2s ease-in-out infinite alternate; animation-delay: 2.4s; }
.loops .frame__bar .star + .star { animation-delay: 2.8s; }
.loops .fl__in { animation: drift var(--bob-d, 6s) ease-in-out var(--bob-dl, 0s) infinite; }
.loops .fl--sparkle svg { animation: twinkle var(--tw-d, 1s) ease-in-out infinite alternate; }
.loops .fl--sun svg { animation: spin360 60s linear infinite; }
/* abas fora da tela não gastam processamento */
.slide[inert] *, .slide[inert] *::before, .slide[inert] *::after { animation-play-state: paused !important; }

.hero__title {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 85%;
  font-size: clamp(44px, 14.5cqi, 190px);
  line-height: .92;
  letter-spacing: -.035em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; white-space: nowrap; }
.hero__title .word { display: inline-block; }
.hero__sub {
  max-width: 48ch;
  margin-top: clamp(20px, 3vh, 36px);
  font-size: clamp(17px, 1.25vw, 21px);
  color: var(--muted);
}
.hero__sub strong { color: var(--ink); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* circular badge */
.badge {
  position: relative;
  position: absolute;
  z-index: 2;
  --badge: clamp(140px, 11vw, 190px);
  left: calc(var(--badge) * -.6);
  bottom: 12%;
  width: var(--badge); aspect-ratio: 1;
  display: grid; place-items: center;
}
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge__ring text {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  fill: var(--ink);
}
.badge__core {
  width: 62%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--display);
  font-size: 12px;
  text-align: center;
  line-height: 1.15;
  transition: transform .3s ease;
}
.badge__core i { color: #fff; font-style: normal; font-size: 11px; }
.badge:hover .badge__core { transform: scale(1.08); }

/* portrait frame */
.frame {
  position: relative;
  background: var(--ink);
  padding: 3px;
  border-radius: 22px;
  clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 72px);
  aspect-ratio: 4 / 4.6;
  width: min(100%, calc((100svh - 260px) * .87));
}
.hero__visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}
.hero__visual .frame { margin-left: auto; }
.frame__inner {
  display: grid;
  grid-template-columns: 1fr 44px;
  height: 100%;
  border-radius: 19px;
  overflow: hidden;
  background: var(--cream);
  clip-path: polygon(61.8px 0, 100% 0, 100% 100%, 0 100%, 0 61.8px);
}
.frame__img { overflow: hidden; border-right: 2.5px solid var(--ink); }
.frame__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.08); will-change: transform; }
.frame__bar {
  background: var(--gold);
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0;
  gap: 10px;
}
.frame__bar .star { font-size: 24px; line-height: 1; }
.frame__arrow { margin-top: auto; font-size: 34px; font-weight: 300; line-height: 1; }

/* ---------- MARQUEE ---------- */
.marquee {
  flex: none;
  margin: 0 -3% 18px;
  background: var(--ink);
  color: var(--gold-2);
  overflow: hidden;
  padding: 14px 0;
  transform: rotate(-1.5deg);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-dur, 30s) linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  padding-right: var(--marquee-gap); /* mesma distância na emenda entre grupos */
  flex: none;
}
.marquee { --marquee-gap: 18px; }
.marquee__group span, .marquee__group i {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); } }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(24px, 5vh, 64px) var(--gutter) 48px; }
.section__head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 44px; }
.section__head h2 {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 85%;
  font-size: clamp(44px, 6vw, 80px);
  letter-spacing: -.03em;
  line-height: 1;
}
.section__head p { color: var(--muted); font-size: 17px; flex-basis: 100%; }
.ep {
  font-size: 15px;
  font-weight: 600;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 2px 10px;
  transform: translateY(-14px) rotate(-4deg);
}

/* client logos grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.client {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  background: var(--cream-2);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}
/* print da home revelado num círculo */
.client__cover {
  position: absolute; inset: 0; z-index: -2;
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(0,0,0,.07) 12px 13px),
    var(--accent);
  background-size: cover;
  background-position: top center;
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
  transform: scale(1.15);
  transition: clip-path .6s cubic-bezier(.2,.8,.2,1), transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.client__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,13,13,0) 45%, rgba(13,13,13,.55) 100%);
  opacity: 0;
  transition: opacity .4s;
}
.can-hover .client:hover, .client:focus-visible, .client.is-active {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--ink);
  outline: none;
}
.can-hover .client:hover .client__cover, .client:focus-visible .client__cover, .client.is-active .client__cover {
  clip-path: circle(150% at var(--mx, 50%) var(--my, 50%));
  transform: scale(1);
}
.can-hover .client:hover .client__shade, .client.is-active .client__shade { opacity: 1; }

.client__logo {
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: 100%;
}
.client__logo > * { transition: transform .45s cubic-bezier(.2,.9,.3,1.2), opacity .3s; }
/* logos: --r = proporção (largura/altura), --sr = raiz dela; largura ∝ √r deixa a área visual parecida entre logos */
.logo-chip { --r: 3; --sr: 1.732; display: inline-flex; align-items: center; justify-content: center; }
.logo-chip img { display: block; height: auto; object-fit: contain; }
.client__logo .logo-chip img { width: min(calc(var(--sr) * 29cqi), 72cqi, calc(var(--r) * 23cqi)); }
.logo--black img { filter: brightness(0); }                 /* branco → preto */
.logo--invert img { filter: invert(1) hue-rotate(180deg); }  /* claro ↔ escuro, mantém o tom das cores */
.client__logo b, .client__tag b {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 85%;
  letter-spacing: -.02em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
}
.client__logo b { font-size: clamp(16px, 2.2vw, 36px); }
.can-hover .client:hover .client__logo > *, .client.is-active .client__logo > * { transform: scale(.6) translateY(-20px); opacity: 0; }

/* logo pequeno em etiqueta, aparece no hover */
.client__tag {
  position: absolute; left: 12px; bottom: 12px;
  display: flex; align-items: center;
  height: 34px; max-width: 60%;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream-2);
  transform: translateY(160%);
  transition: transform .45s cubic-bezier(.2,.9,.3,1.3) .05s;
}
.client__tag .logo-chip img { height: clamp(11px, calc(34px / var(--sr)), 22px); width: auto; max-width: 130px; }
.client__tag b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.can-hover .client:hover .client__tag, .client.is-active .client__tag { transform: none; }

.client__dots {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  background: var(--ink); color: #fff;
  border-radius: 999px; padding: 0 9px;
  font-size: 12px; letter-spacing: 2px; line-height: 18px;
}
.client__hint {
  position: absolute; right: 12px; bottom: 12px;
  height: 34px; padding: 0 14px;
  display: flex; align-items: center;
  border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transform: translateY(160%);
  transition: transform .45s cubic-bezier(.2,.9,.3,1.3) .1s;
}
.can-hover .client:hover .client__hint, .client.is-active .client__hint { transform: none; }
/* celular/toque: sem etiqueta do logo e sem "Ver mais" no card (o painel já mostra tudo) */
:root:not(.can-hover) .client__tag, :root:not(.can-hover) .client__hint { display: none; }
@media (max-width: 720px) { .client__tag, .client__hint { display: none; } }

/* ---------- POPUP ---------- */
.pop {
  position: fixed;
  z-index: 80;
  /* acompanha a tela: largura pela janela e pela altura disponível */
  width: clamp(300px, min(32vw, calc((100svh - 300px) * 1.3)), 520px);
  max-height: calc(100svh - 24px);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  background: var(--cream-2);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pop.is-open { visibility: visible; pointer-events: auto; }
.pop__close {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 30px; height: 30px;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--cream-2); color: var(--ink);
  font-size: 13px; cursor: pointer;
  display: none;
}
.pop.is-sheet .pop__close { display: block; }
.pop__media {
  padding: 12px 12px 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.07) 14px 15px),
    var(--accent, var(--gold));
  border-bottom: 2.5px solid var(--ink);
}

/* moldura de navegador */
.browser {
  display: flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 10px;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 12px 12px 0 0;
}
.browser__dots { display: flex; gap: 5px; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-2); }
.browser__dots i:nth-child(2) { background: var(--cream-2); }
.browser__dots i:nth-child(3) { background: #8a8570; }
.browser__url {
  flex: 1;
  height: 20px; line-height: 20px;
  padding: 0 10px;
  border-radius: 999px;
  background: #262626;
  color: rgba(243,239,216,.75);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot, .player {
  position: relative;
  aspect-ratio: 96 / 50; /* mesma proporção dos vídeos/prints */
  border: 2px solid var(--ink);
  border-top: 0;
  overflow: hidden;
  background: var(--ink);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot--ph { display: grid; place-items: center; background: var(--cream); padding: 24px; }
.shot--ph .logo-chip img { width: min(calc(var(--sr) * 110px), 300px); }
.shot--ph b { font-family: var(--display); font-weight: 900; font-stretch: 85%; font-size: 34px; letter-spacing: -.02em; text-transform: uppercase; text-align: center; line-height: 1; }

/* player */
.player { outline: none; cursor: pointer; }
.player video { width: 100%; height: 100%; object-fit: cover; display: block; }
.player:fullscreen { border: 0; aspect-ratio: auto; width: 100%; height: 100%; background: #000; }
.player:-webkit-full-screen { border: 0; aspect-ratio: auto; width: 100%; height: 100%; background: #000; }
.player:fullscreen video { object-fit: contain; }
.player:-webkit-full-screen video { object-fit: contain; }
.player:fullscreen .player__ui { left: 50%; right: auto; width: min(720px, calc(100% - 32px)); transform: translateX(-50%); bottom: 24px; }
.player.is-playing:fullscreen:not(.is-awake):not(:hover):not(:focus-within) .player__ui { transform: translate(-50%, 140%); }
.player:focus-visible { box-shadow: inset 0 0 0 3px var(--gold); }
.player__big {
  position: absolute; left: 50%; top: 50%;
  width: 68px; height: 68px;
  margin: -34px 0 0 -34px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--gold-2);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: background .2s;
}
.player__big svg { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }
.player__big:hover { background: var(--cream-2); }
.player.is-playing .player__big { pointer-events: none; }
.player__spin {
  position: absolute; left: 50%; top: 50%;
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 3px solid rgba(243,239,216,.25);
  border-top-color: var(--gold-2);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  opacity: 0;
  transition: opacity .2s;
}
.player.is-loading .player__spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.player__ui {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream-2);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .3s;
}
.player.is-playing:not(.is-awake):not(:hover):not(:focus-within) .player__ui { transform: translateY(140%); opacity: 0; }
.player__btn {
  flex: none;
  width: 28px; height: 28px;
  border: 0; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.player__btn svg { width: 14px; height: 14px; fill: currentColor; }
.player__btn:hover { background: var(--gold); color: var(--ink); transform: scale(1.08); }
.player__bar {
  --hover: 0%;
  position: relative;
  flex: 1;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  cursor: pointer;
  touch-action: none;
  outline: none;
}
.player__bar::before { /* prévia de onde vai pular */
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--hover);
  border-radius: 999px;
  background: rgba(13,13,13,.12);
  opacity: 0;
  transition: opacity .2s;
}
.player__bar:hover::before { opacity: 1; }
.player__bar:focus-visible { box-shadow: 0 0 0 3px var(--gold); }
.player__buf, .player__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.player__buf { background: rgba(13,13,13,.18); }
.player__fill { background: var(--gold); }
.player__knob {
  position: absolute; top: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream-2);
  transform: scale(0);
  transition: transform .2s cubic-bezier(.2,.9,.3,1.5);
}
.player__bar:hover .player__knob, .player.is-dragging .player__knob, .player__bar:focus-visible .player__knob { transform: scale(1); }
.player__time { flex: none; font-family: var(--mono); font-size: 11px; min-width: 76px; text-align: center; }

.pop__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pop__brand { display: flex; align-items: center; min-height: 26px; }
.pop__brand .logo-chip img { height: clamp(13px, calc(44px / var(--sr)), 30px); width: auto; max-width: 200px; }
.pop__private {
  margin-top: 6px;
  padding: 8px 14px;
  border: 2px dashed var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
}
.pop__private[hidden] { display: none; }
.pop__brand b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); }
.pop__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.pop__desc { color: var(--muted); font-size: 15px; }
.pop__link { margin-top: 6px; }
.pop__link[hidden] { display: none; }

.pop-backdrop {
  position: fixed; inset: 0; z-index: 79;
  background: rgba(13,13,13,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.pop-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* telas menores: popup mais compacto */
@media (max-height: 860px), (max-width: 1366px) {
  .pop__media { padding: 9px 9px 0; }
  .browser { height: 26px; gap: 8px; }
  .browser__url { height: 17px; line-height: 17px; font-size: 10px; }
  .pop__body { padding: 12px 16px 14px; gap: 7px; }
  .pop__title { font-size: 18px; }
  .pop__desc { font-size: 13px; line-height: 1.45; }
  .pop .pop__tags li { font-size: 10.5px; padding: 2px 8px; }
  .pop__link, .pop__private { margin-top: 2px; padding: 6px 14px; font-size: 11px; }
  .pop__brand { min-height: 20px; }
  .pop__brand .logo-chip img { height: clamp(11px, calc(36px / var(--sr)), 24px); }
}

/* mobile / touch: popup vira painel inferior */
.pop.is-sheet {
  left: 8px !important; right: 8px; bottom: 8px; top: auto !important;
  box-sizing: border-box;
  width: auto;
  max-height: 88svh;
  overflow-y: auto;
  box-shadow: none;
}
.pop.is-sheet .pop__media { padding-top: 48px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 3px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}
.project__links { margin-top: auto; display: flex; gap: 10px; padding-top: 6px; }
.project__links .pill-btn { margin: 0; padding: 6px 16px; font-size: 12px; }

/* about */
.about__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.about__photo {
  position: relative;
  width: min(42vw, calc((100svh - 290px) * .8), 520px);
  aspect-ratio: 4 / 5;
  border: 2.5px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background: var(--gold-2);
  box-shadow: 10px 10px 0 var(--gold);
  rotate: -2deg;
}
/* fundo estilo anime retrô: raios de sol girando + disco atrás da cabeça + retícula */
.about__photo::before {
  content: "";
  position: absolute;
  inset: -65% -50% -35% -50%; /* centro fica atrás da cabeça (~35% da altura) */
  z-index: -2;
  background:
    radial-gradient(circle closest-side, var(--cream-2) 0 26%, rgba(243,239,216,0) 26.6%),
    radial-gradient(circle closest-side, rgba(243,239,216,.5) 0 36%, rgba(243,239,216,0) 36.6%),
    repeating-conic-gradient(from 0deg, var(--gold) 0deg 7.5deg, var(--gold-2) 7.5deg 15deg);
}
.loops .about__photo::before { animation: spin360 120s linear infinite; }
.about__photo::after { /* retícula de mangá subindo do rodapé */
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgba(13,13,13,.55) 1.5px, transparent 1.8px) 0 0 / 11px 11px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.4) 30%, transparent 55%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.4) 30%, transparent 55%);
}
.about__photo img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(5px 5px 0 rgba(13,13,13,.22));
}
.about__sticker {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream-2);
  font-family: var(--mono);
  font-size: 12px;
  rotate: 2deg;
}
.about__content { display: flex; flex-direction: column; gap: clamp(16px, 2.4vh, 28px); min-width: 0; }
.about .section__head { margin-bottom: clamp(20px, 3vh, 36px); }
.section.about { padding-bottom: 24px; }
@media (min-width: 1001px) and (max-height: 960px) {
  .about__photo { width: min(36vw, calc((100svh - 290px) * .7), 520px); }
  .section.about { padding-top: 16px; }
  .about .section__head h2 { font-size: clamp(40px, 5vw, 64px); }
  .card.about__card { font-size: 16px; padding: 22px 26px; }
  .card--cream .about__lead { font-size: clamp(20px, 1.7vw, 26px); margin-bottom: 10px; }
  .about__points { gap: 6px; margin-top: 10px; }
  .card--cream .about__fun { margin-top: 10px; }
  .about .stack li { padding: 6px 12px; font-size: 12.5px; }
}
.about .stack li { padding: 7px 13px; font-size: 13px; }
.about .stack-box h3 { margin-bottom: 10px; }
.card.about__card { font-size: clamp(17px, 1.2vw, 20px); padding: clamp(24px, 2.6vw, 40px); }
.about__card p { max-width: none; }
.about__card p + p, .about__card .about__points + p { margin-top: 16px; }
.card--cream .about__lead {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 90%;
  font-size: clamp(22px, 1.9vw, 34px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: none;
  margin-bottom: 14px;
}
.about__lead strong { background: linear-gradient(transparent 62%, var(--gold-2) 62%); }
.about__points { display: grid; gap: 8px 28px; margin-top: 14px; }
.card.about__card { container-type: inline-size; }
@container (min-width: 640px) { .about__points { grid-template-columns: 1fr 1fr; } }
.about__points li { display: flex; gap: 12px; align-items: baseline; }
.about__points b { color: var(--gold); font-size: .9em; flex: none; -webkit-text-stroke: 1px var(--ink); }
.card--cream .about__fun { color: var(--muted); margin-top: 14px; }
.card {
  position: relative;
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  padding: 32px;
}
.card--cream { background: var(--cream-2); font-size: 18px; }
.card--cream p + p { margin-top: 16px; }
.stack-box h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 18px;
  margin-bottom: 14px;
}
.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack li {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--cream-2);
  cursor: default;
  transition: background .2s, transform .2s;
}
.stack li.is-main { background: var(--gold-2); }
.stack li:hover { transform: rotate(-3deg) scale(1.06); background: var(--ink); color: var(--cream); }

/* contact */
.contact { padding-bottom: 32px; }
.card--gold {
  background: var(--gold-2);
  padding: 56px 48px;
}
.card--gold h2 {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 85%;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -.03em;
  line-height: .95;
  max-width: 14ch;
}
.card--gold p { margin-top: 18px; font-size: 18px; max-width: 52ch; }
.card__tab {
  position: absolute; top: -2px; left: 40px;
  background: var(--ink); color: var(--gold-2);
  padding: 6px 16px;
  border-radius: 0 0 12px 12px;
  font-size: 14px;
}
.card__dots {
  position: absolute; top: 20px; right: 24px;
  background: var(--ink); color: #fff;
  border-radius: 999px; padding: 0 12px;
  letter-spacing: 3px; line-height: 22px;
}
.contact__links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.footer {
  text-align: center;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  padding: 28px 24px 0;
}

/* initial states for JS animations (only when JS + motion ok) */
.js .hero__title .word { transform: translateY(110%); }
.js .hero .eyebrow, .js .hero__sub, .js .hero__cta, .js .badge { opacity: 0; }
.js .frame { opacity: 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 24px; }
  .hero__title { font-size: clamp(44px, 14cqi, 140px); }
  .hero__visual { justify-content: center; }
  .hero__visual .frame { margin: 0 auto; width: min(100%, 520px); }
  .badge { --badge: 130px; left: 4px; bottom: -24px; }
  .slide--hero .hero { flex: none; }
  .about__body { grid-template-columns: 1fr; }
  .about__photo { width: min(100%, 380px); justify-self: center; }
  .pager__dots { display: none; }
}
@media (max-width: 720px) {
  body { padding: 8px; }
  :root { --radius: 20px; --notch-r: 16px; }
  .header { flex-direction: column; align-items: stretch; height: auto; padding: 0 16px; }
  /* menu vira barra inferior flutuante: laterais transparentes, conteúdo rola por trás */
  .header {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 0;
    pointer-events: none;
  }
  .notch { pointer-events: auto; }
  /* iPhone: o Safari ignora o padding final de áreas com rolagem, então o espaço do menu vai dentro do conteúdo */
  html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  .slide { display: block; -webkit-overflow-scrolling: touch; }
  .slide > .section { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .slide--hero > .marquee { margin-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .notch {
    position: static; transform: none; align-self: center;
    padding: 10px 14px calc(8px + env(safe-area-inset-bottom));
    border-radius: var(--notch-r) var(--notch-r) 0 0;
  }
  .notch::before, .notch::after { top: auto; bottom: 0; }
  .notch::before { background: radial-gradient(circle at 0 0, transparent calc(var(--notch-r) - .5px), var(--ink) var(--notch-r)); }
  .notch::after  { background: radial-gradient(circle at 100% 0, transparent calc(var(--notch-r) - .5px), var(--ink) var(--notch-r)); }
  .notch ul { gap: 6px; }
  .notch a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    min-width: 64px;
    padding: 4px 6px 10px;
    font-size: 10.5px;
    letter-spacing: .04em;
  }
  .notch__ic {
    display: block;
    width: 22px; height: 22px;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform .35s cubic-bezier(.2,.9,.3,1.5);
  }
  .notch a.active .notch__ic { transform: translateY(-2px) scale(1.12); color: var(--gold-2); }
  .logo, .header__right { display: none; }
  .about__photo { width: min(100%, 300px); }
  .fl--desk { display: none; }
  .fl { scale: .65; left: var(--mx); top: var(--my); }
  .slide--hero .floaters { bottom: 54px; }
  .hero { padding-top: 32px; padding-bottom: 56px; }
  .badge { display: none; }
  .hero__sub { font-size: 16px; }
  .section { padding-top: 80px; padding-bottom: 24px; }
  .card { padding: 24px; }
  .card--gold { padding: 56px 22px 40px; }
  .marquee__group span, .marquee__group i { font-size: 16px; }
  .marquee { --marquee-gap: 12px; }
}

@media (max-width: 720px) {
  .panel { height: calc(100svh - 16px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .dot::after { animation: none; }
}
