/* ==========================================================================
   A Usina — site cinematográfico
   Marca: Montserrat (bold/light) + paleta de 7 cores do guia rápido.
   ========================================================================== */

:root {
  /* marca */
  --blue:   #1E3A8F;
  --pink:   #E6007E;
  --orange: #EC6707;
  --cyan:   #009FE3;
  --sun:    #FCBF00;
  --purple: #942083;
  --green:  #0FA242;

  /* neutros */
  --ink:    #0B0D1A;
  --ink-2:  #141830;
  --paper:  #F5F3EE;
  --paper-2:#E9E6DE;
  --on-ink: #F5F3EE;
  --on-ink-muted: rgba(245, 243, 238, .66);
  --on-paper-muted: #55546A;

  /* fundo da abertura, em volta das letras da marca (lido também pelo main.js).
     Era var(--ink); trocado pelo claro em 08/10/2026. */
  --hero-bg: var(--paper);
  /* contorno fino das letras da abertura (ex.: --hero-line: var(--ink);).
     Tirado em 24/10/2026: as letras ficam só com as cores do filme. */

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --header-h: 76px;
  /* canto "pixel" da marca: três cantos arredondados e um reto */
  --r-lg: 34px 34px 34px 0;
  --r-md: 22px 22px 22px 0;
  --r-sm: 14px 14px 14px 0;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
section[id] { scroll-margin-top: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- tipografia ---------- */
.display {
  font-weight: 800;
  font-size: clamp(2.3rem, 5.6vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.display em { font-style: normal; color: var(--sun); }
.display--sm { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.lede { font-size: clamp(1.02rem, 1.25vw, 1.2rem); font-weight: 400; color: var(--on-ink-muted); max-width: 46ch; text-wrap: pretty; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sun); margin-bottom: 14px;
}
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-ink-muted); margin-bottom: 28px;
}
.label span {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  background: var(--sun); color: var(--ink); font-weight: 700; letter-spacing: 0;
  border-radius: 8px 8px 8px 0;
}
.label--dark { color: var(--on-paper-muted); }

/* ---------- botões ---------- */
.btn {
  --shadow: var(--pink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  font: 700 15px/1 var(--font); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  border: 0; border-radius: var(--r-sm); cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .2s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--shadow); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--ghost { background: rgba(245, 243, 238, .08); color: var(--on-ink); box-shadow: inset 0 0 0 1.5px rgba(245, 243, 238, .4); --shadow: var(--cyan); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(245, 243, 238, .9), 5px 5px 0 var(--shadow); }
.btn--light { background: var(--paper); color: var(--ink); --shadow: var(--ink); }
.btn--ink { background: var(--ink); color: var(--on-ink); --shadow: var(--sun); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; --shadow: var(--cyan); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px currentColor, 5px 5px 0 var(--shadow); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--gutter);
  transition: background-color .4s, backdrop-filter .4s, transform .5s var(--ease);
}
.site-header[data-state="solid"] {
  background: rgba(11, 13, 26, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}
.brand { position: relative; display: block; opacity: calc(1 - var(--intro, 0)); transition: opacity .2s; }
.brand img { width: 118px; height: auto; transition: opacity .3s; }
.brand__cor { position: absolute; inset: 0; }
.site-header[data-state="hero"] .brand__branco,
.site-header[data-state="solid"] .brand__cor { opacity: 0; }
/* menu do celular aberto (fundo escuro): logo branco */
body:has(.menu:not([hidden])) .brand__cor { opacity: 0; }
body:has(.menu:not([hidden])) .brand__branco { opacity: 1; }
.nav {
  margin-left: auto;
  display: flex; gap: 2px; padding: 5px;
  background: rgba(11, 13, 26, .55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 999px;
}
.nav a {
  padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--on-ink);
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(245, 243, 238, .12); }
.nav a[aria-current="true"] { background: var(--paper); color: var(--ink); }
.menu-btn { display: none; }

/* menu mobile */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-size: clamp(2.2rem, 11vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.12;
  text-decoration: none; color: var(--on-ink);
  display: flex; align-items: center; gap: 14px;
}
.menu nav a::before { content: ""; width: .32em; height: .32em; background: var(--c); border-radius: 4px 4px 4px 0; }
.menu__foot { display: grid; justify-items: start; gap: 18px; color: var(--on-ink-muted); font-size: 15px; }

@media (max-width: 1200px) {
  .nav, .header-cta { display: none; }
  .menu-btn {
    display: grid; place-items: center; margin-left: auto;
    width: 48px; height: 48px; border: 0; cursor: pointer;
    background: rgba(11, 13, 26, .6); color: var(--on-ink);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-radius: var(--r-sm);
  }
  .menu-btn__bars { display: grid; gap: 7px; }
  .menu-btn__bars i { display: block; width: 22px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars i:first-child { transform: translateY(4.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars i:last-child { transform: translateY(-4.75px) rotate(-45deg); }
}

/* ==========================================================================
   HERO — filme controlado pelo scroll
   ========================================================================== */
.hero { position: relative; height: 640vh; background: var(--hero-bg); color: var(--ink); }
.hero__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--hero-bg);
}
.hero__stage {
  position: absolute; inset: 0;
  /* fundo enquanto o canvas não desenha */
  background: var(--hero-bg);
  clip-path: inset(var(--in-t, 0px) var(--in-x, 0px) var(--in-b, 0px) var(--in-x, 0px) round var(--in-r, 0px));
  will-change: clip-path;
}
.hero__canvas { display: block; width: 100%; height: 100%; }

.hero__intro {
  position: absolute; left: 0; right: 0; top: var(--mark-bottom, 64%);
  text-align: center; padding: 0 var(--gutter);
  opacity: var(--intro, 1);
  transform: translateY(calc((1 - var(--intro, 1)) * -24px));
}
.hero__tagline {
  font-weight: 500; font-size: clamp(11px, 1.15vw, 16px);
  letter-spacing: .34em; text-transform: uppercase; color: var(--ink);
}
.hero__cue {
  position: absolute; left: 50%; bottom: clamp(24px, 5vh, 44px);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-paper-muted);
  opacity: var(--intro, 1);
}
.hero__cue i { position: relative; width: 1.5px; height: 46px; background: rgba(11, 13, 26, .18); overflow: hidden; }
.hero__cue i::after {
  content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%;
  background: var(--sun); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* legendas do filme */
.hero__captions {
  position: absolute; left: var(--gutter); right: var(--gutter);
  bottom: clamp(96px, 16vh, 170px);
  display: flex; flex-direction: column; align-items: flex-start; gap: .1em;
  font-size: clamp(2.4rem, 8.6vw, 9rem);
  font-weight: 900; line-height: .9; letter-spacing: -.05em;
  pointer-events: none;
}
.cap {
  --r: 0;
  position: relative;
  padding: .04em .2em .14em .16em;
  background: var(--ink); color: var(--on-ink);
  border-radius: .16em .16em .16em 0;
  opacity: min(1, calc(var(--r) * 6));
  clip-path: inset(-.4em calc((1 - var(--r)) * 100% - .3em) -.4em -.4em);
  transform: translateX(calc((1 - var(--r)) * -.4em));
}
.cap::after { /* pixel da marca */
  content: ""; position: absolute; right: -.2em; bottom: -.2em;
  width: .2em; height: .2em; background: currentColor;
}
.cap--sun { color: var(--sun); }
.cap--pink { color: #FF4FB0; }

/* HUD */
.hud {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vh, 32px);
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  opacity: var(--hud, 0);
  pointer-events: none;
}
.hud__pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(11, 13, 26, .7); color: var(--on-ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hud__rec { width: 8px; height: 8px; background: var(--pink); border-radius: 2px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.hud__bar { flex: 1; height: 3px; background: rgba(11, 13, 26, .45); border-radius: 3px; overflow: hidden; }
.hud__bar i { display: block; height: 100%; width: 100%; background: var(--sun); transform-origin: 0 50%; transform: scaleX(var(--film, 0)); }

/* desfecho do hero */
.hero__outro {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 5vh, 52px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  opacity: var(--outro, 0);
  transform: translateY(calc((1 - var(--outro, 0)) * 36px));
  pointer-events: none;
}
.hero__outro.is-live { pointer-events: auto; }
.hero__headline {
  font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 3.4rem); line-height: 1; letter-spacing: -.035em;
  max-width: 17ch; text-wrap: balance;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__outro .eyebrow { color: var(--blue); }
.hero .btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.hero .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink), 5px 5px 0 var(--shadow); }

/* loader */
.loader {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--hero-bg);
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__pixels { display: flex; gap: 6px; }
.loader__pixels i {
  width: 14px; height: 14px; border-radius: 3px 3px 3px 0;
  animation: hop 1.1s var(--ease) infinite;
}
.loader__pixels i:nth-child(1) { background: var(--blue);   animation-delay: 0s; }
.loader__pixels i:nth-child(2) { background: var(--pink);   animation-delay: .08s; }
.loader__pixels i:nth-child(3) { background: var(--orange); animation-delay: .16s; }
.loader__pixels i:nth-child(4) { background: var(--cyan);   animation-delay: .24s; }
.loader__pixels i:nth-child(5) { background: var(--purple); animation-delay: .32s; }
.loader__pixels i:nth-child(6) { background: var(--green);  animation-delay: .40s; }
.loader__pixels i:nth-child(7) { background: var(--sun);    animation-delay: .48s; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-12px); } }
.loader__pct { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--on-paper-muted); }

/* ==========================================================================
   SOBRE
   ========================================================================== */
.about { position: relative; padding: clamp(110px, 16vh, 200px) 0 clamp(90px, 12vh, 150px); background: var(--ink); }
.manifesto {
  font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 4.1rem); line-height: 1.08; letter-spacing: -.035em;
  max-width: 26em;
  text-wrap: pretty;
}
.manifesto .w { opacity: var(--o, .16); transition: opacity .15s linear; }
.about__cols {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px;
  margin-top: clamp(48px, 8vh, 96px); padding-top: 32px; border-top: 1px solid rgba(245, 243, 238, .14);
}
.about__cols > p { color: var(--on-ink-muted); max-width: 52ch; font-size: 1.08rem; }
.about__cols > .about__cue {
  align-self: end; justify-self: end; max-width: 26ch;
  font-weight: 700; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.3; color: var(--sun);
}
.about__cue span { display: inline-block; animation: drop 1.6s var(--ease) infinite; }
@keyframes drop { 50% { transform: translateY(6px); } }

