/* ═══════════════════════════════════════════════════════
   Carpe Diem — Site Institucional
   Mobile-first (390px base — iPhone 14 Pro)
   Colors from designer SVGs: #a03047 (main), #9a344d (icons)
   Font: Lato (corpo), Inter (UI)
   ═══════════════════════════════════════════════════════ */

/* ─── @font-face ─── */
@font-face {
  font-family: 'Mark My Words';
  src: url('../assets/fonts/mark_my_words.otf') format('opentype'),
       url('../assets/fonts/mark_my_words.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── Design Tokens ─── */
:root {
  --cd-bordo: #9a344c;
  --cd-bordo-icon: #9a344d;
  --cd-bordo-overlay: rgba(154, 52, 76, 0.75);
  --cd-bg-cream: #FAF7F2;
  --cd-texto: #1d1d1d;
  --cd-texto-light: #6B6560;
  --cd-white: #FFFFFF;
  --cd-line: rgba(160, 48, 71, 0.4);

  --font-body: 'Lato', -apple-system, sans-serif;
  --font-ui: 'Inter', -apple-system, sans-serif;
  --font-brush: 'Mark My Words', 'Sacramento', cursive;

  --section-padding-x: 32px;
  --max-content: 360px;
  --separator-line-height: 180px;
  --butterfly-size: 61px;
  --icon-line-gap: clamp(14px, 3.6vw, 26px);
  --prototype-text-pad-top: clamp(44px, 7.5vw, 76px);
  --prototype-text-pad-bottom: clamp(18px, 3.5vw, 34px);
  --prototype-caption-gap: clamp(32px, 6vw, 58px);
  --prototype-caption-tail: clamp(24px, 5vw, 48px);
  --prototype-copy-gap: clamp(6px, 1.8vw, 14px);
  --hero-split-y: 70%;
  --header-logo-height: 56px;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ─── Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--cd-texto);
  background-color: var(--cd-bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}


/* ═══════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, transform 0.4s ease;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

/* Hide header on scroll down, show on scroll up */
.header--hidden {
  transform: translateY(-100%);
}

.header__logo {
  display: flex;
  align-items: center;
  height: var(--header-logo-height);
  position: relative;
}

.header__logo-img {
  height: var(--header-logo-height);
  width: auto;
  transition: opacity 0.3s ease;
}

.header__logo-img--white { opacity: 1; }
.header__logo-img--dark { position: absolute; left: 0; top: 0; opacity: 0; }

/* Logo always visible on hero — header--scrolled swaps white→dark */
.header--scrolled .header__logo-img--white { opacity: 0; }
.header--scrolled .header__logo-img--dark { opacity: 1; }

.header__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
}

.header__hamburger-icon {
  width: 28px;
  height: auto;
  transition: opacity 0.3s ease;
}

.header__hamburger-icon--white { opacity: 1; }
.header__hamburger-icon--dark { position: absolute; opacity: 0; }

.header--scrolled .header__hamburger-icon--white { opacity: 0; }
.header--scrolled .header__hamburger-icon--dark { opacity: 1; }


/* ═══════════════════════════════════════════════════════
   S1 — HERO (Stop-Motion)
   Two-tone background — bottle bridges burgundy and cream
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 500px;
  --hero-frame-width: min(68vw, 400px);
  --hero-shadow-offset: min(41.7vw, 245px);
  --hero-shadow-width: min(45vw, 280px);
  --hero-shadow-height: min(7vw, 46px);
  background:
    linear-gradient(
      180deg,
      var(--cd-bordo) 0 var(--hero-split-y),
      var(--cd-bg-cream) var(--hero-split-y) 100%
    );
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__content::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% + var(--hero-shadow-offset) + 2px);
  width: var(--hero-shadow-width);
  height: var(--hero-shadow-height);
  transform: translateX(-38%);
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at 58% 50%,
      rgba(70, 62, 54, 0.24) 0%,
      rgba(70, 62, 54, 0.15) 34%,
      rgba(70, 62, 54, 0.06) 58%,
      rgba(70, 62, 54, 0) 78%
    );
  filter: blur(9px);
  opacity: 0.82;
  pointer-events: none;
  z-index: 1;
}

.hero__frame-img {
  width: var(--hero-frame-width);
  max-width: none;
  height: auto;
  aspect-ratio: 935 / 1498;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero {
    --hero-frame-width: clamp(400px, 52vw, 480px);
    --hero-shadow-offset: clamp(245px, 31.9vw, 294px);
    --hero-shadow-width: clamp(280px, 35vw, 330px);
    --hero-shadow-height: clamp(42px, 5vw, 50px);
  }

  .hero__content::after {
    filter: blur(10px);
  }
}

@media (min-width: 1200px) {
  .hero {
    --hero-frame-width: clamp(460px, 38vw, 520px);
    --hero-shadow-offset: clamp(282px, 23.3vw, 319px);
    --hero-shadow-width: clamp(320px, 27vw, 360px);
    --hero-shadow-height: clamp(46px, 4vw, 54px);
  }

  .hero__content::after {
    top: calc(50% + var(--hero-shadow-offset) + 4px);
  }
}

.hero__frames {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════
   SHARED — Sections & Separators
   ═══════════════════════════════════════════════════════ */
.section {
  position: relative;
  background-color: var(--cd-bg-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--section-padding-x);
  scroll-margin-top: 72px;
}

.hero,
.footer {
  scroll-margin-top: 72px;
}

.separator {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  position: relative;
  z-index: 1;
  min-height: var(--separator-line-height);
}

.separator__line {
  width: 1px;
  height: var(--separator-line-height);
  background-color: var(--cd-bordo);
  transform: scaleY(0);
  transform-origin: top center;
}


/* ═══════════════════════════════════════════════════════
   S2 — TAGLINE
   ═══════════════════════════════════════════════════════ */
.section--tagline {
  margin-top: clamp(-240px, -23vh, -180px);
  padding-top: clamp(24px, 4vh, 44px);
  padding-bottom: clamp(16px, 3vh, 28px);
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
}

.separator--s2-top {
  --separator-line-height: clamp(360px, 38vh, 500px);
  --hero-line-clearance: clamp(64px, 8vh, 96px);
  overflow: visible;
}

.separator--s2-top .separator__line {
  position: absolute;
  bottom: 0;
  height: calc(clamp(410px, 48vh, 520px) - var(--hero-line-clearance));
}

@media (min-width: 768px) {
  .section--tagline {
    margin-top: clamp(-540px, -31vh, -360px);
  }
}

.tagline__titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(68vw, 760px);
  gap: clamp(6px, 1.2vh, 18px);
  padding: clamp(34px, 5vh, 60px) 0 clamp(16px, 3vh, 28px);
}

