/* ==================================================================
   Silly Studio
   Paleta oficial · Megascope Variable (sempre em CAIXA ALTA) · DM Sans
   ================================================================== */

:root {
  --brown: #3a1d1d;
  --yellow: #f3fa54;
  --pink: #fe7cc4;
  --wine: #750035;

  --font-display: "megascope-variable", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 3vw, 2.75rem);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);

  --nav-fg: var(--brown);
  --nav-bg: var(--yellow);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--brown); /* cor da abertura: nada pisca antes do JS */
}
html.no-intro { background: var(--yellow); }

body {
  margin: 0;
  background: var(--yellow);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, iframe { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- Megascope: SEMPRE em caixa alta ----------
   Qualquer elemento que use --font-display entra neste grupo. */
.nav__brand, .hero__title, .float__name, .gallery__title, .work__name,
.contact__lead, .contact__mail, .footer__sig, .pv__name, .pv__nextname, .pv__links a {
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "SCOP" 0;
  text-transform: uppercase;
}

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

.skip {
  position: fixed; left: var(--gutter); top: 0.75rem; z-index: 200;
  padding: 0.5rem 0.9rem; background: var(--brown); color: var(--yellow);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Símbolo S (traçado do arquivo original), usado nos placeholders */
.s-mark { display: block; fill: currentColor; aspect-ratio: 907 / 1015; }

/* ==================================================================
   Abertura — a silhueta do S é a janela para o site
   O SVG cobre a tela com a cor da marca; o S é um "buraco" na máscara
   que cresce (mesmas proporções) até ultrapassar o viewport.
   ================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 100;
  width: 100%; height: 100%;
  /* rede de segurança: some sozinha mesmo se o JS falhar */
  animation: introGone 0s linear 7s forwards;
}
.intro--done, html.no-intro .intro { display: none; }
@keyframes introGone { to { visibility: hidden; pointer-events: none; } }

/* ==================================================================
   Revelação do conteúdo (durante/após a abertura)
   ================================================================== */
html.js:not(.is-ready) .nav,
html.js:not(.is-ready) .hero__title,
html.js:not(.is-ready) .float,
html.js:not(.is-ready) .hero__hint { opacity: 0; }

.nav, .hero__title, .hero__hint {
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), color 0.3s, background-color 0.3s;
}
.float { transition: opacity 0.8s var(--ease), transform 1s var(--ease); transition-delay: calc(0.1s + var(--i, 0) * 0.08s); }
html.js:not(.is-ready) .hero__title { transform: translateY(14px); }
html.js:not(.is-ready) .float { transform: translateY(18px); }

/* ==================================================================
   Header: GALLERY · SILLY STUDIO · CONTACT
   ================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1.1rem var(--gutter);
  color: var(--nav-fg);
  /* mesma cor da seção sob o menu: não aparece como barra */
  background: var(--nav-bg);
}
.nav > * { text-decoration: none; }
.nav__side {
  font-weight: 500; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease);
  padding-bottom: 2px;
}
.nav__side--left { justify-self: start; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 1.4rem; }
.nav__right .nav__side { background-position: right bottom; }
.nav__lang {
  border: 1px solid currentColor; border-radius: 999px;
  padding: 0.18rem 0.6rem 0.14rem; background: none; line-height: 1.2;
  transition: background-color 0.25s, color 0.25s;
}
.nav__lang:hover { background: var(--nav-fg); color: var(--nav-bg); }
.nav__side:hover { background-size: 100% 1px; }
.nav__brand {
  justify-self: center;
  font-size: 1.05rem; letter-spacing: 0.03em; white-space: nowrap;
}

/* ==================================================================
   1. Capa flutuante
   ================================================================== */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 540px;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--brown);
}
.hero__title {
  position: relative; z-index: 2;
  font-size: clamp(2.2rem, 11.2vw, 14rem);
  line-height: 0.9; letter-spacing: -0.02em;
  white-space: nowrap; text-align: center;
  pointer-events: none;
}
.hero__hint {
  position: absolute; bottom: 1.25rem; left: 50%; translate: -50% 0;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
}