/* índice: os quadrados levam às seções */
.pillars {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
  margin-top: clamp(40px, 6vh, 72px);
}
.pillar {
  position: relative; aspect-ratio: 1; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  background: var(--c); color: #fff; text-decoration: none;
  border-radius: var(--r-md);
  font-weight: 900; font-size: clamp(1rem, 1.8vw, 1.75rem); line-height: .92; letter-spacing: -.03em; text-transform: uppercase;
  container-type: inline-size;
  transform: translateY(calc((1 - var(--in, 0)) * 60px)) rotate(calc((1 - var(--in, 0)) * -6deg));
  opacity: var(--in, 0);
  transition:
    transform 1s var(--ease) calc(var(--k, 0) * 70ms),
    opacity .8s var(--ease) calc(var(--k, 0) * 70ms),
    translate .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar--dark { color: var(--ink); }
.pillar::before { /* quadradinhos das postagens do Instagram */
  content: ""; position: absolute; inset: 0;
  background-image: conic-gradient(rgba(255, 255, 255, .18) 25%, transparent 0 50%, rgba(255, 255, 255, .18) 0 75%, transparent 0);
  background-size: 33.33% 33.33%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 38%, #000 72%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 38%, #000 72%);
}
.pillar span { position: relative; font-size: 13.5cqi; }
.pillar small, .pillar b {
  position: absolute; font-family: var(--mono); font-weight: 700; letter-spacing: .08em;
}
.pillar small { top: 8cqi; left: 9cqi; font-size: max(10px, 6.5cqi); opacity: .8; }
.pillar b { right: 8cqi; bottom: 6cqi; font-size: max(14px, 11cqi); transition: transform .35s var(--ease); }
.pillar:hover { translate: -4px -4px; box-shadow: 6px 6px 0 var(--sun); }
.pillar:hover b { transform: translateX(4px); }
.pillar:focus-visible { outline-offset: 4px; }
.pillars.is-in .pillar { --in: 1; }

/* ==========================================================================
   O ESPAÇO — trilho horizontal
   ========================================================================== */
.space { position: relative; background: var(--ink); }
.space__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 32px);
}
.space__track {
  display: flex; align-items: flex-start; gap: clamp(18px, 2.2vw, 32px);
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.space__intro { flex: 0 0 auto; align-self: center; width: min(520px, 84vw); padding-right: clamp(10px, 4vw, 60px); }
.space__intro .display { margin-bottom: 22px; }
.space__hint {
  margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun);
}
.space__hint span { display: inline-block; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }

.scene { position: relative; flex: 0 0 auto; width: clamp(250px, 26vh + 9vw, 400px); }
.scene__img {
  position: relative; aspect-ratio: 3 / 4.2; overflow: hidden;
  border-radius: var(--r-md); background: var(--ink-2);
  margin-bottom: 16px;
}
.scene__img img {
  position: absolute; top: 0; left: -8%; width: 116%; height: 100%; max-width: none;
  object-fit: cover;
  transform: translateX(var(--px, 0px));
  transition: scale .6s var(--ease);
}
.scene__img::after { /* "abrir": a cena inteira é clicável */
  content: "+"; position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--sun); color: var(--ink); font: 700 26px/1 var(--font);
  border-radius: 12px 12px 12px 0;
  transition: transform .35s var(--ease);
}
.scene__btn {
  font: inherit; letter-spacing: inherit; color: inherit; text-align: left;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.scene__btn::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.scene__btn:focus-visible { outline: none; }
.scene:has(.scene__btn:focus-visible) .scene__img { outline: 3px solid var(--sun); outline-offset: 4px; }
.scene:hover .scene__img img { scale: 1.05; }
.scene:hover .scene__img::after { transform: rotate(90deg); }
.scene__num { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin-bottom: 6px; }
.scene h3 { font-size: clamp(1.3rem, 1.7vw, 1.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 6px; text-wrap: balance; }
.scene__text { font-size: 15px; color: var(--on-ink-muted); max-width: 32ch; }
/* quantas fotos e vídeos a cena tem (main.js) */
.scene__count {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 10px 10px 10px 0;
  background: rgba(11, 13, 26, .74); color: var(--on-ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
}
.scene__count svg { color: var(--sun); }
/* brinquedos agrupados (Games, Realidade virtual): o que tem dentro */
.scene__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; max-width: 34ch; }
.scene__list li {
  padding: 4px 9px; border-radius: 8px 8px 8px 0;
  font-size: 12.5px; font-weight: 600; color: var(--on-ink);
  box-shadow: inset 0 0 0 1px rgba(245, 243, 238, .22);
}
.space__end { flex: 0 0 auto; align-self: center; width: min(460px, 84vw); padding: 0 clamp(10px, 4vw, 60px); }
.space__end .lede { margin: 16px 0 28px; }

.filmstrip {
  height: 14px; flex: 0 0 auto;
  background-image: linear-gradient(90deg, rgba(245, 243, 238, .16) 0 14px, transparent 14px 36px);
  background-size: 36px 14px;
  background-position-x: var(--strip, 0px);
}
.space__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; height: 2px; background: rgba(245, 243, 238, .12); }
.space__progress i { display: block; height: 100%; background: var(--sun); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }

/* sem trilho fixo: celular / movimento reduzido */
.space.is-native .space__pin { position: relative; height: auto; padding: clamp(80px, 12vh, 120px) 0; }
.space.is-native .space__track {
  width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  align-items: flex-start; padding-bottom: 8px; transform: none !important;
}
.space.is-native .space__track::-webkit-scrollbar { display: none; }
.space.is-native .space__track > * { scroll-snap-align: start; }
.space.is-native .scene { width: min(76vw, 340px); }
.space.is-native .space__intro, .space.is-native .space__end { align-self: center; }
.space.is-native .space__progress { display: none; }
.space__hint--swipe, .space.is-native .space__hint--scroll { display: none; }
.space.is-native .space__hint--swipe { display: block; }

/* ==========================================================================
   PIXEL EDGE — transição quadriculada entre seções
   ========================================================================== */
.pixel-edge { position: relative; height: 0; z-index: 2; }
.pixel-edge .px-row {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end;
  pointer-events: none;
}
.pixel-edge .px-row i { display: block; flex: 1 0 0; }

/* ==========================================================================
   FESTAS — cartões empilhados
   ========================================================================== */
.parties { background: var(--paper); color: var(--ink); padding: clamp(100px, 14vh, 170px) 0 clamp(60px, 10vh, 120px); }
.parties__head { margin-bottom: clamp(40px, 7vh, 80px); }
.stack { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.pcard {
  --cover: 0;
  position: sticky; top: calc(var(--header-h) + 12px + var(--i) * 16px);
  min-height: min(76vh, 700px);
  margin-bottom: 7vh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: stretch;
  background: var(--c); color: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--cover) * .06));
  filter: brightness(calc(1 - var(--cover) * .3));
}
.pcard:last-child { margin-bottom: 0; }
.pcard__text { padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; }
.pcard__num { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; opacity: .8; margin-bottom: auto; padding-bottom: 28px; }
.pcard h3 { font-size: clamp(2.8rem, 6vw, 5.8rem); font-weight: 900; line-height: .86; letter-spacing: -.055em; text-transform: uppercase; margin-bottom: 18px; }
.pcard__lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 700; margin-bottom: 12px; }
.pcard__desc { font-size: 1.02rem; line-height: 1.5; max-width: 40ch; opacity: .9; margin-bottom: 32px; }
.pcard__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.pcard__link { font-weight: 700; text-decoration: none; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; }
.pcard__link:hover { background-size: 0 2px; background-position: 100% 100%; transition: background-size .35s var(--ease); }
.pcard--dark { color: var(--ink); }
.pcard--dark .pcard__art::before { background-image: conic-gradient(rgba(255, 255, 255, .16) 25%, transparent 0 50%, rgba(255, 255, 255, .16) 0 75%, transparent 0); }
.ticks { display: grid; gap: 10px; margin-bottom: 32px; }
.ticks--cols { grid-template-columns: repeat(2, minmax(0, auto)); column-gap: 28px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-size: 1rem; line-height: 1.35; }
.ticks li::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; background: currentColor; border-radius: 2px 2px 2px 0; transform: translateY(-1px); }
.pcard__art { position: relative; display: grid; place-items: center; padding: 24px; }
.pcard__art::before { /* xadrez da marca ao fundo da arte */
  content: ""; position: absolute; inset: 0;
  background-image: conic-gradient(rgba(255, 255, 255, .1) 25%, transparent 0 50%, rgba(255, 255, 255, .1) 0 75%, transparent 0);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.pcard__art img {
  position: relative; width: 100%; max-width: 520px; max-height: 64vh; object-fit: contain;
  transform: translateY(var(--float, 0px));
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .25));
}

