/* ILPI — experiência cinematográfica (scroll-driven) */

:root {
  color-scheme: light;

  --paper: #faf6ef;
  --elevated: #fffdf9;
  --ink: #2a2520;
  --ink-muted: #6b6258;
  --accent: #5b7b6a;
  --accent-strong: #466556;
  --accent-soft: rgba(91, 123, 106, 0.14);
  --blush: #e8ddd4;
  --dark: #1c1712;
  --light: #f8f6f2;
  --light-muted: rgba(248, 246, 242, 0.78);

  --radius-sm: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 12px 32px rgba(42, 37, 32, 0.06);
  --shadow-float: 0 24px 56px rgba(42, 37, 32, 0.1);

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  --step-2: clamp(1.8rem, 1.4rem + 1.8vw, 3rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.5vw, 4.5rem);
  --step-hero: clamp(2.6rem, 1.5rem + 5vw, 5.5rem);

  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: min(1080px, calc(100% - 2.5rem));
  --container-pad: 1.25rem;
}

@media (max-width: 767px) {
  :root {
    --header-h: 56px;
    --container-pad: 1rem;
    --container: calc(100% - 2rem);
    --step-hero: clamp(1.85rem, 7vw + 0.5rem, 2.75rem);
    --step-2: clamp(1.45rem, 5vw + 0.4rem, 2rem);
    --step-1: clamp(1.05rem, 3.5vw + 0.35rem, 1.35rem);
    --step-0: 0.95rem;
  }
}

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

html { scroll-behavior: auto; }

body.film-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.film-body.is-ready .film-stage { opacity: 1; }

img { display: block; max-width: 100%; }
em { font-style: italic; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--dark);
  color: var(--light);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ——— Progress & chrome ——— */

.film-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 2px;
  background: rgba(248, 246, 242, 0.08);
}

.film-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), #8fb39e);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

.film-chrome {
  position: fixed;
  bottom: clamp(1.25rem, 3vw, 2rem);
  left: clamp(1.25rem, 3vw, 2rem);
  right: clamp(1.25rem, 3vw, 2rem);
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  color: var(--light);
}

.film-chrome__chapter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.film-skip {
  position: fixed;
  bottom: clamp(1.25rem, 3vw, 2rem);
  right: clamp(1.25rem, 3vw, 2rem);
  z-index: 70;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 246, 242, 0.35);
  background: rgba(28, 23, 18, 0.55);
  backdrop-filter: blur(8px);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s var(--ease), background 0.2s, border-color 0.2s;
}

.film-skip:hover {
  background: rgba(28, 23, 18, 0.8);
  border-color: rgba(248, 246, 242, 0.6);
}

.film-skip.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ——— Header ——— */

.film-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 3vw, 2rem);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.film-header.is-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.film-header.is-finale {
  mix-blend-mode: normal;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 37, 32, 0.06);
}

.film-header.is-finale .brand { color: var(--ink); }
.film-header.is-finale .brand__mark { color: var(--accent); }

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--light);
}

.brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.film-header.is-finale .brand__logo {
  filter: none;
}

.brand__mark { color: #8fb39e; font-size: 1rem; flex-shrink: 0; }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand__legal {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* ——— Fixed stage ——— */

.film-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  perspective: 1200px;
  perspective-origin: 50% 45%;
  contain: strict;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.film-stage__tilt {
  position: absolute;
  inset: 0;
  transform: translateZ(0);
}

.film-stage.is-done {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

/* Background layers */
.film-bg {
  position: absolute;
  inset: -5%;
}

.film-bg__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  contain: strict;
}

.film-bg__layer.is-active { opacity: 1; z-index: 1; }

.film-bg__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0) scale(var(--bg-scale, 1.06));
  backface-visibility: hidden;
}

.film-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(28, 23, 18, 0.68) 0%, transparent 70%),
    linear-gradient(180deg, rgba(28, 23, 18, 0.42) 0%, rgba(28, 23, 18, 0.16) 35%, rgba(28, 23, 18, 0.6) 100%);
  pointer-events: none;
}

.film-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

@media (max-width: 768px) {
  .film-grain { display: none; }
}

.film-letterbox {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  height: clamp(0px, 4vh, 48px);
  background: var(--dark);
  pointer-events: none;
}

.film-letterbox--top { top: 0; }
.film-letterbox--bottom { bottom: 0; }