.float-list { position: absolute; inset: 0; z-index: 1; }
.float {
  position: absolute; left: var(--x); top: var(--y);
  --w: 12vw; --ar: 1;
}
.float__drift { animation: drift var(--dur, 9s) ease-in-out var(--delay, 0s) infinite alternate; }
.float__link {
  display: flex; align-items: flex-end; gap: 0.6rem;
  text-decoration: none;
}
.float__thumb {
  position: relative; overflow: hidden; flex: none;
  width: var(--w); aspect-ratio: var(--ar);
}
.float__thumb > img, .float__thumb .yt__in { transition: transform 0.7s var(--ease); }
.float__thumb > img { width: 100%; height: 100%; object-fit: cover; }
.float__cap { display: grid; gap: 0.1rem; padding-bottom: 0.1rem; transition: color 0.3s; }
.float__no { font-size: 0.62rem; letter-spacing: 0.12em; font-weight: 500; opacity: 0.7; }
.float__name {
  font-size: clamp(0.8rem, 1.05vw, 1.05rem); line-height: 1.05; max-width: 9em; letter-spacing: 0.02em;
}
.float__link:hover .float__thumb > img,
.float__link:focus-visible .float__thumb > img { transform: scale(1.06); }
.float__link:hover .float__thumb .yt__in,
.float__link:focus-visible .float__thumb .yt__in { transform: translate(-50%, -50%) scale(1.06); }
.float__link:hover .float__cap,
.float__link:focus-visible .float__cap { color: var(--wine); }

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--dx, 8px), var(--dy, -12px), 0); }
}

/* Posições assimétricas (desktop). Cada slot tem seu ritmo de flutuação. */
.float:nth-child(1) { --x: 7%;  --y: 14%; --w: min(13vw, 17vh);   --ar: 4 / 5;  --dx: 10px;  --dy: -14px; --dur: 9s;   --delay: -2s; }
.float:nth-child(2) { --x: 64%; --y: 65%; --w: min(20vw, 30vh);   --ar: 16 / 10; --dx: -12px; --dy: 10px;  --dur: 11s;  --delay: -5s; }
.float:nth-child(3) { --x: 71%; --y: 13%; --w: min(10vw, 16vh);   --ar: 1;      --dx: 8px;   --dy: 12px;  --dur: 8s;   --delay: -1s; }
.float:nth-child(4) { --x: 15%; --y: 68%; --w: min(10vw, 15vh);   --ar: 3 / 4;  --dx: -8px;  --dy: -10px; --dur: 10s;  --delay: -7s; }
.float:nth-child(5) { --x: 41%; --y: 78%; --w: min(8vw, 12vh);    --ar: 1;      --dx: 10px;  --dy: -8px;  --dur: 12s;  --delay: -3s; }
.float:nth-child(6) { --x: 29%; --y: 13%; --w: min(9vw, 14vh);    --ar: 5 / 4;  --dx: -10px; --dy: 12px;  --dur: 9.5s; --delay: -6s; }
.float:nth-child(7) { --x: 50%; --y: 7%;  --w: min(7vw, 11vh);    --ar: 4 / 3;  --dx: 8px;   --dy: 10px;  --dur: 10.5s; --delay: -4s; }

/* ---------- Frame do YouTube: recorta as faixas pretas e cobre qualquer proporção ---------- */
.yt { position: absolute; inset: 0; overflow: hidden; container-type: size; background: var(--brown); }
.yt__in {
  position: absolute; left: 50%; top: 50%;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%); overflow: hidden;
}
.yt__in > img { position: absolute; left: 0; top: -16.667%; width: 100%; height: 133.334%; max-width: none; }

/* ---------- Placeholders: discretos e claramente provisórios ---------- */
.ph {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 0.45rem;
  background: rgba(58, 29, 29, 0.1); color: var(--brown);
}
.ph .s-mark { width: 22%; opacity: 0.45; }
.ph__txt { font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; text-align: center; padding: 0 0.4rem; opacity: 0.7; }
/* sobre fundo marrom (galeria e modal) */
.work .ph, .pv__next .ph { background: rgba(254, 124, 196, 0.1); color: var(--pink); }

/* ==================================================================
   2. Galeria
   ================================================================== */
.gallery {
  position: relative; z-index: 3;
  background: var(--brown); color: var(--yellow);
  border-radius: 50% 50% 0 0 / 6vw 6vw 0 0;
  padding: clamp(6rem, 12vw, 11rem) var(--gutter) clamp(5rem, 10vw, 9rem);
  margin-top: -1px;
}
.gallery__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: clamp(3rem, 7vw, 6rem);
}
.gallery__title {
  font-size: clamp(3rem, 9vw, 9rem); line-height: 0.85; letter-spacing: -0.02em; color: var(--pink);
}
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.filters__btn {
  font-weight: 500; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.4rem 0;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.filters__btn:hover { background-size: 100% 1px; }
.filters__btn[aria-pressed="true"] { color: var(--pink); background-size: 100% 1px; }

.works {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(0.75rem, 2vw, 2rem); row-gap: clamp(3.5rem, 8vw, 8rem);
  align-items: start;
}
.work { --ar: 16 / 10; grid-column: 1 / -1; transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); }
.work.is-hiding { opacity: 0; transform: translateY(14px); }
.work[hidden] { display: none; }