/* ==========================================================================
   TEMAS — letreiros
   ========================================================================== */
.themes { background: var(--blue); color: #fff; padding: clamp(100px, 14vh, 170px) 0 clamp(80px, 12vh, 140px); overflow: hidden; }
.themes .label { color: rgba(255, 255, 255, .75); }
.themes .lede { color: rgba(255, 255, 255, .78); }
.themes__head {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px clamp(32px, 6vw, 96px); align-items: end;
  margin-bottom: clamp(40px, 7vh, 80px);
}
.themes__head .display { margin-bottom: 20px; }
/* vídeos de decorações reais, um depois do outro (main.js) */
.reel {
  position: relative; justify-self: end; width: min(100%, 330px); aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: var(--r-lg); box-shadow: 10px 10px 0 var(--sun); background: var(--ink);
}
.reel video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s var(--ease);
}
.reel video.is-on { opacity: 1; }
.reel__label {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  padding: 7px 12px; border-radius: 12px 12px 12px 0;
  background: var(--ink); color: var(--sun);
  font-size: 14px; font-weight: 800;
}
.reel__label::before { content: "Tema · "; color: var(--on-ink-muted); font-weight: 600; }
.reel__dots { position: absolute; right: 14px; top: 14px; z-index: 1; display: flex; gap: 6px; }
.dots button {
  width: 12px; height: 12px; padding: 0; border: 0; cursor: pointer;
  border-radius: 3px 3px 3px 0; background: rgba(245, 243, 238, .5);
  transition: background-color .2s, transform .2s;
}
.dots button[aria-current="true"] { background: var(--sun); transform: scale(1.2); }
.themes__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: clamp(36px, 6vh, 64px); }
.themes__foot .themes__note { margin-top: 0; }
.marquee {
  white-space: nowrap; overflow: hidden;
  font-size: clamp(2.2rem, 6.2vw, 6rem); font-weight: 900; line-height: 1.1; letter-spacing: -.05em; text-transform: uppercase;
}
.marquee + .marquee { margin-top: .2em; }
.marquee__row { display: inline-flex; align-items: center; will-change: transform; }
.marquee__row > * { flex: 0 0 auto; }
.marquee__row span { padding: 0 .12em; }
.marquee__pic {
  width: 1.15em; height: 1.15em; margin: 0 .3em; object-fit: cover;
  border-radius: .2em .2em .2em 0; box-shadow: .07em .07em 0 var(--sun);
}
.marquee--outline .marquee__pic { box-shadow: .07em .07em 0 var(--pink); }
.marquee--outline {
  /* a Montserrat variável tem contornos que se cruzam por dentro das letras; com o traço
     pintado antes e o preenchimento na cor do fundo por cima, só o contorno de fora aparece */
  color: var(--blue);
  -webkit-text-stroke: clamp(3px, .5vw, 6px) var(--sun);
  paint-order: stroke fill;
}
.star {
  display: inline-block; width: .42em; height: .42em; margin: 0 .22em;
  background: var(--sun);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.marquee--outline .star { background: var(--pink); }
.themes__note { margin-top: clamp(36px, 6vh, 64px); font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 600; }
.themes__note a { color: var(--sun); text-underline-offset: 5px; }

/* ==========================================================================
   LOCALIZAÇÃO
   ========================================================================== */
.place { background: var(--paper); color: var(--ink); padding: clamp(100px, 14vh, 170px) 0; }
.place .lede, .food .lede { color: var(--on-paper-muted); }
.place .display em, .food .display em { color: var(--pink); }
.place__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px clamp(40px, 6vw, 96px); align-items: center;
}
.place .display { margin-bottom: 20px; }
.place .lede { max-width: 34ch; }
.place__addr {
  display: flex; align-items: center; gap: 18px;
  margin: clamp(28px, 4vh, 40px) 0;
  font-style: normal;
}
.place__icon {
  flex: 0 0 auto; width: 60px; height: 60px; display: grid; place-items: center;
  background: var(--cyan); border-radius: var(--r-sm);
}
.place__icon img { width: 30px; height: auto; }
.place__street {
  display: grid; gap: 4px;
  font-weight: 800; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.15; letter-spacing: -.02em;
}
.place__street small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--on-paper-muted); }
.place__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* mapa: parado, em tons de cinza, com o pino da Usina por cima.
   --crop esconde o cartão do Google no topo; o rodapé de créditos continua visível. */