.tagline__titles--asset {
  width: min(66.25vw, 636px);
  max-width: calc(100vw - (var(--section-padding-x) * 2));
  gap: clamp(2px, 0.7vh, 8px);
}

.tagline__text-img {
  display: block;
  height: auto;
}

.tagline__text-img--brush {
  width: 100%;
}

.tagline__text-img--serif {
  width: min(25.625vw, 246px);
  align-self: flex-end;
  margin-right: clamp(0px, 1.8vw, 18px);
  margin-top: clamp(-28px, -3vw, -10px);
}

.tagline__title--brush {
  font-family: var(--font-brush);
  font-size: clamp(4.6rem, 16vw, 8rem);
  color: var(--cd-bordo);
  line-height: 0.98;
  text-align: left;
  text-transform: none;
  max-width: none;
  width: 100%;
  overflow: visible;
  padding: 0;
}

.tagline__nowrap {
  white-space: nowrap;
}

.tagline__title--serif {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.75rem, 5.2vw, 3rem);
  line-height: 1.18;
  color: var(--cd-texto-light);
  text-align: right;
  max-width: 340px;
  width: min(46vw, 340px);
  align-self: flex-end;
  margin-right: clamp(22px, 9vw, 92px);
}

.tagline__serif-bold {
  font-weight: 700;
  color: var(--cd-texto);
  font-size: 1.12em;
}

.separator--s2-bottom {
  --separator-line-height: clamp(190px, 24vh, 290px);
  margin-top: clamp(-26px, -3vh, -16px);
}