@media (min-width: 760px) {
  .work[data-pos="0"] { grid-column: 1 / span 7;  --ar: 16 / 10; }
  .work[data-pos="1"] { grid-column: 9 / span 4;  --ar: 4 / 5; margin-top: clamp(4rem, 12vw, 12rem); }
  .work[data-pos="2"] { grid-column: 3 / span 4;  --ar: 1; }
  .work[data-pos="3"] { grid-column: 8 / span 5;  --ar: 16 / 10; margin-top: clamp(2rem, 6vw, 6rem); }
}

.work__link { display: block; text-decoration: none; }
.work__thumb { position: relative; overflow: hidden; aspect-ratio: var(--ar); background: rgba(254, 124, 196, 0.06); }
.work__thumb > img { width: 100%; height: 100%; object-fit: cover; }
.work__thumb > img, .work__thumb .yt__in { transition: transform 0.9s var(--ease); }
.work__link:hover .work__thumb > img,
.work__link:focus-visible .work__thumb > img { transform: scale(1.04); }
.work__link:hover .work__thumb .yt__in,
.work__link:focus-visible .work__thumb .yt__in { transform: translate(-50%, -50%) scale(1.04); }
.work .ph .ph__txt { font-size: 0.66rem; }
.work .ph .s-mark { width: 12%; }

.work__cap { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; margin-top: 1rem; align-items: baseline; }
.work__no { font-size: 0.7rem; letter-spacing: 0.12em; font-weight: 500; opacity: 0.7; }
.work__name {
  font-size: clamp(1.4rem, 2.4vw, 2.3rem); line-height: 1; letter-spacing: 0.01em; transition: color 0.3s;
}
.work__link:hover .work__name,
.work__link:focus-visible .work__name { color: var(--pink); }
.work__meta { grid-column: 2; font-size: 0.85rem; opacity: 0.85; margin-top: 0.4rem; }
.works__empty { padding: 3rem 0; }

/* ==================================================================
   3. Contato
   ================================================================== */
.contact {
  background: var(--brown); color: var(--yellow);
  padding: clamp(5rem, 10vw, 9rem) var(--gutter) clamp(4rem, 7vw, 6rem);
}
.contact__label { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.contact__lead {
  margin-top: 1.5rem; max-width: 12em;
  font-size: clamp(2.2rem, 7vw, 7rem); line-height: 0.95; letter-spacing: -0.01em;
}
.contact__mail {
  display: inline-block; margin-top: clamp(2rem, 4vw, 4rem);
  font-size: clamp(1.1rem, 3.1vw, 2.6rem); color: var(--pink); text-decoration: none;
  overflow-wrap: anywhere; letter-spacing: 0.02em;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 2px no-repeat;
  padding-bottom: 0.15em;
  transition: background-size 0.35s var(--ease);
}
.contact__mail:hover { background-size: 0 2px; }

/* ==================================================================
   Rodapé
   ================================================================== */
.footer {
  background: var(--brown); color: var(--yellow);
  padding: 2rem var(--gutter) 2.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  border-top: 1px solid rgba(243, 250, 84, 0.22);
  font-size: 0.85rem;
}
.footer__sig { font-size: 1rem; letter-spacing: 0.04em; color: var(--pink); }
.footer__phil { opacity: 0.8; }

/* ==================================================================
   Página de projeto (editorial)
   ================================================================== */
.view[hidden] { display: none; }

.pv { background: var(--yellow); color: var(--brown); animation: pvIn 0.6s var(--ease); }
@keyframes pvIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.pv__head { padding: clamp(6.5rem, 12vw, 10rem) var(--gutter) clamp(2.5rem, 5vw, 4.5rem); }
.pv__back {
  display: inline-block; text-decoration: none;
  font-weight: 500; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease); padding-bottom: 2px;
}
.pv__back:hover { background-size: 100% 1px; }