.place__map {
  --crop: 92px;
  position: relative; aspect-ratio: 5 / 4; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); background: var(--paper-2);
  box-shadow: 10px 10px 0 var(--cyan);
}
.place__map iframe {
  position: absolute; left: 0; top: calc(var(--crop) * -1); width: 100%; height: calc(100% + var(--crop));
  border: 0; pointer-events: none;
  filter: grayscale(1) contrast(1.06) brightness(1.04);
}
.place__pin {
  position: absolute; left: 50%; top: calc(50% - var(--crop) / 2); z-index: 1;
  width: 46px; height: auto; transform: translate(-50%, -97%);
  filter: drop-shadow(0 8px 10px rgba(11, 13, 26, .35));
  pointer-events: none;
}
.place__open { position: absolute; inset: 0; z-index: 2; border-radius: inherit; text-decoration: none; } /* o mapa todo abre o Maps */
.place__chip {
  position: absolute; left: 16px; top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px 12px 12px 0;
  background: var(--ink); color: var(--on-ink);
  font-size: 14px; font-weight: 700;
  transition: background-color .2s, color .2s;
}
.place__open:hover .place__chip { background: var(--sun); color: var(--ink); }
.place__open:focus-visible { outline-offset: -6px; }

/* ==========================================================================
   GASTRONOMIA
   ========================================================================== */
.food { background: var(--paper); color: var(--ink); padding: clamp(100px, 14vh, 170px) 0; }
.food .display { margin-bottom: clamp(36px, 6vh, 64px); }
.food__card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: stretch;
  background: var(--orange); color: var(--ink);
  border-radius: var(--r-lg); overflow: hidden;
}
.food__text { padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; }
.food__text > img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 28px; }
.food__card h3 { font-size: clamp(2.4rem, 5vw, 4.8rem); font-weight: 900; line-height: .88; letter-spacing: -.05em; text-transform: uppercase; margin-bottom: 18px; }
.food__lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 600; line-height: 1.45; max-width: 34ch; margin-bottom: 32px; }
/* fotos reais dos pratos, trocando sozinhas (main.js) */
.food__fotos {
  position: relative; min-height: 440px; margin: clamp(16px, 2.4vw, 32px);
  border-radius: var(--r-md); overflow: hidden; background: var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.food__fotos figure { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.food__fotos figure.is-on { opacity: 1; }
.food__fotos img { width: 100%; height: 100%; object-fit: cover; }
.food__cap {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  padding: 8px 13px; border-radius: 12px 12px 12px 0;
  background: var(--ink); color: var(--sun); font-size: 15px; font-weight: 800;
}
.food__cap:empty { display: none; }
.food__dots { position: absolute; right: 14px; bottom: 20px; z-index: 1; display: flex; gap: 6px; }

/* ==========================================================================
   EQUIPE
   ========================================================================== */
.team { background: var(--ink); padding: clamp(100px, 14vh, 170px) 0; }
.team__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center; }
.team .display { margin-bottom: 22px; }
.team .pix i { background: var(--ink); }
.dgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dtile {
  position: relative; overflow: hidden;
  min-height: clamp(340px, 30vw, 440px);
  padding: clamp(22px, 2.2vw, 32px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: var(--c); color: #fff;
  border-radius: var(--r-md);
}
.dtile > img { width: 64px; height: 64px; object-fit: contain; }
.dtile h3 { font-size: clamp(2rem, 3vw, 3rem); font-weight: 900; line-height: .88; letter-spacing: -.04em; text-transform: uppercase; margin-bottom: 14px; }
.dtile p { font-size: 15px; line-height: 1.45; max-width: 30ch; }
.pix { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-columns: repeat(6, 1fr); pointer-events: none; }
.pix i { background: var(--paper); transition: opacity .01s linear var(--d, 0s); }
.dtile.is-in .pix i, .vtile.is-in .pix i { opacity: 0; }

/* vídeos da equipe: tocam sem som quando aparecem; o clique abre maior */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vtile {
  position: relative; display: block; overflow: hidden; aspect-ratio: 5 / 6;
  padding: 0; border: 0; cursor: pointer; text-align: left; font: inherit;
  background: var(--c); color: #fff;
  border-radius: var(--r-md);
  transition: translate .35s var(--ease), box-shadow .35s var(--ease);
}
.vtile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.vtile::after { /* sombra embaixo para o texto */
  content: ""; position: absolute; inset: 40% 0 0; z-index: 1;
  background: linear-gradient(transparent, rgba(11, 13, 26, .86));
}
.vtile:hover { translate: -4px -4px; box-shadow: 6px 6px 0 var(--c); }
.vtile:hover video { scale: 1.04; }
.vtile__tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 6px 10px; border-radius: 10px 10px 10px 0;
  background: var(--c); color: #fff;
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
}
.vtile__txt {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
  font-size: 15px; font-weight: 600; line-height: 1.35; text-wrap: pretty;
}
.team .vtile .pix i { background: var(--ink); }

/* ==========================================================================
   DEPOIMENTOS
   ========================================================================== */
.reviews { background: var(--green); color: #fff; padding: clamp(100px, 14vh, 170px) 0; }
.reviews .label { color: rgba(255, 255, 255, .82); }
.reviews .lede { color: rgba(255, 255, 255, .88); }
.reviews .display { margin-bottom: 20px; }
.reviews .display em { color: var(--ink); }
.reviews__head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 36px clamp(32px, 6vw, 96px); align-items: end;
  margin-bottom: clamp(40px, 7vh, 72px);
}
.score {
  justify-self: end; width: min(100%, 380px);
  display: grid; gap: 10px; padding: 26px 28px;
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-lg); box-shadow: 10px 10px 0 var(--sun);
}
.score__stars, .review__stars { color: var(--orange); letter-spacing: .12em; }
.score__stars { font-size: 1.9rem; line-height: 1; }
.score__num { font-size: 1rem; opacity: .9; }
.score__num b { font-size: 1.6rem; font-weight: 900; margin-right: .1em; }
.score__title { font-size: clamp(1.25rem, 1.7vw, 1.55rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 2.4vw, 34px);
  background: #fff; color: var(--ink); border-radius: var(--r-md);
}
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.5; flex: 1; }
.review figcaption { display: grid; gap: 2px; font-size: 14px; color: var(--on-paper-muted); }
.review figcaption b { color: var(--ink); font-size: 15px; }
.review--pend { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px rgba(11, 13, 26, .28); }
.review--pend blockquote { color: var(--on-paper-muted); font-style: italic; }
.review--pend::before {
  content: "Exemplo"; position: absolute; right: 16px; top: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-paper-muted);
}
.reviews__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(32px, 5vh, 48px); }