/* Butterfly container — holds 3 SVG frames for scroll-driven stop-motion */
.tagline__butterfly {
  width: var(--butterfly-size);
  height: var(--butterfly-size);
  margin: 8px auto;
  position: relative;
  z-index: 5;
  transform-origin: center center;
}

.separator + .tagline__butterfly {
  margin-top: calc(var(--butterfly-size) * -0.5);
  margin-bottom: 0;
}

.tagline__butterfly + .separator--s2-after {
  --separator-line-height: clamp(140px, 20vh, 180px);
  margin-top: calc(var(--butterfly-size) * -0.5);
}

.butterfly-frame {
  width: var(--butterfly-size);
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  will-change: opacity;
}


/* ═══════════════════════════════════════════════════════
   S3 — ABOUT / MISSÃO
   ═══════════════════════════════════════════════════════ */
.section--about {
  padding: 0;
}

.about__top {
  width: 100%;
  background-color: var(--cd-bg-cream);
  padding: 64px var(--section-padding-x);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.about__top-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--cd-texto);
  text-align: center;
  max-width: var(--max-content);
}

.about__bottom {
  width: 100%;
  position: relative;
  aspect-ratio: 1104 / 1234;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--cd-bordo-overlay);
  z-index: 1;
}

.about__bottom-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-content);
  text-align: center;
  padding: 56px var(--section-padding-x);
}

.about__bottom-content p {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--cd-white);
}

.about__bottom-content strong {
  font-weight: 700;
  font-style: italic;
}


/* ═══════════════════════════════════════════════════════
   S4-S6 — PILLARS
   ═══════════════════════════════════════════════════════ */
.section--pillar {
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
}

.pillar__content {
  display: flex;
  justify-content: center;
  padding: var(--prototype-text-pad-top) 0 var(--prototype-text-pad-bottom);
}

.pillar__content--asset {
  align-items: center;
}

.pillar__text-img {
  --text-asset-vw: 55vw;
  --text-asset-max: 524px;
  width: min(var(--text-asset-vw), var(--text-asset-max));
  max-width: calc(100vw - (var(--section-padding-x) * 2));
  height: auto;
}

#pillar-1 .pillar__text-img { --text-asset-vw: 54.6vw; --text-asset-max: 524px; }
#pillar-2 .pillar__text-img { --text-asset-vw: 59vw; --text-asset-max: 566px; }
#pillar-3 .pillar__text-img {
  --text-asset-vw: 82vw;
  --text-asset-max: 880px;
  max-width: calc(100vw - 64px);
}
#pillar-4 .pillar__text-img { --text-asset-vw: 59vw; --text-asset-max: 566px; }

.pillar__content--text {
  flex-direction: column;
  align-items: center;
  padding: var(--prototype-text-pad-top) var(--section-padding-x) var(--prototype-text-pad-bottom);
  max-width: 480px;
  margin: 0 auto;
  gap: var(--prototype-copy-gap);
  text-align: center;
  overflow: visible;
}

.pillar__intro,
.pillar__outro {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cd-texto);
  text-align: center;
}

.pillar__brush {
  font-family: var(--font-brush);
  font-size: 3.8rem;
  line-height: 1.2;
  color: var(--cd-bordo);
  margin: 16px 0;
  text-transform: lowercase;
  text-align: center;
  overflow: visible;
  padding: 8px 20px;
}

#pillar-2 .pillar__brush { font-size: 3.5rem; }
#pillar-3 .pillar__brush { font-size: 3.2rem; line-height: 1.2; }

.pillar__brush--counter {
  font-size: 4rem;
  padding: 8px 20px;
}

.pillar__brush--sub {
  font-family: var(--font-brush);
  font-size: 3.2rem;
  color: var(--cd-bordo);
  text-indent: 2em;
  text-transform: lowercase;
  padding: 4px 20px;
}

#pillar-4 .pillar__content--text {
  padding-top: clamp(38px, 6vw, 64px);
  gap: 0;
}

#pillar-4 .pillar__brush--counter {
  font-size: clamp(4.25rem, 13vw, 5.6rem);
  line-height: 0.95;
  margin: 0;
  padding: 0 20px;
}