.pv__kicker {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; align-items: baseline;
  font-weight: 500; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.pv__no { color: var(--wine); }
.pv__name {
  margin-top: 1rem; max-width: 14em;
  font-size: clamp(2.6rem, 8.6vw, 10rem); line-height: 0.88; letter-spacing: -0.015em;
  overflow-wrap: break-word; hyphens: manual;
}
.pv__name:focus { outline: none; }

.pv__intro {
  margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-top: 1.4rem;
  border-top: 1px solid rgba(58, 29, 29, 0.35);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(0.75rem, 2vw, 2rem); row-gap: 2rem;
}
.pv__summary {
  grid-column: 1 / span 7;
  font-size: clamp(1.15rem, 1.75vw, 1.6rem); line-height: 1.4; letter-spacing: -0.005em;
  text-wrap: pretty;
}
.pv__facts { grid-column: 9 / span 4; display: grid; gap: 1.1rem; align-content: start; }
.pv__summary:only-child, .pv__facts:only-child { grid-column: 1 / -1; }
.pv__facts:only-child { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.pv__fact dt { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; opacity: 0.65; }
.pv__fact dd { margin: 0.2rem 0 0; font-size: 1.05rem; }

.pv__body {
  padding: 0 var(--gutter) clamp(5rem, 10vw, 9rem);
  display: grid; gap: clamp(3rem, 7vw, 7rem);
}

/* ---------- Mídias (vídeo embutido, Instagram, imagem) ---------- */
.embed { position: relative; width: 100%; aspect-ratio: var(--ar, 16 / 9); background: rgba(58, 29, 29, 0.08); overflow: hidden; }
.embed > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed__fallback { position: absolute; inset: 0; display: block; text-decoration: none; }
.embed__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  padding: 0.7rem 1.2rem; border-radius: 999px; background: var(--yellow); color: var(--brown);
  font-weight: 500; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.embed__fallback:hover .embed__play { background: var(--pink); }
.embed--v { width: min(100%, 26rem); margin-inline: auto; }

/* Instagram: o player tem cabeçalho e rodapé próprios além do vídeo */
.embed--instagram {
  aspect-ratio: auto; width: min(100%, 27rem); margin-inline: auto;
  container-type: inline-size; background: #fff; border-radius: 4px;
}
.embed--instagram > iframe { position: static; height: calc(100cqw * 16 / 9 + 15rem); }

.embed--img { aspect-ratio: auto; background: none; }
.embed--img > img { width: 100%; height: auto; }
.embed--img[data-size="medium"] { width: min(100%, 44rem); margin-inline: auto; }
.embed .ph { position: relative; aspect-ratio: 16 / 9; }

.pv__main .pv__ph { position: relative; aspect-ratio: 16 / 9; }
.pv__main .ph .s-mark { width: 7%; }
.pv__main .ph .ph__txt { font-size: 0.72rem; }

/* ---------- Sequência animada (ex.: credenciais) ---------- */
.seq { position: relative; width: 100%; background: #fff; overflow: hidden; }
.seq__stage { position: relative; aspect-ratio: var(--ar, 3 / 2); }
.seq__frame {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform-origin: 50% 0;
}
.seq__frame.is-on { opacity: 1; z-index: 1; }
.seq__frame.is-in { animation: seqSwing 1.6s cubic-bezier(0.3, 0.7, 0.3, 1) 0.3s both; }
.seq__frame.is-out { animation: seqOut 0.45s ease-in both; }
@keyframes seqOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-5%) rotate(-1.5deg); }
}
@keyframes seqSwing {
  0%   { opacity: 0; transform: translateY(-7%) rotate(3.2deg); }
  18%  { opacity: 1; }
  40%  { transform: translateY(0) rotate(-1.6deg); }
  62%  { transform: rotate(0.8deg); }
  82%  { transform: rotate(-0.3deg); }
  100% { opacity: 1; transform: none; }
}
.seq__dots {
  position: absolute; left: 50%; bottom: clamp(0.8rem, 2vw, 1.4rem); translate: -50% 0; z-index: 2;
  display: flex; gap: 0.5rem;
}
.seq__dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  border: 1px solid var(--brown); background: transparent; transition: background-color 0.25s;
}
.seq__dot[aria-pressed="true"] { background: var(--brown); }

.pv__pair {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(0.75rem, 2vw, 2rem); align-items: start;
}
.pv__pair .embed--v, .pv__pair .embed--instagram { width: 100%; }
.pv__text {
  width: min(100%, 36rem); margin-left: auto; margin-right: clamp(0rem, 8vw, 8rem);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.5;
}
.pv__caption {
  margin-top: calc(-1 * clamp(2.2rem, 6vw, 6rem));
  font-size: 0.8rem; letter-spacing: 0.04em; opacity: 0.75;
}