@media (max-width: 768px) {
  .film-letterbox { display: none; }
}

/* Panels */
.film-panels {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) clamp(4rem, 8vh, 6rem);
}

.film-panel {
  grid-area: 1 / 1;
  width: 100%;
  max-width: var(--container);
  opacity: 0;
  visibility: hidden;
  contain: layout style;
  backface-visibility: hidden;
  z-index: 1;
  transition: opacity 0.35s var(--ease);
}

.film-panel.is-active {
  z-index: 2;
}

.panel-inner {
  color: var(--light);
}

.film-finale__copy,
.contact-form {
  opacity: 1;
  transform: none;
  transition: none;
}

.film-finale.is-visible .film-finale__copy,
.film-finale.is-visible .contact-form {
  opacity: 1;
  transform: none;
}

.panel-inner--hero {
  align-self: end;
  padding-bottom: clamp(1rem, 4vh, 3rem);
}

.panel-inner--center {
  text-align: center;
  margin-inline: auto;
  max-width: 38rem;
}

.panel-inner--pillars {
  max-width: 36rem;
}

.panel-inner--gallery {
  width: 100%;
}

/* Typography in panels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.eyebrow--light { color: rgba(143, 179, 158, 0.95); }

.film-title {
  font-size: var(--step-hero);
  margin-bottom: 1.25rem;
}

.film-title__line {
  display: block;
  overflow: hidden;
}

.film-title__line--accent em { color: #b8d4c4; }

.film-lede {
  font-size: var(--step-1);
  color: var(--light-muted);
  max-width: 36ch;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.film-badge {
  display: inline-block;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(248, 246, 242, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 246, 242, 0.85);
}

.film-heading {
  font-size: var(--step-2);
  margin-bottom: 1rem;
}

.film-heading--sm { font-size: var(--step-1); margin-bottom: 1.5rem; }

.film-heading em { color: #b8d4c4; }

.film-copy {
  font-size: var(--step-0);
  color: var(--light-muted);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.film-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-muted);
}

.film-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  color: var(--light);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.2rem;
}

/* Pillars */
.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pillar-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(248, 246, 242, 0.12);
  opacity: 0.35;
  transform: translate3d(-12px, 0, -40px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.pillar-item.is-lit {
  opacity: 1;
  transform: translate3d(8px, 0, 20px);
}

.pillar-item__n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #8fb39e;
  letter-spacing: 0.1em;
}

.pillar-item__t {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.2rem);
}

/* Horizontal reel — carrossel 3D */
.film-reel-scene {
  perspective: 1100px;
  perspective-origin: 50% 40%;
  overflow: visible;
  padding: 1rem 0 2rem;
}