#pillar-4 .pillar__brush--sub {
  font-size: clamp(3.4rem, 10vw, 4.4rem);
  line-height: 0.95;
  margin: clamp(-8px, -1.2vw, -4px) 0 clamp(20px, 4vw, 36px);
  padding: 0 20px;
  text-indent: 0;
  transform: translateX(0.22em);
}

#pillar-4 .pillar__outro {
  max-width: 330px;
  line-height: 1.72;
}

#pillar-2 {
  margin-top: 0;
}

#pillar-3 {
  margin-top: 0;
}

#pillar-4 {
  margin-top: 0;
}

#pillar-1 { z-index: 5; }
#pillar-2 { z-index: 6; }
#pillar-3 { z-index: 7; }
#pillar-4 { z-index: 8; }

.section--pillar + .section--closing {
  margin-top: 0;
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 100%;
  padding: var(--icon-line-gap) 0;
  transform-origin: center center;
}

.pillar__icon-img {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto;
}

#pillar-1 .pillar__icon-img { aspect-ratio: 179.94 / 103.01; }
#pillar-2 .pillar__icon-img { aspect-ratio: 192.4 / 182.99; }
#pillar-3 .pillar__icon-img { aspect-ratio: 171.77 / 207.32; }
#pillar-4 .pillar__icon-img { aspect-ratio: 203.13 / 133.3; }


/* ═══════════════════════════════════════════════════════
   S7 — SOCIAL PROOF
   ═══════════════════════════════════════════════════════ */
.section--proof {
  padding-top: 0;
  padding-bottom: 0;
}

.proof__content {
  display: flex;
  justify-content: center;
  padding: 48px 0;
}

.proof__text-img {
  max-width: 340px;
  width: 85%;
}

.proof__icon {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.proof__icon-img {
  width: 100px;
  height: auto;
}


/* ═══════════════════════════════════════════════════════
   S8 — CLOSING
   ═══════════════════════════════════════════════════════ */
.section--closing {
  padding-top: 0;
  padding-bottom: 80px;
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
}

.section--closing .closing__content--text + .closing__photo {
  margin-top: 0;
}

.closing__content {
  display: flex;
  justify-content: center;
  padding: var(--prototype-text-pad-top) 0 var(--prototype-text-pad-bottom);
}

.closing__text-img {
  width: min(60.2vw, 577px);
  max-width: calc(100vw - (var(--section-padding-x) * 2));
}

.closing__content--asset {
  align-items: center;
}

.closing__content--text {
  flex-direction: column;
  align-items: center;
  padding: var(--prototype-text-pad-top) var(--section-padding-x) var(--prototype-text-pad-bottom);
  max-width: 360px;
  margin: 0 auto;
  gap: var(--prototype-copy-gap);
  text-align: center;
}

.closing__brush {
  font-family: var(--font-brush);
  font-size: 3.5rem;
  line-height: 1.2;
  color: var(--cd-bordo);
  text-transform: lowercase;
  overflow: visible;
  padding: 8px 20px;
}

.closing__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--cd-texto);
  text-align: center;
}

.closing__photo {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  aspect-ratio: var(--photo-aspect, 960 / 887);
  overflow: hidden;
}

.closing__photo-img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  object-position: center center;
  aspect-ratio: auto;
}


/* ═══════════════════════════════════════════════════════
   S9-S12 — CONTENT (Texto + Foto + Caption + Borboleta)
   ═══════════════════════════════════════════════════════ */
.section--content {
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
}

.content__text {
  display: flex;
  justify-content: center;
  padding: var(--prototype-text-pad-top) 0 var(--prototype-text-pad-bottom);
}

.content__text-img {
  --text-asset-vw: 60vw;
  --text-asset-max: 520px;
  width: min(var(--text-asset-vw), var(--text-asset-max));
  max-width: calc(100vw - (var(--section-padding-x) * 2));
  height: auto;
}

.content__text-img--showcase {
  --text-asset-vw: 56.1vw;
  --text-asset-max: 539px;
}

.content__text-img--lab {
  --text-asset-vw: 60.8vw;
  --text-asset-max: 584px;
}