.pv__end {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(0.75rem, 2vw, 2rem); row-gap: 2rem;
  padding-top: 1.4rem; border-top: 1px solid rgba(58, 29, 29, 0.35);
}
.pv__credits { grid-column: 1 / span 7; }
.pv__credits dl { margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.1rem 2rem; }
.pv__links { grid-column: 9 / span 4; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; align-content: start; }
.pv__links:only-child { grid-column: 1 / -1; }
.pv__links a {
  font-size: 1.15rem; letter-spacing: 0.02em; color: var(--wine); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 2px no-repeat; padding-bottom: 0.1em;
  transition: background-size 0.35s var(--ease);
}
.pv__links a:hover { background-size: 0 2px; }
.pv__label { font-weight: 500; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Próximo projeto ---------- */
.pv__next {
  background: var(--brown); color: var(--yellow);
  border-radius: 50% 50% 0 0 / 6vw 6vw 0 0;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter) clamp(4rem, 8vw, 7rem);
}
.pv__nextlink {
  display: grid; grid-template-columns: 1fr minmax(0, 30%); gap: clamp(1.5rem, 4vw, 4rem); align-items: end;
  text-decoration: none;
}
.pv__nexttxt { display: grid; gap: 1rem; }
.pv__nexttxt .pv__label { color: var(--pink); }
.pv__nextname {
  font-size: clamp(2.2rem, 7vw, 7.5rem); line-height: 0.9; letter-spacing: -0.01em;
  transition: color 0.3s;
}
.pv__nextlink:hover .pv__nextname, .pv__nextlink:focus-visible .pv__nextname { color: var(--pink); }
.pv__nextthumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: rgba(254, 124, 196, 0.06); }
.pv__nextthumb > img { width: 100%; height: 100%; object-fit: cover; }
.pv__nextthumb > img, .pv__nextthumb .yt__in { transition: transform 0.9s var(--ease); }
.pv__nextlink:hover .pv__nextthumb > img { transform: scale(1.04); }
.pv__nextlink:hover .pv__nextthumb .yt__in { transform: translate(-50%, -50%) scale(1.04); }

@media (max-width: 759px) {
  .pv__summary, .pv__facts, .pv__credits, .pv__links { grid-column: 1 / -1; }
  .pv__facts { grid-template-columns: 1fr 1fr; }
  .pv__nextlink { grid-template-columns: 1fr; }
  .pv__nextthumb { order: -1; }
  .pv__text { margin-right: 0; }
  .pv__next { border-radius: 50% 50% 0 0 / 9vw 9vw 0 0; }
}


/* ==================================================================
   Mobile
   ================================================================== */
@media (max-width: 719px) {
  .nav { padding-top: 0.95rem; }
  .nav__side { font-size: 0.68rem; letter-spacing: 0.1em; }
  .nav__brand { font-size: 0.92rem; letter-spacing: 0.02em; }
  .nav__right { gap: 0.8rem; }
  .nav__lang { padding: 0.12rem 0.45rem 0.08rem; }

  .hero__title { font-size: 9.6vw; letter-spacing: -0.03em; }
  .float__link { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .float__name { font-size: 0.78rem; max-width: 11em; }
  .float:nth-child(1) { --x: 6%;  --y: 15%; --w: 34vw; }
  .float:nth-child(2) { --x: 38%; --y: 66%; --w: 54vw; }
  .float:nth-child(3) { --x: 62%; --y: 17%; --w: 28vw; }
  .float:nth-child(4) { --x: 6%;  --y: 70%; --w: 24vw; }
  .float:nth-child(n+5) { display: none; }
  .ph__txt { font-size: 0.5rem; }

  .gallery { border-radius: 50% 50% 0 0 / 9vw 9vw 0 0; }
}

/* ==================================================================
   Movimento reduzido
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float__drift { animation: none; }
  .seq__frame.is-in, .seq__frame.is-out { animation: none; }
  .float, .nav, .hero__title, .hero__hint, .work, .pv { transition: none; animation: none; }
  .float__link:hover .float__thumb > img,
  .work__link:hover .work__thumb > img { transform: none; }
  .float__link:hover .float__thumb .yt__in,
  .work__link:hover .work__thumb .yt__in { transform: translate(-50%, -50%); }
}