.film-reel {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.film-reel__card {
  flex: 0 0 clamp(240px, 40vw, 360px);
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  backface-visibility: hidden;
  opacity: 0.85;
}

.film-reel__card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.film-reel__card figcaption {
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
}

/* ——— Scroll track ——— */

.film-scroll {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.film-chapter {
  height: 90vh;
}

@media (min-width: 768px) {
  .film-chapter { height: 110vh; }
  .film-chapter[data-chapter="2"] { height: 160vh; }
  .film-chapter[data-chapter="3"] { height: 150vh; }
}

/* ——— Institutional finale ——— */

.inst-wrap {
  width: var(--container);
  margin-inline: auto;
}

.inst-block {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--blush);
}

.inst-block:last-of-type { border-bottom: none; }

.inst-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.inst-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.inst-prose {
  max-width: 62ch;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.inst-prose p { margin: 0 0 1rem; }

.inst-values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}

.inst-values li {
  padding: 0.85rem 1rem;
  background: var(--elevated);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(42, 37, 32, 0.05);
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.inst-values strong { color: var(--accent-strong); }

.inst-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.inst-card {
  padding: 1.35rem 1.25rem;
  background: var(--elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(42, 37, 32, 0.05);
  box-shadow: var(--shadow-card);
}

.inst-card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.inst-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.inst-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 40rem;
}

.inst-steps li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.inst-steps li > span {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.inst-steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.inst-steps p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.inst-faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 48rem;
}

.inst-faq details {
  background: var(--elevated);
  border: 1px solid var(--blush);
  border-radius: var(--radius-sm);
  padding: 0.25rem 1rem;
}

.inst-faq summary {
  cursor: pointer;
  font-weight: 500;
  padding: 0.75rem 0;
  list-style: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.inst-faq summary::-webkit-details-marker { display: none; }

.inst-faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
  margin-top: -0.2rem;
}

.inst-faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}

.inst-faq summary:hover {
  color: var(--accent-strong);
}

.inst-faq p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ——— Team ——— */

.inst-team {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .inst-team { grid-template-columns: repeat(4, 1fr); }
}

.inst-team__card {
  margin: 0;
  background: var(--elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(42, 37, 32, 0.06);
  box-shadow: var(--shadow-card);
}

.inst-team__card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.inst-team__card figcaption {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.inst-team__card strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.inst-team__card span {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ——— Testimonials ——— */

.inst-testimonials {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .inst-testimonials { grid-template-columns: repeat(3, 1fr); }
}

.inst-testimonial {
  margin: 0;
  padding: 1.25rem;
  background: var(--elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(42, 37, 32, 0.06);
  box-shadow: var(--shadow-card);
}

.inst-testimonial::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.inst-testimonial p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
}

.inst-testimonial footer {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ——— Visit hours & social ——— */

.inst-trust-hours,
.inst-social {
  margin-bottom: 1.75rem;
}

.inst-trust-hours__title,
.inst-social__title {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.inst-trust-hours__list {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.inst-trust-hours__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--elevated);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(42, 37, 32, 0.06);
  font-size: 0.9rem;
}

.inst-trust-hours__list strong {
  color: var(--accent-strong);
  min-width: 9rem;
}

.inst-trust-hours__list span {
  color: var(--ink-muted);
}

.inst-trust-hours__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.inst-social__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.inst-social__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--blush);
  background: var(--elevated);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.inst-social__links a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.inst-social__links svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

.inst-contact { padding-bottom: 0; }

.inst-contact-lead {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  max-width: 42ch;
}

.inst-contact .film-finale__inner {
  padding-bottom: 0;
}

.contact-form__sub {
  margin: -0.75rem 0 1.25rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ——— Finale (contact) ——— */

.film-finale {
  position: relative;
  z-index: 5;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(4rem, 10vw, 7rem) 0 0;
  pointer-events: auto;
}

.film-finale__inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}

@media (min-width: 900px) {
  .film-finale__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.section-title {
  font-size: var(--step-2);
  margin-bottom: 1.25rem;
}

.section-title em { color: var(--accent-strong); }

.address {
  font-style: normal;
  font-size: var(--step-1);
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

.contact-links {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-links a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 500;
}

.contact-links a:hover { color: var(--accent); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-float);
}

.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
  background: var(--elevated);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-float);
}

.contact-form__title {
  font-size: var(--step-1);
  margin-bottom: 1.25rem;
}

.field { display: block; margin-bottom: 1rem; }

.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--blush);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-form__privacy {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.btn__icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
  pointer-events: auto;
}

.btn:hover { transform: translateY(-1px); }

.btn--sm { padding: 0.55rem 1rem; font-size: 0.82rem; }
.btn--lg { padding: 0.95rem 1.6rem; }

.btn--accent {
  background: var(--accent);
  color: var(--elevated);
  box-shadow: 0 6px 20px rgba(91, 123, 106, 0.3);
}

.btn--accent:hover { background: var(--accent-strong); color: var(--elevated); }

.btn--light {
  background: var(--elevated);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.btn--outline {
  background: transparent;
  border-color: var(--blush);
  color: var(--ink);
}

/* ——— Footer ——— */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem clamp(1.25rem, 3vw, 2rem) 2.5rem;
  border-top: 1px solid var(--blush);
  font-size: 0.88rem;
  color: var(--ink-muted);
  width: var(--container);
  margin-inline: auto;
}

.site-footer__main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.site-footer__legal {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__note {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.85;
}

.site-footer__cnpj {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.site-footer__cnpj strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.site-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer__social a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
}

.site-footer__social a:hover { color: var(--accent); }

.site-footer__end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
}

.demo-back {
  color: var(--ink-muted);
  text-decoration: none;
}

.demo-back:hover { color: var(--accent-strong); }

body.is-autoplay {
  overflow: hidden;
}

/* ——— Mobile ——— */

@media (max-width: 767px) {
  .film-header {
    padding: 0.65rem var(--container-pad);
    padding-top: max(0.65rem, env(safe-area-inset-top));
    gap: 0.5rem;
  }

  .brand { min-width: 0; flex: 1; }

  .brand__logo {
    width: 36px;
    height: 36px;
  }

  .brand__name { font-size: 0.95rem; }

  .brand__legal { font-size: 0.62rem; }

  .btn--sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .film-chrome {
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    left: var(--container-pad);
    right: var(--container-pad);
  }

  .film-chrome__chapter {
    font-size: 0.68rem;
    max-width: 55%;
    line-height: 1.4;
  }

  .film-skip {
    bottom: max(3rem, calc(2.5rem + env(safe-area-inset-bottom)));
    right: var(--container-pad);
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
  }

  .film-stage {
    perspective: none;
    contain: none;
  }

  .film-panels {
    display: block;
    padding: 0;
    overflow: hidden;
  }

  .film-panel {
    position: absolute;
    inset: calc(var(--header-h) + 0.5rem) var(--container-pad) calc(4.5rem + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
  }

  .film-panel.is-active {
    pointer-events: auto;
  }

  .film-panel[data-panel="1"],
  .film-panel[data-panel="2"],
  .film-panel[data-panel="3"],
  .film-panel[data-panel="4"] {
    justify-content: center;
  }

  .panel-inner {
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 0.25rem;
  }

  .panel-inner--hero {
    justify-content: flex-end;
    padding-bottom: 0.25rem;
  }

  .panel-inner--center {
    text-align: left;
    max-width: none;
  }

  .panel-inner--pillars,
  .panel-inner--gallery {
    max-width: none;
  }

  .eyebrow {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.12em;
  }

  .film-title { margin-bottom: 0.75rem; }

  .film-lede {
    font-size: 1rem;
    max-width: none;
    line-height: 1.5;
  }

  .film-heading { margin-bottom: 0.65rem; }

  .film-heading--sm {
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
  }

  .film-copy {
    font-size: 0.92rem;
    margin-bottom: 1rem;
    line-height: 1.55;
  }

  .film-stats {
    gap: 0.85rem 1.25rem;
    justify-content: flex-start;
    font-size: 0.7rem;
  }

  .film-stats strong { font-size: 1.05rem; }

  .pillar-list { gap: 0; }

  .pillar-item {
    gap: 0.65rem;
    padding: 0.55rem 0;
  }

  .pillar-item__t {
    font-size: 0.92rem;
    line-height: 1.3;
  }

  .film-reel-scene {
    perspective: none;
    overflow: hidden;
    margin: 0 calc(var(--container-pad) * -1);
    padding: 0.5rem var(--container-pad) 1rem;
    width: calc(100% + 2 * var(--container-pad));
  }

  .film-reel__card {
    flex: 0 0 min(78vw, 260px);
  }

  .film-reel__card img {
    aspect-ratio: 4 / 3;
  }

  .btn--lg {
    width: 100%;
    padding: 0.85rem 1.25rem;
  }

  .film-chapter {
    height: 100dvh;
    height: 100svh;
  }

  .film-chapter[data-chapter="2"] { height: 130dvh; height: 130svh; }
  .film-chapter[data-chapter="3"] { height: 115dvh; height: 115svh; }

  .film-finale {
    padding-top: calc(3.5rem + env(safe-area-inset-top));
  }

  .inst-wrap {
    width: 100%;
    padding-inline: var(--container-pad);
  }

  .inst-block {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: clamp(1.45rem, 5vw + 0.4rem, 2rem);
  }

  .inst-grid {
    grid-template-columns: 1fr;
  }

  .inst-contact .film-finale__inner {
    width: 100%;
    padding-inline: 0;
    grid-template-columns: 1fr;
  }

  .address { font-size: 1rem; }

  .site-footer {
    width: 100%;
    padding-inline: var(--container-pad);
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  .field input,
  .field textarea {
    font-size: 16px; /* evita zoom no iOS */
  }
}

/* ——— Reduced motion ——— */

@media (prefers-reduced-motion: reduce) {
  .film-bg__layer img { transform: none !important; }
  .film-chapter { height: auto !important; min-height: 80vh; }
  .film-stage { position: relative; min-height: 100vh; }
  .film-stage.is-done { opacity: 1; visibility: visible; }
  .film-scroll { display: none; }
  .film-panel {
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin-bottom: 4rem;
  }
  .film-panels { position: relative; display: block; padding: 4rem 1.5rem; }
  .film-finale { margin-top: 0; }
  .film-progress, .film-chrome, .film-skip { display: none; }
}