.content__text-img--quality {
  --text-asset-vw: 63.2vw;
  --text-asset-max: 607px;
}

.content__text-img--clean {
  --text-asset-vw: 50.5vw;
  --text-asset-max: 485px;
}

.content__text-img--s13 {
  --text-asset-vw: 54.6vw;
  --text-asset-max: 524px;
}

.content__text-img--culture {
  --text-asset-vw: 54.2vw;
  --text-asset-max: 520px;
}

.content__text--asset {
  align-items: center;
}

.content__heading {
  max-width: 480px;
  width: 92%;
  text-align: center;
  overflow: visible;
}

.content__heading-brush {
  font-family: var(--font-brush);
  font-size: 3.5rem;
  line-height: 1.2;
  color: var(--cd-bordo);
  text-transform: lowercase;
  display: inline-block;
  overflow: visible;
  padding: 8px 20px;
}

.content__heading-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--cd-texto);
  display: inline-block;
}

.content__heading-body strong {
  font-weight: 700;
  color: var(--cd-texto);
}

.cta__heading {
  text-align: center;
}

.cta__heading-brush {
  font-family: var(--font-brush);
  font-size: 3rem;
  line-height: 1.2;
  color: var(--cd-white);
  text-transform: lowercase;
  padding: 8px 20px;
}

.content__photo {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  aspect-ratio: var(--photo-aspect, 960 / 820);
  overflow: hidden;
}

.content__photo-img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  object-position: center center;
  aspect-ratio: auto;
}

#closing .closing__photo { --photo-aspect: 960 / 887; }
#showcase .content__photo {
  --photo-aspect: 960 / 881;
}

#showcase .content__photo-img {
  transform: scale(0.94);
  transform-origin: center center;
}

#content-10 .content__photo {
  --photo-aspect: 960 / 806;
  background-color: var(--cd-bg-cream);
}
#content-10 .content__photo-img {
  object-fit: cover;
  object-position: center 42%;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 70%,
    rgba(0, 0, 0, 0.94) 77%,
    rgba(0, 0, 0, 0.62) 87%,
    rgba(0, 0, 0, 0.16) 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 70%,
    rgba(0, 0, 0, 0.94) 77%,
    rgba(0, 0, 0, 0.62) 87%,
    rgba(0, 0, 0, 0.16) 96%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
#content-11 .content__photo { --photo-aspect: 960 / 816; }
#content-12 .content__photo { --photo-aspect: 953 / 748; }
#content-14 .content__photo { --photo-aspect: 960 / 825; }

.content__caption {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--cd-texto);
  text-align: center;
  max-width: var(--max-content);
  margin: var(--prototype-caption-gap) auto var(--prototype-caption-tail);
  padding: 0 var(--section-padding-x);
}

.content__caption strong {
  font-weight: 700;
}

/* Generic butterfly (reused in S9, S10, S11, S12, S13, S15) */
.butterfly {
  width: var(--butterfly-size);
  height: var(--butterfly-size);
  margin: 20px auto;
  position: relative;
  z-index: 5;
  transform-origin: center center;
}

.separator + .butterfly {
  margin-top: calc(var(--butterfly-size) * -0.5);
  margin-bottom: 0;
}

.butterfly + .separator--after-butterfly {
  margin-top: calc(var(--butterfly-size) * -0.5);
}

.butterfly .butterfly-frame {
  width: var(--butterfly-size);
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
}


/* ═══════════════════════════════════════════════════════
   S13 — STOP-MOTION (Cápsula Terra)
   ═══════════════════════════════════════════════════════ */
.stopmotion {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 220vh;
  background-color: var(--cd-bg-cream);
  position: relative;
  z-index: 10;
}

.stopmotion__scene {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--cd-bg-cream);
  overflow: hidden;
}

.stopmotion__copy {
  max-width: var(--max-content);
  text-align: center;
}

.stopmotion__copy--top {
  margin-bottom: 18px;
}