/* conteúdo que ainda falta a Usina mandar: apague o bloco quando chegar */
.pend {
  display: block; padding: 12px 14px;
  border: 1.5px dashed currentColor; border-radius: 12px 12px 12px 0;
  font-family: var(--mono); font-size: 12px; line-height: 1.45; letter-spacing: .02em;
  opacity: .78;
}
.pend::before { content: "Aguardando a Usina · "; font-weight: 700; }

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contact { background: var(--ink); padding: clamp(100px, 14vh, 170px) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 100px); align-items: start; }
.contact .display { margin-bottom: 22px; font-size: clamp(2.3rem, 4.6vw, 4.6rem); }
.contact__list { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid rgba(245, 243, 238, .14); }
.contact__list > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(245, 243, 238, .14); }
.contact__list dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-muted); padding-top: 3px; }
.contact__list a { font-weight: 600; text-decoration: none; background: linear-gradient(var(--sun), var(--sun)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.contact__list a:hover { background-size: 100% 2px; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: clamp(22px, 3vw, 40px);
  background: var(--ink-2);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px rgba(245, 243, 238, .08);
}
.field { grid-column: 1 / -1; display: grid; gap: 8px; }
.field--half { grid-column: span 1; }
.field label { font-size: 13px; font-weight: 600; color: var(--on-ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 500 16px/1.3 var(--font); color: var(--on-ink);
  background: rgba(245, 243, 238, .05);
  border: 1.5px solid rgba(245, 243, 238, .14);
  border-radius: 12px 12px 12px 0;
  transition: border-color .2s, background-color .2s;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245, 243, 238, .35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun); background: rgba(245, 243, 238, .08); }
.field [aria-invalid="true"] { border-color: #FF4FB0; }
.form .btn { grid-column: 1 / -1; margin-top: 6px; }
.form__note { grid-column: 1 / -1; font-size: 13px; color: var(--on-ink-muted); text-align: center; }
.form__error { grid-column: 1 / -1; font-size: 14px; color: #FF7CC4; text-align: center; font-weight: 600; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; background: var(--ink); padding: 0 0 28px; }
.footer::before { /* faixa das 7 cores, como no guia da marca */
  content: ""; display: block; height: 12px; margin-bottom: clamp(56px, 9vh, 100px);
  background: linear-gradient(90deg,
    var(--blue) 0 14.28%, var(--pink) 0 28.57%, var(--orange) 0 42.85%, var(--cyan) 0 57.14%,
    var(--sun) 0 71.42%, var(--purple) 0 85.71%, var(--green) 0);
}
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.footer__logo { width: min(100%, 520px); }
.footer__nav { display: grid; gap: 10px; }
.footer__nav a, .footer__addr a { text-decoration: none; font-weight: 600; }
.footer__nav a:hover, .footer__addr a:hover { color: var(--sun); }
.footer__addr { font-style: normal; color: var(--on-ink-muted); line-height: 1.7; }
.footer__addr a { color: var(--on-ink); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: clamp(56px, 9vh, 100px); padding-top: 22px; border-top: 1px solid rgba(245, 243, 238, .12);
  font-size: 13px; color: var(--on-ink-muted);
}

/* botões flutuantes: Instagram e WhatsApp */
.fabs {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; gap: 10px;
  transform: translateY(140%); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .3s;
}
.fabs.is-on { transform: none; opacity: 1; pointer-events: auto; }
.fab {
  width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--c); color: #fff; border-radius: 18px 18px 18px 0;
  box-shadow: 4px 4px 0 var(--ink), 0 10px 30px rgba(0, 0, 0, .3);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.fab:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink), 0 10px 30px rgba(0, 0, 0, .3); }
.fab--wa { --c: var(--green); }
.fab--ig { --c: var(--pink); }

/* ==========================================================================
   NOSSAS OUTRAS CASAS
   ========================================================================== */
.houses { background: var(--ink); padding: 0 0 clamp(90px, 12vh, 140px); }
.houses .display { margin-bottom: clamp(32px, 5vh, 56px); max-width: 18ch; }
.houses__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.house {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: clamp(24px, 3vw, 40px);
  background: #fff; color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 8px 8px 0 var(--c);
}
.house__logo { width: auto; height: clamp(64px, 7vw, 92px); margin-bottom: 14px; }
.house__slogan { font-weight: 700; font-style: italic; font-size: 1.1rem; }
.house__addr { color: var(--on-paper-muted); font-size: 15px; }
.house__links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; }
.house__ig { font-weight: 700; text-decoration: none; background: linear-gradient(var(--c), var(--c)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; }
.house__ig:hover { color: var(--c); }

/* ==========================================================================
   JANELA — vídeo de apresentação e detalhe dos brinquedos
   ========================================================================== */
.dialog {
  width: min(1040px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px);
  padding: 0; border: 0; background: transparent; color: var(--on-ink); overflow: visible;
}
.dialog::backdrop { background: rgba(11, 13, 26, .84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog__box {
  position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  max-height: calc(100svh - 32px); overflow: hidden;
  background: var(--ink-2); border-radius: var(--r-lg);
  box-shadow: 10px 10px 0 var(--sun);
}
.dialog[open] .dialog__box { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.dialog__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 14px 14px 14px 0;
  background: var(--paper); color: var(--ink);
}
.dialog__close:hover { background: var(--sun); }
.dialog__media { position: relative; min-height: 0; background: #000; display: grid; }
.dialog__media img, .dialog__media video { width: 100%; height: 100%; max-height: calc(100svh - 32px); object-fit: cover; }
.dialog__media .scene__img { aspect-ratio: auto; margin: 0; border-radius: 0; height: 100%; min-height: 320px; }
.dialog__media .scene__img::after { content: none; }
.dialog__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 56px); overflow-y: auto; }
.dialog__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.dialog__title { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; line-height: .98; letter-spacing: -.04em; }
.dialog__text { color: var(--on-ink-muted); max-width: 40ch; margin-bottom: 12px; }
.dialog__text:empty { display: none; }
.dialog__extra:empty, .dialog__media:empty { display: none; }
.dialog__extra { display: grid; gap: 18px; width: 100%; margin-bottom: 8px; }
.dialog__cta[hidden] { display: none; }
/* modo vídeo: o filme ocupa a largura toda */
.dialog[data-modo="video"] .dialog__box { grid-template-columns: minmax(0, 1fr); }
.dialog[data-modo="video"] .dialog__media video { aspect-ratio: 16 / 9; height: auto; max-height: calc(100svh - 200px); object-fit: contain; }
.dialog[data-modo="video"] .dialog__media video.is-retrato { aspect-ratio: 9 / 16; max-height: calc(100svh - 160px); }
.dialog[data-modo="video"] .dialog__body { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 20px clamp(20px, 3vw, 32px); }
.dialog[data-modo="video"] .dialog__eyebrow { display: none; }
.dialog[data-modo="video"] .dialog__title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.dialog[data-modo="video"]:has(.is-retrato) { width: min(520px, calc(100vw - 32px)); }
.dialog[data-modo="video"]:has(.is-retrato) .dialog__title { font-size: 1.3rem; }
.dialog[data-modo="video"] .dialog__cta { display: none; }
html.has-dialog { overflow: hidden; }

/* modo brinquedo: galeria de fotos e vídeos à esquerda, texto à direita */
.dialog[data-modo="brinquedo"] .dialog__box { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.dialog[data-modo="brinquedo"] .dialog__title { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.galeria { position: relative; height: auto; min-height: min(78svh, 680px); background: #000; overflow: hidden; touch-action: pan-y; }
.galeria figure { position: absolute; inset: 0; display: grid; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.galeria figure.is-on { opacity: 1; visibility: visible; }
.galeria figure::before { /* a mesma foto, desfocada, preenche as sobras */
  content: ""; position: absolute; inset: -30px;
  background: var(--bg, none) center / cover; filter: blur(26px) brightness(.5);
}
/* posição absoluta: no Safari, height: 100% dentro da figure não pegava e a foto saía cortada */
.dialog__media .galeria img, .dialog__media .galeria video {
  position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain;
}
.galeria__cap, .galeria__count {
  position: absolute; z-index: 2; border-radius: 12px 12px 12px 0;
  background: rgba(11, 13, 26, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.galeria__cap { left: 14px; bottom: 14px; padding: 8px 13px; color: var(--sun); font-size: 15px; font-weight: 800; }
.galeria__cap:empty { display: none; }
.galeria__count { left: 14px; top: 14px; padding: 6px 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.galeria__nav {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 14px 14px 14px 0; background: var(--paper); color: var(--ink);
  transition: background-color .2s;
}
.galeria__nav:hover { background: var(--sun); }
.galeria__nav--prev { left: 14px; }
.galeria__nav--next { right: 14px; }
.galeria__nav[hidden] { display: none; }

/* chips: itens de um brinquedo agrupado (pulam para a foto) e lista de temas */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: contents; }
.chips button, .chips--static li {
  display: inline-block; padding: 8px 13px; border: 0; border-radius: 10px 10px 10px 0;
  background: rgba(245, 243, 238, .08); color: var(--on-ink);
  box-shadow: inset 0 0 0 1px rgba(245, 243, 238, .2);
  font: 600 14px/1.2 var(--font);
}
.chips button { cursor: pointer; transition: background-color .2s, color .2s; }
.chips button:hover { background: rgba(245, 243, 238, .16); }
.chips button[aria-pressed="true"] { background: var(--sun); color: var(--ink); box-shadow: none; }
.chips button:disabled { cursor: default; opacity: .5; }
.chips button:disabled::after { content: " · em breve"; font-weight: 400; }

/* modo painel: só texto (cardápios, temas, pacotes) */
.dialog[data-modo="painel"] { width: min(760px, calc(100vw - 32px)); }
.dialog[data-modo="painel"] .dialog__box { grid-template-columns: minmax(0, 1fr); }
.dialog[data-modo="painel"] .dialog__body { justify-content: flex-start; padding-top: clamp(32px, 5vw, 56px); padding-right: clamp(64px, 8vw, 80px); }
.painel__lead { color: var(--on-ink-muted); font-size: 1.05rem; max-width: 52ch; }
.painel__fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.painel__fotos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px 14px 14px 0; }
.painel__nota { color: var(--on-ink-muted); font-size: .9rem; max-width: 60ch; }
.chips--temas { gap: 6px; }
.chips--temas li { padding: 6px 11px; font-size: 13px; }
/* cardápio: grupos com título e lista de itens */
.cardapio { display: grid; gap: 6px; }
.cardapio h4 { margin-top: 14px; color: var(--sun); font-size: .95rem; font-weight: 800; letter-spacing: .02em; }
.cardapio h4 small { color: var(--on-ink-muted); font-size: .85em; font-weight: 500; }
.cardapio p, .cardapio li { color: var(--on-ink-muted); font-size: .98rem; line-height: 1.45; }
.cardapio ul { display: grid; gap: 4px; padding-left: 1.1em; list-style: square; }
.cardapio li::marker { color: var(--sun); }
.cardapio li b { color: var(--on-ink); font-weight: 700; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs__btn {
  padding: 10px 16px; border: 0; cursor: pointer; border-radius: 12px 12px 12px 0;
  background: rgba(245, 243, 238, .08); color: var(--on-ink); font: 700 15px/1.2 var(--font);
  box-shadow: inset 0 0 0 1px rgba(245, 243, 238, .2);
}
.tabs__btn[aria-selected="true"] { background: var(--sun); color: var(--ink); box-shadow: none; }
.tabs__panel { display: grid; gap: 14px; }
.tabs__panel[hidden] { display: none; }
.tabs__panel h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.tabela { overflow-x: auto; }
.tabela table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabela caption { text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); padding-bottom: 10px; }
.tabela th, .tabela td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(245, 243, 238, .14); }
.tabela thead th { font-size: 13px; color: var(--on-ink-muted); font-weight: 600; }
.tabela tbody th { font-weight: 800; }
.tabela td { color: var(--on-ink-muted); }

/* revelações simples */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1100px) {
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews__grid .review:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .about__cols, .contact__grid, .place__grid, .team__grid, .food__card, .houses__grid, .reviews__head { grid-template-columns: 1fr; }
  .about__cue { justify-self: start; }
  .themes__head { grid-template-columns: 1fr; }
  .reel { justify-self: start; width: min(72%, 300px); }
  .score { justify-self: start; }
  .food__fotos { order: -1; min-height: 0; aspect-ratio: 4 / 3; margin: 16px 16px 0; }
  .dialog__box,
  .dialog[data-modo="brinquedo"] .dialog__box { grid-template-columns: 1fr; overflow-y: auto; }
  .dialog__media img { max-height: 48svh; }
  .galeria { min-height: 56svh; }
  .pcard { grid-template-columns: minmax(0, 1fr); min-height: 0; position: relative; top: auto; transform: none; filter: none; margin-bottom: 20px; }
  .pcard__art { order: -1; padding: 24px 24px 0; }
  .pcard__art img { max-height: 42vh; width: auto; max-width: 100%; }
  .pcard__num { margin-bottom: 0; padding-bottom: 16px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; }
  .hero__outro { flex-direction: column; align-items: flex-start; }
  .hud__pill:first-child { display: none; }
}
@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .brand img { width: 104px; }
  .dgrid { grid-template-columns: 1fr; }
  .dtile { min-height: 300px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgrid { gap: 10px; }
  .vtile__txt { font-size: 13px; left: 12px; right: 12px; bottom: 12px; }
  .vtile__tag { font-size: 11px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .painel__fotos { gap: 6px; }
  .galeria__nav { width: 40px; height: 40px; }
  .place__map { aspect-ratio: 1; }
  .fab { width: 52px; height: 52px; }
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .contact__list > div { grid-template-columns: 1fr; gap: 4px; }
  .ticks--cols { grid-template-columns: 1fr; }
  .hero__ctas, .hero__ctas .btn { width: 100%; }
  .hero__captions { bottom: 88px; }
}

/* ==========================================================================
   MOVIMENTO REDUZIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: 100vh; height: 100svh; }
  .hero__cue i::after, .loader__pixels i, .hud__rec, .space__hint span, .about__cue span { animation: none; }
  .reel video, .food__fotos figure, .galeria figure { transition: none; }
  .dialog[open] .dialog__box { animation: none; }
  .reveal, .pillar { opacity: 1; transform: none; transition: none; }
  .manifesto .w { opacity: 1 !important; }
  .pcard { position: relative; top: auto; transform: none; filter: none; }
  .pix { display: none; }
}