.stopmotion__stage {
  width: 100%;
  height: clamp(240px, 34vh, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stopmotion__frame-img {
  width: 46vw;
  max-width: 230px;
  height: auto;
}

.stopmotion__copy--bottom {
  margin: 18px auto 0;
  position: relative;
  z-index: 2;
}

.stopmotion__copy--bottom::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: clamp(56px, 8vh, 78px);
  background-color: var(--cd-bordo);
  transform: translateX(-50%);
  transform-origin: top center;
}

.stopmotion .separator {
  min-height: clamp(104px, 15vh, 128px);
}

.stopmotion .separator__line {
  height: clamp(104px, 15vh, 128px);
}

.stopmotion .butterfly {
  margin: 0 auto;
}

.stopmotion .separator + .butterfly {
  margin-top: calc(var(--butterfly-size) * -0.5);
  margin-bottom: 0;
}

.stopmotion .butterfly + .separator--after-butterfly {
  margin-top: calc(var(--butterfly-size) * -0.5);
  min-height: clamp(104px, 15vh, 128px);
}

.stopmotion .butterfly + .separator--after-butterfly .separator__line {
  height: clamp(104px, 15vh, 128px);
}

.stopmotion__frames {
  display: none !important;
}

/* Pinned sections stay above everything */
.stopmotion {
  z-index: 50;
}

/* Keep S1 above S2 until the bottle has fully left the viewport. */
.hero {
  z-index: 60;
}

.section,
.footer {
  position: relative;
  z-index: 1;
}

.section.stopmotion {
  z-index: 20;
}

.section--tagline {
  z-index: 55;
}


/* ═══════════════════════════════════════════════════════
   S14 — CULTURE (continua linha da S13)
   ═══════════════════════════════════════════════════════ */
.section--culture {
  --culture-line-bridge-height: clamp(80px, 10vh, 100px);
  margin-top: var(--culture-line-bridge-height);
  padding-bottom: 60px;
}

.section--culture::before {
  content: "";
  position: absolute;
  top: calc(var(--culture-line-bridge-height) * -1);
  left: 50%;
  width: 1px;
  height: calc(var(--culture-line-bridge-height) + clamp(8px, 2vw, 18px));
  background-color: var(--cd-bordo);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.section--culture .content__text {
  padding-top: clamp(8px, 2vw, 18px);
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════════════════════
   S15 — CTA (Fundo bordô)
   ═══════════════════════════════════════════════════════ */
.section--cta {
  background: var(--cd-bordo);
  min-height: 800px;
  justify-content: center;
  padding: 80px var(--section-padding-x) clamp(120px, 16vw, 148px);
}

.cta__content {
  display: flex;
  justify-content: center;
  padding: 0 0 clamp(12px, 2.8vw, 20px);
}

.cta__content--asset {
  align-items: center;
}

.cta__text-img {
  --text-asset-vw: 61.1vw;
  --text-asset-max: 587px;
  width: min(var(--text-asset-vw), var(--text-asset-max));
  max-width: calc(100vw - (var(--section-padding-x) * 2));
  height: auto;
}

.butterfly--light .butterfly-frame {
  filter: brightness(100);
}

.cta__caption {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--cd-white);
  text-align: center;
  max-width: var(--max-content);
  margin: clamp(10px, 2.4vw, 18px) auto 0;
}

.section--cta .butterfly {
  margin-top: clamp(10px, 2.6vw, 18px);
  margin-bottom: clamp(34px, 5.8vh, 52px);
}


/* ═══════════════════════════════════════════════════════
   S16 — FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background-color: #1e1e1e;
  border-radius: clamp(34px, 10vw, 72px) clamp(34px, 10vw, 72px) 0 0;
  margin-top: calc(clamp(34px, 10vw, 72px) * -1);
  padding: clamp(78px, 16vw, 140px) var(--section-padding-x) clamp(38px, 10vw, 82px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(44px, 9vw, 78px);
  overflow: hidden;
  opacity: 1;
  transform: none;
  z-index: 2;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(27px, 5.8vw, 48px);
  width: 100%;
}

.footer__nav-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.3125rem, 4.54vw, 2.03rem);
  line-height: 1.05;
  color: var(--cd-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 3.24vw, 22px);
  text-align: center;
  transition: opacity 0.2s ease;
}

.footer__nav-link:hover {
  opacity: 0.75;
}

.footer__nav-icon {
  width: 0.78em;
  height: 0.78em;
  flex: 0 0 auto;
}

.footer__contact {
  text-align: center;
  width: 100%;
}

.footer__contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 4vw, 28px);
}

.footer__contact-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 5vw, 2.3rem);
  line-height: 1.15;
  color: var(--cd-white);
  margin-bottom: clamp(18px, 4vw, 28px);
}

.footer__contact-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.3125rem, 4.54vw, 2.03rem);
  line-height: 1.1;
  color: var(--cd-white);
  transition: opacity 0.2s ease;
}

.footer__contact-link:hover {
  opacity: 0.75;
}

.footer__social {
  text-align: center;
  width: 100%;
}

.footer__social-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 5vw, 2.45rem);
  line-height: 1.15;
  color: var(--cd-white);
  margin-bottom: clamp(18px, 4.5vw, 30px);
}

.footer__social-icons {
  display: flex;
  gap: clamp(18px, 5vw, 32px);
  justify-content: center;
  align-items: center;
}

.footer__social-link img {
  width: clamp(46px, 10vw, 64px);
  height: clamp(46px, 10vw, 64px);
  transition: opacity 0.2s ease;
}

.footer__social-link:hover img {
  opacity: 0.75;
}

.footer__logo {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: clamp(4px, 2vw, 18px);
}

.footer__logo img {
  width: min(100%, 760px);
  max-width: 100%;
  height: auto;
  filter: invert(1);
  opacity: 0.1;
}

.footer__legal {
  max-width: min(760px, 92vw);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.75rem, 2.59vw, 0.95rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.whatsapp-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 950;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--cd-bordo);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(154, 52, 76, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(154, 52, 76, 0.34);
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
  filter: brightness(100);
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Tablet+
   ═══════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  :root {
    --section-padding-x: 48px;
    --max-content: 500px;
  }

  .tagline__titles {
    width: min(68vw, 760px);
  }

  .tagline__title--serif {
    margin-right: clamp(56px, 9vw, 110px);
  }

  .closing__photo,
  .content__photo {
    max-width: none;
  }

  .section--closing {
    flex-direction: column;
    align-items: center;
    padding: 0 var(--section-padding-x) 80px;
  }

  .section--closing > .separator {
    width: 100%;
  }

  .closing__content--text {
    flex: none;
    min-width: 0;
  }

  .closing__photo {
    flex: none;
    min-width: 0;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .stopmotion__frame-img {
    width: 30vw;
    max-width: 300px;
  }

  .stopmotion__copy--top {
    margin-bottom: 30px;
  }

  .stopmotion__stage {
    height: clamp(300px, 38vh, 360px);
  }

  .stopmotion__copy--bottom {
    margin-top: 24px;
  }

  .footer__contact-links {
    flex-direction: column;
    justify-content: center;
  }

  .footer__nav {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .footer__social-icons {
    gap: 28px;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  :root {
    --section-padding-x: 64px;
    --max-content: 600px;
  }

  .content__photo,
  .closing__photo {
    max-width: none;
  }

  .stopmotion__frame-img {
    width: 20vw;
    max-width: 350px;
  }

  .whatsapp-float {
    width: 62px;
    height: 62px;
    right: 28px;
    bottom: 28px;
  }
}


/* ═══════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .separator__line { transform: scaleY(1) !important; }
  .tagline__titles,
  .tagline__title--brush,
  .tagline__title--serif,
  .tagline__text-img,
  .tagline__butterfly,
  .pillar__text-img,
  .closing__text-img,
  .content__text-img,
  .cta__text-img,
  .about__top-text,
  .about__bottom-content,
  .pillar__content,
  .pillar__intro,
  .pillar__brush,
  .pillar__brush--sub,
  .pillar__outro,
  .pillar__icon,
  .proof__content,
  .proof__icon,
  .closing__content,
  .closing__brush,
  .closing__body,
  .closing__photo,
  .content__text,
  .content__heading,
  .content__photo,
  .content__caption,
  .butterfly,
  .cta__content,
  .cta__heading,
  .cta__caption,
  .footer {
    opacity: 1 !important;
    transform: none !important;
  }

  .tagline__title--brush span {
    opacity: 1 !important;
  }
}
